@agent-teams/engineering-foundation 0.16.1 → 0.17.0-rc.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/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.d.ts +3 -2
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.js +39 -6
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js +5 -2
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-repository.d.ts +3 -2
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-repository.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js +19 -2
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js.map +1 -1
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.d.ts +26 -0
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.d.ts.map +1 -0
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.js +74 -0
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.js.map +1 -0
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.d.ts +9 -0
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.d.ts.map +1 -0
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.js +41 -0
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.js.map +1 -0
- package/dist/document-authoring/adapters/node/node-document-contract-validator.d.ts +1 -1
- package/dist/document-authoring/adapters/node/node-document-contract-validator.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-contract-validator.js +1 -1
- package/dist/document-authoring/adapters/node/node-document-contract-validator.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-file-state.d.ts +1 -1
- package/dist/document-authoring/adapters/node/node-document-file-state.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-file-state.js +17 -1
- package/dist/document-authoring/adapters/node/node-document-file-state.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.d.ts +9 -0
- package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.d.ts.map +1 -0
- package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.js +87 -0
- package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.js.map +1 -0
- package/dist/document-authoring/adapters/node/node-document-parent-materializer.d.ts +39 -0
- package/dist/document-authoring/adapters/node/node-document-parent-materializer.d.ts.map +1 -0
- package/dist/document-authoring/adapters/node/node-document-parent-materializer.js +270 -0
- package/dist/document-authoring/adapters/node/node-document-parent-materializer.js.map +1 -0
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.js +11 -3
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-planning-state-reader.d.ts +1 -0
- package/dist/document-authoring/adapters/node/node-document-planning-state-reader.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-planning-state-reader.js +18 -1
- package/dist/document-authoring/adapters/node/node-document-planning-state-reader.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-publisher.d.ts +1 -1
- package/dist/document-authoring/adapters/node/node-document-publisher.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-publisher.js +102 -11
- package/dist/document-authoring/adapters/node/node-document-publisher.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-reachability-projector.d.ts +1 -1
- package/dist/document-authoring/adapters/node/node-document-reachability-projector.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-structure-verifier.d.ts +1 -1
- package/dist/document-authoring/adapters/node/node-document-structure-verifier.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.js +1 -1
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.js +6 -0
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-path-authority.d.ts +53 -0
- package/dist/document-authoring/adapters/node/node-path-authority.d.ts.map +1 -0
- package/dist/document-authoring/adapters/node/node-path-authority.js +186 -0
- package/dist/document-authoring/adapters/node/node-path-authority.js.map +1 -0
- package/dist/document-authoring/adapters/node/recapture-document-publication-paths.d.ts +2 -1
- package/dist/document-authoring/adapters/node/recapture-document-publication-paths.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/recapture-document-publication-paths.js +21 -77
- package/dist/document-authoring/adapters/node/recapture-document-publication-paths.js.map +1 -1
- package/dist/document-authoring/application/model/document-authoring-profile-description.d.ts +53 -0
- package/dist/document-authoring/application/model/document-authoring-profile-description.d.ts.map +1 -0
- package/dist/document-authoring/application/model/document-authoring-profile-description.js +2 -0
- package/dist/document-authoring/application/model/document-authoring-profile-description.js.map +1 -0
- package/dist/document-authoring/application/model/document-catalog.d.ts +29 -0
- package/dist/document-authoring/application/model/document-catalog.d.ts.map +1 -1
- package/dist/document-authoring/application/model/document-find.d.ts +5 -1
- package/dist/document-authoring/application/model/document-find.d.ts.map +1 -1
- package/dist/document-authoring/application/model/document-parent-materialization.d.ts +26 -0
- package/dist/document-authoring/application/model/document-parent-materialization.d.ts.map +1 -0
- package/dist/document-authoring/application/model/document-parent-materialization.js +2 -0
- package/dist/document-authoring/application/model/document-parent-materialization.js.map +1 -0
- package/dist/document-authoring/application/model/document-planning.d.ts +29 -2
- package/dist/document-authoring/application/model/document-planning.d.ts.map +1 -1
- package/dist/document-authoring/application/model/document-receipt.d.ts +28 -1
- package/dist/document-authoring/application/model/document-receipt.d.ts.map +1 -1
- package/dist/document-authoring/application/model/document-transaction-inspection.d.ts +23 -0
- package/dist/document-authoring/application/model/document-transaction-inspection.d.ts.map +1 -1
- package/dist/document-authoring/application/model/document-transaction.d.ts +91 -3
- package/dist/document-authoring/application/model/document-transaction.d.ts.map +1 -1
- package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.d.ts +3 -0
- package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.js +8 -0
- package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.js.map +1 -0
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.d.ts +3 -0
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.js +7 -0
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.js.map +1 -0
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.d.ts +30 -0
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.js +157 -0
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.js.map +1 -0
- package/dist/document-authoring/application/policies/document-catalog-authority-stability.d.ts +12 -0
- package/dist/document-authoring/application/policies/document-catalog-authority-stability.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/document-catalog-authority-stability.js +16 -0
- package/dist/document-authoring/application/policies/document-catalog-authority-stability.js.map +1 -0
- package/dist/document-authoring/application/policies/document-catalog-sidecar.d.ts +10 -0
- package/dist/document-authoring/application/policies/document-catalog-sidecar.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/document-catalog-sidecar.js +66 -0
- package/dist/document-authoring/application/policies/document-catalog-sidecar.js.map +1 -0
- package/dist/document-authoring/application/policies/document-command-projection.d.ts +1 -1
- package/dist/document-authoring/application/policies/document-command-projection.d.ts.map +1 -1
- package/dist/document-authoring/application/policies/document-contract-digests.d.ts.map +1 -1
- package/dist/document-authoring/application/policies/document-contract-digests.js +61 -7
- package/dist/document-authoring/application/policies/document-contract-digests.js.map +1 -1
- package/dist/document-authoring/application/policies/document-receipt-policy.d.ts +3 -3
- package/dist/document-authoring/application/policies/document-receipt-policy.d.ts.map +1 -1
- package/dist/document-authoring/application/policies/document-receipt-policy.js +43 -4
- package/dist/document-authoring/application/policies/document-receipt-policy.js.map +1 -1
- package/dist/document-authoring/application/policies/document-transaction-digests.d.ts +2 -2
- package/dist/document-authoring/application/policies/document-transaction-digests.d.ts.map +1 -1
- package/dist/document-authoring/application/policies/document-transaction-digests.js.map +1 -1
- package/dist/document-authoring/application/policies/document-transaction-envelope-body.d.ts +28 -0
- package/dist/document-authoring/application/policies/document-transaction-envelope-body.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/document-transaction-envelope-body.js +140 -0
- package/dist/document-authoring/application/policies/document-transaction-envelope-body.js.map +1 -0
- package/dist/document-authoring/application/policies/document-transaction-envelope-policy.d.ts.map +1 -1
- package/dist/document-authoring/application/policies/document-transaction-envelope-policy.js +47 -6
- package/dist/document-authoring/application/policies/document-transaction-envelope-policy.js.map +1 -1
- package/dist/document-authoring/application/policies/inspect-catalog-document.d.ts +8 -1
- package/dist/document-authoring/application/policies/inspect-catalog-document.d.ts.map +1 -1
- package/dist/document-authoring/application/policies/inspect-catalog-document.js +48 -0
- package/dist/document-authoring/application/policies/inspect-catalog-document.js.map +1 -1
- package/dist/document-authoring/application/policies/project-catalog-metadata.d.ts +7 -0
- package/dist/document-authoring/application/policies/project-catalog-metadata.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/project-catalog-metadata.js +165 -0
- package/dist/document-authoring/application/policies/project-catalog-metadata.js.map +1 -0
- package/dist/document-authoring/application/policies/same-document-catalog-snapshot.d.ts +3 -0
- package/dist/document-authoring/application/policies/same-document-catalog-snapshot.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/same-document-catalog-snapshot.js +24 -0
- package/dist/document-authoring/application/policies/same-document-catalog-snapshot.js.map +1 -0
- package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts +10 -0
- package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts.map +1 -1
- package/dist/document-authoring/application/ports/document-authority-recompiler.d.ts +1 -1
- package/dist/document-authoring/application/ports/document-authority-recompiler.d.ts.map +1 -1
- package/dist/document-authoring/application/ports/document-contract-validator.d.ts +1 -1
- package/dist/document-authoring/application/ports/document-contract-validator.d.ts.map +1 -1
- package/dist/document-authoring/application/ports/document-file-state.d.ts +1 -1
- package/dist/document-authoring/application/ports/document-file-state.d.ts.map +1 -1
- package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.d.ts +13 -0
- package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.d.ts.map +1 -0
- package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.js +2 -0
- package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.js.map +1 -0
- package/dist/document-authoring/application/ports/document-parent-materializer.d.ts +24 -0
- package/dist/document-authoring/application/ports/document-parent-materializer.d.ts.map +1 -0
- package/dist/document-authoring/application/ports/document-parent-materializer.js +2 -0
- package/dist/document-authoring/application/ports/document-parent-materializer.js.map +1 -0
- package/dist/document-authoring/application/ports/document-planning-state-reader.d.ts +1 -0
- package/dist/document-authoring/application/ports/document-planning-state-reader.d.ts.map +1 -1
- package/dist/document-authoring/application/ports/document-publisher.d.ts +1 -1
- package/dist/document-authoring/application/ports/document-publisher.d.ts.map +1 -1
- package/dist/document-authoring/application/ports/document-reachability-projector.d.ts +1 -1
- package/dist/document-authoring/application/ports/document-reachability-projector.d.ts.map +1 -1
- package/dist/document-authoring/application/ports/document-structure-verifier.d.ts +1 -1
- package/dist/document-authoring/application/ports/document-structure-verifier.d.ts.map +1 -1
- package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.d.ts +11 -0
- package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.d.ts.map +1 -0
- package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.js +2 -0
- package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.js.map +1 -0
- package/dist/document-authoring/application/ports/documentation-catalog-reader.d.ts +2 -2
- package/dist/document-authoring/application/ports/documentation-catalog-reader.d.ts.map +1 -1
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.d.ts +9 -0
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.d.ts.map +1 -0
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.js +2 -0
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.js.map +1 -0
- package/dist/document-authoring/application/ports/metadata-instance-validator.d.ts +1 -0
- package/dist/document-authoring/application/ports/metadata-instance-validator.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/apply-document-plan.d.ts +1 -1
- package/dist/document-authoring/application/use-cases/apply-document-plan.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/apply-document-plan.js +150 -54
- package/dist/document-authoring/application/use-cases/apply-document-plan.js.map +1 -1
- package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.d.ts +14 -0
- package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.d.ts.map +1 -0
- package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.js +17 -0
- package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.js.map +1 -0
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.d.ts +18 -1
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.js +81 -26
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.js.map +1 -1
- package/dist/document-authoring/application/use-cases/compile-document-plan.d.ts +1 -1
- package/dist/document-authoring/application/use-cases/compile-document-plan.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/compile-document-plan.js +50 -6
- package/dist/document-authoring/application/use-cases/compile-document-plan.js.map +1 -1
- package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.d.ts +3 -0
- package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.d.ts.map +1 -0
- package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.js +79 -0
- package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.js.map +1 -0
- package/dist/document-authoring/application/use-cases/document-transaction-continuation.d.ts +18 -13
- package/dist/document-authoring/application/use-cases/document-transaction-continuation.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/document-transaction-continuation.js +88 -165
- package/dist/document-authoring/application/use-cases/document-transaction-continuation.js.map +1 -1
- package/dist/document-authoring/application/use-cases/document-transaction-receipts.d.ts +21 -0
- package/dist/document-authoring/application/use-cases/document-transaction-receipts.d.ts.map +1 -0
- package/dist/document-authoring/application/use-cases/document-transaction-receipts.js +180 -0
- package/dist/document-authoring/application/use-cases/document-transaction-receipts.js.map +1 -0
- package/dist/document-authoring/application/use-cases/find-documents.d.ts +7 -1
- package/dist/document-authoring/application/use-cases/find-documents.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/find-documents.js +19 -0
- package/dist/document-authoring/application/use-cases/find-documents.js.map +1 -1
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.d.ts +15 -0
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.d.ts.map +1 -0
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.js +12 -0
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.js.map +1 -0
- package/dist/document-authoring/application/use-cases/plan-documentation-document.d.ts +12 -4
- package/dist/document-authoring/application/use-cases/plan-documentation-document.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/plan-documentation-document.js +25 -28
- package/dist/document-authoring/application/use-cases/plan-documentation-document.js.map +1 -1
- package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.d.ts +8 -0
- package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.d.ts.map +1 -0
- package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.js +32 -0
- package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.js.map +1 -0
- package/dist/document-authoring/application/use-cases/recover-document-transaction.d.ts +1 -1
- package/dist/document-authoring/application/use-cases/recover-document-transaction.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/recover-document-transaction.js +148 -20
- package/dist/document-authoring/application/use-cases/recover-document-transaction.js.map +1 -1
- package/dist/document-authoring/application/use-cases/run-document-doctor.d.ts +2 -2
- package/dist/document-authoring/application/use-cases/run-document-doctor.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/run-document-doctor.js.map +1 -1
- package/dist/document-authoring/application/use-cases/run-document-new.d.ts +4 -4
- package/dist/document-authoring/application/use-cases/run-document-new.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/run-document-new.js.map +1 -1
- package/dist/document-authoring/application/use-cases/run-document-recover.d.ts +3 -3
- package/dist/document-authoring/application/use-cases/run-document-recover.d.ts.map +1 -1
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.d.ts +8 -0
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.d.ts.map +1 -0
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.js +183 -0
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.js.map +1 -0
- package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.d.ts +7 -0
- package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.d.ts.map +1 -0
- package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.js +10 -0
- package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.js.map +1 -0
- package/dist/document-authoring/composition/inspect-document-transaction.d.ts +3 -1
- package/dist/document-authoring/composition/inspect-document-transaction.d.ts.map +1 -1
- package/dist/document-authoring/composition/inspect-document-transaction.js +39 -1
- package/dist/document-authoring/composition/inspect-document-transaction.js.map +1 -1
- package/dist/document-authoring/composition/node-document-authority-recompiler.d.ts +1 -1
- package/dist/document-authoring/composition/node-document-authority-recompiler.d.ts.map +1 -1
- package/dist/document-authoring/composition/node-document-authority-recompiler.js +22 -3
- package/dist/document-authoring/composition/node-document-authority-recompiler.js.map +1 -1
- package/dist/document-authoring/composition/node-document-commands.js +2 -2
- package/dist/document-authoring/composition/node-document-planning.d.ts +2 -2
- package/dist/document-authoring/composition/node-document-planning.d.ts.map +1 -1
- package/dist/document-authoring/composition/node-document-planning.js +28 -7
- package/dist/document-authoring/composition/node-document-planning.js.map +1 -1
- package/dist/document-authoring/composition/node-document-writing-private.d.ts +1 -1
- package/dist/document-authoring/composition/node-document-writing-private.d.ts.map +1 -1
- package/dist/document-authoring/composition/node-document-writing-private.js +5 -3
- package/dist/document-authoring/composition/node-document-writing-private.js.map +1 -1
- package/dist/document-authoring/composition/node-document-writing.d.ts +1 -1
- package/dist/document-authoring/composition/node-document-writing.d.ts.map +1 -1
- package/dist/document-authoring/index.d.ts +29 -8
- package/dist/document-authoring/index.d.ts.map +1 -1
- package/dist/document-authoring/index.js +50 -3
- package/dist/document-authoring/index.js.map +1 -1
- package/dist/document-authoring/qualification/index.d.ts +22 -0
- package/dist/document-authoring/qualification/index.d.ts.map +1 -0
- package/dist/document-authoring/qualification/index.js +131 -0
- package/dist/document-authoring/qualification/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/local-mode/inspection.d.ts.map +1 -1
- package/dist/local-mode/inspection.js +2 -1
- package/dist/local-mode/inspection.js.map +1 -1
- package/dist/mutation/index.d.ts +3 -0
- package/dist/mutation/index.d.ts.map +1 -0
- package/dist/mutation/index.js +2 -0
- package/dist/mutation/index.js.map +1 -0
- 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 +12 -0
- package/dist/package-self-check.js.map +1 -1
- package/dist/public-api-surface.d.ts +1 -0
- package/dist/public-api-surface.d.ts.map +1 -1
- package/dist/public-api-surface.js +1 -0
- package/dist/public-api-surface.js.map +1 -1
- package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.d.ts.map +1 -1
- package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.js +21 -0
- package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.js.map +1 -1
- package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.d.ts +15 -0
- package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.js +23 -0
- package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-directory-materialization.d.ts +37 -0
- package/dist/repository-mutation/adapters/node/node-directory-materialization.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-directory-materialization.js +224 -0
- package/dist/repository-mutation/adapters/node/node-directory-materialization.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.d.ts +1 -0
- package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.d.ts.map +1 -1
- package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.js +1 -0
- package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.js.map +1 -1
- package/dist/repository-mutation/application/model/directory-materialization.d.ts +35 -0
- package/dist/repository-mutation/application/model/directory-materialization.d.ts.map +1 -0
- package/dist/repository-mutation/application/model/directory-materialization.js +11 -0
- package/dist/repository-mutation/application/model/directory-materialization.js.map +1 -0
- package/dist/schema-catalog.d.ts.map +1 -1
- package/dist/schema-catalog.js +9 -0
- 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 +5 -0
- package/dist/schema-ids.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/document-envelope-bindings.d.ts +2 -2
- package/dist/transaction-coordination/adapters/node/document-envelope-bindings.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/document-envelope-bindings.js +33 -19
- package/dist/transaction-coordination/adapters/node/document-envelope-bindings.js.map +1 -1
- package/dist/transaction-coordination/adapters/node/document-temporary-identity.d.ts +1 -1
- package/dist/transaction-coordination/adapters/node/document-temporary-identity.d.ts.map +1 -1
- package/dist/transaction-coordination/adapters/node/document-temporary-identity.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 +11 -1
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.js.map +1 -1
- 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/internal-transaction-status.d.ts +2 -2
- package/dist/transaction-coordination/application/model/internal-transaction-status.d.ts.map +1 -1
- package/package.json +14 -1
- package/schemas/document-authoring-profile/v2.schema.json +168 -0
- package/schemas/document-parent-materialization/v2.schema.json +65 -0
- package/schemas/document-plan/v2.schema.json +85 -0
- package/schemas/document-receipt/v2.schema.json +108 -0
- package/schemas/foundation-transaction-envelope/v4.schema.json +164 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DocumentOwnedTemporary } from "../model/document-transaction.js";
|
|
2
2
|
import type { DocumentPhysicalIdentity } from "../model/document-physical-identity.js";
|
|
3
|
-
import type { DocumentPlan } from "../model/document-planning.js";
|
|
3
|
+
import type { DocumentPlanContract as DocumentPlan } from "../model/document-planning.js";
|
|
4
4
|
export type DocumentPublicationResult = {
|
|
5
5
|
readonly outcome: "published";
|
|
6
6
|
readonly publicationIdentity: DocumentPhysicalIdentity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-publisher.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/document-publisher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"document-publisher.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/document-publisher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,EAAE,oBAAoB,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE1F,MAAM,MAAM,yBAAyB,GACjC;IACE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;IACvD,QAAQ,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;CAC9C,GACD;IACE,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;CACxD,CAAC;AAEN,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,OAAO,EAAE;QACf,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,sBAAsB,CAAC,CAAC;IACpC,eAAe,CAAC,OAAO,EAAE;QACvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;QAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;QAC9B,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;KAC5C,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACvC,mBAAmB,CAAC,OAAO,EAAE;QAC3B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;QAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;QAC9B,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;KAC5C,GAAG,OAAO,CAAC;QACV,QAAQ,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;KACxD,CAAC,CAAC;IACH,oBAAoB,CAAC,OAAO,EAAE;QAC5B,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,IAAI,CAAC,CAAC;CACnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentReachabilityProjection } from "../model/document-command.js";
|
|
2
|
-
import type { DocumentPlan } from "../model/document-planning.js";
|
|
2
|
+
import type { DocumentPlanContract as DocumentPlan } from "../model/document-planning.js";
|
|
3
3
|
/**
|
|
4
4
|
* RC projection seam. GA may replace this read-only projection with a managed
|
|
5
5
|
* reachability operation without changing the command use case.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-reachability-projector.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/document-reachability-projector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"document-reachability-projector.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/document-reachability-projector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE1F;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,CAAC,KAAK,EAAE;QACb,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;KAC7B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-structure-verifier.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/document-structure-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"document-structure-verifier.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/document-structure-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE1F,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,KAAK,EAAE;QACZ,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;QACV,QAAQ,CAAC,WAAW,EAAE,SAAS,2BAA2B,EAAE,CAAC;QAC7D,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;KACzB,CAAC,CAAC;CACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DocumentationCatalogSnapshotV2 } from "../model/document-catalog.js";
|
|
2
|
+
interface DocumentationCatalogReadRequestV2 {
|
|
3
|
+
readonly consumerRoot: string;
|
|
4
|
+
readonly profilePath: string;
|
|
5
|
+
readonly signal?: AbortSignal;
|
|
6
|
+
}
|
|
7
|
+
export interface DocumentationCatalogReaderV2 {
|
|
8
|
+
execute(request: DocumentationCatalogReadRequestV2): Promise<DocumentationCatalogSnapshotV2>;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=documentation-catalog-reader-v2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentation-catalog-reader-v2.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/documentation-catalog-reader-v2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAEnF,UAAU,iCAAiC;IACzC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CACL,OAAO,EAAE,iCAAiC,GACzC,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentation-catalog-reader-v2.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/documentation-catalog-reader-v2.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DocumentationCatalogSnapshotContract } from "../model/document-catalog.js";
|
|
2
2
|
interface DocumentationCatalogReadRequest {
|
|
3
3
|
readonly consumerRoot: string;
|
|
4
4
|
readonly profilePath: string;
|
|
5
5
|
readonly signal?: AbortSignal;
|
|
6
6
|
}
|
|
7
7
|
export interface DocumentationCatalogReader {
|
|
8
|
-
execute(request: DocumentationCatalogReadRequest): Promise<
|
|
8
|
+
execute(request: DocumentationCatalogReadRequest): Promise<DocumentationCatalogSnapshotContract>;
|
|
9
9
|
}
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=documentation-catalog-reader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentation-catalog-reader.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/documentation-catalog-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"documentation-catalog-reader.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/documentation-catalog-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AAEzF,UAAU,+BAA+B;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,CACL,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,oCAAoC,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DocumentationSearchCatalogSnapshotV2 } from "../model/document-catalog.js";
|
|
2
|
+
export interface DocumentationSearchCatalogReaderV2 {
|
|
3
|
+
read(request: {
|
|
4
|
+
readonly consumerRoot: string;
|
|
5
|
+
readonly profilePath: string;
|
|
6
|
+
readonly signal?: AbortSignal;
|
|
7
|
+
}): Promise<DocumentationSearchCatalogSnapshotV2>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=documentation-search-catalog-reader-v2.d.ts.map
|
package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentation-search-catalog-reader-v2.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/documentation-search-catalog-reader-v2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AAEzF,MAAM,WAAW,kCAAkC;IACjD,IAAI,CAAC,OAAO,EAAE;QACZ,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;KAC/B,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;CACnD"}
|
package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentation-search-catalog-reader-v2.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/documentation-search-catalog-reader-v2.ts"],"names":[],"mappings":""}
|
|
@@ -5,6 +5,7 @@ export interface MetadataValidationResult {
|
|
|
5
5
|
}
|
|
6
6
|
export interface MetadataSchemaSnapshot {
|
|
7
7
|
readonly evidence: DocumentAuthorityEvidence;
|
|
8
|
+
readonly requiredProperties?: readonly string[];
|
|
8
9
|
validate(instance: unknown): MetadataValidationResult;
|
|
9
10
|
}
|
|
10
11
|
export interface MetadataInstanceValidator {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-instance-validator.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/metadata-instance-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,wBAAwB,CAAC;CACvD;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,OAAO,EAAE;QACZ,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;KAC/B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACrC"}
|
|
1
|
+
{"version":3,"file":"metadata-instance-validator.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/ports/metadata-instance-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAC7C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChD,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,wBAAwB,CAAC;CACvD;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,OAAO,EAAE;QACZ,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;KAC/B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACrC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DocumentReceipt } from "../model/document-receipt.js";
|
|
1
|
+
import type { DocumentReceiptContract as DocumentReceipt } from "../model/document-receipt.js";
|
|
2
2
|
import type { DocumentContractValidator } from "../ports/document-contract-validator.js";
|
|
3
3
|
import type { DocumentTransactionCoordinator } from "../ports/document-transaction-coordinator.js";
|
|
4
4
|
import { type DocumentTransactionRuntime } from "./document-transaction-continuation.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-document-plan.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/use-cases/apply-document-plan.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"apply-document-plan.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/use-cases/apply-document-plan.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAYL,KAAK,0BAA0B,EAChC,MAAM,wCAAwC,CAAC;AAgBhD,MAAM,WAAW,6BAA8B,SAAQ,0BAA0B;IAC/E,QAAQ,CAAC,iBAAiB,EAAE,yBAAyB,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,8BAA8B,CAAC;CACtD;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAyaD,kFAAkF;AAClF,wBAAsB,iBAAiB,CACrC,YAAY,EAAE,6BAA6B,EAC3C,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,eAAe,CAAC,CAgB1B"}
|
|
@@ -1,43 +1,113 @@
|
|
|
1
|
-
import { continuePendingPublication, createPreparedJournal, DocumentJournalReconciliationError, errorMessage, finalizeDocumentTransaction, isCancellation, noPublicationReceipt, removeJournalReconciled, recoveryReceipt } from "./document-transaction-continuation.js";
|
|
1
|
+
import { continuePendingPublication, createPreparedJournal, DocumentJournalReconciliationError, errorMessage, finalizeDocumentTransaction, isCancellation, materializeDocumentParentDirectories, noPublicationReceipt, removeJournalReconciled, recoveryReceipt } from "./document-transaction-continuation.js";
|
|
2
2
|
import { DocumentTransactionUseCaseError } from "./document-transaction-error.js";
|
|
3
3
|
import { executeWithDocumentTransactionLease } from "./document-transaction-execution.js";
|
|
4
|
+
import { directoryReceiptEvidence } from "./document-transaction-receipts.js";
|
|
5
|
+
import { applyRecoveryReceipt } from "./apply-document-recovery-receipt.js";
|
|
4
6
|
function signalOption(signal) {
|
|
5
7
|
return signal === undefined ? {} : { signal };
|
|
6
8
|
}
|
|
9
|
+
async function recaptureRetainedDirectoryReceiptEvidence(dependencies, request, active) {
|
|
10
|
+
if (active?.envelope.schemaVersion !== 4) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
const inspection = await dependencies.parentMaterializer.inspect({
|
|
14
|
+
consumerRoot: request.consumerRoot,
|
|
15
|
+
journal: {
|
|
16
|
+
anchorIdentity: active.envelope.journal.parentMaterialization.anchorIdentity,
|
|
17
|
+
createdDirectories: active.envelope.journal.parentMaterialization.createdDirectories,
|
|
18
|
+
plan: active.envelope.journal.plan.parentMaterialization,
|
|
19
|
+
schemaVersion: 2
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
if (inspection.state !== "current") {
|
|
23
|
+
throw new Error(`Retained directory evidence is unsafe: ${inspection.reason}.`);
|
|
24
|
+
}
|
|
25
|
+
const initial = directoryReceiptEvidence(active.envelope);
|
|
26
|
+
if (initial === undefined) {
|
|
27
|
+
throw new Error("Envelope v4 did not provide directory materialization evidence.");
|
|
28
|
+
}
|
|
29
|
+
if (initial.state === "preserved-unknown") {
|
|
30
|
+
throw new Error("Directory creation may have crossed mkdir before durable identity binding.");
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
observedCreatedDirectories: initial.observedCreatedDirectories,
|
|
34
|
+
state: initial.observedCreatedDirectories.length === 0
|
|
35
|
+
? "none-created"
|
|
36
|
+
: "created-and-retained"
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
async function cleanPrepublicationTemporary(dependencies, request, plan, temporary, active) {
|
|
40
|
+
if (temporary !== undefined) {
|
|
41
|
+
const state = await dependencies.fileState.classifyTemporary({
|
|
42
|
+
consumerRoot: request.consumerRoot,
|
|
43
|
+
temporary
|
|
44
|
+
});
|
|
45
|
+
if (state.state === "owned-exact") {
|
|
46
|
+
await dependencies.publisher.removeOwnedTemporary({
|
|
47
|
+
consumerRoot: request.consumerRoot,
|
|
48
|
+
temporary
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
else if (state.state !== "absent") {
|
|
52
|
+
throw new Error("Owned temporary changed and cannot be removed safely.");
|
|
53
|
+
}
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const derived = await dependencies.fileState.classifyDerivedTemporary({
|
|
57
|
+
consumerRoot: request.consumerRoot,
|
|
58
|
+
plan
|
|
59
|
+
});
|
|
60
|
+
const exactMissingParent = derived.state === "unverifiable" &&
|
|
61
|
+
await hasExactlyObservedMissingParent(dependencies, request, active);
|
|
62
|
+
if (derived.state !== "absent" &&
|
|
63
|
+
!exactMissingParent) {
|
|
64
|
+
throw new Error("Plan-derived temporary may exist without trusted ownership evidence.");
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async function hasExactlyObservedMissingParent(dependencies, request, active) {
|
|
68
|
+
if (active?.envelope.schemaVersion !== 4) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
const inspection = await dependencies.parentMaterializer.inspect({
|
|
72
|
+
consumerRoot: request.consumerRoot,
|
|
73
|
+
journal: {
|
|
74
|
+
anchorIdentity: active.envelope.journal.parentMaterialization.anchorIdentity,
|
|
75
|
+
createdDirectories: active.envelope.journal.parentMaterialization.createdDirectories,
|
|
76
|
+
plan: active.envelope.journal.plan.parentMaterialization,
|
|
77
|
+
schemaVersion: 2
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
if (inspection.state !== "current") {
|
|
81
|
+
throw new Error(`Retained directory evidence is unsafe: ${inspection.reason}.`);
|
|
82
|
+
}
|
|
83
|
+
return inspection.nextDirectory !== undefined;
|
|
84
|
+
}
|
|
85
|
+
async function isExactMissingParentObservation(dependencies, request, active, destinationState, temporaryState) {
|
|
86
|
+
if (destinationState !== "unverifiable" ||
|
|
87
|
+
(temporaryState !== undefined && temporaryState !== "unverifiable")) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return hasExactlyObservedMissingParent(dependencies, request, active);
|
|
91
|
+
}
|
|
7
92
|
async function safelyCancelBeforePublication(dependencies, input) {
|
|
8
93
|
const { active, failure, outcome, plan, request, temporary } = input;
|
|
94
|
+
const initialDirectoryEvidence = active === undefined
|
|
95
|
+
? undefined
|
|
96
|
+
: directoryReceiptEvidence(active.envelope);
|
|
9
97
|
try {
|
|
10
98
|
const destination = await dependencies.fileState.classifyDestination({
|
|
11
99
|
consumerRoot: request.consumerRoot,
|
|
12
100
|
plan
|
|
13
101
|
});
|
|
14
|
-
|
|
102
|
+
const retainedMissingParent = await isExactMissingParentObservation(dependencies, request, active, destination.state);
|
|
103
|
+
if (destination.state !== "absent" && !retainedMissingParent) {
|
|
15
104
|
throw new Error(`Destination is ${destination.state}; publication absence is unproven.`);
|
|
16
105
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (state.state === "owned-exact") {
|
|
23
|
-
await dependencies.publisher.removeOwnedTemporary({
|
|
24
|
-
consumerRoot: request.consumerRoot,
|
|
25
|
-
temporary
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
else if (state.state !== "absent") {
|
|
29
|
-
throw new Error("Owned temporary changed and cannot be removed safely.");
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
const derived = await dependencies.fileState.classifyDerivedTemporary({
|
|
34
|
-
consumerRoot: request.consumerRoot,
|
|
35
|
-
plan
|
|
36
|
-
});
|
|
37
|
-
if (derived.state !== "absent") {
|
|
38
|
-
throw new Error("Plan-derived temporary may exist without trusted ownership evidence.");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
106
|
+
await cleanPrepublicationTemporary(dependencies, request, plan, temporary, active);
|
|
107
|
+
// This recapture is intentionally adjacent to journal removal: a stale
|
|
108
|
+
// identity must retain the durable recovery barrier and cannot be reported
|
|
109
|
+
// as created-and-retained.
|
|
110
|
+
const directoryEvidence = await recaptureRetainedDirectoryReceiptEvidence(dependencies, request, active);
|
|
41
111
|
if (active !== undefined) {
|
|
42
112
|
await removeJournalReconciled(dependencies, active);
|
|
43
113
|
}
|
|
@@ -50,25 +120,33 @@ async function safelyCancelBeforePublication(dependencies, input) {
|
|
|
50
120
|
consumerRoot: request.consumerRoot,
|
|
51
121
|
plan
|
|
52
122
|
});
|
|
53
|
-
|
|
123
|
+
const v2MissingParent = await isExactMissingParentObservation(dependencies, request, active, finalDestination.state, finalTemporary.state);
|
|
124
|
+
if (finalJournal !== undefined ||
|
|
125
|
+
(finalTemporary.state !== "absent" && !v2MissingParent)) {
|
|
54
126
|
throw new Error("Final prepublication proof did not establish absent temporary and journal.");
|
|
55
127
|
}
|
|
56
|
-
if (finalDestination.state === "unverifiable") {
|
|
128
|
+
if (finalDestination.state === "unverifiable" && !v2MissingParent) {
|
|
57
129
|
throw new DocumentTransactionUseCaseError("DOCUMENT_TRANSACTION_EVIDENCE_UNAVAILABLE", `Final destination evidence is unavailable: ${finalDestination.reason}`);
|
|
58
130
|
}
|
|
59
|
-
if (finalDestination.state !== "absent") {
|
|
131
|
+
if (finalDestination.state !== "absent" && !v2MissingParent) {
|
|
60
132
|
return { receipt: await noPublicationReceipt(plan, "rejected", "document.transaction.destination-raced", finalDestination.state === "exact"
|
|
61
133
|
? "Destination appeared after Foundation evidence cleanup."
|
|
62
|
-
: finalDestination.reason) };
|
|
134
|
+
: finalDestination.reason, directoryEvidence === undefined ? {} : { directoryEvidence }) };
|
|
63
135
|
}
|
|
64
136
|
return { receipt: await noPublicationReceipt(plan, outcome, outcome === "cancelled"
|
|
65
137
|
? "document.transaction.cancelled"
|
|
66
|
-
: "document.transaction.failed-before-publication", errorMessage(failure)) };
|
|
138
|
+
: "document.transaction.failed-before-publication", errorMessage(failure), directoryEvidence === undefined ? {} : { directoryEvidence }) };
|
|
67
139
|
}
|
|
68
140
|
catch (cleanupError) {
|
|
69
141
|
return {
|
|
70
142
|
cleanupFailure: cleanupError,
|
|
71
143
|
receipt: await recoveryReceipt(plan, {
|
|
144
|
+
...(initialDirectoryEvidence === undefined
|
|
145
|
+
? {}
|
|
146
|
+
: { directoryEvidence: {
|
|
147
|
+
observedCreatedDirectories: initialDirectoryEvidence.observedCreatedDirectories,
|
|
148
|
+
state: "preserved-unknown"
|
|
149
|
+
} }),
|
|
72
150
|
manual: true,
|
|
73
151
|
message: `Prepublication cleanup could not prove an empty durable state: ${errorMessage(cleanupError)} Original operation failure: ${errorMessage(failure)}`,
|
|
74
152
|
publication: "unknown",
|
|
@@ -81,13 +159,15 @@ async function runApplyTransaction(dependencies, request, plan, state) {
|
|
|
81
159
|
if (await dependencies.journal.read() !== undefined) {
|
|
82
160
|
throw new DocumentTransactionUseCaseError("DOCUMENT_TRANSACTION_INCONSISTENT", "Coordinator reported idle while a document journal exists.");
|
|
83
161
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
162
|
+
if (plan.schemaVersion === 1) {
|
|
163
|
+
const derived = await dependencies.fileState.classifyDerivedTemporary({
|
|
164
|
+
consumerRoot: request.consumerRoot,
|
|
165
|
+
plan,
|
|
166
|
+
...signalOption(request.signal)
|
|
167
|
+
});
|
|
168
|
+
if (derived.state !== "absent") {
|
|
169
|
+
throw new DocumentTransactionUseCaseError("DOCUMENT_TRANSACTION_EVIDENCE_UNAVAILABLE", `Plan-derived temporary is ${derived.state}; evidence was preserved.`);
|
|
170
|
+
}
|
|
91
171
|
}
|
|
92
172
|
const authority = await dependencies.authority.assess({
|
|
93
173
|
consumerRoot: request.consumerRoot,
|
|
@@ -97,22 +177,27 @@ async function runApplyTransaction(dependencies, request, plan, state) {
|
|
|
97
177
|
request.signal?.throwIfAborted();
|
|
98
178
|
if (authority.state !== "current") {
|
|
99
179
|
state.retainTransactionBarrier = false;
|
|
100
|
-
return noPublicationReceipt(plan, "authority-stale", "document.transaction.authority-stale", authority.reason, "authority");
|
|
180
|
+
return noPublicationReceipt(plan, "authority-stale", "document.transaction.authority-stale", authority.reason, { phase: "authority" });
|
|
101
181
|
}
|
|
102
|
-
const
|
|
182
|
+
const observedDestination = await dependencies.fileState.classifyDestination({
|
|
103
183
|
consumerRoot: request.consumerRoot,
|
|
104
184
|
plan,
|
|
105
185
|
...signalOption(request.signal)
|
|
106
186
|
});
|
|
187
|
+
const destination = plan.schemaVersion === 2 &&
|
|
188
|
+
plan.parentMaterialization.missingDirectories.length > 0 &&
|
|
189
|
+
observedDestination.state === "unverifiable"
|
|
190
|
+
? { state: "absent" }
|
|
191
|
+
: observedDestination;
|
|
107
192
|
if (destination.state === "conflict" || destination.state === "unverifiable") {
|
|
108
193
|
state.retainTransactionBarrier = false;
|
|
109
194
|
return noPublicationReceipt(plan, "rejected", "document.transaction.destination-conflict", destination.reason);
|
|
110
195
|
}
|
|
111
196
|
if (destination.state === "exact") {
|
|
112
|
-
state.active = await createPreparedJournal(dependencies, plan, "preexisting");
|
|
197
|
+
state.active = await createPreparedJournal(dependencies, request.consumerRoot, plan, "preexisting");
|
|
113
198
|
const receipt = await finalizeDocumentTransaction(dependencies, request, state.active, "already-applied");
|
|
114
199
|
if (receipt === undefined) {
|
|
115
|
-
return
|
|
200
|
+
return applyRecoveryReceipt(dependencies, request, plan, state, {
|
|
116
201
|
message: "Preexisting exact output failed stable A1-C1-A2-C2 verification.",
|
|
117
202
|
publication: "none",
|
|
118
203
|
ruleId: "document.transaction.final-verification"
|
|
@@ -121,7 +206,16 @@ async function runApplyTransaction(dependencies, request, plan, state) {
|
|
|
121
206
|
state.retainTransactionBarrier = false;
|
|
122
207
|
return receipt;
|
|
123
208
|
}
|
|
124
|
-
state.active = await createPreparedJournal(dependencies, plan, "pending");
|
|
209
|
+
state.active = await createPreparedJournal(dependencies, request.consumerRoot, plan, "pending");
|
|
210
|
+
state.active = await materializeDocumentParentDirectories(dependencies, request, state.active, (active) => { state.active = active; });
|
|
211
|
+
const derivedAfterMaterialization = await dependencies.fileState.classifyDerivedTemporary({
|
|
212
|
+
consumerRoot: request.consumerRoot,
|
|
213
|
+
plan,
|
|
214
|
+
...signalOption(request.signal)
|
|
215
|
+
});
|
|
216
|
+
if (derivedAfterMaterialization.state !== "absent") {
|
|
217
|
+
throw new DocumentTransactionUseCaseError("DOCUMENT_TRANSACTION_EVIDENCE_UNAVAILABLE", `Plan-derived temporary is ${derivedAfterMaterialization.state}; evidence was preserved.`);
|
|
218
|
+
}
|
|
125
219
|
request.signal?.throwIfAborted();
|
|
126
220
|
state.temporary = await dependencies.publisher.prepare({
|
|
127
221
|
consumerRoot: request.consumerRoot,
|
|
@@ -146,12 +240,13 @@ async function handleApplyFailure(dependencies, request, plan, state, error) {
|
|
|
146
240
|
if (!journalVerifiable || error instanceof DocumentJournalReconciliationError ||
|
|
147
241
|
(error instanceof Error && error.name === "DocumentJournalReconciliationError")) {
|
|
148
242
|
state.retainTransactionBarrier = true;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
243
|
+
const receipt = await applyRecoveryReceipt(dependencies, request, plan, state, {
|
|
244
|
+
manual: true,
|
|
245
|
+
message: `Journal mutation is not reconcilable; all evidence was preserved: ${errorMessage(error)}`,
|
|
246
|
+
publication: state.publicationPossible ? "unknown" : "none",
|
|
247
|
+
ruleId: "document.transaction.journal-reconciliation"
|
|
248
|
+
});
|
|
249
|
+
return { receipt };
|
|
155
250
|
}
|
|
156
251
|
if (!state.publicationPossible) {
|
|
157
252
|
const handled = await safelyCancelBeforePublication(dependencies, {
|
|
@@ -167,11 +262,12 @@ async function handleApplyFailure(dependencies, request, plan, state, error) {
|
|
|
167
262
|
handled.receipt.outcome === "manual-recovery-required";
|
|
168
263
|
return handled;
|
|
169
264
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
265
|
+
const receipt = await applyRecoveryReceipt(dependencies, request, plan, state, {
|
|
266
|
+
message: `Publication may have occurred; output and evidence were preserved: ${errorMessage(error)}`,
|
|
267
|
+
publication: "unknown",
|
|
268
|
+
ruleId: "document.transaction.publication-ambiguous"
|
|
269
|
+
});
|
|
270
|
+
return { receipt };
|
|
175
271
|
}
|
|
176
272
|
function applyFailureEvidence(primary, cleanup) {
|
|
177
273
|
const body = primary instanceof Error && primary.cause instanceof AggregateError
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-document-plan.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/use-cases/apply-document-plan.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,kCAAkC,EAClC,YAAY,EACZ,2BAA2B,EAC3B,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EAGhB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,+BAA+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UAAU,iBAAiB,CACrC,YAA2C,EAC3C,OAAiC;IAEjC,wEAAwE;IACxE,0EAA0E;IAC1E,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,iBAAiB,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E,IAAI,OAAO,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC;QACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,WAAW,EAAE,gCAAgC,EAC7E,yDAAyD,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IACxE,OAAO,mCAAmC,CACxC,KAAK,EACL,KAAK,IAAI,EAAE,CAAC,YAAY,CACtB,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,CAC3D,EACD,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"apply-document-plan.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/use-cases/apply-document-plan.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,kCAAkC,EAClC,YAAY,EACZ,2BAA2B,EAC3B,cAAc,EACd,oCAAoC,EACpC,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EAGhB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EACL,mCAAmC,EAEpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,wBAAwB,EAEzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,oBAAoB,EAErB,MAAM,sCAAsC,CAAC;AAa9C,SAAS,YAAY,CAAC,MAA+B;IAGnD,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC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,CAAC;IACxE,OAAO,mCAAmC,CACxC,KAAK,EACL,KAAK,IAAI,EAAE,CAAC,YAAY,CACtB,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,CAC3D,EACD,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DocumentPlanContract as DocumentPlan } from "../model/document-planning.js";
|
|
2
|
+
import type { DocumentReceiptContract as DocumentReceipt } from "../model/document-receipt.js";
|
|
3
|
+
import type { DocumentOwnedTemporary } from "../model/document-transaction.js";
|
|
4
|
+
import type { ApplyDocumentPlanDependencies, ApplyDocumentPlanRequest } from "./apply-document-plan.js";
|
|
5
|
+
import type { ActiveDocumentJournal } from "./document-transaction-continuation.js";
|
|
6
|
+
import { recoveryReceipt } from "./document-transaction-receipts.js";
|
|
7
|
+
export interface ApplyExecutionState {
|
|
8
|
+
active?: ActiveDocumentJournal;
|
|
9
|
+
publicationPossible: boolean;
|
|
10
|
+
retainTransactionBarrier: boolean;
|
|
11
|
+
temporary?: DocumentOwnedTemporary;
|
|
12
|
+
}
|
|
13
|
+
export declare function applyRecoveryReceipt(dependencies: ApplyDocumentPlanDependencies, request: ApplyDocumentPlanRequest, plan: DocumentPlan, state: ApplyExecutionState, options: Parameters<typeof recoveryReceipt>[1]): Promise<DocumentReceipt>;
|
|
14
|
+
//# sourceMappingURL=apply-document-recovery-receipt.d.ts.map
|
package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-document-recovery-receipt.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/use-cases/apply-document-recovery-receipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,KAAK,EAAE,uBAAuB,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EACV,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGrE,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,wBAAwB,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACpC;AAED,wBAAsB,oBAAoB,CACxC,YAAY,EAAE,6BAA6B,EAC3C,OAAO,EAAE,wBAAwB,EACjC,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,mBAAmB,EAC1B,OAAO,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,GAC7C,OAAO,CAAC,eAAe,CAAC,CAiB1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { recoveryReceipt } from "./document-transaction-receipts.js";
|
|
2
|
+
import { recaptureDirectoryReceiptEvidence } from "./recapture-directory-receipt-evidence.js";
|
|
3
|
+
export async function applyRecoveryReceipt(dependencies, request, plan, state, options) {
|
|
4
|
+
const captured = state.active === undefined
|
|
5
|
+
? { current: true }
|
|
6
|
+
: await recaptureDirectoryReceiptEvidence(dependencies.parentMaterializer, request.consumerRoot, state.active);
|
|
7
|
+
if (!captured.current) {
|
|
8
|
+
state.retainTransactionBarrier = true;
|
|
9
|
+
}
|
|
10
|
+
return recoveryReceipt(plan, {
|
|
11
|
+
...options,
|
|
12
|
+
...(captured.evidence === undefined
|
|
13
|
+
? {}
|
|
14
|
+
: { directoryEvidence: captured.evidence })
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=apply-document-recovery-receipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-document-recovery-receipt.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/use-cases/apply-document-recovery-receipt.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAS9F,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,YAA2C,EAC3C,OAAiC,EACjC,IAAkB,EAClB,KAA0B,EAC1B,OAA8C;IAE9C,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS;QACzC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAa,EAAE;QAC5B,CAAC,CAAC,MAAM,iCAAiC,CACrC,YAAY,CAAC,kBAAkB,EAC/B,OAAO,CAAC,YAAY,EACpB,KAAK,CAAC,MAAM,CACb,CAAC;IACN,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,KAAK,CAAC,wBAAwB,GAAG,IAAI,CAAC;IACxC,CAAC;IACD,OAAO,eAAe,CAAC,IAAI,EAAE;QAC3B,GAAG,OAAO;QACV,GAAG,CAAC,QAAQ,CAAC,QAAQ,KAAK,SAAS;YACjC,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,iBAAiB,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC9C,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { MarkdownRepository } from "../../../documentation-observation/application/ports/markdown-repository.js";
|
|
2
|
-
import type { DocumentationCatalogSnapshot, DocumentationSearchCatalogSnapshot } from "../model/document-catalog.js";
|
|
2
|
+
import type { DocumentationCatalogSnapshot, DocumentationCatalogSnapshotV2, DocumentationSearchCatalogSnapshot, DocumentationSearchCatalogSnapshotV2 } from "../model/document-catalog.js";
|
|
3
3
|
import type { DocumentationCatalogReadRequest, DocumentationSearchCatalogReader } from "../ports/documentation-search-catalog-reader.js";
|
|
4
4
|
import type { DocumentationCatalogReader } from "../ports/documentation-catalog-reader.js";
|
|
5
|
+
import type { DocumentationCatalogReaderV2 } from "../ports/documentation-catalog-reader-v2.js";
|
|
6
|
+
import type { DocumentationSearchCatalogReaderV2 } from "../ports/documentation-search-catalog-reader-v2.js";
|
|
7
|
+
import type { DocumentMetadataSidecarReader } from "../ports/document-metadata-sidecar-reader.js";
|
|
5
8
|
import type { AuthoringProfileReader } from "../ports/authoring-profile-reader.js";
|
|
6
9
|
import type { MetadataInstanceValidator } from "../ports/metadata-instance-validator.js";
|
|
7
10
|
import type { OwnerMembershipReader } from "../ports/owner-membership-reader.js";
|
|
@@ -10,6 +13,13 @@ export interface BuildDocumentationCatalogRequest {
|
|
|
10
13
|
readonly profilePath: string;
|
|
11
14
|
readonly signal?: AbortSignal;
|
|
12
15
|
}
|
|
16
|
+
interface CatalogDependencies {
|
|
17
|
+
readonly metadata: MetadataInstanceValidator;
|
|
18
|
+
readonly owners: OwnerMembershipReader;
|
|
19
|
+
readonly profile: AuthoringProfileReader;
|
|
20
|
+
readonly repository: MarkdownRepository;
|
|
21
|
+
readonly sidecar?: DocumentMetadataSidecarReader;
|
|
22
|
+
}
|
|
13
23
|
export declare class BuildDocumentationCatalog implements DocumentationCatalogReader, DocumentationSearchCatalogReader {
|
|
14
24
|
#private;
|
|
15
25
|
constructor(dependencies: {
|
|
@@ -21,4 +31,11 @@ export declare class BuildDocumentationCatalog implements DocumentationCatalogRe
|
|
|
21
31
|
execute(request: BuildDocumentationCatalogRequest): Promise<DocumentationCatalogSnapshot>;
|
|
22
32
|
read(request: DocumentationCatalogReadRequest): Promise<DocumentationSearchCatalogSnapshot>;
|
|
23
33
|
}
|
|
34
|
+
export declare class BuildDocumentationCatalogV2 implements DocumentationCatalogReaderV2, DocumentationSearchCatalogReaderV2 {
|
|
35
|
+
#private;
|
|
36
|
+
constructor(dependencies: CatalogDependencies);
|
|
37
|
+
execute(request: BuildDocumentationCatalogRequest): Promise<DocumentationCatalogSnapshotV2>;
|
|
38
|
+
read(request: DocumentationCatalogReadRequest): Promise<DocumentationSearchCatalogSnapshotV2>;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
24
41
|
//# sourceMappingURL=build-documentation-catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-documentation-catalog.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/use-cases/build-documentation-catalog.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6EAA6E,CAAC;AACtH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"build-documentation-catalog.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/use-cases/build-documentation-catalog.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6EAA6E,CAAC;AACtH,OAAO,KAAK,EAAuF,4BAA4B,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,oCAAoC,EAA6B,MAAM,8BAA8B,CAAC;AAC3S,OAAO,KAAK,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACzI,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,oDAAoD,CAAC;AAC7G,OAAO,KAAK,EACV,6BAA6B,EAE9B,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EACV,sBAAsB,EAGvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EACV,yBAAyB,EAE1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,qCAAqC,CAAC;AAoB7C,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,C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