Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 15 platforms
1620 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/executor.test.ts | 1854 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/executor.test.ts | 1859 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/executor.test.ts | 1917 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/executor.test.ts | 1921 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/store.test.ts | 1410 | // ── Source metadata & TTL cache ─────────────────────────────────────── |
| MEDIUM | tests/store.test.ts | 1451 | // ── Persistent content store lifecycle ──────────────────────────────── |
| MEDIUM | tests/store.test.ts | 1513 | // ═══════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tests/store.test.ts | 1515 | // ═══════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tests/store.test.ts | 1758 | // ═══════════════════════════════════════════════════════════ |
| MEDIUM | tests/store.test.ts | 1760 | // ═══════════════════════════════════════════════════════════ |
| MEDIUM | tests/store.test.ts | 1773 | // ═══════════════════════════════════════════════════════════ |
| MEDIUM | tests/store.test.ts | 1775 | // ═══════════════════════════════════════════════════════════ |
| MEDIUM | tests/store.test.ts | 1958 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/store.test.ts | 1965 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 14 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 16 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 68 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 70 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 128 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 130 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 158 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 161 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 270 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/truncate.test.ts | 272 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/statusline-sqlite.test.ts | 231 | // ── Slice 2: multi-adapter aggregation ─────────────────────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 18 | // ── Test helpers ────────────────────────────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 41 | // ── Tests ───────────────────────────────────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 63 | // ── Factory ─────────────────────────────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 146 | // ── #621: native plugin must run Zod preprocessing on args ──────── |
| MEDIUM | tests/opencode-plugin.test.ts | 146 | // ── #621: native plugin must run Zod preprocessing on args ──────── |
| MEDIUM | tests/opencode-plugin.test.ts | 255 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 265 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 396 | // ── tool.execute.before ─────────────────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 467 | // ── tool.execute.after ──────────────────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 516 | // ── experimental.session.compacting ─────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 589 | // ── experimental.chat.system.transform ──────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 853 | // ── Integration: before + after + compact ───────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 964 | // ── OC-1 quorum substring overlap (#487) ──────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 964 | // ── OC-1 quorum substring overlap (#487) ──────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 993 | // ── OC-2: chat.message hook (Z2) ────────────────────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 1054 | // ── OC-3: buildAutoInjection in compacting (Z3) ─────────── |
| MEDIUM | tests/opencode-plugin.test.ts | 1207 | // ── Integration: blocked tool flow ──────────────────── |
| MEDIUM | tests/ecosystem-benchmark.ts | 28 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/ecosystem-benchmark.ts | 30 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/ecosystem-benchmark.ts | 50 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/ecosystem-benchmark.ts | 52 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/ecosystem-benchmark.ts | 403 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/ecosystem-benchmark.ts | 405 | // ───────────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 61 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 63 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 126 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 128 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 192 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 194 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 262 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 264 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 311 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/live-benchmark-v04.ts | 313 | // ───────────────────────────────────────────────────── |
| MEDIUM | tests/pi-extension.test.ts | 26 | // ── Mock Pi API ────────────────────────────────────────────── |
| MEDIUM | tests/pi-extension.test.ts | 65 | // ── Shared state ──────────────────────────────────────────── |
| 1294 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/executor.test.ts | 323 | print(f"squares: {nums}") |
| HIGH | tests/executor.test.ts | 324 | print(f"sum: {sum(nums)}") |
| HIGH | tests/executor.test.ts | 337 | print(json.dumps({"count": len(data["users"])})) |
| HIGH | tests/executor.test.ts | 353 | print(f"rows: {len(rows)}, names: {[r['name'] for r in rows]}") |
| HIGH | tests/executor.test.ts | 367 | print(f"Found {len(errors)} errors: {errors}") |
| HIGH | tests/executor.test.ts | 381 | print(f"most common: {c.most_common(2)}") |
| HIGH | tests/executor.test.ts | 976 | print(f"Users: {len(data['users'])}") |
| HIGH | tests/executor.test.ts | 1145 | print(f"lines: {len(lines)}") |
| HIGH | tests/executor.test.ts | 1146 | print(f"first: {lines[0]}") |
| HIGH | tests/executor.test.ts | 1147 | print(f"has_emoji: {'🔒' in FILE_CONTENT}") |
| HIGH | tests/executor.test.ts | 1209 | print(f"Users via file_path: {len(data['users'])}") |
| HIGH | tests/context-comparison.ts | 260 | print(f"Events: {len(rows)} | Users: {unique_users} | Avg latency: {avg_ms:.0f}ms") |
| HIGH | tests/context-comparison.ts | 261 | print(f"Error rate: {len(errors)}/{len(rows)} ({len(errors)/len(rows)*100:.1f}%)") |
| HIGH | tests/context-comparison.ts | 262 | print(f"Actions: {dict(actions.most_common())}") |
| HIGH | tests/context-comparison.ts | 263 | print(f"Statuses: {dict(statuses.most_common())}") |
| HIGH | tests/ecosystem-benchmark.ts | 395 | print(f"analytics — CSV Summary") |
| HIGH | tests/ecosystem-benchmark.ts | 396 | print(f"Events: {len(rows)} | Users: {unique_users} | Avg latency: {avg_ms:.0f}ms") |
| HIGH | tests/ecosystem-benchmark.ts | 397 | print(f"Actions: {dict(actions.most_common())}") |
| HIGH | tests/ecosystem-benchmark.ts | 398 | print(f"Statuses: {dict(statuses.most_common())}") |
| HIGH | tests/use-cases.ts | 409 | print(f"Analytics: {len(rows)} events from {unique_users} unique users") |
| HIGH | tests/use-cases.ts | 410 | print(f"Avg duration: {sum(durations)/len(durations):.0f}ms (max: {max(durations)}ms)") |
| HIGH | tests/use-cases.ts | 411 | print(f"Error rate: {len(errors)}/{len(rows)} ({len(errors)/len(rows)*100:.1f}%)") |
| HIGH | tests/use-cases.ts | 412 | print(f"\\nActions: {dict(actions.most_common())}") |
| HIGH | tests/use-cases.ts | 413 | print(f"Resources: {dict(resources.most_common())}") |
| HIGH | tests/use-cases.ts | 414 | print(f"Statuses: {dict(statuses.most_common())}") |
| HIGH | tests/use-cases.ts | 421 | print(f"\\nSlowest (avg ms):") |
| HIGH | tests/use-cases.ts | 423 | print(f" {a}: {sum(ds)/len(ds):.0f}ms") |
| HIGH | tests/benchmark.ts | 234 | print(json.dumps({"count": len(data), "sum": round(total, 2)})) |
| HIGH | tests/benchmark.ts | 270 | print(f"filtered: {len(filtered)}") |
| HIGH | tests/core/server.test.ts | 897 | print(f"msg: {data['message']}") |
| HIGH | tests/core/server.test.ts | 898 | print(f"count: {data['count']}") |
| HIGH | tests/codex/marketplace-layout.test.ts | 174 | `would return None → /plugin install would fail.`, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | vitest.config.ts | 21 | // near-zero crashes (vs unlimited = 3.7x but 6-7 worker kills/run). |
| LOW | tests/statusline-sqlite.test.ts | 41 | (process.platform === "darwin" || process.platform === "win32") ? p.toLowerCase() : p |
| LOW | tests/pi-extension.test.ts | 341 | // until they rephrased the query. |
| LOW | tests/pi-extension.test.ts | 1261 | // Server returns "Indexed N sections … from: pi-bridge-smoke" on |
| LOW | tests/pi-extension.test.ts | 1321 | // without an explicit await the LLM call goes out with an empty |
| LOW | tests/pi-extension.test.ts | 1381 | // 2. shutdown() sends SIGTERM and immediately nulls the child handle. |
| LOW | tests/pi-extension.test.ts | 1421 | |
| LOW | tests/pi-extension.test.ts | 1501 | }, 15_000); |
| LOW | tests/statusline.test.ts | 221 | |
| LOW | tests/core/search.test.ts | 2541 | const results = store.searchWithFallback("validator input", 5); |
| LOW | tests/core/search.test.ts | 3361 | |
| LOW | tests/core/server.test.ts | 1221 | |
| LOW | tests/core/server.test.ts | 1361 | expect(indexCall![1]).toBe("resolvedPath"); |
| LOW | tests/core/server.test.ts | 1701 | // `execSync(\`…${…}…\`)` template-string injection pattern anywhere. |
| LOW | tests/core/server.test.ts | 2661 | // Statusline at src/server.ts:540 already passes |
| LOW | tests/core/server.test.ts | 2781 | // tools/list. A `.refine()` wrapper produces a ZodEffects which has no |
| LOW | tests/core/server.test.ts | 2821 | test("slice 7: schema declares optional sessionId and scope", () => { |
| LOW | tests/core/server.test.ts | 3661 | const block = fetchOneSrc![0]; |
| LOW | tests/core/server.test.ts | 3901 | // target; DNS resolution would happen at the proxy and the in-subprocess |
| LOW | tests/core/server.test.ts | 3981 | }); |
| LOW | tests/core/server.test.ts | 4281 | }, 30_000); |
| LOW | tests/core/server.test.ts | 4781 | |
| LOW | tests/core/server.test.ts | 5081 | sessionsDir, |
| LOW | tests/core/server.test.ts | 5181 | const matches = joined.match(/\[context-mode\]/g) ?? []; |
| LOW | tests/core/server.test.ts | 5201 | test("registerEmptyToolsListHandler responds with {tools:[]} so operators don't see -32601 on suppressed MCP child (#637 |
| LOW | tests/core/server.test.ts | 5241 | }, 15_000); |
| LOW | tests/core/server.test.ts | 5321 | |
| LOW | tests/core/server.test.ts | 5401 | ]; |
| LOW | tests/core/server.test.ts | 5581 | // form so the regression can't slip back. |
| LOW | tests/core/server.test.ts | 5621 | // every SessionStart and every routing redirect. Lives in 100% of |
| LOW | tests/core/server.test.ts | 5641 | const routingMjs = readFileSync(routingMjsPath, "utf-8"); |
| LOW | tests/core/server.test.ts | 5721 | // |
| LOW | tests/core/server.test.ts | 5801 | // The original PR #654 fix replaced the single word "blocked" with |
| LOW | tests/core/server.test.ts | 5821 | // the disallowed action. Express as the positive next step — the |
| LOW | tests/core/server.test.ts | 5841 | expect(cs.payload).not.toMatch(/\bfor\s+context-window\s+(efficiency|optimization)\b/i); |
| LOW | tests/core/cli.test.ts | 141 | }); |
| LOW | tests/core/cli.test.ts | 201 | |
| LOW | tests/core/cli.test.ts | 441 | |
| LOW | tests/core/cli.test.ts | 1201 | const pkg = JSON.parse(readFileSync(resolve(ROOT, "package.json"), "utf-8")); |
| LOW | tests/core/cli.test.ts | 1261 | it("reports every missing launch file for a fully empty (partial) install", () => { |
| LOW | tests/core/cli.test.ts | 1961 | expect(upgradeBody).toContain('adapter.name === "Claude Code"'); |
| LOW | tests/core/cli.test.ts | 2221 | expect(rebuildStartIdx).toBeGreaterThan(-1); |
| LOW | tests/core/cli.test.ts | 2241 | // - leftover `.mcp.json` in `~/.claude/plugins/cache/.../<version>/` |
| LOW | tests/core/cli.test.ts | 2301 | expect(window_).toMatch(/ctx[_-]?upgrade/i); |
| LOW | tests/util/cli-upgrade-verification.test.ts | 41 | // through #523/#531/#542 (Layer 5b heal, Layer 6 mcp.json heal, Pi/OMP detect). |
| LOW | tests/util/heal-better-sqlite3-python.test.ts | 101 | }); |
| LOW | tests/util/heal-better-sqlite3-python.test.ts | 161 | // python helper output (either inline PYTHON: or a captured var |
| LOW | tests/util/db-base-platform-gate.test.ts | 81 | // |
| LOW | tests/util/db-base-platform-gate.test.ts | 161 | } finally { |
| LOW | tests/util/db-base-platform-gate.test.ts | 181 | // ───────────────────────────────────────────────────────── |
| LOW | tests/util/db-base-platform-gate.test.ts | 261 | // usually better-sqlite3 (node:sqlite ships without FTS5 in the upstream |
| LOW | tests/util/heal-better-sqlite3.test.ts | 41 | const earlyReturnPattern = |
| LOW | tests/util/heal-better-sqlite3.test.ts | 61 | expect(HEAL_SRC).toMatch(/"install"|'install'|\bnpm\s+install\b/); |
| LOW | tests/util/postinstall-heal.test.ts | 301 | // ───────────────────────────────────────────────────────────────────────── |
| LOW | tests/util/postinstall-heal.test.ts | 481 | expect(r.status === 0 || r.status === null).toBe(true); |
| LOW | tests/util/postinstall-heal.test.ts | 501 | // Linux + Node < 22.5 + no Bun. Architect rejected "warn nicely" — the |
| LOW | tests/util/codex-session-cwd-resolution.test.ts | 1 | import { afterEach, describe, expect, it } from "vitest"; |
| LOW | tests/util/heal-installed-plugins.test.ts | 621 | // healMcpJsonArgs — Issue #531 (v1.0.122) |
| LOW | tests/util/start-mjs-self-heal.test.ts | 81 | resolve(ROOT, "scripts", "postinstall.mjs"), |
| LOW | tests/util/start-mjs-self-heal.test.ts | 141 | // |
| 82 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/store.test.ts | 102 | // Step 1: Create a DB with the OLD schema (4-column FTS5) |
| LOW | tests/store.test.ts | 148 | // Step 2: Open with ContentStore — migration should trigger |
| LOW | tests/store.test.ts | 151 | // Step 3: Verify migration happened — new columns exist |
| LOW | tests/util/postinstall-heal.test.ts | 428 | // Step 1: cpSync the clean placeholder file from tmpdir → real plugin |
| LOW | tests/util/postinstall-heal.test.ts | 438 | // Step 2: normalize against the REAL pluginRoot — this is the cli.ts |
| LOW | tests/session/session-extract.test.ts | 2269 | // Step 1: Error occurs |
| LOW | tests/session/session-extract.test.ts | 2279 | // Step 2: Successful same-tool call |
| LOW | tests/session/session-pipeline.test.ts | 40 | // Step 1: Extract events from multiple tool calls |
| LOW | tests/session/session-pipeline.test.ts | 68 | // Step 2: Insert all events into DB |
| LOW | tests/session/session-pipeline.test.ts | 73 | // Step 3: Build snapshot from stored events |
| LOW | tests/session/session-pipeline.test.ts | 77 | // Step 4: Upsert resume |
| LOW | tests/session/session-pipeline.test.ts | 80 | // Step 5: Verify resume XML structure |
| LOW | tests/session/session-pipeline.test.ts | 85 | // Step 6: Verify XML wrapper |
| LOW | tests/session/session-pipeline.test.ts | 89 | // Step 8: Verify resume consumed lifecycle |
| LOW | src/cli.ts | 1075 | // Step 0: Sync the marketplace clone (#418). |
| LOW | src/cli.ts | 1117 | // Step 1: Pull latest from GitHub |
| LOW | src/cli.ts | 1177 | // Step 2: Install dependencies + build |
| LOW | src/cli.ts | 1193 | // Step 3: Update in-place |
| LOW | src/cli.ts | 1575 | // Step 3: Backup settings — adapter-aware |
| LOW | src/cli.ts | 1590 | // Step 4: Configure hooks — adapter-aware |
| LOW | src/cli.ts | 1604 | // Step 5: Set hook script permissions — adapter-aware |
| LOW | src/cli.ts | 1629 | // Step 6: Report |
| LOW | src/cli.ts | 1648 | // Step 7: Run doctor |
| LOW | src/store.ts | 1314 | // Step 0: Auto-refresh stale file-backed sources before searching |
| LOW | src/store.ts | 1317 | // Step 1: RRF fusion (porter OR + trigram OR → merge) |
| LOW | src/store.ts | 1324 | // Step 2: Fuzzy correction → RRF re-run |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/opencode-plugin.test.ts | 1252 | async function createPluginWithRejectingLog(tempDir: string) { |
| LOW | tests/core/server.test.ts | 952 | function spawnServerWithProjectDir(projectDirEnv: string): ChildProcess { |
| LOW | tests/core/server.test.ts | 5985 | function spawnServerWithProjectDir(projectDirEnv: string): ChildProcess { |
| LOW | tests/codex/marketplace-layout.test.ts | 85 | function resolveLocalPluginSourcePath( |
| LOW | tests/adapters/pi-mcp-bridge.test.ts | 839 | function extractTestTerminalEscape(str: string, pos: number): { length: number } | null { |
| LOW | tests/hooks/kiro-hooks.test.ts | 52 | function normalizeProjectPathForSessionHash(projectDir: string): string { |
| LOW | tests/scripts/asymmetric-drift-assert.test.ts | 478 | "export function healSettingsEnabledPlugins() { return { healed: [] }; }", |
| LOW | tests/session/real-bytes-stats.test.ts | 578 | function seedSessionWithProjectDir( |
| LOW | insight/src/components/ui/chart.tsx | 328 | function getPayloadConfigFromPayload( |
| LOW | src/lifecycle.ts | 107 | export function lifecycleGuardIntervalForEnv( |
| LOW | src/security.ts | 559 | function extractPythonSubprocessListArgs(code: string): string[] { |
| LOW | src/server.ts | 105 | export function shouldSuppressMcpToolsForNativePluginHost( |
| LOW | src/server.ts | 171 | function readNativePluginHostSettings(platform: PlatformId): Record<string, unknown> | null { |
| LOW | src/server.ts | 190 | function settingsHasContextModePlugin(settings: Record<string, unknown> | null | undefined): boolean { |
| LOW | src/server.ts | 195 | function settingsHasLegacyContextModeMcp(settings: Record<string, unknown> | null | undefined): boolean { |
| LOW | src/server.ts | 222 | export function emitSuppressionDiagnostic( |
| LOW | src/server.ts | 276 | export function registerEmptyToolsListHandler(target: McpServer = server): void { |
| LOW | src/server.ts | 401 | export function resolveSessionIdFromSessionDB(opts?: { |
| LOW | src/server.ts | 516 | function configDirEnvForSessionSegments(segments: string[]): string | undefined { |
| LOW | src/server.ts | 1296 | export function buildBatchNodeOptionsPrefix(shellPath: string, preloadPath: string): string { |
| LOW | src/util/project-dir.ts | 90 | export function resolveProjectDirFromTranscript(opts: { |
| LOW | src/util/claude-config.ts | 40 | export function resolveClaudeGlobalSettingsPath( |
| LOW | src/util/claude-config.ts | 74 | export function resolveAdapterGlobalSettingsPaths( |
| LOW | src/util/plugin-cache-integrity.ts | 120 | export function checkPluginCacheIntegritySync( |
| LOW | src/util/plugin-cache-integrity.ts | 165 | export async function ensurePluginCacheIntegrityLoaded(): Promise<void> { |
| LOW | src/adapters/base.ts | 52 | export function resolveContextModeDataRoot( |
| LOW | src/adapters/detect.ts | 44 | function claudeCodeHasContextModePlugin(): boolean { |
| LOW | src/adapters/openclaw/plugin.ts | 224 | function getOrCreateDB(projectDir: string): OpenClawSessionDB { |
| LOW | src/adapters/codex/index.ts | 171 | function hasDeprecatedCodexHooksFeature(raw: string): boolean { |
| LOW | src/adapters/omp/plugin.ts | 94 | function getOrCreateDB(projectDir: string): SessionDB { |
| LOW | src/adapters/pi/mcp-bridge.ts | 85 | export function resolveJsRuntimeForBridge(deps: ResolveDeps = {}): string | null { |
| LOW | src/adapters/pi/mcp-bridge.ts | 322 | function createContextModeCallRenderer(toolName: string) { |
| LOW | src/adapters/pi/mcp-bridge.ts | 333 | function createContextModeResultRenderer(toolName: string) { |
| LOW | src/adapters/pi/extension.ts | 227 | function getOrCreateDB(projectDir: string): SessionDB { |
| LOW | src/adapters/opencode/plugin.ts | 203 | function systemHasRoutingInstructions(system: string[]): boolean { |
| LOW | src/session/snapshot.ts | 421 | function buildRecentMessagesSection(userPromptEvents: StoredEvent[]): string { |
| LOW | src/session/extract.ts | 1183 | export function resetErrorResolutionState(): void { |
| LOW | src/session/analytics.ts | 1049 | export function getContentBytesForSession( |
| LOW | src/session/analytics.ts | 1096 | export function getContentBytesAllSessions( |
| LOW | src/session/analytics.ts | 1525 | export function getMultiAdapterLifetimeStats(opts?: { |
| LOW | src/session/analytics.ts | 1567 | export function getMultiAdapterRealBytesStats(opts?: { |
| LOW | src/session/db.ts | 217 | export function formatStorageDirectoryError(err: StorageDirectoryError): string { |
| LOW | src/session/db.ts | 221 | export function describeStorageDirectorySource(dir: ResolvedStorageDir): string { |
| LOW | src/session/db.ts | 227 | export function clearStorageDirectoryCheckCacheForTests(): void { |
| LOW | src/session/db.ts | 98 | function resolveConfigDirForDefaultSession( |
| LOW | src/session/db.ts | 263 | function storageDirectoryErrorMessage( |
| LOW | src/session/db.ts | 275 | function ignoredStorageOverrideHint(metadata: Pick<ResolvedStorageDir, "ignoredEnvVar" | "ignoredReason">): string | nul |
| LOW | src/session/db.ts | 694 | export function applyMissingSessionEventsColumns(db: { |
| LOW | src/session/db.ts | 732 | export function ensureSessionEventsSchema( |
| LOW | src/session/project-attribution.ts | 158 | function inferProjectFromAbsolutePath( |
| LOW | src/session/project-attribution.ts | 225 | export function resolveProjectAttribution( |
| LOW | src/session/project-attribution.ts | 246 | export function resolveProjectAttributions( |
| LOW | src/session/project-attribution.ts | 279 | export function isHighConfidenceAttribution(confidence: number): boolean { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/stale-detection.test.ts | 62 | writeFileSync(filePath, "# Database Guide\n\nPostgreSQL connection pooling best practices for production workloads." |
| MEDIUM | tests/session/session-extract.test.ts | 791 | // expressed as a robust universal-rule detector (issue #535). They are |
| MEDIUM | .github/workflows/tier2-e2e-smoke.yml | 3 | # Tier-1 (mock harness, no LLM, free) lives in tests/pi-extension.test.ts and |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/store.test.ts | 1198 | `Paragraph ${i + 1}. ${"Lorem ipsum dolor sit amet. ".repeat(20)}` |
| LOW | tests/store.test.ts | 1198 | `Paragraph ${i + 1}. ${"Lorem ipsum dolor sit amet. ".repeat(20)}` |
| LOW | tests/core/search.test.ts | 1797 | const padding = preamble.padEnd(2000, " Lorem ipsum dolor sit amet."); |
| LOW | tests/core/search.test.ts | 1797 | const padding = preamble.padEnd(2000, " Lorem ipsum dolor sit amet."); |
| LOW | tests/core/search.test.ts | 2595 | "Lorem ipsum dolor sit amet. The cache invalidation pipeline runs on every write.", |
| LOW | tests/core/search.test.ts | 2595 | "Lorem ipsum dolor sit amet. The cache invalidation pipeline runs on every write.", |
| LOW | tests/core/search.test.ts | 2600 | "Lorem ipsum dolor sit amet. The invalidation step is followed by a cache flush.", |
| LOW | tests/core/search.test.ts | 2600 | "Lorem ipsum dolor sit amet. The invalidation step is followed by a cache flush.", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/context-comparison.ts | 261 | print(f"Error rate: {len(errors)}/{len(rows)} ({len(errors)/len(rows)*100:.1f}%)") |
| MEDIUM | tests/use-cases.ts | 411 | print(f"Error rate: {len(errors)}/{len(rows)} ({len(errors)/len(rows)*100:.1f}%)") |