@agent-teams/engineering-foundation 0.21.0 → 1.0.1
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 +13 -19
- package/assets/windows-managed-process/WindowsManagedProcess.cs +2 -2
- package/assets/windows-managed-process/bootstrap.ps1 +25 -4
- package/dist/canonical-json.d.ts +1 -11
- package/dist/canonical-json.d.ts.map +1 -1
- package/dist/canonical-json.js +1 -150
- package/dist/canonical-json.js.map +1 -1
- package/dist/capabilities/documentation-local-references/application/model/documentation-local-references.d.ts +1 -1
- package/dist/capabilities/documentation-local-references/application/model/documentation-local-references.d.ts.map +1 -1
- package/dist/capabilities/documentation-local-references/application/policies/evaluate-documentation-local-references.js +1 -1
- package/dist/capabilities/documentation-local-references/application/policies/evaluate-documentation-local-references.js.map +1 -1
- package/dist/capabilities/documentation-local-references/application/use-cases/analyze-documentation-local-references.d.ts +1 -1
- package/dist/capabilities/documentation-local-references/application/use-cases/analyze-documentation-local-references.d.ts.map +1 -1
- package/dist/capabilities/documentation-local-references/module.js +1 -1
- package/dist/capabilities/documentation-local-references/module.js.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.d.ts +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.d.ts.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.js +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.js.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/policies/architecture-decision-diagnostic.d.ts +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/policies/architecture-decision-diagnostic.d.ts.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-index.d.ts +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-index.d.ts.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decisions.d.ts +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decisions.d.ts.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/policies/parse-architecture-decision-document.d.ts +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/policies/parse-architecture-decision-document.d.ts.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/use-cases/analyze-architecture-decisions.d.ts +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/use-cases/analyze-architecture-decisions.d.ts.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/use-cases/inspect-architecture-decision-catalog.d.ts +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/use-cases/inspect-architecture-decision-catalog.d.ts.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.d.ts +1 -2
- package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.d.ts.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.js.map +1 -1
- package/dist/capabilities/governance-architecture-decisions/module.js +1 -1
- package/dist/capabilities/governance-architecture-decisions/module.js.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/outbound/node/generated-output-filesystem.d.ts +12 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/generated-output-filesystem.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/generated-output-filesystem.js +123 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/generated-output-filesystem.js.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js +197 -29
- package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-snapshot.d.ts +30 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-snapshot.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-snapshot.js +167 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-snapshot.js.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-topology-inspector.d.ts +18 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-topology-inspector.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-topology-inspector.js +131 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-topology-inspector.js.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.d.ts +33 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.js +323 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.js.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-snapshot-reader.d.ts +9 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-snapshot-reader.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-snapshot-reader.js +67 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-snapshot-reader.js.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-filesystem.d.ts +38 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-filesystem.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-filesystem.js +139 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-filesystem.js.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-root-snapshot.d.ts +20 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-root-snapshot.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-root-snapshot.js +39 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-root-snapshot.js.map +1 -0
- package/dist/capabilities/source-dependencies/application/model/repository-path.d.ts +12 -0
- package/dist/capabilities/source-dependencies/application/model/repository-path.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/application/model/repository-path.js +59 -0
- package/dist/capabilities/source-dependencies/application/model/repository-path.js.map +1 -1
- package/dist/capabilities/source-dependencies/application/model/source-workspace-topology.d.ts +31 -0
- package/dist/capabilities/source-dependencies/application/model/source-workspace-topology.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/application/model/source-workspace-topology.js +2 -0
- package/dist/capabilities/source-dependencies/application/model/source-workspace-topology.js.map +1 -0
- package/dist/capabilities/source-dependencies/application/model/source-workspace.d.ts +20 -3
- package/dist/capabilities/source-dependencies/application/model/source-workspace.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.d.ts +1 -0
- package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.js +32 -3
- package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.js.map +1 -1
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.d.ts +1 -0
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.js +2 -1
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.js.map +1 -1
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.js +1 -0
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.js.map +1 -1
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-workspace-coverage.d.ts +5 -0
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-workspace-coverage.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-workspace-coverage.js +96 -0
- package/dist/capabilities/source-dependencies/application/policies/evaluate-source-workspace-coverage.js.map +1 -0
- package/dist/capabilities/source-dependencies/application/ports/source-dependency-resolver.d.ts +15 -0
- package/dist/capabilities/source-dependencies/application/ports/source-dependency-resolver.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.d.ts +27 -0
- package/dist/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.js +2 -0
- package/dist/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.js.map +1 -0
- package/dist/capabilities/source-dependencies/application/rules.d.ts +1 -0
- package/dist/capabilities/source-dependencies/application/rules.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/application/rules.js +1 -0
- package/dist/capabilities/source-dependencies/application/rules.js.map +1 -1
- package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.d.ts +2 -0
- package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.js +113 -9
- package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.js.map +1 -1
- package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.d.ts +15 -0
- package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.js +27 -1
- package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.js.map +1 -1
- package/dist/capabilities/source-dependencies/contract/config.d.ts +3 -3
- package/dist/capabilities/source-dependencies/contract/config.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/contract/config.js +226 -44
- package/dist/capabilities/source-dependencies/contract/config.js.map +1 -1
- package/dist/capabilities/source-dependencies/module.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/module.js +11 -5
- package/dist/capabilities/source-dependencies/module.js.map +1 -1
- package/dist/capabilities/workspace-dependency-declarations/adapters/inbound/filesystem/load-capability-config.d.ts +3 -0
- package/dist/capabilities/workspace-dependency-declarations/adapters/inbound/filesystem/load-capability-config.d.ts.map +1 -0
- package/dist/capabilities/workspace-dependency-declarations/adapters/inbound/filesystem/load-capability-config.js +9 -0
- package/dist/capabilities/workspace-dependency-declarations/adapters/inbound/filesystem/load-capability-config.js.map +1 -0
- package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.d.ts.map +1 -1
- package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.js +92 -77
- package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.js.map +1 -1
- package/dist/capabilities/workspace-dependency-declarations/contract/config.d.ts +2 -1
- package/dist/capabilities/workspace-dependency-declarations/contract/config.d.ts.map +1 -1
- package/dist/capabilities/workspace-dependency-declarations/contract/config.js +22 -5
- package/dist/capabilities/workspace-dependency-declarations/contract/config.js.map +1 -1
- package/dist/capabilities/workspace-dependency-declarations/module.js +2 -1
- package/dist/capabilities/workspace-dependency-declarations/module.js.map +1 -1
- package/dist/cli-arguments.d.ts +0 -11
- package/dist/cli-arguments.d.ts.map +1 -1
- package/dist/cli-arguments.js +2 -143
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli.js +2 -16
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/local-mode/index.d.ts +1 -1
- package/dist/local-mode/index.js +1 -1
- package/dist/package-self-check.d.ts +1 -1
- package/dist/package-self-check.d.ts.map +1 -1
- package/dist/package-self-check.js +9 -24
- package/dist/package-self-check.js.map +1 -1
- package/dist/process-execution/node-process-runner.d.ts.map +1 -1
- package/dist/process-execution/node-process-runner.js +2 -2
- package/dist/process-execution/node-process-runner.js.map +1 -1
- package/dist/process-execution/windows-managed-process-diagnostics.d.ts +5 -0
- package/dist/process-execution/windows-managed-process-diagnostics.d.ts.map +1 -0
- package/dist/process-execution/windows-managed-process-diagnostics.js +110 -0
- package/dist/process-execution/windows-managed-process-diagnostics.js.map +1 -0
- package/dist/process-execution/windows-managed-process.d.ts +4 -2
- package/dist/process-execution/windows-managed-process.d.ts.map +1 -1
- package/dist/process-execution/windows-managed-process.js +39 -12
- package/dist/process-execution/windows-managed-process.js.map +1 -1
- package/dist/process-execution/windows-process-host.js +42 -30
- package/dist/process-execution/windows-process-host.js.map +1 -1
- package/dist/public-api-surface.d.ts +0 -2
- package/dist/public-api-surface.d.ts.map +1 -1
- package/dist/public-api-surface.js +0 -2
- package/dist/public-api-surface.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-authority-recovery.js +1 -1
- package/dist/scaffolding/adapters/node/filesystem-authority-recovery.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.js +1 -1
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-file-identity.d.ts +3 -3
- package/dist/scaffolding/adapters/node/filesystem-file-identity.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-file-identity.js +1 -1
- package/dist/scaffolding/adapters/node/filesystem-file-identity.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-operation-state.d.ts +2 -3
- package/dist/scaffolding/adapters/node/filesystem-operation-state.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-operation-state.js +36 -16
- package/dist/scaffolding/adapters/node/filesystem-operation-state.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-path-guard.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-path-guard.js +5 -6
- package/dist/scaffolding/adapters/node/filesystem-path-guard.js.map +1 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-evidence.d.ts +17 -28
- package/dist/scaffolding/adapters/node/node-scaffold-journal-evidence.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-evidence.js +35 -97
- package/dist/scaffolding/adapters/node/node-scaffold-journal-evidence.js.map +1 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-gateway.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-gateway.js +1 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-gateway.js.map +1 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-store-faults.d.ts +2 -2
- package/dist/scaffolding/adapters/node/node-scaffold-journal-store-faults.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-store.d.ts +6 -0
- package/dist/scaffolding/adapters/node/node-scaffold-journal-store.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-store.js +139 -274
- package/dist/scaffolding/adapters/node/node-scaffold-journal-store.js.map +1 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-transaction-evidence.js +1 -2
- package/dist/scaffolding/adapters/node/node-scaffold-journal-transaction-evidence.js.map +1 -1
- package/dist/scaffolding/application/policies/legacy-scaffolding-repository-path.d.ts +1 -1
- package/dist/scaffolding/application/policies/legacy-scaffolding-repository-path.d.ts.map +1 -1
- package/dist/scaffolding/kernel/canonical-json.d.ts.map +1 -1
- package/dist/scaffolding/kernel/canonical-json.js +10 -42
- package/dist/scaffolding/kernel/canonical-json.js.map +1 -1
- package/dist/scaffolding/kernel/plan-content-validation.d.ts.map +1 -1
- package/dist/scaffolding/kernel/plan-content-validation.js +8 -1
- package/dist/scaffolding/kernel/plan-content-validation.js.map +1 -1
- package/dist/schema-catalog.d.ts.map +1 -1
- package/dist/schema-catalog.js +8 -21
- package/dist/schema-catalog.js.map +1 -1
- package/dist/schema-ids.d.ts +1 -1
- package/dist/schema-ids.d.ts.map +1 -1
- package/dist/schema-ids.js +1 -16
- package/dist/schema-ids.js.map +1 -1
- package/dist/strict-json.d.ts +1 -6
- package/dist/strict-json.d.ts.map +1 -1
- package/dist/strict-json.js +1 -40
- package/dist/strict-json.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/document-envelope-bindings.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/document-envelope-bindings.js +3 -4
- package/dist/transaction-coordination/adapters/node/document-envelope-bindings.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/foundation-scaffold-envelope.d.ts +8 -0
- package/dist/transaction-coordination/adapters/node/foundation-scaffold-envelope.d.ts.map +1 -0
- package/dist/transaction-coordination/adapters/node/foundation-scaffold-envelope.js +70 -0
- package/dist/transaction-coordination/adapters/node/foundation-scaffold-envelope.js.map +1 -0
- package/dist/transaction-coordination/adapters/node/foundation-transition-evidence.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/foundation-transition-evidence.js +42 -7
- package/dist/transaction-coordination/adapters/node/foundation-transition-evidence.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.d.ts +0 -5
- package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.js +7 -124
- package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/known-file-transaction-status.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/known-file-transaction-status.js +34 -4
- package/dist/transaction-coordination/adapters/node/known-file-transaction-status.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/legacy-document-envelope-v2.d.ts +1 -0
- package/dist/transaction-coordination/adapters/node/legacy-document-envelope-v2.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/legacy-document-envelope-v2.js +3 -0
- package/dist/transaction-coordination/adapters/node/legacy-document-envelope-v2.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/legacy-scaffolding-transaction-validation.d.ts +3 -0
- package/dist/transaction-coordination/adapters/node/legacy-scaffolding-transaction-validation.d.ts.map +1 -0
- package/dist/transaction-coordination/adapters/node/legacy-scaffolding-transaction-validation.js +52 -0
- package/dist/transaction-coordination/adapters/node/legacy-scaffolding-transaction-validation.js.map +1 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-cleanup-transition.d.ts +2 -2
- package/dist/transaction-coordination/adapters/node/node-foundation-cleanup-transition.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/node-foundation-cleanup-transition.js +1 -2
- package/dist/transaction-coordination/adapters/node/node-foundation-cleanup-transition.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.d.ts +1 -9
- package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.js +16 -338
- package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.d.ts +5 -10
- package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.js +5 -90
- package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.js +41 -26
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/schema6-transaction-status.d.ts +7 -0
- package/dist/transaction-coordination/adapters/node/schema6-transaction-status.d.ts.map +1 -0
- package/dist/transaction-coordination/adapters/node/schema6-transaction-status.js +51 -0
- package/dist/transaction-coordination/adapters/node/schema6-transaction-status.js.map +1 -0
- package/dist/transaction-coordination/application/foundation-transaction-coordinator.d.ts.map +1 -1
- package/dist/transaction-coordination/application/foundation-transaction-coordinator.js +1 -1
- package/dist/transaction-coordination/application/foundation-transaction-coordinator.js.map +1 -1
- package/dist/transaction-coordination/application/model/transaction-status.d.ts +1 -1
- package/dist/transaction-coordination/application/model/transaction-status.d.ts.map +1 -1
- package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-package-manifest-snapshot-reader.d.ts +3 -0
- package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-package-manifest-snapshot-reader.d.ts.map +1 -0
- package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-package-manifest-snapshot-reader.js +203 -0
- package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-package-manifest-snapshot-reader.js.map +1 -0
- package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.d.ts +2 -0
- package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.d.ts.map +1 -1
- package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.js +152 -190
- package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.js.map +1 -1
- package/dist/workspace-inventory/application/model/workspace-inventory.d.ts +28 -1
- package/dist/workspace-inventory/application/model/workspace-inventory.d.ts.map +1 -1
- package/dist/workspace-inventory/application/policies/normalize-dependency-declaration.d.ts +14 -0
- package/dist/workspace-inventory/application/policies/normalize-dependency-declaration.d.ts.map +1 -0
- package/dist/workspace-inventory/application/policies/normalize-dependency-declaration.js +82 -0
- package/dist/workspace-inventory/application/policies/normalize-dependency-declaration.js.map +1 -0
- package/dist/workspace-inventory/application/policies/package-export-matcher.d.ts +10 -0
- package/dist/workspace-inventory/application/policies/package-export-matcher.d.ts.map +1 -0
- package/dist/workspace-inventory/application/policies/package-export-matcher.js +152 -0
- package/dist/workspace-inventory/application/policies/package-export-matcher.js.map +1 -0
- package/package.json +39 -71
- package/schemas/architecture-source-dependencies/v2.schema.json +119 -0
- package/dist/document-authoring/adapters/canonical-markdown.d.ts +0 -14
- package/dist/document-authoring/adapters/canonical-markdown.d.ts.map +0 -1
- package/dist/document-authoring/adapters/canonical-markdown.js +0 -354
- package/dist/document-authoring/adapters/canonical-markdown.js.map +0 -1
- package/dist/document-authoring/adapters/inbound/cli/document-command-failure.d.ts +0 -5
- package/dist/document-authoring/adapters/inbound/cli/document-command-failure.d.ts.map +0 -1
- package/dist/document-authoring/adapters/inbound/cli/document-command-failure.js +0 -36
- package/dist/document-authoring/adapters/inbound/cli/document-command-failure.js.map +0 -1
- package/dist/document-authoring/adapters/inbound/cli/document-command-renderer.d.ts +0 -6
- package/dist/document-authoring/adapters/inbound/cli/document-command-renderer.d.ts.map +0 -1
- package/dist/document-authoring/adapters/inbound/cli/document-command-renderer.js +0 -127
- package/dist/document-authoring/adapters/inbound/cli/document-command-renderer.js.map +0 -1
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.d.ts +0 -52
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.js +0 -103
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.js.map +0 -1
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile.d.ts +0 -33
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile.js +0 -47
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.d.ts +0 -9
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.js +0 -42
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader.d.ts +0 -9
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader.js +0 -31
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-contract-validator.d.ts +0 -7
- package/dist/document-authoring/adapters/node/node-document-contract-validator.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-contract-validator.js +0 -306
- package/dist/document-authoring/adapters/node/node-document-contract-validator.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-environment-inspector.d.ts +0 -17
- package/dist/document-authoring/adapters/node/node-document-environment-inspector.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-environment-inspector.js +0 -49
- package/dist/document-authoring/adapters/node/node-document-environment-inspector.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-file-state.d.ts +0 -21
- package/dist/document-authoring/adapters/node/node-document-file-state.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-file-state.js +0 -199
- package/dist/document-authoring/adapters/node/node-document-file-state.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-journal-slot.d.ts +0 -2
- package/dist/document-authoring/adapters/node/node-document-journal-slot.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-journal-slot.js +0 -18
- package/dist/document-authoring/adapters/node/node-document-journal-slot.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-journal-store-faults.d.ts +0 -36
- package/dist/document-authoring/adapters/node/node-document-journal-store-faults.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-journal-store-faults.js +0 -2
- package/dist/document-authoring/adapters/node/node-document-journal-store-faults.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-journal-store-private.d.ts +0 -2
- package/dist/document-authoring/adapters/node/node-document-journal-store-private.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-journal-store-private.js +0 -2
- package/dist/document-authoring/adapters/node/node-document-journal-store-private.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-journal-store.d.ts +0 -22
- package/dist/document-authoring/adapters/node/node-document-journal-store.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-journal-store.js +0 -339
- package/dist/document-authoring/adapters/node/node-document-journal-store.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.d.ts +0 -9
- package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.js +0 -87
- package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-parent-materializer.d.ts +0 -39
- package/dist/document-authoring/adapters/node/node-document-parent-materializer.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-parent-materializer.js +0 -270
- package/dist/document-authoring/adapters/node/node-document-parent-materializer.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.d.ts +0 -10
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.js +0 -85
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-planning-state-reader.d.ts +0 -11
- package/dist/document-authoring/adapters/node/node-document-planning-state-reader.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-planning-state-reader.js +0 -181
- package/dist/document-authoring/adapters/node/node-document-planning-state-reader.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-publisher-private.d.ts +0 -2
- package/dist/document-authoring/adapters/node/node-document-publisher-private.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-publisher-private.js +0 -2
- package/dist/document-authoring/adapters/node/node-document-publisher-private.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-publisher.d.ts +0 -54
- package/dist/document-authoring/adapters/node/node-document-publisher.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-publisher.js +0 -343
- package/dist/document-authoring/adapters/node/node-document-publisher.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-reachability-projector.d.ts +0 -17
- package/dist/document-authoring/adapters/node/node-document-reachability-projector.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-reachability-projector.js +0 -43
- package/dist/document-authoring/adapters/node/node-document-reachability-projector.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-structure-verifier.d.ts +0 -21
- package/dist/document-authoring/adapters/node/node-document-structure-verifier.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-structure-verifier.js +0 -80
- package/dist/document-authoring/adapters/node/node-document-structure-verifier.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-template-reader.d.ts +0 -10
- package/dist/document-authoring/adapters/node/node-document-template-reader.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-template-reader.js +0 -32
- package/dist/document-authoring/adapters/node/node-document-template-reader.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.d.ts +0 -21
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.js +0 -67
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.d.ts +0 -9
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.js +0 -90
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-owner-membership-reader.d.ts +0 -10
- package/dist/document-authoring/adapters/node/node-owner-membership-reader.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-owner-membership-reader.js +0 -62
- package/dist/document-authoring/adapters/node/node-owner-membership-reader.js.map +0 -1
- package/dist/document-authoring/adapters/node/node-path-authority.d.ts +0 -53
- package/dist/document-authoring/adapters/node/node-path-authority.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/node-path-authority.js +0 -186
- package/dist/document-authoring/adapters/node/node-path-authority.js.map +0 -1
- package/dist/document-authoring/adapters/node/read-document-authority-file.d.ts +0 -12
- package/dist/document-authoring/adapters/node/read-document-authority-file.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/read-document-authority-file.js +0 -78
- package/dist/document-authoring/adapters/node/read-document-authority-file.js.map +0 -1
- package/dist/document-authoring/adapters/node/recapture-document-publication-paths.d.ts +0 -17
- package/dist/document-authoring/adapters/node/recapture-document-publication-paths.d.ts.map +0 -1
- package/dist/document-authoring/adapters/node/recapture-document-publication-paths.js +0 -33
- package/dist/document-authoring/adapters/node/recapture-document-publication-paths.js.map +0 -1
- package/dist/document-authoring/application/model/document-authoring-profile-description.d.ts +0 -57
- package/dist/document-authoring/application/model/document-authoring-profile-description.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-authoring-profile-description.js +0 -2
- package/dist/document-authoring/application/model/document-authoring-profile-description.js.map +0 -1
- package/dist/document-authoring/application/model/document-catalog.d.ts +0 -88
- package/dist/document-authoring/application/model/document-catalog.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-catalog.js +0 -2
- package/dist/document-authoring/application/model/document-catalog.js.map +0 -1
- package/dist/document-authoring/application/model/document-command.d.ts +0 -69
- package/dist/document-authoring/application/model/document-command.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-command.js +0 -2
- package/dist/document-authoring/application/model/document-command.js.map +0 -1
- package/dist/document-authoring/application/model/document-find.d.ts +0 -22
- package/dist/document-authoring/application/model/document-find.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-find.js +0 -2
- package/dist/document-authoring/application/model/document-find.js.map +0 -1
- package/dist/document-authoring/application/model/document-parent-materialization.d.ts +0 -26
- package/dist/document-authoring/application/model/document-parent-materialization.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-parent-materialization.js +0 -2
- package/dist/document-authoring/application/model/document-parent-materialization.js.map +0 -1
- package/dist/document-authoring/application/model/document-physical-identity.d.ts +0 -10
- package/dist/document-authoring/application/model/document-physical-identity.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-physical-identity.js +0 -29
- package/dist/document-authoring/application/model/document-physical-identity.js.map +0 -1
- package/dist/document-authoring/application/model/document-planning.d.ts +0 -209
- package/dist/document-authoring/application/model/document-planning.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-planning.js +0 -2
- package/dist/document-authoring/application/model/document-planning.js.map +0 -1
- package/dist/document-authoring/application/model/document-receipt.d.ts +0 -101
- package/dist/document-authoring/application/model/document-receipt.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-receipt.js +0 -2
- package/dist/document-authoring/application/model/document-receipt.js.map +0 -1
- package/dist/document-authoring/application/model/document-transaction-inspection.d.ts +0 -66
- package/dist/document-authoring/application/model/document-transaction-inspection.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-transaction-inspection.js +0 -2
- package/dist/document-authoring/application/model/document-transaction-inspection.js.map +0 -1
- package/dist/document-authoring/application/model/document-transaction.d.ts +0 -169
- package/dist/document-authoring/application/model/document-transaction.d.ts.map +0 -1
- package/dist/document-authoring/application/model/document-transaction.js +0 -2
- package/dist/document-authoring/application/model/document-transaction.js.map +0 -1
- package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.d.ts +0 -3
- package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.js +0 -8
- package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.js.map +0 -1
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.d.ts +0 -3
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.js +0 -7
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.js.map +0 -1
- package/dist/document-authoring/application/policies/authoring-profile-semantics.d.ts +0 -42
- package/dist/document-authoring/application/policies/authoring-profile-semantics.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/authoring-profile-semantics.js +0 -129
- package/dist/document-authoring/application/policies/authoring-profile-semantics.js.map +0 -1
- package/dist/document-authoring/application/policies/classify-document-recovery.d.ts +0 -81
- package/dist/document-authoring/application/policies/classify-document-recovery.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/classify-document-recovery.js +0 -138
- package/dist/document-authoring/application/policies/classify-document-recovery.js.map +0 -1
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.d.ts +0 -31
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.js +0 -163
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.js.map +0 -1
- package/dist/document-authoring/application/policies/document-catalog-authority-stability.d.ts +0 -12
- package/dist/document-authoring/application/policies/document-catalog-authority-stability.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-catalog-authority-stability.js +0 -16
- package/dist/document-authoring/application/policies/document-catalog-authority-stability.js.map +0 -1
- package/dist/document-authoring/application/policies/document-catalog-diagnostics.d.ts +0 -8
- package/dist/document-authoring/application/policies/document-catalog-diagnostics.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-catalog-diagnostics.js +0 -44
- package/dist/document-authoring/application/policies/document-catalog-diagnostics.js.map +0 -1
- package/dist/document-authoring/application/policies/document-catalog-fields.d.ts +0 -18
- package/dist/document-authoring/application/policies/document-catalog-fields.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-catalog-fields.js +0 -62
- package/dist/document-authoring/application/policies/document-catalog-fields.js.map +0 -1
- package/dist/document-authoring/application/policies/document-catalog-sidecar.d.ts +0 -10
- package/dist/document-authoring/application/policies/document-catalog-sidecar.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-catalog-sidecar.js +0 -66
- package/dist/document-authoring/application/policies/document-catalog-sidecar.js.map +0 -1
- package/dist/document-authoring/application/policies/document-command-consumer-root.d.ts +0 -2
- package/dist/document-authoring/application/policies/document-command-consumer-root.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-command-consumer-root.js +0 -15
- package/dist/document-authoring/application/policies/document-command-consumer-root.js.map +0 -1
- package/dist/document-authoring/application/policies/document-command-projection.d.ts +0 -20
- package/dist/document-authoring/application/policies/document-command-projection.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-command-projection.js +0 -90
- package/dist/document-authoring/application/policies/document-command-projection.js.map +0 -1
- package/dist/document-authoring/application/policies/document-contract-digests.d.ts +0 -20
- package/dist/document-authoring/application/policies/document-contract-digests.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-contract-digests.js +0 -329
- package/dist/document-authoring/application/policies/document-contract-digests.js.map +0 -1
- package/dist/document-authoring/application/policies/document-logical-preimage.d.ts +0 -14
- package/dist/document-authoring/application/policies/document-logical-preimage.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-logical-preimage.js +0 -61
- package/dist/document-authoring/application/policies/document-logical-preimage.js.map +0 -1
- package/dist/document-authoring/application/policies/document-planning-policy-error.d.ts +0 -6
- package/dist/document-authoring/application/policies/document-planning-policy-error.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-planning-policy-error.js +0 -9
- package/dist/document-authoring/application/policies/document-planning-policy-error.js.map +0 -1
- package/dist/document-authoring/application/policies/document-receipt-policy.d.ts +0 -5
- package/dist/document-authoring/application/policies/document-receipt-policy.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-receipt-policy.js +0 -92
- package/dist/document-authoring/application/policies/document-receipt-policy.js.map +0 -1
- package/dist/document-authoring/application/policies/document-repository-path.d.ts +0 -3
- package/dist/document-authoring/application/policies/document-repository-path.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-repository-path.js +0 -24
- package/dist/document-authoring/application/policies/document-repository-path.js.map +0 -1
- package/dist/document-authoring/application/policies/document-temporary-path.d.ts +0 -7
- package/dist/document-authoring/application/policies/document-temporary-path.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-temporary-path.js +0 -34
- package/dist/document-authoring/application/policies/document-temporary-path.js.map +0 -1
- package/dist/document-authoring/application/policies/document-transaction-digests.d.ts +0 -5
- package/dist/document-authoring/application/policies/document-transaction-digests.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-transaction-digests.js +0 -12
- package/dist/document-authoring/application/policies/document-transaction-digests.js.map +0 -1
- package/dist/document-authoring/application/policies/document-transaction-envelope-body.d.ts +0 -28
- package/dist/document-authoring/application/policies/document-transaction-envelope-body.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-transaction-envelope-body.js +0 -140
- package/dist/document-authoring/application/policies/document-transaction-envelope-body.js.map +0 -1
- package/dist/document-authoring/application/policies/document-transaction-envelope-policy.d.ts +0 -4
- package/dist/document-authoring/application/policies/document-transaction-envelope-policy.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/document-transaction-envelope-policy.js +0 -159
- package/dist/document-authoring/application/policies/document-transaction-envelope-policy.js.map +0 -1
- package/dist/document-authoring/application/policies/inspect-catalog-document.d.ts +0 -18
- package/dist/document-authoring/application/policies/inspect-catalog-document.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/inspect-catalog-document.js +0 -126
- package/dist/document-authoring/application/policies/inspect-catalog-document.js.map +0 -1
- package/dist/document-authoring/application/policies/normalize-document-intent.d.ts +0 -3
- package/dist/document-authoring/application/policies/normalize-document-intent.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/normalize-document-intent.js +0 -104
- package/dist/document-authoring/application/policies/normalize-document-intent.js.map +0 -1
- package/dist/document-authoring/application/policies/project-catalog-metadata.d.ts +0 -7
- package/dist/document-authoring/application/policies/project-catalog-metadata.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/project-catalog-metadata.js +0 -165
- package/dist/document-authoring/application/policies/project-catalog-metadata.js.map +0 -1
- package/dist/document-authoring/application/policies/project-document-reachability.d.ts +0 -14
- package/dist/document-authoring/application/policies/project-document-reachability.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/project-document-reachability.js +0 -57
- package/dist/document-authoring/application/policies/project-document-reachability.js.map +0 -1
- package/dist/document-authoring/application/policies/project-similar-document-advice.d.ts +0 -4
- package/dist/document-authoring/application/policies/project-similar-document-advice.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/project-similar-document-advice.js +0 -17
- package/dist/document-authoring/application/policies/project-similar-document-advice.js.map +0 -1
- package/dist/document-authoring/application/policies/resolve-document-authoring.d.ts +0 -13
- package/dist/document-authoring/application/policies/resolve-document-authoring.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/resolve-document-authoring.js +0 -154
- package/dist/document-authoring/application/policies/resolve-document-authoring.js.map +0 -1
- package/dist/document-authoring/application/policies/same-document-catalog-snapshot.d.ts +0 -3
- package/dist/document-authoring/application/policies/same-document-catalog-snapshot.d.ts.map +0 -1
- package/dist/document-authoring/application/policies/same-document-catalog-snapshot.js +0 -24
- package/dist/document-authoring/application/policies/same-document-catalog-snapshot.js.map +0 -1
- package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts +0 -37
- package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/authoring-profile-reader.js +0 -2
- package/dist/document-authoring/application/ports/authoring-profile-reader.js.map +0 -1
- package/dist/document-authoring/application/ports/canonical-document-renderer.d.ts +0 -29
- package/dist/document-authoring/application/ports/canonical-document-renderer.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/canonical-document-renderer.js +0 -2
- package/dist/document-authoring/application/ports/canonical-document-renderer.js.map +0 -1
- package/dist/document-authoring/application/ports/document-authority-recompiler.d.ts +0 -19
- package/dist/document-authoring/application/ports/document-authority-recompiler.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-authority-recompiler.js +0 -2
- package/dist/document-authoring/application/ports/document-authority-recompiler.js.map +0 -1
- package/dist/document-authoring/application/ports/document-contract-validator.d.ts +0 -6
- package/dist/document-authoring/application/ports/document-contract-validator.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-contract-validator.js +0 -2
- package/dist/document-authoring/application/ports/document-contract-validator.js.map +0 -1
- package/dist/document-authoring/application/ports/document-environment-inspector.d.ts +0 -12
- package/dist/document-authoring/application/ports/document-environment-inspector.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-environment-inspector.js +0 -2
- package/dist/document-authoring/application/ports/document-environment-inspector.js.map +0 -1
- package/dist/document-authoring/application/ports/document-file-state.d.ts +0 -55
- package/dist/document-authoring/application/ports/document-file-state.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-file-state.js +0 -2
- package/dist/document-authoring/application/ports/document-file-state.js.map +0 -1
- package/dist/document-authoring/application/ports/document-journal-store.d.ts +0 -31
- package/dist/document-authoring/application/ports/document-journal-store.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-journal-store.js +0 -2
- package/dist/document-authoring/application/ports/document-journal-store.js.map +0 -1
- package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.d.ts +0 -13
- package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.js +0 -2
- package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.js.map +0 -1
- package/dist/document-authoring/application/ports/document-parent-materializer.d.ts +0 -24
- package/dist/document-authoring/application/ports/document-parent-materializer.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-parent-materializer.js +0 -2
- package/dist/document-authoring/application/ports/document-parent-materializer.js.map +0 -1
- package/dist/document-authoring/application/ports/document-planning-profile-reader.d.ts +0 -9
- package/dist/document-authoring/application/ports/document-planning-profile-reader.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-planning-profile-reader.js +0 -2
- package/dist/document-authoring/application/ports/document-planning-profile-reader.js.map +0 -1
- package/dist/document-authoring/application/ports/document-planning-state-reader.d.ts +0 -10
- package/dist/document-authoring/application/ports/document-planning-state-reader.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-planning-state-reader.js +0 -2
- package/dist/document-authoring/application/ports/document-planning-state-reader.js.map +0 -1
- package/dist/document-authoring/application/ports/document-publisher.d.ts +0 -38
- package/dist/document-authoring/application/ports/document-publisher.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-publisher.js +0 -2
- package/dist/document-authoring/application/ports/document-publisher.js.map +0 -1
- package/dist/document-authoring/application/ports/document-reachability-projector.d.ts +0 -13
- package/dist/document-authoring/application/ports/document-reachability-projector.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-reachability-projector.js +0 -2
- package/dist/document-authoring/application/ports/document-reachability-projector.js.map +0 -1
- package/dist/document-authoring/application/ports/document-structure-verifier.d.ts +0 -17
- package/dist/document-authoring/application/ports/document-structure-verifier.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-structure-verifier.js +0 -2
- package/dist/document-authoring/application/ports/document-structure-verifier.js.map +0 -1
- package/dist/document-authoring/application/ports/document-template-reader.d.ts +0 -9
- package/dist/document-authoring/application/ports/document-template-reader.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-template-reader.js +0 -2
- package/dist/document-authoring/application/ports/document-template-reader.js.map +0 -1
- package/dist/document-authoring/application/ports/document-transaction-coordinator.d.ts +0 -21
- package/dist/document-authoring/application/ports/document-transaction-coordinator.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/document-transaction-coordinator.js +0 -2
- package/dist/document-authoring/application/ports/document-transaction-coordinator.js.map +0 -1
- package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.d.ts +0 -11
- package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.js +0 -2
- package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.js.map +0 -1
- package/dist/document-authoring/application/ports/documentation-catalog-reader.d.ts +0 -11
- package/dist/document-authoring/application/ports/documentation-catalog-reader.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/documentation-catalog-reader.js +0 -2
- package/dist/document-authoring/application/ports/documentation-catalog-reader.js.map +0 -1
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.d.ts +0 -9
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.js +0 -2
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.js.map +0 -1
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader.d.ts +0 -10
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader.js +0 -2
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader.js.map +0 -1
- package/dist/document-authoring/application/ports/metadata-instance-validator.d.ts +0 -18
- package/dist/document-authoring/application/ports/metadata-instance-validator.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/metadata-instance-validator.js +0 -2
- package/dist/document-authoring/application/ports/metadata-instance-validator.js.map +0 -1
- package/dist/document-authoring/application/ports/owner-membership-reader.d.ts +0 -14
- package/dist/document-authoring/application/ports/owner-membership-reader.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/owner-membership-reader.js +0 -2
- package/dist/document-authoring/application/ports/owner-membership-reader.js.map +0 -1
- package/dist/document-authoring/application/ports/similar-document-advisor.d.ts +0 -17
- package/dist/document-authoring/application/ports/similar-document-advisor.d.ts.map +0 -1
- package/dist/document-authoring/application/ports/similar-document-advisor.js +0 -2
- package/dist/document-authoring/application/ports/similar-document-advisor.js.map +0 -1
- package/dist/document-authoring/application/projections/document-catalog-projections.d.ts +0 -3
- package/dist/document-authoring/application/projections/document-catalog-projections.d.ts.map +0 -1
- package/dist/document-authoring/application/projections/document-catalog-projections.js +0 -24
- package/dist/document-authoring/application/projections/document-catalog-projections.js.map +0 -1
- package/dist/document-authoring/application/use-cases/apply-document-plan.d.ts +0 -16
- package/dist/document-authoring/application/use-cases/apply-document-plan.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/apply-document-plan.js +0 -311
- package/dist/document-authoring/application/use-cases/apply-document-plan.js.map +0 -1
- package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.d.ts +0 -14
- package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.js +0 -17
- package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.js.map +0 -1
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.d.ts +0 -41
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.js +0 -259
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.js.map +0 -1
- package/dist/document-authoring/application/use-cases/compile-document-plan.d.ts +0 -6
- package/dist/document-authoring/application/use-cases/compile-document-plan.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/compile-document-plan.js +0 -200
- package/dist/document-authoring/application/use-cases/compile-document-plan.js.map +0 -1
- package/dist/document-authoring/application/use-cases/document-journal-reconciliation.d.ts +0 -18
- package/dist/document-authoring/application/use-cases/document-journal-reconciliation.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/document-journal-reconciliation.js +0 -90
- package/dist/document-authoring/application/use-cases/document-journal-reconciliation.js.map +0 -1
- package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.d.ts +0 -3
- package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.js +0 -79
- package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.js.map +0 -1
- package/dist/document-authoring/application/use-cases/document-transaction-continuation.d.ts +0 -64
- package/dist/document-authoring/application/use-cases/document-transaction-continuation.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/document-transaction-continuation.js +0 -283
- package/dist/document-authoring/application/use-cases/document-transaction-continuation.js.map +0 -1
- package/dist/document-authoring/application/use-cases/document-transaction-error.d.ts +0 -5
- package/dist/document-authoring/application/use-cases/document-transaction-error.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/document-transaction-error.js +0 -9
- package/dist/document-authoring/application/use-cases/document-transaction-error.js.map +0 -1
- package/dist/document-authoring/application/use-cases/document-transaction-execution.d.ts +0 -9
- package/dist/document-authoring/application/use-cases/document-transaction-execution.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/document-transaction-execution.js +0 -40
- package/dist/document-authoring/application/use-cases/document-transaction-execution.js.map +0 -1
- package/dist/document-authoring/application/use-cases/document-transaction-receipts.d.ts +0 -21
- package/dist/document-authoring/application/use-cases/document-transaction-receipts.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/document-transaction-receipts.js +0 -180
- package/dist/document-authoring/application/use-cases/document-transaction-receipts.js.map +0 -1
- package/dist/document-authoring/application/use-cases/find-documents.d.ts +0 -20
- package/dist/document-authoring/application/use-cases/find-documents.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/find-documents.js +0 -114
- package/dist/document-authoring/application/use-cases/find-documents.js.map +0 -1
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.d.ts +0 -20
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.js +0 -14
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.js.map +0 -1
- package/dist/document-authoring/application/use-cases/plan-documentation-document.d.ts +0 -74
- package/dist/document-authoring/application/use-cases/plan-documentation-document.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/plan-documentation-document.js +0 -273
- package/dist/document-authoring/application/use-cases/plan-documentation-document.js.map +0 -1
- package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.d.ts +0 -8
- package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.js +0 -32
- package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.js.map +0 -1
- package/dist/document-authoring/application/use-cases/recover-document-transaction.d.ts +0 -10
- package/dist/document-authoring/application/use-cases/recover-document-transaction.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/recover-document-transaction.js +0 -361
- package/dist/document-authoring/application/use-cases/recover-document-transaction.js.map +0 -1
- package/dist/document-authoring/application/use-cases/run-document-doctor.d.ts +0 -18
- package/dist/document-authoring/application/use-cases/run-document-doctor.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/run-document-doctor.js +0 -171
- package/dist/document-authoring/application/use-cases/run-document-doctor.js.map +0 -1
- package/dist/document-authoring/application/use-cases/run-document-new.d.ts +0 -30
- package/dist/document-authoring/application/use-cases/run-document-new.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/run-document-new.js +0 -221
- package/dist/document-authoring/application/use-cases/run-document-new.js.map +0 -1
- package/dist/document-authoring/application/use-cases/run-document-recover.d.ts +0 -21
- package/dist/document-authoring/application/use-cases/run-document-recover.d.ts.map +0 -1
- package/dist/document-authoring/application/use-cases/run-document-recover.js +0 -126
- package/dist/document-authoring/application/use-cases/run-document-recover.js.map +0 -1
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.d.ts +0 -14
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.d.ts.map +0 -1
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.js +0 -220
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.js.map +0 -1
- package/dist/document-authoring/composition/document-command-cli.d.ts +0 -7
- package/dist/document-authoring/composition/document-command-cli.d.ts.map +0 -1
- package/dist/document-authoring/composition/document-command-cli.js +0 -32
- package/dist/document-authoring/composition/document-command-cli.js.map +0 -1
- package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.d.ts +0 -7
- package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.d.ts.map +0 -1
- package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.js +0 -10
- package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.js.map +0 -1
- package/dist/document-authoring/composition/inspect-document-transaction.d.ts +0 -10
- package/dist/document-authoring/composition/inspect-document-transaction.d.ts.map +0 -1
- package/dist/document-authoring/composition/inspect-document-transaction.js +0 -214
- package/dist/document-authoring/composition/inspect-document-transaction.js.map +0 -1
- package/dist/document-authoring/composition/node-document-authority-recompiler.d.ts +0 -11
- package/dist/document-authoring/composition/node-document-authority-recompiler.d.ts.map +0 -1
- package/dist/document-authoring/composition/node-document-authority-recompiler.js +0 -81
- package/dist/document-authoring/composition/node-document-authority-recompiler.js.map +0 -1
- package/dist/document-authoring/composition/node-document-commands.d.ts +0 -10
- package/dist/document-authoring/composition/node-document-commands.d.ts.map +0 -1
- package/dist/document-authoring/composition/node-document-commands.js +0 -68
- package/dist/document-authoring/composition/node-document-commands.js.map +0 -1
- package/dist/document-authoring/composition/node-document-planning.d.ts +0 -7
- package/dist/document-authoring/composition/node-document-planning.d.ts.map +0 -1
- package/dist/document-authoring/composition/node-document-planning.js +0 -99
- package/dist/document-authoring/composition/node-document-planning.js.map +0 -1
- package/dist/document-authoring/composition/node-document-writing-private.d.ts +0 -15
- package/dist/document-authoring/composition/node-document-writing-private.d.ts.map +0 -1
- package/dist/document-authoring/composition/node-document-writing-private.js +0 -54
- package/dist/document-authoring/composition/node-document-writing-private.js.map +0 -1
- package/dist/document-authoring/composition/node-document-writing.d.ts +0 -8
- package/dist/document-authoring/composition/node-document-writing.d.ts.map +0 -1
- package/dist/document-authoring/composition/node-document-writing.js +0 -10
- package/dist/document-authoring/composition/node-document-writing.js.map +0 -1
- package/dist/document-authoring/document-catalog-error.d.ts +0 -6
- package/dist/document-authoring/document-catalog-error.d.ts.map +0 -1
- package/dist/document-authoring/document-catalog-error.js +0 -9
- package/dist/document-authoring/document-catalog-error.js.map +0 -1
- package/dist/document-authoring/document-planning-error.d.ts +0 -6
- package/dist/document-authoring/document-planning-error.d.ts.map +0 -1
- package/dist/document-authoring/document-planning-error.js +0 -9
- package/dist/document-authoring/document-planning-error.js.map +0 -1
- package/dist/document-authoring/find-command.d.ts +0 -37
- package/dist/document-authoring/find-command.d.ts.map +0 -1
- package/dist/document-authoring/find-command.js +0 -180
- package/dist/document-authoring/find-command.js.map +0 -1
- package/dist/document-authoring/index.d.ts +0 -61
- package/dist/document-authoring/index.d.ts.map +0 -1
- package/dist/document-authoring/index.js +0 -94
- package/dist/document-authoring/index.js.map +0 -1
- package/dist/document-authoring/qualification/index.d.ts +0 -22
- package/dist/document-authoring/qualification/index.d.ts.map +0 -1
- package/dist/document-authoring/qualification/index.js +0 -131
- package/dist/document-authoring/qualification/index.js.map +0 -1
- package/dist/document-command.d.ts +0 -12
- package/dist/document-command.d.ts.map +0 -1
- package/dist/document-command.js +0 -105
- package/dist/document-command.js.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.d.ts +0 -14
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.d.ts.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.js +0 -108
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.js.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.d.ts +0 -14
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.d.ts.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.js +0 -61
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.js.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.d.ts +0 -8
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.d.ts.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.js +0 -44
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.js.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.d.ts +0 -6
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.d.ts.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.js +0 -160
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.js.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.d.ts +0 -8
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.d.ts.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.js +0 -13
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.js.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.d.ts +0 -6
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.d.ts.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.js +0 -260
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.js.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.d.ts +0 -3
- package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.d.ts.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.js +0 -260
- package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.js.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.d.ts +0 -15
- package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.d.ts.map +0 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.js +0 -59
- package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.js.map +0 -1
- package/dist/documentation-observation/application/model/markdown-document.d.ts +0 -70
- package/dist/documentation-observation/application/model/markdown-document.d.ts.map +0 -1
- package/dist/documentation-observation/application/model/markdown-document.js +0 -10
- package/dist/documentation-observation/application/model/markdown-document.js.map +0 -1
- package/dist/documentation-observation/application/ports/markdown-repository.d.ts +0 -18
- package/dist/documentation-observation/application/ports/markdown-repository.d.ts.map +0 -1
- package/dist/documentation-observation/application/ports/markdown-repository.js +0 -2
- package/dist/documentation-observation/application/ports/markdown-repository.js.map +0 -1
- package/dist/legacy-docs-cli-deprecation.d.ts +0 -10
- package/dist/legacy-docs-cli-deprecation.d.ts.map +0 -1
- package/dist/legacy-docs-cli-deprecation.js +0 -36
- package/dist/legacy-docs-cli-deprecation.js.map +0 -1
- package/dist/mutation/index.d.ts +0 -19
- package/dist/mutation/index.d.ts.map +0 -1
- package/dist/mutation/index.js +0 -5
- package/dist/mutation/index.js.map +0 -1
- package/dist/mutation/qualification/index.d.ts +0 -10
- package/dist/mutation/qualification/index.d.ts.map +0 -1
- package/dist/mutation/qualification/index.js +0 -6
- package/dist/mutation/qualification/index.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-absent-file-publication-private.d.ts +0 -19
- package/dist/repository-mutation/adapters/node/node-absent-file-publication-private.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-absent-file-publication-private.js +0 -74
- package/dist/repository-mutation/adapters/node/node-absent-file-publication-private.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-absent-file-publication.d.ts +0 -33
- package/dist/repository-mutation/adapters/node/node-absent-file-publication.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-absent-file-publication.js +0 -174
- package/dist/repository-mutation/adapters/node/node-absent-file-publication.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-bounded-regular-file.d.ts +0 -22
- package/dist/repository-mutation/adapters/node/node-bounded-regular-file.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-bounded-regular-file.js +0 -131
- package/dist/repository-mutation/adapters/node/node-bounded-regular-file.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.d.ts +0 -26
- package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.js +0 -172
- package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.d.ts +0 -15
- package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.js +0 -23
- package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-directory-durability.d.ts +0 -18
- package/dist/repository-mutation/adapters/node/node-directory-durability.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-directory-durability.js +0 -47
- package/dist/repository-mutation/adapters/node/node-directory-durability.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-directory-materialization.d.ts +0 -37
- package/dist/repository-mutation/adapters/node/node-directory-materialization.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-directory-materialization.js +0 -224
- package/dist/repository-mutation/adapters/node/node-directory-materialization.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-existing-repository-ancestors.d.ts +0 -13
- package/dist/repository-mutation/adapters/node/node-existing-repository-ancestors.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-existing-repository-ancestors.js +0 -67
- package/dist/repository-mutation/adapters/node/node-existing-repository-ancestors.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.d.ts +0 -84
- package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.js +0 -232
- package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.d.ts +0 -9
- package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.js +0 -2
- package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.d.ts +0 -6
- package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.js +0 -30
- package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.d.ts +0 -11
- package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.js +0 -159
- package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-state.d.ts +0 -9
- package/dist/repository-mutation/adapters/node/node-known-file-apply-state.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-apply-state.js +0 -21
- package/dist/repository-mutation/adapters/node/node-known-file-apply-state.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.d.ts +0 -9
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.js +0 -203
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.d.ts +0 -17
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.js +0 -22
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-filesystem.d.ts +0 -28
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-filesystem.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-filesystem.js +0 -194
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-filesystem.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.d.ts +0 -15
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.js +0 -47
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.d.ts +0 -29
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.js +0 -72
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.d.ts +0 -31
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.js +0 -254
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.d.ts +0 -13
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.js +0 -210
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.d.ts +0 -15
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.js +0 -172
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.d.ts +0 -12
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.js +0 -17
- package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-filesystem.d.ts +0 -25
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-filesystem.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-filesystem.js +0 -129
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-filesystem.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-inspection.d.ts +0 -12
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-inspection.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-inspection.js +0 -46
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-inspection.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-journal-store.d.ts +0 -21
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-journal-store.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-journal-store.js +0 -178
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-journal-store.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.d.ts +0 -14
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.js +0 -23
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-receipt.d.ts +0 -4
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-receipt.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-receipt.js +0 -43
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-receipt.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.d.ts +0 -8
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.js +0 -57
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.d.ts +0 -14
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.js +0 -138
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.d.ts +0 -15
- package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.js +0 -27
- package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-publish-prepared-absent-file.d.ts +0 -28
- package/dist/repository-mutation/adapters/node/node-publish-prepared-absent-file.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-publish-prepared-absent-file.js +0 -47
- package/dist/repository-mutation/adapters/node/node-publish-prepared-absent-file.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-repository-path.d.ts +0 -2
- package/dist/repository-mutation/adapters/node/node-repository-path.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-repository-path.js +0 -7
- package/dist/repository-mutation/adapters/node/node-repository-path.js.map +0 -1
- package/dist/repository-mutation/adapters/node/node-terminal-evidence-directory.d.ts +0 -22
- package/dist/repository-mutation/adapters/node/node-terminal-evidence-directory.d.ts.map +0 -1
- package/dist/repository-mutation/adapters/node/node-terminal-evidence-directory.js +0 -59
- package/dist/repository-mutation/adapters/node/node-terminal-evidence-directory.js.map +0 -1
- package/dist/repository-mutation/application/model/directory-materialization.d.ts +0 -35
- package/dist/repository-mutation/application/model/directory-materialization.d.ts.map +0 -1
- package/dist/repository-mutation/application/model/directory-materialization.js +0 -11
- package/dist/repository-mutation/application/model/directory-materialization.js.map +0 -1
- package/dist/repository-mutation/application/model/exact-postimage.d.ts +0 -17
- package/dist/repository-mutation/application/model/exact-postimage.d.ts.map +0 -1
- package/dist/repository-mutation/application/model/exact-postimage.js +0 -11
- package/dist/repository-mutation/application/model/exact-postimage.js.map +0 -1
- package/dist/repository-mutation/application/model/known-file-transaction-journal.d.ts +0 -63
- package/dist/repository-mutation/application/model/known-file-transaction-journal.d.ts.map +0 -1
- package/dist/repository-mutation/application/model/known-file-transaction-journal.js +0 -15
- package/dist/repository-mutation/application/model/known-file-transaction-journal.js.map +0 -1
- package/dist/repository-mutation/application/model/known-file-transaction.d.ts +0 -64
- package/dist/repository-mutation/application/model/known-file-transaction.d.ts.map +0 -1
- package/dist/repository-mutation/application/model/known-file-transaction.js +0 -2
- package/dist/repository-mutation/application/model/known-file-transaction.js.map +0 -1
- package/dist/repository-mutation/application/model/path-identity.d.ts +0 -7
- package/dist/repository-mutation/application/model/path-identity.d.ts.map +0 -1
- package/dist/repository-mutation/application/model/path-identity.js +0 -2
- package/dist/repository-mutation/application/model/path-identity.js.map +0 -1
- package/dist/repository-mutation/application/model/repository-path.d.ts +0 -8
- package/dist/repository-mutation/application/model/repository-path.d.ts.map +0 -1
- package/dist/repository-mutation/application/model/repository-path.js +0 -74
- package/dist/repository-mutation/application/model/repository-path.js.map +0 -1
- package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.d.ts +0 -25
- package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.d.ts.map +0 -1
- package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.js +0 -19
- package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.js.map +0 -1
- package/dist/repository-mutation/application/policies/known-file-transaction-envelope.d.ts +0 -8
- package/dist/repository-mutation/application/policies/known-file-transaction-envelope.d.ts.map +0 -1
- package/dist/repository-mutation/application/policies/known-file-transaction-envelope.js +0 -241
- package/dist/repository-mutation/application/policies/known-file-transaction-envelope.js.map +0 -1
- package/dist/repository-mutation/application/policies/known-file-transaction-plan.d.ts +0 -7
- package/dist/repository-mutation/application/policies/known-file-transaction-plan.d.ts.map +0 -1
- package/dist/repository-mutation/application/policies/known-file-transaction-plan.js +0 -215
- package/dist/repository-mutation/application/policies/known-file-transaction-plan.js.map +0 -1
- package/dist/repository-mutation/application/ports/owned-temporary-cleanup-transition.d.ts +0 -7
- package/dist/repository-mutation/application/ports/owned-temporary-cleanup-transition.d.ts.map +0 -1
- package/dist/repository-mutation/application/ports/owned-temporary-cleanup-transition.js +0 -2
- package/dist/repository-mutation/application/ports/owned-temporary-cleanup-transition.js.map +0 -1
- package/dist/scaffolding/adapters/node/filesystem-journal.d.ts +0 -17
- package/dist/scaffolding/adapters/node/filesystem-journal.d.ts.map +0 -1
- package/dist/scaffolding/adapters/node/filesystem-journal.js +0 -176
- package/dist/scaffolding/adapters/node/filesystem-journal.js.map +0 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-reconciliation.d.ts +0 -15
- package/dist/scaffolding/adapters/node/node-scaffold-journal-reconciliation.d.ts.map +0 -1
- package/dist/scaffolding/adapters/node/node-scaffold-journal-reconciliation.js +0 -29
- package/dist/scaffolding/adapters/node/node-scaffold-journal-reconciliation.js.map +0 -1
- package/schemas/document-authoring-profile/v1.schema.json +0 -265
- package/schemas/document-authoring-profile/v2.schema.json +0 -168
- package/schemas/document-authoring-profile/v3.schema.json +0 -200
- package/schemas/document-command-envelope/v1.schema.json +0 -161
- package/schemas/document-command-envelope/v2.schema.json +0 -205
- package/schemas/document-intent/v1.schema.json +0 -102
- package/schemas/document-parent-materialization/v2.schema.json +0 -65
- package/schemas/document-plan/v1.schema.json +0 -162
- package/schemas/document-plan/v2.schema.json +0 -85
- package/schemas/document-receipt/v1.schema.json +0 -141
- package/schemas/document-receipt/v2.schema.json +0 -108
- package/schemas/foundation-transaction-envelope/v3.schema.json +0 -169
- package/schemas/foundation-transaction-envelope/v4.schema.json +0 -164
- package/schemas/foundation-transaction-envelope/v5.schema.json +0 -94
- package/schemas/known-file-transaction-plan/v1.schema.json +0 -65
- package/schemas/known-file-transaction-receipt/v1.schema.json +0 -36
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { compareBinaryStrings } from "../../../../binary-string-comparator.js";
|
|
2
|
+
import { CapabilityInputError } from "../../../../capability-runtime.js";
|
|
3
|
+
import { portablePathIsInside } from "../model/repository-path.js";
|
|
4
|
+
import { SOURCE_DEPENDENCY_RULES } from "../rules.js";
|
|
5
|
+
function topologyError(code, message) {
|
|
6
|
+
throw new CapabilityInputError({
|
|
7
|
+
code,
|
|
8
|
+
message,
|
|
9
|
+
phase: "source-workspace-topology",
|
|
10
|
+
retryable: false
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function owningPackage(path, packages) {
|
|
14
|
+
return packages
|
|
15
|
+
.filter((workspacePackage) => portablePathIsInside(path, workspacePackage.rootPath))
|
|
16
|
+
.toSorted((left, right) => right.rootPath.length - left.rootPath.length ||
|
|
17
|
+
compareBinaryStrings(left.rootPath, right.rootPath))[0];
|
|
18
|
+
}
|
|
19
|
+
function assertGovernedRootOwnership(policy, packages) {
|
|
20
|
+
for (const root of policy.governedRoots.toSorted(compareBinaryStrings)) {
|
|
21
|
+
if (owningPackage(root, packages) === undefined) {
|
|
22
|
+
topologyError("SOURCE_ROOT_OUTSIDE_WORKSPACE", `Governed root is outside the schema v2 packageRoots contract: ${root}.`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function assertBoundaryOwnership(policy, packages) {
|
|
27
|
+
for (const boundary of policy.boundaries) {
|
|
28
|
+
const paths = [...boundary.roots, ...boundary.entrypoints].toSorted(compareBinaryStrings);
|
|
29
|
+
const owners = new Map();
|
|
30
|
+
for (const path of paths) {
|
|
31
|
+
const owner = owningPackage(path, packages);
|
|
32
|
+
if (owner === undefined) {
|
|
33
|
+
topologyError("SOURCE_ROOT_OUTSIDE_WORKSPACE", `Architecture boundary path belongs to no selected package: ${boundary.id}:${path}.`);
|
|
34
|
+
}
|
|
35
|
+
owners.set(owner.rootPath, owner);
|
|
36
|
+
}
|
|
37
|
+
if (owners.size !== 1) {
|
|
38
|
+
topologyError("SOURCE_BOUNDARY_SPANS_PACKAGES", `Architecture boundary spans npm packages: ${boundary.id} (${[...owners.values()]
|
|
39
|
+
.map((owner) => owner.name)
|
|
40
|
+
.toSorted(compareBinaryStrings)
|
|
41
|
+
.join(", ")}).`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function packageHasGovernedRoot(workspacePackage, governedRoots, packages) {
|
|
46
|
+
return governedRoots.some((root) => owningPackage(root, packages)?.rootPath === workspacePackage.rootPath);
|
|
47
|
+
}
|
|
48
|
+
function uncoveredSourceDiagnostics(policy, workspacePackage, packages) {
|
|
49
|
+
return workspacePackage.sourcePaths
|
|
50
|
+
.filter((path) => owningPackage(path, packages)?.rootPath === workspacePackage.rootPath &&
|
|
51
|
+
!policy.governedRoots.some((root) => portablePathIsInside(path, root)))
|
|
52
|
+
.toSorted(compareBinaryStrings)
|
|
53
|
+
.map((path) => ({
|
|
54
|
+
ruleId: SOURCE_DEPENDENCY_RULES.unclassifiedSourceFile.id,
|
|
55
|
+
severity: SOURCE_DEPENDENCY_RULES.unclassifiedSourceFile.severity,
|
|
56
|
+
subject: path,
|
|
57
|
+
message: `Workspace source file is outside declared governed roots: ${path}.`,
|
|
58
|
+
location: { path },
|
|
59
|
+
relatedLocations: [{ path: workspacePackage.manifestPath }],
|
|
60
|
+
evidence: [
|
|
61
|
+
{ kind: "workspace-package", value: workspacePackage.name },
|
|
62
|
+
{ kind: "package-root", value: workspacePackage.rootPath }
|
|
63
|
+
],
|
|
64
|
+
remediation: SOURCE_DEPENDENCY_RULES.unclassifiedSourceFile.remediation,
|
|
65
|
+
requiresArchitectureReview: SOURCE_DEPENDENCY_RULES.unclassifiedSourceFile.requiresArchitectureReview
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
export function evaluateSourceWorkspaceCoverage(policy, topology) {
|
|
69
|
+
assertGovernedRootOwnership(policy, topology.packages);
|
|
70
|
+
assertBoundaryOwnership(policy, topology.packages);
|
|
71
|
+
const diagnostics = [];
|
|
72
|
+
for (const workspacePackage of topology.packages.toSorted((left, right) => compareBinaryStrings(left.rootPath, right.rootPath))) {
|
|
73
|
+
if (!packageHasGovernedRoot(workspacePackage, policy.governedRoots, topology.packages) &&
|
|
74
|
+
workspacePackage.rootPath !== ".") {
|
|
75
|
+
diagnostics.push({
|
|
76
|
+
ruleId: SOURCE_DEPENDENCY_RULES.uncoveredWorkspacePackageRoot.id,
|
|
77
|
+
severity: SOURCE_DEPENDENCY_RULES.uncoveredWorkspacePackageRoot.severity,
|
|
78
|
+
subject: workspacePackage.rootPath,
|
|
79
|
+
message: `Workspace package root has no declared governed source root: ${workspacePackage.rootPath}.`,
|
|
80
|
+
location: { path: workspacePackage.manifestPath },
|
|
81
|
+
relatedLocations: [],
|
|
82
|
+
evidence: [
|
|
83
|
+
{ kind: "workspace-package", value: workspacePackage.name },
|
|
84
|
+
{ kind: "package-root", value: workspacePackage.rootPath }
|
|
85
|
+
],
|
|
86
|
+
remediation: SOURCE_DEPENDENCY_RULES.uncoveredWorkspacePackageRoot.remediation,
|
|
87
|
+
requiresArchitectureReview: SOURCE_DEPENDENCY_RULES.uncoveredWorkspacePackageRoot
|
|
88
|
+
.requiresArchitectureReview
|
|
89
|
+
});
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
diagnostics.push(...uncoveredSourceDiagnostics(policy, workspacePackage, topology.packages));
|
|
93
|
+
}
|
|
94
|
+
return Object.freeze(diagnostics);
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=evaluate-source-workspace-coverage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluate-source-workspace-coverage.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/policies/evaluate-source-workspace-coverage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,OAAO,EAA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,sBAAsB,CACrB,gBAAgB,EAChB,MAAM,CAAC,aAAa,EACpB,QAAQ,CAAC,QAAQ,CAClB;YACD,gBAAgB,CAAC,QAAQ,KAAK,GAAG,EACjC,CAAC;YACD,WAAW,CAAC,IAAI,CAAC;gBACf,MAAM,EAAE,uBAAuB,CAAC,6BAA6B,CAAC,EAAE;gBAChE,QAAQ,EAAE,uBAAuB,CAAC,6BAA6B,CAAC,QAAQ;gBACxE,OAAO,EAAE,gBAAgB,CAAC,QAAQ;gBAClC,OAAO,EAAE,gEAAgE,gBAAgB,CAAC,QAAQ,GAAG;gBACrG,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,CAAC,YAAY,EAAE;gBACjD,gBAAgB,EAAE,EAAE;gBACpB,QAAQ,EAAE;oBACR,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAAE;oBAC3D,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAE;iBAC3D;gBACD,WAAW,EAAE,uBAAuB,CAAC,6BAA6B,CAAC,WAAW;gBAC9E,0BAA0B,EACxB,uBAAuB,CAAC,6BAA6B;qBAClD,0BAA0B;aAChC,CAAC,CAAC;YACH,SAAS;QACX,CAAC;QACD,WAAW,CAAC,IAAI,CACd,GAAG,0BAA0B,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAC3E,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AACpC,CAAC"}
|
package/dist/capabilities/source-dependencies/application/ports/source-dependency-resolver.d.ts
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import type { WorkspaceInventory } from "../../../../workspace-inventory/application/model/workspace-inventory.js";
|
|
2
2
|
import type { ClassifiedSourceFile, ResolvedSourceDependency, SourceDependencyReference } from "../model/source-workspace.js";
|
|
3
3
|
export interface ResolveSourceDependencyInput {
|
|
4
|
+
readonly consumerRoot: string;
|
|
5
|
+
readonly consumerRootIdentity?: {
|
|
6
|
+
readonly device: string;
|
|
7
|
+
readonly inode: string;
|
|
8
|
+
};
|
|
9
|
+
readonly enforceWorkspaceBindings?: boolean;
|
|
4
10
|
readonly file: ClassifiedSourceFile;
|
|
5
11
|
readonly governedFilePaths: ReadonlySet<string>;
|
|
12
|
+
readonly governedWorkspacePackageManifestPaths?: ReadonlySet<string>;
|
|
6
13
|
readonly inventory: WorkspaceInventory;
|
|
14
|
+
readonly packageTypeScopes?: readonly {
|
|
15
|
+
readonly moduleType: "commonjs" | "module";
|
|
16
|
+
readonly rootPath: string;
|
|
17
|
+
}[];
|
|
7
18
|
readonly reference: SourceDependencyReference;
|
|
19
|
+
readonly workspacePackageRootIdentity?: {
|
|
20
|
+
readonly device: string;
|
|
21
|
+
readonly inode: string;
|
|
22
|
+
};
|
|
8
23
|
}
|
|
9
24
|
export interface SourceDependencyResolver {
|
|
10
25
|
resolve(input: ResolveSourceDependencyInput): ResolvedSourceDependency;
|
package/dist/capabilities/source-dependencies/application/ports/source-dependency-resolver.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-dependency-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/ports/source-dependency-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAC;AACnH,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"source-dependency-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/ports/source-dependency-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAC;AACnH,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,oBAAoB,CAAC,EAAE;QAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAC5C,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,CAAC,qCAAqC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrE,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS;QACpC,QAAQ,CAAC,UAAU,EAAE,UAAU,GAAG,QAAQ,CAAC;QAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;KAC3B,EAAE,CAAC;IACJ,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;IAC9C,QAAQ,CAAC,4BAA4B,CAAC,EAAE;QACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,KAAK,EAAE,4BAA4B,GAAG,wBAAwB,CAAC;CACxE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { SourceWorkspaceTopology } from "../model/source-workspace-topology.js";
|
|
2
|
+
import type { WorkspaceInventory } from "../../../../workspace-inventory/application/model/workspace-inventory.js";
|
|
3
|
+
export interface SourceBoundaryRootDescription {
|
|
4
|
+
readonly boundaryId: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
}
|
|
7
|
+
export interface InspectSourceWorkspaceTopologyInput {
|
|
8
|
+
readonly consumerRoot: string;
|
|
9
|
+
readonly workspaceManifestPath: string;
|
|
10
|
+
readonly packageRoots: readonly string[];
|
|
11
|
+
readonly governedRoots: readonly string[];
|
|
12
|
+
readonly boundaryRoots: readonly SourceBoundaryRootDescription[];
|
|
13
|
+
readonly signal?: AbortSignal;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Builds the workspace inventory from the already-read pnpm workspace
|
|
17
|
+
* snapshot and the exact, contained manifest paths selected by topology
|
|
18
|
+
* discovery. Keeping this operation separate prevents a second manifest read.
|
|
19
|
+
*/
|
|
20
|
+
export interface SourceWorkspaceInventorySnapshotReader {
|
|
21
|
+
discoverManifestPathsFromManifest(consumerRoot: string, workspaceManifest: unknown, signal?: AbortSignal): Promise<readonly string[]>;
|
|
22
|
+
readFromManifestPaths(consumerRoot: string, workspaceManifest: unknown, manifestPaths: readonly string[], signal?: AbortSignal): Promise<WorkspaceInventory>;
|
|
23
|
+
}
|
|
24
|
+
export interface SourceWorkspaceTopologyInspector {
|
|
25
|
+
inspect(input: InspectSourceWorkspaceTopologyInput): Promise<SourceWorkspaceTopology>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=source-workspace-topology-inspector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-workspace-topology-inspector.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAC;AAEnH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,aAAa,EAAE,SAAS,6BAA6B,EAAE,CAAC;IACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,sCAAsC;IACrD,iCAAiC,CAC/B,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,OAAO,EAC1B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAE9B,qBAAqB,CACnB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,OAAO,EAC1B,aAAa,EAAE,SAAS,MAAM,EAAE,EAChC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,gCAAgC;IAC/C,OAAO,CACL,KAAK,EAAE,mCAAmC,GACzC,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-workspace-topology-inspector.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.ts"],"names":[],"mappings":""}
|
|
@@ -29,6 +29,7 @@ export declare const SOURCE_DEPENDENCY_RULES: Readonly<{
|
|
|
29
29
|
runtimeImportFromDevelopmentDependency: SourceDependencyRuleMetadata;
|
|
30
30
|
selfPackageImportBoundaryUnresolved: SourceDependencyRuleMetadata;
|
|
31
31
|
unsupportedImportSpecifier: SourceDependencyRuleMetadata;
|
|
32
|
+
uncoveredWorkspacePackageRoot: SourceDependencyRuleMetadata;
|
|
32
33
|
unclassifiedSourceFile: SourceDependencyRuleMetadata;
|
|
33
34
|
}>;
|
|
34
35
|
export declare const SOURCE_DEPENDENCY_RULES_BY_ID: ReadonlyMap<string, SourceDependencyRuleMetadata>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/application/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,0BAA0B,EAAE,OAAO,CAAC;CAC9C;AAkBD,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/application/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,0BAA0B,EAAE,OAAO,CAAC;CAC9C;AAkBD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EAsIlC,CAAC;AAEH,eAAO,MAAM,6BAA6B,EAAE,WAAW,CACrD,MAAM,EACN,4BAA4B,CAI7B,CAAC"}
|
|
@@ -31,6 +31,7 @@ export const SOURCE_DEPENDENCY_RULES = Object.freeze({
|
|
|
31
31
|
runtimeImportFromDevelopmentDependency: rule("runtime-import-from-development-dependency", "Published runtime source cannot depend only on development dependencies.", "Move the dependency to an appropriate runtime dependency section."),
|
|
32
32
|
selfPackageImportBoundaryUnresolved: rule("self-package-import-boundary-unresolved", "A package-name import back into the importing workspace package does not reveal the target source boundary.", "Use a relative import governed by declared boundary entrypoints, or move the public surface into a separate workspace package.", true),
|
|
33
33
|
unsupportedImportSpecifier: rule("unsupported-import-specifier", "Unsupported specifiers cannot be classified reliably by the architecture gate.", "Use relative, node builtin, declared external, or governed workspace package imports.", true),
|
|
34
|
+
uncoveredWorkspacePackageRoot: rule("uncovered-workspace-package-root", "Every package selected by the schema v2 packageRoots contract must declare governed source scope.", "Add a governed source root and non-overlapping boundary for the package, or remove the package from the workspace glob selection.", true),
|
|
34
35
|
unclassifiedSourceFile: rule("unclassified-source-file", "Every governed source file must belong to exactly one declared architecture boundary.", "Classify the file in an existing boundary or introduce an explicitly reviewed boundary.", true)
|
|
35
36
|
});
|
|
36
37
|
export const SOURCE_DEPENDENCY_RULES_BY_ID = createUniqueRegistry("rule", Object.values(SOURCE_DEPENDENCY_RULES).map((metadata) => [metadata.id, metadata]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/application/rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAWnE,SAAS,IAAI,CACX,MAAc,EACd,SAAiB,EACjB,WAAmB,EACnB,0BAA0B,GAAG,K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AAoB,EAAE,IAAI,CACxB,yBAAyB,EACzB,oGAAoG,EACpG,gGAAgG,EAChG,IAAI,CACL;IACD,yBAAyB,EAAE,IAAI,CAC7B,8BAA8B,EAC9B,+DAA+D,EAC/D,yEAAyE,EACzE,IAAI,CACL;IACD,gBAAgB,EAAE,IAAI,CACpB,oBAAoB,EACpB,8EAA8E,EAC9E,kEAAkE,CACnE;IACD,4BAA4B,EAAE,IAAI,CAChC,gCAAgC,EAChC,qEAAqE,EACrE,0FAA0F,CAC3F;IACD,6BAA6B,EAAE,IAAI,CACjC,iCAAiC,EACjC,6EAA6E,EAC7E,4EAA4E,CAC7E;IACD,qBAAqB,EAAE,IAAI,CACzB,yBAAyB,EACzB,4EAA4E,EAC5E,yEAAyE,CAC1E;IACD,0BAA0B,EAAE,IAAI,CAC9B,8BAA8B,EAC9B,+EAA+E,EAC/E,uFAAuF,EACvF,IAAI,CACL;IACD,sCAAsC,EAAE,IAAI,CAC1C,4CAA4C,EAC5C,0EAA0E,EAC1E,mEAAmE,CACpE;IACD,mCAAmC,EAAE,IAAI,CACvC,yCAAyC,EACzC,6GAA6G,EAC7G,gIAAgI,EAChI,IAAI,CACL;IACD,0BAA0B,EAAE,IAAI,CAC9B,8BAA8B,EAC9B,gFAAgF,EAChF,uFAAuF,EACvF,IAAI,CACL;IACD,sBAAsB,EAAE,IAAI,CAC1B,0BAA0B,EAC1B,uFAAuF,EACvF,yFAAyF,EACzF,IAAI,CACL;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAGtC,oBAAoB,CACtB,MAAM,EACN,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAClF,CAAC"}
|
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/application/rules.ts"],"names":[],"mappings":"AACA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,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAClF,CAAC"}
|
package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { WorkspaceInventoryReader } from "../../../../workspace-inventory/a
|
|
|
4
4
|
import type { SourceArchitecturePolicy } from "../model/source-workspace.js";
|
|
5
5
|
import type { SourceDependencyParser } from "../ports/source-dependency-parser.js";
|
|
6
6
|
import type { SourceDependencyResolver } from "../ports/source-dependency-resolver.js";
|
|
7
|
+
import type { SourceWorkspaceTopologyInspector } from "../ports/source-workspace-topology-inspector.js";
|
|
7
8
|
export interface AnalyzeSourceDependenciesInput {
|
|
8
9
|
readonly consumerRoot: string;
|
|
9
10
|
readonly policy: SourceArchitecturePolicy;
|
|
@@ -14,6 +15,7 @@ export interface AnalyzeSourceDependenciesDependencies {
|
|
|
14
15
|
readonly parser: SourceDependencyParser;
|
|
15
16
|
readonly resolver: SourceDependencyResolver;
|
|
16
17
|
readonly sourceReader: SourceTreeReader;
|
|
18
|
+
readonly topologyInspector: SourceWorkspaceTopologyInspector;
|
|
17
19
|
}
|
|
18
20
|
export declare function analyzeSourceDependencies(input: AnalyzeSourceDependenciesInput, dependencies: AnalyzeSourceDependenciesDependencies): Promise<readonly FoundationDiagnostic[]>;
|
|
19
21
|
//# sourceMappingURL=analyze-source-dependencies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze-source-dependencies.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sEAAsE,CAAC;
|
|
1
|
+
{"version":3,"file":"analyze-source-dependencies.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sEAAsE,CAAC;AAK7G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AAKhI,OAAO,KAAK,EAIV,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AAKxG,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED,MAAM,WAAW,qCAAqC;IACpD,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAC;IACnD,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC;IACxC,QAAQ,CAAC,iBAAiB,EAAE,gCAAgC,CAAC;CAC9D;AA6MD,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,8BAA8B,EACrC,YAAY,EAAE,qCAAqC,GAClD,OAAO,CAAC,SAAS,oBAAoB,EAAE,CAAC,CAsF1C"}
|
package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { compareBinaryStrings } from "../../../../binary-string-comparator.js";
|
|
2
2
|
import { assertNotCancelled } from "../../../../cancellation.js";
|
|
3
3
|
import { CapabilityInputError } from "../../../../capability-runtime.js";
|
|
4
|
-
import {
|
|
4
|
+
import { exactAvailablePackageExport, exactPackageExportTargetPaths } from "../../../../workspace-inventory/application/policies/package-export-matcher.js";
|
|
5
|
+
import { normalizeRepositoryPath, pathIsInside, portablePathIsInside, portableRepositoryPathIdentity } from "../model/repository-path.js";
|
|
5
6
|
import { evaluateSourceDependencies } from "../policies/evaluate-source-dependencies.js";
|
|
7
|
+
import { evaluateSourceWorkspaceCoverage } from "../policies/evaluate-source-workspace-coverage.js";
|
|
6
8
|
import { buildObservedSourceGraph } from "./build-observed-source-graph.js";
|
|
7
|
-
function pathInside(path, root) {
|
|
8
|
-
return pathIsInside(path, root);
|
|
9
|
+
function pathInside(path, root, portable) {
|
|
10
|
+
return portable ? portablePathIsInside(path, root) : pathIsInside(path, root);
|
|
9
11
|
}
|
|
10
|
-
function matchingBoundarySpecificity(path, boundary) {
|
|
12
|
+
function matchingBoundarySpecificity(path, boundary, portable) {
|
|
11
13
|
const matchingRoots = boundary.roots
|
|
12
|
-
.filter((root) => pathInside(path, root))
|
|
14
|
+
.filter((root) => pathInside(path, root, portable))
|
|
13
15
|
.map((root) => normalizeRepositoryPath(root).length);
|
|
14
16
|
return matchingRoots.length === 0 ? undefined : Math.max(...matchingRoots);
|
|
15
17
|
}
|
|
16
18
|
function selectBoundary(file, policy) {
|
|
17
19
|
const matches = [];
|
|
18
20
|
for (const boundary of policy.boundaries) {
|
|
19
|
-
const specificity = matchingBoundarySpecificity(file.path, boundary);
|
|
21
|
+
const specificity = matchingBoundarySpecificity(file.path, boundary, policy.schemaVersion === 2);
|
|
20
22
|
if (specificity !== undefined) {
|
|
21
23
|
matches.push({ boundary, specificity });
|
|
22
24
|
}
|
|
@@ -24,6 +26,18 @@ function selectBoundary(file, policy) {
|
|
|
24
26
|
if (matches.length === 0) {
|
|
25
27
|
return undefined;
|
|
26
28
|
}
|
|
29
|
+
if (policy.schemaVersion === 2 && matches.length > 1) {
|
|
30
|
+
const candidateIds = matches
|
|
31
|
+
.map((match) => match.boundary.id)
|
|
32
|
+
.toSorted(compareBinaryStrings)
|
|
33
|
+
.join(", ");
|
|
34
|
+
throw new CapabilityInputError({
|
|
35
|
+
code: "SOURCE_BOUNDARY_AMBIGUOUS",
|
|
36
|
+
message: `Schema v2 source file matches multiple architecture boundaries: ${file.path} (${candidateIds}).`,
|
|
37
|
+
phase: "source-boundary-classification",
|
|
38
|
+
retryable: false
|
|
39
|
+
});
|
|
40
|
+
}
|
|
27
41
|
const highestSpecificity = Math.max(...matches.map((match) => match.specificity));
|
|
28
42
|
const mostSpecific = matches
|
|
29
43
|
.filter((match) => match.specificity === highestSpecificity)
|
|
@@ -39,11 +53,11 @@ function selectBoundary(file, policy) {
|
|
|
39
53
|
}
|
|
40
54
|
return mostSpecific[0]?.boundary;
|
|
41
55
|
}
|
|
42
|
-
function containingPackage(path, packages) {
|
|
56
|
+
function containingPackage(path, packages, portable) {
|
|
43
57
|
return packages
|
|
44
58
|
.filter((workspacePackage) => workspacePackage.rootPath === "."
|
|
45
59
|
? true
|
|
46
|
-
: pathInside(path, workspacePackage.rootPath))
|
|
60
|
+
: pathInside(path, workspacePackage.rootPath, portable))
|
|
47
61
|
.toSorted((left, right) => right.rootPath.length - left.rootPath.length ||
|
|
48
62
|
compareBinaryStrings(left.name, right.name))[0];
|
|
49
63
|
}
|
|
@@ -56,7 +70,7 @@ function classifyFiles(files, policy, packages, parser, signal) {
|
|
|
56
70
|
path: normalizeRepositoryPath(file.path)
|
|
57
71
|
};
|
|
58
72
|
const boundary = selectBoundary(normalizedFile, policy);
|
|
59
|
-
const workspacePackage = containingPackage(normalizedFile.path, packages);
|
|
73
|
+
const workspacePackage = containingPackage(normalizedFile.path, packages, policy.schemaVersion === 2);
|
|
60
74
|
if (boundary === undefined || workspacePackage === undefined) {
|
|
61
75
|
continue;
|
|
62
76
|
}
|
|
@@ -83,7 +97,96 @@ function assertInventoryUsable(packages) {
|
|
|
83
97
|
names.add(workspacePackage.name);
|
|
84
98
|
}
|
|
85
99
|
}
|
|
100
|
+
function buildPackageExportBoundaries(policy, inventory, graph) {
|
|
101
|
+
if (policy.schemaVersion !== 2) {
|
|
102
|
+
return new Map();
|
|
103
|
+
}
|
|
104
|
+
const packageNamesByBoundary = new Map();
|
|
105
|
+
for (const node of graph.nodes) {
|
|
106
|
+
const names = packageNamesByBoundary.get(node.boundaryId) ?? new Set();
|
|
107
|
+
names.add(node.workspacePackageName);
|
|
108
|
+
packageNamesByBoundary.set(node.boundaryId, names);
|
|
109
|
+
}
|
|
110
|
+
const nodesByPortablePath = new Map(graph.nodes.map((node) => [portableRepositoryPathIdentity(node.path), node]));
|
|
111
|
+
const mutable = new Map();
|
|
112
|
+
for (const boundary of policy.boundaries) {
|
|
113
|
+
if (boundary.packageExports.length === 0) {
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
const names = [...(packageNamesByBoundary.get(boundary.id) ?? [])];
|
|
117
|
+
if (names.length !== 1) {
|
|
118
|
+
throw new CapabilityInputError({
|
|
119
|
+
code: "SOURCE_EXPORT_BOUNDARY_INVALID",
|
|
120
|
+
message: `Package export claims require one exact package owner: ${boundary.id}.`,
|
|
121
|
+
phase: "source-boundary-classification",
|
|
122
|
+
retryable: false
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
const packageName = names[0];
|
|
126
|
+
const workspacePackage = inventory.packages.find(({ name }) => name === packageName);
|
|
127
|
+
if (packageName === undefined || workspacePackage === undefined) {
|
|
128
|
+
throw new CapabilityInputError({ code: "SOURCE_EXPORT_BOUNDARY_INVALID", message: `Package export claim has no workspace package owner: ${boundary.id}.`, phase: "source-boundary-classification", retryable: false });
|
|
129
|
+
}
|
|
130
|
+
const bySubpath = mutable.get(packageName) ?? new Map();
|
|
131
|
+
for (const subpath of boundary.packageExports) {
|
|
132
|
+
if (!exactAvailablePackageExport(workspacePackage.exportSurface.entries, subpath)) {
|
|
133
|
+
throw new CapabilityInputError({ code: "SOURCE_EXPORT_BOUNDARY_INVALID", message: `Package export claim is stale or not exported: ${packageName}:${subpath}.`, phase: "source-boundary-classification", retryable: false });
|
|
134
|
+
}
|
|
135
|
+
if (bySubpath.has(subpath)) {
|
|
136
|
+
throw new CapabilityInputError({ code: "SOURCE_EXPORT_BOUNDARY_INVALID", message: `Package export has duplicate boundary ownership: ${packageName}:${subpath}.`, phase: "source-boundary-classification", retryable: false });
|
|
137
|
+
}
|
|
138
|
+
for (const target of exactPackageExportTargetPaths(workspacePackage.exportSurface.entries, subpath)) {
|
|
139
|
+
const targetPath = normalizeRepositoryPath(`${workspacePackage.rootPath}/${target.slice(2)}`);
|
|
140
|
+
const observedOwner = nodesByPortablePath.get(portableRepositoryPathIdentity(targetPath));
|
|
141
|
+
if (observedOwner !== undefined && observedOwner.boundaryId !== boundary.id) {
|
|
142
|
+
throw new CapabilityInputError({ code: "SOURCE_EXPORT_BOUNDARY_INVALID", message: `Package export claim contradicts observed source ownership: ${packageName}:${subpath}.`, phase: "source-boundary-classification", retryable: false });
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
bySubpath.set(subpath, boundary.id);
|
|
146
|
+
}
|
|
147
|
+
mutable.set(packageName, bySubpath);
|
|
148
|
+
}
|
|
149
|
+
return new Map([...mutable].map(([name, entries]) => [name, new Map(entries)]));
|
|
150
|
+
}
|
|
86
151
|
export async function analyzeSourceDependencies(input, dependencies) {
|
|
152
|
+
if (input.policy.schemaVersion === 2) {
|
|
153
|
+
const topology = await dependencies.topologyInspector.inspect({
|
|
154
|
+
consumerRoot: input.consumerRoot,
|
|
155
|
+
workspaceManifestPath: input.policy.workspaceManifestPath,
|
|
156
|
+
packageRoots: input.policy.packageRoots,
|
|
157
|
+
governedRoots: input.policy.governedRoots,
|
|
158
|
+
boundaryRoots: input.policy.boundaries.flatMap((boundary) => boundary.roots.map((path) => ({ boundaryId: boundary.id, path }))),
|
|
159
|
+
...(input.signal === undefined ? {} : { signal: input.signal })
|
|
160
|
+
});
|
|
161
|
+
const { inventory, packageTypeScopes, sourceFiles } = topology;
|
|
162
|
+
assertInventoryUsable(inventory.packages);
|
|
163
|
+
const coverageDiagnostics = evaluateSourceWorkspaceCoverage(input.policy, topology);
|
|
164
|
+
const classifiedFiles = classifyFiles(sourceFiles, input.policy, inventory.packages, dependencies.parser, input.signal);
|
|
165
|
+
const graph = buildObservedSourceGraph({
|
|
166
|
+
consumerRoot: topology.canonicalConsumerRoot,
|
|
167
|
+
consumerRootIdentity: topology.consumerRootIdentity,
|
|
168
|
+
enforceWorkspaceBindings: true,
|
|
169
|
+
inventory,
|
|
170
|
+
packageTypeScopes,
|
|
171
|
+
governedWorkspacePackageManifestPaths: new Set(topology.packages.map(({ manifestPath }) => manifestPath)),
|
|
172
|
+
allSourceFiles: sourceFiles,
|
|
173
|
+
classifiedFiles,
|
|
174
|
+
resolver: dependencies.resolver,
|
|
175
|
+
workspacePackageRootIdentities: new Map(topology.packages.map(({ filesystemIdentity, manifestPath }) => [
|
|
176
|
+
manifestPath,
|
|
177
|
+
filesystemIdentity
|
|
178
|
+
])),
|
|
179
|
+
...(input.signal === undefined ? {} : { signal: input.signal })
|
|
180
|
+
});
|
|
181
|
+
return [
|
|
182
|
+
...coverageDiagnostics,
|
|
183
|
+
...evaluateSourceDependencies({
|
|
184
|
+
policy: input.policy,
|
|
185
|
+
graph,
|
|
186
|
+
packageExportBoundaries: buildPackageExportBoundaries(input.policy, inventory, graph)
|
|
187
|
+
})
|
|
188
|
+
];
|
|
189
|
+
}
|
|
87
190
|
const [inventory, sourceFiles] = await Promise.all([
|
|
88
191
|
dependencies.inventoryReader.read(input.consumerRoot, input.policy.workspaceManifestPath, input.signal),
|
|
89
192
|
dependencies.sourceReader.read(input.consumerRoot, input.policy.governedRoots, input.signal)
|
|
@@ -91,6 +194,7 @@ export async function analyzeSourceDependencies(input, dependencies) {
|
|
|
91
194
|
assertInventoryUsable(inventory.packages);
|
|
92
195
|
const classifiedFiles = classifyFiles(sourceFiles, input.policy, inventory.packages, dependencies.parser, input.signal);
|
|
93
196
|
const graph = buildObservedSourceGraph({
|
|
197
|
+
consumerRoot: input.consumerRoot,
|
|
94
198
|
inventory,
|
|
95
199
|
allSourceFiles: sourceFiles,
|
|
96
200
|
classifiedFiles,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze-source-dependencies.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"analyze-source-dependencies.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AASzE,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,gFAAgF,CAAC;AAOxF,OAAO,EACL,uBAAuB,EACvB,YAAY,EACZ,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAgB5E,SAAS,UAAU,CAAC,IAAY,EAAE,IAAY,EAAE,QAAiB;IAC/D,OAAO,QAAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,YAA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Y,EAClB,KAAK,CAAC,MAAM,CAAC,qBAAqB,EAClC,KAAK,CAAC,MAAM,CACb;QACD,YAAY,CAAC,YAAY,CAAC,IAAI,CAC5B,KAAK,CAAC,YAAY,EAClB,KAAK,CAAC,MAAM,CAAC,aAAa,EAC1B,KAAK,CAAC,MAAM,CACb;KACF,CAAC,CAAC;IACH,qBAAqB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,eAAe,GAAG,aAAa,CACnC,WAAW,EACX,KAAK,CAAC,MAAM,EACZ,SAAS,CAAC,QAAQ,EAClB,YAAY,CAAC,MAAM,EACnB,KAAK,CAAC,MAAM,CACb,CAAC;IACF,MAAM,KAAK,GAAG,wBAAwB,CAAC;QACrC,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,SAAS;QACT,cAAc,EAAE,WAAW;QAC3B,eAAe;QACf,QAAQ,EAAE,YAAY,CAAC,QAAQ;QAC/B,GAAG,CAAC,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;KAChE,CAAC,CAAC;IACH,OAAO,0BAA0B,CAAC;QAChC,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,KAAK;KACN,CAAC,CAAC;AACL,CAAC"}
|
package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.d.ts
CHANGED
|
@@ -3,11 +3,26 @@ import type { WorkspaceInventory } from "../../../../workspace-inventory/applica
|
|
|
3
3
|
import type { ClassifiedSourceFile, ObservedSourceGraph } from "../model/source-workspace.js";
|
|
4
4
|
import type { SourceDependencyResolver } from "../ports/source-dependency-resolver.js";
|
|
5
5
|
export interface BuildObservedSourceGraphInput {
|
|
6
|
+
readonly consumerRoot?: string;
|
|
7
|
+
readonly consumerRootIdentity?: {
|
|
8
|
+
readonly device: string;
|
|
9
|
+
readonly inode: string;
|
|
10
|
+
};
|
|
11
|
+
readonly enforceWorkspaceBindings?: boolean;
|
|
6
12
|
readonly inventory: WorkspaceInventory;
|
|
13
|
+
readonly packageTypeScopes?: readonly {
|
|
14
|
+
readonly moduleType: "commonjs" | "module";
|
|
15
|
+
readonly rootPath: string;
|
|
16
|
+
}[];
|
|
17
|
+
readonly governedWorkspacePackageManifestPaths?: ReadonlySet<string>;
|
|
7
18
|
readonly allSourceFiles: readonly SourceFileSnapshot[];
|
|
8
19
|
readonly classifiedFiles: readonly ClassifiedSourceFile[];
|
|
9
20
|
readonly resolver: SourceDependencyResolver;
|
|
10
21
|
readonly signal?: AbortSignal;
|
|
22
|
+
readonly workspacePackageRootIdentities?: ReadonlyMap<string, {
|
|
23
|
+
readonly device: string;
|
|
24
|
+
readonly inode: string;
|
|
25
|
+
}>;
|
|
11
26
|
}
|
|
12
27
|
/**
|
|
13
28
|
* Collects all static evidence once. Later policies only inspect this immutable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-observed-source-graph.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wEAAwE,CAAC;AACjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAC;AAInH,OAAO,KAAK,EACV,oBAAoB,EAGpB,mBAAmB,EAMpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,cAAc,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACvD,QAAQ,CAAC,eAAe,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC1D,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"build-observed-source-graph.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wEAAwE,CAAC;AACjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAC;AAInH,OAAO,KAAK,EACV,oBAAoB,EAGpB,mBAAmB,EAMpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,oBAAoB,CAAC,EAAE;QAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAC5C,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS;QACpC,QAAQ,CAAC,UAAU,EAAE,UAAU,GAAG,QAAQ,CAAC;QAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;KAC3B,EAAE,CAAC;IACJ,QAAQ,CAAC,qCAAqC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrE,QAAQ,CAAC,cAAc,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACvD,QAAQ,CAAC,eAAe,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC1D,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,8BAA8B,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE;QAC5D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACxB,CAAC,CAAC;CACJ;AAuKD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,6BAA6B,GACnC,mBAAmB,CAkIrB"}
|
package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.js
CHANGED
|
@@ -51,6 +51,8 @@ function resolutionKey(resolution) {
|
|
|
51
51
|
return `${resolution.kind}:${resolution.packageName}:${resolution.declaration}`;
|
|
52
52
|
case "local-file":
|
|
53
53
|
return `${resolution.kind}:${resolution.path}:${resolution.targetBoundaryId ?? ""}`;
|
|
54
|
+
case "generated-output-candidate":
|
|
55
|
+
return `${resolution.kind}:${resolution.path}:${resolution.workspacePackageName}`;
|
|
54
56
|
case "self-workspace-package":
|
|
55
57
|
return `${resolution.kind}:${resolution.workspacePackageName}:${resolution.subpath}`;
|
|
56
58
|
case "unsupported":
|
|
@@ -103,6 +105,13 @@ function normalizeResolution(resolved, governedFilePaths, nodesByPath) {
|
|
|
103
105
|
targetBoundaryId: targetNode?.boundaryId ?? null
|
|
104
106
|
});
|
|
105
107
|
}
|
|
108
|
+
case "generated-output-candidate":
|
|
109
|
+
return Object.freeze({
|
|
110
|
+
kind: resolved.kind,
|
|
111
|
+
path: normalizeRepositoryPath(resolved.path),
|
|
112
|
+
workspacePackageName: resolved.workspacePackage.name,
|
|
113
|
+
workspacePackageManifestPath: resolved.workspacePackage.manifestPath
|
|
114
|
+
});
|
|
106
115
|
case "self-workspace-package":
|
|
107
116
|
return Object.freeze({
|
|
108
117
|
kind: resolved.kind,
|
|
@@ -181,6 +190,7 @@ export function buildObservedSourceGraph(input) {
|
|
|
181
190
|
}
|
|
182
191
|
for (const reference of file.parsed.references) {
|
|
183
192
|
assertNotCancelled(input.signal);
|
|
193
|
+
const workspacePackageRootIdentity = input.workspacePackageRootIdentities?.get(file.workspacePackage.manifestPath);
|
|
184
194
|
edges.push(Object.freeze({
|
|
185
195
|
fromPath: node.path,
|
|
186
196
|
fromBoundaryId: node.boundaryId,
|
|
@@ -192,10 +202,26 @@ export function buildObservedSourceGraph(input) {
|
|
|
192
202
|
start: reference.start,
|
|
193
203
|
end: reference.end,
|
|
194
204
|
resolution: normalizeResolution(input.resolver.resolve({
|
|
205
|
+
consumerRoot: input.consumerRoot ?? ".",
|
|
206
|
+
...(input.consumerRootIdentity === undefined
|
|
207
|
+
? {}
|
|
208
|
+
: { consumerRootIdentity: input.consumerRootIdentity }),
|
|
209
|
+
enforceWorkspaceBindings: input.enforceWorkspaceBindings ?? false,
|
|
195
210
|
file,
|
|
196
211
|
governedFilePaths,
|
|
212
|
+
...(input.governedWorkspacePackageManifestPaths === undefined
|
|
213
|
+
? {}
|
|
214
|
+
: {
|
|
215
|
+
governedWorkspacePackageManifestPaths: input.governedWorkspacePackageManifestPaths
|
|
216
|
+
}),
|
|
197
217
|
inventory: input.inventory,
|
|
198
|
-
|
|
218
|
+
...(input.packageTypeScopes === undefined
|
|
219
|
+
? {}
|
|
220
|
+
: { packageTypeScopes: input.packageTypeScopes }),
|
|
221
|
+
reference,
|
|
222
|
+
...(workspacePackageRootIdentity === undefined
|
|
223
|
+
? {}
|
|
224
|
+
: { workspacePackageRootIdentity })
|
|
199
225
|
}), governedFilePaths, nodesByPath)
|
|
200
226
|
}));
|
|
201
227
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-observed-source-graph.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAGzE,OAAO,EACL,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"build-observed-source-graph.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAGzE,OAAO,EACL,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAqCrC,SAAS,UAAU,CAAC,IAAY,EAAE,OAAe;IAC/C,MAAM,IAAI,oBAAoB,CAAC;QAC7B,IAAI;QACJ,OAAO;QACP,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;AACL,CAAC;AAED,SAAS,QAAQ,CAAC,IAA0B;IAC1C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,aAAa,CAAC;QACnB,KAAK,oBAAoB,CAAC;QAC1B,KAAK,aAAa,CAAC;QACnB,KAAK,YAAY;YACf,OAAO,WAAW,CAAC;QACrB,KAAK,UAAU,CAAC;QAChB,KAAK,SAAS,CAAC;QACf,KAAK,QAAQ,CAAC;QACd,KAAK,eAAe,CAAC;QACrB,KAAK,QAAQ;YACX,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AAED,SAAS,qBAAqB,CAC5B,KAAoC;IAEpC,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IACjF,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACrD,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC;YACtC,UAAU,CACR,sCAAsC,EACtC,gEAA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AAQ,CACpB,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACd,oBAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YAC3C,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAC/C,CACF;QACD,uBAAuB,EAAE,MAAM,CAAC,MAAM,CACpC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACzD;QACD,2BAA2B,EAAE,MAAM,CAAC,MAAM,CACxC,2BAA2B,CAAC,QAAQ,CAClC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACd,oBAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YAC3C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK;YACxB,oBAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YAC3C,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CACvB,CACF;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SourceArchitecturePolicy } from "../application/model/source-workspace.js";
|
|
1
|
+
import type { SourceArchitectureConfigSchemaVersion, SourceArchitecturePolicy } from "../application/model/source-workspace.js";
|
|
2
2
|
export declare const CAPABILITY_ID: "architecture.source-dependencies";
|
|
3
|
-
export declare const CAPABILITY_CONFIG_SCHEMA_VERSION:
|
|
4
|
-
export declare function loadCapabilityConfig(consumerRoot: string, configPath: string, signal?: AbortSignal): Promise<SourceArchitecturePolicy>;
|
|
3
|
+
export declare const CAPABILITY_CONFIG_SCHEMA_VERSION: 2;
|
|
4
|
+
export declare function loadCapabilityConfig(consumerRoot: string, configPath: string, signal?: AbortSignal, observeSchemaVersion?: (version: SourceArchitectureConfigSchemaVersion) => void): Promise<SourceArchitecturePolicy>;
|
|
5
5
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/contract/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/contract/config.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAEV,qCAAqC,EACrC,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAElD,eAAO,MAAM,aAAa,EAAG,kCAA2C,CAAC;AACzE,eAAO,MAAM,gCAAgC,EAAG,CAAU,CAAC;AAyZ3D,wBAAsB,oBAAoB,CACxC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,WAAW,EACpB,oBAAoB,CAAC,EAAE,CACrB,OAAO,EAAE,qCAAqC,KAC3C,IAAI,GACR,OAAO,CAAC,wBAAwB,CAAC,CAuDnC"}
|