@neuraloom/contracts 0.0.0-stage → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/community-movie/attribution.schema.d.ts +264 -0
- package/dist/analytics/community-movie/attribution.schema.js +57 -0
- package/dist/analytics/community-movie/consent.schema.d.ts +15 -0
- package/dist/analytics/community-movie/consent.schema.js +16 -0
- package/dist/analytics/community-movie/event-names.d.ts +11 -0
- package/dist/analytics/community-movie/event-names.js +113 -0
- package/dist/analytics/community-movie/event-params.schema.d.ts +622 -0
- package/dist/analytics/community-movie/event-params.schema.js +416 -0
- package/dist/analytics/community-movie/event-registry.d.ts +11 -0
- package/dist/analytics/community-movie/event-registry.js +486 -0
- package/dist/analytics/community-movie/index.d.ts +6 -0
- package/dist/analytics/community-movie/index.js +22 -0
- package/dist/analytics/community-movie/telemetry-record.schema.d.ts +157 -0
- package/dist/analytics/community-movie/telemetry-record.schema.js +26 -0
- package/dist/analytics/index.d.ts +1 -0
- package/dist/analytics/index.js +17 -0
- package/dist/community/actor-builder-options.d.ts +43 -0
- package/dist/community/actor-builder-options.js +197 -0
- package/dist/constants/AGENT_MCP_PERMISSIONS.d.ts +26 -0
- package/dist/constants/AGENT_MCP_PERMISSIONS.js +122 -0
- package/dist/constants/AGENT_ROLES.d.ts +37 -0
- package/dist/constants/AGENT_ROLES.js +199 -0
- package/dist/constants/audiobook-embed-placeholder-url.d.ts +5 -0
- package/dist/constants/audiobook-embed-placeholder-url.js +8 -0
- package/dist/constants/ci-config.d.ts +4 -0
- package/dist/constants/ci-config.js +7 -0
- package/dist/constants/kg-implement-stable-keys.d.ts +9 -0
- package/dist/constants/kg-implement-stable-keys.js +26 -0
- package/dist/constants/knowledge-edge-relation.d.ts +49 -0
- package/dist/constants/knowledge-edge-relation.js +42 -0
- package/dist/constants/knowledge-node.d.ts +21 -0
- package/dist/constants/knowledge-node.js +20 -0
- package/dist/constants/mission-control-nav.d.ts +13 -0
- package/dist/constants/mission-control-nav.js +75 -0
- package/dist/constants/model-mode-preset-defaults.d.ts +5 -0
- package/dist/constants/model-mode-preset-defaults.js +65 -0
- package/dist/constants/model-policies.d.ts +37 -0
- package/dist/constants/model-policies.js +656 -0
- package/dist/constants/navConfig.d.ts +43 -0
- package/dist/constants/navConfig.js +132 -0
- package/dist/constants/orchestration-execution.d.ts +5 -0
- package/dist/constants/orchestration-execution.js +10 -0
- package/dist/constants/payload-schema-map.d.ts +22 -0
- package/dist/constants/payload-schema-map.js +375 -0
- package/dist/constants/phase-guardian.d.ts +17 -0
- package/dist/constants/phase-guardian.js +43 -0
- package/dist/constants/pipeline-step-stages.d.ts +73 -0
- package/dist/constants/pipeline-step-stages.js +342 -0
- package/dist/constants/project-control-nav.d.ts +29 -0
- package/dist/constants/project-control-nav.js +65 -0
- package/dist/constants/software-index-targets.d.ts +17 -0
- package/dist/constants/software-index-targets.js +46 -0
- package/dist/constants/step-tools.d.ts +32 -0
- package/dist/constants/step-tools.js +53 -0
- package/dist/constants/workflow-agent-defaults.d.ts +4 -0
- package/dist/constants/workflow-agent-defaults.js +15 -0
- package/dist/constants/workflow-api-errors.d.ts +5 -0
- package/dist/constants/workflow-api-errors.js +8 -0
- package/dist/constants/workflow-phase-groups.d.ts +34 -0
- package/dist/constants/workflow-phase-groups.js +46 -0
- package/dist/constants/workflow-registry.d.ts +77 -0
- package/dist/constants/workflow-registry.js +421 -0
- package/dist/constants/workflow-semantics.d.ts +19 -0
- package/dist/constants/workflow-semantics.js +432 -0
- package/dist/constants/workflow-vocabulary.d.ts +23 -0
- package/dist/constants/workflow-vocabulary.js +227 -0
- package/dist/constants/workflow.d.ts +7 -0
- package/dist/constants/workflow.js +23 -0
- package/dist/data/model-registry.d.ts +36 -0
- package/dist/data/model-registry.js +59 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +90 -0
- package/dist/integration/index.d.ts +8 -0
- package/dist/integration/index.js +24 -0
- package/dist/integration/schema-hash-manifest.json +26 -0
- package/dist/lib/graph-edge-resolve.d.ts +3 -0
- package/dist/lib/graph-edge-resolve.js +20 -0
- package/dist/lib/graph-id.d.ts +16 -0
- package/dist/lib/graph-id.js +169 -0
- package/dist/lib/step-navigation.d.ts +35 -0
- package/dist/lib/step-navigation.js +218 -0
- package/dist/marketing/acquisition-landing-matrix.d.ts +46 -0
- package/dist/marketing/acquisition-landing-matrix.js +64 -0
- package/dist/marketing/acquisition-recommendation.schema.d.ts +284 -0
- package/dist/marketing/acquisition-recommendation.schema.js +84 -0
- package/dist/marketing/ads-account.schema.d.ts +46 -0
- package/dist/marketing/ads-account.schema.js +15 -0
- package/dist/marketing/ads-ad-group.schema.d.ts +52 -0
- package/dist/marketing/ads-ad-group.schema.js +17 -0
- package/dist/marketing/ads-campaign.schema.d.ts +59 -0
- package/dist/marketing/ads-campaign.schema.js +18 -0
- package/dist/marketing/ads-conversion-action.schema.d.ts +60 -0
- package/dist/marketing/ads-conversion-action.schema.js +27 -0
- package/dist/marketing/ads-keyword.schema.d.ts +59 -0
- package/dist/marketing/ads-keyword.schema.js +19 -0
- package/dist/marketing/ads-metrics-daily.schema.d.ts +95 -0
- package/dist/marketing/ads-metrics-daily.schema.js +24 -0
- package/dist/marketing/ads-overview.schema.d.ts +479 -0
- package/dist/marketing/ads-overview.schema.js +44 -0
- package/dist/marketing/ads-query.schema.d.ts +33 -0
- package/dist/marketing/ads-query.schema.js +13 -0
- package/dist/marketing/ads-search-term.schema.d.ts +70 -0
- package/dist/marketing/ads-search-term.schema.js +19 -0
- package/dist/marketing/campaign-asset.schema.d.ts +51 -0
- package/dist/marketing/campaign-asset.schema.js +39 -0
- package/dist/marketing/community-movie-ads-free-signup-campaign.d.ts +23 -0
- package/dist/marketing/community-movie-ads-free-signup-campaign.js +29 -0
- package/dist/marketing/community-movie-campaign-matrix.d.ts +47 -0
- package/dist/marketing/community-movie-campaign-matrix.js +265 -0
- package/dist/marketing/community-movie-google-ads.constants.d.ts +49 -0
- package/dist/marketing/community-movie-google-ads.constants.js +59 -0
- package/dist/marketing/config.schema.d.ts +32 -0
- package/dist/marketing/config.schema.js +31 -0
- package/dist/marketing/date-range.schema.d.ts +12 -0
- package/dist/marketing/date-range.schema.js +10 -0
- package/dist/marketing/entities/index.d.ts +6 -0
- package/dist/marketing/entities/index.js +11 -0
- package/dist/marketing/ga4-conversion.schema.d.ts +87 -0
- package/dist/marketing/ga4-conversion.schema.js +22 -0
- package/dist/marketing/ga4-event.schema.d.ts +98 -0
- package/dist/marketing/ga4-event.schema.js +23 -0
- package/dist/marketing/ga4-funnel.schema.d.ts +90 -0
- package/dist/marketing/ga4-funnel.schema.js +23 -0
- package/dist/marketing/ga4-landing-page.schema.d.ts +131 -0
- package/dist/marketing/ga4-landing-page.schema.js +25 -0
- package/dist/marketing/ga4-overview.schema.d.ts +478 -0
- package/dist/marketing/ga4-overview.schema.js +31 -0
- package/dist/marketing/ga4-query.schema.d.ts +19 -0
- package/dist/marketing/ga4-query.schema.js +27 -0
- package/dist/marketing/ga4-retention.schema.d.ts +79 -0
- package/dist/marketing/ga4-retention.schema.js +21 -0
- package/dist/marketing/ga4-traffic.schema.d.ts +154 -0
- package/dist/marketing/ga4-traffic.schema.js +27 -0
- package/dist/marketing/gsc-organic-overview.schema.d.ts +338 -0
- package/dist/marketing/gsc-organic-overview.schema.js +28 -0
- package/dist/marketing/gsc-organic-query.schema.d.ts +121 -0
- package/dist/marketing/gsc-organic-query.schema.js +24 -0
- package/dist/marketing/gsc-page-performance.schema.d.ts +121 -0
- package/dist/marketing/gsc-page-performance.schema.js +24 -0
- package/dist/marketing/gsc-query.schema.d.ts +19 -0
- package/dist/marketing/gsc-query.schema.js +27 -0
- package/dist/marketing/index.d.ts +47 -0
- package/dist/marketing/index.js +63 -0
- package/dist/marketing/marketing-attribution-summary.schema.d.ts +165 -0
- package/dist/marketing/marketing-attribution-summary.schema.js +26 -0
- package/dist/marketing/marketing-challenge-performance.schema.d.ts +139 -0
- package/dist/marketing/marketing-challenge-performance.schema.js +28 -0
- package/dist/marketing/marketing-conversion-enqueue.schema.d.ts +88 -0
- package/dist/marketing/marketing-conversion-enqueue.schema.js +34 -0
- package/dist/marketing/marketing-executive-overview.schema.d.ts +1865 -0
- package/dist/marketing/marketing-executive-overview.schema.js +39 -0
- package/dist/marketing/marketing-health.schema.d.ts +366 -0
- package/dist/marketing/marketing-health.schema.js +65 -0
- package/dist/marketing/marketing-keyword-opportunity.schema.d.ts +158 -0
- package/dist/marketing/marketing-keyword-opportunity.schema.js +34 -0
- package/dist/marketing/marketing-landing-page-intelligence.schema.d.ts +159 -0
- package/dist/marketing/marketing-landing-page-intelligence.schema.js +30 -0
- package/dist/marketing/marketing-readiness.schema.d.ts +506 -0
- package/dist/marketing/marketing-readiness.schema.js +83 -0
- package/dist/marketing/marketing-test-traffic.d.ts +6 -0
- package/dist/marketing/marketing-test-traffic.js +28 -0
- package/dist/marketing/marketing-visibility-overview.schema.d.ts +949 -0
- package/dist/marketing/marketing-visibility-overview.schema.js +42 -0
- package/dist/marketing/marketing-world-catalog.d.ts +10 -0
- package/dist/marketing/marketing-world-catalog.js +16 -0
- package/dist/marketing/marketing-world-performance.schema.d.ts +179 -0
- package/dist/marketing/marketing-world-performance.schema.js +32 -0
- package/dist/marketing/routes.d.ts +77 -0
- package/dist/marketing/routes.js +79 -0
- package/dist/marketing/search-negative-keywords.d.ts +6 -0
- package/dist/marketing/search-negative-keywords.js +30 -0
- package/dist/registry/schema-registry.d.ts +74 -0
- package/dist/registry/schema-registry.js +1148 -0
- package/dist/registry/table-ownership-registry.d.ts +57 -0
- package/dist/registry/table-ownership-registry.js +932 -0
- package/dist/routes/assurance.d.ts +6 -0
- package/dist/routes/assurance.js +14 -0
- package/dist/routes/community-operator.d.ts +117 -0
- package/dist/routes/community-operator.js +119 -0
- package/dist/routes/community.d.ts +232 -0
- package/dist/routes/community.js +246 -0
- package/dist/routes/index.d.ts +2203 -0
- package/dist/routes/index.js +1440 -0
- package/dist/schemas/ai/ai-generate-inputs.schema.d.ts +2056 -0
- package/dist/schemas/ai/ai-generate-inputs.schema.js +167 -0
- package/dist/schemas/ai/ai-run-metadata.schema.d.ts +39 -0
- package/dist/schemas/ai/ai-run-metadata.schema.js +24 -0
- package/dist/schemas/ai/ai-runs-list.schema.d.ts +248 -0
- package/dist/schemas/ai/ai-runs-list.schema.js +27 -0
- package/dist/schemas/ai/analytics-generate.schema.d.ts +185 -0
- package/dist/schemas/ai/analytics-generate.schema.js +59 -0
- package/dist/schemas/ai/api-generate.schema.d.ts +49 -0
- package/dist/schemas/ai/api-generate.schema.js +16 -0
- package/dist/schemas/ai/api.schema.d.ts +80 -0
- package/dist/schemas/ai/api.schema.js +22 -0
- package/dist/schemas/ai/architecture-generate.schema.d.ts +47 -0
- package/dist/schemas/ai/architecture-generate.schema.js +19 -0
- package/dist/schemas/ai/argument-map-generate.schema.d.ts +433 -0
- package/dist/schemas/ai/argument-map-generate.schema.js +62 -0
- package/dist/schemas/ai/audit-existing-output-evidence.schema.d.ts +153 -0
- package/dist/schemas/ai/audit-existing-output-evidence.schema.js +46 -0
- package/dist/schemas/ai/brief-improve-generate.schema.d.ts +2291 -0
- package/dist/schemas/ai/brief-improve-generate.schema.js +293 -0
- package/dist/schemas/ai/chapter-revision.schema.d.ts +817 -0
- package/dist/schemas/ai/chapter-revision.schema.js +267 -0
- package/dist/schemas/ai/code-generate.schema.d.ts +1492 -0
- package/dist/schemas/ai/code-generate.schema.js +46 -0
- package/dist/schemas/ai/community-pitch-critique-generate.schema.d.ts +31 -0
- package/dist/schemas/ai/community-pitch-critique-generate.schema.js +17 -0
- package/dist/schemas/ai/community-suggestion-summary-generate.schema.d.ts +34 -0
- package/dist/schemas/ai/community-suggestion-summary-generate.schema.js +19 -0
- package/dist/schemas/ai/compliance-generate.schema.d.ts +24 -0
- package/dist/schemas/ai/compliance-generate.schema.js +11 -0
- package/dist/schemas/ai/compliance.schema.d.ts +58 -0
- package/dist/schemas/ai/compliance.schema.js +22 -0
- package/dist/schemas/ai/constitution-generate.schema.d.ts +221 -0
- package/dist/schemas/ai/constitution-generate.schema.js +52 -0
- package/dist/schemas/ai/constitution-kg-gate-status.schema.d.ts +33 -0
- package/dist/schemas/ai/constitution-kg-gate-status.schema.js +15 -0
- package/dist/schemas/ai/constitution-validate-input.schema.d.ts +18 -0
- package/dist/schemas/ai/constitution-validate-input.schema.js +10 -0
- package/dist/schemas/ai/constitution-writing-generate.schema.d.ts +437 -0
- package/dist/schemas/ai/constitution-writing-generate.schema.js +70 -0
- package/dist/schemas/ai/constitution.schema.d.ts +19 -0
- package/dist/schemas/ai/constitution.schema.js +12 -0
- package/dist/schemas/ai/counterclaim-framework-generate.schema.d.ts +479 -0
- package/dist/schemas/ai/counterclaim-framework-generate.schema.js +66 -0
- package/dist/schemas/ai/coverage-generate.schema.d.ts +61 -0
- package/dist/schemas/ai/coverage-generate.schema.js +27 -0
- package/dist/schemas/ai/definitions-generate.schema.d.ts +448 -0
- package/dist/schemas/ai/definitions-generate.schema.js +62 -0
- package/dist/schemas/ai/deployments-generate.schema.d.ts +40 -0
- package/dist/schemas/ai/deployments-generate.schema.js +18 -0
- package/dist/schemas/ai/docs-generate.schema.d.ts +51 -0
- package/dist/schemas/ai/docs-generate.schema.js +18 -0
- package/dist/schemas/ai/domain-context.d.ts +58 -0
- package/dist/schemas/ai/domain-context.js +185 -0
- package/dist/schemas/ai/draft-generate.schema.d.ts +32 -0
- package/dist/schemas/ai/draft-generate.schema.js +17 -0
- package/dist/schemas/ai/editorial-guardian-generate.schema.d.ts +470 -0
- package/dist/schemas/ai/editorial-guardian-generate.schema.js +60 -0
- package/dist/schemas/ai/editorial-revise-chapter.schema.d.ts +411 -0
- package/dist/schemas/ai/editorial-revise-chapter.schema.js +83 -0
- package/dist/schemas/ai/film-clip-review-generate.schema.d.ts +291 -0
- package/dist/schemas/ai/film-clip-review-generate.schema.js +35 -0
- package/dist/schemas/ai/film-keyframe-generate.schema.d.ts +359 -0
- package/dist/schemas/ai/film-keyframe-generate.schema.js +28 -0
- package/dist/schemas/ai/film-keyframe-register.schema.d.ts +67 -0
- package/dist/schemas/ai/film-keyframe-register.schema.js +16 -0
- package/dist/schemas/ai/film-shot-risk-assess.schema.d.ts +12 -0
- package/dist/schemas/ai/film-shot-risk-assess.schema.js +10 -0
- package/dist/schemas/ai/film-still-review-generate.schema.d.ts +232 -0
- package/dist/schemas/ai/film-still-review-generate.schema.js +31 -0
- package/dist/schemas/ai/film-workflow-generate.schema.d.ts +117 -0
- package/dist/schemas/ai/film-workflow-generate.schema.js +33 -0
- package/dist/schemas/ai/generate-response.schema.d.ts +66 -0
- package/dist/schemas/ai/generate-response.schema.js +26 -0
- package/dist/schemas/ai/guardian-gate-status.schema.d.ts +112 -0
- package/dist/schemas/ai/guardian-gate-status.schema.js +17 -0
- package/dist/schemas/ai/guardian-kg-gate-status.schema.d.ts +58 -0
- package/dist/schemas/ai/guardian-kg-gate-status.schema.js +30 -0
- package/dist/schemas/ai/guardian-rule-detail.schema.d.ts +74 -0
- package/dist/schemas/ai/guardian-rule-detail.schema.js +19 -0
- package/dist/schemas/ai/guardian-score-history.schema.d.ts +75 -0
- package/dist/schemas/ai/guardian-score-history.schema.js +16 -0
- package/dist/schemas/ai/implement-graph.schema.d.ts +323 -0
- package/dist/schemas/ai/implement-graph.schema.js +51 -0
- package/dist/schemas/ai/implement-kg-gate-status.schema.d.ts +36 -0
- package/dist/schemas/ai/implement-kg-gate-status.schema.js +16 -0
- package/dist/schemas/ai/implement.schema.d.ts +73 -0
- package/dist/schemas/ai/implement.schema.js +23 -0
- package/dist/schemas/ai/index.d.ts +46 -0
- package/dist/schemas/ai/index.js +62 -0
- package/dist/schemas/ai/knowledge-kg-gate-status.schema.d.ts +73 -0
- package/dist/schemas/ai/knowledge-kg-gate-status.schema.js +24 -0
- package/dist/schemas/ai/knowledge-search-generate.schema.d.ts +2 -0
- package/dist/schemas/ai/knowledge-search-generate.schema.js +6 -0
- package/dist/schemas/ai/manuscript-checks.schema.d.ts +6095 -0
- package/dist/schemas/ai/manuscript-checks.schema.js +440 -0
- package/dist/schemas/ai/model-policy/index.d.ts +9 -0
- package/dist/schemas/ai/model-policy/index.js +25 -0
- package/dist/schemas/ai/model-policy/model-mode-preset.schema.d.ts +83 -0
- package/dist/schemas/ai/model-policy/model-mode-preset.schema.js +20 -0
- package/dist/schemas/ai/model-policy/model-modes.schema.d.ts +13 -0
- package/dist/schemas/ai/model-policy/model-modes.schema.js +27 -0
- package/dist/schemas/ai/model-policy/model-policy-resolved.schema.d.ts +44 -0
- package/dist/schemas/ai/model-policy/model-policy-resolved.schema.js +27 -0
- package/dist/schemas/ai/model-policy/model-quality-summary.schema.d.ts +133 -0
- package/dist/schemas/ai/model-policy/model-quality-summary.schema.js +35 -0
- package/dist/schemas/ai/model-policy/model-usage-summary.schema.d.ts +204 -0
- package/dist/schemas/ai/model-policy/model-usage-summary.schema.js +38 -0
- package/dist/schemas/ai/model-policy/project-model-policy.schema.d.ts +1311 -0
- package/dist/schemas/ai/model-policy/project-model-policy.schema.js +33 -0
- package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.d.ts +66 -0
- package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.js +48 -0
- package/dist/schemas/ai/model-policy/workflow-step-ids.schema.d.ts +2 -0
- package/dist/schemas/ai/model-policy/workflow-step-ids.schema.js +24 -0
- package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.d.ts +63 -0
- package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.js +43 -0
- package/dist/schemas/ai/orchestration-generate-fields.schema.d.ts +9 -0
- package/dist/schemas/ai/orchestration-generate-fields.schema.js +8 -0
- package/dist/schemas/ai/payload-json-schemas.d.ts +110 -0
- package/dist/schemas/ai/payload-json-schemas.js +154 -0
- package/dist/schemas/ai/plan.schema.d.ts +137 -0
- package/dist/schemas/ai/plan.schema.js +36 -0
- package/dist/schemas/ai/refine-fields.schema.d.ts +34 -0
- package/dist/schemas/ai/refine-fields.schema.js +27 -0
- package/dist/schemas/ai/review-generate.schema.d.ts +35 -0
- package/dist/schemas/ai/review-generate.schema.js +15 -0
- package/dist/schemas/ai/review.schema.d.ts +77 -0
- package/dist/schemas/ai/review.schema.js +29 -0
- package/dist/schemas/ai/run-trace.schema.d.ts +105 -0
- package/dist/schemas/ai/run-trace.schema.js +43 -0
- package/dist/schemas/ai/schema-generate.schema.d.ts +185 -0
- package/dist/schemas/ai/schema-generate.schema.js +44 -0
- package/dist/schemas/ai/schema.schema.d.ts +205 -0
- package/dist/schemas/ai/schema.schema.js +50 -0
- package/dist/schemas/ai/screenplay.schema.d.ts +550 -0
- package/dist/schemas/ai/screenplay.schema.js +77 -0
- package/dist/schemas/ai/source-registry-generate.schema.d.ts +245 -0
- package/dist/schemas/ai/source-registry-generate.schema.js +41 -0
- package/dist/schemas/ai/spec.schema.d.ts +248 -0
- package/dist/schemas/ai/spec.schema.js +78 -0
- package/dist/schemas/ai/style-system-generate.schema.d.ts +319 -0
- package/dist/schemas/ai/style-system-generate.schema.js +67 -0
- package/dist/schemas/ai/tasks-kg-gate-status.schema.d.ts +24 -0
- package/dist/schemas/ai/tasks-kg-gate-status.schema.js +12 -0
- package/dist/schemas/ai/tasks.schema.d.ts +49 -0
- package/dist/schemas/ai/tasks.schema.js +17 -0
- package/dist/schemas/ai/ui-generation-standard.schema.d.ts +42 -0
- package/dist/schemas/ai/ui-generation-standard.schema.js +40 -0
- package/dist/schemas/ai/ui-kg-gate-status.schema.d.ts +42 -0
- package/dist/schemas/ai/ui-kg-gate-status.schema.js +18 -0
- package/dist/schemas/ai/ui.schema.d.ts +22 -0
- package/dist/schemas/ai/ui.schema.js +13 -0
- package/dist/schemas/ai/workflow-artifacts.schema.d.ts +36075 -0
- package/dist/schemas/ai/workflow-artifacts.schema.js +2829 -0
- package/dist/schemas/ai/workflow-execution-mode.schema.d.ts +4 -0
- package/dist/schemas/ai/workflow-execution-mode.schema.js +6 -0
- package/dist/schemas/ai/writing-draft-all-generate.schema.d.ts +3444 -0
- package/dist/schemas/ai/writing-draft-all-generate.schema.js +319 -0
- package/dist/schemas/ai/writing-tasks-generate.schema.d.ts +283 -0
- package/dist/schemas/ai/writing-tasks-generate.schema.js +52 -0
- package/dist/schemas/ai/zod-openai-json-schema.d.ts +2 -0
- package/dist/schemas/ai/zod-openai-json-schema.js +67 -0
- package/dist/schemas/ai-ci-generate.d.ts +47 -0
- package/dist/schemas/ai-ci-generate.js +19 -0
- package/dist/schemas/ai-llm-outputs.d.ts +52 -0
- package/dist/schemas/ai-llm-outputs.js +26 -0
- package/dist/schemas/api/create-orchestration-request.schema.d.ts +13 -0
- package/dist/schemas/api/create-orchestration-request.schema.js +10 -0
- package/dist/schemas/api/implement-orchestration-session.schema.d.ts +26 -0
- package/dist/schemas/api/implement-orchestration-session.schema.js +11 -0
- package/dist/schemas/api/orchestration-events-list-response.schema.d.ts +108 -0
- package/dist/schemas/api/orchestration-events-list-response.schema.js +27 -0
- package/dist/schemas/api/plans-list-response.schema.d.ts +203 -0
- package/dist/schemas/api/plans-list-response.schema.js +35 -0
- package/dist/schemas/api/project-model-usage-query.schema.d.ts +24 -0
- package/dist/schemas/api/project-model-usage-query.schema.js +42 -0
- package/dist/schemas/api/specs-list-response.schema.d.ts +78 -0
- package/dist/schemas/api/specs-list-response.schema.js +23 -0
- package/dist/schemas/api-envelope.schema.d.ts +131 -0
- package/dist/schemas/api-envelope.schema.js +60 -0
- package/dist/schemas/artifacts/artifact-upload-proxy.schema.d.ts +27 -0
- package/dist/schemas/artifacts/artifact-upload-proxy.schema.js +15 -0
- package/dist/schemas/assurance/assurance-mode.schema.d.ts +33 -0
- package/dist/schemas/assurance/assurance-mode.schema.js +25 -0
- package/dist/schemas/assurance/browser-outcome-proof.schema.d.ts +164 -0
- package/dist/schemas/assurance/browser-outcome-proof.schema.js +58 -0
- package/dist/schemas/assurance/computation-authority-registry.schema.d.ts +108 -0
- package/dist/schemas/assurance/computation-authority-registry.schema.js +36 -0
- package/dist/schemas/assurance/documentation-evidence.schema.d.ts +131 -0
- package/dist/schemas/assurance/documentation-evidence.schema.js +44 -0
- package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.d.ts +743 -0
- package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.js +28 -0
- package/dist/schemas/assurance/domain-assurance-verdict.schema.d.ts +40 -0
- package/dist/schemas/assurance/domain-assurance-verdict.schema.js +24 -0
- package/dist/schemas/assurance/domain-truth-brief.schema.d.ts +270 -0
- package/dist/schemas/assurance/domain-truth-brief.schema.js +73 -0
- package/dist/schemas/assurance/enterprise-targeting.schema.d.ts +46 -0
- package/dist/schemas/assurance/enterprise-targeting.schema.js +24 -0
- package/dist/schemas/assurance/gate-result.schema.d.ts +35 -0
- package/dist/schemas/assurance/gate-result.schema.js +35 -0
- package/dist/schemas/assurance/index.d.ts +13 -0
- package/dist/schemas/assurance/index.js +30 -0
- package/dist/schemas/assurance/provider-call-ledger.schema.d.ts +97 -0
- package/dist/schemas/assurance/provider-call-ledger.schema.js +36 -0
- package/dist/schemas/assurance/provider-ledger-response.schema.d.ts +113 -0
- package/dist/schemas/assurance/provider-ledger-response.schema.js +29 -0
- package/dist/schemas/assurance/release-verdict.schema.d.ts +87 -0
- package/dist/schemas/assurance/release-verdict.schema.js +47 -0
- package/dist/schemas/assurance/risk-class.schema.d.ts +30 -0
- package/dist/schemas/assurance/risk-class.schema.js +33 -0
- package/dist/schemas/audiobook/alice-pronunciation.schema.d.ts +80 -0
- package/dist/schemas/audiobook/alice-pronunciation.schema.js +45 -0
- package/dist/schemas/audiobook/audiobook-api.schema.d.ts +1937 -0
- package/dist/schemas/audiobook/audiobook-api.schema.js +201 -0
- package/dist/schemas/audiobook/audiobook-artifacts.schema.d.ts +4069 -0
- package/dist/schemas/audiobook/audiobook-artifacts.schema.js +469 -0
- package/dist/schemas/audiobook/audiobook-studio.schema.d.ts +670 -0
- package/dist/schemas/audiobook/audiobook-studio.schema.js +159 -0
- package/dist/schemas/audiobook/audiobook-validation.d.ts +227 -0
- package/dist/schemas/audiobook/audiobook-validation.js +23 -0
- package/dist/schemas/audiobook/chunk-narration-script.d.ts +17 -0
- package/dist/schemas/audiobook/chunk-narration-script.js +96 -0
- package/dist/schemas/audiobook/elevenlabs-provider.schema.d.ts +167 -0
- package/dist/schemas/audiobook/elevenlabs-provider.schema.js +93 -0
- package/dist/schemas/audiobook/index.d.ts +8 -0
- package/dist/schemas/audiobook/index.js +24 -0
- package/dist/schemas/audiobook/narration-chunk.schema.d.ts +114 -0
- package/dist/schemas/audiobook/narration-chunk.schema.js +38 -0
- package/dist/schemas/audiobook-embed/audiobook-embed.schema.d.ts +1732 -0
- package/dist/schemas/audiobook-embed/audiobook-embed.schema.js +259 -0
- package/dist/schemas/auth/session-context.schema.d.ts +177 -0
- package/dist/schemas/auth/session-context.schema.js +40 -0
- package/dist/schemas/cache/cache-ai-response.schema.d.ts +50 -0
- package/dist/schemas/cache/cache-ai-response.schema.js +28 -0
- package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.d.ts +16 -0
- package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.js +12 -0
- package/dist/schemas/ci/ci-apply-post-success.schema.d.ts +24 -0
- package/dist/schemas/ci/ci-apply-post-success.schema.js +15 -0
- package/dist/schemas/ci/ci-canonical-readiness.schema.d.ts +155 -0
- package/dist/schemas/ci/ci-canonical-readiness.schema.js +47 -0
- package/dist/schemas/ci/ci-dispatch-post.schema.d.ts +34 -0
- package/dist/schemas/ci/ci-dispatch-post.schema.js +20 -0
- package/dist/schemas/ci/ci-ingest-post.schema.d.ts +37 -0
- package/dist/schemas/ci/ci-ingest-post.schema.js +22 -0
- package/dist/schemas/ci/ci-operator-ready-patch.schema.d.ts +13 -0
- package/dist/schemas/ci/ci-operator-ready-patch.schema.js +11 -0
- package/dist/schemas/ci/ci-pipeline-status.schema.d.ts +3 -0
- package/dist/schemas/ci/ci-pipeline-status.schema.js +13 -0
- package/dist/schemas/ci/ci-run.schema.d.ts +44 -0
- package/dist/schemas/ci/ci-run.schema.js +27 -0
- package/dist/schemas/ci/ci-runs-list-response.schema.d.ts +91 -0
- package/dist/schemas/ci/ci-runs-list-response.schema.js +13 -0
- package/dist/schemas/ci/ci-status-get.schema.d.ts +155 -0
- package/dist/schemas/ci/ci-status-get.schema.js +12 -0
- package/dist/schemas/ci/ci-status-response.schema.d.ts +554 -0
- package/dist/schemas/ci/ci-status-response.schema.js +151 -0
- package/dist/schemas/ci/index.d.ts +12 -0
- package/dist/schemas/ci/index.js +28 -0
- package/dist/schemas/ci/pr-check-run.schema.d.ts +44 -0
- package/dist/schemas/ci/pr-check-run.schema.js +21 -0
- package/dist/schemas/ci/project-engine-context.schema.d.ts +70 -0
- package/dist/schemas/ci/project-engine-context.schema.js +26 -0
- package/dist/schemas/community/community-actor-comment-body.schema.d.ts +9 -0
- package/dist/schemas/community/community-actor-comment-body.schema.js +9 -0
- package/dist/schemas/community/community-actor-universe-vote.schema.d.ts +10 -0
- package/dist/schemas/community/community-actor-universe-vote.schema.js +10 -0
- package/dist/schemas/community/community-ad-capi.schema.d.ts +77 -0
- package/dist/schemas/community/community-ad-capi.schema.js +42 -0
- package/dist/schemas/community/community-billing-checkout.schema.d.ts +31 -0
- package/dist/schemas/community/community-billing-checkout.schema.js +43 -0
- package/dist/schemas/community/community-challenge.schema.d.ts +43 -0
- package/dist/schemas/community/community-challenge.schema.js +21 -0
- package/dist/schemas/community/community-content-translation.schema.d.ts +99 -0
- package/dist/schemas/community/community-content-translation.schema.js +63 -0
- package/dist/schemas/community/community-credit-transaction.schema.d.ts +36 -0
- package/dist/schemas/community/community-credit-transaction.schema.js +19 -0
- package/dist/schemas/community/community-development-input.schema.d.ts +20 -0
- package/dist/schemas/community/community-development-input.schema.js +16 -0
- package/dist/schemas/community/community-development-room.schema.d.ts +28 -0
- package/dist/schemas/community/community-development-room.schema.js +16 -0
- package/dist/schemas/community/community-email.schema.d.ts +96 -0
- package/dist/schemas/community/community-email.schema.js +65 -0
- package/dist/schemas/community/community-film-playback.schema.d.ts +287 -0
- package/dist/schemas/community/community-film-playback.schema.js +52 -0
- package/dist/schemas/community/community-film-video-variant.schema.d.ts +94 -0
- package/dist/schemas/community/community-film-video-variant.schema.js +53 -0
- package/dist/schemas/community/community-film-world-marketing.schema.d.ts +27 -0
- package/dist/schemas/community/community-film-world-marketing.schema.js +67 -0
- package/dist/schemas/community/community-film.schema.d.ts +183 -0
- package/dist/schemas/community/community-film.schema.js +105 -0
- package/dist/schemas/community/community-idea-promote.schema.d.ts +4 -0
- package/dist/schemas/community/community-idea-promote.schema.js +6 -0
- package/dist/schemas/community/community-idea-submission.schema.d.ts +54 -0
- package/dist/schemas/community/community-idea-submission.schema.js +22 -0
- package/dist/schemas/community/community-idea-version.schema.d.ts +72 -0
- package/dist/schemas/community/community-idea-version.schema.js +28 -0
- package/dist/schemas/community/community-idea.schema.d.ts +71 -0
- package/dist/schemas/community/community-idea.schema.js +36 -0
- package/dist/schemas/community/community-locale.schema.d.ts +8 -0
- package/dist/schemas/community/community-locale.schema.js +10 -0
- package/dist/schemas/community/community-membership-monthly-credits.d.ts +4 -0
- package/dist/schemas/community/community-membership-monthly-credits.js +18 -0
- package/dist/schemas/community/community-membership.schema.d.ts +34 -0
- package/dist/schemas/community/community-membership.schema.js +19 -0
- package/dist/schemas/community/community-moderation-flag.schema.d.ts +31 -0
- package/dist/schemas/community/community-moderation-flag.schema.js +17 -0
- package/dist/schemas/community/community-movie-actor-blueprint.schema.d.ts +196 -0
- package/dist/schemas/community/community-movie-actor-blueprint.schema.js +30 -0
- package/dist/schemas/community/community-movie-actor-card.schema.d.ts +37 -0
- package/dist/schemas/community/community-movie-actor-card.schema.js +20 -0
- package/dist/schemas/community/community-movie-actor-create-request.schema.d.ts +102 -0
- package/dist/schemas/community/community-movie-actor-create-request.schema.js +24 -0
- package/dist/schemas/community/community-movie-actor-create-response.schema.d.ts +35 -0
- package/dist/schemas/community/community-movie-actor-create-response.schema.js +12 -0
- package/dist/schemas/community/community-movie-actor-gate-result.schema.d.ts +15 -0
- package/dist/schemas/community/community-movie-actor-gate-result.schema.js +11 -0
- package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.d.ts +22 -0
- package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.js +14 -0
- package/dist/schemas/community/community-movie-actor-kg-seed.schema.d.ts +68 -0
- package/dist/schemas/community/community-movie-actor-kg-seed.schema.js +31 -0
- package/dist/schemas/community/community-movie-actor-option-selection.schema.d.ts +43 -0
- package/dist/schemas/community/community-movie-actor-option-selection.schema.js +22 -0
- package/dist/schemas/community/community-movie-actor-portrait-url.schema.d.ts +10 -0
- package/dist/schemas/community/community-movie-actor-portrait-url.schema.js +10 -0
- package/dist/schemas/community/community-movie-actor-vote-response.schema.d.ts +13 -0
- package/dist/schemas/community/community-movie-actor-vote-response.schema.js +9 -0
- package/dist/schemas/community/community-movie-canonical-character.schema.d.ts +78 -0
- package/dist/schemas/community/community-movie-canonical-character.schema.js +104 -0
- package/dist/schemas/community/community-movie-gallery.schema.d.ts +28 -0
- package/dist/schemas/community/community-movie-gallery.schema.js +90 -0
- package/dist/schemas/community/community-movie-gate-result.schema.d.ts +46 -0
- package/dist/schemas/community/community-movie-gate-result.schema.js +23 -0
- package/dist/schemas/community/community-movie-idea-card.schema.d.ts +31 -0
- package/dist/schemas/community/community-movie-idea-card.schema.js +17 -0
- package/dist/schemas/community/community-movie-idea-input.schema.d.ts +22 -0
- package/dist/schemas/community/community-movie-idea-input.schema.js +14 -0
- package/dist/schemas/community/community-movie-idea-structured.schema.d.ts +34 -0
- package/dist/schemas/community/community-movie-idea-structured.schema.js +20 -0
- package/dist/schemas/community/community-movie-kg-seed.schema.d.ts +73 -0
- package/dist/schemas/community/community-movie-kg-seed.schema.js +84 -0
- package/dist/schemas/community/community-movie-stage-transitions.d.ts +15 -0
- package/dist/schemas/community/community-movie-stage-transitions.js +35 -0
- package/dist/schemas/community/community-movie-world-cta.schema.d.ts +75 -0
- package/dist/schemas/community/community-movie-world-cta.schema.js +83 -0
- package/dist/schemas/community/community-partner-offers.d.ts +13 -0
- package/dist/schemas/community/community-partner-offers.js +22 -0
- package/dist/schemas/community/community-partner.schema.d.ts +41 -0
- package/dist/schemas/community/community-partner.schema.js +23 -0
- package/dist/schemas/community/community-poll.schema.d.ts +54 -0
- package/dist/schemas/community/community-poll.schema.js +27 -0
- package/dist/schemas/community/community-production-operator.schema.d.ts +320 -0
- package/dist/schemas/community/community-production-operator.schema.js +91 -0
- package/dist/schemas/community/community-referral.schema.d.ts +155 -0
- package/dist/schemas/community/community-referral.schema.js +63 -0
- package/dist/schemas/community/community-signup-intake.constants.d.ts +13 -0
- package/dist/schemas/community/community-signup-intake.constants.js +134 -0
- package/dist/schemas/community/community-signup-intake.schema.d.ts +87 -0
- package/dist/schemas/community/community-signup-intake.schema.js +82 -0
- package/dist/schemas/community/community-slate.schema.d.ts +60 -0
- package/dist/schemas/community/community-slate.schema.js +29 -0
- package/dist/schemas/community/community-stage-transition.schema.d.ts +33 -0
- package/dist/schemas/community/community-stage-transition.schema.js +18 -0
- package/dist/schemas/community/community-suggestion.schema.d.ts +35 -0
- package/dist/schemas/community/community-suggestion.schema.js +24 -0
- package/dist/schemas/community/community-vote.schema.d.ts +24 -0
- package/dist/schemas/community/community-vote.schema.js +14 -0
- package/dist/schemas/community/community-waitlist.schema.d.ts +12 -0
- package/dist/schemas/community/community-waitlist.schema.js +10 -0
- package/dist/schemas/community/community-world-contribution.schema.d.ts +102 -0
- package/dist/schemas/community/community-world-contribution.schema.js +86 -0
- package/dist/schemas/community/credit-disclosure-variant.schema.d.ts +4 -0
- package/dist/schemas/community/credit-disclosure-variant.schema.js +6 -0
- package/dist/schemas/community/index.d.ts +56 -0
- package/dist/schemas/community/index.js +72 -0
- package/dist/schemas/cortex/bridge-envelope.schema.d.ts +70 -0
- package/dist/schemas/cortex/bridge-envelope.schema.js +77 -0
- package/dist/schemas/cortex/bridge-event-catalogue.d.ts +14 -0
- package/dist/schemas/cortex/bridge-event-catalogue.js +138 -0
- package/dist/schemas/cortex/bridge-events.schema.d.ts +12554 -0
- package/dist/schemas/cortex/bridge-events.schema.js +793 -0
- package/dist/schemas/cortex/bridge-readiness.schema.d.ts +27 -0
- package/dist/schemas/cortex/bridge-readiness.schema.js +15 -0
- package/dist/schemas/cortex/film-bridge-events.schema.d.ts +301 -0
- package/dist/schemas/cortex/film-bridge-events.schema.js +116 -0
- package/dist/schemas/cortex/index.d.ts +7 -0
- package/dist/schemas/cortex/index.js +23 -0
- package/dist/schemas/cortex/product-release-package.schema.d.ts +370 -0
- package/dist/schemas/cortex/product-release-package.schema.js +123 -0
- package/dist/schemas/cortex/proof-run-recorder.schema.d.ts +144 -0
- package/dist/schemas/cortex/proof-run-recorder.schema.js +43 -0
- package/dist/schemas/deployments/deployment-predict.schema.d.ts +165 -0
- package/dist/schemas/deployments/deployment-predict.schema.js +92 -0
- package/dist/schemas/deployments/deployment-preflight.schema.d.ts +184 -0
- package/dist/schemas/deployments/deployment-preflight.schema.js +80 -0
- package/dist/schemas/deployments/deployment-rollback.schema.d.ts +519 -0
- package/dist/schemas/deployments/deployment-rollback.schema.js +102 -0
- package/dist/schemas/deployments/deployment-status.schema.d.ts +1359 -0
- package/dist/schemas/deployments/deployment-status.schema.js +421 -0
- package/dist/schemas/film/film-artifact-kind.schema.d.ts +2 -0
- package/dist/schemas/film/film-artifact-kind.schema.js +6 -0
- package/dist/schemas/film/film-artifact-payloads.schema.d.ts +532 -0
- package/dist/schemas/film/film-artifact-payloads.schema.js +174 -0
- package/dist/schemas/film/film-asset-review.schema.d.ts +83 -0
- package/dist/schemas/film/film-asset-review.schema.js +42 -0
- package/dist/schemas/film/film-asset-rights-profile.schema.d.ts +68 -0
- package/dist/schemas/film/film-asset-rights-profile.schema.js +33 -0
- package/dist/schemas/film/film-character-pack-api.schema.d.ts +216 -0
- package/dist/schemas/film/film-character-pack-api.schema.js +51 -0
- package/dist/schemas/film/film-character-pack.schema.d.ts +51 -0
- package/dist/schemas/film/film-character-pack.schema.js +24 -0
- package/dist/schemas/film/film-character-scene-state.schema.d.ts +36 -0
- package/dist/schemas/film/film-character-scene-state.schema.js +18 -0
- package/dist/schemas/film/film-clip-api.schema.d.ts +379 -0
- package/dist/schemas/film/film-clip-api.schema.js +159 -0
- package/dist/schemas/film/film-clip-review-orchestration.schema.d.ts +234 -0
- package/dist/schemas/film/film-clip-review-orchestration.schema.js +23 -0
- package/dist/schemas/film/film-clip-review-scores.schema.d.ts +51 -0
- package/dist/schemas/film/film-clip-review-scores.schema.js +49 -0
- package/dist/schemas/film/film-clip-structured-review-artifact.schema.d.ts +175 -0
- package/dist/schemas/film/film-clip-structured-review-artifact.schema.js +15 -0
- package/dist/schemas/film/film-clip-structured-review.schema.d.ts +267 -0
- package/dist/schemas/film/film-clip-structured-review.schema.js +54 -0
- package/dist/schemas/film/film-clip.schema.d.ts +171 -0
- package/dist/schemas/film/film-clip.schema.js +64 -0
- package/dist/schemas/film/film-comfyui-workflow-create.schema.d.ts +39 -0
- package/dist/schemas/film/film-comfyui-workflow-create.schema.js +20 -0
- package/dist/schemas/film/film-comfyui-workflow-update.schema.d.ts +54 -0
- package/dist/schemas/film/film-comfyui-workflow-update.schema.js +28 -0
- package/dist/schemas/film/film-comfyui-workflow.schema.d.ts +188 -0
- package/dist/schemas/film/film-comfyui-workflow.schema.js +65 -0
- package/dist/schemas/film/film-creative-read-model.schema.d.ts +675 -0
- package/dist/schemas/film/film-creative-read-model.schema.js +66 -0
- package/dist/schemas/film/film-deliverable.schema.d.ts +656 -0
- package/dist/schemas/film/film-deliverable.schema.js +252 -0
- package/dist/schemas/film/film-edit-sequence.schema.d.ts +1112 -0
- package/dist/schemas/film/film-edit-sequence.schema.js +106 -0
- package/dist/schemas/film/film-elevenlabs-voice.schema.d.ts +126 -0
- package/dist/schemas/film/film-elevenlabs-voice.schema.js +56 -0
- package/dist/schemas/film/film-enqueue-multi-take.schema.d.ts +57 -0
- package/dist/schemas/film/film-enqueue-multi-take.schema.js +24 -0
- package/dist/schemas/film/film-export.schema.d.ts +78 -0
- package/dist/schemas/film/film-export.schema.js +37 -0
- package/dist/schemas/film/film-generation-dashboard.schema.d.ts +1779 -0
- package/dist/schemas/film/film-generation-dashboard.schema.js +222 -0
- package/dist/schemas/film/film-generation-package.schema.d.ts +1665 -0
- package/dist/schemas/film/film-generation-package.schema.js +116 -0
- package/dist/schemas/film/film-generation-task.schema.d.ts +1086 -0
- package/dist/schemas/film/film-generation-task.schema.js +159 -0
- package/dist/schemas/film/film-hydrate.schema.d.ts +46 -0
- package/dist/schemas/film/film-hydrate.schema.js +23 -0
- package/dist/schemas/film/film-keyframe-brief.schema.d.ts +99 -0
- package/dist/schemas/film/film-keyframe-brief.schema.js +29 -0
- package/dist/schemas/film/film-keyframe-review.schema.d.ts +186 -0
- package/dist/schemas/film/film-keyframe-review.schema.js +25 -0
- package/dist/schemas/film/film-keyframe.schema.d.ts +214 -0
- package/dist/schemas/film/film-keyframe.schema.js +43 -0
- package/dist/schemas/film/film-lessons-manifest.schema.d.ts +589 -0
- package/dist/schemas/film/film-lessons-manifest.schema.js +83 -0
- package/dist/schemas/film/film-llm-field.d.ts +22 -0
- package/dist/schemas/film/film-llm-field.js +78 -0
- package/dist/schemas/film/film-location-pack.schema.d.ts +51 -0
- package/dist/schemas/film/film-location-pack.schema.js +24 -0
- package/dist/schemas/film/film-marketing-creative-api.schema.d.ts +276 -0
- package/dist/schemas/film/film-marketing-creative-api.schema.js +47 -0
- package/dist/schemas/film/film-marketing-creative.schema.d.ts +74 -0
- package/dist/schemas/film/film-marketing-creative.schema.js +58 -0
- package/dist/schemas/film/film-marketing-format-preset.schema.d.ts +22 -0
- package/dist/schemas/film/film-marketing-format-preset.schema.js +71 -0
- package/dist/schemas/film/film-media-asset-file.schema.d.ts +59 -0
- package/dist/schemas/film/film-media-asset-file.schema.js +45 -0
- package/dist/schemas/film/film-media-asset-promotion-api.schema.d.ts +219 -0
- package/dist/schemas/film/film-media-asset-promotion-api.schema.js +29 -0
- package/dist/schemas/film/film-media-asset-review-api.schema.d.ts +431 -0
- package/dist/schemas/film/film-media-asset-review-api.schema.js +41 -0
- package/dist/schemas/film/film-media-asset.schema.d.ts +131 -0
- package/dist/schemas/film/film-media-asset.schema.js +94 -0
- package/dist/schemas/film/film-media-kg.schema.d.ts +86 -0
- package/dist/schemas/film/film-media-kg.schema.js +70 -0
- package/dist/schemas/film/film-ofi-report.schema.d.ts +437 -0
- package/dist/schemas/film/film-ofi-report.schema.js +65 -0
- package/dist/schemas/film/film-otio-sidecar.schema.d.ts +136 -0
- package/dist/schemas/film/film-otio-sidecar.schema.js +28 -0
- package/dist/schemas/film/film-production-coverage.schema.d.ts +179 -0
- package/dist/schemas/film/film-production-coverage.schema.js +123 -0
- package/dist/schemas/film/film-production-graph.schema.d.ts +273 -0
- package/dist/schemas/film/film-production-graph.schema.js +43 -0
- package/dist/schemas/film/film-production-read-model.schema.d.ts +1038 -0
- package/dist/schemas/film/film-production-read-model.schema.js +65 -0
- package/dist/schemas/film/film-production-style.schema.d.ts +31 -0
- package/dist/schemas/film/film-production-style.schema.js +50 -0
- package/dist/schemas/film/film-project.schema.d.ts +115 -0
- package/dist/schemas/film/film-project.schema.js +50 -0
- package/dist/schemas/film/film-prompt-compiler.schema.d.ts +346 -0
- package/dist/schemas/film/film-prompt-compiler.schema.js +116 -0
- package/dist/schemas/film/film-prompt-performance.schema.d.ts +77 -0
- package/dist/schemas/film/film-prompt-performance.schema.js +37 -0
- package/dist/schemas/film/film-prompt-repair.schema.d.ts +41 -0
- package/dist/schemas/film/film-prompt-repair.schema.js +36 -0
- package/dist/schemas/film/film-prompt.schema.d.ts +265 -0
- package/dist/schemas/film/film-prompt.schema.js +47 -0
- package/dist/schemas/film/film-provider-hints.schema.d.ts +105 -0
- package/dist/schemas/film/film-provider-hints.schema.js +50 -0
- package/dist/schemas/film/film-provider-job.schema.d.ts +320 -0
- package/dist/schemas/film/film-provider-job.schema.js +181 -0
- package/dist/schemas/film/film-provider.schema.d.ts +100 -0
- package/dist/schemas/film/film-provider.schema.js +51 -0
- package/dist/schemas/film/film-queue-enqueue.schema.d.ts +423 -0
- package/dist/schemas/film/film-queue-enqueue.schema.js +98 -0
- package/dist/schemas/film/film-queue-task-detail.schema.d.ts +981 -0
- package/dist/schemas/film/film-queue-task-detail.schema.js +57 -0
- package/dist/schemas/film/film-reference-pack.schema.d.ts +48 -0
- package/dist/schemas/film/film-reference-pack.schema.js +23 -0
- package/dist/schemas/film/film-regeneration-plan.schema.d.ts +124 -0
- package/dist/schemas/film/film-regeneration-plan.schema.js +62 -0
- package/dist/schemas/film/film-resolve-ingest.schema.d.ts +278 -0
- package/dist/schemas/film/film-resolve-ingest.schema.js +35 -0
- package/dist/schemas/film/film-resolve-timeline-report.schema.d.ts +323 -0
- package/dist/schemas/film/film-resolve-timeline-report.schema.js +43 -0
- package/dist/schemas/film/film-review.schema.d.ts +65 -0
- package/dist/schemas/film/film-review.schema.js +47 -0
- package/dist/schemas/film/film-scene.schema.d.ts +175 -0
- package/dist/schemas/film/film-scene.schema.js +38 -0
- package/dist/schemas/film/film-screenplay.schema.d.ts +215 -0
- package/dist/schemas/film/film-screenplay.schema.js +38 -0
- package/dist/schemas/film/film-shot-risk-assessment.schema.d.ts +27 -0
- package/dist/schemas/film/film-shot-risk-assessment.schema.js +16 -0
- package/dist/schemas/film/film-shot-risk-level.schema.d.ts +5 -0
- package/dist/schemas/film/film-shot-risk-level.schema.js +7 -0
- package/dist/schemas/film/film-shot.schema.d.ts +564 -0
- package/dist/schemas/film/film-shot.schema.js +96 -0
- package/dist/schemas/film/film-still-review-artifact.schema.d.ts +154 -0
- package/dist/schemas/film/film-still-review-artifact.schema.js +15 -0
- package/dist/schemas/film/film-still-review-scores.schema.d.ts +161 -0
- package/dist/schemas/film/film-still-review-scores.schema.js +48 -0
- package/dist/schemas/film/film-take-comparison.schema.d.ts +437 -0
- package/dist/schemas/film/film-take-comparison.schema.js +73 -0
- package/dist/schemas/film/film-training-dataset-api.schema.d.ts +641 -0
- package/dist/schemas/film/film-training-dataset-api.schema.js +86 -0
- package/dist/schemas/film/film-training-dataset.schema.d.ts +171 -0
- package/dist/schemas/film/film-training-dataset.schema.js +69 -0
- package/dist/schemas/film/film-wardrobe-state.schema.d.ts +42 -0
- package/dist/schemas/film/film-wardrobe-state.schema.js +21 -0
- package/dist/schemas/film/film-workbench.schema.d.ts +379 -0
- package/dist/schemas/film/film-workbench.schema.js +58 -0
- package/dist/schemas/film/film-workflow-lineage.schema.d.ts +166 -0
- package/dist/schemas/film/film-workflow-lineage.schema.js +83 -0
- package/dist/schemas/film/film-world-ontology.schema.d.ts +250 -0
- package/dist/schemas/film/film-world-ontology.schema.js +79 -0
- package/dist/schemas/film/image-generation-provider.schema.d.ts +392 -0
- package/dist/schemas/film/image-generation-provider.schema.js +55 -0
- package/dist/schemas/film/index.d.ts +81 -0
- package/dist/schemas/film/index.js +97 -0
- package/dist/schemas/github/branches.schema.d.ts +61 -0
- package/dist/schemas/github/branches.schema.js +17 -0
- package/dist/schemas/github/issues.schema.d.ts +145 -0
- package/dist/schemas/github/issues.schema.js +27 -0
- package/dist/schemas/github/pulls.schema.d.ts +173 -0
- package/dist/schemas/github/pulls.schema.js +30 -0
- package/dist/schemas/github/repo-create.schema.d.ts +21 -0
- package/dist/schemas/github/repo-create.schema.js +11 -0
- package/dist/schemas/github/webhook-delivery.schema.d.ts +729 -0
- package/dist/schemas/github/webhook-delivery.schema.js +142 -0
- package/dist/schemas/github/workflow-runs.schema.d.ts +173 -0
- package/dist/schemas/github/workflow-runs.schema.js +52 -0
- package/dist/schemas/github-pr-create.schema.d.ts +175 -0
- package/dist/schemas/github-pr-create.schema.js +70 -0
- package/dist/schemas/github-status.schema.d.ts +418 -0
- package/dist/schemas/github-status.schema.js +122 -0
- package/dist/schemas/graph/edge-v2.schema.d.ts +85 -0
- package/dist/schemas/graph/edge-v2.schema.js +164 -0
- package/dist/schemas/graph/graph-query-v2.schema.d.ts +449 -0
- package/dist/schemas/graph/graph-query-v2.schema.js +83 -0
- package/dist/schemas/graph/index.d.ts +14 -0
- package/dist/schemas/graph/index.js +30 -0
- package/dist/schemas/graph/node-v2.schema.d.ts +68 -0
- package/dist/schemas/graph/node-v2.schema.js +120 -0
- package/dist/schemas/graph/sql-security-findings.schema.d.ts +71 -0
- package/dist/schemas/graph/sql-security-findings.schema.js +40 -0
- package/dist/schemas/guardian/guardian-score.schema.d.ts +13 -0
- package/dist/schemas/guardian/guardian-score.schema.js +24 -0
- package/dist/schemas/guardian/validate.schema.d.ts +51 -0
- package/dist/schemas/guardian/validate.schema.js +36 -0
- package/dist/schemas/implement/nextjs-scaffold-manifest.schema.d.ts +44 -0
- package/dist/schemas/implement/nextjs-scaffold-manifest.schema.js +25 -0
- package/dist/schemas/implement/patch-validation-diagnostic.schema.d.ts +17 -0
- package/dist/schemas/implement/patch-validation-diagnostic.schema.js +19 -0
- package/dist/schemas/implement-patch-detail.schema.d.ts +344 -0
- package/dist/schemas/implement-patch-detail.schema.js +78 -0
- package/dist/schemas/implement-patch-lifecycle.schema.d.ts +66 -0
- package/dist/schemas/implement-patch-lifecycle.schema.js +317 -0
- package/dist/schemas/implement-patch-task.schema.d.ts +29 -0
- package/dist/schemas/implement-patch-task.schema.js +26 -0
- package/dist/schemas/implement-patch.schema.d.ts +2955 -0
- package/dist/schemas/implement-patch.schema.js +573 -0
- package/dist/schemas/implement-quarantine.schema.d.ts +215 -0
- package/dist/schemas/implement-quarantine.schema.js +71 -0
- package/dist/schemas/index.d.ts +5249 -0
- package/dist/schemas/index.js +1649 -0
- package/dist/schemas/integrations/cursor-execution.schema.d.ts +530 -0
- package/dist/schemas/integrations/cursor-execution.schema.js +104 -0
- package/dist/schemas/integrations.d.ts +426 -0
- package/dist/schemas/integrations.js +149 -0
- package/dist/schemas/knowledge/api-retry-kg-persistence.schema.d.ts +130 -0
- package/dist/schemas/knowledge/api-retry-kg-persistence.schema.js +28 -0
- package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.d.ts +46 -0
- package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.js +12 -0
- package/dist/schemas/knowledge/coverage.schema.d.ts +98 -0
- package/dist/schemas/knowledge/coverage.schema.js +27 -0
- package/dist/schemas/knowledge/duplicates.schema.d.ts +62 -0
- package/dist/schemas/knowledge/duplicates.schema.js +23 -0
- package/dist/schemas/knowledge/graph-query.schema.d.ts +9 -0
- package/dist/schemas/knowledge/graph-query.schema.js +7 -0
- package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.d.ts +40 -0
- package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.js +12 -0
- package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.d.ts +49 -0
- package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.js +14 -0
- package/dist/schemas/knowledge/kg-generation-writers.schema.d.ts +338 -0
- package/dist/schemas/knowledge/kg-generation-writers.schema.js +73 -0
- package/dist/schemas/knowledge/kg-relations.schema.d.ts +70 -0
- package/dist/schemas/knowledge/kg-relations.schema.js +157 -0
- package/dist/schemas/knowledge/knowledge-graph-summary.schema.d.ts +170 -0
- package/dist/schemas/knowledge/knowledge-graph-summary.schema.js +43 -0
- package/dist/schemas/knowledge/knowledge-node-provenance.schema.d.ts +41 -0
- package/dist/schemas/knowledge/knowledge-node-provenance.schema.js +21 -0
- package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.d.ts +76 -0
- package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.js +14 -0
- package/dist/schemas/knowledge/knowledge-search.schema.d.ts +29 -0
- package/dist/schemas/knowledge/knowledge-search.schema.js +17 -0
- package/dist/schemas/knowledge/lineage.schema.d.ts +70 -0
- package/dist/schemas/knowledge/lineage.schema.js +28 -0
- package/dist/schemas/knowledge/project-brief-knowledge-node.schema.d.ts +45 -0
- package/dist/schemas/knowledge/project-brief-knowledge-node.schema.js +30 -0
- package/dist/schemas/knowledge/review-readiness.schema.d.ts +104 -0
- package/dist/schemas/knowledge/review-readiness.schema.js +30 -0
- package/dist/schemas/knowledge/sync-prs.schema.d.ts +54 -0
- package/dist/schemas/knowledge/sync-prs.schema.js +21 -0
- package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.d.ts +37 -0
- package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.js +14 -0
- package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.d.ts +58 -0
- package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.js +14 -0
- package/dist/schemas/knowledge-graph-response.schema.d.ts +376 -0
- package/dist/schemas/knowledge-graph-response.schema.js +56 -0
- package/dist/schemas/logging/logger-context.schema.d.ts +21 -0
- package/dist/schemas/logging/logger-context.schema.js +11 -0
- package/dist/schemas/metrics/project-kpi-summary.schema.d.ts +368 -0
- package/dist/schemas/metrics/project-kpi-summary.schema.js +80 -0
- package/dist/schemas/orchestration/durable-stage-progress.schema.d.ts +57 -0
- package/dist/schemas/orchestration/durable-stage-progress.schema.js +34 -0
- package/dist/schemas/orchestration-execution.d.ts +158 -0
- package/dist/schemas/orchestration-execution.js +88 -0
- package/dist/schemas/project-bmad-settings-patch.schema.d.ts +66 -0
- package/dist/schemas/project-bmad-settings-patch.schema.js +29 -0
- package/dist/schemas/project-kind.schema.d.ts +70 -0
- package/dist/schemas/project-kind.schema.js +38 -0
- package/dist/schemas/project-team.d.ts +48 -0
- package/dist/schemas/project-team.js +52 -0
- package/dist/schemas/projects/nl-kg-v2-enabled.schema.d.ts +10 -0
- package/dist/schemas/projects/nl-kg-v2-enabled.schema.js +16 -0
- package/dist/schemas/provider-sentinel/cleanup-manifest.schema.d.ts +78 -0
- package/dist/schemas/provider-sentinel/cleanup-manifest.schema.js +27 -0
- package/dist/schemas/provider-sentinel/execution-evidence.schema.d.ts +228 -0
- package/dist/schemas/provider-sentinel/execution-evidence.schema.js +78 -0
- package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.d.ts +55 -0
- package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.js +33 -0
- package/dist/schemas/provider-sentinel/index.d.ts +6 -0
- package/dist/schemas/provider-sentinel/index.js +22 -0
- package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.d.ts +8 -0
- package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.js +9 -0
- package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.d.ts +743 -0
- package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.js +126 -0
- package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.d.ts +51 -0
- package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.js +30 -0
- package/dist/schemas/publication/manuscript-export.schema.d.ts +249 -0
- package/dist/schemas/publication/manuscript-export.schema.js +47 -0
- package/dist/schemas/repo/repo-scan-run.schema.d.ts +60 -0
- package/dist/schemas/repo/repo-scan-run.schema.js +34 -0
- package/dist/schemas/repos/project-repo-link.schema.d.ts +148 -0
- package/dist/schemas/repos/project-repo-link.schema.js +28 -0
- package/dist/schemas/repos/repo-readiness.schema.d.ts +26 -0
- package/dist/schemas/repos/repo-readiness.schema.js +23 -0
- package/dist/schemas/repos/repo-scan.schema.d.ts +379 -0
- package/dist/schemas/repos/repo-scan.schema.js +98 -0
- package/dist/schemas/review/review-coverage.schema.d.ts +2238 -0
- package/dist/schemas/review/review-coverage.schema.js +182 -0
- package/dist/schemas/review/review-policy.schema.d.ts +87 -0
- package/dist/schemas/review/review-policy.schema.js +42 -0
- package/dist/schemas/runtime/index.d.ts +6 -0
- package/dist/schemas/runtime/index.js +22 -0
- package/dist/schemas/runtime/platform-health.schema.d.ts +83 -0
- package/dist/schemas/runtime/platform-health.schema.js +31 -0
- package/dist/schemas/runtime/probe-harness-gen.schema.d.ts +456 -0
- package/dist/schemas/runtime/probe-harness-gen.schema.js +91 -0
- package/dist/schemas/runtime/probe.schema.d.ts +1117 -0
- package/dist/schemas/runtime/probe.schema.js +278 -0
- package/dist/schemas/runtime/runtime-knowledge-node.schema.d.ts +862 -0
- package/dist/schemas/runtime/runtime-knowledge-node.schema.js +29 -0
- package/dist/schemas/runtime/runtime-loop.schema.d.ts +175 -0
- package/dist/schemas/runtime/runtime-loop.schema.js +84 -0
- package/dist/schemas/runtime/runtime-run.schema.d.ts +378 -0
- package/dist/schemas/runtime/runtime-run.schema.js +30 -0
- package/dist/schemas/security/index.d.ts +3 -0
- package/dist/schemas/security/index.js +19 -0
- package/dist/schemas/security/pre-pr-security-gate.schema.d.ts +486 -0
- package/dist/schemas/security/pre-pr-security-gate.schema.js +13 -0
- package/dist/schemas/security/security-finding.schema.d.ts +546 -0
- package/dist/schemas/security/security-finding.schema.js +138 -0
- package/dist/schemas/security/security-knowledge-node.schema.d.ts +285 -0
- package/dist/schemas/security/security-knowledge-node.schema.js +21 -0
- package/dist/schemas/task-complexity.schema.d.ts +3 -0
- package/dist/schemas/task-complexity.schema.js +6 -0
- package/dist/schemas/task-evidence-expectations.schema.d.ts +174 -0
- package/dist/schemas/task-evidence-expectations.schema.js +35 -0
- package/dist/schemas/traceability/index.d.ts +2 -0
- package/dist/schemas/traceability/index.js +18 -0
- package/dist/schemas/traceability/neuraloom-traceability-file.schema.d.ts +593 -0
- package/dist/schemas/traceability/neuraloom-traceability-file.schema.js +93 -0
- package/dist/schemas/traceability/traceability-graph.schema.d.ts +712 -0
- package/dist/schemas/traceability/traceability-graph.schema.js +112 -0
- package/dist/schemas/workflow/build-knowledge.schema.d.ts +672 -0
- package/dist/schemas/workflow/build-knowledge.schema.js +92 -0
- package/dist/schemas/workflow/build-truth-read-model.schema.d.ts +1218 -0
- package/dist/schemas/workflow/build-truth-read-model.schema.js +42 -0
- package/dist/schemas/workflow/canonicalization-decision.schema.d.ts +74 -0
- package/dist/schemas/workflow/canonicalization-decision.schema.js +22 -0
- package/dist/schemas/workflow/code-reality-artifacts.schema.d.ts +914 -0
- package/dist/schemas/workflow/code-reality-artifacts.schema.js +150 -0
- package/dist/schemas/workflow/code-reality-read-model.schema.d.ts +12708 -0
- package/dist/schemas/workflow/code-reality-read-model.schema.js +237 -0
- package/dist/schemas/workflow/code-reality-task-traceability.schema.d.ts +124 -0
- package/dist/schemas/workflow/code-reality-task-traceability.schema.js +107 -0
- package/dist/schemas/workflow/command-center-spine.schema.d.ts +62 -0
- package/dist/schemas/workflow/command-center-spine.schema.js +58 -0
- package/dist/schemas/workflow/context-bundle.schema.d.ts +111 -0
- package/dist/schemas/workflow/context-bundle.schema.js +62 -0
- package/dist/schemas/workflow/context-contamination.schema.d.ts +284 -0
- package/dist/schemas/workflow/context-contamination.schema.js +65 -0
- package/dist/schemas/workflow/deployment-evidence.schema.d.ts +269 -0
- package/dist/schemas/workflow/deployment-evidence.schema.js +55 -0
- package/dist/schemas/workflow/doc-draft-artifact.schema.d.ts +126 -0
- package/dist/schemas/workflow/doc-draft-artifact.schema.js +52 -0
- package/dist/schemas/workflow/domain-acceptance.schema.d.ts +206 -0
- package/dist/schemas/workflow/domain-acceptance.schema.js +62 -0
- package/dist/schemas/workflow/engineering-context.schema.d.ts +2235 -0
- package/dist/schemas/workflow/engineering-context.schema.js +566 -0
- package/dist/schemas/workflow/existing-capability-classification.schema.d.ts +79 -0
- package/dist/schemas/workflow/existing-capability-classification.schema.js +28 -0
- package/dist/schemas/workflow/existing-codebase-context.schema.d.ts +865 -0
- package/dist/schemas/workflow/existing-codebase-context.schema.js +56 -0
- package/dist/schemas/workflow/findings-register.schema.d.ts +148 -0
- package/dist/schemas/workflow/findings-register.schema.js +35 -0
- package/dist/schemas/workflow/implement-first-batch.schema.d.ts +190 -0
- package/dist/schemas/workflow/implement-first-batch.schema.js +49 -0
- package/dist/schemas/workflow/implement-gate-status.schema.d.ts +823 -0
- package/dist/schemas/workflow/implement-gate-status.schema.js +94 -0
- package/dist/schemas/workflow/implement-stale-batch-repair.schema.d.ts +71 -0
- package/dist/schemas/workflow/implement-stale-batch-repair.schema.js +28 -0
- package/dist/schemas/workflow/implement-task-guard.schema.d.ts +27 -0
- package/dist/schemas/workflow/implement-task-guard.schema.js +35 -0
- package/dist/schemas/workflow/implementation-packet.schema.d.ts +200 -0
- package/dist/schemas/workflow/implementation-packet.schema.js +88 -0
- package/dist/schemas/workflow/import-validity.schema.d.ts +177 -0
- package/dist/schemas/workflow/import-validity.schema.js +71 -0
- package/dist/schemas/workflow/index.d.ts +14 -0
- package/dist/schemas/workflow/index.js +30 -0
- package/dist/schemas/workflow/ingest-dashboard.schema.d.ts +1094 -0
- package/dist/schemas/workflow/ingest-dashboard.schema.js +76 -0
- package/dist/schemas/workflow/ingest-gate.schema.d.ts +133 -0
- package/dist/schemas/workflow/ingest-gate.schema.js +27 -0
- package/dist/schemas/workflow/ingest-inventory.schema.d.ts +203 -0
- package/dist/schemas/workflow/ingest-inventory.schema.js +52 -0
- package/dist/schemas/workflow/knowledge-graph-result.schema.d.ts +90 -0
- package/dist/schemas/workflow/knowledge-graph-result.schema.js +37 -0
- package/dist/schemas/workflow/patch-file-scope-policy.schema.d.ts +62 -0
- package/dist/schemas/workflow/patch-file-scope-policy.schema.js +38 -0
- package/dist/schemas/workflow/patch-review-result.schema.d.ts +139 -0
- package/dist/schemas/workflow/patch-review-result.schema.js +58 -0
- package/dist/schemas/workflow/plan-approval.schema.d.ts +184 -0
- package/dist/schemas/workflow/plan-approval.schema.js +102 -0
- package/dist/schemas/workflow/product-readiness-response.schema.d.ts +307 -0
- package/dist/schemas/workflow/product-readiness-response.schema.js +81 -0
- package/dist/schemas/workflow/product-realization.schema.d.ts +259 -0
- package/dist/schemas/workflow/product-realization.schema.js +207 -0
- package/dist/schemas/workflow/product-route-manifest.schema.d.ts +785 -0
- package/dist/schemas/workflow/product-route-manifest.schema.js +161 -0
- package/dist/schemas/workflow/repair-specify-gate.schema.d.ts +33 -0
- package/dist/schemas/workflow/repair-specify-gate.schema.js +13 -0
- package/dist/schemas/workflow/repo-intel-snapshot.schema.d.ts +471 -0
- package/dist/schemas/workflow/repo-intel-snapshot.schema.js +98 -0
- package/dist/schemas/workflow/repo-policy-snapshot.schema.d.ts +365 -0
- package/dist/schemas/workflow/repo-policy-snapshot.schema.js +83 -0
- package/dist/schemas/workflow/review-acceptance.schema.d.ts +182 -0
- package/dist/schemas/workflow/review-acceptance.schema.js +66 -0
- package/dist/schemas/workflow/review-release-decision-operator.schema.d.ts +220 -0
- package/dist/schemas/workflow/review-release-decision-operator.schema.js +65 -0
- package/dist/schemas/workflow/route-manifest.schema.d.ts +239 -0
- package/dist/schemas/workflow/route-manifest.schema.js +82 -0
- package/dist/schemas/workflow/runtime-contract.schema.d.ts +384 -0
- package/dist/schemas/workflow/runtime-contract.schema.js +71 -0
- package/dist/schemas/workflow/schema-page-read-model.schema.d.ts +185 -0
- package/dist/schemas/workflow/schema-page-read-model.schema.js +29 -0
- package/dist/schemas/workflow/ship-closure.schema.d.ts +516 -0
- package/dist/schemas/workflow/ship-closure.schema.js +96 -0
- package/dist/schemas/workflow/software-workflow-lineage.schema.d.ts +384 -0
- package/dist/schemas/workflow/software-workflow-lineage.schema.js +54 -0
- package/dist/schemas/workflow/specify-mutation-health.schema.d.ts +72 -0
- package/dist/schemas/workflow/specify-mutation-health.schema.js +24 -0
- package/dist/schemas/workflow/step-evidence-resolution.schema.d.ts +49 -0
- package/dist/schemas/workflow/step-evidence-resolution.schema.js +36 -0
- package/dist/schemas/workflow/step-gate.schema.d.ts +312 -0
- package/dist/schemas/workflow/step-gate.schema.js +90 -0
- package/dist/schemas/workflow/task-capsule.schema.d.ts +414 -0
- package/dist/schemas/workflow/task-capsule.schema.js +99 -0
- package/dist/schemas/workflow/tasks-github-sync.schema.d.ts +60 -0
- package/dist/schemas/workflow/tasks-github-sync.schema.js +24 -0
- package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.d.ts +86 -0
- package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.js +38 -0
- package/dist/schemas/workflow/tasks-truth.schema.d.ts +616 -0
- package/dist/schemas/workflow/tasks-truth.schema.js +76 -0
- package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.d.ts +210 -0
- package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.js +17 -0
- package/dist/schemas/workflow/test-obligation-manifest.schema.d.ts +306 -0
- package/dist/schemas/workflow/test-obligation-manifest.schema.js +131 -0
- package/dist/schemas/workflow/workflow-doctor.schema.d.ts +942 -0
- package/dist/schemas/workflow/workflow-doctor.schema.js +141 -0
- package/dist/schemas/workflow/workflow-evidence.schema.d.ts +67 -0
- package/dist/schemas/workflow/workflow-evidence.schema.js +23 -0
- package/dist/schemas/workflow/workflow-intelligence-graph.schema.d.ts +415 -0
- package/dist/schemas/workflow/workflow-intelligence-graph.schema.js +213 -0
- package/dist/schemas/workflow/workflow-run-event.schema.d.ts +41 -0
- package/dist/schemas/workflow/workflow-run-event.schema.js +55 -0
- package/dist/schemas/workflow-ci-step-artifacts.schema.d.ts +60 -0
- package/dist/schemas/workflow-ci-step-artifacts.schema.js +15 -0
- package/dist/schemas/workflow-implement-read-model.schema.d.ts +86 -0
- package/dist/schemas/workflow-implement-read-model.schema.js +22 -0
- package/dist/schemas/workflow-knowledge-step-artifacts.schema.d.ts +60 -0
- package/dist/schemas/workflow-knowledge-step-artifacts.schema.js +15 -0
- package/dist/schemas/workflow-progression.d.ts +1955 -0
- package/dist/schemas/workflow-progression.js +259 -0
- package/dist/telemetry/index.d.ts +194 -0
- package/dist/telemetry/index.js +93 -0
- package/dist/transformation/canonical-semantic-model.d.ts +233 -0
- package/dist/transformation/canonical-semantic-model.js +61 -0
- package/dist/transformation/index.d.ts +6 -0
- package/dist/transformation/index.js +22 -0
- package/dist/transformation/transformation-registry.d.ts +136 -0
- package/dist/transformation/transformation-registry.js +100 -0
- package/dist/types/ai-responses.d.ts +98 -0
- package/dist/types/ai-responses.js +42 -0
- package/dist/types/ai.d.ts +4 -0
- package/dist/types/ai.js +2 -0
- package/dist/types/audiobook-embed.d.ts +22 -0
- package/dist/types/audiobook-embed.js +2 -0
- package/dist/types/audiobook.d.ts +30 -0
- package/dist/types/audiobook.js +2 -0
- package/dist/types/chapter-revision.types.d.ts +6 -0
- package/dist/types/chapter-revision.types.js +6 -0
- package/dist/types/ci.d.ts +14 -0
- package/dist/types/ci.js +2 -0
- package/dist/types/codebase.d.ts +309 -0
- package/dist/types/codebase.js +83 -0
- package/dist/types/community-credit-transaction-type.d.ts +2 -0
- package/dist/types/community-credit-transaction-type.js +9 -0
- package/dist/types/community-membership-tier.d.ts +2 -0
- package/dist/types/community-membership-tier.js +4 -0
- package/dist/types/community-operator-role.d.ts +9 -0
- package/dist/types/community-operator-role.js +13 -0
- package/dist/types/community-stage.d.ts +3 -0
- package/dist/types/community-stage.js +19 -0
- package/dist/types/graph-canvas.d.ts +109 -0
- package/dist/types/graph-canvas.js +25 -0
- package/dist/types/graph-question-mapping.d.ts +33 -0
- package/dist/types/graph-question-mapping.js +36 -0
- package/dist/types/index.d.ts +2187 -0
- package/dist/types/index.js +53 -0
- package/dist/types/manuscript-checks.d.ts +1 -0
- package/dist/types/manuscript-checks.js +2 -0
- package/dist/types/orchestration-execution.d.ts +16 -0
- package/dist/types/orchestration-execution.js +5 -0
- package/dist/types/product-readiness.d.ts +44 -0
- package/dist/types/product-readiness.js +2 -0
- package/dist/types/product-route-manifest.d.ts +5 -0
- package/dist/types/product-route-manifest.js +21 -0
- package/dist/types/project-capabilities.d.ts +20 -0
- package/dist/types/project-capabilities.js +40 -0
- package/dist/types/project-kind.d.ts +68 -0
- package/dist/types/project-kind.js +216 -0
- package/dist/types/pwa.d.ts +29 -0
- package/dist/types/pwa.js +6 -0
- package/dist/types/repo.d.ts +2 -0
- package/dist/types/repo.js +2 -0
- package/dist/types/resolve-model-policy-input.d.ts +37 -0
- package/dist/types/resolve-model-policy-input.js +2 -0
- package/dist/types/settings.d.ts +13 -0
- package/dist/types/settings.js +20 -0
- package/dist/types/supabase-generated.d.ts +1122 -0
- package/dist/types/supabase-generated.js +13 -0
- package/dist/types/workflow-action-panel.d.ts +41 -0
- package/dist/types/workflow-action-panel.js +2 -0
- package/dist/types/workflow-command-center.d.ts +50 -0
- package/dist/types/workflow-command-center.js +6 -0
- package/dist/types/workflow-completion.d.ts +154 -0
- package/dist/types/workflow-completion.js +2 -0
- package/dist/types/workflow-graph.d.ts +786 -0
- package/dist/types/workflow-graph.js +119 -0
- package/dist/ui/domain-templates.d.ts +35 -0
- package/dist/ui/domain-templates.js +242 -0
- package/dist/utils/github-closing-keywords.d.ts +8 -0
- package/dist/utils/github-closing-keywords.js +27 -0
- package/dist/utils/implement-pr-batch-policy.d.ts +17 -0
- package/dist/utils/implement-pr-batch-policy.js +72 -0
- package/dist/utils/implement-pr-batch.d.ts +19 -0
- package/dist/utils/implement-pr-batch.js +95 -0
- package/dist/utils/implement-pr-metadata.d.ts +32 -0
- package/dist/utils/implement-pr-metadata.js +41 -0
- package/dist/workflow/api-route-key-resolver.d.ts +11 -0
- package/dist/workflow/api-route-key-resolver.js +51 -0
- package/dist/workflow/assurance-selector-keys.d.ts +134 -0
- package/dist/workflow/assurance-selector-keys.js +145 -0
- package/dist/workflow/channel-registry.d.ts +959 -0
- package/dist/workflow/channel-registry.js +1475 -0
- package/dist/workflow/evaluate-existing-codebase-readiness.d.ts +28 -0
- package/dist/workflow/evaluate-existing-codebase-readiness.js +329 -0
- package/dist/workflow/evaluate-ingest-gate.d.ts +11 -0
- package/dist/workflow/evaluate-ingest-gate.js +168 -0
- package/dist/workflow/evaluate-repair-specify-gate.d.ts +10 -0
- package/dist/workflow/evaluate-repair-specify-gate.js +93 -0
- package/dist/workflow/existing-codebase-step-area-map.d.ts +4 -0
- package/dist/workflow/existing-codebase-step-area-map.js +22 -0
- package/dist/workflow/film-spine-nav-aliases.d.ts +23 -0
- package/dist/workflow/film-spine-nav-aliases.js +76 -0
- package/dist/workflow/index.d.ts +23 -0
- package/dist/workflow/index.js +39 -0
- package/dist/workflow/is-code-reality-semantically-mapped.d.ts +8 -0
- package/dist/workflow/is-code-reality-semantically-mapped.js +21 -0
- package/dist/workflow/is-repository-scan-complete.d.ts +11 -0
- package/dist/workflow/is-repository-scan-complete.js +28 -0
- package/dist/workflow/normalize-workflow-execution-mode.d.ts +4 -0
- package/dist/workflow/normalize-workflow-execution-mode.js +16 -0
- package/dist/workflow/project-kind-normalizer.d.ts +34 -0
- package/dist/workflow/project-kind-normalizer.js +162 -0
- package/dist/workflow/resolve-workflow-variant.d.ts +42 -0
- package/dist/workflow/resolve-workflow-variant.js +101 -0
- package/dist/workflow/step-id-canonical.d.ts +26 -0
- package/dist/workflow/step-id-canonical.js +58 -0
- package/dist/workflow/test-obligation-policy.d.ts +12 -0
- package/dist/workflow/test-obligation-policy.js +82 -0
- package/dist/workflow/test-policy-registry.d.ts +45 -0
- package/dist/workflow/test-policy-registry.js +190 -0
- package/dist/workflow/workflow-assurance-completion-probe-gates.d.ts +43 -0
- package/dist/workflow/workflow-assurance-completion-probe-gates.js +88 -0
- package/dist/workflow/workflow-assurance-manifest.d.ts +84 -0
- package/dist/workflow/workflow-assurance-manifest.js +309 -0
- package/dist/workflow/workflow-assurance-wiring-tiers.d.ts +13 -0
- package/dist/workflow/workflow-assurance-wiring-tiers.js +32 -0
- package/dist/workflow/workflow-doctor-closure.d.ts +16 -0
- package/dist/workflow/workflow-doctor-closure.js +245 -0
- package/package.json +82 -4
- package/README.md +0 -3
|
@@ -0,0 +1,1649 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* NeuraLoom Zod Schemas - Single Source of Truth for Validation
|
|
4
|
+
* All input/output validation must use schemas from this package
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.KnowledgeQuerySchema = exports.KnowledgeEdgeListItemSchema = exports.CreateKnowledgeEdgeSchema = exports.toKnowledgeEdgeResponse = exports.KnowledgeEdgeResponseSchema = exports.KnowledgeEdgeSchema = exports.WorkflowKnowledgeNodeDataSchema = exports.KnowledgeNodesListResponseSchema = exports.KnowledgeNodeListSchema = exports.CreateKnowledgeNodeSchema = exports.KnowledgeNodeSchema = exports.KnowledgeNodeTypeSchema = exports.UpdateProjectSettingsSchema = exports.CreateProjectSettingsSchema = exports.ProjectSettingsSchema = exports.DeploymentStatusSchema = exports.UpdateTaskSchema = exports.CreateTaskSchema = exports.TaskSchema = exports.TaskPrioritySchema = exports.TaskStatusSchema = exports.TaskTypeSchema = exports.UpdatePlanSchema = exports.CreatePlanSchema = exports.PlanSchema = exports.PlanStatusSchema = exports.UpdateSpecSchema = exports.CreateSpecSchema = exports.SpecSchema = exports.SpecStatusSchema = exports.SpecPrioritySchema = exports.UpdateProjectSchema = exports.CreateProjectSchema = exports.WorkflowKindSchema = exports.ProjectSummarySchema = exports.ProjectSchema = exports.ProjectStatusSchema = exports.UserSummarySchema = exports.UpdateUserSchema = exports.CreateUserSchema = exports.UserSchema = exports.UserProfileSchema = exports.UserPreferencesSchema = exports.NotificationSettingsSchema = exports.UserRoleSchema = exports.NonNegativeIntSchema = exports.PositiveIntSchema = exports.DateTimeSchema = exports.EmailSchema = exports.UUIDSchema = void 0;
|
|
22
|
+
exports.BoilerplateConfigSchema = exports.AppTemplateSchema = exports.TemplateFeatureSchema = exports.TechStackItemSchema = exports.AppTemplateTypeSchema = exports.DeploymentLogSchema = exports.DeploymentSchema = exports.GitHubIssueSchema = exports.GitHubPullRequestSchema = exports.GitHubCommitSchema = exports.GitHubRepoSchema = exports.AnalyticsDashboardStatsSchema = exports.DashboardActivityItemSchema = exports.NotificationFeedSchema = exports.NotificationFilterSchema = exports.AnalyticsComplianceReportSchema = exports.ComplianceTrendSchema = exports.AnalyticsComplianceViolationSchema = exports.TeamInsightsSchema = exports.ProjectMetricsSchema = exports.ContributionPointSchema = exports.NotificationSchema = exports.GeneratedReviewListSchema = exports.GeneratedReviewSchema = exports.GeneratedCodeListSchema = exports.GeneratedCodeSchema = exports.GeneratedArchitectureListSchema = exports.GeneratedArchitectureSchema = exports.GeneratedTaskListSchema = exports.GeneratedTaskSchema = exports.SystemHealthSchema = exports.ServiceHealthSchema = exports.ComplianceReportSchema = exports.LegacyComplianceReportSchema = exports.ConstitutionalViolationSchema = exports.ViolationTypeSchema = exports.PaginatedResponseSchema = exports.PaginationSchema = exports.PaginationParamsSchema = exports.CreateComplianceReportSchema = exports.EnhancedComplianceReportSchema = exports.ConstitutionValidationSchema = exports.UpdateConstitutionSchema = exports.CreateConstitutionSchema = exports.ConstitutionSchema = exports.ComplianceReportGeneratedBySchema = exports.ComplianceReportTypeSchema = exports.CreateAuditLogSchema = exports.AuditLogSchema = exports.ResourceTypeSchema = void 0;
|
|
23
|
+
exports.CreateAgentFeedbackSchema = exports.AgentFeedbackSchema = exports.ApproveAgentActionSchema = exports.CreateAgentActionSchema = exports.AgentActionSchema = exports.AgentArtifactSchema = exports.AgentActionTypeSchema = exports.UpdateLinkedModelSchema = exports.CreateLinkedModelSchema = exports.LinkedModelSchema = exports.UpdateTeamPhaseAssignmentSchema = exports.CreateTeamPhaseAssignmentSchema = exports.TeamPhaseAssignmentSchema = exports.CreateTeamIntegrationSchema = exports.TeamIntegrationSchema = exports.CreateAITeamMemberSchema = exports.AITeamMemberSchema = exports.UpdateTeamSchema = exports.CreateTeamSchema = exports.TeamSchema = exports.AIModelRoleSchema = exports.AIModelProviderSchema = exports.MemberTypeSchema = exports.TeamRoleSchema = exports.TeamSpecializationSchema = exports.WorkflowStepSchema = exports.WorkflowPhaseSchema = exports.CreatePageSchema = exports.UIPageSchema = exports.PageLayoutSchema = exports.CreateComponentSchema = exports.UIComponentSchema = exports.ComponentPropSchema = exports.ComponentCategorySchema = exports.SpecTemplateSchema = exports.TemplateFieldSchema = exports.ProjectRetrospectiveSchema = exports.ArchitectureGraphSchema = exports.ArchitectureEdgeSchema = exports.ArchitectureNodeSchema = exports.CodeSnippetSchema = exports.APIRouteSchema = exports.FactoryLifecycleSchema = exports.LifecycleArtifactSchema = exports.LifecycleStageSchema = exports.BoilerplateArtifactSchema = exports.ValidationResultSchema = exports.EnvVarSpecSchema = exports.WorkflowFileSchema = exports.BoilerplateFileSchema = void 0;
|
|
24
|
+
const zod_1 = require("zod");
|
|
25
|
+
const knowledge_node_1 = require("../constants/knowledge-node");
|
|
26
|
+
const task_complexity_schema_1 = require("./task-complexity.schema");
|
|
27
|
+
// Universal Cognitive Workflow — project kind, step semantic, artifact, gate schemas
|
|
28
|
+
__exportStar(require("./project-kind.schema"), exports);
|
|
29
|
+
__exportStar(require("./artifacts/artifact-upload-proxy.schema"), exports);
|
|
30
|
+
__exportStar(require("./cache/cache-ai-response.schema"), exports);
|
|
31
|
+
// Logging
|
|
32
|
+
__exportStar(require("./logging/logger-context.schema"), exports);
|
|
33
|
+
__exportStar(require("./api-envelope.schema"), exports);
|
|
34
|
+
// Traceability graph (Requirement → Task → File → PR → Deploy → Runtime)
|
|
35
|
+
__exportStar(require("./traceability"), exports);
|
|
36
|
+
// KG v2 overlays + typed graph queries (canonical substrate: knowledge_* tables)
|
|
37
|
+
__exportStar(require("./graph"), exports);
|
|
38
|
+
// Security findings — knowledge_nodes / MS-01 (issues #724, #770)
|
|
39
|
+
__exportStar(require("./security"), exports);
|
|
40
|
+
// Runtime probes / drift — knowledge_nodes payloads (issue #732, MS-05)
|
|
41
|
+
__exportStar(require("./runtime"), exports);
|
|
42
|
+
// Knowledge step — Sprint K1
|
|
43
|
+
__exportStar(require("./knowledge/sync-prs.schema"), exports);
|
|
44
|
+
__exportStar(require("./knowledge/knowledge-search.schema"), exports);
|
|
45
|
+
__exportStar(require("./knowledge/duplicates.schema"), exports);
|
|
46
|
+
__exportStar(require("./knowledge/lineage.schema"), exports);
|
|
47
|
+
__exportStar(require("./knowledge/coverage.schema"), exports);
|
|
48
|
+
__exportStar(require("./knowledge/project-brief-knowledge-node.schema"), exports);
|
|
49
|
+
__exportStar(require("./knowledge/graph-query.schema"), exports);
|
|
50
|
+
__exportStar(require("./knowledge/kg-relations.schema"), exports);
|
|
51
|
+
__exportStar(require("./knowledge/kg-generation-writers.schema"), exports);
|
|
52
|
+
__exportStar(require("./knowledge/api-retry-kg-persistence.schema"), exports);
|
|
53
|
+
__exportStar(require("./knowledge/ui-retry-kg-persistence.schema"), exports);
|
|
54
|
+
__exportStar(require("./knowledge/constitution-retry-kg-persistence.schema"), exports);
|
|
55
|
+
__exportStar(require("./knowledge/guardian-retry-kg-persistence.schema"), exports);
|
|
56
|
+
__exportStar(require("./knowledge/tasks-retry-kg-persistence.schema"), exports);
|
|
57
|
+
__exportStar(require("./knowledge/knowledge-retry-kg-persistence.schema"), exports);
|
|
58
|
+
__exportStar(require("./knowledge/implement-retry-kg-persistence.schema"), exports);
|
|
59
|
+
__exportStar(require("./knowledge/review-readiness.schema"), exports);
|
|
60
|
+
__exportStar(require("./knowledge/knowledge-node-provenance.schema"), exports);
|
|
61
|
+
__exportStar(require("./knowledge/knowledge-graph-summary.schema"), exports);
|
|
62
|
+
__exportStar(require("./workflow-implement-read-model.schema"), exports);
|
|
63
|
+
__exportStar(require("./implement-patch.schema"), exports);
|
|
64
|
+
__exportStar(require("./implement/nextjs-scaffold-manifest.schema"), exports);
|
|
65
|
+
__exportStar(require("./implement-patch-task.schema"), exports);
|
|
66
|
+
__exportStar(require("./implement-patch-detail.schema"), exports);
|
|
67
|
+
__exportStar(require("./implement-patch-lifecycle.schema"), exports);
|
|
68
|
+
__exportStar(require("./implement-quarantine.schema"), exports);
|
|
69
|
+
// Project API query helpers
|
|
70
|
+
__exportStar(require("./api/project-model-usage-query.schema"), exports);
|
|
71
|
+
__exportStar(require("./api/orchestration-events-list-response.schema"), exports);
|
|
72
|
+
__exportStar(require("./api/implement-orchestration-session.schema"), exports);
|
|
73
|
+
__exportStar(require("./api/create-orchestration-request.schema"), exports);
|
|
74
|
+
__exportStar(require("./api/plans-list-response.schema"), exports);
|
|
75
|
+
__exportStar(require("./api/specs-list-response.schema"), exports);
|
|
76
|
+
__exportStar(require("./auth/session-context.schema"), exports);
|
|
77
|
+
__exportStar(require("./project-bmad-settings-patch.schema"), exports);
|
|
78
|
+
__exportStar(require("./projects/nl-kg-v2-enabled.schema"), exports);
|
|
79
|
+
__exportStar(require("./ci"), exports);
|
|
80
|
+
__exportStar(require("./ci/project-engine-context.schema"), exports);
|
|
81
|
+
// Review truth / policy aggregation (R1)
|
|
82
|
+
__exportStar(require("./review/review-policy.schema"), exports);
|
|
83
|
+
__exportStar(require("./review/review-coverage.schema"), exports);
|
|
84
|
+
// Manuscript publication export (PDF/DOCX/EPUB/MD)
|
|
85
|
+
__exportStar(require("./publication/manuscript-export.schema"), exports);
|
|
86
|
+
// Project analytics KPIs (MS-08)
|
|
87
|
+
__exportStar(require("./metrics/project-kpi-summary.schema"), exports);
|
|
88
|
+
// Workflow gates (R2)
|
|
89
|
+
__exportStar(require("./workflow"), exports);
|
|
90
|
+
// Step artifacts + graph response / deployment status (previously root-barrel only)
|
|
91
|
+
__exportStar(require("./workflow-knowledge-step-artifacts.schema"), exports);
|
|
92
|
+
__exportStar(require("./workflow-ci-step-artifacts.schema"), exports);
|
|
93
|
+
__exportStar(require("./knowledge-graph-response.schema"), exports);
|
|
94
|
+
__exportStar(require("./deployments/deployment-status.schema"), exports);
|
|
95
|
+
__exportStar(require("./deployments/deployment-preflight.schema"), exports);
|
|
96
|
+
__exportStar(require("./deployments/deployment-predict.schema"), exports);
|
|
97
|
+
__exportStar(require("./deployments/deployment-rollback.schema"), exports);
|
|
98
|
+
// Guardian
|
|
99
|
+
__exportStar(require("./guardian/validate.schema"), exports);
|
|
100
|
+
// Canonical git_repositories linkage
|
|
101
|
+
__exportStar(require("./repos/repo-readiness.schema"), exports);
|
|
102
|
+
__exportStar(require("./repos/project-repo-link.schema"), exports);
|
|
103
|
+
__exportStar(require("./repos/repo-scan.schema"), exports);
|
|
104
|
+
// Integration Schemas
|
|
105
|
+
__exportStar(require("./github-status.schema"), exports);
|
|
106
|
+
__exportStar(require("./github/repo-create.schema"), exports);
|
|
107
|
+
__exportStar(require("./github/branches.schema"), exports);
|
|
108
|
+
__exportStar(require("./github/pulls.schema"), exports);
|
|
109
|
+
__exportStar(require("./github/issues.schema"), exports);
|
|
110
|
+
__exportStar(require("./github/workflow-runs.schema"), exports);
|
|
111
|
+
__exportStar(require("./github-pr-create.schema"), exports);
|
|
112
|
+
__exportStar(require("../utils/github-closing-keywords"), exports);
|
|
113
|
+
__exportStar(require("../utils/implement-pr-batch"), exports);
|
|
114
|
+
__exportStar(require("../utils/implement-pr-batch-policy"), exports);
|
|
115
|
+
__exportStar(require("../utils/implement-pr-metadata"), exports);
|
|
116
|
+
__exportStar(require("./github/webhook-delivery.schema"), exports);
|
|
117
|
+
__exportStar(require("./integrations"), exports);
|
|
118
|
+
__exportStar(require("./ai"), exports);
|
|
119
|
+
__exportStar(require("./ai/workflow-artifacts.schema"), exports);
|
|
120
|
+
__exportStar(require("./audiobook"), exports);
|
|
121
|
+
__exportStar(require("./audiobook-embed/audiobook-embed.schema"), exports);
|
|
122
|
+
__exportStar(require("./ai/ui-kg-gate-status.schema"), exports);
|
|
123
|
+
__exportStar(require("./ai/constitution-kg-gate-status.schema"), exports);
|
|
124
|
+
__exportStar(require("./ai/guardian-kg-gate-status.schema"), exports);
|
|
125
|
+
__exportStar(require("./ai/guardian-gate-status.schema"), exports);
|
|
126
|
+
__exportStar(require("./ai/guardian-score-history.schema"), exports);
|
|
127
|
+
__exportStar(require("./ai/guardian-rule-detail.schema"), exports);
|
|
128
|
+
__exportStar(require("./ai/tasks-kg-gate-status.schema"), exports);
|
|
129
|
+
__exportStar(require("./ai/implement-kg-gate-status.schema"), exports);
|
|
130
|
+
__exportStar(require("./ai/implement-graph.schema"), exports);
|
|
131
|
+
__exportStar(require("./implement/patch-validation-diagnostic.schema"), exports);
|
|
132
|
+
__exportStar(require("./ai/knowledge-kg-gate-status.schema"), exports);
|
|
133
|
+
__exportStar(require("./ai/constitution-validate-input.schema"), exports);
|
|
134
|
+
__exportStar(require("./ai/payload-json-schemas"), exports);
|
|
135
|
+
__exportStar(require("./ai/film-keyframe-register.schema"), exports);
|
|
136
|
+
__exportStar(require("./ai/film-keyframe-generate.schema"), exports);
|
|
137
|
+
__exportStar(require("./ai/film-shot-risk-assess.schema"), exports);
|
|
138
|
+
__exportStar(require("./ai/film-still-review-generate.schema"), exports);
|
|
139
|
+
__exportStar(require("./ai/film-clip-review-generate.schema"), exports);
|
|
140
|
+
__exportStar(require("./ai/film-workflow-generate.schema"), exports);
|
|
141
|
+
__exportStar(require("./ai-llm-outputs"), exports);
|
|
142
|
+
__exportStar(require("./task-complexity.schema"), exports);
|
|
143
|
+
__exportStar(require("./task-evidence-expectations.schema"), exports);
|
|
144
|
+
// Film Production Domain Module
|
|
145
|
+
__exportStar(require("./film"), exports);
|
|
146
|
+
__exportStar(require("./provider-sentinel"), exports);
|
|
147
|
+
__exportStar(require("./assurance"), exports);
|
|
148
|
+
__exportStar(require("./cortex/index"), exports);
|
|
149
|
+
__exportStar(require("./community"), exports);
|
|
150
|
+
// Base Schemas
|
|
151
|
+
exports.UUIDSchema = zod_1.z.string().uuid();
|
|
152
|
+
exports.EmailSchema = zod_1.z.string().email();
|
|
153
|
+
exports.DateTimeSchema = zod_1.z.string().datetime();
|
|
154
|
+
exports.PositiveIntSchema = zod_1.z.number().int().positive();
|
|
155
|
+
exports.NonNegativeIntSchema = zod_1.z.number().int().min(0);
|
|
156
|
+
// User Schemas
|
|
157
|
+
exports.UserRoleSchema = zod_1.z.enum(["owner", "client", "admin"]);
|
|
158
|
+
exports.NotificationSettingsSchema = zod_1.z.object({
|
|
159
|
+
email: zod_1.z.boolean(),
|
|
160
|
+
push: zod_1.z.boolean(),
|
|
161
|
+
inApp: zod_1.z.boolean(),
|
|
162
|
+
});
|
|
163
|
+
exports.UserPreferencesSchema = zod_1.z.object({
|
|
164
|
+
theme: zod_1.z.enum(["light", "dark", "system"]),
|
|
165
|
+
notifications: exports.NotificationSettingsSchema,
|
|
166
|
+
language: zod_1.z.string().min(2).max(5), // e.g., "en", "en-US"
|
|
167
|
+
});
|
|
168
|
+
exports.UserProfileSchema = zod_1.z.object({
|
|
169
|
+
firstName: zod_1.z.string().min(1).max(50).optional(),
|
|
170
|
+
lastName: zod_1.z.string().min(1).max(50).optional(),
|
|
171
|
+
avatar: zod_1.z.string().url().optional(),
|
|
172
|
+
timezone: zod_1.z.string().optional(),
|
|
173
|
+
preferences: exports.UserPreferencesSchema,
|
|
174
|
+
});
|
|
175
|
+
exports.UserSchema = zod_1.z.object({
|
|
176
|
+
id: exports.UUIDSchema,
|
|
177
|
+
email: exports.EmailSchema,
|
|
178
|
+
role: exports.UserRoleSchema,
|
|
179
|
+
createdAt: exports.DateTimeSchema,
|
|
180
|
+
updatedAt: exports.DateTimeSchema,
|
|
181
|
+
profile: exports.UserProfileSchema.optional(),
|
|
182
|
+
});
|
|
183
|
+
exports.CreateUserSchema = zod_1.z.object({
|
|
184
|
+
email: exports.EmailSchema,
|
|
185
|
+
role: exports.UserRoleSchema,
|
|
186
|
+
profile: exports.UserProfileSchema.optional(),
|
|
187
|
+
});
|
|
188
|
+
exports.UpdateUserSchema = zod_1.z.object({
|
|
189
|
+
email: exports.EmailSchema.optional(),
|
|
190
|
+
role: exports.UserRoleSchema.optional(),
|
|
191
|
+
profile: exports.UserProfileSchema.optional(),
|
|
192
|
+
});
|
|
193
|
+
exports.UserSummarySchema = zod_1.z.object({
|
|
194
|
+
id: zod_1.z.string().uuid(),
|
|
195
|
+
email: zod_1.z.string().email(),
|
|
196
|
+
role: zod_1.z.enum(['owner', 'admin', 'client']),
|
|
197
|
+
});
|
|
198
|
+
// Project Schemas
|
|
199
|
+
exports.ProjectStatusSchema = zod_1.z.enum(["draft", "active", "completed", "archived"]);
|
|
200
|
+
exports.ProjectSchema = zod_1.z.object({
|
|
201
|
+
id: exports.UUIDSchema,
|
|
202
|
+
title: zod_1.z.string().min(1).max(200),
|
|
203
|
+
description: zod_1.z.string().min(1).max(2000),
|
|
204
|
+
status: exports.ProjectStatusSchema,
|
|
205
|
+
ownerId: exports.UUIDSchema,
|
|
206
|
+
clientId: exports.UUIDSchema.optional(),
|
|
207
|
+
createdAt: exports.DateTimeSchema,
|
|
208
|
+
updatedAt: exports.DateTimeSchema,
|
|
209
|
+
});
|
|
210
|
+
exports.ProjectSummarySchema = zod_1.z.object({
|
|
211
|
+
id: exports.UUIDSchema,
|
|
212
|
+
title: zod_1.z.string().min(1).max(200),
|
|
213
|
+
description: zod_1.z.string().min(1).max(2000),
|
|
214
|
+
status: exports.ProjectStatusSchema,
|
|
215
|
+
ownerId: exports.UUIDSchema,
|
|
216
|
+
clientId: exports.UUIDSchema.optional(),
|
|
217
|
+
createdAt: exports.DateTimeSchema,
|
|
218
|
+
updatedAt: exports.DateTimeSchema,
|
|
219
|
+
});
|
|
220
|
+
exports.WorkflowKindSchema = zod_1.z.enum([
|
|
221
|
+
'software',
|
|
222
|
+
'book',
|
|
223
|
+
'technical_report',
|
|
224
|
+
'scientific_paper',
|
|
225
|
+
'research_brief',
|
|
226
|
+
'white_paper',
|
|
227
|
+
'philosophical_manuscript',
|
|
228
|
+
]);
|
|
229
|
+
exports.CreateProjectSchema = zod_1.z.object({
|
|
230
|
+
title: zod_1.z.string().min(1).max(200),
|
|
231
|
+
description: zod_1.z.string().min(1).max(2000),
|
|
232
|
+
clientId: exports.UUIDSchema.optional(),
|
|
233
|
+
kind: exports.WorkflowKindSchema.optional(),
|
|
234
|
+
});
|
|
235
|
+
exports.UpdateProjectSchema = zod_1.z.object({
|
|
236
|
+
title: zod_1.z.string().min(1).max(200).optional(),
|
|
237
|
+
description: zod_1.z.string().min(1).max(2000).optional(),
|
|
238
|
+
status: exports.ProjectStatusSchema.optional(),
|
|
239
|
+
clientId: exports.UUIDSchema.optional(),
|
|
240
|
+
});
|
|
241
|
+
// Spec Schemas
|
|
242
|
+
exports.SpecPrioritySchema = zod_1.z.enum(["low", "medium", "high", "critical"]);
|
|
243
|
+
exports.SpecStatusSchema = zod_1.z.enum([
|
|
244
|
+
"draft",
|
|
245
|
+
"validated",
|
|
246
|
+
"approved",
|
|
247
|
+
"rejected",
|
|
248
|
+
"superseded",
|
|
249
|
+
]);
|
|
250
|
+
exports.SpecSchema = zod_1.z.object({
|
|
251
|
+
id: exports.UUIDSchema,
|
|
252
|
+
projectId: exports.UUIDSchema,
|
|
253
|
+
title: zod_1.z.string().min(1).max(200),
|
|
254
|
+
description: zod_1.z.string().min(1).max(5000),
|
|
255
|
+
requirements: zod_1.z.array(zod_1.z.string().min(1).max(500)),
|
|
256
|
+
acceptanceCriteria: zod_1.z.array(zod_1.z.string().min(1).max(500)),
|
|
257
|
+
priority: exports.SpecPrioritySchema,
|
|
258
|
+
status: exports.SpecStatusSchema,
|
|
259
|
+
createdAt: exports.DateTimeSchema,
|
|
260
|
+
updatedAt: exports.DateTimeSchema,
|
|
261
|
+
createdBy: exports.UUIDSchema,
|
|
262
|
+
reviewedBy: exports.UUIDSchema.optional(),
|
|
263
|
+
reviewedAt: exports.DateTimeSchema.optional(),
|
|
264
|
+
});
|
|
265
|
+
exports.CreateSpecSchema = zod_1.z.object({
|
|
266
|
+
projectId: exports.UUIDSchema,
|
|
267
|
+
title: zod_1.z.string().min(1).max(200),
|
|
268
|
+
description: zod_1.z.string().min(1).max(5000),
|
|
269
|
+
requirements: zod_1.z.array(zod_1.z.string().min(1).max(500)),
|
|
270
|
+
acceptanceCriteria: zod_1.z.array(zod_1.z.string().min(1).max(500)),
|
|
271
|
+
priority: exports.SpecPrioritySchema,
|
|
272
|
+
});
|
|
273
|
+
exports.UpdateSpecSchema = zod_1.z.object({
|
|
274
|
+
title: zod_1.z.string().min(1).max(200).optional(),
|
|
275
|
+
description: zod_1.z.string().min(1).max(5000).optional(),
|
|
276
|
+
requirements: zod_1.z.array(zod_1.z.string().min(1).max(500)).optional(),
|
|
277
|
+
acceptanceCriteria: zod_1.z.array(zod_1.z.string().min(1).max(500)).optional(),
|
|
278
|
+
priority: exports.SpecPrioritySchema.optional(),
|
|
279
|
+
status: exports.SpecStatusSchema.optional(),
|
|
280
|
+
});
|
|
281
|
+
// Plan Schemas
|
|
282
|
+
exports.PlanStatusSchema = zod_1.z.enum(["draft", "approved", "in_progress", "completed", "blocked"]);
|
|
283
|
+
exports.PlanSchema = zod_1.z.object({
|
|
284
|
+
id: exports.UUIDSchema,
|
|
285
|
+
projectId: exports.UUIDSchema,
|
|
286
|
+
specId: exports.UUIDSchema,
|
|
287
|
+
title: zod_1.z.string().min(1).max(200),
|
|
288
|
+
description: zod_1.z.string().min(1).max(2000),
|
|
289
|
+
estimatedHours: exports.PositiveIntSchema,
|
|
290
|
+
actualHours: exports.NonNegativeIntSchema.optional(),
|
|
291
|
+
status: exports.PlanStatusSchema,
|
|
292
|
+
dependencies: zod_1.z.array(exports.UUIDSchema),
|
|
293
|
+
createdAt: exports.DateTimeSchema,
|
|
294
|
+
updatedAt: exports.DateTimeSchema,
|
|
295
|
+
assignedTo: exports.UUIDSchema.optional(),
|
|
296
|
+
});
|
|
297
|
+
exports.CreatePlanSchema = zod_1.z.object({
|
|
298
|
+
projectId: exports.UUIDSchema,
|
|
299
|
+
specId: exports.UUIDSchema,
|
|
300
|
+
title: zod_1.z.string().min(1).max(200),
|
|
301
|
+
description: zod_1.z.string().min(1).max(2000),
|
|
302
|
+
estimatedHours: exports.PositiveIntSchema,
|
|
303
|
+
dependencies: zod_1.z.array(exports.UUIDSchema).default([]),
|
|
304
|
+
assignedTo: exports.UUIDSchema.optional(),
|
|
305
|
+
});
|
|
306
|
+
exports.UpdatePlanSchema = zod_1.z.object({
|
|
307
|
+
title: zod_1.z.string().min(1).max(200).optional(),
|
|
308
|
+
description: zod_1.z.string().min(1).max(2000).optional(),
|
|
309
|
+
estimatedHours: exports.PositiveIntSchema.optional(),
|
|
310
|
+
actualHours: exports.NonNegativeIntSchema.optional(),
|
|
311
|
+
status: exports.PlanStatusSchema.optional(),
|
|
312
|
+
dependencies: zod_1.z.array(exports.UUIDSchema).optional(),
|
|
313
|
+
assignedTo: exports.UUIDSchema.optional(),
|
|
314
|
+
});
|
|
315
|
+
// Task Schemas — values must match DB tasks_type_check constraint
|
|
316
|
+
exports.TaskTypeSchema = zod_1.z.enum([
|
|
317
|
+
"feature",
|
|
318
|
+
"bug",
|
|
319
|
+
"enhancement",
|
|
320
|
+
"documentation",
|
|
321
|
+
"testing",
|
|
322
|
+
]);
|
|
323
|
+
exports.TaskStatusSchema = zod_1.z.enum([
|
|
324
|
+
"todo",
|
|
325
|
+
"in_progress",
|
|
326
|
+
"implementing",
|
|
327
|
+
"implemented",
|
|
328
|
+
"in_review",
|
|
329
|
+
"review_failed",
|
|
330
|
+
"completed",
|
|
331
|
+
"blocked",
|
|
332
|
+
"approved",
|
|
333
|
+
"ready",
|
|
334
|
+
"failed",
|
|
335
|
+
"done",
|
|
336
|
+
"not_started",
|
|
337
|
+
]);
|
|
338
|
+
exports.TaskPrioritySchema = zod_1.z.enum(["low", "medium", "high", "critical"]);
|
|
339
|
+
exports.TaskSchema = zod_1.z.object({
|
|
340
|
+
id: exports.UUIDSchema,
|
|
341
|
+
planId: exports.UUIDSchema,
|
|
342
|
+
title: zod_1.z.string().min(1).max(200),
|
|
343
|
+
description: zod_1.z.string().min(1).max(1000),
|
|
344
|
+
type: exports.TaskTypeSchema,
|
|
345
|
+
status: exports.TaskStatusSchema,
|
|
346
|
+
priority: exports.TaskPrioritySchema,
|
|
347
|
+
estimatedHours: exports.PositiveIntSchema,
|
|
348
|
+
actualHours: exports.NonNegativeIntSchema.optional(),
|
|
349
|
+
assignedTo: exports.UUIDSchema.optional(),
|
|
350
|
+
dependencies: zod_1.z.array(exports.UUIDSchema),
|
|
351
|
+
createdAt: exports.DateTimeSchema,
|
|
352
|
+
updatedAt: exports.DateTimeSchema,
|
|
353
|
+
completedAt: exports.DateTimeSchema.optional(),
|
|
354
|
+
// Sprint I1 — denormalised implementation patch binding (display convenience).
|
|
355
|
+
currentPatchSetId: exports.UUIDSchema.optional().nullable(),
|
|
356
|
+
currentBranchName: zod_1.z.string().optional().nullable(),
|
|
357
|
+
currentPrUrl: zod_1.z.string().optional().nullable(),
|
|
358
|
+
currentPrNumber: zod_1.z.number().int().optional().nullable(),
|
|
359
|
+
implementationStatus: zod_1.z.string().optional().nullable(),
|
|
360
|
+
});
|
|
361
|
+
exports.CreateTaskSchema = zod_1.z.object({
|
|
362
|
+
projectId: exports.UUIDSchema, // REQUIRED for MVP
|
|
363
|
+
planId: exports.UUIDSchema.optional(), // Optional for future plans
|
|
364
|
+
parentTaskId: exports.UUIDSchema.optional(), // Future-proof: subtasks
|
|
365
|
+
title: zod_1.z.string().min(1).max(200),
|
|
366
|
+
description: zod_1.z.string().min(1).max(1000).optional(),
|
|
367
|
+
type: exports.TaskTypeSchema,
|
|
368
|
+
priority: exports.TaskPrioritySchema,
|
|
369
|
+
status: exports.TaskStatusSchema.default('todo'),
|
|
370
|
+
estimatedHours: exports.PositiveIntSchema.default(1),
|
|
371
|
+
assignedUserId: exports.UUIDSchema.optional()
|
|
372
|
+
});
|
|
373
|
+
exports.UpdateTaskSchema = zod_1.z.object({
|
|
374
|
+
title: zod_1.z.string().min(1).max(200).optional(),
|
|
375
|
+
description: zod_1.z.string().min(1).max(1000).optional(),
|
|
376
|
+
type: exports.TaskTypeSchema.optional(),
|
|
377
|
+
status: exports.TaskStatusSchema.optional(),
|
|
378
|
+
priority: exports.TaskPrioritySchema.optional(),
|
|
379
|
+
estimatedHours: exports.PositiveIntSchema.optional(),
|
|
380
|
+
actualHours: exports.NonNegativeIntSchema.optional(),
|
|
381
|
+
assignedTo: exports.UUIDSchema.optional(),
|
|
382
|
+
dependencies: zod_1.z.array(exports.UUIDSchema).optional(),
|
|
383
|
+
});
|
|
384
|
+
// Project Settings & Orchestration Schemas
|
|
385
|
+
exports.DeploymentStatusSchema = zod_1.z.enum([
|
|
386
|
+
"pending",
|
|
387
|
+
"deploying",
|
|
388
|
+
"deployed",
|
|
389
|
+
"failed",
|
|
390
|
+
"maintenance"
|
|
391
|
+
]);
|
|
392
|
+
exports.ProjectSettingsSchema = zod_1.z.object({
|
|
393
|
+
id: exports.UUIDSchema,
|
|
394
|
+
projectId: exports.UUIDSchema,
|
|
395
|
+
githubRepo: zod_1.z.string().regex(/^[a-zA-Z0-9_.-]+\/[a-zA-Z0-9_.-]+$/, "Invalid GitHub repo format"),
|
|
396
|
+
vercelUrl: zod_1.z.string().url().regex(/^https:\/\/.*\.vercel\.(app|com)$/).optional(),
|
|
397
|
+
dopplerEnv: zod_1.z.string().min(3).max(50),
|
|
398
|
+
deploymentStatus: exports.DeploymentStatusSchema,
|
|
399
|
+
settings: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
400
|
+
createdAt: exports.DateTimeSchema,
|
|
401
|
+
updatedAt: exports.DateTimeSchema,
|
|
402
|
+
});
|
|
403
|
+
exports.CreateProjectSettingsSchema = zod_1.z.object({
|
|
404
|
+
projectId: exports.UUIDSchema,
|
|
405
|
+
githubRepo: zod_1.z.string().regex(/^[a-zA-Z0-9_.-]+\/[a-zA-Z0-9_.-]+$/),
|
|
406
|
+
vercelUrl: zod_1.z.string().url().regex(/^https:\/\/.*\.vercel\.(app|com)$/).optional(),
|
|
407
|
+
dopplerEnv: zod_1.z.string().min(3).max(50),
|
|
408
|
+
settings: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({}),
|
|
409
|
+
});
|
|
410
|
+
exports.UpdateProjectSettingsSchema = zod_1.z.object({
|
|
411
|
+
githubRepo: zod_1.z.string().regex(/^[a-zA-Z0-9_.-]+\/[a-zA-Z0-9_.-]+$/).optional(),
|
|
412
|
+
vercelUrl: zod_1.z.string().url().regex(/^https:\/\/.*\.vercel\.(app|com)$/).optional(),
|
|
413
|
+
dopplerEnv: zod_1.z.string().min(3).max(50).optional(),
|
|
414
|
+
deploymentStatus: exports.DeploymentStatusSchema.optional(),
|
|
415
|
+
settings: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
416
|
+
});
|
|
417
|
+
/** Supabase/Postgres may return timestamps with a space separator; normalize for ISO parsing. */
|
|
418
|
+
const KnowledgeNodeCreatedAtSchema = zod_1.z.preprocess((val) => {
|
|
419
|
+
if (typeof val !== "string") {
|
|
420
|
+
return val;
|
|
421
|
+
}
|
|
422
|
+
const s = val.trim();
|
|
423
|
+
if (/^\d{4}-\d{2}-\d{2} \d/.test(s)) {
|
|
424
|
+
return `${s.slice(0, 10)}T${s.slice(11)}`;
|
|
425
|
+
}
|
|
426
|
+
return s;
|
|
427
|
+
}, zod_1.z.string().datetime({ offset: true }));
|
|
428
|
+
/** pgvector / PostgREST may return embeddings as JSON strings; accept number[] when present. */
|
|
429
|
+
const KnowledgeNodeEmbeddingSchema = zod_1.z.preprocess((val) => {
|
|
430
|
+
if (val === null || val === undefined) {
|
|
431
|
+
return undefined;
|
|
432
|
+
}
|
|
433
|
+
if (Array.isArray(val) && val.every((x) => typeof x === "number")) {
|
|
434
|
+
return val;
|
|
435
|
+
}
|
|
436
|
+
if (typeof val === "string") {
|
|
437
|
+
const t = val.trim();
|
|
438
|
+
if (t.startsWith("[")) {
|
|
439
|
+
try {
|
|
440
|
+
const raw = JSON.parse(t);
|
|
441
|
+
if (Array.isArray(raw) && raw.every((x) => typeof x === "number")) {
|
|
442
|
+
return raw;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
catch {
|
|
446
|
+
return undefined;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
return undefined;
|
|
451
|
+
}, zod_1.z.array(zod_1.z.number()).optional());
|
|
452
|
+
// Knowledge Graph Schemas — `type` matches `knowledge_nodes.type` CHECK
|
|
453
|
+
exports.KnowledgeNodeTypeSchema = zod_1.z.enum([
|
|
454
|
+
"spec",
|
|
455
|
+
"task",
|
|
456
|
+
"report",
|
|
457
|
+
"code",
|
|
458
|
+
"architecture",
|
|
459
|
+
"constitution",
|
|
460
|
+
"plan",
|
|
461
|
+
"other",
|
|
462
|
+
"patch",
|
|
463
|
+
"pr",
|
|
464
|
+
"file",
|
|
465
|
+
"documentation",
|
|
466
|
+
"concept",
|
|
467
|
+
"topic",
|
|
468
|
+
"source_summary",
|
|
469
|
+
"domain_knowledge",
|
|
470
|
+
"human_intent",
|
|
471
|
+
"code_file",
|
|
472
|
+
"github_branch",
|
|
473
|
+
"github_pull_request",
|
|
474
|
+
]);
|
|
475
|
+
exports.KnowledgeNodeSchema = zod_1.z.object({
|
|
476
|
+
id: exports.UUIDSchema,
|
|
477
|
+
projectId: exports.UUIDSchema,
|
|
478
|
+
type: exports.KnowledgeNodeTypeSchema,
|
|
479
|
+
content: zod_1.z.preprocess((v) => (v === null || v === undefined ? undefined : v), zod_1.z.string().optional()),
|
|
480
|
+
data: zod_1.z.record(zod_1.z.any()).optional(),
|
|
481
|
+
embedding: KnowledgeNodeEmbeddingSchema,
|
|
482
|
+
createdAt: KnowledgeNodeCreatedAtSchema,
|
|
483
|
+
});
|
|
484
|
+
exports.CreateKnowledgeNodeSchema = zod_1.z.object({
|
|
485
|
+
projectId: exports.UUIDSchema,
|
|
486
|
+
type: exports.KnowledgeNodeTypeSchema,
|
|
487
|
+
content: zod_1.z.string().optional(),
|
|
488
|
+
data: zod_1.z.record(zod_1.z.any()).optional(),
|
|
489
|
+
});
|
|
490
|
+
exports.KnowledgeNodeListSchema = zod_1.z.object({
|
|
491
|
+
projectId: exports.UUIDSchema,
|
|
492
|
+
type: exports.KnowledgeNodeTypeSchema.optional(),
|
|
493
|
+
search: zod_1.z.string().optional(),
|
|
494
|
+
});
|
|
495
|
+
/** GET /api/knowledge/nodes — list response (audit + clients expect `nodes`, not a bare array). */
|
|
496
|
+
exports.KnowledgeNodesListResponseSchema = zod_1.z.object({
|
|
497
|
+
nodes: zod_1.z.array(exports.KnowledgeNodeSchema),
|
|
498
|
+
});
|
|
499
|
+
/** JSON `data` payload for `knowledge_nodes` rows created by the Knowledge workflow step. */
|
|
500
|
+
exports.WorkflowKnowledgeNodeDataSchema = zod_1.z.object({
|
|
501
|
+
step: zod_1.z.literal(knowledge_node_1.WORKFLOW_KNOWLEDGE_NODE_DATA.step),
|
|
502
|
+
});
|
|
503
|
+
/** DB row: snake_case column names (PostgREST / knowledge_edges). */
|
|
504
|
+
exports.KnowledgeEdgeSchema = zod_1.z.object({
|
|
505
|
+
id: exports.UUIDSchema,
|
|
506
|
+
project_id: exports.UUIDSchema,
|
|
507
|
+
source_id: exports.UUIDSchema,
|
|
508
|
+
target_id: exports.UUIDSchema,
|
|
509
|
+
relation: zod_1.z.string().min(1),
|
|
510
|
+
weight: zod_1.z.number().optional().nullable(),
|
|
511
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).optional().nullable(),
|
|
512
|
+
created_at: zod_1.z.string(),
|
|
513
|
+
});
|
|
514
|
+
/** API response: camelCase endpoints. */
|
|
515
|
+
exports.KnowledgeEdgeResponseSchema = zod_1.z.object({
|
|
516
|
+
id: exports.UUIDSchema,
|
|
517
|
+
projectId: exports.UUIDSchema,
|
|
518
|
+
sourceId: exports.UUIDSchema,
|
|
519
|
+
targetId: exports.UUIDSchema,
|
|
520
|
+
relation: zod_1.z.string().min(1),
|
|
521
|
+
weight: zod_1.z.number().optional().nullable(),
|
|
522
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).optional().nullable(),
|
|
523
|
+
});
|
|
524
|
+
const toKnowledgeEdgeResponse = (row) => ({
|
|
525
|
+
id: row.id,
|
|
526
|
+
projectId: row.project_id,
|
|
527
|
+
sourceId: row.source_id,
|
|
528
|
+
targetId: row.target_id,
|
|
529
|
+
relation: row.relation,
|
|
530
|
+
weight: row.weight ?? undefined,
|
|
531
|
+
metadata: row.metadata ?? undefined,
|
|
532
|
+
});
|
|
533
|
+
exports.toKnowledgeEdgeResponse = toKnowledgeEdgeResponse;
|
|
534
|
+
exports.CreateKnowledgeEdgeSchema = zod_1.z.object({
|
|
535
|
+
projectId: exports.UUIDSchema,
|
|
536
|
+
sourceId: exports.UUIDSchema,
|
|
537
|
+
targetId: exports.UUIDSchema,
|
|
538
|
+
relation: zod_1.z.string().min(1),
|
|
539
|
+
});
|
|
540
|
+
exports.KnowledgeEdgeListItemSchema = exports.KnowledgeEdgeResponseSchema;
|
|
541
|
+
exports.KnowledgeQuerySchema = zod_1.z.object({
|
|
542
|
+
projectId: exports.UUIDSchema,
|
|
543
|
+
content: zod_1.z.string().min(1),
|
|
544
|
+
matchLimit: zod_1.z.number().int().min(1).max(50).optional(),
|
|
545
|
+
});
|
|
546
|
+
// Audit & Compliance Schemas
|
|
547
|
+
exports.ResourceTypeSchema = zod_1.z.enum([
|
|
548
|
+
"project",
|
|
549
|
+
"spec",
|
|
550
|
+
"plan",
|
|
551
|
+
"task",
|
|
552
|
+
"repo",
|
|
553
|
+
"deployment",
|
|
554
|
+
"workflow",
|
|
555
|
+
"validation",
|
|
556
|
+
"user",
|
|
557
|
+
"settings"
|
|
558
|
+
]);
|
|
559
|
+
exports.AuditLogSchema = zod_1.z.object({
|
|
560
|
+
id: exports.UUIDSchema,
|
|
561
|
+
projectId: exports.UUIDSchema.optional(),
|
|
562
|
+
actor: zod_1.z.string().min(1).max(100),
|
|
563
|
+
action: zod_1.z.string().min(1).max(100),
|
|
564
|
+
resourceType: exports.ResourceTypeSchema.optional(),
|
|
565
|
+
resourceId: exports.UUIDSchema.optional(),
|
|
566
|
+
details: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
567
|
+
ipAddress: zod_1.z.string().ip().optional(),
|
|
568
|
+
userAgent: zod_1.z.string().optional(),
|
|
569
|
+
success: zod_1.z.boolean(),
|
|
570
|
+
errorMessage: zod_1.z.string().optional(),
|
|
571
|
+
createdAt: exports.DateTimeSchema,
|
|
572
|
+
});
|
|
573
|
+
exports.CreateAuditLogSchema = zod_1.z.object({
|
|
574
|
+
projectId: exports.UUIDSchema.optional(),
|
|
575
|
+
actor: zod_1.z.string().min(1).max(100),
|
|
576
|
+
action: zod_1.z.string().min(1).max(100),
|
|
577
|
+
resourceType: exports.ResourceTypeSchema.optional(),
|
|
578
|
+
resourceId: exports.UUIDSchema.optional(),
|
|
579
|
+
details: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({}),
|
|
580
|
+
ipAddress: zod_1.z.string().ip().optional(),
|
|
581
|
+
userAgent: zod_1.z.string().optional(),
|
|
582
|
+
success: zod_1.z.boolean().default(true),
|
|
583
|
+
errorMessage: zod_1.z.string().optional(),
|
|
584
|
+
});
|
|
585
|
+
exports.ComplianceReportTypeSchema = zod_1.z.enum([
|
|
586
|
+
"constitutional",
|
|
587
|
+
"security",
|
|
588
|
+
"performance",
|
|
589
|
+
"quality",
|
|
590
|
+
"deployment"
|
|
591
|
+
]);
|
|
592
|
+
exports.ComplianceReportGeneratedBySchema = zod_1.z.enum([
|
|
593
|
+
"github-actions",
|
|
594
|
+
"manual",
|
|
595
|
+
"scheduled"
|
|
596
|
+
]);
|
|
597
|
+
// Constitution Schemas
|
|
598
|
+
exports.ConstitutionSchema = zod_1.z.object({
|
|
599
|
+
id: exports.UUIDSchema,
|
|
600
|
+
projectId: exports.UUIDSchema,
|
|
601
|
+
title: zod_1.z.string().min(1).max(200),
|
|
602
|
+
content: zod_1.z.string().min(10).max(50000),
|
|
603
|
+
version: zod_1.z.string().min(1).max(50),
|
|
604
|
+
status: zod_1.z.enum(["draft", "active", "archived"]),
|
|
605
|
+
principles: zod_1.z.array(zod_1.z.string().min(1).max(500)).min(1).max(20),
|
|
606
|
+
rules: zod_1.z.array(zod_1.z.string().min(1).max(1000)).min(1).max(50),
|
|
607
|
+
validationScore: zod_1.z.number().int().min(0).max(100).optional(),
|
|
608
|
+
lastValidatedAt: zod_1.z.string().datetime().optional(),
|
|
609
|
+
createdBy: exports.UUIDSchema,
|
|
610
|
+
createdAt: zod_1.z.string().datetime(),
|
|
611
|
+
updatedAt: zod_1.z.string().datetime(),
|
|
612
|
+
});
|
|
613
|
+
exports.CreateConstitutionSchema = zod_1.z.object({
|
|
614
|
+
projectId: exports.UUIDSchema,
|
|
615
|
+
title: zod_1.z.string().min(1).max(200),
|
|
616
|
+
content: zod_1.z.string().min(10).max(50000),
|
|
617
|
+
version: zod_1.z.string().min(1).max(50).default("1.0"),
|
|
618
|
+
principles: zod_1.z.array(zod_1.z.string().min(1).max(500)).min(1).max(20),
|
|
619
|
+
rules: zod_1.z.array(zod_1.z.string().min(1).max(1000)).min(1).max(50),
|
|
620
|
+
});
|
|
621
|
+
exports.UpdateConstitutionSchema = exports.CreateConstitutionSchema.partial().extend({
|
|
622
|
+
id: exports.UUIDSchema,
|
|
623
|
+
});
|
|
624
|
+
exports.ConstitutionValidationSchema = zod_1.z.object({
|
|
625
|
+
projectId: exports.UUIDSchema,
|
|
626
|
+
constitutionId: exports.UUIDSchema,
|
|
627
|
+
overallScore: zod_1.z.number().int().min(0).max(100),
|
|
628
|
+
ssotCompliance: zod_1.z.number().int().min(0).max(100),
|
|
629
|
+
typeSafety: zod_1.z.number().int().min(0).max(100),
|
|
630
|
+
performance: zod_1.z.number().int().min(0).max(100),
|
|
631
|
+
security: zod_1.z.number().int().min(0).max(100),
|
|
632
|
+
violations: zod_1.z.array(zod_1.z.object({
|
|
633
|
+
rule: zod_1.z.string(),
|
|
634
|
+
severity: zod_1.z.enum(["low", "medium", "high", "critical"]),
|
|
635
|
+
description: zod_1.z.string(),
|
|
636
|
+
suggestion: zod_1.z.string().optional(),
|
|
637
|
+
})),
|
|
638
|
+
validatedAt: zod_1.z.string().datetime(),
|
|
639
|
+
});
|
|
640
|
+
exports.EnhancedComplianceReportSchema = zod_1.z.object({
|
|
641
|
+
id: exports.UUIDSchema,
|
|
642
|
+
projectId: exports.UUIDSchema,
|
|
643
|
+
reportType: exports.ComplianceReportTypeSchema,
|
|
644
|
+
score: zod_1.z.number().int().min(0).max(100),
|
|
645
|
+
passed: zod_1.z.boolean(),
|
|
646
|
+
violations: zod_1.z.array(zod_1.z.string()),
|
|
647
|
+
recommendations: zod_1.z.array(zod_1.z.string()),
|
|
648
|
+
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
649
|
+
generatedBy: exports.ComplianceReportGeneratedBySchema,
|
|
650
|
+
generatedAt: exports.DateTimeSchema,
|
|
651
|
+
createdAt: exports.DateTimeSchema,
|
|
652
|
+
});
|
|
653
|
+
exports.CreateComplianceReportSchema = zod_1.z.object({
|
|
654
|
+
projectId: exports.UUIDSchema,
|
|
655
|
+
reportType: exports.ComplianceReportTypeSchema,
|
|
656
|
+
score: zod_1.z.number().int().min(0).max(100),
|
|
657
|
+
passed: zod_1.z.boolean(),
|
|
658
|
+
violations: zod_1.z.array(zod_1.z.string()).default([]),
|
|
659
|
+
recommendations: zod_1.z.array(zod_1.z.string()).default([]),
|
|
660
|
+
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({}),
|
|
661
|
+
generatedBy: exports.ComplianceReportGeneratedBySchema,
|
|
662
|
+
});
|
|
663
|
+
// Pagination Schemas
|
|
664
|
+
exports.PaginationParamsSchema = zod_1.z.object({
|
|
665
|
+
page: exports.PositiveIntSchema.default(1),
|
|
666
|
+
limit: zod_1.z.number().int().min(1).max(100).default(20),
|
|
667
|
+
sortBy: zod_1.z.string().min(1).max(50).optional(),
|
|
668
|
+
sortOrder: zod_1.z.enum(["asc", "desc"]).default("asc"),
|
|
669
|
+
});
|
|
670
|
+
exports.PaginationSchema = zod_1.z.object({
|
|
671
|
+
page: exports.PositiveIntSchema,
|
|
672
|
+
limit: exports.PositiveIntSchema,
|
|
673
|
+
total: exports.NonNegativeIntSchema,
|
|
674
|
+
totalPages: exports.NonNegativeIntSchema,
|
|
675
|
+
hasNext: zod_1.z.boolean(),
|
|
676
|
+
hasPrev: zod_1.z.boolean(),
|
|
677
|
+
});
|
|
678
|
+
const PaginatedResponseSchema = (itemSchema) => zod_1.z.object({
|
|
679
|
+
items: zod_1.z.array(itemSchema),
|
|
680
|
+
pagination: exports.PaginationSchema,
|
|
681
|
+
});
|
|
682
|
+
exports.PaginatedResponseSchema = PaginatedResponseSchema;
|
|
683
|
+
// Constitutional Compliance Schemas
|
|
684
|
+
exports.ViolationTypeSchema = zod_1.z.enum([
|
|
685
|
+
"inline_interface",
|
|
686
|
+
"hardcoded_css",
|
|
687
|
+
"env_fallback",
|
|
688
|
+
"missing_validation",
|
|
689
|
+
"performance_budget",
|
|
690
|
+
"security_violation"
|
|
691
|
+
]);
|
|
692
|
+
exports.ConstitutionalViolationSchema = zod_1.z.object({
|
|
693
|
+
id: exports.UUIDSchema,
|
|
694
|
+
type: exports.ViolationTypeSchema,
|
|
695
|
+
severity: zod_1.z.enum(["low", "medium", "high", "critical"]),
|
|
696
|
+
message: zod_1.z.string().min(1).max(500),
|
|
697
|
+
file: zod_1.z.string().min(1).max(500),
|
|
698
|
+
line: exports.PositiveIntSchema.optional(),
|
|
699
|
+
rule: zod_1.z.string().min(1).max(100),
|
|
700
|
+
detectedAt: exports.DateTimeSchema,
|
|
701
|
+
resolvedAt: exports.DateTimeSchema.optional(),
|
|
702
|
+
});
|
|
703
|
+
// Legacy compliance report schema (deprecated - use EnhancedComplianceReportSchema)
|
|
704
|
+
exports.LegacyComplianceReportSchema = zod_1.z.object({
|
|
705
|
+
id: exports.UUIDSchema,
|
|
706
|
+
projectId: exports.UUIDSchema,
|
|
707
|
+
violations: zod_1.z.array(exports.ConstitutionalViolationSchema),
|
|
708
|
+
score: zod_1.z.number().int().min(0).max(100),
|
|
709
|
+
generatedAt: exports.DateTimeSchema,
|
|
710
|
+
passedChecks: zod_1.z.array(zod_1.z.string().min(1).max(100)),
|
|
711
|
+
failedChecks: zod_1.z.array(zod_1.z.string().min(1).max(100)),
|
|
712
|
+
});
|
|
713
|
+
// Use this for new implementations
|
|
714
|
+
exports.ComplianceReportSchema = exports.EnhancedComplianceReportSchema;
|
|
715
|
+
// System Health Schemas
|
|
716
|
+
exports.ServiceHealthSchema = zod_1.z.object({
|
|
717
|
+
name: zod_1.z.string().min(1).max(50),
|
|
718
|
+
status: zod_1.z.enum(["healthy", "degraded", "down"]),
|
|
719
|
+
responseTime: zod_1.z.number().min(0).optional(),
|
|
720
|
+
lastChecked: exports.DateTimeSchema,
|
|
721
|
+
error: zod_1.z.string().max(500).optional(),
|
|
722
|
+
});
|
|
723
|
+
exports.SystemHealthSchema = zod_1.z.object({
|
|
724
|
+
status: zod_1.z.enum(["healthy", "degraded", "down"]),
|
|
725
|
+
services: zod_1.z.array(exports.ServiceHealthSchema),
|
|
726
|
+
lastChecked: exports.DateTimeSchema,
|
|
727
|
+
});
|
|
728
|
+
// AI-Generated Task Schemas
|
|
729
|
+
exports.GeneratedTaskSchema = zod_1.z.object({
|
|
730
|
+
title: zod_1.z.string().min(1).max(200),
|
|
731
|
+
description: zod_1.z.string().min(1).max(1000),
|
|
732
|
+
type: exports.TaskTypeSchema,
|
|
733
|
+
priority: exports.TaskPrioritySchema,
|
|
734
|
+
estimatedHours: exports.PositiveIntSchema,
|
|
735
|
+
ownerRole: zod_1.z.string().optional(),
|
|
736
|
+
complexity: task_complexity_schema_1.TaskComplexitySchema.optional(),
|
|
737
|
+
sourceArtifacts: zod_1.z
|
|
738
|
+
.array(zod_1.z.object({ type: zod_1.z.string(), id: zod_1.z.string() }))
|
|
739
|
+
.optional(),
|
|
740
|
+
});
|
|
741
|
+
exports.GeneratedTaskListSchema = zod_1.z.object({
|
|
742
|
+
tasks: zod_1.z.array(exports.GeneratedTaskSchema).min(1).max(20),
|
|
743
|
+
metadata: zod_1.z.object({
|
|
744
|
+
totalEstimatedHours: exports.PositiveIntSchema,
|
|
745
|
+
taskCount: exports.PositiveIntSchema,
|
|
746
|
+
processingTime: exports.PositiveIntSchema,
|
|
747
|
+
aiModel: zod_1.z.string(),
|
|
748
|
+
inputSpecsCount: exports.PositiveIntSchema,
|
|
749
|
+
})
|
|
750
|
+
});
|
|
751
|
+
// Types exported from types/index.ts to avoid duplication
|
|
752
|
+
// AI-Generated Architecture Schemas
|
|
753
|
+
exports.GeneratedArchitectureSchema = zod_1.z.object({
|
|
754
|
+
overview: zod_1.z.string().min(10).max(2000),
|
|
755
|
+
techStack: zod_1.z.array(zod_1.z.string().min(1).max(100)).min(1).max(20),
|
|
756
|
+
components: zod_1.z.array(zod_1.z.object({
|
|
757
|
+
name: zod_1.z.string().min(1).max(100),
|
|
758
|
+
description: zod_1.z.string().min(1).max(500),
|
|
759
|
+
type: zod_1.z.enum(["frontend", "backend", "database", "api", "service", "integration"]),
|
|
760
|
+
dependencies: zod_1.z.array(zod_1.z.string()).default([])
|
|
761
|
+
})).min(1).max(15),
|
|
762
|
+
phases: zod_1.z.array(zod_1.z.object({
|
|
763
|
+
name: zod_1.z.string().min(1).max(100),
|
|
764
|
+
description: zod_1.z.string().min(1).max(500),
|
|
765
|
+
estimatedWeeks: zod_1.z.number().int().min(1).max(52),
|
|
766
|
+
components: zod_1.z.array(zod_1.z.string())
|
|
767
|
+
})).min(1).max(8),
|
|
768
|
+
risks: zod_1.z.array(zod_1.z.object({
|
|
769
|
+
risk: zod_1.z.string().min(1).max(200),
|
|
770
|
+
impact: zod_1.z.enum(["low", "medium", "high", "critical"]),
|
|
771
|
+
mitigation: zod_1.z.string().min(1).max(500)
|
|
772
|
+
})).min(1).max(10)
|
|
773
|
+
});
|
|
774
|
+
exports.GeneratedArchitectureListSchema = zod_1.z.object({
|
|
775
|
+
architecture: exports.GeneratedArchitectureSchema,
|
|
776
|
+
metadata: zod_1.z.object({
|
|
777
|
+
totalEstimatedWeeks: zod_1.z.number().int().min(1).max(104),
|
|
778
|
+
componentCount: zod_1.z.number().int().min(1).max(15),
|
|
779
|
+
phaseCount: zod_1.z.number().int().min(1).max(8),
|
|
780
|
+
riskCount: zod_1.z.number().int().min(1).max(10),
|
|
781
|
+
processingTime: exports.PositiveIntSchema,
|
|
782
|
+
aiModel: zod_1.z.string(),
|
|
783
|
+
inputSpecsCount: exports.PositiveIntSchema,
|
|
784
|
+
})
|
|
785
|
+
});
|
|
786
|
+
// Types exported from types/index.ts to avoid duplication
|
|
787
|
+
// AI-Generated Code Schemas
|
|
788
|
+
exports.GeneratedCodeSchema = zod_1.z.object({
|
|
789
|
+
code: zod_1.z.string().min(10).max(10000),
|
|
790
|
+
language: zod_1.z.enum(["typescript", "javascript", "tsx", "jsx", "css", "sql", "json", "markdown"]),
|
|
791
|
+
fileName: zod_1.z.string().min(1).max(200),
|
|
792
|
+
filePath: zod_1.z.string().min(1).max(500),
|
|
793
|
+
description: zod_1.z.string().min(1).max(500),
|
|
794
|
+
dependencies: zod_1.z.array(zod_1.z.string()).default([]),
|
|
795
|
+
instructions: zod_1.z.array(zod_1.z.string()).default([])
|
|
796
|
+
});
|
|
797
|
+
exports.GeneratedCodeListSchema = zod_1.z.object({
|
|
798
|
+
codeFiles: zod_1.z.array(exports.GeneratedCodeSchema).min(1).max(10),
|
|
799
|
+
metadata: zod_1.z.object({
|
|
800
|
+
totalFiles: zod_1.z.number().int().min(1).max(10),
|
|
801
|
+
totalLines: zod_1.z.number().int().min(1),
|
|
802
|
+
primaryLanguage: zod_1.z.string(),
|
|
803
|
+
processingTime: exports.PositiveIntSchema,
|
|
804
|
+
aiModel: zod_1.z.string(),
|
|
805
|
+
inputTasksCount: exports.PositiveIntSchema,
|
|
806
|
+
})
|
|
807
|
+
});
|
|
808
|
+
// Types exported from types/index.ts to avoid duplication
|
|
809
|
+
// AI-Generated Project Review Schemas
|
|
810
|
+
exports.GeneratedReviewSchema = zod_1.z.object({
|
|
811
|
+
summary: zod_1.z.string().min(10).max(1000),
|
|
812
|
+
achievements: zod_1.z.array(zod_1.z.string().min(1).max(200)).min(1).max(10),
|
|
813
|
+
challenges: zod_1.z.array(zod_1.z.string().min(1).max(200)).min(1).max(10),
|
|
814
|
+
lessonsLearned: zod_1.z.array(zod_1.z.string().min(1).max(300)).min(1).max(10),
|
|
815
|
+
recommendations: zod_1.z.array(zod_1.z.string().min(1).max(300)).min(1).max(10),
|
|
816
|
+
metrics: zod_1.z.object({
|
|
817
|
+
completionRate: zod_1.z.number().min(0).max(100),
|
|
818
|
+
qualityScore: zod_1.z.number().min(0).max(100),
|
|
819
|
+
timeEfficiency: zod_1.z.number().min(0).max(100),
|
|
820
|
+
teamSatisfaction: zod_1.z.number().min(0).max(100)
|
|
821
|
+
}),
|
|
822
|
+
nextSteps: zod_1.z.array(zod_1.z.string().min(1).max(200)).min(1).max(8)
|
|
823
|
+
});
|
|
824
|
+
exports.GeneratedReviewListSchema = zod_1.z.object({
|
|
825
|
+
review: exports.GeneratedReviewSchema,
|
|
826
|
+
metadata: zod_1.z.object({
|
|
827
|
+
achievementsCount: zod_1.z.number().int().min(1).max(10),
|
|
828
|
+
challengesCount: zod_1.z.number().int().min(1).max(10),
|
|
829
|
+
lessonsCount: zod_1.z.number().int().min(1).max(10),
|
|
830
|
+
recommendationsCount: zod_1.z.number().int().min(1).max(10),
|
|
831
|
+
processingTime: exports.PositiveIntSchema,
|
|
832
|
+
aiModel: zod_1.z.string(),
|
|
833
|
+
inputDataPoints: exports.PositiveIntSchema,
|
|
834
|
+
})
|
|
835
|
+
});
|
|
836
|
+
// Analytics & Dashboard Schemas - Wave 4 Phase 2
|
|
837
|
+
exports.NotificationSchema = zod_1.z.object({
|
|
838
|
+
id: zod_1.z.string().uuid(),
|
|
839
|
+
message: zod_1.z.string().min(1).max(500),
|
|
840
|
+
type: zod_1.z.enum(['info', 'success', 'warning', 'error']),
|
|
841
|
+
projectId: zod_1.z.string().uuid().optional(),
|
|
842
|
+
readAt: zod_1.z.string().datetime().optional(),
|
|
843
|
+
createdAt: zod_1.z.string().datetime(),
|
|
844
|
+
});
|
|
845
|
+
exports.ContributionPointSchema = zod_1.z.object({
|
|
846
|
+
date: zod_1.z.string().datetime(),
|
|
847
|
+
commits: zod_1.z.number().int().min(0),
|
|
848
|
+
tasksCompleted: zod_1.z.number().int().min(0),
|
|
849
|
+
specsCreated: zod_1.z.number().int().min(0),
|
|
850
|
+
reviewsCompleted: zod_1.z.number().int().min(0),
|
|
851
|
+
});
|
|
852
|
+
exports.ProjectMetricsSchema = zod_1.z.object({
|
|
853
|
+
id: zod_1.z.string().uuid(),
|
|
854
|
+
projectId: zod_1.z.string().uuid(),
|
|
855
|
+
taskVelocity: zod_1.z.object({
|
|
856
|
+
completed: zod_1.z.number().int().min(0),
|
|
857
|
+
inProgress: zod_1.z.number().int().min(0),
|
|
858
|
+
avgCompletionTime: zod_1.z.number().min(0), // in hours
|
|
859
|
+
velocity: zod_1.z.number().min(0), // tasks per day
|
|
860
|
+
}),
|
|
861
|
+
specApprovalRate: zod_1.z.number().min(0).max(100), // percentage 0-100
|
|
862
|
+
complianceScore: zod_1.z.number().min(0).max(100), // 0-100
|
|
863
|
+
codeQuality: zod_1.z.object({
|
|
864
|
+
coverage: zod_1.z.number().min(0).max(100),
|
|
865
|
+
complexity: zod_1.z.number().min(0),
|
|
866
|
+
maintainability: zod_1.z.number().min(0).max(100),
|
|
867
|
+
}),
|
|
868
|
+
createdAt: zod_1.z.string().datetime(),
|
|
869
|
+
updatedAt: zod_1.z.string().datetime(),
|
|
870
|
+
});
|
|
871
|
+
exports.TeamInsightsSchema = zod_1.z.object({
|
|
872
|
+
id: zod_1.z.string().uuid(),
|
|
873
|
+
projectId: zod_1.z.string().uuid(),
|
|
874
|
+
userId: zod_1.z.string().uuid(),
|
|
875
|
+
activityScore: zod_1.z.number().min(0).max(100), // 0-100
|
|
876
|
+
tasksCompleted: zod_1.z.number().int().min(0),
|
|
877
|
+
avgResponseTime: zod_1.z.number().min(0), // in hours
|
|
878
|
+
contributionHistory: zod_1.z.array(exports.ContributionPointSchema),
|
|
879
|
+
workloadBalance: zod_1.z.number().min(0).max(100), // 0-100, 50 is balanced
|
|
880
|
+
createdAt: zod_1.z.string().datetime(),
|
|
881
|
+
updatedAt: zod_1.z.string().datetime(),
|
|
882
|
+
});
|
|
883
|
+
exports.AnalyticsComplianceViolationSchema = zod_1.z.object({
|
|
884
|
+
id: zod_1.z.string().uuid(),
|
|
885
|
+
type: zod_1.z.enum(['ssot', 'type-safety', 'performance', 'security', 'constitutional']),
|
|
886
|
+
severity: zod_1.z.enum(['low', 'medium', 'high', 'critical']),
|
|
887
|
+
message: zod_1.z.string().min(1).max(500),
|
|
888
|
+
file: zod_1.z.string().optional(),
|
|
889
|
+
line: zod_1.z.number().int().positive().optional(),
|
|
890
|
+
rule: zod_1.z.string().min(1).max(100),
|
|
891
|
+
suggestion: zod_1.z.string().max(500).optional(),
|
|
892
|
+
});
|
|
893
|
+
exports.ComplianceTrendSchema = zod_1.z.object({
|
|
894
|
+
date: zod_1.z.string().datetime(),
|
|
895
|
+
score: zod_1.z.number().min(0).max(100),
|
|
896
|
+
violationCount: zod_1.z.number().int().min(0),
|
|
897
|
+
resolved: zod_1.z.number().int().min(0),
|
|
898
|
+
introduced: zod_1.z.number().int().min(0),
|
|
899
|
+
});
|
|
900
|
+
exports.AnalyticsComplianceReportSchema = zod_1.z.object({
|
|
901
|
+
id: zod_1.z.string().uuid(),
|
|
902
|
+
projectId: zod_1.z.string().uuid(),
|
|
903
|
+
overallScore: zod_1.z.number().min(0).max(100), // 0-100
|
|
904
|
+
ssotCompliance: zod_1.z.boolean(),
|
|
905
|
+
typeSafety: zod_1.z.boolean(),
|
|
906
|
+
performance: zod_1.z.boolean(),
|
|
907
|
+
security: zod_1.z.boolean(),
|
|
908
|
+
violations: zod_1.z.array(exports.AnalyticsComplianceViolationSchema),
|
|
909
|
+
trends: zod_1.z.array(exports.ComplianceTrendSchema),
|
|
910
|
+
timestamp: zod_1.z.string().datetime(),
|
|
911
|
+
generatedBy: zod_1.z.string().min(1).max(50), // Guardian system
|
|
912
|
+
});
|
|
913
|
+
exports.NotificationFilterSchema = zod_1.z.object({
|
|
914
|
+
id: zod_1.z.string().uuid(),
|
|
915
|
+
label: zod_1.z.string().min(1).max(50),
|
|
916
|
+
type: zod_1.z.union([
|
|
917
|
+
zod_1.z.enum(['info', 'success', 'warning', 'error']),
|
|
918
|
+
zod_1.z.literal('all')
|
|
919
|
+
]),
|
|
920
|
+
active: zod_1.z.boolean(),
|
|
921
|
+
});
|
|
922
|
+
exports.NotificationFeedSchema = zod_1.z.object({
|
|
923
|
+
notifications: zod_1.z.array(exports.NotificationSchema),
|
|
924
|
+
unreadCount: zod_1.z.number().int().min(0),
|
|
925
|
+
filters: zod_1.z.array(exports.NotificationFilterSchema),
|
|
926
|
+
hasMore: zod_1.z.boolean(),
|
|
927
|
+
totalCount: zod_1.z.number().int().min(0),
|
|
928
|
+
});
|
|
929
|
+
exports.DashboardActivityItemSchema = zod_1.z.object({
|
|
930
|
+
id: zod_1.z.string().uuid(),
|
|
931
|
+
type: zod_1.z.enum(['project_created', 'spec_updated', 'task_completed', 'constitution_generated', 'compliance_check']),
|
|
932
|
+
message: zod_1.z.string().min(1).max(200),
|
|
933
|
+
userId: zod_1.z.string().uuid(),
|
|
934
|
+
projectId: zod_1.z.string().uuid().optional(),
|
|
935
|
+
timestamp: zod_1.z.string().datetime(),
|
|
936
|
+
metadata: zod_1.z.record(zod_1.z.any()).optional(),
|
|
937
|
+
});
|
|
938
|
+
exports.AnalyticsDashboardStatsSchema = zod_1.z.object({
|
|
939
|
+
totalProjects: zod_1.z.number().int().min(0),
|
|
940
|
+
activeSpecs: zod_1.z.number().int().min(0),
|
|
941
|
+
completedTasks: zod_1.z.number().int().min(0),
|
|
942
|
+
complianceScore: zod_1.z.number().min(0).max(100),
|
|
943
|
+
teamMembers: zod_1.z.number().int().min(0),
|
|
944
|
+
recentActivity: zod_1.z.array(exports.DashboardActivityItemSchema),
|
|
945
|
+
});
|
|
946
|
+
// ============================================================================
|
|
947
|
+
// GitHub Integration Schemas
|
|
948
|
+
// ============================================================================
|
|
949
|
+
exports.GitHubRepoSchema = zod_1.z.object({
|
|
950
|
+
id: exports.UUIDSchema,
|
|
951
|
+
projectId: exports.UUIDSchema,
|
|
952
|
+
userId: exports.UUIDSchema,
|
|
953
|
+
provider: zod_1.z.enum(['github', 'gitlab', 'bitbucket']),
|
|
954
|
+
repoId: zod_1.z.string(),
|
|
955
|
+
repoName: zod_1.z.string().regex(/^[a-zA-Z0-9_.-]+\/[a-zA-Z0-9_.-]+$/),
|
|
956
|
+
repoUrl: zod_1.z.string().url(),
|
|
957
|
+
defaultBranch: zod_1.z.string(),
|
|
958
|
+
isPrivate: zod_1.z.boolean(),
|
|
959
|
+
config: zod_1.z.record(zod_1.z.unknown()),
|
|
960
|
+
syncStatus: zod_1.z.enum(['active', 'paused', 'error']),
|
|
961
|
+
lastSyncedAt: exports.DateTimeSchema.optional(),
|
|
962
|
+
createdAt: exports.DateTimeSchema,
|
|
963
|
+
updatedAt: exports.DateTimeSchema,
|
|
964
|
+
});
|
|
965
|
+
exports.GitHubCommitSchema = zod_1.z.object({
|
|
966
|
+
id: exports.UUIDSchema,
|
|
967
|
+
repositoryId: exports.UUIDSchema,
|
|
968
|
+
taskId: exports.UUIDSchema.optional(),
|
|
969
|
+
commitSha: zod_1.z.string().length(40),
|
|
970
|
+
commitMessage: zod_1.z.string().max(5000),
|
|
971
|
+
authorName: zod_1.z.string().max(200),
|
|
972
|
+
authorEmail: zod_1.z.string().email().max(320),
|
|
973
|
+
authorAvatarUrl: zod_1.z.string().url().optional(),
|
|
974
|
+
committedAt: exports.DateTimeSchema,
|
|
975
|
+
additions: exports.NonNegativeIntSchema,
|
|
976
|
+
deletions: exports.NonNegativeIntSchema,
|
|
977
|
+
filesChanged: exports.NonNegativeIntSchema,
|
|
978
|
+
branch: zod_1.z.string().optional(),
|
|
979
|
+
url: zod_1.z.string().url(),
|
|
980
|
+
createdAt: exports.DateTimeSchema,
|
|
981
|
+
});
|
|
982
|
+
exports.GitHubPullRequestSchema = zod_1.z.object({
|
|
983
|
+
id: exports.UUIDSchema,
|
|
984
|
+
repositoryId: exports.UUIDSchema,
|
|
985
|
+
taskId: exports.UUIDSchema.optional(),
|
|
986
|
+
prNumber: exports.PositiveIntSchema,
|
|
987
|
+
prId: zod_1.z.string(),
|
|
988
|
+
title: zod_1.z.string().max(500),
|
|
989
|
+
body: zod_1.z.string().max(10000).optional(),
|
|
990
|
+
state: zod_1.z.enum(['open', 'closed', 'merged']),
|
|
991
|
+
authorLogin: zod_1.z.string().max(100),
|
|
992
|
+
authorAvatarUrl: zod_1.z.string().url().optional(),
|
|
993
|
+
headBranch: zod_1.z.string().max(255),
|
|
994
|
+
baseBranch: zod_1.z.string().max(255),
|
|
995
|
+
headSha: zod_1.z.string().length(40).optional(),
|
|
996
|
+
createdAtGithub: exports.DateTimeSchema,
|
|
997
|
+
updatedAtGithub: exports.DateTimeSchema,
|
|
998
|
+
closedAtGithub: exports.DateTimeSchema.optional(),
|
|
999
|
+
mergedAtGithub: exports.DateTimeSchema.optional(),
|
|
1000
|
+
url: zod_1.z.string().url(),
|
|
1001
|
+
htmlUrl: zod_1.z.string().url(),
|
|
1002
|
+
createdAt: exports.DateTimeSchema,
|
|
1003
|
+
updatedAt: exports.DateTimeSchema,
|
|
1004
|
+
});
|
|
1005
|
+
exports.GitHubIssueSchema = zod_1.z.object({
|
|
1006
|
+
id: exports.UUIDSchema,
|
|
1007
|
+
repositoryId: exports.UUIDSchema,
|
|
1008
|
+
taskId: exports.UUIDSchema.optional(),
|
|
1009
|
+
issueNumber: exports.PositiveIntSchema,
|
|
1010
|
+
issueId: zod_1.z.string(),
|
|
1011
|
+
title: zod_1.z.string().max(500),
|
|
1012
|
+
body: zod_1.z.string().max(10000).optional(),
|
|
1013
|
+
state: zod_1.z.enum(['open', 'closed']),
|
|
1014
|
+
authorLogin: zod_1.z.string().max(100),
|
|
1015
|
+
authorAvatarUrl: zod_1.z.string().url().optional(),
|
|
1016
|
+
labels: zod_1.z.array(zod_1.z.string()),
|
|
1017
|
+
createdAtGithub: exports.DateTimeSchema,
|
|
1018
|
+
updatedAtGithub: exports.DateTimeSchema,
|
|
1019
|
+
closedAtGithub: exports.DateTimeSchema.optional(),
|
|
1020
|
+
url: zod_1.z.string().url(),
|
|
1021
|
+
htmlUrl: zod_1.z.string().url(),
|
|
1022
|
+
createdAt: exports.DateTimeSchema,
|
|
1023
|
+
updatedAt: exports.DateTimeSchema,
|
|
1024
|
+
});
|
|
1025
|
+
// ============================================================================
|
|
1026
|
+
// Deployment & CI/CD Schemas
|
|
1027
|
+
// ============================================================================
|
|
1028
|
+
exports.DeploymentSchema = zod_1.z.object({
|
|
1029
|
+
id: exports.UUIDSchema,
|
|
1030
|
+
projectId: exports.UUIDSchema,
|
|
1031
|
+
repositoryId: exports.UUIDSchema.optional(),
|
|
1032
|
+
provider: zod_1.z.enum(['vercel', 'netlify', 'aws', 'gcp', 'azure', 'heroku', 'github-pages']),
|
|
1033
|
+
deploymentId: zod_1.z.string(),
|
|
1034
|
+
deploymentUrl: zod_1.z.string().url(),
|
|
1035
|
+
status: zod_1.z.enum(['queued', 'building', 'ready', 'error', 'cancelled']),
|
|
1036
|
+
environment: zod_1.z.enum(['production', 'preview', 'development']),
|
|
1037
|
+
commitSha: zod_1.z.string().length(40).optional(),
|
|
1038
|
+
branch: zod_1.z.string().optional(),
|
|
1039
|
+
deployedAt: exports.DateTimeSchema,
|
|
1040
|
+
readyAt: exports.DateTimeSchema.optional(),
|
|
1041
|
+
buildDurationMs: exports.NonNegativeIntSchema.optional(),
|
|
1042
|
+
config: zod_1.z.record(zod_1.z.unknown()),
|
|
1043
|
+
createdAt: exports.DateTimeSchema,
|
|
1044
|
+
updatedAt: exports.DateTimeSchema,
|
|
1045
|
+
});
|
|
1046
|
+
exports.DeploymentLogSchema = zod_1.z.object({
|
|
1047
|
+
id: exports.UUIDSchema,
|
|
1048
|
+
deploymentId: exports.UUIDSchema,
|
|
1049
|
+
logLevel: zod_1.z.enum(['debug', 'info', 'warn', 'error']),
|
|
1050
|
+
message: zod_1.z.string().max(5000),
|
|
1051
|
+
source: zod_1.z.enum(['build', 'deploy', 'runtime', 'system']).optional(),
|
|
1052
|
+
timestamp: exports.DateTimeSchema,
|
|
1053
|
+
});
|
|
1054
|
+
// ============================================================================
|
|
1055
|
+
// App Factory Schemas
|
|
1056
|
+
// ============================================================================
|
|
1057
|
+
exports.AppTemplateTypeSchema = zod_1.z.enum([
|
|
1058
|
+
'saas-dashboard',
|
|
1059
|
+
'api-backend',
|
|
1060
|
+
'e-commerce',
|
|
1061
|
+
'ai-chatbot',
|
|
1062
|
+
'mobile-pwa',
|
|
1063
|
+
'monorepo-fullstack',
|
|
1064
|
+
'landing-page',
|
|
1065
|
+
'admin-panel'
|
|
1066
|
+
]);
|
|
1067
|
+
exports.TechStackItemSchema = zod_1.z.object({
|
|
1068
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1069
|
+
version: zod_1.z.string().min(1).max(50),
|
|
1070
|
+
category: zod_1.z.enum(['frontend', 'backend', 'database', 'infra', 'tool']),
|
|
1071
|
+
required: zod_1.z.boolean(),
|
|
1072
|
+
});
|
|
1073
|
+
exports.TemplateFeatureSchema = zod_1.z.object({
|
|
1074
|
+
id: zod_1.z.string(),
|
|
1075
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1076
|
+
description: zod_1.z.string().min(1).max(500),
|
|
1077
|
+
enabled: zod_1.z.boolean(),
|
|
1078
|
+
configOptions: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
1079
|
+
});
|
|
1080
|
+
exports.AppTemplateSchema = zod_1.z.object({
|
|
1081
|
+
id: exports.UUIDSchema,
|
|
1082
|
+
type: exports.AppTemplateTypeSchema,
|
|
1083
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1084
|
+
description: zod_1.z.string().min(1).max(1000),
|
|
1085
|
+
techStack: zod_1.z.array(exports.TechStackItemSchema),
|
|
1086
|
+
requiredEnvVars: zod_1.z.array(zod_1.z.string()),
|
|
1087
|
+
optionalFeatures: zod_1.z.array(exports.TemplateFeatureSchema),
|
|
1088
|
+
estimatedSetupTime: exports.PositiveIntSchema,
|
|
1089
|
+
complexity: zod_1.z.enum(['simple', 'moderate', 'complex', 'enterprise']),
|
|
1090
|
+
category: zod_1.z.enum(['web', 'mobile', 'backend', 'fullstack', 'ai']).optional(),
|
|
1091
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
1092
|
+
active: zod_1.z.boolean(),
|
|
1093
|
+
usageCount: exports.NonNegativeIntSchema,
|
|
1094
|
+
successRate: zod_1.z.number().min(0).max(100).optional(),
|
|
1095
|
+
createdAt: exports.DateTimeSchema,
|
|
1096
|
+
updatedAt: exports.DateTimeSchema,
|
|
1097
|
+
});
|
|
1098
|
+
exports.BoilerplateConfigSchema = zod_1.z.object({
|
|
1099
|
+
templateType: exports.AppTemplateTypeSchema,
|
|
1100
|
+
projectName: zod_1.z.string().min(1).max(100).regex(/^[a-z0-9-]+$/),
|
|
1101
|
+
projectDescription: zod_1.z.string().min(1).max(500),
|
|
1102
|
+
features: zod_1.z.array(zod_1.z.string()),
|
|
1103
|
+
githubOrg: zod_1.z.string().min(1).max(100).optional(),
|
|
1104
|
+
vercelTeam: zod_1.z.string().min(1).max(100).optional(),
|
|
1105
|
+
dopplerProject: zod_1.z.string().min(1).max(100).optional(),
|
|
1106
|
+
customizations: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
1107
|
+
});
|
|
1108
|
+
exports.BoilerplateFileSchema = zod_1.z.object({
|
|
1109
|
+
path: zod_1.z.string().min(1).max(500),
|
|
1110
|
+
content: zod_1.z.string(),
|
|
1111
|
+
language: zod_1.z.string().min(1).max(50),
|
|
1112
|
+
description: zod_1.z.string().min(1).max(500).optional(),
|
|
1113
|
+
executable: zod_1.z.boolean().optional(),
|
|
1114
|
+
});
|
|
1115
|
+
exports.WorkflowFileSchema = zod_1.z.object({
|
|
1116
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1117
|
+
path: zod_1.z.string(),
|
|
1118
|
+
content: zod_1.z.string(),
|
|
1119
|
+
triggers: zod_1.z.array(zod_1.z.string()),
|
|
1120
|
+
});
|
|
1121
|
+
exports.EnvVarSpecSchema = zod_1.z.object({
|
|
1122
|
+
key: zod_1.z.string().min(1).max(100).regex(/^[A-Z_]+$/),
|
|
1123
|
+
description: zod_1.z.string().min(1).max(200),
|
|
1124
|
+
required: zod_1.z.boolean(),
|
|
1125
|
+
defaultValue: zod_1.z.string().optional(),
|
|
1126
|
+
secret: zod_1.z.boolean(),
|
|
1127
|
+
});
|
|
1128
|
+
exports.ValidationResultSchema = zod_1.z.object({
|
|
1129
|
+
valid: zod_1.z.boolean(),
|
|
1130
|
+
errors: zod_1.z.array(zod_1.z.string()),
|
|
1131
|
+
warnings: zod_1.z.array(zod_1.z.string()),
|
|
1132
|
+
});
|
|
1133
|
+
exports.BoilerplateArtifactSchema = zod_1.z.object({
|
|
1134
|
+
id: exports.UUIDSchema,
|
|
1135
|
+
projectId: exports.UUIDSchema,
|
|
1136
|
+
templateId: exports.UUIDSchema,
|
|
1137
|
+
config: zod_1.z.record(zod_1.z.unknown()),
|
|
1138
|
+
files: zod_1.z.array(exports.BoilerplateFileSchema),
|
|
1139
|
+
migrations: zod_1.z.array(zod_1.z.string()),
|
|
1140
|
+
workflows: zod_1.z.array(exports.WorkflowFileSchema),
|
|
1141
|
+
envVars: zod_1.z.array(exports.EnvVarSpecSchema),
|
|
1142
|
+
generationMethod: zod_1.z.enum(['llm', 'template', 'hybrid']),
|
|
1143
|
+
ragSources: zod_1.z.array(zod_1.z.string()),
|
|
1144
|
+
validationResults: exports.ValidationResultSchema.optional(),
|
|
1145
|
+
status: zod_1.z.enum(['generating', 'validating', 'ready', 'pushed', 'failed']),
|
|
1146
|
+
errorMessage: zod_1.z.string().max(2000).optional(),
|
|
1147
|
+
createdAt: exports.DateTimeSchema,
|
|
1148
|
+
updatedAt: exports.DateTimeSchema,
|
|
1149
|
+
});
|
|
1150
|
+
exports.LifecycleStageSchema = zod_1.z.enum([
|
|
1151
|
+
'design',
|
|
1152
|
+
'template',
|
|
1153
|
+
'generate',
|
|
1154
|
+
'validate',
|
|
1155
|
+
'repo',
|
|
1156
|
+
'push',
|
|
1157
|
+
'secrets',
|
|
1158
|
+
'deploy',
|
|
1159
|
+
'test',
|
|
1160
|
+
'complete'
|
|
1161
|
+
]);
|
|
1162
|
+
exports.LifecycleArtifactSchema = zod_1.z.object({
|
|
1163
|
+
stage: exports.LifecycleStageSchema,
|
|
1164
|
+
type: zod_1.z.enum(['file', 'url', 'log', 'evidence']),
|
|
1165
|
+
name: zod_1.z.string().min(1).max(200),
|
|
1166
|
+
content: zod_1.z.string().optional(),
|
|
1167
|
+
url: zod_1.z.string().url().optional(),
|
|
1168
|
+
timestamp: exports.DateTimeSchema,
|
|
1169
|
+
});
|
|
1170
|
+
exports.FactoryLifecycleSchema = zod_1.z.object({
|
|
1171
|
+
id: exports.UUIDSchema,
|
|
1172
|
+
projectId: exports.UUIDSchema,
|
|
1173
|
+
boilerplateId: exports.UUIDSchema.optional(),
|
|
1174
|
+
currentStage: exports.LifecycleStageSchema,
|
|
1175
|
+
completedStages: zod_1.z.array(exports.LifecycleStageSchema),
|
|
1176
|
+
failedStages: zod_1.z.array(exports.LifecycleStageSchema),
|
|
1177
|
+
artifacts: zod_1.z.array(exports.LifecycleArtifactSchema),
|
|
1178
|
+
githubRepoUrl: zod_1.z.string().url().optional(),
|
|
1179
|
+
vercelDeploymentUrl: zod_1.z.string().url().optional(),
|
|
1180
|
+
dopplerProjectName: zod_1.z.string().optional(),
|
|
1181
|
+
startedAt: exports.DateTimeSchema,
|
|
1182
|
+
completedAt: exports.DateTimeSchema.optional(),
|
|
1183
|
+
estimatedCompletion: exports.DateTimeSchema.optional(),
|
|
1184
|
+
metadata: zod_1.z.record(zod_1.z.unknown()),
|
|
1185
|
+
});
|
|
1186
|
+
// ============================================================================
|
|
1187
|
+
// Spec Kit Workflow Schemas
|
|
1188
|
+
// ============================================================================
|
|
1189
|
+
exports.APIRouteSchema = zod_1.z.object({
|
|
1190
|
+
id: exports.UUIDSchema,
|
|
1191
|
+
projectId: exports.UUIDSchema,
|
|
1192
|
+
taskId: exports.UUIDSchema.optional(),
|
|
1193
|
+
specId: exports.UUIDSchema.optional(),
|
|
1194
|
+
method: zod_1.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']),
|
|
1195
|
+
path: zod_1.z.string().regex(/^\/api\//),
|
|
1196
|
+
handlerFilePath: zod_1.z.string().max(500).optional(),
|
|
1197
|
+
inputSchemaName: zod_1.z.string().max(100).optional(),
|
|
1198
|
+
outputSchemaName: zod_1.z.string().max(100).optional(),
|
|
1199
|
+
contractsSchema: zod_1.z.string().optional(),
|
|
1200
|
+
handlerCode: zod_1.z.string().optional(),
|
|
1201
|
+
deployed: zod_1.z.boolean(),
|
|
1202
|
+
deploymentId: exports.UUIDSchema.optional(),
|
|
1203
|
+
githubFilePath: zod_1.z.string().max(500).optional(),
|
|
1204
|
+
createdAt: exports.DateTimeSchema,
|
|
1205
|
+
updatedAt: exports.DateTimeSchema,
|
|
1206
|
+
});
|
|
1207
|
+
exports.CodeSnippetSchema = zod_1.z.object({
|
|
1208
|
+
id: exports.UUIDSchema,
|
|
1209
|
+
projectId: exports.UUIDSchema,
|
|
1210
|
+
taskId: exports.UUIDSchema.optional(),
|
|
1211
|
+
language: zod_1.z.enum(['typescript', 'javascript', 'tsx', 'jsx', 'python', 'sql', 'yaml', 'json', 'markdown', 'shell']),
|
|
1212
|
+
filePath: zod_1.z.string().min(1).max(500),
|
|
1213
|
+
content: zod_1.z.string().min(1).max(100000),
|
|
1214
|
+
description: zod_1.z.string().max(1000).optional(),
|
|
1215
|
+
generatedBy: zod_1.z.enum(['ai', 'user', 'template', 'llm']),
|
|
1216
|
+
ragContextUsed: zod_1.z.boolean(),
|
|
1217
|
+
validationPassed: zod_1.z.boolean().optional(),
|
|
1218
|
+
validationErrors: zod_1.z.array(zod_1.z.string()),
|
|
1219
|
+
constitutionalCompliant: zod_1.z.boolean().optional(),
|
|
1220
|
+
guardianScore: zod_1.z.number().int().min(0).max(100).optional(),
|
|
1221
|
+
createdAt: exports.DateTimeSchema,
|
|
1222
|
+
});
|
|
1223
|
+
exports.ArchitectureNodeSchema = zod_1.z.object({
|
|
1224
|
+
id: zod_1.z.string(),
|
|
1225
|
+
label: zod_1.z.string(),
|
|
1226
|
+
type: zod_1.z.enum(['api', 'database', 'service', 'integration', 'frontend', 'backend']),
|
|
1227
|
+
description: zod_1.z.string().optional(),
|
|
1228
|
+
position: zod_1.z.object({ x: zod_1.z.number(), y: zod_1.z.number() }).optional(),
|
|
1229
|
+
});
|
|
1230
|
+
exports.ArchitectureEdgeSchema = zod_1.z.object({
|
|
1231
|
+
id: zod_1.z.string(),
|
|
1232
|
+
source: zod_1.z.string(),
|
|
1233
|
+
target: zod_1.z.string(),
|
|
1234
|
+
label: zod_1.z.string().optional(),
|
|
1235
|
+
type: zod_1.z.enum(['dependency', 'dataflow', 'api_call', 'subscription']),
|
|
1236
|
+
});
|
|
1237
|
+
exports.ArchitectureGraphSchema = zod_1.z.object({
|
|
1238
|
+
id: exports.UUIDSchema,
|
|
1239
|
+
projectId: exports.UUIDSchema,
|
|
1240
|
+
specIds: zod_1.z.array(exports.UUIDSchema),
|
|
1241
|
+
graphData: zod_1.z.object({
|
|
1242
|
+
nodes: zod_1.z.array(exports.ArchitectureNodeSchema),
|
|
1243
|
+
edges: zod_1.z.array(exports.ArchitectureEdgeSchema),
|
|
1244
|
+
}),
|
|
1245
|
+
techStack: zod_1.z.array(zod_1.z.string()),
|
|
1246
|
+
estimatedWeeks: exports.PositiveIntSchema.optional(),
|
|
1247
|
+
complexityScore: zod_1.z.number().int().min(0).max(100).optional(),
|
|
1248
|
+
createdAt: exports.DateTimeSchema,
|
|
1249
|
+
updatedAt: exports.DateTimeSchema,
|
|
1250
|
+
});
|
|
1251
|
+
exports.ProjectRetrospectiveSchema = zod_1.z.object({
|
|
1252
|
+
id: exports.UUIDSchema,
|
|
1253
|
+
projectId: exports.UUIDSchema,
|
|
1254
|
+
summary: zod_1.z.string().min(10).max(5000),
|
|
1255
|
+
achievements: zod_1.z.array(zod_1.z.string()),
|
|
1256
|
+
challenges: zod_1.z.array(zod_1.z.string()),
|
|
1257
|
+
lessons: zod_1.z.array(zod_1.z.string()),
|
|
1258
|
+
metrics: zod_1.z.object({
|
|
1259
|
+
taskVelocity: zod_1.z.number().optional(),
|
|
1260
|
+
specApprovalRate: zod_1.z.number().optional(),
|
|
1261
|
+
complianceScore: zod_1.z.number().optional(),
|
|
1262
|
+
deploymentSuccessRate: zod_1.z.number().optional(),
|
|
1263
|
+
avgBuildTime: zod_1.z.number().optional(),
|
|
1264
|
+
totalCommits: zod_1.z.number().optional(),
|
|
1265
|
+
totalPRs: zod_1.z.number().optional(),
|
|
1266
|
+
totalDeployments: zod_1.z.number().optional(),
|
|
1267
|
+
}),
|
|
1268
|
+
createdBy: exports.UUIDSchema.optional(),
|
|
1269
|
+
createdAt: exports.DateTimeSchema,
|
|
1270
|
+
});
|
|
1271
|
+
exports.TemplateFieldSchema = zod_1.z.object({
|
|
1272
|
+
type: zod_1.z.enum(['text', 'textarea', 'select', 'code']),
|
|
1273
|
+
required: zod_1.z.boolean(),
|
|
1274
|
+
placeholder: zod_1.z.string().optional(),
|
|
1275
|
+
options: zod_1.z.array(zod_1.z.string()).optional(),
|
|
1276
|
+
language: zod_1.z.string().optional(),
|
|
1277
|
+
});
|
|
1278
|
+
exports.SpecTemplateSchema = zod_1.z.object({
|
|
1279
|
+
id: exports.UUIDSchema,
|
|
1280
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1281
|
+
category: zod_1.z.enum(['api', 'ui', 'database', 'compliance', 'feature']),
|
|
1282
|
+
templateContent: zod_1.z.string().min(10).max(10000),
|
|
1283
|
+
fields: zod_1.z.record(exports.TemplateFieldSchema),
|
|
1284
|
+
usageCount: exports.NonNegativeIntSchema,
|
|
1285
|
+
isPublic: zod_1.z.boolean(),
|
|
1286
|
+
createdAt: exports.DateTimeSchema,
|
|
1287
|
+
});
|
|
1288
|
+
// ============================================================================
|
|
1289
|
+
// Component & Page Builder Schemas
|
|
1290
|
+
// ============================================================================
|
|
1291
|
+
exports.ComponentCategorySchema = zod_1.z.enum([
|
|
1292
|
+
'data-display',
|
|
1293
|
+
'navigation',
|
|
1294
|
+
'feedback',
|
|
1295
|
+
'data-entry',
|
|
1296
|
+
'layout',
|
|
1297
|
+
'custom'
|
|
1298
|
+
]);
|
|
1299
|
+
exports.ComponentPropSchema = zod_1.z.object({
|
|
1300
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1301
|
+
type: zod_1.z.string().min(1).max(50),
|
|
1302
|
+
required: zod_1.z.boolean(),
|
|
1303
|
+
default: zod_1.z.unknown().optional(),
|
|
1304
|
+
description: zod_1.z.string().max(500).optional(),
|
|
1305
|
+
});
|
|
1306
|
+
exports.UIComponentSchema = zod_1.z.object({
|
|
1307
|
+
id: exports.UUIDSchema,
|
|
1308
|
+
projectId: exports.UUIDSchema.optional(),
|
|
1309
|
+
name: zod_1.z.string().min(1).max(100).regex(/^[A-Z][a-zA-Z0-9]*$/),
|
|
1310
|
+
displayName: zod_1.z.string().min(1).max(100),
|
|
1311
|
+
category: exports.ComponentCategorySchema,
|
|
1312
|
+
props: zod_1.z.array(exports.ComponentPropSchema),
|
|
1313
|
+
filePath: zod_1.z.string().min(1).max(500),
|
|
1314
|
+
sourceCode: zod_1.z.string().min(10).max(50000),
|
|
1315
|
+
dependencies: zod_1.z.array(zod_1.z.string()),
|
|
1316
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
1317
|
+
description: zod_1.z.string().max(1000).optional(),
|
|
1318
|
+
isPublic: zod_1.z.boolean(),
|
|
1319
|
+
downloads: exports.NonNegativeIntSchema,
|
|
1320
|
+
rating: zod_1.z.number().min(0).max(5).optional(),
|
|
1321
|
+
version: zod_1.z.string().regex(/^\d+\.\d+\.\d+$/),
|
|
1322
|
+
createdBy: exports.UUIDSchema.optional(),
|
|
1323
|
+
createdAt: exports.DateTimeSchema,
|
|
1324
|
+
updatedAt: exports.DateTimeSchema,
|
|
1325
|
+
});
|
|
1326
|
+
exports.CreateComponentSchema = zod_1.z.object({
|
|
1327
|
+
projectId: exports.UUIDSchema,
|
|
1328
|
+
name: zod_1.z.string().min(1).max(100).regex(/^[A-Z][a-zA-Z0-9]*$/),
|
|
1329
|
+
displayName: zod_1.z.string().min(1).max(100),
|
|
1330
|
+
category: exports.ComponentCategorySchema,
|
|
1331
|
+
props: zod_1.z.array(exports.ComponentPropSchema).default([]),
|
|
1332
|
+
dependencies: zod_1.z.array(zod_1.z.string()).default([]),
|
|
1333
|
+
tags: zod_1.z.array(zod_1.z.string()).default([]),
|
|
1334
|
+
prompt: zod_1.z.string().min(10).max(1000).optional(),
|
|
1335
|
+
});
|
|
1336
|
+
exports.PageLayoutSchema = zod_1.z.object({
|
|
1337
|
+
type: zod_1.z.enum(['grid', 'flex', 'custom']),
|
|
1338
|
+
columns: zod_1.z.number().int().min(1).max(24).optional(),
|
|
1339
|
+
rows: zod_1.z.array(zod_1.z.any()),
|
|
1340
|
+
});
|
|
1341
|
+
exports.UIPageSchema = zod_1.z.object({
|
|
1342
|
+
id: exports.UUIDSchema,
|
|
1343
|
+
projectId: exports.UUIDSchema,
|
|
1344
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1345
|
+
slug: zod_1.z.string().min(1).max(200).regex(/^\/[a-z0-9-\/]*$/),
|
|
1346
|
+
layout: exports.PageLayoutSchema,
|
|
1347
|
+
components: zod_1.z.array(zod_1.z.any()),
|
|
1348
|
+
menuConfig: zod_1.z.any().optional(),
|
|
1349
|
+
meta: zod_1.z.any().optional(),
|
|
1350
|
+
isProtected: zod_1.z.boolean(),
|
|
1351
|
+
requiredRoles: zod_1.z.array(zod_1.z.string()),
|
|
1352
|
+
filePath: zod_1.z.string().min(1).max(500),
|
|
1353
|
+
createdBy: exports.UUIDSchema.optional(),
|
|
1354
|
+
createdAt: exports.DateTimeSchema,
|
|
1355
|
+
updatedAt: exports.DateTimeSchema,
|
|
1356
|
+
});
|
|
1357
|
+
exports.CreatePageSchema = zod_1.z.object({
|
|
1358
|
+
projectId: exports.UUIDSchema,
|
|
1359
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1360
|
+
slug: zod_1.z.string().min(1).max(200).regex(/^\/[a-z0-9-\/]*$/),
|
|
1361
|
+
layout: zod_1.z.object({
|
|
1362
|
+
type: zod_1.z.enum(['grid', 'flex', 'custom']),
|
|
1363
|
+
columns: zod_1.z.number().int().min(1).max(24).default(12),
|
|
1364
|
+
}),
|
|
1365
|
+
menuConfig: zod_1.z.object({
|
|
1366
|
+
position: zod_1.z.number().int().min(0),
|
|
1367
|
+
icon: zod_1.z.string(),
|
|
1368
|
+
label: zod_1.z.string(),
|
|
1369
|
+
}).optional(),
|
|
1370
|
+
isProtected: zod_1.z.boolean().default(true),
|
|
1371
|
+
prompt: zod_1.z.string().min(10).max(1000).optional(),
|
|
1372
|
+
});
|
|
1373
|
+
// ============================================================================
|
|
1374
|
+
// AI TEAMS & AGENT ORCHESTRATION SCHEMAS (Constitutional v1.8)
|
|
1375
|
+
// ============================================================================
|
|
1376
|
+
// Workflow Phase & Step Schemas
|
|
1377
|
+
exports.WorkflowPhaseSchema = zod_1.z.enum(['governance', 'design', 'implementation', 'delivery']);
|
|
1378
|
+
exports.WorkflowStepSchema = zod_1.z.enum([
|
|
1379
|
+
'constitution', 'workspace', 'integrations', // Governance
|
|
1380
|
+
'specify', 'plan', 'schema', 'api', 'ui', // Design
|
|
1381
|
+
'tasks', 'implement', // Implementation
|
|
1382
|
+
'repository', 'ci_cd', 'deployments', 'analytics', 'review', 'knowledge' // Delivery
|
|
1383
|
+
]);
|
|
1384
|
+
exports.TeamSpecializationSchema = zod_1.z.enum(['frontend', 'backend', 'infra', 'qa', 'pm', 'design', 'ml']);
|
|
1385
|
+
exports.TeamRoleSchema = zod_1.z.enum(['lead', 'developer', 'reviewer', 'agent']);
|
|
1386
|
+
exports.MemberTypeSchema = zod_1.z.enum(['human', 'ai']);
|
|
1387
|
+
exports.AIModelProviderSchema = zod_1.z.enum(['openai', 'anthropic', 'google', 'meta', 'custom']);
|
|
1388
|
+
exports.AIModelRoleSchema = zod_1.z.enum(['planner', 'reviewer', 'generator', 'tester', 'architect', 'general']);
|
|
1389
|
+
// Team Schema
|
|
1390
|
+
exports.TeamSchema = zod_1.z.object({
|
|
1391
|
+
id: exports.UUIDSchema,
|
|
1392
|
+
projectId: exports.UUIDSchema,
|
|
1393
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1394
|
+
specialization: exports.TeamSpecializationSchema,
|
|
1395
|
+
description: zod_1.z.string().max(500).optional(),
|
|
1396
|
+
assignedPhases: zod_1.z.array(exports.WorkflowPhaseSchema).default([]),
|
|
1397
|
+
active: zod_1.z.boolean().default(true),
|
|
1398
|
+
createdAt: exports.DateTimeSchema,
|
|
1399
|
+
updatedAt: exports.DateTimeSchema,
|
|
1400
|
+
});
|
|
1401
|
+
exports.CreateTeamSchema = zod_1.z.object({
|
|
1402
|
+
projectId: exports.UUIDSchema,
|
|
1403
|
+
name: zod_1.z.string().min(1).max(100),
|
|
1404
|
+
specialization: exports.TeamSpecializationSchema,
|
|
1405
|
+
description: zod_1.z.string().max(500).optional(),
|
|
1406
|
+
assignedPhases: zod_1.z.array(exports.WorkflowPhaseSchema).default([]),
|
|
1407
|
+
});
|
|
1408
|
+
exports.UpdateTeamSchema = zod_1.z.object({
|
|
1409
|
+
name: zod_1.z.string().min(1).max(100).optional(),
|
|
1410
|
+
specialization: exports.TeamSpecializationSchema.optional(),
|
|
1411
|
+
description: zod_1.z.string().max(500).optional(),
|
|
1412
|
+
assignedPhases: zod_1.z.array(exports.WorkflowPhaseSchema).optional(),
|
|
1413
|
+
active: zod_1.z.boolean().optional(),
|
|
1414
|
+
});
|
|
1415
|
+
// Team Member Schema
|
|
1416
|
+
exports.AITeamMemberSchema = zod_1.z.object({
|
|
1417
|
+
id: exports.UUIDSchema,
|
|
1418
|
+
teamId: exports.UUIDSchema,
|
|
1419
|
+
userId: exports.UUIDSchema.optional(), // For human members
|
|
1420
|
+
memberType: exports.MemberTypeSchema,
|
|
1421
|
+
role: exports.TeamRoleSchema,
|
|
1422
|
+
agentName: zod_1.z.string().max(100).optional(), // For AI members
|
|
1423
|
+
agentModel: zod_1.z.string().max(100).optional(),
|
|
1424
|
+
agentSpecialization: zod_1.z.string().max(200).optional(),
|
|
1425
|
+
active: zod_1.z.boolean().default(true),
|
|
1426
|
+
addedBy: exports.UUIDSchema,
|
|
1427
|
+
createdAt: exports.DateTimeSchema,
|
|
1428
|
+
updatedAt: exports.DateTimeSchema,
|
|
1429
|
+
});
|
|
1430
|
+
exports.CreateAITeamMemberSchema = zod_1.z.object({
|
|
1431
|
+
teamId: exports.UUIDSchema,
|
|
1432
|
+
memberType: exports.MemberTypeSchema,
|
|
1433
|
+
role: exports.TeamRoleSchema,
|
|
1434
|
+
userId: exports.UUIDSchema.optional(),
|
|
1435
|
+
agentName: zod_1.z.string().min(1).max(100).optional(),
|
|
1436
|
+
agentModel: zod_1.z.string().min(1).max(100).optional(),
|
|
1437
|
+
agentSpecialization: zod_1.z.string().max(200).optional(),
|
|
1438
|
+
}).refine((data) => {
|
|
1439
|
+
if (data.memberType === 'human')
|
|
1440
|
+
return data.userId !== undefined;
|
|
1441
|
+
if (data.memberType === 'ai')
|
|
1442
|
+
return data.agentName !== undefined && data.agentModel !== undefined;
|
|
1443
|
+
return false;
|
|
1444
|
+
}, { message: 'Human members require userId, AI members require agentName and agentModel' });
|
|
1445
|
+
// Team Integration Schema
|
|
1446
|
+
exports.TeamIntegrationSchema = zod_1.z.object({
|
|
1447
|
+
id: exports.UUIDSchema,
|
|
1448
|
+
teamId: exports.UUIDSchema,
|
|
1449
|
+
provider: zod_1.z.enum(['github', 'vercel', 'supabase', 'doppler', 'mcp', 'playwright']),
|
|
1450
|
+
config: zod_1.z.record(zod_1.z.unknown()).default({}),
|
|
1451
|
+
status: zod_1.z.enum(['active', 'disabled', 'error']).default('active'),
|
|
1452
|
+
lastSyncedAt: exports.DateTimeSchema.optional(),
|
|
1453
|
+
errorMessage: zod_1.z.string().max(500).optional(),
|
|
1454
|
+
createdAt: exports.DateTimeSchema,
|
|
1455
|
+
updatedAt: exports.DateTimeSchema,
|
|
1456
|
+
});
|
|
1457
|
+
exports.CreateTeamIntegrationSchema = zod_1.z.object({
|
|
1458
|
+
teamId: exports.UUIDSchema,
|
|
1459
|
+
provider: zod_1.z.enum(['github', 'vercel', 'supabase', 'doppler', 'mcp', 'playwright']),
|
|
1460
|
+
config: zod_1.z.record(zod_1.z.unknown()).default({}),
|
|
1461
|
+
});
|
|
1462
|
+
// Team Phase Assignment Schema
|
|
1463
|
+
exports.TeamPhaseAssignmentSchema = zod_1.z.object({
|
|
1464
|
+
id: exports.UUIDSchema,
|
|
1465
|
+
projectId: exports.UUIDSchema,
|
|
1466
|
+
teamId: exports.UUIDSchema,
|
|
1467
|
+
phase: exports.WorkflowPhaseSchema,
|
|
1468
|
+
steps: zod_1.z.array(exports.WorkflowStepSchema).default([]),
|
|
1469
|
+
status: zod_1.z.enum(['active', 'completed', 'blocked']).default('active'),
|
|
1470
|
+
progressPercentage: zod_1.z.number().int().min(0).max(100).default(0),
|
|
1471
|
+
assignedBy: exports.UUIDSchema,
|
|
1472
|
+
createdAt: exports.DateTimeSchema,
|
|
1473
|
+
updatedAt: exports.DateTimeSchema,
|
|
1474
|
+
});
|
|
1475
|
+
exports.CreateTeamPhaseAssignmentSchema = zod_1.z.object({
|
|
1476
|
+
projectId: exports.UUIDSchema,
|
|
1477
|
+
teamId: exports.UUIDSchema,
|
|
1478
|
+
phase: exports.WorkflowPhaseSchema,
|
|
1479
|
+
steps: zod_1.z.array(exports.WorkflowStepSchema).default([]),
|
|
1480
|
+
});
|
|
1481
|
+
exports.UpdateTeamPhaseAssignmentSchema = zod_1.z.object({
|
|
1482
|
+
steps: zod_1.z.array(exports.WorkflowStepSchema).optional(),
|
|
1483
|
+
status: zod_1.z.enum(['active', 'completed', 'blocked']).optional(),
|
|
1484
|
+
progressPercentage: zod_1.z.number().int().min(0).max(100).optional(),
|
|
1485
|
+
});
|
|
1486
|
+
// Linked Model Schema
|
|
1487
|
+
exports.LinkedModelSchema = zod_1.z.object({
|
|
1488
|
+
id: exports.UUIDSchema,
|
|
1489
|
+
teamId: exports.UUIDSchema,
|
|
1490
|
+
modelName: zod_1.z.string().min(1).max(100),
|
|
1491
|
+
provider: exports.AIModelProviderSchema,
|
|
1492
|
+
role: exports.AIModelRoleSchema,
|
|
1493
|
+
specialization: zod_1.z.string().max(200).optional(),
|
|
1494
|
+
temperature: zod_1.z.number().min(0).max(2).default(0.7),
|
|
1495
|
+
maxTokens: zod_1.z.number().int().min(1).default(4096),
|
|
1496
|
+
alwaysInjectFiles: zod_1.z.array(zod_1.z.string()).default([]),
|
|
1497
|
+
active: zod_1.z.boolean().default(true),
|
|
1498
|
+
createdAt: exports.DateTimeSchema,
|
|
1499
|
+
updatedAt: exports.DateTimeSchema,
|
|
1500
|
+
});
|
|
1501
|
+
exports.CreateLinkedModelSchema = zod_1.z.object({
|
|
1502
|
+
teamId: exports.UUIDSchema,
|
|
1503
|
+
modelName: zod_1.z.string().min(1).max(100),
|
|
1504
|
+
provider: exports.AIModelProviderSchema,
|
|
1505
|
+
role: exports.AIModelRoleSchema,
|
|
1506
|
+
specialization: zod_1.z.string().max(200).optional(),
|
|
1507
|
+
temperature: zod_1.z.number().min(0).max(2).default(0.7),
|
|
1508
|
+
maxTokens: zod_1.z.number().int().min(1).default(4096),
|
|
1509
|
+
alwaysInjectFiles: zod_1.z.array(zod_1.z.string()).default([]),
|
|
1510
|
+
});
|
|
1511
|
+
exports.UpdateLinkedModelSchema = zod_1.z.object({
|
|
1512
|
+
modelName: zod_1.z.string().min(1).max(100).optional(),
|
|
1513
|
+
role: exports.AIModelRoleSchema.optional(),
|
|
1514
|
+
specialization: zod_1.z.string().max(200).optional(),
|
|
1515
|
+
temperature: zod_1.z.number().min(0).max(2).optional(),
|
|
1516
|
+
maxTokens: zod_1.z.number().int().min(1).optional(),
|
|
1517
|
+
alwaysInjectFiles: zod_1.z.array(zod_1.z.string()).optional(),
|
|
1518
|
+
active: zod_1.z.boolean().optional(),
|
|
1519
|
+
});
|
|
1520
|
+
// Agent Action Schema
|
|
1521
|
+
exports.AgentActionTypeSchema = zod_1.z.enum([
|
|
1522
|
+
'code_suggestion', 'pr_opened', 'test_generated', 'spec_reviewed',
|
|
1523
|
+
'deployment_monitored', 'guardian_audit', 'architecture_generated'
|
|
1524
|
+
]);
|
|
1525
|
+
exports.AgentArtifactSchema = zod_1.z.object({
|
|
1526
|
+
type: zod_1.z.enum(['file', 'url', 'content']),
|
|
1527
|
+
name: zod_1.z.string().min(1).max(200),
|
|
1528
|
+
url: zod_1.z.string().url().optional(),
|
|
1529
|
+
content: zod_1.z.string().optional(),
|
|
1530
|
+
});
|
|
1531
|
+
exports.AgentActionSchema = zod_1.z.object({
|
|
1532
|
+
id: exports.UUIDSchema,
|
|
1533
|
+
projectId: exports.UUIDSchema,
|
|
1534
|
+
teamId: exports.UUIDSchema.optional(),
|
|
1535
|
+
agentName: zod_1.z.string().min(1).max(100),
|
|
1536
|
+
actionType: exports.AgentActionTypeSchema,
|
|
1537
|
+
description: zod_1.z.string().min(1).max(1000),
|
|
1538
|
+
artifacts: zod_1.z.array(exports.AgentArtifactSchema).default([]),
|
|
1539
|
+
approvalStatus: zod_1.z.enum(['pending', 'approved', 'rejected', 'superseded']).default('pending'),
|
|
1540
|
+
approvedBy: exports.UUIDSchema.optional(),
|
|
1541
|
+
approvedAt: exports.DateTimeSchema.optional(),
|
|
1542
|
+
constitutionalCompliant: zod_1.z.boolean().optional(),
|
|
1543
|
+
guardianScore: zod_1.z.number().int().min(0).max(100).optional(),
|
|
1544
|
+
violations: zod_1.z.array(zod_1.z.string()).default([]),
|
|
1545
|
+
taskId: exports.UUIDSchema.optional(),
|
|
1546
|
+
specId: exports.UUIDSchema.optional(),
|
|
1547
|
+
prUrl: zod_1.z.string().url().optional(),
|
|
1548
|
+
deploymentId: exports.UUIDSchema.optional(),
|
|
1549
|
+
createdAt: exports.DateTimeSchema,
|
|
1550
|
+
updatedAt: exports.DateTimeSchema,
|
|
1551
|
+
});
|
|
1552
|
+
exports.CreateAgentActionSchema = zod_1.z.object({
|
|
1553
|
+
projectId: exports.UUIDSchema,
|
|
1554
|
+
teamId: exports.UUIDSchema.optional(),
|
|
1555
|
+
agentName: zod_1.z.string().min(1).max(100),
|
|
1556
|
+
actionType: exports.AgentActionTypeSchema,
|
|
1557
|
+
description: zod_1.z.string().min(1).max(1000),
|
|
1558
|
+
artifacts: zod_1.z.array(exports.AgentArtifactSchema).default([]),
|
|
1559
|
+
taskId: exports.UUIDSchema.optional(),
|
|
1560
|
+
specId: exports.UUIDSchema.optional(),
|
|
1561
|
+
});
|
|
1562
|
+
exports.ApproveAgentActionSchema = zod_1.z.object({
|
|
1563
|
+
actionId: exports.UUIDSchema,
|
|
1564
|
+
status: zod_1.z.enum(['approved', 'rejected']),
|
|
1565
|
+
feedback: zod_1.z.string().max(500).optional(),
|
|
1566
|
+
});
|
|
1567
|
+
// Agent Feedback Schema
|
|
1568
|
+
exports.AgentFeedbackSchema = zod_1.z.object({
|
|
1569
|
+
id: exports.UUIDSchema,
|
|
1570
|
+
agentId: exports.UUIDSchema,
|
|
1571
|
+
projectId: exports.UUIDSchema,
|
|
1572
|
+
phase: exports.WorkflowPhaseSchema.optional(),
|
|
1573
|
+
feedback: zod_1.z.string().min(1).max(2000),
|
|
1574
|
+
rating: zod_1.z.number().int().min(1).max(5).optional(),
|
|
1575
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).default({}),
|
|
1576
|
+
createdAt: exports.DateTimeSchema,
|
|
1577
|
+
});
|
|
1578
|
+
exports.CreateAgentFeedbackSchema = zod_1.z.object({
|
|
1579
|
+
agentId: exports.UUIDSchema,
|
|
1580
|
+
projectId: exports.UUIDSchema,
|
|
1581
|
+
phase: exports.WorkflowPhaseSchema.optional(),
|
|
1582
|
+
feedback: zod_1.z.string().min(1).max(2000),
|
|
1583
|
+
rating: zod_1.z.number().int().min(1).max(5).optional(),
|
|
1584
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).default({}),
|
|
1585
|
+
});
|
|
1586
|
+
// AI CI generate (Issue #160)
|
|
1587
|
+
__exportStar(require("./ai-ci-generate"), exports);
|
|
1588
|
+
// Durable orchestration (Issue #154)
|
|
1589
|
+
__exportStar(require("./orchestration-execution"), exports);
|
|
1590
|
+
__exportStar(require("./orchestration/durable-stage-progress.schema"), exports);
|
|
1591
|
+
// Workflow progression (nav / sidebar)
|
|
1592
|
+
__exportStar(require("./workflow-progression"), exports);
|
|
1593
|
+
// Guardian score scale (0–100)
|
|
1594
|
+
__exportStar(require("./guardian/guardian-score.schema"), exports);
|
|
1595
|
+
// Project human team (project_team)
|
|
1596
|
+
__exportStar(require("./project-team"), exports);
|
|
1597
|
+
// Workflow run events (orchestration_events meta_json SSOT)
|
|
1598
|
+
__exportStar(require("./workflow/workflow-run-event.schema"), exports);
|
|
1599
|
+
// Coding Quality Spine — control artifact schemas (Wave 1+)
|
|
1600
|
+
__exportStar(require("./workflow/step-evidence-resolution.schema"), exports);
|
|
1601
|
+
__exportStar(require("./workflow/ship-closure.schema"), exports);
|
|
1602
|
+
__exportStar(require("./workflow/step-gate.schema"), exports);
|
|
1603
|
+
__exportStar(require("./workflow/specify-mutation-health.schema"), exports);
|
|
1604
|
+
__exportStar(require("./workflow/ingest-dashboard.schema"), exports);
|
|
1605
|
+
__exportStar(require("./workflow/schema-page-read-model.schema"), exports);
|
|
1606
|
+
__exportStar(require("./workflow/existing-codebase-context.schema"), exports);
|
|
1607
|
+
__exportStar(require("./workflow/repo-intel-snapshot.schema"), exports);
|
|
1608
|
+
__exportStar(require("./workflow/doc-draft-artifact.schema"), exports);
|
|
1609
|
+
__exportStar(require("./repo/repo-scan-run.schema"), exports);
|
|
1610
|
+
__exportStar(require("./workflow/repo-policy-snapshot.schema"), exports);
|
|
1611
|
+
__exportStar(require("./workflow/ingest-inventory.schema"), exports);
|
|
1612
|
+
__exportStar(require("./workflow/findings-register.schema"), exports);
|
|
1613
|
+
__exportStar(require("./workflow/code-reality-artifacts.schema"), exports);
|
|
1614
|
+
__exportStar(require("./workflow/code-reality-read-model.schema"), exports);
|
|
1615
|
+
__exportStar(require("./workflow/tasks-truth.schema"), exports);
|
|
1616
|
+
__exportStar(require("./workflow/tasks-github-sync.schema"), exports);
|
|
1617
|
+
__exportStar(require("./workflow/tasks-repair-stale-implementing.schema"), exports);
|
|
1618
|
+
__exportStar(require("./workflow/tasks-unblock-implement-handoff.schema"), exports);
|
|
1619
|
+
__exportStar(require("./workflow/implement-first-batch.schema"), exports);
|
|
1620
|
+
__exportStar(require("./workflow/implement-gate-status.schema"), exports);
|
|
1621
|
+
__exportStar(require("./workflow/implement-stale-batch-repair.schema"), exports);
|
|
1622
|
+
__exportStar(require("./workflow/build-truth-read-model.schema"), exports);
|
|
1623
|
+
__exportStar(require("./workflow/build-knowledge.schema"), exports);
|
|
1624
|
+
__exportStar(require("./workflow/implementation-packet.schema"), exports);
|
|
1625
|
+
__exportStar(require("./workflow/patch-file-scope-policy.schema"), exports);
|
|
1626
|
+
__exportStar(require("./workflow/code-reality-task-traceability.schema"), exports);
|
|
1627
|
+
__exportStar(require("./workflow/implement-task-guard.schema"), exports);
|
|
1628
|
+
__exportStar(require("./workflow/existing-capability-classification.schema"), exports);
|
|
1629
|
+
__exportStar(require("./workflow/canonicalization-decision.schema"), exports);
|
|
1630
|
+
__exportStar(require("./integrations/cursor-execution.schema"), exports);
|
|
1631
|
+
__exportStar(require("./workflow/repair-specify-gate.schema"), exports);
|
|
1632
|
+
// Coding Quality Spine — task capsule + context bundle (Wave 4)
|
|
1633
|
+
__exportStar(require("./workflow/task-capsule.schema"), exports);
|
|
1634
|
+
__exportStar(require("./workflow/context-bundle.schema"), exports);
|
|
1635
|
+
__exportStar(require("./workflow/engineering-context.schema"), exports);
|
|
1636
|
+
// Coding Quality Spine — patch review result (Wave 6)
|
|
1637
|
+
__exportStar(require("./workflow/patch-review-result.schema"), exports);
|
|
1638
|
+
// Coding Quality Spine — deployment evidence (Wave 7)
|
|
1639
|
+
__exportStar(require("./workflow/deployment-evidence.schema"), exports);
|
|
1640
|
+
// Coding Quality Spine — review acceptance (Wave 8)
|
|
1641
|
+
__exportStar(require("./workflow/review-acceptance.schema"), exports);
|
|
1642
|
+
__exportStar(require("./workflow/review-release-decision-operator.schema"), exports);
|
|
1643
|
+
__exportStar(require("./workflow/knowledge-graph-result.schema"), exports);
|
|
1644
|
+
__exportStar(require("./workflow/test-obligation-manifest.schema"), exports);
|
|
1645
|
+
__exportStar(require("./workflow/workflow-intelligence-graph.schema"), exports);
|
|
1646
|
+
// Policy defaults for test obligations (canonical `TestSurfaceKind` matrix).
|
|
1647
|
+
__exportStar(require("../workflow/test-obligation-policy"), exports);
|
|
1648
|
+
// Screenplay & Media schemas (Fountain format, movie package)
|
|
1649
|
+
__exportStar(require("./ai/screenplay.schema"), exports);
|