@agent-teams/engineering-foundation 0.21.0 → 1.0.0
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 +185 -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 +163 -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 +31 -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 +298 -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/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 +200 -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 +146 -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 +9 -0
- package/dist/workspace-inventory/application/model/workspace-inventory.d.ts.map +1 -1
- 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
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { DocumentIntent, DocumentPlanContract as DocumentPlan } from "../../application/model/document-planning.js";
|
|
2
|
-
import type { DocumentContractValidator } from "../../application/ports/document-contract-validator.js";
|
|
3
|
-
export declare class NodeDocumentContractValidator implements DocumentContractValidator {
|
|
4
|
-
validateIntent(input: unknown): Promise<DocumentIntent>;
|
|
5
|
-
validatePlan(input: unknown): Promise<DocumentPlan>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=node-document-contract-validator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-document-contract-validator.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/node-document-contract-validator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,IAAI,YAAY,EACrC,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AA6VxG,qBAAa,6BAA8B,YAAW,yBAAyB;IACvE,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,cAAc,CAAC,CAkB5D;IAEK,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,CAuBxD;CACF"}
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import { isProxy } from "node:util/types";
|
|
2
|
-
import { CapabilityInputError } from "../../../capability-runtime.js";
|
|
3
|
-
import { assertSchema } from "../../../schema-catalog.js";
|
|
4
|
-
import { DocumentPlanningError } from "../../document-planning-error.js";
|
|
5
|
-
import { assertDocumentPlanDigests } from "../../application/policies/document-contract-digests.js";
|
|
6
|
-
function invalidContract(kind, error) {
|
|
7
|
-
throw new DocumentPlanningError(kind === "Intent"
|
|
8
|
-
? "DOCUMENT_PLANNING_INPUT_INVALID"
|
|
9
|
-
: "DOCUMENT_PLANNING_OUTPUT_INVALID", `Document ${kind} does not match its v1 contract: ${error.message.slice(0, 1000)}`, { cause: error });
|
|
10
|
-
}
|
|
11
|
-
const MAXIMUM_INTENT_DEPTH = 8;
|
|
12
|
-
const MAXIMUM_INTENT_CONTAINER_ITEMS = 128;
|
|
13
|
-
const MAXIMUM_DOCUMENT_OUTPUT_BYTES = 1024 * 1024;
|
|
14
|
-
const MAXIMUM_PLAN_DEPTH = 12;
|
|
15
|
-
const MAXIMUM_PLAN_JSON_BYTES = 4 * MAXIMUM_DOCUMENT_OUTPUT_BYTES;
|
|
16
|
-
const MAXIMUM_PLAN_VALUES = MAXIMUM_DOCUMENT_OUTPUT_BYTES;
|
|
17
|
-
const OUTPUT_INTENT_KEYS = new Set([
|
|
18
|
-
"additionalMetadata",
|
|
19
|
-
"id",
|
|
20
|
-
"owner",
|
|
21
|
-
"related",
|
|
22
|
-
"summary",
|
|
23
|
-
"title",
|
|
24
|
-
"type"
|
|
25
|
-
]);
|
|
26
|
-
const INTENT_ROOT_KEYS = new Set([
|
|
27
|
-
...OUTPUT_INTENT_KEYS,
|
|
28
|
-
"destination",
|
|
29
|
-
"schemaVersion",
|
|
30
|
-
"slug"
|
|
31
|
-
]);
|
|
32
|
-
const STRING_INTENT_ROOT_KEYS = new Set([
|
|
33
|
-
"destination",
|
|
34
|
-
"id",
|
|
35
|
-
"owner",
|
|
36
|
-
"slug",
|
|
37
|
-
"summary",
|
|
38
|
-
"title",
|
|
39
|
-
"type"
|
|
40
|
-
]);
|
|
41
|
-
function addOutputLowerBound(budget, bytes) {
|
|
42
|
-
budget.outputLowerBoundBytes += bytes;
|
|
43
|
-
if (budget.outputLowerBoundBytes > MAXIMUM_DOCUMENT_OUTPUT_BYTES) {
|
|
44
|
-
throw new TypeError("Document Intent logically expands beyond the public document output byte limit.");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function isJsonScalar(value, contributesToOutput, budget) {
|
|
48
|
-
if (value === null || typeof value === "boolean" || typeof value === "string") {
|
|
49
|
-
if (contributesToOutput) {
|
|
50
|
-
addOutputLowerBound(budget, 1 + (typeof value === "string"
|
|
51
|
-
? Buffer.byteLength(value.normalize("NFC"), "utf8")
|
|
52
|
-
: 1));
|
|
53
|
-
}
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
if (typeof value === "number") {
|
|
57
|
-
if (!Number.isSafeInteger(value) || Object.is(value, -0)) {
|
|
58
|
-
throw new TypeError("Document Intent numbers must be safe integers other than negative zero.");
|
|
59
|
-
}
|
|
60
|
-
if (contributesToOutput) {
|
|
61
|
-
addOutputLowerBound(budget, 1);
|
|
62
|
-
}
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
function inertContainerKeys(value) {
|
|
68
|
-
const keys = Reflect.ownKeys(value);
|
|
69
|
-
if (keys.some((key) => typeof key !== "string")) {
|
|
70
|
-
throw new TypeError("Document Intent must not contain symbol keys.");
|
|
71
|
-
}
|
|
72
|
-
const itemCount = Array.isArray(value) ? keys.length - 1 : keys.length;
|
|
73
|
-
if (itemCount > MAXIMUM_INTENT_CONTAINER_ITEMS) {
|
|
74
|
-
throw new TypeError("Document Intent container exceeds the item budget.");
|
|
75
|
-
}
|
|
76
|
-
if (Array.isArray(value) && keys.length !== value.length + 1) {
|
|
77
|
-
throw new TypeError("Document Intent arrays must be dense and contain no extra properties.");
|
|
78
|
-
}
|
|
79
|
-
return keys;
|
|
80
|
-
}
|
|
81
|
-
function assertIntrinsicJsonContainer(value) {
|
|
82
|
-
const prototype = Object.getPrototypeOf(value);
|
|
83
|
-
if ((Array.isArray(value) && prototype !== Array.prototype) ||
|
|
84
|
-
(!Array.isArray(value) && prototype !== Object.prototype && prototype !== null)) {
|
|
85
|
-
throw new TypeError("Document Intent containers must use intrinsic JSON prototypes.");
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function assertIntentRootField(key, value) {
|
|
89
|
-
if (!INTENT_ROOT_KEYS.has(key)) {
|
|
90
|
-
throw new TypeError("Document Intent contains an unknown root field.");
|
|
91
|
-
}
|
|
92
|
-
if (STRING_INTENT_ROOT_KEYS.has(key) && typeof value !== "string") {
|
|
93
|
-
throw new TypeError(`Document Intent root field ${key} must be a string.`);
|
|
94
|
-
}
|
|
95
|
-
if (key === "schemaVersion" && value !== 1) {
|
|
96
|
-
throw new TypeError("Document Intent schemaVersion must equal 1.");
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function assertInertJson(input) {
|
|
100
|
-
const pending = [
|
|
101
|
-
{ action: "enter", contributesToOutput: false, depth: 0, value: input }
|
|
102
|
-
];
|
|
103
|
-
const ancestors = new WeakSet();
|
|
104
|
-
const budget = { outputLowerBoundBytes: 0 };
|
|
105
|
-
while (pending.length > 0) {
|
|
106
|
-
const current = pending.pop();
|
|
107
|
-
if (current.action === "leave") {
|
|
108
|
-
ancestors.delete(current.value);
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
if (isJsonScalar(current.value, current.contributesToOutput, budget)) {
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
if (current.value === null || typeof current.value !== "object") {
|
|
115
|
-
throw new TypeError("Document Intent must use the closed JSON data model.");
|
|
116
|
-
}
|
|
117
|
-
if (isProxy(current.value)) {
|
|
118
|
-
throw new TypeError("Document Intent must not contain Proxy objects.");
|
|
119
|
-
}
|
|
120
|
-
if (current.depth > MAXIMUM_INTENT_DEPTH || ancestors.has(current.value)) {
|
|
121
|
-
throw new TypeError("Document Intent must be a bounded acyclic JSON tree.");
|
|
122
|
-
}
|
|
123
|
-
assertIntrinsicJsonContainer(current.value);
|
|
124
|
-
if (current.contributesToOutput) {
|
|
125
|
-
addOutputLowerBound(budget, 1);
|
|
126
|
-
}
|
|
127
|
-
ancestors.add(current.value);
|
|
128
|
-
pending.push({ action: "leave", value: current.value });
|
|
129
|
-
for (const key of inertContainerKeys(current.value)) {
|
|
130
|
-
if (key === "length" && Array.isArray(current.value)) {
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
const descriptor = Object.getOwnPropertyDescriptor(current.value, key);
|
|
134
|
-
if (descriptor === undefined ||
|
|
135
|
-
!("value" in descriptor) ||
|
|
136
|
-
descriptor.enumerable !== true) {
|
|
137
|
-
throw new TypeError("Document Intent must contain only enumerable own data properties.");
|
|
138
|
-
}
|
|
139
|
-
if (current.depth === 0) {
|
|
140
|
-
assertIntentRootField(key, descriptor.value);
|
|
141
|
-
}
|
|
142
|
-
pending.push({
|
|
143
|
-
action: "enter",
|
|
144
|
-
contributesToOutput: current.depth === 0
|
|
145
|
-
? OUTPUT_INTENT_KEYS.has(key)
|
|
146
|
-
: current.contributesToOutput,
|
|
147
|
-
depth: current.depth + 1,
|
|
148
|
-
value: descriptor.value
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function planContractTypeError(message) {
|
|
154
|
-
return new TypeError(`Document Plan ${message}`);
|
|
155
|
-
}
|
|
156
|
-
function defineSnapshotValue(target, key, value) {
|
|
157
|
-
Object.defineProperty(target, key, {
|
|
158
|
-
configurable: true,
|
|
159
|
-
enumerable: true,
|
|
160
|
-
value,
|
|
161
|
-
writable: true
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
function inspectPlanContainer(source) {
|
|
165
|
-
if (isProxy(source)) {
|
|
166
|
-
throw planContractTypeError("must not contain Proxy objects.");
|
|
167
|
-
}
|
|
168
|
-
const isArray = Array.isArray(source);
|
|
169
|
-
const prototype = Object.getPrototypeOf(source);
|
|
170
|
-
if ((isArray && prototype !== Array.prototype) ||
|
|
171
|
-
(!isArray && prototype !== Object.prototype && prototype !== null)) {
|
|
172
|
-
throw planContractTypeError("containers must use intrinsic JSON prototypes.");
|
|
173
|
-
}
|
|
174
|
-
const keys = Reflect.ownKeys(source);
|
|
175
|
-
if (keys.some((key) => typeof key !== "string")) {
|
|
176
|
-
throw planContractTypeError("must not contain symbol keys.");
|
|
177
|
-
}
|
|
178
|
-
if (isArray && keys.length !== source.length + 1) {
|
|
179
|
-
throw planContractTypeError("arrays must be dense and contain no extra properties.");
|
|
180
|
-
}
|
|
181
|
-
if (isArray &&
|
|
182
|
-
keys.some((key) => key !== "length" &&
|
|
183
|
-
(!/^(?:0|[1-9]\d*)$/u.test(String(key)) ||
|
|
184
|
-
Number(key) >= source.length ||
|
|
185
|
-
String(Number(key)) !== key))) {
|
|
186
|
-
throw planContractTypeError("arrays must be dense and contain no extra properties.");
|
|
187
|
-
}
|
|
188
|
-
return {
|
|
189
|
-
isArray,
|
|
190
|
-
keys: keys
|
|
191
|
-
.filter((key) => !(isArray && key === "length"))
|
|
192
|
-
.toSorted()
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
function planDataValue(source, key) {
|
|
196
|
-
const descriptor = Object.getOwnPropertyDescriptor(source, key);
|
|
197
|
-
if (descriptor === undefined ||
|
|
198
|
-
!("value" in descriptor) ||
|
|
199
|
-
descriptor.enumerable !== true) {
|
|
200
|
-
throw planContractTypeError("must contain only enumerable own data properties.");
|
|
201
|
-
}
|
|
202
|
-
return descriptor.value;
|
|
203
|
-
}
|
|
204
|
-
function accountPlanValue(budget, key, value) {
|
|
205
|
-
budget.values += 1;
|
|
206
|
-
budget.bytes += Buffer.byteLength(key, "utf8") + 1;
|
|
207
|
-
if (typeof value === "string") {
|
|
208
|
-
budget.bytes += Buffer.byteLength(value, "utf8") + 1;
|
|
209
|
-
}
|
|
210
|
-
else if (value === null || ["boolean", "number"].includes(typeof value)) {
|
|
211
|
-
budget.bytes += 1;
|
|
212
|
-
}
|
|
213
|
-
if (budget.values > MAXIMUM_PLAN_VALUES || budget.bytes > MAXIMUM_PLAN_JSON_BYTES) {
|
|
214
|
-
throw planContractTypeError("exceeds the bounded v1 contract input budget.");
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
function assertPlanScalar(value) {
|
|
218
|
-
if (value === null || typeof value === "boolean" || typeof value === "string") {
|
|
219
|
-
return true;
|
|
220
|
-
}
|
|
221
|
-
if (typeof value !== "number") {
|
|
222
|
-
return false;
|
|
223
|
-
}
|
|
224
|
-
if (!Number.isSafeInteger(value) || Object.is(value, -0)) {
|
|
225
|
-
throw planContractTypeError("numbers must be safe integers other than negative zero.");
|
|
226
|
-
}
|
|
227
|
-
return true;
|
|
228
|
-
}
|
|
229
|
-
function snapshotInertPlan(input) {
|
|
230
|
-
if (input === null || typeof input !== "object") {
|
|
231
|
-
throw planContractTypeError("must be a JSON object.");
|
|
232
|
-
}
|
|
233
|
-
if (isProxy(input) || Array.isArray(input)) {
|
|
234
|
-
throw planContractTypeError("must be an intrinsic, non-Proxy JSON object.");
|
|
235
|
-
}
|
|
236
|
-
const root = {};
|
|
237
|
-
const pending = [{ depth: 0, source: input, target: root }];
|
|
238
|
-
const observed = new WeakSet();
|
|
239
|
-
const budget = { bytes: 0, values: 0 };
|
|
240
|
-
while (pending.length > 0) {
|
|
241
|
-
const current = pending.pop();
|
|
242
|
-
if (observed.has(current.source)) {
|
|
243
|
-
throw planContractTypeError("must be an acyclic JSON tree without shared containers.");
|
|
244
|
-
}
|
|
245
|
-
observed.add(current.source);
|
|
246
|
-
if (current.depth > MAXIMUM_PLAN_DEPTH) {
|
|
247
|
-
throw planContractTypeError("exceeds the supported JSON depth.");
|
|
248
|
-
}
|
|
249
|
-
const { keys } = inspectPlanContainer(current.source);
|
|
250
|
-
for (const key of keys) {
|
|
251
|
-
const value = planDataValue(current.source, key);
|
|
252
|
-
accountPlanValue(budget, key, value);
|
|
253
|
-
if (assertPlanScalar(value)) {
|
|
254
|
-
defineSnapshotValue(current.target, key, value);
|
|
255
|
-
continue;
|
|
256
|
-
}
|
|
257
|
-
if (value === null || typeof value !== "object") {
|
|
258
|
-
throw planContractTypeError("must use the closed JSON data model.");
|
|
259
|
-
}
|
|
260
|
-
if (isProxy(value)) {
|
|
261
|
-
throw planContractTypeError("must not contain Proxy objects.");
|
|
262
|
-
}
|
|
263
|
-
const child = Array.isArray(value) ? [] : {};
|
|
264
|
-
defineSnapshotValue(current.target, key, child);
|
|
265
|
-
pending.push({ depth: current.depth + 1, source: value, target: child });
|
|
266
|
-
}
|
|
267
|
-
Object.freeze(current.target);
|
|
268
|
-
}
|
|
269
|
-
return root;
|
|
270
|
-
}
|
|
271
|
-
export class NodeDocumentContractValidator {
|
|
272
|
-
async validateIntent(input) {
|
|
273
|
-
try {
|
|
274
|
-
assertInertJson(input);
|
|
275
|
-
await assertSchema("document-intent/v1", input, "document-intent");
|
|
276
|
-
return input;
|
|
277
|
-
}
|
|
278
|
-
catch (error) {
|
|
279
|
-
if (error instanceof CapabilityInputError) {
|
|
280
|
-
invalidContract("Intent", error);
|
|
281
|
-
}
|
|
282
|
-
if (error instanceof TypeError) {
|
|
283
|
-
throw new DocumentPlanningError("DOCUMENT_PLANNING_INPUT_INVALID", `Document Intent must use inert canonical JSON data: ${error.message}`, { cause: error });
|
|
284
|
-
}
|
|
285
|
-
throw error;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
async validatePlan(input) {
|
|
289
|
-
try {
|
|
290
|
-
const snapshot = snapshotInertPlan(input);
|
|
291
|
-
await assertSchema(snapshot.schemaVersion === 2 ? "document-plan/v2" : "document-plan/v1", snapshot, "document-plan");
|
|
292
|
-
assertDocumentPlanDigests(snapshot);
|
|
293
|
-
return snapshot;
|
|
294
|
-
}
|
|
295
|
-
catch (error) {
|
|
296
|
-
if (error instanceof CapabilityInputError) {
|
|
297
|
-
invalidContract("Plan", error);
|
|
298
|
-
}
|
|
299
|
-
if (error instanceof Error) {
|
|
300
|
-
throw new DocumentPlanningError("DOCUMENT_PLANNING_OUTPUT_INVALID", `Document Plan must use inert canonical JSON data and valid content bindings: ${error.message.slice(0, 1000)}`, { cause: error });
|
|
301
|
-
}
|
|
302
|
-
throw error;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
//# sourceMappingURL=node-document-contract-validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-document-contract-validator.js","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/node-document-contract-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAM1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAEpG,SAAS,eAAe,CAAC,IAAuB,EAAE,KAA2B;IAC3E,MAAM,IAAI,qBAAqB,CAC7B,IAAI,KAAK,QAAQ;QACf,CAAC,CAAC,iCAAiC;QACnC,CAAC,CAAC,kCAAkC,EACtC,YAAY,IAAI,oCAAoC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAClF,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;AACJ,CAAC;AAED,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAC/B,MAAM,8BAA8B,GAAG,GAAG,CAAC;AAC3C,MAAM,6BAA6B,GAAG,IAAI,GAAG,IAAI,CAAC;AAClD,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,uBAAuB,GAAG,CAAC,GAAG,6BAA6B,CAAC;AAClE,MAAM,mBAAmB,GAAG,6BAA6B,CAAC;AAC1D,MAAM,kBAAkB,GAAG,IAAI,GAA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ocumentEnvironmentInspector } from "../../application/ports/document-environment-inspector.js";
|
|
3
|
-
interface Dependencies {
|
|
4
|
-
readonly buildIdentity: () => Promise<string>;
|
|
5
|
-
readonly lstat: typeof lstat;
|
|
6
|
-
readonly platform: NodeJS.Platform;
|
|
7
|
-
readonly realpath: typeof realpath;
|
|
8
|
-
readonly version: () => Promise<string>;
|
|
9
|
-
}
|
|
10
|
-
type EnvironmentIdentityProviders = Pick<Dependencies, "buildIdentity" | "version">;
|
|
11
|
-
export declare class NodeDocumentEnvironmentInspector implements DocumentEnvironmentInspector {
|
|
12
|
-
#private;
|
|
13
|
-
constructor(identity: EnvironmentIdentityProviders, filesystem?: Partial<Omit<Dependencies, "buildIdentity" | "version">>);
|
|
14
|
-
inspect(consumerRoot: string, signal?: AbortSignal): Promise<DocumentEnvironmentInspection>;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=node-document-environment-inspector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-document-environment-inspector.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/node-document-environment-inspector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC7B,MAAM,2DAA2D,CAAC;AAEnE,UAAU,YAAY;IACpB,QAAQ,CAAC,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,OAAO,QAAQ,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CACzC;AAED,KAAK,4BAA4B,GAAG,IAAI,CAAC,YAAY,EAAE,eAAe,GAAG,SAAS,CAAC,CAAC;AAQpF,qBAAa,gCAAiC,YAAW,4BAA4B;;IAGnF,YACE,QAAQ,EAAE,4BAA4B,EACtC,UAAU,GAAE,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,eAAe,GAAG,SAAS,CAAC,CAAM,EAO1E;IAEK,OAAO,CACX,YAAY,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,6BAA6B,CAAC,CAwCxC;CACF"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { lstat, realpath } from "node:fs/promises";
|
|
2
|
-
import { resolve } from "node:path";
|
|
3
|
-
const nodeFilesystemDependencies = {
|
|
4
|
-
lstat,
|
|
5
|
-
platform: process.platform,
|
|
6
|
-
realpath
|
|
7
|
-
};
|
|
8
|
-
export class NodeDocumentEnvironmentInspector {
|
|
9
|
-
#dependencies;
|
|
10
|
-
constructor(identity, filesystem = {}) {
|
|
11
|
-
this.#dependencies = {
|
|
12
|
-
...nodeFilesystemDependencies,
|
|
13
|
-
...filesystem,
|
|
14
|
-
...identity
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
async inspect(consumerRoot, signal) {
|
|
18
|
-
signal?.throwIfAborted();
|
|
19
|
-
const requestedRoot = resolve(consumerRoot);
|
|
20
|
-
const [metadata, canonicalRoot, installedVersion, installedBuildIdentity] = await Promise.all([
|
|
21
|
-
this.#dependencies.lstat(requestedRoot),
|
|
22
|
-
this.#dependencies.realpath(requestedRoot),
|
|
23
|
-
this.#dependencies.version(),
|
|
24
|
-
this.#dependencies.buildIdentity()
|
|
25
|
-
]);
|
|
26
|
-
signal?.throwIfAborted();
|
|
27
|
-
if (metadata.isSymbolicLink() ||
|
|
28
|
-
!metadata.isDirectory()) {
|
|
29
|
-
throw new Error("Document doctor consumer root must be a canonical real directory.");
|
|
30
|
-
}
|
|
31
|
-
const canonicalMetadata = await this.#dependencies.lstat(canonicalRoot);
|
|
32
|
-
if (canonicalMetadata.isSymbolicLink() ||
|
|
33
|
-
!canonicalMetadata.isDirectory()) {
|
|
34
|
-
throw new Error("Document doctor consumer root must resolve to a real directory.");
|
|
35
|
-
}
|
|
36
|
-
signal?.throwIfAborted();
|
|
37
|
-
return Object.freeze({
|
|
38
|
-
installedFoundationVersion: installedVersion,
|
|
39
|
-
installedFoundationBuildIdentity: installedBuildIdentity,
|
|
40
|
-
filesystem: Object.freeze({
|
|
41
|
-
basis: "platform-contract",
|
|
42
|
-
strictDirectoryDurability: this.#dependencies.platform === "win32"
|
|
43
|
-
? "platform-unsupported"
|
|
44
|
-
: "platform-supported"
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=node-document-environment-inspector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-document-environment-inspector.js","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/node-document-environment-inspector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,MAAM,0BAA0B,GAAoD;IAClF,KAAK;IACL,QAAQ,EAAE,OAAO,CAAC,QAAQ;IAC1B,QAAQ;CACT,CAAC;AAEF,MAAM,OAAO,gCAAgC;IAClC,aAAa,CAAe;IAErC,YACE,QAAsC,EACtC,UAAU,GAA6D,EAAE;QAEzE,IAAI,CAAC,aAAa,GAAG;YACnB,GAAG,0BAA0B;YAC7B,GAAG,UAAU;YACb,GAAG,QAAQ;SACZ,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CACX,YAAoB,EACpB,MAAoB;QAEpB,MAAM,EAAE,cAAc,EAAE,CAAC;QACzB,MAAM,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;QAC5C,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,gBAAgB,EAAE,sBAAsB,CAAC,GACvE,MAAM,OAAO,CAAC,GAAG,CAAC;YAChB,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC;YACvC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC;YAC1C,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;YAC5B,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE;SACnC,CAAC,CAAC;QACL,MAAM,EAAE,cAAc,EAAE,CAAC;QACzB,IACE,QAAQ,CAAC,cAAc,EAAE;YACzB,CAAC,QAAQ,CAAC,WAAW,EAAE,EACvB,CAAC;YACD,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;QACJ,CAAC;QACD,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACxE,IACE,iBAAiB,CAAC,cAAc,EAAE;YAClC,CAAC,iBAAiB,CAAC,WAAW,EAAE,EAChC,CAAC;YACD,MAAM,IAAI,KAAK,CACb,iEAAiE,CAClE,CAAC;QACJ,CAAC;QACD,MAAM,EAAE,cAAc,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC,MAAM,CAAC;YACnB,0BAA0B,EAAE,gBAAgB;YAC5C,gCAAgC,EAAE,sBAAsB;YACxD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC;gBACxB,KAAK,EAAE,mBAA4B;gBACnC,yBAAyB,EACvB,IAAI,CAAC,aAAa,CAAC,QAAQ,KAAK,OAAO;oBACrC,CAAC,CAAC,sBAA+B;oBACjC,CAAC,CAAC,oBAA6B;aACpC,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DocumentOwnedTemporary } from "../../application/model/document-transaction.js";
|
|
2
|
-
import type { DocumentPlanContract as DocumentPlan } from "../../application/model/document-planning.js";
|
|
3
|
-
import type { DocumentDerivedTemporaryState, DocumentDestinationState, DocumentFileState, DocumentTemporaryState } from "../../application/ports/document-file-state.js";
|
|
4
|
-
export declare class NodeDocumentFileState implements DocumentFileState {
|
|
5
|
-
classifyDerivedTemporary(request: {
|
|
6
|
-
readonly consumerRoot: string;
|
|
7
|
-
readonly plan: DocumentPlan;
|
|
8
|
-
readonly signal?: AbortSignal;
|
|
9
|
-
}): Promise<DocumentDerivedTemporaryState>;
|
|
10
|
-
classifyDestination(request: {
|
|
11
|
-
readonly consumerRoot: string;
|
|
12
|
-
readonly plan: DocumentPlan;
|
|
13
|
-
readonly signal?: AbortSignal;
|
|
14
|
-
}): Promise<DocumentDestinationState>;
|
|
15
|
-
classifyTemporary(request: {
|
|
16
|
-
readonly consumerRoot: string;
|
|
17
|
-
readonly signal?: AbortSignal;
|
|
18
|
-
readonly temporary: DocumentOwnedTemporary;
|
|
19
|
-
}): Promise<DocumentTemporaryState>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=node-document-file-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-document-file-state.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/node-document-file-state.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,KAAK,EAAE,oBAAoB,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACzG,OAAO,KAAK,EACV,6BAA6B,EAC7B,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,gDAAgD,CAAC;AA2FxD,qBAAa,qBAAsB,YAAW,iBAAiB;IACvD,wBAAwB,CAAC,OAAO,EAAE;QACtC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;QAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;KAC/B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CA+CzC;IAEK,mBAAmB,CAAC,OAAO,EAAE;QACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;QAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;KAC/B,GAAG,OAAO,CAAC,wBAAwB,CAAC,CA8CpC;IAEK,iBAAiB,CAAC,OAAO,EAAE;QAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;QAC9B,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;KAC5C,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAiDlC;CACF"}
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import { createHash } from "node:crypto";
|
|
2
|
-
import { readBoundedRegularFile } from "../../../repository-mutation/adapters/node/node-bounded-regular-file.js";
|
|
3
|
-
import { assertNonzeroDocumentPhysicalIdentity } from "../../application/model/document-physical-identity.js";
|
|
4
|
-
import { isDocumentRepositoryPath } from "../../application/policies/document-repository-path.js";
|
|
5
|
-
import { documentTemporaryPath } from "../../application/policies/document-temporary-path.js";
|
|
6
|
-
import { recaptureDocumentPublicationPaths, sameDocumentAncestry, sameDocumentPhysicalIdentity } from "./recapture-document-publication-paths.js";
|
|
7
|
-
const MAXIMUM_DOCUMENT_BYTES = 1_048_576;
|
|
8
|
-
function digest(bytes) {
|
|
9
|
-
return `sha256:${createHash("sha256").update(bytes).digest("hex")}`;
|
|
10
|
-
}
|
|
11
|
-
function identity(temporary) {
|
|
12
|
-
const value = temporary.identity;
|
|
13
|
-
try {
|
|
14
|
-
assertNonzeroDocumentPhysicalIdentity(value);
|
|
15
|
-
}
|
|
16
|
-
catch {
|
|
17
|
-
return undefined;
|
|
18
|
-
}
|
|
19
|
-
const result = {
|
|
20
|
-
dev: BigInt(value.dev),
|
|
21
|
-
ino: BigInt(value.ino),
|
|
22
|
-
birthtimeNs: BigInt(value.birthtimeNs)
|
|
23
|
-
};
|
|
24
|
-
return result;
|
|
25
|
-
}
|
|
26
|
-
function wireIdentity(identityValue) {
|
|
27
|
-
const result = {
|
|
28
|
-
adapter: "node-filesystem",
|
|
29
|
-
version: 1,
|
|
30
|
-
dev: identityValue.dev.toString(10),
|
|
31
|
-
ino: identityValue.ino.toString(10),
|
|
32
|
-
birthtimeNs: identityValue.birthtimeNs.toString(10)
|
|
33
|
-
};
|
|
34
|
-
assertNonzeroDocumentPhysicalIdentity(result);
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
function planPostimage(plan) {
|
|
38
|
-
return {
|
|
39
|
-
bytes: Buffer.from(plan.output.contentBase64, "base64"),
|
|
40
|
-
digest: plan.output.digest,
|
|
41
|
-
mode: 0o644,
|
|
42
|
-
size: plan.output.size
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
async function assertPublicationAncestryStable(consumerRoot, repositoryPath, before) {
|
|
46
|
-
const after = await recaptureDocumentPublicationPaths({
|
|
47
|
-
consumerRoot,
|
|
48
|
-
destination: repositoryPath
|
|
49
|
-
});
|
|
50
|
-
if (before.destinationPath !== after.destinationPath ||
|
|
51
|
-
!sameDocumentAncestry(before.ancestryIdentities, after.ancestryIdentities)) {
|
|
52
|
-
throw new Error("Document path ancestry changed while filesystem state was read.");
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function conflict(error) {
|
|
56
|
-
return {
|
|
57
|
-
state: "conflict",
|
|
58
|
-
reason: typeof error === "string"
|
|
59
|
-
? error
|
|
60
|
-
: error instanceof Error
|
|
61
|
-
? error.message
|
|
62
|
-
: "Filesystem state is unverifiable."
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function unverifiable(error) {
|
|
66
|
-
return {
|
|
67
|
-
state: "unverifiable",
|
|
68
|
-
reason: typeof error === "string"
|
|
69
|
-
? error
|
|
70
|
-
: error instanceof Error
|
|
71
|
-
? error.message
|
|
72
|
-
: "Filesystem state is unverifiable."
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
export class NodeDocumentFileState {
|
|
76
|
-
async classifyDerivedTemporary(request) {
|
|
77
|
-
request.signal?.throwIfAborted();
|
|
78
|
-
const path = documentTemporaryPath(request.plan.destination, request.plan.planDigest);
|
|
79
|
-
try {
|
|
80
|
-
const paths = await recaptureDocumentPublicationPaths({
|
|
81
|
-
consumerRoot: request.consumerRoot,
|
|
82
|
-
destination: path
|
|
83
|
-
});
|
|
84
|
-
request.signal?.throwIfAborted();
|
|
85
|
-
let observed;
|
|
86
|
-
try {
|
|
87
|
-
observed = await readBoundedRegularFile(paths.destinationPath, MAXIMUM_DOCUMENT_BYTES);
|
|
88
|
-
}
|
|
89
|
-
catch (error) {
|
|
90
|
-
if (error instanceof Error && "code" in error &&
|
|
91
|
-
error.code === "ENOENT") {
|
|
92
|
-
await assertPublicationAncestryStable(request.consumerRoot, path, paths);
|
|
93
|
-
return { state: "absent" };
|
|
94
|
-
}
|
|
95
|
-
throw error;
|
|
96
|
-
}
|
|
97
|
-
request.signal?.throwIfAborted();
|
|
98
|
-
await assertPublicationAncestryStable(request.consumerRoot, path, paths);
|
|
99
|
-
if (observed.outcome !== "read") {
|
|
100
|
-
return unverifiable("Derived document temporary is not a stable regular file.");
|
|
101
|
-
}
|
|
102
|
-
const identityValue = wireIdentity(observed.identity);
|
|
103
|
-
return {
|
|
104
|
-
state: "present",
|
|
105
|
-
path,
|
|
106
|
-
identity: identityValue
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
catch (error) {
|
|
110
|
-
if (request.signal?.aborted === true) {
|
|
111
|
-
throw error;
|
|
112
|
-
}
|
|
113
|
-
return unverifiable(error);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
async classifyDestination(request) {
|
|
117
|
-
try {
|
|
118
|
-
request.signal?.throwIfAborted();
|
|
119
|
-
const paths = await recaptureDocumentPublicationPaths({
|
|
120
|
-
consumerRoot: request.consumerRoot,
|
|
121
|
-
destination: request.plan.destination
|
|
122
|
-
});
|
|
123
|
-
request.signal?.throwIfAborted();
|
|
124
|
-
let observed;
|
|
125
|
-
try {
|
|
126
|
-
observed = await readBoundedRegularFile(paths.destinationPath, request.plan.output.size);
|
|
127
|
-
}
|
|
128
|
-
catch (error) {
|
|
129
|
-
if (error instanceof Error && "code" in error &&
|
|
130
|
-
error.code === "ENOENT") {
|
|
131
|
-
await assertPublicationAncestryStable(request.consumerRoot, request.plan.destination, paths);
|
|
132
|
-
return { state: "absent" };
|
|
133
|
-
}
|
|
134
|
-
throw error;
|
|
135
|
-
}
|
|
136
|
-
request.signal?.throwIfAborted();
|
|
137
|
-
await assertPublicationAncestryStable(request.consumerRoot, request.plan.destination, paths);
|
|
138
|
-
const expected = planPostimage(request.plan);
|
|
139
|
-
if (observed.outcome !== "read" ||
|
|
140
|
-
observed.bytes.byteLength !== expected.size ||
|
|
141
|
-
digest(observed.bytes) !== expected.digest ||
|
|
142
|
-
(process.platform !== "win32" && (observed.mode & 0o777) !== expected.mode)) {
|
|
143
|
-
return conflict("Document destination is not the exact Plan output.");
|
|
144
|
-
}
|
|
145
|
-
return { state: "exact", identity: wireIdentity(observed.identity) };
|
|
146
|
-
}
|
|
147
|
-
catch (error) {
|
|
148
|
-
if (request.signal?.aborted === true) {
|
|
149
|
-
throw error;
|
|
150
|
-
}
|
|
151
|
-
return unverifiable(error);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
async classifyTemporary(request) {
|
|
155
|
-
request.signal?.throwIfAborted();
|
|
156
|
-
const expected = identity(request.temporary);
|
|
157
|
-
if (expected === undefined) {
|
|
158
|
-
return unverifiable("Document temporary has invalid or zero physical identity.");
|
|
159
|
-
}
|
|
160
|
-
if (!isDocumentRepositoryPath(request.temporary.path)) {
|
|
161
|
-
return unverifiable("Document temporary path is not portable.");
|
|
162
|
-
}
|
|
163
|
-
try {
|
|
164
|
-
const paths = await recaptureDocumentPublicationPaths({
|
|
165
|
-
consumerRoot: request.consumerRoot,
|
|
166
|
-
destination: request.temporary.path
|
|
167
|
-
});
|
|
168
|
-
let observed;
|
|
169
|
-
try {
|
|
170
|
-
request.signal?.throwIfAborted();
|
|
171
|
-
observed = await readBoundedRegularFile(paths.destinationPath, MAXIMUM_DOCUMENT_BYTES);
|
|
172
|
-
}
|
|
173
|
-
catch (error) {
|
|
174
|
-
if (error instanceof Error && "code" in error &&
|
|
175
|
-
error.code === "ENOENT") {
|
|
176
|
-
await assertPublicationAncestryStable(request.consumerRoot, request.temporary.path, paths);
|
|
177
|
-
return { state: "absent" };
|
|
178
|
-
}
|
|
179
|
-
throw error;
|
|
180
|
-
}
|
|
181
|
-
request.signal?.throwIfAborted();
|
|
182
|
-
await assertPublicationAncestryStable(request.consumerRoot, request.temporary.path, paths);
|
|
183
|
-
if (observed.outcome !== "read" ||
|
|
184
|
-
!sameDocumentPhysicalIdentity(observed.identity, expected) ||
|
|
185
|
-
digest(observed.bytes) !== request.temporary.digest ||
|
|
186
|
-
(process.platform !== "win32" && (observed.mode & 0o777) !== 0o644)) {
|
|
187
|
-
return conflict("Document temporary does not match its exact owned evidence.");
|
|
188
|
-
}
|
|
189
|
-
return { state: "owned-exact", temporary: request.temporary };
|
|
190
|
-
}
|
|
191
|
-
catch (error) {
|
|
192
|
-
if (request.signal?.aborted === true) {
|
|
193
|
-
throw error;
|
|
194
|
-
}
|
|
195
|
-
return unverifiable(error);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
//# sourceMappingURL=node-document-file-state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-document-file-state.js","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/node-document-file-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yEAAyE,CAAC;AAEjH,OAAO,EACL,qCAAqC,EAEtC,MAAM,uDAAuD,CAAC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