ScriptCat, a browser extension that can execute userscript; 脚本猫,一个可以执行用户脚本的浏览器扩展
This report summarizes scanner evidence for scriptscat/scriptcat, a TypeScript project with 5,744 GitHub stars. SynthScan examined 250,864 lines of code across 1295 source files, recording 217 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.5 (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-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 133 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 136 finding(s).
Which changes need focused human review? 217 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
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 217 distinct pattern matches across 5 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 | e2e/vscode-connect.spec.ts | 6 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | e2e/vscode-connect.spec.ts | 8 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | e2e/vscode-connect.spec.ts | 94 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | e2e/vscode-connect.spec.ts | 96 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 11 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 13 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 74 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 76 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 131 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 133 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 160 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 162 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 271 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 273 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 294 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 296 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 382 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 384 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 430 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/offscreen/vscode-connect.test.ts | 432 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 26 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 28 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 52 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 54 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 126 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 180 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 227 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 298 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 346 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 410 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/app/service/offscreen/external-access-connect.test.ts | 488 | // ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 27 | // ── 公共测试辅助(跨 describe 复用) ────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 105 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 182 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 313 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 382 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 521 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 732 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 866 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 873 | // ── installScript ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 977 | // ── enableScripts ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 1022 | // ── scriptRunStatus ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 1062 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/popup.test.ts | 1109 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/runtime.test.ts | 669 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/runtime.test.ts | 671 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/runtime.test.ts | 748 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/runtime.test.ts | 823 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/runtime.test.ts | 872 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/runtime.test.ts | 953 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/runtime.test.ts | 1301 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/app/service/service_worker/runtime.test.ts | 1403 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …es/options/routes/ScriptList/ScriptListMobile.test.tsx | 12 | // ── Top-level mocks ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …es/options/routes/ScriptList/ScriptListMobile.test.tsx | 124 | // ── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …es/options/routes/ScriptList/ScriptListMobile.test.tsx | 164 | // ── Tests ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ions/routes/SubscribeList/SubscribeListMobile.test.tsx | 12 | // ── Top-level mocks ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ions/routes/SubscribeList/SubscribeListMobile.test.tsx | 64 | // ── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ions/routes/SubscribeList/SubscribeListMobile.test.tsx | 77 | // ── Tests ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/pkg/utils/regex_to_glob.test.ts | 19 | // ──────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/pkg/utils/regex_to_glob.test.ts | 23 | // ──────────────────────────────────────────────────────────────────────────── | COMMENT |
| 17 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | example/window_onurlchange.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/usersubscribe.user.sub.js | 1 | // ==UserSubscribe== | COMMENT |
| LOW | example/sandbox_window.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_cookie.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/match_local_file.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/inject-into.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/error_retry.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/cat_bg_input_menu.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/require_css.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/grant_none.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_get_resource.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/vscode.user.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/require_local_file.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_async.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/cloudcat.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/early-start.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_save_tab.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/run-in/run-in_normal-tabs.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/run-in/run-in_both.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/run-in/run-in_none.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/run-in/run-in_incognito-tabs.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/run-in/run-in_bg.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/crontab/crontab.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/crontab/crontab-once.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/crontab/crontab-once-expr.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/gm_api_async_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/gm_api_async_test.js | 21 | // @grant GM.registerMenuCommand | COMMENT |
| LOW | example/tests/gm_api_sync_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/gm_api_sync_test.js | 21 | // @grant GM_setClipboard | COMMENT |
| LOW | example/tests/inject_content_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/gm_download_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/gm_download_test.js | 1121 | // ---------- Manual tests (verdict-driven) ---------- | COMMENT |
| LOW | example/tests/gm_download_test.js | 1201 | if (sawOnerror) | COMMENT |
| LOW | example/tests/unwrap_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/gm_xhr_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/early_inject_content_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/window_message_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/sandbox_compatibility_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/early_inject_page_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/gm_xhr_redirect_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/sandbox_function_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/unwrap_e2e_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/gm_value_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/tests/gm_xhr_cookie_test.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_menu/gm_bg_menu.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_menu/gm_advanced_menu.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_value/gm_value_2.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_value/gm_value_2_bg.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_value/listener_change.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_value/gm_value_1_bg.js | 1 | // ==UserScript== | COMMENT |
| LOW | example/gm_value/gm_value_1.js | 1 | // ==UserScript== | COMMENT |
| LOW | src/app/service/service_worker/popup.ts | 41 | const scriptCountMap = new Map<number, string>(); | COMMENT |
| LOW | src/app/service/content/exec_script.test.ts | 301 | // // 验证调用 | COMMENT |
| LOW | src/app/service/agent/core/context_elision.ts | 61 | COMMENT | |
| LOW | src/app/service/agent/service_worker/llm_client.ts | 221 | // abort 安全:settled 一旦为 true(外层 Promise 已因 abort 落定),后续保存产生的 | COMMENT |
| LOW | src/app/repo/opfs_repo.ts | 81 | } | COMMENT |
| LOW | src/pkg/utils/script.test.ts | 41 | expect(result?.version).toEqual(["1.0.0"]); | COMMENT |
| LOW | src/pkg/utils/script.test.ts | 121 | // @version 1.0.0 | COMMENT |
| LOW | src/pkg/utils/script.test.ts | 221 | COMMENT | |
| LOW | src/pkg/utils/script.test.ts | 261 | COMMENT | |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/build-config.js | 38 | export function applyFirefoxSandboxManifest(manifest) { | CODE |
| LOW | packages/filesystem/baidu/error.ts | 13 | export function createBaiduFileSystemError(data: BaiduErrorResponse): FileSystemError { | CODE |
| LOW | packages/filesystem/webdav/error.ts | 10 | export function createWebDAVFileSystemError(error: unknown): unknown { | CODE |
| LOW | e2e/background-script.spec.ts | 49 | async function readBackgroundScriptState(page: Page): Promise<BackgroundScriptState | null> { | CODE |
| LOW | e2e/background-script.spec.ts | 73 | async function waitForBackgroundComplete(page: Page): Promise<BackgroundScriptState | null> { | CODE |
| LOW | e2e/background-script.spec.ts | 88 | async function setBackgroundScriptEnabled(page: Page, enabled: boolean): Promise<void> { | CODE |
| LOW | e2e/background-script.spec.ts | 97 | async function readBackgroundDiagnostics(page: Page): Promise<any> { | CODE |
| LOW | e2e/storage-name.spec.ts | 90 | function createStorageReaderScript(options: { | CODE |
| LOW | e2e/storage-name.spec.ts | 223 | function createCrossContextScriptPair(): CrossContextScriptPair { | CODE |
| LOW | e2e/storage-name.spec.ts | 355 | async function installCrossContextScriptPair( | CODE |
| LOW | src/locales/relative-date.ts | 34 | export function changeRelativeTimeLanguage(lng: string, callback?: Callback): void { | CODE |
| LOW | src/app/service/offscreen/client.ts | 17 | export function reportSandboxChannelHealth(windowMessage: WindowMessage, health: SandboxChannelHealth) { | CODE |
| LOW | src/app/service/offscreen/client.ts | 30 | export function sendMessageToServiceWorker(windowMessage: WindowMessage, action: string, data?: any) { | CODE |
| LOW | src/app/service/service_worker/synchronize.ts | 160 | function isCloudSyncConnectionEquivalent(left: CloudSyncConfig, right: CloudSyncConfig): boolean { | CODE |
| LOW | src/app/service/service_worker/synchronize.ts | 164 | function isCloudSyncConfigEquivalent(left: CloudSyncConfig, right: CloudSyncConfig): boolean { | CODE |
| LOW | src/app/service/service_worker/network_rule_compiler.ts | 66 | function isPureResponseHeaderRemoval(candidate: CompiledCandidate): boolean { | CODE |
| LOW | src/app/service/service_worker/utils.ts | 249 | export function buildScriptRunResourceBasic(script: Script): ScriptRunResource { | CODE |
| LOW | src/app/service/service_worker/index.ts | 44 | export function notifyExternalAccessWrite(notice: ExternalAccessWriteNotice): void { | CODE |
| LOW | …p/service/service_worker/external_access/url_policy.ts | 21 | export async function fetchInstallSourceWithPolicy(url: string): Promise<string> { | CODE |
| LOW | src/app/service/content/utils.ts | 136 | export function compileScriptCodeByResource(resource: CompileScriptCodeResource): string { | CODE |
| LOW | src/app/service/content/utils.ts | 184 | export function compileInjectScriptByFlag( | CODE |
| LOW | …ervice/content/gm_api/related_target_lifecycle.test.ts | 12 | function createApiWithContentRuntime() { | CODE |
| LOW | src/app/service/agent/core/tool_call_guard.ts | 88 | function checkGetTabContentRepetition(history: ToolCallRecord[]): string | null { | CODE |
| LOW | src/app/service/agent/core/skill_script_executor.ts | 27 | export function getSkillScriptGrantsByUuid(uuid: string): string[] { | CODE |
| LOW | src/app/service/agent/core/system_prompt.ts | 371 | export function buildSubAgentSystemPrompt(typeConfig: SubAgentTypeConfig, availableToolNames: string[]): string { | CODE |
| LOW | src/app/service/agent/core/tool_registry.ts | 84 | function isToolResultWithAttachments(value: unknown): value is ToolResultWithAttachments { | CODE |
| LOW | src/app/service/agent/core/tool_registry.ts | 109 | function persistedAttachmentReferences( | CODE |
| LOW | src/app/service/agent/core/model_capabilities.ts | 51 | export function supportsImageOutputByModelId(modelId: string): boolean { | CODE |
| LOW | src/app/service/agent/core/attachment_resolver.ts | 12 | export async function prepareAttachmentSnapshot( | CODE |
| LOW | src/app/service/agent/core/persisted_messages.ts | 11 | function contentBlockAttachmentIds(content: MessageContent): string[] { | CODE |
| LOW | src/app/service/agent/core/persisted_messages.ts | 23 | export function retainedSummaryAttachmentIds(summary: string, messages: ChatMessage[], legacy = false): string[] { | CODE |
| LOW | src/app/service/agent/core/context_elision.ts | 79 | export function invalidateMessageByteCache(message: object): void { | CODE |
| LOW | src/app/service/agent/core/context_elision.ts | 109 | function estimateImageTokensFromDimensions(width: number, height: number): number { | CODE |
| LOW | …c/app/service/agent/service_worker/autocompact.test.ts | 17 | function makeTextResponseWithTokens(text: string, promptTokens = 10): Response { | CODE |
| LOW | src/app/service/agent/service_worker/test-helpers.ts | 195 | export function createMockSenderWithCallbacks() { | CODE |
| LOW | src/app/service/agent/service_worker/test-helpers.ts | 269 | export function createRunningConversation(overrides: Record<string, any> = {}) { | CODE |
| LOW | src/app/service/agent/service_worker/chat.test.ts | 782 | function makeScriptToolCallResponse(toolId: string, toolName: string, args: string): Response { | CODE |
| LOW | src/app/service/agent/service_worker/llm.test.ts | 458 | function makeToolCallResponseWithUsage( | CODE |
| LOW | src/app/service/agent/service_worker/chat_service.ts | 120 | function canAssertAttachmentOwnership(sender: IGetSender): boolean { | CODE |
| LOW | src/app/repo/agent_chat.ts | 59 | function contentBlockAttachmentIds(content: MessageContent): string[] { | CODE |
| LOW | src/app/repo/agent_chat.ts | 73 | export function collectMessageAttachmentIds(messages: ChatMessage[], legacy = false): Set<string> { | CODE |
| LOW | src/app/repo/agent_chat.ts | 104 | function collectMessageAttachmentReferences(messages: ChatMessage[], legacy = false): Set<string> { | CODE |
| LOW | src/app/repo/agent_chat.ts | 122 | function containsCompleteToolRound( | CODE |
| LOW | src/pages/options/routes/ScriptList/preferences.ts | 63 | export function parseScriptListPreferences(raw: string | null): ScriptListPreferences { | CODE |
| LOW | src/pages/options/routes/ScriptList/preferences.ts | 78 | export function readScriptListPreferences(): ScriptListPreferences { | CODE |
| LOW | src/pages/options/routes/ScriptList/preferences.ts | 82 | export function writeScriptListPreferences(preferences: ScriptListPreferences): void { | CODE |
| LOW | src/pages/options/routes/Agent/Chat/ChatArea.tsx | 39 | async function releasePendingAttachments(attachmentIds?: string[]): Promise<void> { | CODE |
| LOW | src/pages/options/routes/Agent/Chat/chat_utils.ts | 130 | export function findNextAssistantGroupIndex(groups: MessageGroup[], userGroupIndex: number): number | null { | CODE |
| LOW | src/pages/options/routes/Agent/Chat/chat_utils.ts | 141 | export function computeUserRegenerateAction( | CODE |
| LOW | src/pages/options/routes/Agent/Chat/MessageItem.tsx | 95 | function ExistingAttachmentPreview({ block, onRemove }: { block: ContentBlock; onRemove: () => void }) { | CODE |
| LOW | src/pages/options/routes/Agent/OPFS/opfs_fs.ts | 128 | async function ensureDestinationAvailable(dir: FileSystemDirectoryHandle, name: string): Promise<void> { | CODE |
| LOW | src/pages/options/routes/SubscribeList/hooks.ts | 57 | export function useSubscribeDataManagement() { | CODE |
| LOW | src/pages/components/CloudScriptPlan/index.tsx | 61 | export function invalidateCloudScriptPlan(script?: Script) { | CODE |
| LOW | src/pages/components/ui/use-hover-menu.test.tsx | 62 | function HoverMenuWithNativeButton({ onSelect }: { onSelect: (key: string) => void }) { | CODE |
| LOW | src/pages/components/CodeEditor/index.tsx | 46 | function toMonacoEditorPreferenceOptions( | CODE |
| LOW | src/pages/external_access_confirm/App.tsx | 53 | export function ExternalAccessConfirmView({ operationId }: { operationId: string }) { | CODE |
| LOW | src/pkg/utils/utils.ts | 195 | export async function checkUserScriptsAvailable() { | CODE |
| LOW | src/pkg/utils/crypto.ts | 32 | export function calculateHashFromArrayBuffer(a: ArrayBuffer) { | CODE |
| LOW | src/pkg/utils/script_compat.ts | 158 | export function ineffectiveMetadataValues(metadata: SCMetadata): IneffectiveMetadataValue[] { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | e2e/agent-provider.spec.ts | 24 | await expect(dialog.getByTestId("model-base-url")).toHaveAttribute("placeholder", /openai/i); | CODE |
| LOW | e2e/agent-provider.spec.ts | 42 | await expect(baseUrl).toHaveAttribute("placeholder", /openai/i); | CODE |
| LOW | e2e/agent-provider.spec.ts | 48 | await expect(baseUrl).toHaveAttribute("placeholder", /anthropic/i); | CODE |
| LOW | src/app/service/agent/core/tools/opfs_tools.test.ts | 317 | await write.executor.execute({ path: "image.png", content: "placeholder" }); | CODE |
| LOW | src/app/service/agent/core/tools/opfs_tools.test.ts | 347 | await write.executor.execute({ path: "data.bin", content: "placeholder" }); | CODE |
| LOW | …options/routes/Agent/Provider/ModelFormDialog.test.tsx | 61 | expect(screen.getByTestId("model-base-url")).toHaveAttribute("placeholder", getDefaultBaseUrl("openai")); | CODE |
| LOW | src/pages/components/ui/search-input.test.tsx | 11 | expect(input).toHaveAttribute("placeholder", "搜索脚本"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | rspack-plugins/ZipExecutionPlugin.ts | 353 | // 2. Collect candidates (robust walker + context) | COMMENT |