Story Creation AI Agent for novel, scripts, translation, interactive games, and IP content
This report summarizes scanner evidence for Narcooo/inkos, a TypeScript project with 10,951 GitHub stars. SynthScan examined 126,833 lines of code across 746 source files, recording 355 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 3.2 (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? 347 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 333 finding(s).
Which changes need focused human review? 355 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 355 distinct pattern matches across 7 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 |
|---|---|---|---|---|
| LOW | packages/studio/src/shared/confirmed-production.ts | 23 | export function isConfirmedProductionAction( | CODE |
| LOW | packages/studio/src/components/chat-utils.ts | 20 | export function coerceSharedSessionMessages( | CODE |
| LOW | packages/studio/src/components/chat-utils.ts | 48 | export function formatSharedSessionContext(meta: SharedSessionMeta): string { | CODE |
| LOW | …tudio/src/components/chat/NarrativeForecastPreview.tsx | 49 | export function getNarrativeForecastPreviewDetails(exec: ToolExecution): NarrativeForecastPreviewDetails | null { | CODE |
| LOW | …tudio/src/components/chat/NarrativeForecastPreview.tsx | 76 | export function buildNarrativeForecastSelectionInstruction( | CODE |
| LOW | …tudio/src/components/chat/NarrativeForecastPreview.tsx | 86 | export function buildNarrativeForecastRecheckInstruction( | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 261 | export function getChapterContextTraceDetails(exec: ToolExecution): ReadonlyArray<ChapterContextTraceDetails> { | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 277 | function ChapterContextTracePreview({ exec }: { exec: ToolExecution }) { | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 350 | export function getChapterRevisionDetails(exec: ToolExecution): ChapterRevisionDetails | null { | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 361 | export function getChapterStateResyncDetails(exec: ToolExecution): ChapterStateResyncDetails | null { | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 420 | function ChapterStateResyncPreview({ exec }: { exec: ToolExecution }) { | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 442 | export function getGeneratedArtifactDetails(exec: ToolExecution): GeneratedArtifactDetails | null { | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 475 | function ScriptStoryboardResultPreview({ exec, onOpenFilmStudio }: { exec: ToolExecution; onOpenFilmStudio?: (projectId: | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 540 | function ShortFictionResultPreview({ exec }: { exec: ToolExecution }) { | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 738 | export function getProposedActionContractRows(details: ProposedActionDetails): ReadonlyArray<{ label: string; value: str | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 865 | function hasStructuredResultPreview(exec: ToolExecution): boolean { | CODE |
| LOW | …ages/studio/src/components/chat/ToolExecutionSteps.tsx | 1132 | export function groupToolExecutionsChronologically(executions: ToolExecution[]): RenderGroup[] { | CODE |
| LOW | packages/studio/src/hooks/use-book-activity.ts | 149 | export function shouldRefetchBookCollections(message: SSEMessage | undefined): boolean { | CODE |
| LOW | packages/studio/src/hooks/use-book-activity.ts | 153 | export function shouldRefetchDaemonStatus(message: SSEMessage | undefined): boolean { | CODE |
| LOW | packages/studio/src/lib/studio-events.ts | 64 | export function closeStudioEventConnections(): void { | CODE |
| LOW | packages/studio/src/lib/error-copy.ts | 17 | export function localizeKnownRuntimeMessage(message: string): string { | CODE |
| LOW⚡ | packages/studio/src/api/server.ts | 543 | function normalizeStudioSessionKind(value: unknown, fallback: SessionKind): SessionKind { | CODE |
| LOW⚡ | packages/studio/src/api/server.ts | 552 | function normalizeStudioActionSource(value: unknown): ActionSource { | CODE |
| LOW⚡ | packages/studio/src/api/server.ts | 560 | function normalizeStudioRequestedIntent(value: unknown): RequestedIntent | undefined { | CODE |
| LOW⚡ | packages/studio/src/api/server.ts | 576 | function normalizeStudioProposalAction(value: unknown): RequestedIntent | undefined { | CODE |
| LOW⚡ | packages/studio/src/api/server.ts | 585 | function normalizeStudioActionPayload(value: unknown): ActionPayload | undefined { | CODE |
| LOW⚡ | packages/studio/src/api/server.ts | 594 | function normalizeStudioSkillIdList(value: unknown, field: string): string[] { | CODE |
| LOW⚡ | packages/studio/src/api/server.ts | 1672 | function resolveCreatedBookIdFromDetails(details: Readonly<Record<string, unknown>> | undefined): string | null { | CODE |
| LOW⚡ | packages/studio/src/api/server.ts | 1679 | function resolveCreatedWorkIdFromToolExec(exec: CollectedToolExec): string | null { | CODE |
| LOW⚡ | packages/studio/src/api/server.ts | 1687 | async function loadStudioBookListSummary( | CODE |
| LOW | packages/studio/src/api/server.ts | 188 | async function resolveStudioProfileSkills( | CODE |
| LOW | packages/studio/src/api/server.ts | 271 | function buildRunningTaskContextBlock(task: StudioTaskSnapshot, lang: StudioLanguage): string { | CODE |
| LOW | packages/studio/src/api/server.ts | 486 | function normalizeProjectGeneratedPath(root: string, rawPath: string, code: string): { readonly relPath: string; readonl | CODE |
| LOW | packages/studio/src/api/server.ts | 517 | function resolveProjectTextArtifactFile(root: string, rawPath: string): { readonly relPath: string; readonly resolved: s | CODE |
| LOW | packages/studio/src/api/server.ts | 657 | async function normalizeAgentAttachments( | CODE |
| LOW | packages/studio/src/api/server.ts | 824 | function normalizeSkillImportFiles(value: unknown): { | CODE |
| LOW | packages/studio/src/api/server.ts | 972 | function validateAgentActionExecution(args: { | CODE |
| LOW | packages/studio/src/api/server.ts | 1052 | function hasSuccessfulToolOwnedResponse(execs: ReadonlyArray<CollectedToolExec>): boolean { | CODE |
| LOW | packages/studio/src/api/server.ts | 1065 | function manualToolAssistantMessage( | CODE |
| LOW | packages/studio/src/api/server.ts | 1113 | async function executeConfirmedProductionAction(args: { | CODE |
| LOW | packages/studio/src/api/server.ts | 1650 | function resolveCreatedBookIdFromArgs(args?: Record<string, unknown>): string | null { | CODE |
| LOW | packages/studio/src/api/server.ts | 1659 | function resolveCreatedBookIdFromToolExecs(execs: ReadonlyArray<CollectedToolExec>): string | null { | CODE |
| LOW | packages/studio/src/api/server.ts | 1808 | function appendModelToServiceCatalog( | CODE |
| LOW | packages/studio/src/api/server.ts | 1953 | async function readEffectiveEnvConfigValues(root: string): Promise<{ source: "project" | "global"; values: EnvConfigValu | CODE |
| LOW | packages/studio/src/api/server.ts | 1961 | async function resolveConfiguredServiceBaseUrl(root: string, serviceId: string, inlineBaseUrl?: string): Promise<string | CODE |
| LOW | packages/studio/src/api/server.ts | 1978 | async function resolveConfiguredServiceEntry(root: string, serviceId: string): Promise<ServiceConfigEntry | undefined> { | CODE |
| LOW | packages/studio/src/api/server.ts | 2050 | function radarTimestampForFilename(value: string | undefined): string { | CODE |
| LOW | packages/studio/src/api/server.ts | 2112 | function fallbackTextModelsForEndpoint( | CODE |
| LOW | packages/studio/src/api/server.ts | 2123 | function shouldTrustStaticModelsWhenLiveListUnavailable(endpoint: ReturnType<typeof getAllEndpoints>[number] | undefined | CODE |
| LOW | packages/studio/src/api/server.ts | 2235 | async function fetchModelsFromServiceBaseUrl( | CODE |
| LOW | packages/studio/src/api/work-session.ts | 4 | export function workSessionResponseMetadata(session: BookSession) { | CODE |
| LOW | packages/studio/src/api/work-session.ts | 14 | export async function recoverSessionAfterAgentFailure(root: string, sessionId: string): Promise<BookSession | null> { | CODE |
| LOW | packages/studio/src/pages/chat-page-state.ts | 29 | export function resolveWorkSessionBinding(input: { | CODE |
| LOW | packages/studio/src/pages/chat-page-state.ts | 189 | export function shouldShowPlayChoicePanel(input: { | CODE |
| LOW | packages/studio/src/pages/StoryGraphTree.tsx | 17 | export function buildProjectExportDownloadUrl(projectId: string): string | null { | CODE |
| LOW | packages/studio/src/pages/service-detail-state.ts | 108 | export async function rehydrateServiceConnectionStatus(args: { | CODE |
| LOW | packages/studio/src/pages/service-detail-state.ts | 136 | export function matchServiceConfigEntryForDetail( | CODE |
| LOW | packages/studio/src/pages/BookCreate.tsx | 110 | export function defaultChapterWordsForLanguage(language: "zh" | "en"): string { | CODE |
| LOW | packages/studio/src/pages/BookCreate.tsx | 114 | export function platformOptionsForLanguage(language: "zh" | "en"): ReadonlyArray<PlatformOption> { | CODE |
| LOW | packages/studio/src/store/preferences/store.ts | 28 | export function readStoredToolDetailsDefaultOpen( | CODE |
| 269 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/cli/src/project-bootstrap.ts | 13 | return content.includes("INKOS_LLM_API_KEY=") && !content.includes("your-api-key-here"); | CODE |
| HIGH | packages/cli/src/tui/setup.ts | 326 | return !!match && match[1]!.trim().length > 0 && !match[1]!.includes("your-api-key"); | CODE |
| HIGH | packages/cli/src/commands/doctor.ts | 161 | hasGlobal = globalContent.includes("INKOS_LLM_API_KEY=") && !globalContent.includes("your-api-key-here"); | CODE |
| HIGH | packages/cli/src/commands/doctor.ts | 192 | const hasKey = apiKeyOptional || (!!apiKey && apiKey.length > 10 && apiKey !== "your-api-key-here"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | packages/studio/e2e/export.spec.ts | 19 | // Step 1: fetch the exported HTML from the server. | COMMENT |
| LOW⚡ | packages/studio/e2e/export.spec.ts | 25 | // Step 2: load the raw HTML string into a blank page (no server connection). | COMMENT |
| LOW⚡ | packages/studio/e2e/export.spec.ts | 29 | // Step 3: the embedded player must have bootstrapped with no server. | COMMENT |
| LOW⚡ | packages/studio/e2e/export.spec.ts | 32 | // Step 4: click the single choice in the start node. | COMMENT |
| LOW⚡ | packages/studio/e2e/export.spec.ts | 37 | // Step 5: the ending screen must appear. | COMMENT |
| LOW | packages/core/src/pipeline/runner.ts | 1690 | // Step 1: Generate foundation once. A failed replay preserves the draft | COMMENT |
| LOW | packages/core/src/pipeline/runner.ts | 1748 | // Step 2: Sequential replay | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | packages/studio/e2e/export.spec.ts | 19 | // Step 1: fetch the exported HTML from the server. | COMMENT |
| LOW⚡ | packages/studio/e2e/export.spec.ts | 25 | // Step 2: load the raw HTML string into a blank page (no server connection). | COMMENT |
| LOW⚡ | packages/studio/e2e/export.spec.ts | 29 | // Step 3: the embedded player must have bootstrapped with no server. | COMMENT |
| LOW⚡ | packages/studio/e2e/export.spec.ts | 32 | // Step 4: click the single choice in the start node. | COMMENT |
| LOW⚡ | packages/studio/e2e/export.spec.ts | 37 | // Step 5: the ending screen must appear. | COMMENT |
| LOW | packages/core/src/pipeline/runner.ts | 1690 | // Step 1: Generate foundation once. A failed replay preserves the draft | COMMENT |
| LOW | packages/core/src/pipeline/runner.ts | 1748 | // Step 2: Sequential replay | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/core/src/__tests__/provider.test.ts | 11 | // ── Mock @mariozechner/pi-ai ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/core/src/__tests__/provider.test.ts | 28 | // ── Helpers ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/core/src/__tests__/provider.test.ts | 153 | // ── Tests ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | packages/core/src/__tests__/provider.test.ts | 1031 | // ── 回归测试:per-call maxTokens 不被裁剪(v2.0.0 精简版)───────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/studio/src/lib/truth-display.ts | 79 | // reader-facing; parse the table by header name (robust to column reordering) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/studio/src/api/server.ts | 2501 | if (!saved || saved.status !== "running") return saved; | COMMENT |
| LOW | …/studio/src/store/chat/slices/message/stream-events.ts | 381 | const execution = data.execution as ToolExecution; | COMMENT |
| LOW | packages/core/src/llm/provider.ts | 501 | COMMENT |