@neuraloom/contracts 0.0.0-stage → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/community-movie/attribution.schema.d.ts +264 -0
- package/dist/analytics/community-movie/attribution.schema.js +57 -0
- package/dist/analytics/community-movie/consent.schema.d.ts +15 -0
- package/dist/analytics/community-movie/consent.schema.js +16 -0
- package/dist/analytics/community-movie/event-names.d.ts +11 -0
- package/dist/analytics/community-movie/event-names.js +113 -0
- package/dist/analytics/community-movie/event-params.schema.d.ts +622 -0
- package/dist/analytics/community-movie/event-params.schema.js +416 -0
- package/dist/analytics/community-movie/event-registry.d.ts +11 -0
- package/dist/analytics/community-movie/event-registry.js +486 -0
- package/dist/analytics/community-movie/index.d.ts +6 -0
- package/dist/analytics/community-movie/index.js +22 -0
- package/dist/analytics/community-movie/telemetry-record.schema.d.ts +157 -0
- package/dist/analytics/community-movie/telemetry-record.schema.js +26 -0
- package/dist/analytics/index.d.ts +1 -0
- package/dist/analytics/index.js +17 -0
- package/dist/community/actor-builder-options.d.ts +43 -0
- package/dist/community/actor-builder-options.js +197 -0
- package/dist/constants/AGENT_MCP_PERMISSIONS.d.ts +26 -0
- package/dist/constants/AGENT_MCP_PERMISSIONS.js +122 -0
- package/dist/constants/AGENT_ROLES.d.ts +37 -0
- package/dist/constants/AGENT_ROLES.js +199 -0
- package/dist/constants/audiobook-embed-placeholder-url.d.ts +5 -0
- package/dist/constants/audiobook-embed-placeholder-url.js +8 -0
- package/dist/constants/ci-config.d.ts +4 -0
- package/dist/constants/ci-config.js +7 -0
- package/dist/constants/kg-implement-stable-keys.d.ts +9 -0
- package/dist/constants/kg-implement-stable-keys.js +26 -0
- package/dist/constants/knowledge-edge-relation.d.ts +49 -0
- package/dist/constants/knowledge-edge-relation.js +42 -0
- package/dist/constants/knowledge-node.d.ts +21 -0
- package/dist/constants/knowledge-node.js +20 -0
- package/dist/constants/mission-control-nav.d.ts +13 -0
- package/dist/constants/mission-control-nav.js +75 -0
- package/dist/constants/model-mode-preset-defaults.d.ts +5 -0
- package/dist/constants/model-mode-preset-defaults.js +65 -0
- package/dist/constants/model-policies.d.ts +37 -0
- package/dist/constants/model-policies.js +656 -0
- package/dist/constants/navConfig.d.ts +43 -0
- package/dist/constants/navConfig.js +132 -0
- package/dist/constants/orchestration-execution.d.ts +5 -0
- package/dist/constants/orchestration-execution.js +10 -0
- package/dist/constants/payload-schema-map.d.ts +22 -0
- package/dist/constants/payload-schema-map.js +375 -0
- package/dist/constants/phase-guardian.d.ts +17 -0
- package/dist/constants/phase-guardian.js +43 -0
- package/dist/constants/pipeline-step-stages.d.ts +73 -0
- package/dist/constants/pipeline-step-stages.js +342 -0
- package/dist/constants/project-control-nav.d.ts +29 -0
- package/dist/constants/project-control-nav.js +65 -0
- package/dist/constants/software-index-targets.d.ts +17 -0
- package/dist/constants/software-index-targets.js +46 -0
- package/dist/constants/step-tools.d.ts +32 -0
- package/dist/constants/step-tools.js +53 -0
- package/dist/constants/workflow-agent-defaults.d.ts +4 -0
- package/dist/constants/workflow-agent-defaults.js +15 -0
- package/dist/constants/workflow-api-errors.d.ts +5 -0
- package/dist/constants/workflow-api-errors.js +8 -0
- package/dist/constants/workflow-phase-groups.d.ts +34 -0
- package/dist/constants/workflow-phase-groups.js +46 -0
- package/dist/constants/workflow-registry.d.ts +77 -0
- package/dist/constants/workflow-registry.js +421 -0
- package/dist/constants/workflow-semantics.d.ts +19 -0
- package/dist/constants/workflow-semantics.js +432 -0
- package/dist/constants/workflow-vocabulary.d.ts +23 -0
- package/dist/constants/workflow-vocabulary.js +227 -0
- package/dist/constants/workflow.d.ts +7 -0
- package/dist/constants/workflow.js +23 -0
- package/dist/data/model-registry.d.ts +36 -0
- package/dist/data/model-registry.js +59 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +90 -0
- package/dist/integration/index.d.ts +8 -0
- package/dist/integration/index.js +24 -0
- package/dist/integration/schema-hash-manifest.json +26 -0
- package/dist/lib/graph-edge-resolve.d.ts +3 -0
- package/dist/lib/graph-edge-resolve.js +20 -0
- package/dist/lib/graph-id.d.ts +16 -0
- package/dist/lib/graph-id.js +169 -0
- package/dist/lib/step-navigation.d.ts +35 -0
- package/dist/lib/step-navigation.js +218 -0
- package/dist/marketing/acquisition-landing-matrix.d.ts +46 -0
- package/dist/marketing/acquisition-landing-matrix.js +64 -0
- package/dist/marketing/acquisition-recommendation.schema.d.ts +284 -0
- package/dist/marketing/acquisition-recommendation.schema.js +84 -0
- package/dist/marketing/ads-account.schema.d.ts +46 -0
- package/dist/marketing/ads-account.schema.js +15 -0
- package/dist/marketing/ads-ad-group.schema.d.ts +52 -0
- package/dist/marketing/ads-ad-group.schema.js +17 -0
- package/dist/marketing/ads-campaign.schema.d.ts +59 -0
- package/dist/marketing/ads-campaign.schema.js +18 -0
- package/dist/marketing/ads-conversion-action.schema.d.ts +60 -0
- package/dist/marketing/ads-conversion-action.schema.js +27 -0
- package/dist/marketing/ads-keyword.schema.d.ts +59 -0
- package/dist/marketing/ads-keyword.schema.js +19 -0
- package/dist/marketing/ads-metrics-daily.schema.d.ts +95 -0
- package/dist/marketing/ads-metrics-daily.schema.js +24 -0
- package/dist/marketing/ads-overview.schema.d.ts +479 -0
- package/dist/marketing/ads-overview.schema.js +44 -0
- package/dist/marketing/ads-query.schema.d.ts +33 -0
- package/dist/marketing/ads-query.schema.js +13 -0
- package/dist/marketing/ads-search-term.schema.d.ts +70 -0
- package/dist/marketing/ads-search-term.schema.js +19 -0
- package/dist/marketing/campaign-asset.schema.d.ts +51 -0
- package/dist/marketing/campaign-asset.schema.js +39 -0
- package/dist/marketing/community-movie-ads-free-signup-campaign.d.ts +23 -0
- package/dist/marketing/community-movie-ads-free-signup-campaign.js +29 -0
- package/dist/marketing/community-movie-campaign-matrix.d.ts +47 -0
- package/dist/marketing/community-movie-campaign-matrix.js +265 -0
- package/dist/marketing/community-movie-google-ads.constants.d.ts +49 -0
- package/dist/marketing/community-movie-google-ads.constants.js +59 -0
- package/dist/marketing/config.schema.d.ts +32 -0
- package/dist/marketing/config.schema.js +31 -0
- package/dist/marketing/date-range.schema.d.ts +12 -0
- package/dist/marketing/date-range.schema.js +10 -0
- package/dist/marketing/entities/index.d.ts +6 -0
- package/dist/marketing/entities/index.js +11 -0
- package/dist/marketing/ga4-conversion.schema.d.ts +87 -0
- package/dist/marketing/ga4-conversion.schema.js +22 -0
- package/dist/marketing/ga4-event.schema.d.ts +98 -0
- package/dist/marketing/ga4-event.schema.js +23 -0
- package/dist/marketing/ga4-funnel.schema.d.ts +90 -0
- package/dist/marketing/ga4-funnel.schema.js +23 -0
- package/dist/marketing/ga4-landing-page.schema.d.ts +131 -0
- package/dist/marketing/ga4-landing-page.schema.js +25 -0
- package/dist/marketing/ga4-overview.schema.d.ts +478 -0
- package/dist/marketing/ga4-overview.schema.js +31 -0
- package/dist/marketing/ga4-query.schema.d.ts +19 -0
- package/dist/marketing/ga4-query.schema.js +27 -0
- package/dist/marketing/ga4-retention.schema.d.ts +79 -0
- package/dist/marketing/ga4-retention.schema.js +21 -0
- package/dist/marketing/ga4-traffic.schema.d.ts +154 -0
- package/dist/marketing/ga4-traffic.schema.js +27 -0
- package/dist/marketing/gsc-organic-overview.schema.d.ts +338 -0
- package/dist/marketing/gsc-organic-overview.schema.js +28 -0
- package/dist/marketing/gsc-organic-query.schema.d.ts +121 -0
- package/dist/marketing/gsc-organic-query.schema.js +24 -0
- package/dist/marketing/gsc-page-performance.schema.d.ts +121 -0
- package/dist/marketing/gsc-page-performance.schema.js +24 -0
- package/dist/marketing/gsc-query.schema.d.ts +19 -0
- package/dist/marketing/gsc-query.schema.js +27 -0
- package/dist/marketing/index.d.ts +47 -0
- package/dist/marketing/index.js +63 -0
- package/dist/marketing/marketing-attribution-summary.schema.d.ts +165 -0
- package/dist/marketing/marketing-attribution-summary.schema.js +26 -0
- package/dist/marketing/marketing-challenge-performance.schema.d.ts +139 -0
- package/dist/marketing/marketing-challenge-performance.schema.js +28 -0
- package/dist/marketing/marketing-conversion-enqueue.schema.d.ts +88 -0
- package/dist/marketing/marketing-conversion-enqueue.schema.js +34 -0
- package/dist/marketing/marketing-executive-overview.schema.d.ts +1865 -0
- package/dist/marketing/marketing-executive-overview.schema.js +39 -0
- package/dist/marketing/marketing-health.schema.d.ts +366 -0
- package/dist/marketing/marketing-health.schema.js +65 -0
- package/dist/marketing/marketing-keyword-opportunity.schema.d.ts +158 -0
- package/dist/marketing/marketing-keyword-opportunity.schema.js +34 -0
- package/dist/marketing/marketing-landing-page-intelligence.schema.d.ts +159 -0
- package/dist/marketing/marketing-landing-page-intelligence.schema.js +30 -0
- package/dist/marketing/marketing-readiness.schema.d.ts +506 -0
- package/dist/marketing/marketing-readiness.schema.js +83 -0
- package/dist/marketing/marketing-test-traffic.d.ts +6 -0
- package/dist/marketing/marketing-test-traffic.js +28 -0
- package/dist/marketing/marketing-visibility-overview.schema.d.ts +949 -0
- package/dist/marketing/marketing-visibility-overview.schema.js +42 -0
- package/dist/marketing/marketing-world-catalog.d.ts +10 -0
- package/dist/marketing/marketing-world-catalog.js +16 -0
- package/dist/marketing/marketing-world-performance.schema.d.ts +179 -0
- package/dist/marketing/marketing-world-performance.schema.js +32 -0
- package/dist/marketing/routes.d.ts +77 -0
- package/dist/marketing/routes.js +79 -0
- package/dist/marketing/search-negative-keywords.d.ts +6 -0
- package/dist/marketing/search-negative-keywords.js +30 -0
- package/dist/registry/schema-registry.d.ts +74 -0
- package/dist/registry/schema-registry.js +1148 -0
- package/dist/registry/table-ownership-registry.d.ts +57 -0
- package/dist/registry/table-ownership-registry.js +932 -0
- package/dist/routes/assurance.d.ts +6 -0
- package/dist/routes/assurance.js +14 -0
- package/dist/routes/community-operator.d.ts +117 -0
- package/dist/routes/community-operator.js +119 -0
- package/dist/routes/community.d.ts +232 -0
- package/dist/routes/community.js +246 -0
- package/dist/routes/index.d.ts +2203 -0
- package/dist/routes/index.js +1440 -0
- package/dist/schemas/ai/ai-generate-inputs.schema.d.ts +2056 -0
- package/dist/schemas/ai/ai-generate-inputs.schema.js +167 -0
- package/dist/schemas/ai/ai-run-metadata.schema.d.ts +39 -0
- package/dist/schemas/ai/ai-run-metadata.schema.js +24 -0
- package/dist/schemas/ai/ai-runs-list.schema.d.ts +248 -0
- package/dist/schemas/ai/ai-runs-list.schema.js +27 -0
- package/dist/schemas/ai/analytics-generate.schema.d.ts +185 -0
- package/dist/schemas/ai/analytics-generate.schema.js +59 -0
- package/dist/schemas/ai/api-generate.schema.d.ts +49 -0
- package/dist/schemas/ai/api-generate.schema.js +16 -0
- package/dist/schemas/ai/api.schema.d.ts +80 -0
- package/dist/schemas/ai/api.schema.js +22 -0
- package/dist/schemas/ai/architecture-generate.schema.d.ts +47 -0
- package/dist/schemas/ai/architecture-generate.schema.js +19 -0
- package/dist/schemas/ai/argument-map-generate.schema.d.ts +433 -0
- package/dist/schemas/ai/argument-map-generate.schema.js +62 -0
- package/dist/schemas/ai/audit-existing-output-evidence.schema.d.ts +153 -0
- package/dist/schemas/ai/audit-existing-output-evidence.schema.js +46 -0
- package/dist/schemas/ai/brief-improve-generate.schema.d.ts +2291 -0
- package/dist/schemas/ai/brief-improve-generate.schema.js +293 -0
- package/dist/schemas/ai/chapter-revision.schema.d.ts +817 -0
- package/dist/schemas/ai/chapter-revision.schema.js +267 -0
- package/dist/schemas/ai/code-generate.schema.d.ts +1492 -0
- package/dist/schemas/ai/code-generate.schema.js +46 -0
- package/dist/schemas/ai/community-pitch-critique-generate.schema.d.ts +31 -0
- package/dist/schemas/ai/community-pitch-critique-generate.schema.js +17 -0
- package/dist/schemas/ai/community-suggestion-summary-generate.schema.d.ts +34 -0
- package/dist/schemas/ai/community-suggestion-summary-generate.schema.js +19 -0
- package/dist/schemas/ai/compliance-generate.schema.d.ts +24 -0
- package/dist/schemas/ai/compliance-generate.schema.js +11 -0
- package/dist/schemas/ai/compliance.schema.d.ts +58 -0
- package/dist/schemas/ai/compliance.schema.js +22 -0
- package/dist/schemas/ai/constitution-generate.schema.d.ts +221 -0
- package/dist/schemas/ai/constitution-generate.schema.js +52 -0
- package/dist/schemas/ai/constitution-kg-gate-status.schema.d.ts +33 -0
- package/dist/schemas/ai/constitution-kg-gate-status.schema.js +15 -0
- package/dist/schemas/ai/constitution-validate-input.schema.d.ts +18 -0
- package/dist/schemas/ai/constitution-validate-input.schema.js +10 -0
- package/dist/schemas/ai/constitution-writing-generate.schema.d.ts +437 -0
- package/dist/schemas/ai/constitution-writing-generate.schema.js +70 -0
- package/dist/schemas/ai/constitution.schema.d.ts +19 -0
- package/dist/schemas/ai/constitution.schema.js +12 -0
- package/dist/schemas/ai/counterclaim-framework-generate.schema.d.ts +479 -0
- package/dist/schemas/ai/counterclaim-framework-generate.schema.js +66 -0
- package/dist/schemas/ai/coverage-generate.schema.d.ts +61 -0
- package/dist/schemas/ai/coverage-generate.schema.js +27 -0
- package/dist/schemas/ai/definitions-generate.schema.d.ts +448 -0
- package/dist/schemas/ai/definitions-generate.schema.js +62 -0
- package/dist/schemas/ai/deployments-generate.schema.d.ts +40 -0
- package/dist/schemas/ai/deployments-generate.schema.js +18 -0
- package/dist/schemas/ai/docs-generate.schema.d.ts +51 -0
- package/dist/schemas/ai/docs-generate.schema.js +18 -0
- package/dist/schemas/ai/domain-context.d.ts +58 -0
- package/dist/schemas/ai/domain-context.js +185 -0
- package/dist/schemas/ai/draft-generate.schema.d.ts +32 -0
- package/dist/schemas/ai/draft-generate.schema.js +17 -0
- package/dist/schemas/ai/editorial-guardian-generate.schema.d.ts +470 -0
- package/dist/schemas/ai/editorial-guardian-generate.schema.js +60 -0
- package/dist/schemas/ai/editorial-revise-chapter.schema.d.ts +411 -0
- package/dist/schemas/ai/editorial-revise-chapter.schema.js +83 -0
- package/dist/schemas/ai/film-clip-review-generate.schema.d.ts +291 -0
- package/dist/schemas/ai/film-clip-review-generate.schema.js +35 -0
- package/dist/schemas/ai/film-keyframe-generate.schema.d.ts +359 -0
- package/dist/schemas/ai/film-keyframe-generate.schema.js +28 -0
- package/dist/schemas/ai/film-keyframe-register.schema.d.ts +67 -0
- package/dist/schemas/ai/film-keyframe-register.schema.js +16 -0
- package/dist/schemas/ai/film-shot-risk-assess.schema.d.ts +12 -0
- package/dist/schemas/ai/film-shot-risk-assess.schema.js +10 -0
- package/dist/schemas/ai/film-still-review-generate.schema.d.ts +232 -0
- package/dist/schemas/ai/film-still-review-generate.schema.js +31 -0
- package/dist/schemas/ai/film-workflow-generate.schema.d.ts +117 -0
- package/dist/schemas/ai/film-workflow-generate.schema.js +33 -0
- package/dist/schemas/ai/generate-response.schema.d.ts +66 -0
- package/dist/schemas/ai/generate-response.schema.js +26 -0
- package/dist/schemas/ai/guardian-gate-status.schema.d.ts +112 -0
- package/dist/schemas/ai/guardian-gate-status.schema.js +17 -0
- package/dist/schemas/ai/guardian-kg-gate-status.schema.d.ts +58 -0
- package/dist/schemas/ai/guardian-kg-gate-status.schema.js +30 -0
- package/dist/schemas/ai/guardian-rule-detail.schema.d.ts +74 -0
- package/dist/schemas/ai/guardian-rule-detail.schema.js +19 -0
- package/dist/schemas/ai/guardian-score-history.schema.d.ts +75 -0
- package/dist/schemas/ai/guardian-score-history.schema.js +16 -0
- package/dist/schemas/ai/implement-graph.schema.d.ts +323 -0
- package/dist/schemas/ai/implement-graph.schema.js +51 -0
- package/dist/schemas/ai/implement-kg-gate-status.schema.d.ts +36 -0
- package/dist/schemas/ai/implement-kg-gate-status.schema.js +16 -0
- package/dist/schemas/ai/implement.schema.d.ts +73 -0
- package/dist/schemas/ai/implement.schema.js +23 -0
- package/dist/schemas/ai/index.d.ts +46 -0
- package/dist/schemas/ai/index.js +62 -0
- package/dist/schemas/ai/knowledge-kg-gate-status.schema.d.ts +73 -0
- package/dist/schemas/ai/knowledge-kg-gate-status.schema.js +24 -0
- package/dist/schemas/ai/knowledge-search-generate.schema.d.ts +2 -0
- package/dist/schemas/ai/knowledge-search-generate.schema.js +6 -0
- package/dist/schemas/ai/manuscript-checks.schema.d.ts +6095 -0
- package/dist/schemas/ai/manuscript-checks.schema.js +440 -0
- package/dist/schemas/ai/model-policy/index.d.ts +9 -0
- package/dist/schemas/ai/model-policy/index.js +25 -0
- package/dist/schemas/ai/model-policy/model-mode-preset.schema.d.ts +83 -0
- package/dist/schemas/ai/model-policy/model-mode-preset.schema.js +20 -0
- package/dist/schemas/ai/model-policy/model-modes.schema.d.ts +13 -0
- package/dist/schemas/ai/model-policy/model-modes.schema.js +27 -0
- package/dist/schemas/ai/model-policy/model-policy-resolved.schema.d.ts +44 -0
- package/dist/schemas/ai/model-policy/model-policy-resolved.schema.js +27 -0
- package/dist/schemas/ai/model-policy/model-quality-summary.schema.d.ts +133 -0
- package/dist/schemas/ai/model-policy/model-quality-summary.schema.js +35 -0
- package/dist/schemas/ai/model-policy/model-usage-summary.schema.d.ts +204 -0
- package/dist/schemas/ai/model-policy/model-usage-summary.schema.js +38 -0
- package/dist/schemas/ai/model-policy/project-model-policy.schema.d.ts +1311 -0
- package/dist/schemas/ai/model-policy/project-model-policy.schema.js +33 -0
- package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.d.ts +66 -0
- package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.js +48 -0
- package/dist/schemas/ai/model-policy/workflow-step-ids.schema.d.ts +2 -0
- package/dist/schemas/ai/model-policy/workflow-step-ids.schema.js +24 -0
- package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.d.ts +63 -0
- package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.js +43 -0
- package/dist/schemas/ai/orchestration-generate-fields.schema.d.ts +9 -0
- package/dist/schemas/ai/orchestration-generate-fields.schema.js +8 -0
- package/dist/schemas/ai/payload-json-schemas.d.ts +110 -0
- package/dist/schemas/ai/payload-json-schemas.js +154 -0
- package/dist/schemas/ai/plan.schema.d.ts +137 -0
- package/dist/schemas/ai/plan.schema.js +36 -0
- package/dist/schemas/ai/refine-fields.schema.d.ts +34 -0
- package/dist/schemas/ai/refine-fields.schema.js +27 -0
- package/dist/schemas/ai/review-generate.schema.d.ts +35 -0
- package/dist/schemas/ai/review-generate.schema.js +15 -0
- package/dist/schemas/ai/review.schema.d.ts +77 -0
- package/dist/schemas/ai/review.schema.js +29 -0
- package/dist/schemas/ai/run-trace.schema.d.ts +105 -0
- package/dist/schemas/ai/run-trace.schema.js +43 -0
- package/dist/schemas/ai/schema-generate.schema.d.ts +185 -0
- package/dist/schemas/ai/schema-generate.schema.js +44 -0
- package/dist/schemas/ai/schema.schema.d.ts +205 -0
- package/dist/schemas/ai/schema.schema.js +50 -0
- package/dist/schemas/ai/screenplay.schema.d.ts +550 -0
- package/dist/schemas/ai/screenplay.schema.js +77 -0
- package/dist/schemas/ai/source-registry-generate.schema.d.ts +245 -0
- package/dist/schemas/ai/source-registry-generate.schema.js +41 -0
- package/dist/schemas/ai/spec.schema.d.ts +248 -0
- package/dist/schemas/ai/spec.schema.js +78 -0
- package/dist/schemas/ai/style-system-generate.schema.d.ts +319 -0
- package/dist/schemas/ai/style-system-generate.schema.js +67 -0
- package/dist/schemas/ai/tasks-kg-gate-status.schema.d.ts +24 -0
- package/dist/schemas/ai/tasks-kg-gate-status.schema.js +12 -0
- package/dist/schemas/ai/tasks.schema.d.ts +49 -0
- package/dist/schemas/ai/tasks.schema.js +17 -0
- package/dist/schemas/ai/ui-generation-standard.schema.d.ts +42 -0
- package/dist/schemas/ai/ui-generation-standard.schema.js +40 -0
- package/dist/schemas/ai/ui-kg-gate-status.schema.d.ts +42 -0
- package/dist/schemas/ai/ui-kg-gate-status.schema.js +18 -0
- package/dist/schemas/ai/ui.schema.d.ts +22 -0
- package/dist/schemas/ai/ui.schema.js +13 -0
- package/dist/schemas/ai/workflow-artifacts.schema.d.ts +36075 -0
- package/dist/schemas/ai/workflow-artifacts.schema.js +2829 -0
- package/dist/schemas/ai/workflow-execution-mode.schema.d.ts +4 -0
- package/dist/schemas/ai/workflow-execution-mode.schema.js +6 -0
- package/dist/schemas/ai/writing-draft-all-generate.schema.d.ts +3444 -0
- package/dist/schemas/ai/writing-draft-all-generate.schema.js +319 -0
- package/dist/schemas/ai/writing-tasks-generate.schema.d.ts +283 -0
- package/dist/schemas/ai/writing-tasks-generate.schema.js +52 -0
- package/dist/schemas/ai/zod-openai-json-schema.d.ts +2 -0
- package/dist/schemas/ai/zod-openai-json-schema.js +67 -0
- package/dist/schemas/ai-ci-generate.d.ts +47 -0
- package/dist/schemas/ai-ci-generate.js +19 -0
- package/dist/schemas/ai-llm-outputs.d.ts +52 -0
- package/dist/schemas/ai-llm-outputs.js +26 -0
- package/dist/schemas/api/create-orchestration-request.schema.d.ts +13 -0
- package/dist/schemas/api/create-orchestration-request.schema.js +10 -0
- package/dist/schemas/api/implement-orchestration-session.schema.d.ts +26 -0
- package/dist/schemas/api/implement-orchestration-session.schema.js +11 -0
- package/dist/schemas/api/orchestration-events-list-response.schema.d.ts +108 -0
- package/dist/schemas/api/orchestration-events-list-response.schema.js +27 -0
- package/dist/schemas/api/plans-list-response.schema.d.ts +203 -0
- package/dist/schemas/api/plans-list-response.schema.js +35 -0
- package/dist/schemas/api/project-model-usage-query.schema.d.ts +24 -0
- package/dist/schemas/api/project-model-usage-query.schema.js +42 -0
- package/dist/schemas/api/specs-list-response.schema.d.ts +78 -0
- package/dist/schemas/api/specs-list-response.schema.js +23 -0
- package/dist/schemas/api-envelope.schema.d.ts +131 -0
- package/dist/schemas/api-envelope.schema.js +60 -0
- package/dist/schemas/artifacts/artifact-upload-proxy.schema.d.ts +27 -0
- package/dist/schemas/artifacts/artifact-upload-proxy.schema.js +15 -0
- package/dist/schemas/assurance/assurance-mode.schema.d.ts +33 -0
- package/dist/schemas/assurance/assurance-mode.schema.js +25 -0
- package/dist/schemas/assurance/browser-outcome-proof.schema.d.ts +164 -0
- package/dist/schemas/assurance/browser-outcome-proof.schema.js +58 -0
- package/dist/schemas/assurance/computation-authority-registry.schema.d.ts +108 -0
- package/dist/schemas/assurance/computation-authority-registry.schema.js +36 -0
- package/dist/schemas/assurance/documentation-evidence.schema.d.ts +131 -0
- package/dist/schemas/assurance/documentation-evidence.schema.js +44 -0
- package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.d.ts +743 -0
- package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.js +28 -0
- package/dist/schemas/assurance/domain-assurance-verdict.schema.d.ts +40 -0
- package/dist/schemas/assurance/domain-assurance-verdict.schema.js +24 -0
- package/dist/schemas/assurance/domain-truth-brief.schema.d.ts +270 -0
- package/dist/schemas/assurance/domain-truth-brief.schema.js +73 -0
- package/dist/schemas/assurance/enterprise-targeting.schema.d.ts +46 -0
- package/dist/schemas/assurance/enterprise-targeting.schema.js +24 -0
- package/dist/schemas/assurance/gate-result.schema.d.ts +35 -0
- package/dist/schemas/assurance/gate-result.schema.js +35 -0
- package/dist/schemas/assurance/index.d.ts +13 -0
- package/dist/schemas/assurance/index.js +30 -0
- package/dist/schemas/assurance/provider-call-ledger.schema.d.ts +97 -0
- package/dist/schemas/assurance/provider-call-ledger.schema.js +36 -0
- package/dist/schemas/assurance/provider-ledger-response.schema.d.ts +113 -0
- package/dist/schemas/assurance/provider-ledger-response.schema.js +29 -0
- package/dist/schemas/assurance/release-verdict.schema.d.ts +87 -0
- package/dist/schemas/assurance/release-verdict.schema.js +47 -0
- package/dist/schemas/assurance/risk-class.schema.d.ts +30 -0
- package/dist/schemas/assurance/risk-class.schema.js +33 -0
- package/dist/schemas/audiobook/alice-pronunciation.schema.d.ts +80 -0
- package/dist/schemas/audiobook/alice-pronunciation.schema.js +45 -0
- package/dist/schemas/audiobook/audiobook-api.schema.d.ts +1937 -0
- package/dist/schemas/audiobook/audiobook-api.schema.js +201 -0
- package/dist/schemas/audiobook/audiobook-artifacts.schema.d.ts +4069 -0
- package/dist/schemas/audiobook/audiobook-artifacts.schema.js +469 -0
- package/dist/schemas/audiobook/audiobook-studio.schema.d.ts +670 -0
- package/dist/schemas/audiobook/audiobook-studio.schema.js +159 -0
- package/dist/schemas/audiobook/audiobook-validation.d.ts +227 -0
- package/dist/schemas/audiobook/audiobook-validation.js +23 -0
- package/dist/schemas/audiobook/chunk-narration-script.d.ts +17 -0
- package/dist/schemas/audiobook/chunk-narration-script.js +96 -0
- package/dist/schemas/audiobook/elevenlabs-provider.schema.d.ts +167 -0
- package/dist/schemas/audiobook/elevenlabs-provider.schema.js +93 -0
- package/dist/schemas/audiobook/index.d.ts +8 -0
- package/dist/schemas/audiobook/index.js +24 -0
- package/dist/schemas/audiobook/narration-chunk.schema.d.ts +114 -0
- package/dist/schemas/audiobook/narration-chunk.schema.js +38 -0
- package/dist/schemas/audiobook-embed/audiobook-embed.schema.d.ts +1732 -0
- package/dist/schemas/audiobook-embed/audiobook-embed.schema.js +259 -0
- package/dist/schemas/auth/session-context.schema.d.ts +177 -0
- package/dist/schemas/auth/session-context.schema.js +40 -0
- package/dist/schemas/cache/cache-ai-response.schema.d.ts +50 -0
- package/dist/schemas/cache/cache-ai-response.schema.js +28 -0
- package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.d.ts +16 -0
- package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.js +12 -0
- package/dist/schemas/ci/ci-apply-post-success.schema.d.ts +24 -0
- package/dist/schemas/ci/ci-apply-post-success.schema.js +15 -0
- package/dist/schemas/ci/ci-canonical-readiness.schema.d.ts +155 -0
- package/dist/schemas/ci/ci-canonical-readiness.schema.js +47 -0
- package/dist/schemas/ci/ci-dispatch-post.schema.d.ts +34 -0
- package/dist/schemas/ci/ci-dispatch-post.schema.js +20 -0
- package/dist/schemas/ci/ci-ingest-post.schema.d.ts +37 -0
- package/dist/schemas/ci/ci-ingest-post.schema.js +22 -0
- package/dist/schemas/ci/ci-operator-ready-patch.schema.d.ts +13 -0
- package/dist/schemas/ci/ci-operator-ready-patch.schema.js +11 -0
- package/dist/schemas/ci/ci-pipeline-status.schema.d.ts +3 -0
- package/dist/schemas/ci/ci-pipeline-status.schema.js +13 -0
- package/dist/schemas/ci/ci-run.schema.d.ts +44 -0
- package/dist/schemas/ci/ci-run.schema.js +27 -0
- package/dist/schemas/ci/ci-runs-list-response.schema.d.ts +91 -0
- package/dist/schemas/ci/ci-runs-list-response.schema.js +13 -0
- package/dist/schemas/ci/ci-status-get.schema.d.ts +155 -0
- package/dist/schemas/ci/ci-status-get.schema.js +12 -0
- package/dist/schemas/ci/ci-status-response.schema.d.ts +554 -0
- package/dist/schemas/ci/ci-status-response.schema.js +151 -0
- package/dist/schemas/ci/index.d.ts +12 -0
- package/dist/schemas/ci/index.js +28 -0
- package/dist/schemas/ci/pr-check-run.schema.d.ts +44 -0
- package/dist/schemas/ci/pr-check-run.schema.js +21 -0
- package/dist/schemas/ci/project-engine-context.schema.d.ts +70 -0
- package/dist/schemas/ci/project-engine-context.schema.js +26 -0
- package/dist/schemas/community/community-actor-comment-body.schema.d.ts +9 -0
- package/dist/schemas/community/community-actor-comment-body.schema.js +9 -0
- package/dist/schemas/community/community-actor-universe-vote.schema.d.ts +10 -0
- package/dist/schemas/community/community-actor-universe-vote.schema.js +10 -0
- package/dist/schemas/community/community-ad-capi.schema.d.ts +77 -0
- package/dist/schemas/community/community-ad-capi.schema.js +42 -0
- package/dist/schemas/community/community-billing-checkout.schema.d.ts +31 -0
- package/dist/schemas/community/community-billing-checkout.schema.js +43 -0
- package/dist/schemas/community/community-challenge.schema.d.ts +43 -0
- package/dist/schemas/community/community-challenge.schema.js +21 -0
- package/dist/schemas/community/community-content-translation.schema.d.ts +99 -0
- package/dist/schemas/community/community-content-translation.schema.js +63 -0
- package/dist/schemas/community/community-credit-transaction.schema.d.ts +36 -0
- package/dist/schemas/community/community-credit-transaction.schema.js +19 -0
- package/dist/schemas/community/community-development-input.schema.d.ts +20 -0
- package/dist/schemas/community/community-development-input.schema.js +16 -0
- package/dist/schemas/community/community-development-room.schema.d.ts +28 -0
- package/dist/schemas/community/community-development-room.schema.js +16 -0
- package/dist/schemas/community/community-email.schema.d.ts +96 -0
- package/dist/schemas/community/community-email.schema.js +65 -0
- package/dist/schemas/community/community-film-playback.schema.d.ts +287 -0
- package/dist/schemas/community/community-film-playback.schema.js +52 -0
- package/dist/schemas/community/community-film-video-variant.schema.d.ts +94 -0
- package/dist/schemas/community/community-film-video-variant.schema.js +53 -0
- package/dist/schemas/community/community-film-world-marketing.schema.d.ts +27 -0
- package/dist/schemas/community/community-film-world-marketing.schema.js +67 -0
- package/dist/schemas/community/community-film.schema.d.ts +183 -0
- package/dist/schemas/community/community-film.schema.js +105 -0
- package/dist/schemas/community/community-idea-promote.schema.d.ts +4 -0
- package/dist/schemas/community/community-idea-promote.schema.js +6 -0
- package/dist/schemas/community/community-idea-submission.schema.d.ts +54 -0
- package/dist/schemas/community/community-idea-submission.schema.js +22 -0
- package/dist/schemas/community/community-idea-version.schema.d.ts +72 -0
- package/dist/schemas/community/community-idea-version.schema.js +28 -0
- package/dist/schemas/community/community-idea.schema.d.ts +71 -0
- package/dist/schemas/community/community-idea.schema.js +36 -0
- package/dist/schemas/community/community-locale.schema.d.ts +8 -0
- package/dist/schemas/community/community-locale.schema.js +10 -0
- package/dist/schemas/community/community-membership-monthly-credits.d.ts +4 -0
- package/dist/schemas/community/community-membership-monthly-credits.js +18 -0
- package/dist/schemas/community/community-membership.schema.d.ts +34 -0
- package/dist/schemas/community/community-membership.schema.js +19 -0
- package/dist/schemas/community/community-moderation-flag.schema.d.ts +31 -0
- package/dist/schemas/community/community-moderation-flag.schema.js +17 -0
- package/dist/schemas/community/community-movie-actor-blueprint.schema.d.ts +196 -0
- package/dist/schemas/community/community-movie-actor-blueprint.schema.js +30 -0
- package/dist/schemas/community/community-movie-actor-card.schema.d.ts +37 -0
- package/dist/schemas/community/community-movie-actor-card.schema.js +20 -0
- package/dist/schemas/community/community-movie-actor-create-request.schema.d.ts +102 -0
- package/dist/schemas/community/community-movie-actor-create-request.schema.js +24 -0
- package/dist/schemas/community/community-movie-actor-create-response.schema.d.ts +35 -0
- package/dist/schemas/community/community-movie-actor-create-response.schema.js +12 -0
- package/dist/schemas/community/community-movie-actor-gate-result.schema.d.ts +15 -0
- package/dist/schemas/community/community-movie-actor-gate-result.schema.js +11 -0
- package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.d.ts +22 -0
- package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.js +14 -0
- package/dist/schemas/community/community-movie-actor-kg-seed.schema.d.ts +68 -0
- package/dist/schemas/community/community-movie-actor-kg-seed.schema.js +31 -0
- package/dist/schemas/community/community-movie-actor-option-selection.schema.d.ts +43 -0
- package/dist/schemas/community/community-movie-actor-option-selection.schema.js +22 -0
- package/dist/schemas/community/community-movie-actor-portrait-url.schema.d.ts +10 -0
- package/dist/schemas/community/community-movie-actor-portrait-url.schema.js +10 -0
- package/dist/schemas/community/community-movie-actor-vote-response.schema.d.ts +13 -0
- package/dist/schemas/community/community-movie-actor-vote-response.schema.js +9 -0
- package/dist/schemas/community/community-movie-canonical-character.schema.d.ts +78 -0
- package/dist/schemas/community/community-movie-canonical-character.schema.js +104 -0
- package/dist/schemas/community/community-movie-gallery.schema.d.ts +28 -0
- package/dist/schemas/community/community-movie-gallery.schema.js +90 -0
- package/dist/schemas/community/community-movie-gate-result.schema.d.ts +46 -0
- package/dist/schemas/community/community-movie-gate-result.schema.js +23 -0
- package/dist/schemas/community/community-movie-idea-card.schema.d.ts +31 -0
- package/dist/schemas/community/community-movie-idea-card.schema.js +17 -0
- package/dist/schemas/community/community-movie-idea-input.schema.d.ts +22 -0
- package/dist/schemas/community/community-movie-idea-input.schema.js +14 -0
- package/dist/schemas/community/community-movie-idea-structured.schema.d.ts +34 -0
- package/dist/schemas/community/community-movie-idea-structured.schema.js +20 -0
- package/dist/schemas/community/community-movie-kg-seed.schema.d.ts +73 -0
- package/dist/schemas/community/community-movie-kg-seed.schema.js +84 -0
- package/dist/schemas/community/community-movie-stage-transitions.d.ts +15 -0
- package/dist/schemas/community/community-movie-stage-transitions.js +35 -0
- package/dist/schemas/community/community-movie-world-cta.schema.d.ts +75 -0
- package/dist/schemas/community/community-movie-world-cta.schema.js +83 -0
- package/dist/schemas/community/community-partner-offers.d.ts +13 -0
- package/dist/schemas/community/community-partner-offers.js +22 -0
- package/dist/schemas/community/community-partner.schema.d.ts +41 -0
- package/dist/schemas/community/community-partner.schema.js +23 -0
- package/dist/schemas/community/community-poll.schema.d.ts +54 -0
- package/dist/schemas/community/community-poll.schema.js +27 -0
- package/dist/schemas/community/community-production-operator.schema.d.ts +320 -0
- package/dist/schemas/community/community-production-operator.schema.js +91 -0
- package/dist/schemas/community/community-referral.schema.d.ts +155 -0
- package/dist/schemas/community/community-referral.schema.js +63 -0
- package/dist/schemas/community/community-signup-intake.constants.d.ts +13 -0
- package/dist/schemas/community/community-signup-intake.constants.js +134 -0
- package/dist/schemas/community/community-signup-intake.schema.d.ts +87 -0
- package/dist/schemas/community/community-signup-intake.schema.js +82 -0
- package/dist/schemas/community/community-slate.schema.d.ts +60 -0
- package/dist/schemas/community/community-slate.schema.js +29 -0
- package/dist/schemas/community/community-stage-transition.schema.d.ts +33 -0
- package/dist/schemas/community/community-stage-transition.schema.js +18 -0
- package/dist/schemas/community/community-suggestion.schema.d.ts +35 -0
- package/dist/schemas/community/community-suggestion.schema.js +24 -0
- package/dist/schemas/community/community-vote.schema.d.ts +24 -0
- package/dist/schemas/community/community-vote.schema.js +14 -0
- package/dist/schemas/community/community-waitlist.schema.d.ts +12 -0
- package/dist/schemas/community/community-waitlist.schema.js +10 -0
- package/dist/schemas/community/community-world-contribution.schema.d.ts +102 -0
- package/dist/schemas/community/community-world-contribution.schema.js +86 -0
- package/dist/schemas/community/credit-disclosure-variant.schema.d.ts +4 -0
- package/dist/schemas/community/credit-disclosure-variant.schema.js +6 -0
- package/dist/schemas/community/index.d.ts +56 -0
- package/dist/schemas/community/index.js +72 -0
- package/dist/schemas/cortex/bridge-envelope.schema.d.ts +70 -0
- package/dist/schemas/cortex/bridge-envelope.schema.js +77 -0
- package/dist/schemas/cortex/bridge-event-catalogue.d.ts +14 -0
- package/dist/schemas/cortex/bridge-event-catalogue.js +138 -0
- package/dist/schemas/cortex/bridge-events.schema.d.ts +12554 -0
- package/dist/schemas/cortex/bridge-events.schema.js +793 -0
- package/dist/schemas/cortex/bridge-readiness.schema.d.ts +27 -0
- package/dist/schemas/cortex/bridge-readiness.schema.js +15 -0
- package/dist/schemas/cortex/film-bridge-events.schema.d.ts +301 -0
- package/dist/schemas/cortex/film-bridge-events.schema.js +116 -0
- package/dist/schemas/cortex/index.d.ts +7 -0
- package/dist/schemas/cortex/index.js +23 -0
- package/dist/schemas/cortex/product-release-package.schema.d.ts +370 -0
- package/dist/schemas/cortex/product-release-package.schema.js +123 -0
- package/dist/schemas/cortex/proof-run-recorder.schema.d.ts +144 -0
- package/dist/schemas/cortex/proof-run-recorder.schema.js +43 -0
- package/dist/schemas/deployments/deployment-predict.schema.d.ts +165 -0
- package/dist/schemas/deployments/deployment-predict.schema.js +92 -0
- package/dist/schemas/deployments/deployment-preflight.schema.d.ts +184 -0
- package/dist/schemas/deployments/deployment-preflight.schema.js +80 -0
- package/dist/schemas/deployments/deployment-rollback.schema.d.ts +519 -0
- package/dist/schemas/deployments/deployment-rollback.schema.js +102 -0
- package/dist/schemas/deployments/deployment-status.schema.d.ts +1359 -0
- package/dist/schemas/deployments/deployment-status.schema.js +421 -0
- package/dist/schemas/film/film-artifact-kind.schema.d.ts +2 -0
- package/dist/schemas/film/film-artifact-kind.schema.js +6 -0
- package/dist/schemas/film/film-artifact-payloads.schema.d.ts +532 -0
- package/dist/schemas/film/film-artifact-payloads.schema.js +174 -0
- package/dist/schemas/film/film-asset-review.schema.d.ts +83 -0
- package/dist/schemas/film/film-asset-review.schema.js +42 -0
- package/dist/schemas/film/film-asset-rights-profile.schema.d.ts +68 -0
- package/dist/schemas/film/film-asset-rights-profile.schema.js +33 -0
- package/dist/schemas/film/film-character-pack-api.schema.d.ts +216 -0
- package/dist/schemas/film/film-character-pack-api.schema.js +51 -0
- package/dist/schemas/film/film-character-pack.schema.d.ts +51 -0
- package/dist/schemas/film/film-character-pack.schema.js +24 -0
- package/dist/schemas/film/film-character-scene-state.schema.d.ts +36 -0
- package/dist/schemas/film/film-character-scene-state.schema.js +18 -0
- package/dist/schemas/film/film-clip-api.schema.d.ts +379 -0
- package/dist/schemas/film/film-clip-api.schema.js +159 -0
- package/dist/schemas/film/film-clip-review-orchestration.schema.d.ts +234 -0
- package/dist/schemas/film/film-clip-review-orchestration.schema.js +23 -0
- package/dist/schemas/film/film-clip-review-scores.schema.d.ts +51 -0
- package/dist/schemas/film/film-clip-review-scores.schema.js +49 -0
- package/dist/schemas/film/film-clip-structured-review-artifact.schema.d.ts +175 -0
- package/dist/schemas/film/film-clip-structured-review-artifact.schema.js +15 -0
- package/dist/schemas/film/film-clip-structured-review.schema.d.ts +267 -0
- package/dist/schemas/film/film-clip-structured-review.schema.js +54 -0
- package/dist/schemas/film/film-clip.schema.d.ts +171 -0
- package/dist/schemas/film/film-clip.schema.js +64 -0
- package/dist/schemas/film/film-comfyui-workflow-create.schema.d.ts +39 -0
- package/dist/schemas/film/film-comfyui-workflow-create.schema.js +20 -0
- package/dist/schemas/film/film-comfyui-workflow-update.schema.d.ts +54 -0
- package/dist/schemas/film/film-comfyui-workflow-update.schema.js +28 -0
- package/dist/schemas/film/film-comfyui-workflow.schema.d.ts +188 -0
- package/dist/schemas/film/film-comfyui-workflow.schema.js +65 -0
- package/dist/schemas/film/film-creative-read-model.schema.d.ts +675 -0
- package/dist/schemas/film/film-creative-read-model.schema.js +66 -0
- package/dist/schemas/film/film-deliverable.schema.d.ts +656 -0
- package/dist/schemas/film/film-deliverable.schema.js +252 -0
- package/dist/schemas/film/film-edit-sequence.schema.d.ts +1112 -0
- package/dist/schemas/film/film-edit-sequence.schema.js +106 -0
- package/dist/schemas/film/film-elevenlabs-voice.schema.d.ts +126 -0
- package/dist/schemas/film/film-elevenlabs-voice.schema.js +56 -0
- package/dist/schemas/film/film-enqueue-multi-take.schema.d.ts +57 -0
- package/dist/schemas/film/film-enqueue-multi-take.schema.js +24 -0
- package/dist/schemas/film/film-export.schema.d.ts +78 -0
- package/dist/schemas/film/film-export.schema.js +37 -0
- package/dist/schemas/film/film-generation-dashboard.schema.d.ts +1779 -0
- package/dist/schemas/film/film-generation-dashboard.schema.js +222 -0
- package/dist/schemas/film/film-generation-package.schema.d.ts +1665 -0
- package/dist/schemas/film/film-generation-package.schema.js +116 -0
- package/dist/schemas/film/film-generation-task.schema.d.ts +1086 -0
- package/dist/schemas/film/film-generation-task.schema.js +159 -0
- package/dist/schemas/film/film-hydrate.schema.d.ts +46 -0
- package/dist/schemas/film/film-hydrate.schema.js +23 -0
- package/dist/schemas/film/film-keyframe-brief.schema.d.ts +99 -0
- package/dist/schemas/film/film-keyframe-brief.schema.js +29 -0
- package/dist/schemas/film/film-keyframe-review.schema.d.ts +186 -0
- package/dist/schemas/film/film-keyframe-review.schema.js +25 -0
- package/dist/schemas/film/film-keyframe.schema.d.ts +214 -0
- package/dist/schemas/film/film-keyframe.schema.js +43 -0
- package/dist/schemas/film/film-lessons-manifest.schema.d.ts +589 -0
- package/dist/schemas/film/film-lessons-manifest.schema.js +83 -0
- package/dist/schemas/film/film-llm-field.d.ts +22 -0
- package/dist/schemas/film/film-llm-field.js +78 -0
- package/dist/schemas/film/film-location-pack.schema.d.ts +51 -0
- package/dist/schemas/film/film-location-pack.schema.js +24 -0
- package/dist/schemas/film/film-marketing-creative-api.schema.d.ts +276 -0
- package/dist/schemas/film/film-marketing-creative-api.schema.js +47 -0
- package/dist/schemas/film/film-marketing-creative.schema.d.ts +74 -0
- package/dist/schemas/film/film-marketing-creative.schema.js +58 -0
- package/dist/schemas/film/film-marketing-format-preset.schema.d.ts +22 -0
- package/dist/schemas/film/film-marketing-format-preset.schema.js +71 -0
- package/dist/schemas/film/film-media-asset-file.schema.d.ts +59 -0
- package/dist/schemas/film/film-media-asset-file.schema.js +45 -0
- package/dist/schemas/film/film-media-asset-promotion-api.schema.d.ts +219 -0
- package/dist/schemas/film/film-media-asset-promotion-api.schema.js +29 -0
- package/dist/schemas/film/film-media-asset-review-api.schema.d.ts +431 -0
- package/dist/schemas/film/film-media-asset-review-api.schema.js +41 -0
- package/dist/schemas/film/film-media-asset.schema.d.ts +131 -0
- package/dist/schemas/film/film-media-asset.schema.js +94 -0
- package/dist/schemas/film/film-media-kg.schema.d.ts +86 -0
- package/dist/schemas/film/film-media-kg.schema.js +70 -0
- package/dist/schemas/film/film-ofi-report.schema.d.ts +437 -0
- package/dist/schemas/film/film-ofi-report.schema.js +65 -0
- package/dist/schemas/film/film-otio-sidecar.schema.d.ts +136 -0
- package/dist/schemas/film/film-otio-sidecar.schema.js +28 -0
- package/dist/schemas/film/film-production-coverage.schema.d.ts +179 -0
- package/dist/schemas/film/film-production-coverage.schema.js +123 -0
- package/dist/schemas/film/film-production-graph.schema.d.ts +273 -0
- package/dist/schemas/film/film-production-graph.schema.js +43 -0
- package/dist/schemas/film/film-production-read-model.schema.d.ts +1038 -0
- package/dist/schemas/film/film-production-read-model.schema.js +65 -0
- package/dist/schemas/film/film-production-style.schema.d.ts +31 -0
- package/dist/schemas/film/film-production-style.schema.js +50 -0
- package/dist/schemas/film/film-project.schema.d.ts +115 -0
- package/dist/schemas/film/film-project.schema.js +50 -0
- package/dist/schemas/film/film-prompt-compiler.schema.d.ts +346 -0
- package/dist/schemas/film/film-prompt-compiler.schema.js +116 -0
- package/dist/schemas/film/film-prompt-performance.schema.d.ts +77 -0
- package/dist/schemas/film/film-prompt-performance.schema.js +37 -0
- package/dist/schemas/film/film-prompt-repair.schema.d.ts +41 -0
- package/dist/schemas/film/film-prompt-repair.schema.js +36 -0
- package/dist/schemas/film/film-prompt.schema.d.ts +265 -0
- package/dist/schemas/film/film-prompt.schema.js +47 -0
- package/dist/schemas/film/film-provider-hints.schema.d.ts +105 -0
- package/dist/schemas/film/film-provider-hints.schema.js +50 -0
- package/dist/schemas/film/film-provider-job.schema.d.ts +320 -0
- package/dist/schemas/film/film-provider-job.schema.js +181 -0
- package/dist/schemas/film/film-provider.schema.d.ts +100 -0
- package/dist/schemas/film/film-provider.schema.js +51 -0
- package/dist/schemas/film/film-queue-enqueue.schema.d.ts +423 -0
- package/dist/schemas/film/film-queue-enqueue.schema.js +98 -0
- package/dist/schemas/film/film-queue-task-detail.schema.d.ts +981 -0
- package/dist/schemas/film/film-queue-task-detail.schema.js +57 -0
- package/dist/schemas/film/film-reference-pack.schema.d.ts +48 -0
- package/dist/schemas/film/film-reference-pack.schema.js +23 -0
- package/dist/schemas/film/film-regeneration-plan.schema.d.ts +124 -0
- package/dist/schemas/film/film-regeneration-plan.schema.js +62 -0
- package/dist/schemas/film/film-resolve-ingest.schema.d.ts +278 -0
- package/dist/schemas/film/film-resolve-ingest.schema.js +35 -0
- package/dist/schemas/film/film-resolve-timeline-report.schema.d.ts +323 -0
- package/dist/schemas/film/film-resolve-timeline-report.schema.js +43 -0
- package/dist/schemas/film/film-review.schema.d.ts +65 -0
- package/dist/schemas/film/film-review.schema.js +47 -0
- package/dist/schemas/film/film-scene.schema.d.ts +175 -0
- package/dist/schemas/film/film-scene.schema.js +38 -0
- package/dist/schemas/film/film-screenplay.schema.d.ts +215 -0
- package/dist/schemas/film/film-screenplay.schema.js +38 -0
- package/dist/schemas/film/film-shot-risk-assessment.schema.d.ts +27 -0
- package/dist/schemas/film/film-shot-risk-assessment.schema.js +16 -0
- package/dist/schemas/film/film-shot-risk-level.schema.d.ts +5 -0
- package/dist/schemas/film/film-shot-risk-level.schema.js +7 -0
- package/dist/schemas/film/film-shot.schema.d.ts +564 -0
- package/dist/schemas/film/film-shot.schema.js +96 -0
- package/dist/schemas/film/film-still-review-artifact.schema.d.ts +154 -0
- package/dist/schemas/film/film-still-review-artifact.schema.js +15 -0
- package/dist/schemas/film/film-still-review-scores.schema.d.ts +161 -0
- package/dist/schemas/film/film-still-review-scores.schema.js +48 -0
- package/dist/schemas/film/film-take-comparison.schema.d.ts +437 -0
- package/dist/schemas/film/film-take-comparison.schema.js +73 -0
- package/dist/schemas/film/film-training-dataset-api.schema.d.ts +641 -0
- package/dist/schemas/film/film-training-dataset-api.schema.js +86 -0
- package/dist/schemas/film/film-training-dataset.schema.d.ts +171 -0
- package/dist/schemas/film/film-training-dataset.schema.js +69 -0
- package/dist/schemas/film/film-wardrobe-state.schema.d.ts +42 -0
- package/dist/schemas/film/film-wardrobe-state.schema.js +21 -0
- package/dist/schemas/film/film-workbench.schema.d.ts +379 -0
- package/dist/schemas/film/film-workbench.schema.js +58 -0
- package/dist/schemas/film/film-workflow-lineage.schema.d.ts +166 -0
- package/dist/schemas/film/film-workflow-lineage.schema.js +83 -0
- package/dist/schemas/film/film-world-ontology.schema.d.ts +250 -0
- package/dist/schemas/film/film-world-ontology.schema.js +79 -0
- package/dist/schemas/film/image-generation-provider.schema.d.ts +392 -0
- package/dist/schemas/film/image-generation-provider.schema.js +55 -0
- package/dist/schemas/film/index.d.ts +81 -0
- package/dist/schemas/film/index.js +97 -0
- package/dist/schemas/github/branches.schema.d.ts +61 -0
- package/dist/schemas/github/branches.schema.js +17 -0
- package/dist/schemas/github/issues.schema.d.ts +145 -0
- package/dist/schemas/github/issues.schema.js +27 -0
- package/dist/schemas/github/pulls.schema.d.ts +173 -0
- package/dist/schemas/github/pulls.schema.js +30 -0
- package/dist/schemas/github/repo-create.schema.d.ts +21 -0
- package/dist/schemas/github/repo-create.schema.js +11 -0
- package/dist/schemas/github/webhook-delivery.schema.d.ts +729 -0
- package/dist/schemas/github/webhook-delivery.schema.js +142 -0
- package/dist/schemas/github/workflow-runs.schema.d.ts +173 -0
- package/dist/schemas/github/workflow-runs.schema.js +52 -0
- package/dist/schemas/github-pr-create.schema.d.ts +175 -0
- package/dist/schemas/github-pr-create.schema.js +70 -0
- package/dist/schemas/github-status.schema.d.ts +418 -0
- package/dist/schemas/github-status.schema.js +122 -0
- package/dist/schemas/graph/edge-v2.schema.d.ts +85 -0
- package/dist/schemas/graph/edge-v2.schema.js +164 -0
- package/dist/schemas/graph/graph-query-v2.schema.d.ts +449 -0
- package/dist/schemas/graph/graph-query-v2.schema.js +83 -0
- package/dist/schemas/graph/index.d.ts +14 -0
- package/dist/schemas/graph/index.js +30 -0
- package/dist/schemas/graph/node-v2.schema.d.ts +68 -0
- package/dist/schemas/graph/node-v2.schema.js +120 -0
- package/dist/schemas/graph/sql-security-findings.schema.d.ts +71 -0
- package/dist/schemas/graph/sql-security-findings.schema.js +40 -0
- package/dist/schemas/guardian/guardian-score.schema.d.ts +13 -0
- package/dist/schemas/guardian/guardian-score.schema.js +24 -0
- package/dist/schemas/guardian/validate.schema.d.ts +51 -0
- package/dist/schemas/guardian/validate.schema.js +36 -0
- package/dist/schemas/implement/nextjs-scaffold-manifest.schema.d.ts +44 -0
- package/dist/schemas/implement/nextjs-scaffold-manifest.schema.js +25 -0
- package/dist/schemas/implement/patch-validation-diagnostic.schema.d.ts +17 -0
- package/dist/schemas/implement/patch-validation-diagnostic.schema.js +19 -0
- package/dist/schemas/implement-patch-detail.schema.d.ts +344 -0
- package/dist/schemas/implement-patch-detail.schema.js +78 -0
- package/dist/schemas/implement-patch-lifecycle.schema.d.ts +66 -0
- package/dist/schemas/implement-patch-lifecycle.schema.js +317 -0
- package/dist/schemas/implement-patch-task.schema.d.ts +29 -0
- package/dist/schemas/implement-patch-task.schema.js +26 -0
- package/dist/schemas/implement-patch.schema.d.ts +2955 -0
- package/dist/schemas/implement-patch.schema.js +573 -0
- package/dist/schemas/implement-quarantine.schema.d.ts +215 -0
- package/dist/schemas/implement-quarantine.schema.js +71 -0
- package/dist/schemas/index.d.ts +5249 -0
- package/dist/schemas/index.js +1649 -0
- package/dist/schemas/integrations/cursor-execution.schema.d.ts +530 -0
- package/dist/schemas/integrations/cursor-execution.schema.js +104 -0
- package/dist/schemas/integrations.d.ts +426 -0
- package/dist/schemas/integrations.js +149 -0
- package/dist/schemas/knowledge/api-retry-kg-persistence.schema.d.ts +130 -0
- package/dist/schemas/knowledge/api-retry-kg-persistence.schema.js +28 -0
- package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.d.ts +46 -0
- package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.js +12 -0
- package/dist/schemas/knowledge/coverage.schema.d.ts +98 -0
- package/dist/schemas/knowledge/coverage.schema.js +27 -0
- package/dist/schemas/knowledge/duplicates.schema.d.ts +62 -0
- package/dist/schemas/knowledge/duplicates.schema.js +23 -0
- package/dist/schemas/knowledge/graph-query.schema.d.ts +9 -0
- package/dist/schemas/knowledge/graph-query.schema.js +7 -0
- package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.d.ts +40 -0
- package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.js +12 -0
- package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.d.ts +49 -0
- package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.js +14 -0
- package/dist/schemas/knowledge/kg-generation-writers.schema.d.ts +338 -0
- package/dist/schemas/knowledge/kg-generation-writers.schema.js +73 -0
- package/dist/schemas/knowledge/kg-relations.schema.d.ts +70 -0
- package/dist/schemas/knowledge/kg-relations.schema.js +157 -0
- package/dist/schemas/knowledge/knowledge-graph-summary.schema.d.ts +170 -0
- package/dist/schemas/knowledge/knowledge-graph-summary.schema.js +43 -0
- package/dist/schemas/knowledge/knowledge-node-provenance.schema.d.ts +41 -0
- package/dist/schemas/knowledge/knowledge-node-provenance.schema.js +21 -0
- package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.d.ts +76 -0
- package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.js +14 -0
- package/dist/schemas/knowledge/knowledge-search.schema.d.ts +29 -0
- package/dist/schemas/knowledge/knowledge-search.schema.js +17 -0
- package/dist/schemas/knowledge/lineage.schema.d.ts +70 -0
- package/dist/schemas/knowledge/lineage.schema.js +28 -0
- package/dist/schemas/knowledge/project-brief-knowledge-node.schema.d.ts +45 -0
- package/dist/schemas/knowledge/project-brief-knowledge-node.schema.js +30 -0
- package/dist/schemas/knowledge/review-readiness.schema.d.ts +104 -0
- package/dist/schemas/knowledge/review-readiness.schema.js +30 -0
- package/dist/schemas/knowledge/sync-prs.schema.d.ts +54 -0
- package/dist/schemas/knowledge/sync-prs.schema.js +21 -0
- package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.d.ts +37 -0
- package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.js +14 -0
- package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.d.ts +58 -0
- package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.js +14 -0
- package/dist/schemas/knowledge-graph-response.schema.d.ts +376 -0
- package/dist/schemas/knowledge-graph-response.schema.js +56 -0
- package/dist/schemas/logging/logger-context.schema.d.ts +21 -0
- package/dist/schemas/logging/logger-context.schema.js +11 -0
- package/dist/schemas/metrics/project-kpi-summary.schema.d.ts +368 -0
- package/dist/schemas/metrics/project-kpi-summary.schema.js +80 -0
- package/dist/schemas/orchestration/durable-stage-progress.schema.d.ts +57 -0
- package/dist/schemas/orchestration/durable-stage-progress.schema.js +34 -0
- package/dist/schemas/orchestration-execution.d.ts +158 -0
- package/dist/schemas/orchestration-execution.js +88 -0
- package/dist/schemas/project-bmad-settings-patch.schema.d.ts +66 -0
- package/dist/schemas/project-bmad-settings-patch.schema.js +29 -0
- package/dist/schemas/project-kind.schema.d.ts +70 -0
- package/dist/schemas/project-kind.schema.js +38 -0
- package/dist/schemas/project-team.d.ts +48 -0
- package/dist/schemas/project-team.js +52 -0
- package/dist/schemas/projects/nl-kg-v2-enabled.schema.d.ts +10 -0
- package/dist/schemas/projects/nl-kg-v2-enabled.schema.js +16 -0
- package/dist/schemas/provider-sentinel/cleanup-manifest.schema.d.ts +78 -0
- package/dist/schemas/provider-sentinel/cleanup-manifest.schema.js +27 -0
- package/dist/schemas/provider-sentinel/execution-evidence.schema.d.ts +228 -0
- package/dist/schemas/provider-sentinel/execution-evidence.schema.js +78 -0
- package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.d.ts +55 -0
- package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.js +33 -0
- package/dist/schemas/provider-sentinel/index.d.ts +6 -0
- package/dist/schemas/provider-sentinel/index.js +22 -0
- package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.d.ts +8 -0
- package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.js +9 -0
- package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.d.ts +743 -0
- package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.js +126 -0
- package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.d.ts +51 -0
- package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.js +30 -0
- package/dist/schemas/publication/manuscript-export.schema.d.ts +249 -0
- package/dist/schemas/publication/manuscript-export.schema.js +47 -0
- package/dist/schemas/repo/repo-scan-run.schema.d.ts +60 -0
- package/dist/schemas/repo/repo-scan-run.schema.js +34 -0
- package/dist/schemas/repos/project-repo-link.schema.d.ts +148 -0
- package/dist/schemas/repos/project-repo-link.schema.js +28 -0
- package/dist/schemas/repos/repo-readiness.schema.d.ts +26 -0
- package/dist/schemas/repos/repo-readiness.schema.js +23 -0
- package/dist/schemas/repos/repo-scan.schema.d.ts +379 -0
- package/dist/schemas/repos/repo-scan.schema.js +98 -0
- package/dist/schemas/review/review-coverage.schema.d.ts +2238 -0
- package/dist/schemas/review/review-coverage.schema.js +182 -0
- package/dist/schemas/review/review-policy.schema.d.ts +87 -0
- package/dist/schemas/review/review-policy.schema.js +42 -0
- package/dist/schemas/runtime/index.d.ts +6 -0
- package/dist/schemas/runtime/index.js +22 -0
- package/dist/schemas/runtime/platform-health.schema.d.ts +83 -0
- package/dist/schemas/runtime/platform-health.schema.js +31 -0
- package/dist/schemas/runtime/probe-harness-gen.schema.d.ts +456 -0
- package/dist/schemas/runtime/probe-harness-gen.schema.js +91 -0
- package/dist/schemas/runtime/probe.schema.d.ts +1117 -0
- package/dist/schemas/runtime/probe.schema.js +278 -0
- package/dist/schemas/runtime/runtime-knowledge-node.schema.d.ts +862 -0
- package/dist/schemas/runtime/runtime-knowledge-node.schema.js +29 -0
- package/dist/schemas/runtime/runtime-loop.schema.d.ts +175 -0
- package/dist/schemas/runtime/runtime-loop.schema.js +84 -0
- package/dist/schemas/runtime/runtime-run.schema.d.ts +378 -0
- package/dist/schemas/runtime/runtime-run.schema.js +30 -0
- package/dist/schemas/security/index.d.ts +3 -0
- package/dist/schemas/security/index.js +19 -0
- package/dist/schemas/security/pre-pr-security-gate.schema.d.ts +486 -0
- package/dist/schemas/security/pre-pr-security-gate.schema.js +13 -0
- package/dist/schemas/security/security-finding.schema.d.ts +546 -0
- package/dist/schemas/security/security-finding.schema.js +138 -0
- package/dist/schemas/security/security-knowledge-node.schema.d.ts +285 -0
- package/dist/schemas/security/security-knowledge-node.schema.js +21 -0
- package/dist/schemas/task-complexity.schema.d.ts +3 -0
- package/dist/schemas/task-complexity.schema.js +6 -0
- package/dist/schemas/task-evidence-expectations.schema.d.ts +174 -0
- package/dist/schemas/task-evidence-expectations.schema.js +35 -0
- package/dist/schemas/traceability/index.d.ts +2 -0
- package/dist/schemas/traceability/index.js +18 -0
- package/dist/schemas/traceability/neuraloom-traceability-file.schema.d.ts +593 -0
- package/dist/schemas/traceability/neuraloom-traceability-file.schema.js +93 -0
- package/dist/schemas/traceability/traceability-graph.schema.d.ts +712 -0
- package/dist/schemas/traceability/traceability-graph.schema.js +112 -0
- package/dist/schemas/workflow/build-knowledge.schema.d.ts +672 -0
- package/dist/schemas/workflow/build-knowledge.schema.js +92 -0
- package/dist/schemas/workflow/build-truth-read-model.schema.d.ts +1218 -0
- package/dist/schemas/workflow/build-truth-read-model.schema.js +42 -0
- package/dist/schemas/workflow/canonicalization-decision.schema.d.ts +74 -0
- package/dist/schemas/workflow/canonicalization-decision.schema.js +22 -0
- package/dist/schemas/workflow/code-reality-artifacts.schema.d.ts +914 -0
- package/dist/schemas/workflow/code-reality-artifacts.schema.js +150 -0
- package/dist/schemas/workflow/code-reality-read-model.schema.d.ts +12708 -0
- package/dist/schemas/workflow/code-reality-read-model.schema.js +237 -0
- package/dist/schemas/workflow/code-reality-task-traceability.schema.d.ts +124 -0
- package/dist/schemas/workflow/code-reality-task-traceability.schema.js +107 -0
- package/dist/schemas/workflow/command-center-spine.schema.d.ts +62 -0
- package/dist/schemas/workflow/command-center-spine.schema.js +58 -0
- package/dist/schemas/workflow/context-bundle.schema.d.ts +111 -0
- package/dist/schemas/workflow/context-bundle.schema.js +62 -0
- package/dist/schemas/workflow/context-contamination.schema.d.ts +284 -0
- package/dist/schemas/workflow/context-contamination.schema.js +65 -0
- package/dist/schemas/workflow/deployment-evidence.schema.d.ts +269 -0
- package/dist/schemas/workflow/deployment-evidence.schema.js +55 -0
- package/dist/schemas/workflow/doc-draft-artifact.schema.d.ts +126 -0
- package/dist/schemas/workflow/doc-draft-artifact.schema.js +52 -0
- package/dist/schemas/workflow/domain-acceptance.schema.d.ts +206 -0
- package/dist/schemas/workflow/domain-acceptance.schema.js +62 -0
- package/dist/schemas/workflow/engineering-context.schema.d.ts +2235 -0
- package/dist/schemas/workflow/engineering-context.schema.js +566 -0
- package/dist/schemas/workflow/existing-capability-classification.schema.d.ts +79 -0
- package/dist/schemas/workflow/existing-capability-classification.schema.js +28 -0
- package/dist/schemas/workflow/existing-codebase-context.schema.d.ts +865 -0
- package/dist/schemas/workflow/existing-codebase-context.schema.js +56 -0
- package/dist/schemas/workflow/findings-register.schema.d.ts +148 -0
- package/dist/schemas/workflow/findings-register.schema.js +35 -0
- package/dist/schemas/workflow/implement-first-batch.schema.d.ts +190 -0
- package/dist/schemas/workflow/implement-first-batch.schema.js +49 -0
- package/dist/schemas/workflow/implement-gate-status.schema.d.ts +823 -0
- package/dist/schemas/workflow/implement-gate-status.schema.js +94 -0
- package/dist/schemas/workflow/implement-stale-batch-repair.schema.d.ts +71 -0
- package/dist/schemas/workflow/implement-stale-batch-repair.schema.js +28 -0
- package/dist/schemas/workflow/implement-task-guard.schema.d.ts +27 -0
- package/dist/schemas/workflow/implement-task-guard.schema.js +35 -0
- package/dist/schemas/workflow/implementation-packet.schema.d.ts +200 -0
- package/dist/schemas/workflow/implementation-packet.schema.js +88 -0
- package/dist/schemas/workflow/import-validity.schema.d.ts +177 -0
- package/dist/schemas/workflow/import-validity.schema.js +71 -0
- package/dist/schemas/workflow/index.d.ts +14 -0
- package/dist/schemas/workflow/index.js +30 -0
- package/dist/schemas/workflow/ingest-dashboard.schema.d.ts +1094 -0
- package/dist/schemas/workflow/ingest-dashboard.schema.js +76 -0
- package/dist/schemas/workflow/ingest-gate.schema.d.ts +133 -0
- package/dist/schemas/workflow/ingest-gate.schema.js +27 -0
- package/dist/schemas/workflow/ingest-inventory.schema.d.ts +203 -0
- package/dist/schemas/workflow/ingest-inventory.schema.js +52 -0
- package/dist/schemas/workflow/knowledge-graph-result.schema.d.ts +90 -0
- package/dist/schemas/workflow/knowledge-graph-result.schema.js +37 -0
- package/dist/schemas/workflow/patch-file-scope-policy.schema.d.ts +62 -0
- package/dist/schemas/workflow/patch-file-scope-policy.schema.js +38 -0
- package/dist/schemas/workflow/patch-review-result.schema.d.ts +139 -0
- package/dist/schemas/workflow/patch-review-result.schema.js +58 -0
- package/dist/schemas/workflow/plan-approval.schema.d.ts +184 -0
- package/dist/schemas/workflow/plan-approval.schema.js +102 -0
- package/dist/schemas/workflow/product-readiness-response.schema.d.ts +307 -0
- package/dist/schemas/workflow/product-readiness-response.schema.js +81 -0
- package/dist/schemas/workflow/product-realization.schema.d.ts +259 -0
- package/dist/schemas/workflow/product-realization.schema.js +207 -0
- package/dist/schemas/workflow/product-route-manifest.schema.d.ts +785 -0
- package/dist/schemas/workflow/product-route-manifest.schema.js +161 -0
- package/dist/schemas/workflow/repair-specify-gate.schema.d.ts +33 -0
- package/dist/schemas/workflow/repair-specify-gate.schema.js +13 -0
- package/dist/schemas/workflow/repo-intel-snapshot.schema.d.ts +471 -0
- package/dist/schemas/workflow/repo-intel-snapshot.schema.js +98 -0
- package/dist/schemas/workflow/repo-policy-snapshot.schema.d.ts +365 -0
- package/dist/schemas/workflow/repo-policy-snapshot.schema.js +83 -0
- package/dist/schemas/workflow/review-acceptance.schema.d.ts +182 -0
- package/dist/schemas/workflow/review-acceptance.schema.js +66 -0
- package/dist/schemas/workflow/review-release-decision-operator.schema.d.ts +220 -0
- package/dist/schemas/workflow/review-release-decision-operator.schema.js +65 -0
- package/dist/schemas/workflow/route-manifest.schema.d.ts +239 -0
- package/dist/schemas/workflow/route-manifest.schema.js +82 -0
- package/dist/schemas/workflow/runtime-contract.schema.d.ts +384 -0
- package/dist/schemas/workflow/runtime-contract.schema.js +71 -0
- package/dist/schemas/workflow/schema-page-read-model.schema.d.ts +185 -0
- package/dist/schemas/workflow/schema-page-read-model.schema.js +29 -0
- package/dist/schemas/workflow/ship-closure.schema.d.ts +516 -0
- package/dist/schemas/workflow/ship-closure.schema.js +96 -0
- package/dist/schemas/workflow/software-workflow-lineage.schema.d.ts +384 -0
- package/dist/schemas/workflow/software-workflow-lineage.schema.js +54 -0
- package/dist/schemas/workflow/specify-mutation-health.schema.d.ts +72 -0
- package/dist/schemas/workflow/specify-mutation-health.schema.js +24 -0
- package/dist/schemas/workflow/step-evidence-resolution.schema.d.ts +49 -0
- package/dist/schemas/workflow/step-evidence-resolution.schema.js +36 -0
- package/dist/schemas/workflow/step-gate.schema.d.ts +312 -0
- package/dist/schemas/workflow/step-gate.schema.js +90 -0
- package/dist/schemas/workflow/task-capsule.schema.d.ts +414 -0
- package/dist/schemas/workflow/task-capsule.schema.js +99 -0
- package/dist/schemas/workflow/tasks-github-sync.schema.d.ts +60 -0
- package/dist/schemas/workflow/tasks-github-sync.schema.js +24 -0
- package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.d.ts +86 -0
- package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.js +38 -0
- package/dist/schemas/workflow/tasks-truth.schema.d.ts +616 -0
- package/dist/schemas/workflow/tasks-truth.schema.js +76 -0
- package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.d.ts +210 -0
- package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.js +17 -0
- package/dist/schemas/workflow/test-obligation-manifest.schema.d.ts +306 -0
- package/dist/schemas/workflow/test-obligation-manifest.schema.js +131 -0
- package/dist/schemas/workflow/workflow-doctor.schema.d.ts +942 -0
- package/dist/schemas/workflow/workflow-doctor.schema.js +141 -0
- package/dist/schemas/workflow/workflow-evidence.schema.d.ts +67 -0
- package/dist/schemas/workflow/workflow-evidence.schema.js +23 -0
- package/dist/schemas/workflow/workflow-intelligence-graph.schema.d.ts +415 -0
- package/dist/schemas/workflow/workflow-intelligence-graph.schema.js +213 -0
- package/dist/schemas/workflow/workflow-run-event.schema.d.ts +41 -0
- package/dist/schemas/workflow/workflow-run-event.schema.js +55 -0
- package/dist/schemas/workflow-ci-step-artifacts.schema.d.ts +60 -0
- package/dist/schemas/workflow-ci-step-artifacts.schema.js +15 -0
- package/dist/schemas/workflow-implement-read-model.schema.d.ts +86 -0
- package/dist/schemas/workflow-implement-read-model.schema.js +22 -0
- package/dist/schemas/workflow-knowledge-step-artifacts.schema.d.ts +60 -0
- package/dist/schemas/workflow-knowledge-step-artifacts.schema.js +15 -0
- package/dist/schemas/workflow-progression.d.ts +1955 -0
- package/dist/schemas/workflow-progression.js +259 -0
- package/dist/telemetry/index.d.ts +194 -0
- package/dist/telemetry/index.js +93 -0
- package/dist/transformation/canonical-semantic-model.d.ts +233 -0
- package/dist/transformation/canonical-semantic-model.js +61 -0
- package/dist/transformation/index.d.ts +6 -0
- package/dist/transformation/index.js +22 -0
- package/dist/transformation/transformation-registry.d.ts +136 -0
- package/dist/transformation/transformation-registry.js +100 -0
- package/dist/types/ai-responses.d.ts +98 -0
- package/dist/types/ai-responses.js +42 -0
- package/dist/types/ai.d.ts +4 -0
- package/dist/types/ai.js +2 -0
- package/dist/types/audiobook-embed.d.ts +22 -0
- package/dist/types/audiobook-embed.js +2 -0
- package/dist/types/audiobook.d.ts +30 -0
- package/dist/types/audiobook.js +2 -0
- package/dist/types/chapter-revision.types.d.ts +6 -0
- package/dist/types/chapter-revision.types.js +6 -0
- package/dist/types/ci.d.ts +14 -0
- package/dist/types/ci.js +2 -0
- package/dist/types/codebase.d.ts +309 -0
- package/dist/types/codebase.js +83 -0
- package/dist/types/community-credit-transaction-type.d.ts +2 -0
- package/dist/types/community-credit-transaction-type.js +9 -0
- package/dist/types/community-membership-tier.d.ts +2 -0
- package/dist/types/community-membership-tier.js +4 -0
- package/dist/types/community-operator-role.d.ts +9 -0
- package/dist/types/community-operator-role.js +13 -0
- package/dist/types/community-stage.d.ts +3 -0
- package/dist/types/community-stage.js +19 -0
- package/dist/types/graph-canvas.d.ts +109 -0
- package/dist/types/graph-canvas.js +25 -0
- package/dist/types/graph-question-mapping.d.ts +33 -0
- package/dist/types/graph-question-mapping.js +36 -0
- package/dist/types/index.d.ts +2187 -0
- package/dist/types/index.js +53 -0
- package/dist/types/manuscript-checks.d.ts +1 -0
- package/dist/types/manuscript-checks.js +2 -0
- package/dist/types/orchestration-execution.d.ts +16 -0
- package/dist/types/orchestration-execution.js +5 -0
- package/dist/types/product-readiness.d.ts +44 -0
- package/dist/types/product-readiness.js +2 -0
- package/dist/types/product-route-manifest.d.ts +5 -0
- package/dist/types/product-route-manifest.js +21 -0
- package/dist/types/project-capabilities.d.ts +20 -0
- package/dist/types/project-capabilities.js +40 -0
- package/dist/types/project-kind.d.ts +68 -0
- package/dist/types/project-kind.js +216 -0
- package/dist/types/pwa.d.ts +29 -0
- package/dist/types/pwa.js +6 -0
- package/dist/types/repo.d.ts +2 -0
- package/dist/types/repo.js +2 -0
- package/dist/types/resolve-model-policy-input.d.ts +37 -0
- package/dist/types/resolve-model-policy-input.js +2 -0
- package/dist/types/settings.d.ts +13 -0
- package/dist/types/settings.js +20 -0
- package/dist/types/supabase-generated.d.ts +1122 -0
- package/dist/types/supabase-generated.js +13 -0
- package/dist/types/workflow-action-panel.d.ts +41 -0
- package/dist/types/workflow-action-panel.js +2 -0
- package/dist/types/workflow-command-center.d.ts +50 -0
- package/dist/types/workflow-command-center.js +6 -0
- package/dist/types/workflow-completion.d.ts +154 -0
- package/dist/types/workflow-completion.js +2 -0
- package/dist/types/workflow-graph.d.ts +786 -0
- package/dist/types/workflow-graph.js +119 -0
- package/dist/ui/domain-templates.d.ts +35 -0
- package/dist/ui/domain-templates.js +242 -0
- package/dist/utils/github-closing-keywords.d.ts +8 -0
- package/dist/utils/github-closing-keywords.js +27 -0
- package/dist/utils/implement-pr-batch-policy.d.ts +17 -0
- package/dist/utils/implement-pr-batch-policy.js +72 -0
- package/dist/utils/implement-pr-batch.d.ts +19 -0
- package/dist/utils/implement-pr-batch.js +95 -0
- package/dist/utils/implement-pr-metadata.d.ts +32 -0
- package/dist/utils/implement-pr-metadata.js +41 -0
- package/dist/workflow/api-route-key-resolver.d.ts +11 -0
- package/dist/workflow/api-route-key-resolver.js +51 -0
- package/dist/workflow/assurance-selector-keys.d.ts +134 -0
- package/dist/workflow/assurance-selector-keys.js +145 -0
- package/dist/workflow/channel-registry.d.ts +959 -0
- package/dist/workflow/channel-registry.js +1475 -0
- package/dist/workflow/evaluate-existing-codebase-readiness.d.ts +28 -0
- package/dist/workflow/evaluate-existing-codebase-readiness.js +329 -0
- package/dist/workflow/evaluate-ingest-gate.d.ts +11 -0
- package/dist/workflow/evaluate-ingest-gate.js +168 -0
- package/dist/workflow/evaluate-repair-specify-gate.d.ts +10 -0
- package/dist/workflow/evaluate-repair-specify-gate.js +93 -0
- package/dist/workflow/existing-codebase-step-area-map.d.ts +4 -0
- package/dist/workflow/existing-codebase-step-area-map.js +22 -0
- package/dist/workflow/film-spine-nav-aliases.d.ts +23 -0
- package/dist/workflow/film-spine-nav-aliases.js +76 -0
- package/dist/workflow/index.d.ts +23 -0
- package/dist/workflow/index.js +39 -0
- package/dist/workflow/is-code-reality-semantically-mapped.d.ts +8 -0
- package/dist/workflow/is-code-reality-semantically-mapped.js +21 -0
- package/dist/workflow/is-repository-scan-complete.d.ts +11 -0
- package/dist/workflow/is-repository-scan-complete.js +28 -0
- package/dist/workflow/normalize-workflow-execution-mode.d.ts +4 -0
- package/dist/workflow/normalize-workflow-execution-mode.js +16 -0
- package/dist/workflow/project-kind-normalizer.d.ts +34 -0
- package/dist/workflow/project-kind-normalizer.js +162 -0
- package/dist/workflow/resolve-workflow-variant.d.ts +42 -0
- package/dist/workflow/resolve-workflow-variant.js +101 -0
- package/dist/workflow/step-id-canonical.d.ts +26 -0
- package/dist/workflow/step-id-canonical.js +58 -0
- package/dist/workflow/test-obligation-policy.d.ts +12 -0
- package/dist/workflow/test-obligation-policy.js +82 -0
- package/dist/workflow/test-policy-registry.d.ts +45 -0
- package/dist/workflow/test-policy-registry.js +190 -0
- package/dist/workflow/workflow-assurance-completion-probe-gates.d.ts +43 -0
- package/dist/workflow/workflow-assurance-completion-probe-gates.js +88 -0
- package/dist/workflow/workflow-assurance-manifest.d.ts +84 -0
- package/dist/workflow/workflow-assurance-manifest.js +309 -0
- package/dist/workflow/workflow-assurance-wiring-tiers.d.ts +13 -0
- package/dist/workflow/workflow-assurance-wiring-tiers.js +32 -0
- package/dist/workflow/workflow-doctor-closure.d.ts +16 -0
- package/dist/workflow/workflow-doctor-closure.js +245 -0
- package/package.json +82 -4
- package/README.md +0 -3
|
@@ -0,0 +1,1440 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* NeuraLoom API Routes - Single Source of Truth for Route Constants
|
|
4
|
+
* All API routes must be imported from this package
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.PUBLIC_BOOK_ROUTES = exports.DEPLOYMENT_ROUTES = exports.GIT_ROUTES = exports.BOOKS_PORTAL_STEP_IDS = exports.PROTECTED_PAGE_PREFIXES = exports.AUTH_RETURN_PARAM = exports.PAGE_ROUTES = exports.CONTENT_TYPES = exports.HTTP_STATUS = exports.HTTP_METHODS = exports.ROUTE_HELPERS = exports.SETTINGS_ROUTES = exports.INTEGRATION_ROUTES = exports.CRON_ROUTES = exports.CORTEX_BRIDGE_ROUTES = exports.NOTIFICATION_ROUTES = exports.CACHE_ROUTES = exports.FILE_ROUTES = exports.COMPLIANCE_ROUTES = exports.CONSTITUTION_ROUTES = exports.SYSTEM_ROUTES = exports.MCP_ROUTES = exports.VECTOR_ROUTES = exports.KNOWLEDGE_ROUTES = exports.AI_ROUTES = exports.ML_ROUTES = exports.TASK_ROUTES = exports.PLAN_ROUTES = exports.SPEC_ROUTES = exports.PROJECT_MODEL_USAGE = exports.PROJECT_MODEL_QUALITY = exports.PROJECT_MODEL_SETTINGS = exports.ORCHESTRATION_EVENTS = exports.PROJECT_ROUTES = exports.APPROVAL_ROUTES = exports.USER_ROUTES = exports.AUTH_ROUTES = exports.IMPLEMENT_PATCHES_DETAIL = exports.IMPLEMENT_PATCHES_LIST = exports.IMPLEMENT_ROUTES = exports.PROOF_RUN_ROUTES = exports.CODE_REALITY_ROUTES = exports.REPO_ROUTES = exports.ORCHESTRATION_ROUTES = exports.GUARDIAN_ROUTES = exports.WORKFLOW_ROUTES = exports.GRAPH_ROUTES = exports.API_PREFIX = exports.API_VERSION = exports.API_BASE = void 0;
|
|
22
|
+
exports.ROUTES = exports.ALL_ROUTES = exports.RUNTIME_ROUTES = exports.FILM_ROUTES = exports.ORCHESTRATION_DURABLE_ROUTES = exports.SEARCH_ROUTES = exports.TELEMETRY_ROUTES = exports.AGENT_ACTION_ROUTES = exports.TEAMS_ROUTES = exports.TEAM_ROUTES = exports.WORKFLOW_TEMPLATE_ROUTES = exports.DECISION_ROUTES = exports.DASHBOARD_ROUTES = exports.ANALYTICS_ROUTES = exports.CODE_ROUTES = exports.INFRA_ROUTES = exports.WORKSPACE_ROUTES = exports.FACTORY_ROUTES = exports.CI_ROUTES = exports.AUDIOBOOK_PUBLICATION_ROUTES = exports.MANUSCRIPT_PUBLICATION_ROUTES = exports.AUDIOBOOK_EMBED_PUBLICATION_ROUTES = void 0;
|
|
23
|
+
exports.isProtectedPagePath = isProtectedPagePath;
|
|
24
|
+
exports.sanitizeAuthReturnPath = sanitizeAuthReturnPath;
|
|
25
|
+
exports.buildLoginPath = buildLoginPath;
|
|
26
|
+
exports.isBooksPortalStepId = isBooksPortalStepId;
|
|
27
|
+
exports.buildOrchestrationRunStatusUrl = buildOrchestrationRunStatusUrl;
|
|
28
|
+
// Base API Configuration
|
|
29
|
+
exports.API_BASE = "/api";
|
|
30
|
+
exports.API_VERSION = "v2";
|
|
31
|
+
// NOTE: API routes use /api/* directly (no version prefix in URL)
|
|
32
|
+
// Version tracking is for contracts package versioning, not URL structure
|
|
33
|
+
// Future: Consider explicit /api/v2/* routing when needed
|
|
34
|
+
// Vercel cache bust: Force rebuild - 2025-10-01
|
|
35
|
+
exports.API_PREFIX = "/api";
|
|
36
|
+
/** Workflow + knowledge hybrid graph (D3 explorer). */
|
|
37
|
+
exports.GRAPH_ROUTES = {
|
|
38
|
+
hybrid: (projectId) => `${exports.API_PREFIX}/graph/hybrid?projectId=${encodeURIComponent(projectId)}`,
|
|
39
|
+
knowledge: (projectId) => `${exports.API_PREFIX}/graph/knowledge?projectId=${encodeURIComponent(projectId)}`,
|
|
40
|
+
workflow: (projectId, query) => {
|
|
41
|
+
const params = new URLSearchParams();
|
|
42
|
+
params.set("projectId", projectId);
|
|
43
|
+
if (query?.include !== undefined && query.include.length > 0) {
|
|
44
|
+
params.set("include", query.include);
|
|
45
|
+
}
|
|
46
|
+
return `${exports.API_PREFIX}/graph/workflow?${params.toString()}`;
|
|
47
|
+
},
|
|
48
|
+
/** MS-01 typed overlays — POST JSON bodies validated via contracts (no route-local Zod). */
|
|
49
|
+
queryRequirementCoverage: `${exports.API_PREFIX}/graph/query/requirement-coverage`,
|
|
50
|
+
queryRouteTruth: `${exports.API_PREFIX}/graph/query/route-truth`,
|
|
51
|
+
queryDriftForFile: `${exports.API_PREFIX}/graph/query/drift-for-file`,
|
|
52
|
+
};
|
|
53
|
+
/** Workflow-specific routes for gates, command center, and UI spine (addresses #538). */
|
|
54
|
+
exports.WORKFLOW_ROUTES = {
|
|
55
|
+
gates: {
|
|
56
|
+
approve: (gateId) => `${exports.API_PREFIX}/workflow/gates/${gateId}/approve`,
|
|
57
|
+
reject: (gateId) => `${exports.API_PREFIX}/workflow/gates/${gateId}/reject`,
|
|
58
|
+
},
|
|
59
|
+
/** Coding Quality Spine — task capsule + context bundle (Wave 4). */
|
|
60
|
+
capsule: {
|
|
61
|
+
/** POST — generate a task capsule from approved Spec + Plan. */
|
|
62
|
+
generate: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/tasks/capsule`,
|
|
63
|
+
/** GET — retrieve an existing task capsule. */
|
|
64
|
+
get: (projectId, taskId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/tasks/capsule?taskId=${encodeURIComponent(taskId)}`,
|
|
65
|
+
},
|
|
66
|
+
contextBundle: {
|
|
67
|
+
/** GET — compile and return a minimal context bundle for a task. */
|
|
68
|
+
compile: (projectId, taskId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/context-bundle?taskId=${encodeURIComponent(taskId)}`,
|
|
69
|
+
},
|
|
70
|
+
/** Engineering context — durable task checkpoints (server assigns sequence). */
|
|
71
|
+
checkpoint: {
|
|
72
|
+
/** POST — record a checkpoint; supersedes the previous one for the task. */
|
|
73
|
+
create: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/tasks/checkpoint`,
|
|
74
|
+
/** GET — latest checkpoint for a task. */
|
|
75
|
+
latest: (projectId, taskId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/tasks/checkpoint?taskId=${encodeURIComponent(taskId)}`,
|
|
76
|
+
},
|
|
77
|
+
/** Engineering context — verification result records. */
|
|
78
|
+
verification: {
|
|
79
|
+
/** POST — record one verification result. */
|
|
80
|
+
record: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/tasks/verification`,
|
|
81
|
+
/** GET — verification results for a task (newest first, limit 50). */
|
|
82
|
+
list: (projectId, taskId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/tasks/verification?taskId=${encodeURIComponent(taskId)}`,
|
|
83
|
+
},
|
|
84
|
+
/** Engineering context — resume from the latest checkpoint with evidence invalidation. */
|
|
85
|
+
resume: {
|
|
86
|
+
/** POST — invalidate stale evidence, rebuild + persist the brief. */
|
|
87
|
+
run: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/tasks/resume`,
|
|
88
|
+
},
|
|
89
|
+
/** Engineering context — bounded, revision-aware worker brief. */
|
|
90
|
+
engineeringBrief: {
|
|
91
|
+
/** GET — compile, persist and return the engineering brief for a task. */
|
|
92
|
+
compile: (projectId, taskId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/engineering-brief?taskId=${encodeURIComponent(taskId)}`,
|
|
93
|
+
},
|
|
94
|
+
parityCheck: {
|
|
95
|
+
/** POST — persist a parityCheckResult artifact from a CI architecture test run. */
|
|
96
|
+
persist: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/parity-check`,
|
|
97
|
+
},
|
|
98
|
+
/** Coding Quality Spine — test obligation manifest (Wave 12). */
|
|
99
|
+
testObligation: {
|
|
100
|
+
/** POST — upsert the TestObligationManifest for a project/PR. */
|
|
101
|
+
upsert: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/test-obligation`,
|
|
102
|
+
/** GET — retrieve the current TestObligationManifest for a project. */
|
|
103
|
+
get: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/test-obligation`,
|
|
104
|
+
},
|
|
105
|
+
/** Ship + Review + Iteration closure orchestrator (pilot / backfill). */
|
|
106
|
+
shipClosure: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/ship-closure`,
|
|
107
|
+
/** Generated-app product readiness (routes, auth, persistence, domain checks). */
|
|
108
|
+
productReadiness: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/product-readiness`,
|
|
109
|
+
/** Operator release decision producer (PR2 — reviewReleaseDecision + reviewAcceptance). */
|
|
110
|
+
reviewReleaseDecision: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/workflow/review/decision`,
|
|
111
|
+
/** NeuraLoom → Cortex product release package handoff. */
|
|
112
|
+
sendToCortex: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/release/send-to-cortex`,
|
|
113
|
+
};
|
|
114
|
+
/** Guardian product APIs under /api/guardian (distinct from infra guardian under /api/infra/guardian). */
|
|
115
|
+
exports.GUARDIAN_ROUTES = {
|
|
116
|
+
validate: `${exports.API_PREFIX}/guardian/validate`,
|
|
117
|
+
insights: `${exports.API_PREFIX}/guardian/insights`,
|
|
118
|
+
adapters: `${exports.API_PREFIX}/guardian/adapters`,
|
|
119
|
+
trend: `${exports.API_PREFIX}/guardian/trend`,
|
|
120
|
+
status: `${exports.API_PREFIX}/guardian/status`,
|
|
121
|
+
summary: `${exports.API_PREFIX}/guardian/summary`,
|
|
122
|
+
telemetry: `${exports.API_PREFIX}/guardian/telemetry`,
|
|
123
|
+
};
|
|
124
|
+
/** Live orchestration SSE stream (workflow graph notifications). */
|
|
125
|
+
exports.ORCHESTRATION_ROUTES = {
|
|
126
|
+
stream: (projectId) => `${exports.API_PREFIX}/orchestration/stream?projectId=${encodeURIComponent(projectId)}`,
|
|
127
|
+
};
|
|
128
|
+
/** Repository scan triggers (Knowledge / GitHub linkage). */
|
|
129
|
+
exports.REPO_ROUTES = {
|
|
130
|
+
scan: `${exports.API_PREFIX}/repo/scan`,
|
|
131
|
+
/** Replay a completed scan persist into the Cortex outbox. Does not start a scan. */
|
|
132
|
+
emitToCortex: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/repo-scan/emit-to-cortex`,
|
|
133
|
+
};
|
|
134
|
+
/** Code Reality Graph read-model slices (#1252). */
|
|
135
|
+
exports.CODE_REALITY_ROUTES = {
|
|
136
|
+
/** GET — task-targeted Code Reality evidence (exact selection + one-hop relationships). */
|
|
137
|
+
evidence: (projectId, query) => {
|
|
138
|
+
const params = new URLSearchParams();
|
|
139
|
+
if (query?.terms !== undefined && query.terms.length > 0) {
|
|
140
|
+
params.set("terms", query.terms.join(","));
|
|
141
|
+
}
|
|
142
|
+
if (query?.paths !== undefined && query.paths.length > 0) {
|
|
143
|
+
params.set("paths", query.paths.join(","));
|
|
144
|
+
}
|
|
145
|
+
if (query?.maxNodes !== undefined) {
|
|
146
|
+
params.set("maxNodes", String(query.maxNodes));
|
|
147
|
+
}
|
|
148
|
+
if (query?.hops !== undefined) {
|
|
149
|
+
params.set("hops", String(query.hops));
|
|
150
|
+
}
|
|
151
|
+
if (query?.continuationToken !== undefined && query.continuationToken !== null) {
|
|
152
|
+
params.set("continuationToken", query.continuationToken);
|
|
153
|
+
}
|
|
154
|
+
const qs = params.toString();
|
|
155
|
+
return `${exports.API_PREFIX}/projects/${projectId}/code-reality/evidence${qs.length > 0 ? `?${qs}` : ""}`;
|
|
156
|
+
},
|
|
157
|
+
overview: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/overview`,
|
|
158
|
+
routes: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/routes`,
|
|
159
|
+
api: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/api`,
|
|
160
|
+
schema: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/schema`,
|
|
161
|
+
ui: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/ui`,
|
|
162
|
+
workflow: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/workflow`,
|
|
163
|
+
governance: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/governance`,
|
|
164
|
+
build: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/build`,
|
|
165
|
+
ship: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/ship`,
|
|
166
|
+
findings: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/findings`,
|
|
167
|
+
duplicates: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/duplicates`,
|
|
168
|
+
orphans: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/orphans`,
|
|
169
|
+
splitBrain: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/split-brain`,
|
|
170
|
+
performance: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/performance`,
|
|
171
|
+
security: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/security`,
|
|
172
|
+
stepContext: (projectId, step) => `${exports.API_PREFIX}/projects/${projectId}/code-reality/step-context?${new URLSearchParams({ step }).toString()}`,
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Internal proof-run recorder (bridge-15N / #1399) — browser-QA harness and
|
|
176
|
+
* server-side gate evaluators POST here; the route validates + writes an
|
|
177
|
+
* honest `ProofRunRecorded` envelope to the `external_exports` outbox
|
|
178
|
+
* (service-role only — RLS denies direct client access to that table).
|
|
179
|
+
*/
|
|
180
|
+
exports.PROOF_RUN_ROUTES = {
|
|
181
|
+
record: `${exports.API_PREFIX}/internal/proof-runs`,
|
|
182
|
+
};
|
|
183
|
+
/** Implement step: readiness check and patch-set lifecycle (generate → validate → push → PR). */
|
|
184
|
+
exports.IMPLEMENT_ROUTES = {
|
|
185
|
+
readiness: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/readiness`,
|
|
186
|
+
readinessLite: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/readiness-lite`,
|
|
187
|
+
diagnostics: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/diagnostics`,
|
|
188
|
+
/** GET recent `implementation_patch_set` rows (newest first). */
|
|
189
|
+
history: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/patches`,
|
|
190
|
+
/** GET lifecycle + validation + task statuses for one patch set ID. */
|
|
191
|
+
patchDetail: (projectId, patchSetId) => `${exports.API_PREFIX}/projects/${projectId}/implement/patches/${patchSetId}`,
|
|
192
|
+
patches: {
|
|
193
|
+
validate: (projectId, patchSetId) => `${exports.API_PREFIX}/projects/${projectId}/implement/patches/${patchSetId}/validate`,
|
|
194
|
+
push: (projectId, patchSetId) => `${exports.API_PREFIX}/projects/${projectId}/implement/patches/${patchSetId}/push`,
|
|
195
|
+
pr: (projectId, patchSetId) => `${exports.API_PREFIX}/projects/${projectId}/implement/patches/${patchSetId}/pr`,
|
|
196
|
+
quarantine: (projectId, patchSetId) => `${exports.API_PREFIX}/projects/${projectId}/implement/patches/${patchSetId}/quarantine`,
|
|
197
|
+
proofSource: (projectId, patchSetId) => `${exports.API_PREFIX}/projects/${projectId}/implement/patches/${patchSetId}/proof-source`,
|
|
198
|
+
},
|
|
199
|
+
nextPacket: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/next-packet`,
|
|
200
|
+
generateNextPacket: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/generate-next-packet`,
|
|
201
|
+
recoverStalePipeline: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/recover-stale-pipeline`,
|
|
202
|
+
runSelectedProof: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/run-selected-proof`,
|
|
203
|
+
startProofPr: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/start-proof-pr`,
|
|
204
|
+
/**
|
|
205
|
+
* POST — heal missing @types/* on an existing Next.js baseline so Vercel
|
|
206
|
+
* builds stop failing with "please install @types/react and @types/node".
|
|
207
|
+
*/
|
|
208
|
+
baselineTypesHeal: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/baseline-types-heal`,
|
|
209
|
+
skipTasks: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/tasks/skip`,
|
|
210
|
+
runs: {
|
|
211
|
+
start: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/runs/start`,
|
|
212
|
+
detail: (projectId, runId) => `${exports.API_PREFIX}/projects/${projectId}/implement/runs/${runId}`,
|
|
213
|
+
process: (projectId, runId) => `${exports.API_PREFIX}/projects/${projectId}/implement/runs/${runId}/process`,
|
|
214
|
+
pause: (projectId, runId) => `${exports.API_PREFIX}/projects/${projectId}/implement/runs/${runId}/pause`,
|
|
215
|
+
resume: (projectId, runId) => `${exports.API_PREFIX}/projects/${projectId}/implement/runs/${runId}/resume`,
|
|
216
|
+
cancel: (projectId, runId) => `${exports.API_PREFIX}/projects/${projectId}/implement/runs/${runId}/cancel`,
|
|
217
|
+
batches: (projectId, runId) => `${exports.API_PREFIX}/projects/${projectId}/implement/runs/${runId}/batches`,
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
/** Sprint I1: canonical GET paths for implement patch list/detail (same URLs as IMPLEMENT_ROUTES.history / patchDetail). */
|
|
221
|
+
const IMPLEMENT_PATCHES_LIST = (projectId) => `${exports.API_PREFIX}/projects/${projectId}/implement/patches`;
|
|
222
|
+
exports.IMPLEMENT_PATCHES_LIST = IMPLEMENT_PATCHES_LIST;
|
|
223
|
+
const IMPLEMENT_PATCHES_DETAIL = (projectId, patchSetId) => `${exports.API_PREFIX}/projects/${projectId}/implement/patches/${patchSetId}`;
|
|
224
|
+
exports.IMPLEMENT_PATCHES_DETAIL = IMPLEMENT_PATCHES_DETAIL;
|
|
225
|
+
/** Match `packages/frontend/src/app/api/auth/*` (no legacy `/auth/login` spine). */
|
|
226
|
+
exports.AUTH_ROUTES = {
|
|
227
|
+
user: `${exports.API_PREFIX}/auth/user`,
|
|
228
|
+
role: `${exports.API_PREFIX}/auth/role`,
|
|
229
|
+
session: `${exports.API_PREFIX}/auth/session`,
|
|
230
|
+
sessionContext: `${exports.API_PREFIX}/auth/session-context`,
|
|
231
|
+
signOut: `${exports.API_PREFIX}/auth/signout`,
|
|
232
|
+
};
|
|
233
|
+
/** Match live routes under `/api/users/*`. */
|
|
234
|
+
exports.USER_ROUTES = {
|
|
235
|
+
search: `${exports.API_PREFIX}/users/search`,
|
|
236
|
+
whoami: `${exports.API_PREFIX}/whoami`,
|
|
237
|
+
};
|
|
238
|
+
/** Approval workflow routes under /api/approvals/* */
|
|
239
|
+
exports.APPROVAL_ROUTES = {
|
|
240
|
+
list: `${exports.API_PREFIX}/approvals`,
|
|
241
|
+
auto: `${exports.API_PREFIX}/approvals/auto`,
|
|
242
|
+
};
|
|
243
|
+
// Project Management Routes
|
|
244
|
+
exports.PROJECT_ROUTES = {
|
|
245
|
+
list: `${exports.API_PREFIX}/projects`,
|
|
246
|
+
create: `${exports.API_PREFIX}/projects`,
|
|
247
|
+
getById: (id) => `${exports.API_PREFIX}/projects/${id}`,
|
|
248
|
+
update: (id) => `${exports.API_PREFIX}/projects/${id}`,
|
|
249
|
+
delete: (id) => `${exports.API_PREFIX}/projects/${id}`,
|
|
250
|
+
updateStatus: (id) => `${exports.API_PREFIX}/projects/${id}/status`,
|
|
251
|
+
getSpecs: (id) => `${exports.API_PREFIX}/projects/${id}/specs`,
|
|
252
|
+
getPlans: (id) => `${exports.API_PREFIX}/projects/${id}/plans`,
|
|
253
|
+
getTasks: (id) => `${exports.API_PREFIX}/projects/${id}/tasks`,
|
|
254
|
+
getMetrics: (id) => `${exports.API_PREFIX}/projects/${id}/metrics`,
|
|
255
|
+
/** Evidence-backed KPI rollup + stage-run snapshot (MS-08). */
|
|
256
|
+
metricsSummary: (id) => `${exports.API_PREFIX}/projects/${id}/metrics/summary`,
|
|
257
|
+
/** Per-step workflow status (nav, gates, DB signals) */
|
|
258
|
+
workflowProgression: (id) => `${exports.API_PREFIX}/projects/${id}/workflow/progression`,
|
|
259
|
+
/** Same payload as workflowProgression (canonical read-model alias) */
|
|
260
|
+
workflowState: (id) => `${exports.API_PREFIX}/projects/${id}/workflow/state`,
|
|
261
|
+
/** Knowledge step workflow_artifacts rows for Knowledge UI (#504 parity). */
|
|
262
|
+
workflowKnowledgeStepArtifacts: (id) => `${exports.API_PREFIX}/projects/${id}/workflow/knowledge-step-artifacts`,
|
|
263
|
+
workflowCiStepArtifacts: (id) => `${exports.API_PREFIX}/projects/${id}/workflow/ci-step-artifacts`,
|
|
264
|
+
/** Wave 9: control artifacts for the Quality tab. */
|
|
265
|
+
qualityArtifacts: (id) => `${exports.API_PREFIX}/projects/${id}/workflow/quality-artifacts`,
|
|
266
|
+
/** Per-step metrics card data (replaces browser Supabase workflow_artifacts / ai_runs reads). */
|
|
267
|
+
workflowStepStats: (id, stepId) => `${exports.API_PREFIX}/projects/${id}/workflow/step-stats?${new URLSearchParams({ stepId }).toString()}`,
|
|
268
|
+
/** Internal diagnostics: Specify brief persistence + generated spec linkage. */
|
|
269
|
+
specifyMutationHealth: (id) => `${exports.API_PREFIX}/projects/${id}/workflow/specify-mutation-health`,
|
|
270
|
+
/** Scoped active/archived specification read model for Specify operator view (PR8). */
|
|
271
|
+
specificationsReadModel: (id) => `${exports.API_PREFIX}/projects/${id}/specifications/read-model`,
|
|
272
|
+
/** Recent ai_runs + workflow_artifacts rows for one workflow step (AIOutputDisplay). */
|
|
273
|
+
workflowStepAiOutput: (id, step) => `${exports.API_PREFIX}/projects/${id}/workflow/step-ai-output?${new URLSearchParams({ step }).toString()}`,
|
|
274
|
+
/** Plan step: latest plan gate + planFinal artifact + drift (browser must not read Supabase tables directly). */
|
|
275
|
+
planGateStatus: (id) => `${exports.API_PREFIX}/projects/${id}/plan/gate-status`,
|
|
276
|
+
ingestGate: (id) => `${exports.API_PREFIX}/projects/${id}/workflow/ingest/gate`,
|
|
277
|
+
ingestDashboard: (id) => `${exports.API_PREFIX}/projects/${id}/workflow/ingest/dashboard`,
|
|
278
|
+
existingCodebaseContext: (id, area) => area
|
|
279
|
+
? `${exports.API_PREFIX}/projects/${id}/workflow/existing-codebase-context?${new URLSearchParams({ area }).toString()}`
|
|
280
|
+
: `${exports.API_PREFIX}/projects/${id}/workflow/existing-codebase-context`,
|
|
281
|
+
/** Generated rows from public.schemas for the Schema workflow page. */
|
|
282
|
+
generatedSchemas: (id) => `${exports.API_PREFIX}/projects/${id}/schemas`,
|
|
283
|
+
/** Repo migrations + drift findings + generated schemas for Schema operator view. */
|
|
284
|
+
schemaReadModel: (id) => `${exports.API_PREFIX}/projects/${id}/schema/read-model`,
|
|
285
|
+
/** Film production creative cockpit read model (artifacts + rows + lineage summaries). */
|
|
286
|
+
filmCreativeReadModel: (id) => `${exports.API_PREFIX}/projects/${id}/film/creative-read-model`,
|
|
287
|
+
/** FP-14 unified production read-model (creative model + derived steps/blockers). */
|
|
288
|
+
filmProductionReadModel: (id) => `${exports.API_PREFIX}/projects/${id}/film/production-read-model`,
|
|
289
|
+
/** Generated rows from public.api_definitions for the API workflow page. */
|
|
290
|
+
generatedApiDefinitions: (id) => `${exports.API_PREFIX}/projects/${id}/api-definitions`,
|
|
291
|
+
/** API step KG coverage gate status. */
|
|
292
|
+
apiKgGateStatus: (id) => `${exports.API_PREFIX}/projects/${id}/api/gate-status`,
|
|
293
|
+
/** Repair API KG rollup / APIEndpoint / HAS_ENDPOINT from persisted api_definitions (no AI regen). */
|
|
294
|
+
apiRetryKgPersistence: (id) => `${exports.API_PREFIX}/projects/${id}/api/retry-kg-persistence`,
|
|
295
|
+
/** UI step KG coverage gate status. */
|
|
296
|
+
uiKgCoverage: (id) => `${exports.API_PREFIX}/projects/${id}/ui/kg-coverage`,
|
|
297
|
+
/** Repair UI KG rollup / UIComponent / HAS_COMPONENT from persisted component_definitions (no AI regen). */
|
|
298
|
+
uiRetryKgPersistence: (id) => `${exports.API_PREFIX}/projects/${id}/ui/retry-kg-persistence`,
|
|
299
|
+
/** Constitution step KG coverage gate status. */
|
|
300
|
+
constitutionKgCoverage: (id) => `${exports.API_PREFIX}/projects/${id}/constitution/kg-coverage`,
|
|
301
|
+
/** Repair Constitution KG rollup / ConstitutionRule from persisted constitutions (no AI regen). */
|
|
302
|
+
constitutionRetryKgPersistence: (id) => `${exports.API_PREFIX}/projects/${id}/constitution/retry-kg-persistence`,
|
|
303
|
+
/** Guardian step KG coverage gate status. */
|
|
304
|
+
guardianKgCoverage: (id) => `${exports.API_PREFIX}/projects/${id}/guardian/kg-coverage`,
|
|
305
|
+
/** Server-side Guardian score / violation policy (operator gate). */
|
|
306
|
+
guardianGateStatus: (id) => `${exports.API_PREFIX}/projects/${id}/guardian/gate-status`,
|
|
307
|
+
/** Recent Guardian validation scores (guardian_validations, no new table). */
|
|
308
|
+
guardianScoreHistory: (id) => `${exports.API_PREFIX}/projects/${id}/guardian/score-history`,
|
|
309
|
+
/** Per-rule drilldown: constitution rule × latest validation violations. */
|
|
310
|
+
guardianRuleDetail: (projectId, ruleId) => `${exports.API_PREFIX}/projects/${projectId}/guardian/rule-detail/${encodeURIComponent(ruleId)}`,
|
|
311
|
+
/** Repair Guardian KG rollup / GuardianReport from persisted guardian_validations (no AI regen). */
|
|
312
|
+
guardianRetryKgPersistence: (id) => `${exports.API_PREFIX}/projects/${id}/guardian/retry-kg-persistence`,
|
|
313
|
+
/** Tasks step KG coverage gate status. */
|
|
314
|
+
tasksKgCoverage: (id) => `${exports.API_PREFIX}/projects/${id}/tasks/kg-coverage`,
|
|
315
|
+
/** Repair Tasks KG rollup from persisted workflow_artifacts (no AI regen). */
|
|
316
|
+
tasksRetryKgPersistence: (id) => `${exports.API_PREFIX}/projects/${id}/tasks/retry-kg-persistence`,
|
|
317
|
+
/** Tasks truth read-model only (no public.tasks row payload). */
|
|
318
|
+
tasksTruth: (id) => `${exports.API_PREFIX}/projects/${id}/tasks/truth`,
|
|
319
|
+
/** Idempotent tasks truth repair (KG rollup + divergence flags). */
|
|
320
|
+
tasksReconcile: (id) => `${exports.API_PREFIX}/projects/${id}/tasks/reconcile`,
|
|
321
|
+
/** Retry GitHub issue projection for all pending tasks (idempotent). */
|
|
322
|
+
tasksSyncGithubIssues: (id) => `${exports.API_PREFIX}/projects/${id}/tasks/sync-github-issues`,
|
|
323
|
+
tasksRepairStaleImplementing: (id) => `${exports.API_PREFIX}/projects/${id}/tasks/repair-stale-implementing`,
|
|
324
|
+
tasksUnblockImplementHandoff: (id) => `${exports.API_PREFIX}/projects/${id}/tasks/unblock-implement-handoff`,
|
|
325
|
+
tasksImplementUnblockPreview: (id) => `${exports.API_PREFIX}/projects/${id}/tasks/implement-unblock-preview`,
|
|
326
|
+
implementSuggestedFirstBatch: (id) => `${exports.API_PREFIX}/projects/${id}/implement/suggested-first-batch`,
|
|
327
|
+
implementNextSafeTask: (id) => `${exports.API_PREFIX}/projects/${id}/implement/next-safe-task`,
|
|
328
|
+
/** Implement step KG coverage gate status. */
|
|
329
|
+
implementKgCoverage: (id) => `${exports.API_PREFIX}/projects/${id}/implement/kg-coverage`,
|
|
330
|
+
/** Implement preflight — tasks truth, pipeline evidence, Cursor-safe fields. */
|
|
331
|
+
implementGateStatus: (id) => `${exports.API_PREFIX}/projects/${id}/implement/gate-status`,
|
|
332
|
+
/** Reset tasks stuck in `implementing` with no active patch/run back to selectable. */
|
|
333
|
+
implementRepairStaleBatch: (id) => `${exports.API_PREFIX}/projects/${id}/implement/repair-stale-batch`,
|
|
334
|
+
/** Shared Build truth (Tasks + Implement + Knowledge) computed once.
|
|
335
|
+
* Segment is `build-spine` (not `build`) because `.gitignore` excludes `build/` dirs. */
|
|
336
|
+
buildTruth: (id) => `${exports.API_PREFIX}/projects/${id}/build-spine/truth`,
|
|
337
|
+
/** Build Knowledge closure (improvement findings + lessons manifest). */
|
|
338
|
+
buildKnowledgeClosure: (id) => `${exports.API_PREFIX}/projects/${id}/build-spine/knowledge`,
|
|
339
|
+
buildKnowledgeClose: (id) => `${exports.API_PREFIX}/projects/${id}/build-spine/knowledge/close`,
|
|
340
|
+
/** Implement step graph data (patches, tasks, PRs, files, issues). */
|
|
341
|
+
implementGraph: (id) => `${exports.API_PREFIX}/projects/${id}/implement/graph`,
|
|
342
|
+
/** Knowledge step KG rollup + staleness gate status. */
|
|
343
|
+
knowledgeKgCoverage: (id) => `${exports.API_PREFIX}/projects/${id}/knowledge/kg-coverage`,
|
|
344
|
+
/** Repair Knowledge KG rollup from accepted knowledgeFinal artifact (no AI regen). */
|
|
345
|
+
knowledgeRetryKgPersistence: (id) => `${exports.API_PREFIX}/projects/${id}/knowledge/retry-kg-persistence`,
|
|
346
|
+
/** Repair Implement KG rollup from persisted workflow_artifacts (no AI regen). */
|
|
347
|
+
implementRetryKgPersistence: (id) => `${exports.API_PREFIX}/projects/${id}/implement/retry-kg-persistence`,
|
|
348
|
+
/** Controlled workflow step reset with dry-run support. */
|
|
349
|
+
workflowResetStep: (id) => `${exports.API_PREFIX}/projects/${id}/workflow/reset-step`,
|
|
350
|
+
/** Sprint K1-C (#576): tasks appearing in multiple open PRs (duplicate lineage). */
|
|
351
|
+
knowledgeLineageDuplicates: (id) => `${exports.API_PREFIX}/projects/${id}/knowledge/lineage/duplicates`,
|
|
352
|
+
/** K1-D (#577): PR↔task acceptance-criteria coverage vs lineage file paths. */
|
|
353
|
+
knowledgeLineageCoverage: (id) => `${exports.API_PREFIX}/projects/${id}/knowledge/lineage/coverage`,
|
|
354
|
+
/** Bridge-02 (#1394): query + refresh software workflow PR↔task↔proof lineage. */
|
|
355
|
+
softwareWorkflowLineage: (id) => `${exports.API_PREFIX}/projects/${id}/software-workflow-lineage`,
|
|
356
|
+
generateReport: (id) => `${exports.API_PREFIX}/projects/${id}/report`,
|
|
357
|
+
archive: (id) => `${exports.API_PREFIX}/projects/${id}/archive`,
|
|
358
|
+
stories: (id) => `${exports.API_PREFIX}/projects/${id}/stories`,
|
|
359
|
+
compliance: (id) => `${exports.API_PREFIX}/projects/${id}/compliance`,
|
|
360
|
+
review: (id) => `${exports.API_PREFIX}/projects/${id}/review`,
|
|
361
|
+
/** MS-03 Wave 1: requirement × evidence coverage from KG substrate + lineage artifacts. */
|
|
362
|
+
reviewCoverage: (id) => `${exports.API_PREFIX}/projects/${id}/review/coverage`,
|
|
363
|
+
/** MS-03 Wave 1: deterministic ship/block gate (server-side only). */
|
|
364
|
+
reviewDecision: (id) => `${exports.API_PREFIX}/projects/${id}/review/decision`,
|
|
365
|
+
/** MS-03 closeout: explicit human release approval graph evidence. */
|
|
366
|
+
reviewApproval: (id) => `${exports.API_PREFIX}/projects/${id}/review/approval`,
|
|
367
|
+
/** MS-03 closeout: graph-backed review report export. */
|
|
368
|
+
reviewExport: (id) => `${exports.API_PREFIX}/projects/${id}/review/export`,
|
|
369
|
+
settings: (id) => `${exports.API_PREFIX}/projects/${id}/settings`,
|
|
370
|
+
/** Export without format query (handler default). Prefer `export(id, format)` when format known. */
|
|
371
|
+
exportRoot: (id) => `${exports.API_PREFIX}/projects/${id}/export`,
|
|
372
|
+
/** Canonical codebase workspace snapshot (scan + knowledge graph) */
|
|
373
|
+
projectCodebase: (id) => `${exports.API_PREFIX}/projects/${id}/codebase`,
|
|
374
|
+
/** GET project team members list */
|
|
375
|
+
team: (id) => `${exports.API_PREFIX}/projects/${id}/team`,
|
|
376
|
+
/** Invite a registered user by email (inserts project_team row) */
|
|
377
|
+
teamInvite: (id) => `${exports.API_PREFIX}/projects/${id}/team/invite`,
|
|
378
|
+
/** Project data export (blob); `format` is a query param (e.g. json, zip, stories). */
|
|
379
|
+
export: (id, format) => `${exports.API_PREFIX}/projects/${id}/export?format=${encodeURIComponent(format)}`,
|
|
380
|
+
/** Danger Zone: delete all workflow_artifacts for a project (owner only). */
|
|
381
|
+
resetWorkflow: (id) => `${exports.API_PREFIX}/projects/${id}/reset-workflow`,
|
|
382
|
+
/** Clear stuck `ai_runs` for a workflow step (owner only; marks running rows failed). */
|
|
383
|
+
stepRunReset: (projectId, stepId) => `${exports.API_PREFIX}/projects/${projectId}/steps/${encodeURIComponent(stepId)}/reset`,
|
|
384
|
+
/** Create orchestrations row for live WorkflowRunConsole (before POST /api/ai/.../generate). */
|
|
385
|
+
projectOrchestrations: (id) => `${exports.API_PREFIX}/projects/${id}/orchestrations`,
|
|
386
|
+
/** Canonical project→repo linkage + repo_readiness. */
|
|
387
|
+
repo: (id) => `${exports.API_PREFIX}/projects/${id}/repo`,
|
|
388
|
+
/** Project activity feed (used by useProjectActivity hook). */
|
|
389
|
+
activity: (id) => `${exports.API_PREFIX}/projects/${id}/activity`,
|
|
390
|
+
};
|
|
391
|
+
/** GET orchestration_events for an orchestration run (incremental poll via `since`). */
|
|
392
|
+
const ORCHESTRATION_EVENTS = (orchestrationId) => `${exports.API_PREFIX}/orchestrations/${orchestrationId}/events`;
|
|
393
|
+
exports.ORCHESTRATION_EVENTS = ORCHESTRATION_EVENTS;
|
|
394
|
+
/** Canonical per-project LLM policy (`project_settings.settings.modelPolicy`). */
|
|
395
|
+
const PROJECT_MODEL_SETTINGS = (projectId) => `${exports.API_PREFIX}/projects/${projectId}/model-settings`;
|
|
396
|
+
exports.PROJECT_MODEL_SETTINGS = PROJECT_MODEL_SETTINGS;
|
|
397
|
+
/** Per-project model quality matrix (Guardian + run telemetry aggregates). */
|
|
398
|
+
const PROJECT_MODEL_QUALITY = (projectId) => `${exports.API_PREFIX}/projects/${projectId}/model-quality`;
|
|
399
|
+
exports.PROJECT_MODEL_QUALITY = PROJECT_MODEL_QUALITY;
|
|
400
|
+
/** Reserved path for model usage telemetry (M3). */
|
|
401
|
+
const PROJECT_MODEL_USAGE = (projectId) => `${exports.API_PREFIX}/projects/${projectId}/model-usage`;
|
|
402
|
+
exports.PROJECT_MODEL_USAGE = PROJECT_MODEL_USAGE;
|
|
403
|
+
// Specification Routes
|
|
404
|
+
exports.SPEC_ROUTES = {
|
|
405
|
+
list: `${exports.API_PREFIX}/specs`,
|
|
406
|
+
create: `${exports.API_PREFIX}/specs`,
|
|
407
|
+
getById: (id) => `${exports.API_PREFIX}/specs/${id}`,
|
|
408
|
+
update: (id) => `${exports.API_PREFIX}/specs/${id}`,
|
|
409
|
+
delete: (id) => `${exports.API_PREFIX}/specs/${id}`,
|
|
410
|
+
approve: (id) => `${exports.API_PREFIX}/specs/${id}/approve`,
|
|
411
|
+
reject: (id) => `${exports.API_PREFIX}/specs/${id}/reject`,
|
|
412
|
+
getPlans: (id) => `${exports.API_PREFIX}/specs/${id}/plans`,
|
|
413
|
+
};
|
|
414
|
+
// Plan Management Routes
|
|
415
|
+
exports.PLAN_ROUTES = {
|
|
416
|
+
list: `${exports.API_PREFIX}/plans`,
|
|
417
|
+
create: `${exports.API_PREFIX}/plans`,
|
|
418
|
+
getById: (id) => `${exports.API_PREFIX}/plans/${id}`,
|
|
419
|
+
update: (id) => `${exports.API_PREFIX}/plans/${id}`,
|
|
420
|
+
delete: (id) => `${exports.API_PREFIX}/plans/${id}`,
|
|
421
|
+
approve: (id) => `${exports.API_PREFIX}/plans/${id}/approve`,
|
|
422
|
+
start: (id) => `${exports.API_PREFIX}/plans/${id}/start`,
|
|
423
|
+
complete: (id) => `${exports.API_PREFIX}/plans/${id}/complete`,
|
|
424
|
+
getTasks: (id) => `${exports.API_PREFIX}/plans/${id}/tasks`,
|
|
425
|
+
getDependencies: (id) => `${exports.API_PREFIX}/plans/${id}/dependencies`,
|
|
426
|
+
};
|
|
427
|
+
// Task Management Routes
|
|
428
|
+
exports.TASK_ROUTES = {
|
|
429
|
+
list: `${exports.API_PREFIX}/tasks`,
|
|
430
|
+
create: `${exports.API_PREFIX}/tasks`,
|
|
431
|
+
getById: (id) => `${exports.API_PREFIX}/tasks/${id}`,
|
|
432
|
+
update: (id) => `${exports.API_PREFIX}/tasks/${id}`,
|
|
433
|
+
delete: (id) => `${exports.API_PREFIX}/tasks/${id}`,
|
|
434
|
+
updateStatus: (id) => `${exports.API_PREFIX}/tasks/${id}/status`,
|
|
435
|
+
assign: (id) => `${exports.API_PREFIX}/tasks/${id}/assign`,
|
|
436
|
+
complete: (id) => `${exports.API_PREFIX}/tasks/${id}/complete`,
|
|
437
|
+
getDependencies: (id) => `${exports.API_PREFIX}/tasks/${id}/dependencies`,
|
|
438
|
+
getTimeTracking: (id) => `${exports.API_PREFIX}/tasks/${id}/time`,
|
|
439
|
+
};
|
|
440
|
+
// ML Model Routes
|
|
441
|
+
exports.ML_ROUTES = {
|
|
442
|
+
models: {
|
|
443
|
+
list: `${exports.API_PREFIX}/ml/models`,
|
|
444
|
+
create: `${exports.API_PREFIX}/ml/models`,
|
|
445
|
+
getById: (id) => `${exports.API_PREFIX}/ml/models/${id}`,
|
|
446
|
+
update: (id) => `${exports.API_PREFIX}/ml/models/${id}`,
|
|
447
|
+
delete: (id) => `${exports.API_PREFIX}/ml/models/${id}`,
|
|
448
|
+
train: (id) => `${exports.API_PREFIX}/ml/models/${id}/train`,
|
|
449
|
+
deploy: (id) => `${exports.API_PREFIX}/ml/models/${id}/deploy`,
|
|
450
|
+
predict: (id) => `${exports.API_PREFIX}/ml/models/${id}/predict`,
|
|
451
|
+
getMetrics: (id) => `${exports.API_PREFIX}/ml/models/${id}/metrics`,
|
|
452
|
+
},
|
|
453
|
+
datasets: {
|
|
454
|
+
list: `${exports.API_PREFIX}/ml/datasets`,
|
|
455
|
+
create: `${exports.API_PREFIX}/ml/datasets`,
|
|
456
|
+
getById: (id) => `${exports.API_PREFIX}/ml/datasets/${id}`,
|
|
457
|
+
update: (id) => `${exports.API_PREFIX}/ml/datasets/${id}`,
|
|
458
|
+
delete: (id) => `${exports.API_PREFIX}/ml/datasets/${id}`,
|
|
459
|
+
upload: (id) => `${exports.API_PREFIX}/ml/datasets/${id}/upload`,
|
|
460
|
+
validate: (id) => `${exports.API_PREFIX}/ml/datasets/${id}/validate`,
|
|
461
|
+
},
|
|
462
|
+
experiments: {
|
|
463
|
+
list: `${exports.API_PREFIX}/ml/experiments`,
|
|
464
|
+
create: `${exports.API_PREFIX}/ml/experiments`,
|
|
465
|
+
getById: (id) => `${exports.API_PREFIX}/ml/experiments/${id}`,
|
|
466
|
+
update: (id) => `${exports.API_PREFIX}/ml/experiments/${id}`,
|
|
467
|
+
delete: (id) => `${exports.API_PREFIX}/ml/experiments/${id}`,
|
|
468
|
+
start: (id) => `${exports.API_PREFIX}/ml/experiments/${id}/start`,
|
|
469
|
+
stop: (id) => `${exports.API_PREFIX}/ml/experiments/${id}/stop`,
|
|
470
|
+
getResults: (id) => `${exports.API_PREFIX}/ml/experiments/${id}/results`,
|
|
471
|
+
},
|
|
472
|
+
};
|
|
473
|
+
// AI Agent Routes
|
|
474
|
+
exports.AI_ROUTES = {
|
|
475
|
+
constitution: {
|
|
476
|
+
validate: `${exports.API_PREFIX}/ai/constitution/validate`,
|
|
477
|
+
generate: `${exports.API_PREFIX}/ai/constitution/generate`,
|
|
478
|
+
},
|
|
479
|
+
specs: {
|
|
480
|
+
generate: `${exports.API_PREFIX}/ai/spec/generate`,
|
|
481
|
+
enhance: (id) => `${exports.API_PREFIX}/ai/specs/${id}/enhance`,
|
|
482
|
+
},
|
|
483
|
+
brief: {
|
|
484
|
+
improve: `${exports.API_PREFIX}/ai/brief-improve/generate`,
|
|
485
|
+
},
|
|
486
|
+
architecture: {
|
|
487
|
+
generate: `${exports.API_PREFIX}/ai/architecture/generate`,
|
|
488
|
+
},
|
|
489
|
+
schema: {
|
|
490
|
+
generate: `${exports.API_PREFIX}/ai/schema/generate`,
|
|
491
|
+
},
|
|
492
|
+
api: {
|
|
493
|
+
generate: `${exports.API_PREFIX}/ai/api/generate`,
|
|
494
|
+
},
|
|
495
|
+
components: {
|
|
496
|
+
generate: `${exports.API_PREFIX}/ai/components/generate`,
|
|
497
|
+
enhance: (id) => `${exports.API_PREFIX}/ai/components/${id}/enhance`,
|
|
498
|
+
suggestImprovements: (id) => `${exports.API_PREFIX}/ai/components/${id}/suggest`,
|
|
499
|
+
},
|
|
500
|
+
ui: {
|
|
501
|
+
generate: `${exports.API_PREFIX}/ai/ui/generate`,
|
|
502
|
+
},
|
|
503
|
+
code: {
|
|
504
|
+
generate: `${exports.API_PREFIX}/ai/code/generate`,
|
|
505
|
+
},
|
|
506
|
+
tasks: {
|
|
507
|
+
generate: `${exports.API_PREFIX}/ai/tasks/generate`,
|
|
508
|
+
suggestDependencies: (id) => `${exports.API_PREFIX}/ai/tasks/${id}/dependencies`,
|
|
509
|
+
estimateEffort: (id) => `${exports.API_PREFIX}/ai/tasks/${id}/estimate`,
|
|
510
|
+
},
|
|
511
|
+
debug: {
|
|
512
|
+
lastRequest: `${exports.API_PREFIX}/ai/debug/last-request`,
|
|
513
|
+
trace: `${exports.API_PREFIX}/ai/debug/trace`,
|
|
514
|
+
},
|
|
515
|
+
memory: `${exports.API_PREFIX}/ai/memory`,
|
|
516
|
+
metrics: `${exports.API_PREFIX}/ai/metrics`,
|
|
517
|
+
modelAnalytics: `${exports.API_PREFIX}/ai/model-analytics`,
|
|
518
|
+
rollback: `${exports.API_PREFIX}/ai/rollback`,
|
|
519
|
+
runs: {
|
|
520
|
+
list: `${exports.API_PREFIX}/ai/runs`,
|
|
521
|
+
start: `${exports.API_PREFIX}/ai/runs/start`,
|
|
522
|
+
getById: (id) => `${exports.API_PREFIX}/ai/runs/${id}`,
|
|
523
|
+
},
|
|
524
|
+
sessions: `${exports.API_PREFIX}/ai/sessions`,
|
|
525
|
+
approvals: {
|
|
526
|
+
list: `${exports.API_PREFIX}/ai/approvals`,
|
|
527
|
+
getById: (id) => `${exports.API_PREFIX}/ai/approvals/${id}`,
|
|
528
|
+
},
|
|
529
|
+
review: {
|
|
530
|
+
generate: `${exports.API_PREFIX}/ai/review/generate`,
|
|
531
|
+
},
|
|
532
|
+
docs: {
|
|
533
|
+
generate: `${exports.API_PREFIX}/ai/docs/generate`,
|
|
534
|
+
},
|
|
535
|
+
compliance: {
|
|
536
|
+
generate: `${exports.API_PREFIX}/ai/compliance/generate`,
|
|
537
|
+
},
|
|
538
|
+
ci: {
|
|
539
|
+
generate: `${exports.API_PREFIX}/ai/ci/generate`,
|
|
540
|
+
manuscriptChecks: `${exports.API_PREFIX}/ai/ci/manuscript-checks`,
|
|
541
|
+
},
|
|
542
|
+
deployments: {
|
|
543
|
+
generate: `${exports.API_PREFIX}/ai/deployments/generate`,
|
|
544
|
+
analyze: `${exports.API_PREFIX}/ai/deployments/analyze`,
|
|
545
|
+
},
|
|
546
|
+
analytics: {
|
|
547
|
+
generate: `${exports.API_PREFIX}/ai/analytics/generate`,
|
|
548
|
+
},
|
|
549
|
+
argumentMap: {
|
|
550
|
+
generate: `${exports.API_PREFIX}/ai/argument-map/generate`,
|
|
551
|
+
},
|
|
552
|
+
counterclaimFramework: {
|
|
553
|
+
generate: `${exports.API_PREFIX}/ai/counterclaim-framework/generate`,
|
|
554
|
+
},
|
|
555
|
+
implementation: {
|
|
556
|
+
generate: `${exports.API_PREFIX}/ai/implementation/generate`,
|
|
557
|
+
orchestrate: `${exports.API_PREFIX}/ai/implementation/orchestrate`,
|
|
558
|
+
orchestrateProcess: (orchestrationId) => `${exports.API_PREFIX}/ai/implementation/orchestrate/${orchestrationId}/process`,
|
|
559
|
+
orchestrateStatus: (orchestrationId) => `${exports.API_PREFIX}/ai/implementation/orchestrate/${orchestrationId}/status`,
|
|
560
|
+
orchestrateRetry: (orchestrationId) => `${exports.API_PREFIX}/ai/implementation/orchestrate/${orchestrationId}/retry`,
|
|
561
|
+
orchestrateCancel: (orchestrationId) => `${exports.API_PREFIX}/ai/implementation/orchestrate/${orchestrationId}/cancel`,
|
|
562
|
+
},
|
|
563
|
+
knowledge: {
|
|
564
|
+
generate: `${exports.API_PREFIX}/ai/knowledge/generate`,
|
|
565
|
+
},
|
|
566
|
+
editorial: {
|
|
567
|
+
reviseChapter: `${exports.API_PREFIX}/ai/editorial/revise-chapter`,
|
|
568
|
+
generateRevisionBrief: `${exports.API_PREFIX}/ai/editorial/generate-revision-brief`,
|
|
569
|
+
revisionQa: `${exports.API_PREFIX}/ai/editorial/revision-qa`,
|
|
570
|
+
},
|
|
571
|
+
filmStillReview: {
|
|
572
|
+
generate: `${exports.API_PREFIX}/ai/film-still-review/generate`,
|
|
573
|
+
},
|
|
574
|
+
filmClipReview: {
|
|
575
|
+
generate: `${exports.API_PREFIX}/ai/film-clip-review/generate`,
|
|
576
|
+
},
|
|
577
|
+
film: {
|
|
578
|
+
intent: {
|
|
579
|
+
generate: `${exports.API_PREFIX}/ai/film/intent/generate`,
|
|
580
|
+
},
|
|
581
|
+
development: {
|
|
582
|
+
generate: `${exports.API_PREFIX}/ai/film/development/generate`,
|
|
583
|
+
},
|
|
584
|
+
script: {
|
|
585
|
+
generate: `${exports.API_PREFIX}/ai/film/script/generate`,
|
|
586
|
+
},
|
|
587
|
+
preproduction: {
|
|
588
|
+
generate: `${exports.API_PREFIX}/ai/film/preproduction/generate`,
|
|
589
|
+
},
|
|
590
|
+
generation: {
|
|
591
|
+
generate: `${exports.API_PREFIX}/ai/film/generation/generate`,
|
|
592
|
+
},
|
|
593
|
+
postproduction: {
|
|
594
|
+
generate: `${exports.API_PREFIX}/ai/film/postproduction/generate`,
|
|
595
|
+
},
|
|
596
|
+
review: {
|
|
597
|
+
generate: `${exports.API_PREFIX}/ai/film/review/generate`,
|
|
598
|
+
},
|
|
599
|
+
release: {
|
|
600
|
+
generate: `${exports.API_PREFIX}/ai/film/release/generate`,
|
|
601
|
+
},
|
|
602
|
+
},
|
|
603
|
+
};
|
|
604
|
+
// Knowledge Graph Routes
|
|
605
|
+
exports.KNOWLEDGE_ROUTES = {
|
|
606
|
+
nodes: `${exports.API_PREFIX}/knowledge/nodes`,
|
|
607
|
+
edges: `${exports.API_PREFIX}/knowledge/edges`,
|
|
608
|
+
query: `${exports.API_PREFIX}/knowledge/query`,
|
|
609
|
+
/** Text/facet search over `knowledge_nodes` (non-AI route). */
|
|
610
|
+
search: `${exports.API_PREFIX}/knowledge/search`,
|
|
611
|
+
/** Sprint K1-A (#574): upsert GitHub PRs into public.git_pull_requests for a project. */
|
|
612
|
+
syncPrs: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/knowledge/sync-prs`,
|
|
613
|
+
/** Sprint K1-B (#575): materialise patch/pr/file nodes + lineage edges. */
|
|
614
|
+
lineageBuild: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/knowledge/lineage/build`,
|
|
615
|
+
/** Sprint K1-C (#576): duplicate task detection across open PRs. */
|
|
616
|
+
lineageDuplicates: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/knowledge/lineage/duplicates`,
|
|
617
|
+
/** Sprint K1-E (#578): aggregate lineage + artifact signals for PR review readiness. */
|
|
618
|
+
knowledgeReviewReadiness: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/knowledge/review-readiness`,
|
|
619
|
+
/**
|
|
620
|
+
* Browser-safe KG evidence summary: node/edge counts, types, intent node,
|
|
621
|
+
* and latest spec nodes. Safe for client-side polling without raw DB exposure.
|
|
622
|
+
*/
|
|
623
|
+
knowledgeGraphSummary: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/knowledge-graph/summary`,
|
|
624
|
+
};
|
|
625
|
+
// Semantic Vector Routes
|
|
626
|
+
exports.VECTOR_ROUTES = {
|
|
627
|
+
search: `${exports.API_PREFIX}/vectors/search`,
|
|
628
|
+
upsert: `${exports.API_PREFIX}/vectors/upsert`,
|
|
629
|
+
similarity: `${exports.API_PREFIX}/vectors/similarity`,
|
|
630
|
+
};
|
|
631
|
+
// MCP Integration Routes
|
|
632
|
+
exports.MCP_ROUTES = {
|
|
633
|
+
sqlProxy: `${exports.API_PREFIX}/mcp/sql`,
|
|
634
|
+
supabasePing: `${exports.API_PREFIX}/mcp/supabase/ping`,
|
|
635
|
+
vercelPing: `${exports.API_PREFIX}/mcp/vercel/ping`,
|
|
636
|
+
githubPing: `${exports.API_PREFIX}/mcp/github/ping`,
|
|
637
|
+
playwrightPing: `${exports.API_PREFIX}/mcp/playwright/ping`,
|
|
638
|
+
ping: (serverId) => `${exports.API_PREFIX}/mcp/${encodeURIComponent(serverId)}/ping`,
|
|
639
|
+
};
|
|
640
|
+
// System & Health Routes
|
|
641
|
+
/** Match live `/api/health` + `/api/version` only (no `/health/check` spine). */
|
|
642
|
+
exports.SYSTEM_ROUTES = {
|
|
643
|
+
health: `${exports.API_PREFIX}/health`,
|
|
644
|
+
version: `${exports.API_PREFIX}/version`,
|
|
645
|
+
};
|
|
646
|
+
// Constitution Routes
|
|
647
|
+
exports.CONSTITUTION_ROUTES = {
|
|
648
|
+
get: `${exports.API_PREFIX}/constitution`,
|
|
649
|
+
create: `${exports.API_PREFIX}/constitution`,
|
|
650
|
+
update: `${exports.API_PREFIX}/constitution`,
|
|
651
|
+
delete: `${exports.API_PREFIX}/constitution`,
|
|
652
|
+
rules: `${exports.API_PREFIX}/constitution/rules`,
|
|
653
|
+
status: `${exports.API_PREFIX}/constitution/status`,
|
|
654
|
+
sync: `${exports.API_PREFIX}/constitution/sync`,
|
|
655
|
+
};
|
|
656
|
+
// Constitutional Compliance Routes
|
|
657
|
+
exports.COMPLIANCE_ROUTES = {
|
|
658
|
+
validate: `${exports.API_PREFIX}/compliance/validate`,
|
|
659
|
+
report: `${exports.API_PREFIX}/compliance/report`,
|
|
660
|
+
violations: `${exports.API_PREFIX}/compliance/violations`,
|
|
661
|
+
getViolation: (id) => `${exports.API_PREFIX}/compliance/violations/${id}`,
|
|
662
|
+
resolveViolation: (id) => `${exports.API_PREFIX}/compliance/violations/${id}/resolve`,
|
|
663
|
+
getProjectCompliance: (projectId) => `${exports.API_PREFIX}/compliance/projects/${projectId}`,
|
|
664
|
+
constitutional: `${exports.API_PREFIX}/compliance/constitutional`,
|
|
665
|
+
workspace: `${exports.API_PREFIX}/compliance/workspace`,
|
|
666
|
+
};
|
|
667
|
+
// File & Upload Routes
|
|
668
|
+
/** Align with `/api/storage/artifacts` (legacy `/files/*` spine removed). */
|
|
669
|
+
exports.FILE_ROUTES = {
|
|
670
|
+
artifacts: `${exports.API_PREFIX}/storage/artifacts`,
|
|
671
|
+
/** Proxies JSON upload to `/api/backend/artifacts/upload`. */
|
|
672
|
+
artifactUploadProxy: `${exports.API_PREFIX}/artifacts/upload`,
|
|
673
|
+
};
|
|
674
|
+
/** AI response cache (Redis) — `/api/cache/*`. */
|
|
675
|
+
exports.CACHE_ROUTES = {
|
|
676
|
+
aiResponse: `${exports.API_PREFIX}/cache/ai-response`,
|
|
677
|
+
};
|
|
678
|
+
// Notification Routes
|
|
679
|
+
exports.NOTIFICATION_ROUTES = {
|
|
680
|
+
list: `${exports.API_PREFIX}/notifications`,
|
|
681
|
+
};
|
|
682
|
+
/** Cortex × NeuraLoom bidirectional bridge (HMAC webhooks + outbox). */
|
|
683
|
+
exports.CORTEX_BRIDGE_ROUTES = {
|
|
684
|
+
portfolioLink: `${exports.API_PREFIX}/cortex/portfolio/link`,
|
|
685
|
+
intelligenceRequest: `${exports.API_PREFIX}/cortex/intelligence/request`,
|
|
686
|
+
creativeRequest: `${exports.API_PREFIX}/cortex/creative/request`,
|
|
687
|
+
taskGithubIssueRequest: `${exports.API_PREFIX}/cortex/tasks/github-issue-request`,
|
|
688
|
+
dispatchExternalExports: `${exports.API_PREFIX}/cron/dispatch-external-exports`,
|
|
689
|
+
readiness: `${exports.API_PREFIX}/internal/cortex-bridge/readiness`,
|
|
690
|
+
};
|
|
691
|
+
/** Vercel cron ingress (Bearer CRON_SECRET) — route-contract parity SSOT. */
|
|
692
|
+
exports.CRON_ROUTES = {
|
|
693
|
+
pollRunway: `${exports.API_PREFIX}/cron/poll-runway`,
|
|
694
|
+
pollCursor: `${exports.API_PREFIX}/cron/poll-cursor`,
|
|
695
|
+
flushMarketingConversions: `${exports.API_PREFIX}/cron/flush-marketing-conversions`,
|
|
696
|
+
importMarketingMetrics: `${exports.API_PREFIX}/cron/import-marketing-metrics`,
|
|
697
|
+
reapStuckStageTasks: `${exports.API_PREFIX}/cron/reap-stuck-stage-tasks`,
|
|
698
|
+
};
|
|
699
|
+
// Integration Routes (GitHub, Vercel, Supabase, Doppler)
|
|
700
|
+
exports.INTEGRATION_ROUTES = {
|
|
701
|
+
// List all integrations for current user
|
|
702
|
+
list: `${exports.API_PREFIX}/integrations`,
|
|
703
|
+
status: `${exports.API_PREFIX}/integrations/status`,
|
|
704
|
+
health: `${exports.API_PREFIX}/integrations/health`,
|
|
705
|
+
// GitHub Integration
|
|
706
|
+
github: {
|
|
707
|
+
connect: `${exports.API_PREFIX}/integrations/github/connect`,
|
|
708
|
+
callback: `${exports.API_PREFIX}/integrations/github/callback`,
|
|
709
|
+
status: `${exports.API_PREFIX}/integrations/github/status`,
|
|
710
|
+
disconnect: `${exports.API_PREFIX}/integrations/github/disconnect`,
|
|
711
|
+
repos: `${exports.API_PREFIX}/integrations/github/repos`,
|
|
712
|
+
webhook: `${exports.API_PREFIX}/integrations/github/webhook`,
|
|
713
|
+
codexCredentials: `${exports.API_PREFIX}/integrations/github/codex-credentials`,
|
|
714
|
+
linkRepo: (projectId) => `${exports.API_PREFIX}/integrations/github/projects/${projectId}/link`,
|
|
715
|
+
unlinkRepo: (projectId) => `${exports.API_PREFIX}/integrations/github/projects/${projectId}/unlink`,
|
|
716
|
+
projectStatus: (projectId) => `${exports.API_PREFIX}/integrations/github/projects/${projectId}/status`,
|
|
717
|
+
linked: (projectId) => `${exports.API_PREFIX}/integrations/github/projects/${projectId}/linked`,
|
|
718
|
+
branches: (projectId) => `${exports.API_PREFIX}/integrations/github/projects/${projectId}/branches`,
|
|
719
|
+
pulls: (projectId) => `${exports.API_PREFIX}/integrations/github/projects/${projectId}/pulls`,
|
|
720
|
+
issues: (projectId) => `${exports.API_PREFIX}/integrations/github/projects/${projectId}/issues`,
|
|
721
|
+
workflowRuns: (projectId) => `${exports.API_PREFIX}/integrations/github/projects/${projectId}/workflow-runs`,
|
|
722
|
+
createRepo: `${exports.API_PREFIX}/integrations/github/repos/create`,
|
|
723
|
+
createPr: `${exports.API_PREFIX}/github/pr/create`,
|
|
724
|
+
},
|
|
725
|
+
// Vercel Integration
|
|
726
|
+
vercel: {
|
|
727
|
+
connect: `${exports.API_PREFIX}/integrations/vercel/connect`,
|
|
728
|
+
callback: `${exports.API_PREFIX}/integrations/vercel/callback`,
|
|
729
|
+
disconnect: `${exports.API_PREFIX}/integrations/vercel/disconnect`,
|
|
730
|
+
/** POST body-driven deploy (no path project id). */
|
|
731
|
+
deployGlobal: `${exports.API_PREFIX}/integrations/vercel/deploy`,
|
|
732
|
+
deploy: (projectId) => `${exports.API_PREFIX}/integrations/vercel/projects/${projectId}/deploy`,
|
|
733
|
+
deployments: (projectId) => `${exports.API_PREFIX}/integrations/vercel/projects/${projectId}/deployments`,
|
|
734
|
+
},
|
|
735
|
+
// Supabase Integration (config form, not OAuth)
|
|
736
|
+
supabase: {
|
|
737
|
+
configure: `${exports.API_PREFIX}/integrations/supabase/configure`,
|
|
738
|
+
test: `${exports.API_PREFIX}/integrations/supabase/test`,
|
|
739
|
+
status: `${exports.API_PREFIX}/integrations/supabase/status`,
|
|
740
|
+
disconnect: `${exports.API_PREFIX}/integrations/supabase/disconnect`,
|
|
741
|
+
link: (projectId) => `${exports.API_PREFIX}/integrations/supabase/projects/${projectId}/link`,
|
|
742
|
+
},
|
|
743
|
+
// Doppler Integration (API token form, not OAuth)
|
|
744
|
+
doppler: {
|
|
745
|
+
configure: `${exports.API_PREFIX}/integrations/doppler/configure`,
|
|
746
|
+
test: `${exports.API_PREFIX}/integrations/doppler/test`,
|
|
747
|
+
status: `${exports.API_PREFIX}/integrations/doppler/status`,
|
|
748
|
+
disconnect: `${exports.API_PREFIX}/integrations/doppler/disconnect`,
|
|
749
|
+
sync: (projectId) => `${exports.API_PREFIX}/integrations/doppler/projects/${projectId}/sync`,
|
|
750
|
+
secrets: (projectId) => `${exports.API_PREFIX}/integrations/doppler/projects/${projectId}/secrets`,
|
|
751
|
+
},
|
|
752
|
+
// Generic integration management
|
|
753
|
+
getStatus: (provider) => `${exports.API_PREFIX}/integrations/${provider}/status`,
|
|
754
|
+
disconnect: (provider) => `${exports.API_PREFIX}/integrations/${provider}/disconnect`,
|
|
755
|
+
};
|
|
756
|
+
// Settings Routes
|
|
757
|
+
exports.SETTINGS_ROUTES = {
|
|
758
|
+
user: `${exports.API_PREFIX}/settings/user`,
|
|
759
|
+
profile: `${exports.API_PREFIX}/settings/profile`,
|
|
760
|
+
};
|
|
761
|
+
// Route Helpers
|
|
762
|
+
exports.ROUTE_HELPERS = {
|
|
763
|
+
// Extract ID from parameterized route
|
|
764
|
+
extractId: (route) => {
|
|
765
|
+
const match = route.match(/\/([a-f0-9-]{36})(?:\/|$)/);
|
|
766
|
+
return match?.[1] ?? null;
|
|
767
|
+
},
|
|
768
|
+
// Build query string from parameters
|
|
769
|
+
buildQuery: (params) => {
|
|
770
|
+
const urlSearchParams = new URLSearchParams();
|
|
771
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
772
|
+
if (value !== undefined && value !== null) {
|
|
773
|
+
urlSearchParams.append(key, String(value));
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
const query = urlSearchParams.toString();
|
|
777
|
+
return query ? `?${query}` : "";
|
|
778
|
+
},
|
|
779
|
+
// Combine route with query parameters
|
|
780
|
+
withQuery: (route, params) => {
|
|
781
|
+
const query = exports.ROUTE_HELPERS.buildQuery(params);
|
|
782
|
+
return `${route}${query}`;
|
|
783
|
+
},
|
|
784
|
+
// Validate UUID parameter
|
|
785
|
+
isValidUUID: (id) => {
|
|
786
|
+
const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
787
|
+
return uuidRegex.test(id);
|
|
788
|
+
},
|
|
789
|
+
};
|
|
790
|
+
// HTTP Methods
|
|
791
|
+
exports.HTTP_METHODS = {
|
|
792
|
+
GET: "GET",
|
|
793
|
+
POST: "POST",
|
|
794
|
+
PUT: "PUT",
|
|
795
|
+
PATCH: "PATCH",
|
|
796
|
+
DELETE: "DELETE",
|
|
797
|
+
};
|
|
798
|
+
// Status Codes
|
|
799
|
+
exports.HTTP_STATUS = {
|
|
800
|
+
OK: 200,
|
|
801
|
+
CREATED: 201,
|
|
802
|
+
NO_CONTENT: 204,
|
|
803
|
+
BAD_REQUEST: 400,
|
|
804
|
+
UNAUTHORIZED: 401,
|
|
805
|
+
FORBIDDEN: 403,
|
|
806
|
+
NOT_FOUND: 404,
|
|
807
|
+
CONFLICT: 409,
|
|
808
|
+
UNPROCESSABLE_ENTITY: 422,
|
|
809
|
+
INTERNAL_SERVER_ERROR: 500,
|
|
810
|
+
SERVICE_UNAVAILABLE: 503,
|
|
811
|
+
};
|
|
812
|
+
// Content Types
|
|
813
|
+
exports.CONTENT_TYPES = {
|
|
814
|
+
JSON: "application/json",
|
|
815
|
+
FORM_DATA: "multipart/form-data",
|
|
816
|
+
URL_ENCODED: "application/x-www-form-urlencoded",
|
|
817
|
+
TEXT: "text/plain",
|
|
818
|
+
};
|
|
819
|
+
// Frontend Page Routes - SSOT for all frontend navigation
|
|
820
|
+
exports.PAGE_ROUTES = {
|
|
821
|
+
home: '/',
|
|
822
|
+
login: '/login',
|
|
823
|
+
/** Supabase OAuth / PKCE email callback (recovery, magic link). */
|
|
824
|
+
authCallback: '/auth/callback',
|
|
825
|
+
resetPassword: '/auth/reset-password',
|
|
826
|
+
workspace: '/workspace',
|
|
827
|
+
/** Global mission control (orchestration, agents). */
|
|
828
|
+
missionControl: '/mission-control',
|
|
829
|
+
analytics: '/analytics',
|
|
830
|
+
projects: '/projects',
|
|
831
|
+
projectNew: '/projects/new',
|
|
832
|
+
projectDetail: (id) => `/projects/${id}`,
|
|
833
|
+
projectTasks: (id) => `/projects/${id}/tasks`,
|
|
834
|
+
projectSettings: (id) => `/projects/${id}/settings`,
|
|
835
|
+
projectConstitution: (id) => `/projects/${id}/constitution`,
|
|
836
|
+
projectGuardian: (id) => `/projects/${id}/guardian`,
|
|
837
|
+
projectSpecify: (id) => `/projects/${id}/specify`,
|
|
838
|
+
/** Film production channel — canonical workflow step routes (registry routePath). */
|
|
839
|
+
projectIntent: (id) => `/projects/${id}/intent`,
|
|
840
|
+
projectDevelopment: (id) => `/projects/${id}/development`,
|
|
841
|
+
projectScript: (id) => `/projects/${id}/script`,
|
|
842
|
+
projectPreproduction: (id) => `/projects/${id}/preproduction`,
|
|
843
|
+
projectGeneration: (id) => `/projects/${id}/generation`,
|
|
844
|
+
projectPostproduction: (id) => `/projects/${id}/postproduction`,
|
|
845
|
+
projectRelease: (id) => `/projects/${id}/release`,
|
|
846
|
+
projectPlan: (id) => `/projects/${id}/plan`,
|
|
847
|
+
projectSchema: (id) => `/projects/${id}/schema`,
|
|
848
|
+
projectApi: (id) => `/projects/${id}/api`,
|
|
849
|
+
projectUi: (id) => `/projects/${id}/ui`,
|
|
850
|
+
projectImplement: (id) => `/projects/${id}/implement`,
|
|
851
|
+
projectReview: (id) => `/projects/${id}/review`,
|
|
852
|
+
/** Operator release decision form — honest tier selection backed by coverage + product readiness. */
|
|
853
|
+
projectWorkflowReview: (id) => `/projects/${id}/workflow/review`,
|
|
854
|
+
projectKnowledge: (id) => `/projects/${id}/knowledge`,
|
|
855
|
+
projectCompliance: (id) => `/projects/${id}/compliance`,
|
|
856
|
+
projectTeam: (id) => `/projects/${id}/team`,
|
|
857
|
+
projectRepo: (id) => `/projects/${id}/repo`,
|
|
858
|
+
projectIngest: (id) => `/projects/${id}/ingest`,
|
|
859
|
+
/** Workflow step dependency graph + lineage (#532). */
|
|
860
|
+
projectGraph: (id) => `/projects/${id}/graph`,
|
|
861
|
+
/** Per-project Guardian / orchestration telemetry dashboard. */
|
|
862
|
+
projectTelemetry: (id) => `/projects/${id}/telemetry`,
|
|
863
|
+
projectIntegrations: (id) => `/projects/${id}/integrations`,
|
|
864
|
+
projectDeployments: (id) => `/projects/${id}/deployments`,
|
|
865
|
+
projectCI: (id) => `/projects/${id}/ci`,
|
|
866
|
+
// Film production workspace routes (PR 5 — film domain module)
|
|
867
|
+
projectFilm: (id) => `/projects/${id}/film`,
|
|
868
|
+
projectFilmSources: (id) => `/projects/${id}/film/sources`,
|
|
869
|
+
projectFilmStory: (id) => `/projects/${id}/film/story`,
|
|
870
|
+
projectFilmBibles: (id) => `/projects/${id}/film/bibles`,
|
|
871
|
+
projectFilmScenes: (id) => `/projects/${id}/film/scenes`,
|
|
872
|
+
projectFilmShots: (id) => `/projects/${id}/film/shots`,
|
|
873
|
+
projectFilmPrompts: (id) => `/projects/${id}/film/prompts`,
|
|
874
|
+
projectFilmClips: (id) => `/projects/${id}/film/clips`,
|
|
875
|
+
projectFilmReview: (id) => `/projects/${id}/film/review`,
|
|
876
|
+
projectFilmEdit: (id) => `/projects/${id}/film/edit`,
|
|
877
|
+
projectFilmResolve: (id) => `/projects/${id}/film/resolve`,
|
|
878
|
+
projectFilmExport: (id) => `/projects/${id}/film/export`,
|
|
879
|
+
projectFilmDeliverables: (id) => `/projects/${id}/film/deliverables`,
|
|
880
|
+
projectFilmPublish: (id) => `/projects/${id}/film/publish`,
|
|
881
|
+
projectFilmGraph: (id) => `/projects/${id}/film/graph`,
|
|
882
|
+
tasks: '/tasks',
|
|
883
|
+
settings: '/settings',
|
|
884
|
+
/** Workspace-wide compliance dashboard (the old global `/compliance` constant had no page). */
|
|
885
|
+
workspaceCompliance: '/workspace/compliance',
|
|
886
|
+
onboarding: '/onboarding',
|
|
887
|
+
/**
|
|
888
|
+
* Spanish nonfiction book portal (thin PWA shell).
|
|
889
|
+
* Nested under `/books/escribir` so public audiobook listen stays at `/books/[bookSlug]`.
|
|
890
|
+
*/
|
|
891
|
+
books: '/books',
|
|
892
|
+
/** Dedicated Spanish portal login — stays out of the full NeuraLoom /login shell. */
|
|
893
|
+
booksLogin: '/books/entrar',
|
|
894
|
+
booksPortalProject: (projectId) => `/books/escribir/${encodeURIComponent(projectId)}`,
|
|
895
|
+
booksPortalStep: (projectId, stepId) => `/books/escribir/${encodeURIComponent(projectId)}/${encodeURIComponent(stepId)}`,
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* Query parameter that carries the page a signed-out user asked for through
|
|
899
|
+
* sign-in: middleware → `/login?next=…` → password sign-in or GitHub OAuth
|
|
900
|
+
* `redirectTo` → `/auth/callback?next=…` → the requested page (issue 1798).
|
|
901
|
+
* One name for the whole chain; `/auth/callback` has always read `next`.
|
|
902
|
+
*/
|
|
903
|
+
exports.AUTH_RETURN_PARAM = 'next';
|
|
904
|
+
/**
|
|
905
|
+
* Operator page prefixes that require a signed-in session. SSOT for the
|
|
906
|
+
* middleware redirect (before render) and the client `AuthGuard` fallback.
|
|
907
|
+
* Matched per path segment: `/tasks` covers `/tasks` and `/tasks/…`.
|
|
908
|
+
*/
|
|
909
|
+
exports.PROTECTED_PAGE_PREFIXES = [
|
|
910
|
+
'/dashboard',
|
|
911
|
+
exports.PAGE_ROUTES.workspace,
|
|
912
|
+
exports.PAGE_ROUTES.projects,
|
|
913
|
+
exports.PAGE_ROUTES.tasks,
|
|
914
|
+
exports.PAGE_ROUTES.missionControl,
|
|
915
|
+
exports.PAGE_ROUTES.settings,
|
|
916
|
+
'/constitution',
|
|
917
|
+
'/guardian',
|
|
918
|
+
'/onboarding',
|
|
919
|
+
'/tutorial',
|
|
920
|
+
'/workflow',
|
|
921
|
+
'/community-movie',
|
|
922
|
+
'/admin',
|
|
923
|
+
'/knowledge',
|
|
924
|
+
'/deployments',
|
|
925
|
+
'/repositories',
|
|
926
|
+
];
|
|
927
|
+
function isProtectedPagePath(pathname) {
|
|
928
|
+
return exports.PROTECTED_PAGE_PREFIXES.some((prefix) => pathname === prefix || pathname.startsWith(`${prefix}/`));
|
|
929
|
+
}
|
|
930
|
+
const AUTH_RETURN_PARSE_BASE = 'https://return-path.invalid';
|
|
931
|
+
/**
|
|
932
|
+
* Returns `value` only when it is a same-origin relative path (`/tasks?x=1`),
|
|
933
|
+
* normalised to pathname + search + hash; otherwise `null`. Rejects absolute
|
|
934
|
+
* and protocol-relative URLs, backslash tricks, control characters and the
|
|
935
|
+
* auth pages themselves (no login → login loops).
|
|
936
|
+
*/
|
|
937
|
+
function sanitizeAuthReturnPath(value) {
|
|
938
|
+
if (typeof value !== 'string' || value.length === 0 || value.length > 2048) {
|
|
939
|
+
return null;
|
|
940
|
+
}
|
|
941
|
+
if (!value.startsWith('/') || value.startsWith('//') || value.includes('\\')) {
|
|
942
|
+
return null;
|
|
943
|
+
}
|
|
944
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
945
|
+
const code = value.charCodeAt(i);
|
|
946
|
+
if (code < 0x20 || code === 0x7f) {
|
|
947
|
+
return null;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
let parsed;
|
|
951
|
+
try {
|
|
952
|
+
parsed = new URL(value, AUTH_RETURN_PARSE_BASE);
|
|
953
|
+
}
|
|
954
|
+
catch {
|
|
955
|
+
return null;
|
|
956
|
+
}
|
|
957
|
+
if (parsed.origin !== AUTH_RETURN_PARSE_BASE) {
|
|
958
|
+
return null;
|
|
959
|
+
}
|
|
960
|
+
if (parsed.pathname === exports.PAGE_ROUTES.login ||
|
|
961
|
+
parsed.pathname === exports.PAGE_ROUTES.authCallback ||
|
|
962
|
+
parsed.pathname.startsWith(`${exports.PAGE_ROUTES.authCallback}/`)) {
|
|
963
|
+
return null;
|
|
964
|
+
}
|
|
965
|
+
return `${parsed.pathname}${parsed.search}${parsed.hash}`;
|
|
966
|
+
}
|
|
967
|
+
/** `/login`, carrying `returnPath` in {@link AUTH_RETURN_PARAM} when it is safe. */
|
|
968
|
+
function buildLoginPath(returnPath) {
|
|
969
|
+
const safe = sanitizeAuthReturnPath(returnPath);
|
|
970
|
+
if (safe === null) {
|
|
971
|
+
return exports.PAGE_ROUTES.login;
|
|
972
|
+
}
|
|
973
|
+
return `${exports.PAGE_ROUTES.login}?${exports.AUTH_RETURN_PARAM}=${encodeURIComponent(safe)}`;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* Spanish Relatos mini-portal steps (fiction_book channel, short path).
|
|
977
|
+
* Skips schema/constitution in the UI; tasks do not require world ontology.
|
|
978
|
+
*/
|
|
979
|
+
exports.BOOKS_PORTAL_STEP_IDS = [
|
|
980
|
+
'specify',
|
|
981
|
+
'plan',
|
|
982
|
+
'tasks',
|
|
983
|
+
'implement',
|
|
984
|
+
'review',
|
|
985
|
+
];
|
|
986
|
+
function isBooksPortalStepId(value) {
|
|
987
|
+
return exports.BOOKS_PORTAL_STEP_IDS.includes(value);
|
|
988
|
+
}
|
|
989
|
+
// Git/Repository Routes
|
|
990
|
+
exports.GIT_ROUTES = {
|
|
991
|
+
repos: {
|
|
992
|
+
list: `${exports.API_PREFIX}/git/repos`,
|
|
993
|
+
getById: (repoId) => `${exports.API_PREFIX}/git/repos/${repoId}`,
|
|
994
|
+
commits: (repoId) => `${exports.API_PREFIX}/git/repos/${repoId}/commits`,
|
|
995
|
+
pullRequests: (repoId) => `${exports.API_PREFIX}/git/repos/${repoId}/pulls`,
|
|
996
|
+
issues: (repoId) => `${exports.API_PREFIX}/git/repos/${repoId}/issues`,
|
|
997
|
+
activity: (repoId) => `${exports.API_PREFIX}/git/repos/${repoId}/activity`,
|
|
998
|
+
sync: (repoId) => `${exports.API_PREFIX}/git/repos/${repoId}/sync`,
|
|
999
|
+
},
|
|
1000
|
+
commits: {
|
|
1001
|
+
list: `${exports.API_PREFIX}/git/commits`,
|
|
1002
|
+
getById: (commitId) => `${exports.API_PREFIX}/git/commits/${commitId}`,
|
|
1003
|
+
},
|
|
1004
|
+
pullRequests: {
|
|
1005
|
+
list: `${exports.API_PREFIX}/git/pulls`,
|
|
1006
|
+
getById: (prId) => `${exports.API_PREFIX}/git/pulls/${prId}`,
|
|
1007
|
+
},
|
|
1008
|
+
issues: {
|
|
1009
|
+
list: `${exports.API_PREFIX}/git/issues`,
|
|
1010
|
+
getById: (issueId) => `${exports.API_PREFIX}/git/issues/${issueId}`,
|
|
1011
|
+
},
|
|
1012
|
+
};
|
|
1013
|
+
// Deployment Routes
|
|
1014
|
+
exports.DEPLOYMENT_ROUTES = {
|
|
1015
|
+
list: `${exports.API_PREFIX}/deployments`,
|
|
1016
|
+
getById: (deploymentId) => `${exports.API_PREFIX}/deployments/${deploymentId}`,
|
|
1017
|
+
logs: (deploymentId) => `${exports.API_PREFIX}/deployments/${deploymentId}/logs`,
|
|
1018
|
+
byProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments`,
|
|
1019
|
+
/** @deprecated Use `triggerHook` (POST /deployments/trigger). This route remains for backwards compat only. */
|
|
1020
|
+
trigger: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deploy`,
|
|
1021
|
+
rollback: (deploymentId) => `${exports.API_PREFIX}/deployments/${deploymentId}/rollback`,
|
|
1022
|
+
/** Canonical deployment readiness aggregator. */
|
|
1023
|
+
status: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/status`,
|
|
1024
|
+
/** Server-side deployment history (replaces browser Supabase read). */
|
|
1025
|
+
history: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/history`,
|
|
1026
|
+
/** Ingest a deployment event from an external provider. */
|
|
1027
|
+
ingest: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/ingest`,
|
|
1028
|
+
/** Verify a deployed URL is reachable and update verification status. */
|
|
1029
|
+
verify: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/verify`,
|
|
1030
|
+
configure: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/configure`,
|
|
1031
|
+
/** Sync latest Vercel deployment into local DB (observation-first). */
|
|
1032
|
+
sync: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/sync`,
|
|
1033
|
+
/** Fire deploy hook to trigger a new Vercel deployment. */
|
|
1034
|
+
triggerHook: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/trigger`,
|
|
1035
|
+
/** Idempotent: set Vercel framework/rootDir, create deploy hook, register webhook. */
|
|
1036
|
+
provision: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/provision`,
|
|
1037
|
+
/** Create a new Vercel project linked to the project's GitHub repo. */
|
|
1038
|
+
create: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/create`,
|
|
1039
|
+
/** Link an existing Vercel project to a NeuraLoom project. */
|
|
1040
|
+
link: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/link`,
|
|
1041
|
+
/** List Vercel projects in team (for link dialog). */
|
|
1042
|
+
vercelProjects: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/vercel/projects`,
|
|
1043
|
+
/** Get linked Vercel project details. */
|
|
1044
|
+
vercelProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/vercel/project`,
|
|
1045
|
+
/** List env vars on linked Vercel project (names only). */
|
|
1046
|
+
env: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/env`,
|
|
1047
|
+
/** Push env vars to linked Vercel project. */
|
|
1048
|
+
envSync: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/env/sync`,
|
|
1049
|
+
/** Read-only repo deployability scan — checks package.json, next dep, build script, app dir. */
|
|
1050
|
+
preflight: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/preflight`,
|
|
1051
|
+
/** Deterministic deployment success / promotion risk (heuristic, not ML). */
|
|
1052
|
+
predict: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/predict`,
|
|
1053
|
+
/**
|
|
1054
|
+
* Controlled production rollback / instant promote to a prior healthy deployment.
|
|
1055
|
+
* Default dry-run; live requires explicit project_settings authorization.
|
|
1056
|
+
*/
|
|
1057
|
+
rollbackByProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/rollback`,
|
|
1058
|
+
/** Backfill an existing live Vercel deployment into deployments (no redeploy). */
|
|
1059
|
+
importExternal: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/deployments/import-external`,
|
|
1060
|
+
};
|
|
1061
|
+
/** Public audiobook listen page + CDN manifest URLs (browser routes, not REST prefix). */
|
|
1062
|
+
exports.PUBLIC_BOOK_ROUTES = {
|
|
1063
|
+
listen: (bookSlug) => `/books/${encodeURIComponent(bookSlug)}`,
|
|
1064
|
+
manifestApi: (bookSlug) => `${exports.API_PREFIX}/public/audiobooks/${encodeURIComponent(bookSlug)}/manifest`,
|
|
1065
|
+
};
|
|
1066
|
+
/** Documentary audiobook production (writing publication); server-side ElevenLabs + LLM. */
|
|
1067
|
+
exports.AUDIOBOOK_EMBED_PUBLICATION_ROUTES = {
|
|
1068
|
+
embedPackageByProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/publication/audiobook/embed-package`,
|
|
1069
|
+
};
|
|
1070
|
+
/** Manuscript text export (PDF/DOCX/EPUB/MD) from workflow_artifacts. */
|
|
1071
|
+
exports.MANUSCRIPT_PUBLICATION_ROUTES = {
|
|
1072
|
+
export: `${exports.API_PREFIX}/publication/manuscript/export`,
|
|
1073
|
+
};
|
|
1074
|
+
exports.AUDIOBOOK_PUBLICATION_ROUTES = {
|
|
1075
|
+
settings: `${exports.API_PREFIX}/publication/audiobook/settings`,
|
|
1076
|
+
voiceProfile: `${exports.API_PREFIX}/publication/audiobook/voice-profile`,
|
|
1077
|
+
prepareScript: `${exports.API_PREFIX}/publication/audiobook/prepare-script`,
|
|
1078
|
+
generateNarration: `${exports.API_PREFIX}/publication/audiobook/generate-narration`,
|
|
1079
|
+
generateTimeline: `${exports.API_PREFIX}/publication/audiobook/generate-timeline`,
|
|
1080
|
+
generateSoundCues: `${exports.API_PREFIX}/publication/audiobook/generate-sound-cues`,
|
|
1081
|
+
generateSoundAssets: `${exports.API_PREFIX}/publication/audiobook/generate-sound-assets`,
|
|
1082
|
+
mixChapter: `${exports.API_PREFIX}/publication/audiobook/mix-chapter`,
|
|
1083
|
+
qa: `${exports.API_PREFIX}/publication/audiobook/qa`,
|
|
1084
|
+
generateVisualStoryboard: `${exports.API_PREFIX}/publication/audiobook/generate-visual-storyboard`,
|
|
1085
|
+
generateMotionCues: `${exports.API_PREFIX}/publication/audiobook/generate-motion-cues`,
|
|
1086
|
+
package: `${exports.API_PREFIX}/publication/audiobook/package`,
|
|
1087
|
+
generateDocumentaryChapter: `${exports.API_PREFIX}/publication/audiobook/generate-documentary-chapter`,
|
|
1088
|
+
generateExportPackage: `${exports.API_PREFIX}/publication/audiobook/generate-export-package`,
|
|
1089
|
+
elevenLabsStudio: `${exports.API_PREFIX}/publication/audiobook/elevenlabs-studio`,
|
|
1090
|
+
studioSyncGenerated: `${exports.API_PREFIX}/publication/audiobook/studio-sync-generated`,
|
|
1091
|
+
importAssets: `${exports.API_PREFIX}/publication/audiobook/import-assets`,
|
|
1092
|
+
productionMode: `${exports.API_PREFIX}/publication/audiobook/production-mode`,
|
|
1093
|
+
distribution: `${exports.API_PREFIX}/publication/audiobook/distribution`,
|
|
1094
|
+
};
|
|
1095
|
+
// CI/CD Routes — per-project CI runs list + canonical status aggregator.
|
|
1096
|
+
exports.CI_ROUTES = {
|
|
1097
|
+
runs: {
|
|
1098
|
+
byProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/ci/runs`,
|
|
1099
|
+
},
|
|
1100
|
+
statusByProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/ci/status`,
|
|
1101
|
+
apply: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/ci/apply`,
|
|
1102
|
+
ingest: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/ci/ingest`,
|
|
1103
|
+
dispatch: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/ci/dispatch`,
|
|
1104
|
+
/** Operator override: mark CI step as operational (project_settings.settings.cicd.operatorReady). */
|
|
1105
|
+
operatorReady: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/ci/ready`,
|
|
1106
|
+
/** Operator override: accept partial CI validation when actionlint cannot run locally. */
|
|
1107
|
+
allowSkipActionlint: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/ci/allow-skip-actionlint`,
|
|
1108
|
+
/** Merge the open workflow PR via GitHub App — eliminates the need to leave NeuraLoom. */
|
|
1109
|
+
mergePr: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/ci/merge-pr`,
|
|
1110
|
+
/** List all open implement PRs for the project (branches ending in /implement). */
|
|
1111
|
+
listImplementPrs: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/ci/implement-prs`,
|
|
1112
|
+
};
|
|
1113
|
+
// App Factory Routes
|
|
1114
|
+
exports.FACTORY_ROUTES = {
|
|
1115
|
+
templates: {
|
|
1116
|
+
list: `${exports.API_PREFIX}/factory/templates`,
|
|
1117
|
+
getById: (templateId) => `${exports.API_PREFIX}/factory/templates/${templateId}`,
|
|
1118
|
+
},
|
|
1119
|
+
generate: `${exports.API_PREFIX}/factory/generate`,
|
|
1120
|
+
boilerplate: {
|
|
1121
|
+
getById: (artifactId) => `${exports.API_PREFIX}/factory/boilerplate/${artifactId}`,
|
|
1122
|
+
validate: `${exports.API_PREFIX}/factory/boilerplate/validate`,
|
|
1123
|
+
},
|
|
1124
|
+
lifecycle: {
|
|
1125
|
+
start: `${exports.API_PREFIX}/factory/lifecycle/start`,
|
|
1126
|
+
getById: (lifecycleId) => `${exports.API_PREFIX}/factory/lifecycle/${lifecycleId}`,
|
|
1127
|
+
cancel: (lifecycleId) => `${exports.API_PREFIX}/factory/lifecycle/${lifecycleId}/cancel`,
|
|
1128
|
+
retry: (lifecycleId) => `${exports.API_PREFIX}/factory/lifecycle/${lifecycleId}/retry`,
|
|
1129
|
+
},
|
|
1130
|
+
};
|
|
1131
|
+
// Component & Page Builder Routes
|
|
1132
|
+
exports.WORKSPACE_ROUTES = {
|
|
1133
|
+
components: {
|
|
1134
|
+
list: `${exports.API_PREFIX}/workspace/components`,
|
|
1135
|
+
create: `${exports.API_PREFIX}/workspace/components`,
|
|
1136
|
+
getById: (componentId) => `${exports.API_PREFIX}/workspace/components/${componentId}`,
|
|
1137
|
+
update: (componentId) => `${exports.API_PREFIX}/workspace/components/${componentId}`,
|
|
1138
|
+
delete: (componentId) => `${exports.API_PREFIX}/workspace/components/${componentId}`,
|
|
1139
|
+
preview: (componentId) => `${exports.API_PREFIX}/workspace/components/${componentId}/preview`,
|
|
1140
|
+
versions: (componentId) => `${exports.API_PREFIX}/workspace/components/${componentId}/versions`,
|
|
1141
|
+
analytics: (componentId) => `${exports.API_PREFIX}/workspace/components/${componentId}/analytics`,
|
|
1142
|
+
generate: `${exports.API_PREFIX}/workspace/components/generate`,
|
|
1143
|
+
validate: `${exports.API_PREFIX}/workspace/components/validate`,
|
|
1144
|
+
marketplace: `${exports.API_PREFIX}/workspace/components/marketplace`,
|
|
1145
|
+
download: (componentId) => `${exports.API_PREFIX}/workspace/components/${componentId}/download`,
|
|
1146
|
+
rate: (componentId) => `${exports.API_PREFIX}/workspace/components/${componentId}/rate`,
|
|
1147
|
+
},
|
|
1148
|
+
pages: {
|
|
1149
|
+
list: `${exports.API_PREFIX}/workspace/pages`,
|
|
1150
|
+
create: `${exports.API_PREFIX}/workspace/pages`,
|
|
1151
|
+
getById: (pageId) => `${exports.API_PREFIX}/workspace/pages/${pageId}`,
|
|
1152
|
+
update: (pageId) => `${exports.API_PREFIX}/workspace/pages/${pageId}`,
|
|
1153
|
+
delete: (pageId) => `${exports.API_PREFIX}/workspace/pages/${pageId}`,
|
|
1154
|
+
preview: (pageId) => `${exports.API_PREFIX}/workspace/pages/${pageId}/preview`,
|
|
1155
|
+
versions: (pageId) => `${exports.API_PREFIX}/workspace/pages/${pageId}/versions`,
|
|
1156
|
+
generate: `${exports.API_PREFIX}/workspace/pages/generate`,
|
|
1157
|
+
validate: `${exports.API_PREFIX}/workspace/pages/validate`,
|
|
1158
|
+
suggestions: `${exports.API_PREFIX}/workspace/pages/suggestions`,
|
|
1159
|
+
},
|
|
1160
|
+
themes: {
|
|
1161
|
+
list: `${exports.API_PREFIX}/workspace/themes`,
|
|
1162
|
+
create: `${exports.API_PREFIX}/workspace/themes`,
|
|
1163
|
+
getById: (themeId) => `${exports.API_PREFIX}/workspace/themes/${themeId}`,
|
|
1164
|
+
update: (themeId) => `${exports.API_PREFIX}/workspace/themes/${themeId}`,
|
|
1165
|
+
activate: (themeId) => `${exports.API_PREFIX}/workspace/themes/${themeId}/activate`,
|
|
1166
|
+
},
|
|
1167
|
+
};
|
|
1168
|
+
// Infrastructure Management Routes
|
|
1169
|
+
exports.INFRA_ROUTES = {
|
|
1170
|
+
projects: {
|
|
1171
|
+
list: `${exports.API_PREFIX}/infra/projects`,
|
|
1172
|
+
create: `${exports.API_PREFIX}/infra/projects`,
|
|
1173
|
+
getById: (id) => `${exports.API_PREFIX}/infra/projects/${id}`,
|
|
1174
|
+
update: (id) => `${exports.API_PREFIX}/infra/projects/${id}`,
|
|
1175
|
+
delete: (id) => `${exports.API_PREFIX}/infra/projects/${id}`,
|
|
1176
|
+
},
|
|
1177
|
+
runs: {
|
|
1178
|
+
list: `${exports.API_PREFIX}/infra/runs`,
|
|
1179
|
+
getById: (id) => `${exports.API_PREFIX}/infra/runs/${id}`,
|
|
1180
|
+
logs: (id) => `${exports.API_PREFIX}/infra/runs/${id}/logs`,
|
|
1181
|
+
},
|
|
1182
|
+
guardian: {
|
|
1183
|
+
validate: `${exports.API_PREFIX}/infra/guardian/validate`,
|
|
1184
|
+
report: `${exports.API_PREFIX}/infra/guardian/report`,
|
|
1185
|
+
},
|
|
1186
|
+
};
|
|
1187
|
+
// Routes & Code Tracking
|
|
1188
|
+
exports.CODE_ROUTES = {
|
|
1189
|
+
routes: {
|
|
1190
|
+
list: `${exports.API_PREFIX}/routes`,
|
|
1191
|
+
getById: (routeId) => `${exports.API_PREFIX}/routes/${routeId}`,
|
|
1192
|
+
byProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/routes`,
|
|
1193
|
+
register: `${exports.API_PREFIX}/routes/register`,
|
|
1194
|
+
},
|
|
1195
|
+
snippets: {
|
|
1196
|
+
list: `${exports.API_PREFIX}/code-snippets`,
|
|
1197
|
+
getById: (snippetId) => `${exports.API_PREFIX}/code-snippets/${snippetId}`,
|
|
1198
|
+
byProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/code-snippets`,
|
|
1199
|
+
byTask: (taskId) => `${exports.API_PREFIX}/tasks/${taskId}/code-snippets`,
|
|
1200
|
+
},
|
|
1201
|
+
architectures: {
|
|
1202
|
+
list: `${exports.API_PREFIX}/architectures`,
|
|
1203
|
+
getById: (graphId) => `${exports.API_PREFIX}/architectures/${graphId}`,
|
|
1204
|
+
byProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/architecture`,
|
|
1205
|
+
generate: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/architecture/generate`,
|
|
1206
|
+
},
|
|
1207
|
+
retrospectives: {
|
|
1208
|
+
list: `${exports.API_PREFIX}/retrospectives`,
|
|
1209
|
+
getById: (retroId) => `${exports.API_PREFIX}/retrospectives/${retroId}`,
|
|
1210
|
+
byProject: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/retrospective`,
|
|
1211
|
+
generate: (projectId) => `${exports.API_PREFIX}/projects/${projectId}/retrospective/generate`,
|
|
1212
|
+
},
|
|
1213
|
+
specTemplates: {
|
|
1214
|
+
list: `${exports.API_PREFIX}/spec-templates`,
|
|
1215
|
+
getById: (templateId) => `${exports.API_PREFIX}/spec-templates/${templateId}`,
|
|
1216
|
+
byCategory: (category) => `${exports.API_PREFIX}/spec-templates/category/${category}`,
|
|
1217
|
+
},
|
|
1218
|
+
};
|
|
1219
|
+
/** Analytics APIs under `/api/analytics/*`. */
|
|
1220
|
+
exports.ANALYTICS_ROUTES = {
|
|
1221
|
+
guardian: `${exports.API_PREFIX}/analytics/guardian`,
|
|
1222
|
+
projectMetrics: (id) => `${exports.API_PREFIX}/analytics/project-metrics/${id}`,
|
|
1223
|
+
complianceReport: (id) => `${exports.API_PREFIX}/analytics/compliance-report/${id}`,
|
|
1224
|
+
teamInsights: (id) => `${exports.API_PREFIX}/analytics/team-insights/${id}`,
|
|
1225
|
+
workspace: `${exports.API_PREFIX}/analytics/workspace`,
|
|
1226
|
+
notificationsFeed: `${exports.API_PREFIX}/analytics/notifications-feed`,
|
|
1227
|
+
};
|
|
1228
|
+
exports.DASHBOARD_ROUTES = {
|
|
1229
|
+
stats: `${exports.API_PREFIX}/dashboard/stats`,
|
|
1230
|
+
};
|
|
1231
|
+
exports.DECISION_ROUTES = {
|
|
1232
|
+
list: `${exports.API_PREFIX}/decisions`,
|
|
1233
|
+
respond: (decisionId) => `${exports.API_PREFIX}/decisions/${decisionId}/respond`,
|
|
1234
|
+
};
|
|
1235
|
+
exports.WORKFLOW_TEMPLATE_ROUTES = {
|
|
1236
|
+
list: `${exports.API_PREFIX}/workflows/templates`,
|
|
1237
|
+
use: (templateId) => `${exports.API_PREFIX}/workflows/templates/${templateId}/use`,
|
|
1238
|
+
};
|
|
1239
|
+
/** Legacy `/api/team` spine (project roster). */
|
|
1240
|
+
exports.TEAM_ROUTES = {
|
|
1241
|
+
list: `${exports.API_PREFIX}/team`,
|
|
1242
|
+
root: `${exports.API_PREFIX}/team`,
|
|
1243
|
+
};
|
|
1244
|
+
/** `/api/teams/*` workspace APIs. */
|
|
1245
|
+
exports.TEAMS_ROUTES = {
|
|
1246
|
+
list: `${exports.API_PREFIX}/teams`,
|
|
1247
|
+
agents: {
|
|
1248
|
+
list: `${exports.API_PREFIX}/teams/agents`,
|
|
1249
|
+
byId: (id) => `${exports.API_PREFIX}/teams/agents/${id}`,
|
|
1250
|
+
},
|
|
1251
|
+
assignRole: `${exports.API_PREFIX}/teams/assign-role`,
|
|
1252
|
+
models: {
|
|
1253
|
+
list: (teamId) => `${exports.API_PREFIX}/teams/${teamId}/models`,
|
|
1254
|
+
create: (teamId) => `${exports.API_PREFIX}/teams/${teamId}/models`,
|
|
1255
|
+
delete: (teamId, modelId) => `${exports.API_PREFIX}/teams/${teamId}/models/${modelId}`,
|
|
1256
|
+
},
|
|
1257
|
+
phases: {
|
|
1258
|
+
list: (teamId) => `${exports.API_PREFIX}/teams/${teamId}/phases`,
|
|
1259
|
+
create: (teamId) => `${exports.API_PREFIX}/teams/${teamId}/phases`,
|
|
1260
|
+
delete: (teamId, phaseId) => `${exports.API_PREFIX}/teams/${teamId}/phases/${phaseId}`,
|
|
1261
|
+
},
|
|
1262
|
+
feedback: (teamId) => `${exports.API_PREFIX}/teams/${teamId}/feedback`,
|
|
1263
|
+
};
|
|
1264
|
+
exports.AGENT_ACTION_ROUTES = {
|
|
1265
|
+
list: `${exports.API_PREFIX}/agent-actions`,
|
|
1266
|
+
pending: `${exports.API_PREFIX}/agent-actions/pending`,
|
|
1267
|
+
byId: (id) => `${exports.API_PREFIX}/agent-actions/${id}`,
|
|
1268
|
+
approve: (id) => `${exports.API_PREFIX}/agent-actions/${id}/approve`,
|
|
1269
|
+
reject: (id) => `${exports.API_PREFIX}/agent-actions/${id}/reject`,
|
|
1270
|
+
retry: (id) => `${exports.API_PREFIX}/agent-actions/${id}/retry`,
|
|
1271
|
+
};
|
|
1272
|
+
exports.TELEMETRY_ROUTES = {
|
|
1273
|
+
aiUsage: `${exports.API_PREFIX}/metrics/ai-usage`,
|
|
1274
|
+
};
|
|
1275
|
+
exports.SEARCH_ROUTES = {
|
|
1276
|
+
query: `${exports.API_PREFIX}/search`,
|
|
1277
|
+
};
|
|
1278
|
+
/** Issue #154 / #1158: server-side durable workflow (execution_runs + execution_tasks) */
|
|
1279
|
+
exports.ORCHESTRATION_DURABLE_ROUTES = {
|
|
1280
|
+
run: `${exports.API_PREFIX}/orchestration/run`,
|
|
1281
|
+
stageRun: `${exports.API_PREFIX}/orchestration/stage-run`,
|
|
1282
|
+
continue: `${exports.API_PREFIX}/orchestration/continue`,
|
|
1283
|
+
runStatus: (id) => `${exports.API_PREFIX}/orchestration/run/${id}/status`,
|
|
1284
|
+
};
|
|
1285
|
+
/** Status poll path for a durable execution run (#1159). */
|
|
1286
|
+
function buildOrchestrationRunStatusUrl(runId) {
|
|
1287
|
+
return exports.ORCHESTRATION_DURABLE_ROUTES.runStatus(runId);
|
|
1288
|
+
}
|
|
1289
|
+
/** Film production — clip registry, review, selection, export, KG, Resolve bridge API routes (PR 6–PR 10). */
|
|
1290
|
+
exports.FILM_ROUTES = {
|
|
1291
|
+
clips: `${exports.API_PREFIX}/film/clips`,
|
|
1292
|
+
clipReview: (id) => `${exports.API_PREFIX}/film/clips/${id}/review`,
|
|
1293
|
+
clipSelect: (id) => `${exports.API_PREFIX}/film/clips/${id}/select`,
|
|
1294
|
+
keyframesList: `${exports.API_PREFIX}/film/keyframes`,
|
|
1295
|
+
keyframesRegister: `${exports.API_PREFIX}/film/keyframes/register`,
|
|
1296
|
+
keyframesGenerate: `${exports.API_PREFIX}/film/keyframes/generate`,
|
|
1297
|
+
keyframeReview: (keyframeId) => `${exports.API_PREFIX}/film/keyframes/${keyframeId}/review`,
|
|
1298
|
+
clipReviewScores: (clipId) => `${exports.API_PREFIX}/film/clips/${clipId}/review-scores`,
|
|
1299
|
+
clipPlaybackUrl: (clipId) => `${exports.API_PREFIX}/film/clips/${clipId}/playback-url`,
|
|
1300
|
+
shotAssessRisk: (shotId) => `${exports.API_PREFIX}/film/shots/${shotId}/assess-risk`,
|
|
1301
|
+
export: `${exports.API_PREFIX}/film/export`,
|
|
1302
|
+
kgCoverage: `${exports.API_PREFIX}/film/kg-coverage`,
|
|
1303
|
+
ofiReport: `${exports.API_PREFIX}/film/ofi-report`,
|
|
1304
|
+
lessonsManifest: `${exports.API_PREFIX}/film/lessons-manifest`,
|
|
1305
|
+
resolveIngest: `${exports.API_PREFIX}/film/resolve-ingest`,
|
|
1306
|
+
render: `${exports.API_PREFIX}/film/render`,
|
|
1307
|
+
renderWorker: `${exports.API_PREFIX}/film/render/worker`,
|
|
1308
|
+
editSequences: `${exports.API_PREFIX}/film/edit-sequences`,
|
|
1309
|
+
editSequencesBuildRoughCut: `${exports.API_PREFIX}/film/edit-sequences/build-rough-cut`,
|
|
1310
|
+
queueEnqueue: `${exports.API_PREFIX}/film/queue/enqueue`,
|
|
1311
|
+
hydrateFromArtifacts: `${exports.API_PREFIX}/film/hydrate-from-artifacts`,
|
|
1312
|
+
shotsList: `${exports.API_PREFIX}/film/shots`,
|
|
1313
|
+
scenesList: `${exports.API_PREFIX}/film/scenes`,
|
|
1314
|
+
promptsList: `${exports.API_PREFIX}/film/prompts`,
|
|
1315
|
+
queueEnqueueClipFromShot: `${exports.API_PREFIX}/film/queue/enqueue-clip-from-shot`,
|
|
1316
|
+
queueEnqueueMultiTake: `${exports.API_PREFIX}/film/queue/enqueue-multi-take`,
|
|
1317
|
+
queueDrain: `${exports.API_PREFIX}/film/queue/drain`,
|
|
1318
|
+
queueProcessProject: `${exports.API_PREFIX}/film/queue/process-project`,
|
|
1319
|
+
queueTasks: `${exports.API_PREFIX}/film/queue/tasks`,
|
|
1320
|
+
queueTaskCancel: (taskId) => `${exports.API_PREFIX}/film/queue/tasks/${taskId}/cancel`,
|
|
1321
|
+
queueTaskRetry: (taskId) => `${exports.API_PREFIX}/film/queue/tasks/${taskId}/retry`,
|
|
1322
|
+
queueTaskDetail: (taskId) => `${exports.API_PREFIX}/film/queue/tasks/${taskId}`,
|
|
1323
|
+
characterPacks: `${exports.API_PREFIX}/film/character-packs`,
|
|
1324
|
+
characterPackApprove: (id) => `${exports.API_PREFIX}/film/character-packs/${id}/approve`,
|
|
1325
|
+
promptRepairForShot: `${exports.API_PREFIX}/film/prompts/repair-for-shot`,
|
|
1326
|
+
runwayWebhook: `${exports.API_PREFIX}/film/providers/runway/webhook`,
|
|
1327
|
+
queuePollRunway: `${exports.API_PREFIX}/film/queue/poll-runway`,
|
|
1328
|
+
comfyUiNotify: `${exports.API_PREFIX}/film/providers/comfyui/notify`,
|
|
1329
|
+
comfyUiWorkflows: `${exports.API_PREFIX}/film/comfyui-workflows`,
|
|
1330
|
+
comfyUiWorkflow: (id) => `${exports.API_PREFIX}/film/comfyui-workflows/${id}`,
|
|
1331
|
+
promptPerformance: `${exports.API_PREFIX}/film/prompt-performance`,
|
|
1332
|
+
takeComparisons: `${exports.API_PREFIX}/film/take-comparisons`,
|
|
1333
|
+
takeComparison: (id) => `${exports.API_PREFIX}/film/take-comparisons/${id}`,
|
|
1334
|
+
takeComparisonDecide: (id) => `${exports.API_PREFIX}/film/take-comparisons/${id}/decide`,
|
|
1335
|
+
deliverables: `${exports.API_PREFIX}/film/deliverables`,
|
|
1336
|
+
deliverableIngest: `${exports.API_PREFIX}/film/deliverables/ingest`,
|
|
1337
|
+
deliverablePublishPackage: `${exports.API_PREFIX}/film/deliverables/publish-package`,
|
|
1338
|
+
deliverablePlaybackUrl: (id) => `${exports.API_PREFIX}/film/deliverables/${id}/playback-url`,
|
|
1339
|
+
deliverableUpdate: (id) => `${exports.API_PREFIX}/film/deliverables/${id}`,
|
|
1340
|
+
mediaAssetReview: (id) => `${exports.API_PREFIX}/film/media/${id}/review`,
|
|
1341
|
+
mediaAssetPromote: (id) => `${exports.API_PREFIX}/film/media/${id}/promote`,
|
|
1342
|
+
marketingCreatives: `${exports.API_PREFIX}/film/marketing/creatives`,
|
|
1343
|
+
datasets: `${exports.API_PREFIX}/film/datasets`,
|
|
1344
|
+
dataset: (id) => `${exports.API_PREFIX}/film/datasets/${id}`,
|
|
1345
|
+
datasetItems: (id) => `${exports.API_PREFIX}/film/datasets/${id}/items`,
|
|
1346
|
+
datasetManifest: (id) => `${exports.API_PREFIX}/film/datasets/${id}/manifest`,
|
|
1347
|
+
};
|
|
1348
|
+
/** MS-05 #734 — server-side runtime probe execution (API channel). */
|
|
1349
|
+
exports.RUNTIME_ROUTES = {
|
|
1350
|
+
run: `${exports.API_PREFIX}/runtime/run`,
|
|
1351
|
+
ingest: `${exports.API_PREFIX}/runtime/ingest`,
|
|
1352
|
+
findingsProject: `${exports.API_PREFIX}/runtime/findings/project`,
|
|
1353
|
+
tasksProject: `${exports.API_PREFIX}/runtime/tasks/project`,
|
|
1354
|
+
guardEvaluate: `${exports.API_PREFIX}/runtime/guard/evaluate`,
|
|
1355
|
+
tutorialProof: `${exports.API_PREFIX}/runtime/tutorial/proof`,
|
|
1356
|
+
};
|
|
1357
|
+
// All routes grouped for easy access
|
|
1358
|
+
exports.ALL_ROUTES = {
|
|
1359
|
+
auth: exports.AUTH_ROUTES,
|
|
1360
|
+
users: exports.USER_ROUTES,
|
|
1361
|
+
projects: exports.PROJECT_ROUTES,
|
|
1362
|
+
specs: exports.SPEC_ROUTES,
|
|
1363
|
+
plans: exports.PLAN_ROUTES,
|
|
1364
|
+
tasks: exports.TASK_ROUTES,
|
|
1365
|
+
constitution: exports.CONSTITUTION_ROUTES,
|
|
1366
|
+
ml: exports.ML_ROUTES,
|
|
1367
|
+
ai: exports.AI_ROUTES,
|
|
1368
|
+
knowledge: exports.KNOWLEDGE_ROUTES,
|
|
1369
|
+
vectors: exports.VECTOR_ROUTES,
|
|
1370
|
+
mcp: exports.MCP_ROUTES,
|
|
1371
|
+
system: exports.SYSTEM_ROUTES,
|
|
1372
|
+
compliance: exports.COMPLIANCE_ROUTES,
|
|
1373
|
+
files: exports.FILE_ROUTES,
|
|
1374
|
+
notifications: exports.NOTIFICATION_ROUTES,
|
|
1375
|
+
integrations: exports.INTEGRATION_ROUTES,
|
|
1376
|
+
cortexBridge: exports.CORTEX_BRIDGE_ROUTES,
|
|
1377
|
+
settings: exports.SETTINGS_ROUTES,
|
|
1378
|
+
pages: exports.PAGE_ROUTES,
|
|
1379
|
+
git: exports.GIT_ROUTES,
|
|
1380
|
+
deployments: exports.DEPLOYMENT_ROUTES,
|
|
1381
|
+
ci: exports.CI_ROUTES,
|
|
1382
|
+
factory: exports.FACTORY_ROUTES,
|
|
1383
|
+
workspace: exports.WORKSPACE_ROUTES,
|
|
1384
|
+
infra: exports.INFRA_ROUTES,
|
|
1385
|
+
code: exports.CODE_ROUTES,
|
|
1386
|
+
orchestrationDurable: exports.ORCHESTRATION_DURABLE_ROUTES,
|
|
1387
|
+
runtime: exports.RUNTIME_ROUTES,
|
|
1388
|
+
film: exports.FILM_ROUTES,
|
|
1389
|
+
orchestrationLive: exports.ORCHESTRATION_ROUTES,
|
|
1390
|
+
guardian: exports.GUARDIAN_ROUTES,
|
|
1391
|
+
repo: exports.REPO_ROUTES,
|
|
1392
|
+
implement: exports.IMPLEMENT_ROUTES,
|
|
1393
|
+
workflow: exports.WORKFLOW_ROUTES,
|
|
1394
|
+
analytics: exports.ANALYTICS_ROUTES,
|
|
1395
|
+
dashboard: exports.DASHBOARD_ROUTES,
|
|
1396
|
+
decisions: exports.DECISION_ROUTES,
|
|
1397
|
+
workflowTemplates: exports.WORKFLOW_TEMPLATE_ROUTES,
|
|
1398
|
+
team: exports.TEAM_ROUTES,
|
|
1399
|
+
teams: exports.TEAMS_ROUTES,
|
|
1400
|
+
agentActions: exports.AGENT_ACTION_ROUTES,
|
|
1401
|
+
telemetry: exports.TELEMETRY_ROUTES,
|
|
1402
|
+
search: exports.SEARCH_ROUTES,
|
|
1403
|
+
};
|
|
1404
|
+
// Frequently used route shortcuts
|
|
1405
|
+
exports.ROUTES = {
|
|
1406
|
+
public: {
|
|
1407
|
+
audiobooks: {
|
|
1408
|
+
manifest: (bookSlug) => exports.PUBLIC_BOOK_ROUTES.manifestApi(bookSlug),
|
|
1409
|
+
listenPage: (bookSlug) => exports.PUBLIC_BOOK_ROUTES.listen(bookSlug),
|
|
1410
|
+
},
|
|
1411
|
+
},
|
|
1412
|
+
publication: {
|
|
1413
|
+
audiobook: {
|
|
1414
|
+
embedPackage: (projectId) => exports.AUDIOBOOK_EMBED_PUBLICATION_ROUTES.embedPackageByProject(projectId),
|
|
1415
|
+
},
|
|
1416
|
+
manuscript: {
|
|
1417
|
+
export: exports.MANUSCRIPT_PUBLICATION_ROUTES.export,
|
|
1418
|
+
},
|
|
1419
|
+
},
|
|
1420
|
+
Projects: exports.PROJECT_ROUTES.list,
|
|
1421
|
+
Tasks: exports.TASK_ROUTES.list,
|
|
1422
|
+
Specs: exports.SPEC_ROUTES.list,
|
|
1423
|
+
KnowledgeNodes: exports.KNOWLEDGE_ROUTES.nodes,
|
|
1424
|
+
KnowledgeEdges: exports.KNOWLEDGE_ROUTES.edges,
|
|
1425
|
+
KnowledgeQuery: exports.KNOWLEDGE_ROUTES.query,
|
|
1426
|
+
VectorsSearch: exports.VECTOR_ROUTES.search,
|
|
1427
|
+
VectorsUpsert: exports.VECTOR_ROUTES.upsert,
|
|
1428
|
+
VectorsSimilarity: exports.VECTOR_ROUTES.similarity,
|
|
1429
|
+
McpSql: exports.MCP_ROUTES.sqlProxy,
|
|
1430
|
+
projects: {
|
|
1431
|
+
export: (projectId, format) => exports.PROJECT_ROUTES.export(projectId, format),
|
|
1432
|
+
projectFilmResolve: (id) => exports.PAGE_ROUTES.projectFilmResolve(id),
|
|
1433
|
+
projectFilmExport: (id) => exports.PAGE_ROUTES.projectFilmExport(id),
|
|
1434
|
+
},
|
|
1435
|
+
plan: {
|
|
1436
|
+
gateStatus: (projectId) => exports.PROJECT_ROUTES.planGateStatus(projectId),
|
|
1437
|
+
},
|
|
1438
|
+
};
|
|
1439
|
+
__exportStar(require("./community"), exports);
|
|
1440
|
+
__exportStar(require("./assurance"), exports);
|