This report presents the forensic synthetic code analysis of lukilabs/craft-agents-oss, a TypeScript project with 6,944 GitHub stars. SynthScan v2.0 examined 396,455 lines of code across 1696 source files, recording 869 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 3.3 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 869 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/electron-dev.ts | 53 | async function ensureBundledUvForCurrentPlatform(): Promise<void> { | CODE |
| LOW | packages/ui/src/components/ui/StyledDropdown.tsx | 29 | export function mirrorHoverToOpenStateClasses(className?: string): string | undefined { | CODE |
| LOW | …ges/ui/src/components/ui/IslandFollowUpContentView.tsx | 44 | export function IslandFollowUpContentView({ | CODE |
| LOW | packages/ui/src/components/ui/Island.tsx | 158 | function installGlobalScrollBlockers(): () => void { | CODE |
| LOW | packages/ui/src/components/chat/turn-utils.ts | 183 | export function shouldShowThinkingIndicator(phase: TurnPhase, isBuffering: boolean): boolean { | CODE |
| LOW | packages/ui/src/components/chat/turn-utils.ts | 297 | function extractTodosFromActivities(activities: ActivityItem[]): TodoItem[] | undefined { | CODE |
| LOW | packages/ui/src/components/chat/follow-up-helpers.ts | 12 | export function extractAnnotationSelectedText(annotation: AnnotationV1, messageContent: string): string { | CODE |
| LOW | packages/ui/src/components/chat/TurnCard.tsx | 140 | function computeEditWriteDiffStats( | CODE |
| LOW | packages/ui/src/components/chat/TurnCard.tsx | 624 | function extractActionFromDisplayName(iconName: string, llmName: string): string { | CODE |
| LOW | packages/ui/src/components/chat/TurnCard.tsx | 1500 | function createAnnotationIndexBadge(index: number): HTMLSpanElement { | CODE |
| LOW | packages/ui/src/components/markdown/diff-normalize.ts | 51 | function containsUnifiedFileBreakCandidate(lines: string[]): boolean { | CODE |
| LOW | …ages/ui/src/components/markdown/annotation-resolver.ts | 32 | function normalizeWhitespaceWithMap(input: string): NormalizedText { | CODE |
| LOW | …es/ui/src/components/markdown/TiptapMarkdownEditor.tsx | 69 | export function preprocessMarkdownForOfficial(markdown: string): string { | CODE |
| LOW | …es/ui/src/components/markdown/TiptapMarkdownEditor.tsx | 96 | export function postprocessMarkdownFromOfficial(markdown: string): string { | CODE |
| LOW | …es/ui/src/components/markdown/TiptapMarkdownEditor.tsx | 175 | async function handleDroppedOrPastedFiles( | CODE |
| LOW | packages/ui/src/components/markdown/link-target.ts | 39 | export function resolveMarkdownLinkTarget(target: string): ResolvedMarkdownLinkTarget { | CODE |
| LOW | packages/ui/src/components/markdown/link-target.ts | 57 | export function classifyMarkdownLinkTarget(target: string): 'file' | 'url' { | CODE |
| LOW | …/ui/src/components/markdown/MarkdownDatatableBlock.tsx | 161 | function computeNumericGranularities(values: number[], type: 'number' | 'currency' | 'percent'): GranularityOption[] { | CODE |
| LOW | …/ui/src/components/markdown/MarkdownDatatableBlock.tsx | 211 | function computeGranularityOptions(data: DatatableData): Map<string, GranularityOption[]> { | CODE |
| LOW | …ages/ui/src/components/markdown/CollapsibleSection.tsx | 9 | function AnimatedCollapsibleContent({ isOpen, children }: { isOpen: boolean; children: React.ReactNode }) { | CODE |
| LOW | packages/ui/src/components/markdown/mermaid-source.ts | 51 | export function getFirstMermaidDiagramLine(code: string): string | null { | CODE |
| LOW | packages/ui/src/components/markdown/TiptapSlashMenu.ts | 148 | function insertRichBlockAndOpenEditor( | CODE |
| LOW | packages/ui/src/components/markdown/TiptapSlashMenu.ts | 168 | function findLastCodeLanguageInDoc(editor: Editor): string | null { | CODE |
| LOW | packages/ui/src/components/markdown/TiptapSlashMenu.ts | 182 | function resolvePreferredCodeLanguage(editor: Editor): string { | CODE |
| LOW | packages/ui/src/components/markdown/TiptapSlashMenu.ts | 203 | function insertCodeBlockWithPlaceholder(editor: Editor, insertPos?: number) { | CODE |
| LOW | …src/components/markdown/CollapsibleMarkdownContext.tsx | 32 | export function CollapsibleMarkdownProvider({ children }: CollapsibleMarkdownProviderProps) { | CODE |
| LOW | …ui/src/components/annotations/interaction-selectors.ts | 3 | export function getAnnotationInteractionSourceKey(state: AnnotationInteractionState, messageId?: string): string { | CODE |
| LOW | …ui/src/components/annotations/interaction-selectors.ts | 17 | export function getAnnotationInteractionAnchor(state: AnnotationInteractionState): { x: number; y: number } | null { | CODE |
| LOW | …ents/annotations/use-annotation-island-presentation.ts | 33 | export function decideAnnotationIslandPresentation( | CODE |
| LOW | …ents/annotations/use-annotation-island-presentation.ts | 44 | export function useAnnotationIslandPresentation({ | CODE |
| LOW | …i/src/components/annotations/annotation-host-config.ts | 21 | export function shouldRenderAnnotationIslandInPortal(host: AnnotationHost): boolean { | CODE |
| LOW | packages/ui/src/components/annotations/island-motion.ts | 31 | export function getDefaultIslandWidthEstimate(): number { | CODE |
| LOW | packages/ui/src/components/annotations/island-motion.ts | 35 | export function buildSelectionEntryTransition(from: PointerSnapshot | null, to: PointerSnapshot | null): IslandTransitio | CODE |
| LOW | packages/ui/src/components/annotations/island-motion.ts | 64 | export function buildAnnotationChipEntryTransition(): IslandTransitionConfig { | CODE |
| LOW | …s/annotations/use-annotation-interaction-controller.ts | 21 | export function useAnnotationInteractionController() { | CODE |
| LOW | packages/ui/src/components/annotations/block-markers.ts | 4 | export function clearBlockAnnotationMarkers(root: HTMLElement): void { | CODE |
| LOW | packages/ui/src/components/annotations/block-markers.ts | 13 | export function applyBlockAnnotationMarker(root: HTMLElement, annotation: AnnotationV1): void { | CODE |
| LOW | …es/ui/src/components/annotations/interaction-policy.ts | 16 | export function getAnnotationChipInteraction(annotation?: AnnotationV1 | null): AnnotationChipInteraction { | CODE |
| LOW⚡ | …es/ui/src/components/annotations/interaction-policy.ts | 28 | export function isAnnotationChipClickable(annotation?: AnnotationV1 | null): boolean { | CODE |
| LOW⚡ | …es/ui/src/components/annotations/interaction-policy.ts | 32 | export function getAnnotationChipOpenMode(): 'view' { | CODE |
| LOW⚡ | …es/ui/src/components/annotations/interaction-policy.ts | 41 | export function shouldIgnoreSelectionMouseUpTarget(target: EventTarget | null): boolean { | CODE |
| LOW | …kages/ui/src/components/annotations/annotation-core.ts | 18 | export function hasExistingTextRangeAnnotation( | CODE |
| LOW | …kages/ui/src/components/annotations/annotation-core.ts | 32 | export function createSelectionPreviewAnnotation( | CODE |
| LOW | …kages/ui/src/components/annotations/annotation-core.ts | 66 | export function createTextSelectionAnnotation( | CODE |
| LOW | …ui/src/components/annotations/island-dismiss-policy.ts | 9 | export function resolveIslandOutsideDismissAction({ | CODE |
| LOW | …rc/components/annotations/interaction-state-machine.ts | 47 | export function annotationInteractionReducer( | CODE |
| LOW | …/components/annotations/annotation-overlay-geometry.ts | 31 | export function computeAnnotationOverlayGeometry({ | CODE |
| LOW | …ges/ui/src/components/annotations/selection-restore.ts | 8 | export function restoreDomSelectionFromOffsets( | CODE |
| LOW | …ges/ui/src/components/annotations/selection-restore.ts | 37 | export function scheduleDomSelectionRestore( | CODE |
| LOW | …kages/ui/src/components/annotations/follow-up-state.ts | 25 | export function getAnnotationFollowUpState(annotation: AnnotationV1): AnnotationFollowUpState { | CODE |
| LOW | …kages/ui/src/components/annotations/follow-up-state.ts | 50 | export function formatAnnotationFollowUpTooltipText(annotation: AnnotationV1, maxLength = 180): string { | CODE |
| LOW | …components/annotations/use-annotation-island-events.ts | 41 | export function useAnnotationIslandEvents({ | CODE |
| LOW | …src/components/overlay/AnnotatableMarkdownDocument.tsx | 63 | export function AnnotatableMarkdownDocument({ | CODE |
| LOW | …src/components/overlay/FullscreenOverlayBaseHeader.tsx | 195 | export function FullscreenOverlayBaseHeader({ | CODE |
| LOW | …omponents/overlay/DocumentFormattedMarkdownOverlay.tsx | 61 | export function DocumentFormattedMarkdownOverlay({ | CODE |
| LOW | …es/ui/src/components/overlay/FullscreenOverlayBase.tsx | 88 | export function handleFullscreenEscapeWithStack(): boolean { | CODE |
| LOW | packages/ui/src/lib/dismissible-layer-bridge.ts | 37 | export function setDismissibleLayerBridge(bridge: DismissibleLayerBridge | null): void { | CODE |
| LOW | packages/ui/src/lib/dismissible-layer-bridge.ts | 41 | export function getDismissibleLayerBridge(): DismissibleLayerBridge | null { | CODE |
| LOW | packages/session-tools-core/src/validation.ts | 121 | export function validateJsonFileHasFields( | CODE |
| LOW | packages/session-tools-core/src/validation.ts | 307 | function getFirstMermaidDiagramLine(code: string): string { | CODE |
| 414 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/install-server.sh | 25 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/install-server.sh | 27 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/install-server.sh | 38 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/install-server.sh | 40 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/install-server.sh | 50 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/install-server.sh | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/install-server.sh | 64 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/install-server.sh | 66 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/install-server.sh | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/install-server.sh | 73 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/docker-smoke-test.sh | 2 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | scripts/docker-smoke-test.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | packages/ui/src/components/ui/StyledDropdown.tsx | 97 | // ── Content ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/ui/StyledDropdown.tsx | 135 | // ── Item ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/ui/StyledDropdown.tsx | 164 | // ── Separator ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/ui/StyledDropdown.tsx | 178 | // ── Sub-menu trigger ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/ui/StyledDropdown.tsx | 201 | // ── Sub-menu content ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/ui/StyledDropdown.tsx | 231 | // ── Shortcut ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownJsonBlock.tsx | 24 | // ── Themes (same as JSONPreviewOverlay) ──────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownJsonBlock.tsx | 40 | // ── Deep parse helper (same as JSONPreviewOverlay) ───────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownJsonBlock.tsx | 77 | // ── Error boundary ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownJsonBlock.tsx | 107 | // ── Helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownJsonBlock.tsx | 114 | // ── Main component ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/ui/src/components/markdown/MarkdownDatatableBlock.tsx | 50 | // ── Types ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/ui/src/components/markdown/MarkdownDatatableBlock.tsx | 74 | // ── Cell formatting ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/ui/src/components/markdown/MarkdownDatatableBlock.tsx | 118 | // ── Sort icon ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/ui/src/components/markdown/MarkdownDatatableBlock.tsx | 137 | // ── Grouping granularity ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/ui/src/components/markdown/MarkdownDatatableBlock.tsx | 272 | // ── Error boundary ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/ui/src/components/markdown/MarkdownDatatableBlock.tsx | 289 | // ── Main component ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownDiffBlock.tsx | 25 | // ── Custom element + theme registration (same as ShikiDiffViewer) ────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownDiffBlock.tsx | 42 | // ── Helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownDiffBlock.tsx | 53 | // ── Error boundary ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownDiffBlock.tsx | 83 | // ── Main component ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …i/src/components/markdown/MarkdownSpreadsheetBlock.tsx | 35 | // ── Types ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …i/src/components/markdown/MarkdownSpreadsheetBlock.tsx | 58 | // ── Cell formatting ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …i/src/components/markdown/MarkdownSpreadsheetBlock.tsx | 96 | // ── Error boundary ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …i/src/components/markdown/MarkdownSpreadsheetBlock.tsx | 113 | // ── Main component ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx | 40 | // ── Types ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx | 53 | // ── Error boundary ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx | 70 | // ── HTML preprocessing ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …kages/ui/src/components/markdown/MarkdownHtmlBlock.tsx | 89 | // ── Main component ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/markdown/table-export.ts | 10 | // ── Types ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/markdown/table-export.ts | 18 | // ── Markdown ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/markdown/table-export.ts | 35 | // ── CSV (RFC 4180) ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/markdown/table-export.ts | 55 | // ── XLSX ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/ui/src/components/markdown/table-export.ts | 101 | // ── XLSX Styles ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ckages/ui/src/components/markdown/MarkdownPdfBlock.tsx | 46 | // ── Types ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ckages/ui/src/components/markdown/MarkdownPdfBlock.tsx | 59 | // ── Error boundary ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ckages/ui/src/components/markdown/MarkdownPdfBlock.tsx | 76 | // ── Main component ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/ui/src/components/overlay/MultiDiffPreviewOverlay.tsx | 164 | // ── Fade-in reveal ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/shared/src/agent/claude-agent.ts | 518 | // ── WS2 persistent streaming-input query state (flag ON only) ───────────── | COMMENT |
| MEDIUM | packages/shared/src/agent/claude-agent.ts | 1511 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | packages/shared/src/agent/claude-agent.ts | 1513 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | packages/shared/src/agent/claude-agent.ts | 2143 | // ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/shared/src/agent/claude-agent.ts | 2150 | // ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 6 | // ── Copilot model types ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 15 | // ── Direct HTTP approach ───────────────────────────────────────────── | COMMENT |
| MEDIUM | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 156 | // ── Tier 1: Direct HTTP API ────────────────────────────────────── | COMMENT |
| MEDIUM | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 173 | // ── Tier 2: Pi SDK static catalog (last resort) ────────────────── | COMMENT |
| MEDIUM | packages/shared/src/prompts/system.ts | 76 | // ── Context file cache ────────────────────────────────────────────────── | COMMENT |
| 65 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | scripts/build-server.ts | 830 | // Step 1: Clean | COMMENT |
| LOW⚡ | scripts/build-server.ts | 837 | // Step 2: Download Bun runtime | COMMENT |
| LOW⚡ | scripts/build-server.ts | 841 | // Step 3: Download uv | COMMENT |
| LOW⚡ | scripts/build-server.ts | 845 | // Step 4: Build MCP servers | COMMENT |
| LOW⚡ | scripts/build-server.ts | 864 | // Step 5: Assemble resources | COMMENT |
| LOW⚡ | scripts/build-server.ts | 868 | // Step 6: Copy production node_modules | COMMENT |
| LOW⚡ | scripts/build-server.ts | 872 | // Step 7: Copy workspace packages | COMMENT |
| LOW⚡ | scripts/build-server.ts | 877 | // Step 8: Create entry scripts + Docker files | COMMENT |
| LOW⚡ | packages/shared/src/utils/logo.ts | 351 | // Step 1: Try full domain first (e.g., mail.google.com) | COMMENT |
| LOW⚡ | packages/shared/src/utils/logo.ts | 359 | // Step 2: Try root domain (e.g., google.com) | COMMENT |
| LOW⚡ | packages/shared/src/utils/logo.ts | 365 | // Step 3: Fall back to Google Favicon V2 API (uses full domain for better results) | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 227 | // Step 1: Strip only CR/LF (standard base64 line wrapping per RFC 2045). | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 231 | // Step 2: Strict charset — detect alphabet variant. | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 238 | // Step 3: Normalize to standard alphabet for decoding | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 243 | // Step 4: Auto-pad to make length divisible by 4 | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 248 | // Step 5: Decode | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 257 | // Step 6: Canonical roundtrip — re-encode and compare to padded input. | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 261 | // Step 7: Binary-likeness check (unchanged) | COMMENT |
| LOW⚡ | packages/shared/src/agent/mode-manager.ts | 1128 | // Step 3: Use bash AST-based validation | COMMENT |
| LOW⚡ | packages/shared/src/agent/mode-manager.ts | 1137 | // Step 3: Convert AST rejection reason to BashRejectionReason | COMMENT |
| LOW | packages/shared/src/agent/mode-manager.ts | 1086 | // Step 1: Check for dangerous control characters (before parsing) | COMMENT |
| LOW | packages/shared/src/agent/mode-manager.ts | 1098 | // Step 2: Determine if this is a PowerShell command | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 173 | // Step 1: Permission mode check | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 250 | // Step 2: Source blocking | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 328 | // Step 3: Prerequisite check | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 384 | // Step 4: call_llm interception | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 412 | // Step 5: Input transforms | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 682 | // Step 6: Ask-mode prompt decision | COMMENT |
| LOW⚡ | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 48 | // Step 1: Exchange GitHub OAuth token → Copilot API token | COMMENT |
| LOW⚡ | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 52 | // Step 2: Extract base URL from token | COMMENT |
| LOW⚡ | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 60 | // Step 3: GET /models | COMMENT |
| LOW | …hared/src/agent/__tests__/claude-event-adapter.test.ts | 763 | // Step 1: tool_start via stream event | COMMENT |
| LOW | …hared/src/agent/__tests__/claude-event-adapter.test.ts | 774 | // Step 2: assistant message confirms tool (deduped) | COMMENT |
| LOW | …hared/src/agent/__tests__/claude-event-adapter.test.ts | 786 | // Step 3: user message with tool result | COMMENT |
| LOW⚡ | …ed/src/sources/__tests__/token-refresh-manager.test.ts | 569 | // Step 1: getSourcesNeedingRefresh includes the expired source | COMMENT |
| LOW⚡ | …ed/src/sources/__tests__/token-refresh-manager.test.ts | 573 | // Step 2: refreshSources refreshes and restores auth state | COMMENT |
| LOW⚡ | …ed/src/sources/__tests__/token-refresh-manager.test.ts | 578 | // Step 3: Verify auth state is restored | COMMENT |
| LOW | packages/server-core/src/services/image-utils.ts | 128 | // Step 1: Compute target dimensions if resize needed | COMMENT |
| LOW | packages/server-core/src/services/image-utils.ts | 140 | // Step 2: Encode — try preferred format first | COMMENT |
| LOW | packages/server-core/src/services/image-utils.ts | 176 | // Step 5: Give up | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1273 | // Step 1: Store attachments and get persistent metadata | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1315 | // Step 2: Create processed attachments for Claude | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1341 | // Step 3: Extract badges from mentions (sources/skills) with embedded icons | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1383 | // Step 5: Create user message with StoredAttachments (for UI display) | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1409 | // Step 6: Send to Claude with processed attachments + stored attachments for persistence | COMMENT |
| LOW⚡ | …/electron/src/main/__tests__/sessions-sanitize.test.ts | 176 | // Step 1: badge substitution (as done in sessions.ts) | COMMENT |
| LOW⚡ | …/electron/src/main/__tests__/sessions-sanitize.test.ts | 183 | // Step 2: sanitize remaining mentions | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | scripts/build-server.ts | 830 | // Step 1: Clean | COMMENT |
| LOW⚡ | scripts/build-server.ts | 837 | // Step 2: Download Bun runtime | COMMENT |
| LOW⚡ | scripts/build-server.ts | 841 | // Step 3: Download uv | COMMENT |
| LOW⚡ | scripts/build-server.ts | 845 | // Step 4: Build MCP servers | COMMENT |
| LOW⚡ | scripts/build-server.ts | 864 | // Step 5: Assemble resources | COMMENT |
| LOW⚡ | scripts/build-server.ts | 868 | // Step 6: Copy production node_modules | COMMENT |
| LOW⚡ | scripts/build-server.ts | 872 | // Step 7: Copy workspace packages | COMMENT |
| LOW⚡ | scripts/build-server.ts | 877 | // Step 8: Create entry scripts + Docker files | COMMENT |
| LOW⚡ | packages/shared/src/utils/logo.ts | 351 | // Step 1: Try full domain first (e.g., mail.google.com) | COMMENT |
| LOW⚡ | packages/shared/src/utils/logo.ts | 359 | // Step 2: Try root domain (e.g., google.com) | COMMENT |
| LOW⚡ | packages/shared/src/utils/logo.ts | 365 | // Step 3: Fall back to Google Favicon V2 API (uses full domain for better results) | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 227 | // Step 1: Strip only CR/LF (standard base64 line wrapping per RFC 2045). | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 231 | // Step 2: Strict charset — detect alphabet variant. | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 238 | // Step 3: Normalize to standard alphabet for decoding | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 243 | // Step 4: Auto-pad to make length divisible by 4 | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 248 | // Step 5: Decode | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 257 | // Step 6: Canonical roundtrip — re-encode and compare to padded input. | COMMENT |
| LOW⚡ | packages/shared/src/utils/binary-detection.ts | 261 | // Step 7: Binary-likeness check (unchanged) | COMMENT |
| LOW⚡ | packages/shared/src/agent/mode-manager.ts | 1128 | // Step 3: Use bash AST-based validation | COMMENT |
| LOW⚡ | packages/shared/src/agent/mode-manager.ts | 1137 | // Step 3: Convert AST rejection reason to BashRejectionReason | COMMENT |
| LOW | packages/shared/src/agent/mode-manager.ts | 1086 | // Step 1: Check for dangerous control characters (before parsing) | COMMENT |
| LOW | packages/shared/src/agent/mode-manager.ts | 1098 | // Step 2: Determine if this is a PowerShell command | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 173 | // Step 1: Permission mode check | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 250 | // Step 2: Source blocking | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 328 | // Step 3: Prerequisite check | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 384 | // Step 4: call_llm interception | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 412 | // Step 5: Input transforms | COMMENT |
| LOW | …c/agent/core/__tests__/pre-tool-use-checks.isolated.ts | 682 | // Step 6: Ask-mode prompt decision | COMMENT |
| LOW⚡ | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 48 | // Step 1: Exchange GitHub OAuth token → Copilot API token | COMMENT |
| LOW⚡ | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 52 | // Step 2: Extract base URL from token | COMMENT |
| LOW⚡ | …ckages/shared/src/agent/backend/internal/drivers/pi.ts | 60 | // Step 3: GET /models | COMMENT |
| LOW | …hared/src/agent/__tests__/claude-event-adapter.test.ts | 763 | // Step 1: tool_start via stream event | COMMENT |
| LOW | …hared/src/agent/__tests__/claude-event-adapter.test.ts | 774 | // Step 2: assistant message confirms tool (deduped) | COMMENT |
| LOW | …hared/src/agent/__tests__/claude-event-adapter.test.ts | 786 | // Step 3: user message with tool result | COMMENT |
| LOW⚡ | …ed/src/sources/__tests__/token-refresh-manager.test.ts | 569 | // Step 1: getSourcesNeedingRefresh includes the expired source | COMMENT |
| LOW⚡ | …ed/src/sources/__tests__/token-refresh-manager.test.ts | 573 | // Step 2: refreshSources refreshes and restores auth state | COMMENT |
| LOW⚡ | …ed/src/sources/__tests__/token-refresh-manager.test.ts | 578 | // Step 3: Verify auth state is restored | COMMENT |
| LOW | packages/server-core/src/services/image-utils.ts | 128 | // Step 1: Compute target dimensions if resize needed | COMMENT |
| LOW | packages/server-core/src/services/image-utils.ts | 140 | // Step 2: Encode — try preferred format first | COMMENT |
| LOW | packages/server-core/src/services/image-utils.ts | 176 | // Step 5: Give up | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1273 | // Step 1: Store attachments and get persistent metadata | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1315 | // Step 2: Create processed attachments for Claude | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1341 | // Step 3: Extract badges from mentions (sources/skills) with embedded icons | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1383 | // Step 5: Create user message with StoredAttachments (for UI display) | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 1409 | // Step 6: Send to Claude with processed attachments + stored attachments for persistence | COMMENT |
| LOW⚡ | …/electron/src/main/__tests__/sessions-sanitize.test.ts | 176 | // Step 1: badge substitution (as done in sessions.ts) | COMMENT |
| LOW⚡ | …/electron/src/main/__tests__/sessions-sanitize.test.ts | 183 | // Step 2: sanitize remaining mentions | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 177 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 232 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 250 | except Exception: | CODE |
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 272 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 309 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 369 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/docx_tool.py | 152 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/docx_tool.py | 204 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/docx_tool.py | 284 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/docx_tool.py | 322 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/docx_tool.py | 384 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/markitdown_cli.py | 116 | except Exception: | CODE |
| LOW | apps/electron/resources/scripts/markitdown_cli.py | 126 | except Exception as e: | CODE |
| LOW⚡ | apps/electron/resources/scripts/pdf_tool.py | 698 | except Exception as e: | CODE |
| LOW⚡ | apps/electron/resources/scripts/pdf_tool.py | 969 | except Exception as e: | CODE |
| LOW⚡ | apps/electron/resources/scripts/pdf_tool.py | 1175 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 452 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 493 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 549 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 580 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 614 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 637 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 674 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 739 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 781 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 810 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 842 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 871 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 913 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 992 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 1012 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 1131 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 1212 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 1235 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 1266 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 1315 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/doc_diff.py | 66 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/doc_diff.py | 227 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/ical_tool.py | 167 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/ical_tool.py | 275 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/ical_tool.py | 366 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 119 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 149 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 166 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 200 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 237 | except Exception: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 239 | except Exception: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 251 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 307 | except Exception: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 321 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/img_tool.py | 364 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pptx_tool.py | 109 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pptx_tool.py | 295 | except Exception as e: | CODE |
| LOW | apps/electron/resources/scripts/pptx_tool.py | 358 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bunfig.toml | 1 | preload = ["./packages/shared/src/unified-network-interceptor.ts"] | COMMENT |
| LOW | scripts/install-server.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/docker-smoke-test.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | packages/ui/src/components/chat/TurnCard.tsx | 2921 | return null | COMMENT |
| LOW | …es/ui/src/components/markdown/MarkdownMermaidBlock.tsx | 21 | // | COMMENT |
| LOW | packages/ui/src/components/markdown/Markdown.tsx | 181 | ) | COMMENT |
| LOW | packages/ui/src/components/markdown/table-export.ts | 101 | // ── XLSX Styles ────────────────────────────────────────────────────────────── | COMMENT |
| LOW | packages/core/src/types/message.ts | 281 | isStreaming?: boolean; | COMMENT |
| LOW | packages/shared/src/unified-network-interceptor.ts | 981 | }> | undefined; | COMMENT |
| LOW | packages/shared/src/agent/mode-manager.ts | 1001 | // Double-quoted string: fix the critical \" issue for Windows paths. | COMMENT |
| LOW | packages/shared/src/agent/base-agent.ts | 201 | // ============================================================ | COMMENT |
| LOW | packages/shared/src/agent/tool-matching.ts | 281 | // Detect background tasks/shells from results | COMMENT |
| LOW | packages/shared/src/agent/tool-matching.ts | 421 | // 1. Explicit `run_in_background: true` in the tool input. | COMMENT |
| LOW | packages/shared/src/agent/claude-agent.ts | 1581 | disallowedTools, | COMMENT |
| LOW | packages/shared/src/agent/backend/pi/event-adapter.ts | 81 | // Mini model ID for call_llm display default (#596). | COMMENT |
| LOW | packages/pi-agent-server/src/index.ts | 1121 | // Log API errors for debugging and attach provider-native turn anchor for branch cutoffs. | COMMENT |
| LOW | packages/pi-agent-server/src/index.ts | 1341 | COMMENT | |
| LOW | …er-core/src/sessions/sendmessage-oauth-refresh.test.ts | 1 | import { afterEach, beforeEach, describe, expect, it } from 'bun:test' | COMMENT |
| LOW | …r-core/src/sessions/refresh-connection-runtime.test.ts | 1 | import { afterEach, beforeEach, describe, expect, it, jest } from 'bun:test' | COMMENT |
| LOW | packages/server-core/src/sessions/SessionManager.ts | 401 | return createTokenGetter(manager, source) | COMMENT |
| LOW | packages/server-core/src/sessions/SessionManager.ts | 881 | // Model to use for this session (overrides global config if set) | COMMENT |
| LOW | packages/server-core/src/sessions/SessionManager.ts | 921 | // Map of shellId -> command for killing background shells | COMMENT |
| LOW | packages/server-core/src/sessions/SessionManager.ts | 5721 | // If currently processing, behavior depends on the connection's | COMMENT |
| LOW | …c/sessions/execute-prompt-automation-test-mode.test.ts | 1 | import { afterEach, beforeEach, describe, expect, it } from 'bun:test' | COMMENT |
| LOW | packages/server-core/src/handlers/rpc/tasks.ts | 201 | ...(spec.defaults?.permissionMode ? { permissionMode: spec.defaults.permissionMode } : {}), | COMMENT |
| LOW | packages/server-core/src/handlers/rpc/sessions.ts | 201 | COMMENT | |
| LOW | apps/webui/src/adapter/web-api.ts | 241 | // The OAuth provider redirects through the relay to our server's /api/oauth/callback, | COMMENT |
| LOW | apps/electron/electron-builder.yml | 61 | # and a per-platform optional dependency (`-darwin-arm64`, `-darwin-x64`, etc.) | COMMENT |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 1 | # /// script | COMMENT |
| LOW | apps/electron/scripts/build-dmg.sh | 121 | cp "$TEMP_DIR/${BUN_DOWNLOAD}/bun" "$ELECTRON_DIR/vendor/bun/" | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 221 | } else if (event.type === 'complete' || event.type === 'interrupted' || event.type === 'error') { | COMMENT |
| LOW | apps/electron/src/renderer/App.tsx | 821 | // Listen for session events - uses centralized event processor for consistent state transitions | COMMENT |
| LOW | …lectron/src/renderer/components/app-shell/AppShell.tsx | 1861 | } | COMMENT |
| LOW | …rc/renderer/components/app-shell/kanban/TaskEditor.tsx | 521 | // Create mode seeds the project from the board's active filter (so a new card stays | COMMENT |
| LOW | …ctron/src/renderer/event-processor/handlers/session.ts | 541 | } | COMMENT |
| LOW | apps/electron/src/main/index.ts | 1 | // Load user's shell environment first (before other imports that may use env) | COMMENT |
| LOW | apps/electron/src/main/index.ts | 61 | // Initialize i18n for main process (menus, dialogs, etc.) | COMMENT |
| LOW | apps/electron/src/main/handlers/browser.ts | 181 | } | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/ui/src/components/markdown/linkify.ts | 230 | // (e.g., AI-generated `[commit](https://github.com/...)` → `\`commit\``) | COMMENT |
| HIGH | packages/server-core/src/sessions/SessionManager.ts | 812 | // Session name (user-defined or AI-generated) | COMMENT |
| HIGH | apps/electron/src/renderer/atoms/sessions.ts | 102 | // Include plan messages as final responses (they're AI-generated content) | COMMENT |
| HIGH | apps/electron/src/renderer/utils/session.ts | 123 | // Include plan messages as final responses (they're AI-generated content) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 69 | CODE | |
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 124 | CODE | |
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 188 | CODE | |
| LOW | apps/electron/resources/scripts/xlsx_tool.py | 320 | CODE | |
| LOW | apps/electron/resources/scripts/docx_tool.py | 88 | CODE | |
| LOW | apps/electron/resources/scripts/docx_tool.py | 161 | CODE | |
| LOW | apps/electron/resources/scripts/docx_tool.py | 295 | CODE | |
| LOW | apps/electron/resources/scripts/docx_tool.py | 358 | CODE | |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 71 | CODE | |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 465 | CODE | |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 647 | CODE | |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 684 | CODE | |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 1022 | CODE | |
| LOW | apps/electron/resources/scripts/pdf_tool.py | 1244 | CODE | |
| LOW | apps/electron/resources/scripts/doc_diff.py | 86 | CODE | |
| LOW | apps/electron/resources/scripts/doc_diff.py | 125 | CODE | |
| LOW | apps/electron/resources/scripts/ical_tool.py | 123 | CODE | |
| LOW | apps/electron/resources/scripts/ical_tool.py | 176 | CODE | |
| LOW | apps/electron/resources/scripts/ical_tool.py | 286 | CODE | |
| LOW | apps/electron/resources/scripts/img_tool.py | 76 | CODE | |
| LOW | apps/electron/resources/scripts/img_tool.py | 208 | CODE | |
| LOW | apps/electron/resources/scripts/img_tool.py | 264 | CODE | |
| LOW | apps/electron/resources/scripts/pptx_tool.py | 44 | CODE | |
| LOW | apps/electron/resources/scripts/pptx_tool.py | 165 | CODE | |
| LOW | apps/electron/resources/scripts/pptx_tool.py | 251 | CODE | |
| LOW | apps/electron/resources/scripts/pptx_tool.py | 305 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/shared/src/projects/__tests__/storage.test.ts | 74 | const body = 'TOP-OF-MEMORY ' + 'lorem ipsum dolor sit amet '.repeat(74) + ' BOTTOM-OF-MEMORY'; | CODE |
| LOW | packages/shared/src/projects/__tests__/storage.test.ts | 74 | const body = 'TOP-OF-MEMORY ' + 'lorem ipsum dolor sit amet '.repeat(74) + ' BOTTOM-OF-MEMORY'; | CODE |
| LOW | …ages/shared/src/utils/__tests__/large-response.test.ts | 72 | const eightKTokenText = ('lorem ipsum dolor sit amet ').repeat(1185).slice(0, 32_000); | CODE |
| LOW | …ages/shared/src/utils/__tests__/large-response.test.ts | 72 | const eightKTokenText = ('lorem ipsum dolor sit amet ').repeat(1185).slice(0, 32_000); | CODE |
| LOW | …ages/shared/src/utils/__tests__/large-response.test.ts | 138 | const eightKTokenText = ('lorem ipsum dolor sit amet ').repeat(1185).slice(0, 32_000); | CODE |
| LOW | …ages/shared/src/utils/__tests__/large-response.test.ts | 138 | const eightKTokenText = ('lorem ipsum dolor sit amet ').repeat(1185).slice(0, 32_000); | CODE |
| LOW | …ages/shared/src/utils/__tests__/large-response.test.ts | 239 | ('Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' + | CODE |
| LOW | …ages/shared/src/utils/__tests__/large-response.test.ts | 239 | ('Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' + | CODE |
| LOW | …/shared/src/sources/__tests__/multi-header-e2e.test.ts | 235 | 'X-Auth-Email': 'user@example.com', | CODE |
| LOW | …/shared/src/sources/__tests__/multi-header-e2e.test.ts | 242 | expect(headers['X-Auth-Email']).toBe('user@example.com'); | CODE |
| LOW | …shared/src/sources/__tests__/multi-header-auth.test.ts | 192 | 'X-Auth-Email': 'user@example.com', | CODE |
| LOW | …shared/src/sources/__tests__/multi-header-auth.test.ts | 203 | expect(headers['X-Auth-Email']).toBe('user@example.com'); | CODE |
| LOW | apps/electron/resources/docs/data-tables.md | 35 | { "name": "Acme Corp", "revenue": 4200000, "growth": 0.152, "active": true, "tier": "Enterprise" }, | CODE |
| LOW | apps/electron/resources/docs/data-tables.md | 65 | | `text` | Any string | Plain text | `"John Doe"` | John Doe | | CODE |
| LOW | …tron/src/renderer/playground/registry/edit-popover.tsx | 426 | name: 'placeholder', | CODE |
| LOW | …lectron/src/renderer/playground/registry/turn-card.tsx | 1678 | name: 'Acme Corp', | CODE |
| LOW | …electron/src/renderer/playground/registry/messages.tsx | 473 | email: 'user@example.com', | CODE |
| LOW | …electron/src/renderer/playground/registry/messages.tsx | 860 | email: 'user@example.com', | CODE |
| LOW | apps/electron/src/renderer/playground/registry/chat.tsx | 1289 | name: 'placeholder', | CODE |
| LOW | …n/src/renderer/utils/__tests__/auth-validation.test.ts | 229 | expect(validateBasicAuthCredentials('user@example.com', 'pass', true)).toBe(true) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …ectron/src/main/__tests__/browser-pane-manager.test.ts | 776 | const sendCallsAfterShow = instance.window.webContents.send.mock.calls.slice(sendsBeforeShow) | CODE |
| CRITICAL | …ectron/src/main/__tests__/browser-pane-manager.test.ts | 807 | const sendCallsAfterFinishLoad = instance.window.webContents.send.mock.calls.slice(sendsBeforeFinishLoad) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/messaging-gateway/src/pairing.test.ts | 70 | // Internal access is ugly but cheaper than a fake-clock scaffold. | COMMENT |
| MEDIUM | …ron/src/transport/__tests__/channel-map-parity.test.ts | 36 | // Compile-time guardrails: if these fail, CHANNEL_MAP and ElectronAPI drifted. | COMMENT |
| MEDIUM | apps/electron/src/shared/route-parser.ts | 195 | // Automations navigator - supports type filters (scheduled, event, agentic) | COMMENT |
| MEDIUM | apps/electron/src/shared/route-parser.ts | 201 | // Check for type filter: automations/scheduled, automations/event, automations/agentic | COMMENT |
| MEDIUM | apps/electron/src/shared/route-parser.ts | 314 | // Build base from filter (automations, automations/scheduled, automations/event, automations/agentic) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | apps/electron/resources/docs/sources.md | 393 | "BRAVE_API_KEY": "your-api-key" | CODE |
| HIGH | …lectron/src/renderer/playground/registry/turn-card.tsx | 1747 | Authorization: Bearer YOUR_API_KEY | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ectron/resources/scripts/tests/test_pptx_tool_smoke.py | 1 | CODE | |
| LOW | …electron/resources/scripts/tests/_tool_test_harness.py | 1 | CODE | |
| LOW | …ectron/resources/scripts/tests/test_docx_tool_smoke.py | 1 | CODE | |
| LOW | …lectron/resources/scripts/tests/test_doc_diff_smoke.py | 1 | CODE | |
| LOW | …ctron/resources/scripts/tests/test_markitdown_smoke.py | 1 | CODE | |
| LOW | …lectron/resources/scripts/tests/test_pdf_tool_smoke.py | 8 | CODE | |
| LOW | …lectron/resources/scripts/tests/test_pdf_tool_smoke.py | 15 | CODE | |
| LOW | …ectron/resources/scripts/tests/test_xlsx_tool_smoke.py | 1 | CODE | |
| LOW | …ectron/resources/scripts/tests/test_ical_tool_smoke.py | 1 | CODE | |
| LOW | …lectron/resources/scripts/tests/test_img_tool_smoke.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/shared/src/agent/mode-manager.ts | 1877 | // Check plans folder with robust path containment (prevents sibling-prefix bypasses) | COMMENT |
| MEDIUM | packages/shared/src/agent/mode-manager.ts | 1883 | // Check data folder with robust path containment | COMMENT |
| MEDIUM | apps/electron/src/renderer/App.tsx | 830 | // This is simpler and more robust than checking event types - we just ask | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/docker-smoke-test.sh | 53 | # Check if container is still running | COMMENT |
| LOW | scripts/install-app.sh | 39 | # Check if yq is available (optional, for YAML parsing) | COMMENT |
| LOW | scripts/install-app.sh | 88 | # Check if we're entering a new file entry | COMMENT |
| LOW | scripts/install-app.sh | 118 | # Check if we're entering a new file entry | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …lectron/src/renderer/playground/registry/turn-card.tsx | 1340 | elif model_type == "gradient_boosting": | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ed/src/utils/__tests__/binary-detection-base64.test.ts | 26 | function processData(items: string[]): Map<string, number> { | CODE |
| LOW | packages/server-core/src/webui/node-adapter.ts | 33 | async function handleRequest( | CODE |
| LOW | apps/electron/resources/bridge-mcp-server/index.js | 2721 | function getData($data, { dataLevel, dataNames, dataPathArr }) { | CODE |
| LOW | apps/electron/resources/bridge-mcp-server/index.js | 9034 | function getData($data, { dataLevel, dataNames, dataPathArr }) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/install-server.sh | 4 | # Usage: | COMMENT |
| LOW⚡ | scripts/docker-smoke-test.sh | 8 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | apps/electron/resources/scripts/pdf_tool.py | 897 | # Create a single-page image PDF and merge into output | COMMENT |