@empire-builder-kit/nx 1.0.0-rc.46 → 1.0.0-rc.48
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/README.md +14 -169
- package/executors.json +24 -79
- package/generators.json +18 -18
- package/package.json +13 -71
- package/src/aws/identity.d.ts +1 -1
- package/src/aws-authority/boundary-transforms.d.ts +9 -0
- package/src/aws-authority/boundary-transforms.js +78 -0
- package/src/aws-authority/contracts.d.ts +116 -0
- package/src/aws-authority/contracts.js +40 -0
- package/src/aws-authority/deployment-guardrails.d.ts +4 -0
- package/src/aws-authority/deployment-guardrails.js +543 -0
- package/src/aws-authority/deployment-policy-groups.d.ts +3 -0
- package/src/aws-authority/deployment-policy-groups.js +299 -0
- package/src/aws-authority/deployment-resources.d.ts +64 -0
- package/src/aws-authority/deployment-resources.js +265 -0
- package/src/aws-authority/deployment-services.d.ts +3 -0
- package/src/aws-authority/deployment-services.js +717 -0
- package/src/aws-authority/development-authority.d.ts +11 -0
- package/src/aws-authority/development-authority.js +160 -0
- package/src/aws-authority/guardrail-actions.d.ts +87 -0
- package/src/aws-authority/guardrail-actions.js +463 -0
- package/src/aws-authority/policy-document.d.ts +15 -0
- package/src/aws-authority/policy-document.js +264 -0
- package/src/aws-authority/runtime-boundary.d.ts +7 -0
- package/src/aws-authority/runtime-boundary.js +211 -0
- package/src/aws-authority/service-actions.d.ts +96 -0
- package/src/aws-authority/service-actions.js +512 -0
- package/src/aws-authority/stage-authority.d.ts +6 -244
- package/src/aws-authority/stage-authority.js +114 -3419
- package/src/aws-authority/stage-identity.d.ts +6 -0
- package/src/aws-authority/stage-identity.js +134 -0
- package/src/cli/bootstrap.d.ts +0 -20
- package/src/cli/bootstrap.js +2 -153
- package/src/cli/dev-command.d.ts +2 -4
- package/src/cli/dev-command.js +1 -19
- package/src/cli/main.d.ts +0 -4
- package/src/cli/main.js +22 -80
- package/src/cli/output.d.ts +2 -4
- package/src/cli/output.js +2 -8
- package/src/executors/deployment-plan/deployment-plan.d.ts +0 -2
- package/src/executors/deployment-plan/deployment-plan.js +5 -67
- package/src/executors/dev-doctor/dev-doctor.d.ts +25 -3
- package/src/executors/dev-doctor/dev-doctor.js +137 -50
- package/src/executors/dev-setup/dev-setup.d.ts +18 -1
- package/src/executors/dev-setup/dev-setup.js +320 -196
- package/src/executors/foundation-preflight/foundation-preflight.js +9 -1
- package/src/executors/foundation-remove-preflight/foundation-remove-preflight.js +2 -2
- package/src/executors/local-deploy/deployed-smoke.d.ts +12 -0
- package/src/executors/local-deploy/deployed-smoke.js +115 -0
- package/src/executors/local-deploy/deployment-authority.d.ts +24 -0
- package/src/executors/local-deploy/deployment-authority.js +81 -0
- package/src/executors/local-deploy/deployment-child.d.ts +18 -0
- package/src/executors/local-deploy/deployment-child.js +77 -0
- package/src/executors/local-deploy/deployment-contracts.d.ts +96 -0
- package/src/executors/local-deploy/deployment-contracts.js +3 -0
- package/src/executors/local-deploy/deployment-projects.d.ts +4 -0
- package/src/executors/local-deploy/deployment-projects.js +16 -0
- package/src/executors/local-deploy/deployment-receipt.d.ts +4 -0
- package/src/executors/local-deploy/deployment-receipt.js +55 -0
- package/src/executors/local-deploy/deployment-scope.d.ts +17 -0
- package/src/executors/local-deploy/deployment-scope.js +239 -0
- package/src/executors/local-deploy/deployment-source.d.ts +13 -0
- package/src/executors/local-deploy/deployment-source.js +86 -0
- package/src/executors/local-deploy/local-deploy.d.ts +5 -106
- package/src/executors/local-deploy/local-deploy.js +56 -855
- package/src/executors/sst-lifecycle/governed-child-process.d.ts +27 -0
- package/src/executors/sst-lifecycle/governed-child-process.js +277 -0
- package/src/executors/sst-lifecycle/governed-native-operation.js +4 -10
- package/src/executors/sst-lifecycle/run-sst-command.d.ts +4 -85
- package/src/executors/sst-lifecycle/run-sst-command.js +28 -788
- package/src/executors/sst-lifecycle/sst-contracts.d.ts +44 -0
- package/src/executors/sst-lifecycle/sst-contracts.js +3 -0
- package/src/executors/sst-lifecycle/sst-invocation.d.ts +17 -0
- package/src/executors/sst-lifecycle/sst-invocation.js +502 -0
- package/src/executors/sst-lifecycle/task-unlock.js +3 -3
- package/src/foundation/discovery.d.ts +1 -5
- package/src/foundation/discovery.js +0 -2
- package/src/foundation/identity-domain-parent-ready.d.ts +91 -0
- package/src/foundation/identity-domain-parent-ready.js +333 -0
- package/src/foundation/identity-domain.d.ts +94 -0
- package/src/foundation/identity-domain.js +115 -0
- package/src/foundation/index.d.ts +2 -2
- package/src/foundation/index.js +7 -9
- package/src/foundation/local-private-smoke-access.d.ts +6 -15
- package/src/foundation/local-private-smoke-access.js +8 -192
- package/src/foundation/observability.d.ts +16 -26
- package/src/foundation/observability.js +34 -135
- package/src/foundation/preflight.js +16 -14
- package/src/foundation/private-smoke-access.d.ts +7 -14
- package/src/foundation/private-smoke-access.js +4 -126
- package/src/foundation/root-site-workspace.d.ts +35 -0
- package/src/foundation/root-site-workspace.js +80 -0
- package/src/foundation/root-site.d.ts +82 -0
- package/src/foundation/root-site.js +276 -0
- package/src/generators/formatting.js +5 -4
- package/src/generators/framework-prerequisites.d.ts +2 -0
- package/src/generators/framework-prerequisites.js +34 -0
- package/src/generators/function/function.d.ts +20 -1
- package/src/generators/function/function.js +143 -90
- package/src/generators/function/schema.d.ts +1 -0
- package/src/generators/function/schema.json +8 -2
- package/src/generators/function-access/function-access.d.ts +8 -0
- package/src/generators/function-access/function-access.js +73 -0
- package/src/generators/function-access/schema.d.ts +6 -0
- package/src/generators/function-access/schema.json +25 -0
- package/src/generators/observability-policy.js +1 -2
- package/src/{supply-chain → generators}/pnpm-toolchain-authority.d.ts +3 -3
- package/src/{supply-chain → generators}/pnpm-toolchain-authority.js +12 -12
- package/src/generators/post-generation-install.d.ts +2 -9
- package/src/generators/post-generation-install.js +12 -140
- package/src/generators/preset/dependency-overrides.d.ts +14 -20
- package/src/generators/preset/dependency-overrides.js +13 -57
- package/src/generators/preset/generator.js +0 -3
- package/src/generators/preset/workspace-files-foundation-infra.d.ts +6 -0
- package/src/generators/preset/workspace-files-foundation-infra.js +586 -0
- package/src/generators/preset/workspace-files-foundation-readme.d.ts +5 -0
- package/src/generators/preset/workspace-files-foundation-readme.js +90 -0
- package/src/generators/preset/workspace-files-foundation.d.ts +3 -0
- package/src/generators/preset/workspace-files-foundation.js +170 -0
- package/src/generators/preset/workspace-files-ownership.d.ts +9 -0
- package/src/generators/preset/workspace-files-ownership.js +124 -0
- package/src/generators/preset/workspace-files-root-config.d.ts +32 -0
- package/src/generators/preset/workspace-files-root-config.js +356 -0
- package/src/generators/preset/workspace-files-root-docs.d.ts +5 -0
- package/src/generators/preset/workspace-files-root-docs.js +109 -0
- package/src/generators/preset/workspace-files-shared.d.ts +18 -0
- package/src/generators/preset/workspace-files-shared.js +7 -0
- package/src/generators/preset/workspace-files-workflows.d.ts +39 -0
- package/src/generators/preset/workspace-files-workflows.js +306 -0
- package/src/generators/preset/workspace-files-workspace-health.d.ts +6 -0
- package/src/generators/preset/workspace-files-workspace-health.js +148 -0
- package/src/generators/preset/workspace-files.d.ts +10 -24
- package/src/generators/preset/workspace-files.js +48 -10511
- package/src/generators/site/built-in-site-documentation-files.d.ts +3 -0
- package/src/generators/site/built-in-site-documentation-files.js +51 -0
- package/src/generators/site/built-in-site-files.d.ts +11 -0
- package/src/generators/site/built-in-site-files.js +41 -0
- package/src/generators/site/built-in-site-infrastructure-files.d.ts +3 -0
- package/src/generators/site/built-in-site-infrastructure-files.js +115 -0
- package/src/generators/site/built-in-site-plan.d.ts +23 -0
- package/src/generators/site/built-in-site-plan.js +67 -0
- package/src/generators/site/built-in-site-project-files.d.ts +11 -0
- package/src/generators/site/built-in-site-project-files.js +212 -0
- package/src/generators/site/built-in-site-script-files.d.ts +4 -0
- package/src/generators/site/built-in-site-script-files.js +102 -0
- package/src/generators/site/built-in-site-shared.d.ts +69 -0
- package/src/generators/site/built-in-site-shared.js +314 -0
- package/src/generators/site/built-in-site-sst-config-files.d.ts +3 -0
- package/src/generators/site/built-in-site-sst-config-files.js +107 -0
- package/src/generators/site/built-in-site-web-files.d.ts +3 -0
- package/src/generators/site/built-in-site-web-files.js +78 -0
- package/src/generators/site/schema.d.ts +9 -0
- package/src/generators/site/schema.json +26 -0
- package/src/generators/site/site.d.ts +5 -0
- package/src/generators/site/site.js +153 -0
- package/src/generators/slice/built-in-plan-api-files.d.ts +1 -2
- package/src/generators/slice/built-in-plan-api-files.js +30 -890
- package/src/generators/slice/built-in-plan-database-lifecycle-files.js +57 -1851
- package/src/generators/slice/built-in-plan-infrastructure-files.d.ts +5 -2
- package/src/generators/slice/built-in-plan-infrastructure-files.js +80 -3358
- package/src/generators/slice/built-in-plan-key-value-files.d.ts +3 -2
- package/src/generators/slice/built-in-plan-key-value-files.js +3 -21
- package/src/generators/slice/built-in-plan-project-files.d.ts +5 -3
- package/src/generators/slice/built-in-plan-project-files.js +79 -897
- package/src/generators/slice/built-in-plan-shared.d.ts +4 -19
- package/src/generators/slice/built-in-plan-shared.js +5 -58
- package/src/generators/slice/built-in-plan-sst-config.d.ts +49 -0
- package/src/generators/slice/built-in-plan-sst-config.js +160 -0
- package/src/generators/slice/built-in-plan-web-files.d.ts +1 -1
- package/src/generators/slice/built-in-plan-web-files.js +14 -475
- package/src/generators/slice/built-in-plan.d.ts +2 -3
- package/src/generators/slice/built-in-plan.js +79 -277
- package/src/{developer-agent/preview-changes.d.ts → generators/slice/generation-tree.d.ts} +1 -5
- package/src/generators/slice/generation-tree.js +161 -0
- package/src/generators/slice/persistence-contract.js +2 -2
- package/src/generators/slice/schema.json +12 -4
- package/src/generators/slice/slice-config.d.ts +7 -0
- package/src/generators/slice/slice-config.js +125 -0
- package/src/generators/slice/slice.js +52 -257
- package/src/generators/slice/sql-bootstrap.d.ts +1 -0
- package/src/generators/slice/sql-bootstrap.js +505 -0
- package/src/generators/slice/sql-client.d.ts +1 -0
- package/src/generators/slice/sql-client.js +107 -0
- package/src/generators/slice/sql-infrastructure.d.ts +1 -0
- package/src/generators/slice/sql-infrastructure.js +225 -0
- package/src/generators/slice/sql-logging.d.ts +1 -0
- package/src/generators/slice/sql-logging.js +266 -0
- package/src/generators/slice/sql-migration.d.ts +2 -0
- package/src/generators/slice/sql-migration.js +202 -0
- package/src/generators/slice/standard-slice-contract.d.ts +25 -0
- package/src/generators/slice/standard-slice-contract.js +64 -0
- package/src/generators/sql/schema.json +1 -1
- package/src/generators/sql/sql.d.ts +1 -1
- package/src/generators/sql/sql.js +13 -7
- package/src/generators/upgrade/framework-package-upgrade.d.ts +35 -0
- package/src/generators/upgrade/framework-package-upgrade.js +55 -0
- package/src/generators/upgrade/framework-packages.d.ts +25 -0
- package/src/generators/upgrade/framework-packages.js +138 -0
- package/src/generators/upgrade/function-authentication-notice.d.ts +21 -0
- package/src/generators/upgrade/function-authentication-notice.js +54 -0
- package/src/generators/upgrade/schema.d.ts +0 -3
- package/src/generators/upgrade/schema.json +7 -17
- package/src/generators/upgrade/slice-compositions.d.ts +20 -0
- package/src/generators/upgrade/slice-compositions.js +100 -0
- package/src/generators/upgrade/slice-upgrade-guidance.d.ts +19 -0
- package/src/generators/upgrade/slice-upgrade-guidance.js +50 -0
- package/src/generators/upgrade/slice-upgrade.d.ts +4 -0
- package/src/generators/upgrade/slice-upgrade.js +231 -0
- package/src/generators/upgrade/upgrade-plan.d.ts +49 -0
- package/src/generators/upgrade/upgrade-plan.js +242 -0
- package/src/generators/upgrade/upgrade-preflight.d.ts +20 -0
- package/src/generators/upgrade/upgrade-preflight.js +64 -0
- package/src/generators/upgrade/upgrade.d.ts +8 -87
- package/src/generators/upgrade/upgrade.js +27 -1909
- package/src/generators/workload/schema.json +2 -2
- package/src/generators/workload/workload.d.ts +11 -11
- package/src/generators/workload/workload.js +167 -1200
- package/src/index.d.ts +0 -5
- package/src/index.js +0 -5
- package/src/local-dev/browser-verification.d.ts +0 -7
- package/src/local-dev/browser-verification.js +0 -136
- package/src/local-dev/contracts.d.ts +6 -0
- package/src/local-dev/contracts.js +17 -9
- package/src/local-dev/environment-checks.d.ts +126 -0
- package/src/local-dev/environment-checks.js +81 -0
- package/src/local-dev/environment-inspector.d.ts +3 -124
- package/src/local-dev/environment-inspector.js +9 -148
- package/src/local-dev/fleet-process.d.ts +9 -2
- package/src/local-dev/fleet-process.js +27 -7
- package/src/local-dev/gateway-daemon.d.ts +1 -1
- package/src/local-dev/gateway-daemon.js +6 -4
- package/src/local-dev/portless.d.ts +5 -0
- package/src/local-dev/portless.js +5 -0
- package/src/local-dev/private-state.d.ts +1 -0
- package/src/local-dev/private-state.js +19 -23
- package/src/local-dev/process-group.d.ts +10 -0
- package/src/local-dev/process-group.js +33 -0
- package/src/local-dev/process-identity.js +4 -2
- package/src/local-dev/slice-runner-child.d.ts +37 -0
- package/src/local-dev/slice-runner-child.js +127 -0
- package/src/local-dev/slice-runner-recovery.d.ts +32 -0
- package/src/local-dev/slice-runner-recovery.js +216 -0
- package/src/local-dev/slice-runner-state.d.ts +82 -0
- package/src/local-dev/slice-runner-state.js +265 -0
- package/src/local-dev/slice-runner.d.ts +4 -117
- package/src/local-dev/slice-runner.js +59 -594
- package/src/local-dev/tls.js +39 -99
- package/src/local-dev/trust-store.d.ts +42 -0
- package/src/local-dev/trust-store.js +87 -0
- package/src/ownership/composition.d.ts +7 -0
- package/src/ownership/composition.js +64 -56
- package/src/ownership/index.d.ts +2 -0
- package/src/ownership/index.js +7 -0
- package/src/ownership/pnpm-workspace.d.ts +77 -0
- package/src/ownership/pnpm-workspace.js +225 -0
- package/src/ownership/record.d.ts +19 -0
- package/src/ownership/record.js +26 -2
- package/src/ownership/site-record.d.ts +26 -0
- package/src/ownership/site-record.js +120 -0
- package/src/repository-policy/capacity-migration.d.ts +1 -1
- package/src/repository-policy/capacity-migration.js +1 -1
- package/src/repository-policy/deployment-plan.d.ts +3 -0
- package/src/repository-policy/deployment-plan.js +33 -4
- package/src/repository-policy/foundation-router.d.ts +17 -0
- package/src/repository-policy/foundation-router.js +44 -0
- package/src/repository-policy/index.d.ts +3 -0
- package/src/repository-policy/index.js +3 -0
- package/src/repository-policy/policy-accounts.d.ts +22 -0
- package/src/repository-policy/policy-accounts.js +134 -0
- package/src/repository-policy/policy-files.d.ts +8 -0
- package/src/repository-policy/policy-files.js +201 -0
- package/src/repository-policy/policy-internal.d.ts +2 -0
- package/src/repository-policy/policy-internal.js +11 -0
- package/src/repository-policy/policy-model.d.ts +95 -0
- package/src/repository-policy/policy-model.js +42 -0
- package/src/repository-policy/policy-validation.d.ts +4 -0
- package/src/repository-policy/policy-validation.js +308 -0
- package/src/repository-policy/policy.d.ts +6 -109
- package/src/repository-policy/policy.js +52 -626
- package/src/repository-policy/public-dns.d.ts +69 -0
- package/src/repository-policy/public-dns.js +265 -0
- package/src/{generators/repository-policy → repository-policy}/tree-policy.d.ts +1 -1
- package/src/{generators/repository-policy → repository-policy}/tree-policy.js +5 -5
- package/src/schemas/generated-ownership-v2.json +6 -0
- package/src/schemas/repository-policy-v1.json +106 -3
- package/src/secrets/index.d.ts +0 -5
- package/src/secrets/index.js +0 -5
- package/src/slice-infra/index.d.ts +57 -0
- package/src/slice-infra/index.js +117 -0
- package/src/slice-scripts/build.d.ts +27 -0
- package/src/slice-scripts/build.js +120 -0
- package/src/slice-scripts/database.d.ts +87 -0
- package/src/slice-scripts/database.js +328 -0
- package/src/slice-scripts/index.d.ts +11 -0
- package/src/slice-scripts/index.js +23 -0
- package/src/slice-scripts/root-site-routes.d.ts +11 -0
- package/src/slice-scripts/root-site-routes.js +83 -0
- package/src/slice-scripts/sql-migration-engine.mjs +180 -0
- package/src/workload-roles/effective-policy.d.ts +0 -37
- package/src/workload-roles/effective-policy.js +1 -174
- package/src/workload-roles/standard-slice.d.ts +2 -19
- package/src/workload-roles/standard-slice.js +3 -129
- package/src/workspace-deployment/ownership.d.ts +15 -0
- package/src/workspace-deployment/ownership.js +19 -3
- package/src/api-contract/baseline-update.d.ts +0 -82
- package/src/api-contract/baseline-update.js +0 -225
- package/src/api-contract/compatibility.d.ts +0 -30
- package/src/api-contract/compatibility.js +0 -643
- package/src/api-contract/contract-graph.d.ts +0 -35
- package/src/api-contract/contract-graph.js +0 -141
- package/src/api-contract/evidence.d.ts +0 -23
- package/src/api-contract/evidence.js +0 -87
- package/src/api-contract/index.d.ts +0 -6
- package/src/api-contract/index.js +0 -10
- package/src/api-contract/model.d.ts +0 -144
- package/src/api-contract/model.js +0 -993
- package/src/api-contract/rollout.d.ts +0 -32
- package/src/api-contract/rollout.js +0 -88
- package/src/authorization/compatibility.d.ts +0 -62
- package/src/authorization/compatibility.js +0 -175
- package/src/authorization/index.d.ts +0 -1
- package/src/authorization/index.js +0 -5
- package/src/blueprints/execution.d.ts +0 -55
- package/src/blueprints/execution.js +0 -329
- package/src/blueprints/external-sandbox.d.ts +0 -53
- package/src/blueprints/external-sandbox.js +0 -1194
- package/src/blueprints/index.d.ts +0 -5
- package/src/blueprints/index.js +0 -9
- package/src/blueprints/inputs.d.ts +0 -43
- package/src/blueprints/inputs.js +0 -103
- package/src/blueprints/manifest.d.ts +0 -281
- package/src/blueprints/manifest.js +0 -424
- package/src/blueprints/resolver.d.ts +0 -37
- package/src/blueprints/resolver.js +0 -387
- package/src/blueprints/transitions.d.ts +0 -20
- package/src/blueprints/transitions.js +0 -61
- package/src/cli/agent-command.d.ts +0 -30
- package/src/cli/agent-command.js +0 -204
- package/src/cli/agent-runtime.d.ts +0 -25
- package/src/cli/agent-runtime.js +0 -498
- package/src/cli/blueprint-authority.d.ts +0 -9
- package/src/cli/blueprint-authority.js +0 -43
- package/src/cli/blueprint-command.d.ts +0 -24
- package/src/cli/blueprint-command.js +0 -63
- package/src/data-lifecycle/index.d.ts +0 -3
- package/src/data-lifecycle/index.js +0 -7
- package/src/data-lifecycle/model.d.ts +0 -172
- package/src/data-lifecycle/model.js +0 -95
- package/src/data-lifecycle/sensitive-artifacts.d.ts +0 -28
- package/src/data-lifecycle/sensitive-artifacts.js +0 -146
- package/src/data-lifecycle/validation.d.ts +0 -32
- package/src/data-lifecycle/validation.js +0 -837
- package/src/database-retirement/contract.d.ts +0 -68
- package/src/database-retirement/contract.js +0 -166
- package/src/database-retirement/index.d.ts +0 -1
- package/src/database-retirement/index.js +0 -5
- package/src/developer-agent/context.d.ts +0 -57
- package/src/developer-agent/context.js +0 -662
- package/src/developer-agent/generator-planning.d.ts +0 -34
- package/src/developer-agent/generator-planning.js +0 -666
- package/src/developer-agent/generator-preview.d.ts +0 -8
- package/src/developer-agent/generator-preview.js +0 -650
- package/src/developer-agent/git-inspection.d.ts +0 -112
- package/src/developer-agent/git-inspection.js +0 -887
- package/src/developer-agent/handoff.d.ts +0 -43
- package/src/developer-agent/handoff.js +0 -713
- package/src/developer-agent/index.d.ts +0 -10
- package/src/developer-agent/index.js +0 -14
- package/src/developer-agent/model.d.ts +0 -493
- package/src/developer-agent/model.js +0 -143
- package/src/developer-agent/operation-registry.d.ts +0 -60
- package/src/developer-agent/operation-registry.js +0 -1550
- package/src/developer-agent/ordering.d.ts +0 -9
- package/src/developer-agent/ordering.js +0 -15
- package/src/developer-agent/planning.d.ts +0 -25
- package/src/developer-agent/planning.js +0 -478
- package/src/developer-agent/preview-changes.js +0 -215
- package/src/developer-agent/preview-source.d.ts +0 -2
- package/src/developer-agent/preview-source.js +0 -19
- package/src/developer-agent/validation.d.ts +0 -30
- package/src/developer-agent/validation.js +0 -2725
- package/src/developer-agent/workspace-inspection.d.ts +0 -20
- package/src/developer-agent/workspace-inspection.js +0 -1189
- package/src/developer-agent/workspace-path.d.ts +0 -6
- package/src/developer-agent/workspace-path.js +0 -22
- package/src/executors/blueprint-trust/blueprint-trust.d.ts +0 -29
- package/src/executors/blueprint-trust/blueprint-trust.js +0 -121
- package/src/executors/blueprint-trust/schema.json +0 -27
- package/src/executors/blueprint-verification/blueprint-verification.d.ts +0 -13
- package/src/executors/blueprint-verification/blueprint-verification.js +0 -110
- package/src/executors/blueprint-verification/schema.json +0 -44
- package/src/executors/developer-context/developer-context.d.ts +0 -38
- package/src/executors/developer-context/developer-context.js +0 -78
- package/src/executors/developer-context/schema.json +0 -87
- package/src/executors/foundation-profile-preflight/foundation-profile-preflight.d.ts +0 -19
- package/src/executors/foundation-profile-preflight/foundation-profile-preflight.js +0 -105
- package/src/executors/foundation-profile-preflight/schema.json +0 -32
- package/src/executors/github-bootstrap/github-bootstrap.d.ts +0 -13
- package/src/executors/github-bootstrap/github-bootstrap.js +0 -62
- package/src/executors/github-bootstrap/schema.json +0 -50
- package/src/executors/infrastructure-plan/infrastructure-plan.d.ts +0 -37
- package/src/executors/infrastructure-plan/infrastructure-plan.js +0 -268
- package/src/executors/infrastructure-plan/schema.json +0 -38
- package/src/executors/router-waf-rehearsal/router-waf-rehearsal.d.ts +0 -42
- package/src/executors/router-waf-rehearsal/router-waf-rehearsal.js +0 -1229
- package/src/executors/router-waf-rehearsal/schema.json +0 -29
- package/src/executors/secret-guardrails/schema.json +0 -6
- package/src/executors/secret-guardrails/secret-guardrails.d.ts +0 -3
- package/src/executors/secret-guardrails/secret-guardrails.js +0 -44
- package/src/executors/secret-initialize/schema.json +0 -42
- package/src/executors/secret-initialize/secret-initialize.d.ts +0 -34
- package/src/executors/secret-initialize/secret-initialize.js +0 -297
- package/src/executors/secret-metadata/schema.json +0 -36
- package/src/executors/secret-metadata/secret-metadata.d.ts +0 -46
- package/src/executors/secret-metadata/secret-metadata.js +0 -230
- package/src/executors/sst-lifecycle/generated-secret-retirement.d.ts +0 -53
- package/src/executors/sst-lifecycle/generated-secret-retirement.js +0 -192
- package/src/executors/sst-lifecycle/logging-preflight.d.ts +0 -22
- package/src/executors/sst-lifecycle/logging-preflight.js +0 -206
- package/src/executors/sst-lifecycle/secret-preflight.d.ts +0 -27
- package/src/executors/sst-lifecycle/secret-preflight.js +0 -125
- package/src/executors/work-markers/schema.json +0 -14
- package/src/executors/work-markers/work-markers.d.ts +0 -6
- package/src/executors/work-markers/work-markers.js +0 -20
- package/src/foundation/cost-estimate.d.ts +0 -175
- package/src/foundation/cost-estimate.js +0 -706
- package/src/foundation/private-smoke-admission.d.ts +0 -45
- package/src/foundation/private-smoke-admission.js +0 -180
- package/src/foundation/private-smoke-control-plane.d.ts +0 -18
- package/src/foundation/private-smoke-control-plane.js +0 -184
- package/src/foundation/router-waf-rate-rehearsal.d.ts +0 -97
- package/src/foundation/router-waf-rate-rehearsal.js +0 -210
- package/src/foundation/router-waf.d.ts +0 -149
- package/src/foundation/router-waf.js +0 -809
- package/src/frontend-security/index.d.ts +0 -1
- package/src/frontend-security/index.js +0 -5
- package/src/frontend-security/security-headers.d.ts +0 -50
- package/src/frontend-security/security-headers.js +0 -418
- package/src/generators/blueprint/blueprint.d.ts +0 -5
- package/src/generators/blueprint/blueprint.js +0 -102
- package/src/generators/blueprint/files.d.ts +0 -6
- package/src/generators/blueprint/files.js +0 -217
- package/src/generators/blueprint/schema.d.ts +0 -4
- package/src/generators/blueprint/schema.json +0 -18
- package/src/generators/feature-registry.d.ts +0 -13
- package/src/generators/feature-registry.js +0 -73
- package/src/generators/observability-infrastructure.d.ts +0 -2
- package/src/generators/observability-infrastructure.js +0 -31
- package/src/generators/preset/workspace-files-adopter-skills.d.ts +0 -7
- package/src/generators/preset/workspace-files-adopter-skills.js +0 -345
- package/src/generators/preset/workspace-files-agent-development.d.ts +0 -9
- package/src/generators/preset/workspace-files-agent-development.js +0 -42
- package/src/generators/preset/workspace-files-ci-acceptance.d.ts +0 -1
- package/src/generators/preset/workspace-files-ci-acceptance.js +0 -791
- package/src/generators/preset/workspace-files-ci-install.d.ts +0 -2
- package/src/generators/preset/workspace-files-ci-install.js +0 -196
- package/src/generators/preset/workspace-files-developer-agent.d.ts +0 -16
- package/src/generators/preset/workspace-files-developer-agent.js +0 -638
- package/src/generators/preset/workspace-files-ecr-inspector.d.ts +0 -18
- package/src/generators/preset/workspace-files-ecr-inspector.js +0 -298
- package/src/generators/preset/workspace-files-foundation-workload-roles.d.ts +0 -6
- package/src/generators/preset/workspace-files-foundation-workload-roles.js +0 -409
- package/src/generators/preset/workspace-files-performance-cost.d.ts +0 -66
- package/src/generators/preset/workspace-files-performance-cost.js +0 -866
- package/src/generators/preset/workspace-files-performance-load.d.ts +0 -73
- package/src/generators/preset/workspace-files-performance-load.js +0 -815
- package/src/generators/preset/workspace-files-shared-operation-claims.d.ts +0 -10
- package/src/generators/preset/workspace-files-shared-operation-claims.js +0 -59
- package/src/generators/preset/workspace-files-stage-authority.d.ts +0 -6
- package/src/generators/preset/workspace-files-stage-authority.js +0 -529
- package/src/generators/preset/workspace-files-thin-deploy.d.ts +0 -65
- package/src/generators/preset/workspace-files-thin-deploy.js +0 -2520
- package/src/generators/preset/workspace-files-thin-docs.d.ts +0 -7
- package/src/generators/preset/workspace-files-thin-docs.js +0 -358
- package/src/generators/preset/workspace-files-thin-release.d.ts +0 -14
- package/src/generators/preset/workspace-files-thin-release.js +0 -26
- package/src/generators/preset/workspace-files-workload-role-baseline.d.ts +0 -9
- package/src/generators/preset/workspace-files-workload-role-baseline.js +0 -1314
- package/src/generators/repository-policy/repository-policy.d.ts +0 -4
- package/src/generators/repository-policy/repository-policy.js +0 -293
- package/src/generators/repository-policy/schema.d.ts +0 -28
- package/src/generators/repository-policy/schema.json +0 -122
- package/src/generators/slice/built-in-plan-alarm-identity.d.ts +0 -173
- package/src/generators/slice/built-in-plan-alarm-identity.js +0 -202
- package/src/generators/slice/built-in-plan-api-contract-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-api-contract-files.js +0 -2830
- package/src/generators/slice/built-in-plan-async-work-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-async-work-files.js +0 -6100
- package/src/generators/slice/built-in-plan-authorization-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-authorization-files.js +0 -2082
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.js +0 -1301
- package/src/generators/slice/built-in-plan-authorization-storage.d.ts +0 -3
- package/src/generators/slice/built-in-plan-authorization-storage.js +0 -119
- package/src/generators/slice/built-in-plan-background-work-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-background-work-files.js +0 -99
- package/src/generators/slice/built-in-plan-data-deletion-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-data-deletion-files.js +0 -273
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.js +0 -223
- package/src/generators/slice/built-in-plan-data-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-data-files.js +0 -513
- package/src/generators/slice/built-in-plan-data-lifecycle-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-data-lifecycle-files.js +0 -775
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.js +0 -863
- package/src/generators/slice/built-in-plan-data-retention-job-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-data-retention-job-files.js +0 -169
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.js +0 -186
- package/src/generators/slice/built-in-plan-data-rights-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-data-rights-files.js +0 -152
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.js +0 -508
- package/src/generators/slice/built-in-plan-event-contract-literal.d.ts +0 -6
- package/src/generators/slice/built-in-plan-event-contract-literal.js +0 -52
- package/src/generators/slice/built-in-plan-foundation-files.d.ts +0 -3
- package/src/generators/slice/built-in-plan-foundation-files.js +0 -205
- package/src/generators/slice/built-in-plan-frontend-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-frontend-files.js +0 -2244
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.js +0 -373
- package/src/generators/slice/built-in-plan-key-value-cleanup.d.ts +0 -4
- package/src/generators/slice/built-in-plan-key-value-cleanup.js +0 -100
- package/src/generators/slice/built-in-plan-key-value-consumer.d.ts +0 -4
- package/src/generators/slice/built-in-plan-key-value-consumer.js +0 -151
- package/src/generators/slice/built-in-plan-key-value-deletion.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-deletion.js +0 -377
- package/src/generators/slice/built-in-plan-key-value-delivery.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-delivery.js +0 -137
- package/src/generators/slice/built-in-plan-key-value-export.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-export.js +0 -595
- package/src/generators/slice/built-in-plan-key-value-holds.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-holds.js +0 -189
- package/src/generators/slice/built-in-plan-key-value-infrastructure.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-infrastructure.js +0 -102
- package/src/generators/slice/built-in-plan-key-value-performance.d.ts +0 -5
- package/src/generators/slice/built-in-plan-key-value-performance.js +0 -530
- package/src/generators/slice/built-in-plan-key-value-provider.d.ts +0 -4
- package/src/generators/slice/built-in-plan-key-value-provider.js +0 -366
- package/src/generators/slice/built-in-plan-key-value-records.d.ts +0 -3
- package/src/generators/slice/built-in-plan-key-value-records.js +0 -232
- package/src/generators/slice/built-in-plan-key-value-retention-infrastructure.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-retention-infrastructure.js +0 -103
- package/src/generators/slice/built-in-plan-key-value-retention-job-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-retention-job-files.js +0 -160
- package/src/generators/slice/built-in-plan-key-value-retention-maintenance.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-retention-maintenance.js +0 -329
- package/src/generators/slice/built-in-plan-key-value-retention-worker.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-retention-worker.js +0 -477
- package/src/generators/slice/built-in-plan-key-value-retention.d.ts +0 -2
- package/src/generators/slice/built-in-plan-key-value-retention.js +0 -184
- package/src/generators/slice/built-in-plan-metadata-files.d.ts +0 -3
- package/src/generators/slice/built-in-plan-metadata-files.js +0 -384
- package/src/generators/slice/built-in-plan-native-runtime-authority-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-native-runtime-authority-files.js +0 -324
- package/src/generators/slice/built-in-plan-operations-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-operations-files.js +0 -1218
- package/src/generators/slice/built-in-plan-performance-files.d.ts +0 -4
- package/src/generators/slice/built-in-plan-performance-files.js +0 -2439
- package/src/generators/slice/built-in-plan-release-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-release-files.js +0 -6585
- package/src/generators/slice/built-in-plan-reliability-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-reliability-files.js +0 -4724
- package/src/generators/slice/built-in-plan-secret-runtime-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-secret-runtime-files.js +0 -1015
- package/src/generators/slice/built-in-plan-sql-events.d.ts +0 -2
- package/src/generators/slice/built-in-plan-sql-events.js +0 -276
- package/src/generators/slice/built-in-plan-testing-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-testing-files.js +0 -2575
- package/src/generators/slice/built-in-plan-testing-persistence-event-files.d.ts +0 -7
- package/src/generators/slice/built-in-plan-testing-persistence-event-files.js +0 -487
- package/src/generators/slice/built-in-plan-testing-persistence-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-testing-persistence-files.js +0 -180
- package/src/generators/slice/built-in-plan-thin-release-files.d.ts +0 -11
- package/src/generators/slice/built-in-plan-thin-release-files.js +0 -162
- package/src/generators/slice/built-in-plan-verification-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-verification-files.js +0 -431
- package/src/generators/slice/built-in-plan-workload-role-files.d.ts +0 -2
- package/src/generators/slice/built-in-plan-workload-role-files.js +0 -2220
- package/src/generators/slice/data-policy-review-seed.d.ts +0 -2
- package/src/generators/slice/data-policy-review-seed.js +0 -22
- package/src/generators/slice/deployed-smoke-readiness.d.ts +0 -2
- package/src/generators/slice/deployed-smoke-readiness.js +0 -214
- package/src/generators/slice/local-source-identity.d.ts +0 -2
- package/src/generators/slice/local-source-identity.js +0 -31
- package/src/generators/upgrade/sql-seeded-reconciliation.d.ts +0 -2
- package/src/generators/upgrade/sql-seeded-reconciliation.js +0 -170
- package/src/generators/workload/performance-registration.d.ts +0 -33
- package/src/generators/workload/performance-registration.js +0 -224
- package/src/generators/workload/reliability-registration.d.ts +0 -16
- package/src/generators/workload/reliability-registration.js +0 -150
- package/src/generators/workload/service-performance-files.d.ts +0 -5
- package/src/generators/workload/service-performance-files.js +0 -1883
- package/src/git-policy/action-pins.d.ts +0 -43
- package/src/git-policy/action-pins.js +0 -50
- package/src/git-policy/github-bootstrap.d.ts +0 -94
- package/src/git-policy/github-bootstrap.js +0 -1248
- package/src/git-policy/index.d.ts +0 -3
- package/src/git-policy/index.js +0 -7
- package/src/git-policy/routing.d.ts +0 -21
- package/src/git-policy/routing.js +0 -138
- package/src/infrastructure-change/convergence.d.ts +0 -13
- package/src/infrastructure-change/convergence.js +0 -85
- package/src/infrastructure-change/drift.d.ts +0 -13
- package/src/infrastructure-change/drift.js +0 -112
- package/src/infrastructure-change/index.d.ts +0 -7
- package/src/infrastructure-change/index.js +0 -11
- package/src/infrastructure-change/local-capability.d.ts +0 -73
- package/src/infrastructure-change/local-capability.js +0 -114
- package/src/infrastructure-change/model.d.ts +0 -274
- package/src/infrastructure-change/model.js +0 -29
- package/src/infrastructure-change/normalize.d.ts +0 -16
- package/src/infrastructure-change/normalize.js +0 -285
- package/src/infrastructure-change/plan.d.ts +0 -67
- package/src/infrastructure-change/plan.js +0 -671
- package/src/infrastructure-change/risk.d.ts +0 -9
- package/src/infrastructure-change/risk.js +0 -349
- package/src/infrastructure-change/summary.d.ts +0 -20
- package/src/infrastructure-change/summary.js +0 -130
- package/src/performance/cost-collection.d.ts +0 -225
- package/src/performance/cost-collection.js +0 -827
- package/src/performance/cost-controls.d.ts +0 -135
- package/src/performance/cost-controls.js +0 -347
- package/src/performance/evidence.d.ts +0 -140
- package/src/performance/evidence.js +0 -601
- package/src/performance/index.d.ts +0 -10
- package/src/performance/index.js +0 -14
- package/src/performance/load-safety.d.ts +0 -84
- package/src/performance/load-safety.js +0 -348
- package/src/performance/model.d.ts +0 -129
- package/src/performance/model.js +0 -451
- package/src/performance/pr-artifact-budget.d.ts +0 -42
- package/src/performance/pr-artifact-budget.js +0 -151
- package/src/performance/runner.d.ts +0 -75
- package/src/performance/runner.js +0 -227
- package/src/performance/scenario-endpoint.d.ts +0 -1
- package/src/performance/scenario-endpoint.js +0 -5
- package/src/performance/scenario.d.ts +0 -215
- package/src/performance/scenario.js +0 -744
- package/src/performance/unit-cost.d.ts +0 -105
- package/src/performance/unit-cost.js +0 -364
- package/src/release/index.d.ts +0 -2
- package/src/release/index.js +0 -6
- package/src/release/lifecycle.d.ts +0 -132
- package/src/release/lifecycle.js +0 -411
- package/src/release/manifest.d.ts +0 -148
- package/src/release/manifest.js +0 -503
- package/src/release/rollout.d.ts +0 -170
- package/src/release/rollout.js +0 -578
- package/src/release/source-authority.d.ts +0 -19
- package/src/release/source-authority.js +0 -212
- package/src/schemas/aggregate-count-evidence-v1.json +0 -135
- package/src/schemas/api-contract-baseline-v1.json +0 -674
- package/src/schemas/api-contract-compatibility-report-v1.json +0 -126
- package/src/schemas/aws-billing-actual-evidence-v1.json +0 -407
- package/src/schemas/blueprint-input-schema-v1.json +0 -23
- package/src/schemas/blueprint-v1.json +0 -188
- package/src/schemas/data-lifecycle-policy-v1.json +0 -517
- package/src/schemas/performance-policy-v1.json +0 -335
- package/src/schemas/testing-evidence-quarantine-v1.json +0 -168
- package/src/schemas/testing-evidence-result-v1.json +0 -319
- package/src/secrets/aws-control-plane.d.ts +0 -29
- package/src/secrets/aws-control-plane.js +0 -322
- package/src/secrets/generated-aws-control-plane.d.ts +0 -33
- package/src/secrets/generated-aws-control-plane.js +0 -322
- package/src/secrets/guardrails.d.ts +0 -26
- package/src/secrets/guardrails.js +0 -328
- package/src/secrets/metadata.d.ts +0 -48
- package/src/secrets/metadata.js +0 -199
- package/src/secrets/operator.d.ts +0 -190
- package/src/secrets/operator.js +0 -701
- package/src/secrets/verification.d.ts +0 -18
- package/src/secrets/verification.js +0 -152
- package/src/supply-chain/action-pins.d.ts +0 -26
- package/src/supply-chain/action-pins.js +0 -262
- package/src/supply-chain/blueprint-trust-git.d.ts +0 -130
- package/src/supply-chain/blueprint-trust-git.js +0 -1642
- package/src/supply-chain/blueprint-trust-process.d.ts +0 -4
- package/src/supply-chain/blueprint-trust-process.js +0 -88
- package/src/supply-chain/blueprint-trust.d.ts +0 -354
- package/src/supply-chain/blueprint-trust.js +0 -1558
- package/src/supply-chain/blueprint-verification-authority.d.ts +0 -62
- package/src/supply-chain/blueprint-verification-authority.js +0 -661
- package/src/supply-chain/blueprint-verification-execution.d.ts +0 -68
- package/src/supply-chain/blueprint-verification-execution.js +0 -639
- package/src/supply-chain/build-output-bounds.d.ts +0 -2
- package/src/supply-chain/build-output-bounds.js +0 -12
- package/src/supply-chain/build-output.d.ts +0 -41
- package/src/supply-chain/build-output.js +0 -551
- package/src/supply-chain/common.d.ts +0 -21
- package/src/supply-chain/common.js +0 -107
- package/src/supply-chain/container-artifact-contract.d.ts +0 -23
- package/src/supply-chain/container-artifact-contract.js +0 -208
- package/src/supply-chain/container-release.d.ts +0 -119
- package/src/supply-chain/container-release.js +0 -496
- package/src/supply-chain/ecr-applicability.d.ts +0 -19
- package/src/supply-chain/ecr-applicability.js +0 -103
- package/src/supply-chain/ecr-scanning.d.ts +0 -85
- package/src/supply-chain/ecr-scanning.js +0 -325
- package/src/supply-chain/ecs-deployed-image.d.ts +0 -87
- package/src/supply-chain/ecs-deployed-image.js +0 -302
- package/src/supply-chain/errors.d.ts +0 -6
- package/src/supply-chain/errors.js +0 -15
- package/src/supply-chain/generated-blueprint-trust-command.d.ts +0 -4
- package/src/supply-chain/generated-blueprint-trust-command.js +0 -1379
- package/src/supply-chain/generated-command.d.ts +0 -1
- package/src/supply-chain/generated-command.js +0 -775
- package/src/supply-chain/generated-container-release-command.d.ts +0 -16
- package/src/supply-chain/generated-container-release-command.js +0 -3248
- package/src/supply-chain/generated-ecr-collector-command.d.ts +0 -20
- package/src/supply-chain/generated-ecr-collector-command.js +0 -1445
- package/src/supply-chain/generated-files.d.ts +0 -13
- package/src/supply-chain/generated-files.js +0 -421
- package/src/supply-chain/generated-scanner-command.d.ts +0 -1
- package/src/supply-chain/generated-scanner-command.js +0 -778
- package/src/supply-chain/index.d.ts +0 -28
- package/src/supply-chain/index.js +0 -36
- package/src/supply-chain/inventory.d.ts +0 -96
- package/src/supply-chain/inventory.js +0 -828
- package/src/supply-chain/license-expression.d.ts +0 -7
- package/src/supply-chain/license-expression.js +0 -128
- package/src/supply-chain/policy.d.ts +0 -105
- package/src/supply-chain/policy.js +0 -304
- package/src/supply-chain/publication.d.ts +0 -48
- package/src/supply-chain/publication.js +0 -85
- package/src/supply-chain/sbom.d.ts +0 -228
- package/src/supply-chain/sbom.js +0 -913
- package/src/supply-chain/scanner.d.ts +0 -77
- package/src/supply-chain/scanner.js +0 -514
- package/src/supply-chain/vendored-source.d.ts +0 -95
- package/src/supply-chain/vendored-source.js +0 -315
- package/src/testing-evidence/fixture-scope.d.ts +0 -53
- package/src/testing-evidence/fixture-scope.js +0 -142
- package/src/testing-evidence/index.d.ts +0 -5
- package/src/testing-evidence/index.js +0 -9
- package/src/testing-evidence/quarantine.d.ts +0 -48
- package/src/testing-evidence/quarantine.js +0 -253
- package/src/testing-evidence/result.d.ts +0 -109
- package/src/testing-evidence/result.js +0 -585
- package/src/testing-evidence/runner-adapter.d.ts +0 -51
- package/src/testing-evidence/runner-adapter.js +0 -288
- package/src/testing-evidence/sensitive-artifacts.d.ts +0 -13
- package/src/testing-evidence/sensitive-artifacts.js +0 -93
- package/src/work-markers/index.d.ts +0 -1
- package/src/work-markers/index.js +0 -5
- package/src/work-markers/work-markers.d.ts +0 -39
- package/src/work-markers/work-markers.js +0 -360
- package/src/workload-roles/account-baseline.d.ts +0 -143
- package/src/workload-roles/account-baseline.js +0 -980
- package/src/workload-roles/authority.d.ts +0 -40
- package/src/workload-roles/authority.js +0 -202
- package/src/workload-roles/aws-adapter.d.ts +0 -99
- package/src/workload-roles/aws-adapter.js +0 -416
- package/src/workload-roles/aws-internal-handler.d.ts +0 -27
- package/src/workload-roles/aws-internal-handler.js +0 -58
- package/src/workload-roles/aws-s3-state.d.ts +0 -52
- package/src/workload-roles/aws-s3-state.js +0 -191
- package/src/workload-roles/aws-sdk-control-plane.d.ts +0 -12
- package/src/workload-roles/aws-sdk-control-plane.js +0 -291
- package/src/workload-roles/boundary.d.ts +0 -34
- package/src/workload-roles/boundary.js +0 -137
- package/src/workload-roles/convergence.d.ts +0 -66
- package/src/workload-roles/convergence.js +0 -186
- package/src/workload-roles/handler.d.ts +0 -43
- package/src/workload-roles/handler.js +0 -158
- package/src/workload-roles/history.d.ts +0 -47
- package/src/workload-roles/history.js +0 -324
- package/src/workload-roles/injection.d.ts +0 -119
- package/src/workload-roles/injection.js +0 -495
- package/src/workload-roles/manifest.d.ts +0 -54
- package/src/workload-roles/manifest.js +0 -343
- package/src/workload-roles/provisioner.d.ts +0 -70
- package/src/workload-roles/provisioner.js +0 -239
- package/src/workload-roles/registration.d.ts +0 -102
- package/src/workload-roles/registration.js +0 -462
- package/src/workload-roles/stage-boundary.d.ts +0 -31
- package/src/workload-roles/stage-boundary.js +0 -208
- /package/src/executors/{foundation-profile-preflight → local-deploy}/production-database-safeguard.d.ts +0 -0
- /package/src/executors/{foundation-profile-preflight → local-deploy}/production-database-safeguard.js +0 -0
|
@@ -1,1550 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ROUTER_WAF_REHEARSAL_OWNER_RATIONALE = exports.GRAPH_INTERACTIVE_RATIONALE = exports.FORMAT_WRITE_OWNER_RATIONALE = exports.WORKLOAD_DEV_OWNER_RATIONALE = exports.DOCKER_BUILD_OWNER_RATIONALE = exports.DEPLOY_LOCAL_OWNER_RATIONALE = exports.DeveloperAgentOperationRegistryError = void 0;
|
|
4
|
-
exports.joinDeveloperAgentAuthorityClasses = joinDeveloperAgentAuthorityClasses;
|
|
5
|
-
exports.createDeveloperAgentOperationRegistry = createDeveloperAgentOperationRegistry;
|
|
6
|
-
exports.requireDeveloperAgentOperation = requireDeveloperAgentOperation;
|
|
7
|
-
exports.operationLooksMutating = operationLooksMutating;
|
|
8
|
-
const node_util_1 = require("node:util");
|
|
9
|
-
const contracts_js_1 = require("../local-dev/contracts.js");
|
|
10
|
-
const blueprint_trust_js_1 = require("../supply-chain/blueprint-trust.js");
|
|
11
|
-
const model_js_1 = require("./model.js");
|
|
12
|
-
const ordering_js_1 = require("./ordering.js");
|
|
13
|
-
class DeveloperAgentOperationRegistryError extends Error {
|
|
14
|
-
classification = 'unsupported-operation';
|
|
15
|
-
constructor() {
|
|
16
|
-
super('Requested Developer-Agent operation is not in the inspected operation registry.');
|
|
17
|
-
this.name = 'DeveloperAgentOperationRegistryError';
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.DeveloperAgentOperationRegistryError = DeveloperAgentOperationRegistryError;
|
|
21
|
-
const exact = (...names) => {
|
|
22
|
-
const values = new Set(names);
|
|
23
|
-
return (targetName) => values.has(targetName);
|
|
24
|
-
};
|
|
25
|
-
const suffix = (...suffixes) => (targetName) => suffixes.some((value) => targetName.endsWith(value));
|
|
26
|
-
const containsSegment = (...segments) => (targetName) => {
|
|
27
|
-
const words = new Set(targetName.split('-'));
|
|
28
|
-
return segments.some((value) => words.has(value));
|
|
29
|
-
};
|
|
30
|
-
const ALL_CANONICAL_STAGES = [
|
|
31
|
-
'development',
|
|
32
|
-
'staging',
|
|
33
|
-
'production',
|
|
34
|
-
];
|
|
35
|
-
const PROTECTED_CANONICAL_STAGES = [
|
|
36
|
-
'staging',
|
|
37
|
-
'production',
|
|
38
|
-
];
|
|
39
|
-
const PROTECTED_WORKFLOW_ONLY_RATIONALE = 'This exact target is reserved for a protected workflow that supplies reviewed authority and retained evidence; Developer-Agent planning must use that owning workflow.';
|
|
40
|
-
/**
|
|
41
|
-
* Non-plannable local targets name their real owner. Each string states only
|
|
42
|
-
* behaviour that exists: none of them promises a Developer-Agent plan entry.
|
|
43
|
-
*/
|
|
44
|
-
exports.DEPLOY_LOCAL_OWNER_RATIONALE = 'Development deployment is owned by ebk deploy development [slice]: run that command directly with the saved development --profile and the policy-derived --expectedRoleArn. This root target is its Nx implementation, not a separate entry point.';
|
|
45
|
-
exports.DOCKER_BUILD_OWNER_RATIONALE = 'Local workload image builds use the host Docker daemon outside any bounded owner. Verify workload source with its build, test and typecheck targets; ebk deploy development <slice> builds the deployable image.';
|
|
46
|
-
exports.WORKLOAD_DEV_OWNER_RATIONALE = 'A hot workload process started outside the ebk dev Fleet has no owned port, lifecycle or cleanup. Verify Service and Job source with its test, typecheck and build targets and exercise it through ebk deploy development <slice>.';
|
|
47
|
-
exports.FORMAT_WRITE_OWNER_RATIONALE = 'Formatting rewrites source files only: run pnpm nx format:write directly as part of a source edit, then rerun the required verification.';
|
|
48
|
-
exports.GRAPH_INTERACTIVE_RATIONALE = 'nx graph starts an interactive browser server and is not a bounded operation; use ebk agent context for the read-only project inventory.';
|
|
49
|
-
exports.ROUTER_WAF_REHEARSAL_OWNER_RATIONALE = 'The Router WAF rehearsal requires an exact --probeUrl that planning cannot derive: run it directly through its Nx target with that option after a development deployment.';
|
|
50
|
-
function policyLifecycleActionForTarget(targetName) {
|
|
51
|
-
if (exact('deploy', 'deploy-infrastructure', 'deploy-local', 'deployment-plan', 'foundation-ready')(targetName)) {
|
|
52
|
-
return 'deploy';
|
|
53
|
-
}
|
|
54
|
-
if (exact('dev', 'dev-cleanup', 'dev-task-cleanup', 'dev-setup')(targetName))
|
|
55
|
-
return 'dev';
|
|
56
|
-
if (exact('db-local-migrate', 'db-migrate')(targetName))
|
|
57
|
-
return 'migrate';
|
|
58
|
-
if (targetName === 'refresh')
|
|
59
|
-
return 'refresh';
|
|
60
|
-
if (targetName === 'remove')
|
|
61
|
-
return 'remove';
|
|
62
|
-
if (targetName === 'unlock')
|
|
63
|
-
return 'unlock';
|
|
64
|
-
return undefined;
|
|
65
|
-
}
|
|
66
|
-
function exactOptions(expected) {
|
|
67
|
-
return (input, options) => (0, node_util_1.isDeepStrictEqual)(options, expected(input));
|
|
68
|
-
}
|
|
69
|
-
function runCommandSignature(targetName, command, settings = {}) {
|
|
70
|
-
return {
|
|
71
|
-
...(settings.continuous ? { continuous: true } : {}),
|
|
72
|
-
...(settings.dependsOn
|
|
73
|
-
? {
|
|
74
|
-
dependsOn: (input) => typeof settings.dependsOn === 'function'
|
|
75
|
-
? settings.dependsOn(input)
|
|
76
|
-
: settings.dependsOn,
|
|
77
|
-
}
|
|
78
|
-
: {}),
|
|
79
|
-
executor: 'nx:run-commands',
|
|
80
|
-
...(settings.nonPlannableRationale
|
|
81
|
-
? { nonPlannableRationale: settings.nonPlannableRationale }
|
|
82
|
-
: {}),
|
|
83
|
-
optionsMatch: exactOptions((input) => ({
|
|
84
|
-
command,
|
|
85
|
-
...(settings.workspaceRoot ? {} : { cwd: input.project.root }),
|
|
86
|
-
...(settings.env ? { env: settings.env } : {}),
|
|
87
|
-
...(settings.forwardAllArgs === undefined
|
|
88
|
-
? {}
|
|
89
|
-
: { forwardAllArgs: settings.forwardAllArgs }),
|
|
90
|
-
})),
|
|
91
|
-
targetName,
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
function runScriptSignature(targetName, expectedScript, settings = {}) {
|
|
95
|
-
const { dependsOn, ...signatureSettings } = settings;
|
|
96
|
-
return {
|
|
97
|
-
...signatureSettings,
|
|
98
|
-
...(dependsOn ? { dependsOn: () => dependsOn } : {}),
|
|
99
|
-
executor: 'nx:run-script',
|
|
100
|
-
metadataMatch: (input, metadata) => {
|
|
101
|
-
const script = expectedScript(input);
|
|
102
|
-
return (script !== undefined &&
|
|
103
|
-
(0, node_util_1.isDeepStrictEqual)(metadata, {
|
|
104
|
-
runCommand: `pnpm run ${targetName}`,
|
|
105
|
-
scriptContent: script,
|
|
106
|
-
}));
|
|
107
|
-
},
|
|
108
|
-
optionsMatch: (_input, options) => (0, node_util_1.isDeepStrictEqual)(options, { script: targetName }),
|
|
109
|
-
targetName,
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function executorSignature(targetName, executor, options, dependsOn, settings = {}) {
|
|
113
|
-
return {
|
|
114
|
-
...settings,
|
|
115
|
-
...(dependsOn
|
|
116
|
-
? {
|
|
117
|
-
dependsOn: (input) => typeof dependsOn === 'function' ? dependsOn(input) : dependsOn,
|
|
118
|
-
}
|
|
119
|
-
: {}),
|
|
120
|
-
executor,
|
|
121
|
-
optionsMatch: options,
|
|
122
|
-
targetName,
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
// Use the inspected target inventory, not the workspace-wide Foundation
|
|
126
|
-
// capability: a SQL-free Slice may coexist with a relational Slice. Any SQL
|
|
127
|
-
// target keeps the SQL prerequisites mandatory, including in a partial/tampered
|
|
128
|
-
// graph where db-check alone was removed.
|
|
129
|
-
function sliceDeclaresSql(input) {
|
|
130
|
-
return input.project.targets.some((name) => [
|
|
131
|
-
'db-check',
|
|
132
|
-
'db-generate',
|
|
133
|
-
'db-migrate',
|
|
134
|
-
'db-local-down',
|
|
135
|
-
'db-local-migrate',
|
|
136
|
-
'db-local-up',
|
|
137
|
-
'db-retirement-rehearsal',
|
|
138
|
-
].includes(name));
|
|
139
|
-
}
|
|
140
|
-
const sliceVerifyDependencies = (input) => [
|
|
141
|
-
'api-contract-check',
|
|
142
|
-
'async-verify',
|
|
143
|
-
'authorization-check',
|
|
144
|
-
'build',
|
|
145
|
-
'contract-dependencies-check',
|
|
146
|
-
'data-policy-check',
|
|
147
|
-
...(sliceDeclaresSql(input) ? ['db-check'] : []),
|
|
148
|
-
'frontend-boundaries',
|
|
149
|
-
'lint',
|
|
150
|
-
'performance-budget',
|
|
151
|
-
'performance-check',
|
|
152
|
-
'reliability-verify',
|
|
153
|
-
'secret-guardrails',
|
|
154
|
-
'smoke-deployed-check',
|
|
155
|
-
'test',
|
|
156
|
-
'test-integration',
|
|
157
|
-
'typecheck',
|
|
158
|
-
];
|
|
159
|
-
function sliceReleaseArtifactDependencies(input) {
|
|
160
|
-
if (input.project.root !== `packages/${input.project.name}` ||
|
|
161
|
-
!input.project.tags.includes('type:slice')) {
|
|
162
|
-
return [];
|
|
163
|
-
}
|
|
164
|
-
return [
|
|
165
|
-
'build',
|
|
166
|
-
{
|
|
167
|
-
params: 'ignore',
|
|
168
|
-
projects: [`@${input.project.name}/job-data-retention`],
|
|
169
|
-
target: 'build',
|
|
170
|
-
},
|
|
171
|
-
];
|
|
172
|
-
}
|
|
173
|
-
// These are execution signatures, not name heuristics. Generator changes that
|
|
174
|
-
// alter executor options or dependency closure must update this reviewed list;
|
|
175
|
-
// external Blueprint verification instead enters through the exact protected
|
|
176
|
-
// target-closure review passed to the registry below.
|
|
177
|
-
const TARGET_SIGNATURES = [
|
|
178
|
-
runCommandSignature('verify-local-browser', 'node scripts/verify-local-browser.mjs', { forwardAllArgs: false }),
|
|
179
|
-
runCommandSignature('api-contract-baseline', 'node --experimental-strip-types scripts/api-contract.mjs baseline', { forwardAllArgs: true }),
|
|
180
|
-
runCommandSignature('api-contract-check', 'node --experimental-strip-types scripts/api-contract.mjs check', { forwardAllArgs: false }),
|
|
181
|
-
runCommandSignature('api-contract-generate', 'node --experimental-strip-types scripts/api-contract.mjs generate', { forwardAllArgs: false }),
|
|
182
|
-
runCommandSignature('authorization-check', 'vitest run authorization', {
|
|
183
|
-
forwardAllArgs: false,
|
|
184
|
-
}),
|
|
185
|
-
executorSignature('blueprint-trust-check', '@empire-builder-kit/nx:blueprint-trust', exactOptions(() => ({
|
|
186
|
-
operation: 'adopt',
|
|
187
|
-
output: '.ebk/evidence/supply-chain/blueprint-trust.json',
|
|
188
|
-
protectedBranch: 'develop',
|
|
189
|
-
protectedRef: 'refs/remotes/origin/develop',
|
|
190
|
-
}))),
|
|
191
|
-
executorSignature('blueprint-trust-check-main', '@empire-builder-kit/nx:blueprint-trust', exactOptions(() => ({
|
|
192
|
-
operation: 'adopt',
|
|
193
|
-
output: '.ebk/evidence/supply-chain/blueprint-trust.json',
|
|
194
|
-
protectedBranch: 'main',
|
|
195
|
-
protectedRef: 'refs/remotes/origin/main',
|
|
196
|
-
})), undefined, {
|
|
197
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
198
|
-
}),
|
|
199
|
-
executorSignature('blueprint-trust-check-protected', '@empire-builder-kit/nx:blueprint-trust', exactOptions(() => ({
|
|
200
|
-
operation: 'deploy',
|
|
201
|
-
output: '.ebk/evidence/supply-chain/blueprint-trust.json',
|
|
202
|
-
protectedBranch: 'develop',
|
|
203
|
-
protectedRef: 'refs/remotes/origin/develop',
|
|
204
|
-
})), undefined, {
|
|
205
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
206
|
-
}),
|
|
207
|
-
runCommandSignature('async-inventory', 'node --experimental-strip-types scripts/async-recovery.mjs inventory dlq-redrive', { forwardAllArgs: false }),
|
|
208
|
-
runCommandSignature('async-backfill', 'node --experimental-strip-types scripts/async-recovery.mjs apply checkpointed-backfill', { forwardAllArgs: false }),
|
|
209
|
-
runCommandSignature('async-backfill-report', 'node --experimental-strip-types scripts/async-recovery.mjs report checkpointed-backfill', { forwardAllArgs: false }),
|
|
210
|
-
runCommandSignature('async-backfill-status', 'node --experimental-strip-types scripts/async-recovery.mjs status checkpointed-backfill', { forwardAllArgs: false }),
|
|
211
|
-
runCommandSignature('async-provider-reconcile', 'node --experimental-strip-types scripts/async-recovery.mjs apply provider-reconciliation', { forwardAllArgs: false }),
|
|
212
|
-
runCommandSignature('async-provider-reconcile-report', 'node --experimental-strip-types scripts/async-recovery.mjs report provider-reconciliation', { forwardAllArgs: false }),
|
|
213
|
-
runCommandSignature('async-provider-reconcile-status', 'node --experimental-strip-types scripts/async-recovery.mjs status provider-reconciliation', { forwardAllArgs: false }),
|
|
214
|
-
runCommandSignature('async-queue-redrive-report', 'node --experimental-strip-types scripts/async-recovery.mjs report dlq-redrive', { forwardAllArgs: false }),
|
|
215
|
-
runCommandSignature('async-queue-redrive-status', 'node --experimental-strip-types scripts/async-recovery.mjs status dlq-redrive', { forwardAllArgs: false }),
|
|
216
|
-
runCommandSignature('async-workflow-recover', 'node --experimental-strip-types scripts/async-recovery.mjs apply workflow-recovery', { forwardAllArgs: false }),
|
|
217
|
-
runCommandSignature('async-workflow-recovery-report', 'node --experimental-strip-types scripts/async-recovery.mjs report workflow-recovery', { forwardAllArgs: false }),
|
|
218
|
-
runCommandSignature('async-workflow-recovery-status', 'node --experimental-strip-types scripts/async-recovery.mjs status workflow-recovery', { forwardAllArgs: false }),
|
|
219
|
-
runCommandSignature('async-verify', 'node --experimental-strip-types scripts/async-contract.mjs', { forwardAllArgs: false }),
|
|
220
|
-
runCommandSignature('build', 'next build --webpack web', {
|
|
221
|
-
dependsOn: ['secret-guardrails', 'typecheck'],
|
|
222
|
-
env: { NODE_ENV: 'production' },
|
|
223
|
-
}),
|
|
224
|
-
runCommandSignature('configuration-expected', 'node --experimental-strip-types scripts/configuration-expected.mjs', { forwardAllArgs: false }),
|
|
225
|
-
runCommandSignature('configuration-check', 'node --experimental-strip-types scripts/configuration-check.mjs', { forwardAllArgs: false }),
|
|
226
|
-
runCommandSignature('contract-dependencies-check', 'node scripts/contract-dependencies.mjs check', { forwardAllArgs: false }),
|
|
227
|
-
runCommandSignature('contract-dependencies-sync', 'node scripts/contract-dependencies.mjs sync', { forwardAllArgs: false }),
|
|
228
|
-
runCommandSignature('container-release-amd64', 'node ../../tools/container-release.mjs platform linux/amd64', {
|
|
229
|
-
dependsOn: ['release-artifacts'],
|
|
230
|
-
forwardAllArgs: false,
|
|
231
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
232
|
-
}),
|
|
233
|
-
runCommandSignature('container-release-arm64', 'node ../../tools/container-release.mjs platform linux/arm64', {
|
|
234
|
-
dependsOn: ['release-artifacts'],
|
|
235
|
-
forwardAllArgs: false,
|
|
236
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
237
|
-
}),
|
|
238
|
-
runCommandSignature('container-release-assemble', 'node ../../tools/container-release.mjs assemble', {
|
|
239
|
-
dependsOn: ['release-artifacts'],
|
|
240
|
-
forwardAllArgs: false,
|
|
241
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
242
|
-
}),
|
|
243
|
-
runCommandSignature('container-release-promote', 'node ../../tools/container-release.mjs promote', {
|
|
244
|
-
forwardAllArgs: false,
|
|
245
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
246
|
-
}),
|
|
247
|
-
runCommandSignature('db-check', 'node scripts/check-database.mjs'),
|
|
248
|
-
runCommandSignature('db-generate', 'drizzle-kit generate --config=database/drizzle.config.ts'),
|
|
249
|
-
runCommandSignature('db-migrate', 'node scripts/migrate-database.mjs', {
|
|
250
|
-
dependsOn: [{ params: 'forward', target: 'deploy-infrastructure' }],
|
|
251
|
-
forwardAllArgs: true,
|
|
252
|
-
}),
|
|
253
|
-
runCommandSignature('db-local-down', 'node scripts/local-database.mjs down'),
|
|
254
|
-
runCommandSignature('db-local-migrate', 'drizzle-kit migrate --config=database/drizzle.config.ts', { dependsOn: ['db-local-up'] }),
|
|
255
|
-
runCommandSignature('db-local-up', 'node scripts/local-database.mjs up', {
|
|
256
|
-
dependsOn: ['db-check'],
|
|
257
|
-
}),
|
|
258
|
-
runCommandSignature('db-retirement-rehearsal', 'node scripts/rehearse-database-retirement.mjs', { forwardAllArgs: false }),
|
|
259
|
-
runCommandSignature('data-policy-check', 'node scripts/data-policy.mjs', {
|
|
260
|
-
forwardAllArgs: false,
|
|
261
|
-
}),
|
|
262
|
-
runCommandSignature('data-policy-reconcile', 'node scripts/data-policy-reconcile.mjs', { dependsOn: ['data-policy-check'], forwardAllArgs: true }),
|
|
263
|
-
runCommandSignature('data-restore-reconcile', 'node --experimental-strip-types scripts/data-restore-reconcile.mjs', { forwardAllArgs: true }),
|
|
264
|
-
runCommandSignature('data-retention', 'node --experimental-strip-types scripts/data-retention.mjs', { forwardAllArgs: true }),
|
|
265
|
-
runCommandSignature('deploy', 'node scripts/confirm-deploy.mjs', {
|
|
266
|
-
dependsOn: (input) => [
|
|
267
|
-
{
|
|
268
|
-
params: 'forward',
|
|
269
|
-
target: sliceDeclaresSql(input)
|
|
270
|
-
? 'db-migrate'
|
|
271
|
-
: 'deploy-infrastructure',
|
|
272
|
-
},
|
|
273
|
-
],
|
|
274
|
-
forwardAllArgs: true,
|
|
275
|
-
}),
|
|
276
|
-
runCommandSignature('dev-prerequisite', 'node scripts/verify-live-mode.mjs', {
|
|
277
|
-
dependsOn: (input) => [
|
|
278
|
-
...(sliceDeclaresSql(input) ? ['db-check'] : []),
|
|
279
|
-
'secret-guardrails',
|
|
280
|
-
'typecheck',
|
|
281
|
-
],
|
|
282
|
-
}),
|
|
283
|
-
runCommandSignature('frontend-boundaries', 'node scripts/frontend-boundaries.mjs --output=.ebk/evidence/frontend/frontend-boundaries.json', { forwardAllArgs: false }),
|
|
284
|
-
runCommandSignature('frontend-security-headers', 'node scripts/frontend-security-headers.mjs', {
|
|
285
|
-
forwardAllArgs: true,
|
|
286
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
287
|
-
}),
|
|
288
|
-
runCommandSignature('frontend-visual', 'node scripts/frontend-visual-report.mjs verify', { forwardAllArgs: false }),
|
|
289
|
-
runCommandSignature('frontend-visual-update', 'node scripts/frontend-visual-report.mjs update', { forwardAllArgs: true }),
|
|
290
|
-
runCommandSignature('ecr-inspector-collect', 'node ../../tools/ecr-inspector-collect.mjs collect', { forwardAllArgs: false }),
|
|
291
|
-
runCommandSignature('ecr-scan-applicability', 'node ../../tools/ecr-inspector-collect.mjs assess', { forwardAllArgs: false }),
|
|
292
|
-
runCommandSignature('infrastructure-drift', 'node --experimental-strip-types scripts/infrastructure-drift.mjs', { forwardAllArgs: false }),
|
|
293
|
-
runCommandSignature('lint', 'eslint .'),
|
|
294
|
-
runCommandSignature('performance-budget', 'node scripts/performance-budget-check.mjs', { dependsOn: ['build'], forwardAllArgs: false }),
|
|
295
|
-
runCommandSignature('performance-evidence-evaluate', 'node scripts/performance-evidence-evaluate.mjs', { forwardAllArgs: false }),
|
|
296
|
-
runCommandSignature('performance-check', 'node scripts/performance-policy-check.mjs', { forwardAllArgs: false }),
|
|
297
|
-
runCommandSignature('performance-cost-collect', 'node scripts/performance-cost-collect.mjs', { forwardAllArgs: false }),
|
|
298
|
-
runCommandSignature('performance-aggregate-counts', 'node --experimental-strip-types scripts/performance-aggregate-counts.mjs', {
|
|
299
|
-
forwardAllArgs: false,
|
|
300
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
301
|
-
}),
|
|
302
|
-
runCommandSignature('performance-load-cleanup', 'node scripts/performance-load-cleanup.mjs', {
|
|
303
|
-
forwardAllArgs: false,
|
|
304
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
305
|
-
}),
|
|
306
|
-
runCommandSignature('performance-run', 'node scripts/performance-load-runner.mjs', {
|
|
307
|
-
forwardAllArgs: false,
|
|
308
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
309
|
-
}),
|
|
310
|
-
runCommandSignature('performance-ready', 'node scripts/performance-policy-check.mjs --require-ready', { forwardAllArgs: false }),
|
|
311
|
-
runCommandSignature('performance-tag-coverage', 'node scripts/performance-tag-coverage.mjs', { forwardAllArgs: false }),
|
|
312
|
-
runCommandSignature('performance-unit-cost', 'node scripts/performance-unit-cost.mjs', { forwardAllArgs: false }),
|
|
313
|
-
runCommandSignature('reliability-deployed-verify', 'node scripts/verify-reliability.mjs --deployed', { forwardAllArgs: false }),
|
|
314
|
-
runCommandSignature('reliability-deployment-binding', 'node scripts/create-reliability-deployment-binding.mjs', {
|
|
315
|
-
forwardAllArgs: false,
|
|
316
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
317
|
-
}),
|
|
318
|
-
runCommandSignature('reliability-diagnostic', 'node scripts/reliability-diagnostic.mjs', { forwardAllArgs: false }),
|
|
319
|
-
runCommandSignature('reliability-exercise-collect', 'node scripts/collect-reliability-exercise.mjs', { forwardAllArgs: false }),
|
|
320
|
-
runCommandSignature('reliability-exercise-report', 'node scripts/reliability-exercise-report.mjs', { forwardAllArgs: false }),
|
|
321
|
-
runCommandSignature('reliability-remediation', 'node scripts/incident-remediation.mjs', { forwardAllArgs: false }),
|
|
322
|
-
runCommandSignature('reliability-report', 'node scripts/reliability-report.mjs', { forwardAllArgs: false }),
|
|
323
|
-
runCommandSignature('reliability-verify', 'node scripts/verify-reliability.mjs', { forwardAllArgs: false }),
|
|
324
|
-
runCommandSignature('release-artifacts', 'node --experimental-strip-types scripts/release-artifacts.mjs', {
|
|
325
|
-
dependsOn: sliceReleaseArtifactDependencies,
|
|
326
|
-
forwardAllArgs: false,
|
|
327
|
-
}),
|
|
328
|
-
runCommandSignature('release-candidate', 'node --experimental-strip-types scripts/release-candidate.mjs', {
|
|
329
|
-
dependsOn: [
|
|
330
|
-
'api-contract-check',
|
|
331
|
-
'release-artifacts',
|
|
332
|
-
'test-integration',
|
|
333
|
-
],
|
|
334
|
-
forwardAllArgs: false,
|
|
335
|
-
}),
|
|
336
|
-
runCommandSignature('release-lifecycle', 'node --experimental-strip-types scripts/release-lifecycle.mjs', { forwardAllArgs: false }),
|
|
337
|
-
runCommandSignature('release-manifest', 'node --experimental-strip-types scripts/release-manifest.mjs', { forwardAllArgs: false }),
|
|
338
|
-
runCommandSignature('release-rollout', 'node --experimental-strip-types scripts/release-rollout.mjs', { forwardAllArgs: false }),
|
|
339
|
-
runCommandSignature('secret-personal-down', 'node --experimental-strip-types scripts/remove-personal-secrets.mjs', { forwardAllArgs: false }),
|
|
340
|
-
runCommandSignature('smoke-deployed', 'node scripts/run-smoke-deployed.mjs', {
|
|
341
|
-
forwardAllArgs: false,
|
|
342
|
-
}),
|
|
343
|
-
runCommandSignature('smoke-deployed-check', 'playwright test --list'),
|
|
344
|
-
runCommandSignature('test', 'vitest run'),
|
|
345
|
-
runCommandSignature('test', 'vitest run', {
|
|
346
|
-
dependsOn: ['^build'],
|
|
347
|
-
}),
|
|
348
|
-
runCommandSignature('test-integration', 'node scripts/run-integration-tests.mjs', { forwardAllArgs: false }),
|
|
349
|
-
runCommandSignature('typecheck', 'tsc --noEmit -p tsconfig.json'),
|
|
350
|
-
runCommandSignature('typecheck', 'tsc --noEmit -p tsconfig.json', {
|
|
351
|
-
dependsOn: ['^build'],
|
|
352
|
-
}),
|
|
353
|
-
runCommandSignature('verify', 'node scripts/verify-slice.mjs', {
|
|
354
|
-
dependsOn: sliceVerifyDependencies,
|
|
355
|
-
}),
|
|
356
|
-
runCommandSignature('verify', 'node scripts/verify-foundation.mjs', {
|
|
357
|
-
dependsOn: ['lint', 'typecheck'],
|
|
358
|
-
}),
|
|
359
|
-
runCommandSignature('install-git-hooks', 'node tools/install-ebk-hooks.mjs', {
|
|
360
|
-
workspaceRoot: true,
|
|
361
|
-
}),
|
|
362
|
-
runCommandSignature('supply-chain-scan', 'node tools/supply-chain-scan.mjs --output=.ebk/evidence/supply-chain/scanner-input.json', { workspaceRoot: true }),
|
|
363
|
-
runCommandSignature('supply-chain-check', 'node tools/supply-chain-check.mjs --scanner=supply-chain/structural-scanner-input.json --output=.ebk/evidence/supply-chain/check.json', { workspaceRoot: true }),
|
|
364
|
-
runCommandSignature('supply-chain-check-protected', 'node tools/supply-chain-check.mjs --protected --scanner=.ebk/evidence/supply-chain/scanner-input.json --output=.ebk/evidence/supply-chain/check.json', {
|
|
365
|
-
nonPlannableRationale: PROTECTED_WORKFLOW_ONLY_RATIONALE,
|
|
366
|
-
workspaceRoot: true,
|
|
367
|
-
}),
|
|
368
|
-
runCommandSignature('stage-authority-render', 'node tools/stage-authority-render.mjs', {
|
|
369
|
-
forwardAllArgs: true,
|
|
370
|
-
workspaceRoot: true,
|
|
371
|
-
}),
|
|
372
|
-
runCommandSignature('workload-role-candidate-report', 'node tools/workload-role-baseline/report-candidate-bundle.mjs', { forwardAllArgs: true, workspaceRoot: true }),
|
|
373
|
-
runCommandSignature('workload-role-provisioner-build', 'node tools/workload-role-baseline/build.mjs', { workspaceRoot: true }),
|
|
374
|
-
runCommandSignature('verify', 'node tools/workspace-health.mjs', {
|
|
375
|
-
dependsOn: ['blueprint-trust-check', 'supply-chain-check'],
|
|
376
|
-
workspaceRoot: true,
|
|
377
|
-
}),
|
|
378
|
-
runCommandSignature('verify-proposed', 'node tools/workspace-health.mjs', {
|
|
379
|
-
dependsOn: ['supply-chain-check'],
|
|
380
|
-
workspaceRoot: true,
|
|
381
|
-
}),
|
|
382
|
-
runCommandSignature('workspace-health', 'node tools/workspace-health.mjs', {
|
|
383
|
-
workspaceRoot: true,
|
|
384
|
-
}),
|
|
385
|
-
runScriptSignature('build', (input) => {
|
|
386
|
-
if (input.project.tags.includes('scope:workspace')) {
|
|
387
|
-
return `nx run-many -t build --exclude=${input.project.name}`;
|
|
388
|
-
}
|
|
389
|
-
const dataRetentionJob = /^packages\/([^/]+)\/jobs\/data-retention$/u.exec(input.project.root);
|
|
390
|
-
if (dataRetentionJob) {
|
|
391
|
-
return input.project.name ===
|
|
392
|
-
`@${dataRetentionJob[1]}/job-data-retention`
|
|
393
|
-
? 'tsc -p tsconfig.build.json'
|
|
394
|
-
: undefined;
|
|
395
|
-
}
|
|
396
|
-
return input.project.root.includes('/services/') ||
|
|
397
|
-
input.project.root.includes('/jobs/')
|
|
398
|
-
? 'tsc -p tsconfig.json'
|
|
399
|
-
: undefined;
|
|
400
|
-
}, { dependsOn: ['^build'] }),
|
|
401
|
-
runScriptSignature('docker-build', (input) => {
|
|
402
|
-
const match = /^packages\/([^/]+)\/(services|jobs)\/([^/]+)$/u.exec(input.project.root);
|
|
403
|
-
if (!match)
|
|
404
|
-
return undefined;
|
|
405
|
-
const [, slice, plural, workload] = match;
|
|
406
|
-
if (plural === 'jobs' && workload === 'data-retention') {
|
|
407
|
-
return input.project.name === `@${slice}/job-data-retention`
|
|
408
|
-
? `docker build -f packages/${slice}/jobs/data-retention/Dockerfile -t ${slice}-data-retention:local ../../../..`
|
|
409
|
-
: undefined;
|
|
410
|
-
}
|
|
411
|
-
const kind = plural === 'services' ? 'service' : 'job';
|
|
412
|
-
return ('docker build -f Dockerfile ' +
|
|
413
|
-
`-t ${slice}-${kind}-${workload}:local ../../../..`);
|
|
414
|
-
}, { nonPlannableRationale: exports.DOCKER_BUILD_OWNER_RATIONALE }),
|
|
415
|
-
runScriptSignature('dev', (input) => input.project.root.includes('/services/')
|
|
416
|
-
? 'node --experimental-strip-types src/main.ts'
|
|
417
|
-
: input.project.root.includes('/jobs/')
|
|
418
|
-
? 'node --experimental-strip-types src/run.ts'
|
|
419
|
-
: undefined, { nonPlannableRationale: exports.WORKLOAD_DEV_OWNER_RATIONALE }),
|
|
420
|
-
runScriptSignature('format', (input) => input.project.tags.includes('scope:workspace')
|
|
421
|
-
? 'nx format:write'
|
|
422
|
-
: undefined, { nonPlannableRationale: exports.FORMAT_WRITE_OWNER_RATIONALE }),
|
|
423
|
-
runScriptSignature('format:check', (input) => input.project.tags.includes('scope:workspace')
|
|
424
|
-
? 'nx format:check --all'
|
|
425
|
-
: undefined),
|
|
426
|
-
runScriptSignature('graph', (input) => input.project.tags.includes('scope:workspace') ? 'nx graph' : undefined, { nonPlannableRationale: exports.GRAPH_INTERACTIVE_RATIONALE }),
|
|
427
|
-
runScriptSignature('health', (input) => input.project.tags.includes('scope:workspace')
|
|
428
|
-
? `nx run ${input.project.name}:workspace-health`
|
|
429
|
-
: undefined),
|
|
430
|
-
runScriptSignature('lint', (input) => input.project.tags.includes('scope:workspace')
|
|
431
|
-
? `nx run-many -t lint --exclude=${input.project.name}`
|
|
432
|
-
: input.project.root.includes('/services/') ||
|
|
433
|
-
input.project.root.includes('/jobs/')
|
|
434
|
-
? 'eslint .'
|
|
435
|
-
: undefined),
|
|
436
|
-
runScriptSignature('test', (input) => input.project.tags.includes('scope:workspace')
|
|
437
|
-
? `nx run-many -t test --exclude=${input.project.name}`
|
|
438
|
-
: input.project.root.includes('/services/') ||
|
|
439
|
-
input.project.root.includes('/jobs/')
|
|
440
|
-
? 'vitest run'
|
|
441
|
-
: undefined, { dependsOn: ['^build'] }),
|
|
442
|
-
runScriptSignature('typecheck', (input) => input.project.tags.includes('scope:workspace')
|
|
443
|
-
? `nx run-many -t typecheck --exclude=${input.project.name}`
|
|
444
|
-
: input.project.root.includes('/services/') ||
|
|
445
|
-
input.project.root.includes('/jobs/')
|
|
446
|
-
? 'tsc --noEmit -p tsconfig.json'
|
|
447
|
-
: undefined, { dependsOn: ['^build'] }),
|
|
448
|
-
runScriptSignature('verify', (input) => input.project.root.includes('/services/') ||
|
|
449
|
-
input.project.root.includes('/jobs/')
|
|
450
|
-
? 'pnpm run lint && pnpm run typecheck && pnpm test && pnpm run build'
|
|
451
|
-
: undefined),
|
|
452
|
-
executorSignature('deployment-plan', '@empire-builder-kit/nx:deployment-plan', exactOptions(() => ({ action: 'deploy', stage: 'staging' }))),
|
|
453
|
-
executorSignature('deploy-local', '@empire-builder-kit/nx:local-deploy', exactOptions(() => ({ stage: 'development' })), ['workspace-health'], { nonPlannableRationale: exports.DEPLOY_LOCAL_OWNER_RATIONALE }),
|
|
454
|
-
executorSignature('dev', '@empire-builder-kit/nx:fleet', exactOptions(() => ({})), undefined, {
|
|
455
|
-
continuous: true,
|
|
456
|
-
}),
|
|
457
|
-
executorSignature('developer-context', '@empire-builder-kit/nx:developer-context', exactOptions(() => ({}))),
|
|
458
|
-
executorSignature('dev-doctor', '@empire-builder-kit/nx:dev-doctor', exactOptions(() => ({}))),
|
|
459
|
-
executorSignature('dev-setup', '@empire-builder-kit/nx:dev-setup', exactOptions(() => ({}))),
|
|
460
|
-
executorSignature('github-bootstrap', '@empire-builder-kit/nx:github-bootstrap', exactOptions(() => ({}))),
|
|
461
|
-
executorSignature('work-markers', '@empire-builder-kit/nx:work-markers', exactOptions(() => ({}))),
|
|
462
|
-
executorSignature('secret-guardrails', '@empire-builder-kit/nx:secret-guardrails', exactOptions(() => ({}))),
|
|
463
|
-
executorSignature('secret-initialize', '@empire-builder-kit/nx:secret-initialize', exactOptions(() => ({
|
|
464
|
-
logicalName: 'GeneratedPerformanceLoadHmacKeys',
|
|
465
|
-
stage: 'production',
|
|
466
|
-
}))),
|
|
467
|
-
executorSignature('secret-metadata', '@empire-builder-kit/nx:secret-metadata', exactOptions(() => ({ stage: 'development' }))),
|
|
468
|
-
executorSignature('dev-cleanup', 'nx:run-commands', exactOptions((input) => ({
|
|
469
|
-
commands: [
|
|
470
|
-
...(sliceDeclaresSql(input)
|
|
471
|
-
? [`pnpm nx run ${input.project.name}:db-local-down`]
|
|
472
|
-
: []),
|
|
473
|
-
`pnpm nx run ${input.project.name}:secret-personal-down`,
|
|
474
|
-
],
|
|
475
|
-
cwd: '.',
|
|
476
|
-
forwardAllArgs: false,
|
|
477
|
-
parallel: false,
|
|
478
|
-
})), ['dev-task-cleanup']),
|
|
479
|
-
executorSignature('dev-task-cleanup', '@empire-builder-kit/nx:dev-task-cleanup', exactOptions(() => ({}))),
|
|
480
|
-
executorSignature('dev', '@empire-builder-kit/nx:dev', exactOptions((input) => ({
|
|
481
|
-
cwd: input.project.root,
|
|
482
|
-
stageMode: 'consumer',
|
|
483
|
-
})), (input) => [
|
|
484
|
-
'dev-prerequisite',
|
|
485
|
-
...(sliceDeclaresSql(input) ? ['db-local-migrate'] : []),
|
|
486
|
-
{ params: 'forward', target: 'foundation-preflight' },
|
|
487
|
-
]),
|
|
488
|
-
executorSignature('deploy-infrastructure', '@empire-builder-kit/nx:deploy', exactOptions((input) => ({
|
|
489
|
-
cwd: input.project.root,
|
|
490
|
-
stage: 'development',
|
|
491
|
-
stageMode: 'consumer',
|
|
492
|
-
})), ['verify', { params: 'forward', target: 'foundation-ready' }]),
|
|
493
|
-
executorSignature('deploy', '@empire-builder-kit/nx:deploy', exactOptions((input) => ({
|
|
494
|
-
cwd: input.project.root,
|
|
495
|
-
stage: 'development',
|
|
496
|
-
stageMode: 'foundation',
|
|
497
|
-
})), ['verify', { params: 'forward', target: 'profile-preflight' }]),
|
|
498
|
-
executorSignature('infrastructure-plan', '@empire-builder-kit/nx:infrastructure-plan', exactOptions((input) => ({
|
|
499
|
-
cwd: input.project.root,
|
|
500
|
-
stage: 'development',
|
|
501
|
-
stageMode: 'consumer',
|
|
502
|
-
}))),
|
|
503
|
-
executorSignature('infrastructure-plan', '@empire-builder-kit/nx:infrastructure-plan', exactOptions((input) => ({
|
|
504
|
-
cwd: input.project.root,
|
|
505
|
-
stage: 'development',
|
|
506
|
-
stageMode: 'foundation',
|
|
507
|
-
}))),
|
|
508
|
-
...['refresh', 'remove', 'unlock'].flatMap((targetName) => [
|
|
509
|
-
executorSignature(targetName, `@empire-builder-kit/nx:${targetName}`, exactOptions((input) => ({
|
|
510
|
-
cwd: input.project.root,
|
|
511
|
-
stage: 'development',
|
|
512
|
-
stageMode: 'consumer',
|
|
513
|
-
}))),
|
|
514
|
-
executorSignature(targetName, `@empire-builder-kit/nx:${targetName}`, exactOptions((input) => ({
|
|
515
|
-
cwd: input.project.root,
|
|
516
|
-
stage: 'development',
|
|
517
|
-
stageMode: 'foundation',
|
|
518
|
-
})), targetName === 'refresh'
|
|
519
|
-
? [{ params: 'forward', target: 'profile-preflight' }]
|
|
520
|
-
: targetName === 'remove'
|
|
521
|
-
? [{ params: 'forward', target: 'remove-preflight' }]
|
|
522
|
-
: undefined),
|
|
523
|
-
]),
|
|
524
|
-
executorSignature('foundation-preflight', '@empire-builder-kit/nx:foundation-preflight', (input, options) => options['stage'] === 'development' &&
|
|
525
|
-
Array.isArray(options['capabilities']) &&
|
|
526
|
-
options['capabilities'].every((capability) => typeof capability === 'string') &&
|
|
527
|
-
typeof options['contract'] === 'string' &&
|
|
528
|
-
Object.keys(options).sort().join(',') === 'capabilities,contract,stage' &&
|
|
529
|
-
input.project.root.length > 0),
|
|
530
|
-
executorSignature('foundation-ready', '@empire-builder-kit/nx:foundation-preflight', (_input, options) => options['stage'] === 'development' &&
|
|
531
|
-
options['deployIfMissing'] === true &&
|
|
532
|
-
options['foundationProject'] === 'foundation' &&
|
|
533
|
-
Array.isArray(options['capabilities']) &&
|
|
534
|
-
options['capabilities'].every((capability) => typeof capability === 'string') &&
|
|
535
|
-
typeof options['contract'] === 'string' &&
|
|
536
|
-
Object.keys(options).sort().join(',') ===
|
|
537
|
-
'capabilities,contract,deployIfMissing,foundationProject,stage', [{ params: 'ignore', projects: ['foundation'], target: 'verify' }]),
|
|
538
|
-
executorSignature('profile-preflight', '@empire-builder-kit/nx:foundation-profile-preflight', exactOptions(() => ({ stage: 'development' }))),
|
|
539
|
-
executorSignature('remove-preflight', '@empire-builder-kit/nx:foundation-remove-preflight', exactOptions(() => ({ stage: 'development' }))),
|
|
540
|
-
executorSignature('router-waf-rehearsal', '@empire-builder-kit/nx:router-waf-rehearsal', exactOptions(() => ({})), undefined, { nonPlannableRationale: exports.ROUTER_WAF_REHEARSAL_OWNER_RATIONALE }),
|
|
541
|
-
];
|
|
542
|
-
/**
|
|
543
|
-
* Rules are deliberately ordered from highest/conservative authority to
|
|
544
|
-
* lowest. A target that is not explicitly recognized is omitted and reported
|
|
545
|
-
* as unsupported; it never inherits read-only or local-source authority.
|
|
546
|
-
* Authority describes the target's reviewed effects, not a code sandbox.
|
|
547
|
-
* Targets that load seeded or adopter-owned executable configuration belong in
|
|
548
|
-
* local-source even when their command is observational by convention.
|
|
549
|
-
*/
|
|
550
|
-
const TARGET_RULES = [
|
|
551
|
-
{
|
|
552
|
-
approvalRequired: true,
|
|
553
|
-
authority: 'destructive',
|
|
554
|
-
contractClasses: ['database', 'data', 'infrastructure'],
|
|
555
|
-
documentationPaths: [
|
|
556
|
-
'AGENTS.md',
|
|
557
|
-
'docs/architecture.md',
|
|
558
|
-
'docs/developer-agent.md',
|
|
559
|
-
],
|
|
560
|
-
evidenceClasses: ['recovery-proof', 'protected-promotion-proof'],
|
|
561
|
-
matches: exact('remove', 'unlock', 'db-migrate', 'db-retirement-rehearsal', 'data-restore-reconcile', 'data-retention'),
|
|
562
|
-
requiredVerification: ['verify', 'protected-proof'],
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
approvalRequired: true,
|
|
566
|
-
authority: 'protected-mutate',
|
|
567
|
-
contractClasses: [
|
|
568
|
-
'async',
|
|
569
|
-
'configuration',
|
|
570
|
-
'data',
|
|
571
|
-
'infrastructure',
|
|
572
|
-
'reliability',
|
|
573
|
-
'release',
|
|
574
|
-
],
|
|
575
|
-
documentationPaths: [
|
|
576
|
-
'AGENTS.md',
|
|
577
|
-
'docs/git-workflow.md',
|
|
578
|
-
'docs/developer-agent.md',
|
|
579
|
-
],
|
|
580
|
-
evidenceClasses: ['protected-promotion-proof'],
|
|
581
|
-
matches: (targetName) => exact('async-backfill', 'async-provider-reconcile', 'async-workflow-recover', 'deploy', 'deploy-infrastructure', 'foundation-ready', 'refresh', 'release-lifecycle', 'release-rollout', 'reliability-remediation')(targetName) ||
|
|
582
|
-
(suffix('-reconcile')(targetName) &&
|
|
583
|
-
!suffix('-report', '-status')(targetName)),
|
|
584
|
-
requiredVerification: ['verify', 'protected-proof'],
|
|
585
|
-
},
|
|
586
|
-
// These two apply shared GitHub repository or AWS secret-container state
|
|
587
|
-
// outside the personal development stage, so they keep an approval point.
|
|
588
|
-
{
|
|
589
|
-
approvalRequired: true,
|
|
590
|
-
authority: 'protected-propose',
|
|
591
|
-
contractClasses: [
|
|
592
|
-
'configuration',
|
|
593
|
-
'infrastructure',
|
|
594
|
-
'reliability',
|
|
595
|
-
'performance',
|
|
596
|
-
],
|
|
597
|
-
documentationPaths: [
|
|
598
|
-
'AGENTS.md',
|
|
599
|
-
'docs/git-workflow.md',
|
|
600
|
-
'docs/developer-agent.md',
|
|
601
|
-
],
|
|
602
|
-
evidenceClasses: ['protected-promotion-proof'],
|
|
603
|
-
matches: exact('github-bootstrap', 'secret-initialize'),
|
|
604
|
-
requiredVerification: ['source', 'protected-proof'],
|
|
605
|
-
},
|
|
606
|
-
// Report-first plans and collectors read and propose only. Deployed
|
|
607
|
-
// verification (smoke-deployed) is bounded synthetic verification that
|
|
608
|
-
// creates and deletes synthetic users and data. Staging and production
|
|
609
|
-
// reach stays bounded by the deployment role, not by a plan-time approval
|
|
610
|
-
// point.
|
|
611
|
-
{
|
|
612
|
-
approvalRequired: false,
|
|
613
|
-
authority: 'protected-propose',
|
|
614
|
-
contractClasses: [
|
|
615
|
-
'configuration',
|
|
616
|
-
'infrastructure',
|
|
617
|
-
'reliability',
|
|
618
|
-
'performance',
|
|
619
|
-
],
|
|
620
|
-
documentationPaths: [
|
|
621
|
-
'AGENTS.md',
|
|
622
|
-
'docs/git-workflow.md',
|
|
623
|
-
'docs/developer-agent.md',
|
|
624
|
-
],
|
|
625
|
-
evidenceClasses: ['protected-promotion-proof'],
|
|
626
|
-
matches: (targetName) => exact('deployment-plan', 'infrastructure-plan', 'infrastructure-drift', 'ecr-inspector-collect', 'performance-cost-collect', 'reliability-deployed-verify', 'reliability-diagnostic', 'reliability-exercise-collect', 'secret-metadata', 'smoke-deployed', 'stage-authority-render')(targetName),
|
|
627
|
-
requiredVerification: ['source', 'protected-proof'],
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
applicableStages: ['development'],
|
|
631
|
-
approvalRequired: false,
|
|
632
|
-
authority: 'development-mutate',
|
|
633
|
-
contractClasses: ['database'],
|
|
634
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
635
|
-
evidenceClasses: ['local-integration'],
|
|
636
|
-
matches: exact('test-integration', 'verify-local-browser'),
|
|
637
|
-
requiredVerification: ['local-integration'],
|
|
638
|
-
},
|
|
639
|
-
// dev-setup can reach host trust-store installation and privileged port
|
|
640
|
-
// forwarding (--trust, --portless): an OS-level consent boundary.
|
|
641
|
-
{
|
|
642
|
-
approvalRequired: true,
|
|
643
|
-
authority: 'development-mutate',
|
|
644
|
-
contractClasses: ['database', 'infrastructure'],
|
|
645
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
646
|
-
evidenceClasses: ['local-integration'],
|
|
647
|
-
matches: exact('dev-setup'),
|
|
648
|
-
requiredVerification: ['local-integration'],
|
|
649
|
-
},
|
|
650
|
-
// Personal development-stage work under the human's own bounded identity.
|
|
651
|
-
{
|
|
652
|
-
approvalRequired: false,
|
|
653
|
-
authority: 'development-mutate',
|
|
654
|
-
contractClasses: ['database', 'infrastructure'],
|
|
655
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
656
|
-
evidenceClasses: ['local-integration'],
|
|
657
|
-
matches: exact('dev', 'dev-cleanup', 'dev-task-cleanup', 'db-local-down', 'db-local-migrate', 'db-local-up', 'secret-personal-down'),
|
|
658
|
-
requiredVerification: ['local-integration'],
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
approvalRequired: false,
|
|
662
|
-
authority: 'local-source',
|
|
663
|
-
contractClasses: [
|
|
664
|
-
'configuration',
|
|
665
|
-
'frontend',
|
|
666
|
-
'release',
|
|
667
|
-
'synchronous',
|
|
668
|
-
'supply-chain',
|
|
669
|
-
],
|
|
670
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
671
|
-
evidenceClasses: ['source'],
|
|
672
|
-
matches: (targetName) => exact('api-contract-baseline', 'api-contract-generate', 'authorization-check', 'build', 'configuration-expected', 'contract-dependencies-sync', 'db-generate', 'ecr-scan-applicability', 'format:check', 'frontend-visual', 'frontend-visual-update', 'install-git-hooks', 'performance-tag-coverage', 'performance-unit-cost', 'release-artifacts', 'release-candidate', 'release-manifest', 'smoke-deployed-check', 'supply-chain-scan', 'test', 'typecheck', 'verify', 'verify-proposed', 'workload-role-provisioner-build')(targetName),
|
|
673
|
-
requiredVerification: ['source'],
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
approvalRequired: false,
|
|
677
|
-
authority: 'local-source',
|
|
678
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
679
|
-
evidenceClasses: ['source'],
|
|
680
|
-
matches: (targetName) => suffix('-check', '-report', '-verify')(targetName) ||
|
|
681
|
-
exact('lint')(targetName),
|
|
682
|
-
requiredVerification: ['source'],
|
|
683
|
-
},
|
|
684
|
-
{
|
|
685
|
-
approvalRequired: false,
|
|
686
|
-
authority: 'read-only',
|
|
687
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
688
|
-
evidenceClasses: ['source'],
|
|
689
|
-
matches: (targetName) => exact('blueprint-trust-check', 'developer-context', 'dev-doctor', 'dev-prerequisite', 'foundation-preflight', 'frontend-boundaries', 'health', 'performance-budget', 'performance-evidence-evaluate', 'performance-ready', 'profile-preflight', 'remove-preflight', 'secret-guardrails', 'workspace-health', 'work-markers', 'workload-role-candidate-report')(targetName) || suffix('-inventory', '-status')(targetName),
|
|
690
|
-
requiredVerification: ['source'],
|
|
691
|
-
},
|
|
692
|
-
];
|
|
693
|
-
/**
|
|
694
|
-
* Static invocable operations contain complete argv only. Source edits use a
|
|
695
|
-
* commandless, project-scoped identity. Stable generators use commandless
|
|
696
|
-
* typed templates that planning binds to exact normalized argv. Mutable dev
|
|
697
|
-
* configuration and human-supplied secret set/remove stay with their direct
|
|
698
|
-
* owner. Value-blind generated-secret initialization is admitted only through
|
|
699
|
-
* its exact report-first Nx target.
|
|
700
|
-
*/
|
|
701
|
-
function localDevOperations(projects, externalOwnedProjectNames, developmentClosures, blockedDevelopment) {
|
|
702
|
-
const sliceNames = projects
|
|
703
|
-
.map(({ context }) => context)
|
|
704
|
-
.filter(({ tags }) => tags.includes('type:slice'))
|
|
705
|
-
.map(({ name }) => name)
|
|
706
|
-
.sort();
|
|
707
|
-
const readOnly = (id, args, selectedProjects = []) => ({
|
|
708
|
-
applicableStages: ['development'],
|
|
709
|
-
approvalRequired: false,
|
|
710
|
-
authority: 'read-only',
|
|
711
|
-
command: { args, executable: 'ebk' },
|
|
712
|
-
contracts: [],
|
|
713
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
714
|
-
evidenceClasses: ['local-integration'],
|
|
715
|
-
id,
|
|
716
|
-
owner: 'ebk-reconciler',
|
|
717
|
-
projects: selectedProjects,
|
|
718
|
-
requiredVerification: ['source'],
|
|
719
|
-
});
|
|
720
|
-
const lifecycle = (command, slice) => ({
|
|
721
|
-
applicableStages: ['development'],
|
|
722
|
-
approvalRequired: false,
|
|
723
|
-
authority: 'development-mutate',
|
|
724
|
-
command: {
|
|
725
|
-
args: ['dev', command, slice, '--no-wait', '--json'],
|
|
726
|
-
executable: 'ebk',
|
|
727
|
-
},
|
|
728
|
-
contracts: [
|
|
729
|
-
{ class: 'database', reference: `${slice}:database` },
|
|
730
|
-
{ class: 'infrastructure', reference: `${slice}:infrastructure` },
|
|
731
|
-
],
|
|
732
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
733
|
-
evidenceClasses: ['local-integration'],
|
|
734
|
-
id: `ebk-dev:${command}:${slice}`,
|
|
735
|
-
owner: 'ebk-reconciler',
|
|
736
|
-
policyLifecycleAction: 'dev',
|
|
737
|
-
projects: developmentClosures.get(slice) ?? [slice],
|
|
738
|
-
requiredVerification: ['ebk-dev:doctor'],
|
|
739
|
-
});
|
|
740
|
-
return [
|
|
741
|
-
readOnly('ebk-dev:configure-show', [
|
|
742
|
-
'dev',
|
|
743
|
-
'configure',
|
|
744
|
-
'--show',
|
|
745
|
-
'--json',
|
|
746
|
-
]),
|
|
747
|
-
readOnly('ebk-dev:doctor', ['dev', 'doctor', '--json']),
|
|
748
|
-
readOnly('ebk-dev:ps', ['dev', 'ps', '--json']),
|
|
749
|
-
readOnly('ebk-dev:status', ['dev', 'status', '--json']),
|
|
750
|
-
...sliceNames.flatMap((slice) => [
|
|
751
|
-
readOnly(`ebk-dev:logs:${slice}`, ['dev', 'logs', slice, '--limit=200', '--json'], [slice]),
|
|
752
|
-
...(externalOwnedProjectNames.has(slice) || blockedDevelopment.has(slice)
|
|
753
|
-
? []
|
|
754
|
-
: [
|
|
755
|
-
lifecycle('up', slice),
|
|
756
|
-
lifecycle('restart', slice),
|
|
757
|
-
lifecycle('down', slice),
|
|
758
|
-
]),
|
|
759
|
-
]),
|
|
760
|
-
];
|
|
761
|
-
}
|
|
762
|
-
function packageManagerOperations(workspaceVerification) {
|
|
763
|
-
return [
|
|
764
|
-
{
|
|
765
|
-
applicableStages: ALL_CANONICAL_STAGES,
|
|
766
|
-
approvalRequired: false,
|
|
767
|
-
authority: 'local-source',
|
|
768
|
-
command: {
|
|
769
|
-
args: ['install', '--frozen-lockfile'],
|
|
770
|
-
executable: 'pnpm',
|
|
771
|
-
},
|
|
772
|
-
contracts: [],
|
|
773
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
774
|
-
evidenceClasses: ['source'],
|
|
775
|
-
id: 'package-manager:install-frozen',
|
|
776
|
-
owner: 'package-manager',
|
|
777
|
-
projects: [],
|
|
778
|
-
requiredVerification: [workspaceVerification],
|
|
779
|
-
},
|
|
780
|
-
];
|
|
781
|
-
}
|
|
782
|
-
function generatorOperations(workspaceVerification) {
|
|
783
|
-
const operation = (generator, mode) => ({
|
|
784
|
-
applicableStages: ALL_CANONICAL_STAGES,
|
|
785
|
-
approvalRequired: false,
|
|
786
|
-
authority: 'local-source',
|
|
787
|
-
contracts: [],
|
|
788
|
-
documentationPaths: [
|
|
789
|
-
'AGENTS.md',
|
|
790
|
-
'docs/developer-agent.md',
|
|
791
|
-
'docs/architecture.md',
|
|
792
|
-
],
|
|
793
|
-
evidenceClasses: ['source'],
|
|
794
|
-
generator: { generator, mode },
|
|
795
|
-
id: `generator:${generator}:${mode}`,
|
|
796
|
-
owner: 'nx-generator',
|
|
797
|
-
projects: [],
|
|
798
|
-
requiredVerification: [workspaceVerification],
|
|
799
|
-
});
|
|
800
|
-
return model_js_1.DEVELOPER_AGENT_STABLE_GENERATORS.flatMap((generator) => [
|
|
801
|
-
operation(generator, 'preview'),
|
|
802
|
-
operation(generator, 'apply'),
|
|
803
|
-
]);
|
|
804
|
-
}
|
|
805
|
-
function contractsForRule(rule, project) {
|
|
806
|
-
return (rule.contractClasses ?? []).map((contractClass) => ({
|
|
807
|
-
class: contractClass,
|
|
808
|
-
reference: `${project.name}:${contractClass}`,
|
|
809
|
-
}));
|
|
810
|
-
}
|
|
811
|
-
function authenticatedTargetSignature(input) {
|
|
812
|
-
const configurations = input.target.configurations;
|
|
813
|
-
if (input.namedInputRuntimeDetected ||
|
|
814
|
-
(configurations !== undefined &&
|
|
815
|
-
(configurations === null ||
|
|
816
|
-
typeof configurations !== 'object' ||
|
|
817
|
-
Array.isArray(configurations) ||
|
|
818
|
-
Object.keys(configurations).length > 0)) ||
|
|
819
|
-
input.target.defaultConfiguration !== undefined ||
|
|
820
|
-
(input.target.syncGenerators !== undefined &&
|
|
821
|
-
(!Array.isArray(input.target.syncGenerators) ||
|
|
822
|
-
input.target.syncGenerators.length > 0)) ||
|
|
823
|
-
(input.target.inputs !== undefined &&
|
|
824
|
-
(!Array.isArray(input.target.inputs) ||
|
|
825
|
-
containsRuntimeInput(input.target.inputs))) ||
|
|
826
|
-
!hasAuthenticatedCacheContract(input) ||
|
|
827
|
-
(input.target.parallelism !== undefined &&
|
|
828
|
-
input.target.parallelism !== true)) {
|
|
829
|
-
return undefined;
|
|
830
|
-
}
|
|
831
|
-
const options = input.target.options ?? {};
|
|
832
|
-
if (typeof options !== 'object' ||
|
|
833
|
-
options === null ||
|
|
834
|
-
Array.isArray(options)) {
|
|
835
|
-
return undefined;
|
|
836
|
-
}
|
|
837
|
-
return TARGET_SIGNATURES.find((signature) => {
|
|
838
|
-
const continuousMatches = signature.continuous
|
|
839
|
-
? input.target.continuous === true
|
|
840
|
-
: input.target.continuous === undefined ||
|
|
841
|
-
input.target.continuous === false;
|
|
842
|
-
const metadataMatches = signature.metadataMatch
|
|
843
|
-
? signature.metadataMatch(input, input.target.metadata)
|
|
844
|
-
: input.target.metadata === undefined;
|
|
845
|
-
return (continuousMatches &&
|
|
846
|
-
metadataMatches &&
|
|
847
|
-
signature.targetName === input.targetName &&
|
|
848
|
-
signature.executor === input.target.executor &&
|
|
849
|
-
signature.optionsMatch(input, options) &&
|
|
850
|
-
(0, node_util_1.isDeepStrictEqual)(input.target.dependsOn ?? [], signature.dependsOn?.(input) ?? []));
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
const CACHEABLE_TARGET_INPUTS = new Map([
|
|
854
|
-
['build', ['production', '^production']],
|
|
855
|
-
['lint', ['default', '^production']],
|
|
856
|
-
['test', ['default', '^production']],
|
|
857
|
-
['typecheck', ['default', '^production']],
|
|
858
|
-
]);
|
|
859
|
-
function hasAuthenticatedCacheContract(input) {
|
|
860
|
-
const cache = input.target.cache;
|
|
861
|
-
if (cache === undefined || cache === false)
|
|
862
|
-
return true;
|
|
863
|
-
if (cache !== true)
|
|
864
|
-
return false;
|
|
865
|
-
const expectedInputs = CACHEABLE_TARGET_INPUTS.get(input.targetName);
|
|
866
|
-
if (expectedInputs === undefined ||
|
|
867
|
-
!(0, node_util_1.isDeepStrictEqual)(input.target.inputs, expectedInputs)) {
|
|
868
|
-
return false;
|
|
869
|
-
}
|
|
870
|
-
if (input.targetName !== 'build')
|
|
871
|
-
return input.target.outputs === undefined;
|
|
872
|
-
return input.target.executor === 'nx:run-script'
|
|
873
|
-
? input.target.outputs === undefined
|
|
874
|
-
: (0, node_util_1.isDeepStrictEqual)(input.target.outputs, ['{projectRoot}/web/.next']);
|
|
875
|
-
}
|
|
876
|
-
function containsRuntimeInput(value) {
|
|
877
|
-
if (Array.isArray(value))
|
|
878
|
-
return value.some(containsRuntimeInput);
|
|
879
|
-
if (!value || typeof value !== 'object')
|
|
880
|
-
return false;
|
|
881
|
-
if ('runtime' in value)
|
|
882
|
-
return true;
|
|
883
|
-
return Object.values(value).some(containsRuntimeInput);
|
|
884
|
-
}
|
|
885
|
-
function reviewedExternalTargetIsSafe(input) {
|
|
886
|
-
try {
|
|
887
|
-
(0, blueprint_trust_js_1.assertBlueprintVerificationTargetAgentSafe)(input.targetName, input.target, input.project.root);
|
|
888
|
-
}
|
|
889
|
-
catch {
|
|
890
|
-
return false;
|
|
891
|
-
}
|
|
892
|
-
const signature = authenticatedTargetSignature(input);
|
|
893
|
-
if (signature?.nonPlannableRationale !== undefined)
|
|
894
|
-
return false;
|
|
895
|
-
const rule = TARGET_RULES.find(({ matches }) => matches(input.targetName));
|
|
896
|
-
return (!operationLooksMutating(input.targetName) &&
|
|
897
|
-
(rule === undefined ||
|
|
898
|
-
rule.authority === 'local-source' ||
|
|
899
|
-
rule.authority === 'read-only'));
|
|
900
|
-
}
|
|
901
|
-
function reviewedExternalDependencies(input) {
|
|
902
|
-
try {
|
|
903
|
-
return [
|
|
904
|
-
...(0, blueprint_trust_js_1.blueprintVerificationTargetDependencies)(input.targetName, input.target, input.project.root),
|
|
905
|
-
];
|
|
906
|
-
}
|
|
907
|
-
catch {
|
|
908
|
-
return undefined;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
function dependencyTargets(input, dependsOn, availableProjects, availableTargets) {
|
|
912
|
-
const targets = [];
|
|
913
|
-
// The exact generated sequential composite invokes these targets after its
|
|
914
|
-
// native prerequisite; include their authority even though they are not
|
|
915
|
-
// sibling Nx prerequisites (which would execute before native cleanup).
|
|
916
|
-
const executionDependencies = input.targetName === 'dev-cleanup'
|
|
917
|
-
? [
|
|
918
|
-
...dependsOn,
|
|
919
|
-
...(sliceDeclaresSql(input) ? ['db-local-down'] : []),
|
|
920
|
-
'secret-personal-down',
|
|
921
|
-
]
|
|
922
|
-
: dependsOn;
|
|
923
|
-
for (const dependency of executionDependencies) {
|
|
924
|
-
if (typeof dependency === 'string') {
|
|
925
|
-
if (dependency.startsWith('^')) {
|
|
926
|
-
const targetName = dependency.slice(1);
|
|
927
|
-
if (targetName.length === 0)
|
|
928
|
-
return undefined;
|
|
929
|
-
for (const projectName of input.project.dependencies) {
|
|
930
|
-
// Nx skips a ^target for dependency projects that do not define it.
|
|
931
|
-
// Requiring the dependency project in the inspected selection first
|
|
932
|
-
// distinguishes that legitimate absence from an omitted graph node.
|
|
933
|
-
if (availableProjects !== undefined &&
|
|
934
|
-
!availableProjects.has(projectName)) {
|
|
935
|
-
return undefined;
|
|
936
|
-
}
|
|
937
|
-
const id = `${projectName}:${targetName}`;
|
|
938
|
-
if (availableTargets === undefined || availableTargets.has(id)) {
|
|
939
|
-
targets.push({ id, params: 'ignore' });
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
else {
|
|
944
|
-
targets.push({
|
|
945
|
-
id: `${input.project.name}:${dependency}`,
|
|
946
|
-
params: 'ignore',
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
continue;
|
|
950
|
-
}
|
|
951
|
-
if (!dependency ||
|
|
952
|
-
typeof dependency !== 'object' ||
|
|
953
|
-
typeof dependency.target !== 'string') {
|
|
954
|
-
return undefined;
|
|
955
|
-
}
|
|
956
|
-
if (Array.isArray(dependency.projects)) {
|
|
957
|
-
if (dependency.projects.length === 0 ||
|
|
958
|
-
dependency.projects.some((projectName) => typeof projectName !== 'string')) {
|
|
959
|
-
return undefined;
|
|
960
|
-
}
|
|
961
|
-
targets.push(...dependency.projects.map((projectName) => ({
|
|
962
|
-
id: `${projectName}:${dependency.target}`,
|
|
963
|
-
params: dependency.params === 'forward' ? 'forward' : 'ignore',
|
|
964
|
-
})));
|
|
965
|
-
continue;
|
|
966
|
-
}
|
|
967
|
-
if (dependency.dependencies === true) {
|
|
968
|
-
for (const projectName of input.project.dependencies) {
|
|
969
|
-
if (availableProjects !== undefined &&
|
|
970
|
-
!availableProjects.has(projectName)) {
|
|
971
|
-
return undefined;
|
|
972
|
-
}
|
|
973
|
-
const id = `${projectName}:${dependency.target}`;
|
|
974
|
-
if (availableTargets === undefined || availableTargets.has(id)) {
|
|
975
|
-
targets.push({
|
|
976
|
-
id,
|
|
977
|
-
params: dependency.params === 'forward' ? 'forward' : 'ignore',
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
continue;
|
|
982
|
-
}
|
|
983
|
-
targets.push({
|
|
984
|
-
id: `${input.project.name}:${dependency.target}`,
|
|
985
|
-
params: dependency.params === 'forward' ? 'forward' : 'ignore',
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
return targets;
|
|
989
|
-
}
|
|
990
|
-
function configuredCanonicalStage(input) {
|
|
991
|
-
const stage = input.target.options &&
|
|
992
|
-
typeof input.target.options === 'object' &&
|
|
993
|
-
input.target.options['stage'];
|
|
994
|
-
return stage === 'development' ||
|
|
995
|
-
stage === 'staging' ||
|
|
996
|
-
stage === 'production'
|
|
997
|
-
? stage
|
|
998
|
-
: undefined;
|
|
999
|
-
}
|
|
1000
|
-
function operationForTarget(input, forwardedStage, reviewedExternal = false) {
|
|
1001
|
-
if (reviewedExternal) {
|
|
1002
|
-
return {
|
|
1003
|
-
applicableStages: ALL_CANONICAL_STAGES,
|
|
1004
|
-
approvalRequired: false,
|
|
1005
|
-
authority: 'local-source',
|
|
1006
|
-
command: {
|
|
1007
|
-
args: ['nx', 'run', `${input.project.name}:${input.targetName}`],
|
|
1008
|
-
executable: 'pnpm',
|
|
1009
|
-
},
|
|
1010
|
-
contracts: [
|
|
1011
|
-
{
|
|
1012
|
-
class: 'supply-chain',
|
|
1013
|
-
reference: `${input.project.name}:external-blueprint-verification`,
|
|
1014
|
-
},
|
|
1015
|
-
],
|
|
1016
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
1017
|
-
evidenceClasses: ['source'],
|
|
1018
|
-
id: `target:${input.project.name}:${input.targetName}`,
|
|
1019
|
-
owner: 'nx-target',
|
|
1020
|
-
projects: [input.project.name],
|
|
1021
|
-
requiredVerification: ['source'],
|
|
1022
|
-
};
|
|
1023
|
-
}
|
|
1024
|
-
const rule = TARGET_RULES.find(({ matches }) => matches(input.targetName));
|
|
1025
|
-
if (!rule || !authenticatedTargetSignature(input))
|
|
1026
|
-
return undefined;
|
|
1027
|
-
const configuredStage = configuredCanonicalStage(input);
|
|
1028
|
-
const effectiveStage = forwardedStage ?? configuredStage;
|
|
1029
|
-
const policyLifecycleAction = policyLifecycleActionForTarget(input.targetName);
|
|
1030
|
-
const developmentLifecycle = effectiveStage === 'development' &&
|
|
1031
|
-
policyLifecycleAction !== undefined &&
|
|
1032
|
-
(rule.authority === 'protected-mutate' || rule.authority === 'destructive');
|
|
1033
|
-
const authority = developmentLifecycle
|
|
1034
|
-
? 'development-mutate'
|
|
1035
|
-
: rule.authority;
|
|
1036
|
-
if (effectiveStage !== undefined &&
|
|
1037
|
-
rule.applicableStages !== undefined &&
|
|
1038
|
-
!rule.applicableStages.includes(effectiveStage)) {
|
|
1039
|
-
return undefined;
|
|
1040
|
-
}
|
|
1041
|
-
if ((effectiveStage === 'staging' || effectiveStage === 'production') &&
|
|
1042
|
-
authority === 'development-mutate') {
|
|
1043
|
-
return undefined;
|
|
1044
|
-
}
|
|
1045
|
-
const applicableStages = effectiveStage !== undefined
|
|
1046
|
-
? [effectiveStage]
|
|
1047
|
-
: rule.applicableStages
|
|
1048
|
-
? rule.applicableStages
|
|
1049
|
-
: authority === 'development-mutate'
|
|
1050
|
-
? ['development']
|
|
1051
|
-
: authority === 'protected-mutate' || authority === 'destructive'
|
|
1052
|
-
? PROTECTED_CANONICAL_STAGES
|
|
1053
|
-
: ALL_CANONICAL_STAGES;
|
|
1054
|
-
return {
|
|
1055
|
-
applicableStages,
|
|
1056
|
-
// Development needs no lifecycle acknowledgement (the governed executors
|
|
1057
|
-
// prompt only for staging and production); protected stages never reach
|
|
1058
|
-
// this branch and keep the rule's approval.
|
|
1059
|
-
approvalRequired: developmentLifecycle ? false : rule.approvalRequired,
|
|
1060
|
-
authority,
|
|
1061
|
-
...(authority === 'protected-mutate' || authority === 'destructive'
|
|
1062
|
-
? {}
|
|
1063
|
-
: {
|
|
1064
|
-
command: {
|
|
1065
|
-
args: ['nx', 'run', `${input.project.name}:${input.targetName}`],
|
|
1066
|
-
executable: 'pnpm',
|
|
1067
|
-
},
|
|
1068
|
-
}),
|
|
1069
|
-
contracts: contractsForRule(rule, input.project),
|
|
1070
|
-
documentationPaths: [...rule.documentationPaths],
|
|
1071
|
-
evidenceClasses: [...rule.evidenceClasses],
|
|
1072
|
-
id: `target:${input.project.name}:${input.targetName}`,
|
|
1073
|
-
owner: input.target.executor?.startsWith('@empire-builder-kit/nx:') === true
|
|
1074
|
-
? 'ebk-reconciler'
|
|
1075
|
-
: 'nx-target',
|
|
1076
|
-
...(policyLifecycleAction ? { policyLifecycleAction } : {}),
|
|
1077
|
-
projects: [input.project.name],
|
|
1078
|
-
requiredVerification: [...rule.requiredVerification],
|
|
1079
|
-
};
|
|
1080
|
-
}
|
|
1081
|
-
/**
|
|
1082
|
-
* Authority classes are not a severity list. In particular, development
|
|
1083
|
-
* mutation plus protected proposal crosses authority domains and therefore
|
|
1084
|
-
* requires protected mutation authority. Keep the join explicit so a newly
|
|
1085
|
-
* added class or unmodeled pair fails closed instead of inheriting an ordinal.
|
|
1086
|
-
*/
|
|
1087
|
-
function joinDeveloperAgentAuthorityClasses(left, right) {
|
|
1088
|
-
if (left === right)
|
|
1089
|
-
return left;
|
|
1090
|
-
if (left === 'destructive' || right === 'destructive')
|
|
1091
|
-
return 'destructive';
|
|
1092
|
-
if (left === 'protected-mutate' || right === 'protected-mutate') {
|
|
1093
|
-
return 'protected-mutate';
|
|
1094
|
-
}
|
|
1095
|
-
if (left === 'read-only')
|
|
1096
|
-
return right;
|
|
1097
|
-
if (right === 'read-only')
|
|
1098
|
-
return left;
|
|
1099
|
-
if ((left === 'local-source' && right === 'development-mutate') ||
|
|
1100
|
-
(right === 'local-source' && left === 'development-mutate')) {
|
|
1101
|
-
return 'development-mutate';
|
|
1102
|
-
}
|
|
1103
|
-
if ((left === 'local-source' && right === 'protected-propose') ||
|
|
1104
|
-
(right === 'local-source' && left === 'protected-propose')) {
|
|
1105
|
-
return 'protected-propose';
|
|
1106
|
-
}
|
|
1107
|
-
if ((left === 'development-mutate' && right === 'protected-propose') ||
|
|
1108
|
-
(right === 'development-mutate' && left === 'protected-propose')) {
|
|
1109
|
-
return 'protected-mutate';
|
|
1110
|
-
}
|
|
1111
|
-
return undefined;
|
|
1112
|
-
}
|
|
1113
|
-
function intersectApplicableStages(members) {
|
|
1114
|
-
return ALL_CANONICAL_STAGES.filter((stage) => members.every(({ applicableStages }) => applicableStages.includes(stage)));
|
|
1115
|
-
}
|
|
1116
|
-
function composeTargetOperation(operation, dependencies) {
|
|
1117
|
-
const members = [operation, ...dependencies];
|
|
1118
|
-
let authority = operation.authority;
|
|
1119
|
-
for (const candidate of dependencies) {
|
|
1120
|
-
authority =
|
|
1121
|
-
authority === undefined
|
|
1122
|
-
? undefined
|
|
1123
|
-
: joinDeveloperAgentAuthorityClasses(authority, candidate.authority);
|
|
1124
|
-
}
|
|
1125
|
-
const applicableStages = intersectApplicableStages(members);
|
|
1126
|
-
if (authority === undefined || applicableStages.length === 0) {
|
|
1127
|
-
return undefined;
|
|
1128
|
-
}
|
|
1129
|
-
const contracts = new Map();
|
|
1130
|
-
for (const contract of members.flatMap((candidate) => candidate.contracts)) {
|
|
1131
|
-
contracts.set(`${contract.class}\u0000${contract.reference}`, contract);
|
|
1132
|
-
}
|
|
1133
|
-
const commandAllowed = authority !== 'protected-mutate' && authority !== 'destructive';
|
|
1134
|
-
const { command: owningCommand, ...operationWithoutCommand } = operation;
|
|
1135
|
-
return {
|
|
1136
|
-
...operationWithoutCommand,
|
|
1137
|
-
applicableStages,
|
|
1138
|
-
approvalRequired: members.some((candidate) => candidate.approvalRequired),
|
|
1139
|
-
authority,
|
|
1140
|
-
...(commandAllowed && owningCommand ? { command: owningCommand } : {}),
|
|
1141
|
-
contracts: [...contracts.values()].sort((left, right) => (0, ordering_js_1.compareDeveloperAgentStrings)(left.class, right.class) ||
|
|
1142
|
-
(0, ordering_js_1.compareDeveloperAgentStrings)(left.reference, right.reference)),
|
|
1143
|
-
documentationPaths: [
|
|
1144
|
-
...new Set(members.flatMap((candidate) => candidate.documentationPaths)),
|
|
1145
|
-
].sort(),
|
|
1146
|
-
evidenceClasses: [
|
|
1147
|
-
...new Set(members.flatMap((candidate) => candidate.evidenceClasses)),
|
|
1148
|
-
].sort(),
|
|
1149
|
-
projects: [
|
|
1150
|
-
...new Set(members.flatMap((candidate) => candidate.projects)),
|
|
1151
|
-
].sort(),
|
|
1152
|
-
requiredVerification: [
|
|
1153
|
-
...new Set(members.flatMap((candidate) => candidate.requiredVerification)),
|
|
1154
|
-
].sort(),
|
|
1155
|
-
};
|
|
1156
|
-
}
|
|
1157
|
-
function sourceEditOperations(projects, authenticatedTargets, workspaceVerification) {
|
|
1158
|
-
return projects.flatMap(({ context }) => {
|
|
1159
|
-
const projectVerification = `${context.name}:verify`;
|
|
1160
|
-
const fallbackVerification = context.targets.includes('verify')
|
|
1161
|
-
? authenticatedTargets.has(projectVerification)
|
|
1162
|
-
? projectVerification
|
|
1163
|
-
: undefined
|
|
1164
|
-
: workspaceVerification;
|
|
1165
|
-
const featureTargets = ['lint', 'secret-guardrails', 'test', 'typecheck']
|
|
1166
|
-
.filter((target) => context.targets.includes(target))
|
|
1167
|
-
.map((target) => `${context.name}:${target}`);
|
|
1168
|
-
// Never substitute an unauthenticated check with a weaker fallback.
|
|
1169
|
-
if (featureTargets.some((target) => !authenticatedTargets.has(target)))
|
|
1170
|
-
return [];
|
|
1171
|
-
const workspace = workspaceVerification?.slice(0, workspaceVerification.lastIndexOf(':'));
|
|
1172
|
-
const ownershipChecks = workspace
|
|
1173
|
-
? ['work-markers', 'workspace-health']
|
|
1174
|
-
.map((target) => `${workspace}:${target}`)
|
|
1175
|
-
.filter((target) => authenticatedTargets.has(target))
|
|
1176
|
-
: [];
|
|
1177
|
-
const requiredVerification = [
|
|
1178
|
-
...new Set([
|
|
1179
|
-
...(featureTargets.length > 0
|
|
1180
|
-
? featureTargets
|
|
1181
|
-
: fallbackVerification
|
|
1182
|
-
? [fallbackVerification]
|
|
1183
|
-
: []),
|
|
1184
|
-
...ownershipChecks,
|
|
1185
|
-
]),
|
|
1186
|
-
].sort();
|
|
1187
|
-
if (requiredVerification.length === 0)
|
|
1188
|
-
return [];
|
|
1189
|
-
return [
|
|
1190
|
-
{
|
|
1191
|
-
applicableStages: ALL_CANONICAL_STAGES,
|
|
1192
|
-
approvalRequired: false,
|
|
1193
|
-
authority: 'local-source',
|
|
1194
|
-
contracts: [],
|
|
1195
|
-
documentationPaths: ['AGENTS.md', 'docs/developer-agent.md'],
|
|
1196
|
-
evidenceClasses: ['source'],
|
|
1197
|
-
id: `source-edit:${context.name}`,
|
|
1198
|
-
owner: 'source-edit',
|
|
1199
|
-
projects: [context.name],
|
|
1200
|
-
requiredVerification,
|
|
1201
|
-
},
|
|
1202
|
-
];
|
|
1203
|
-
});
|
|
1204
|
-
}
|
|
1205
|
-
function createDeveloperAgentOperationRegistry(projects, options) {
|
|
1206
|
-
const namedInputRuntimeDetected = options.namedInputDefinitions.some(containsRuntimeInput);
|
|
1207
|
-
const exposedProjectNames = new Set(options.exposedProjectNames ?? projects.map(({ context }) => context.name));
|
|
1208
|
-
const externalOwnedProjectNames = new Set(options.externalOwnedProjectNames);
|
|
1209
|
-
const missingFleetSlice = options.allSliceProjectNames?.find((name) => !projects.some(({ context }) => context.name === name));
|
|
1210
|
-
const implicitFleetCrossesExternalOwnership = (input) => externalOwnedProjectNames.size > 0 &&
|
|
1211
|
-
input.target.executor === '@empire-builder-kit/nx:fleet';
|
|
1212
|
-
const exposedProjects = projects.filter(({ context }) => exposedProjectNames.has(context.name));
|
|
1213
|
-
const operations = [];
|
|
1214
|
-
const adapters = new Map();
|
|
1215
|
-
const developmentClosures = new Map();
|
|
1216
|
-
const developmentReasons = new Map();
|
|
1217
|
-
for (const project of projects) {
|
|
1218
|
-
if (project.localDev === undefined)
|
|
1219
|
-
continue;
|
|
1220
|
-
try {
|
|
1221
|
-
adapters.set(project.context.name, (0, contracts_js_1.validateLocalDevAdapter)(project.localDev));
|
|
1222
|
-
}
|
|
1223
|
-
catch {
|
|
1224
|
-
developmentReasons.set(project.context.name, `Slice ${project.context.name} has invalid local-development metadata; repair its versioned adapter before planning development.`);
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
for (const name of adapters.keys()) {
|
|
1228
|
-
try {
|
|
1229
|
-
const closure = (0, contracts_js_1.resolveFleetSliceDependencies)(adapters, [name]);
|
|
1230
|
-
developmentClosures.set(name, closure);
|
|
1231
|
-
const external = closure.find((dependency) => externalOwnedProjectNames.has(dependency));
|
|
1232
|
-
if (external)
|
|
1233
|
-
developmentReasons.set(name, options.externalOwnershipHistoryComplete === false
|
|
1234
|
-
? `Slice ${name} has history-unverified dependency ${external}; protected external-Blueprint history is incomplete. Retained-plan execution is unavailable until the configured protected history is available. Ordinary feature work may use the documented typed generator and inspected seeded/user-owned surfaces with focused Nx checks; do not invent external Blueprint trust.`
|
|
1235
|
-
: `Slice ${name} requires external-owned dependency ${external}; use its explicit Blueprint owner. External development contracts are not authenticated by this operation registry.`);
|
|
1236
|
-
}
|
|
1237
|
-
catch {
|
|
1238
|
-
developmentReasons.set(name, `Slice ${name} has an unresolved, cyclic, or invalid dependency Slice; repair its declared dependencySlices before planning development.`);
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
const nonPlannableTargets = [];
|
|
1242
|
-
const unsupportedTargets = [];
|
|
1243
|
-
const orderedProjects = [...projects].sort((left, right) => (0, ordering_js_1.compareDeveloperAgentStrings)(left.context.name, right.context.name));
|
|
1244
|
-
const targetInputs = new Map();
|
|
1245
|
-
for (const project of orderedProjects) {
|
|
1246
|
-
for (const [targetName, target] of Object.entries(project.targets)) {
|
|
1247
|
-
targetInputs.set(`${project.context.name}:${targetName}`, {
|
|
1248
|
-
namedInputRuntimeDetected,
|
|
1249
|
-
project: { ...project.context, targets: Object.keys(project.targets) },
|
|
1250
|
-
target,
|
|
1251
|
-
targetName,
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
const availableProjects = new Set(orderedProjects.map(({ context }) => context.name));
|
|
1256
|
-
const availableTargets = new Set(targetInputs.keys());
|
|
1257
|
-
const reviewedExternalTargets = new Set();
|
|
1258
|
-
for (const review of options.reviewedExternalVerification ?? []) {
|
|
1259
|
-
if (!externalOwnedProjectNames.has(review.project))
|
|
1260
|
-
continue;
|
|
1261
|
-
const project = orderedProjects.find(({ context }) => context.name === review.project);
|
|
1262
|
-
if (!project)
|
|
1263
|
-
continue;
|
|
1264
|
-
let actual;
|
|
1265
|
-
try {
|
|
1266
|
-
actual = (0, blueprint_trust_js_1.blueprintVerificationTargetClosure)({
|
|
1267
|
-
projectRoot: project.context.root,
|
|
1268
|
-
roots: review.roots,
|
|
1269
|
-
targets: project.targets,
|
|
1270
|
-
});
|
|
1271
|
-
}
|
|
1272
|
-
catch {
|
|
1273
|
-
continue;
|
|
1274
|
-
}
|
|
1275
|
-
if (!(0, node_util_1.isDeepStrictEqual)(actual, review.verificationTargets) ||
|
|
1276
|
-
actual.some(({ name }) => {
|
|
1277
|
-
const input = targetInputs.get(`${review.project}:${name}`);
|
|
1278
|
-
return input === undefined || !reviewedExternalTargetIsSafe(input);
|
|
1279
|
-
})) {
|
|
1280
|
-
continue;
|
|
1281
|
-
}
|
|
1282
|
-
for (const { name } of actual) {
|
|
1283
|
-
reviewedExternalTargets.add(`${review.project}:${name}`);
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
const authentication = new Map();
|
|
1287
|
-
const authenticate = (id, active) => {
|
|
1288
|
-
const memoized = authentication.get(id);
|
|
1289
|
-
if (memoized !== undefined)
|
|
1290
|
-
return memoized;
|
|
1291
|
-
if (active.has(id)) {
|
|
1292
|
-
authentication.set(id, false);
|
|
1293
|
-
return false;
|
|
1294
|
-
}
|
|
1295
|
-
const input = targetInputs.get(id);
|
|
1296
|
-
if (!input) {
|
|
1297
|
-
authentication.set(id, false);
|
|
1298
|
-
return false;
|
|
1299
|
-
}
|
|
1300
|
-
if (input.namedInputRuntimeDetected ||
|
|
1301
|
-
(input.target.executor === '@empire-builder-kit/nx:fleet' &&
|
|
1302
|
-
missingFleetSlice !== undefined) ||
|
|
1303
|
-
implicitFleetCrossesExternalOwnership(input)) {
|
|
1304
|
-
authentication.set(id, false);
|
|
1305
|
-
return false;
|
|
1306
|
-
}
|
|
1307
|
-
const signature = authenticatedTargetSignature(input);
|
|
1308
|
-
const reviewedExternal = reviewedExternalTargets.has(id);
|
|
1309
|
-
if (externalOwnedProjectNames.has(input.project.name) &&
|
|
1310
|
-
!reviewedExternal) {
|
|
1311
|
-
authentication.set(id, false);
|
|
1312
|
-
return false;
|
|
1313
|
-
}
|
|
1314
|
-
if (!reviewedExternal &&
|
|
1315
|
-
(!signature ||
|
|
1316
|
-
signature.nonPlannableRationale !== undefined ||
|
|
1317
|
-
!TARGET_RULES.some(({ matches }) => matches(input.targetName)))) {
|
|
1318
|
-
authentication.set(id, false);
|
|
1319
|
-
return false;
|
|
1320
|
-
}
|
|
1321
|
-
const reviewedDependencies = reviewedExternal
|
|
1322
|
-
? reviewedExternalDependencies(input)
|
|
1323
|
-
: undefined;
|
|
1324
|
-
const dependencies = dependencyTargets(input, reviewedExternal
|
|
1325
|
-
? (reviewedDependencies ?? [])
|
|
1326
|
-
: (signature?.dependsOn?.(input) ?? []), availableProjects, availableTargets);
|
|
1327
|
-
if (reviewedExternal && reviewedDependencies === undefined) {
|
|
1328
|
-
authentication.set(id, false);
|
|
1329
|
-
return false;
|
|
1330
|
-
}
|
|
1331
|
-
if (!dependencies) {
|
|
1332
|
-
authentication.set(id, false);
|
|
1333
|
-
return false;
|
|
1334
|
-
}
|
|
1335
|
-
const nextActive = new Set(active);
|
|
1336
|
-
nextActive.add(id);
|
|
1337
|
-
if (input.target.executor === '@empire-builder-kit/nx:fleet') {
|
|
1338
|
-
for (const project of projects.filter(({ context }) => context.tags.includes('type:slice'))) {
|
|
1339
|
-
if (!authenticate(`${project.context.name}:${adapters.get(project.context.name)?.target ?? 'dev'}`, nextActive)) {
|
|
1340
|
-
authentication.set(id, false);
|
|
1341
|
-
return false;
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
if (input.targetName === (adapters.get(input.project.name)?.target ?? 'dev')) {
|
|
1346
|
-
if (developmentReasons.has(input.project.name)) {
|
|
1347
|
-
authentication.set(id, false);
|
|
1348
|
-
return false;
|
|
1349
|
-
}
|
|
1350
|
-
for (const name of developmentClosures.get(input.project.name) ?? []) {
|
|
1351
|
-
if (name === input.project.name)
|
|
1352
|
-
continue;
|
|
1353
|
-
const dependencyAdapter = adapters.get(name);
|
|
1354
|
-
if (!dependencyAdapter) {
|
|
1355
|
-
authentication.set(id, false);
|
|
1356
|
-
return false;
|
|
1357
|
-
}
|
|
1358
|
-
const dependencyId = `${name}:${dependencyAdapter.target}`;
|
|
1359
|
-
if (!authenticate(dependencyId, nextActive)) {
|
|
1360
|
-
developmentReasons.set(input.project.name, `Slice ${input.project.name} requires non-plannable dependency ${dependencyId}; use that dependency's explicit owner before planning development.`);
|
|
1361
|
-
authentication.set(id, false);
|
|
1362
|
-
return false;
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
const authenticated = dependencies.every((dependency) => authenticate(dependency.id, nextActive));
|
|
1367
|
-
authentication.set(id, authenticated);
|
|
1368
|
-
return authenticated;
|
|
1369
|
-
};
|
|
1370
|
-
const composedInvocations = new Map();
|
|
1371
|
-
const composeInvocation = (id, forwardedStage) => {
|
|
1372
|
-
const memoKey = `${id}\u0000${forwardedStage ?? ''}`;
|
|
1373
|
-
const memoized = composedInvocations.get(memoKey);
|
|
1374
|
-
if (memoized !== undefined)
|
|
1375
|
-
return memoized ?? undefined;
|
|
1376
|
-
if (!authenticate(id, new Set())) {
|
|
1377
|
-
composedInvocations.set(memoKey, null);
|
|
1378
|
-
return undefined;
|
|
1379
|
-
}
|
|
1380
|
-
const input = targetInputs.get(id);
|
|
1381
|
-
if (!input) {
|
|
1382
|
-
composedInvocations.set(memoKey, null);
|
|
1383
|
-
return undefined;
|
|
1384
|
-
}
|
|
1385
|
-
const signature = authenticatedTargetSignature(input);
|
|
1386
|
-
const reviewedExternal = reviewedExternalTargets.has(id);
|
|
1387
|
-
const operation = operationForTarget(input, forwardedStage, reviewedExternal);
|
|
1388
|
-
const reviewedDependencies = reviewedExternal
|
|
1389
|
-
? reviewedExternalDependencies(input)
|
|
1390
|
-
: undefined;
|
|
1391
|
-
const dependencyTargetsForOperation = reviewedExternal
|
|
1392
|
-
? reviewedDependencies === undefined
|
|
1393
|
-
? undefined
|
|
1394
|
-
: dependencyTargets(input, reviewedDependencies, availableProjects, availableTargets)
|
|
1395
|
-
: signature
|
|
1396
|
-
? dependencyTargets(input, signature.dependsOn?.(input) ?? [], availableProjects, availableTargets)
|
|
1397
|
-
: undefined;
|
|
1398
|
-
if (!operation || !dependencyTargetsForOperation) {
|
|
1399
|
-
composedInvocations.set(memoKey, null);
|
|
1400
|
-
return undefined;
|
|
1401
|
-
}
|
|
1402
|
-
const allDependencyTargets = [...dependencyTargetsForOperation];
|
|
1403
|
-
const developmentProjects = input.target.executor === '@empire-builder-kit/nx:fleet'
|
|
1404
|
-
? projects
|
|
1405
|
-
.filter(({ context }) => context.tags.includes('type:slice'))
|
|
1406
|
-
.map(({ context }) => context.name)
|
|
1407
|
-
: input.targetName === adapters.get(input.project.name)?.target
|
|
1408
|
-
? (developmentClosures.get(input.project.name) ?? []).filter((name) => name !== input.project.name)
|
|
1409
|
-
: [];
|
|
1410
|
-
for (const name of developmentProjects) {
|
|
1411
|
-
const dependencyId = `${name}:${adapters.get(name)?.target ?? 'dev'}`;
|
|
1412
|
-
if (!allDependencyTargets.some(({ id }) => id === dependencyId)) {
|
|
1413
|
-
allDependencyTargets.push({
|
|
1414
|
-
id: dependencyId,
|
|
1415
|
-
params: 'ignore',
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
const dependencies = allDependencyTargets.map((dependency) => {
|
|
1420
|
-
const composed = composeInvocation(dependency.id, dependency.params === 'forward' ? forwardedStage : undefined);
|
|
1421
|
-
if (!composed)
|
|
1422
|
-
return undefined;
|
|
1423
|
-
// Nx forwards CLI overrides only across params:forward. A dependency
|
|
1424
|
-
// with ignored params runs under its independently authenticated stage,
|
|
1425
|
-
// so it contributes authority and evidence without constraining the
|
|
1426
|
-
// forwarded parent stage. Without a forwarded stage, ordinary aggregate
|
|
1427
|
-
// targets share a stage domain and are intersected normally.
|
|
1428
|
-
return forwardedStage !== undefined && dependency.params === 'ignore'
|
|
1429
|
-
? { ...composed, applicableStages: operation.applicableStages }
|
|
1430
|
-
: composed;
|
|
1431
|
-
});
|
|
1432
|
-
if (dependencies.some((dependency) => dependency === undefined)) {
|
|
1433
|
-
composedInvocations.set(memoKey, null);
|
|
1434
|
-
return undefined;
|
|
1435
|
-
}
|
|
1436
|
-
const composed = composeTargetOperation(operation, dependencies);
|
|
1437
|
-
composedInvocations.set(memoKey, composed ?? null);
|
|
1438
|
-
return composed;
|
|
1439
|
-
};
|
|
1440
|
-
const compose = (id) => {
|
|
1441
|
-
const input = targetInputs.get(id);
|
|
1442
|
-
const direct = input
|
|
1443
|
-
? operationForTarget(input, undefined, reviewedExternalTargets.has(id))
|
|
1444
|
-
: undefined;
|
|
1445
|
-
if (!input || !direct)
|
|
1446
|
-
return undefined;
|
|
1447
|
-
// A protected lifecycle target without a configured stage receives its
|
|
1448
|
-
// canonical stage as a CLI override. Nx then propagates that value only
|
|
1449
|
-
// through params:forward edges. Compose each exact stage variant and merge
|
|
1450
|
-
// their stage availability; all other targets use their configured/default
|
|
1451
|
-
// invocation and a literal dependency-stage intersection.
|
|
1452
|
-
if (configuredCanonicalStage(input) === undefined &&
|
|
1453
|
-
direct.policyLifecycleAction !== undefined &&
|
|
1454
|
-
(direct.authority === 'protected-mutate' ||
|
|
1455
|
-
direct.authority === 'destructive')) {
|
|
1456
|
-
const variants = direct.applicableStages
|
|
1457
|
-
.map((stage) => composeInvocation(id, stage))
|
|
1458
|
-
.filter((operation) => operation !== undefined);
|
|
1459
|
-
if (variants.length === 0)
|
|
1460
|
-
return undefined;
|
|
1461
|
-
const applicableStages = ALL_CANONICAL_STAGES.filter((stage) => variants.some((operation) => operation.applicableStages.includes(stage)));
|
|
1462
|
-
const merged = composeTargetOperation({ ...variants[0], applicableStages }, variants.slice(1).map((operation) => ({
|
|
1463
|
-
...operation,
|
|
1464
|
-
applicableStages,
|
|
1465
|
-
})));
|
|
1466
|
-
return merged ? { ...merged, applicableStages } : undefined;
|
|
1467
|
-
}
|
|
1468
|
-
return composeInvocation(id, undefined);
|
|
1469
|
-
};
|
|
1470
|
-
const workspaceProjects = orderedProjects.filter(({ context }) => context.tags.includes('scope:workspace'));
|
|
1471
|
-
let workspaceVerification;
|
|
1472
|
-
if (workspaceProjects.length === 1) {
|
|
1473
|
-
const candidate = `${workspaceProjects[0].context.name}:verify`;
|
|
1474
|
-
if (compose(candidate)) {
|
|
1475
|
-
workspaceVerification = candidate;
|
|
1476
|
-
operations.push(...generatorOperations(candidate), ...packageManagerOperations(candidate));
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
const authenticatedTargets = new Set([...targetInputs.keys()].filter((target) => compose(target) !== undefined));
|
|
1480
|
-
const blockedDevelopment = new Set(developmentReasons.keys());
|
|
1481
|
-
for (const [name, adapter] of adapters) {
|
|
1482
|
-
if (!authenticatedTargets.has(`${name}:${adapter.target}`))
|
|
1483
|
-
blockedDevelopment.add(name);
|
|
1484
|
-
}
|
|
1485
|
-
operations.push(...localDevOperations(exposedProjects, externalOwnedProjectNames, developmentClosures, blockedDevelopment));
|
|
1486
|
-
operations.push(...sourceEditOperations(exposedProjects, authenticatedTargets, workspaceVerification));
|
|
1487
|
-
for (const project of orderedProjects) {
|
|
1488
|
-
if (!exposedProjectNames.has(project.context.name))
|
|
1489
|
-
continue;
|
|
1490
|
-
for (const [targetName] of Object.entries(project.targets).sort(([left], [right]) => (0, ordering_js_1.compareDeveloperAgentStrings)(left, right))) {
|
|
1491
|
-
const target = `${project.context.name}:${targetName}`;
|
|
1492
|
-
const input = targetInputs.get(target);
|
|
1493
|
-
const signature = input ? authenticatedTargetSignature(input) : undefined;
|
|
1494
|
-
if (input?.target.executor === '@empire-builder-kit/nx:fleet' &&
|
|
1495
|
-
missingFleetSlice !== undefined) {
|
|
1496
|
-
nonPlannableTargets.push({
|
|
1497
|
-
target,
|
|
1498
|
-
rationale: `Root Fleet development implicitly selects Slice ${missingFleetSlice} outside this bounded context. Select an owned Slice ebk-dev operation or inspect the full development target inventory first.`,
|
|
1499
|
-
});
|
|
1500
|
-
continue;
|
|
1501
|
-
}
|
|
1502
|
-
const developmentReason = developmentReasons.get(project.context.name);
|
|
1503
|
-
if (developmentReason &&
|
|
1504
|
-
targetName === (adapters.get(project.context.name)?.target ?? 'dev')) {
|
|
1505
|
-
nonPlannableTargets.push({ target, rationale: developmentReason });
|
|
1506
|
-
continue;
|
|
1507
|
-
}
|
|
1508
|
-
if (input && signature && implicitFleetCrossesExternalOwnership(input)) {
|
|
1509
|
-
nonPlannableTargets.push({
|
|
1510
|
-
target,
|
|
1511
|
-
rationale: 'This root Fleet target implicitly selects all Slices, including external-owned Blueprint targets outside the authenticated development execution boundary. Select an owned Slice ebk-dev operation or require an explicit external Blueprint development contract from its owner (Milestone 4).',
|
|
1512
|
-
});
|
|
1513
|
-
continue;
|
|
1514
|
-
}
|
|
1515
|
-
if (signature?.nonPlannableRationale &&
|
|
1516
|
-
!externalOwnedProjectNames.has(project.context.name)) {
|
|
1517
|
-
nonPlannableTargets.push({
|
|
1518
|
-
rationale: signature.nonPlannableRationale,
|
|
1519
|
-
target,
|
|
1520
|
-
});
|
|
1521
|
-
continue;
|
|
1522
|
-
}
|
|
1523
|
-
const operation = compose(target);
|
|
1524
|
-
if (operation)
|
|
1525
|
-
operations.push(operation);
|
|
1526
|
-
else
|
|
1527
|
-
unsupportedTargets.push(target);
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
operations.sort((left, right) => (0, ordering_js_1.compareDeveloperAgentStrings)(left.id, right.id));
|
|
1531
|
-
nonPlannableTargets.sort((left, right) => (0, ordering_js_1.compareDeveloperAgentStrings)(left.target, right.target));
|
|
1532
|
-
unsupportedTargets.sort();
|
|
1533
|
-
return {
|
|
1534
|
-
authenticatedTargets: [...authenticatedTargets].sort(ordering_js_1.compareDeveloperAgentStrings),
|
|
1535
|
-
nonPlannableTargets,
|
|
1536
|
-
operations,
|
|
1537
|
-
unsupportedTargets,
|
|
1538
|
-
};
|
|
1539
|
-
}
|
|
1540
|
-
function requireDeveloperAgentOperation(registry, id) {
|
|
1541
|
-
const operation = registry.operations.find((candidate) => candidate.id === id);
|
|
1542
|
-
if (!operation) {
|
|
1543
|
-
throw new DeveloperAgentOperationRegistryError();
|
|
1544
|
-
}
|
|
1545
|
-
return operation;
|
|
1546
|
-
}
|
|
1547
|
-
function operationLooksMutating(targetName) {
|
|
1548
|
-
return containsSegment('apply', 'backfill', 'cleanup', 'deploy', 'generate', 'migrate', 'reconcile', 'recover', 'refresh', 'remove', 'retire', 'rollout', 'setup', 'sync', 'unlock', 'update', 'up')(targetName);
|
|
1549
|
-
}
|
|
1550
|
-
//# sourceMappingURL=operation-registry.js.map
|