@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,828 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Cortex × NeuraLoom bridge event payloads + ingestion receipts (v1.0.0).
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.githubReadResultSchema = exports.githubReadRequestSchema = exports.CodexRunnerCredentialRequestSchema = exports.CodexExecutorRuntimeResultPayloadSchema = exports.CodexExecutorRuntimeRequestPayloadSchema = exports.CodexExecutorWorkflowResultPayloadSchema = exports.CodexExecutorWorkflowRequestPayloadSchema = exports.CodexExecutorAuthorizationResultPayloadSchema = exports.CodexExecutorAuthorizationRequestPayloadSchema = exports.CodexExecutorRuntimeJobSchema = exports.CodexSignedSandboxWorkerPayloadSchema = exports.CodexSignedWorkerPayloadSchema = exports.CodexExecutorApprovedScopeSchema = exports.CodexExecutorRuntimeIdentitySchema = exports.CortexBridgeIngestionReceiptApiResponseSchema = exports.NeuraloomIngestionReceiptPayloadSchema = exports.CortexIngestionReceiptPayloadSchema = exports.ProductReleasePackageMvpBridgePayloadSchema = exports.DocDriftDetectedPayloadSchema = exports.DocDraftReadyPayloadSchema = exports.GuardianViolationEventPayloadSchema = exports.EngineeringCheckpointRecordedPayloadSchema = exports.EngineeringCheckpointVerificationSummarySchema = exports.EngineeringCheckpointRevisionSummarySchema = exports.ProofRunRecordedPayloadSchema = exports.PullRequestReadyPayloadSchema = exports.ImplementationPlanReadyPayloadSchema = exports.RepoFindingTaskPayloadSchema = exports.RepoIntelligenceResultPayloadSchema = exports.FindingReconciliationEvidenceSchema = exports.REPO_INTEL_ACTIVE_FINDING_IDS_MAX = exports.NeuraloomGraphGapsSchema = exports.NEURALOOM_GRAPH_GAPS_MAX_NODES = exports.NeuraloomGraphGapNodeSchema = exports.NeuraloomGraphGapStatusSchema = exports.NeuraloomGraphGapSeveritySchema = exports.NEURALOOM_GRAPH_GAPS_VERSION = exports.TaskGithubIssueRequestPayloadSchema = exports.EngineeringIssueResolutionPayloadSchema = exports.EngineeringIssueRecoveryReceiptSchema = exports.EngineeringIssueRecoveryProofSchema = exports.CortexTaskGithubIssuePointerSchema = exports.PortfolioRepoLinkPayloadSchema = exports.CreativeWorkflowResultPayloadSchema = exports.BrandContextLineageSchema = exports.CreativeWorkflowRequestPayloadSchema = exports.RepoIntelligenceRequestPayloadSchema = exports.BridgeIngestionReceiptStatusSchema = exports.BridgeProofKindSchema = exports.BridgeFindingSeveritySchema = void 0;
|
|
7
|
+
exports.BRIDGE_EVENT_PAYLOAD_SCHEMAS = void 0;
|
|
8
|
+
exports.githubIssueUrlMatches = githubIssueUrlMatches;
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
const film_bridge_events_schema_1 = require("./film-bridge-events.schema");
|
|
11
|
+
const product_release_package_schema_1 = require("./product-release-package.schema");
|
|
12
|
+
const engineering_context_schema_1 = require("../workflow/engineering-context.schema");
|
|
13
|
+
// ─── Shared primitives ────────────────────────────────────────────────────────
|
|
14
|
+
exports.BridgeFindingSeveritySchema = zod_1.z.enum([
|
|
15
|
+
'critical',
|
|
16
|
+
'high',
|
|
17
|
+
'medium',
|
|
18
|
+
'low',
|
|
19
|
+
'info',
|
|
20
|
+
]);
|
|
21
|
+
exports.BridgeProofKindSchema = zod_1.z.enum(['browser', 'artifact', 'ci']);
|
|
22
|
+
exports.BridgeIngestionReceiptStatusSchema = zod_1.z.enum([
|
|
23
|
+
'accepted',
|
|
24
|
+
'duplicate',
|
|
25
|
+
'rejected',
|
|
26
|
+
]);
|
|
27
|
+
// ─── Cortex → NeuraLoom ───────────────────────────────────────────────────────
|
|
28
|
+
exports.RepoIntelligenceRequestPayloadSchema = zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
31
|
+
requestKind: zod_1.z.enum(['full_scan', 'incremental_scan', 'drift_only']),
|
|
32
|
+
repoFullName: zod_1.z.string().min(1),
|
|
33
|
+
defaultBranch: zod_1.z.string().min(1).optional(),
|
|
34
|
+
scanDepth: zod_1.z.enum(['standard', 'deep']).default('standard'),
|
|
35
|
+
includeEmbeddings: zod_1.z.boolean().default(false),
|
|
36
|
+
engineeringIssueResolution: zod_1.z.lazy(() => exports.EngineeringIssueResolutionPayloadSchema).optional(),
|
|
37
|
+
correlationId: zod_1.z.string().optional(),
|
|
38
|
+
})
|
|
39
|
+
.strict();
|
|
40
|
+
exports.CreativeWorkflowRequestPayloadSchema = zod_1.z
|
|
41
|
+
.object({
|
|
42
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
43
|
+
workflowKind: zod_1.z.enum([
|
|
44
|
+
'software_app',
|
|
45
|
+
'film_production',
|
|
46
|
+
'nonfiction_book',
|
|
47
|
+
'research_report',
|
|
48
|
+
]),
|
|
49
|
+
neuraloomProjectId: zod_1.z.string().uuid(),
|
|
50
|
+
requestedStepId: zod_1.z.string().min(1),
|
|
51
|
+
operatorNotes: zod_1.z.string().optional(),
|
|
52
|
+
correlationId: zod_1.z.string().optional(),
|
|
53
|
+
brandContext: zod_1.z
|
|
54
|
+
.object({
|
|
55
|
+
schema_version: zod_1.z.literal('1.0.0'),
|
|
56
|
+
generated_at: zod_1.z.string().datetime(),
|
|
57
|
+
brand_id: zod_1.z.string().uuid(),
|
|
58
|
+
brand_slug: zod_1.z.string().min(1),
|
|
59
|
+
graph_version_id: zod_1.z.string().uuid(),
|
|
60
|
+
marketing_profile_version_id: zod_1.z.string().uuid(),
|
|
61
|
+
configuration: zod_1.z.record(zod_1.z.unknown()),
|
|
62
|
+
claims: zod_1.z.array(zod_1.z.object({
|
|
63
|
+
id: zod_1.z.string().uuid(),
|
|
64
|
+
claim_kind: zod_1.z.string().min(1),
|
|
65
|
+
claim_text: zod_1.z.string().min(1),
|
|
66
|
+
severity: zod_1.z.string().min(1),
|
|
67
|
+
rationale: zod_1.z.string().nullable().optional(),
|
|
68
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).default({}),
|
|
69
|
+
}).strict()),
|
|
70
|
+
policy: zod_1.z.object({
|
|
71
|
+
authority: zod_1.z.literal('cortex'),
|
|
72
|
+
allow_generated_logos: zod_1.z.literal(false),
|
|
73
|
+
require_canonical_logo_for_branded_visuals: zod_1.z.literal(true),
|
|
74
|
+
external_publish_requires_human_approval: zod_1.z.literal(true),
|
|
75
|
+
allowed_asset_ids: zod_1.z.array(zod_1.z.string().uuid()),
|
|
76
|
+
required_lineage_fields: zod_1.z.array(zod_1.z.enum([
|
|
77
|
+
'context_hash',
|
|
78
|
+
'brand_id',
|
|
79
|
+
'brand_slug',
|
|
80
|
+
'graph_version_id',
|
|
81
|
+
'marketing_profile_version_id',
|
|
82
|
+
'used_assets',
|
|
83
|
+
])),
|
|
84
|
+
}).strict(),
|
|
85
|
+
context_hash: zod_1.z.string().regex(/^[a-f0-9]{64}$/i),
|
|
86
|
+
})
|
|
87
|
+
.strict(),
|
|
88
|
+
})
|
|
89
|
+
.strict();
|
|
90
|
+
exports.BrandContextLineageSchema = zod_1.z.object({
|
|
91
|
+
schema_version: zod_1.z.literal('1.0.0'),
|
|
92
|
+
context_hash: zod_1.z.string().regex(/^[a-f0-9]{64}$/i),
|
|
93
|
+
brand_id: zod_1.z.string().uuid(),
|
|
94
|
+
brand_slug: zod_1.z.string().min(1),
|
|
95
|
+
graph_version_id: zod_1.z.string().uuid(),
|
|
96
|
+
marketing_profile_version_id: zod_1.z.string().uuid(),
|
|
97
|
+
output_kind: zod_1.z.enum(['copy', 'image', 'video', 'document', 'campaign']),
|
|
98
|
+
used_assets: zod_1.z.array(zod_1.z.object({
|
|
99
|
+
asset_id: zod_1.z.string().uuid(),
|
|
100
|
+
checksum_sha256: zod_1.z.string().regex(/^[a-f0-9]{64}$/i).nullable().optional(),
|
|
101
|
+
}).strict()),
|
|
102
|
+
generated_logo: zod_1.z.boolean().default(false),
|
|
103
|
+
lineage_complete: zod_1.z.boolean(),
|
|
104
|
+
}).strict();
|
|
105
|
+
exports.CreativeWorkflowResultPayloadSchema = zod_1.z.object({
|
|
106
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
107
|
+
neuraloomProjectId: zod_1.z.string().uuid(),
|
|
108
|
+
workflowArtifactId: zod_1.z.string().uuid(),
|
|
109
|
+
workflowStepId: zod_1.z.string().min(1),
|
|
110
|
+
artifactType: zod_1.z.string().min(1),
|
|
111
|
+
status: zod_1.z.literal('accepted'),
|
|
112
|
+
lineage: exports.BrandContextLineageSchema,
|
|
113
|
+
}).strict();
|
|
114
|
+
exports.PortfolioRepoLinkPayloadSchema = zod_1.z
|
|
115
|
+
.object({
|
|
116
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
117
|
+
portfolioId: zod_1.z.string().uuid(),
|
|
118
|
+
repoFullName: zod_1.z.string().min(1),
|
|
119
|
+
defaultBranch: zod_1.z.string().min(1),
|
|
120
|
+
linkRole: zod_1.z.enum(['primary', 'mirror', 'reference']),
|
|
121
|
+
neuraloomProjectId: zod_1.z.string().uuid().optional(),
|
|
122
|
+
correlationId: zod_1.z.string().optional(),
|
|
123
|
+
})
|
|
124
|
+
.strict();
|
|
125
|
+
function githubIssueUrlMatches(url, repoFullName, number) {
|
|
126
|
+
const parts = /^https:\/\/github\.com\/([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)\/issues\/([1-9][0-9]*)$/.exec(url);
|
|
127
|
+
return parts !== null && Number.isSafeInteger(number) && number > 0 &&
|
|
128
|
+
`${parts[1]}/${parts[2]}`.toLowerCase() === repoFullName.toLowerCase() &&
|
|
129
|
+
parts[3] === String(number);
|
|
130
|
+
}
|
|
131
|
+
/** Explicit GitHub lineage; repository and remote issue existence are checked by the projector. */
|
|
132
|
+
exports.CortexTaskGithubIssuePointerSchema = zod_1.z.object({
|
|
133
|
+
number: zod_1.z.number().int().positive(),
|
|
134
|
+
url: zod_1.z.string().url(),
|
|
135
|
+
epic: zod_1.z.object({
|
|
136
|
+
repoFullName: zod_1.z.string().min(1),
|
|
137
|
+
number: zod_1.z.number().int().positive(),
|
|
138
|
+
url: zod_1.z.string().url(),
|
|
139
|
+
}).strict(),
|
|
140
|
+
}).strict().superRefine((pointer, context) => {
|
|
141
|
+
if (!githubIssueUrlMatches(pointer.epic.url, pointer.epic.repoFullName, pointer.epic.number)) {
|
|
142
|
+
context.addIssue({ code: zod_1.z.ZodIssueCode.custom, path: ['epic', 'url'], message: 'Epic URL must match its repository and issue number' });
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
/** Exact original wire bytes bind caller evidence to the immutable authenticated delivery. */
|
|
146
|
+
exports.EngineeringIssueRecoveryProofSchema = zod_1.z.object({
|
|
147
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
148
|
+
originalEventId: zod_1.z.string().uuid(),
|
|
149
|
+
originalIdempotencyKey: zod_1.z.string().min(1),
|
|
150
|
+
originalPayloadHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
151
|
+
scanRunId: zod_1.z.string().uuid(),
|
|
152
|
+
snapshotArtifactId: zod_1.z.string().uuid(),
|
|
153
|
+
commitSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
154
|
+
originalEnvelopeBody: zod_1.z.string().min(1).max(32_768).refine(value => new TextEncoder().encode(value).byteLength <= 32_768, 'Original envelope exceeds UTF8 byte bound'),
|
|
155
|
+
}).strict();
|
|
156
|
+
exports.EngineeringIssueRecoveryReceiptSchema = exports.EngineeringIssueRecoveryProofSchema.extend({
|
|
157
|
+
githubIssue: exports.CortexTaskGithubIssuePointerSchema,
|
|
158
|
+
neuraloomTaskId: zod_1.z.string().uuid(),
|
|
159
|
+
cortexTaskId: zod_1.z.string().uuid(),
|
|
160
|
+
findingId: zod_1.z.string().min(1),
|
|
161
|
+
canonicalFindingId: zod_1.z.string().min(1),
|
|
162
|
+
repoFullName: zod_1.z.string().min(1),
|
|
163
|
+
neuraloomProjectId: zod_1.z.string().uuid(),
|
|
164
|
+
brandSlug: zod_1.z.string().min(1),
|
|
165
|
+
productSlug: zod_1.z.string().min(1).optional(),
|
|
166
|
+
}).strict().superRefine((receipt, context) => {
|
|
167
|
+
if (!githubIssueUrlMatches(receipt.githubIssue.url, receipt.repoFullName, receipt.githubIssue.number)) {
|
|
168
|
+
context.addIssue({ code: zod_1.z.ZodIssueCode.custom, path: ['githubIssue'], message: 'Recovery issue must match repository' });
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
exports.EngineeringIssueResolutionPayloadSchema = zod_1.z.object({
|
|
172
|
+
cortexTaskId: zod_1.z.string().uuid(),
|
|
173
|
+
findingId: zod_1.z.string().min(1),
|
|
174
|
+
title: zod_1.z.string().min(1).max(256),
|
|
175
|
+
body: zod_1.z.string().min(1),
|
|
176
|
+
labels: zod_1.z.array(zod_1.z.string().min(1)),
|
|
177
|
+
priority: zod_1.z.enum(['low', 'medium', 'high', 'urgent']),
|
|
178
|
+
epic: zod_1.z.object({ repoFullName: zod_1.z.string().min(1), number: zod_1.z.number().int().positive(), url: zod_1.z.string().url() }).strict(),
|
|
179
|
+
githubIssue: exports.CortexTaskGithubIssuePointerSchema.optional(),
|
|
180
|
+
recovery: exports.EngineeringIssueRecoveryProofSchema.optional(),
|
|
181
|
+
}).strict().superRefine((resolution, context) => {
|
|
182
|
+
if (!githubIssueUrlMatches(resolution.epic.url, resolution.epic.repoFullName, resolution.epic.number)) {
|
|
183
|
+
context.addIssue({ code: zod_1.z.ZodIssueCode.custom, path: ['epic', 'url'], message: 'Epic URL must match its repository and issue number' });
|
|
184
|
+
}
|
|
185
|
+
if (resolution.githubIssue !== undefined && (resolution.githubIssue.epic.repoFullName.toLowerCase() !== resolution.epic.repoFullName.toLowerCase() ||
|
|
186
|
+
resolution.githubIssue.epic.number !== resolution.epic.number ||
|
|
187
|
+
resolution.githubIssue.epic.url.toLowerCase() !== resolution.epic.url.toLowerCase())) {
|
|
188
|
+
context.addIssue({ code: zod_1.z.ZodIssueCode.custom, path: ['githubIssue', 'epic'], message: 'Existing issue must belong to the selected epic' });
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
exports.TaskGithubIssueRequestPayloadSchema = zod_1.z
|
|
192
|
+
.object({
|
|
193
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
194
|
+
/** Cortex `graph.tasks.id` — carried through as the fingerprint/dedupe key and the receipt task linkage. */
|
|
195
|
+
cortexTaskId: zod_1.z.string().uuid(),
|
|
196
|
+
githubIssue: exports.CortexTaskGithubIssuePointerSchema.optional(),
|
|
197
|
+
repoFullName: zod_1.z.string().min(1),
|
|
198
|
+
title: zod_1.z.string().min(1).max(256),
|
|
199
|
+
body: zod_1.z.string().min(1),
|
|
200
|
+
labels: zod_1.z.array(zod_1.z.string().min(1)).default([]),
|
|
201
|
+
priority: zod_1.z.enum(['low', 'medium', 'high', 'urgent']).default('medium'),
|
|
202
|
+
sourceUrl: zod_1.z.string().url().optional(),
|
|
203
|
+
correlationId: zod_1.z.string().optional(),
|
|
204
|
+
})
|
|
205
|
+
.strict()
|
|
206
|
+
.superRefine((payload, context) => {
|
|
207
|
+
if (payload.githubIssue !== undefined && !githubIssueUrlMatches(payload.githubIssue.url, payload.repoFullName, payload.githubIssue.number)) {
|
|
208
|
+
context.addIssue({ code: zod_1.z.ZodIssueCode.custom, path: ['githubIssue', 'url'], message: 'Issue URL must match the task repository and issue number' });
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
// ─── NeuraLoom → Cortex ───────────────────────────────────────────────────────
|
|
212
|
+
/**
|
|
213
|
+
* Graph gap nodes (Cortex epic 1019 slice 3) — an OPTIONAL, versioned block on
|
|
214
|
+
* `RepoIntelligenceResult`. Byte-compatible mirror of Cortex
|
|
215
|
+
* `neuraloomGraphGapsSchema` (`packages/contracts/src/schemas/codebase-health.ts`
|
|
216
|
+
* in NeuroNetIQ/cortex): same keys, same bounds, same regexes, `.strict()`.
|
|
217
|
+
*
|
|
218
|
+
* Cortex mints one `graph.tasks` row per `open` (nodeId, gapCode) and completes
|
|
219
|
+
* that task when a later payload reports the same (nodeId, gapCode) `resolved`.
|
|
220
|
+
* A node absent from a later payload is never read as resolved, so `nodeId`
|
|
221
|
+
* and `gapCode` must be stable across scans. Omitting the block keeps the
|
|
222
|
+
* payload valid for Cortex builds that predate slice 3 (nothing minted/closed).
|
|
223
|
+
*/
|
|
224
|
+
exports.NEURALOOM_GRAPH_GAPS_VERSION = '1.0.0';
|
|
225
|
+
/** Cortex `FINDING_SEVERITY` (P0 urgent … P3 low) — distinct from `BridgeFindingSeveritySchema`. */
|
|
226
|
+
exports.NeuraloomGraphGapSeveritySchema = zod_1.z.enum(['P0', 'P1', 'P2', 'P3']);
|
|
227
|
+
exports.NeuraloomGraphGapStatusSchema = zod_1.z.enum(['open', 'resolved']);
|
|
228
|
+
exports.NeuraloomGraphGapNodeSchema = zod_1.z
|
|
229
|
+
.object({
|
|
230
|
+
/** Stable NeuraLoom graph node id (identical across rescans). */
|
|
231
|
+
nodeId: zod_1.z
|
|
232
|
+
.string()
|
|
233
|
+
.trim()
|
|
234
|
+
.min(1)
|
|
235
|
+
.max(200)
|
|
236
|
+
.regex(/^[^\s|]+$/, 'must not contain whitespace or "|"'),
|
|
237
|
+
/** Stable gap code within the node, e.g. `not_wired`, `missing_test`. */
|
|
238
|
+
gapCode: zod_1.z
|
|
239
|
+
.string()
|
|
240
|
+
.trim()
|
|
241
|
+
.min(1)
|
|
242
|
+
.max(120)
|
|
243
|
+
.regex(/^[a-z0-9][a-z0-9._-]*$/i, 'must be a slug/code (letters, digits, . _ -)'),
|
|
244
|
+
status: exports.NeuraloomGraphGapStatusSchema,
|
|
245
|
+
title: zod_1.z.string().trim().min(1).max(200),
|
|
246
|
+
nextAction: zod_1.z.string().trim().min(1).max(500),
|
|
247
|
+
severity: exports.NeuraloomGraphGapSeveritySchema.default('P2'),
|
|
248
|
+
/** Absolute NeuraLoom URL of the node (evidence deep link). */
|
|
249
|
+
evidenceUrl: zod_1.z.string().url(),
|
|
250
|
+
})
|
|
251
|
+
.strict();
|
|
252
|
+
/** Cortex caps a block at 200 nodes; the sender must never exceed it. */
|
|
253
|
+
exports.NEURALOOM_GRAPH_GAPS_MAX_NODES = 200;
|
|
254
|
+
exports.NeuraloomGraphGapsSchema = zod_1.z
|
|
255
|
+
.object({
|
|
256
|
+
graphGapsVersion: zod_1.z.literal(exports.NEURALOOM_GRAPH_GAPS_VERSION),
|
|
257
|
+
/** NeuraLoom `execution_runs.id` whose state produced this block (null when none). */
|
|
258
|
+
executionRunId: zod_1.z.string().uuid().nullable(),
|
|
259
|
+
/** Absolute NeuraLoom project URL for the task deep link. */
|
|
260
|
+
projectUrl: zod_1.z.string().url().optional(),
|
|
261
|
+
nodes: zod_1.z.array(exports.NeuraloomGraphGapNodeSchema).max(exports.NEURALOOM_GRAPH_GAPS_MAX_NODES),
|
|
262
|
+
})
|
|
263
|
+
.strict();
|
|
264
|
+
/** Upper bound on `RepoIntelligenceResult.activeFindingIds` (byte-compatible with the Cortex mirror). */
|
|
265
|
+
exports.REPO_INTEL_ACTIVE_FINDING_IDS_MAX = 2000;
|
|
266
|
+
exports.FindingReconciliationEvidenceSchema = zod_1.z.object({
|
|
267
|
+
/** Categories whose complete detector family actually ran for this repository and scope. */
|
|
268
|
+
coveredCategories: zod_1.z.array(zod_1.z.string().min(1).max(120).regex(/^[a-z0-9][a-z0-9._-]*$/i)).max(128)
|
|
269
|
+
.refine(categories => new Set(categories).size === categories.length, 'Covered categories must be unique').optional(),
|
|
270
|
+
version: zod_1.z.literal(1), scanId: zod_1.z.string().min(1), projectId: zod_1.z.string().min(1), repositoryId: zod_1.z.string().min(1),
|
|
271
|
+
branch: zod_1.z.string().min(1), commitSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/i),
|
|
272
|
+
startedAt: zod_1.z.string().datetime(), completedAt: zod_1.z.string().datetime(),
|
|
273
|
+
activeSet: zod_1.z.object({ complete: zod_1.z.literal(true), total: zod_1.z.number().int().nonnegative(), idsHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/) }).strict(),
|
|
274
|
+
coverage: zod_1.z.object({ policyHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/), detectorSetHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/), scopeHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/) }).strict(),
|
|
275
|
+
}).strict().refine((value) => Date.parse(value.startedAt) <= Date.parse(value.completedAt), 'Scan completion precedes start');
|
|
276
|
+
exports.RepoIntelligenceResultPayloadSchema = zod_1.z
|
|
277
|
+
.object({
|
|
278
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
279
|
+
scanStatus: zod_1.z.enum(['passed', 'warning', 'failed']),
|
|
280
|
+
repoFullName: zod_1.z.string().min(1),
|
|
281
|
+
commitSha: zod_1.z.string().min(7),
|
|
282
|
+
branch: zod_1.z.string().min(1),
|
|
283
|
+
scanMode: zod_1.z.enum(['standard', 'deep']),
|
|
284
|
+
counts: zod_1.z
|
|
285
|
+
.object({
|
|
286
|
+
filesIndexed: zod_1.z.number().int().min(0),
|
|
287
|
+
routesDetected: zod_1.z.number().int().min(0),
|
|
288
|
+
apiHandlersDetected: zod_1.z.number().int().min(0),
|
|
289
|
+
contractsDetected: zod_1.z.number().int().min(0),
|
|
290
|
+
migrationsDetected: zod_1.z.number().int().min(0),
|
|
291
|
+
driftFindings: zod_1.z.number().int().min(0),
|
|
292
|
+
orphanFindings: zod_1.z.number().int().min(0),
|
|
293
|
+
})
|
|
294
|
+
.strict(),
|
|
295
|
+
repoIntelSnapshotArtifactId: zod_1.z.string().uuid().optional(),
|
|
296
|
+
codeRealityGraphSnapshotArtifactId: zod_1.z.string().uuid().optional(),
|
|
297
|
+
knowledgeGraphSubgraphId: zod_1.z.string().optional(),
|
|
298
|
+
manifestPath: zod_1.z.string().optional(),
|
|
299
|
+
contentHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/i).optional(),
|
|
300
|
+
/** Optional, versioned graph gap nodes (epic 1019 slice 3); see `NeuraloomGraphGapsSchema`. */
|
|
301
|
+
graphGaps: exports.NeuraloomGraphGapsSchema.optional(),
|
|
302
|
+
/**
|
|
303
|
+
* Ids of ALL observed findings, including low severity, present in the
|
|
304
|
+
* completed scan that produced this result — independent of the per-scan
|
|
305
|
+
* `RepoFindingTask` emit cap, so it is the complete "still open" set even when
|
|
306
|
+
* only a page of `RepoFindingTask` events was emitted (NeuraLoom-Mono issue 1825).
|
|
307
|
+
* Cortex closes its `source='neuraloom'` finding tasks whose finding id is absent
|
|
308
|
+
* from this list. Sent only for a completed scan; omitted when findings are
|
|
309
|
+
* unavailable. Sorted severity → runtime scope → id; omitted when the complete
|
|
310
|
+
* set exceeds `REPO_INTEL_ACTIVE_FINDING_IDS_MAX`. Absence alone is not proof
|
|
311
|
+
* of a fix: reconciliation also requires authoritative comparable coverage.
|
|
312
|
+
*/
|
|
313
|
+
activeFindingIds: zod_1.z.array(zod_1.z.string().min(1)).max(exports.REPO_INTEL_ACTIVE_FINDING_IDS_MAX).optional(),
|
|
314
|
+
reconciliationEvidence: exports.FindingReconciliationEvidenceSchema.optional(),
|
|
315
|
+
})
|
|
316
|
+
.strict();
|
|
317
|
+
exports.RepoFindingTaskPayloadSchema = zod_1.z
|
|
318
|
+
.object({
|
|
319
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
320
|
+
findingId: zod_1.z.string().min(1),
|
|
321
|
+
/** Explicit scoped aliases for migrating legacy display-derived identities. */
|
|
322
|
+
legacyFindingIds: zod_1.z.array(zod_1.z.string().min(1).max(2048)).max(4)
|
|
323
|
+
.refine(ids => new Set(ids).size === ids.length, 'Legacy finding IDs must be unique')
|
|
324
|
+
.optional(),
|
|
325
|
+
severity: exports.BridgeFindingSeveritySchema,
|
|
326
|
+
category: zod_1.z.string().min(1),
|
|
327
|
+
title: zod_1.z.string().min(1),
|
|
328
|
+
evidence: zod_1.z.string().min(1),
|
|
329
|
+
recommendedFix: zod_1.z.string().min(1),
|
|
330
|
+
route: zod_1.z.string().optional(),
|
|
331
|
+
apiPath: zod_1.z.string().optional(),
|
|
332
|
+
component: zod_1.z.string().optional(),
|
|
333
|
+
testPath: zod_1.z.string().optional(),
|
|
334
|
+
filePath: zod_1.z.string().optional(),
|
|
335
|
+
firstSeenScanId: zod_1.z.string().min(1),
|
|
336
|
+
lastSeenScanId: zod_1.z.string().min(1),
|
|
337
|
+
})
|
|
338
|
+
.strict();
|
|
339
|
+
exports.ImplementationPlanReadyPayloadSchema = zod_1.z
|
|
340
|
+
.object({
|
|
341
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
342
|
+
planArtifactId: zod_1.z.string().uuid(),
|
|
343
|
+
neuraloomProjectId: zod_1.z.string().uuid(),
|
|
344
|
+
executionRunId: zod_1.z.string().uuid().optional(),
|
|
345
|
+
taskIds: zod_1.z.array(zod_1.z.string().uuid()),
|
|
346
|
+
findingIds: zod_1.z.array(zod_1.z.string().min(1)).default([]),
|
|
347
|
+
/**
|
|
348
|
+
* Stable Cortex task-ledger finding id, `impl-plan:<neuraloomProjectId>:<planArtifactId>`,
|
|
349
|
+
* keyed on the accepted plan artifact rather than the run id (issue #1793). A
|
|
350
|
+
* re-emission for the same accepted plan carries the same `findingId` so Cortex
|
|
351
|
+
* updates one task instead of minting a fresh one per emission. Optional so older
|
|
352
|
+
* Cortex readers that only key off `executionRunId` (kept above, unchanged) still work.
|
|
353
|
+
*/
|
|
354
|
+
findingId: zod_1.z.string().min(1).optional(),
|
|
355
|
+
})
|
|
356
|
+
.strict();
|
|
357
|
+
exports.PullRequestReadyPayloadSchema = zod_1.z
|
|
358
|
+
.object({
|
|
359
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
360
|
+
patchSetId: zod_1.z.string().uuid(),
|
|
361
|
+
pullRequestNumber: zod_1.z.number().int().positive(),
|
|
362
|
+
pullRequestUrl: zod_1.z.string().url(),
|
|
363
|
+
branchName: zod_1.z.string().min(1),
|
|
364
|
+
neuraloomProjectId: zod_1.z.string().uuid(),
|
|
365
|
+
taskIds: zod_1.z.array(zod_1.z.string().uuid()),
|
|
366
|
+
planArtifactId: zod_1.z.string().uuid().optional(),
|
|
367
|
+
commitSha: zod_1.z.string().min(7).optional(),
|
|
368
|
+
executionRunId: zod_1.z.string().uuid().optional(),
|
|
369
|
+
})
|
|
370
|
+
.strict();
|
|
371
|
+
exports.ProofRunRecordedPayloadSchema = zod_1.z
|
|
372
|
+
.object({
|
|
373
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
374
|
+
proofKind: exports.BridgeProofKindSchema,
|
|
375
|
+
proofRunId: zod_1.z.string().uuid(),
|
|
376
|
+
neuraloomProjectId: zod_1.z.string().uuid(),
|
|
377
|
+
workflowStepId: zod_1.z.string().min(1).optional(),
|
|
378
|
+
evidencePath: zod_1.z.string().min(1),
|
|
379
|
+
summary: zod_1.z.string().min(1),
|
|
380
|
+
passed: zod_1.z.boolean(),
|
|
381
|
+
recordedAt: zod_1.z.string().datetime(),
|
|
382
|
+
browserSessionId: zod_1.z.string().optional(),
|
|
383
|
+
ciRunUrl: zod_1.z.string().url().optional(),
|
|
384
|
+
artifactId: zod_1.z.string().uuid().optional(),
|
|
385
|
+
})
|
|
386
|
+
.strict()
|
|
387
|
+
.superRefine((value, ctx) => {
|
|
388
|
+
if (value.proofKind === 'browser' && value.browserSessionId === undefined) {
|
|
389
|
+
ctx.addIssue({
|
|
390
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
391
|
+
message: 'browser proof requires browserSessionId',
|
|
392
|
+
path: ['browserSessionId'],
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
if (value.proofKind === 'ci' && value.ciRunUrl === undefined) {
|
|
396
|
+
ctx.addIssue({
|
|
397
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
398
|
+
message: 'ci proof requires ciRunUrl',
|
|
399
|
+
path: ['ciRunUrl'],
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
if (value.proofKind === 'artifact' && value.artifactId === undefined) {
|
|
403
|
+
ctx.addIssue({
|
|
404
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
405
|
+
message: 'artifact proof requires artifactId',
|
|
406
|
+
path: ['artifactId'],
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
/**
|
|
411
|
+
* Summary of one participating repository at the checkpoint revision. A pointer
|
|
412
|
+
* summary only — uncommitted file lists and installed versions stay in NeuraLoom.
|
|
413
|
+
*/
|
|
414
|
+
exports.EngineeringCheckpointRevisionSummarySchema = engineering_context_schema_1.RevisionMapEntrySchema.pick({
|
|
415
|
+
repo: true,
|
|
416
|
+
commit: true,
|
|
417
|
+
branch: true,
|
|
418
|
+
dirty: true,
|
|
419
|
+
}).strict();
|
|
420
|
+
/** Verification result counts by `VerificationStatusSchema` value. */
|
|
421
|
+
exports.EngineeringCheckpointVerificationSummarySchema = zod_1.z
|
|
422
|
+
.object({
|
|
423
|
+
passed: zod_1.z.number().int().min(0),
|
|
424
|
+
failed: zod_1.z.number().int().min(0),
|
|
425
|
+
blocked: zod_1.z.number().int().min(0),
|
|
426
|
+
not_run: zod_1.z.number().int().min(0),
|
|
427
|
+
})
|
|
428
|
+
.strict();
|
|
429
|
+
/**
|
|
430
|
+
* EngineeringCheckpointRecorded — NeuraLoom owns the checkpoint, evidence,
|
|
431
|
+
* patches and verification; Cortex owns the task. This payload lets Cortex
|
|
432
|
+
* store a POINTER on its `graph.tasks` row (execution run + latest checkpoint
|
|
433
|
+
* by id, revision consistency, next action) without mirroring execution state
|
|
434
|
+
* into a second writable system. No evidence content is carried.
|
|
435
|
+
*/
|
|
436
|
+
exports.EngineeringCheckpointRecordedPayloadSchema = zod_1.z
|
|
437
|
+
.object({
|
|
438
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
439
|
+
/** Cortex `graph.tasks.id` the engineering task was requested for. */
|
|
440
|
+
cortexTaskId: zod_1.z.string().min(1),
|
|
441
|
+
neuraloomProjectId: zod_1.z.string().uuid(),
|
|
442
|
+
/** NeuraLoom engineering task id (`TaskCheckpointPayload.taskId`). */
|
|
443
|
+
taskId: zod_1.z.string().min(1),
|
|
444
|
+
executionRunId: zod_1.z.string().uuid().nullable(),
|
|
445
|
+
/** execution_tasks.id the checkpoint is persisted on (single persistence path). */
|
|
446
|
+
executionTaskId: zod_1.z.string().uuid(),
|
|
447
|
+
sequence: zod_1.z.number().int().min(0),
|
|
448
|
+
milestone: zod_1.z.string().min(1),
|
|
449
|
+
nextAction: zod_1.z.string().min(1),
|
|
450
|
+
revisionMap: zod_1.z.array(exports.EngineeringCheckpointRevisionSummarySchema).min(1),
|
|
451
|
+
/** Primary repo commit the task asked for (from the checkpoint revision map). */
|
|
452
|
+
requestedRevision: zod_1.z.string().min(1).nullable(),
|
|
453
|
+
/** Commit of the code-reality graph the evidence was drawn from. */
|
|
454
|
+
indexedRevision: zod_1.z.string().min(1).nullable(),
|
|
455
|
+
evidenceCount: zod_1.z.number().int().min(0),
|
|
456
|
+
invalidatedEvidenceCount: zod_1.z.number().int().min(0),
|
|
457
|
+
verificationSummary: exports.EngineeringCheckpointVerificationSummarySchema,
|
|
458
|
+
recordedAt: zod_1.z.string().datetime(),
|
|
459
|
+
})
|
|
460
|
+
.strict();
|
|
461
|
+
exports.GuardianViolationEventPayloadSchema = zod_1.z
|
|
462
|
+
.object({
|
|
463
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
464
|
+
ruleId: zod_1.z.string().min(1),
|
|
465
|
+
severity: exports.BridgeFindingSeveritySchema,
|
|
466
|
+
score: zod_1.z.number().min(0).max(100),
|
|
467
|
+
threshold: zod_1.z.number().min(0).max(100),
|
|
468
|
+
message: zod_1.z.string().min(1),
|
|
469
|
+
artifactType: zod_1.z.string().optional(),
|
|
470
|
+
artifactId: zod_1.z.string().uuid().optional(),
|
|
471
|
+
neuraloomProjectId: zod_1.z.string().uuid().optional(),
|
|
472
|
+
evidenceRefs: zod_1.z.array(zod_1.z.string()).default([]),
|
|
473
|
+
})
|
|
474
|
+
.strict();
|
|
475
|
+
exports.DocDraftReadyPayloadSchema = zod_1.z
|
|
476
|
+
.object({
|
|
477
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
478
|
+
docKind: zod_1.z.enum([
|
|
479
|
+
'tutorial',
|
|
480
|
+
'runbook',
|
|
481
|
+
'api_reference',
|
|
482
|
+
'operator_guide',
|
|
483
|
+
'operatorManual',
|
|
484
|
+
'onboardingGuide',
|
|
485
|
+
'faqDraft',
|
|
486
|
+
'releaseNotesDraft',
|
|
487
|
+
'troubleshootingGuide',
|
|
488
|
+
'salesEnablementDraft',
|
|
489
|
+
'supportArticleDraft',
|
|
490
|
+
'trainingScriptDraft',
|
|
491
|
+
]),
|
|
492
|
+
docSlug: zod_1.z.string().min(1),
|
|
493
|
+
title: zod_1.z.string().min(1),
|
|
494
|
+
draftPath: zod_1.z.string().min(1),
|
|
495
|
+
groundedSources: zod_1.z.array(zod_1.z.string()).min(1),
|
|
496
|
+
neuraloomProjectId: zod_1.z.string().uuid().optional(),
|
|
497
|
+
})
|
|
498
|
+
.strict();
|
|
499
|
+
exports.DocDriftDetectedPayloadSchema = zod_1.z
|
|
500
|
+
.object({
|
|
501
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
502
|
+
docSlug: zod_1.z.string().min(1),
|
|
503
|
+
driftKind: zod_1.z.enum(['missing_source', 'stale_content', 'claim_mismatch']),
|
|
504
|
+
detectedAt: zod_1.z.string().datetime(),
|
|
505
|
+
summary: zod_1.z.string().min(1),
|
|
506
|
+
revokedClaimIds: zod_1.z.array(zod_1.z.string()).default([]),
|
|
507
|
+
})
|
|
508
|
+
.strict();
|
|
509
|
+
exports.ProductReleasePackageMvpBridgePayloadSchema = product_release_package_schema_1.ProductReleasePackageMvpSchema;
|
|
510
|
+
// ─── Receipts (both directions) ───────────────────────────────────────────────
|
|
511
|
+
exports.CortexIngestionReceiptPayloadSchema = zod_1.z
|
|
512
|
+
.object({
|
|
513
|
+
schemaVersion: zod_1.z.literal('1.0.0'),
|
|
514
|
+
receiptId: zod_1.z.string().uuid(),
|
|
515
|
+
eventId: zod_1.z.string().uuid(),
|
|
516
|
+
idempotencyKey: zod_1.z.string().min(1),
|
|
517
|
+
status: exports.BridgeIngestionReceiptStatusSchema,
|
|
518
|
+
reason: zod_1.z.string().optional(),
|
|
519
|
+
receivedAt: zod_1.z.string().datetime(),
|
|
520
|
+
normalizedCandidateId: zod_1.z.string().optional(),
|
|
521
|
+
githubIssue: exports.CortexTaskGithubIssuePointerSchema.optional(),
|
|
522
|
+
neuraloomTaskId: zod_1.z.string().uuid().optional(),
|
|
523
|
+
engineeringRecovery: exports.EngineeringIssueRecoveryReceiptSchema.optional(),
|
|
524
|
+
})
|
|
525
|
+
.strict().superRefine((receipt, context) => {
|
|
526
|
+
const recovery = receipt.engineeringRecovery;
|
|
527
|
+
if (recovery && (JSON.stringify(receipt.githubIssue) !== JSON.stringify(recovery.githubIssue) ||
|
|
528
|
+
receipt.neuraloomTaskId !== recovery.neuraloomTaskId || receipt.normalizedCandidateId !== recovery.scanRunId)) {
|
|
529
|
+
context.addIssue({ code: zod_1.z.ZodIssueCode.custom, path: ['engineeringRecovery'], message: 'Recovery must agree with outer receipt pointers and scan' });
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
exports.NeuraloomIngestionReceiptPayloadSchema = exports.CortexIngestionReceiptPayloadSchema;
|
|
533
|
+
exports.CortexBridgeIngestionReceiptApiResponseSchema = zod_1.z
|
|
534
|
+
.object({
|
|
535
|
+
receipt: exports.NeuraloomIngestionReceiptPayloadSchema,
|
|
536
|
+
})
|
|
537
|
+
.strict();
|
|
538
|
+
exports.CodexExecutorRuntimeIdentitySchema = zod_1.z.object({
|
|
539
|
+
kind: zod_1.z.literal('vercel_sandbox'),
|
|
540
|
+
workerRepoFullName: zod_1.z.string().regex(/^NeuroNetIQ\/[A-Za-z0-9_.-]+$/i),
|
|
541
|
+
workerSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
542
|
+
workerPath: zod_1.z.literal('scripts/agent-executors/codex-worker.mjs'),
|
|
543
|
+
runtimeConfigHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
544
|
+
nodeVersion: zod_1.z.literal('24.18.0'),
|
|
545
|
+
codexSdkVersion: zod_1.z.literal('0.160.0'),
|
|
546
|
+
sandboxSdkVersion: zod_1.z.literal('3.5.1'),
|
|
547
|
+
}).strict();
|
|
548
|
+
/** Canonical worker scope mirror used solely to verify Cortex's current approval. */
|
|
549
|
+
exports.CodexExecutorApprovedScopeSchema = zod_1.z.object({
|
|
550
|
+
version: zod_1.z.literal(1), executor: zod_1.z.literal('codex'), runtime: exports.CodexExecutorRuntimeIdentitySchema.optional(),
|
|
551
|
+
planRunId: zod_1.z.string().uuid(), taskId: zod_1.z.string().uuid(), planHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
552
|
+
repoFullName: zod_1.z.string().regex(/^NeuroNetIQ\/[A-Za-z0-9_.-]+$/i), baseRef: zod_1.z.literal('main'),
|
|
553
|
+
baseSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/), githubIssue: exports.CortexTaskGithubIssuePointerSchema,
|
|
554
|
+
allowedPaths: zod_1.z.array(zod_1.z.string().min(1).max(500)).min(1).max(30),
|
|
555
|
+
excludedPaths: zod_1.z.array(zod_1.z.string().min(1).max(500)).max(100),
|
|
556
|
+
maxFiles: zod_1.z.number().int().min(1).max(30), maxLines: zod_1.z.number().int().min(1).max(2500),
|
|
557
|
+
expiresAt: zod_1.z.string().datetime(), maxTokens: zod_1.z.number().int().min(1).max(500_000),
|
|
558
|
+
maxCostUsd: zod_1.z.number().positive().max(20), maxOutputTokens: zod_1.z.number().int().min(1).max(8192),
|
|
559
|
+
}).strict();
|
|
560
|
+
exports.CodexSignedWorkerPayloadSchema = zod_1.z.object({
|
|
561
|
+
version: zod_1.z.literal(1), agentRunId: zod_1.z.string().uuid(), idempotencyKey: zod_1.z.string().min(1).max(500),
|
|
562
|
+
title: zod_1.z.string().min(1).max(2048), prompt: zod_1.z.string().min(1).max(8000),
|
|
563
|
+
repoUrl: zod_1.z.string().url(), startingRef: zod_1.z.literal('main'),
|
|
564
|
+
forbiddenActions: zod_1.z.array(zod_1.z.string().min(1).max(100)).max(50),
|
|
565
|
+
authorization: exports.CodexExecutorApprovedScopeSchema.omit({ version: true, executor: true, baseRef: true, runtime: true }),
|
|
566
|
+
model: zod_1.z.string().min(1).max(100), workflowSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
567
|
+
}).strict();
|
|
568
|
+
/** V2 mirrors Cortex signCodexDispatchRequest; historical Actions workers remain V1 only. */
|
|
569
|
+
exports.CodexSignedSandboxWorkerPayloadSchema = exports.CodexSignedWorkerPayloadSchema
|
|
570
|
+
.omit({ version: true, workflowSha: true, authorization: true })
|
|
571
|
+
.extend({ version: zod_1.z.literal(2), runtime: exports.CodexExecutorRuntimeIdentitySchema,
|
|
572
|
+
authorization: exports.CodexExecutorApprovedScopeSchema.extend({ runtime: exports.CodexExecutorRuntimeIdentitySchema }).strict(),
|
|
573
|
+
}).strict();
|
|
574
|
+
const CodexAuthorizationFreshness = {
|
|
575
|
+
issuedAt: zod_1.z.string().datetime(), expiresAt: zod_1.z.string().datetime(),
|
|
576
|
+
};
|
|
577
|
+
const authorizationRequestIdentity = {
|
|
578
|
+
version: zod_1.z.literal(1), ...CodexAuthorizationFreshness,
|
|
579
|
+
agentRunId: zod_1.z.string().uuid(),
|
|
580
|
+
commandId: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
581
|
+
};
|
|
582
|
+
const positiveWorkflowRunId = zod_1.z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
583
|
+
const signedWorkerFields = {
|
|
584
|
+
workerPayload: zod_1.z.string().min(1).max(32_768),
|
|
585
|
+
workerSignature: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
586
|
+
};
|
|
587
|
+
/** Provider-generated job identity; names alone never establish execution authority. */
|
|
588
|
+
exports.CodexExecutorRuntimeJobSchema = zod_1.z.object({
|
|
589
|
+
sandboxName: zod_1.z.string().min(1).max(100), sessionId: zod_1.z.string().min(1).max(200),
|
|
590
|
+
runtimeCommandId: zod_1.z.string().min(1).max(200).optional(),
|
|
591
|
+
}).strict();
|
|
592
|
+
const sandboxAuthorizationFields = { runtime: exports.CodexExecutorRuntimeIdentitySchema };
|
|
593
|
+
exports.CodexExecutorAuthorizationRequestPayloadSchema = zod_1.z.discriminatedUnion('purpose', [
|
|
594
|
+
zod_1.z.object({ ...authorizationRequestIdentity, purpose: zod_1.z.literal('runner'), workflowRunId: positiveWorkflowRunId, ...signedWorkerFields }).strict(),
|
|
595
|
+
zod_1.z.object({ ...authorizationRequestIdentity, purpose: zod_1.z.literal('dispatch'), ...signedWorkerFields }).strict(),
|
|
596
|
+
zod_1.z.object({ ...authorizationRequestIdentity, purpose: zod_1.z.literal('observation'), workflowRunId: positiveWorkflowRunId.optional() }).strict(),
|
|
597
|
+
zod_1.z.object({ ...authorizationRequestIdentity, purpose: zod_1.z.literal('sandbox_dispatch'), ...sandboxAuthorizationFields, ...signedWorkerFields }).strict(),
|
|
598
|
+
zod_1.z.object({ ...authorizationRequestIdentity, purpose: zod_1.z.literal('sandbox_runner'), ...sandboxAuthorizationFields, ...signedWorkerFields,
|
|
599
|
+
job: exports.CodexExecutorRuntimeJobSchema, claimNonce: zod_1.z.string().regex(/^[a-f0-9]{64}$/) }).strict(),
|
|
600
|
+
zod_1.z.object({ ...authorizationRequestIdentity, purpose: zod_1.z.literal('sandbox_publish'), ...sandboxAuthorizationFields, ...signedWorkerFields,
|
|
601
|
+
job: exports.CodexExecutorRuntimeJobSchema.extend({ runtimeCommandId: zod_1.z.string().min(1).max(200) }).strict(), claimNonce: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
602
|
+
completionReceipt: zod_1.z.object({ payload: zod_1.z.string().min(1).max(32_768).refine(value => new TextEncoder().encode(value).byteLength <= 32_768, 'Completion receipt exceeds UTF8 byte bound'), signature: zod_1.z.string().regex(/^[a-f0-9]{64}$/) }).strict() }).strict(),
|
|
603
|
+
zod_1.z.object({ ...authorizationRequestIdentity, purpose: zod_1.z.literal('sandbox_observation'), ...sandboxAuthorizationFields, job: exports.CodexExecutorRuntimeJobSchema.optional() }).strict(),
|
|
604
|
+
]).refine(value => {
|
|
605
|
+
const lifetime = Date.parse(value.expiresAt) - Date.parse(value.issuedAt);
|
|
606
|
+
return lifetime > 0 && lifetime <= 30_000;
|
|
607
|
+
}, 'Authorization requests must expire within thirty seconds');
|
|
608
|
+
exports.CodexExecutorAuthorizationResultPayloadSchema = zod_1.z.object({
|
|
609
|
+
version: zod_1.z.literal(1), eventType: zod_1.z.literal('CodexExecutorAuthorizationResult'),
|
|
610
|
+
requestId: zod_1.z.string().uuid(), ...CodexAuthorizationFreshness,
|
|
611
|
+
purpose: zod_1.z.enum(['runner', 'dispatch', 'observation', 'sandbox_dispatch', 'sandbox_runner', 'sandbox_observation', 'sandbox_publish']),
|
|
612
|
+
authorized: zod_1.z.boolean(), agentRunId: zod_1.z.string().uuid(),
|
|
613
|
+
reason: zod_1.z.enum(['pending_run_linkage', 'invalid_request', 'approval_unavailable', 'approval_expired', 'scope_changed', 'execution_inactive']).optional(),
|
|
614
|
+
workflowRunId: positiveWorkflowRunId.optional(),
|
|
615
|
+
commandId: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
616
|
+
scope: exports.CodexExecutorApprovedScopeSchema.optional(),
|
|
617
|
+
runtime: exports.CodexExecutorRuntimeIdentitySchema.optional(), job: exports.CodexExecutorRuntimeJobSchema.optional(),
|
|
618
|
+
publication: zod_1.z.object({ patchSha256: zod_1.z.string().regex(/^[a-f0-9]{64}$/), completionReceiptHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/) }).strict().optional(),
|
|
619
|
+
workflow: zod_1.z.object({
|
|
620
|
+
repoFullName: zod_1.z.string().regex(/^NeuroNetIQ\/[A-Za-z0-9_.-]+$/i),
|
|
621
|
+
workflowPath: zod_1.z.literal('.github/workflows/codex-agent-executor.yml'),
|
|
622
|
+
ref: zod_1.z.string().min(1).max(500), sha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
623
|
+
}).strict().optional(),
|
|
624
|
+
}).strict().refine(value => {
|
|
625
|
+
const lifetime = Date.parse(value.expiresAt) - Date.parse(value.issuedAt);
|
|
626
|
+
const sandbox = value.purpose.startsWith('sandbox_');
|
|
627
|
+
if (!(lifetime > 0 && lifetime <= 30_000))
|
|
628
|
+
return false;
|
|
629
|
+
if (sandbox ? value.workflow !== undefined || value.workflowRunId !== undefined : value.runtime !== undefined || value.job !== undefined)
|
|
630
|
+
return false;
|
|
631
|
+
if (value.purpose === 'runner' && value.workflowRunId === undefined || value.purpose === 'dispatch' && value.workflowRunId !== undefined)
|
|
632
|
+
return false;
|
|
633
|
+
if (value.purpose !== 'sandbox_publish' && value.publication !== undefined)
|
|
634
|
+
return false;
|
|
635
|
+
if (!value.authorized)
|
|
636
|
+
return value.publication === undefined && value.scope === undefined && value.workflow === undefined && value.runtime === undefined && value.job === undefined;
|
|
637
|
+
if (!value.scope || value.reason !== undefined)
|
|
638
|
+
return false;
|
|
639
|
+
if (value.purpose === 'sandbox_publish' && (!value.publication || !value.job?.runtimeCommandId))
|
|
640
|
+
return false;
|
|
641
|
+
if (!sandbox)
|
|
642
|
+
return value.workflow !== undefined && value.scope.runtime === undefined;
|
|
643
|
+
return value.runtime !== undefined && JSON.stringify(value.scope.runtime) === JSON.stringify(value.runtime) &&
|
|
644
|
+
(['sandbox_runner', 'sandbox_publish'].includes(value.purpose) ? value.job !== undefined : value.purpose !== 'sandbox_dispatch' || value.job === undefined);
|
|
645
|
+
}, 'Authorization result requires fresh exact scope only when authorized');
|
|
646
|
+
const workflowCommandIdentity = {
|
|
647
|
+
version: zod_1.z.literal(1), agentRunId: zod_1.z.string().uuid(), commandId: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
648
|
+
};
|
|
649
|
+
/** Dispatch is immutable across outbox retries; only observation challenges expire. */
|
|
650
|
+
exports.CodexExecutorWorkflowRequestPayloadSchema = zod_1.z.discriminatedUnion('operation', [
|
|
651
|
+
zod_1.z.object({ ...workflowCommandIdentity, operation: zod_1.z.literal('dispatch'), ...signedWorkerFields }).strict(),
|
|
652
|
+
zod_1.z.object({ ...workflowCommandIdentity, operation: zod_1.z.literal('reconcile'), ...CodexAuthorizationFreshness, workflowRunId: positiveWorkflowRunId.optional() }).strict(),
|
|
653
|
+
]).refine(value => value.operation === 'dispatch' ||
|
|
654
|
+
(Date.parse(value.expiresAt) > Date.parse(value.issuedAt) && Date.parse(value.expiresAt) - Date.parse(value.issuedAt) <= 30_000), 'Observation challenges expire within thirty seconds');
|
|
655
|
+
exports.CodexExecutorWorkflowResultPayloadSchema = zod_1.z.object({
|
|
656
|
+
credentialCleanup: zod_1.z.enum(['revoked', 'unconfirmed']).optional(),
|
|
657
|
+
...workflowCommandIdentity, eventType: zod_1.z.literal('CodexExecutorWorkflowResult'), requestId: zod_1.z.string().uuid(),
|
|
658
|
+
...CodexAuthorizationFreshness, operation: zod_1.z.enum(['dispatch', 'reconcile']),
|
|
659
|
+
outcome: zod_1.z.enum(['dispatched', 'observed', 'not_found', 'delivery_unknown', 'denied']),
|
|
660
|
+
workflow: zod_1.z.object({ repoFullName: zod_1.z.string().regex(/^NeuroNetIQ\/[A-Za-z0-9_.-]+$/i),
|
|
661
|
+
workflowPath: zod_1.z.literal('.github/workflows/codex-agent-executor.yml'), ref: zod_1.z.string().min(1).max(500), sha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
662
|
+
}).strict(),
|
|
663
|
+
run: zod_1.z.object({ id: positiveWorkflowRunId, displayTitle: zod_1.z.string().min(1).max(200),
|
|
664
|
+
htmlUrl: zod_1.z.string().url().max(1000), status: zod_1.z.string().min(1).max(100), conclusion: zod_1.z.string().max(100).nullable(), headSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
665
|
+
}).strict().optional(),
|
|
666
|
+
pr: zod_1.z.object({ url: zod_1.z.string().url().max(1000), body: zod_1.z.string().max(100_000), headSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
667
|
+
baseSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/), baseRef: zod_1.z.literal('main'), draft: zod_1.z.boolean(), state: zod_1.z.enum(['open', 'closed']),
|
|
668
|
+
}).strict().nullable().optional(),
|
|
669
|
+
reason: zod_1.z.enum(['approval_denied', 'identity_conflict', 'ambiguous_run', 'delivery_uncertain', 'observation_unavailable']).optional(),
|
|
670
|
+
}).strict().refine(value => {
|
|
671
|
+
const lifetime = Date.parse(value.expiresAt) - Date.parse(value.issuedAt);
|
|
672
|
+
return lifetime > 0 && lifetime <= 30_000 &&
|
|
673
|
+
(['dispatched', 'observed'].includes(value.outcome) ? value.run !== undefined : value.run === undefined && value.pr == null);
|
|
674
|
+
}, 'Workflow results require a fresh correlated run only when observed');
|
|
675
|
+
/** Every operation uses a fresh challenge; stable command and signed worker identity are immutable across retries. */
|
|
676
|
+
const runtimeCommandIdentity = { ...workflowCommandIdentity, ...CodexAuthorizationFreshness, runtime: exports.CodexExecutorRuntimeIdentitySchema };
|
|
677
|
+
exports.CodexExecutorRuntimeRequestPayloadSchema = zod_1.z.discriminatedUnion('operation', [
|
|
678
|
+
zod_1.z.object({ ...runtimeCommandIdentity, operation: zod_1.z.literal('dispatch'), ...signedWorkerFields }).strict(),
|
|
679
|
+
zod_1.z.object({ ...runtimeCommandIdentity, operation: zod_1.z.literal('reconcile'), job: exports.CodexExecutorRuntimeJobSchema.optional() }).strict(),
|
|
680
|
+
zod_1.z.object({ ...runtimeCommandIdentity, operation: zod_1.z.literal('cancel'), job: exports.CodexExecutorRuntimeJobSchema }).strict(),
|
|
681
|
+
]).refine(value => {
|
|
682
|
+
const lifetime = Date.parse(value.expiresAt) - Date.parse(value.issuedAt);
|
|
683
|
+
return lifetime > 0 && lifetime <= 30_000;
|
|
684
|
+
}, 'Runtime challenges expire within thirty seconds');
|
|
685
|
+
exports.CodexExecutorRuntimeResultPayloadSchema = zod_1.z.object({
|
|
686
|
+
...runtimeCommandIdentity, eventType: zod_1.z.literal('CodexExecutorRuntimeResult'), requestId: zod_1.z.string().uuid(),
|
|
687
|
+
payloadHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/), operation: zod_1.z.enum(['dispatch', 'reconcile', 'cancel']),
|
|
688
|
+
outcome: zod_1.z.enum(['dispatched', 'observed', 'not_found', 'delivery_unknown', 'denied']),
|
|
689
|
+
job: exports.CodexExecutorRuntimeJobSchema.extend({
|
|
690
|
+
state: zod_1.z.enum(['queued', 'running', 'completed', 'failed', 'cancelled', 'unknown']),
|
|
691
|
+
exitCode: zod_1.z.number().int().min(0).max(255).nullable(),
|
|
692
|
+
}).strict().optional(),
|
|
693
|
+
claimNonceHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/).optional(),
|
|
694
|
+
cleanup: zod_1.z.enum(['not_created', 'running', 'stopped', 'unknown']),
|
|
695
|
+
credentialCleanup: zod_1.z.enum(['revoked', 'unconfirmed']).optional(),
|
|
696
|
+
workerReceipt: zod_1.z.object({ payload: zod_1.z.string().min(1).max(32_768), signature: zod_1.z.string().regex(/^[a-f0-9]{64}$/) }).strict().optional(),
|
|
697
|
+
pr: exports.CodexExecutorWorkflowResultPayloadSchema.innerType().shape.pr,
|
|
698
|
+
reason: zod_1.z.enum(['approval_denied', 'identity_conflict', 'delivery_uncertain', 'observation_unavailable']).optional(),
|
|
699
|
+
}).strict().refine(value => {
|
|
700
|
+
const lifetime = Date.parse(value.expiresAt) - Date.parse(value.issuedAt);
|
|
701
|
+
if (!(lifetime > 0 && lifetime <= 30_000))
|
|
702
|
+
return false;
|
|
703
|
+
if (['dispatched', 'observed'].includes(value.outcome) && !value.job)
|
|
704
|
+
return false;
|
|
705
|
+
if (value.outcome === 'denied' && (value.job || value.workerReceipt || value.pr))
|
|
706
|
+
return false;
|
|
707
|
+
if (value.outcome === 'not_found' && (value.job || value.workerReceipt || value.pr || value.cleanup !== 'not_created'))
|
|
708
|
+
return false;
|
|
709
|
+
if (value.job && (!value.claimNonceHash || value.cleanup === 'not_created'))
|
|
710
|
+
return false;
|
|
711
|
+
if (!value.job && value.claimNonceHash !== undefined)
|
|
712
|
+
return false;
|
|
713
|
+
if (value.job && ['queued', 'running'].includes(value.job.state) && value.cleanup === 'stopped')
|
|
714
|
+
return false;
|
|
715
|
+
if (value.job && ['queued', 'running', 'unknown'].includes(value.job.state) && value.job.exitCode !== null)
|
|
716
|
+
return false;
|
|
717
|
+
if (value.job && ['completed', 'failed'].includes(value.job.state) && (!value.job.runtimeCommandId || value.job.exitCode === null))
|
|
718
|
+
return false;
|
|
719
|
+
if (value.job?.state === 'completed' && value.job.exitCode !== 0)
|
|
720
|
+
return false;
|
|
721
|
+
if (value.job?.state === 'failed' && value.job.exitCode === 0)
|
|
722
|
+
return false;
|
|
723
|
+
if (value.pr && (value.outcome !== 'observed' || value.job?.state !== 'completed' || !value.workerReceipt || value.credentialCleanup !== 'revoked' || value.cleanup !== 'stopped'))
|
|
724
|
+
return false;
|
|
725
|
+
return true;
|
|
726
|
+
}, 'Runtime observations require genuine correlated job and publication evidence');
|
|
727
|
+
exports.CodexRunnerCredentialRequestSchema = zod_1.z.object({
|
|
728
|
+
payload: zod_1.z.string().min(1).max(32_768), signature: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
729
|
+
command_id: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
730
|
+
workflowRunId: zod_1.z.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
731
|
+
purpose: zod_1.z.enum(['checkout', 'publication']),
|
|
732
|
+
}).strict();
|
|
733
|
+
/** Fresh repository-scoped App facts; no credentials or execution authority cross this boundary. */
|
|
734
|
+
const githubReadIdentity = {
|
|
735
|
+
version: zod_1.z.literal(1), repoFullName: zod_1.z.string().regex(/^NeuroNetIQ\/[A-Za-z0-9_.-]+$/i),
|
|
736
|
+
...CodexAuthorizationFreshness,
|
|
737
|
+
};
|
|
738
|
+
const githubReadChecksInput = { operation: zod_1.z.literal('checks_observe'), prNumber: positiveWorkflowRunId,
|
|
739
|
+
headSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/), baseSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/), baseRef: zod_1.z.literal('main') };
|
|
740
|
+
const githubReadPrInput = { operation: zod_1.z.literal('pr_get'), prNumber: positiveWorkflowRunId };
|
|
741
|
+
const githubReadIssueInput = { operation: zod_1.z.literal('issue_get'), issueNumber: positiveWorkflowRunId };
|
|
742
|
+
const githubReadBranchInput = { operation: zod_1.z.literal('branch_get'), branch: zod_1.z.literal('main') };
|
|
743
|
+
const githubReadCompareInput = { operation: zod_1.z.literal('compare'), baseSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/), headSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/) };
|
|
744
|
+
const githubReadFresh = (value) => {
|
|
745
|
+
if (typeof value.issuedAt !== 'string' || typeof value.expiresAt !== 'string')
|
|
746
|
+
return false;
|
|
747
|
+
const lifetime = Date.parse(value.expiresAt) - Date.parse(value.issuedAt);
|
|
748
|
+
return lifetime > 0 && lifetime <= 30_000;
|
|
749
|
+
};
|
|
750
|
+
exports.githubReadRequestSchema = zod_1.z.discriminatedUnion('operation', [
|
|
751
|
+
zod_1.z.object({ ...githubReadIdentity, ...githubReadIssueInput }).strict(),
|
|
752
|
+
zod_1.z.object({ ...githubReadIdentity, ...githubReadPrInput }).strict(),
|
|
753
|
+
zod_1.z.object({ ...githubReadIdentity, ...githubReadChecksInput }).strict(),
|
|
754
|
+
zod_1.z.object({ ...githubReadIdentity, ...githubReadCompareInput }).strict(),
|
|
755
|
+
zod_1.z.object({ ...githubReadIdentity, ...githubReadBranchInput }).strict(),
|
|
756
|
+
]).refine(githubReadFresh, 'GitHub read challenges expire within thirty seconds');
|
|
757
|
+
const githubReadResultIdentity = { ...githubReadIdentity, eventType: zod_1.z.literal('GitHubReadResult'),
|
|
758
|
+
requestId: zod_1.z.string().uuid(), requestPayloadHash: zod_1.z.string().regex(/^[a-f0-9]{64}$/) };
|
|
759
|
+
const githubReadObserved = { outcome: zod_1.z.literal('observed'), repositoryId: positiveWorkflowRunId, credentialCleanup: zod_1.z.literal('revoked') };
|
|
760
|
+
const githubReadUnavailable = { outcome: zod_1.z.enum(['not_found', 'denied', 'unavailable']), repositoryId: positiveWorkflowRunId.optional(),
|
|
761
|
+
credentialCleanup: zod_1.z.enum(['revoked', 'unconfirmed']).optional() };
|
|
762
|
+
exports.githubReadResultSchema = zod_1.z.union([
|
|
763
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadChecksInput, ...githubReadObserved,
|
|
764
|
+
observation: zod_1.z.object({ state: zod_1.z.enum(['open', 'closed']), merged: zod_1.z.boolean(),
|
|
765
|
+
conflict: zod_1.z.enum(['conflicting', 'clean', 'unknown']), requiredChecks: zod_1.z.enum(['known', 'unknown']),
|
|
766
|
+
checks: zod_1.z.array(zod_1.z.object({ name: zod_1.z.string().min(1).max(200), state: zod_1.z.enum(['passed', 'failed', 'pending']),
|
|
767
|
+
url: zod_1.z.string().url().max(500).refine(value => new URL(value).protocol === 'https:', 'Check URLs require HTTPS').nullable(),
|
|
768
|
+
required: zod_1.z.boolean(),
|
|
769
|
+
}).strict()).max(100),
|
|
770
|
+
}).strict(),
|
|
771
|
+
}).strict().refine(value => (value.observation.requiredChecks !== 'unknown' || value.observation.checks.every(check => !check.required)) &&
|
|
772
|
+
(!value.observation.merged || (value.observation.state === 'closed' && value.observation.conflict !== 'conflicting')), 'Check observations cannot assert unknown required checks or contradictory merge facts'),
|
|
773
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadChecksInput, ...githubReadUnavailable }).strict(),
|
|
774
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadPrInput, ...githubReadObserved,
|
|
775
|
+
pullRequest: zod_1.z.object({ number: positiveWorkflowRunId, url: zod_1.z.string().url().max(500), state: zod_1.z.enum(['open', 'closed']),
|
|
776
|
+
merged: zod_1.z.boolean(), mergedAt: zod_1.z.string().datetime().nullable(), mergeCommitSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/).nullable(),
|
|
777
|
+
baseRef: zod_1.z.string().min(1).max(500), baseSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/), headSha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
|
|
778
|
+
mergeable: zod_1.z.boolean().nullable(), mergeableState: zod_1.z.string().min(1).max(100).nullable(),
|
|
779
|
+
}).strict(),
|
|
780
|
+
}).strict().refine(value => value.pullRequest.number === value.prNumber &&
|
|
781
|
+
value.pullRequest.url.toLowerCase() === `https://github.com/${value.repoFullName}/pull/${value.prNumber}`.toLowerCase() &&
|
|
782
|
+
(!value.pullRequest.merged || (value.pullRequest.state === 'closed' && value.pullRequest.mergeCommitSha !== null && value.pullRequest.mergedAt !== null)), 'GitHub PR facts require exact request identity and complete merge evidence'),
|
|
783
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadPrInput, ...githubReadUnavailable }).strict(),
|
|
784
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadIssueInput, ...githubReadObserved,
|
|
785
|
+
issue: zod_1.z.object({ number: positiveWorkflowRunId, url: zod_1.z.string().url().max(500), isPullRequest: zod_1.z.boolean(), isEpic: zod_1.z.boolean() }).strict(),
|
|
786
|
+
}).strict().refine(value => value.issue.number === value.issueNumber &&
|
|
787
|
+
value.issue.url.toLowerCase() === `https://github.com/${value.repoFullName}/issues/${value.issueNumber}`.toLowerCase(), 'GitHub issue facts must match the exact request'),
|
|
788
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadCompareInput, ...githubReadObserved,
|
|
789
|
+
compare: zod_1.z.object({ status: zod_1.z.enum(['identical', 'behind', 'ahead', 'diverged']),
|
|
790
|
+
aheadBy: zod_1.z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER), behindBy: zod_1.z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER) }).strict(),
|
|
791
|
+
}).strict(),
|
|
792
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadBranchInput, ...githubReadObserved,
|
|
793
|
+
branchFacts: zod_1.z.object({ name: zod_1.z.literal('main'), sha: zod_1.z.string().regex(/^[a-f0-9]{40}$/) }).strict(),
|
|
794
|
+
}).strict(),
|
|
795
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadBranchInput, ...githubReadUnavailable }).strict(),
|
|
796
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadIssueInput, ...githubReadUnavailable }).strict(),
|
|
797
|
+
zod_1.z.object({ ...githubReadResultIdentity, ...githubReadCompareInput, ...githubReadUnavailable }).strict(),
|
|
798
|
+
]).refine(githubReadFresh, 'GitHub read facts expire within thirty seconds');
|
|
799
|
+
exports.BRIDGE_EVENT_PAYLOAD_SCHEMAS = {
|
|
800
|
+
GitHubReadRequest: exports.githubReadRequestSchema,
|
|
801
|
+
GitHubReadResult: exports.githubReadResultSchema,
|
|
802
|
+
CodexExecutorRuntimeRequest: exports.CodexExecutorRuntimeRequestPayloadSchema,
|
|
803
|
+
CodexExecutorRuntimeResult: exports.CodexExecutorRuntimeResultPayloadSchema,
|
|
804
|
+
CodexExecutorWorkflowRequest: exports.CodexExecutorWorkflowRequestPayloadSchema,
|
|
805
|
+
CodexExecutorWorkflowResult: exports.CodexExecutorWorkflowResultPayloadSchema,
|
|
806
|
+
CodexExecutorAuthorizationRequest: exports.CodexExecutorAuthorizationRequestPayloadSchema,
|
|
807
|
+
CodexExecutorAuthorizationResult: exports.CodexExecutorAuthorizationResultPayloadSchema,
|
|
808
|
+
RepoIntelligenceRequest: exports.RepoIntelligenceRequestPayloadSchema,
|
|
809
|
+
RepoIntelligenceResult: exports.RepoIntelligenceResultPayloadSchema,
|
|
810
|
+
RepoFindingTask: exports.RepoFindingTaskPayloadSchema,
|
|
811
|
+
ImplementationPlanReady: exports.ImplementationPlanReadyPayloadSchema,
|
|
812
|
+
PullRequestReady: exports.PullRequestReadyPayloadSchema,
|
|
813
|
+
ProofRunRecorded: exports.ProofRunRecordedPayloadSchema,
|
|
814
|
+
EngineeringCheckpointRecorded: exports.EngineeringCheckpointRecordedPayloadSchema,
|
|
815
|
+
RenderProofRecorded: film_bridge_events_schema_1.RenderProofRecordedPayloadSchema,
|
|
816
|
+
GuardianViolationEvent: exports.GuardianViolationEventPayloadSchema,
|
|
817
|
+
CreativeWorkflowRequest: exports.CreativeWorkflowRequestPayloadSchema,
|
|
818
|
+
CreativeWorkflowResult: exports.CreativeWorkflowResultPayloadSchema,
|
|
819
|
+
DocDraftReady: exports.DocDraftReadyPayloadSchema,
|
|
820
|
+
DocDriftDetected: exports.DocDriftDetectedPayloadSchema,
|
|
821
|
+
PortfolioRepoLink: exports.PortfolioRepoLinkPayloadSchema,
|
|
822
|
+
TaskGithubIssueRequest: exports.TaskGithubIssueRequestPayloadSchema,
|
|
823
|
+
ProductReleasePackageMvp: exports.ProductReleasePackageMvpBridgePayloadSchema,
|
|
824
|
+
FilmProductionPlanReady: film_bridge_events_schema_1.FilmProductionPlanReadyPayloadSchema,
|
|
825
|
+
FilmCutReady: film_bridge_events_schema_1.FilmCutReadyPayloadSchema,
|
|
826
|
+
CortexIngestionReceipt: exports.CortexIngestionReceiptPayloadSchema,
|
|
827
|
+
NeuraloomIngestionReceipt: exports.NeuraloomIngestionReceiptPayloadSchema,
|
|
828
|
+
};
|