DSH 桌面宠物:一行命令装好即用的透明动画小桌宠,支持多开、大小位置随心配置;还内置 DIY 素材链,能用 AI 视频自造专属宠物
This report summarizes scanner evidence for PC2005-cloud/dsh-pet, a TypeScript project with 6,293 GitHub stars. SynthScan examined 123,311 lines of code across 731 source files, recording 107 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-15.
Can maintainers explain intent, assumptions, and trade-offs? 23 finding(s).
Are imports declared and package/API names verified? 12 finding(s).
Are wrappers, guards, and repeated structures necessary? 82 finding(s).
Which changes need focused human review? 107 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 107 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/api-tester.html | 1858 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 1862 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2007 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2009 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2128 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2130 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2179 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2181 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2205 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2207 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2294 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2296 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2359 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2361 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2452 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2454 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2586 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2588 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2846 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2848 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 2863 | // ── AI 模型(碎碎念 / 对话)──────────────────────────────────── | COMMENT |
| MEDIUM | tools/api-tester.html | 2972 | // ── 物理(拖拽抛掷手感)──────────────────────────────────────── | COMMENT |
| MEDIUM | tools/api-tester.html | 3309 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 3311 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 3332 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 3334 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 3448 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 3450 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 3768 | // ── 播放回执轮询(issue #122 第 3 项)──────────────────────────────── | COMMENT |
| MEDIUM | tools/api-tester.html | 3768 | // ── 播放回执轮询(issue #122 第 3 项)──────────────────────────────── | COMMENT |
| MEDIUM | tools/api-tester.html | 3796 | // ── 直观显示:状态阶梯 + 每轮一行 ────────────────────────────── | COMMENT |
| MEDIUM | tools/api-tester.html | 3899 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 3901 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 4025 | // ── 抛掷:角度拨盘 + 力度 ──────────────────────────────────────── | COMMENT |
| MEDIUM | tools/api-tester.html | 4136 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 4138 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 4483 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 4485 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 4628 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 4630 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 4721 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/api-tester.html | 4723 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tools/cordis-probe/cordis.patch.yml | 1 | # ============================================================================ | COMMENT |
| MEDIUM | tools/cordis-probe/cordis.patch.yml | 3 | # ============================================================================ | COMMENT |
| MEDIUM | tools/cordis-probe/cordis.patch.yml | 19 | # ============================================================================ | COMMENT |
| MEDIUM | dsh-pet/cordis.patch.yml | 1 | # ============================================================================ | COMMENT |
| MEDIUM | dsh-pet/cordis.patch.yml | 3 | # ============================================================================ | COMMENT |
| MEDIUM | dsh-pet/cordis.patch.yml | 21 | # ============================================================================ | COMMENT |
| MEDIUM | scripts/encode_hevc_alpha.sh | 2 | # ============================================================================ | COMMENT |
| MEDIUM | scripts/encode_hevc_alpha.sh | 21 | # ============================================================================ | COMMENT |
| MEDIUM | .github/workflows/hevc-alpha.yml | 1 | # ============================================================================ | COMMENT |
| MEDIUM | .github/workflows/hevc-alpha.yml | 25 | # ============================================================================ | COMMENT |
| MEDIUM | .github/workflows/release-app.yml | 1 | # ============================================================================ | COMMENT |
| MEDIUM | .github/workflows/release-app.yml | 18 | # ============================================================================ | COMMENT |
| MEDIUM | site/fetch_metrics.py | 79 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | site/fetch_metrics.py | 81 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | site/fetch_metrics.py | 111 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | site/fetch_metrics.py | 113 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | site/fetch_metrics.py | 176 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | site/fetch_metrics.py | 178 | # -------------------------------------------------------------------------- | COMMENT |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/cordis-probe/cordis.patch.yml | 1 | # ============================================================================ | COMMENT |
| LOW | dsh-pet/cordis.patch.yml | 1 | # ============================================================================ | COMMENT |
| LOW | dsh-pet/runtime/electron-helper/sprite/menu.js | 41 | // 「配图」:与浏览器端同一份分支(纳入对话的配图 / 其他),点一张就用它说一句;没有可用图时 | COMMENT |
| LOW | dsh-pet/src/host/config/save.ts | 141 | // 传了就整段校验后进白名单,没传则走下面的透传保留。校验复用读取侧的 topFieldValid | COMMENT |
| LOW | dsh-pet/src/host/plugin/session-watch.ts | 261 | // 系统通知:监听 DSH 宿主事件生成通知帧入队,浏览器轮询 /state 读到后弹 toast(帧契约与 | COMMENT |
| LOW | dsh-pet/src/host/routes/assets.ts | 21 | COMMENT | |
| LOW | dsh-pet/src/host/routes/config/display.ts | 61 | } catch (e) { | COMMENT |
| LOW | scripts/encode_hevc_alpha.sh | 1 | #!/bin/zsh | COMMENT |
| LOW | .github/workflows/hevc-alpha.yml | 1 | # ============================================================================ | COMMENT |
| LOW | .github/workflows/release-app.yml | 1 | # ============================================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dsh-pet/runtime/electron-helper/taskbar-watchdog.js | 34 | function taskbarWatchdogEnabledFromEnv(raw) { | CODE |
| LOW | dsh-pet/src/host/broadcast.ts | 46 | export function normalizeBroadcastDuration(duration: unknown): number | null { | CODE |
| LOW | dsh-pet/src/host/chat-memory-provider.ts | 78 | export function registerChatMemoryProvider(def: ChatMemoryProvider): () => void { | CODE |
| LOW | dsh-pet/src/host/config/save.ts | 247 | export function syncUserConfigFromDefault(paths: ConfigPaths): void { | CODE |
| LOW | dsh-pet/src/host/voice/builtin-deepseek-tts.ts | 30 | export function createDeepseekTtsProvider(deps: { resolveKey: ResolveKey }): VoiceProvider { | CODE |
| LOW | dsh-pet/src/host/voice/builtin-deepseek-tts.ts | 58 | export function ensureDeepseekTtsProvider(deps: { resolveKey: ResolveKey }): void { | CODE |
| LOW | dsh-pet/src/host/voice/builtin-deepseek-asr.ts | 25 | export function createDeepseekAsrProvider(deps: { resolveKey: ResolveKey }): SpeechProvider { | CODE |
| LOW | dsh-pet/src/host/voice/builtin-deepseek-asr.ts | 57 | export function ensureDeepseekAsrProvider(deps: { resolveKey: ResolveKey }): void { | CODE |
| LOW | dsh-pet/src/host/helper/restart.ts | 119 | export function shouldFallbackToNoSandbox(input: { | CODE |
| LOW | dsh-pet/src/client/notify.ts | 186 | export async function requestNotificationPermission(): Promise<PermissionResult> { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/encode_thumbs.py | 24 | CODE | |
| LOW | scripts/watermark_step01.py | 14 | CODE | |
| LOW | scripts/normalize_step03.py | 10 | CODE | |
| LOW | scripts/make_mask_black.py | 5 | CODE | |
| LOW | scripts/fill_nn.py | 10 | CODE | |
| LOW | scripts/encode_preview_gifs.py | 24 | CODE | |
| LOW | scripts/chroma_step02.py | 3 | CODE | |
| LOW | scripts/pr_import_step02.py | 20 | CODE | |
| LOW | site/fetch_metrics.py | 39 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dsh-pet/src/standalone/context-ai.test.ts | 28 | balanceAuth: () => ({ provider: 'deepseek-official', apiKey: 'fake-key' }), | CODE |
| LOW | dsh-pet/src/standalone/settings.test.ts | 349 | page.element('apiKey').value = 'write-only-fake-key'; | CODE |
| LOW | dsh-pet/src/standalone/settings.test.ts | 358 | assert.deepEqual(body.keys, { DEEPSEEK_API_KEY: 'write-only-fake-key' }); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .agents/skills/task-guardrails/SKILL.md | 12 | # 任务流程与操作边界(task-guardrails) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/encode_preview_gifs.py | 198 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW⚡ | site/fetch_metrics.py | 192 | except Exception as exc: # noqa: BLE001 - 网络层什么都可能抛,统一重试 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/make_mask_black.py | 20 | CODE | |
| LOW | scripts/chroma_step02.py | 61 | CODE |