@neuraloom/contracts 0.0.0-stage → 0.1.23
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 +14645 -0
- package/dist/schemas/cortex/bridge-events.schema.js +828 -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 +163 -0
- package/dist/schemas/orchestration-execution.js +89 -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 +83 -4
- package/README.md +0 -3
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Engineering Context — durable, revision-aware task context that survives agent resets.
|
|
4
|
+
*
|
|
5
|
+
* Connects the existing mechanisms (task capsule → context bundle → durable execution
|
|
6
|
+
* spine → workflow artifacts) into one task-specific workflow:
|
|
7
|
+
*
|
|
8
|
+
* capsule (intake) → engineering brief (evidence assembly, bounded)
|
|
9
|
+
* → task checkpoint (durable milestones, provider-independent)
|
|
10
|
+
* → verification result (what was genuinely tested)
|
|
11
|
+
* → resume (invalidate stale evidence, rebuild brief, continue)
|
|
12
|
+
*
|
|
13
|
+
* Canonical storage: workflow_artifacts rows with artifact_type in
|
|
14
|
+
* 'engineeringBrief' | 'taskCheckpoint' | 'verificationResult'.
|
|
15
|
+
* Execution linkage: execution_runs / execution_tasks (CAN-021) — never a second spine.
|
|
16
|
+
*
|
|
17
|
+
* Source facts, accepted decisions and hypotheses are separate fields by design:
|
|
18
|
+
* an agent's plausible interpretation must never become an authoritative fact
|
|
19
|
+
* merely because it was saved.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.EngineeringContextTraceSchema = exports.EngineeringContextMissingReasonSchema = exports.CheckpointMissReasonSchema = exports.ENGINEERING_BRIEF_PREPARATION_STAGE_ID = exports.ENGINEERING_CHECKPOINT_STAGE_METADATA_KEY = exports.CheckpointResumeResponseSchema = exports.CheckpointResumeOutcomeSchema = exports.CheckpointResumeRequestSchema = exports.StaleRevisionSchema = exports.InvalidatedEvidenceSchema = exports.EvidenceInvalidationReasonSchema = exports.TaskCheckpointPayloadSchema = exports.CheckpointProviderSchema = exports.EngineeringBriefPayloadSchema = exports.EngineeringBriefBudgetSchema = exports.CompletedInvestigationSchema = exports.InvestigationMethodSchema = exports.VerificationResultPayloadSchema = exports.ToolchainIdentitySchema = exports.VerificationStatusSchema = exports.PatchRefSchema = exports.KnownFailureSchema = exports.KnownFailureStatusSchema = exports.HypothesisSchema = exports.HypothesisStatusSchema = exports.DecisionSchema = exports.DecisionSourceSchema = exports.MandatoryRuleSchema = exports.MandatoryRuleSourceSchema = exports.EvidenceOmissionSchema = exports.EvidenceRelationshipSchema = exports.EvidenceRefSchema = exports.EvidenceRelevanceSchema = exports.EvidenceKindSchema = exports.RevisionMapSchema = exports.RevisionMapEntrySchema = exports.RevisionRoleSchema = exports.CommitShaSchema = exports.VERIFICATION_ERROR_EXCERPT_MAX_CHARS = exports.ENGINEERING_BRIEF_MAX_RELATIONSHIPS = exports.ENGINEERING_BRIEF_MAX_EVIDENCE_REFS = exports.ENGINEERING_BRIEF_DEFAULT_MAX_CHARS = exports.ENGINEERING_CONTEXT_SCHEMA_VERSION = void 0;
|
|
23
|
+
exports.computeEvidenceInvalidation = computeEvidenceInvalidation;
|
|
24
|
+
exports.serializeRevisionMap = serializeRevisionMap;
|
|
25
|
+
exports.buildEngineeringContextCacheMaterial = buildEngineeringContextCacheMaterial;
|
|
26
|
+
exports.estimateTokensFromChars = estimateTokensFromChars;
|
|
27
|
+
exports.readTaskCheckpointFromStageMetadata = readTaskCheckpointFromStageMetadata;
|
|
28
|
+
exports.mergeTaskCheckpointIntoStageMetadata = mergeTaskCheckpointIntoStageMetadata;
|
|
29
|
+
exports.computeContractChangeInvalidation = computeContractChangeInvalidation;
|
|
30
|
+
exports.diagnoseEngineeringContext = diagnoseEngineeringContext;
|
|
31
|
+
const zod_1 = require("zod");
|
|
32
|
+
exports.ENGINEERING_CONTEXT_SCHEMA_VERSION = '1.0.0';
|
|
33
|
+
/** Starting budget for a worker brief (chars ≈ tokens × 4). Tunable, not a universal limit. */
|
|
34
|
+
exports.ENGINEERING_BRIEF_DEFAULT_MAX_CHARS = 24_000;
|
|
35
|
+
exports.ENGINEERING_BRIEF_MAX_EVIDENCE_REFS = 200;
|
|
36
|
+
exports.ENGINEERING_BRIEF_MAX_RELATIONSHIPS = 400;
|
|
37
|
+
exports.VERIFICATION_ERROR_EXCERPT_MAX_CHARS = 4_000;
|
|
38
|
+
// ─── Revision map ─────────────────────────────────────────────────────────────
|
|
39
|
+
exports.CommitShaSchema = zod_1.z.string().regex(/^[a-f0-9]{7,64}$/i, 'commit must be a 7–64 char hex sha');
|
|
40
|
+
exports.RevisionRoleSchema = zod_1.z.enum(['primary', 'dependency', 'consumer']);
|
|
41
|
+
/**
|
|
42
|
+
* One participating repository at an exact revision. A task across connected
|
|
43
|
+
* codebases needs one entry per repo — a single commit SHA is insufficient.
|
|
44
|
+
* `installedVersions` records what a consuming app actually has installed of a
|
|
45
|
+
* shared package so an agent cannot assume a new producer API is available.
|
|
46
|
+
*/
|
|
47
|
+
exports.RevisionMapEntrySchema = zod_1.z.object({
|
|
48
|
+
repo: zod_1.z.string().min(1),
|
|
49
|
+
branch: zod_1.z.string().min(1).nullable(),
|
|
50
|
+
commit: exports.CommitShaSchema,
|
|
51
|
+
dirty: zod_1.z.boolean().default(false),
|
|
52
|
+
uncommittedFiles: zod_1.z.array(zod_1.z.string()).default([]),
|
|
53
|
+
role: exports.RevisionRoleSchema.default('primary'),
|
|
54
|
+
installedVersions: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
55
|
+
});
|
|
56
|
+
exports.RevisionMapSchema = zod_1.z.array(exports.RevisionMapEntrySchema).min(1);
|
|
57
|
+
// ─── Evidence ─────────────────────────────────────────────────────────────────
|
|
58
|
+
exports.EvidenceKindSchema = zod_1.z.enum([
|
|
59
|
+
'node',
|
|
60
|
+
'edge',
|
|
61
|
+
'file',
|
|
62
|
+
'symbol',
|
|
63
|
+
'route',
|
|
64
|
+
'contract',
|
|
65
|
+
'drift_finding',
|
|
66
|
+
'decision',
|
|
67
|
+
'test',
|
|
68
|
+
'verification',
|
|
69
|
+
'log',
|
|
70
|
+
'artifact',
|
|
71
|
+
'knowledge',
|
|
72
|
+
]);
|
|
73
|
+
/** How an evidence item was selected — exact resolution ranks above keyword hits. */
|
|
74
|
+
exports.EvidenceRelevanceSchema = zod_1.z.enum(['exact', 'dependency', 'reference', 'governance', 'keyword']);
|
|
75
|
+
exports.EvidenceRefSchema = zod_1.z.object({
|
|
76
|
+
/** Stable evidence id, e.g. `node:<uuid>`, `file:<path>`, `drift:<finding-id>`. */
|
|
77
|
+
id: zod_1.z.string().min(1),
|
|
78
|
+
kind: exports.EvidenceKindSchema,
|
|
79
|
+
/** Path, stable key, artifact uuid, route path or finding id the id points at. */
|
|
80
|
+
ref: zod_1.z.string().min(1),
|
|
81
|
+
label: zod_1.z.string().optional(),
|
|
82
|
+
repo: zod_1.z.string().optional(),
|
|
83
|
+
/** Commit the evidence was observed at; null when not revision-bound. */
|
|
84
|
+
revision: zod_1.z.string().nullable().default(null),
|
|
85
|
+
/** Content hash (sha256) when the evidence body was hashed; null otherwise. */
|
|
86
|
+
contentHash: zod_1.z.string().nullable().default(null),
|
|
87
|
+
relevance: exports.EvidenceRelevanceSchema,
|
|
88
|
+
/** Resolver that selected this item (symbol_index, dependency_traversal, …). */
|
|
89
|
+
selectedBy: zod_1.z.string().optional(),
|
|
90
|
+
});
|
|
91
|
+
exports.EvidenceRelationshipSchema = zod_1.z.object({
|
|
92
|
+
sourceId: zod_1.z.string().min(1),
|
|
93
|
+
targetId: zod_1.z.string().min(1),
|
|
94
|
+
relation: zod_1.z.string().min(1),
|
|
95
|
+
});
|
|
96
|
+
/** Explicit, expandable truncation: what was left out and how to fetch more. */
|
|
97
|
+
exports.EvidenceOmissionSchema = zod_1.z.object({
|
|
98
|
+
kind: exports.EvidenceKindSchema,
|
|
99
|
+
totalCount: zod_1.z.number().int().min(0),
|
|
100
|
+
omittedCount: zod_1.z.number().int().min(0),
|
|
101
|
+
continuationToken: zod_1.z.string().nullable().default(null),
|
|
102
|
+
});
|
|
103
|
+
exports.MandatoryRuleSourceSchema = zod_1.z.enum([
|
|
104
|
+
'constitution',
|
|
105
|
+
'repo_policy',
|
|
106
|
+
'tombstone',
|
|
107
|
+
'ownership',
|
|
108
|
+
'capsule',
|
|
109
|
+
'agent_rules',
|
|
110
|
+
]);
|
|
111
|
+
/** Governing requirements that context reduction must never drop. */
|
|
112
|
+
exports.MandatoryRuleSchema = zod_1.z.object({
|
|
113
|
+
id: zod_1.z.string().min(1),
|
|
114
|
+
source: exports.MandatoryRuleSourceSchema,
|
|
115
|
+
text: zod_1.z.string().min(1),
|
|
116
|
+
});
|
|
117
|
+
exports.DecisionSourceSchema = zod_1.z.enum(['human', 'agent']);
|
|
118
|
+
exports.DecisionSchema = zod_1.z.object({
|
|
119
|
+
id: zod_1.z.string().min(1),
|
|
120
|
+
decision: zod_1.z.string().min(1),
|
|
121
|
+
rationale: zod_1.z.string().default(''),
|
|
122
|
+
evidenceIds: zod_1.z.array(zod_1.z.string()).default([]),
|
|
123
|
+
source: exports.DecisionSourceSchema,
|
|
124
|
+
decidedAt: zod_1.z.string().datetime(),
|
|
125
|
+
});
|
|
126
|
+
exports.HypothesisStatusSchema = zod_1.z.enum(['open', 'confirmed', 'rejected']);
|
|
127
|
+
exports.HypothesisSchema = zod_1.z.object({
|
|
128
|
+
id: zod_1.z.string().min(1),
|
|
129
|
+
statement: zod_1.z.string().min(1),
|
|
130
|
+
status: exports.HypothesisStatusSchema,
|
|
131
|
+
evidenceIds: zod_1.z.array(zod_1.z.string()).default([]),
|
|
132
|
+
note: zod_1.z.string().optional(),
|
|
133
|
+
});
|
|
134
|
+
exports.KnownFailureStatusSchema = zod_1.z.enum(['open', 'resolved', 'rejected']);
|
|
135
|
+
exports.KnownFailureSchema = zod_1.z.object({
|
|
136
|
+
id: zod_1.z.string().min(1),
|
|
137
|
+
summary: zod_1.z.string().min(1),
|
|
138
|
+
evidenceIds: zod_1.z.array(zod_1.z.string()).default([]),
|
|
139
|
+
status: exports.KnownFailureStatusSchema.default('open'),
|
|
140
|
+
});
|
|
141
|
+
// ─── Patch / verification ─────────────────────────────────────────────────────
|
|
142
|
+
exports.PatchRefSchema = zod_1.z.object({
|
|
143
|
+
repo: zod_1.z.string().min(1),
|
|
144
|
+
branch: zod_1.z.string().min(1).nullable(),
|
|
145
|
+
worktree: zod_1.z.string().nullable().default(null),
|
|
146
|
+
headSha: exports.CommitShaSchema.nullable(),
|
|
147
|
+
dirty: zod_1.z.boolean().default(false),
|
|
148
|
+
/** sha256 of the current diff, so a resumed agent can detect a changed patch. */
|
|
149
|
+
diffHash: zod_1.z.string().nullable().default(null),
|
|
150
|
+
patchArtifactId: zod_1.z.string().uuid().nullable().default(null),
|
|
151
|
+
});
|
|
152
|
+
exports.VerificationStatusSchema = zod_1.z.enum(['passed', 'failed', 'blocked', 'not_run']);
|
|
153
|
+
exports.ToolchainIdentitySchema = zod_1.z.object({
|
|
154
|
+
node: zod_1.z.string().optional(),
|
|
155
|
+
pnpm: zod_1.z.string().optional(),
|
|
156
|
+
os: zod_1.z.string().optional(),
|
|
157
|
+
environment: zod_1.z.string().optional(),
|
|
158
|
+
});
|
|
159
|
+
/**
|
|
160
|
+
* One verification result: exact revision + patch tested, command identity,
|
|
161
|
+
* failure excerpt first, full log on demand. Producer tests passing does not
|
|
162
|
+
* prove the consumer still works — `contractSides` records both.
|
|
163
|
+
*/
|
|
164
|
+
exports.VerificationResultPayloadSchema = zod_1.z.object({
|
|
165
|
+
schemaVersion: zod_1.z.literal(exports.ENGINEERING_CONTEXT_SCHEMA_VERSION),
|
|
166
|
+
taskId: zod_1.z.string().min(1),
|
|
167
|
+
checkpointSequence: zod_1.z.number().int().min(0).nullable().default(null),
|
|
168
|
+
revision: zod_1.z.object({ repo: zod_1.z.string().min(1), commit: exports.CommitShaSchema }),
|
|
169
|
+
patchRef: exports.PatchRefSchema.nullable().default(null),
|
|
170
|
+
command: zod_1.z.string().min(1),
|
|
171
|
+
cwd: zod_1.z.string().min(1),
|
|
172
|
+
toolchain: exports.ToolchainIdentitySchema.default({}),
|
|
173
|
+
exitCode: zod_1.z.number().int().nullable(),
|
|
174
|
+
status: exports.VerificationStatusSchema,
|
|
175
|
+
failingTests: zod_1.z.array(zod_1.z.string()).default([]),
|
|
176
|
+
errorExcerpt: zod_1.z.string().max(exports.VERIFICATION_ERROR_EXCERPT_MAX_CHARS).nullable().default(null),
|
|
177
|
+
logArtifactRef: zod_1.z.string().nullable().default(null),
|
|
178
|
+
/** True when the same failure reproduces without the patch; null when unknown. */
|
|
179
|
+
preExistingFailure: zod_1.z.boolean().nullable().default(null),
|
|
180
|
+
affectedSymbols: zod_1.z.array(zod_1.z.string()).default([]),
|
|
181
|
+
contractSides: zod_1.z
|
|
182
|
+
.object({
|
|
183
|
+
producer: exports.VerificationStatusSchema.optional(),
|
|
184
|
+
consumer: exports.VerificationStatusSchema.optional(),
|
|
185
|
+
})
|
|
186
|
+
.optional(),
|
|
187
|
+
durationMs: zod_1.z.number().int().min(0).nullable().default(null),
|
|
188
|
+
recordedAt: zod_1.z.string().datetime(),
|
|
189
|
+
});
|
|
190
|
+
// ─── Investigation ────────────────────────────────────────────────────────────
|
|
191
|
+
exports.InvestigationMethodSchema = zod_1.z.enum([
|
|
192
|
+
'symbol_index',
|
|
193
|
+
'dependency_traversal',
|
|
194
|
+
'route_trace',
|
|
195
|
+
'knowledge_retrieval',
|
|
196
|
+
'git_diff',
|
|
197
|
+
'test_mapping',
|
|
198
|
+
'manual',
|
|
199
|
+
]);
|
|
200
|
+
exports.CompletedInvestigationSchema = zod_1.z.object({
|
|
201
|
+
id: zod_1.z.string().min(1),
|
|
202
|
+
query: zod_1.z.string().min(1),
|
|
203
|
+
method: exports.InvestigationMethodSchema,
|
|
204
|
+
summary: zod_1.z.string().default(''),
|
|
205
|
+
evidenceIds: zod_1.z.array(zod_1.z.string()).default([]),
|
|
206
|
+
});
|
|
207
|
+
// ─── Engineering brief ────────────────────────────────────────────────────────
|
|
208
|
+
exports.EngineeringBriefBudgetSchema = zod_1.z.object({
|
|
209
|
+
maxChars: zod_1.z.number().int().min(1),
|
|
210
|
+
usedChars: zod_1.z.number().int().min(0),
|
|
211
|
+
estimatedTokens: zod_1.z.number().int().min(0),
|
|
212
|
+
});
|
|
213
|
+
/**
|
|
214
|
+
* The compact worker brief. Objective → rules → relevant implementation →
|
|
215
|
+
* relationships → known failures → acceptance criteria → next action.
|
|
216
|
+
*/
|
|
217
|
+
exports.EngineeringBriefPayloadSchema = zod_1.z.object({
|
|
218
|
+
schemaVersion: zod_1.z.literal(exports.ENGINEERING_CONTEXT_SCHEMA_VERSION),
|
|
219
|
+
taskId: zod_1.z.string().min(1),
|
|
220
|
+
capsuleArtifactId: zod_1.z.string().uuid().nullable().default(null),
|
|
221
|
+
/** Execution task (execution_tasks.id) whose checkpoint this brief was built from. */
|
|
222
|
+
executionTaskId: zod_1.z.string().uuid().nullable().default(null),
|
|
223
|
+
executionRunId: zod_1.z.string().uuid().nullable().default(null),
|
|
224
|
+
compiledAt: zod_1.z.string().datetime(),
|
|
225
|
+
objective: zod_1.z.string().min(1),
|
|
226
|
+
acceptanceCriteria: zod_1.z.array(zod_1.z.string()),
|
|
227
|
+
mandatoryRules: zod_1.z.array(exports.MandatoryRuleSchema),
|
|
228
|
+
revisionMap: exports.RevisionMapSchema,
|
|
229
|
+
policyVersion: zod_1.z.string().nullable().default(null),
|
|
230
|
+
selectedEvidence: zod_1.z.array(exports.EvidenceRefSchema).max(exports.ENGINEERING_BRIEF_MAX_EVIDENCE_REFS),
|
|
231
|
+
relationships: zod_1.z.array(exports.EvidenceRelationshipSchema).max(exports.ENGINEERING_BRIEF_MAX_RELATIONSHIPS),
|
|
232
|
+
omissions: zod_1.z.array(exports.EvidenceOmissionSchema),
|
|
233
|
+
knownFailures: zod_1.z.array(exports.KnownFailureSchema),
|
|
234
|
+
priorDecisions: zod_1.z.array(exports.DecisionSchema),
|
|
235
|
+
nextAction: zod_1.z.string().min(1),
|
|
236
|
+
budget: exports.EngineeringBriefBudgetSchema,
|
|
237
|
+
/** Content-addressed identity: repos + revisions + policy + scope + task. */
|
|
238
|
+
cacheKey: zod_1.z.string().min(1),
|
|
239
|
+
/** Hash of the access scope (never raw scope identifiers). */
|
|
240
|
+
scopeKey: zod_1.z.string().min(1),
|
|
241
|
+
promptMarkdown: zod_1.z.string().min(1),
|
|
242
|
+
});
|
|
243
|
+
// ─── Task checkpoint ──────────────────────────────────────────────────────────
|
|
244
|
+
exports.CheckpointProviderSchema = zod_1.z.object({
|
|
245
|
+
conversationId: zod_1.z.string().nullable().default(null),
|
|
246
|
+
responseId: zod_1.z.string().nullable().default(null),
|
|
247
|
+
model: zod_1.z.string().nullable().default(null),
|
|
248
|
+
});
|
|
249
|
+
/**
|
|
250
|
+
* Durable milestone. Sufficient to resume in a fresh conversation with a
|
|
251
|
+
* different model; a provider conversation id is an optional convenience.
|
|
252
|
+
* Stores concise conclusions and evidence — never private reasoning.
|
|
253
|
+
*/
|
|
254
|
+
exports.TaskCheckpointPayloadSchema = zod_1.z.object({
|
|
255
|
+
schemaVersion: zod_1.z.literal(exports.ENGINEERING_CONTEXT_SCHEMA_VERSION),
|
|
256
|
+
taskId: zod_1.z.string().min(1),
|
|
257
|
+
executionRunId: zod_1.z.string().uuid().nullable().default(null),
|
|
258
|
+
executionTaskId: zod_1.z.string().uuid().nullable().default(null),
|
|
259
|
+
cortexTaskId: zod_1.z.string().nullable().default(null),
|
|
260
|
+
sequence: zod_1.z.number().int().min(0),
|
|
261
|
+
milestone: zod_1.z.string().min(1),
|
|
262
|
+
createdAt: zod_1.z.string().datetime(),
|
|
263
|
+
revisionMap: exports.RevisionMapSchema,
|
|
264
|
+
policyVersion: zod_1.z.string().nullable().default(null),
|
|
265
|
+
completedInvestigation: zod_1.z.array(exports.CompletedInvestigationSchema).default([]),
|
|
266
|
+
evidence: zod_1.z.array(exports.EvidenceRefSchema).default([]),
|
|
267
|
+
decisions: zod_1.z.array(exports.DecisionSchema).default([]),
|
|
268
|
+
hypotheses: zod_1.z.array(exports.HypothesisSchema).default([]),
|
|
269
|
+
patchRef: exports.PatchRefSchema.nullable().default(null),
|
|
270
|
+
verification: zod_1.z.array(exports.VerificationResultPayloadSchema).default([]),
|
|
271
|
+
remainingWork: zod_1.z.array(zod_1.z.string()).default([]),
|
|
272
|
+
nextAction: zod_1.z.string().min(1),
|
|
273
|
+
provider: exports.CheckpointProviderSchema.default({}),
|
|
274
|
+
});
|
|
275
|
+
// ─── Resume ───────────────────────────────────────────────────────────────────
|
|
276
|
+
exports.EvidenceInvalidationReasonSchema = zod_1.z.enum([
|
|
277
|
+
'revision_changed',
|
|
278
|
+
'file_changed',
|
|
279
|
+
'repo_missing',
|
|
280
|
+
'policy_changed',
|
|
281
|
+
'hash_mismatch',
|
|
282
|
+
]);
|
|
283
|
+
exports.InvalidatedEvidenceSchema = zod_1.z.object({
|
|
284
|
+
evidenceId: zod_1.z.string().min(1),
|
|
285
|
+
reason: exports.EvidenceInvalidationReasonSchema,
|
|
286
|
+
});
|
|
287
|
+
exports.StaleRevisionSchema = zod_1.z.object({
|
|
288
|
+
repo: zod_1.z.string().min(1),
|
|
289
|
+
checkpointCommit: zod_1.z.string().nullable(),
|
|
290
|
+
currentCommit: zod_1.z.string().nullable(),
|
|
291
|
+
});
|
|
292
|
+
exports.CheckpointResumeRequestSchema = zod_1.z.object({
|
|
293
|
+
taskId: zod_1.z.string().min(1),
|
|
294
|
+
currentRevisionMap: exports.RevisionMapSchema,
|
|
295
|
+
/** Repo-relative paths changed since the checkpoint (git diff + graph diff). */
|
|
296
|
+
changedFiles: zod_1.z.array(zod_1.z.string()).default([]),
|
|
297
|
+
policyVersion: zod_1.z.string().nullable().default(null),
|
|
298
|
+
});
|
|
299
|
+
exports.CheckpointResumeOutcomeSchema = zod_1.z.enum(['resumed', 'no_checkpoint']);
|
|
300
|
+
exports.CheckpointResumeResponseSchema = zod_1.z.object({
|
|
301
|
+
taskId: zod_1.z.string().min(1),
|
|
302
|
+
outcome: exports.CheckpointResumeOutcomeSchema,
|
|
303
|
+
/** Execution task the resumed checkpoint lives on (single persistence path). */
|
|
304
|
+
executionTaskId: zod_1.z.string().uuid().nullable(),
|
|
305
|
+
sequence: zod_1.z.number().int().min(0).nullable(),
|
|
306
|
+
staleRevisions: zod_1.z.array(exports.StaleRevisionSchema),
|
|
307
|
+
validEvidence: zod_1.z.array(exports.EvidenceRefSchema),
|
|
308
|
+
invalidatedEvidence: zod_1.z.array(exports.InvalidatedEvidenceSchema),
|
|
309
|
+
/** Hypotheses whose supporting evidence was invalidated are re-opened, not deleted. */
|
|
310
|
+
reopenedHypothesisIds: zod_1.z.array(zod_1.z.string()),
|
|
311
|
+
/** Verification results that no longer describe the current revision/patch. */
|
|
312
|
+
staleVerificationCount: zod_1.z.number().int().min(0),
|
|
313
|
+
completedInvestigation: zod_1.z.array(exports.CompletedInvestigationSchema),
|
|
314
|
+
decisions: zod_1.z.array(exports.DecisionSchema),
|
|
315
|
+
remainingWork: zod_1.z.array(zod_1.z.string()),
|
|
316
|
+
nextAction: zod_1.z.string().nullable(),
|
|
317
|
+
brief: exports.EngineeringBriefPayloadSchema.nullable(),
|
|
318
|
+
});
|
|
319
|
+
function normalizePath(p) {
|
|
320
|
+
return p.replace(/\\/g, '/').replace(/^\.\//, '').replace(/^\/+/, '');
|
|
321
|
+
}
|
|
322
|
+
function evidencePathCandidates(ref) {
|
|
323
|
+
const out = [];
|
|
324
|
+
if (ref.kind === 'file' || ref.kind === 'symbol' || ref.kind === 'test' || ref.kind === 'contract' || ref.kind === 'route' || ref.kind === 'node') {
|
|
325
|
+
out.push(normalizePath(ref.ref));
|
|
326
|
+
}
|
|
327
|
+
const fromId = ref.id.split(':').slice(1).join(':');
|
|
328
|
+
if (fromId.length > 0) {
|
|
329
|
+
out.push(normalizePath(fromId.replace(/@[a-f0-9]{7,64}$/i, '')));
|
|
330
|
+
}
|
|
331
|
+
return out;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Compare a checkpoint against the current revision map and changed files.
|
|
335
|
+
* Evidence bound to a repo whose commit moved is invalidated only when its file
|
|
336
|
+
* is in `changedFiles` (git diff + graph diff) or when it is revision-bound to
|
|
337
|
+
* the old commit and no changed-file list was supplied. Evidence whose repo is
|
|
338
|
+
* no longer present is invalidated. A policy version change invalidates
|
|
339
|
+
* governance evidence. Everything else stays valid — refresh what changed,
|
|
340
|
+
* retain what remains valid.
|
|
341
|
+
*/
|
|
342
|
+
function computeEvidenceInvalidation(input) {
|
|
343
|
+
const current = new Map(input.currentRevisionMap.map((e) => [e.repo, e]));
|
|
344
|
+
const previous = new Map(input.checkpoint.revisionMap.map((e) => [e.repo, e]));
|
|
345
|
+
const changed = new Set((input.changedFiles ?? []).map(normalizePath));
|
|
346
|
+
const changedListSupplied = (input.changedFiles ?? []).length > 0;
|
|
347
|
+
const policyChanged = input.policyVersion !== undefined &&
|
|
348
|
+
input.checkpoint.policyVersion !== null &&
|
|
349
|
+
input.policyVersion !== null &&
|
|
350
|
+
input.policyVersion !== input.checkpoint.policyVersion;
|
|
351
|
+
const staleRevisions = [];
|
|
352
|
+
const movedRepos = new Set();
|
|
353
|
+
const missingRepos = new Set();
|
|
354
|
+
for (const [repo, prev] of previous) {
|
|
355
|
+
const cur = current.get(repo);
|
|
356
|
+
if (cur === undefined) {
|
|
357
|
+
missingRepos.add(repo);
|
|
358
|
+
staleRevisions.push({ repo, checkpointCommit: prev.commit, currentCommit: null });
|
|
359
|
+
continue;
|
|
360
|
+
}
|
|
361
|
+
if (cur.commit.toLowerCase() !== prev.commit.toLowerCase() || cur.dirty !== prev.dirty) {
|
|
362
|
+
movedRepos.add(repo);
|
|
363
|
+
staleRevisions.push({ repo, checkpointCommit: prev.commit, currentCommit: cur.commit });
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
const primaryRepo = input.checkpoint.revisionMap.find((e) => e.role === 'primary')?.repo ?? input.checkpoint.revisionMap[0]?.repo;
|
|
367
|
+
const validEvidence = [];
|
|
368
|
+
const invalidatedEvidence = [];
|
|
369
|
+
for (const ref of input.checkpoint.evidence) {
|
|
370
|
+
const repo = ref.repo ?? primaryRepo;
|
|
371
|
+
if (repo !== undefined && missingRepos.has(repo)) {
|
|
372
|
+
invalidatedEvidence.push({ evidenceId: ref.id, reason: 'repo_missing' });
|
|
373
|
+
continue;
|
|
374
|
+
}
|
|
375
|
+
if (policyChanged && ref.relevance === 'governance') {
|
|
376
|
+
invalidatedEvidence.push({ evidenceId: ref.id, reason: 'policy_changed' });
|
|
377
|
+
continue;
|
|
378
|
+
}
|
|
379
|
+
const candidates = evidencePathCandidates(ref);
|
|
380
|
+
if (candidates.some((c) => changed.has(c) || [...changed].some((f) => c.length > 0 && (f.startsWith(`${c}/`) || c.startsWith(`${f}:`))))) {
|
|
381
|
+
invalidatedEvidence.push({ evidenceId: ref.id, reason: 'file_changed' });
|
|
382
|
+
continue;
|
|
383
|
+
}
|
|
384
|
+
if (repo !== undefined && movedRepos.has(repo)) {
|
|
385
|
+
const cur = current.get(repo);
|
|
386
|
+
const boundToOldRevision = ref.revision !== null && cur !== undefined && ref.revision.toLowerCase() !== cur.commit.toLowerCase();
|
|
387
|
+
if (boundToOldRevision && !changedListSupplied) {
|
|
388
|
+
invalidatedEvidence.push({ evidenceId: ref.id, reason: 'revision_changed' });
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
validEvidence.push(ref);
|
|
393
|
+
}
|
|
394
|
+
const invalidIds = new Set(invalidatedEvidence.map((e) => e.evidenceId));
|
|
395
|
+
const reopenedHypothesisIds = input.checkpoint.hypotheses
|
|
396
|
+
.filter((h) => h.status !== 'open' && h.evidenceIds.some((id) => invalidIds.has(id)))
|
|
397
|
+
.map((h) => h.id);
|
|
398
|
+
const staleVerificationCount = input.checkpoint.verification.filter((v) => {
|
|
399
|
+
const cur = current.get(v.revision.repo);
|
|
400
|
+
if (cur === undefined)
|
|
401
|
+
return true;
|
|
402
|
+
if (cur.commit.toLowerCase() !== v.revision.commit.toLowerCase())
|
|
403
|
+
return true;
|
|
404
|
+
if (v.patchRef !== null && input.checkpoint.patchRef !== null && v.patchRef.diffHash !== null && input.checkpoint.patchRef.diffHash !== null) {
|
|
405
|
+
return v.patchRef.diffHash !== input.checkpoint.patchRef.diffHash;
|
|
406
|
+
}
|
|
407
|
+
return false;
|
|
408
|
+
}).length;
|
|
409
|
+
return {
|
|
410
|
+
staleRevisions,
|
|
411
|
+
validEvidence,
|
|
412
|
+
invalidatedEvidence,
|
|
413
|
+
reopenedHypothesisIds,
|
|
414
|
+
staleVerificationCount,
|
|
415
|
+
policyChanged,
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
/** Stable, order-independent serialization for cache keys. */
|
|
419
|
+
function serializeRevisionMap(map) {
|
|
420
|
+
return [...map]
|
|
421
|
+
.sort((a, b) => a.repo.localeCompare(b.repo))
|
|
422
|
+
.map((e) => `${e.repo}@${e.commit.toLowerCase()}${e.dirty ? `+dirty(${[...e.uncommittedFiles].sort().join(',')})` : ''}`)
|
|
423
|
+
.join(';');
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Cache key material: task + repos/revisions/worktree state + policy + scope.
|
|
427
|
+
* Callers hash this (sha256) — hashing is left to the runtime so contracts stay
|
|
428
|
+
* dependency-free. The task text alone is never a sufficient key.
|
|
429
|
+
*/
|
|
430
|
+
function buildEngineeringContextCacheMaterial(input) {
|
|
431
|
+
return [
|
|
432
|
+
`task=${input.taskId}`,
|
|
433
|
+
`rev=${serializeRevisionMap(input.revisionMap)}`,
|
|
434
|
+
`policy=${input.policyVersion ?? 'none'}`,
|
|
435
|
+
`scope=${input.scopeKey}`,
|
|
436
|
+
`step=${input.step ?? 'none'}`,
|
|
437
|
+
].join('|');
|
|
438
|
+
}
|
|
439
|
+
/** Rough token estimate for budget accounting (4 chars ≈ 1 token). */
|
|
440
|
+
function estimateTokensFromChars(chars) {
|
|
441
|
+
return Math.ceil(Math.max(0, chars) / 4);
|
|
442
|
+
}
|
|
443
|
+
// ─── Single persistence path: execution_tasks.metadata.stage_metadata ─────────
|
|
444
|
+
/**
|
|
445
|
+
* The ONLY place a task checkpoint is stored. It rides the existing durable
|
|
446
|
+
* execution spine (CAN-021) as `execution_tasks.metadata.stage_metadata[KEY]`;
|
|
447
|
+
* there is no artifact table, no second store, no history table. Sequence and
|
|
448
|
+
* verification history live inside the payload.
|
|
449
|
+
*/
|
|
450
|
+
exports.ENGINEERING_CHECKPOINT_STAGE_METADATA_KEY = 'engineeringCheckpoint';
|
|
451
|
+
/** Stage id that routes brief preparation through the cheaper model policy in executeStage. */
|
|
452
|
+
exports.ENGINEERING_BRIEF_PREPARATION_STAGE_ID = 'engineering_brief_preparation';
|
|
453
|
+
exports.CheckpointMissReasonSchema = zod_1.z.enum([
|
|
454
|
+
'stage_metadata_missing',
|
|
455
|
+
'checkpoint_absent',
|
|
456
|
+
'checkpoint_invalid',
|
|
457
|
+
]);
|
|
458
|
+
/** Defensive reader for stage metadata; never throws. */
|
|
459
|
+
function readTaskCheckpointFromStageMetadata(stageMetadata) {
|
|
460
|
+
if (stageMetadata === null || typeof stageMetadata !== 'object' || Array.isArray(stageMetadata)) {
|
|
461
|
+
return { checkpoint: null, missReason: 'stage_metadata_missing' };
|
|
462
|
+
}
|
|
463
|
+
const nested = stageMetadata[exports.ENGINEERING_CHECKPOINT_STAGE_METADATA_KEY];
|
|
464
|
+
if (nested === undefined) {
|
|
465
|
+
return { checkpoint: null, missReason: 'checkpoint_absent' };
|
|
466
|
+
}
|
|
467
|
+
const parsed = exports.TaskCheckpointPayloadSchema.safeParse(nested);
|
|
468
|
+
if (!parsed.success) {
|
|
469
|
+
return { checkpoint: null, missReason: 'checkpoint_invalid' };
|
|
470
|
+
}
|
|
471
|
+
return { checkpoint: parsed.data, missReason: null };
|
|
472
|
+
}
|
|
473
|
+
/** Merge a checkpoint into stage metadata (pure). */
|
|
474
|
+
function mergeTaskCheckpointIntoStageMetadata(stageMetadata, checkpoint) {
|
|
475
|
+
return { ...(stageMetadata ?? {}), [exports.ENGINEERING_CHECKPOINT_STAGE_METADATA_KEY]: checkpoint };
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* A shared contract changed at exactly (repo, previousRevision → nextRevision).
|
|
479
|
+
* Only evidence observed at that producer revision is invalidated; everything
|
|
480
|
+
* else is preserved. Producer tests passing never proves a consumer: every
|
|
481
|
+
* consumer entry whose installed version of `packageName` is unknown or still
|
|
482
|
+
* the previous one receives its own verification command.
|
|
483
|
+
*/
|
|
484
|
+
function computeContractChangeInvalidation(input) {
|
|
485
|
+
const prev = input.changed.previousRevision.toLowerCase();
|
|
486
|
+
const invalidatedEvidenceIds = input.evidence
|
|
487
|
+
.filter((item) => item.repo === input.changed.repo && item.revision !== null && item.revision.toLowerCase() === prev)
|
|
488
|
+
.map((item) => item.id);
|
|
489
|
+
const invalidated = new Set(invalidatedEvidenceIds);
|
|
490
|
+
const preservedEvidenceIds = input.evidence.filter((item) => !invalidated.has(item.id)).map((item) => item.id);
|
|
491
|
+
const consumerChecks = input.revisionMap
|
|
492
|
+
.filter((entry) => {
|
|
493
|
+
if (entry.role !== 'consumer')
|
|
494
|
+
return false;
|
|
495
|
+
const installed = entry.installedVersions?.[input.changed.packageName];
|
|
496
|
+
if (installed === undefined)
|
|
497
|
+
return true;
|
|
498
|
+
return input.changed.previousVersion === undefined || input.changed.previousVersion === null
|
|
499
|
+
? true
|
|
500
|
+
: installed === input.changed.previousVersion;
|
|
501
|
+
})
|
|
502
|
+
.map((entry) => ({
|
|
503
|
+
repo: entry.repo,
|
|
504
|
+
command: `pnpm test -- ${input.changed.packageName}`,
|
|
505
|
+
cwd: entry.repo,
|
|
506
|
+
reason: 'consumer must be verified against the new producer revision',
|
|
507
|
+
}));
|
|
508
|
+
return { invalidatedEvidenceIds, preservedEvidenceIds, consumerChecks };
|
|
509
|
+
}
|
|
510
|
+
// ─── Trace / diagnostics (why can or cannot a fresh agent resume) ──────────────
|
|
511
|
+
exports.EngineeringContextMissingReasonSchema = zod_1.z.enum([
|
|
512
|
+
'no_matches',
|
|
513
|
+
'source_unavailable',
|
|
514
|
+
'not_approved',
|
|
515
|
+
'retrieval_failed',
|
|
516
|
+
'stale_revision',
|
|
517
|
+
]);
|
|
518
|
+
exports.EngineeringContextTraceSchema = zod_1.z.object({
|
|
519
|
+
taskReachedNeuraLoom: zod_1.z.boolean(),
|
|
520
|
+
cortexTaskId: zod_1.z.string().nullable(),
|
|
521
|
+
executionRunId: zod_1.z.string().uuid().nullable(),
|
|
522
|
+
executionTaskId: zod_1.z.string().uuid().nullable(),
|
|
523
|
+
requestedRevision: zod_1.z.string().nullable(),
|
|
524
|
+
indexedRevision: zod_1.z.string().nullable(),
|
|
525
|
+
indexedRevisionMatches: zod_1.z.boolean().nullable(),
|
|
526
|
+
missingContextReason: exports.EngineeringContextMissingReasonSchema.nullable(),
|
|
527
|
+
checkpointMissReason: exports.CheckpointMissReasonSchema.nullable(),
|
|
528
|
+
sequence: zod_1.z.number().int().min(0).nullable(),
|
|
529
|
+
verificationTestedPatch: zod_1.z.boolean(),
|
|
530
|
+
canResume: zod_1.z.boolean(),
|
|
531
|
+
nextAction: zod_1.z.string().nullable(),
|
|
532
|
+
});
|
|
533
|
+
function revisionsMatch(a, b) {
|
|
534
|
+
if (a === null || b === null)
|
|
535
|
+
return null;
|
|
536
|
+
const x = a.toLowerCase();
|
|
537
|
+
const y = b.toLowerCase();
|
|
538
|
+
return x.length >= 7 && y.length >= 7 && (x.startsWith(y) || y.startsWith(x));
|
|
539
|
+
}
|
|
540
|
+
function diagnoseEngineeringContext(input) {
|
|
541
|
+
const cp = input.checkpoint;
|
|
542
|
+
const primary = cp?.revisionMap.find((e) => e.role === 'primary') ?? cp?.revisionMap[0] ?? null;
|
|
543
|
+
const requestedRevision = primary?.commit ?? null;
|
|
544
|
+
const indexedRevisionMatches = revisionsMatch(requestedRevision, input.indexedRevision);
|
|
545
|
+
const verificationTestedPatch = cp !== null &&
|
|
546
|
+
cp.patchRef !== null &&
|
|
547
|
+
cp.verification.some((v) => v.status !== 'not_run' &&
|
|
548
|
+
v.patchRef !== null &&
|
|
549
|
+
((v.patchRef.diffHash !== null && v.patchRef.diffHash === cp.patchRef?.diffHash) ||
|
|
550
|
+
(v.patchRef.headSha !== null && v.patchRef.headSha === cp.patchRef?.headSha)));
|
|
551
|
+
return exports.EngineeringContextTraceSchema.parse({
|
|
552
|
+
taskReachedNeuraLoom: cp !== null,
|
|
553
|
+
cortexTaskId: cp?.cortexTaskId ?? null,
|
|
554
|
+
executionRunId: cp?.executionRunId ?? null,
|
|
555
|
+
executionTaskId: cp?.executionTaskId ?? null,
|
|
556
|
+
requestedRevision,
|
|
557
|
+
indexedRevision: input.indexedRevision,
|
|
558
|
+
indexedRevisionMatches,
|
|
559
|
+
missingContextReason: indexedRevisionMatches === false ? 'stale_revision' : input.missingContextReason,
|
|
560
|
+
checkpointMissReason: cp === null ? input.checkpointMissReason : null,
|
|
561
|
+
sequence: cp?.sequence ?? null,
|
|
562
|
+
verificationTestedPatch,
|
|
563
|
+
canResume: cp !== null && cp.nextAction.length > 0,
|
|
564
|
+
nextAction: cp?.nextAction ?? null,
|
|
565
|
+
});
|
|
566
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ExistingCapabilityClassification — payload schema for workflow_artifacts rows with
|
|
3
|
+
* artifact_type='existingCapabilityClassification'.
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
export declare const CapabilityStatusSchema: z.ZodEnum<["present", "partial", "missing", "unknown"]>;
|
|
7
|
+
export type CapabilityStatus = z.infer<typeof CapabilityStatusSchema>;
|
|
8
|
+
export declare const CapabilityEntrySchema: z.ZodObject<{
|
|
9
|
+
capabilityId: z.ZodString;
|
|
10
|
+
label: z.ZodString;
|
|
11
|
+
status: z.ZodEnum<["present", "partial", "missing", "unknown"]>;
|
|
12
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
status: "unknown" | "partial" | "missing" | "present";
|
|
16
|
+
label: string;
|
|
17
|
+
evidence_refs: string[];
|
|
18
|
+
capabilityId: string;
|
|
19
|
+
notes?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
status: "unknown" | "partial" | "missing" | "present";
|
|
22
|
+
label: string;
|
|
23
|
+
evidence_refs: string[];
|
|
24
|
+
capabilityId: string;
|
|
25
|
+
notes?: string | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export type CapabilityEntry = z.infer<typeof CapabilityEntrySchema>;
|
|
28
|
+
export declare const ExistingCapabilityPostureSchema: z.ZodEnum<["repair_required", "incremental_improvement", "maintain"]>;
|
|
29
|
+
export type ExistingCapabilityPosture = z.infer<typeof ExistingCapabilityPostureSchema>;
|
|
30
|
+
export declare const ExistingCapabilityClassificationPayloadSchema: z.ZodObject<{
|
|
31
|
+
schemaVersion: z.ZodLiteral<"1.0.0">;
|
|
32
|
+
generatedAt: z.ZodString;
|
|
33
|
+
sourceFindingsRegisterId: z.ZodString;
|
|
34
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
35
|
+
capabilityId: z.ZodString;
|
|
36
|
+
label: z.ZodString;
|
|
37
|
+
status: z.ZodEnum<["present", "partial", "missing", "unknown"]>;
|
|
38
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
39
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
status: "unknown" | "partial" | "missing" | "present";
|
|
42
|
+
label: string;
|
|
43
|
+
evidence_refs: string[];
|
|
44
|
+
capabilityId: string;
|
|
45
|
+
notes?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
status: "unknown" | "partial" | "missing" | "present";
|
|
48
|
+
label: string;
|
|
49
|
+
evidence_refs: string[];
|
|
50
|
+
capabilityId: string;
|
|
51
|
+
notes?: string | undefined;
|
|
52
|
+
}>, "many">;
|
|
53
|
+
overallPosture: z.ZodEnum<["repair_required", "incremental_improvement", "maintain"]>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
schemaVersion: "1.0.0";
|
|
56
|
+
capabilities: {
|
|
57
|
+
status: "unknown" | "partial" | "missing" | "present";
|
|
58
|
+
label: string;
|
|
59
|
+
evidence_refs: string[];
|
|
60
|
+
capabilityId: string;
|
|
61
|
+
notes?: string | undefined;
|
|
62
|
+
}[];
|
|
63
|
+
generatedAt: string;
|
|
64
|
+
sourceFindingsRegisterId: string;
|
|
65
|
+
overallPosture: "maintain" | "repair_required" | "incremental_improvement";
|
|
66
|
+
}, {
|
|
67
|
+
schemaVersion: "1.0.0";
|
|
68
|
+
capabilities: {
|
|
69
|
+
status: "unknown" | "partial" | "missing" | "present";
|
|
70
|
+
label: string;
|
|
71
|
+
evidence_refs: string[];
|
|
72
|
+
capabilityId: string;
|
|
73
|
+
notes?: string | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
generatedAt: string;
|
|
76
|
+
sourceFindingsRegisterId: string;
|
|
77
|
+
overallPosture: "maintain" | "repair_required" | "incremental_improvement";
|
|
78
|
+
}>;
|
|
79
|
+
export type ExistingCapabilityClassificationPayload = z.infer<typeof ExistingCapabilityClassificationPayloadSchema>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ExistingCapabilityClassification — payload schema for workflow_artifacts rows with
|
|
4
|
+
* artifact_type='existingCapabilityClassification'.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ExistingCapabilityClassificationPayloadSchema = exports.ExistingCapabilityPostureSchema = exports.CapabilityEntrySchema = exports.CapabilityStatusSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.CapabilityStatusSchema = zod_1.z.enum(['present', 'partial', 'missing', 'unknown']);
|
|
10
|
+
exports.CapabilityEntrySchema = zod_1.z.object({
|
|
11
|
+
capabilityId: zod_1.z.string().min(1),
|
|
12
|
+
label: zod_1.z.string().min(1),
|
|
13
|
+
status: exports.CapabilityStatusSchema,
|
|
14
|
+
evidence_refs: zod_1.z.array(zod_1.z.string().min(1)),
|
|
15
|
+
notes: zod_1.z.string().optional(),
|
|
16
|
+
});
|
|
17
|
+
exports.ExistingCapabilityPostureSchema = zod_1.z.enum([
|
|
18
|
+
'repair_required',
|
|
19
|
+
'incremental_improvement',
|
|
20
|
+
'maintain',
|
|
21
|
+
]);
|
|
22
|
+
exports.ExistingCapabilityClassificationPayloadSchema = zod_1.z.object({
|
|
23
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
24
|
+
generatedAt: zod_1.z.string().datetime(),
|
|
25
|
+
sourceFindingsRegisterId: zod_1.z.string().uuid(),
|
|
26
|
+
capabilities: zod_1.z.array(exports.CapabilityEntrySchema).min(1),
|
|
27
|
+
overallPosture: exports.ExistingCapabilityPostureSchema,
|
|
28
|
+
});
|