@empire-builder-kit/nx 1.0.0-beta.9 → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +6 -0
- package/README.md +113 -3
- package/executors.json +30 -0
- package/package.json +84 -6
- package/src/api-contract/baseline-update.d.ts +82 -0
- package/src/api-contract/baseline-update.js +225 -0
- package/src/api-contract/baseline-update.js.map +1 -0
- package/src/api-contract/compatibility.d.ts +30 -0
- package/src/api-contract/compatibility.js +643 -0
- package/src/api-contract/compatibility.js.map +1 -0
- package/src/api-contract/contract-graph.d.ts +35 -0
- package/src/api-contract/contract-graph.js +141 -0
- package/src/api-contract/contract-graph.js.map +1 -0
- package/src/api-contract/evidence.d.ts +23 -0
- package/src/api-contract/evidence.js +87 -0
- package/src/api-contract/evidence.js.map +1 -0
- package/src/api-contract/index.d.ts +6 -0
- package/src/api-contract/index.js +10 -0
- package/src/api-contract/index.js.map +1 -0
- package/src/api-contract/model.d.ts +144 -0
- package/src/api-contract/model.fixtures.d.ts +2 -0
- package/src/api-contract/model.fixtures.js +81 -0
- package/src/api-contract/model.fixtures.js.map +1 -0
- package/src/api-contract/model.js +993 -0
- package/src/api-contract/model.js.map +1 -0
- package/src/api-contract/rollout.d.ts +32 -0
- package/src/api-contract/rollout.js +88 -0
- package/src/api-contract/rollout.js.map +1 -0
- package/src/authorization/compatibility.d.ts +62 -0
- package/src/authorization/compatibility.js +175 -0
- package/src/authorization/compatibility.js.map +1 -0
- package/src/authorization/index.d.ts +1 -0
- package/src/authorization/index.js +5 -0
- package/src/authorization/index.js.map +1 -0
- package/src/blueprints/execution.d.ts +25 -1
- package/src/blueprints/execution.js +246 -83
- package/src/blueprints/execution.js.map +1 -1
- package/src/blueprints/external-sandbox.d.ts +53 -0
- package/src/blueprints/external-sandbox.js +1182 -0
- package/src/blueprints/external-sandbox.js.map +1 -0
- package/src/blueprints/manifest.d.ts +42 -2
- package/src/blueprints/manifest.js +82 -27
- package/src/blueprints/manifest.js.map +1 -1
- package/src/blueprints/resolver.d.ts +14 -5
- package/src/blueprints/resolver.js +228 -68
- package/src/blueprints/resolver.js.map +1 -1
- package/src/cli/agent-command.d.ts +30 -0
- package/src/cli/agent-command.js +204 -0
- package/src/cli/agent-command.js.map +1 -0
- package/src/cli/agent-runtime.d.ts +25 -0
- package/src/cli/agent-runtime.js +488 -0
- package/src/cli/agent-runtime.js.map +1 -0
- package/src/cli/blueprint-authority.d.ts +9 -0
- package/src/cli/blueprint-authority.js +43 -0
- package/src/cli/blueprint-authority.js.map +1 -0
- package/src/cli/blueprint-command.d.ts +24 -0
- package/src/cli/blueprint-command.js +63 -0
- package/src/cli/blueprint-command.js.map +1 -0
- package/src/cli/bootstrap.d.ts +31 -0
- package/src/cli/bootstrap.js +165 -0
- package/src/cli/bootstrap.js.map +1 -0
- package/src/cli/dev-command.d.ts +92 -0
- package/src/cli/dev-command.js +561 -0
- package/src/cli/dev-command.js.map +1 -0
- package/src/cli/main.d.ts +131 -0
- package/src/cli/main.js +1199 -0
- package/src/cli/main.js.map +1 -0
- package/src/cli/output.d.ts +19 -0
- package/src/cli/output.js +51 -0
- package/src/cli/output.js.map +1 -0
- package/src/cli/personal-secret-runtime.d.ts +81 -0
- package/src/cli/personal-secret-runtime.js +567 -0
- package/src/cli/personal-secret-runtime.js.map +1 -0
- package/src/cli/secret-terminal.d.ts +12 -0
- package/src/cli/secret-terminal.js +128 -0
- package/src/cli/secret-terminal.js.map +1 -0
- package/src/container-images.d.ts +1 -0
- package/src/container-images.js +5 -0
- package/src/container-images.js.map +1 -0
- package/src/data-lifecycle/index.d.ts +3 -0
- package/src/data-lifecycle/index.js +7 -0
- package/src/data-lifecycle/index.js.map +1 -0
- package/src/data-lifecycle/model.d.ts +172 -0
- package/src/data-lifecycle/model.fixtures.d.ts +2 -0
- package/src/data-lifecycle/model.fixtures.js +244 -0
- package/src/data-lifecycle/model.fixtures.js.map +1 -0
- package/src/data-lifecycle/model.js +95 -0
- package/src/data-lifecycle/model.js.map +1 -0
- package/src/data-lifecycle/sensitive-artifacts.d.ts +28 -0
- package/src/data-lifecycle/sensitive-artifacts.js +146 -0
- package/src/data-lifecycle/sensitive-artifacts.js.map +1 -0
- package/src/data-lifecycle/validation.d.ts +32 -0
- package/src/data-lifecycle/validation.js +837 -0
- package/src/data-lifecycle/validation.js.map +1 -0
- package/src/database-retirement/contract.d.ts +68 -0
- package/src/database-retirement/contract.js +166 -0
- package/src/database-retirement/contract.js.map +1 -0
- package/src/database-retirement/index.d.ts +1 -0
- package/src/database-retirement/index.js +5 -0
- package/src/database-retirement/index.js.map +1 -0
- package/src/deterministic-order.d.ts +2 -0
- package/src/deterministic-order.js +7 -0
- package/src/deterministic-order.js.map +1 -0
- package/src/developer-agent/context.d.ts +27 -0
- package/src/developer-agent/context.js +497 -0
- package/src/developer-agent/context.js.map +1 -0
- package/src/developer-agent/generator-planning.d.ts +34 -0
- package/src/developer-agent/generator-planning.js +645 -0
- package/src/developer-agent/generator-planning.js.map +1 -0
- package/src/developer-agent/generator-preview.d.ts +8 -0
- package/src/developer-agent/generator-preview.js +650 -0
- package/src/developer-agent/generator-preview.js.map +1 -0
- package/src/developer-agent/git-inspection.d.ts +108 -0
- package/src/developer-agent/git-inspection.js +815 -0
- package/src/developer-agent/git-inspection.js.map +1 -0
- package/src/developer-agent/handoff.d.ts +43 -0
- package/src/developer-agent/handoff.js +698 -0
- package/src/developer-agent/handoff.js.map +1 -0
- package/src/developer-agent/index.d.ts +10 -0
- package/src/developer-agent/index.js +14 -0
- package/src/developer-agent/index.js.map +1 -0
- package/src/developer-agent/model.d.ts +481 -0
- package/src/developer-agent/model.js +143 -0
- package/src/developer-agent/model.js.map +1 -0
- package/src/developer-agent/operation-registry.d.ts +45 -0
- package/src/developer-agent/operation-registry.js +1255 -0
- package/src/developer-agent/operation-registry.js.map +1 -0
- package/src/developer-agent/ordering.d.ts +9 -0
- package/src/developer-agent/ordering.js +15 -0
- package/src/developer-agent/ordering.js.map +1 -0
- package/src/developer-agent/planning.d.ts +18 -0
- package/src/developer-agent/planning.js +447 -0
- package/src/developer-agent/planning.js.map +1 -0
- package/src/developer-agent/preview-changes.d.ts +26 -0
- package/src/developer-agent/preview-changes.js +203 -0
- package/src/developer-agent/preview-changes.js.map +1 -0
- package/src/developer-agent/preview-source.d.ts +2 -0
- package/src/developer-agent/preview-source.js +16 -0
- package/src/developer-agent/preview-source.js.map +1 -0
- package/src/developer-agent/validation.d.ts +18 -0
- package/src/developer-agent/validation.js +2617 -0
- package/src/developer-agent/validation.js.map +1 -0
- package/src/developer-agent/workspace-inspection.d.ts +20 -0
- package/src/developer-agent/workspace-inspection.js +1134 -0
- package/src/developer-agent/workspace-inspection.js.map +1 -0
- package/src/developer-agent/workspace-path.d.ts +6 -0
- package/src/developer-agent/workspace-path.js +22 -0
- package/src/developer-agent/workspace-path.js.map +1 -0
- package/src/executors/blueprint-trust/blueprint-trust.d.ts +29 -0
- package/src/executors/blueprint-trust/blueprint-trust.js +115 -0
- package/src/executors/blueprint-trust/blueprint-trust.js.map +1 -0
- package/src/executors/blueprint-trust/schema.json +27 -0
- package/src/executors/blueprint-verification/blueprint-verification.d.ts +13 -0
- package/src/executors/blueprint-verification/blueprint-verification.js +110 -0
- package/src/executors/blueprint-verification/blueprint-verification.js.map +1 -0
- package/src/executors/blueprint-verification/schema.json +44 -0
- package/src/executors/deployment-plan/deployment-plan.js +1 -0
- package/src/executors/deployment-plan/deployment-plan.js.map +1 -1
- package/src/executors/dev-doctor/dev-doctor.d.ts +19 -5
- package/src/executors/dev-doctor/dev-doctor.js +186 -32
- package/src/executors/dev-doctor/dev-doctor.js.map +1 -1
- package/src/executors/dev-doctor/schema.json +1 -6
- package/src/executors/dev-setup/dev-setup.d.ts +7 -1
- package/src/executors/dev-setup/dev-setup.js +14 -3
- package/src/executors/dev-setup/dev-setup.js.map +1 -1
- package/src/executors/developer-context/developer-context.d.ts +38 -0
- package/src/executors/developer-context/developer-context.js +78 -0
- package/src/executors/developer-context/developer-context.js.map +1 -0
- package/src/executors/developer-context/schema.json +87 -0
- package/src/executors/fleet/fleet.d.ts +12 -43
- package/src/executors/fleet/fleet.js +120 -500
- package/src/executors/fleet/fleet.js.map +1 -1
- package/src/executors/fleet/schema.json +64 -14
- package/src/executors/github-bootstrap/github-bootstrap.d.ts +1 -0
- package/src/executors/github-bootstrap/github-bootstrap.js +1 -0
- package/src/executors/github-bootstrap/github-bootstrap.js.map +1 -1
- package/src/executors/github-bootstrap/schema.json +5 -0
- package/src/executors/infrastructure-plan/infrastructure-plan.d.ts +144 -0
- package/src/executors/infrastructure-plan/infrastructure-plan.js +3320 -0
- package/src/executors/infrastructure-plan/infrastructure-plan.js.map +1 -0
- package/src/executors/infrastructure-plan/schema.json +78 -0
- package/src/executors/secret-guardrails/schema.json +6 -0
- package/src/executors/secret-guardrails/secret-guardrails.d.ts +3 -0
- package/src/executors/secret-guardrails/secret-guardrails.js +44 -0
- package/src/executors/secret-guardrails/secret-guardrails.js.map +1 -0
- package/src/executors/secret-metadata/schema.json +31 -0
- package/src/executors/secret-metadata/secret-metadata.d.ts +32 -0
- package/src/executors/secret-metadata/secret-metadata.js +131 -0
- package/src/executors/secret-metadata/secret-metadata.js.map +1 -0
- package/src/executors/sst-lifecycle/logging-preflight.d.ts +17 -0
- package/src/executors/sst-lifecycle/logging-preflight.js +196 -0
- package/src/executors/sst-lifecycle/logging-preflight.js.map +1 -0
- package/src/executors/sst-lifecycle/run-sst-command.d.ts +23 -3
- package/src/executors/sst-lifecycle/run-sst-command.js +113 -10
- package/src/executors/sst-lifecycle/run-sst-command.js.map +1 -1
- package/src/executors/sst-lifecycle/schema.json +9 -5
- package/src/executors/sst-lifecycle/secret-preflight.d.ts +25 -0
- package/src/executors/sst-lifecycle/secret-preflight.js +119 -0
- package/src/executors/sst-lifecycle/secret-preflight.js.map +1 -0
- package/src/foundation/discovery.d.ts +17 -1
- package/src/foundation/discovery.js +16 -1
- package/src/foundation/discovery.js.map +1 -1
- package/src/foundation/index.d.ts +3 -0
- package/src/foundation/index.js +3 -0
- package/src/foundation/index.js.map +1 -1
- package/src/foundation/local-database-contract.d.ts +1 -0
- package/src/foundation/local-database-contract.js +3 -0
- package/src/foundation/local-database-contract.js.map +1 -1
- package/src/foundation/logging-preflight.d.ts +30 -0
- package/src/foundation/logging-preflight.js +138 -0
- package/src/foundation/logging-preflight.js.map +1 -0
- package/src/foundation/logging.d.ts +70 -0
- package/src/foundation/logging.js +133 -0
- package/src/foundation/logging.js.map +1 -0
- package/src/foundation/preflight.d.ts +9 -0
- package/src/foundation/preflight.js +58 -2
- package/src/foundation/preflight.js.map +1 -1
- package/src/foundation/provision-database-bindings.d.ts +9 -1
- package/src/foundation/provision-database-bindings.js +25 -5
- package/src/foundation/provision-database-bindings.js.map +1 -1
- package/src/foundation/provision-logical-database.d.ts +10 -2
- package/src/foundation/provision-logical-database.js +68 -113
- package/src/foundation/provision-logical-database.js.map +1 -1
- package/src/foundation/router-origin-proof.d.ts +2 -0
- package/src/foundation/router-origin-proof.js +25 -0
- package/src/foundation/router-origin-proof.js.map +1 -0
- package/src/foundation/stages.d.ts +1 -0
- package/src/foundation/stages.js +9 -1
- package/src/foundation/stages.js.map +1 -1
- package/src/frontend-security/index.d.ts +1 -0
- package/src/frontend-security/index.js +5 -0
- package/src/frontend-security/index.js.map +1 -0
- package/src/frontend-security/security-headers.d.ts +50 -0
- package/src/frontend-security/security-headers.js +418 -0
- package/src/frontend-security/security-headers.js.map +1 -0
- package/src/generators/feature-registry.d.ts +13 -0
- package/src/generators/feature-registry.js +73 -0
- package/src/generators/feature-registry.js.map +1 -0
- package/src/generators/function/function.d.ts +1 -1
- package/src/generators/function/function.js +51 -6
- package/src/generators/function/function.js.map +1 -1
- package/src/generators/function/schema.d.ts +1 -0
- package/src/generators/function/schema.json +6 -1
- package/src/generators/logging-registry.d.ts +13 -0
- package/src/generators/logging-registry.js +62 -0
- package/src/generators/logging-registry.js.map +1 -0
- package/src/generators/post-generation-install.d.ts +67 -0
- package/src/generators/post-generation-install.js +3308 -0
- package/src/generators/post-generation-install.js.map +1 -0
- package/src/generators/preset/generator.js +3 -0
- package/src/generators/preset/generator.js.map +1 -1
- package/src/generators/preset/tool-versions.d.ts +18 -0
- package/src/generators/preset/tool-versions.js +22 -0
- package/src/generators/preset/tool-versions.js.map +1 -0
- package/src/generators/preset/workspace-files-developer-agent.d.ts +14 -0
- package/src/generators/preset/workspace-files-developer-agent.js +511 -0
- package/src/generators/preset/workspace-files-developer-agent.js.map +1 -0
- package/src/generators/preset/workspace-files-foundation-workload-roles.d.ts +6 -0
- package/src/generators/preset/workspace-files-foundation-workload-roles.js +406 -0
- package/src/generators/preset/workspace-files-foundation-workload-roles.js.map +1 -0
- package/src/generators/preset/workspace-files-performance-cost.d.ts +66 -0
- package/src/generators/preset/workspace-files-performance-cost.js +866 -0
- package/src/generators/preset/workspace-files-performance-cost.js.map +1 -0
- package/src/generators/preset/workspace-files-performance-load.d.ts +73 -0
- package/src/generators/preset/workspace-files-performance-load.js +801 -0
- package/src/generators/preset/workspace-files-performance-load.js.map +1 -0
- package/src/generators/preset/workspace-files-workload-role-baseline.d.ts +9 -0
- package/src/generators/preset/workspace-files-workload-role-baseline.js +1102 -0
- package/src/generators/preset/workspace-files-workload-role-baseline.js.map +1 -0
- package/src/generators/preset/workspace-files.d.ts +14 -1
- package/src/generators/preset/workspace-files.js +8189 -245
- package/src/generators/preset/workspace-files.js.map +1 -1
- package/src/generators/repository-policy/repository-policy.js +3 -47
- package/src/generators/repository-policy/repository-policy.js.map +1 -1
- package/src/generators/slice/built-in-plan-api-contract-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-api-contract-files.js +2656 -0
- package/src/generators/slice/built-in-plan-api-contract-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-api-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-api-files.js +1186 -0
- package/src/generators/slice/built-in-plan-api-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-async-work-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-async-work-files.js +7903 -0
- package/src/generators/slice/built-in-plan-async-work-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-authorization-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-authorization-files.js +2314 -0
- package/src/generators/slice/built-in-plan-authorization-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.js +559 -0
- package/src/generators/slice/built-in-plan-authorization-infrastructure-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-deletion-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-deletion-files.js +1101 -0
- package/src/generators/slice/built-in-plan-data-deletion-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.js +249 -0
- package/src/generators/slice/built-in-plan-data-export-infrastructure-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-files.js +1530 -0
- package/src/generators/slice/built-in-plan-data-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-files.js +750 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.js +828 -0
- package/src/generators/slice/built-in-plan-data-lifecycle-runtime-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-retention-job-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-retention-job-files.js +2604 -0
- package/src/generators/slice/built-in-plan-data-retention-job-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.js +144 -0
- package/src/generators/slice/built-in-plan-data-retention-launcher-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-data-rights-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-data-rights-files.js +4628 -0
- package/src/generators/slice/built-in-plan-data-rights-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-database-lifecycle-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-database-lifecycle-files.js +1901 -0
- package/src/generators/slice/built-in-plan-database-lifecycle-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.js +485 -0
- package/src/generators/slice/built-in-plan-database-retirement-rehearsal-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-foundation-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-foundation-files.js +184 -0
- package/src/generators/slice/built-in-plan-foundation-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-frontend-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-frontend-files.js +2233 -0
- package/src/generators/slice/built-in-plan-frontend-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-infrastructure-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-infrastructure-files.js +3038 -0
- package/src/generators/slice/built-in-plan-infrastructure-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.js +312 -0
- package/src/generators/slice/built-in-plan-infrastructure-safety-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-metadata-files.d.ts +3 -0
- package/src/generators/slice/built-in-plan-metadata-files.js +219 -0
- package/src/generators/slice/built-in-plan-metadata-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-operations-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-operations-files.js +630 -0
- package/src/generators/slice/built-in-plan-operations-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-performance-files.d.ts +3 -0
- package/src/generators/slice/built-in-plan-performance-files.js +3293 -0
- package/src/generators/slice/built-in-plan-performance-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-project-files.d.ts +3 -0
- package/src/generators/slice/built-in-plan-project-files.js +979 -0
- package/src/generators/slice/built-in-plan-project-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-release-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-release-files.js +6387 -0
- package/src/generators/slice/built-in-plan-release-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-reliability-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-reliability-files.js +4499 -0
- package/src/generators/slice/built-in-plan-reliability-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-secret-runtime-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-secret-runtime-files.js +1004 -0
- package/src/generators/slice/built-in-plan-secret-runtime-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-shared.d.ts +53 -0
- package/src/generators/slice/built-in-plan-shared.js +113 -0
- package/src/generators/slice/built-in-plan-shared.js.map +1 -0
- package/src/generators/slice/built-in-plan-testing-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-testing-files.js +2356 -0
- package/src/generators/slice/built-in-plan-testing-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-verification-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-verification-files.js +358 -0
- package/src/generators/slice/built-in-plan-verification-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-web-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-web-files.js +430 -0
- package/src/generators/slice/built-in-plan-web-files.js.map +1 -0
- package/src/generators/slice/built-in-plan-workload-role-files.d.ts +2 -0
- package/src/generators/slice/built-in-plan-workload-role-files.js +2356 -0
- package/src/generators/slice/built-in-plan-workload-role-files.js.map +1 -0
- package/src/generators/slice/built-in-plan.d.ts +8 -0
- package/src/generators/slice/built-in-plan.js +264 -0
- package/src/generators/slice/built-in-plan.js.map +1 -0
- package/src/generators/slice/schema.json +1 -1
- package/src/generators/slice/slice.d.ts +1 -22
- package/src/generators/slice/slice.js +185 -1510
- package/src/generators/slice/slice.js.map +1 -1
- package/src/generators/upgrade/schema.d.ts +2 -0
- package/src/generators/upgrade/schema.json +11 -1
- package/src/generators/upgrade/upgrade.d.ts +51 -1
- package/src/generators/upgrade/upgrade.js +820 -82
- package/src/generators/upgrade/upgrade.js.map +1 -1
- package/src/generators/workload/frozen-container.d.ts +8 -0
- package/src/generators/workload/frozen-container.js +36 -0
- package/src/generators/workload/frozen-container.js.map +1 -0
- package/src/generators/workload/performance-registration.d.ts +32 -0
- package/src/generators/workload/performance-registration.js +226 -0
- package/src/generators/workload/performance-registration.js.map +1 -0
- package/src/generators/workload/reliability-registration.d.ts +16 -0
- package/src/generators/workload/reliability-registration.js +150 -0
- package/src/generators/workload/reliability-registration.js.map +1 -0
- package/src/generators/workload/schema.d.ts +1 -0
- package/src/generators/workload/schema.json +6 -1
- package/src/generators/workload/service-performance-files.d.ts +4 -0
- package/src/generators/workload/service-performance-files.js +1846 -0
- package/src/generators/workload/service-performance-files.js.map +1 -0
- package/src/generators/workload/workload.d.ts +3 -2
- package/src/generators/workload/workload.js +1083 -18
- package/src/generators/workload/workload.js.map +1 -1
- package/src/git-policy/action-pins.d.ts +10 -0
- package/src/git-policy/action-pins.js +10 -0
- package/src/git-policy/action-pins.js.map +1 -1
- package/src/git-policy/github-bootstrap.d.ts +14 -1
- package/src/git-policy/github-bootstrap.js +274 -46
- package/src/git-policy/github-bootstrap.js.map +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/infrastructure-change/convergence.d.ts +13 -0
- package/src/infrastructure-change/convergence.js +85 -0
- package/src/infrastructure-change/convergence.js.map +1 -0
- package/src/infrastructure-change/drift.d.ts +13 -0
- package/src/infrastructure-change/drift.js +112 -0
- package/src/infrastructure-change/drift.js.map +1 -0
- package/src/infrastructure-change/index.d.ts +7 -0
- package/src/infrastructure-change/index.js +11 -0
- package/src/infrastructure-change/index.js.map +1 -0
- package/src/infrastructure-change/model.d.ts +253 -0
- package/src/infrastructure-change/model.js +28 -0
- package/src/infrastructure-change/model.js.map +1 -0
- package/src/infrastructure-change/normalize.d.ts +12 -0
- package/src/infrastructure-change/normalize.js +245 -0
- package/src/infrastructure-change/normalize.js.map +1 -0
- package/src/infrastructure-change/plan.d.ts +40 -0
- package/src/infrastructure-change/plan.js +361 -0
- package/src/infrastructure-change/plan.js.map +1 -0
- package/src/infrastructure-change/risk.d.ts +7 -0
- package/src/infrastructure-change/risk.js +269 -0
- package/src/infrastructure-change/risk.js.map +1 -0
- package/src/infrastructure-change/summary.d.ts +20 -0
- package/src/infrastructure-change/summary.js +130 -0
- package/src/infrastructure-change/summary.js.map +1 -0
- package/src/local-dev/context-discovery.d.ts +2 -0
- package/src/local-dev/context-discovery.js +59 -0
- package/src/local-dev/context-discovery.js.map +1 -0
- package/src/local-dev/contract-validation.d.ts +15 -0
- package/src/local-dev/contract-validation.js +84 -0
- package/src/local-dev/contract-validation.js.map +1 -0
- package/src/local-dev/contracts.d.ts +10 -1
- package/src/local-dev/contracts.js +57 -5
- package/src/local-dev/contracts.js.map +1 -1
- package/src/local-dev/control-contract.d.ts +67 -0
- package/src/local-dev/control-contract.js +180 -0
- package/src/local-dev/control-contract.js.map +1 -0
- package/src/local-dev/dev-command-core.d.ts +60 -0
- package/src/local-dev/dev-command-core.js +89 -0
- package/src/local-dev/dev-command-core.js.map +1 -0
- package/src/local-dev/effects.d.ts +16 -0
- package/src/local-dev/effects.js +63 -0
- package/src/local-dev/effects.js.map +1 -0
- package/src/local-dev/environment-inspector.d.ts +125 -0
- package/src/local-dev/environment-inspector.js +687 -0
- package/src/local-dev/environment-inspector.js.map +1 -0
- package/src/local-dev/environment-state.d.ts +113 -0
- package/src/local-dev/environment-state.js +463 -0
- package/src/local-dev/environment-state.js.map +1 -0
- package/src/local-dev/errors.d.ts +6 -0
- package/src/local-dev/errors.js +41 -0
- package/src/local-dev/errors.js.map +1 -0
- package/src/local-dev/fleet-client.d.ts +33 -0
- package/src/local-dev/fleet-client.js +156 -0
- package/src/local-dev/fleet-client.js.map +1 -0
- package/src/local-dev/fleet-configuration.d.ts +13 -0
- package/src/local-dev/fleet-configuration.js +71 -0
- package/src/local-dev/fleet-configuration.js.map +1 -0
- package/src/local-dev/fleet-inventory.d.ts +56 -0
- package/src/local-dev/fleet-inventory.js +469 -0
- package/src/local-dev/fleet-inventory.js.map +1 -0
- package/src/local-dev/fleet-ipc.d.ts +28 -0
- package/src/local-dev/fleet-ipc.js +267 -0
- package/src/local-dev/fleet-ipc.js.map +1 -0
- package/src/local-dev/fleet-launcher.d.ts +53 -0
- package/src/local-dev/fleet-launcher.js +379 -0
- package/src/local-dev/fleet-launcher.js.map +1 -0
- package/src/local-dev/fleet-lock.d.ts +41 -0
- package/src/local-dev/fleet-lock.js +135 -0
- package/src/local-dev/fleet-lock.js.map +1 -0
- package/src/local-dev/fleet-logs.d.ts +66 -0
- package/src/local-dev/fleet-logs.js +542 -0
- package/src/local-dev/fleet-logs.js.map +1 -0
- package/src/local-dev/fleet-process.d.ts +50 -0
- package/src/local-dev/fleet-process.js +289 -0
- package/src/local-dev/fleet-process.js.map +1 -0
- package/src/local-dev/fleet-runtime.d.ts +22 -0
- package/src/local-dev/fleet-runtime.js +368 -0
- package/src/local-dev/fleet-runtime.js.map +1 -0
- package/src/local-dev/fleet-session.d.ts +70 -0
- package/src/local-dev/fleet-session.js +301 -0
- package/src/local-dev/fleet-session.js.map +1 -0
- package/src/local-dev/fleet-slice-runner-daemon.d.ts +1 -0
- package/src/local-dev/fleet-slice-runner-daemon.js +21 -0
- package/src/local-dev/fleet-slice-runner-daemon.js.map +1 -0
- package/src/local-dev/fleet-startup.d.ts +22 -0
- package/src/local-dev/fleet-startup.js +114 -0
- package/src/local-dev/fleet-startup.js.map +1 -0
- package/src/local-dev/fleet-state.d.ts +62 -0
- package/src/local-dev/fleet-state.js +297 -0
- package/src/local-dev/fleet-state.js.map +1 -0
- package/src/local-dev/fleet-supervisor-daemon.d.ts +1 -0
- package/src/local-dev/fleet-supervisor-daemon.js +41 -0
- package/src/local-dev/fleet-supervisor-daemon.js.map +1 -0
- package/src/local-dev/fleet-supervisor.d.ts +52 -0
- package/src/local-dev/fleet-supervisor.js +384 -0
- package/src/local-dev/fleet-supervisor.js.map +1 -0
- package/src/local-dev/gateway.js +1 -1
- package/src/local-dev/gateway.js.map +1 -1
- package/src/local-dev/identity.js +4 -6
- package/src/local-dev/identity.js.map +1 -1
- package/src/local-dev/index.d.ts +1 -0
- package/src/local-dev/index.js +1 -0
- package/src/local-dev/index.js.map +1 -1
- package/src/local-dev/local-context.d.ts +62 -0
- package/src/local-dev/local-context.js +299 -0
- package/src/local-dev/local-context.js.map +1 -0
- package/src/local-dev/nx-workspace.d.ts +45 -0
- package/src/local-dev/nx-workspace.js +228 -0
- package/src/local-dev/nx-workspace.js.map +1 -0
- package/src/local-dev/personal-secret-ledger.d.ts +75 -0
- package/src/local-dev/personal-secret-ledger.js +391 -0
- package/src/local-dev/personal-secret-ledger.js.map +1 -0
- package/src/local-dev/personal-stage.d.ts +18 -0
- package/src/local-dev/personal-stage.js +129 -0
- package/src/local-dev/personal-stage.js.map +1 -0
- package/src/local-dev/private-state.d.ts +17 -0
- package/src/local-dev/private-state.js +254 -0
- package/src/local-dev/private-state.js.map +1 -0
- package/src/local-dev/process-identity.d.ts +9 -0
- package/src/local-dev/process-identity.js +79 -0
- package/src/local-dev/process-identity.js.map +1 -0
- package/src/local-dev/runtime-paths.d.ts +17 -0
- package/src/local-dev/runtime-paths.js +33 -0
- package/src/local-dev/runtime-paths.js.map +1 -0
- package/src/local-dev/secret-slice-claim.d.ts +17 -0
- package/src/local-dev/secret-slice-claim.js +75 -0
- package/src/local-dev/secret-slice-claim.js.map +1 -0
- package/src/local-dev/slice-claim.d.ts +36 -0
- package/src/local-dev/slice-claim.js +199 -0
- package/src/local-dev/slice-claim.js.map +1 -0
- package/src/local-dev/slice-runner.d.ts +121 -0
- package/src/local-dev/slice-runner.js +715 -0
- package/src/local-dev/slice-runner.js.map +1 -0
- package/src/local-dev/tls.js +51 -17
- package/src/local-dev/tls.js.map +1 -1
- package/src/ownership/composition.d.ts +5 -2
- package/src/ownership/composition.js +26 -3
- package/src/ownership/composition.js.map +1 -1
- package/src/ownership/hash.d.ts +1 -1
- package/src/ownership/hash.js +3 -1
- package/src/ownership/hash.js.map +1 -1
- package/src/ownership/record.d.ts +32 -1
- package/src/ownership/record.js +139 -2
- package/src/ownership/record.js.map +1 -1
- package/src/performance/cost-collection.d.ts +225 -0
- package/src/performance/cost-collection.js +825 -0
- package/src/performance/cost-collection.js.map +1 -0
- package/src/performance/cost-controls.d.ts +131 -0
- package/src/performance/cost-controls.js +336 -0
- package/src/performance/cost-controls.js.map +1 -0
- package/src/performance/evidence.d.ts +140 -0
- package/src/performance/evidence.js +599 -0
- package/src/performance/evidence.js.map +1 -0
- package/src/performance/index.d.ts +10 -0
- package/src/performance/index.js +14 -0
- package/src/performance/index.js.map +1 -0
- package/src/performance/load-safety.d.ts +84 -0
- package/src/performance/load-safety.js +346 -0
- package/src/performance/load-safety.js.map +1 -0
- package/src/performance/model.d.ts +129 -0
- package/src/performance/model.js +452 -0
- package/src/performance/model.js.map +1 -0
- package/src/performance/pr-artifact-budget.d.ts +42 -0
- package/src/performance/pr-artifact-budget.js +151 -0
- package/src/performance/pr-artifact-budget.js.map +1 -0
- package/src/performance/runner.d.ts +75 -0
- package/src/performance/runner.js +227 -0
- package/src/performance/runner.js.map +1 -0
- package/src/performance/scenario-endpoint.d.ts +1 -0
- package/src/performance/scenario-endpoint.js +5 -0
- package/src/performance/scenario-endpoint.js.map +1 -0
- package/src/performance/scenario.d.ts +193 -0
- package/src/performance/scenario.js +736 -0
- package/src/performance/scenario.js.map +1 -0
- package/src/performance/test-fixtures.d.ts +7 -0
- package/src/performance/test-fixtures.js +169 -0
- package/src/performance/test-fixtures.js.map +1 -0
- package/src/performance/unit-cost.d.ts +105 -0
- package/src/performance/unit-cost.js +364 -0
- package/src/performance/unit-cost.js.map +1 -0
- package/src/release/index.d.ts +4 -0
- package/src/release/index.js +8 -0
- package/src/release/index.js.map +1 -0
- package/src/release/lifecycle.d.ts +132 -0
- package/src/release/lifecycle.js +411 -0
- package/src/release/lifecycle.js.map +1 -0
- package/src/release/manifest.d.ts +148 -0
- package/src/release/manifest.js +503 -0
- package/src/release/manifest.js.map +1 -0
- package/src/release/rollout.d.ts +170 -0
- package/src/release/rollout.js +578 -0
- package/src/release/rollout.js.map +1 -0
- package/src/release/source-authority.d.ts +19 -0
- package/src/release/source-authority.js +195 -0
- package/src/release/source-authority.js.map +1 -0
- package/src/repository-policy/deployment-plan.d.ts +2 -1
- package/src/repository-policy/deployment-plan.js +2 -0
- package/src/repository-policy/deployment-plan.js.map +1 -1
- package/src/repository-policy/policy.d.ts +1 -1
- package/src/repository-policy/policy.js +29 -25
- package/src/repository-policy/policy.js.map +1 -1
- package/src/schemas/aggregate-count-evidence-v1.json +135 -0
- package/src/schemas/api-contract-baseline-v1.json +674 -0
- package/src/schemas/api-contract-compatibility-report-v1.json +126 -0
- package/src/schemas/aws-billing-actual-evidence-v1.json +407 -0
- package/src/schemas/blueprint-v1.json +18 -1
- package/src/schemas/data-lifecycle-policy-v1.json +517 -0
- package/src/schemas/generated-ownership-v2.json +22 -0
- package/src/schemas/performance-policy-v1.json +335 -0
- package/src/schemas/repository-policy-v1.json +1 -0
- package/src/schemas/testing-evidence-quarantine-v1.json +168 -0
- package/src/schemas/testing-evidence-result-v1.json +319 -0
- package/src/secrets/adapters.d.ts +49 -0
- package/src/secrets/adapters.js +184 -0
- package/src/secrets/adapters.js.map +1 -0
- package/src/secrets/aws-control-plane.d.ts +20 -0
- package/src/secrets/aws-control-plane.js +255 -0
- package/src/secrets/aws-control-plane.js.map +1 -0
- package/src/secrets/declaration-verification.d.ts +11 -0
- package/src/secrets/declaration-verification.js +68 -0
- package/src/secrets/declaration-verification.js.map +1 -0
- package/src/secrets/guardrails.d.ts +26 -0
- package/src/secrets/guardrails.js +328 -0
- package/src/secrets/guardrails.js.map +1 -0
- package/src/secrets/index.d.ts +12 -0
- package/src/secrets/index.js +16 -0
- package/src/secrets/index.js.map +1 -0
- package/src/secrets/metadata.d.ts +48 -0
- package/src/secrets/metadata.js +171 -0
- package/src/secrets/metadata.js.map +1 -0
- package/src/secrets/model.d.ts +49 -0
- package/src/secrets/model.js +125 -0
- package/src/secrets/model.js.map +1 -0
- package/src/secrets/operator.d.ts +101 -0
- package/src/secrets/operator.js +229 -0
- package/src/secrets/operator.js.map +1 -0
- package/src/secrets/permissions.d.ts +34 -0
- package/src/secrets/permissions.js +86 -0
- package/src/secrets/permissions.js.map +1 -0
- package/src/secrets/personal-command.d.ts +83 -0
- package/src/secrets/personal-command.js +197 -0
- package/src/secrets/personal-command.js.map +1 -0
- package/src/secrets/personal-ledger.d.ts +21 -0
- package/src/secrets/personal-ledger.js +135 -0
- package/src/secrets/personal-ledger.js.map +1 -0
- package/src/secrets/registry.d.ts +9 -0
- package/src/secrets/registry.js +86 -0
- package/src/secrets/registry.js.map +1 -0
- package/src/secrets/verification.d.ts +18 -0
- package/src/secrets/verification.js +139 -0
- package/src/secrets/verification.js.map +1 -0
- package/src/secrets/workload-access.d.ts +46 -0
- package/src/secrets/workload-access.js +163 -0
- package/src/secrets/workload-access.js.map +1 -0
- package/src/supply-chain/action-pins.d.ts +26 -0
- package/src/supply-chain/action-pins.js +208 -0
- package/src/supply-chain/action-pins.js.map +1 -0
- package/src/supply-chain/blueprint-trust-git.d.ts +130 -0
- package/src/supply-chain/blueprint-trust-git.js +1581 -0
- package/src/supply-chain/blueprint-trust-git.js.map +1 -0
- package/src/supply-chain/blueprint-trust-process.d.ts +4 -0
- package/src/supply-chain/blueprint-trust-process.js +88 -0
- package/src/supply-chain/blueprint-trust-process.js.map +1 -0
- package/src/supply-chain/blueprint-trust.d.ts +354 -0
- package/src/supply-chain/blueprint-trust.js +1558 -0
- package/src/supply-chain/blueprint-trust.js.map +1 -0
- package/src/supply-chain/blueprint-verification-authority.d.ts +62 -0
- package/src/supply-chain/blueprint-verification-authority.js +588 -0
- package/src/supply-chain/blueprint-verification-authority.js.map +1 -0
- package/src/supply-chain/blueprint-verification-execution.d.ts +68 -0
- package/src/supply-chain/blueprint-verification-execution.js +624 -0
- package/src/supply-chain/blueprint-verification-execution.js.map +1 -0
- package/src/supply-chain/build-output.d.ts +35 -0
- package/src/supply-chain/build-output.js +398 -0
- package/src/supply-chain/build-output.js.map +1 -0
- package/src/supply-chain/common.d.ts +21 -0
- package/src/supply-chain/common.js +107 -0
- package/src/supply-chain/common.js.map +1 -0
- package/src/supply-chain/container-artifact-contract.d.ts +23 -0
- package/src/supply-chain/container-artifact-contract.js +208 -0
- package/src/supply-chain/container-artifact-contract.js.map +1 -0
- package/src/supply-chain/container-release.d.ts +119 -0
- package/src/supply-chain/container-release.js +496 -0
- package/src/supply-chain/container-release.js.map +1 -0
- package/src/supply-chain/ecr-applicability.d.ts +19 -0
- package/src/supply-chain/ecr-applicability.js +103 -0
- package/src/supply-chain/ecr-applicability.js.map +1 -0
- package/src/supply-chain/ecr-scanning.d.ts +83 -0
- package/src/supply-chain/ecr-scanning.js +321 -0
- package/src/supply-chain/ecr-scanning.js.map +1 -0
- package/src/supply-chain/ecs-deployed-image.d.ts +85 -0
- package/src/supply-chain/ecs-deployed-image.js +300 -0
- package/src/supply-chain/ecs-deployed-image.js.map +1 -0
- package/src/supply-chain/errors.d.ts +6 -0
- package/src/supply-chain/errors.js +15 -0
- package/src/supply-chain/errors.js.map +1 -0
- package/src/supply-chain/generated-blueprint-trust-command.d.ts +4 -0
- package/src/supply-chain/generated-blueprint-trust-command.js +1362 -0
- package/src/supply-chain/generated-blueprint-trust-command.js.map +1 -0
- package/src/supply-chain/generated-command.d.ts +1 -0
- package/src/supply-chain/generated-command.js +687 -0
- package/src/supply-chain/generated-command.js.map +1 -0
- package/src/supply-chain/generated-container-release-command.d.ts +16 -0
- package/src/supply-chain/generated-container-release-command.js +2087 -0
- package/src/supply-chain/generated-container-release-command.js.map +1 -0
- package/src/supply-chain/generated-ecr-collector-command.d.ts +21 -0
- package/src/supply-chain/generated-ecr-collector-command.js +1338 -0
- package/src/supply-chain/generated-ecr-collector-command.js.map +1 -0
- package/src/supply-chain/generated-files.d.ts +13 -0
- package/src/supply-chain/generated-files.js +401 -0
- package/src/supply-chain/generated-files.js.map +1 -0
- package/src/supply-chain/generated-scanner-command.d.ts +1 -0
- package/src/supply-chain/generated-scanner-command.js +718 -0
- package/src/supply-chain/generated-scanner-command.js.map +1 -0
- package/src/supply-chain/index.d.ts +28 -0
- package/src/supply-chain/index.js +35 -0
- package/src/supply-chain/index.js.map +1 -0
- package/src/supply-chain/inventory.d.ts +79 -0
- package/src/supply-chain/inventory.js +717 -0
- package/src/supply-chain/inventory.js.map +1 -0
- package/src/supply-chain/license-expression.d.ts +7 -0
- package/src/supply-chain/license-expression.js +128 -0
- package/src/supply-chain/license-expression.js.map +1 -0
- package/src/supply-chain/pnpm-toolchain-authority.d.ts +31 -0
- package/src/supply-chain/pnpm-toolchain-authority.js +316 -0
- package/src/supply-chain/pnpm-toolchain-authority.js.map +1 -0
- package/src/supply-chain/policy.d.ts +105 -0
- package/src/supply-chain/policy.js +301 -0
- package/src/supply-chain/policy.js.map +1 -0
- package/src/supply-chain/publication.d.ts +48 -0
- package/src/supply-chain/publication.js +85 -0
- package/src/supply-chain/publication.js.map +1 -0
- package/src/supply-chain/sbom.d.ts +228 -0
- package/src/supply-chain/sbom.js +826 -0
- package/src/supply-chain/sbom.js.map +1 -0
- package/src/supply-chain/scanner.d.ts +77 -0
- package/src/supply-chain/scanner.js +502 -0
- package/src/supply-chain/scanner.js.map +1 -0
- package/src/supply-chain/vendored-source.d.ts +95 -0
- package/src/supply-chain/vendored-source.js +315 -0
- package/src/supply-chain/vendored-source.js.map +1 -0
- package/src/testing-evidence/fixture-scope.d.ts +52 -0
- package/src/testing-evidence/fixture-scope.js +140 -0
- package/src/testing-evidence/fixture-scope.js.map +1 -0
- package/src/testing-evidence/index.d.ts +5 -0
- package/src/testing-evidence/index.js +9 -0
- package/src/testing-evidence/index.js.map +1 -0
- package/src/testing-evidence/quarantine.d.ts +48 -0
- package/src/testing-evidence/quarantine.js +253 -0
- package/src/testing-evidence/quarantine.js.map +1 -0
- package/src/testing-evidence/result.d.ts +108 -0
- package/src/testing-evidence/result.js +571 -0
- package/src/testing-evidence/result.js.map +1 -0
- package/src/testing-evidence/runner-adapter.d.ts +51 -0
- package/src/testing-evidence/runner-adapter.js +288 -0
- package/src/testing-evidence/runner-adapter.js.map +1 -0
- package/src/testing-evidence/sensitive-artifacts.d.ts +13 -0
- package/src/testing-evidence/sensitive-artifacts.js +93 -0
- package/src/testing-evidence/sensitive-artifacts.js.map +1 -0
- package/src/work-markers/work-markers.js +4 -3
- package/src/work-markers/work-markers.js.map +1 -1
- package/src/workload-roles/account-baseline.d.ts +132 -0
- package/src/workload-roles/account-baseline.js +743 -0
- package/src/workload-roles/account-baseline.js.map +1 -0
- package/src/workload-roles/authority.d.ts +38 -0
- package/src/workload-roles/authority.js +156 -0
- package/src/workload-roles/authority.js.map +1 -0
- package/src/workload-roles/aws-adapter.d.ts +99 -0
- package/src/workload-roles/aws-adapter.js +416 -0
- package/src/workload-roles/aws-adapter.js.map +1 -0
- package/src/workload-roles/aws-internal-handler.d.ts +27 -0
- package/src/workload-roles/aws-internal-handler.js +58 -0
- package/src/workload-roles/aws-internal-handler.js.map +1 -0
- package/src/workload-roles/aws-s3-state.d.ts +52 -0
- package/src/workload-roles/aws-s3-state.js +164 -0
- package/src/workload-roles/aws-s3-state.js.map +1 -0
- package/src/workload-roles/aws-sdk-control-plane.d.ts +12 -0
- package/src/workload-roles/aws-sdk-control-plane.js +291 -0
- package/src/workload-roles/aws-sdk-control-plane.js.map +1 -0
- package/src/workload-roles/boundary.d.ts +33 -0
- package/src/workload-roles/boundary.js +130 -0
- package/src/workload-roles/boundary.js.map +1 -0
- package/src/workload-roles/convergence.d.ts +66 -0
- package/src/workload-roles/convergence.js +186 -0
- package/src/workload-roles/convergence.js.map +1 -0
- package/src/workload-roles/effective-policy.d.ts +51 -0
- package/src/workload-roles/effective-policy.js +183 -0
- package/src/workload-roles/effective-policy.js.map +1 -0
- package/src/workload-roles/handler.d.ts +43 -0
- package/src/workload-roles/handler.js +130 -0
- package/src/workload-roles/handler.js.map +1 -0
- package/src/workload-roles/history.d.ts +47 -0
- package/src/workload-roles/history.js +324 -0
- package/src/workload-roles/history.js.map +1 -0
- package/src/workload-roles/index.d.ts +17 -0
- package/src/workload-roles/index.js +21 -0
- package/src/workload-roles/index.js.map +1 -0
- package/src/workload-roles/injection.d.ts +119 -0
- package/src/workload-roles/injection.js +495 -0
- package/src/workload-roles/injection.js.map +1 -0
- package/src/workload-roles/manifest.d.ts +54 -0
- package/src/workload-roles/manifest.js +343 -0
- package/src/workload-roles/manifest.js.map +1 -0
- package/src/workload-roles/provisioner.d.ts +70 -0
- package/src/workload-roles/provisioner.js +231 -0
- package/src/workload-roles/provisioner.js.map +1 -0
- package/src/workload-roles/registration.d.ts +101 -0
- package/src/workload-roles/registration.js +457 -0
- package/src/workload-roles/registration.js.map +1 -0
- package/src/workload-roles/stage-boundary.d.ts +31 -0
- package/src/workload-roles/stage-boundary.js +208 -0
- package/src/workload-roles/stage-boundary.js.map +1 -0
- package/src/workload-roles/standard-slice.d.ts +54 -0
- package/src/workload-roles/standard-slice.js +252 -0
- package/src/workload-roles/standard-slice.js.map +1 -0
- package/migrations/standard-pre-v1-to-v1.md +0 -11
- package/src/foundation/aurora-logical-database.d.ts +0 -76
- package/src/foundation/aurora-logical-database.js +0 -419
- package/src/foundation/aurora-logical-database.js.map +0 -1
|
@@ -0,0 +1,643 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_CONTRACT_COMPATIBILITY_FINDING_CODES = exports.API_CONTRACT_COMPATIBILITY_CLASSIFICATIONS = exports.API_CONTRACT_COMPATIBILITY_REPORT_KIND = exports.API_CONTRACT_COMPATIBILITY_REPORT_SCHEMA_VERSION = void 0;
|
|
4
|
+
exports.compareApiContracts = compareApiContracts;
|
|
5
|
+
const model_js_1 = require("./model.js");
|
|
6
|
+
exports.API_CONTRACT_COMPATIBILITY_REPORT_SCHEMA_VERSION = 1;
|
|
7
|
+
exports.API_CONTRACT_COMPATIBILITY_REPORT_KIND = 'api-contract-compatibility-report';
|
|
8
|
+
exports.API_CONTRACT_COMPATIBILITY_CLASSIFICATIONS = [
|
|
9
|
+
'compatible',
|
|
10
|
+
'conditionally-compatible',
|
|
11
|
+
'breaking',
|
|
12
|
+
];
|
|
13
|
+
exports.API_CONTRACT_COMPATIBILITY_FINDING_CODES = [
|
|
14
|
+
'contract-slice-changed',
|
|
15
|
+
'contract-title-changed',
|
|
16
|
+
'contract-version-advanced',
|
|
17
|
+
'contract-version-regressed',
|
|
18
|
+
'operation-added',
|
|
19
|
+
'operation-removed',
|
|
20
|
+
'http-method-changed',
|
|
21
|
+
'route-changed',
|
|
22
|
+
'authentication-changed',
|
|
23
|
+
'authorization-actions-changed',
|
|
24
|
+
'success-status-changed',
|
|
25
|
+
'feature-changed',
|
|
26
|
+
'summary-changed',
|
|
27
|
+
'operation-lifecycle-changed',
|
|
28
|
+
'problem-added',
|
|
29
|
+
'problem-removed',
|
|
30
|
+
'problem-changed',
|
|
31
|
+
'idempotency-added',
|
|
32
|
+
'idempotency-removed',
|
|
33
|
+
'idempotency-changed',
|
|
34
|
+
'pagination-added',
|
|
35
|
+
'pagination-removed',
|
|
36
|
+
'pagination-changed',
|
|
37
|
+
'conditional-write-added',
|
|
38
|
+
'conditional-write-removed',
|
|
39
|
+
'conditional-write-changed',
|
|
40
|
+
'request-location-added',
|
|
41
|
+
'request-location-removed',
|
|
42
|
+
'request-body-limit-changed',
|
|
43
|
+
'request-property-added',
|
|
44
|
+
'request-property-removed',
|
|
45
|
+
'request-required-added',
|
|
46
|
+
'request-required-removed',
|
|
47
|
+
'response-property-added',
|
|
48
|
+
'response-property-removed',
|
|
49
|
+
'response-required-added',
|
|
50
|
+
'response-required-removed',
|
|
51
|
+
'schema-type-widened',
|
|
52
|
+
'schema-type-narrowed',
|
|
53
|
+
'schema-type-changed',
|
|
54
|
+
'schema-nullability-changed',
|
|
55
|
+
'schema-enum-expanded',
|
|
56
|
+
'schema-enum-narrowed',
|
|
57
|
+
'schema-constraint-widened',
|
|
58
|
+
'schema-constraint-narrowed',
|
|
59
|
+
'schema-format-changed',
|
|
60
|
+
'schema-additional-properties-changed',
|
|
61
|
+
'schema-composition-changed',
|
|
62
|
+
'schema-const-changed',
|
|
63
|
+
'schema-description-changed',
|
|
64
|
+
'schema-review-required',
|
|
65
|
+
];
|
|
66
|
+
const CLASSIFICATION_WEIGHT = {
|
|
67
|
+
compatible: 0,
|
|
68
|
+
'conditionally-compatible': 1,
|
|
69
|
+
breaking: 2,
|
|
70
|
+
};
|
|
71
|
+
function compareStrings(left, right) {
|
|
72
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
73
|
+
}
|
|
74
|
+
function pointerToken(value) {
|
|
75
|
+
return value.replace(/~/g, '~0').replace(/\//g, '~1');
|
|
76
|
+
}
|
|
77
|
+
function jsonEqual(left, right) {
|
|
78
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
79
|
+
}
|
|
80
|
+
function semanticVersionCore(value) {
|
|
81
|
+
const match = /^(\d+)\.(\d+)\.(\d+)/.exec(value);
|
|
82
|
+
if (!match)
|
|
83
|
+
return [0n, 0n, 0n];
|
|
84
|
+
return [BigInt(match[1]), BigInt(match[2]), BigInt(match[3])];
|
|
85
|
+
}
|
|
86
|
+
function compareSemanticVersions(left, right) {
|
|
87
|
+
const leftCore = semanticVersionCore(left);
|
|
88
|
+
const rightCore = semanticVersionCore(right);
|
|
89
|
+
for (let index = 0; index < leftCore.length; index += 1) {
|
|
90
|
+
const leftPart = leftCore[index];
|
|
91
|
+
const rightPart = rightCore[index];
|
|
92
|
+
if (leftPart !== rightPart)
|
|
93
|
+
return leftPart < rightPart ? -1 : 1;
|
|
94
|
+
}
|
|
95
|
+
return compareStrings(left, right);
|
|
96
|
+
}
|
|
97
|
+
class FindingCollector {
|
|
98
|
+
findings = [];
|
|
99
|
+
add(classification, code, location, pointer, summary, operationId) {
|
|
100
|
+
this.findings.push({
|
|
101
|
+
classification,
|
|
102
|
+
code,
|
|
103
|
+
location,
|
|
104
|
+
...(operationId ? { operationId } : {}),
|
|
105
|
+
pointer,
|
|
106
|
+
summary,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
sorted() {
|
|
110
|
+
return this.findings.sort((left, right) => compareStrings(left.operationId ?? '', right.operationId ?? '') ||
|
|
111
|
+
compareStrings(left.pointer, right.pointer) ||
|
|
112
|
+
compareStrings(left.code, right.code) ||
|
|
113
|
+
compareStrings(left.location, right.location));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function schemaTypes(schema) {
|
|
117
|
+
return new Set(schema.type === undefined
|
|
118
|
+
? []
|
|
119
|
+
: Array.isArray(schema.type)
|
|
120
|
+
? schema.type
|
|
121
|
+
: [schema.type]);
|
|
122
|
+
}
|
|
123
|
+
function setRelation(baseline, candidate) {
|
|
124
|
+
const baselineOnly = [...baseline].some((value) => !candidate.has(value));
|
|
125
|
+
const candidateOnly = [...candidate].some((value) => !baseline.has(value));
|
|
126
|
+
if (!baselineOnly && !candidateOnly)
|
|
127
|
+
return 'equal';
|
|
128
|
+
if (!baselineOnly)
|
|
129
|
+
return 'expanded';
|
|
130
|
+
if (!candidateOnly)
|
|
131
|
+
return 'narrowed';
|
|
132
|
+
return 'changed';
|
|
133
|
+
}
|
|
134
|
+
function primitiveSet(values) {
|
|
135
|
+
return values
|
|
136
|
+
? new Set(values.map((value) => JSON.stringify(value)))
|
|
137
|
+
: undefined;
|
|
138
|
+
}
|
|
139
|
+
function nullableSchema(value) {
|
|
140
|
+
if (value.oneOf === undefined) {
|
|
141
|
+
return { inner: value, nullable: false };
|
|
142
|
+
}
|
|
143
|
+
if (value.oneOf.length !== 2)
|
|
144
|
+
return undefined;
|
|
145
|
+
const nullIndexes = value.oneOf.flatMap((entry, index) => entry.type === 'null' &&
|
|
146
|
+
Object.keys(entry).every((name) => ['$schema', 'description', 'type'].includes(name))
|
|
147
|
+
? [index]
|
|
148
|
+
: []);
|
|
149
|
+
if (nullIndexes.length !== 1)
|
|
150
|
+
return undefined;
|
|
151
|
+
const innerIndex = nullIndexes[0] === 0 ? 1 : 0;
|
|
152
|
+
return {
|
|
153
|
+
inner: value.oneOf[innerIndex],
|
|
154
|
+
innerIndex,
|
|
155
|
+
nullable: true,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function compareBound(baseline, candidate, kind) {
|
|
159
|
+
if (baseline === candidate)
|
|
160
|
+
return 'equal';
|
|
161
|
+
if (baseline === undefined)
|
|
162
|
+
return 'narrowed';
|
|
163
|
+
if (candidate === undefined)
|
|
164
|
+
return 'widened';
|
|
165
|
+
if (kind === 'minimum') {
|
|
166
|
+
return candidate < baseline ? 'widened' : 'narrowed';
|
|
167
|
+
}
|
|
168
|
+
return candidate > baseline ? 'widened' : 'narrowed';
|
|
169
|
+
}
|
|
170
|
+
function addConstraintFinding(collector, direction, relation, pointer, operationId) {
|
|
171
|
+
const compatible = (direction === 'request' && relation === 'widened') ||
|
|
172
|
+
(direction === 'response' && relation === 'narrowed');
|
|
173
|
+
collector.add(compatible ? 'compatible' : 'breaking', relation === 'widened'
|
|
174
|
+
? 'schema-constraint-widened'
|
|
175
|
+
: 'schema-constraint-narrowed', 'candidate', pointer, `${direction} schema constraint ${relation}`, operationId);
|
|
176
|
+
}
|
|
177
|
+
function addDirectionalFinding(collector, direction, relation, code, pointer, summary, operationId) {
|
|
178
|
+
const compatible = (direction === 'request' && relation === 'widened') ||
|
|
179
|
+
(direction === 'response' && relation === 'narrowed');
|
|
180
|
+
collector.add(compatible ? 'compatible' : 'breaking', code, 'candidate', pointer, summary, operationId);
|
|
181
|
+
}
|
|
182
|
+
function addNullabilityFinding(collector, direction, candidateNullable, pointer, operationId) {
|
|
183
|
+
collector.add(direction === 'request' && !candidateNullable
|
|
184
|
+
? 'breaking'
|
|
185
|
+
: 'conditionally-compatible', 'schema-nullability-changed', 'candidate', pointer, `${direction} schema nullability ${candidateNullable ? 'widened' : 'narrowed'}`, operationId);
|
|
186
|
+
}
|
|
187
|
+
function addEnumFinding(collector, direction, expanded, pointer, summary, operationId) {
|
|
188
|
+
const classification = direction === 'response' && expanded
|
|
189
|
+
? 'conditionally-compatible'
|
|
190
|
+
: (direction === 'request' && expanded) ||
|
|
191
|
+
(direction === 'response' && !expanded)
|
|
192
|
+
? 'compatible'
|
|
193
|
+
: 'breaking';
|
|
194
|
+
collector.add(classification, expanded ? 'schema-enum-expanded' : 'schema-enum-narrowed', 'candidate', pointer, summary, operationId);
|
|
195
|
+
}
|
|
196
|
+
function additionalPropertiesRelation(baseline, candidate) {
|
|
197
|
+
if (baseline === false)
|
|
198
|
+
return 'widened';
|
|
199
|
+
if (candidate === false)
|
|
200
|
+
return 'narrowed';
|
|
201
|
+
if (baseline === true || baseline === undefined)
|
|
202
|
+
return 'narrowed';
|
|
203
|
+
if (candidate === true || candidate === undefined)
|
|
204
|
+
return 'widened';
|
|
205
|
+
return 'changed';
|
|
206
|
+
}
|
|
207
|
+
function compareSchema(baseline, candidate, direction, baselinePointer, candidatePointer, operationId, collector) {
|
|
208
|
+
if (baseline.description !== candidate.description) {
|
|
209
|
+
collector.add('compatible', 'schema-description-changed', 'candidate', `${candidatePointer}/description`, `${direction} schema description changed`, operationId);
|
|
210
|
+
}
|
|
211
|
+
if (!jsonEqual(baseline.const, candidate.const)) {
|
|
212
|
+
const baselineHasConst = baseline.const !== undefined;
|
|
213
|
+
const candidateHasConst = candidate.const !== undefined;
|
|
214
|
+
const compatible = baselineHasConst !== candidateHasConst &&
|
|
215
|
+
((direction === 'request' && !candidateHasConst) ||
|
|
216
|
+
(direction === 'response' && candidateHasConst));
|
|
217
|
+
collector.add(compatible ? 'compatible' : 'breaking', 'schema-const-changed', 'candidate', `${candidatePointer}/const`, `${direction} schema constant changed`, operationId);
|
|
218
|
+
}
|
|
219
|
+
if (baseline.oneOf !== undefined || candidate.oneOf !== undefined) {
|
|
220
|
+
const baselineNullable = nullableSchema(baseline);
|
|
221
|
+
const candidateNullable = nullableSchema(candidate);
|
|
222
|
+
if (baselineNullable && candidateNullable) {
|
|
223
|
+
if (baselineNullable.nullable !== candidateNullable.nullable) {
|
|
224
|
+
addNullabilityFinding(collector, direction, candidateNullable.nullable, candidateNullable.nullable
|
|
225
|
+
? `${candidatePointer}/oneOf`
|
|
226
|
+
: `${candidatePointer}/type`, operationId);
|
|
227
|
+
}
|
|
228
|
+
if (baselineNullable.nullable || candidateNullable.nullable) {
|
|
229
|
+
compareSchema(baselineNullable.inner, candidateNullable.inner, direction, baselineNullable.nullable
|
|
230
|
+
? `${baselinePointer}/oneOf/${baselineNullable.innerIndex}`
|
|
231
|
+
: baselinePointer, candidateNullable.nullable
|
|
232
|
+
? `${candidatePointer}/oneOf/${candidateNullable.innerIndex}`
|
|
233
|
+
: candidatePointer, operationId, collector);
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
if (!jsonEqual(baseline.oneOf, candidate.oneOf)) {
|
|
238
|
+
collector.add('breaking', 'schema-composition-changed', 'candidate', `${candidatePointer}/oneOf`, `${direction} schema composition changed without a provable subset relation`, operationId);
|
|
239
|
+
}
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
const baselineTypes = schemaTypes(baseline);
|
|
243
|
+
const candidateTypes = schemaTypes(candidate);
|
|
244
|
+
const baselineNullable = baselineTypes.has('null');
|
|
245
|
+
const candidateNullable = candidateTypes.has('null');
|
|
246
|
+
if (baselineNullable !== candidateNullable) {
|
|
247
|
+
addNullabilityFinding(collector, direction, candidateNullable, `${candidatePointer}/type`, operationId);
|
|
248
|
+
}
|
|
249
|
+
const typesWithoutNull = (values) => new Set([...values].filter((value) => value !== 'null'));
|
|
250
|
+
const typeRelation = setRelation(typesWithoutNull(baselineTypes), typesWithoutNull(candidateTypes));
|
|
251
|
+
if (typeRelation !== 'equal') {
|
|
252
|
+
const relation = typeRelation === 'expanded'
|
|
253
|
+
? 'widened'
|
|
254
|
+
: typeRelation === 'narrowed'
|
|
255
|
+
? 'narrowed'
|
|
256
|
+
: 'changed';
|
|
257
|
+
const compatible = relation !== 'changed' &&
|
|
258
|
+
((direction === 'request' && relation === 'widened') ||
|
|
259
|
+
(direction === 'response' && relation === 'narrowed'));
|
|
260
|
+
collector.add(compatible ? 'compatible' : 'breaking', relation === 'widened'
|
|
261
|
+
? 'schema-type-widened'
|
|
262
|
+
: relation === 'narrowed'
|
|
263
|
+
? 'schema-type-narrowed'
|
|
264
|
+
: 'schema-type-changed', 'candidate', `${candidatePointer}/type`, `${direction} schema type ${relation}`, operationId);
|
|
265
|
+
}
|
|
266
|
+
const baselineEnum = primitiveSet(baseline.enum);
|
|
267
|
+
const candidateEnum = primitiveSet(candidate.enum);
|
|
268
|
+
if (baselineEnum && candidateEnum) {
|
|
269
|
+
const enumRelation = setRelation(baselineEnum, candidateEnum);
|
|
270
|
+
if (enumRelation !== 'equal') {
|
|
271
|
+
if (enumRelation === 'changed') {
|
|
272
|
+
collector.add('breaking', 'schema-review-required', 'candidate', `${candidatePointer}/enum`, `${direction} schema replaced enum values`, operationId);
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
const expanded = enumRelation === 'expanded';
|
|
276
|
+
addEnumFinding(collector, direction, expanded, `${candidatePointer}/enum`, `${direction} schema enum ${expanded ? 'expanded' : 'narrowed'}`, operationId);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
else if (baselineEnum || candidateEnum) {
|
|
281
|
+
const expanded = baselineEnum !== undefined;
|
|
282
|
+
addEnumFinding(collector, direction, expanded, `${candidatePointer}/enum`, `${direction} schema enum ${expanded ? 'removed' : 'added'}`, operationId);
|
|
283
|
+
}
|
|
284
|
+
for (const member of ['minimum', 'minLength', 'minItems']) {
|
|
285
|
+
const relation = compareBound(baseline[member], candidate[member], 'minimum');
|
|
286
|
+
if (relation !== 'equal') {
|
|
287
|
+
addConstraintFinding(collector, direction, relation, `${candidatePointer}/${member}`, operationId);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
for (const member of ['maximum', 'maxLength', 'maxItems']) {
|
|
291
|
+
const relation = compareBound(baseline[member], candidate[member], 'maximum');
|
|
292
|
+
if (relation !== 'equal') {
|
|
293
|
+
addConstraintFinding(collector, direction, relation, `${candidatePointer}/${member}`, operationId);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
for (const [member, code] of [['format', 'schema-format-changed']]) {
|
|
297
|
+
if (baseline[member] !== candidate[member]) {
|
|
298
|
+
if (baseline[member] === undefined || candidate[member] === undefined) {
|
|
299
|
+
const relation = candidate[member] === undefined ? 'widened' : 'narrowed';
|
|
300
|
+
addDirectionalFinding(collector, direction, relation, code, `${candidatePointer}/${member}`, `${direction} schema ${member} ${relation}`, operationId);
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
collector.add('breaking', code, 'candidate', `${candidatePointer}/${member}`, `${direction} schema ${member} changed without a provable subset relation`, operationId);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if (!jsonEqual(baseline.additionalProperties, candidate.additionalProperties)) {
|
|
308
|
+
const relation = additionalPropertiesRelation(baseline.additionalProperties, candidate.additionalProperties);
|
|
309
|
+
if (relation === 'changed') {
|
|
310
|
+
collector.add('breaking', 'schema-additional-properties-changed', 'candidate', `${candidatePointer}/additionalProperties`, `${direction} schema additional-property policy changed without a provable subset relation`, operationId);
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
addDirectionalFinding(collector, direction, relation, 'schema-additional-properties-changed', `${candidatePointer}/additionalProperties`, `${direction} schema additional-property policy ${relation}`, operationId);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
if (baseline.items && candidate.items) {
|
|
317
|
+
compareSchema(baseline.items, candidate.items, direction, `${baselinePointer}/items`, `${candidatePointer}/items`, operationId, collector);
|
|
318
|
+
}
|
|
319
|
+
else if (baseline.items || candidate.items) {
|
|
320
|
+
collector.add('breaking', 'schema-review-required', candidate.items ? 'candidate' : 'baseline', candidate.items
|
|
321
|
+
? `${candidatePointer}/items`
|
|
322
|
+
: `${baselinePointer}/items`, `${direction} array item schema was added or removed`, operationId);
|
|
323
|
+
}
|
|
324
|
+
compareSchemaProperties(baseline, candidate, direction, baselinePointer, candidatePointer, operationId, collector);
|
|
325
|
+
}
|
|
326
|
+
function compareSchemaProperties(baseline, candidate, direction, baselinePointer, candidatePointer, operationId, collector) {
|
|
327
|
+
const baselineProperties = baseline.properties ?? {};
|
|
328
|
+
const candidateProperties = candidate.properties ?? {};
|
|
329
|
+
const baselineRequired = new Set(baseline.required ?? []);
|
|
330
|
+
const candidateRequired = new Set(candidate.required ?? []);
|
|
331
|
+
const names = [
|
|
332
|
+
...new Set([
|
|
333
|
+
...Object.keys(baselineProperties),
|
|
334
|
+
...Object.keys(candidateProperties),
|
|
335
|
+
]),
|
|
336
|
+
].sort(compareStrings);
|
|
337
|
+
for (const name of names) {
|
|
338
|
+
const baselineProperty = baselineProperties[name];
|
|
339
|
+
const candidateProperty = candidateProperties[name];
|
|
340
|
+
const token = pointerToken(name);
|
|
341
|
+
if (!baselineProperty && candidateProperty) {
|
|
342
|
+
const required = candidateRequired.has(name);
|
|
343
|
+
collector.add(direction === 'request' && required ? 'breaking' : 'compatible', direction === 'request'
|
|
344
|
+
? 'request-property-added'
|
|
345
|
+
: 'response-property-added', 'candidate', `${candidatePointer}/properties/${token}`, `${direction} property ${name} was added${required ? ' as required' : ''}`, operationId);
|
|
346
|
+
continue;
|
|
347
|
+
}
|
|
348
|
+
if (baselineProperty && !candidateProperty) {
|
|
349
|
+
collector.add('breaking', direction === 'request'
|
|
350
|
+
? 'request-property-removed'
|
|
351
|
+
: 'response-property-removed', 'baseline', `${baselinePointer}/properties/${token}`, `${direction} property ${name} was removed`, operationId);
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
if (!baselineProperty || !candidateProperty)
|
|
355
|
+
continue;
|
|
356
|
+
if (baselineRequired.has(name) !== candidateRequired.has(name)) {
|
|
357
|
+
const required = candidateRequired.has(name);
|
|
358
|
+
const classification = direction === 'request'
|
|
359
|
+
? required
|
|
360
|
+
? 'breaking'
|
|
361
|
+
: 'compatible'
|
|
362
|
+
: required
|
|
363
|
+
? 'compatible'
|
|
364
|
+
: 'breaking';
|
|
365
|
+
collector.add(classification, direction === 'request'
|
|
366
|
+
? required
|
|
367
|
+
? 'request-required-added'
|
|
368
|
+
: 'request-required-removed'
|
|
369
|
+
: required
|
|
370
|
+
? 'response-required-added'
|
|
371
|
+
: 'response-required-removed', 'candidate', `${candidatePointer}/required`, `${direction} property ${name} became ${required ? 'required' : 'optional'}`, operationId);
|
|
372
|
+
}
|
|
373
|
+
compareSchema(baselineProperty, candidateProperty, direction, `${baselinePointer}/properties/${token}`, `${candidatePointer}/properties/${token}`, operationId, collector);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
function strongestClassification(...classifications) {
|
|
377
|
+
return classifications.reduce((strongest, classification) => CLASSIFICATION_WEIGHT[classification] > CLASSIFICATION_WEIGHT[strongest]
|
|
378
|
+
? classification
|
|
379
|
+
: strongest, 'compatible');
|
|
380
|
+
}
|
|
381
|
+
function compareIdempotencySemantics(baseline, candidate) {
|
|
382
|
+
const changes = [];
|
|
383
|
+
const classifications = [];
|
|
384
|
+
if (baseline.required !== candidate.required) {
|
|
385
|
+
changes.push(`key became ${candidate.required ? 'required' : 'optional'}`);
|
|
386
|
+
classifications.push(candidate.required ? 'breaking' : 'compatible');
|
|
387
|
+
}
|
|
388
|
+
if (baseline.maxKeyLength !== candidate.maxKeyLength) {
|
|
389
|
+
changes.push(`maximum key length ${candidate.maxKeyLength < baseline.maxKeyLength ? 'narrowed' : 'widened'}`);
|
|
390
|
+
classifications.push(candidate.maxKeyLength < baseline.maxKeyLength
|
|
391
|
+
? 'breaking'
|
|
392
|
+
: 'compatible');
|
|
393
|
+
}
|
|
394
|
+
if (baseline.retentionSeconds !== candidate.retentionSeconds) {
|
|
395
|
+
changes.push(`retention ${candidate.retentionSeconds < baseline.retentionSeconds
|
|
396
|
+
? 'shortened'
|
|
397
|
+
: 'extended'}`);
|
|
398
|
+
classifications.push(candidate.retentionSeconds < baseline.retentionSeconds
|
|
399
|
+
? 'breaking'
|
|
400
|
+
: 'conditionally-compatible');
|
|
401
|
+
}
|
|
402
|
+
if (baseline.concurrentDuplicate !== candidate.concurrentDuplicate) {
|
|
403
|
+
changes.push(`concurrent duplicate behavior changed from ${baseline.concurrentDuplicate} to ${candidate.concurrentDuplicate}`);
|
|
404
|
+
classifications.push(baseline.concurrentDuplicate === 'wait'
|
|
405
|
+
? 'breaking'
|
|
406
|
+
: 'conditionally-compatible');
|
|
407
|
+
}
|
|
408
|
+
return {
|
|
409
|
+
classification: strongestClassification(...classifications),
|
|
410
|
+
summary: changes.join('; '),
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
function compareConditionalWriteSemantics(baseline, candidate) {
|
|
414
|
+
return {
|
|
415
|
+
classification: candidate.required ? 'breaking' : 'compatible',
|
|
416
|
+
summary: `precondition became ${candidate.required ? 'required' : 'optional'}`,
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
function comparePaginationSemantics(baseline, candidate) {
|
|
420
|
+
const changes = [];
|
|
421
|
+
const classifications = [];
|
|
422
|
+
for (const field of [
|
|
423
|
+
'cursorQueryParameter',
|
|
424
|
+
'cursorResponseField',
|
|
425
|
+
'limitQueryParameter',
|
|
426
|
+
]) {
|
|
427
|
+
if (baseline[field] !== candidate[field]) {
|
|
428
|
+
changes.push(`${field} changed`);
|
|
429
|
+
classifications.push('breaking');
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
if (baseline.minimumLimit !== candidate.minimumLimit) {
|
|
433
|
+
changes.push(`minimum limit ${candidate.minimumLimit > baseline.minimumLimit ? 'raised' : 'lowered'}`);
|
|
434
|
+
classifications.push(candidate.minimumLimit > baseline.minimumLimit
|
|
435
|
+
? 'breaking'
|
|
436
|
+
: 'compatible');
|
|
437
|
+
}
|
|
438
|
+
if (baseline.maximumLimit !== candidate.maximumLimit) {
|
|
439
|
+
changes.push(`maximum limit ${candidate.maximumLimit < baseline.maximumLimit ? 'lowered' : 'raised'}`);
|
|
440
|
+
classifications.push(candidate.maximumLimit < baseline.maximumLimit
|
|
441
|
+
? 'breaking'
|
|
442
|
+
: 'compatible');
|
|
443
|
+
}
|
|
444
|
+
if (baseline.defaultLimit !== candidate.defaultLimit) {
|
|
445
|
+
changes.push('default limit changed');
|
|
446
|
+
classifications.push('conditionally-compatible');
|
|
447
|
+
}
|
|
448
|
+
if (baseline.stability !== candidate.stability) {
|
|
449
|
+
changes.push(`stability changed from ${baseline.stability} to ${candidate.stability}`);
|
|
450
|
+
classifications.push(baseline.stability === 'snapshot' ? 'breaking' : 'compatible');
|
|
451
|
+
}
|
|
452
|
+
if (baseline.expirySeconds !== candidate.expirySeconds) {
|
|
453
|
+
if (candidate.expirySeconds === undefined) {
|
|
454
|
+
changes.push('cursor expiry was removed');
|
|
455
|
+
classifications.push('compatible');
|
|
456
|
+
}
|
|
457
|
+
else if (baseline.expirySeconds === undefined) {
|
|
458
|
+
changes.push('cursor expiry was introduced');
|
|
459
|
+
classifications.push('breaking');
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
changes.push(`cursor expiry ${candidate.expirySeconds < baseline.expirySeconds
|
|
463
|
+
? 'shortened'
|
|
464
|
+
: 'extended'}`);
|
|
465
|
+
classifications.push(candidate.expirySeconds < baseline.expirySeconds
|
|
466
|
+
? 'breaking'
|
|
467
|
+
: 'compatible');
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
return {
|
|
471
|
+
classification: strongestClassification(...classifications),
|
|
472
|
+
summary: changes.join('; '),
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
function compareOptionalSemantics(baseline, candidate, member, candidatePointer, baselinePointer, operationId, collector) {
|
|
476
|
+
if (jsonEqual(baseline, candidate))
|
|
477
|
+
return;
|
|
478
|
+
const codePrefix = member === 'conditionalWrite' ? 'conditional-write' : member;
|
|
479
|
+
if (baseline === undefined) {
|
|
480
|
+
const required = member === 'pagination'
|
|
481
|
+
? false
|
|
482
|
+
: candidate.required;
|
|
483
|
+
collector.add(required ? 'breaking' : 'conditionally-compatible', `${codePrefix}-added`, 'candidate', candidatePointer, `${member} semantics were added${required ? ' as required' : ''}`, operationId);
|
|
484
|
+
}
|
|
485
|
+
else if (candidate === undefined) {
|
|
486
|
+
collector.add('breaking', `${codePrefix}-removed`, 'baseline', baselinePointer, `${member} semantics were removed`, operationId);
|
|
487
|
+
}
|
|
488
|
+
else {
|
|
489
|
+
const comparison = member === 'idempotency'
|
|
490
|
+
? compareIdempotencySemantics(baseline, candidate)
|
|
491
|
+
: member === 'conditionalWrite'
|
|
492
|
+
? compareConditionalWriteSemantics(baseline, candidate)
|
|
493
|
+
: comparePaginationSemantics(baseline, candidate);
|
|
494
|
+
collector.add(comparison.classification, `${codePrefix}-changed`, 'candidate', candidatePointer, `${member} semantics changed: ${comparison.summary}`, operationId);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
function compareProblems(baseline, candidate, baselinePointer, candidatePointer, collector) {
|
|
498
|
+
const baselineProblems = new Map(baseline.problems.map((problem, index) => [
|
|
499
|
+
problem.type,
|
|
500
|
+
{ index, problem },
|
|
501
|
+
]));
|
|
502
|
+
const candidateProblems = new Map(candidate.problems.map((problem, index) => [
|
|
503
|
+
problem.type,
|
|
504
|
+
{ index, problem },
|
|
505
|
+
]));
|
|
506
|
+
const types = [
|
|
507
|
+
...new Set([...baselineProblems.keys(), ...candidateProblems.keys()]),
|
|
508
|
+
].sort(compareStrings);
|
|
509
|
+
for (const type of types) {
|
|
510
|
+
const before = baselineProblems.get(type);
|
|
511
|
+
const after = candidateProblems.get(type);
|
|
512
|
+
if (!before && after) {
|
|
513
|
+
collector.add('conditionally-compatible', 'problem-added', 'candidate', `${candidatePointer}/problems/${after.index}`, `problem ${type} was added`, candidate.operationId);
|
|
514
|
+
}
|
|
515
|
+
else if (before && !after) {
|
|
516
|
+
collector.add('breaking', 'problem-removed', 'baseline', `${baselinePointer}/problems/${before.index}`, `problem ${type} was removed`, baseline.operationId);
|
|
517
|
+
}
|
|
518
|
+
else if (before && after && !jsonEqual(before.problem, after.problem)) {
|
|
519
|
+
collector.add('breaking', 'problem-changed', 'candidate', `${candidatePointer}/problems/${after.index}`, `problem ${type} changed`, candidate.operationId);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
function compareRequestLocations(baseline, candidate, baselinePointer, candidatePointer, collector) {
|
|
524
|
+
for (const location of ['body', 'headers', 'path', 'query']) {
|
|
525
|
+
const before = baseline.request?.[location];
|
|
526
|
+
const after = candidate.request?.[location];
|
|
527
|
+
if (!before && after) {
|
|
528
|
+
const required = location === 'body' ||
|
|
529
|
+
location === 'path' ||
|
|
530
|
+
(after.required?.length ?? 0) > 0;
|
|
531
|
+
collector.add(required ? 'breaking' : 'conditionally-compatible', 'request-location-added', 'candidate', `${candidatePointer}/request/${location}`, `request ${location} contract was added${required ? ' with required input' : ''}`, candidate.operationId);
|
|
532
|
+
}
|
|
533
|
+
else if (before && !after) {
|
|
534
|
+
collector.add('breaking', 'request-location-removed', 'baseline', `${baselinePointer}/request/${location}`, `request ${location} contract was removed`, baseline.operationId);
|
|
535
|
+
}
|
|
536
|
+
else if (before && after) {
|
|
537
|
+
compareSchema(before, after, 'request', `${baselinePointer}/request/${location}`, `${candidatePointer}/request/${location}`, candidate.operationId, collector);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
const baselineLimit = baseline.request?.maxBodyBytes;
|
|
541
|
+
const candidateLimit = candidate.request?.maxBodyBytes;
|
|
542
|
+
if (baselineLimit !== candidateLimit) {
|
|
543
|
+
const widened = candidateLimit === undefined ||
|
|
544
|
+
(baselineLimit !== undefined && candidateLimit > baselineLimit);
|
|
545
|
+
collector.add(widened ? 'compatible' : 'breaking', 'request-body-limit-changed', 'candidate', `${candidatePointer}/request/maxBodyBytes`, `request body limit ${widened ? 'widened' : 'narrowed'}`, candidate.operationId);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
function compareOperation(baseline, candidate, baselinePointer, candidatePointer, collector) {
|
|
549
|
+
for (const [member, code, classification] of [
|
|
550
|
+
['method', 'http-method-changed', 'breaking'],
|
|
551
|
+
['path', 'route-changed', 'breaking'],
|
|
552
|
+
['authentication', 'authentication-changed', 'breaking'],
|
|
553
|
+
['authorizationActions', 'authorization-actions-changed', 'breaking'],
|
|
554
|
+
['feature', 'feature-changed', 'conditionally-compatible'],
|
|
555
|
+
['summary', 'summary-changed', 'compatible'],
|
|
556
|
+
]) {
|
|
557
|
+
if (!jsonEqual(baseline[member], candidate[member])) {
|
|
558
|
+
collector.add(classification, code, 'candidate', `${candidatePointer}/${member}`, `${member} changed`, candidate.operationId);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
if (!jsonEqual(baseline.lifecycle, candidate.lifecycle)) {
|
|
562
|
+
collector.add(baseline.lifecycle.status === 'active' &&
|
|
563
|
+
candidate.lifecycle.status === 'deprecated'
|
|
564
|
+
? 'compatible'
|
|
565
|
+
: 'conditionally-compatible', 'operation-lifecycle-changed', 'candidate', `${candidatePointer}/lifecycle`, 'operation lifecycle metadata changed', candidate.operationId);
|
|
566
|
+
}
|
|
567
|
+
if (baseline.response.status !== candidate.response.status) {
|
|
568
|
+
collector.add('breaking', 'success-status-changed', 'candidate', `${candidatePointer}/response/status`, 'successful response status changed', candidate.operationId);
|
|
569
|
+
}
|
|
570
|
+
compareRequestLocations(baseline, candidate, baselinePointer, candidatePointer, collector);
|
|
571
|
+
compareSchema(baseline.response.body, candidate.response.body, 'response', `${baselinePointer}/response/body`, `${candidatePointer}/response/body`, candidate.operationId, collector);
|
|
572
|
+
compareProblems(baseline, candidate, baselinePointer, candidatePointer, collector);
|
|
573
|
+
for (const member of [
|
|
574
|
+
'conditionalWrite',
|
|
575
|
+
'idempotency',
|
|
576
|
+
'pagination',
|
|
577
|
+
]) {
|
|
578
|
+
compareOptionalSemantics(baseline[member], candidate[member], member, `${candidatePointer}/${member}`, `${baselinePointer}/${member}`, candidate.operationId, collector);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
function compareApiContracts(baselineInput, candidateInput) {
|
|
582
|
+
const baseline = (0, model_js_1.normalizeApiContractBaseline)(baselineInput);
|
|
583
|
+
const candidate = (0, model_js_1.createApiContractBaseline)(candidateInput);
|
|
584
|
+
const collector = new FindingCollector();
|
|
585
|
+
if (baseline.slice !== candidate.slice) {
|
|
586
|
+
collector.add('breaking', 'contract-slice-changed', 'candidate', '/slice', 'owning Slice changed');
|
|
587
|
+
}
|
|
588
|
+
if (baseline.title !== candidate.title) {
|
|
589
|
+
collector.add('compatible', 'contract-title-changed', 'candidate', '/title', 'contract title changed');
|
|
590
|
+
}
|
|
591
|
+
const versionComparison = compareSemanticVersions(candidate.version, baseline.version);
|
|
592
|
+
if (versionComparison > 0) {
|
|
593
|
+
collector.add('compatible', 'contract-version-advanced', 'candidate', '/version', 'contract version advanced');
|
|
594
|
+
}
|
|
595
|
+
else if (versionComparison < 0) {
|
|
596
|
+
collector.add('breaking', 'contract-version-regressed', 'candidate', '/version', 'contract version regressed');
|
|
597
|
+
}
|
|
598
|
+
const baselineOperations = new Map(baseline.operations.map((operation, index) => [
|
|
599
|
+
operation.operationId,
|
|
600
|
+
{ index, operation },
|
|
601
|
+
]));
|
|
602
|
+
const candidateOperations = new Map(candidate.operations.map((operation, index) => [
|
|
603
|
+
operation.operationId,
|
|
604
|
+
{ index, operation },
|
|
605
|
+
]));
|
|
606
|
+
const operationIds = [
|
|
607
|
+
...new Set([...baselineOperations.keys(), ...candidateOperations.keys()]),
|
|
608
|
+
].sort(compareStrings);
|
|
609
|
+
for (const operationId of operationIds) {
|
|
610
|
+
const before = baselineOperations.get(operationId);
|
|
611
|
+
const after = candidateOperations.get(operationId);
|
|
612
|
+
if (!before && after) {
|
|
613
|
+
collector.add('compatible', 'operation-added', 'candidate', `/operations/${after.index}`, `operation ${operationId} was added`, operationId);
|
|
614
|
+
}
|
|
615
|
+
else if (before && !after) {
|
|
616
|
+
collector.add('breaking', 'operation-removed', 'baseline', `/operations/${before.index}`, `operation ${operationId} was removed`, operationId);
|
|
617
|
+
}
|
|
618
|
+
else if (before && after) {
|
|
619
|
+
compareOperation(before.operation, after.operation, `/operations/${before.index}`, `/operations/${after.index}`, collector);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
const findings = collector.sorted();
|
|
623
|
+
const classification = findings.reduce((current, finding) => CLASSIFICATION_WEIGHT[finding.classification] >
|
|
624
|
+
CLASSIFICATION_WEIGHT[current]
|
|
625
|
+
? finding.classification
|
|
626
|
+
: current, 'compatible');
|
|
627
|
+
return {
|
|
628
|
+
baseline: {
|
|
629
|
+
digest: (0, model_js_1.digestApiContractBaseline)(baseline),
|
|
630
|
+
version: baseline.version,
|
|
631
|
+
},
|
|
632
|
+
candidate: {
|
|
633
|
+
digest: (0, model_js_1.digestApiContractBaseline)(candidate),
|
|
634
|
+
version: candidate.version,
|
|
635
|
+
},
|
|
636
|
+
classification,
|
|
637
|
+
findings,
|
|
638
|
+
kind: exports.API_CONTRACT_COMPATIBILITY_REPORT_KIND,
|
|
639
|
+
schemaVersion: exports.API_CONTRACT_COMPATIBILITY_REPORT_SCHEMA_VERSION,
|
|
640
|
+
slice: candidate.slice,
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
//# sourceMappingURL=compatibility.js.map
|