AI Agent 驱动的开源可自部署视频工作台:将小说与剧本转为角色、场景、道具资产、分镜、视频和剪映草稿,支持跨镜头一致性、多供应商与费用追踪 | Self-hosted AI video workspace for stories, storyboards and short-form video production
This report summarizes scanner evidence for ArcReel/ArcReel, a Python project with 5,943 GitHub stars. SynthScan examined 808,016 lines of code across 3494 source files, recording 16406 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 22.3 (Elevated 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? 13370 finding(s).
Are imports declared and package/API names verified? 1557 finding(s).
Are wrappers, guards, and repeated structures necessary? 14453 finding(s).
Which changes need focused human review? 16406 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 16406 distinct pattern matches across 22 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/e2e/regions/onboarding.spec.ts | 49 | async function expectPopoverBesideAnchor(page: Page) { | CODE |
| LOW | frontend/src/api.ts | 339 | function normalizeDiagnosticsBucket(value: unknown): { code: string; message: string; location?: string }[] { | CODE |
| LOW | frontend/src/api.ts | 358 | function normalizeImportFailureDiagnostics(value: unknown): ImportFailureDiagnostics { | CODE |
| LOW | frontend/src/api.ts | 367 | function normalizeExportDiagnostics(value: unknown): ExportDiagnostics { | CODE |
| LOW | frontend/src/test/factories.ts | 136 | export function makeReferenceUnitCapability( | CODE |
| LOW | frontend/src/stores/app-store.ts | 41 | function readPersistedAssistantPanelWidth(): number { | CODE |
| LOW | frontend/src/stores/app-store.ts | 54 | function readPersistedAssistantPanelOpen(): boolean | null { | CODE |
| LOW | frontend/src/stores/app-store.ts | 64 | function persistAssistantPanelOpen(open: boolean): void { | CODE |
| LOW | frontend/src/stores/app-store.ts | 162 | function buildWorkspaceNotification( | CODE |
| LOW | frontend/src/stores/tasks-store.ts | 192 | function pruneSupersededOptimistic(tasks: TaskItem[], marks: ReadonlySet<string>): Set<string> { | CODE |
| LOW | frontend/src/stores/tasks-store.ts | 500 | export function selectLatestTaskByResource( | CODE |
| LOW | frontend/src/stores/tasks-store.ts | 596 | export function selectHasActiveTaskForScriptFile( | CODE |
| LOW | frontend/src/stores/tasks-store.ts | 648 | export function useHasActiveTaskForScriptFile( | CODE |
| LOW | frontend/src/utils/anthropic-url.ts | 16 | export function normalizeAnthropicBaseUrl(raw: string): string { | CODE |
| LOW | frontend/src/utils/anthropic-url.ts | 34 | export function hasUnsupportedUrlComponents(raw: string): boolean { | CODE |
| LOW | frontend/src/utils/provider-models.ts | 228 | export function lookupEndpointConstraints( | CODE |
| LOW | frontend/src/utils/entry-projection.ts | 567 | export function collectCommittedMessageIds(entries: TimelineEntry[]): Set<string> { | CODE |
| LOW | frontend/src/utils/project-changes.ts | 173 | export function formatGroupedNotificationText( | CODE |
| LOW | frontend/src/utils/project-changes.ts | 193 | export function formatGroupedDeferredText( | CODE |
| LOW | frontend/src/components/ui/questionnaire.tsx | 143 | function QuestionnaireChoiceDescription({ | CODE |
| LOW | frontend/src/components/ui/chart.tsx | 359 | function getPayloadConfigFromPayload( | CODE |
| LOW | …c/components/layout/ScriptGenerationNoticeListener.tsx | 8 | export function ScriptGenerationNoticeListener() { | CODE |
| LOW | frontend/src/components/layout/workspace-layout.ts | 60 | export function sidebarAutoCollapseReason(location: string, compact: boolean): "compact" | "episodes" | null { | CODE |
| LOW | frontend/src/components/usage/usage-test-utils.tsx | 7 | export function renderUsageRecordsSection(search = "section=usage") { | CODE |
| LOW | frontend/src/components/usage/usage-fixtures.ts | 141 | export function makeUsageAgentSessionRecord( | CODE |
| LOW | frontend/src/components/shared/LayeredModelFields.tsx | 25 | export function useGenerationTypeBucketLabels(): Record<GenerationTypeBucket, { label: string; caption?: string }> { | CODE |
| LOW | …d/src/components/shared/EpisodeTargetDurationField.tsx | 25 | export function EpisodeTargetDurationField({ value, onChange }: EpisodeTargetDurationFieldProps) { | CODE |
| LOW | …d/src/components/shared/VideoModelUnresolvedNotice.tsx | 11 | export function VideoModelUnresolvedNotice({ projectName }: { projectName: string }) { | CODE |
| LOW | …ntend/src/components/shared/episode-target-duration.ts | 6 | export function isValidEpisodeTargetDuration(value: number | null): boolean { | CODE |
| LOW | …src/components/shared/ScriptOverwriteConfirmDialog.tsx | 36 | export function ScriptOverwriteConfirmDialog({ | CODE |
| LOW | …/src/components/canvas/episodes/episodes-view-model.ts | 100 | export function isReservedEpisodeFileName(filename: string): boolean { | CODE |
| LOW | …tend/src/components/canvas/shared/text-task-failure.ts | 22 | export function latestEpisodeTextTaskFailure( | CODE |
| LOW | …c/components/canvas/shared/prompt-authoring-handoff.ts | 13 | export function promptAuthoringHandoffText(t: TFunction, handoff: PromptAuthoringHandoff): string { | CODE |
| LOW | …/src/components/canvas/shared/duration-incompatible.ts | 14 | export function durationIncompatibleLabel( | CODE |
| LOW | …mponents/canvas/lorebook/useStaleRegenerateConfirm.tsx | 38 | export function useStaleRegenerateConfirm({ | CODE |
| LOW | …mponents/canvas/lorebook/CharacterDerivativesField.tsx | 36 | export function CharacterDerivativesField({ | CODE |
| LOW | …onents/canvas/lorebook/useCharacterDerivativeSheets.ts | 13 | export function useCharacterDerivativeSheets( | CODE |
| LOW | …omponents/canvas/episode-page/EpisodeHeaderActions.tsx | 10 | export function EpisodeHeaderSlotProvider({ value, children }: { value: HTMLElement | null; children: ReactNode }) { | CODE |
| LOW | …/src/components/canvas/timeline/VersionTimeMachine.tsx | 53 | function getImagePreviewHeightClass( | CODE |
| LOW | …src/components/canvas/timeline/TimelineCanvas.test.tsx | 257 | function renderWithAllWriteHandlers() { | CODE |
| LOW | …s/canvas/reference/ReferenceScriptPlanPreviewPanel.tsx | 452 | export function ReferenceScriptPlanPreviewPanel({ | CODE |
| LOW | …ts/canvas/reference/ReferenceDurationConfirmDialog.tsx | 66 | export function ReferenceDurationConfirmDialog({ open, items, onConfirm, onCancel }: Props) { | CODE |
| LOW | …nents/canvas/reference/ReferenceBatchPreviewDialog.tsx | 37 | export function ReferenceBatchPreviewDialog({ | CODE |
| LOW | …nts/canvas/reference/ReferenceBatchAdmissionDialog.tsx | 51 | export function ReferenceBatchAdmissionDialog({ admission, onConfirm, onClose }: Props) { | CODE |
| LOW | …ponents/canvas/reference/PromptAuthoringDraftPanel.tsx | 33 | function narrowPromptAuthoringDraft(content: Record<string, unknown> | null): PromptAuthoringDraft | null { | CODE |
| LOW | …ponents/canvas/reference/PromptAuthoringDraftPanel.tsx | 83 | export function PromptAuthoringDraftPanel({ projectName, episode, view, onSettled }: PromptAuthoringDraftPanelProps) { | CODE |
| LOW | …ntend/src/components/pages/CreateProjectModal.test.tsx | 82 | function stubModelVideoCapabilities() { | CODE |
| LOW | …ponents/pages/settings/ProviderCapabilityOverrides.tsx | 48 | export function ProviderCapabilityOverrides({ capabilities, value, onChange, onValidityChange }: Props) { | CODE |
| LOW | …c/components/pages/settings/customProviderFormState.ts | 139 | export function newProviderDefaultMultiplier(isComfyui: boolean): number { | CODE |
| LOW | …tend/src/components/pages/settings/capabilityValues.ts | 33 | export function withoutDroppedResolutions(constraints: unknown, resolutions: string[]): Constraints { | CODE |
| LOW | …/pages/settings/endpoints/endpoint-form-primitives.tsx | 35 | export function VariableInsertionProvider({ children }: { children: React.ReactNode }) { | CODE |
| LOW | …ages/settings/endpoints/ComfyuiEndpointTestSection.tsx | 92 | export function ComfyuiEndpointTestSection({ definition, providers, blocked }: ComfyuiEndpointTestSectionProps) { | CODE |
| LOW | …/pages/settings/endpoints/endpoint-definition-draft.ts | 228 | export function isRenderableComfyuiDefinition(value: unknown): value is ComfyuiEndpointDefinition { | CODE |
| LOW | …d/src/components/pages/lobby/DeletedProjectsDialog.tsx | 212 | function PurgeDeletedProjectDialog({ | CODE |
| LOW | …c/components/pages/lobby/ImportReportConfirmDialog.tsx | 36 | export function ImportReportConfirmDialog({ pending, importing, onConfirm, onCancel }: ImportReportConfirmDialogProps) { | CODE |
| LOW | frontend/src/hooks/useTaskFailureNotifications.ts | 24 | export function useTaskFailureNotifications(projectName?: string | null): void { | CODE |
| LOW | frontend/src/hooks/useScriptGenerationNotice.ts | 29 | export function useScriptGenerationNotice(): void { | CODE |
| LOW | frontend/src/hooks/useScriptReviewDraft.ts | 24 | function isScriptPlanConfirmedError(err: unknown): boolean { | CODE |
| LOW | frontend/src/hooks/useAssistantSession.ts | 914 | function getPendingQuestionFromEvent(payload: Record<string, unknown>): PendingQuestion | null { | CODE |
| LOW | frontend/src/hooks/useScrollTarget.ts | 24 | function scrollIntoViewUntilSettled(el: HTMLElement): () => void { | CODE |
| 12885 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …tend/src/components/shared/ModelConfigSection.test.tsx | 957 | // ── 联动约束:分辨率 / 参考图路径收窄可选时长 ────────────────── | COMMENT |
| MEDIUM | tests/conftest.py | 335 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 337 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 563 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 565 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 583 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 585 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 777 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 779 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 794 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 796 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 811 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 813 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/test_public_contract.py | 12 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/test_public_contract.py | 14 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/test_public_contract.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/test_public_contract.py | 41 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/test_public_contract.py | 82 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/test_public_contract.py | 84 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/test_public_contract.py | 106 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/test_public_contract.py | 108 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_market_entries_api.py | 117 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_market_entries_api.py | 119 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_market_entries_api.py | 200 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_market_entries_api.py | 202 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_market_entries_api.py | 241 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_market_entries_api.py | 243 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_system_config_router.py | 116 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_system_config_router.py | 118 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_system_config_router.py | 28 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_system_config_router.py | 30 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_system_config_router.py | 300 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_system_config_router.py | 302 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_custom_endpoints_api.py | 104 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_custom_endpoints_api.py | 106 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_custom_endpoints_api.py | 277 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_custom_endpoints_api.py | 279 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_custom_endpoints_api.py | 412 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_custom_endpoints_api.py | 414 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_custom_endpoints_api.py | 25 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_custom_endpoints_api.py | 27 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_agent_config_router.py | 82 | # ── Task 10: /agent/credentials CRUD ───────────────────────────── | COMMENT |
| MEDIUM | tests/unit/server/routers/test_agent_config_router.py | 52 | # ── Task 9: GET /agent/preset-providers ─────────────────────────── | COMMENT |
| MEDIUM | tests/unit/server/routers/test_agent_config_router.py | 330 | # ── 倍率与档位定价状态 ───────────────────────────────────────── | COMMENT |
| MEDIUM | tests/unit/server/routers/test_agent_config_router.py | 414 | # ── 档位手动绑定 ────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/unit/server/routers/test_agent_config_router.py | 596 | # ── Task 11: POST /agent/credentials/{id}/activate ──────────────── | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 28 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 30 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 49 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 51 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 314 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 316 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 537 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 539 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 705 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unit/server/routers/test_providers_api.py | 707 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_system_config_options.py | 57 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_system_config_options.py | 59 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_system_config_options.py | 275 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/server/routers/test_system_config_options.py | 277 | # --------------------------------------------------------------------------- | COMMENT |
| 538 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …kills/adapt-custom-endpoint/scripts/custom_endpoint.py | 4 | CODE | |
| LOW | tests/conftest.py | 20 | CODE | |
| LOW | tests/memory_db_guard.py | 13 | CODE | |
| LOW | tests/legacy_project_shapes.py | 8 | CODE | |
| LOW | tests/http_capture.py | 8 | CODE | |
| LOW | tests/catalog_support.py | 3 | CODE | |
| LOW | tests/hang_watchdog.py | 22 | CODE | |
| LOW | tests/factories.py | 3 | CODE | |
| LOW | tests/fakes.py | 7 | CODE | |
| LOW | tests/mutmut_plugin.py | 18 | CODE | |
| LOW | tests/speech_contract_cases.py | 3 | CODE | |
| LOW | tests/unit/test_frontend_mcp_tool_i18n.py | 11 | CODE | |
| LOW | tests/unit/test_instruction_terminology.py | 9 | CODE | |
| LOW | tests/unit/test_edit_video_review_contract.py | 7 | CODE | |
| LOW | tests/unit/test_frontend_task_type_i18n.py | 28 | CODE | |
| LOW | tests/unit/test_image_review_contract.py | 7 | CODE | |
| LOW | tests/unit/test_frontend_skill_i18n.py | 14 | CODE | |
| LOW | tests/unit/server/test_request_logging_middleware.py | 3 | CODE | |
| LOW | tests/unit/server/test_frontend_mount.py | 3 | CODE | |
| LOW | tests/unit/server/test_tool_runtime.py | 1 | CODE | |
| LOW | tests/unit/server/app_lifespan_support.py | 3 | CODE | |
| LOW | tests/unit/server/test_auth_kill_switch.py | 3 | CODE | |
| LOW | …ts/unit/server/test_session_store_startup_migration.py | 3 | CODE | |
| LOW | tests/unit/server/test_draft_repair.py | 3 | CODE | |
| LOW | tests/unit/server/test_cors_config.py | 3 | CODE | |
| LOW | tests/unit/server/test_startup_assertions.py | 3 | CODE | |
| LOW | tests/unit/server/routers/test_comfyui_inference_api.py | 7 | CODE | |
| LOW | …s/unit/server/routers/test_project_migration_routes.py | 3 | CODE | |
| LOW | …nit/server/routers/test_discover_anthropic_fallback.py | 3 | CODE | |
| LOW | tests/unit/server/routers/test_market_entries_api.py | 3 | CODE | |
| LOW | tests/unit/server/routers/test_system_config_router.py | 8 | CODE | |
| LOW | tests/unit/server/routers/test_custom_endpoints_api.py | 6 | CODE | |
| LOW | tests/unit/server/routers/test_script_review_errors.py | 3 | CODE | |
| LOW | tests/unit/server/routers/test_agent_config_router.py | 3 | CODE | |
| LOW | tests/unit/server/routers/test_providers_api.py | 8 | CODE | |
| LOW | tests/unit/server/routers/test_openai_connection.py | 7 | CODE | |
| LOW | tests/unit/server/routers/test_system_config_options.py | 8 | CODE | |
| LOW | tests/unit/server/routers/test_endpoint_tests_api.py | 6 | CODE | |
| LOW | tests/unit/server/routers/test_custom_providers_api.py | 7 | CODE | |
| LOW | …s/unit/server/routers/test_custom_providers_comfyui.py | 7 | CODE | |
| LOW | …server/routers/test_web_write_change_source_marking.py | 11 | CODE | |
| LOW | tests/unit/server/routers/test_file_responses.py | 3 | CODE | |
| LOW | tests/unit/server/routers/test_system_logs_router.py | 3 | CODE | |
| LOW | tests/unit/server/routers/test_market_sources_api.py | 3 | CODE | |
| LOW | tests/unit/server/routers/test_system_version_api.py | 1 | CODE | |
| LOW | tests/unit/server/media_tools/test_context.py | 3 | CODE | |
| LOW | …t/server/agent_runtime/test_session_manager_sandbox.py | 7 | CODE | |
| LOW | …/unit/server/agent_runtime/test_sdk_0_1_76_features.py | 8 | CODE | |
| LOW | tests/unit/server/agent_runtime/test_session_actor.py | 7 | CODE | |
| LOW | …/agent_runtime/test_session_manager_store_injection.py | 3 | CODE | |
| LOW | …/unit/server/agent_runtime/test_agent_startup_error.py | 14 | CODE | |
| LOW | …ts/unit/server/agent_runtime/test_options_assembler.py | 8 | CODE | |
| LOW | tests/unit/server/agent_runtime/test_event_log.py | 3 | CODE | |
| LOW | …r/agent_runtime/test_session_manager_sdk_session_id.py | 3 | CODE | |
| LOW | tests/unit/server/agent_runtime/test_sdk_frames.py | 8 | CODE | |
| LOW | tests/unit/server/agent_runtime/test_keyed_locks.py | 3 | CODE | |
| LOW | …/agent_runtime/test_session_manager_init_session_id.py | 3 | CODE | |
| LOW | tests/unit/server/agent_runtime/test_entry_pipeline.py | 3 | CODE | |
| LOW | tests/unit/server/agent_runtime/test_entry_stream.py | 3 | CODE | |
| LOW | …/unit/server/agent_runtime/test_agent_access_policy.py | 6 | CODE | |
| 1426 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/legacy_project_shapes.py | 1167 | def set_script_episode(project_dir: Path, episode: int, value: int | None) -> None: | CODE |
| LOW | tests/legacy_project_shapes.py | 1681 | __all__ = [ | CODE |
| LOW⚡ | tests/unit/server/routers/test_system_config_router.py | 71 | async def _set_setting(key: str, value: str) -> None: | CODE |
| LOW⚡ | tests/unit/server/routers/test_system_config_router.py | 81 | async def _set_video_poll_timeout_seconds(value: int) -> None: | CODE |
| LOW | …sts/unit/server/services/tasks/test_resume_executor.py | 44 | def update_scene_asset(self, **kwargs: Any) -> None: | CODE |
| LOW | …nit/server/services/project/test_narration_settings.py | 14 | async def _set_globals(db_factory, **settings: str) -> None: | CODE |
| LOW | …nit/server/services/project/test_narration_settings.py | 22 | async def _set_api_keys(db_factory, *providers: str) -> None: | CODE |
| LOW | …/unit/lib/backends/test_accounting_characterization.py | 1205 | async def _set_provider_multiplier(acct: _AccountingDb, provider_id: str, value: float) -> None: | CODE |
| LOW | tests/unit/lib/project/test_asset_rename.py | 347 | def _set_paths(project: dict) -> None: | CODE |
| LOW | tests/unit/lib/project/test_asset_rename.py | 448 | def _set_paths(project: dict) -> None: | CODE |
| LOW | tests/unit/lib/project/test_asset_rename.py | 476 | def _set_paths(project: dict) -> None: | CODE |
| LOW | …gration/server/routers/test_validators_video_bucket.py | 20 | async def _set_default_video_backend(factory: async_sessionmaker[AsyncSession], value: str) -> None: | CODE |
| LOW | …gration/server/routers/test_reference_videos_router.py | 856 | def _set_project_narration(tmp_path: Path, **fields: object) -> None: | CODE |
| LOW | …/integration/server/routers/test_media_trash_router.py | 71 | def _set_end_frame(media_trash_pm: ProjectManager, content: bytes) -> None: | CODE |
| LOW | …ation/server/routers/test_custom_model_project_refs.py | 99 | async def _set_globals(db_factory, ref: str) -> None: | CODE |
| LOW | …ration/server/routers/test_market_installations_api.py | 346 | async def _set_index_entry(session_factory: async_sessionmaker[AsyncSession], source_id: int, **fields: object) -> None: | CODE |
| LOW | …er/agent_runtime/test_session_manager_usage_billing.py | 219 | async def set_multiplier(self, cred_id: int, multiplier: float) -> None: | CODE |
| LOW⚡ | …egration/server/services/project/test_script_review.py | 236 | def _set_episode_target_duration(pm: ProjectManager, seconds: int) -> None: | CODE |
| LOW | …egration/server/services/project/test_script_review.py | 153 | def _set_mode(p: dict) -> None: | CODE |
| LOW | …ration/lib/script/test_script_generator_incremental.py | 577 | def _set_entry(project_dir: Path, variant: _Variant, entry_id: str, **fields: Any) -> None: | CODE |
| LOW | …gration/lib/project/test_asset_derivative_namespace.py | 29 | def _set_derivatives(pm: ProjectManager, derivatives: dict[str, str]) -> None: | CODE |
| LOW⚡ | …ect/project_migrations/test_project_migration_v7_v8.py | 941 | def _update_project() -> None: | CODE |
| LOW | …t/project_migrations/test_project_migration_v13_v14.py | 194 | def _set_style_description(project_dir: Path, description: str) -> None: | CODE |
| LOW | server/auth.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/auth.py | 387 | def _set_api_key_cache(key_hash: str, payload: dict | None, expires_at_ts: float | None = None) -> None: | CODE |
| LOW | server/draft_workflow.py | 87 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/draft_repair.py | 46 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/remote_mcp.py | 159 | __all__ = [ | CODE |
| LOW | server/tool_runtime.py | 3849 | __all__ = [ | CODE |
| LOW | server/cors_config.py | 24 | __all__ = ["WILDCARD", "resolve_cors_policy"] | CODE |
| LOW | server/text_generation.py | 123 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/app.py | 316 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/i18n.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/error_handlers.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/auth.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/presentations.py | 100 | __all__ = ["get_presentation_bundle_service", "get_presentation_read_model", "router"] | CODE |
| LOW | server/routers/_source_file_changes.py | 67 | __all__ = ["ensure_no_displaced_tasks", "source_file_change_http_error", "source_file_change_payload"] | CODE |
| LOW | server/routers/project_events.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/files.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/script_review.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/episodes_view.py | 61 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/derivative_uploads.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/_episode_source_errors.py | 33 | __all__ = ["episode_source_http_error"] | CODE |
| LOW | server/routers/episode_management.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/generate.py | 60 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/market.py | 58 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/reference_videos.py | 89 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/assistant.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/agent_config.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/cost_estimation.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/end_frames.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | server/routers/providers.py | 62 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/_asset_derivatives.py | 45 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/custom_endpoints.py | 52 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/provider_models.py | 83 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/endpoint_tests.py | 78 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/_asset_derivative_status.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/assets.py | 52 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/system_config.py | 53 | logger = logging.getLogger(__name__) | CODE |
| LOW | server/routers/storyboard_batches.py | 170 | __all__ = ["router"] | CODE |
| 414 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …sts/unit/lib/generation/test_media_generator_resume.py | 141 | except Exception: | CODE |
| LOW | tests/unit/lib/generation/test_tts_skeleton.py | 168 | except Exception as exc: | CODE |
| LOW | tests/integration/test_blocking_guard.py | 55 | except Exception: | CODE |
| LOW | tests/integration/server/derivative_sheet_support.py | 142 | except Exception as exc: | CODE |
| MEDIUM | …s/integration/server/routers/test_end_frames_router.py | 390 | def _target() -> None: | CODE |
| LOW | …s/integration/server/routers/test_end_frames_router.py | 393 | except Exception as exc: # 主线程复述,不能只打印到 stderr | CODE |
| LOW | tests/integration/server/media_tools/test_grid.py | 42 | except Exception as exc: | CODE |
| LOW | tests/integration/server/media_tools/test_grid.py | 53 | except Exception as exc: | CODE |
| LOW | …tion/server/services/tasks/test_formal_image_commit.py | 230 | except Exception as exc: | CODE |
| LOW | …tion/server/services/tasks/test_formal_image_commit.py | 239 | except Exception as exc: | CODE |
| LOW | …on/lib/project/test_project_manager_concurrent_save.py | 298 | except Exception as e: | CODE |
| LOW | …on/lib/project/test_project_manager_concurrent_save.py | 305 | except Exception as e: | CODE |
| MEDIUM | …ect/project_migrations/test_project_migration_v7_v8.py | 590 | def _activate() -> None: | CODE |
| MEDIUM | …ect/project_migrations/test_project_migration_v7_v8.py | 601 | def _write() -> None: | CODE |
| MEDIUM | …ect/project_migrations/test_project_migration_v7_v8.py | 650 | def _write() -> None: | CODE |
| MEDIUM | …ect/project_migrations/test_project_migration_v7_v8.py | 661 | def _compete() -> None: | CODE |
| MEDIUM | …ect/project_migrations/test_project_migration_v7_v8.py | 709 | def _activate() -> None: | CODE |
| MEDIUM | …ect/project_migrations/test_project_migration_v7_v8.py | 1035 | def _save() -> None: | CODE |
| LOW⚡ | …ect/project_migrations/test_project_migration_v7_v8.py | 949 | except Exception as exc: # pragma: no cover - asserted below | CODE |
| LOW | …ect/project_migrations/test_project_migration_v7_v8.py | 598 | except Exception as exc: | CODE |
| LOW | …ect/project_migrations/test_project_migration_v7_v8.py | 605 | except Exception as exc: | CODE |
| LOW | …ect/project_migrations/test_project_migration_v7_v8.py | 658 | except Exception as exc: | CODE |
| LOW | …ect/project_migrations/test_project_migration_v7_v8.py | 665 | except Exception as exc: | CODE |
| LOW | …ect/project_migrations/test_project_migration_v7_v8.py | 714 | except Exception as exc: | CODE |
| LOW | …ect/project_migrations/test_project_migration_v7_v8.py | 727 | except Exception as exc: | CODE |
| LOW | …ect/project_migrations/test_project_migration_v7_v8.py | 1038 | except Exception as exc: # pragma: no cover - asserted below | CODE |
| LOW | …egration/lib/generation/test_media_generator_module.py | 146 | except Exception as exc: | CODE |
| LOW | server/auth.py | 461 | except Exception: | CODE |
| MEDIUM | server/auth.py | 457 | def _touch(): | CODE |
| LOW | server/draft_workflow.py | 1324 | except Exception as exc: | CODE |
| LOW | server/draft_workflow.py | 1497 | except Exception as exc: | CODE |
| LOW | server/draft_repair.py | 211 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 440 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 459 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 707 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 978 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1021 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1309 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1333 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1374 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1391 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1410 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1449 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1465 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1481 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1516 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1612 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1786 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 1836 | except Exception: | CODE |
| LOW | server/tool_runtime.py | 1847 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 2079 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 2153 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 2173 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 2217 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 2407 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 2889 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 3180 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 3347 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 3609 | except Exception as exc: | CODE |
| LOW | server/tool_runtime.py | 3631 | except Exception as exc: | CODE |
| 318 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …kills/adapt-custom-endpoint/scripts/custom_endpoint.py | 205 | CODE | |
| LOW | tests/legacy_project_shapes.py | 1586 | CODE | |
| LOW | tests/unit/lib/artifacts/test_version_manager.py | 589 | CODE | |
| LOW | tests/unit/lib/artifacts/test_version_manager.py | 691 | CODE | |
| LOW | tests/unit/lib/script/grid/test_grid_manager.py | 311 | CODE | |
| LOW | tests/integration/server/conftest.py | 121 | CODE | |
| LOW | …/integration/server/routers/projects_router_support.py | 313 | CODE | |
| LOW | …on/server/agent_runtime/test_event_log_session_flow.py | 1770 | CODE | |
| LOW | …erver/services/project/test_project_archive_service.py | 1692 | CODE | |
| LOW | tests/integration/lib/config/test_config_resolver.py | 1094 | CODE | |
| LOW | tests/integration/lib/config/test_config_resolver.py | 1506 | CODE | |
| LOW | …tion/lib/agent/agent_session_store/test_prefix_fork.py | 155 | CODE | |
| LOW | …on/lib/project/test_project_manager_concurrent_save.py | 107 | CODE | |
| LOW | …gration/lib/generation/test_task_failure_capability.py | 127 | CODE | |
| LOW | …gration/lib/generation/test_task_failure_capability.py | 311 | CODE | |
| LOW | …ib/generation/test_generation_worker_capacity_table.py | 40 | CODE | |
| LOW | …tech-doc-style-chinese/scripts/unwrap_md_paragraphs.py | 296 | CODE | |
| LOW | …tech-doc-style-chinese/scripts/unwrap_md_paragraphs.py | 555 | CODE | |
| LOW | …tech-doc-style-chinese/scripts/unwrap_md_paragraphs.py | 618 | CODE | |
| LOW | …ills/tech-doc-style-chinese/scripts/lint_copy_rules.py | 38 | CODE | |
| LOW | …ills/tech-doc-style-chinese/scripts/lint_copy_rules.py | 224 | CODE | |
| LOW | …ills/tech-doc-style-chinese/scripts/lint_copy_rules.py | 438 | CODE | |
| LOW | server/auth.py | 282 | CODE | |
| LOW | server/tool_runtime.py | 1200 | CODE | |
| LOW | server/tool_runtime.py | 1907 | CODE | |
| LOW | server/tool_runtime.py | 3253 | CODE | |
| LOW | server/tool_runtime.py | 3536 | CODE | |
| LOW | server/routers/files.py | 404 | CODE | |
| LOW | server/routers/files.py | 891 | CODE | |
| LOW | server/routers/files.py | 1221 | CODE | |
| LOW | server/routers/files.py | 501 | CODE | |
| LOW | server/routers/files.py | 895 | CODE | |
| LOW | server/routers/system.py | 27 | CODE | |
| LOW | server/routers/episodes_view.py | 227 | CODE | |
| LOW | server/routers/derivative_uploads.py | 43 | CODE | |
| LOW | server/routers/reference_videos.py | 806 | CODE | |
| LOW | server/routers/providers.py | 561 | CODE | |
| LOW | server/routers/assets.py | 575 | CODE | |
| LOW | server/routers/assets.py | 758 | CODE | |
| LOW | server/routers/_batch_admission.py | 18 | CODE | |
| LOW | server/routers/_asset_router_factory.py | 193 | CODE | |
| LOW | server/routers/_asset_router_factory.py | 215 | CODE | |
| LOW | server/routers/_asset_router_factory.py | 291 | CODE | |
| LOW | server/routers/versions.py | 173 | CODE | |
| LOW | server/routers/projects.py | 417 | CODE | |
| LOW | server/routers/projects.py | 584 | CODE | |
| LOW | server/routers/projects.py | 926 | CODE | |
| LOW | server/routers/projects.py | 1037 | CODE | |
| LOW | server/routers/projects.py | 1859 | CODE | |
| LOW | server/routers/projects.py | 1968 | CODE | |
| LOW | server/routers/projects.py | 587 | CODE | |
| LOW | server/routers/projects.py | 1041 | CODE | |
| LOW | server/routers/projects.py | 1044 | CODE | |
| LOW | server/routers/shot_uploads.py | 51 | CODE | |
| LOW | server/routers/episode_planning.py | 236 | CODE | |
| LOW | server/routers/custom_providers.py | 1617 | CODE | |
| LOW | server/media_tools/image_edits.py | 231 | CODE | |
| LOW | server/media_tools/image_review.py | 146 | CODE | |
| LOW | server/media_tools/video_review.py | 139 | CODE | |
| LOW | server/media_tools/videos.py | 777 | CODE | |
| 216 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/unit/lib/backends/image_backends/test_gemini.py | 139 | backend_aistudio._client.aio.models.generate_content.assert_awaited_once() | CODE |
| CRITICAL⚡ | tests/unit/lib/backends/text_backends/test_ark.py | 232 | backend_with_structured._test_client.chat.completions.create.assert_called_once_with( | CODE |
| CRITICAL | tests/unit/lib/backends/text_backends/test_ark.py | 111 | backend._test_client.chat.completions.create.assert_called_once_with( | CODE |
| CRITICAL | tests/unit/lib/backends/text_backends/test_ark.py | 389 | backend_with_structured._test_client.chat.completions.create.assert_called_once() | CODE |
| CRITICAL | tests/unit/lib/backends/text_backends/test_ark.py | 391 | backend_with_structured._openai_client.chat.completions.create.assert_called_once() | CODE |
| CRITICAL | tests/unit/lib/backends/text_backends/test_ark.py | 434 | backend._test_client.chat.completions.create.assert_called_once() | CODE |
| CRITICAL | tests/unit/lib/backends/text_backends/test_ark.py | 558 | backend._openai_client.chat.completions.create.assert_not_called() | CODE |
| CRITICAL | tests/unit/lib/backends/text_backends/test_ark.py | 638 | backend._test_client.chat.completions.create.assert_called_once() | CODE |
| CRITICAL⚡ | …b/backends/video_backends/test_video_backend_gemini.py | 179 | gemini_backend._client.aio.models.generate_videos.assert_not_awaited() | CODE |
| CRITICAL⚡ | …b/backends/video_backends/test_video_backend_gemini.py | 190 | gemini_backend._client.aio.models.generate_videos.assert_not_awaited() | CODE |
| CRITICAL | …b/backends/video_backends/test_video_backend_gemini.py | 233 | gemini_backend._client.aio.models.generate_videos.assert_awaited_once() | CODE |
| CRITICAL | …b/backends/video_backends/test_video_backend_gemini.py | 283 | gemini_backend._client.aio.operations.get.assert_awaited_once_with(pending_op) | CODE |
| CRITICAL | …b/backends/video_backends/test_video_backend_gemini.py | 382 | gemini_backend._client.aio.models.generate_videos.assert_awaited_once() | CODE |
| CRITICAL | …b/backends/video_backends/test_video_backend_gemini.py | 421 | gemini_backend._client.aio.models.generate_videos.assert_awaited_once() | CODE |
| CRITICAL | …b/backends/video_backends/test_video_backend_gemini.py | 752 | gemini_backend._client.aio.operations.get.assert_awaited_once_with(rebuilt_op) | CODE |
| CRITICAL | …/lib/backends/video_backends/test_video_backend_ark.py | 273 | ark_backend._client.content_generation.tasks.create.assert_not_called() | CODE |
| CRITICAL | …/lib/backends/video_backends/test_video_backend_ark.py | 289 | ark_backend._client.content_generation.tasks.create.assert_not_called() | CODE |
| CRITICAL | …ackends/video_backends/test_gemini_video_resolution.py | 99 | backend._client.aio.models.generate_videos.assert_awaited_once() | CODE |
| CRITICAL | lib/backends/audio_backends/openai.py | 144 | async with self._client.audio.speech.with_streaming_response.create(**kwargs) as response: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …s/integration/server/agent_toolset/test_draft_tools.py | 960 | except BrokenPipeError: | CODE |
| HIGH | …on/lib/project/test_project_manager_concurrent_save.py | 473 | except KeyError: | CODE |
| HIGH | server/tool_runtime.py | 3231 | except TaskNotCancellableError: | CODE |
| HIGH | server/routers/system_config.py | 231 | except Exception: | CODE |
| HIGH | server/services/project/end_frame.py | 179 | except _RollbackDone: | CODE |
| HIGH | server/services/system/diagnostics.py | 31 | except PackageNotFoundError: | CODE |
| HIGH | server/services/currency/video_artifact_currency.py | 316 | except KeyError: | CODE |
| HIGH | lib/artifacts/artifact_planner.py | 771 | except (TypeError, ValueError): | CODE |
| HIGH | lib/artifacts/artifact_planner.py | 1686 | except (TypeError, ValueError): | CODE |
| HIGH | lib/artifacts/artifact_manifest.py | 1713 | except FileNotFoundError: | CODE |
| HIGH | lib/artifacts/artifact_manifest.py | 1336 | except ArtifactManifestError: | CODE |
| HIGH | lib/infra/env_init.py | 116 | except OSError: | CODE |
| HIGH | lib/infra/logging_utils.py | 209 | except Exception: | CODE |
| HIGH | lib/infra/logging_utils.py | 215 | except Exception: | CODE |
| HIGH | lib/backends/openai_shared.py | 48 | except ImportError: | CODE |
| HIGH | lib/backends/grok_shared.py | 40 | except ImportError: | CODE |
| HIGH | lib/backends/grok_shared.py | 56 | except ImportError: | CODE |
| HIGH | lib/script/reference_video/execution_checkpoint.py | 395 | except BaseException: | CODE |
| HIGH | lib/script/source_loader/txt.py | 32 | except UnicodeDecodeError: | CODE |
| HIGH | lib/script/source_loader/txt.py | 41 | except (UnicodeDecodeError, LookupError): | CODE |
| HIGH | lib/script/source_loader/pdf.py | 40 | except Exception: | CODE |
| HIGH | lib/script/source_loader/migration.py | 48 | except UnicodeDecodeError: | CODE |
| HIGH | lib/script/source_loader/migration.py | 112 | except Exception: | CODE |
| HIGH | lib/project/trash_restore.py | 253 | except OSError: | CODE |
| HIGH | lib/project/project_manager.py | 812 | except ScriptEditError: | CODE |
| HIGH | lib/generation/media_generator.py | 146 | except (ValueError, TypeError): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …t/server/agent_runtime/test_session_manager_sandbox.py | 257 | "python .claude/skills/x/scripts/run.py && python -c \"open('project.json','w')\"", | CODE |
| HIGH | tests/unit/server/agent_runtime/test_turn_schema.py | 143 | """SDK may send {type: text, text: null} — must not TypeError on join.""" | STRING |
| HIGH | tests/unit/lib/artifacts/test_artifact_provenance.py | 28 | == ('{"inputs":{"a":[1,true,null],"z":"雪"},"kind":"structured-content-test","kind_version":2}').encode() | CODE |
| HIGH⚡ | …it/lib/project/test_project_manager_save_validation.py | 238 | '{"episode": 1, "title": "x", "content_mode": "narration", "segments": null, ' | CODE |
| HIGH⚡ | …it/lib/project/test_project_manager_save_validation.py | 250 | '"generation_mode": "reference_video", "video_units": null, ' | CODE |
| HIGH | …ver/services/admission/test_cost_estimation_service.py | 1264 | """单集脏脚本(segments=null)不应让整个项目费用估算 5xx;脏集降级为 0 segments | STRING |
| HIGH | …sts/integration/lib/db/repositories/test_usage_repo.py | 9 | from sqlalchemy import null, select, update | CODE |
| HIGH⚡ | server/tool_runtime.py | 3431 | value = _coerce_numeric_string(value, int, f"{key} 必须是正整数或 null,收到 {value!r}") | CODE |
| HIGH⚡ | server/tool_runtime.py | 3433 | raise ValueError(f"{key} 必须是正整数或 null,收到 {value!r}") | CODE |
| HIGH⚡ | server/tool_runtime.py | 3440 | f"{MAX_EPISODE_TARGET_DURATION} 秒的整数或 null,收到 {value!r}" | CODE |
| HIGH⚡ | server/tool_runtime.py | 3449 | raise ValueError(f"source_language 必须是 {list(_SOURCE_LANGUAGE_VALUES)} 之一或 null,收到 {value!r}") | CODE |
| HIGH⚡ | server/tool_runtime.py | 3453 | raise ValueError(f"brief 必须是字符串或 null,收到 {value!r}") | CODE |
| HIGH⚡ | server/tool_runtime.py | 3458 | f"character_voice_binding 必须是 {sorted(VALID_CHARACTER_VOICE_BINDINGS)} 之一或 null,收到 {value!r}" | CODE |
| HIGH⚡ | server/tool_runtime.py | 3463 | raise ValueError(f"narration_voice 必须是非空字符串或 null,收到 {value!r}") | CODE |
| HIGH⚡ | server/tool_runtime.py | 3469 | value = _coerce_numeric_string(value, float, f"narration_speed 必须是正的有限数值或 null,收到 {value!r}") | CODE |
| HIGH⚡ | server/tool_runtime.py | 3476 | raise ValueError(f"narration_speed 必须是正的有限数值或 null,收到 {value!r}") | CODE |
| HIGH | server/services/admission/cost_estimation.py | 824 | # Project-level actual costs (characters/scenes/props/products 资产图—— segment_id is null) | COMMENT |
| HIGH | lib/artifacts/artifact_provenance.py | 139 | raise ValueError(f"source_language must be a non-empty string or null, got {source_language!r}") | CODE |
| HIGH | lib/db/repositories/usage_repo.py | 13 | from sqlalchemy import ColumnElement, and_, case, func, null, or_, select, update | CODE |
| HIGH | lib/generation/generation_queue_client.py | 343 | # ``or ""`` 而非默认参数:``{"action": null}`` 时 get 返回 None, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | alembic.ini | 1 | # A generic, single database configuration. | COMMENT |
| LOW | alembic.ini | 21 | prepend_sys_path = . | COMMENT |
| LOW | alembic.ini | 41 | # versions/ directory | COMMENT |
| LOW | alembic.ini | 61 | # 1. Parsing of the version_locations option falls back to using the legacy | COMMENT |
| LOW | pyproject.toml | 501 | source_paths = ["lib", "server"] | COMMENT |
| LOW | frontend/src/stores/cost-store.ts | 101 | _abortController?.abort(); | COMMENT |
| LOW | frontend/src/stores/capabilities-store.ts | 1 | import { create } from "zustand"; | COMMENT |
| LOW | frontend/src/stores/tasks-store.ts | 101 | queued: 0, running: 0, succeeded: 0, failed: 0, cancelled: 0, total: 0, | COMMENT |
| LOW | frontend/src/stores/tasks-store.ts | 381 | // 派生 selector —— 任务队列两条不变量的单一真相源 | COMMENT |
| LOW | frontend/src/stores/projects-store.ts | 121 | let curResolvers = resolvers; | COMMENT |
| LOW | frontend/src/stores/projects-store.ts | 141 | // 意图就是目标)。反过来,排队者若是持切走前旧项目名的调用方(写操作完成后的 | COMMENT |
| LOW | frontend/src/stores/projects-store.ts | 241 | getAssetFingerprint: (path) => get().assetFingerprints[path] ?? null, | COMMENT |
| LOW | frontend/src/components/copilot/chat/MessageFlow.tsx | 21 | COMMENT | |
| LOW | …d/src/components/copilot/chat/ContentBlockRenderer.tsx | 21 | // Block types: | COMMENT |
| LOW | frontend/src/components/copilot/chat/utils.ts | 1 | import type { ImagePayload, SessionStatus, Turn } from "@/types"; | COMMENT |
| LOW | frontend/src/hooks/useAssistantSession.ts | 361 | // 项目级取消域:只随项目切换/卸载 abort。会话列表与技能列表是项目级数据, | COMMENT |
| LOW | frontend/src/hooks/useProjectEventsSSE.ts | 461 | // 校验不通过落 failed、执行期间被取消落 cancelled,两种情形都不会触发上面的 | COMMENT |
| LOW | frontend/src/hooks/useModelCapabilities.ts | 1 | import { useEffect, useRef, useState } from "react"; | COMMENT |
| LOW | frontend/src/onboarding/OnboardingTour.tsx | 81 | !requiredQuery || | COMMENT |
| LOW | tests/unit/lib/script/test_script_editor.py | 141 | script = patch_field(_reference(), "E1U2", "note", "备注") | COMMENT |
| LOW | tests/blocking_guard/__init__.py | 81 | ) | COMMENT |
| LOW | …s/skills/diagnosing-bugs/scripts/hitl-loop.template.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .agents/skills/afk-team-workflow/scripts/batch-poll.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .agents/skills/afk-team-workflow/scripts/ledger.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .agents/skills/afk-team-workflow/scripts/ledger.sh | 21 | # | COMMENT |
| LOW | .agents/skills/afk-team-workflow/scripts/ledger.sh | 41 | # "detail": "<str>" # human-readable specifics (the argument/decision/cause) | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/round.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | …lls/pr-ai-review-loop/scripts/test_walkthrough_head.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 21 | # rebuilt by re-running poll.sh. query.sh is its only intended reader. | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 41 | # "pr_created_at": "<ISO8601>", # PR createdAt — distinct from last_push_at | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 61 | # "is_paused": <bool>, # CR paused for this PR | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 81 | # }, | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 101 | # # omitted when available == true. pr_ref ("refs/pull/<n>/merge") | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 121 | # headRefOid (timestamp > last_push_at only as fallback when no commit is known) — a | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 141 | # clean-pass comment; reactions count only when the reactor is | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 161 | # pushedDate is null on the PR's head commit — GitHub's PR API doesn't surface push event time | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 181 | # | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/poll.sh | 201 | # | COMMENT |
| LOW | …/skills/pr-ai-review-loop/scripts/test_quota_alerts.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/query.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .agents/skills/pr-ai-review-loop/scripts/wait.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | server/routers/providers.py | 101 | # 时长联动约束(分辨率↔时长、参考图↔时长)不在目录里透出:收窄结果由 | COMMENT |
| LOW | server/agent_runtime/session_manager.py | 621 | self.layout = DataRootLayout(self.data_root) | COMMENT |
| LOW | server/agent_runtime/agent_access_policy.py | 101 | project_root: Path | COMMENT |
| LOW | server/agent_runtime/agent_access_policy.py | 121 | # <script>.py <args>``:脚本路径须落在某 skill 的 scripts/ 下(_SKILL_SCRIPT_RE | COMMENT |
| LOW | server/agent_runtime/agent_access_policy.py | 881 | COMMENT | |
| LOW | server/services/admission/cost_estimation.py | 421 | # T2I 槽分辨率档:与路由入队、Agent 工具共用 ``grid_resolution`` 的取档,估算的宫格 | COMMENT |
| LOW | server/services/project/project_archive.py | 481 | # 版本历史先于修复与迁移收口:后续步骤读取 versions.json 时只见到已校验的快照路径。 | COMMENT |
| LOW | server/services/project/project_archive.py | 1461 | COMMENT | |
| LOW | …el-catalog-core/src/arcreel_catalog_core/vocabulary.py | 81 | ) | COMMENT |
| LOW | .github/workflows/market-publish-index.yml | 1 | # 市场源索引发布(可复用工作流)。 | COMMENT |
| LOW | .github/workflows/react-doctor.yml | 41 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | COMMENT |
| LOW | .github/workflows/react-doctor.yml | 61 | # comment-on-clean: false # Skip new comments for clean scans | COMMENT |
| LOW | .github/workflows/market-validate.yml | 1 | # 市场源校验(可复用工作流)。 | COMMENT |
| LOW | lib/infra/path_safety.py | 61 | """ | COMMENT |
| LOW | lib/backends/backend_assembly/specs.py | 281 | # ── 文本族 ──────────────────────────────────────────────────────── | COMMENT |
| LOW | lib/backends/video_backends/kling.py | 81 | # _build_payload 据此拒绝 image_tail,而非放行一个调用方以为已生效实则被忽略的请求; | COMMENT |
| LOW | lib/backends/video_backends/ark.py | 41 | # Seedance 2.0 系列每请求最多 3 段参考音频,且总时长不超过 15 秒(官方《创建视频生成任务 | COMMENT |
| LOW | lib/backends/video_backends/dashscope.py | 121 | # gate_video_request 前置拒绝。 | COMMENT |
| 12 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …_profile/.claude/agents/split-reference-video-units.md | 60 | ### Step 0: 查视频模型能力与用户偏好 | COMMENT |
| LOW | …untime_profile/.claude/agents/create-episode-script.md | 27 | ### Step 1: 确认前置条件 | COMMENT |
| LOW | …untime_profile/.claude/agents/create-episode-script.md | 40 | ### Step 2: 调用工具生成 JSON 剧本 | COMMENT |
| LOW | …untime_profile/.claude/agents/create-episode-script.md | 52 | ### Step 3: 验证生成结果 | COMMENT |
| LOW | …untime_profile/.claude/agents/create-episode-script.md | 62 | ### Step 4: 返回摘要 | COMMENT |
| LOW⚡ | agent_runtime_profile/.claude/agents/generate-assets.md | 20 | ### Step 1: 读取项目状态 | COMMENT |
| LOW⚡ | agent_runtime_profile/.claude/agents/generate-assets.md | 26 | ### Step 2: 执行任务命令 | COMMENT |
| LOW⚡ | agent_runtime_profile/.claude/agents/generate-assets.md | 34 | ### Step 3: 验证结果 | COMMENT |
| LOW⚡ | agent_runtime_profile/.claude/agents/generate-assets.md | 38 | ### Step 4: 返回结构化状态 | COMMENT |
| LOW | …ime_profile/.claude/agents/split-narration-segments.md | 49 | ### Step 0: 查视频模型能力与用户偏好 | COMMENT |
| LOW | …ntime_profile/.claude/agents/normalize-drama-script.md | 51 | ### Step 0: 查视频模型能力与用户偏好 | COMMENT |
| LOW | .agents/skills/shadcn/design-system.md | 35 | ## Step 1: Scaffold | COMMENT |
| LOW | .agents/skills/shadcn/design-system.md | 75 | ## Step 2: Install Everything | COMMENT |
| LOW | .agents/skills/shadcn/design-system.md | 100 | ## Step 3: Read the DESIGN.md | COMMENT |
| LOW | .agents/skills/shadcn/design-system.md | 125 | ## Step 4: Map Tokens to the Theme | COMMENT |
| LOW | .agents/skills/shadcn/design-system.md | 289 | ## Step 5: Map Component Recipes to Variants | COMMENT |
| LOW | .agents/skills/shadcn/design-system.md | 330 | ## Step 6: Build the Design System Page | COMMENT |
| LOW | .agents/skills/shadcn/design-system.md | 366 | ## Step 7: Verify | COMMENT |
| LOW⚡ | lib/db/repositories/task_repo.py | 1032 | # Step 1: collect task_ids to requeue | COMMENT |
| LOW⚡ | lib/db/repositories/task_repo.py | 1040 | # Step 2: batch UPDATE — single round-trip for all tasks | COMMENT |
| LOW | lib/db/repositories/task_repo.py | 1055 | # Step 3: reload updated tasks in one SELECT IN | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/src/types/grid.ts | 17 | frame_type: "first" | "transition" | "placeholder"; | CODE |
| LOW⚡ | …tend/src/components/shared/ModelConfigSection.test.tsx | 1490 | expect(picker).toHaveAttribute("placeholder", "workflow 原生(480p)"); | CODE |
| LOW⚡ | …tend/src/components/shared/ModelConfigSection.test.tsx | 1500 | expect(picker).toHaveAttribute("placeholder", "尺寸由 workflow 决定"); | CODE |
| LOW⚡ | …tend/src/components/shared/ModelConfigSection.test.tsx | 1508 | expect(picker).toHaveAttribute("placeholder", "workflow 原生(720p)"); | CODE |
| LOW | …d/src/components/canvas/episodes/EpisodesView.test.tsx | 308 | expect(within(dialog).getByLabelText("标题")).toHaveAttribute("placeholder", "第 2 集"); | CODE |
| LOW | …rc/components/canvas/episode-page/EpisodeHead.test.tsx | 73 | expect(screen.getByRole("textbox", { name: "编辑分集标题" })).toHaveAttribute("placeholder", "第 2 集"); | CODE |
| LOW | …src/components/canvas/timeline/EndFramePicker.test.tsx | 53 | frame_type: "placeholder", | CODE |
| LOW | …nts/pages/settings/CustomProviderForm.comfyui.test.tsx | 231 | expect(multiplierInput).toHaveAttribute("placeholder", "默认 0"); | CODE |
| LOW | …nts/pages/settings/CustomProviderForm.comfyui.test.tsx | 434 | expect(durations).toHaveAttribute("placeholder", "此 workflow 时长固定"); | CODE |
| LOW | …nts/pages/settings/CustomProviderForm.comfyui.test.tsx | 460 | expect(durations).toHaveAttribute("placeholder", "此 workflow 未提供帧率,时长固定"); | CODE |
| LOW | …nts/pages/settings/CustomProviderForm.comfyui.test.tsx | 487 | expect(durations).toHaveAttribute("placeholder", "此 workflow 换算不出整秒时长"); | CODE |
| LOW | …nts/pages/settings/CustomProviderForm.comfyui.test.tsx | 567 | expect(picker).toHaveAttribute("placeholder", "workflow 原生(480p)"); | CODE |
| LOW | …nts/pages/settings/CustomProviderForm.comfyui.test.tsx | 584 | expect(picker).toHaveAttribute("placeholder", "尺寸由 workflow 决定"); | CODE |
| LOW⚡ | …nts/pages/settings/CustomProviderForm.comfyui.test.tsx | 599 | expect(picker).toHaveAttribute("placeholder", "workflow 原生(720p)"); | CODE |
| LOW⚡ | …nts/pages/settings/CustomProviderForm.comfyui.test.tsx | 604 | expect(screen.getByLabelText("视频并发")).toHaveAttribute("placeholder", "默认"); | CODE |
| LOW⚡ | …nts/pages/settings/CustomProviderForm.comfyui.test.tsx | 608 | expect(screen.getByLabelText("视频并发")).toHaveAttribute("placeholder", "默认 1"); | CODE |
| LOW | …nts/pages/settings/CustomProviderForm.billing.test.tsx | 235 | expect(providerMultiplierInput()).toHaveAttribute("placeholder", "默认 1"); | CODE |
| LOW | tests/unit/lib/backends/image_backends/test_gemini.py | 50 | api_key="fake-key", | CODE |
| LOW⚡ | tests/unit/lib/backends/image_backends/test_gemini.py | 103 | backend_type="aistudio", api_key="fake-key", rate_limiter=fake_rate_limiter, image_model=model | CODE |
| LOW | tests/unit/lib/script/grid/test_grid_layout.py | 248 | assert [c.frame_type for c in chain[5:]] == ["placeholder"] * 4 | CODE |
| LOW | .agents/skills/shadcn/design-system-page.md | 27 | 6. **Real content in the brand's voice.** No lorem ipsum. Include the awkward cases: long text, empty, error, loading. | CODE |
| LOW | .agents/skills/shadcn/design-system-page.md | 268 | - [ ] No lorem ipsum, and no state names inside components. | CODE |
| LOW⚡ | server/routers/providers.py | 78 | "base_url": {"label": "Base URL", "type": "url", "placeholder": "Default"}, | CODE |
| LOW⚡ | server/routers/providers.py | 79 | "wan3_base_url": {"label": "Wan 3.0 Base URL", "type": "url", "placeholder": "Default"}, | CODE |
| LOW | server/routers/providers.py | 365 | if "placeholder" in meta: | CODE |
| LOW | server/routers/providers.py | 366 | field["placeholder"] = meta["placeholder"] | CODE |
| LOW | server/services/grid/grid_split.py | 176 | if frame.frame_type == "placeholder": | CODE |
| LOW | scripts/probe_smoke.py | 63 | api_key="sk-ant-fake-key-for-smoke-test-not-real", | CODE |
| LOW | scripts/perf/harness.py | 349 | await repo.create(provider, "default", api_key="perf-fake-key") | CODE |
| LOW | lib/script/grid/models.py | 38 | frame_type: Literal["first", "transition", "placeholder"] | CODE |
| LOW | lib/script/grid/models.py | 72 | - Remaining cells: frame_type="placeholder" | STRING |
| LOW | lib/script/grid/models.py | 109 | frame_type="placeholder", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/fakes.py | 661 | CODE | |
| LOW | tests/unit/lib/billing/test_usage_summary.py | 29 | CODE | |
| LOW | …/integration/server/routers/projects_router_support.py | 165 | CODE | |
| LOW | …ntegration/server/routers/test_usage_router_summary.py | 16 | CODE | |
| LOW | …er/agent_runtime/test_session_manager_usage_billing.py | 101 | CODE | |
| LOW | …er/services/tasks/test_execute_reference_video_task.py | 48 | CODE | |
| LOW | …tion/server/services/tasks/generation_tasks_support.py | 37 | CODE | |
| LOW | …ver/services/admission/test_cost_estimation_service.py | 33 | CODE | |
| LOW | server/routers/usage.py | 157 | CODE | |
| LOW | server/routers/usage.py | 490 | CODE | |
| LOW | lib/artifacts/artifact_planner.py | 260 | CODE | |
| LOW | lib/backends/image_backends/kling.py | 78 | CODE | |
| LOW | lib/backends/video_backends/kling.py | 247 | CODE | |
| LOW | lib/script/script_generator.py | 469 | CODE | |
| LOW | lib/script/draft_violation.py | 44 | CODE | |
| LOW | lib/project/project_manager.py | 2496 | CODE | |
| LOW | lib/prompts/prompt_builders_script.py | 288 | CODE | |
| LOW | lib/prompts/prompt_builders_reference.py | 34 | CODE | |
| LOW | lib/db/repositories/usage_repo.py | 204 | CODE | |
| LOW | lib/db/repositories/task_repo.py | 194 | CODE | |
| LOW | lib/db/repositories/agent_credential_repo.py | 21 | CODE | |
| LOW | lib/billing/ledger.py | 188 | CODE | |
| LOW | lib/generation/generation_queue.py | 396 | CODE | |
| LOW | lib/generation/media_generator.py | 246 | CODE | |
| LOW | lib/generation/media_generator.py | 921 | CODE | |
| LOW | lib/generation/media_generator.py | 1221 | CODE | |
| LOW | lib/generation/generation_queue_client.py | 139 | CODE | |
| LOW | lib/generation/generation_queue_client.py | 194 | CODE | |
| LOW | lib/generation/generation_queue_client.py | 446 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …nit/server/routers/test_discover_anthropic_fallback.py | 53 | # Create an active credential first | COMMENT |
| MEDIUM | …ts/unit/server/agent_runtime/test_assistant_service.py | 109 | # Create an in-memory async store and seed data | COMMENT |
| MEDIUM | …ts/unit/server/agent_runtime/test_assistant_service.py | 695 | # Create a fallback skill for metadata parsing test | COMMENT |
| MEDIUM | …/server/agent_runtime/test_assistant_service_skills.py | 22 | # Create a dev-only skill in .claude/skills/ (should NOT appear) | COMMENT |
| MEDIUM | tests/unit/lib/artifacts/test_grid_executor.py | 255 | # Create a fake 400x400 grid image (2x2, each cell 200x200) | COMMENT |
| MEDIUM | tests/unit/lib/backends/image_backends/test_gemini.py | 180 | # Create a small test image | COMMENT |
| MEDIUM | .agents/skills/afk-team-workflow/scripts/ledger.sh | 15 | # Create the ledger (first line); prints the generated batch-id on stdout: | COMMENT |
| MEDIUM | scripts/migrate_sqlite_to_orm.py | 33 | # Create a minimal lib package stub so sub-imports resolve correctly | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | website/docs/dev/architecture.md | 162 | ### 5.1 编排 Skill {#orchestration-skills} | COMMENT |
| MEDIUM | …saurus-plugin-content-docs/current/dev/architecture.md | 160 | ### 5.1 Orchestration Skill {#orchestration-skills} | COMMENT |
| MEDIUM | server/auth.py | 525 | # Type aliases for FastAPI dependency injection | COMMENT |
| MEDIUM | lib/script/script_models.py | 24 | # Structured Outputs 下不太会产出额外字段,产出即 hallucination,拒比静默丢更安全。 | COMMENT |
| MEDIUM | lib/script/script_models.py | 490 | # 与「未知字段(typo / hallucination)一律拒」并存——前者是已知 deprecated, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ect/project_migrations/test_project_migration_v2_v3.py | 0 | 历史 project.json 可能存字符串版本号,守卫做 int 归一化而非抛 typeerror。 | STRING |
| HIGH | …ect/project_migrations/test_project_migration_v3_v4.py | 0 | 历史 project.json 可能存字符串版本号,守卫做 int 归一化而非抛 typeerror。 | STRING |
| HIGH | …ect/project_migrations/test_project_migration_v4_v5.py | 0 | 历史 project.json 可能存字符串版本号,守卫做 int 归一化而非抛 typeerror。 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …saurus-plugin-content-docs/current/dev/contributing.md | 112 | The only published location for user documentation is [docs.arc-reel.com](https://docs.arc-reel.com/en/); source files l | CODE |
| HIGH | .agents/skills/triage/SKILL.md | 16 | > *This was generated by AI during triage.* | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | lib/script/source_loader/loader.py | 100 | 规范化上传文件为 UTF-8 .txt,并在转换非字节等价时备份原始内容。 Args: src: 临时文件路径(上传层已落盘)。 dst_dir: 目标项目的 source/ | STRING |
| HIGH | lib/project/project_manager.py | 1308 | 从剧本文件同步集数信息到 project.json Agent 写入剧本后必须调用此方法以确保 WebUI 能正确显示剧集列表。 Args: project_na | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/http_capture.py | 65 | def handle_request(self, request: httpx.Request) -> httpx.Response: | CODE |
| LOW⚡ | …server/routers/test_web_write_change_source_marking.py | 248 | "def helper():\n project_change_source('webui')\n" | CODE |
| LOW⚡ | tests/unit/scripts/test_audit_tests.py | 1025 | (tests / "test_topic_support.py").write_text("def helper():\n return 1\n", encoding="utf-8") | CODE |
| LOW | lib/backends/transport_layer.py | 44 | def handle_request(self, request: httpx.Request) -> httpx.Response: | CODE |
| LOW | lib/custom_provider/path_overrides.py | 204 | def handle_request(self, request: httpx.Request) -> httpx.Response: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | lib/db/repositories/task_repo.py | 1032 | # Step 1: collect task_ids to requeue | COMMENT |
| LOW⚡ | lib/db/repositories/task_repo.py | 1040 | # Step 2: batch UPDATE — single round-trip for all tasks | COMMENT |
| LOW | lib/db/repositories/task_repo.py | 1055 | # Step 3: reload updated tasks in one SELECT IN | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/server/agent_runtime/test_session_manager.py | 849 | # Write file without extension (e.g. Makefile) — allowed (not in code blacklist) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/skills/diagnosing-bugs/scripts/hitl-loop.template.sh | 6 | # Usage: | COMMENT |