@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
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { lstat, readdir, realpath } from "node:fs/promises";
|
|
2
|
+
import { isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
3
|
+
import { portableRepositoryPathIdentity } from "../../../repository-mutation/application/model/repository-path.js";
|
|
4
|
+
import { isDocumentRepositoryPath } from "../../application/policies/document-repository-path.js";
|
|
5
|
+
const nodeOperations = {
|
|
6
|
+
lstat: (path) => lstat(path, { bigint: true }),
|
|
7
|
+
readdir,
|
|
8
|
+
realpath
|
|
9
|
+
};
|
|
10
|
+
// Threat contract: portable Node does not expose mkdirat/linkat/openat2
|
|
11
|
+
// confinement through a held directory descriptor. These adapters therefore
|
|
12
|
+
// protect cooperative Foundation writers and fail closed on observable moves,
|
|
13
|
+
// replacements, and symlink swaps. A malicious same-OS-user process can still
|
|
14
|
+
// win an unobservable gap between a proof and a pathname syscall (including
|
|
15
|
+
// mkdir -> first lstat, open, and link), and may cause an out-of-root side
|
|
16
|
+
// effect before the post-operation proof rejects the result. Such hostile
|
|
17
|
+
// syscall racing is outside the portable adapter guarantee. Callers must
|
|
18
|
+
// recapture before and after every sensitive operation and must never claim
|
|
19
|
+
// ownership, journal evidence, or report publication when either proof differs.
|
|
20
|
+
function identity(metadata) {
|
|
21
|
+
const value = {
|
|
22
|
+
birthtimeNs: metadata.birthtimeNs,
|
|
23
|
+
dev: metadata.dev,
|
|
24
|
+
ino: metadata.ino
|
|
25
|
+
};
|
|
26
|
+
if (value.birthtimeNs === 0n || value.dev === 0n || value.ino === 0n) {
|
|
27
|
+
throw new Error("Repository path authority has zero physical identity.");
|
|
28
|
+
}
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
export function sameNodePathIdentity(left, right) {
|
|
32
|
+
return left.birthtimeNs === right.birthtimeNs &&
|
|
33
|
+
left.dev === right.dev &&
|
|
34
|
+
left.ino === right.ino;
|
|
35
|
+
}
|
|
36
|
+
function contained(root, candidate) {
|
|
37
|
+
const relation = relative(root, candidate);
|
|
38
|
+
return relation === "" ||
|
|
39
|
+
(!isAbsolute(relation) && relation !== ".." && !relation.startsWith(`..${sep}`));
|
|
40
|
+
}
|
|
41
|
+
function assertRealDirectory(metadata, description) {
|
|
42
|
+
if (metadata.isSymbolicLink() || !metadata.isDirectory()) {
|
|
43
|
+
throw new Error(`${description} must be a real directory.`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
async function assertNoPortableAlias(parent, segment, operations) {
|
|
47
|
+
const expected = portableRepositoryPathIdentity(segment);
|
|
48
|
+
const entries = await operations.readdir(parent);
|
|
49
|
+
if (entries.some((entry) => entry !== segment && portableRepositoryPathIdentity(entry) === expected)) {
|
|
50
|
+
throw new Error(`Repository ancestry has a portable name collision: ${segment}.`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export async function captureNodeRepositoryRootAuthority(consumerRoot, operations = nodeOperations) {
|
|
54
|
+
const lexicalRoot = resolve(consumerRoot);
|
|
55
|
+
const before = await operations.lstat(lexicalRoot);
|
|
56
|
+
assertRealDirectory(before, "Repository root");
|
|
57
|
+
const beforeIdentity = identity(before);
|
|
58
|
+
const canonicalRoot = await operations.realpath(lexicalRoot);
|
|
59
|
+
const [lexicalAfter, canonicalAfter] = await Promise.all([
|
|
60
|
+
operations.lstat(lexicalRoot),
|
|
61
|
+
operations.lstat(canonicalRoot)
|
|
62
|
+
]);
|
|
63
|
+
assertRealDirectory(lexicalAfter, "Repository root");
|
|
64
|
+
assertRealDirectory(canonicalAfter, "Canonical repository root");
|
|
65
|
+
const lexicalAfterIdentity = identity(lexicalAfter);
|
|
66
|
+
const canonicalAfterIdentity = identity(canonicalAfter);
|
|
67
|
+
if (!sameNodePathIdentity(beforeIdentity, lexicalAfterIdentity) ||
|
|
68
|
+
!sameNodePathIdentity(lexicalAfterIdentity, canonicalAfterIdentity)) {
|
|
69
|
+
throw new Error("Repository root identity changed while it was captured.");
|
|
70
|
+
}
|
|
71
|
+
return Object.freeze({
|
|
72
|
+
canonicalRoot,
|
|
73
|
+
identity: canonicalAfterIdentity,
|
|
74
|
+
lexicalRoot
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
async function captureChildDirectory(root, parent, repositoryPath, segment, operations) {
|
|
78
|
+
await assertNoPortableAlias(parent, segment, operations);
|
|
79
|
+
const absolutePath = join(parent, segment);
|
|
80
|
+
const before = await operations.lstat(absolutePath);
|
|
81
|
+
assertRealDirectory(before, `Repository ancestry ${repositoryPath}`);
|
|
82
|
+
const beforeIdentity = identity(before);
|
|
83
|
+
const canonical = await operations.realpath(absolutePath);
|
|
84
|
+
if (resolve(canonical) !== resolve(absolutePath) ||
|
|
85
|
+
!contained(root.canonicalRoot, canonical)) {
|
|
86
|
+
throw new Error("Repository ancestry is redirected or escapes the repository.");
|
|
87
|
+
}
|
|
88
|
+
const after = await operations.lstat(absolutePath);
|
|
89
|
+
assertRealDirectory(after, `Repository ancestry ${repositoryPath}`);
|
|
90
|
+
const afterIdentity = identity(after);
|
|
91
|
+
if (!sameNodePathIdentity(beforeIdentity, afterIdentity)) {
|
|
92
|
+
throw new Error(`Repository ancestry identity changed: ${repositoryPath}.`);
|
|
93
|
+
}
|
|
94
|
+
return Object.freeze({
|
|
95
|
+
absolutePath: canonical,
|
|
96
|
+
identity: afterIdentity,
|
|
97
|
+
repositoryPath
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
export async function captureNodeRepositoryDirectoryAuthority(request) {
|
|
101
|
+
const operations = request.operations ?? nodeOperations;
|
|
102
|
+
if (request.repositoryPath !== "." &&
|
|
103
|
+
!isDocumentRepositoryPath(request.repositoryPath)) {
|
|
104
|
+
throw new Error("Repository directory is not a portable repository path.");
|
|
105
|
+
}
|
|
106
|
+
const root = await captureNodeRepositoryRootAuthority(request.consumerRoot, operations);
|
|
107
|
+
const ancestry = [{
|
|
108
|
+
absolutePath: root.canonicalRoot,
|
|
109
|
+
identity: root.identity,
|
|
110
|
+
repositoryPath: "."
|
|
111
|
+
}];
|
|
112
|
+
let parent = root.canonicalRoot;
|
|
113
|
+
const traversed = [];
|
|
114
|
+
if (request.repositoryPath !== ".") {
|
|
115
|
+
for (const segment of request.repositoryPath.split("/")) {
|
|
116
|
+
traversed.push(segment);
|
|
117
|
+
const captured = await captureChildDirectory(root, parent, traversed.join("/"), segment, operations);
|
|
118
|
+
ancestry.push(captured);
|
|
119
|
+
parent = captured.absolutePath;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const rootAfter = await captureNodeRepositoryRootAuthority(request.consumerRoot, operations);
|
|
123
|
+
if (!sameRootAuthority(root, rootAfter)) {
|
|
124
|
+
throw new Error("Repository root changed while ancestry was captured.");
|
|
125
|
+
}
|
|
126
|
+
const leaf = ancestry.at(-1);
|
|
127
|
+
return Object.freeze({
|
|
128
|
+
ancestry: Object.freeze(ancestry),
|
|
129
|
+
directory: leaf.absolutePath,
|
|
130
|
+
directoryIdentity: leaf.identity,
|
|
131
|
+
repositoryPath: request.repositoryPath,
|
|
132
|
+
root
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
export async function captureNodeRepositoryPathAuthority(request) {
|
|
136
|
+
if (!isDocumentRepositoryPath(request.repositoryPath)) {
|
|
137
|
+
throw new Error("Repository destination is not a portable repository path.");
|
|
138
|
+
}
|
|
139
|
+
const segments = request.repositoryPath.split("/");
|
|
140
|
+
const basename = segments.at(-1);
|
|
141
|
+
const parentRepositoryPath = segments.length === 1
|
|
142
|
+
? "."
|
|
143
|
+
: segments.slice(0, -1).join("/");
|
|
144
|
+
const directory = await captureNodeRepositoryDirectoryAuthority({
|
|
145
|
+
consumerRoot: request.consumerRoot,
|
|
146
|
+
...(request.operations === undefined ? {} : { operations: request.operations }),
|
|
147
|
+
repositoryPath: parentRepositoryPath
|
|
148
|
+
});
|
|
149
|
+
await assertNoPortableAlias(directory.directory, basename, request.operations ?? nodeOperations);
|
|
150
|
+
return Object.freeze({
|
|
151
|
+
ancestry: directory.ancestry,
|
|
152
|
+
destinationPath: join(directory.directory, basename),
|
|
153
|
+
parent: directory.directory,
|
|
154
|
+
parentIdentity: directory.directoryIdentity,
|
|
155
|
+
repositoryPath: request.repositoryPath,
|
|
156
|
+
root: directory.root
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function sameRootAuthority(left, right) {
|
|
160
|
+
return left.canonicalRoot === right.canonicalRoot &&
|
|
161
|
+
left.lexicalRoot === right.lexicalRoot &&
|
|
162
|
+
sameNodePathIdentity(left.identity, right.identity);
|
|
163
|
+
}
|
|
164
|
+
export function sameNodePathAncestry(left, right) {
|
|
165
|
+
return left.length === right.length && left.every((entry, index) => {
|
|
166
|
+
const other = right[index];
|
|
167
|
+
return other !== undefined &&
|
|
168
|
+
entry.absolutePath === other.absolutePath &&
|
|
169
|
+
entry.repositoryPath === other.repositoryPath &&
|
|
170
|
+
sameNodePathIdentity(entry.identity, other.identity);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
export async function recaptureNodeRepositoryPathAuthority(authority, operations = nodeOperations) {
|
|
174
|
+
const recaptured = await captureNodeRepositoryPathAuthority({
|
|
175
|
+
consumerRoot: authority.root.lexicalRoot,
|
|
176
|
+
operations,
|
|
177
|
+
repositoryPath: authority.repositoryPath
|
|
178
|
+
});
|
|
179
|
+
if (!sameRootAuthority(authority.root, recaptured.root) ||
|
|
180
|
+
!sameNodePathAncestry(authority.ancestry, recaptured.ancestry) ||
|
|
181
|
+
authority.destinationPath !== recaptured.destinationPath) {
|
|
182
|
+
throw new Error("Repository path authority changed during the operation.");
|
|
183
|
+
}
|
|
184
|
+
return recaptured;
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=node-path-authority.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-path-authority.js","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/node-path-authority.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrE,OAA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AC,KAAK,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QACjE,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC3B,OAAO,KAAK,KAAK,SAAS;YACxB,KAAK,CAAC,YAAY,KAAK,KAAK,CAAC,YAAY;YACzC,KAAK,CAAC,cAAc,KAAK,KAAK,CAAC,cAAc;YAC7C,oBAAoB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oCAAoC,CACxD,SAAsC,EACtC,UAAU,GAAgC,cAAc;IAExD,MAAM,UAAU,GAAG,MAAM,kCAAkC,CAAC;QAC1D,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW;QACxC,UAAU;QACV,cAAc,EAAE,SAAS,CAAC,cAAc;KACzC,CAAC,CAAC;IACH,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC;QACrD,CAAC,oBAAoB,CAAC,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;QAC9D,SAAS,CAAC,eAAe,KAAK,UAAU,CAAC,eAAe,EAAE,CAAC;QAC3D,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PortablePathIdentity } from "../../../repository-mutation/application/model/path-identity.js";
|
|
2
|
+
import { sameNodePathIdentity } from "./node-path-authority.js";
|
|
2
3
|
export interface RecapturedDocumentPublicationPaths {
|
|
3
4
|
readonly ancestryIdentities: readonly PortablePathIdentity[];
|
|
4
5
|
readonly destinationPath: string;
|
|
@@ -11,6 +12,6 @@ export declare function recaptureDocumentPublicationPaths(request: {
|
|
|
11
12
|
readonly consumerRoot: string;
|
|
12
13
|
readonly destination: string;
|
|
13
14
|
}): Promise<RecapturedDocumentPublicationPaths>;
|
|
14
|
-
export declare
|
|
15
|
+
export declare const sameDocumentPhysicalIdentity: typeof sameNodePathIdentity;
|
|
15
16
|
export declare function sameDocumentAncestry(left: readonly PortablePathIdentity[], right: readonly PortablePathIdentity[]): boolean;
|
|
16
17
|
//# sourceMappingURL=recapture-document-publication-paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recapture-document-publication-paths.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/recapture-document-publication-paths.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iEAAiE,CAAC;
|
|
1
|
+
{"version":3,"file":"recapture-document-publication-paths.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/recapture-document-publication-paths.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iEAAiE,CAAC;AAC5G,OAAO,EAGL,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAElC,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,kBAAkB,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC7D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,EAAE,oBAAoB,CAAC;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAgBD,uGAAuG;AACvG,wBAAsB,iCAAiC,CAAC,OAAO,EAAE;IAC/D,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAkB9C;AAED,eAAO,MAAM,4BAA4B,6BAAuB,CAAC;AAEjE,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS,oBAAoB,EAAE,EACrC,KAAK,EAAE,SAAS,oBAAoB,EAAE,GACrC,OAAO,CAIT"}
|
|
@@ -1,89 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
1
|
+
import { readdir } from "node:fs/promises";
|
|
3
2
|
import { OWNED_TEMPORARY_CLEANUP_RESIDUE_MARKER } from "../../../repository-mutation/adapters/node/node-cleanup-owned-temporary.js";
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return name.normalize("NFC").replace(/[A-Z]/gu, (character) => character.toLowerCase());
|
|
12
|
-
}
|
|
13
|
-
async function assertNoPortableAlias(parent, segment) {
|
|
14
|
-
const identity = portableNameIdentity(segment);
|
|
15
|
-
const entries = await readdir(parent);
|
|
16
|
-
if (entries.some((entry) => entry !== segment && portableNameIdentity(entry) === identity)) {
|
|
17
|
-
throw new Error(`Document publication ancestry has a portable name alias: ${segment}.`);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
async function assertNoOwnedCleanupResidue(parent) {
|
|
21
|
-
const entries = await readdir(parent);
|
|
22
|
-
if (entries.some((entry) => entry.includes(OWNED_TEMPORARY_CLEANUP_RESIDUE_MARKER))) {
|
|
23
|
-
throw new Error("A document temporary cleanup residue was preserved for manual recovery.");
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function pathIdentity(metadata) {
|
|
27
|
-
const identity = {
|
|
28
|
-
birthtimeNs: metadata.birthtimeNs,
|
|
29
|
-
dev: metadata.dev,
|
|
30
|
-
ino: metadata.ino
|
|
31
|
-
};
|
|
32
|
-
if (identity.dev === 0n || identity.ino === 0n || identity.birthtimeNs === 0n) {
|
|
33
|
-
throw new Error("Document publication ancestry has zero physical identity.");
|
|
3
|
+
import { captureNodeRepositoryPathAuthority, recaptureNodeRepositoryPathAuthority, sameNodePathIdentity } from "./node-path-authority.js";
|
|
4
|
+
async function assertNoOwnedCleanupResidue(directories) {
|
|
5
|
+
for (const directory of directories) {
|
|
6
|
+
const entries = await readdir(directory);
|
|
7
|
+
if (entries.some((entry) => entry.includes(OWNED_TEMPORARY_CLEANUP_RESIDUE_MARKER))) {
|
|
8
|
+
throw new Error("A document temporary cleanup residue was preserved for manual recovery.");
|
|
9
|
+
}
|
|
34
10
|
}
|
|
35
|
-
return identity;
|
|
36
11
|
}
|
|
37
12
|
/** Recaptures strict real-directory ancestry; the result is valid only for the immediate operation. */
|
|
38
13
|
export async function recaptureDocumentPublicationPaths(request) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
throw new Error("Document publication root must be a real directory.");
|
|
46
|
-
}
|
|
47
|
-
const root = await realpath(lexicalRoot);
|
|
48
|
-
let parent = root;
|
|
49
|
-
const ancestryIdentities = [pathIdentity(rootMetadata)];
|
|
50
|
-
for (const segment of request.destination.split("/").slice(0, -1)) {
|
|
51
|
-
await assertNoOwnedCleanupResidue(parent);
|
|
52
|
-
await assertNoPortableAlias(parent, segment);
|
|
53
|
-
const candidate = join(parent, segment);
|
|
54
|
-
const metadata = await lstat(candidate, { bigint: true });
|
|
55
|
-
if (metadata.isSymbolicLink() || !metadata.isDirectory()) {
|
|
56
|
-
throw new Error(`Document publication ancestry is not a real directory: ${segment}.`);
|
|
57
|
-
}
|
|
58
|
-
const canonical = await realpath(candidate);
|
|
59
|
-
if (resolve(canonical) !== resolve(candidate) || !contained(root, canonical)) {
|
|
60
|
-
throw new Error("Document publication ancestry is redirected or escapes the repository.");
|
|
61
|
-
}
|
|
62
|
-
ancestryIdentities.push(pathIdentity(metadata));
|
|
63
|
-
parent = canonical;
|
|
64
|
-
}
|
|
65
|
-
const parentMetadata = await lstat(parent, { bigint: true });
|
|
66
|
-
if (parentMetadata.isSymbolicLink() || !parentMetadata.isDirectory()) {
|
|
67
|
-
throw new Error("Document publication parent changed during recapture.");
|
|
68
|
-
}
|
|
69
|
-
const basename = request.destination.split("/").at(-1);
|
|
70
|
-
await assertNoOwnedCleanupResidue(parent);
|
|
71
|
-
await assertNoPortableAlias(parent, basename);
|
|
14
|
+
const authority = await captureNodeRepositoryPathAuthority({
|
|
15
|
+
consumerRoot: request.consumerRoot,
|
|
16
|
+
repositoryPath: request.destination
|
|
17
|
+
});
|
|
18
|
+
await assertNoOwnedCleanupResidue(authority.ancestry.map((entry) => entry.absolutePath));
|
|
19
|
+
const recaptured = await recaptureNodeRepositoryPathAuthority(authority);
|
|
72
20
|
return Object.freeze({
|
|
73
|
-
ancestryIdentities: Object.freeze(
|
|
74
|
-
destinationPath:
|
|
75
|
-
parent,
|
|
76
|
-
parentIdentity:
|
|
77
|
-
root
|
|
21
|
+
ancestryIdentities: Object.freeze(recaptured.ancestry.map((entry) => entry.identity)),
|
|
22
|
+
destinationPath: recaptured.destinationPath,
|
|
23
|
+
parent: recaptured.parent,
|
|
24
|
+
parentIdentity: recaptured.parentIdentity,
|
|
25
|
+
root: recaptured.root.canonicalRoot
|
|
78
26
|
});
|
|
79
27
|
}
|
|
80
|
-
export
|
|
81
|
-
return left.dev === right.dev &&
|
|
82
|
-
left.ino === right.ino &&
|
|
83
|
-
left.birthtimeNs === right.birthtimeNs;
|
|
84
|
-
}
|
|
28
|
+
export const sameDocumentPhysicalIdentity = sameNodePathIdentity;
|
|
85
29
|
export function sameDocumentAncestry(left, right) {
|
|
86
30
|
return left.length === right.length &&
|
|
87
|
-
left.every((identity, index) =>
|
|
31
|
+
left.every((identity, index) => sameNodePathIdentity(identity, right[index]));
|
|
88
32
|
}
|
|
89
33
|
//# sourceMappingURL=recapture-document-publication-paths.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recapture-document-publication-paths.js","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/recapture-document-publication-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"recapture-document-publication-paths.js","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/recapture-document-publication-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,sCAAsC,EAAE,MAAM,4EAA4E,CAAC;AAEpI,OAAO,EACL,kCAAkC,EAClC,oCAAoC,EACpC,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAUlC,KAAK,UAAU,2BAA2B,CACxC,WAA8B;IAE9B,KAAK,MAAM,SAAS,IAAI,WAAW,EAAE,CAAC;QACpC,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,CAAC;QACzC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CACzB,KAAK,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAC,EAAE,CAAC;YAC1D,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,uGAAuG;AACvG,MAAM,CAAC,KAAK,UAAU,iCAAiC,CAAC,OAGvD;IACC,MAAM,SAAS,GAAG,MAAM,kCAAkC,CAAC;QACzD,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,cAAc,EAAE,OAAO,CAAC,WAAW;KACpC,CAAC,CAAC;IACH,MAAM,2BAA2B,CAC/B,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CACtD,CAAC;IACF,MAAM,UAAU,GAAG,MAAM,oCAAoC,CAAC,SAAS,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAC/B,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CACnD;QACD,eAAe,EAAE,UAAU,CAAC,eAAe;QAC3C,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,cAAc,EAAE,UAAU,CAAC,cAAc;QACzC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,aAAa;KACpC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,oBAAoB,CAAC;AAEjE,MAAM,UAAU,oBAAoB,CAClC,IAAqC,EACrC,KAAsC;IAEtC,OAAO,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QACjC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAC7B,oBAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAE,CAAC,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { DocumentAuthorityDigest, DocumentAuthorityEvidence } from "./document-catalog.js";
|
|
2
|
+
import type { DocumentCatalogCollection, DocumentIdentityStrategy, DocumentPlacementStrategy, DocumentReachabilityStrategy } from "./document-planning.js";
|
|
3
|
+
export type DocumentReachabilityStrategyV2 = Exclude<DocumentReachabilityStrategy, {
|
|
4
|
+
readonly kind: "not-required";
|
|
5
|
+
}> | {
|
|
6
|
+
readonly kind: "not-required";
|
|
7
|
+
readonly reason: string;
|
|
8
|
+
};
|
|
9
|
+
export interface DocumentAuthoringTypeDescriptionV2 {
|
|
10
|
+
readonly allowedOwnerIds: readonly string[];
|
|
11
|
+
readonly heading: {
|
|
12
|
+
readonly kind: "id-colon-title" | "title";
|
|
13
|
+
};
|
|
14
|
+
readonly identity: DocumentIdentityStrategy;
|
|
15
|
+
readonly initialStatus: string;
|
|
16
|
+
readonly placement: DocumentPlacementStrategy;
|
|
17
|
+
readonly reachability: DocumentReachabilityStrategyV2;
|
|
18
|
+
readonly requiredMetadata: readonly string[];
|
|
19
|
+
readonly template: {
|
|
20
|
+
readonly kind: "fenced-markdown-body";
|
|
21
|
+
readonly path: string;
|
|
22
|
+
};
|
|
23
|
+
readonly type: string;
|
|
24
|
+
}
|
|
25
|
+
export interface DocumentAuthoringProfileDescriptionV2 {
|
|
26
|
+
readonly authority: {
|
|
27
|
+
readonly metadataSchema: DocumentAuthorityEvidence;
|
|
28
|
+
readonly metadataSidecar?: DocumentAuthorityEvidence;
|
|
29
|
+
readonly ownerCatalog: DocumentAuthorityEvidence;
|
|
30
|
+
readonly profile: DocumentAuthorityEvidence;
|
|
31
|
+
readonly templates: readonly {
|
|
32
|
+
readonly evidence: DocumentAuthorityEvidence;
|
|
33
|
+
readonly type: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
readonly authorityPaths: {
|
|
37
|
+
readonly metadataSchema: string;
|
|
38
|
+
readonly metadataSidecar?: string;
|
|
39
|
+
readonly ownerCatalog: string;
|
|
40
|
+
readonly profile: string;
|
|
41
|
+
};
|
|
42
|
+
readonly catalog: {
|
|
43
|
+
readonly collections: readonly DocumentCatalogCollection[];
|
|
44
|
+
readonly excludedPrefixes: readonly string[];
|
|
45
|
+
};
|
|
46
|
+
readonly ownerIds: readonly string[];
|
|
47
|
+
readonly projectId: string;
|
|
48
|
+
readonly profileSchemaVersion: 2;
|
|
49
|
+
readonly schemaVersion: 2;
|
|
50
|
+
readonly semanticDigest: DocumentAuthorityDigest;
|
|
51
|
+
readonly types: readonly DocumentAuthoringTypeDescriptionV2[];
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=document-authoring-profile-description.d.ts.map
|
package/dist/document-authoring/application/model/document-authoring-profile-description.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-authoring-profile-description.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-authoring-profile-description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACxB,yB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AAI,EAAE,MAAM,CAAC;SACvB,EAAE,CAAC;KACL,CAAC;IACF,QAAQ,CAAC,cAAc,EAAE;QACvB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;QAChC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;QAClC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,WAAW,EAAE,SAAS,yBAAyB,EAAE,CAAC;QAC3D,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;KAC9C,CAAC;IACF,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,KAAK,EAAE,SAAS,kCAAkC,EAAE,CAAC;CAC/D"}
|
package/dist/document-authoring/application/model/document-authoring-profile-description.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-authoring-profile-description.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-authoring-profile-description.ts"],"names":[],"mappings":""}
|
|
@@ -14,6 +14,14 @@ export interface DocumentDescriptor {
|
|
|
14
14
|
readonly title: string;
|
|
15
15
|
readonly type: string;
|
|
16
16
|
}
|
|
17
|
+
export type DocumentMetadataPrimitive = boolean | null | number | string;
|
|
18
|
+
export interface DocumentMetadataObject {
|
|
19
|
+
readonly [key: string]: DocumentMetadataValue;
|
|
20
|
+
}
|
|
21
|
+
export type DocumentMetadataValue = DocumentMetadataPrimitive | readonly DocumentMetadataValue[] | DocumentMetadataObject;
|
|
22
|
+
export interface DocumentDescriptorV2 extends DocumentDescriptor {
|
|
23
|
+
readonly metadata: DocumentMetadataObject;
|
|
24
|
+
}
|
|
17
25
|
export interface DocumentIdentityProjectionEntry {
|
|
18
26
|
readonly id: string;
|
|
19
27
|
readonly repositoryPath: string;
|
|
@@ -33,6 +41,9 @@ export interface DocumentationCatalogAuthority {
|
|
|
33
41
|
readonly ownerCatalog: DocumentAuthorityEvidence;
|
|
34
42
|
readonly profile: DocumentAuthorityEvidence;
|
|
35
43
|
}
|
|
44
|
+
export interface DocumentationCatalogAuthorityV2 extends DocumentationCatalogAuthority {
|
|
45
|
+
readonly metadataSidecar?: DocumentAuthorityEvidence;
|
|
46
|
+
}
|
|
36
47
|
export interface DocumentationCatalogSnapshot {
|
|
37
48
|
readonly authority: DocumentationCatalogAuthority;
|
|
38
49
|
readonly diagnostics: readonly DocumentationCatalogDiagnostic[];
|
|
@@ -42,6 +53,17 @@ export interface DocumentationCatalogSnapshot {
|
|
|
42
53
|
readonly projectId: string;
|
|
43
54
|
readonly status: "complete" | "partial";
|
|
44
55
|
}
|
|
56
|
+
export interface DocumentationCatalogSnapshotV2 extends Omit<DocumentationCatalogSnapshot, "authority" | "documents"> {
|
|
57
|
+
readonly authority: DocumentationCatalogAuthorityV2;
|
|
58
|
+
readonly documents: readonly DocumentDescriptorV2[];
|
|
59
|
+
readonly semanticDigest: DocumentAuthorityDigest;
|
|
60
|
+
}
|
|
61
|
+
export type DocumentationCatalogSnapshotContract = Omit<DocumentationCatalogSnapshot, "authority"> & {
|
|
62
|
+
readonly authority: DocumentationCatalogAuthority & {
|
|
63
|
+
readonly metadataSidecar?: DocumentAuthorityEvidence;
|
|
64
|
+
};
|
|
65
|
+
readonly semanticDigest?: DocumentAuthorityDigest;
|
|
66
|
+
};
|
|
45
67
|
export interface DocumentSearchCorpusEntry {
|
|
46
68
|
readonly body: string;
|
|
47
69
|
readonly descriptor: DocumentDescriptor;
|
|
@@ -51,6 +73,13 @@ export interface DocumentationSearchCatalogSnapshot {
|
|
|
51
73
|
readonly catalog: DocumentationCatalogSnapshot;
|
|
52
74
|
readonly documents: readonly DocumentSearchCorpusEntry[];
|
|
53
75
|
}
|
|
76
|
+
export interface DocumentSearchCorpusEntryV2 extends Omit<DocumentSearchCorpusEntry, "descriptor"> {
|
|
77
|
+
readonly descriptor: DocumentDescriptorV2;
|
|
78
|
+
}
|
|
79
|
+
export interface DocumentationSearchCatalogSnapshotV2 {
|
|
80
|
+
readonly catalog: DocumentationCatalogSnapshotV2;
|
|
81
|
+
readonly documents: readonly DocumentSearchCorpusEntryV2[];
|
|
82
|
+
}
|
|
54
83
|
export interface ReferencedDocumentProjectionResult {
|
|
55
84
|
readonly documents: readonly ReferencedDocumentProjection[];
|
|
56
85
|
readonly missingIds: readonly string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-catalog.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,UAAU,MAAM,EAAE,CAAC;AAEzD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,GAAG,eAAe,CAAC;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW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C,OAAO,EAAE,4BAA4B,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,SAAS,yBAAyB,EAAE,CAAC;CAC1D;AAED,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,SAAS,EAAE,SAAS,4BAA4B,EAAE,CAAC;IAC5D,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3C"}
|
|
1
|
+
{"version":3,"file":"document-catalog.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,UAAU,MAAM,EAAE,CAAC;AAEzD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,GAAG,eAAe,CAAC;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AACzE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC;CAC/C;AACD,MAAM,MAAM,qBAAqB,GAC7B,yBAAyB,GACzB,SA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QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DocumentDescriptor, DocumentationCatalogDiagnostic } from "./document-catalog.js";
|
|
1
|
+
import type { DocumentAuthorityDigest, DocumentDescriptor, DocumentDescriptorV2, DocumentationCatalogDiagnostic } from "./document-catalog.js";
|
|
2
2
|
export interface DocumentFindFilters {
|
|
3
3
|
readonly id?: string;
|
|
4
4
|
readonly owner?: string;
|
|
@@ -15,4 +15,8 @@ export interface DocumentFindResult {
|
|
|
15
15
|
readonly documents: readonly DocumentDescriptor[];
|
|
16
16
|
readonly matches: number;
|
|
17
17
|
}
|
|
18
|
+
export interface DocumentFindResultV2 extends Omit<DocumentFindResult, "documents"> {
|
|
19
|
+
readonly catalogSemanticDigest: DocumentAuthorityDigest;
|
|
20
|
+
readonly documents: readonly DocumentDescriptorV2[];
|
|
21
|
+
}
|
|
18
22
|
//# sourceMappingURL=document-find.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-find.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-find.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,aAAa,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,WAAW,EAAE,SAAS,8BAA8B,EAAE,CAAC;IAChE,QAAQ,CAAC,SAAS,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B"}
|
|
1
|
+
{"version":3,"file":"document-find.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-find.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,aAAa,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,WAAW,EAAE,SAAS,8BAA8B,EAAE,CAAC;IAChE,QAAQ,CAAC,SAAS,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC;IAC7C,QAAQ,CAAC,qBAAqB,EAAE,uBAAuB,CAAC;IACxD,QAAQ,CAAC,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACrD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DocumentPhysicalIdentity } from "./document-physical-identity.js";
|
|
2
|
+
export interface DocumentParentMaterializationPlanV2 {
|
|
3
|
+
readonly policy: "create-missing-real-directories";
|
|
4
|
+
readonly deepestExistingDirectory: string;
|
|
5
|
+
readonly missingDirectories: readonly string[];
|
|
6
|
+
readonly finalParent: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DocumentCreatedDirectoryEvidenceV2 {
|
|
9
|
+
readonly path: string;
|
|
10
|
+
readonly identity: DocumentPhysicalIdentity;
|
|
11
|
+
}
|
|
12
|
+
export interface DocumentParentMaterializationJournalV2 {
|
|
13
|
+
readonly schemaVersion: 2;
|
|
14
|
+
readonly plan: DocumentParentMaterializationPlanV2;
|
|
15
|
+
readonly anchorIdentity: DocumentPhysicalIdentity;
|
|
16
|
+
readonly createdDirectories: readonly DocumentCreatedDirectoryEvidenceV2[];
|
|
17
|
+
}
|
|
18
|
+
export type DocumentParentMaterializationInspectionV2 = {
|
|
19
|
+
readonly state: "current";
|
|
20
|
+
readonly nextDirectory?: string;
|
|
21
|
+
} | {
|
|
22
|
+
readonly state: "manual-recovery-required";
|
|
23
|
+
readonly reason: "anchor-changed" | "created-directory-changed" | "portable-name-collision" | "unbound-directory-exists";
|
|
24
|
+
readonly path: string;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=document-parent-materialization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-parent-materialization.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-parent-materialization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAEhF,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,MAAM,EAAE,iCAAiC,CAAC;IACnD,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAC1C,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;CAC7C;AAED,MAAM,WAAW,sCAAsC;IACrD,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,mCAAmC,CAAC;IACnD,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;IAClD,QAAQ,CAAC,kBAAkB,EAAE,SAAS,kCAAkC,EAAE,CAAC;CAC5E;AAED,MAAM,MAAM,yCAAyC,GACjD;IACE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC,GACD;IACE,QAAQ,CAAC,KAAK,EAAE,0BAA0B,CAAC;IAC3C,QAAQ,CAAC,MAAM,EACX,gBAAgB,GAChB,2BAA2B,GAC3B,yBAAyB,GACzB,0BAA0B,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-parent-materialization.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-parent-materialization.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { DocumentAuthorityDigest, DocumentAuthorityEvidence, DocumentIdentityProjectionEntry,
|
|
1
|
+
import type { DocumentAuthorityDigest, DocumentAuthorityEvidence, DocumentIdentityProjectionEntry, DocumentationCatalogSnapshotContract } from "./document-catalog.js";
|
|
2
|
+
import type { DocumentParentMaterializationPlanV2 } from "./document-parent-materialization.js";
|
|
2
3
|
export type DocumentJsonPrimitive = boolean | null | number | string;
|
|
3
4
|
export interface DocumentJsonObject {
|
|
4
5
|
readonly [key: string]: DocumentJsonValue;
|
|
@@ -45,6 +46,7 @@ export type DocumentPlacementStrategy = {
|
|
|
45
46
|
readonly minimumSegmentsAfterRequired: number;
|
|
46
47
|
};
|
|
47
48
|
export interface DocumentArtifactType {
|
|
49
|
+
readonly allowedOwnerIds?: readonly string[];
|
|
48
50
|
readonly type: string;
|
|
49
51
|
readonly initialStatus: string;
|
|
50
52
|
readonly identity: DocumentIdentityStrategy;
|
|
@@ -81,11 +83,16 @@ export interface DocumentPlanningProfileSnapshot {
|
|
|
81
83
|
readonly evidence: DocumentAuthorityEvidence;
|
|
82
84
|
readonly excludedPrefixes: readonly string[];
|
|
83
85
|
readonly metadataSchemaPath: string;
|
|
86
|
+
readonly metadataSidecar?: {
|
|
87
|
+
readonly kind: "path-metadata-map";
|
|
88
|
+
readonly path: string;
|
|
89
|
+
};
|
|
84
90
|
readonly ownerCatalog: {
|
|
85
91
|
readonly contract: "foundation.owner-map/v1";
|
|
86
92
|
readonly path: string;
|
|
87
93
|
};
|
|
88
94
|
readonly projectId: string;
|
|
95
|
+
readonly schemaVersion?: 1 | 2;
|
|
89
96
|
}
|
|
90
97
|
export interface DocumentTemplateSnapshot {
|
|
91
98
|
readonly evidence: DocumentAuthorityEvidence;
|
|
@@ -112,6 +119,7 @@ export interface DocumentPlanningStateSnapshot {
|
|
|
112
119
|
readonly state: "directory";
|
|
113
120
|
readonly ancestry: "real-directories";
|
|
114
121
|
};
|
|
122
|
+
readonly parentMaterialization?: DocumentParentMaterializationPlanV2;
|
|
115
123
|
}
|
|
116
124
|
export interface DocumentPlanDiagnostic {
|
|
117
125
|
readonly ruleId: string;
|
|
@@ -166,8 +174,26 @@ export interface DocumentPlan {
|
|
|
166
174
|
readonly diagnostics: readonly DocumentPlanDiagnostic[];
|
|
167
175
|
readonly planDigest: DocumentAuthorityDigest;
|
|
168
176
|
}
|
|
177
|
+
export type DocumentPlanV1 = DocumentPlan;
|
|
178
|
+
export type DocumentPlanCommon = Omit<DocumentPlan, "protocolVersion" | "requiredAdapterCapabilities" | "schemaVersion">;
|
|
179
|
+
export interface DocumentPlanV2 extends Omit<DocumentPlanCommon, "authority"> {
|
|
180
|
+
readonly authority: DocumentPlan["authority"] & {
|
|
181
|
+
readonly metadataSidecar?: DocumentAuthorityEvidence;
|
|
182
|
+
readonly profileSemanticDigest: DocumentAuthorityDigest;
|
|
183
|
+
readonly catalogPreimageSemanticDigest: DocumentAuthorityDigest;
|
|
184
|
+
readonly expectedCatalogPostimageSemanticDigest: DocumentAuthorityDigest;
|
|
185
|
+
};
|
|
186
|
+
readonly schemaVersion: 2;
|
|
187
|
+
readonly protocolVersion: 2;
|
|
188
|
+
readonly parentMaterialization: DocumentParentMaterializationPlanV2;
|
|
189
|
+
readonly requiredAdapterCapabilities: readonly [
|
|
190
|
+
"create-directories-no-replace/v1",
|
|
191
|
+
"create-file-no-replace/v1"
|
|
192
|
+
];
|
|
193
|
+
}
|
|
194
|
+
export type DocumentPlanContract = DocumentPlan | DocumentPlanV2;
|
|
169
195
|
export interface DocumentPlanningCompilationInput {
|
|
170
|
-
readonly catalog:
|
|
196
|
+
readonly catalog: DocumentationCatalogSnapshotContract;
|
|
171
197
|
readonly compiler: DocumentCompilerIdentity;
|
|
172
198
|
readonly identityProjection: readonly DocumentIdentityProjectionEntry[];
|
|
173
199
|
readonly intent: DocumentIntent;
|
|
@@ -177,6 +203,7 @@ export interface DocumentPlanningCompilationInput {
|
|
|
177
203
|
readonly state: DocumentPlanningStateSnapshot;
|
|
178
204
|
readonly template: DocumentTemplateSnapshot;
|
|
179
205
|
readonly output: string;
|
|
206
|
+
readonly profileSemanticDigest?: DocumentAuthorityDigest;
|
|
180
207
|
}
|
|
181
208
|
export {};
|
|
182
209
|
//# sourceMappingURL=document-planning.d.ts.map
|