使用ai生成多章节的长篇小说,自动衔接上下文、伏笔
This report summarizes scanner evidence for YILING0013/AI_NovelGenerator, a Python project with 6,372 GitHub stars. SynthScan examined 213,221 lines of code across 553 source files, recording 1439 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 7.6 (Moderate 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? 905 finding(s).
Are imports declared and package/API names verified? 232 finding(s).
Are wrappers, guards, and repeated structures necessary? 973 finding(s).
Which changes need focused human review? 1439 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 1439 distinct pattern matches across 10 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 | frontend/src/types/contracts.ts | 86 | export function formatStableReferenceLabel( | CODE |
| LOW | frontend/src/types/location.ts | 522 | function isVolumeLocationGenerationInput( | CODE |
| LOW | frontend/src/types/location.ts | 579 | function isVolumeLocationCandidate(value: unknown, editable = false): value is VolumeLocationCandidateV1 { | CODE |
| LOW | frontend/src/types/volumeEntity.ts | 156 | export function volumeCharacterDesignForm(profile: VolumeCharacterProfile): CharacterProfileFields { | CODE |
| LOW | frontend/src/types/volumeEntity.ts | 169 | export function editVolumeCharacterDesign(profile: VolumeCharacterProfile, value: CharacterProfileFields): VolumeCharact | CODE |
| LOW | frontend/src/types/novel.ts | 91 | export function parseNovelHistoryDeleteImpact(value: unknown, novelId: string): NovelHistoryDeleteImpact | null { | CODE |
| LOW | frontend/src/types/config.ts | 346 | export function getProviderAliasesForSelection( | CODE |
| LOW | frontend/src/components/ThemeCustomizationProvider.tsx | 78 | function createDefaultThemeCustomizationState(): ThemeCustomizationState { | CODE |
| LOW⚡ | frontend/src/components/ThemeCustomizationProvider.tsx | 100 | function readThemeCustomizationState(): ThemeCustomizationState { | CODE |
| LOW⚡ | frontend/src/components/ThemeCustomizationProvider.tsx | 110 | function getThemeCustomizationSnapshot(): ThemeCustomizationState { | CODE |
| LOW⚡ | frontend/src/components/ThemeCustomizationProvider.tsx | 119 | function getThemeCustomizationServerSnapshot(): ThemeCustomizationState { | CODE |
| LOW⚡ | frontend/src/components/ThemeCustomizationProvider.tsx | 123 | function emitThemeCustomizationChange(nextState?: ThemeCustomizationState) { | CODE |
| LOW⚡ | frontend/src/components/ThemeCustomizationProvider.tsx | 133 | function subscribeThemeCustomization(listener: () => void) { | CODE |
| LOW | frontend/src/components/ThemeCustomizationProvider.tsx | 163 | export function ThemeCustomizationProvider({ | CODE |
| LOW | frontend/src/components/settings/ProviderCard.tsx | 74 | function normalizeBaseUrlForComparison(baseUrl: string): string { | CODE |
| LOW | frontend/src/components/settings/ProviderCard.tsx | 94 | function resolveBaseUrlForProviderTypeChange( | CODE |
| LOW | …end/src/components/shared/GenerationParamsCollapse.tsx | 42 | export function buildGenerationParamsPayload(value: GenerationParamsValue): Partial<GenerationParamsValue> { | CODE |
| LOW | …d/src/components/shared/ReplacementCharacterNotice.tsx | 23 | export function findReplacementCharacters(value: unknown, path = "$"): ReplacementCharacterLocation[] { | CODE |
| LOW | …d/src/components/shared/ReplacementCharacterNotice.tsx | 52 | export default function ReplacementCharacterNotice({ value }: { value: unknown }) { | CODE |
| LOW | …end/src/components/shared/RelationEditorPrimitives.tsx | 22 | export function RelationEditorErrorSummary({ | CODE |
| LOW | …src/components/writing/hierarchy/chapterPlanBatches.ts | 14 | export async function registerSavedChapterBatch( | CODE |
| LOW | …nents/writing/hierarchy/chapterRestoreConfirmations.ts | 8 | export async function readChapterRestoreConfirmations(scope: string): Promise<WritingDraft<ChapterRestoreCommand>[]> { | CODE |
| LOW | …nents/writing/hierarchy/chapterRestoreConfirmations.ts | 24 | export async function writeChapterRestoreConfirmation(scope: string, command: ChapterRestoreCommand, remove = false): Pr | CODE |
| LOW | …mponents/writing/hierarchy/chapterPlanConfirmations.ts | 13 | export async function readChapterPlanConfirmations(generationScope: string): Promise<WritingDraft<GenerationDraft>[]> { | CODE |
| LOW | …mponents/writing/hierarchy/chapterPlanConfirmations.ts | 40 | export async function writeChapterPlanConfirmation( | CODE |
| LOW | …s/writing/entity-graph/useRelationshipGraphSnapshot.ts | 54 | export function orderBindingsForRelationshipGraph( | CODE |
| LOW | …s/writing/entity-graph/useRelationshipGraphSnapshot.ts | 88 | export async function loadRelationshipGraphSnapshot( | CODE |
| LOW | …s/writing/entity-graph/useRelationshipGraphSnapshot.ts | 149 | export function useRelationshipGraphSnapshot( | CODE |
| LOW | …tend/src/components/writing/entity-graph/graphModel.ts | 49 | export function createDefaultRelationshipGraphFilters(): RelationshipGraphFilters { | CODE |
| LOW | …tend/src/components/writing/entity-graph/graphModel.ts | 111 | export function createRelationshipGraphSnapshot( | CODE |
| LOW | …tend/src/components/writing/entity-graph/graphModel.ts | 451 | export function compareRelationshipGraphSnapshots( | CODE |
| LOW | …s/writing/world-rules/WorldRulesCandidateWorkspace.tsx | 253 | export function parseCoreWorldRulesEnvelope( | CODE |
| LOW | …s/writing/world-rules/WorldRulesCandidateWorkspace.tsx | 276 | function validateEditableCandidate( | CODE |
| LOW | …s/writing/world-rules/WorldRulesCandidateWorkspace.tsx | 313 | function normalizeConfirmFieldErrors( | CODE |
| LOW | …s/writing/world-rules/WorldRulesCandidateWorkspace.tsx | 366 | export default function WorldRulesCandidateWorkspace({ | CODE |
| LOW | …nents/writing/locations/LocationCandidateWorkspace.tsx | 93 | function validateEditableCandidates( | CODE |
| LOW | …nents/writing/locations/LocationCandidateWorkspace.tsx | 142 | function normalizeConfirmFieldErrors( | CODE |
| LOW | …nents/writing/locations/LocationCandidateWorkspace.tsx | 195 | export default function LocationCandidateWorkspace({ | CODE |
| LOW | …nd/src/components/writing/factions/factionFactBatch.ts | 7 | export function buildCoreFactionFactBatch(candidate: CoreFactionsResultV2, selected: string[], selectedRelations: string | CODE |
| LOW | …nents/writing/factions/FactionVolumeStateWorkspace.tsx | 137 | export default function FactionVolumeStateWorkspace(props: FactionVolumeStateWorkspaceProps) { | CODE |
| LOW | …riting/factions/FactionRelationGenerationWorkspace.tsx | 63 | export function FactionRelationGenerationPreview({ | CODE |
| LOW | …riting/factions/FactionRelationGenerationWorkspace.tsx | 195 | function FactionRelationCandidateEditor({ | CODE |
| LOW | …/components/writing/factions/factionFactPreparation.ts | 97 | export async function readFactionFactPreparations(novelId: string): Promise<FactionFactPreparationV1[]> { | CODE |
| LOW | …/components/writing/factions/factionFactPreparation.ts | 116 | export async function writeFactionFactPreparation(value: FactionFactPreparationV1, expected: number | null, promote?: Fa | CODE |
| LOW | …/components/writing/factions/factionFactPreparation.ts | 155 | export async function removeFactionFactPreparation(value: FactionFactPreparationV1): Promise<void> { | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 167 | export function isSymmetricFactionRelation(type: FactionRelationType): boolean { | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 262 | function isFactionRelationsCandidate(value: unknown): value is FactionRelationsResultV1 { | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 292 | export function parseCoreFactionsEnvelope(value: unknown, novelId: string): CoreFactionsCandidateEnvelopeV2 | null { | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 297 | export function parseFactionRelationsEnvelope(value: unknown, novelId: string): FactionRelationsCandidateEnvelopeV1 | nu | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 354 | function buildFactionEditableRequest( | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 377 | function buildFactionCreateRequest(draft: CoreFaction): FactionCreateRequestV1 { | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 395 | export function buildFactionUpdateRequest( | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 415 | export function buildFactionSectionRequest(draft: CoreFaction, section: FactionSection, base: CoreFaction): Partial<Fact | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 447 | export function buildFactionVersionRequest( | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 463 | export function buildFactionVersionedDeletePath( | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 491 | export function findRelationsWithUnselectedFaction( | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 575 | export function getAvailableRelationFactions( | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 1927 | export function createFactionRelationDraft( | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 1959 | function isCompleteFactionRelation(draft: FactionRelationCreateRequestV1): boolean { | CODE |
| LOW | …/components/writing/factions/FactionCardsWorkspace.tsx | 2019 | function CoreFactionCandidateReview({ | CODE |
| 610 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | desktop_launcher/settings.py | 37 | 把输入转换为有效的 TCP 端口。 Args: value: 输入框、环境变量或 JSON 中读取的端口值。 label: 用于错误提示的字段名称。 Returns: 位于 | STRING |
| HIGH | desktop_launcher/settings.py | 63 | 校验前后端端口并生成不可变设置对象。 Args: backend_port: 后端监听端口。 frontend_port: 前端监听端口。 Returns: 已完成范围和冲 | STRING |
| HIGH | desktop_launcher/settings.py | 116 | 以原子替换方式保存启动器端口设置。 Args: settings: 已校验的端口设置。 path: 可选的自定义设置路径,主要供测试使用。 Returns: 成功写入的设置 | STRING |
| HIGH | backend/runtime.py | 107 | 读取并校验后端监听端口。 Args: 无。 Returns: 环境变量指定的有效 TCP 端口;未指定时返回项目默认端口。 Raises: ValueError: | STRING |
| HIGH | backend/runtime.py | 122 | 读取并校验前端监听端口。 Args: 无。 Returns: 环境变量指定的有效 TCP 端口;未指定时返回项目默认端口。 Raises: ValueError: | STRING |
| HIGH | backend/llm/base_client.py | 268 | 校验 Function Calling 探测返回的工具参数。 Args: actual_arguments: 模型实际生成的工具参数。 expected_arguments: | STRING |
| HIGH | backend/llm/base_client.py | 285 | 校验 Function Calling 二轮结果是否包含约定文本。 Args: content: 模型第二轮最终回复文本。 expected_final_text: 必须出现 | STRING |
| HIGH | backend/llm/factory.py | 46 | 根据已解析的 Provider 配置创建 LLM 客户端。 Args: config: 已解析的单个 Provider 配置。 provider_name: 用户自定义别名,用于日志与错误定位。 | STRING |
| HIGH | backend/llm/schemas/novel_pydantic.py | 276 | 校验阵营数量、名称唯一性和关系引用。 Args: 无。 Returns: 校验通过后的当前模型。 Raises: | STRING |
| HIGH | backend/llm/schemas/character_pydantic.py | 107 | 校验角色扩展 JSON 可安全编码为受限 BSON。 Args: value: 已通过 JsonValue 类型校验的扩展字段。 Returns: 校验通过的原字典。 Raise | STRING |
| HIGH | backend/llm/schemas/character_pydantic.py | 206 | 校验角色数组元素的长度上限。 Args: value: 已完成去空和去重的字符串数组。 Returns: 校验通过的原数组。 Raises | STRING |
| HIGH | backend/llm/schemas/character_pydantic.py | 413 | 校验角色响应数组元素的长度上限。 Args: value: 已规范化的字符串数组。 Returns: 校验通过的原数组。 Raises: | STRING |
| HIGH | backend/llm/schemas/character_pydantic.py | 531 | 校验候选数组元素长度。 Args: value: 已规范化的字符串数组。 Returns: 校验通过的原数组。 Raises: | STRING |
| HIGH | backend/llm/schemas/character_pydantic.py | 593 | 校验“无势力”全空条件和非空势力的必填字段。 Args: 无。 Returns: 校验通过后的当前绑定候选。 Raises: | STRING |
| HIGH | backend/llm/schemas/character_pydantic.py | 646 | 校验候选引用、名称唯一性和绑定一一覆盖。 Args: 无。 Returns: 校验通过后的完整核心角色结果。 Raises: | STRING |
| HIGH | backend/config/config.py | 434 | 校验 Provider 别名和默认引用。 Args: config_data: 已完成合并与归一化的候选配置。 Returns: 无。 Raises: Value | STRING |
| HIGH | backend/db/transaction.py | 143 | 执行跨集合写入;要求事务的命令不允许降级。 Args: callback: 接收 AsyncClientSession 或 None 的异步写入回调。 operation_name: 用于日志和异常 | STRING |
| HIGH | backend/db/created_write_compensation.py | 21 | 逐文档删除仍停留在创建版本的本批记录。 Args: collection: 保存本批新建文档的 MongoDB 集合。 documents: 带 ``_id``、``novel_id``、业务键和创 | STRING |
| HIGH | backend/db/indexes.py | 521 | 初始化正式世界规则集合索引。 Args: 无。 Returns: 无。 Raises: Exception: MongoDB 索引创建或核对失败。 | STRING |
| HIGH | backend/db/indexes.py | 650 | 初始化正式地点集合索引。 Args: 无。 Returns: 无。 Raises: Exception: MongoDB 索引创建失败。 | STRING |
| HIGH | backend/db/indexes.py | 761 | 初始化正式物品集合索引。 Args: 无。 Returns: 无。 Raises: Exception: MongoDB 索引创建失败。 | STRING |
| HIGH | backend/db/write_contracts.py | 26 | 功能:校验正式可变聚合使用的 expected_version。 Args: value: API 或领域服务传入的版本值。 Returns: 大于等于 1 且排除布尔值的整数版本。 | STRING |
| HIGH | backend/db/write_contracts.py | 43 | 功能:复制待创建聚合并补齐唯一初始版本 1。 Args: document: 已完成领域预校验、尚未持久化的文档。 Returns: 带 ``version=1`` 的新字典。 | STRING |
| HIGH | backend/db/write_contracts.py | 103 | 功能:构造每次成功只递增一次版本的 MongoDB 更新文档。 Args: update_fields: 已通过领域白名单过滤的待更新字段。 unset_fields: 需要显式移除的旧字段名称。 | STRING |
| HIGH | backend/db/write_contracts.py | 169 | 功能:预检批量重排等命令中的稳定 ID 与逐项版本。 Args: items: 每项至少包含稳定业务 ID 和 expected_version 的请求序列。 id_field: 当前领域稳定业务 | STRING |
| HIGH | backend/db/write_contracts.py | 270 | 功能:校验原始幂等键并为目标文档生成双摘要。 Args: raw_key: HTTP ``Idempotency-Key`` 原文。 request: 包含小说作用域、basis、版本和正式载荷的规 | STRING |
| HIGH | backend/db/write_contracts.py | 298 | 功能:判断目标文档内幂等记录应回放还是返回 409 冲突。 Args: existing: 按小说作用域和幂等键哈希读取的既有正式文档。 request_hash: 当前规范请求摘要。 | STRING |
| HIGH | backend/db/endpoint_guard.py | 35 | 逐端点推进内部 guard,使并发生命周期写产生 CAS 冲突。 Args: collection: 角色或势力主档集合。 queries: 同时包含身份、版本和当前可用性条件的端点 CAS 查询。 | STRING |
| HIGH | backend/db/endpoint_guard.py | 105 | 在依赖未落库时逐条原子减回本请求自己的 guard 贡献。 Args: collection: 角色或势力主档集合。 touches: touch 成功后返回的一次性贡献记录。 se | STRING |
| HIGH | backend/api/contracts.py | 132 | 校验并返回候选局部引用,拒绝正式业务 ID 命名空间。 Args: value: Pydantic DTO 已完成字符串类型校验的候选引用。 Returns: 校验通过的原局部引用。 | STRING |
| HIGH | backend/ops/book_archive.py | 227 | 只读验证 ZIP 的全部内容,并保留本次实际验证过的文档和封面。 Args: path: 已存在的备份包路径。 Returns: 验证报告、保留 BSON 类型和字段顺序的文档、封面字节和内 | STRING |
| HIGH | backend/ops/book_archive.py | 464 | 只读验证 ZIP 中的完整单书包,不连接数据库或提取文件到磁盘。 Args: path: 已存在的备份包路径。 Returns: 格式版本、集合数量、文件哈希、层级与引用检查摘要及验证范围。 | STRING |
| HIGH | backend/ops/book_archive_target.py | 36 | 验证单书包,并观察目标库是否完全没有集合或视图。 Args: archive_path: 只读验证的单书 ZIP 路径。 target_uri_env: 唯一允许读取的目标 URI 环境变量名。 | STRING |
| HIGH | backend/ops/book_archive_restore.py | 141 | 向独占全新目标执行一次完整数据库事务,或只读确认相同恢复已完成。 Args: archive_path: 单书 ZIP,验证后只使用持有的内存内容。 target_uri_env: 唯一允许读取的 | STRING |
| HIGH | backend/ops/book_archive_cover.py | 31 | 确认操作者显式指定了现有普通封面目录。 Args: covers_dir: 操作者必须独占的目录,不使用应用默认路径。 Returns: 目录的绝对路径;此检查不能阻止其它进程随后写入或替换 | STRING |
| HIGH | backend/ops/book_archive_cover.py | 85 | 只读复核已恢复封面,与本次验证后保留的包内字节完整比较。 Args: content: 验证器保留的封面原始字节;没有封面时为 None。 entry: 验证器保留的封面文件描述;没有封面时为 No | STRING |
| HIGH | backend/ops/book_archive_cover.py | 102 | 同步暂存已验证的封面,再通过不覆盖目标的硬链接发布或复用。 Args: content: 验证器保留的封面原始字节;没有封面时为 None。 entry: 验证器保留的封面文件描述;没有封面时为 N | STRING |
| HIGH | backend/ops/book_archive_export.py | 53 | 在同一个只读快照会话内导出白名单原始文档,验证后发布新 ZIP。 Args: source_uri_env: 唯一允许读取的源 MongoDB URI 环境变量名。 source_database: | STRING |
| HIGH | backend/services/llm/candidate_contract.py | 235 | 在确认写入前复核候选输入指纹与全部来源版本。 Args: basis: 浏览器提交的候选依据。 current_source_versions: Service 重读得到的资源类型、ID到版本映射。 | STRING |
| HIGH | backend/services/task_flows/domain.py | 63 | 把已核对的整理结果接到原业务输入,操作位置始终来自路由。 Args: task: 当前生成任务。 parameters: 作者输入或结果节点的业务参数。 scope: 路由固定的位置 | STRING |
| HIGH | backend/services/task_flows/domain.py | 112 | 读取当前业务任务资料,不调用模型或保存候选。 Args: task: 原页面的业务任务。 parameters: 图中传到资料节点的业务参数。 scope: 原页面提供的小说、卷及字 | STRING |
| HIGH | backend/services/task_flows/llm.py | 36 | 按本轮输入生成完整节点请求,供正式执行和编辑器模拟共同使用。 Args: node: AI 节点及其提示词配置。 inputs: 本次实例实际收到的输入。 schema: 节点的输出 | STRING |
| HIGH | backend/services/task_flows/preview_context.py | 113 | 读取任务已有资料,允许尚未填写的生成前提。 Args: task: 编辑器正在查看的业务任务。 parameters: 节点中的假设输入,仅用于公开文本和数量展示。 scope: 用 | STRING |
| HIGH | backend/services/task_flows/engine.py | 65 | 在当前异步请求内执行完整图并产出 SSE 可直接使用的事件。 Args: flow: 已保存或即将预览的完整方案。 inputs: 仅包含开始节点声明的作者输入。 context: | STRING |
| HIGH | backend/services/task_flows/agent.py | 85 | 构造初始模型消息,并保留执行和校验使用的完整输入。 Args: cfg: 当前修订保存的资料整理配置。 inputs: 上游完整资料和本次作者参数。 task: 当前任务,用于区分结 | STRING |
| HIGH | backend/services/novel/writing_context.py | 566 | 构建四类任务共享的受控上下文,包含可复查的空查询。 Args: task: 当前层级任务。 parameters: 开始表单或图中传入的业务参数。 scope: 路径固定的位置与显式 | STRING |
| HIGH | backend/services/novel/cover_asset.py | 47 | 流式读取并安全重编码单帧小说封面。 Args: upload: FastAPI 接收的上传文件;文件名和 Content-Type 均不作为格式依据。 Returns: 去除元数据、可按内 | STRING |
| HIGH | backend/services/novel/character_service.py | 123 | 对明确的依赖 CAS miss 执行有界重读,直至按主档真相收敛。 Args: reconcile_once: 每次都重新读取依赖并执行单轮 CAS 调和的异步函数。 label: 达到上限时用于错 | STRING |
| HIGH | backend/services/novel/character_service.py | 448 | 提取跨集合补偿必须同时匹配的小说与稳定业务身份。 Args: snapshot: 写入前读取的主档、关系或绑定预镜像。 Returns: 包含 ``novel_id`` 与当前集合稳定业务 | STRING |
| HIGH | …end/services/novel/initialization_readiness_service.py | 99 | 按部署能力读取 snapshot,standalone 则执行双读签名核对。 Args: novel_id: 小说 ObjectId 字符串。 Returns: | STRING |
| HIGH | backend/services/novel/faction_service.py | 673 | 校验核心阵营模型结果中的领域数量、名称和关系引用。 Args: result: 已通过结构 Schema 的 Provider 结果。 req: 本次生成数量与本批不建立直接 | STRING |
| HIGH | backend/services/novel/faction_service.py | 834 | 校验同一小说同一层级下未删除阵营名称不重复。 Args: novel_id: 小说 ObjectId 字符串。 name: 待校验阵营名称。 leve | STRING |
| HIGH | backend/services/novel/character_name.py | 9 | 规范化角色显示名和唯一性比较键。 Args: name: 用户、模型或历史角色文档提供的角色名称。 Returns: NFKC 规范化后的显示名,以及继续执行 casefold 的唯一性比 | STRING |
| HIGH | backend/services/novel/plot_service.py | 173 | 为剧情生成读取正式资料,不要求当前已有剧情或准备标记。 Args: task: 两种剧情任务之一。 parameters: 作者要求。 scope: 路径固定的位置与目标版本。 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | main.py | 3 | CODE | |
| LOW | desktop_launcher/frontend_build.py | 3 | CODE | |
| LOW | desktop_launcher/settings.py | 3 | CODE | |
| LOW | backend/runtime.py | 3 | CODE | |
| LOW | backend/app.py | 4 | CODE | |
| LOW | backend/llm/responses_client.py | 3 | CODE | |
| LOW | backend/llm/config.py | 3 | CODE | |
| LOW | backend/llm/models.py | 3 | CODE | |
| LOW | backend/llm/base_client.py | 3 | CODE | |
| LOW | backend/llm/__init__.py | 3 | CODE | |
| LOW | backend/llm/__init__.py | 4 | CODE | |
| LOW | backend/llm/__init__.py | 4 | CODE | |
| LOW | backend/llm/__init__.py | 4 | CODE | |
| LOW | backend/llm/__init__.py | 4 | CODE | |
| LOW | backend/llm/__init__.py | 5 | CODE | |
| LOW | backend/llm/__init__.py | 5 | CODE | |
| LOW | backend/llm/__init__.py | 5 | CODE | |
| LOW | backend/llm/__init__.py | 5 | CODE | |
| LOW | backend/llm/__init__.py | 5 | CODE | |
| LOW | backend/llm/__init__.py | 5 | CODE | |
| LOW | backend/llm/__init__.py | 13 | CODE | |
| LOW | backend/llm/__init__.py | 14 | CODE | |
| LOW | backend/llm/__init__.py | 14 | CODE | |
| LOW | backend/llm/__init__.py | 14 | CODE | |
| LOW | backend/llm/__init__.py | 15 | CODE | |
| LOW | backend/llm/__init__.py | 16 | CODE | |
| LOW | backend/llm/__init__.py | 17 | CODE | |
| LOW | backend/llm/logger.py | 3 | CODE | |
| LOW | backend/llm/factory.py | 3 | CODE | |
| LOW | backend/llm/gemini_interactions_client.py | 3 | CODE | |
| LOW | backend/llm/openai_client.py | 3 | CODE | |
| LOW | backend/llm/gemini_client.py | 3 | CODE | |
| LOW | backend/llm/claude_client.py | 3 | CODE | |
| LOW | backend/llm/json_guard.py | 3 | CODE | |
| LOW | backend/llm/schemas/item_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/character_relation_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/writing_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/writing_pydantic.py | 5 | CODE | |
| LOW | backend/llm/schemas/__init__.py | 1 | CODE | |
| LOW | backend/llm/schemas/__init__.py | 1 | CODE | |
| LOW | backend/llm/schemas/__init__.py | 1 | CODE | |
| LOW | backend/llm/schemas/__init__.py | 1 | CODE | |
| LOW | backend/llm/schemas/location_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/volume_entity_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/faction_volume_state_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/character_volume_state_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/world_rule_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/volume_planning_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/volume_planning_pydantic.py | 6 | CODE | |
| LOW | backend/llm/schemas/character_pydantic.py | 3 | CODE | |
| LOW | backend/llm/schemas/faction_relation_pydantic.py | 3 | CODE | |
| LOW | backend/config/config.py | 1 | CODE | |
| LOW | backend/config/__init__.py | 1 | CODE | |
| LOW | backend/config/__init__.py | 1 | CODE | |
| LOW | backend/config/__init__.py | 1 | CODE | |
| LOW | backend/config/__init__.py | 1 | CODE | |
| LOW | backend/config/__init__.py | 1 | CODE | |
| LOW | backend/config/__init__.py | 1 | CODE | |
| LOW | backend/config/__init__.py | 1 | CODE | |
| LOW | backend/config/__init__.py | 1 | CODE | |
| 166 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | desktop_launcher/settings.py | 147 | except Exception: | CODE |
| LOW | desktop_launcher/app.py | 560 | except Exception as exc: | CODE |
| LOW | desktop_launcher/app.py | 695 | except Exception as exc: | CODE |
| LOW | desktop_launcher/app.py | 828 | except Exception as exc: | CODE |
| LOW | desktop_launcher/app.py | 1597 | except Exception as exc: | CODE |
| LOW | desktop_launcher/app.py | 1621 | except Exception as exc: | CODE |
| LOW | backend/app.py | 126 | except Exception as exc: | CODE |
| LOW | backend/llm/responses_client.py | 103 | except Exception as exc: | CODE |
| LOW | backend/llm/responses_client.py | 167 | except Exception as exc: | CODE |
| LOW | backend/llm/responses_client.py | 209 | except Exception as exc: | CODE |
| LOW | backend/llm/base_client.py | 208 | except Exception as exc: | CODE |
| LOW | backend/llm/gemini_interactions_client.py | 172 | except Exception as exc: | CODE |
| LOW | backend/llm/gemini_interactions_client.py | 241 | except Exception as exc: | CODE |
| LOW | backend/llm/gemini_interactions_client.py | 277 | except Exception as exc: | CODE |
| LOW | backend/llm/openai_client.py | 402 | except Exception as exc: | CODE |
| LOW | backend/llm/openai_client.py | 456 | except Exception as exc: | CODE |
| LOW | backend/llm/openai_client.py | 539 | except Exception as exc: | CODE |
| LOW | backend/llm/openai_client.py | 594 | except Exception as exc: | CODE |
| LOW | backend/llm/openai_client.py | 673 | except Exception as exc: | CODE |
| LOW | backend/llm/gemini_client.py | 227 | except Exception as exc: | CODE |
| LOW | backend/llm/gemini_client.py | 279 | except Exception as exc: | CODE |
| LOW | backend/llm/gemini_client.py | 298 | except Exception as parse_exc: | CODE |
| LOW | backend/llm/gemini_client.py | 363 | except Exception as exc: | CODE |
| LOW | backend/llm/gemini_client.py | 417 | except Exception as exc: | CODE |
| LOW | backend/llm/gemini_client.py | 501 | except Exception as exc: | CODE |
| LOW | backend/llm/claude_client.py | 241 | except Exception as exc: | CODE |
| LOW | backend/llm/claude_client.py | 339 | except Exception as exc: | CODE |
| LOW | backend/llm/claude_client.py | 370 | except Exception as parse_exc: | CODE |
| LOW | backend/llm/claude_client.py | 435 | except Exception as exc: | CODE |
| LOW | backend/llm/claude_client.py | 482 | except Exception as exc: | CODE |
| LOW | backend/llm/claude_client.py | 560 | except Exception as exc: | CODE |
| LOW | backend/llm/schemas/character_pydantic.py | 134 | except Exception as exc: | CODE |
| LOW | backend/config/config.py | 729 | except Exception as commit_exc: | CODE |
| LOW | backend/config/config.py | 732 | except Exception as restore_exc: | CODE |
| LOW | backend/db/mongo.py | 99 | except Exception: | CODE |
| LOW | backend/db/mongo.py | 112 | except Exception: | CODE |
| LOW | backend/db/indexes.py | 66 | except Exception as e: | CODE |
| LOW | backend/db/indexes.py | 129 | except Exception as e: | CODE |
| LOW | backend/db/indexes.py | 225 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 317 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 372 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 444 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 515 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 592 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 618 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 644 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 729 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 755 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 834 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 860 | except Exception as exc: | CODE |
| LOW | backend/db/indexes.py | 1130 | except Exception as exc: | CODE |
| LOW | backend/db/endpoint_guard.py | 88 | except Exception: | CODE |
| LOW | backend/db/repositories/faction_relation_repository.py | 124 | except Exception: | CODE |
| LOW | …b/repositories/character_faction_binding_repository.py | 116 | except Exception: | CODE |
| LOW | …ckend/db/repositories/character_relation_repository.py | 112 | except Exception: | CODE |
| LOW | backend/db/repositories/character_repository.py | 108 | except Exception: | CODE |
| LOW | backend/api/default_routers/config_router.py | 223 | except Exception as exc: | CODE |
| LOW | backend/api/default_routers/config_router.py | 228 | except Exception as restore_exc: | CODE |
| LOW | backend/api/default_routers/config_router.py | 284 | except Exception as exc: | CODE |
| LOW | backend/api/default_routers/assistant_router.py | 224 | except Exception as exc: | CODE |
| 135 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | desktop_launcher/logs.py | 18 | CODE | |
| LOW | desktop_launcher/app.py | 622 | CODE | |
| LOW | desktop_launcher/app.py | 704 | CODE | |
| LOW | desktop_launcher/app.py | 770 | CODE | |
| LOW | desktop_launcher/app.py | 1477 | CODE | |
| LOW | desktop_launcher/app.py | 1580 | CODE | |
| LOW | backend/app.py | 103 | CODE | |
| LOW | backend/llm/responses_client.py | 37 | CODE | |
| LOW | backend/llm/responses_client.py | 75 | CODE | |
| LOW | backend/llm/responses_client.py | 127 | CODE | |
| LOW | backend/llm/base_client.py | 77 | CODE | |
| LOW | backend/llm/logger.py | 161 | CODE | |
| LOW | backend/llm/gemini_interactions_client.py | 89 | CODE | |
| LOW | backend/llm/gemini_interactions_client.py | 145 | CODE | |
| LOW | backend/llm/gemini_interactions_client.py | 196 | CODE | |
| LOW | backend/llm/provider_probe.py | 71 | CODE | |
| LOW | backend/llm/exceptions.py | 76 | CODE | |
| LOW | backend/llm/openai_client.py | 37 | CODE | |
| LOW | backend/llm/openai_client.py | 497 | CODE | |
| LOW | backend/llm/gemini_client.py | 321 | CODE | |
| LOW | backend/llm/gemini_client.py | 420 | CODE | |
| LOW | backend/llm/claude_client.py | 57 | CODE | |
| LOW | backend/llm/claude_client.py | 196 | CODE | |
| LOW | backend/llm/claude_client.py | 277 | CODE | |
| LOW | backend/llm/claude_client.py | 393 | CODE | |
| LOW | backend/llm/json_guard.py | 18 | CODE | |
| LOW | backend/llm/schemas/character_pydantic.py | 106 | CODE | |
| LOW | backend/config/config.py | 465 | CODE | |
| LOW | backend/api/error_protocol.py | 327 | CODE | |
| LOW | backend/api/default_routers/arc_router.py | 21 | CODE | |
| LOW | backend/ops/book_archive.py | 123 | CODE | |
| LOW | backend/ops/book_archive.py | 226 | CODE | |
| LOW | backend/ops/book_archive.py | 476 | CODE | |
| LOW | backend/ops/book_archive_target.py | 32 | CODE | |
| LOW | backend/ops/book_archive_restore.py | 137 | CODE | |
| LOW | backend/ops/book_archive_cover.py | 101 | CODE | |
| LOW | backend/ops/book_archive_contract.py | 114 | CODE | |
| LOW | backend/ops/book_archive_contract.py | 258 | CODE | |
| LOW | backend/ops/book_archive_contract.py | 703 | CODE | |
| LOW | backend/ops/book_archive_contract.py | 929 | CODE | |
| LOW | backend/ops/book_archive_contract.py | 1058 | CODE | |
| LOW | backend/ops/book_archive_contract.py | 1259 | CODE | |
| LOW | backend/ops/book_archive_contract.py | 1474 | CODE | |
| LOW | backend/ops/book_archive_contract.py | 1568 | CODE | |
| LOW | backend/ops/book_archive_faction_batches.py | 15 | CODE | |
| LOW | backend/ops/book_archive_export.py | 49 | CODE | |
| LOW | backend/services/assistant/changes.py | 78 | CODE | |
| LOW | backend/services/assistant/changes.py | 221 | CODE | |
| LOW | backend/services/assistant/changes.py | 572 | CODE | |
| LOW | backend/services/assistant/changes.py | 780 | CODE | |
| LOW | backend/services/assistant/changes.py | 1042 | CODE | |
| LOW | backend/services/assistant/changes.py | 1190 | CODE | |
| LOW | backend/services/assistant/changes.py | 232 | CODE | |
| LOW | backend/services/assistant/generation.py | 76 | CODE | |
| LOW | backend/services/assistant/generation.py | 196 | CODE | |
| LOW | backend/services/assistant/generation.py | 431 | CODE | |
| LOW | backend/services/assistant/generation.py | 368 | CODE | |
| LOW | backend/services/assistant/domain.py | 104 | CODE | |
| LOW | backend/services/assistant/tools.py | 207 | CODE | |
| LOW | backend/services/assistant/runtime.py | 123 | CODE | |
| 119 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | desktop_launcher/ui.py | 99 | def set_action(self, symbol: str, label: str) -> None: | CODE |
| LOW | desktop_launcher/ui.py | 115 | def set_theme(self, colors: dict[str, str]) -> None: | CODE |
| LOW | desktop_launcher/app.py | 1019 | def set_command(self, command: list[str], *, build_before_start: bool = False) -> None: | CODE |
| LOW | desktop_launcher/app.py | 1191 | def _set_port_status(self, message: str, level: str = "info") -> None: | CODE |
| LOW | backend/runtime.py | 161 | def set_backend_debug_enabled(enabled: bool) -> None: | CODE |
| LOW | backend/app.py | 91 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/llm/__init__.py | 19 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/item_pydantic.py | 443 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/character_relation_pydantic.py | 608 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/novel_pydantic.py | 470 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/__init__.py | 8 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/location_pydantic.py | 580 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/faction_volume_state_pydantic.py | 229 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/character_volume_state_pydantic.py | 214 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/world_rule_pydantic.py | 227 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/volume_planning_pydantic.py | 542 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/character_pydantic.py | 772 | __all__ = [ | CODE |
| LOW | backend/llm/schemas/faction_relation_pydantic.py | 570 | __all__ = [ | CODE |
| LOW | backend/config/config.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/config/__init__.py | 15 | __all__ = [ | CODE |
| LOW | backend/db/mongo.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/db/transaction.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/db/confirmation_timing.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/db/indexes.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/db/write_contracts.py | 320 | __all__ = [ | CODE |
| LOW | …d/db/repositories/character_volume_state_repository.py | 597 | __all__ = [ | CODE |
| LOW | backend/db/repositories/item_repository.py | 583 | __all__ = ["ItemRepository", "item_repo"] | CODE |
| LOW | backend/db/repositories/faction_relation_repository.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | …d/db/repositories/volume_command_receipt_repository.py | 76 | __all__ = ["VolumeCommandReceiptRepository", "volume_command_receipt_repo"] | CODE |
| LOW | backend/db/repositories/world_rule_repository.py | 573 | __all__ = [ | CODE |
| LOW | …end/db/repositories/faction_volume_state_repository.py | 598 | __all__ = [ | CODE |
| LOW | backend/db/repositories/location_repository.py | 617 | __all__ = ["LocationRepository", "location_repo"] | CODE |
| LOW | backend/db/repositories/volume_repository.py | 278 | __all__ = ["VolumeRepository", "volume_repo"] | CODE |
| LOW | backend/db/repositories/novel_repository.py | 606 | __all__ = ["NovelRepository", "novel_repo"] | CODE |
| LOW | backend/api/contracts.py | 155 | __all__ = [ | CODE |
| LOW | backend/api/error_protocol.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | backend/api/error_protocol.py | 583 | __all__ = [ | CODE |
| LOW | …d/api/default_routers/character_volume_state_router.py | 492 | __all__ = ["router", "plan_router"] | CODE |
| LOW | backend/api/default_routers/item_router.py | 479 | __all__ = ["router"] | CODE |
| LOW | …end/api/default_routers/faction_volume_state_router.py | 469 | __all__ = ["router"] | CODE |
| LOW | backend/api/default_routers/character_router.py | 440 | __all__ = [ | CODE |
| LOW | backend/api/default_routers/volume_router.py | 562 | __all__ = [ | CODE |
| LOW | backend/api/default_routers/initialization_router.py | 35 | __all__ = ["router"] | CODE |
| LOW | backend/api/default_routers/novel_router.py | 591 | __all__ = [ | CODE |
| LOW | backend/api/default_routers/world_rule_router.py | 579 | __all__ = [ | CODE |
| LOW | backend/api/default_routers/location_router.py | 454 | __all__ = ["router"] | CODE |
| LOW | backend/api/default_routers/faction_relation_router.py | 414 | __all__ = ["router", "serialize_faction_relation"] | CODE |
| LOW | …pi/default_routers/character_faction_binding_router.py | 722 | __all__ = [ | CODE |
| LOW | …ckend/api/default_routers/character_relation_router.py | 403 | __all__ = ["router", "serialize_character_relation"] | CODE |
| LOW | …d/api/llm_routers/volume_location_generation_router.py | 56 | __all__ = ["router"] | CODE |
| LOW | backend/api/llm_routers/world_rule_generation_router.py | 52 | __all__ = ["router"] | CODE |
| LOW | backend/api/llm_routers/volume_planning_router.py | 117 | __all__ = ["router"] | CODE |
| LOW | backend/api/llm_routers/item_generation_router.py | 52 | __all__ = ["router"] | CODE |
| LOW | backend/api/llm_routers/character_generation_router.py | 113 | __all__ = ["router"] | CODE |
| LOW | backend/services/llm/item_generation_service.py | 38 | __all__ = ["ItemGenerationService"] | CODE |
| LOW | backend/services/llm/world_rule_generation_contract.py | 113 | __all__ = [ | CODE |
| LOW | backend/services/llm/format_review_service.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | …end/services/llm/volume_planning_generation_service.py | 360 | __all__ = ["VOLUME_PLANNING_INPUT_MAX_CHARS", "VolumePlanningGenerationService"] | CODE |
| LOW | …nd/services/llm/faction_relation_generation_service.py | 302 | __all__ = [ | CODE |
| LOW | backend/services/llm/character_generation_service.py | 469 | __all__ = [ | CODE |
| 41 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | desktop_launcher/settings.py | 151 | except OSError: | CODE |
| HIGH | backend/llm/claude_client.py | 328 | except json.JSONDecodeError: | CODE |
| HIGH | backend/services/task_flows/graph.py | 219 | except FlowValidationError: | CODE |
| HIGH | backend/services/novel/volume_service.py | 351 | except Exception: | CODE |
| HIGH | backend/services/novel/location_service.py | 468 | except Exception: | CODE |
| HIGH | backend/services/novel/location_service.py | 1572 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/src/i18n/messages/zh.json | 951 | "placeholder": { | CODE |
| LOW | frontend/src/i18n/messages/zh.json | 1021 | "placeholder": "搜索名称、别名、标签或身份…" | CODE |
| LOW | frontend/src/i18n/messages/zh.json | 1211 | "placeholder": "输入你想如何修改这部分内容...", | CODE |
| LOW | frontend/src/i18n/messages/en.json | 951 | "placeholder": { | CODE |
| LOW | frontend/src/i18n/messages/en.json | 1021 | "placeholder": "Search names, aliases, tags, or identity…" | CODE |
| LOW | frontend/src/i18n/messages/en.json | 1211 | "placeholder": "Describe how you want this part changed...", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/config/config_default.yaml | 1 | config_version: 1 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/services/task_flows/engine.py | 54 | CODE |