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