@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,588 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BLUEPRINT_VERIFICATION_VITEST_CONFIG_SOURCE = void 0;
|
|
4
|
+
exports.assertExternalBlueprintGeneratedNxProjectConfinement = assertExternalBlueprintGeneratedNxProjectConfinement;
|
|
5
|
+
exports.assertExternalBlueprintNxProjectConfinement = assertExternalBlueprintNxProjectConfinement;
|
|
6
|
+
exports.assertDeveloperAgentNxProjectConfinement = assertDeveloperAgentNxProjectConfinement;
|
|
7
|
+
exports.isBlueprintVerificationExecutionAuthorityPath = isBlueprintVerificationExecutionAuthorityPath;
|
|
8
|
+
exports.assertNoMutableBlueprintVerificationConfiguration = assertNoMutableBlueprintVerificationConfiguration;
|
|
9
|
+
exports.workspaceHasExternalBlueprintOwnership = workspaceHasExternalBlueprintOwnership;
|
|
10
|
+
exports.externalBlueprintOwnershipRoots = externalBlueprintOwnershipRoots;
|
|
11
|
+
exports.assertBlueprintVerificationNxAuthority = assertBlueprintVerificationNxAuthority;
|
|
12
|
+
const node_fs_1 = require("node:fs");
|
|
13
|
+
const node_path_1 = require("node:path");
|
|
14
|
+
const yaml_1 = require("yaml");
|
|
15
|
+
const resolver_js_1 = require("../blueprints/resolver.js");
|
|
16
|
+
const foundation_record_js_1 = require("../ownership/foundation-record.js");
|
|
17
|
+
const record_js_1 = require("../ownership/record.js");
|
|
18
|
+
const pnpm_toolchain_authority_js_1 = require("./pnpm-toolchain-authority.js");
|
|
19
|
+
exports.BLUEPRINT_VERIFICATION_VITEST_CONFIG_SOURCE = 'export default {};\n';
|
|
20
|
+
const MAX_CONFIGURATION_BYTES = 5 * 1024 * 1024;
|
|
21
|
+
const MAX_CONFIGURATION_ENTRIES = 25_000;
|
|
22
|
+
const MAX_OWNERSHIP_BYTES = 5 * 1024 * 1024;
|
|
23
|
+
const MAX_OWNERSHIP_PACKAGES = 2_000;
|
|
24
|
+
const MAX_EXTERNAL_NX_CONFIGURATION_BYTES = 1024 * 1024;
|
|
25
|
+
const MAX_EXTERNAL_NX_CONFIGURATION_ENTRIES = 100_000;
|
|
26
|
+
const EXTERNAL_SLICE_ROOT = /^packages\/[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u;
|
|
27
|
+
const NX_PROJECT_NAME = /^(?:[a-z0-9][a-z0-9._-]{0,127}|@[a-z0-9][a-z0-9._-]{0,62}\/[a-z0-9][a-z0-9._-]{0,63})$/u;
|
|
28
|
+
const FORBIDDEN_CONFIGURATION_NAMES = new Set([
|
|
29
|
+
'.npmrc',
|
|
30
|
+
'.pnpmfile.cjs',
|
|
31
|
+
'.pnpmfile.mjs',
|
|
32
|
+
'pnpmfile.cjs',
|
|
33
|
+
'pnpmfile.mjs',
|
|
34
|
+
]);
|
|
35
|
+
const SKIPPED_CONFIGURATION_DIRECTORIES = new Set([
|
|
36
|
+
'.ebk',
|
|
37
|
+
'.git',
|
|
38
|
+
'.next',
|
|
39
|
+
'.nx',
|
|
40
|
+
'.open-next',
|
|
41
|
+
'coverage',
|
|
42
|
+
'dist',
|
|
43
|
+
'node_modules',
|
|
44
|
+
]);
|
|
45
|
+
function workspacePackageMatchers(workspaceRoot) {
|
|
46
|
+
const workspacePath = (0, node_path_1.join)(workspaceRoot, 'pnpm-workspace.yaml');
|
|
47
|
+
const source = readExternalNxConfiguration(workspacePath, 'Developer-Agent pnpm workspace package authority');
|
|
48
|
+
const document = (0, yaml_1.parseDocument)(source, { merge: false, uniqueKeys: true });
|
|
49
|
+
const packages = document.get('packages', true);
|
|
50
|
+
if (document.errors.length > 0 || !(0, yaml_1.isSeq)(packages)) {
|
|
51
|
+
throw new Error('Developer-Agent Nx configuration requires one unambiguous pnpm workspace package list.');
|
|
52
|
+
}
|
|
53
|
+
if (packages.items.length > MAX_OWNERSHIP_PACKAGES) {
|
|
54
|
+
throw new Error('Developer-Agent Nx configuration exceeds 2,000 pnpm workspace package patterns.');
|
|
55
|
+
}
|
|
56
|
+
return packages.items.map((item) => {
|
|
57
|
+
if (!(0, yaml_1.isScalar)(item) || typeof item.value !== 'string') {
|
|
58
|
+
throw new Error('Developer-Agent Nx configuration requires scalar pnpm workspace package patterns.');
|
|
59
|
+
}
|
|
60
|
+
const pattern = item.value;
|
|
61
|
+
const segments = pattern.split('/');
|
|
62
|
+
if (pattern.length === 0 ||
|
|
63
|
+
pattern.length > 512 ||
|
|
64
|
+
pattern !== pattern.trim() ||
|
|
65
|
+
pattern.includes('\\') ||
|
|
66
|
+
segments.some((segment) => segment !== '*' && !/^[A-Za-z0-9@+._-]+$/u.test(segment))) {
|
|
67
|
+
throw new Error('Developer-Agent Nx configuration requires bounded literal-or-segment-wildcard pnpm workspace package patterns.');
|
|
68
|
+
}
|
|
69
|
+
return new RegExp(`^${segments
|
|
70
|
+
.map((segment) => segment === '*'
|
|
71
|
+
? '[^/]+'
|
|
72
|
+
: segment.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&'))
|
|
73
|
+
.join('/')}$`, 'u');
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function parseExternalBlueprintNxConfiguration(file, authority = 'External Blueprint') {
|
|
77
|
+
let value;
|
|
78
|
+
try {
|
|
79
|
+
value = JSON.parse(file.contents);
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
throw new Error(`${authority} Nx configuration at ${file.path} must be valid JSON.`);
|
|
83
|
+
}
|
|
84
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
85
|
+
throw new Error(`${authority} Nx configuration at ${file.path} must contain one JSON object.`);
|
|
86
|
+
}
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
function assertNxProjectConfigurationFiles(input) {
|
|
90
|
+
const projectNames = new Map();
|
|
91
|
+
const addProjectIdentity = (name, root) => {
|
|
92
|
+
if (!NX_PROJECT_NAME.test(name)) {
|
|
93
|
+
throw new Error(`${input.authority} Nx configuration contains an invalid project identity.`);
|
|
94
|
+
}
|
|
95
|
+
const existingRoot = projectNames.get(name);
|
|
96
|
+
if (existingRoot !== undefined && existingRoot !== root) {
|
|
97
|
+
throw new Error(`${input.authority} Nx configuration contains a cross-root project identity.`);
|
|
98
|
+
}
|
|
99
|
+
projectNames.set(name, root);
|
|
100
|
+
};
|
|
101
|
+
for (const file of input.files) {
|
|
102
|
+
const normalizedPath = file.path.split('\\').join('/');
|
|
103
|
+
const name = node_path_1.posix.basename(normalizedPath);
|
|
104
|
+
const normalizedName = name.normalize('NFC').toLowerCase();
|
|
105
|
+
if (!['package.json', 'project.json'].includes(normalizedName))
|
|
106
|
+
continue;
|
|
107
|
+
if (name !== normalizedName) {
|
|
108
|
+
throw new Error(`${input.authority} Nx configuration at ${file.path} has an ambiguous portable filename.`);
|
|
109
|
+
}
|
|
110
|
+
const configuration = parseExternalBlueprintNxConfiguration(file, input.authority);
|
|
111
|
+
const expectedRoot = normalizedPath === name
|
|
112
|
+
? input.root
|
|
113
|
+
: node_path_1.posix.join(input.root, node_path_1.posix.dirname(normalizedPath));
|
|
114
|
+
if (name === 'package.json') {
|
|
115
|
+
if (!Object.prototype.hasOwnProperty.call(configuration, 'nx')) {
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
if (!input.allowPackageNx) {
|
|
119
|
+
throw new Error(`${input.authority} Nx configuration package.json at ${file.path} cannot declare Nx project configuration.`);
|
|
120
|
+
}
|
|
121
|
+
const nx = configuration['nx'];
|
|
122
|
+
if (!nx || typeof nx !== 'object' || Array.isArray(nx)) {
|
|
123
|
+
throw new Error(`${input.authority} Nx configuration package.json at ${file.path} must declare one Nx object.`);
|
|
124
|
+
}
|
|
125
|
+
const packageNx = nx;
|
|
126
|
+
if (Object.prototype.hasOwnProperty.call(packageNx, 'root') &&
|
|
127
|
+
packageNx['root'] !== expectedRoot) {
|
|
128
|
+
throw new Error(`${input.authority} Nx configuration package.json at ${file.path} cannot redirect its exact containing project root.`);
|
|
129
|
+
}
|
|
130
|
+
const configuredName = packageNx['name'];
|
|
131
|
+
if (configuredName !== undefined && typeof configuredName !== 'string') {
|
|
132
|
+
throw new Error(`${input.authority} Nx configuration package.json at ${file.path} contains an invalid project identity.`);
|
|
133
|
+
}
|
|
134
|
+
const projectName = configuredName ?? configuration['name'];
|
|
135
|
+
if (typeof projectName !== 'string') {
|
|
136
|
+
throw new Error(`${input.authority} Nx configuration package.json at ${file.path} requires one exact project identity.`);
|
|
137
|
+
}
|
|
138
|
+
addProjectIdentity(projectName, expectedRoot);
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
if (configuration['root'] !== expectedRoot) {
|
|
142
|
+
throw new Error(`${input.authority} Nx configuration project.json at ${file.path} must declare its exact containing directory as its exact canonical project root.`);
|
|
143
|
+
}
|
|
144
|
+
const projectName = configuration['name'];
|
|
145
|
+
if (typeof projectName === 'string') {
|
|
146
|
+
addProjectIdentity(projectName, expectedRoot);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return [...projectNames.keys()].sort();
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Prevents an external Blueprint from using Nx's project-configuration merge
|
|
153
|
+
* behavior to contribute targets, tags, or other authority to a project that
|
|
154
|
+
* lives outside the generated Slice root.
|
|
155
|
+
*/
|
|
156
|
+
function assertExternalBlueprintGeneratedNxProjectConfinement(input) {
|
|
157
|
+
if (!EXTERNAL_SLICE_ROOT.test(input.root)) {
|
|
158
|
+
throw new Error('External Blueprint Nx configuration requires one canonical Product Slice root.');
|
|
159
|
+
}
|
|
160
|
+
return assertNxProjectConfigurationFiles({
|
|
161
|
+
allowPackageNx: false,
|
|
162
|
+
authority: 'External Blueprint',
|
|
163
|
+
...input,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function readExternalNxConfiguration(path, label) {
|
|
167
|
+
const before = (0, node_fs_1.lstatSync)(path);
|
|
168
|
+
if (before.isSymbolicLink() ||
|
|
169
|
+
!before.isFile() ||
|
|
170
|
+
before.nlink !== 1 ||
|
|
171
|
+
before.size <= 0 ||
|
|
172
|
+
before.size > MAX_EXTERNAL_NX_CONFIGURATION_BYTES ||
|
|
173
|
+
(0, node_fs_1.realpathSync)(path) !== path) {
|
|
174
|
+
throw new Error(`${label} must be one canonical bounded file.`);
|
|
175
|
+
}
|
|
176
|
+
let descriptor;
|
|
177
|
+
try {
|
|
178
|
+
descriptor = (0, node_fs_1.openSync)(path, node_fs_1.constants.O_RDONLY | node_fs_1.constants.O_NOFOLLOW);
|
|
179
|
+
const opened = (0, node_fs_1.fstatSync)(descriptor);
|
|
180
|
+
if (!opened.isFile() ||
|
|
181
|
+
opened.dev !== before.dev ||
|
|
182
|
+
opened.ino !== before.ino ||
|
|
183
|
+
opened.size !== before.size) {
|
|
184
|
+
throw new Error(`${label} changed while it was opened.`);
|
|
185
|
+
}
|
|
186
|
+
const bytes = Buffer.alloc(opened.size + 1);
|
|
187
|
+
let offset = 0;
|
|
188
|
+
while (offset < bytes.byteLength) {
|
|
189
|
+
const count = (0, node_fs_1.readSync)(descriptor, bytes, offset, bytes.byteLength - offset, null);
|
|
190
|
+
if (count === 0)
|
|
191
|
+
break;
|
|
192
|
+
offset += count;
|
|
193
|
+
}
|
|
194
|
+
const after = (0, node_fs_1.fstatSync)(descriptor);
|
|
195
|
+
if (offset !== opened.size ||
|
|
196
|
+
after.dev !== opened.dev ||
|
|
197
|
+
after.ino !== opened.ino ||
|
|
198
|
+
after.size !== opened.size ||
|
|
199
|
+
after.mtimeMs !== opened.mtimeMs) {
|
|
200
|
+
throw new Error(`${label} changed while it was inspected.`);
|
|
201
|
+
}
|
|
202
|
+
return bytes.subarray(0, offset).toString('utf8');
|
|
203
|
+
}
|
|
204
|
+
finally {
|
|
205
|
+
if (descriptor !== undefined)
|
|
206
|
+
(0, node_fs_1.closeSync)(descriptor);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Inspects external (or conservatively external-capable) package roots before
|
|
211
|
+
* Nx is allowed to build a graph. No generated configuration can redirect its
|
|
212
|
+
* project identity into Foundation or another Product Slice.
|
|
213
|
+
*/
|
|
214
|
+
function assertExternalBlueprintNxProjectConfinement(input) {
|
|
215
|
+
const workspaceRoot = (0, node_fs_1.realpathSync)((0, node_path_1.resolve)(input.workspaceRoot));
|
|
216
|
+
const packagesRoot = (0, node_path_1.join)(workspaceRoot, 'packages');
|
|
217
|
+
const roots = new Set();
|
|
218
|
+
const aliases = new Set();
|
|
219
|
+
for (const root of input.externalRoots) {
|
|
220
|
+
if (!EXTERNAL_SLICE_ROOT.test(root)) {
|
|
221
|
+
throw new Error('External Blueprint Nx configuration contains an invalid Product Slice root.');
|
|
222
|
+
}
|
|
223
|
+
const alias = root.normalize('NFC').toLowerCase();
|
|
224
|
+
if (aliases.has(alias) && !roots.has(root)) {
|
|
225
|
+
throw new Error('External Blueprint Nx configuration contains an ambiguous Product Slice root.');
|
|
226
|
+
}
|
|
227
|
+
aliases.add(alias);
|
|
228
|
+
roots.add(root);
|
|
229
|
+
}
|
|
230
|
+
if (input.includeAllPackageRoots) {
|
|
231
|
+
if (!(0, node_fs_1.existsSync)(packagesRoot))
|
|
232
|
+
return;
|
|
233
|
+
const metadata = (0, node_fs_1.lstatSync)(packagesRoot);
|
|
234
|
+
if (metadata.isSymbolicLink() ||
|
|
235
|
+
!metadata.isDirectory() ||
|
|
236
|
+
(0, node_fs_1.realpathSync)(packagesRoot) !== packagesRoot) {
|
|
237
|
+
throw new Error('External Blueprint Nx configuration requires one canonical packages directory.');
|
|
238
|
+
}
|
|
239
|
+
const entries = (0, node_fs_1.readdirSync)(packagesRoot, { withFileTypes: true });
|
|
240
|
+
if (entries.length > MAX_OWNERSHIP_PACKAGES) {
|
|
241
|
+
throw new Error('External Blueprint Nx configuration exceeds 2,000 package roots.');
|
|
242
|
+
}
|
|
243
|
+
for (const entry of entries) {
|
|
244
|
+
if (entry.isSymbolicLink()) {
|
|
245
|
+
throw new Error(`External Blueprint Nx configuration refuses symbolic-link package ${entry.name}.`);
|
|
246
|
+
}
|
|
247
|
+
if (entry.isDirectory())
|
|
248
|
+
roots.add(`packages/${entry.name}`);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
if (input.includeWorkspaceRoot)
|
|
252
|
+
roots.add('.');
|
|
253
|
+
let entries = 0;
|
|
254
|
+
const configurationIdentities = new Set();
|
|
255
|
+
for (const root of [...roots].sort()) {
|
|
256
|
+
if (root !== '.' && !EXTERNAL_SLICE_ROOT.test(root)) {
|
|
257
|
+
throw new Error('External Blueprint Nx configuration found a non-canonical package root.');
|
|
258
|
+
}
|
|
259
|
+
const absoluteRoot = root === '.' ? workspaceRoot : (0, node_path_1.join)(workspaceRoot, ...root.split('/'));
|
|
260
|
+
if (!(0, node_fs_1.existsSync)(absoluteRoot))
|
|
261
|
+
continue;
|
|
262
|
+
const rootMetadata = (0, node_fs_1.lstatSync)(absoluteRoot);
|
|
263
|
+
if (rootMetadata.isSymbolicLink() ||
|
|
264
|
+
!rootMetadata.isDirectory() ||
|
|
265
|
+
(0, node_fs_1.realpathSync)(absoluteRoot) !== absoluteRoot) {
|
|
266
|
+
throw new Error(`External Blueprint Nx configuration requires canonical root ${root}.`);
|
|
267
|
+
}
|
|
268
|
+
const files = [];
|
|
269
|
+
const visit = (directory, directoryPath) => {
|
|
270
|
+
const names = new Set();
|
|
271
|
+
for (const entry of (0, node_fs_1.readdirSync)(directory, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : left.name > right.name ? 1 : 0)) {
|
|
272
|
+
entries += 1;
|
|
273
|
+
if (entries > MAX_EXTERNAL_NX_CONFIGURATION_ENTRIES) {
|
|
274
|
+
throw new Error('External Blueprint Nx configuration inventory exceeds 100,000 entries.');
|
|
275
|
+
}
|
|
276
|
+
const alias = entry.name.normalize('NFC').toLowerCase();
|
|
277
|
+
if (names.has(alias)) {
|
|
278
|
+
throw new Error('External Blueprint Nx configuration inventory refuses case or Unicode aliases.');
|
|
279
|
+
}
|
|
280
|
+
names.add(alias);
|
|
281
|
+
const relativePath = directoryPath
|
|
282
|
+
? `${directoryPath}/${entry.name}`
|
|
283
|
+
: entry.name;
|
|
284
|
+
if (entry.name === '.git')
|
|
285
|
+
continue;
|
|
286
|
+
if (entry.name === 'node_modules') {
|
|
287
|
+
if (!entry.isDirectory() && !entry.isSymbolicLink()) {
|
|
288
|
+
throw new Error(`Developer-Agent Nx configuration requires ${entry.name} to be a directory boundary.`);
|
|
289
|
+
}
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
const candidate = (0, node_path_1.join)(directory, entry.name);
|
|
293
|
+
if (entry.isSymbolicLink()) {
|
|
294
|
+
throw new Error(`External Blueprint Nx configuration refuses symbolic-link authority at ${root}/${relativePath}.`);
|
|
295
|
+
}
|
|
296
|
+
if (entry.isDirectory()) {
|
|
297
|
+
if ((0, node_fs_1.realpathSync)(candidate) !== candidate) {
|
|
298
|
+
throw new Error(`External Blueprint Nx configuration requires canonical directory ${root}/${relativePath}.`);
|
|
299
|
+
}
|
|
300
|
+
visit(candidate, relativePath);
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
303
|
+
const normalizedName = entry.name.normalize('NFC').toLowerCase();
|
|
304
|
+
if (!['package.json', 'project.json'].includes(normalizedName)) {
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
if (normalizedName === 'package.json' &&
|
|
308
|
+
input.packageNxPathMatchers !== undefined) {
|
|
309
|
+
const packageRoot = relativePath === 'package.json'
|
|
310
|
+
? root
|
|
311
|
+
: node_path_1.posix.join(root, node_path_1.posix.dirname(relativePath));
|
|
312
|
+
if (packageRoot !== '.' &&
|
|
313
|
+
!input.packageNxPathMatchers.some((matcher) => matcher.test(packageRoot))) {
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
files.push({
|
|
318
|
+
contents: readExternalNxConfiguration(candidate, `External Blueprint Nx configuration at ${root}/${relativePath}`),
|
|
319
|
+
path: relativePath,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
visit(absoluteRoot, '');
|
|
324
|
+
for (const projectName of assertNxProjectConfigurationFiles({
|
|
325
|
+
allowPackageNx: true,
|
|
326
|
+
authority: 'Developer-Agent',
|
|
327
|
+
files,
|
|
328
|
+
root,
|
|
329
|
+
})) {
|
|
330
|
+
if (configurationIdentities.has(projectName)) {
|
|
331
|
+
throw new Error('External Blueprint Nx configuration contains a cross-root project identity collision.');
|
|
332
|
+
}
|
|
333
|
+
configurationIdentities.add(projectName);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Binds the plugin-free Nx graph to canonical repository configuration before
|
|
339
|
+
* any project can contribute a reviewed built-in target signature. This is a
|
|
340
|
+
* universal Developer-Agent boundary: source edits must not mint additional
|
|
341
|
+
* graph authority merely by copying an exact protected target definition.
|
|
342
|
+
*/
|
|
343
|
+
function assertDeveloperAgentNxProjectConfinement(workspaceRoot) {
|
|
344
|
+
const canonicalRoot = (0, node_fs_1.realpathSync)((0, node_path_1.resolve)(workspaceRoot));
|
|
345
|
+
assertExternalBlueprintNxProjectConfinement({
|
|
346
|
+
externalRoots: [],
|
|
347
|
+
includeWorkspaceRoot: true,
|
|
348
|
+
packageNxPathMatchers: workspacePackageMatchers(canonicalRoot),
|
|
349
|
+
workspaceRoot: canonicalRoot,
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
function forbiddenConfigurationName(name) {
|
|
353
|
+
const normalized = name.toLowerCase();
|
|
354
|
+
return (FORBIDDEN_CONFIGURATION_NAMES.has(normalized) ||
|
|
355
|
+
normalized.startsWith('.env') ||
|
|
356
|
+
normalized.endsWith('.env'));
|
|
357
|
+
}
|
|
358
|
+
function protectedConfigurationName(name) {
|
|
359
|
+
return (name.toLowerCase() === 'package.json' ||
|
|
360
|
+
/^(?:vite|vitest)\.config\.[a-z0-9]+$/iu.test(name));
|
|
361
|
+
}
|
|
362
|
+
function isBlueprintVerificationExecutionAuthorityPath(path) {
|
|
363
|
+
const normalized = path.normalize('NFC').toLowerCase();
|
|
364
|
+
const name = normalized.slice(normalized.lastIndexOf('/') + 1);
|
|
365
|
+
return ([
|
|
366
|
+
'.gitattributes',
|
|
367
|
+
'.node-version',
|
|
368
|
+
'nx.json',
|
|
369
|
+
'package.json',
|
|
370
|
+
'pnpm-lock.yaml',
|
|
371
|
+
'pnpm-workspace.yaml',
|
|
372
|
+
'tools/blueprint-trust-check.mjs',
|
|
373
|
+
'tools/blueprint-verification-vitest.config.mjs',
|
|
374
|
+
].includes(normalized) ||
|
|
375
|
+
normalized === '.nx/installation' ||
|
|
376
|
+
normalized.startsWith('.nx/installation/') ||
|
|
377
|
+
name.startsWith('.env') ||
|
|
378
|
+
name.endsWith('.env') ||
|
|
379
|
+
[
|
|
380
|
+
'.npmrc',
|
|
381
|
+
'.pnpmfile.cjs',
|
|
382
|
+
'.pnpmfile.mjs',
|
|
383
|
+
'pnpmfile.cjs',
|
|
384
|
+
'pnpmfile.mjs',
|
|
385
|
+
].includes(name) ||
|
|
386
|
+
name === 'package.json' ||
|
|
387
|
+
/^(?:vite|vitest)\.config\.[a-z0-9]+$/u.test(name) ||
|
|
388
|
+
/^packages\/[^/]+\/\.ebk\/ownership\.json$/u.test(normalized));
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Inventories every execution-loader configuration outside bounded generated,
|
|
392
|
+
* dependency, cache, and evidence directories. Forbidden ambient config is
|
|
393
|
+
* rejected; package/Vite/Vitest files are returned for selected Git authority.
|
|
394
|
+
*/
|
|
395
|
+
function assertNoMutableBlueprintVerificationConfiguration(workspace) {
|
|
396
|
+
const workspaceRoot = (0, node_fs_1.realpathSync)((0, node_path_1.resolve)(workspace));
|
|
397
|
+
if ((0, node_fs_1.existsSync)((0, node_path_1.join)(workspaceRoot, '.nx', 'installation'))) {
|
|
398
|
+
throw new Error('Blueprint verification refuses mutable local Nx installation authority at .nx/installation.');
|
|
399
|
+
}
|
|
400
|
+
const authorityPaths = [];
|
|
401
|
+
const authorityAliases = new Set();
|
|
402
|
+
let entries = 0;
|
|
403
|
+
const visit = (directory, directoryPath) => {
|
|
404
|
+
const directoryMetadata = (0, node_fs_1.lstatSync)(directory);
|
|
405
|
+
if (directoryMetadata.isSymbolicLink() ||
|
|
406
|
+
!directoryMetadata.isDirectory() ||
|
|
407
|
+
(0, node_fs_1.realpathSync)(directory) !== directory) {
|
|
408
|
+
throw new Error('Blueprint verification configuration inventory requires canonical directories.');
|
|
409
|
+
}
|
|
410
|
+
for (const entry of (0, node_fs_1.readdirSync)(directory, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : left.name > right.name ? 1 : 0)) {
|
|
411
|
+
entries += 1;
|
|
412
|
+
if (entries > MAX_CONFIGURATION_ENTRIES) {
|
|
413
|
+
throw new Error('Blueprint verification configuration inventory exceeds 25,000 entries.');
|
|
414
|
+
}
|
|
415
|
+
const path = directoryPath
|
|
416
|
+
? `${directoryPath}/${entry.name}`
|
|
417
|
+
: entry.name;
|
|
418
|
+
const skippedDirectory = entry.isDirectory() &&
|
|
419
|
+
SKIPPED_CONFIGURATION_DIRECTORIES.has(entry.name.toLowerCase());
|
|
420
|
+
if (entry.isSymbolicLink() && !skippedDirectory) {
|
|
421
|
+
throw new Error(`Blueprint verification configuration inventory refuses symbolic-link authority at ${path}.`);
|
|
422
|
+
}
|
|
423
|
+
if (forbiddenConfigurationName(entry.name)) {
|
|
424
|
+
throw new Error(`Blueprint verification refuses mutable environment or package-manager configuration at ${path}.`);
|
|
425
|
+
}
|
|
426
|
+
const candidate = (0, node_path_1.join)(directory, entry.name);
|
|
427
|
+
if (protectedConfigurationName(entry.name)) {
|
|
428
|
+
const metadata = (0, node_fs_1.lstatSync)(candidate);
|
|
429
|
+
const child = (0, node_path_1.relative)(workspaceRoot, candidate);
|
|
430
|
+
if (metadata.isSymbolicLink() ||
|
|
431
|
+
!metadata.isFile() ||
|
|
432
|
+
metadata.nlink !== 1 ||
|
|
433
|
+
metadata.size <= 0 ||
|
|
434
|
+
metadata.size > MAX_CONFIGURATION_BYTES ||
|
|
435
|
+
(0, node_fs_1.realpathSync)(candidate) !== candidate ||
|
|
436
|
+
child === '' ||
|
|
437
|
+
child === '..' ||
|
|
438
|
+
child.startsWith(`..${node_path_1.sep}`)) {
|
|
439
|
+
throw new Error(`Blueprint verification configuration ${path} must be one canonical bounded file.`);
|
|
440
|
+
}
|
|
441
|
+
if (entry.name.toLowerCase() === 'package.json') {
|
|
442
|
+
(0, pnpm_toolchain_authority_js_1.assertPnpmReviewPackageConfiguration)((0, node_fs_1.readFileSync)(candidate, 'utf8'), `Blueprint verification package configuration at ${path}`);
|
|
443
|
+
}
|
|
444
|
+
const authorityAlias = path.normalize('NFC').toLowerCase();
|
|
445
|
+
if (authorityAliases.has(authorityAlias)) {
|
|
446
|
+
throw new Error('Blueprint verification configuration inventory refuses case or Unicode aliases.');
|
|
447
|
+
}
|
|
448
|
+
authorityAliases.add(authorityAlias);
|
|
449
|
+
authorityPaths.push(path);
|
|
450
|
+
}
|
|
451
|
+
if (entry.isDirectory() && !skippedDirectory) {
|
|
452
|
+
visit(candidate, path);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
visit(workspaceRoot, '');
|
|
457
|
+
return authorityPaths;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Inventories only canonical top-level package ownership records before Nx is
|
|
461
|
+
* allowed to load project-graph plugins. A valid external Blueprint opts the
|
|
462
|
+
* workspace into the strict execution-loader boundary; malformed or aliased
|
|
463
|
+
* ownership fails closed without evaluating workspace code.
|
|
464
|
+
*/
|
|
465
|
+
function workspaceHasExternalBlueprintOwnership(workspace) {
|
|
466
|
+
return externalBlueprintOwnershipRoots(workspace).length > 0;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Returns the canonical package roots governed by current external Blueprint
|
|
470
|
+
* ownership. This inventory deliberately precedes and does not trust the Nx
|
|
471
|
+
* graph: a publisher cannot escape classification by changing project tags,
|
|
472
|
+
* names, or the ownership record's projects array.
|
|
473
|
+
*/
|
|
474
|
+
function externalBlueprintOwnershipRoots(workspace) {
|
|
475
|
+
const workspaceRoot = (0, node_fs_1.realpathSync)((0, node_path_1.resolve)(workspace));
|
|
476
|
+
const packagesRoot = (0, node_path_1.join)(workspaceRoot, 'packages');
|
|
477
|
+
if (!(0, node_fs_1.existsSync)(packagesRoot))
|
|
478
|
+
return [];
|
|
479
|
+
const packagesMetadata = (0, node_fs_1.lstatSync)(packagesRoot);
|
|
480
|
+
if (packagesMetadata.isSymbolicLink() ||
|
|
481
|
+
!packagesMetadata.isDirectory() ||
|
|
482
|
+
(0, node_fs_1.realpathSync)(packagesRoot) !== packagesRoot) {
|
|
483
|
+
throw new Error('Developer-Agent Blueprint ownership preflight requires one canonical packages directory.');
|
|
484
|
+
}
|
|
485
|
+
const entries = (0, node_fs_1.readdirSync)(packagesRoot, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : left.name > right.name ? 1 : 0);
|
|
486
|
+
if (entries.length > MAX_OWNERSHIP_PACKAGES) {
|
|
487
|
+
throw new Error('Developer-Agent Blueprint ownership preflight exceeds 2,000 package entries.');
|
|
488
|
+
}
|
|
489
|
+
const identities = new Set();
|
|
490
|
+
const external = [];
|
|
491
|
+
for (const entry of entries) {
|
|
492
|
+
const identity = entry.name.normalize('NFC').toLowerCase();
|
|
493
|
+
if (identities.has(identity)) {
|
|
494
|
+
throw new Error('Developer-Agent Blueprint ownership preflight found ambiguous package identities.');
|
|
495
|
+
}
|
|
496
|
+
identities.add(identity);
|
|
497
|
+
if (entry.isSymbolicLink()) {
|
|
498
|
+
throw new Error(`Developer-Agent Blueprint ownership preflight refuses symbolic-link package ${entry.name}.`);
|
|
499
|
+
}
|
|
500
|
+
if (!entry.isDirectory())
|
|
501
|
+
continue;
|
|
502
|
+
const packageRoot = (0, node_path_1.join)(packagesRoot, entry.name);
|
|
503
|
+
if ((0, node_fs_1.realpathSync)(packageRoot) !== packageRoot) {
|
|
504
|
+
throw new Error(`Developer-Agent Blueprint ownership preflight requires canonical package ${entry.name}.`);
|
|
505
|
+
}
|
|
506
|
+
const metadataRoot = (0, node_path_1.join)(packageRoot, '.ebk');
|
|
507
|
+
if (!(0, node_fs_1.existsSync)(metadataRoot))
|
|
508
|
+
continue;
|
|
509
|
+
const metadataRootEntry = (0, node_fs_1.lstatSync)(metadataRoot);
|
|
510
|
+
if (metadataRootEntry.isSymbolicLink() ||
|
|
511
|
+
!metadataRootEntry.isDirectory() ||
|
|
512
|
+
(0, node_fs_1.realpathSync)(metadataRoot) !== metadataRoot) {
|
|
513
|
+
throw new Error(`Developer-Agent Blueprint ownership preflight requires canonical metadata for ${entry.name}.`);
|
|
514
|
+
}
|
|
515
|
+
const ownershipPath = (0, node_path_1.join)(metadataRoot, 'ownership.json');
|
|
516
|
+
if (!(0, node_fs_1.existsSync)(ownershipPath)) {
|
|
517
|
+
throw new Error(`Developer-Agent Blueprint ownership preflight requires ownership.json in reserved metadata for ${entry.name}.`);
|
|
518
|
+
}
|
|
519
|
+
const ownershipMetadata = (0, node_fs_1.lstatSync)(ownershipPath);
|
|
520
|
+
if (ownershipMetadata.isSymbolicLink() ||
|
|
521
|
+
!ownershipMetadata.isFile() ||
|
|
522
|
+
ownershipMetadata.nlink !== 1 ||
|
|
523
|
+
ownershipMetadata.size <= 0 ||
|
|
524
|
+
ownershipMetadata.size > MAX_OWNERSHIP_BYTES ||
|
|
525
|
+
(0, node_fs_1.realpathSync)(ownershipPath) !== ownershipPath) {
|
|
526
|
+
throw new Error(`Developer-Agent Blueprint ownership preflight requires one canonical bounded ownership record for ${entry.name}.`);
|
|
527
|
+
}
|
|
528
|
+
let value;
|
|
529
|
+
try {
|
|
530
|
+
value = JSON.parse((0, node_fs_1.readFileSync)(ownershipPath, 'utf8'));
|
|
531
|
+
}
|
|
532
|
+
catch {
|
|
533
|
+
value = undefined;
|
|
534
|
+
}
|
|
535
|
+
if (entry.name === 'foundation') {
|
|
536
|
+
const foundation = (0, foundation_record_js_1.validateFoundationOwnershipRecord)(value);
|
|
537
|
+
if (foundation.valid)
|
|
538
|
+
continue;
|
|
539
|
+
throw new Error('Developer-Agent Blueprint ownership preflight found malformed Foundation ownership.');
|
|
540
|
+
}
|
|
541
|
+
const generated = (0, record_js_1.validateGeneratedOwnershipRecord)(value);
|
|
542
|
+
if (!generated.valid || generated.value.slice !== entry.name) {
|
|
543
|
+
throw new Error(`Developer-Agent Blueprint ownership preflight found malformed or ambiguous ownership for ${entry.name}.`);
|
|
544
|
+
}
|
|
545
|
+
if (generated.value.blueprint.name !== resolver_js_1.BUILTIN_BLUEPRINT_NAME) {
|
|
546
|
+
external.push({
|
|
547
|
+
blueprint: generated.value.blueprint.name,
|
|
548
|
+
projects: generated.value.projects,
|
|
549
|
+
root: packageRoot,
|
|
550
|
+
slice: generated.value.slice,
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
return external;
|
|
555
|
+
}
|
|
556
|
+
function assertBlueprintVerificationNxAuthority(value, environment = process.env) {
|
|
557
|
+
let configuration = value;
|
|
558
|
+
if (typeof value === 'string') {
|
|
559
|
+
try {
|
|
560
|
+
configuration = JSON.parse(value);
|
|
561
|
+
}
|
|
562
|
+
catch {
|
|
563
|
+
configuration = undefined;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
if (!configuration ||
|
|
567
|
+
typeof configuration !== 'object' ||
|
|
568
|
+
Array.isArray(configuration)) {
|
|
569
|
+
throw new Error('Blueprint verification requires one exact Nx configuration object.');
|
|
570
|
+
}
|
|
571
|
+
const nx = configuration;
|
|
572
|
+
const daemonOverrides = Object.entries(environment).filter(([name, environmentValue]) => name.toLowerCase() === 'nx_daemon' &&
|
|
573
|
+
environmentValue !== undefined &&
|
|
574
|
+
environmentValue !== '' &&
|
|
575
|
+
environmentValue !== 'false');
|
|
576
|
+
if (nx.neverConnectToCloud !== true ||
|
|
577
|
+
nx.useDaemonProcess !== false ||
|
|
578
|
+
daemonOverrides.length > 0 ||
|
|
579
|
+
Object.prototype.hasOwnProperty.call(nx, 'extends') ||
|
|
580
|
+
Object.prototype.hasOwnProperty.call(nx, 'installation') ||
|
|
581
|
+
Object.prototype.hasOwnProperty.call(nx, 'plugins') ||
|
|
582
|
+
Object.prototype.hasOwnProperty.call(nx, 'sync') ||
|
|
583
|
+
Object.prototype.hasOwnProperty.call(nx, 'tasksRunnerOptions') ||
|
|
584
|
+
Object.keys(nx).some((key) => key.toLowerCase().startsWith('nxcloud'))) {
|
|
585
|
+
throw new Error('Blueprint verification Nx authority must use the non-daemon local default runner without plugins, global synchronization, extension, or cloud execution.');
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
//# sourceMappingURL=blueprint-verification-authority.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint-verification-authority.js","sourceRoot":"","sources":["../../../../../packages/nx/src/supply-chain/blueprint-verification-authority.ts"],"names":[],"mappings":";;;AA+NA,oHAcC;AA4DD,kGAwKC;AAQD,4FAUC;AAkBD,sGA+BC;AAOD,8GA0FC;AAQD,wFAIC;AAeD,0EA2GC;AAED,wFA4CC;AAzyBD,qCAWiB;AACjB,yCAAgE;AAChE,+BAAsD;AAEtD,2DAAmE;AACnE,4EAAsF;AACtF,sDAA0E;AAC1E,+EAAqF;AAExE,QAAA,2CAA2C,GACtD,sBAAsB,CAAC;AAEzB,MAAM,uBAAuB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAChD,MAAM,yBAAyB,GAAG,MAAM,CAAC;AACzC,MAAM,mBAAmB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5C,MAAM,sBAAsB,GAAG,KAAK,CAAC;AACrC,MAAM,mCAAmC,GAAG,IAAI,GAAG,IAAI,CAAC;AACxD,MAAM,qCAAqC,GAAG,OAAO,CAAC;AACtD,MAAM,mBAAmB,GAAG,4CAA4C,CAAC;AACzE,MAAM,eAAe,GACnB,yFAAyF,CAAC;AAC5F,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAC;IAC5C,QAAQ;IACR,eAAe;IACf,eAAe;IACf,cAAc;IACd,cAAc;CAC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