@empire-builder-kit/nx 1.0.0-beta.9 → 1.0.0-rc.2
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/NOTICE +6 -0
- package/README.md +113 -3
- package/executors.json +30 -0
- package/package.json +84 -6
- package/src/api-contract/baseline-update.d.ts +82 -0
- package/src/api-contract/baseline-update.js +225 -0
- package/src/api-contract/baseline-update.js.map +1 -0
- package/src/api-contract/compatibility.d.ts +30 -0
- package/src/api-contract/compatibility.js +643 -0
- package/src/api-contract/compatibility.js.map +1 -0
- package/src/api-contract/contract-graph.d.ts +35 -0
- package/src/api-contract/contract-graph.js +141 -0
- package/src/api-contract/contract-graph.js.map +1 -0
- package/src/api-contract/evidence.d.ts +23 -0
- package/src/api-contract/evidence.js +87 -0
- package/src/api-contract/evidence.js.map +1 -0
- package/src/api-contract/index.d.ts +6 -0
- package/src/api-contract/index.js +10 -0
- package/src/api-contract/index.js.map +1 -0
- package/src/api-contract/model.d.ts +144 -0
- package/src/api-contract/model.fixtures.d.ts +2 -0
- package/src/api-contract/model.fixtures.js +81 -0
- package/src/api-contract/model.fixtures.js.map +1 -0
- package/src/api-contract/model.js +993 -0
- package/src/api-contract/model.js.map +1 -0
- package/src/api-contract/rollout.d.ts +32 -0
- package/src/api-contract/rollout.js +88 -0
- package/src/api-contract/rollout.js.map +1 -0
- package/src/authorization/compatibility.d.ts +62 -0
- package/src/authorization/compatibility.js +175 -0
- package/src/authorization/compatibility.js.map +1 -0
- package/src/authorization/index.d.ts +1 -0
- package/src/authorization/index.js +5 -0
- package/src/authorization/index.js.map +1 -0
- package/src/blueprints/execution.d.ts +25 -1
- package/src/blueprints/execution.js +246 -83
- package/src/blueprints/execution.js.map +1 -1
- package/src/blueprints/external-sandbox.d.ts +53 -0
- package/src/blueprints/external-sandbox.js +1182 -0
- package/src/blueprints/external-sandbox.js.map +1 -0
- package/src/blueprints/manifest.d.ts +42 -2
- package/src/blueprints/manifest.js +82 -27
- package/src/blueprints/manifest.js.map +1 -1
- package/src/blueprints/resolver.d.ts +14 -5
- package/src/blueprints/resolver.js +228 -68
- package/src/blueprints/resolver.js.map +1 -1
- package/src/cli/agent-command.d.ts +30 -0
- package/src/cli/agent-command.js +204 -0
- package/src/cli/agent-command.js.map +1 -0
- package/src/cli/agent-runtime.d.ts +25 -0
- package/src/cli/agent-runtime.js +488 -0
- package/src/cli/agent-runtime.js.map +1 -0
- package/src/cli/blueprint-authority.d.ts +9 -0
- package/src/cli/blueprint-authority.js +43 -0
- package/src/cli/blueprint-authority.js.map +1 -0
- package/src/cli/blueprint-command.d.ts +24 -0
- package/src/cli/blueprint-command.js +63 -0
- package/src/cli/blueprint-command.js.map +1 -0
- package/src/cli/bootstrap.d.ts +31 -0
- package/src/cli/bootstrap.js +165 -0
- package/src/cli/bootstrap.js.map +1 -0
- package/src/cli/dev-command.d.ts +92 -0
- package/src/cli/dev-command.js +561 -0
- package/src/cli/dev-command.js.map +1 -0
- package/src/cli/main.d.ts +131 -0
- package/src/cli/main.js +1199 -0
- package/src/cli/main.js.map +1 -0
- package/src/cli/output.d.ts +19 -0
- package/src/cli/output.js +51 -0
- package/src/cli/output.js.map +1 -0
- package/src/cli/personal-secret-runtime.d.ts +81 -0
- package/src/cli/personal-secret-runtime.js +567 -0
- package/src/cli/personal-secret-runtime.js.map +1 -0
- package/src/cli/secret-terminal.d.ts +12 -0
- package/src/cli/secret-terminal.js +128 -0
- package/src/cli/secret-terminal.js.map +1 -0
- package/src/container-images.d.ts +1 -0
- package/src/container-images.js +5 -0
- package/src/container-images.js.map +1 -0
- package/src/data-lifecycle/index.d.ts +3 -0
- package/src/data-lifecycle/index.js +7 -0
- package/src/data-lifecycle/index.js.map +1 -0
- package/src/data-lifecycle/model.d.ts +172 -0
- package/src/data-lifecycle/model.fixtures.d.ts +2 -0
- package/src/data-lifecycle/model.fixtures.js +244 -0
- package/src/data-lifecycle/model.fixtures.js.map +1 -0
- package/src/data-lifecycle/model.js +95 -0
- package/src/data-lifecycle/model.js.map +1 -0
- package/src/data-lifecycle/sensitive-artifacts.d.ts +28 -0
- package/src/data-lifecycle/sensitive-artifacts.js +146 -0
- package/src/data-lifecycle/sensitive-artifacts.js.map +1 -0
- package/src/data-lifecycle/validation.d.ts +32 -0
- package/src/data-lifecycle/validation.js +837 -0
- package/src/data-lifecycle/validation.js.map +1 -0
- package/src/database-retirement/contract.d.ts +68 -0
- package/src/database-retirement/contract.js +166 -0
- package/src/database-retirement/contract.js.map +1 -0
- package/src/database-retirement/index.d.ts +1 -0
- package/src/database-retirement/index.js +5 -0
- package/src/database-retirement/index.js.map +1 -0
- package/src/deterministic-order.d.ts +2 -0
- package/src/deterministic-order.js +7 -0
- package/src/deterministic-order.js.map +1 -0
- package/src/developer-agent/context.d.ts +27 -0
- package/src/developer-agent/context.js +497 -0
- package/src/developer-agent/context.js.map +1 -0
- package/src/developer-agent/generator-planning.d.ts +34 -0
- package/src/developer-agent/generator-planning.js +645 -0
- package/src/developer-agent/generator-planning.js.map +1 -0
- package/src/developer-agent/generator-preview.d.ts +8 -0
- package/src/developer-agent/generator-preview.js +650 -0
- package/src/developer-agent/generator-preview.js.map +1 -0
- package/src/developer-agent/git-inspection.d.ts +108 -0
- package/src/developer-agent/git-inspection.js +815 -0
- package/src/developer-agent/git-inspection.js.map +1 -0
- package/src/developer-agent/handoff.d.ts +43 -0
- package/src/developer-agent/handoff.js +698 -0
- package/src/developer-agent/handoff.js.map +1 -0
- package/src/developer-agent/index.d.ts +10 -0
- package/src/developer-agent/index.js +14 -0
- package/src/developer-agent/index.js.map +1 -0
- package/src/developer-agent/model.d.ts +481 -0
- package/src/developer-agent/model.js +143 -0
- package/src/developer-agent/model.js.map +1 -0
- package/src/developer-agent/operation-registry.d.ts +45 -0
- package/src/developer-agent/operation-registry.js +1255 -0
- package/src/developer-agent/operation-registry.js.map +1 -0
- package/src/developer-agent/ordering.d.ts +9 -0
- package/src/developer-agent/ordering.js +15 -0
- package/src/developer-agent/ordering.js.map +1 -0
- package/src/developer-agent/planning.d.ts +18 -0
- package/src/developer-agent/planning.js +447 -0
- package/src/developer-agent/planning.js.map +1 -0
- package/src/developer-agent/preview-changes.d.ts +26 -0
- package/src/developer-agent/preview-changes.js +203 -0
- package/src/developer-agent/preview-changes.js.map +1 -0
- package/src/developer-agent/preview-source.d.ts +2 -0
- package/src/developer-agent/preview-source.js +16 -0
- package/src/developer-agent/preview-source.js.map +1 -0
- package/src/developer-agent/validation.d.ts +18 -0
- package/src/developer-agent/validation.js +2617 -0
- package/src/developer-agent/validation.js.map +1 -0
- package/src/developer-agent/workspace-inspection.d.ts +20 -0
- package/src/developer-agent/workspace-inspection.js +1134 -0
- package/src/developer-agent/workspace-inspection.js.map +1 -0
- package/src/developer-agent/workspace-path.d.ts +6 -0
- package/src/developer-agent/workspace-path.js +22 -0
- package/src/developer-agent/workspace-path.js.map +1 -0
- package/src/executors/blueprint-trust/blueprint-trust.d.ts +29 -0
- package/src/executors/blueprint-trust/blueprint-trust.js +115 -0
- package/src/executors/blueprint-trust/blueprint-trust.js.map +1 -0
- package/src/executors/blueprint-trust/schema.json +27 -0
- package/src/executors/blueprint-verification/blueprint-verification.d.ts +13 -0
- package/src/executors/blueprint-verification/blueprint-verification.js +110 -0
- package/src/executors/blueprint-verification/blueprint-verification.js.map +1 -0
- package/src/executors/blueprint-verification/schema.json +44 -0
- package/src/executors/deployment-plan/deployment-plan.js +1 -0
- package/src/executors/deployment-plan/deployment-plan.js.map +1 -1
- package/src/executors/dev-doctor/dev-doctor.d.ts +19 -5
- package/src/executors/dev-doctor/dev-doctor.js +186 -32
- package/src/executors/dev-doctor/dev-doctor.js.map +1 -1
- package/src/executors/dev-doctor/schema.json +1 -6
- package/src/executors/dev-setup/dev-setup.d.ts +7 -1
- package/src/executors/dev-setup/dev-setup.js +14 -3
- package/src/executors/dev-setup/dev-setup.js.map +1 -1
- package/src/executors/developer-context/developer-context.d.ts +38 -0
- package/src/executors/developer-context/developer-context.js +78 -0
- package/src/executors/developer-context/developer-context.js.map +1 -0
- package/src/executors/developer-context/schema.json +87 -0
- package/src/executors/fleet/fleet.d.ts +12 -43
- package/src/executors/fleet/fleet.js +120 -500
- package/src/executors/fleet/fleet.js.map +1 -1
- package/src/executors/fleet/schema.json +64 -14
- package/src/executors/github-bootstrap/github-bootstrap.d.ts +1 -0
- package/src/executors/github-bootstrap/github-bootstrap.js +1 -0
- package/src/executors/github-bootstrap/github-bootstrap.js.map +1 -1
- package/src/executors/github-bootstrap/schema.json +5 -0
- package/src/executors/infrastructure-plan/infrastructure-plan.d.ts +144 -0
- package/src/executors/infrastructure-plan/infrastructure-plan.js +3320 -0
- package/src/executors/infrastructure-plan/infrastructure-plan.js.map +1 -0
- package/src/executors/infrastructure-plan/schema.json +78 -0
- package/src/executors/secret-guardrails/schema.json +6 -0
- package/src/executors/secret-guardrails/secret-guardrails.d.ts +3 -0
- package/src/executors/secret-guardrails/secret-guardrails.js +44 -0
- package/src/executors/secret-guardrails/secret-guardrails.js.map +1 -0
- package/src/executors/secret-metadata/schema.json +31 -0
- package/src/executors/secret-metadata/secret-metadata.d.ts +32 -0
- package/src/executors/secret-metadata/secret-metadata.js +131 -0
- package/src/executors/secret-metadata/secret-metadata.js.map +1 -0
- package/src/executors/sst-lifecycle/logging-preflight.d.ts +17 -0
- package/src/executors/sst-lifecycle/logging-preflight.js +196 -0
- package/src/executors/sst-lifecycle/logging-preflight.js.map +1 -0
- package/src/executors/sst-lifecycle/run-sst-command.d.ts +23 -3
- package/src/executors/sst-lifecycle/run-sst-command.js +113 -10
- package/src/executors/sst-lifecycle/run-sst-command.js.map +1 -1
- package/src/executors/sst-lifecycle/schema.json +9 -5
- package/src/executors/sst-lifecycle/secret-preflight.d.ts +25 -0
- package/src/executors/sst-lifecycle/secret-preflight.js +119 -0
- package/src/executors/sst-lifecycle/secret-preflight.js.map +1 -0
- package/src/foundation/discovery.d.ts +17 -1
- package/src/foundation/discovery.js +16 -1
- package/src/foundation/discovery.js.map +1 -1
- package/src/foundation/index.d.ts +3 -0
- package/src/foundation/index.js +3 -0
- package/src/foundation/index.js.map +1 -1
- package/src/foundation/local-database-contract.d.ts +1 -0
- package/src/foundation/local-database-contract.js +3 -0
- package/src/foundation/local-database-contract.js.map +1 -1
- package/src/foundation/logging-preflight.d.ts +30 -0
- package/src/foundation/logging-preflight.js +138 -0
- package/src/foundation/logging-preflight.js.map +1 -0
- package/src/foundation/logging.d.ts +70 -0
- package/src/foundation/logging.js +133 -0
- package/src/foundation/logging.js.map +1 -0
- package/src/foundation/preflight.d.ts +9 -0
- package/src/foundation/preflight.js +58 -2
- package/src/foundation/preflight.js.map +1 -1
- package/src/foundation/provision-database-bindings.d.ts +9 -1
- package/src/foundation/provision-database-bindings.js +25 -5
- package/src/foundation/provision-database-bindings.js.map +1 -1
- package/src/foundation/provision-logical-database.d.ts +10 -2
- package/src/foundation/provision-logical-database.js +68 -113
- package/src/foundation/provision-logical-database.js.map +1 -1
- package/src/foundation/router-origin-proof.d.ts +2 -0
- package/src/foundation/router-origin-proof.js +25 -0
- package/src/foundation/router-origin-proof.js.map +1 -0
- package/src/foundation/stages.d.ts +1 -0
- package/src/foundation/stages.js +9 -1
- package/src/foundation/stages.js.map +1 -1
- package/src/frontend-security/index.d.ts +1 -0
- package/src/frontend-security/index.js +5 -0
- package/src/frontend-security/index.js.map +1 -0
- package/src/frontend-security/security-headers.d.ts +50 -0
- package/src/frontend-security/security-headers.js +418 -0
- package/src/frontend-security/security-headers.js.map +1 -0
- package/src/generators/feature-registry.d.ts +13 -0
- package/src/generators/feature-registry.js +73 -0
- package/src/generators/feature-registry.js.map +1 -0
- package/src/generators/function/function.d.ts +1 -1
- package/src/generators/function/function.js +51 -6
- package/src/generators/function/function.js.map +1 -1
- package/src/generators/function/schema.d.ts +1 -0
- package/src/generators/function/schema.json +6 -1
- package/src/generators/logging-registry.d.ts +13 -0
- package/src/generators/logging-registry.js +62 -0
- package/src/generators/logging-registry.js.map +1 -0
- package/src/generators/post-generation-install.d.ts +67 -0
- package/src/generators/post-generation-install.js +3308 -0
- package/src/generators/post-generation-install.js.map +1 -0
- package/src/generators/preset/generator.js +3 -0
- package/src/generators/preset/generator.js.map +1 -1
- package/src/generators/preset/tool-versions.d.ts +18 -0
- package/src/generators/preset/tool-versions.js +22 -0
- package/src/generators/preset/tool-versions.js.map +1 -0
- package/src/generators/preset/workspace-files-developer-agent.d.ts +14 -0
- package/src/generators/preset/workspace-files-developer-agent.js +511 -0
- package/src/generators/preset/workspace-files-developer-agent.js.map +1 -0
- package/src/generators/preset/workspace-files-foundation-workload-roles.d.ts +6 -0
- package/src/generators/preset/workspace-files-foundation-workload-roles.js +406 -0
- package/src/generators/preset/workspace-files-foundation-workload-roles.js.map +1 -0
- package/src/generators/preset/workspace-files-performance-cost.d.ts +66 -0
- package/src/generators/preset/workspace-files-performance-cost.js +866 -0
- package/src/generators/preset/workspace-files-performance-cost.js.map +1 -0
- package/src/generators/preset/workspace-files-performance-load.d.ts +73 -0
- package/src/generators/preset/workspace-files-performance-load.js +801 -0
- package/src/generators/preset/workspace-files-performance-load.js.map +1 -0
- package/src/generators/preset/workspace-files-workload-role-baseline.d.ts +9 -0
- package/src/generators/preset/workspace-files-workload-role-baseline.js +1102 -0
- package/src/generators/preset/workspace-files-workload-role-baseline.js.map +1 -0
- package/src/generators/preset/workspace-files.d.ts +14 -1
- package/src/generators/preset/workspace-files.js +8189 -245
- package/src/generators/preset/workspace-files.js.map +1 -1
- package/src/generators/repository-policy/repository-policy.js +3 -47
- package/src/generators/repository-policy/repository-policy.js.map +1 -1
- package/src/generators/slice/built-in-plan-api-contract-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-api-contract-files.js +2656 -0
- package/src/generators/slice/built-in-plan-api-contract-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-api-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-api-files.js +1186 -0
- package/src/generators/slice/built-in-plan-api-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-async-work-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-async-work-files.js +7903 -0
- package/src/generators/slice/built-in-plan-async-work-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-authorization-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-authorization-files.js +2314 -0
- package/src/generators/slice/built-in-plan-authorization-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.js +559 -0
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-deletion-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-deletion-files.js +1101 -0
- package/src/generators/slice/built-in-plan-data-deletion-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.js +249 -0
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-files.js +1530 -0
- package/src/generators/slice/built-in-plan-data-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-files.js +750 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.js +828 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-retention-job-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-retention-job-files.js +2604 -0
- package/src/generators/slice/built-in-plan-data-retention-job-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.js +144 -0
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-rights-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-rights-files.js +4628 -0
- package/src/generators/slice/built-in-plan-data-rights-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-database-lifecycle-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-database-lifecycle-files.js +1901 -0
- package/src/generators/slice/built-in-plan-database-lifecycle-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.js +485 -0
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-foundation-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-foundation-files.js +184 -0
- package/src/generators/slice/built-in-plan-foundation-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-frontend-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-frontend-files.js +2233 -0
- package/src/generators/slice/built-in-plan-frontend-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-infrastructure-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-infrastructure-files.js +3038 -0
- package/src/generators/slice/built-in-plan-infrastructure-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.js +312 -0
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-metadata-files.d.ts +3 -0
- package/src/generators/slice/built-in-plan-metadata-files.js +219 -0
- package/src/generators/slice/built-in-plan-metadata-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-operations-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-operations-files.js +630 -0
- package/src/generators/slice/built-in-plan-operations-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-performance-files.d.ts +3 -0
- package/src/generators/slice/built-in-plan-performance-files.js +3293 -0
- package/src/generators/slice/built-in-plan-performance-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-project-files.d.ts +3 -0
- package/src/generators/slice/built-in-plan-project-files.js +979 -0
- package/src/generators/slice/built-in-plan-project-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-release-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-release-files.js +6387 -0
- package/src/generators/slice/built-in-plan-release-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-reliability-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-reliability-files.js +4499 -0
- package/src/generators/slice/built-in-plan-reliability-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-secret-runtime-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-secret-runtime-files.js +1004 -0
- package/src/generators/slice/built-in-plan-secret-runtime-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-shared.d.ts +53 -0
- package/src/generators/slice/built-in-plan-shared.js +113 -0
- package/src/generators/slice/built-in-plan-shared.js.map +1 -0
- package/src/generators/slice/built-in-plan-testing-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-testing-files.js +2356 -0
- package/src/generators/slice/built-in-plan-testing-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-verification-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-verification-files.js +358 -0
- package/src/generators/slice/built-in-plan-verification-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-web-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-web-files.js +430 -0
- package/src/generators/slice/built-in-plan-web-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-workload-role-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-workload-role-files.js +2356 -0
- package/src/generators/slice/built-in-plan-workload-role-files.js.map +1 -0
- package/src/generators/slice/built-in-plan.d.ts +8 -0
- package/src/generators/slice/built-in-plan.js +264 -0
- package/src/generators/slice/built-in-plan.js.map +1 -0
- package/src/generators/slice/schema.json +1 -1
- package/src/generators/slice/slice.d.ts +1 -22
- package/src/generators/slice/slice.js +185 -1510
- package/src/generators/slice/slice.js.map +1 -1
- package/src/generators/upgrade/schema.d.ts +2 -0
- package/src/generators/upgrade/schema.json +11 -1
- package/src/generators/upgrade/upgrade.d.ts +51 -1
- package/src/generators/upgrade/upgrade.js +820 -82
- package/src/generators/upgrade/upgrade.js.map +1 -1
- package/src/generators/workload/frozen-container.d.ts +8 -0
- package/src/generators/workload/frozen-container.js +36 -0
- package/src/generators/workload/frozen-container.js.map +1 -0
- package/src/generators/workload/performance-registration.d.ts +32 -0
- package/src/generators/workload/performance-registration.js +226 -0
- package/src/generators/workload/performance-registration.js.map +1 -0
- package/src/generators/workload/reliability-registration.d.ts +16 -0
- package/src/generators/workload/reliability-registration.js +150 -0
- package/src/generators/workload/reliability-registration.js.map +1 -0
- package/src/generators/workload/schema.d.ts +1 -0
- package/src/generators/workload/schema.json +6 -1
- package/src/generators/workload/service-performance-files.d.ts +4 -0
- package/src/generators/workload/service-performance-files.js +1846 -0
- package/src/generators/workload/service-performance-files.js.map +1 -0
- package/src/generators/workload/workload.d.ts +3 -2
- package/src/generators/workload/workload.js +1083 -18
- package/src/generators/workload/workload.js.map +1 -1
- package/src/git-policy/action-pins.d.ts +10 -0
- package/src/git-policy/action-pins.js +10 -0
- package/src/git-policy/action-pins.js.map +1 -1
- package/src/git-policy/github-bootstrap.d.ts +14 -1
- package/src/git-policy/github-bootstrap.js +274 -46
- package/src/git-policy/github-bootstrap.js.map +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/infrastructure-change/convergence.d.ts +13 -0
- package/src/infrastructure-change/convergence.js +85 -0
- package/src/infrastructure-change/convergence.js.map +1 -0
- package/src/infrastructure-change/drift.d.ts +13 -0
- package/src/infrastructure-change/drift.js +112 -0
- package/src/infrastructure-change/drift.js.map +1 -0
- package/src/infrastructure-change/index.d.ts +7 -0
- package/src/infrastructure-change/index.js +11 -0
- package/src/infrastructure-change/index.js.map +1 -0
- package/src/infrastructure-change/model.d.ts +253 -0
- package/src/infrastructure-change/model.js +28 -0
- package/src/infrastructure-change/model.js.map +1 -0
- package/src/infrastructure-change/normalize.d.ts +12 -0
- package/src/infrastructure-change/normalize.js +245 -0
- package/src/infrastructure-change/normalize.js.map +1 -0
- package/src/infrastructure-change/plan.d.ts +40 -0
- package/src/infrastructure-change/plan.js +361 -0
- package/src/infrastructure-change/plan.js.map +1 -0
- package/src/infrastructure-change/risk.d.ts +7 -0
- package/src/infrastructure-change/risk.js +269 -0
- package/src/infrastructure-change/risk.js.map +1 -0
- package/src/infrastructure-change/summary.d.ts +20 -0
- package/src/infrastructure-change/summary.js +130 -0
- package/src/infrastructure-change/summary.js.map +1 -0
- package/src/local-dev/context-discovery.d.ts +2 -0
- package/src/local-dev/context-discovery.js +59 -0
- package/src/local-dev/context-discovery.js.map +1 -0
- package/src/local-dev/contract-validation.d.ts +15 -0
- package/src/local-dev/contract-validation.js +84 -0
- package/src/local-dev/contract-validation.js.map +1 -0
- package/src/local-dev/contracts.d.ts +10 -1
- package/src/local-dev/contracts.js +57 -5
- package/src/local-dev/contracts.js.map +1 -1
- package/src/local-dev/control-contract.d.ts +67 -0
- package/src/local-dev/control-contract.js +180 -0
- package/src/local-dev/control-contract.js.map +1 -0
- package/src/local-dev/dev-command-core.d.ts +60 -0
- package/src/local-dev/dev-command-core.js +89 -0
- package/src/local-dev/dev-command-core.js.map +1 -0
- package/src/local-dev/effects.d.ts +16 -0
- package/src/local-dev/effects.js +63 -0
- package/src/local-dev/effects.js.map +1 -0
- package/src/local-dev/environment-inspector.d.ts +125 -0
- package/src/local-dev/environment-inspector.js +687 -0
- package/src/local-dev/environment-inspector.js.map +1 -0
- package/src/local-dev/environment-state.d.ts +113 -0
- package/src/local-dev/environment-state.js +463 -0
- package/src/local-dev/environment-state.js.map +1 -0
- package/src/local-dev/errors.d.ts +6 -0
- package/src/local-dev/errors.js +41 -0
- package/src/local-dev/errors.js.map +1 -0
- package/src/local-dev/fleet-client.d.ts +33 -0
- package/src/local-dev/fleet-client.js +156 -0
- package/src/local-dev/fleet-client.js.map +1 -0
- package/src/local-dev/fleet-configuration.d.ts +13 -0
- package/src/local-dev/fleet-configuration.js +71 -0
- package/src/local-dev/fleet-configuration.js.map +1 -0
- package/src/local-dev/fleet-inventory.d.ts +56 -0
- package/src/local-dev/fleet-inventory.js +469 -0
- package/src/local-dev/fleet-inventory.js.map +1 -0
- package/src/local-dev/fleet-ipc.d.ts +28 -0
- package/src/local-dev/fleet-ipc.js +267 -0
- package/src/local-dev/fleet-ipc.js.map +1 -0
- package/src/local-dev/fleet-launcher.d.ts +53 -0
- package/src/local-dev/fleet-launcher.js +379 -0
- package/src/local-dev/fleet-launcher.js.map +1 -0
- package/src/local-dev/fleet-lock.d.ts +41 -0
- package/src/local-dev/fleet-lock.js +135 -0
- package/src/local-dev/fleet-lock.js.map +1 -0
- package/src/local-dev/fleet-logs.d.ts +66 -0
- package/src/local-dev/fleet-logs.js +542 -0
- package/src/local-dev/fleet-logs.js.map +1 -0
- package/src/local-dev/fleet-process.d.ts +50 -0
- package/src/local-dev/fleet-process.js +289 -0
- package/src/local-dev/fleet-process.js.map +1 -0
- package/src/local-dev/fleet-runtime.d.ts +22 -0
- package/src/local-dev/fleet-runtime.js +368 -0
- package/src/local-dev/fleet-runtime.js.map +1 -0
- package/src/local-dev/fleet-session.d.ts +70 -0
- package/src/local-dev/fleet-session.js +301 -0
- package/src/local-dev/fleet-session.js.map +1 -0
- package/src/local-dev/fleet-slice-runner-daemon.d.ts +1 -0
- package/src/local-dev/fleet-slice-runner-daemon.js +21 -0
- package/src/local-dev/fleet-slice-runner-daemon.js.map +1 -0
- package/src/local-dev/fleet-startup.d.ts +22 -0
- package/src/local-dev/fleet-startup.js +114 -0
- package/src/local-dev/fleet-startup.js.map +1 -0
- package/src/local-dev/fleet-state.d.ts +62 -0
- package/src/local-dev/fleet-state.js +297 -0
- package/src/local-dev/fleet-state.js.map +1 -0
- package/src/local-dev/fleet-supervisor-daemon.d.ts +1 -0
- package/src/local-dev/fleet-supervisor-daemon.js +41 -0
- package/src/local-dev/fleet-supervisor-daemon.js.map +1 -0
- package/src/local-dev/fleet-supervisor.d.ts +52 -0
- package/src/local-dev/fleet-supervisor.js +384 -0
- package/src/local-dev/fleet-supervisor.js.map +1 -0
- package/src/local-dev/gateway.js +1 -1
- package/src/local-dev/gateway.js.map +1 -1
- package/src/local-dev/identity.js +4 -6
- package/src/local-dev/identity.js.map +1 -1
- package/src/local-dev/index.d.ts +1 -0
- package/src/local-dev/index.js +1 -0
- package/src/local-dev/index.js.map +1 -1
- package/src/local-dev/local-context.d.ts +62 -0
- package/src/local-dev/local-context.js +299 -0
- package/src/local-dev/local-context.js.map +1 -0
- package/src/local-dev/nx-workspace.d.ts +45 -0
- package/src/local-dev/nx-workspace.js +228 -0
- package/src/local-dev/nx-workspace.js.map +1 -0
- package/src/local-dev/personal-secret-ledger.d.ts +75 -0
- package/src/local-dev/personal-secret-ledger.js +391 -0
- package/src/local-dev/personal-secret-ledger.js.map +1 -0
- package/src/local-dev/personal-stage.d.ts +18 -0
- package/src/local-dev/personal-stage.js +129 -0
- package/src/local-dev/personal-stage.js.map +1 -0
- package/src/local-dev/private-state.d.ts +17 -0
- package/src/local-dev/private-state.js +254 -0
- package/src/local-dev/private-state.js.map +1 -0
- package/src/local-dev/process-identity.d.ts +9 -0
- package/src/local-dev/process-identity.js +79 -0
- package/src/local-dev/process-identity.js.map +1 -0
- package/src/local-dev/runtime-paths.d.ts +17 -0
- package/src/local-dev/runtime-paths.js +33 -0
- package/src/local-dev/runtime-paths.js.map +1 -0
- package/src/local-dev/secret-slice-claim.d.ts +17 -0
- package/src/local-dev/secret-slice-claim.js +75 -0
- package/src/local-dev/secret-slice-claim.js.map +1 -0
- package/src/local-dev/slice-claim.d.ts +36 -0
- package/src/local-dev/slice-claim.js +199 -0
- package/src/local-dev/slice-claim.js.map +1 -0
- package/src/local-dev/slice-runner.d.ts +121 -0
- package/src/local-dev/slice-runner.js +715 -0
- package/src/local-dev/slice-runner.js.map +1 -0
- package/src/local-dev/tls.js +51 -17
- package/src/local-dev/tls.js.map +1 -1
- package/src/ownership/composition.d.ts +5 -2
- package/src/ownership/composition.js +26 -3
- package/src/ownership/composition.js.map +1 -1
- package/src/ownership/hash.d.ts +1 -1
- package/src/ownership/hash.js +3 -1
- package/src/ownership/hash.js.map +1 -1
- package/src/ownership/record.d.ts +32 -1
- package/src/ownership/record.js +139 -2
- package/src/ownership/record.js.map +1 -1
- package/src/performance/cost-collection.d.ts +225 -0
- package/src/performance/cost-collection.js +825 -0
- package/src/performance/cost-collection.js.map +1 -0
- package/src/performance/cost-controls.d.ts +131 -0
- package/src/performance/cost-controls.js +336 -0
- package/src/performance/cost-controls.js.map +1 -0
- package/src/performance/evidence.d.ts +140 -0
- package/src/performance/evidence.js +599 -0
- package/src/performance/evidence.js.map +1 -0
- package/src/performance/index.d.ts +10 -0
- package/src/performance/index.js +14 -0
- package/src/performance/index.js.map +1 -0
- package/src/performance/load-safety.d.ts +84 -0
- package/src/performance/load-safety.js +346 -0
- package/src/performance/load-safety.js.map +1 -0
- package/src/performance/model.d.ts +129 -0
- package/src/performance/model.js +452 -0
- package/src/performance/model.js.map +1 -0
- package/src/performance/pr-artifact-budget.d.ts +42 -0
- package/src/performance/pr-artifact-budget.js +151 -0
- package/src/performance/pr-artifact-budget.js.map +1 -0
- package/src/performance/runner.d.ts +75 -0
- package/src/performance/runner.js +227 -0
- package/src/performance/runner.js.map +1 -0
- package/src/performance/scenario-endpoint.d.ts +1 -0
- package/src/performance/scenario-endpoint.js +5 -0
- package/src/performance/scenario-endpoint.js.map +1 -0
- package/src/performance/scenario.d.ts +193 -0
- package/src/performance/scenario.js +736 -0
- package/src/performance/scenario.js.map +1 -0
- package/src/performance/test-fixtures.d.ts +7 -0
- package/src/performance/test-fixtures.js +169 -0
- package/src/performance/test-fixtures.js.map +1 -0
- package/src/performance/unit-cost.d.ts +105 -0
- package/src/performance/unit-cost.js +364 -0
- package/src/performance/unit-cost.js.map +1 -0
- package/src/release/index.d.ts +4 -0
- package/src/release/index.js +8 -0
- package/src/release/index.js.map +1 -0
- package/src/release/lifecycle.d.ts +132 -0
- package/src/release/lifecycle.js +411 -0
- package/src/release/lifecycle.js.map +1 -0
- package/src/release/manifest.d.ts +148 -0
- package/src/release/manifest.js +503 -0
- package/src/release/manifest.js.map +1 -0
- package/src/release/rollout.d.ts +170 -0
- package/src/release/rollout.js +578 -0
- package/src/release/rollout.js.map +1 -0
- package/src/release/source-authority.d.ts +19 -0
- package/src/release/source-authority.js +195 -0
- package/src/release/source-authority.js.map +1 -0
- package/src/repository-policy/deployment-plan.d.ts +2 -1
- package/src/repository-policy/deployment-plan.js +2 -0
- package/src/repository-policy/deployment-plan.js.map +1 -1
- package/src/repository-policy/policy.d.ts +1 -1
- package/src/repository-policy/policy.js +29 -25
- package/src/repository-policy/policy.js.map +1 -1
- package/src/schemas/aggregate-count-evidence-v1.json +135 -0
- package/src/schemas/api-contract-baseline-v1.json +674 -0
- package/src/schemas/api-contract-compatibility-report-v1.json +126 -0
- package/src/schemas/aws-billing-actual-evidence-v1.json +407 -0
- package/src/schemas/blueprint-v1.json +18 -1
- package/src/schemas/data-lifecycle-policy-v1.json +517 -0
- package/src/schemas/generated-ownership-v2.json +22 -0
- package/src/schemas/performance-policy-v1.json +335 -0
- package/src/schemas/repository-policy-v1.json +1 -0
- package/src/schemas/testing-evidence-quarantine-v1.json +168 -0
- package/src/schemas/testing-evidence-result-v1.json +319 -0
- package/src/secrets/adapters.d.ts +49 -0
- package/src/secrets/adapters.js +184 -0
- package/src/secrets/adapters.js.map +1 -0
- package/src/secrets/aws-control-plane.d.ts +20 -0
- package/src/secrets/aws-control-plane.js +255 -0
- package/src/secrets/aws-control-plane.js.map +1 -0
- package/src/secrets/declaration-verification.d.ts +11 -0
- package/src/secrets/declaration-verification.js +68 -0
- package/src/secrets/declaration-verification.js.map +1 -0
- package/src/secrets/guardrails.d.ts +26 -0
- package/src/secrets/guardrails.js +328 -0
- package/src/secrets/guardrails.js.map +1 -0
- package/src/secrets/index.d.ts +12 -0
- package/src/secrets/index.js +16 -0
- package/src/secrets/index.js.map +1 -0
- package/src/secrets/metadata.d.ts +48 -0
- package/src/secrets/metadata.js +171 -0
- package/src/secrets/metadata.js.map +1 -0
- package/src/secrets/model.d.ts +49 -0
- package/src/secrets/model.js +125 -0
- package/src/secrets/model.js.map +1 -0
- package/src/secrets/operator.d.ts +101 -0
- package/src/secrets/operator.js +229 -0
- package/src/secrets/operator.js.map +1 -0
- package/src/secrets/permissions.d.ts +34 -0
- package/src/secrets/permissions.js +86 -0
- package/src/secrets/permissions.js.map +1 -0
- package/src/secrets/personal-command.d.ts +83 -0
- package/src/secrets/personal-command.js +197 -0
- package/src/secrets/personal-command.js.map +1 -0
- package/src/secrets/personal-ledger.d.ts +21 -0
- package/src/secrets/personal-ledger.js +135 -0
- package/src/secrets/personal-ledger.js.map +1 -0
- package/src/secrets/registry.d.ts +9 -0
- package/src/secrets/registry.js +86 -0
- package/src/secrets/registry.js.map +1 -0
- package/src/secrets/verification.d.ts +18 -0
- package/src/secrets/verification.js +139 -0
- package/src/secrets/verification.js.map +1 -0
- package/src/secrets/workload-access.d.ts +46 -0
- package/src/secrets/workload-access.js +163 -0
- package/src/secrets/workload-access.js.map +1 -0
- package/src/supply-chain/action-pins.d.ts +26 -0
- package/src/supply-chain/action-pins.js +208 -0
- package/src/supply-chain/action-pins.js.map +1 -0
- package/src/supply-chain/blueprint-trust-git.d.ts +130 -0
- package/src/supply-chain/blueprint-trust-git.js +1581 -0
- package/src/supply-chain/blueprint-trust-git.js.map +1 -0
- package/src/supply-chain/blueprint-trust-process.d.ts +4 -0
- package/src/supply-chain/blueprint-trust-process.js +88 -0
- package/src/supply-chain/blueprint-trust-process.js.map +1 -0
- package/src/supply-chain/blueprint-trust.d.ts +354 -0
- package/src/supply-chain/blueprint-trust.js +1558 -0
- package/src/supply-chain/blueprint-trust.js.map +1 -0
- package/src/supply-chain/blueprint-verification-authority.d.ts +62 -0
- package/src/supply-chain/blueprint-verification-authority.js +588 -0
- package/src/supply-chain/blueprint-verification-authority.js.map +1 -0
- package/src/supply-chain/blueprint-verification-execution.d.ts +68 -0
- package/src/supply-chain/blueprint-verification-execution.js +624 -0
- package/src/supply-chain/blueprint-verification-execution.js.map +1 -0
- package/src/supply-chain/build-output.d.ts +35 -0
- package/src/supply-chain/build-output.js +398 -0
- package/src/supply-chain/build-output.js.map +1 -0
- package/src/supply-chain/common.d.ts +21 -0
- package/src/supply-chain/common.js +107 -0
- package/src/supply-chain/common.js.map +1 -0
- package/src/supply-chain/container-artifact-contract.d.ts +23 -0
- package/src/supply-chain/container-artifact-contract.js +208 -0
- package/src/supply-chain/container-artifact-contract.js.map +1 -0
- package/src/supply-chain/container-release.d.ts +119 -0
- package/src/supply-chain/container-release.js +496 -0
- package/src/supply-chain/container-release.js.map +1 -0
- package/src/supply-chain/ecr-applicability.d.ts +19 -0
- package/src/supply-chain/ecr-applicability.js +103 -0
- package/src/supply-chain/ecr-applicability.js.map +1 -0
- package/src/supply-chain/ecr-scanning.d.ts +83 -0
- package/src/supply-chain/ecr-scanning.js +321 -0
- package/src/supply-chain/ecr-scanning.js.map +1 -0
- package/src/supply-chain/ecs-deployed-image.d.ts +85 -0
- package/src/supply-chain/ecs-deployed-image.js +300 -0
- package/src/supply-chain/ecs-deployed-image.js.map +1 -0
- package/src/supply-chain/errors.d.ts +6 -0
- package/src/supply-chain/errors.js +15 -0
- package/src/supply-chain/errors.js.map +1 -0
- package/src/supply-chain/generated-blueprint-trust-command.d.ts +4 -0
- package/src/supply-chain/generated-blueprint-trust-command.js +1362 -0
- package/src/supply-chain/generated-blueprint-trust-command.js.map +1 -0
- package/src/supply-chain/generated-command.d.ts +1 -0
- package/src/supply-chain/generated-command.js +687 -0
- package/src/supply-chain/generated-command.js.map +1 -0
- package/src/supply-chain/generated-container-release-command.d.ts +16 -0
- package/src/supply-chain/generated-container-release-command.js +2087 -0
- package/src/supply-chain/generated-container-release-command.js.map +1 -0
- package/src/supply-chain/generated-ecr-collector-command.d.ts +21 -0
- package/src/supply-chain/generated-ecr-collector-command.js +1338 -0
- package/src/supply-chain/generated-ecr-collector-command.js.map +1 -0
- package/src/supply-chain/generated-files.d.ts +13 -0
- package/src/supply-chain/generated-files.js +401 -0
- package/src/supply-chain/generated-files.js.map +1 -0
- package/src/supply-chain/generated-scanner-command.d.ts +1 -0
- package/src/supply-chain/generated-scanner-command.js +718 -0
- package/src/supply-chain/generated-scanner-command.js.map +1 -0
- package/src/supply-chain/index.d.ts +28 -0
- package/src/supply-chain/index.js +35 -0
- package/src/supply-chain/index.js.map +1 -0
- package/src/supply-chain/inventory.d.ts +79 -0
- package/src/supply-chain/inventory.js +717 -0
- package/src/supply-chain/inventory.js.map +1 -0
- package/src/supply-chain/license-expression.d.ts +7 -0
- package/src/supply-chain/license-expression.js +128 -0
- package/src/supply-chain/license-expression.js.map +1 -0
- package/src/supply-chain/pnpm-toolchain-authority.d.ts +31 -0
- package/src/supply-chain/pnpm-toolchain-authority.js +316 -0
- package/src/supply-chain/pnpm-toolchain-authority.js.map +1 -0
- package/src/supply-chain/policy.d.ts +105 -0
- package/src/supply-chain/policy.js +301 -0
- package/src/supply-chain/policy.js.map +1 -0
- package/src/supply-chain/publication.d.ts +48 -0
- package/src/supply-chain/publication.js +85 -0
- package/src/supply-chain/publication.js.map +1 -0
- package/src/supply-chain/sbom.d.ts +228 -0
- package/src/supply-chain/sbom.js +826 -0
- package/src/supply-chain/sbom.js.map +1 -0
- package/src/supply-chain/scanner.d.ts +77 -0
- package/src/supply-chain/scanner.js +502 -0
- package/src/supply-chain/scanner.js.map +1 -0
- package/src/supply-chain/vendored-source.d.ts +95 -0
- package/src/supply-chain/vendored-source.js +315 -0
- package/src/supply-chain/vendored-source.js.map +1 -0
- package/src/testing-evidence/fixture-scope.d.ts +52 -0
- package/src/testing-evidence/fixture-scope.js +140 -0
- package/src/testing-evidence/fixture-scope.js.map +1 -0
- package/src/testing-evidence/index.d.ts +5 -0
- package/src/testing-evidence/index.js +9 -0
- package/src/testing-evidence/index.js.map +1 -0
- package/src/testing-evidence/quarantine.d.ts +48 -0
- package/src/testing-evidence/quarantine.js +253 -0
- package/src/testing-evidence/quarantine.js.map +1 -0
- package/src/testing-evidence/result.d.ts +108 -0
- package/src/testing-evidence/result.js +571 -0
- package/src/testing-evidence/result.js.map +1 -0
- package/src/testing-evidence/runner-adapter.d.ts +51 -0
- package/src/testing-evidence/runner-adapter.js +288 -0
- package/src/testing-evidence/runner-adapter.js.map +1 -0
- package/src/testing-evidence/sensitive-artifacts.d.ts +13 -0
- package/src/testing-evidence/sensitive-artifacts.js +93 -0
- package/src/testing-evidence/sensitive-artifacts.js.map +1 -0
- package/src/work-markers/work-markers.js +4 -3
- package/src/work-markers/work-markers.js.map +1 -1
- package/src/workload-roles/account-baseline.d.ts +132 -0
- package/src/workload-roles/account-baseline.js +743 -0
- package/src/workload-roles/account-baseline.js.map +1 -0
- package/src/workload-roles/authority.d.ts +38 -0
- package/src/workload-roles/authority.js +156 -0
- package/src/workload-roles/authority.js.map +1 -0
- package/src/workload-roles/aws-adapter.d.ts +99 -0
- package/src/workload-roles/aws-adapter.js +416 -0
- package/src/workload-roles/aws-adapter.js.map +1 -0
- package/src/workload-roles/aws-internal-handler.d.ts +27 -0
- package/src/workload-roles/aws-internal-handler.js +58 -0
- package/src/workload-roles/aws-internal-handler.js.map +1 -0
- package/src/workload-roles/aws-s3-state.d.ts +52 -0
- package/src/workload-roles/aws-s3-state.js +164 -0
- package/src/workload-roles/aws-s3-state.js.map +1 -0
- package/src/workload-roles/aws-sdk-control-plane.d.ts +12 -0
- package/src/workload-roles/aws-sdk-control-plane.js +291 -0
- package/src/workload-roles/aws-sdk-control-plane.js.map +1 -0
- package/src/workload-roles/boundary.d.ts +33 -0
- package/src/workload-roles/boundary.js +130 -0
- package/src/workload-roles/boundary.js.map +1 -0
- package/src/workload-roles/convergence.d.ts +66 -0
- package/src/workload-roles/convergence.js +186 -0
- package/src/workload-roles/convergence.js.map +1 -0
- package/src/workload-roles/effective-policy.d.ts +51 -0
- package/src/workload-roles/effective-policy.js +183 -0
- package/src/workload-roles/effective-policy.js.map +1 -0
- package/src/workload-roles/handler.d.ts +43 -0
- package/src/workload-roles/handler.js +130 -0
- package/src/workload-roles/handler.js.map +1 -0
- package/src/workload-roles/history.d.ts +47 -0
- package/src/workload-roles/history.js +324 -0
- package/src/workload-roles/history.js.map +1 -0
- package/src/workload-roles/index.d.ts +17 -0
- package/src/workload-roles/index.js +21 -0
- package/src/workload-roles/index.js.map +1 -0
- package/src/workload-roles/injection.d.ts +119 -0
- package/src/workload-roles/injection.js +495 -0
- package/src/workload-roles/injection.js.map +1 -0
- package/src/workload-roles/manifest.d.ts +54 -0
- package/src/workload-roles/manifest.js +343 -0
- package/src/workload-roles/manifest.js.map +1 -0
- package/src/workload-roles/provisioner.d.ts +70 -0
- package/src/workload-roles/provisioner.js +231 -0
- package/src/workload-roles/provisioner.js.map +1 -0
- package/src/workload-roles/registration.d.ts +101 -0
- package/src/workload-roles/registration.js +457 -0
- package/src/workload-roles/registration.js.map +1 -0
- package/src/workload-roles/stage-boundary.d.ts +31 -0
- package/src/workload-roles/stage-boundary.js +208 -0
- package/src/workload-roles/stage-boundary.js.map +1 -0
- package/src/workload-roles/standard-slice.d.ts +54 -0
- package/src/workload-roles/standard-slice.js +252 -0
- package/src/workload-roles/standard-slice.js.map +1 -0
- package/migrations/standard-pre-v1-to-v1.md +0 -11
- package/src/foundation/aurora-logical-database.d.ts +0 -76
- package/src/foundation/aurora-logical-database.js +0 -419
- package/src/foundation/aurora-logical-database.js.map +0 -1
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeveloperAgentGeneratorPlanError = void 0;
|
|
4
|
+
exports.parseDeveloperAgentGeneratorInput = parseDeveloperAgentGeneratorInput;
|
|
5
|
+
exports.generatorContextSelection = generatorContextSelection;
|
|
6
|
+
exports.developerAgentWorkspaceVerificationTarget = developerAgentWorkspaceVerificationTarget;
|
|
7
|
+
exports.developerAgentUpgradeGeneratorOptions = developerAgentUpgradeGeneratorOptions;
|
|
8
|
+
exports.assertDeveloperAgentUpgradePreviewContext = assertDeveloperAgentUpgradePreviewContext;
|
|
9
|
+
exports.bindDeveloperAgentGeneratorPlan = bindDeveloperAgentGeneratorPlan;
|
|
10
|
+
exports.rebindDeveloperAgentGeneratorPlan = rebindDeveloperAgentGeneratorPlan;
|
|
11
|
+
const node_util_1 = require("node:util");
|
|
12
|
+
const node_fs_1 = require("node:fs");
|
|
13
|
+
const node_path_1 = require("node:path");
|
|
14
|
+
const index_js_1 = require("../blueprints/index.js");
|
|
15
|
+
const function_js_1 = require("../generators/function/function.js");
|
|
16
|
+
const logging_registry_js_1 = require("../generators/logging-registry.js");
|
|
17
|
+
const built_in_plan_js_1 = require("../generators/slice/built-in-plan.js");
|
|
18
|
+
const workload_js_1 = require("../generators/workload/workload.js");
|
|
19
|
+
const performance_registration_js_1 = require("../generators/workload/performance-registration.js");
|
|
20
|
+
const reliability_registration_js_1 = require("../generators/workload/reliability-registration.js");
|
|
21
|
+
const ordering_js_1 = require("./ordering.js");
|
|
22
|
+
const preview_source_js_1 = require("./preview-source.js");
|
|
23
|
+
const workspace_path_js_1 = require("./workspace-path.js");
|
|
24
|
+
const SLUG = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
|
|
25
|
+
const DIGEST = /^sha256:[a-f0-9]{64}$/;
|
|
26
|
+
const SAFE_PATH = /^(?![\\/])(?![A-Za-z]:[\\/])(?!.*(?:^|[\\/])\.\.(?:[\\/]|$)).+$/;
|
|
27
|
+
const PREVIEW_REFERENCE = /^\.ebk\/agent\/previews\/[a-z][a-z0-9-]{0,62}\.json$/;
|
|
28
|
+
const MAX_NAME_LENGTH = 63;
|
|
29
|
+
const PRODUCT_OWNERSHIP_PATH = '.ebk/ownership.json';
|
|
30
|
+
const RELEASE_REGISTRY_PATH = 'operations/release.json';
|
|
31
|
+
class DeveloperAgentGeneratorPlanError extends Error {
|
|
32
|
+
classification;
|
|
33
|
+
constructor(classification, message) {
|
|
34
|
+
super(message);
|
|
35
|
+
this.classification = classification;
|
|
36
|
+
this.name = 'DeveloperAgentGeneratorPlanError';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.DeveloperAgentGeneratorPlanError = DeveloperAgentGeneratorPlanError;
|
|
40
|
+
function invalidGeneratorInput(message) {
|
|
41
|
+
throw new DeveloperAgentGeneratorPlanError('invalid-input', message);
|
|
42
|
+
}
|
|
43
|
+
function unavailableGeneratorDestination(message) {
|
|
44
|
+
throw new DeveloperAgentGeneratorPlanError('prerequisite-missing', message);
|
|
45
|
+
}
|
|
46
|
+
function isRecord(value) {
|
|
47
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
48
|
+
}
|
|
49
|
+
function exactKeys(value, required, optional = []) {
|
|
50
|
+
if (!isRecord(value))
|
|
51
|
+
return false;
|
|
52
|
+
const allowed = new Set([...required, ...optional]);
|
|
53
|
+
return (required.every((field) => Object.prototype.hasOwnProperty.call(value, field)) && Object.keys(value).every((field) => allowed.has(field)));
|
|
54
|
+
}
|
|
55
|
+
function boundedSlug(value, label) {
|
|
56
|
+
if (typeof value !== 'string' ||
|
|
57
|
+
value.length === 0 ||
|
|
58
|
+
value.length > MAX_NAME_LENGTH ||
|
|
59
|
+
value !== value.trim() ||
|
|
60
|
+
!SLUG.test(value)) {
|
|
61
|
+
return invalidGeneratorInput(`${label} must be a lowercase hyphenated identifier of at most ${MAX_NAME_LENGTH} characters.`);
|
|
62
|
+
}
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
function previewReference(value) {
|
|
66
|
+
if (!exactKeys(value, ['digest', 'reference']) ||
|
|
67
|
+
typeof value.digest !== 'string' ||
|
|
68
|
+
!DIGEST.test(value.digest) ||
|
|
69
|
+
typeof value.reference !== 'string' ||
|
|
70
|
+
value.reference.length > 1024 ||
|
|
71
|
+
!PREVIEW_REFERENCE.test(value.reference)) {
|
|
72
|
+
return invalidGeneratorInput('Upgrade preview must contain an exact SHA-256 digest and an ignored .ebk/agent/previews/ reference.');
|
|
73
|
+
}
|
|
74
|
+
return { digest: value.digest, reference: value.reference };
|
|
75
|
+
}
|
|
76
|
+
function workspacePathExists(context, path) {
|
|
77
|
+
const root = (0, node_fs_1.realpathSync)(context.workspace.repositoryRoot);
|
|
78
|
+
const segments = path.split('/');
|
|
79
|
+
let current = root;
|
|
80
|
+
for (let index = 0; index < segments.length; index += 1) {
|
|
81
|
+
current = (0, node_path_1.resolve)(current, segments[index]);
|
|
82
|
+
try {
|
|
83
|
+
const entry = (0, node_fs_1.lstatSync)(current);
|
|
84
|
+
if (entry.isSymbolicLink()) {
|
|
85
|
+
return unavailableGeneratorDestination(`Generator collision inspection refuses symbolic-link path ${segments
|
|
86
|
+
.slice(0, index + 1)
|
|
87
|
+
.join('/')}.`);
|
|
88
|
+
}
|
|
89
|
+
const real = (0, node_fs_1.realpathSync)(current);
|
|
90
|
+
const fromRoot = (0, node_path_1.relative)(root, real);
|
|
91
|
+
if (fromRoot === '..' ||
|
|
92
|
+
fromRoot.startsWith(`..${node_path_1.sep}`) ||
|
|
93
|
+
(0, node_path_1.isAbsolute)(fromRoot) ||
|
|
94
|
+
fromRoot.split(node_path_1.sep).join('/') !== segments.slice(0, index + 1).join('/')) {
|
|
95
|
+
return unavailableGeneratorDestination(`Generator collision inspection refuses non-canonical path ${path}.`);
|
|
96
|
+
}
|
|
97
|
+
if (index < segments.length - 1 && !entry.isDirectory()) {
|
|
98
|
+
return unavailableGeneratorDestination(`Generator collision inspection found a non-directory ancestor for ${path}.`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
if (error &&
|
|
103
|
+
typeof error === 'object' &&
|
|
104
|
+
'code' in error &&
|
|
105
|
+
error.code === 'ENOENT') {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
throw error;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
function serviceShouldOwnProtectedLoadAdapter(context, slice) {
|
|
114
|
+
const descriptorPath = node_path_1.posix.join('packages', slice, 'operations/performance.json');
|
|
115
|
+
if (!workspacePathExists(context, descriptorPath)) {
|
|
116
|
+
return unavailableGeneratorDestination(`Generator planning requires ${descriptorPath}.`);
|
|
117
|
+
}
|
|
118
|
+
const absolute = (0, node_path_1.resolve)((0, node_fs_1.realpathSync)(context.workspace.repositoryRoot), ...descriptorPath.split('/'));
|
|
119
|
+
let value;
|
|
120
|
+
try {
|
|
121
|
+
value = JSON.parse((0, node_fs_1.readFileSync)(absolute, 'utf8'));
|
|
122
|
+
}
|
|
123
|
+
catch {
|
|
124
|
+
return unavailableGeneratorDestination(`Generator planning cannot parse ${descriptorPath}.`);
|
|
125
|
+
}
|
|
126
|
+
const load = isRecord(value) ? value['load'] : undefined;
|
|
127
|
+
if (!isRecord(load)) {
|
|
128
|
+
return unavailableGeneratorDestination(`Generator planning cannot reconcile Service adapter authority in ${descriptorPath}.`);
|
|
129
|
+
}
|
|
130
|
+
if (load['serviceAdapterStatus'] ===
|
|
131
|
+
'requires-adopter-service-runtime-endpoint' &&
|
|
132
|
+
load['serviceAdapterOwner'] === null) {
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
if (load['serviceAdapterStatus'] ===
|
|
136
|
+
'managed-generated-service-runtime-endpoint' &&
|
|
137
|
+
typeof load['serviceAdapterOwner'] === 'string' &&
|
|
138
|
+
SLUG.test(load['serviceAdapterOwner']) &&
|
|
139
|
+
workspacePathExists(context, node_path_1.posix.join('packages', slice, 'services', load['serviceAdapterOwner'], 'src/performance.ts'))) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
return unavailableGeneratorDestination(`Generator planning cannot reconcile Service adapter authority in ${descriptorPath}.`);
|
|
143
|
+
}
|
|
144
|
+
function parseDeveloperAgentGeneratorInput(value) {
|
|
145
|
+
if (!isRecord(value) || typeof value.generator !== 'string') {
|
|
146
|
+
return invalidGeneratorInput('Generator input must be one closed object with a stable generator discriminator.');
|
|
147
|
+
}
|
|
148
|
+
if (value.generator === 'slice') {
|
|
149
|
+
if (!exactKeys(value, ['generator', 'name'])) {
|
|
150
|
+
return invalidGeneratorInput('Slice generator input accepts only generator and name; Blueprint and raw input fields are not accepted.');
|
|
151
|
+
}
|
|
152
|
+
return { generator: 'slice', name: boundedSlug(value.name, 'Slice name') };
|
|
153
|
+
}
|
|
154
|
+
if (value.generator === 'function' ||
|
|
155
|
+
value.generator === 'service' ||
|
|
156
|
+
value.generator === 'job') {
|
|
157
|
+
const generator = value.generator;
|
|
158
|
+
if (!exactKeys(value, ['feature', 'generator', 'name', 'slice'])) {
|
|
159
|
+
return invalidGeneratorInput(`${generator} generator input accepts exactly feature, generator, name, and slice.`);
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
feature: boundedSlug(value.feature, 'Feature'),
|
|
163
|
+
generator,
|
|
164
|
+
name: boundedSlug(value.name, `${generator} name`),
|
|
165
|
+
slice: boundedSlug(value.slice, 'Slice name'),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
if (value.generator === 'upgrade') {
|
|
169
|
+
if (!exactKeys(value, ['generator', 'name'], ['preview'])) {
|
|
170
|
+
return invalidGeneratorInput('Upgrade generator input accepts only generator, name, and an optional caller-retained, digest-bound preview reference.');
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
generator: 'upgrade',
|
|
174
|
+
name: boundedSlug(value.name, 'Upgrade target'),
|
|
175
|
+
...(value.preview === undefined
|
|
176
|
+
? {}
|
|
177
|
+
: { preview: previewReference(value.preview) }),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
return invalidGeneratorInput(`Generator ${String(value.generator)} is not in the stable typed generator surface.`);
|
|
181
|
+
}
|
|
182
|
+
function generatorContextSelection(input) {
|
|
183
|
+
if (input.generator === 'function' ||
|
|
184
|
+
input.generator === 'service' ||
|
|
185
|
+
input.generator === 'job') {
|
|
186
|
+
return {
|
|
187
|
+
selectedFeature: input.feature,
|
|
188
|
+
selectedProjects: [input.slice],
|
|
189
|
+
selectedSlice: input.slice,
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
if (input.generator === 'upgrade' &&
|
|
193
|
+
input.name !== 'workspace' &&
|
|
194
|
+
input.name !== 'foundation') {
|
|
195
|
+
return {
|
|
196
|
+
selectedProjects: [input.name, 'foundation'].sort(),
|
|
197
|
+
selectedSlice: input.name,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
if (input.generator === 'upgrade' && input.name === 'foundation') {
|
|
201
|
+
return { selectedProjects: ['foundation'] };
|
|
202
|
+
}
|
|
203
|
+
return {};
|
|
204
|
+
}
|
|
205
|
+
function surface(path, ownershipMode = 'managed') {
|
|
206
|
+
return { ownershipMode, path };
|
|
207
|
+
}
|
|
208
|
+
function sortedSurfaces(entries) {
|
|
209
|
+
const byPath = new Map();
|
|
210
|
+
for (const entry of entries) {
|
|
211
|
+
if (!SAFE_PATH.test(entry.path) ||
|
|
212
|
+
!(0, workspace_path_js_1.isCanonicalDeveloperAgentWorkspacePath)(entry.path)) {
|
|
213
|
+
throw new Error(`Generator planner produced unsafe workspace path ${entry.path}.`);
|
|
214
|
+
}
|
|
215
|
+
const previous = byPath.get(entry.path);
|
|
216
|
+
if (previous && previous.ownershipMode !== entry.ownershipMode) {
|
|
217
|
+
throw new Error(`Generator planner produced conflicting ownership for ${entry.path}.`);
|
|
218
|
+
}
|
|
219
|
+
byPath.set(entry.path, entry);
|
|
220
|
+
}
|
|
221
|
+
return [...byPath.values()].sort((left, right) => (0, ordering_js_1.compareDeveloperAgentStrings)(left.path, right.path));
|
|
222
|
+
}
|
|
223
|
+
function prefixedSurfaces(slice, paths) {
|
|
224
|
+
return paths.map(({ mode, path }) => surface(node_path_1.posix.join('packages', slice, path), mode ?? 'managed'));
|
|
225
|
+
}
|
|
226
|
+
function requireSliceContext(context, slice, feature, rebindCompleted = false) {
|
|
227
|
+
const project = context.projects.find(({ name, tags }) => name === slice && tags.includes('type:slice'));
|
|
228
|
+
if (!project ||
|
|
229
|
+
context.selection.slice !== slice ||
|
|
230
|
+
(feature !== undefined && context.selection.feature !== feature)) {
|
|
231
|
+
throw new DeveloperAgentGeneratorPlanError(rebindCompleted ? 'ownership-conflict' : 'invalid-input', 'Generator Slice and feature inputs must exactly match repository-inspected context.');
|
|
232
|
+
}
|
|
233
|
+
return project;
|
|
234
|
+
}
|
|
235
|
+
function contracts(project, classes, existing = []) {
|
|
236
|
+
const values = [
|
|
237
|
+
...existing,
|
|
238
|
+
...classes.map((contractClass) => ({
|
|
239
|
+
class: contractClass,
|
|
240
|
+
reference: `${project}:${contractClass}`,
|
|
241
|
+
})),
|
|
242
|
+
];
|
|
243
|
+
const seen = new Set();
|
|
244
|
+
return values
|
|
245
|
+
.filter(({ class: contractClass, reference }) => {
|
|
246
|
+
const key = `${contractClass}\0${reference}`;
|
|
247
|
+
if (seen.has(key))
|
|
248
|
+
return false;
|
|
249
|
+
seen.add(key);
|
|
250
|
+
return true;
|
|
251
|
+
})
|
|
252
|
+
.sort((left, right) => (0, ordering_js_1.compareDeveloperAgentStrings)(left.class, right.class) ||
|
|
253
|
+
(0, ordering_js_1.compareDeveloperAgentStrings)(left.reference, right.reference));
|
|
254
|
+
}
|
|
255
|
+
function commandFor(generator, mode, args) {
|
|
256
|
+
return {
|
|
257
|
+
args: [
|
|
258
|
+
'nx',
|
|
259
|
+
'generate',
|
|
260
|
+
`@empire-builder-kit/nx:${generator}`,
|
|
261
|
+
...args,
|
|
262
|
+
'--interactive=false',
|
|
263
|
+
...(mode === 'preview' ? ['--dry-run'] : []),
|
|
264
|
+
],
|
|
265
|
+
executable: 'pnpm',
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
function canonicalProjectIdentity(value) {
|
|
269
|
+
return value.normalize('NFC').toLocaleLowerCase('en-US');
|
|
270
|
+
}
|
|
271
|
+
function requireAvailableProspectiveProjectIds(context, projectIds, label) {
|
|
272
|
+
const existing = new Set(context.projectNames.map((name) => canonicalProjectIdentity(name)));
|
|
273
|
+
for (const projectId of projectIds) {
|
|
274
|
+
if (existing.has(canonicalProjectIdentity(projectId))) {
|
|
275
|
+
return invalidGeneratorInput(`${label} would generate Nx project ${projectId}, which already exists or aliases an identity in the full inspected Nx graph.`);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
function developerAgentWorkspaceVerificationTarget(context) {
|
|
280
|
+
const identity = context.workspace.identity;
|
|
281
|
+
if (identity.length === 0 ||
|
|
282
|
+
identity.length > MAX_NAME_LENGTH ||
|
|
283
|
+
!SLUG.test(identity)) {
|
|
284
|
+
return invalidGeneratorInput('Generator verification requires one exact normalized workspace identity.');
|
|
285
|
+
}
|
|
286
|
+
const selectedWorkspaceProjects = context.projects.filter(({ tags }) => tags.includes('scope:workspace'));
|
|
287
|
+
if (selectedWorkspaceProjects.length > 1 ||
|
|
288
|
+
(selectedWorkspaceProjects.length === 1 &&
|
|
289
|
+
selectedWorkspaceProjects[0].name !== identity)) {
|
|
290
|
+
return invalidGeneratorInput('Generator verification requires the inspected workspace project to match the exact workspace identity.');
|
|
291
|
+
}
|
|
292
|
+
return `${identity}:verify`;
|
|
293
|
+
}
|
|
294
|
+
function requireMatchingOperation(operation, input) {
|
|
295
|
+
if (operation.owner !== 'nx-generator' ||
|
|
296
|
+
operation.generator?.generator !== input.generator ||
|
|
297
|
+
operation.id !==
|
|
298
|
+
`generator:${input.generator}:${operation.generator?.mode ?? ''}`) {
|
|
299
|
+
return invalidGeneratorInput('Generator input must exactly match the selected typed generator operation.');
|
|
300
|
+
}
|
|
301
|
+
return operation.generator;
|
|
302
|
+
}
|
|
303
|
+
function slicePlan(context, input, mode, rebindCompleted = false) {
|
|
304
|
+
if (!rebindCompleted &&
|
|
305
|
+
(context.selection.projectInventory !== 'full' ||
|
|
306
|
+
context.selection.slice !== undefined ||
|
|
307
|
+
context.selection.feature !== undefined)) {
|
|
308
|
+
return invalidGeneratorInput('New Slice generation requires an unnarrowed, full inspected Nx project inventory.');
|
|
309
|
+
}
|
|
310
|
+
if (!rebindCompleted &&
|
|
311
|
+
workspacePathExists(context, node_path_1.posix.join('packages', input.name))) {
|
|
312
|
+
return unavailableGeneratorDestination(`Product Slice ${input.name} collides with an existing packages/${input.name} path.`);
|
|
313
|
+
}
|
|
314
|
+
const blueprint = (0, index_js_1.resolveBlueprint)({
|
|
315
|
+
engineVersion: context.workspace.frameworkVersion,
|
|
316
|
+
reference: 'standard',
|
|
317
|
+
workspaceRoot: context.workspace.repositoryRoot,
|
|
318
|
+
});
|
|
319
|
+
if (blueprint.source !== 'built-in') {
|
|
320
|
+
throw new Error('Typed Slice planning is restricted to the built-in Standard Blueprint.');
|
|
321
|
+
}
|
|
322
|
+
const plan = (0, built_in_plan_js_1.createBuiltInSlicePlan)(input.name, `@${context.workspace.identity}`, context.workspace.frameworkVersion, blueprint.manifest, {});
|
|
323
|
+
if (!rebindCompleted) {
|
|
324
|
+
requireAvailableProspectiveProjectIds(context, plan.ownership.projects, `Product Slice ${input.name}`);
|
|
325
|
+
}
|
|
326
|
+
const ownership = new Map(plan.ownership.paths.map(({ mode: pathMode, path }) => [path, pathMode]));
|
|
327
|
+
const root = node_path_1.posix.join('packages', input.name);
|
|
328
|
+
const generatedSurfaces = sortedSurfaces([
|
|
329
|
+
...Object.keys(plan.files).map((path) => surface(node_path_1.posix.join(root, path), ownership.get(path) ?? 'managed')),
|
|
330
|
+
surface('pnpm-lock.yaml', 'adopter-owned'),
|
|
331
|
+
]);
|
|
332
|
+
const prospectiveVerification = mode === 'apply'
|
|
333
|
+
? plan.ownership.projects.map((project) => `${project}:verify`).sort()
|
|
334
|
+
: [];
|
|
335
|
+
return {
|
|
336
|
+
command: commandFor('slice', mode, [
|
|
337
|
+
`--name=${input.name}`,
|
|
338
|
+
'--blueprint=standard',
|
|
339
|
+
'--inputs={}',
|
|
340
|
+
'--skipFormat=false',
|
|
341
|
+
'--skipInstall=false',
|
|
342
|
+
]),
|
|
343
|
+
contracts: contracts(input.name, [
|
|
344
|
+
'async',
|
|
345
|
+
'authorization',
|
|
346
|
+
'configuration',
|
|
347
|
+
'data',
|
|
348
|
+
'database',
|
|
349
|
+
'event',
|
|
350
|
+
'frontend',
|
|
351
|
+
'infrastructure',
|
|
352
|
+
'performance',
|
|
353
|
+
'release',
|
|
354
|
+
'reliability',
|
|
355
|
+
'supply-chain',
|
|
356
|
+
'synchronous',
|
|
357
|
+
]),
|
|
358
|
+
generatedSurfaces,
|
|
359
|
+
projects: [...plan.ownership.projects],
|
|
360
|
+
prospectiveVerification,
|
|
361
|
+
verification: [
|
|
362
|
+
...new Set([
|
|
363
|
+
...prospectiveVerification,
|
|
364
|
+
developerAgentWorkspaceVerificationTarget(context),
|
|
365
|
+
]),
|
|
366
|
+
].sort(),
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
function functionPlan(context, input, mode, rebindCompleted = false) {
|
|
370
|
+
requireSliceContext(context, input.slice, input.feature, rebindCompleted);
|
|
371
|
+
if (!rebindCompleted) {
|
|
372
|
+
for (const path of [
|
|
373
|
+
node_path_1.posix.join('packages', input.slice, 'api', `${input.name}.ts`),
|
|
374
|
+
node_path_1.posix.join('packages', input.slice, 'infra/functions', `${input.name}.ts`),
|
|
375
|
+
]) {
|
|
376
|
+
if (workspacePathExists(context, path)) {
|
|
377
|
+
return unavailableGeneratorDestination(`Function ${input.name} collides with existing ${path}.`);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
const plan = (0, function_js_1.createFunctionFilePlan)(context.workspace.identity, input.slice, input.name, input.feature);
|
|
382
|
+
const generatedSurfaces = sortedSurfaces([
|
|
383
|
+
...prefixedSurfaces(input.slice, plan.paths),
|
|
384
|
+
...prefixedSurfaces(input.slice, [
|
|
385
|
+
{ path: 'infra/product.ts' },
|
|
386
|
+
{ path: 'infra/workload-roles/candidate.ts' },
|
|
387
|
+
{ path: 'infra/workload-roles/effective-intent.ts' },
|
|
388
|
+
{ path: logging_registry_js_1.SLICE_LOGGING_REGISTRY_PATH },
|
|
389
|
+
{ path: PRODUCT_OWNERSHIP_PATH },
|
|
390
|
+
]),
|
|
391
|
+
]);
|
|
392
|
+
return {
|
|
393
|
+
command: commandFor('function', mode, [
|
|
394
|
+
`--name=${input.name}`,
|
|
395
|
+
`--slice=${input.slice}`,
|
|
396
|
+
`--feature=${input.feature}`,
|
|
397
|
+
'--skipFormat=false',
|
|
398
|
+
]),
|
|
399
|
+
contracts: contracts(input.slice, ['authorization', 'infrastructure', 'reliability', 'synchronous'], context.selection.contracts),
|
|
400
|
+
generatedSurfaces,
|
|
401
|
+
projects: [input.slice],
|
|
402
|
+
prospectiveVerification: [],
|
|
403
|
+
verification: [
|
|
404
|
+
...new Set([
|
|
405
|
+
`${input.slice}:verify`,
|
|
406
|
+
developerAgentWorkspaceVerificationTarget(context),
|
|
407
|
+
]),
|
|
408
|
+
].sort(),
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
function workloadPlan(context, input, mode, rebindCompleted = false) {
|
|
412
|
+
requireSliceContext(context, input.slice, input.feature, rebindCompleted);
|
|
413
|
+
const kind = input.generator;
|
|
414
|
+
const workloadRoot = node_path_1.posix.join('packages', input.slice, kind === 'service' ? 'services' : 'jobs', input.name);
|
|
415
|
+
if (!rebindCompleted && workspacePathExists(context, workloadRoot)) {
|
|
416
|
+
return unavailableGeneratorDestination(`${kind} ${input.name} collides with existing ${workloadRoot}.`);
|
|
417
|
+
}
|
|
418
|
+
const ownsProtectedLoadAdapter = kind === 'service'
|
|
419
|
+
? serviceShouldOwnProtectedLoadAdapter(context, input.slice)
|
|
420
|
+
: false;
|
|
421
|
+
const plan = (0, workload_js_1.createWorkloadFilePlan)(context.workspace.identity, input.slice, input.name, kind, context.workspace.frameworkVersion, input.feature, ownsProtectedLoadAdapter);
|
|
422
|
+
if (!rebindCompleted) {
|
|
423
|
+
requireAvailableProspectiveProjectIds(context, [plan.project], `${kind} ${input.name}`);
|
|
424
|
+
}
|
|
425
|
+
const generatedSurfaces = sortedSurfaces([
|
|
426
|
+
...prefixedSurfaces(input.slice, plan.paths),
|
|
427
|
+
...prefixedSurfaces(input.slice, [
|
|
428
|
+
{ path: 'infra/product.ts' },
|
|
429
|
+
{ path: 'infra/workload-roles/candidate.ts' },
|
|
430
|
+
{ path: 'infra/workload-roles/effective-intent.ts' },
|
|
431
|
+
{ path: logging_registry_js_1.SLICE_LOGGING_REGISTRY_PATH },
|
|
432
|
+
{ mode: 'seeded', path: performance_registration_js_1.WORKLOAD_PERFORMANCE_POLICY_PATH },
|
|
433
|
+
...(ownsProtectedLoadAdapter
|
|
434
|
+
? [
|
|
435
|
+
{ path: performance_registration_js_1.WORKLOAD_PERFORMANCE_OPERATIONS_PATH },
|
|
436
|
+
{
|
|
437
|
+
mode: 'seeded',
|
|
438
|
+
path: performance_registration_js_1.WORKLOAD_PERFORMANCE_SCENARIO_PATH,
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
mode: 'seeded',
|
|
442
|
+
path: performance_registration_js_1.WORKLOAD_PERFORMANCE_SECRET_ACCESS_PATH,
|
|
443
|
+
},
|
|
444
|
+
]
|
|
445
|
+
: []),
|
|
446
|
+
{ mode: 'seeded', path: reliability_registration_js_1.WORKLOAD_RELIABILITY_REGISTRY_PATH },
|
|
447
|
+
{ mode: 'seeded', path: RELEASE_REGISTRY_PATH },
|
|
448
|
+
{ path: PRODUCT_OWNERSHIP_PATH },
|
|
449
|
+
]),
|
|
450
|
+
surface('pnpm-lock.yaml', 'adopter-owned'),
|
|
451
|
+
]);
|
|
452
|
+
const prospectiveVerification = mode === 'apply' ? [`${plan.project}:verify`] : [];
|
|
453
|
+
return {
|
|
454
|
+
command: commandFor(kind, mode, [
|
|
455
|
+
`--name=${input.name}`,
|
|
456
|
+
`--slice=${input.slice}`,
|
|
457
|
+
`--feature=${input.feature}`,
|
|
458
|
+
'--skipFormat=false',
|
|
459
|
+
'--skipInstall=false',
|
|
460
|
+
]),
|
|
461
|
+
contracts: contracts(input.slice, [
|
|
462
|
+
'async',
|
|
463
|
+
...(kind === 'service' ? ['synchronous'] : []),
|
|
464
|
+
'configuration',
|
|
465
|
+
'infrastructure',
|
|
466
|
+
'performance',
|
|
467
|
+
'release',
|
|
468
|
+
'reliability',
|
|
469
|
+
'supply-chain',
|
|
470
|
+
], context.selection.contracts),
|
|
471
|
+
generatedSurfaces,
|
|
472
|
+
projects: [input.slice, plan.project].sort(),
|
|
473
|
+
prospectiveVerification,
|
|
474
|
+
verification: [
|
|
475
|
+
...new Set([
|
|
476
|
+
`${input.slice}:verify`,
|
|
477
|
+
...prospectiveVerification,
|
|
478
|
+
developerAgentWorkspaceVerificationTarget(context),
|
|
479
|
+
]),
|
|
480
|
+
].sort(),
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
function requireUpgradeProject(context, name) {
|
|
484
|
+
const project = name === 'workspace'
|
|
485
|
+
? context.projects.find(({ tags }) => tags.includes('scope:workspace'))
|
|
486
|
+
: name === 'foundation'
|
|
487
|
+
? context.projects.find(({ tags }) => tags.includes('scope:foundation'))
|
|
488
|
+
: context.projects.find(({ name: projectName, tags }) => projectName === name && tags.includes('type:slice'));
|
|
489
|
+
if (!project) {
|
|
490
|
+
return invalidGeneratorInput(`Upgrade target ${name} is not an existing owned workspace, Foundation, or Product Slice in inspected context.`);
|
|
491
|
+
}
|
|
492
|
+
if (name !== 'workspace' &&
|
|
493
|
+
name !== 'foundation' &&
|
|
494
|
+
context.selection.slice !== name) {
|
|
495
|
+
return invalidGeneratorInput('Product Slice upgrade target must exactly match the inspected Slice.');
|
|
496
|
+
}
|
|
497
|
+
return project;
|
|
498
|
+
}
|
|
499
|
+
function developerAgentUpgradeGeneratorOptions(context, target) {
|
|
500
|
+
if (target === 'workspace' || target === 'foundation')
|
|
501
|
+
return {};
|
|
502
|
+
const state = context.workspace.ownershipVersions.find((entry) => entry.kind === 'slice' && entry.target === target);
|
|
503
|
+
if (!state?.blueprintName || !state.installedBlueprintVersion) {
|
|
504
|
+
throw new DeveloperAgentGeneratorPlanError('prerequisite-missing', `Upgrade target ${target} requires exact installed Blueprint identity.`);
|
|
505
|
+
}
|
|
506
|
+
return {
|
|
507
|
+
blueprint: state.blueprintName === '@empire-builder-kit/blueprint-standard'
|
|
508
|
+
? 'standard'
|
|
509
|
+
: `${state.blueprintName}@${state.installedBlueprintVersion}`,
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
function requireUpgradePreview(context, input, preview) {
|
|
513
|
+
if (!input.preview || !preview) {
|
|
514
|
+
return invalidGeneratorInput('Upgrade apply requires a caller-retained, digest-bound preview artifact that is revalidated and independently re-derived before apply.');
|
|
515
|
+
}
|
|
516
|
+
assertDeveloperAgentUpgradePreviewContext(context, preview);
|
|
517
|
+
if (preview.generator !== 'upgrade' ||
|
|
518
|
+
preview.operationId !== 'generator:upgrade:preview' ||
|
|
519
|
+
preview.input.generator !== 'upgrade' ||
|
|
520
|
+
preview.input.name !== input.name) {
|
|
521
|
+
return invalidGeneratorInput('Upgrade preview artifact does not match the normalized Upgrade input.');
|
|
522
|
+
}
|
|
523
|
+
return preview.generatedSurfaces;
|
|
524
|
+
}
|
|
525
|
+
function assertDeveloperAgentUpgradePreviewContext(context, preview) {
|
|
526
|
+
const expectedSource = (0, preview_source_js_1.developerAgentGeneratorPreviewSource)(context);
|
|
527
|
+
if (context.git.dirty) {
|
|
528
|
+
throw new DeveloperAgentGeneratorPlanError('dirty-worktree', 'Upgrade preview authorization requires a clean worktree.');
|
|
529
|
+
}
|
|
530
|
+
if (context.warnings.some(({ classification }) => classification === 'stale-base')) {
|
|
531
|
+
throw new DeveloperAgentGeneratorPlanError('stale-base', 'Upgrade preview authorization requires current default-base facts.');
|
|
532
|
+
}
|
|
533
|
+
if (!(0, node_util_1.isDeepStrictEqual)(preview.source, expectedSource)) {
|
|
534
|
+
throw new DeveloperAgentGeneratorPlanError(preview.source.commit !== context.git.commit
|
|
535
|
+
? 'stale-base'
|
|
536
|
+
: 'generated-drift', 'Upgrade preview artifact does not match current framework, Blueprint, candidate, ownership-version, and workspace facts.');
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
function upgradePlan(context, input, mode, preview, rebindCompleted = false) {
|
|
540
|
+
const project = requireUpgradeProject(context, input.name);
|
|
541
|
+
const upgradeOptions = developerAgentUpgradeGeneratorOptions(context, input.name);
|
|
542
|
+
const externalBlueprint = upgradeOptions.blueprint !== undefined &&
|
|
543
|
+
upgradeOptions.blueprint !== 'standard';
|
|
544
|
+
if (mode === 'preview' && input.preview) {
|
|
545
|
+
return invalidGeneratorInput('Upgrade preview operation does not accept an earlier preview reference.');
|
|
546
|
+
}
|
|
547
|
+
if (mode === 'apply' && !input.preview) {
|
|
548
|
+
return invalidGeneratorInput('Upgrade apply requires a caller-retained, digest-bound preview artifact that is revalidated and independently re-derived before apply.');
|
|
549
|
+
}
|
|
550
|
+
const generatedSurfaces = mode === 'apply' && !rebindCompleted
|
|
551
|
+
? sortedSurfaces([...requireUpgradePreview(context, input, preview)])
|
|
552
|
+
: [];
|
|
553
|
+
const applySurfaces = mode === 'apply'
|
|
554
|
+
? sortedSurfaces([
|
|
555
|
+
...generatedSurfaces,
|
|
556
|
+
surface('pnpm-lock.yaml', 'adopter-owned'),
|
|
557
|
+
])
|
|
558
|
+
: generatedSurfaces;
|
|
559
|
+
return {
|
|
560
|
+
command: commandFor('upgrade', mode, [
|
|
561
|
+
`--name=${input.name}`,
|
|
562
|
+
...(upgradeOptions.blueprint
|
|
563
|
+
? [`--blueprint=${upgradeOptions.blueprint}`]
|
|
564
|
+
: []),
|
|
565
|
+
`--apply=${mode === 'apply' ? 'true' : 'false'}`,
|
|
566
|
+
...(mode === 'apply'
|
|
567
|
+
? [
|
|
568
|
+
`--developerAgentPreview=${input.preview.reference}`,
|
|
569
|
+
`--developerAgentPreviewDigest=${input.preview.digest}`,
|
|
570
|
+
]
|
|
571
|
+
: []),
|
|
572
|
+
'--skipFormat=true',
|
|
573
|
+
'--skipInstall=true',
|
|
574
|
+
]),
|
|
575
|
+
contracts: contracts(project.name, [
|
|
576
|
+
'configuration',
|
|
577
|
+
'release',
|
|
578
|
+
...(externalBlueprint ? ['supply-chain'] : []),
|
|
579
|
+
], context.selection.contracts),
|
|
580
|
+
...(mode === 'preview'
|
|
581
|
+
? {
|
|
582
|
+
authority: 'local-source',
|
|
583
|
+
}
|
|
584
|
+
: {}),
|
|
585
|
+
generatedSurfaces: applySurfaces,
|
|
586
|
+
projects: [project.name],
|
|
587
|
+
prospectiveVerification: [],
|
|
588
|
+
verification: [
|
|
589
|
+
...new Set([
|
|
590
|
+
`${project.name}:verify`,
|
|
591
|
+
developerAgentWorkspaceVerificationTarget(context),
|
|
592
|
+
]),
|
|
593
|
+
].sort(),
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
function bindDeveloperAgentGeneratorPlan(context, operation, inputValue, preview) {
|
|
597
|
+
const input = parseDeveloperAgentGeneratorInput(inputValue);
|
|
598
|
+
const generatorOperation = requireMatchingOperation(operation, input);
|
|
599
|
+
if (input.generator !== 'upgrade' && 'preview' in input) {
|
|
600
|
+
return invalidGeneratorInput('Only Upgrade apply accepts a caller-retained, digest-bound preview reference.');
|
|
601
|
+
}
|
|
602
|
+
if (input.generator === 'slice') {
|
|
603
|
+
return slicePlan(context, input, generatorOperation.mode);
|
|
604
|
+
}
|
|
605
|
+
if (input.generator === 'function') {
|
|
606
|
+
return functionPlan(context, input, generatorOperation.mode);
|
|
607
|
+
}
|
|
608
|
+
if (input.generator === 'service' || input.generator === 'job') {
|
|
609
|
+
return workloadPlan(context, input, generatorOperation.mode);
|
|
610
|
+
}
|
|
611
|
+
return upgradePlan(context, input, generatorOperation.mode, preview);
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Re-derives a completed generator's exact authority and scope from its closed
|
|
615
|
+
* typed identity plus current repository facts. Collision and preview-file
|
|
616
|
+
* checks belong to pre-mutation planning, so this path intentionally skips
|
|
617
|
+
* them while retaining the same generator plan derivation.
|
|
618
|
+
*/
|
|
619
|
+
function rebindDeveloperAgentGeneratorPlan(context, operation, inputValue) {
|
|
620
|
+
const input = parseDeveloperAgentGeneratorInput(inputValue);
|
|
621
|
+
const generatorOperation = requireMatchingOperation(operation, input);
|
|
622
|
+
const reboundContext = input.generator === 'slice' ||
|
|
623
|
+
(input.generator === 'upgrade' &&
|
|
624
|
+
(input.name === 'workspace' || input.name === 'foundation'))
|
|
625
|
+
? {
|
|
626
|
+
...context,
|
|
627
|
+
selection: {
|
|
628
|
+
contracts: [],
|
|
629
|
+
foundationCapabilities: context.selection.foundationCapabilities,
|
|
630
|
+
projectInventory: context.selection.projectInventory,
|
|
631
|
+
},
|
|
632
|
+
}
|
|
633
|
+
: context;
|
|
634
|
+
if (input.generator === 'slice') {
|
|
635
|
+
return slicePlan(reboundContext, input, generatorOperation.mode, true);
|
|
636
|
+
}
|
|
637
|
+
if (input.generator === 'function') {
|
|
638
|
+
return functionPlan(reboundContext, input, generatorOperation.mode, true);
|
|
639
|
+
}
|
|
640
|
+
if (input.generator === 'service' || input.generator === 'job') {
|
|
641
|
+
return workloadPlan(reboundContext, input, generatorOperation.mode, true);
|
|
642
|
+
}
|
|
643
|
+
return upgradePlan(reboundContext, input, generatorOperation.mode, undefined, true);
|
|
644
|
+
}
|
|
645
|
+
//# sourceMappingURL=generator-planning.js.map
|