@agent-teams/engineering-foundation 0.21.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1004) hide show
  1. package/README.md +13 -19
  2. package/assets/windows-managed-process/WindowsManagedProcess.cs +2 -2
  3. package/assets/windows-managed-process/bootstrap.ps1 +25 -4
  4. package/dist/canonical-json.d.ts +1 -11
  5. package/dist/canonical-json.d.ts.map +1 -1
  6. package/dist/canonical-json.js +1 -150
  7. package/dist/canonical-json.js.map +1 -1
  8. package/dist/capabilities/documentation-local-references/application/model/documentation-local-references.d.ts +1 -1
  9. package/dist/capabilities/documentation-local-references/application/model/documentation-local-references.d.ts.map +1 -1
  10. package/dist/capabilities/documentation-local-references/application/policies/evaluate-documentation-local-references.js +1 -1
  11. package/dist/capabilities/documentation-local-references/application/policies/evaluate-documentation-local-references.js.map +1 -1
  12. package/dist/capabilities/documentation-local-references/application/use-cases/analyze-documentation-local-references.d.ts +1 -1
  13. package/dist/capabilities/documentation-local-references/application/use-cases/analyze-documentation-local-references.d.ts.map +1 -1
  14. package/dist/capabilities/documentation-local-references/module.js +1 -1
  15. package/dist/capabilities/documentation-local-references/module.js.map +1 -1
  16. package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.d.ts +1 -1
  17. package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.d.ts.map +1 -1
  18. package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.js +1 -1
  19. package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.js.map +1 -1
  20. package/dist/capabilities/governance-architecture-decisions/application/policies/architecture-decision-diagnostic.d.ts +1 -1
  21. package/dist/capabilities/governance-architecture-decisions/application/policies/architecture-decision-diagnostic.d.ts.map +1 -1
  22. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-index.d.ts +1 -1
  23. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-index.d.ts.map +1 -1
  24. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decisions.d.ts +1 -1
  25. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decisions.d.ts.map +1 -1
  26. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-architecture-decision-document.d.ts +1 -1
  27. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-architecture-decision-document.d.ts.map +1 -1
  28. package/dist/capabilities/governance-architecture-decisions/application/use-cases/analyze-architecture-decisions.d.ts +1 -1
  29. package/dist/capabilities/governance-architecture-decisions/application/use-cases/analyze-architecture-decisions.d.ts.map +1 -1
  30. package/dist/capabilities/governance-architecture-decisions/application/use-cases/inspect-architecture-decision-catalog.d.ts +1 -1
  31. package/dist/capabilities/governance-architecture-decisions/application/use-cases/inspect-architecture-decision-catalog.d.ts.map +1 -1
  32. package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.d.ts +1 -2
  33. package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.d.ts.map +1 -1
  34. package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.js.map +1 -1
  35. package/dist/capabilities/governance-architecture-decisions/module.js +1 -1
  36. package/dist/capabilities/governance-architecture-decisions/module.js.map +1 -1
  37. package/dist/capabilities/source-dependencies/adapters/outbound/node/generated-output-filesystem.d.ts +12 -0
  38. package/dist/capabilities/source-dependencies/adapters/outbound/node/generated-output-filesystem.d.ts.map +1 -0
  39. package/dist/capabilities/source-dependencies/adapters/outbound/node/generated-output-filesystem.js +123 -0
  40. package/dist/capabilities/source-dependencies/adapters/outbound/node/generated-output-filesystem.js.map +1 -0
  41. package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.d.ts.map +1 -1
  42. package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js +185 -29
  43. package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js.map +1 -1
  44. package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-snapshot.d.ts +30 -0
  45. package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-snapshot.d.ts.map +1 -0
  46. package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-snapshot.js +163 -0
  47. package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-snapshot.js.map +1 -0
  48. package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-topology-inspector.d.ts +18 -0
  49. package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-topology-inspector.d.ts.map +1 -0
  50. package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-topology-inspector.js +131 -0
  51. package/dist/capabilities/source-dependencies/adapters/outbound/node/pnpm-source-workspace-topology-inspector.js.map +1 -0
  52. package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.d.ts +31 -0
  53. package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.d.ts.map +1 -0
  54. package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.js +298 -0
  55. package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.js.map +1 -0
  56. package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-snapshot-reader.d.ts +9 -0
  57. package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-snapshot-reader.d.ts.map +1 -0
  58. package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-snapshot-reader.js +67 -0
  59. package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-snapshot-reader.js.map +1 -0
  60. package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-filesystem.d.ts +38 -0
  61. package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-filesystem.d.ts.map +1 -0
  62. package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-filesystem.js +139 -0
  63. package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-filesystem.js.map +1 -0
  64. package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-root-snapshot.d.ts +20 -0
  65. package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-root-snapshot.d.ts.map +1 -0
  66. package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-root-snapshot.js +39 -0
  67. package/dist/capabilities/source-dependencies/adapters/outbound/node/source-workspace-root-snapshot.js.map +1 -0
  68. package/dist/capabilities/source-dependencies/application/model/repository-path.d.ts +12 -0
  69. package/dist/capabilities/source-dependencies/application/model/repository-path.d.ts.map +1 -1
  70. package/dist/capabilities/source-dependencies/application/model/repository-path.js +59 -0
  71. package/dist/capabilities/source-dependencies/application/model/repository-path.js.map +1 -1
  72. package/dist/capabilities/source-dependencies/application/model/source-workspace-topology.d.ts +31 -0
  73. package/dist/capabilities/source-dependencies/application/model/source-workspace-topology.d.ts.map +1 -0
  74. package/dist/capabilities/source-dependencies/application/model/source-workspace-topology.js +2 -0
  75. package/dist/capabilities/source-dependencies/application/model/source-workspace-topology.js.map +1 -0
  76. package/dist/capabilities/source-dependencies/application/model/source-workspace.d.ts +20 -3
  77. package/dist/capabilities/source-dependencies/application/model/source-workspace.d.ts.map +1 -1
  78. package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.d.ts +1 -0
  79. package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.d.ts.map +1 -1
  80. package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.js +32 -3
  81. package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.js.map +1 -1
  82. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.d.ts +1 -0
  83. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.d.ts.map +1 -1
  84. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.js +2 -1
  85. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.js.map +1 -1
  86. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.d.ts.map +1 -1
  87. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.js +1 -0
  88. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.js.map +1 -1
  89. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-workspace-coverage.d.ts +5 -0
  90. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-workspace-coverage.d.ts.map +1 -0
  91. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-workspace-coverage.js +96 -0
  92. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-workspace-coverage.js.map +1 -0
  93. package/dist/capabilities/source-dependencies/application/ports/source-dependency-resolver.d.ts +15 -0
  94. package/dist/capabilities/source-dependencies/application/ports/source-dependency-resolver.d.ts.map +1 -1
  95. package/dist/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.d.ts +27 -0
  96. package/dist/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.d.ts.map +1 -0
  97. package/dist/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.js +2 -0
  98. package/dist/capabilities/source-dependencies/application/ports/source-workspace-topology-inspector.js.map +1 -0
  99. package/dist/capabilities/source-dependencies/application/rules.d.ts +1 -0
  100. package/dist/capabilities/source-dependencies/application/rules.d.ts.map +1 -1
  101. package/dist/capabilities/source-dependencies/application/rules.js +1 -0
  102. package/dist/capabilities/source-dependencies/application/rules.js.map +1 -1
  103. package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.d.ts +2 -0
  104. package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.d.ts.map +1 -1
  105. package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.js +113 -9
  106. package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.js.map +1 -1
  107. package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.d.ts +15 -0
  108. package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.d.ts.map +1 -1
  109. package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.js +27 -1
  110. package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.js.map +1 -1
  111. package/dist/capabilities/source-dependencies/contract/config.d.ts +3 -3
  112. package/dist/capabilities/source-dependencies/contract/config.d.ts.map +1 -1
  113. package/dist/capabilities/source-dependencies/contract/config.js +226 -44
  114. package/dist/capabilities/source-dependencies/contract/config.js.map +1 -1
  115. package/dist/capabilities/source-dependencies/module.d.ts.map +1 -1
  116. package/dist/capabilities/source-dependencies/module.js +11 -5
  117. package/dist/capabilities/source-dependencies/module.js.map +1 -1
  118. package/dist/cli-arguments.d.ts +0 -11
  119. package/dist/cli-arguments.d.ts.map +1 -1
  120. package/dist/cli-arguments.js +2 -143
  121. package/dist/cli-arguments.js.map +1 -1
  122. package/dist/cli.js +2 -16
  123. package/dist/cli.js.map +1 -1
  124. package/dist/index.d.ts +0 -2
  125. package/dist/index.d.ts.map +1 -1
  126. package/dist/index.js +0 -2
  127. package/dist/index.js.map +1 -1
  128. package/dist/local-mode/index.d.ts +1 -1
  129. package/dist/local-mode/index.js +1 -1
  130. package/dist/package-self-check.d.ts +1 -1
  131. package/dist/package-self-check.d.ts.map +1 -1
  132. package/dist/package-self-check.js +9 -24
  133. package/dist/package-self-check.js.map +1 -1
  134. package/dist/process-execution/node-process-runner.d.ts.map +1 -1
  135. package/dist/process-execution/node-process-runner.js +2 -2
  136. package/dist/process-execution/node-process-runner.js.map +1 -1
  137. package/dist/process-execution/windows-managed-process-diagnostics.d.ts +5 -0
  138. package/dist/process-execution/windows-managed-process-diagnostics.d.ts.map +1 -0
  139. package/dist/process-execution/windows-managed-process-diagnostics.js +110 -0
  140. package/dist/process-execution/windows-managed-process-diagnostics.js.map +1 -0
  141. package/dist/process-execution/windows-managed-process.d.ts +4 -2
  142. package/dist/process-execution/windows-managed-process.d.ts.map +1 -1
  143. package/dist/process-execution/windows-managed-process.js +39 -12
  144. package/dist/process-execution/windows-managed-process.js.map +1 -1
  145. package/dist/process-execution/windows-process-host.js +42 -30
  146. package/dist/process-execution/windows-process-host.js.map +1 -1
  147. package/dist/public-api-surface.d.ts +0 -2
  148. package/dist/public-api-surface.d.ts.map +1 -1
  149. package/dist/public-api-surface.js +0 -2
  150. package/dist/public-api-surface.js.map +1 -1
  151. package/dist/scaffolding/adapters/node/filesystem-authority-recovery.js +1 -1
  152. package/dist/scaffolding/adapters/node/filesystem-authority-recovery.js.map +1 -1
  153. package/dist/scaffolding/adapters/node/filesystem-authority-workspace.js +1 -1
  154. package/dist/scaffolding/adapters/node/filesystem-authority-workspace.js.map +1 -1
  155. package/dist/scaffolding/adapters/node/filesystem-file-identity.d.ts +3 -3
  156. package/dist/scaffolding/adapters/node/filesystem-file-identity.d.ts.map +1 -1
  157. package/dist/scaffolding/adapters/node/filesystem-file-identity.js +1 -1
  158. package/dist/scaffolding/adapters/node/filesystem-file-identity.js.map +1 -1
  159. package/dist/scaffolding/adapters/node/filesystem-operation-state.d.ts +2 -3
  160. package/dist/scaffolding/adapters/node/filesystem-operation-state.d.ts.map +1 -1
  161. package/dist/scaffolding/adapters/node/filesystem-operation-state.js +36 -16
  162. package/dist/scaffolding/adapters/node/filesystem-operation-state.js.map +1 -1
  163. package/dist/scaffolding/adapters/node/filesystem-path-guard.d.ts.map +1 -1
  164. package/dist/scaffolding/adapters/node/filesystem-path-guard.js +5 -6
  165. package/dist/scaffolding/adapters/node/filesystem-path-guard.js.map +1 -1
  166. package/dist/scaffolding/adapters/node/node-scaffold-journal-evidence.d.ts +17 -28
  167. package/dist/scaffolding/adapters/node/node-scaffold-journal-evidence.d.ts.map +1 -1
  168. package/dist/scaffolding/adapters/node/node-scaffold-journal-evidence.js +35 -97
  169. package/dist/scaffolding/adapters/node/node-scaffold-journal-evidence.js.map +1 -1
  170. package/dist/scaffolding/adapters/node/node-scaffold-journal-gateway.d.ts.map +1 -1
  171. package/dist/scaffolding/adapters/node/node-scaffold-journal-gateway.js +1 -1
  172. package/dist/scaffolding/adapters/node/node-scaffold-journal-gateway.js.map +1 -1
  173. package/dist/scaffolding/adapters/node/node-scaffold-journal-store-faults.d.ts +2 -2
  174. package/dist/scaffolding/adapters/node/node-scaffold-journal-store-faults.d.ts.map +1 -1
  175. package/dist/scaffolding/adapters/node/node-scaffold-journal-store.d.ts +6 -0
  176. package/dist/scaffolding/adapters/node/node-scaffold-journal-store.d.ts.map +1 -1
  177. package/dist/scaffolding/adapters/node/node-scaffold-journal-store.js +139 -274
  178. package/dist/scaffolding/adapters/node/node-scaffold-journal-store.js.map +1 -1
  179. package/dist/scaffolding/adapters/node/node-scaffold-journal-transaction-evidence.js +1 -2
  180. package/dist/scaffolding/adapters/node/node-scaffold-journal-transaction-evidence.js.map +1 -1
  181. package/dist/scaffolding/application/policies/legacy-scaffolding-repository-path.d.ts +1 -1
  182. package/dist/scaffolding/application/policies/legacy-scaffolding-repository-path.d.ts.map +1 -1
  183. package/dist/scaffolding/kernel/canonical-json.d.ts.map +1 -1
  184. package/dist/scaffolding/kernel/canonical-json.js +10 -42
  185. package/dist/scaffolding/kernel/canonical-json.js.map +1 -1
  186. package/dist/scaffolding/kernel/plan-content-validation.d.ts.map +1 -1
  187. package/dist/scaffolding/kernel/plan-content-validation.js +8 -1
  188. package/dist/scaffolding/kernel/plan-content-validation.js.map +1 -1
  189. package/dist/schema-catalog.d.ts.map +1 -1
  190. package/dist/schema-catalog.js +8 -21
  191. package/dist/schema-catalog.js.map +1 -1
  192. package/dist/schema-ids.d.ts +1 -1
  193. package/dist/schema-ids.d.ts.map +1 -1
  194. package/dist/schema-ids.js +1 -16
  195. package/dist/schema-ids.js.map +1 -1
  196. package/dist/strict-json.d.ts +1 -6
  197. package/dist/strict-json.d.ts.map +1 -1
  198. package/dist/strict-json.js +1 -40
  199. package/dist/strict-json.js.map +1 -1
  200. package/dist/transaction-coordination/adapters/node/document-envelope-bindings.d.ts.map +1 -1
  201. package/dist/transaction-coordination/adapters/node/document-envelope-bindings.js +3 -4
  202. package/dist/transaction-coordination/adapters/node/document-envelope-bindings.js.map +1 -1
  203. package/dist/transaction-coordination/adapters/node/foundation-scaffold-envelope.d.ts +8 -0
  204. package/dist/transaction-coordination/adapters/node/foundation-scaffold-envelope.d.ts.map +1 -0
  205. package/dist/transaction-coordination/adapters/node/foundation-scaffold-envelope.js +70 -0
  206. package/dist/transaction-coordination/adapters/node/foundation-scaffold-envelope.js.map +1 -0
  207. package/dist/transaction-coordination/adapters/node/foundation-transition-evidence.d.ts.map +1 -1
  208. package/dist/transaction-coordination/adapters/node/foundation-transition-evidence.js +42 -7
  209. package/dist/transaction-coordination/adapters/node/foundation-transition-evidence.js.map +1 -1
  210. package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.d.ts +0 -5
  211. package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.d.ts.map +1 -1
  212. package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.js +7 -124
  213. package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.js.map +1 -1
  214. package/dist/transaction-coordination/adapters/node/known-file-transaction-status.d.ts.map +1 -1
  215. package/dist/transaction-coordination/adapters/node/known-file-transaction-status.js +34 -4
  216. package/dist/transaction-coordination/adapters/node/known-file-transaction-status.js.map +1 -1
  217. package/dist/transaction-coordination/adapters/node/legacy-document-envelope-v2.d.ts +1 -0
  218. package/dist/transaction-coordination/adapters/node/legacy-document-envelope-v2.d.ts.map +1 -1
  219. package/dist/transaction-coordination/adapters/node/legacy-document-envelope-v2.js +3 -0
  220. package/dist/transaction-coordination/adapters/node/legacy-document-envelope-v2.js.map +1 -1
  221. package/dist/transaction-coordination/adapters/node/legacy-scaffolding-transaction-validation.d.ts +3 -0
  222. package/dist/transaction-coordination/adapters/node/legacy-scaffolding-transaction-validation.d.ts.map +1 -0
  223. package/dist/transaction-coordination/adapters/node/legacy-scaffolding-transaction-validation.js +52 -0
  224. package/dist/transaction-coordination/adapters/node/legacy-scaffolding-transaction-validation.js.map +1 -0
  225. package/dist/transaction-coordination/adapters/node/node-foundation-cleanup-transition.d.ts +2 -2
  226. package/dist/transaction-coordination/adapters/node/node-foundation-cleanup-transition.d.ts.map +1 -1
  227. package/dist/transaction-coordination/adapters/node/node-foundation-cleanup-transition.js +1 -2
  228. package/dist/transaction-coordination/adapters/node/node-foundation-cleanup-transition.js.map +1 -1
  229. package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.d.ts +1 -9
  230. package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.d.ts.map +1 -1
  231. package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.js +16 -338
  232. package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.js.map +1 -1
  233. package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.d.ts +5 -10
  234. package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.d.ts.map +1 -1
  235. package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.js +5 -90
  236. package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.js.map +1 -1
  237. package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.d.ts.map +1 -1
  238. package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.js +41 -26
  239. package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.js.map +1 -1
  240. package/dist/transaction-coordination/adapters/node/schema6-transaction-status.d.ts +7 -0
  241. package/dist/transaction-coordination/adapters/node/schema6-transaction-status.d.ts.map +1 -0
  242. package/dist/transaction-coordination/adapters/node/schema6-transaction-status.js +51 -0
  243. package/dist/transaction-coordination/adapters/node/schema6-transaction-status.js.map +1 -0
  244. package/dist/transaction-coordination/application/foundation-transaction-coordinator.d.ts.map +1 -1
  245. package/dist/transaction-coordination/application/foundation-transaction-coordinator.js +1 -1
  246. package/dist/transaction-coordination/application/foundation-transaction-coordinator.js.map +1 -1
  247. package/dist/transaction-coordination/application/model/transaction-status.d.ts +1 -1
  248. package/dist/transaction-coordination/application/model/transaction-status.d.ts.map +1 -1
  249. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-package-manifest-snapshot-reader.d.ts +3 -0
  250. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-package-manifest-snapshot-reader.d.ts.map +1 -0
  251. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-package-manifest-snapshot-reader.js +200 -0
  252. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-package-manifest-snapshot-reader.js.map +1 -0
  253. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.d.ts +2 -0
  254. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.d.ts.map +1 -1
  255. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.js +146 -190
  256. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.js.map +1 -1
  257. package/dist/workspace-inventory/application/model/workspace-inventory.d.ts +9 -0
  258. package/dist/workspace-inventory/application/model/workspace-inventory.d.ts.map +1 -1
  259. package/dist/workspace-inventory/application/policies/package-export-matcher.d.ts +10 -0
  260. package/dist/workspace-inventory/application/policies/package-export-matcher.d.ts.map +1 -0
  261. package/dist/workspace-inventory/application/policies/package-export-matcher.js +152 -0
  262. package/dist/workspace-inventory/application/policies/package-export-matcher.js.map +1 -0
  263. package/package.json +39 -71
  264. package/schemas/architecture-source-dependencies/v2.schema.json +119 -0
  265. package/dist/document-authoring/adapters/canonical-markdown.d.ts +0 -14
  266. package/dist/document-authoring/adapters/canonical-markdown.d.ts.map +0 -1
  267. package/dist/document-authoring/adapters/canonical-markdown.js +0 -354
  268. package/dist/document-authoring/adapters/canonical-markdown.js.map +0 -1
  269. package/dist/document-authoring/adapters/inbound/cli/document-command-failure.d.ts +0 -5
  270. package/dist/document-authoring/adapters/inbound/cli/document-command-failure.d.ts.map +0 -1
  271. package/dist/document-authoring/adapters/inbound/cli/document-command-failure.js +0 -36
  272. package/dist/document-authoring/adapters/inbound/cli/document-command-failure.js.map +0 -1
  273. package/dist/document-authoring/adapters/inbound/cli/document-command-renderer.d.ts +0 -6
  274. package/dist/document-authoring/adapters/inbound/cli/document-command-renderer.d.ts.map +0 -1
  275. package/dist/document-authoring/adapters/inbound/cli/document-command-renderer.js +0 -127
  276. package/dist/document-authoring/adapters/inbound/cli/document-command-renderer.js.map +0 -1
  277. package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.d.ts +0 -52
  278. package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.d.ts.map +0 -1
  279. package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.js +0 -103
  280. package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.js.map +0 -1
  281. package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile.d.ts +0 -33
  282. package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile.d.ts.map +0 -1
  283. package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile.js +0 -47
  284. package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile.js.map +0 -1
  285. package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.d.ts +0 -9
  286. package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.d.ts.map +0 -1
  287. package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.js +0 -42
  288. package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.js.map +0 -1
  289. package/dist/document-authoring/adapters/node/node-authoring-profile-reader.d.ts +0 -9
  290. package/dist/document-authoring/adapters/node/node-authoring-profile-reader.d.ts.map +0 -1
  291. package/dist/document-authoring/adapters/node/node-authoring-profile-reader.js +0 -31
  292. package/dist/document-authoring/adapters/node/node-authoring-profile-reader.js.map +0 -1
  293. package/dist/document-authoring/adapters/node/node-document-contract-validator.d.ts +0 -7
  294. package/dist/document-authoring/adapters/node/node-document-contract-validator.d.ts.map +0 -1
  295. package/dist/document-authoring/adapters/node/node-document-contract-validator.js +0 -306
  296. package/dist/document-authoring/adapters/node/node-document-contract-validator.js.map +0 -1
  297. package/dist/document-authoring/adapters/node/node-document-environment-inspector.d.ts +0 -17
  298. package/dist/document-authoring/adapters/node/node-document-environment-inspector.d.ts.map +0 -1
  299. package/dist/document-authoring/adapters/node/node-document-environment-inspector.js +0 -49
  300. package/dist/document-authoring/adapters/node/node-document-environment-inspector.js.map +0 -1
  301. package/dist/document-authoring/adapters/node/node-document-file-state.d.ts +0 -21
  302. package/dist/document-authoring/adapters/node/node-document-file-state.d.ts.map +0 -1
  303. package/dist/document-authoring/adapters/node/node-document-file-state.js +0 -199
  304. package/dist/document-authoring/adapters/node/node-document-file-state.js.map +0 -1
  305. package/dist/document-authoring/adapters/node/node-document-journal-slot.d.ts +0 -2
  306. package/dist/document-authoring/adapters/node/node-document-journal-slot.d.ts.map +0 -1
  307. package/dist/document-authoring/adapters/node/node-document-journal-slot.js +0 -18
  308. package/dist/document-authoring/adapters/node/node-document-journal-slot.js.map +0 -1
  309. package/dist/document-authoring/adapters/node/node-document-journal-store-faults.d.ts +0 -36
  310. package/dist/document-authoring/adapters/node/node-document-journal-store-faults.d.ts.map +0 -1
  311. package/dist/document-authoring/adapters/node/node-document-journal-store-faults.js +0 -2
  312. package/dist/document-authoring/adapters/node/node-document-journal-store-faults.js.map +0 -1
  313. package/dist/document-authoring/adapters/node/node-document-journal-store-private.d.ts +0 -2
  314. package/dist/document-authoring/adapters/node/node-document-journal-store-private.d.ts.map +0 -1
  315. package/dist/document-authoring/adapters/node/node-document-journal-store-private.js +0 -2
  316. package/dist/document-authoring/adapters/node/node-document-journal-store-private.js.map +0 -1
  317. package/dist/document-authoring/adapters/node/node-document-journal-store.d.ts +0 -22
  318. package/dist/document-authoring/adapters/node/node-document-journal-store.d.ts.map +0 -1
  319. package/dist/document-authoring/adapters/node/node-document-journal-store.js +0 -339
  320. package/dist/document-authoring/adapters/node/node-document-journal-store.js.map +0 -1
  321. package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.d.ts +0 -9
  322. package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.d.ts.map +0 -1
  323. package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.js +0 -87
  324. package/dist/document-authoring/adapters/node/node-document-metadata-sidecar-reader.js.map +0 -1
  325. package/dist/document-authoring/adapters/node/node-document-parent-materializer.d.ts +0 -39
  326. package/dist/document-authoring/adapters/node/node-document-parent-materializer.d.ts.map +0 -1
  327. package/dist/document-authoring/adapters/node/node-document-parent-materializer.js +0 -270
  328. package/dist/document-authoring/adapters/node/node-document-parent-materializer.js.map +0 -1
  329. package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.d.ts +0 -10
  330. package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.d.ts.map +0 -1
  331. package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.js +0 -85
  332. package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.js.map +0 -1
  333. package/dist/document-authoring/adapters/node/node-document-planning-state-reader.d.ts +0 -11
  334. package/dist/document-authoring/adapters/node/node-document-planning-state-reader.d.ts.map +0 -1
  335. package/dist/document-authoring/adapters/node/node-document-planning-state-reader.js +0 -181
  336. package/dist/document-authoring/adapters/node/node-document-planning-state-reader.js.map +0 -1
  337. package/dist/document-authoring/adapters/node/node-document-publisher-private.d.ts +0 -2
  338. package/dist/document-authoring/adapters/node/node-document-publisher-private.d.ts.map +0 -1
  339. package/dist/document-authoring/adapters/node/node-document-publisher-private.js +0 -2
  340. package/dist/document-authoring/adapters/node/node-document-publisher-private.js.map +0 -1
  341. package/dist/document-authoring/adapters/node/node-document-publisher.d.ts +0 -54
  342. package/dist/document-authoring/adapters/node/node-document-publisher.d.ts.map +0 -1
  343. package/dist/document-authoring/adapters/node/node-document-publisher.js +0 -343
  344. package/dist/document-authoring/adapters/node/node-document-publisher.js.map +0 -1
  345. package/dist/document-authoring/adapters/node/node-document-reachability-projector.d.ts +0 -17
  346. package/dist/document-authoring/adapters/node/node-document-reachability-projector.d.ts.map +0 -1
  347. package/dist/document-authoring/adapters/node/node-document-reachability-projector.js +0 -43
  348. package/dist/document-authoring/adapters/node/node-document-reachability-projector.js.map +0 -1
  349. package/dist/document-authoring/adapters/node/node-document-structure-verifier.d.ts +0 -21
  350. package/dist/document-authoring/adapters/node/node-document-structure-verifier.d.ts.map +0 -1
  351. package/dist/document-authoring/adapters/node/node-document-structure-verifier.js +0 -80
  352. package/dist/document-authoring/adapters/node/node-document-structure-verifier.js.map +0 -1
  353. package/dist/document-authoring/adapters/node/node-document-template-reader.d.ts +0 -10
  354. package/dist/document-authoring/adapters/node/node-document-template-reader.d.ts.map +0 -1
  355. package/dist/document-authoring/adapters/node/node-document-template-reader.js +0 -32
  356. package/dist/document-authoring/adapters/node/node-document-template-reader.js.map +0 -1
  357. package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.d.ts +0 -21
  358. package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.d.ts.map +0 -1
  359. package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.js +0 -67
  360. package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.js.map +0 -1
  361. package/dist/document-authoring/adapters/node/node-metadata-instance-validator.d.ts +0 -9
  362. package/dist/document-authoring/adapters/node/node-metadata-instance-validator.d.ts.map +0 -1
  363. package/dist/document-authoring/adapters/node/node-metadata-instance-validator.js +0 -90
  364. package/dist/document-authoring/adapters/node/node-metadata-instance-validator.js.map +0 -1
  365. package/dist/document-authoring/adapters/node/node-owner-membership-reader.d.ts +0 -10
  366. package/dist/document-authoring/adapters/node/node-owner-membership-reader.d.ts.map +0 -1
  367. package/dist/document-authoring/adapters/node/node-owner-membership-reader.js +0 -62
  368. package/dist/document-authoring/adapters/node/node-owner-membership-reader.js.map +0 -1
  369. package/dist/document-authoring/adapters/node/node-path-authority.d.ts +0 -53
  370. package/dist/document-authoring/adapters/node/node-path-authority.d.ts.map +0 -1
  371. package/dist/document-authoring/adapters/node/node-path-authority.js +0 -186
  372. package/dist/document-authoring/adapters/node/node-path-authority.js.map +0 -1
  373. package/dist/document-authoring/adapters/node/read-document-authority-file.d.ts +0 -12
  374. package/dist/document-authoring/adapters/node/read-document-authority-file.d.ts.map +0 -1
  375. package/dist/document-authoring/adapters/node/read-document-authority-file.js +0 -78
  376. package/dist/document-authoring/adapters/node/read-document-authority-file.js.map +0 -1
  377. package/dist/document-authoring/adapters/node/recapture-document-publication-paths.d.ts +0 -17
  378. package/dist/document-authoring/adapters/node/recapture-document-publication-paths.d.ts.map +0 -1
  379. package/dist/document-authoring/adapters/node/recapture-document-publication-paths.js +0 -33
  380. package/dist/document-authoring/adapters/node/recapture-document-publication-paths.js.map +0 -1
  381. package/dist/document-authoring/application/model/document-authoring-profile-description.d.ts +0 -57
  382. package/dist/document-authoring/application/model/document-authoring-profile-description.d.ts.map +0 -1
  383. package/dist/document-authoring/application/model/document-authoring-profile-description.js +0 -2
  384. package/dist/document-authoring/application/model/document-authoring-profile-description.js.map +0 -1
  385. package/dist/document-authoring/application/model/document-catalog.d.ts +0 -88
  386. package/dist/document-authoring/application/model/document-catalog.d.ts.map +0 -1
  387. package/dist/document-authoring/application/model/document-catalog.js +0 -2
  388. package/dist/document-authoring/application/model/document-catalog.js.map +0 -1
  389. package/dist/document-authoring/application/model/document-command.d.ts +0 -69
  390. package/dist/document-authoring/application/model/document-command.d.ts.map +0 -1
  391. package/dist/document-authoring/application/model/document-command.js +0 -2
  392. package/dist/document-authoring/application/model/document-command.js.map +0 -1
  393. package/dist/document-authoring/application/model/document-find.d.ts +0 -22
  394. package/dist/document-authoring/application/model/document-find.d.ts.map +0 -1
  395. package/dist/document-authoring/application/model/document-find.js +0 -2
  396. package/dist/document-authoring/application/model/document-find.js.map +0 -1
  397. package/dist/document-authoring/application/model/document-parent-materialization.d.ts +0 -26
  398. package/dist/document-authoring/application/model/document-parent-materialization.d.ts.map +0 -1
  399. package/dist/document-authoring/application/model/document-parent-materialization.js +0 -2
  400. package/dist/document-authoring/application/model/document-parent-materialization.js.map +0 -1
  401. package/dist/document-authoring/application/model/document-physical-identity.d.ts +0 -10
  402. package/dist/document-authoring/application/model/document-physical-identity.d.ts.map +0 -1
  403. package/dist/document-authoring/application/model/document-physical-identity.js +0 -29
  404. package/dist/document-authoring/application/model/document-physical-identity.js.map +0 -1
  405. package/dist/document-authoring/application/model/document-planning.d.ts +0 -209
  406. package/dist/document-authoring/application/model/document-planning.d.ts.map +0 -1
  407. package/dist/document-authoring/application/model/document-planning.js +0 -2
  408. package/dist/document-authoring/application/model/document-planning.js.map +0 -1
  409. package/dist/document-authoring/application/model/document-receipt.d.ts +0 -101
  410. package/dist/document-authoring/application/model/document-receipt.d.ts.map +0 -1
  411. package/dist/document-authoring/application/model/document-receipt.js +0 -2
  412. package/dist/document-authoring/application/model/document-receipt.js.map +0 -1
  413. package/dist/document-authoring/application/model/document-transaction-inspection.d.ts +0 -66
  414. package/dist/document-authoring/application/model/document-transaction-inspection.d.ts.map +0 -1
  415. package/dist/document-authoring/application/model/document-transaction-inspection.js +0 -2
  416. package/dist/document-authoring/application/model/document-transaction-inspection.js.map +0 -1
  417. package/dist/document-authoring/application/model/document-transaction.d.ts +0 -169
  418. package/dist/document-authoring/application/model/document-transaction.d.ts.map +0 -1
  419. package/dist/document-authoring/application/model/document-transaction.js +0 -2
  420. package/dist/document-authoring/application/model/document-transaction.js.map +0 -1
  421. package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.d.ts +0 -3
  422. package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.d.ts.map +0 -1
  423. package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.js +0 -8
  424. package/dist/document-authoring/application/policies/assert-artifact-owner-allowed.js.map +0 -1
  425. package/dist/document-authoring/application/policies/assert-v2-planning-profile.d.ts +0 -3
  426. package/dist/document-authoring/application/policies/assert-v2-planning-profile.d.ts.map +0 -1
  427. package/dist/document-authoring/application/policies/assert-v2-planning-profile.js +0 -7
  428. package/dist/document-authoring/application/policies/assert-v2-planning-profile.js.map +0 -1
  429. package/dist/document-authoring/application/policies/authoring-profile-semantics.d.ts +0 -42
  430. package/dist/document-authoring/application/policies/authoring-profile-semantics.d.ts.map +0 -1
  431. package/dist/document-authoring/application/policies/authoring-profile-semantics.js +0 -129
  432. package/dist/document-authoring/application/policies/authoring-profile-semantics.js.map +0 -1
  433. package/dist/document-authoring/application/policies/classify-document-recovery.d.ts +0 -81
  434. package/dist/document-authoring/application/policies/classify-document-recovery.d.ts.map +0 -1
  435. package/dist/document-authoring/application/policies/classify-document-recovery.js +0 -138
  436. package/dist/document-authoring/application/policies/classify-document-recovery.js.map +0 -1
  437. package/dist/document-authoring/application/policies/document-authoring-semantic-digests.d.ts +0 -31
  438. package/dist/document-authoring/application/policies/document-authoring-semantic-digests.d.ts.map +0 -1
  439. package/dist/document-authoring/application/policies/document-authoring-semantic-digests.js +0 -163
  440. package/dist/document-authoring/application/policies/document-authoring-semantic-digests.js.map +0 -1
  441. package/dist/document-authoring/application/policies/document-catalog-authority-stability.d.ts +0 -12
  442. package/dist/document-authoring/application/policies/document-catalog-authority-stability.d.ts.map +0 -1
  443. package/dist/document-authoring/application/policies/document-catalog-authority-stability.js +0 -16
  444. package/dist/document-authoring/application/policies/document-catalog-authority-stability.js.map +0 -1
  445. package/dist/document-authoring/application/policies/document-catalog-diagnostics.d.ts +0 -8
  446. package/dist/document-authoring/application/policies/document-catalog-diagnostics.d.ts.map +0 -1
  447. package/dist/document-authoring/application/policies/document-catalog-diagnostics.js +0 -44
  448. package/dist/document-authoring/application/policies/document-catalog-diagnostics.js.map +0 -1
  449. package/dist/document-authoring/application/policies/document-catalog-fields.d.ts +0 -18
  450. package/dist/document-authoring/application/policies/document-catalog-fields.d.ts.map +0 -1
  451. package/dist/document-authoring/application/policies/document-catalog-fields.js +0 -62
  452. package/dist/document-authoring/application/policies/document-catalog-fields.js.map +0 -1
  453. package/dist/document-authoring/application/policies/document-catalog-sidecar.d.ts +0 -10
  454. package/dist/document-authoring/application/policies/document-catalog-sidecar.d.ts.map +0 -1
  455. package/dist/document-authoring/application/policies/document-catalog-sidecar.js +0 -66
  456. package/dist/document-authoring/application/policies/document-catalog-sidecar.js.map +0 -1
  457. package/dist/document-authoring/application/policies/document-command-consumer-root.d.ts +0 -2
  458. package/dist/document-authoring/application/policies/document-command-consumer-root.d.ts.map +0 -1
  459. package/dist/document-authoring/application/policies/document-command-consumer-root.js +0 -15
  460. package/dist/document-authoring/application/policies/document-command-consumer-root.js.map +0 -1
  461. package/dist/document-authoring/application/policies/document-command-projection.d.ts +0 -20
  462. package/dist/document-authoring/application/policies/document-command-projection.d.ts.map +0 -1
  463. package/dist/document-authoring/application/policies/document-command-projection.js +0 -90
  464. package/dist/document-authoring/application/policies/document-command-projection.js.map +0 -1
  465. package/dist/document-authoring/application/policies/document-contract-digests.d.ts +0 -20
  466. package/dist/document-authoring/application/policies/document-contract-digests.d.ts.map +0 -1
  467. package/dist/document-authoring/application/policies/document-contract-digests.js +0 -329
  468. package/dist/document-authoring/application/policies/document-contract-digests.js.map +0 -1
  469. package/dist/document-authoring/application/policies/document-logical-preimage.d.ts +0 -14
  470. package/dist/document-authoring/application/policies/document-logical-preimage.d.ts.map +0 -1
  471. package/dist/document-authoring/application/policies/document-logical-preimage.js +0 -61
  472. package/dist/document-authoring/application/policies/document-logical-preimage.js.map +0 -1
  473. package/dist/document-authoring/application/policies/document-planning-policy-error.d.ts +0 -6
  474. package/dist/document-authoring/application/policies/document-planning-policy-error.d.ts.map +0 -1
  475. package/dist/document-authoring/application/policies/document-planning-policy-error.js +0 -9
  476. package/dist/document-authoring/application/policies/document-planning-policy-error.js.map +0 -1
  477. package/dist/document-authoring/application/policies/document-receipt-policy.d.ts +0 -5
  478. package/dist/document-authoring/application/policies/document-receipt-policy.d.ts.map +0 -1
  479. package/dist/document-authoring/application/policies/document-receipt-policy.js +0 -92
  480. package/dist/document-authoring/application/policies/document-receipt-policy.js.map +0 -1
  481. package/dist/document-authoring/application/policies/document-repository-path.d.ts +0 -3
  482. package/dist/document-authoring/application/policies/document-repository-path.d.ts.map +0 -1
  483. package/dist/document-authoring/application/policies/document-repository-path.js +0 -24
  484. package/dist/document-authoring/application/policies/document-repository-path.js.map +0 -1
  485. package/dist/document-authoring/application/policies/document-temporary-path.d.ts +0 -7
  486. package/dist/document-authoring/application/policies/document-temporary-path.d.ts.map +0 -1
  487. package/dist/document-authoring/application/policies/document-temporary-path.js +0 -34
  488. package/dist/document-authoring/application/policies/document-temporary-path.js.map +0 -1
  489. package/dist/document-authoring/application/policies/document-transaction-digests.d.ts +0 -5
  490. package/dist/document-authoring/application/policies/document-transaction-digests.d.ts.map +0 -1
  491. package/dist/document-authoring/application/policies/document-transaction-digests.js +0 -12
  492. package/dist/document-authoring/application/policies/document-transaction-digests.js.map +0 -1
  493. package/dist/document-authoring/application/policies/document-transaction-envelope-body.d.ts +0 -28
  494. package/dist/document-authoring/application/policies/document-transaction-envelope-body.d.ts.map +0 -1
  495. package/dist/document-authoring/application/policies/document-transaction-envelope-body.js +0 -140
  496. package/dist/document-authoring/application/policies/document-transaction-envelope-body.js.map +0 -1
  497. package/dist/document-authoring/application/policies/document-transaction-envelope-policy.d.ts +0 -4
  498. package/dist/document-authoring/application/policies/document-transaction-envelope-policy.d.ts.map +0 -1
  499. package/dist/document-authoring/application/policies/document-transaction-envelope-policy.js +0 -159
  500. package/dist/document-authoring/application/policies/document-transaction-envelope-policy.js.map +0 -1
  501. package/dist/document-authoring/application/policies/inspect-catalog-document.d.ts +0 -18
  502. package/dist/document-authoring/application/policies/inspect-catalog-document.d.ts.map +0 -1
  503. package/dist/document-authoring/application/policies/inspect-catalog-document.js +0 -126
  504. package/dist/document-authoring/application/policies/inspect-catalog-document.js.map +0 -1
  505. package/dist/document-authoring/application/policies/normalize-document-intent.d.ts +0 -3
  506. package/dist/document-authoring/application/policies/normalize-document-intent.d.ts.map +0 -1
  507. package/dist/document-authoring/application/policies/normalize-document-intent.js +0 -104
  508. package/dist/document-authoring/application/policies/normalize-document-intent.js.map +0 -1
  509. package/dist/document-authoring/application/policies/project-catalog-metadata.d.ts +0 -7
  510. package/dist/document-authoring/application/policies/project-catalog-metadata.d.ts.map +0 -1
  511. package/dist/document-authoring/application/policies/project-catalog-metadata.js +0 -165
  512. package/dist/document-authoring/application/policies/project-catalog-metadata.js.map +0 -1
  513. package/dist/document-authoring/application/policies/project-document-reachability.d.ts +0 -14
  514. package/dist/document-authoring/application/policies/project-document-reachability.d.ts.map +0 -1
  515. package/dist/document-authoring/application/policies/project-document-reachability.js +0 -57
  516. package/dist/document-authoring/application/policies/project-document-reachability.js.map +0 -1
  517. package/dist/document-authoring/application/policies/project-similar-document-advice.d.ts +0 -4
  518. package/dist/document-authoring/application/policies/project-similar-document-advice.d.ts.map +0 -1
  519. package/dist/document-authoring/application/policies/project-similar-document-advice.js +0 -17
  520. package/dist/document-authoring/application/policies/project-similar-document-advice.js.map +0 -1
  521. package/dist/document-authoring/application/policies/resolve-document-authoring.d.ts +0 -13
  522. package/dist/document-authoring/application/policies/resolve-document-authoring.d.ts.map +0 -1
  523. package/dist/document-authoring/application/policies/resolve-document-authoring.js +0 -154
  524. package/dist/document-authoring/application/policies/resolve-document-authoring.js.map +0 -1
  525. package/dist/document-authoring/application/policies/same-document-catalog-snapshot.d.ts +0 -3
  526. package/dist/document-authoring/application/policies/same-document-catalog-snapshot.d.ts.map +0 -1
  527. package/dist/document-authoring/application/policies/same-document-catalog-snapshot.js +0 -24
  528. package/dist/document-authoring/application/policies/same-document-catalog-snapshot.js.map +0 -1
  529. package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts +0 -37
  530. package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts.map +0 -1
  531. package/dist/document-authoring/application/ports/authoring-profile-reader.js +0 -2
  532. package/dist/document-authoring/application/ports/authoring-profile-reader.js.map +0 -1
  533. package/dist/document-authoring/application/ports/canonical-document-renderer.d.ts +0 -29
  534. package/dist/document-authoring/application/ports/canonical-document-renderer.d.ts.map +0 -1
  535. package/dist/document-authoring/application/ports/canonical-document-renderer.js +0 -2
  536. package/dist/document-authoring/application/ports/canonical-document-renderer.js.map +0 -1
  537. package/dist/document-authoring/application/ports/document-authority-recompiler.d.ts +0 -19
  538. package/dist/document-authoring/application/ports/document-authority-recompiler.d.ts.map +0 -1
  539. package/dist/document-authoring/application/ports/document-authority-recompiler.js +0 -2
  540. package/dist/document-authoring/application/ports/document-authority-recompiler.js.map +0 -1
  541. package/dist/document-authoring/application/ports/document-contract-validator.d.ts +0 -6
  542. package/dist/document-authoring/application/ports/document-contract-validator.d.ts.map +0 -1
  543. package/dist/document-authoring/application/ports/document-contract-validator.js +0 -2
  544. package/dist/document-authoring/application/ports/document-contract-validator.js.map +0 -1
  545. package/dist/document-authoring/application/ports/document-environment-inspector.d.ts +0 -12
  546. package/dist/document-authoring/application/ports/document-environment-inspector.d.ts.map +0 -1
  547. package/dist/document-authoring/application/ports/document-environment-inspector.js +0 -2
  548. package/dist/document-authoring/application/ports/document-environment-inspector.js.map +0 -1
  549. package/dist/document-authoring/application/ports/document-file-state.d.ts +0 -55
  550. package/dist/document-authoring/application/ports/document-file-state.d.ts.map +0 -1
  551. package/dist/document-authoring/application/ports/document-file-state.js +0 -2
  552. package/dist/document-authoring/application/ports/document-file-state.js.map +0 -1
  553. package/dist/document-authoring/application/ports/document-journal-store.d.ts +0 -31
  554. package/dist/document-authoring/application/ports/document-journal-store.d.ts.map +0 -1
  555. package/dist/document-authoring/application/ports/document-journal-store.js +0 -2
  556. package/dist/document-authoring/application/ports/document-journal-store.js.map +0 -1
  557. package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.d.ts +0 -13
  558. package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.d.ts.map +0 -1
  559. package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.js +0 -2
  560. package/dist/document-authoring/application/ports/document-metadata-sidecar-reader.js.map +0 -1
  561. package/dist/document-authoring/application/ports/document-parent-materializer.d.ts +0 -24
  562. package/dist/document-authoring/application/ports/document-parent-materializer.d.ts.map +0 -1
  563. package/dist/document-authoring/application/ports/document-parent-materializer.js +0 -2
  564. package/dist/document-authoring/application/ports/document-parent-materializer.js.map +0 -1
  565. package/dist/document-authoring/application/ports/document-planning-profile-reader.d.ts +0 -9
  566. package/dist/document-authoring/application/ports/document-planning-profile-reader.d.ts.map +0 -1
  567. package/dist/document-authoring/application/ports/document-planning-profile-reader.js +0 -2
  568. package/dist/document-authoring/application/ports/document-planning-profile-reader.js.map +0 -1
  569. package/dist/document-authoring/application/ports/document-planning-state-reader.d.ts +0 -10
  570. package/dist/document-authoring/application/ports/document-planning-state-reader.d.ts.map +0 -1
  571. package/dist/document-authoring/application/ports/document-planning-state-reader.js +0 -2
  572. package/dist/document-authoring/application/ports/document-planning-state-reader.js.map +0 -1
  573. package/dist/document-authoring/application/ports/document-publisher.d.ts +0 -38
  574. package/dist/document-authoring/application/ports/document-publisher.d.ts.map +0 -1
  575. package/dist/document-authoring/application/ports/document-publisher.js +0 -2
  576. package/dist/document-authoring/application/ports/document-publisher.js.map +0 -1
  577. package/dist/document-authoring/application/ports/document-reachability-projector.d.ts +0 -13
  578. package/dist/document-authoring/application/ports/document-reachability-projector.d.ts.map +0 -1
  579. package/dist/document-authoring/application/ports/document-reachability-projector.js +0 -2
  580. package/dist/document-authoring/application/ports/document-reachability-projector.js.map +0 -1
  581. package/dist/document-authoring/application/ports/document-structure-verifier.d.ts +0 -17
  582. package/dist/document-authoring/application/ports/document-structure-verifier.d.ts.map +0 -1
  583. package/dist/document-authoring/application/ports/document-structure-verifier.js +0 -2
  584. package/dist/document-authoring/application/ports/document-structure-verifier.js.map +0 -1
  585. package/dist/document-authoring/application/ports/document-template-reader.d.ts +0 -9
  586. package/dist/document-authoring/application/ports/document-template-reader.d.ts.map +0 -1
  587. package/dist/document-authoring/application/ports/document-template-reader.js +0 -2
  588. package/dist/document-authoring/application/ports/document-template-reader.js.map +0 -1
  589. package/dist/document-authoring/application/ports/document-transaction-coordinator.d.ts +0 -21
  590. package/dist/document-authoring/application/ports/document-transaction-coordinator.d.ts.map +0 -1
  591. package/dist/document-authoring/application/ports/document-transaction-coordinator.js +0 -2
  592. package/dist/document-authoring/application/ports/document-transaction-coordinator.js.map +0 -1
  593. package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.d.ts +0 -11
  594. package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.d.ts.map +0 -1
  595. package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.js +0 -2
  596. package/dist/document-authoring/application/ports/documentation-catalog-reader-v2.js.map +0 -1
  597. package/dist/document-authoring/application/ports/documentation-catalog-reader.d.ts +0 -11
  598. package/dist/document-authoring/application/ports/documentation-catalog-reader.d.ts.map +0 -1
  599. package/dist/document-authoring/application/ports/documentation-catalog-reader.js +0 -2
  600. package/dist/document-authoring/application/ports/documentation-catalog-reader.js.map +0 -1
  601. package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.d.ts +0 -9
  602. package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.d.ts.map +0 -1
  603. package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.js +0 -2
  604. package/dist/document-authoring/application/ports/documentation-search-catalog-reader-v2.js.map +0 -1
  605. package/dist/document-authoring/application/ports/documentation-search-catalog-reader.d.ts +0 -10
  606. package/dist/document-authoring/application/ports/documentation-search-catalog-reader.d.ts.map +0 -1
  607. package/dist/document-authoring/application/ports/documentation-search-catalog-reader.js +0 -2
  608. package/dist/document-authoring/application/ports/documentation-search-catalog-reader.js.map +0 -1
  609. package/dist/document-authoring/application/ports/metadata-instance-validator.d.ts +0 -18
  610. package/dist/document-authoring/application/ports/metadata-instance-validator.d.ts.map +0 -1
  611. package/dist/document-authoring/application/ports/metadata-instance-validator.js +0 -2
  612. package/dist/document-authoring/application/ports/metadata-instance-validator.js.map +0 -1
  613. package/dist/document-authoring/application/ports/owner-membership-reader.d.ts +0 -14
  614. package/dist/document-authoring/application/ports/owner-membership-reader.d.ts.map +0 -1
  615. package/dist/document-authoring/application/ports/owner-membership-reader.js +0 -2
  616. package/dist/document-authoring/application/ports/owner-membership-reader.js.map +0 -1
  617. package/dist/document-authoring/application/ports/similar-document-advisor.d.ts +0 -17
  618. package/dist/document-authoring/application/ports/similar-document-advisor.d.ts.map +0 -1
  619. package/dist/document-authoring/application/ports/similar-document-advisor.js +0 -2
  620. package/dist/document-authoring/application/ports/similar-document-advisor.js.map +0 -1
  621. package/dist/document-authoring/application/projections/document-catalog-projections.d.ts +0 -3
  622. package/dist/document-authoring/application/projections/document-catalog-projections.d.ts.map +0 -1
  623. package/dist/document-authoring/application/projections/document-catalog-projections.js +0 -24
  624. package/dist/document-authoring/application/projections/document-catalog-projections.js.map +0 -1
  625. package/dist/document-authoring/application/use-cases/apply-document-plan.d.ts +0 -16
  626. package/dist/document-authoring/application/use-cases/apply-document-plan.d.ts.map +0 -1
  627. package/dist/document-authoring/application/use-cases/apply-document-plan.js +0 -311
  628. package/dist/document-authoring/application/use-cases/apply-document-plan.js.map +0 -1
  629. package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.d.ts +0 -14
  630. package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.d.ts.map +0 -1
  631. package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.js +0 -17
  632. package/dist/document-authoring/application/use-cases/apply-document-recovery-receipt.js.map +0 -1
  633. package/dist/document-authoring/application/use-cases/build-documentation-catalog.d.ts +0 -41
  634. package/dist/document-authoring/application/use-cases/build-documentation-catalog.d.ts.map +0 -1
  635. package/dist/document-authoring/application/use-cases/build-documentation-catalog.js +0 -259
  636. package/dist/document-authoring/application/use-cases/build-documentation-catalog.js.map +0 -1
  637. package/dist/document-authoring/application/use-cases/compile-document-plan.d.ts +0 -6
  638. package/dist/document-authoring/application/use-cases/compile-document-plan.d.ts.map +0 -1
  639. package/dist/document-authoring/application/use-cases/compile-document-plan.js +0 -200
  640. package/dist/document-authoring/application/use-cases/compile-document-plan.js.map +0 -1
  641. package/dist/document-authoring/application/use-cases/document-journal-reconciliation.d.ts +0 -18
  642. package/dist/document-authoring/application/use-cases/document-journal-reconciliation.d.ts.map +0 -1
  643. package/dist/document-authoring/application/use-cases/document-journal-reconciliation.js +0 -90
  644. package/dist/document-authoring/application/use-cases/document-journal-reconciliation.js.map +0 -1
  645. package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.d.ts +0 -3
  646. package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.d.ts.map +0 -1
  647. package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.js +0 -79
  648. package/dist/document-authoring/application/use-cases/document-parent-materialization-continuation.js.map +0 -1
  649. package/dist/document-authoring/application/use-cases/document-transaction-continuation.d.ts +0 -64
  650. package/dist/document-authoring/application/use-cases/document-transaction-continuation.d.ts.map +0 -1
  651. package/dist/document-authoring/application/use-cases/document-transaction-continuation.js +0 -283
  652. package/dist/document-authoring/application/use-cases/document-transaction-continuation.js.map +0 -1
  653. package/dist/document-authoring/application/use-cases/document-transaction-error.d.ts +0 -5
  654. package/dist/document-authoring/application/use-cases/document-transaction-error.d.ts.map +0 -1
  655. package/dist/document-authoring/application/use-cases/document-transaction-error.js +0 -9
  656. package/dist/document-authoring/application/use-cases/document-transaction-error.js.map +0 -1
  657. package/dist/document-authoring/application/use-cases/document-transaction-execution.d.ts +0 -9
  658. package/dist/document-authoring/application/use-cases/document-transaction-execution.d.ts.map +0 -1
  659. package/dist/document-authoring/application/use-cases/document-transaction-execution.js +0 -40
  660. package/dist/document-authoring/application/use-cases/document-transaction-execution.js.map +0 -1
  661. package/dist/document-authoring/application/use-cases/document-transaction-receipts.d.ts +0 -21
  662. package/dist/document-authoring/application/use-cases/document-transaction-receipts.d.ts.map +0 -1
  663. package/dist/document-authoring/application/use-cases/document-transaction-receipts.js +0 -180
  664. package/dist/document-authoring/application/use-cases/document-transaction-receipts.js.map +0 -1
  665. package/dist/document-authoring/application/use-cases/find-documents.d.ts +0 -20
  666. package/dist/document-authoring/application/use-cases/find-documents.d.ts.map +0 -1
  667. package/dist/document-authoring/application/use-cases/find-documents.js +0 -114
  668. package/dist/document-authoring/application/use-cases/find-documents.js.map +0 -1
  669. package/dist/document-authoring/application/use-cases/load-v2-profile-description.d.ts +0 -20
  670. package/dist/document-authoring/application/use-cases/load-v2-profile-description.d.ts.map +0 -1
  671. package/dist/document-authoring/application/use-cases/load-v2-profile-description.js +0 -14
  672. package/dist/document-authoring/application/use-cases/load-v2-profile-description.js.map +0 -1
  673. package/dist/document-authoring/application/use-cases/plan-documentation-document.d.ts +0 -74
  674. package/dist/document-authoring/application/use-cases/plan-documentation-document.d.ts.map +0 -1
  675. package/dist/document-authoring/application/use-cases/plan-documentation-document.js +0 -273
  676. package/dist/document-authoring/application/use-cases/plan-documentation-document.js.map +0 -1
  677. package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.d.ts +0 -8
  678. package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.d.ts.map +0 -1
  679. package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.js +0 -32
  680. package/dist/document-authoring/application/use-cases/recapture-directory-receipt-evidence.js.map +0 -1
  681. package/dist/document-authoring/application/use-cases/recover-document-transaction.d.ts +0 -10
  682. package/dist/document-authoring/application/use-cases/recover-document-transaction.d.ts.map +0 -1
  683. package/dist/document-authoring/application/use-cases/recover-document-transaction.js +0 -361
  684. package/dist/document-authoring/application/use-cases/recover-document-transaction.js.map +0 -1
  685. package/dist/document-authoring/application/use-cases/run-document-doctor.d.ts +0 -18
  686. package/dist/document-authoring/application/use-cases/run-document-doctor.d.ts.map +0 -1
  687. package/dist/document-authoring/application/use-cases/run-document-doctor.js +0 -171
  688. package/dist/document-authoring/application/use-cases/run-document-doctor.js.map +0 -1
  689. package/dist/document-authoring/application/use-cases/run-document-new.d.ts +0 -30
  690. package/dist/document-authoring/application/use-cases/run-document-new.d.ts.map +0 -1
  691. package/dist/document-authoring/application/use-cases/run-document-new.js +0 -221
  692. package/dist/document-authoring/application/use-cases/run-document-new.js.map +0 -1
  693. package/dist/document-authoring/application/use-cases/run-document-recover.d.ts +0 -21
  694. package/dist/document-authoring/application/use-cases/run-document-recover.d.ts.map +0 -1
  695. package/dist/document-authoring/application/use-cases/run-document-recover.js +0 -126
  696. package/dist/document-authoring/application/use-cases/run-document-recover.js.map +0 -1
  697. package/dist/document-authoring/composition/describe-document-authoring-profile-v2.d.ts +0 -14
  698. package/dist/document-authoring/composition/describe-document-authoring-profile-v2.d.ts.map +0 -1
  699. package/dist/document-authoring/composition/describe-document-authoring-profile-v2.js +0 -220
  700. package/dist/document-authoring/composition/describe-document-authoring-profile-v2.js.map +0 -1
  701. package/dist/document-authoring/composition/document-command-cli.d.ts +0 -7
  702. package/dist/document-authoring/composition/document-command-cli.d.ts.map +0 -1
  703. package/dist/document-authoring/composition/document-command-cli.js +0 -32
  704. package/dist/document-authoring/composition/document-command-cli.js.map +0 -1
  705. package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.d.ts +0 -7
  706. package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.d.ts.map +0 -1
  707. package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.js +0 -10
  708. package/dist/document-authoring/composition/inspect-document-authoring-environment-v1.js.map +0 -1
  709. package/dist/document-authoring/composition/inspect-document-transaction.d.ts +0 -10
  710. package/dist/document-authoring/composition/inspect-document-transaction.d.ts.map +0 -1
  711. package/dist/document-authoring/composition/inspect-document-transaction.js +0 -214
  712. package/dist/document-authoring/composition/inspect-document-transaction.js.map +0 -1
  713. package/dist/document-authoring/composition/node-document-authority-recompiler.d.ts +0 -11
  714. package/dist/document-authoring/composition/node-document-authority-recompiler.d.ts.map +0 -1
  715. package/dist/document-authoring/composition/node-document-authority-recompiler.js +0 -81
  716. package/dist/document-authoring/composition/node-document-authority-recompiler.js.map +0 -1
  717. package/dist/document-authoring/composition/node-document-commands.d.ts +0 -10
  718. package/dist/document-authoring/composition/node-document-commands.d.ts.map +0 -1
  719. package/dist/document-authoring/composition/node-document-commands.js +0 -68
  720. package/dist/document-authoring/composition/node-document-commands.js.map +0 -1
  721. package/dist/document-authoring/composition/node-document-planning.d.ts +0 -7
  722. package/dist/document-authoring/composition/node-document-planning.d.ts.map +0 -1
  723. package/dist/document-authoring/composition/node-document-planning.js +0 -99
  724. package/dist/document-authoring/composition/node-document-planning.js.map +0 -1
  725. package/dist/document-authoring/composition/node-document-writing-private.d.ts +0 -15
  726. package/dist/document-authoring/composition/node-document-writing-private.d.ts.map +0 -1
  727. package/dist/document-authoring/composition/node-document-writing-private.js +0 -54
  728. package/dist/document-authoring/composition/node-document-writing-private.js.map +0 -1
  729. package/dist/document-authoring/composition/node-document-writing.d.ts +0 -8
  730. package/dist/document-authoring/composition/node-document-writing.d.ts.map +0 -1
  731. package/dist/document-authoring/composition/node-document-writing.js +0 -10
  732. package/dist/document-authoring/composition/node-document-writing.js.map +0 -1
  733. package/dist/document-authoring/document-catalog-error.d.ts +0 -6
  734. package/dist/document-authoring/document-catalog-error.d.ts.map +0 -1
  735. package/dist/document-authoring/document-catalog-error.js +0 -9
  736. package/dist/document-authoring/document-catalog-error.js.map +0 -1
  737. package/dist/document-authoring/document-planning-error.d.ts +0 -6
  738. package/dist/document-authoring/document-planning-error.d.ts.map +0 -1
  739. package/dist/document-authoring/document-planning-error.js +0 -9
  740. package/dist/document-authoring/document-planning-error.js.map +0 -1
  741. package/dist/document-authoring/find-command.d.ts +0 -37
  742. package/dist/document-authoring/find-command.d.ts.map +0 -1
  743. package/dist/document-authoring/find-command.js +0 -180
  744. package/dist/document-authoring/find-command.js.map +0 -1
  745. package/dist/document-authoring/index.d.ts +0 -61
  746. package/dist/document-authoring/index.d.ts.map +0 -1
  747. package/dist/document-authoring/index.js +0 -94
  748. package/dist/document-authoring/index.js.map +0 -1
  749. package/dist/document-authoring/qualification/index.d.ts +0 -22
  750. package/dist/document-authoring/qualification/index.d.ts.map +0 -1
  751. package/dist/document-authoring/qualification/index.js +0 -131
  752. package/dist/document-authoring/qualification/index.js.map +0 -1
  753. package/dist/document-command.d.ts +0 -12
  754. package/dist/document-command.d.ts.map +0 -1
  755. package/dist/document-command.js +0 -105
  756. package/dist/document-command.js.map +0 -1
  757. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.d.ts +0 -14
  758. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.d.ts.map +0 -1
  759. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.js +0 -108
  760. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.js.map +0 -1
  761. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.d.ts +0 -14
  762. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.d.ts.map +0 -1
  763. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.js +0 -61
  764. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.js.map +0 -1
  765. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.d.ts +0 -8
  766. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.d.ts.map +0 -1
  767. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.js +0 -44
  768. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.js.map +0 -1
  769. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.d.ts +0 -6
  770. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.d.ts.map +0 -1
  771. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.js +0 -160
  772. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.js.map +0 -1
  773. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.d.ts +0 -8
  774. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.d.ts.map +0 -1
  775. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.js +0 -13
  776. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.js.map +0 -1
  777. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.d.ts +0 -6
  778. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.d.ts.map +0 -1
  779. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.js +0 -260
  780. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.js.map +0 -1
  781. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.d.ts +0 -3
  782. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.d.ts.map +0 -1
  783. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.js +0 -260
  784. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.js.map +0 -1
  785. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.d.ts +0 -15
  786. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.d.ts.map +0 -1
  787. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.js +0 -59
  788. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.js.map +0 -1
  789. package/dist/documentation-observation/application/model/markdown-document.d.ts +0 -70
  790. package/dist/documentation-observation/application/model/markdown-document.d.ts.map +0 -1
  791. package/dist/documentation-observation/application/model/markdown-document.js +0 -10
  792. package/dist/documentation-observation/application/model/markdown-document.js.map +0 -1
  793. package/dist/documentation-observation/application/ports/markdown-repository.d.ts +0 -18
  794. package/dist/documentation-observation/application/ports/markdown-repository.d.ts.map +0 -1
  795. package/dist/documentation-observation/application/ports/markdown-repository.js +0 -2
  796. package/dist/documentation-observation/application/ports/markdown-repository.js.map +0 -1
  797. package/dist/legacy-docs-cli-deprecation.d.ts +0 -10
  798. package/dist/legacy-docs-cli-deprecation.d.ts.map +0 -1
  799. package/dist/legacy-docs-cli-deprecation.js +0 -36
  800. package/dist/legacy-docs-cli-deprecation.js.map +0 -1
  801. package/dist/mutation/index.d.ts +0 -19
  802. package/dist/mutation/index.d.ts.map +0 -1
  803. package/dist/mutation/index.js +0 -5
  804. package/dist/mutation/index.js.map +0 -1
  805. package/dist/mutation/qualification/index.d.ts +0 -10
  806. package/dist/mutation/qualification/index.d.ts.map +0 -1
  807. package/dist/mutation/qualification/index.js +0 -6
  808. package/dist/mutation/qualification/index.js.map +0 -1
  809. package/dist/repository-mutation/adapters/node/node-absent-file-publication-private.d.ts +0 -19
  810. package/dist/repository-mutation/adapters/node/node-absent-file-publication-private.d.ts.map +0 -1
  811. package/dist/repository-mutation/adapters/node/node-absent-file-publication-private.js +0 -74
  812. package/dist/repository-mutation/adapters/node/node-absent-file-publication-private.js.map +0 -1
  813. package/dist/repository-mutation/adapters/node/node-absent-file-publication.d.ts +0 -33
  814. package/dist/repository-mutation/adapters/node/node-absent-file-publication.d.ts.map +0 -1
  815. package/dist/repository-mutation/adapters/node/node-absent-file-publication.js +0 -174
  816. package/dist/repository-mutation/adapters/node/node-absent-file-publication.js.map +0 -1
  817. package/dist/repository-mutation/adapters/node/node-bounded-regular-file.d.ts +0 -22
  818. package/dist/repository-mutation/adapters/node/node-bounded-regular-file.d.ts.map +0 -1
  819. package/dist/repository-mutation/adapters/node/node-bounded-regular-file.js +0 -131
  820. package/dist/repository-mutation/adapters/node/node-bounded-regular-file.js.map +0 -1
  821. package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.d.ts +0 -26
  822. package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.d.ts.map +0 -1
  823. package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.js +0 -172
  824. package/dist/repository-mutation/adapters/node/node-cleanup-owned-temporary.js.map +0 -1
  825. package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.d.ts +0 -15
  826. package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.d.ts.map +0 -1
  827. package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.js +0 -23
  828. package/dist/repository-mutation/adapters/node/node-create-and-bind-directory.js.map +0 -1
  829. package/dist/repository-mutation/adapters/node/node-directory-durability.d.ts +0 -18
  830. package/dist/repository-mutation/adapters/node/node-directory-durability.d.ts.map +0 -1
  831. package/dist/repository-mutation/adapters/node/node-directory-durability.js +0 -47
  832. package/dist/repository-mutation/adapters/node/node-directory-durability.js.map +0 -1
  833. package/dist/repository-mutation/adapters/node/node-directory-materialization.d.ts +0 -37
  834. package/dist/repository-mutation/adapters/node/node-directory-materialization.d.ts.map +0 -1
  835. package/dist/repository-mutation/adapters/node/node-directory-materialization.js +0 -224
  836. package/dist/repository-mutation/adapters/node/node-directory-materialization.js.map +0 -1
  837. package/dist/repository-mutation/adapters/node/node-existing-repository-ancestors.d.ts +0 -13
  838. package/dist/repository-mutation/adapters/node/node-existing-repository-ancestors.d.ts.map +0 -1
  839. package/dist/repository-mutation/adapters/node/node-existing-repository-ancestors.js +0 -67
  840. package/dist/repository-mutation/adapters/node/node-existing-repository-ancestors.js.map +0 -1
  841. package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.d.ts +0 -84
  842. package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.d.ts.map +0 -1
  843. package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.js +0 -232
  844. package/dist/repository-mutation/adapters/node/node-known-file-apply-effects.js.map +0 -1
  845. package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.d.ts +0 -9
  846. package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.d.ts.map +0 -1
  847. package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.js +0 -2
  848. package/dist/repository-mutation/adapters/node/node-known-file-apply-faults.js.map +0 -1
  849. package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.d.ts +0 -6
  850. package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.d.ts.map +0 -1
  851. package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.js +0 -30
  852. package/dist/repository-mutation/adapters/node/node-known-file-apply-observation.js.map +0 -1
  853. package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.d.ts +0 -11
  854. package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.d.ts.map +0 -1
  855. package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.js +0 -159
  856. package/dist/repository-mutation/adapters/node/node-known-file-apply-operation.js.map +0 -1
  857. package/dist/repository-mutation/adapters/node/node-known-file-apply-state.d.ts +0 -9
  858. package/dist/repository-mutation/adapters/node/node-known-file-apply-state.d.ts.map +0 -1
  859. package/dist/repository-mutation/adapters/node/node-known-file-apply-state.js +0 -21
  860. package/dist/repository-mutation/adapters/node/node-known-file-apply-state.js.map +0 -1
  861. package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.d.ts +0 -9
  862. package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.d.ts.map +0 -1
  863. package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.js +0 -203
  864. package/dist/repository-mutation/adapters/node/node-known-file-recovery-cleanup.js.map +0 -1
  865. package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.d.ts +0 -17
  866. package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.d.ts.map +0 -1
  867. package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.js +0 -22
  868. package/dist/repository-mutation/adapters/node/node-known-file-recovery-executor.js.map +0 -1
  869. package/dist/repository-mutation/adapters/node/node-known-file-recovery-filesystem.d.ts +0 -28
  870. package/dist/repository-mutation/adapters/node/node-known-file-recovery-filesystem.d.ts.map +0 -1
  871. package/dist/repository-mutation/adapters/node/node-known-file-recovery-filesystem.js +0 -194
  872. package/dist/repository-mutation/adapters/node/node-known-file-recovery-filesystem.js.map +0 -1
  873. package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.d.ts +0 -15
  874. package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.d.ts.map +0 -1
  875. package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.js +0 -47
  876. package/dist/repository-mutation/adapters/node/node-known-file-recovery-observation.js.map +0 -1
  877. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.d.ts +0 -29
  878. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.d.ts.map +0 -1
  879. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.js +0 -72
  880. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured-cleanup.js.map +0 -1
  881. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.d.ts +0 -31
  882. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.d.ts.map +0 -1
  883. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.js +0 -254
  884. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage-captured.js.map +0 -1
  885. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.d.ts +0 -13
  886. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.d.ts.map +0 -1
  887. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.js +0 -210
  888. package/dist/repository-mutation/adapters/node/node-known-file-recovery-preimage.js.map +0 -1
  889. package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.d.ts +0 -15
  890. package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.d.ts.map +0 -1
  891. package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.js +0 -172
  892. package/dist/repository-mutation/adapters/node/node-known-file-recovery-retirement.js.map +0 -1
  893. package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.d.ts +0 -12
  894. package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.d.ts.map +0 -1
  895. package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.js +0 -17
  896. package/dist/repository-mutation/adapters/node/node-known-file-recovery-state.js.map +0 -1
  897. package/dist/repository-mutation/adapters/node/node-known-file-transaction-filesystem.d.ts +0 -25
  898. package/dist/repository-mutation/adapters/node/node-known-file-transaction-filesystem.d.ts.map +0 -1
  899. package/dist/repository-mutation/adapters/node/node-known-file-transaction-filesystem.js +0 -129
  900. package/dist/repository-mutation/adapters/node/node-known-file-transaction-filesystem.js.map +0 -1
  901. package/dist/repository-mutation/adapters/node/node-known-file-transaction-inspection.d.ts +0 -12
  902. package/dist/repository-mutation/adapters/node/node-known-file-transaction-inspection.d.ts.map +0 -1
  903. package/dist/repository-mutation/adapters/node/node-known-file-transaction-inspection.js +0 -46
  904. package/dist/repository-mutation/adapters/node/node-known-file-transaction-inspection.js.map +0 -1
  905. package/dist/repository-mutation/adapters/node/node-known-file-transaction-journal-store.d.ts +0 -21
  906. package/dist/repository-mutation/adapters/node/node-known-file-transaction-journal-store.d.ts.map +0 -1
  907. package/dist/repository-mutation/adapters/node/node-known-file-transaction-journal-store.js +0 -178
  908. package/dist/repository-mutation/adapters/node/node-known-file-transaction-journal-store.js.map +0 -1
  909. package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.d.ts +0 -14
  910. package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.d.ts.map +0 -1
  911. package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.js +0 -23
  912. package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.js.map +0 -1
  913. package/dist/repository-mutation/adapters/node/node-known-file-transaction-receipt.d.ts +0 -4
  914. package/dist/repository-mutation/adapters/node/node-known-file-transaction-receipt.d.ts.map +0 -1
  915. package/dist/repository-mutation/adapters/node/node-known-file-transaction-receipt.js +0 -43
  916. package/dist/repository-mutation/adapters/node/node-known-file-transaction-receipt.js.map +0 -1
  917. package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.d.ts +0 -8
  918. package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.d.ts.map +0 -1
  919. package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.js +0 -57
  920. package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.js.map +0 -1
  921. package/dist/repository-mutation/adapters/node/node-known-file-transaction.d.ts +0 -14
  922. package/dist/repository-mutation/adapters/node/node-known-file-transaction.d.ts.map +0 -1
  923. package/dist/repository-mutation/adapters/node/node-known-file-transaction.js +0 -138
  924. package/dist/repository-mutation/adapters/node/node-known-file-transaction.js.map +0 -1
  925. package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.d.ts +0 -15
  926. package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.d.ts.map +0 -1
  927. package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.js +0 -27
  928. package/dist/repository-mutation/adapters/node/node-prepare-exact-sibling-temporary.js.map +0 -1
  929. package/dist/repository-mutation/adapters/node/node-publish-prepared-absent-file.d.ts +0 -28
  930. package/dist/repository-mutation/adapters/node/node-publish-prepared-absent-file.d.ts.map +0 -1
  931. package/dist/repository-mutation/adapters/node/node-publish-prepared-absent-file.js +0 -47
  932. package/dist/repository-mutation/adapters/node/node-publish-prepared-absent-file.js.map +0 -1
  933. package/dist/repository-mutation/adapters/node/node-repository-path.d.ts +0 -2
  934. package/dist/repository-mutation/adapters/node/node-repository-path.d.ts.map +0 -1
  935. package/dist/repository-mutation/adapters/node/node-repository-path.js +0 -7
  936. package/dist/repository-mutation/adapters/node/node-repository-path.js.map +0 -1
  937. package/dist/repository-mutation/adapters/node/node-terminal-evidence-directory.d.ts +0 -22
  938. package/dist/repository-mutation/adapters/node/node-terminal-evidence-directory.d.ts.map +0 -1
  939. package/dist/repository-mutation/adapters/node/node-terminal-evidence-directory.js +0 -59
  940. package/dist/repository-mutation/adapters/node/node-terminal-evidence-directory.js.map +0 -1
  941. package/dist/repository-mutation/application/model/directory-materialization.d.ts +0 -35
  942. package/dist/repository-mutation/application/model/directory-materialization.d.ts.map +0 -1
  943. package/dist/repository-mutation/application/model/directory-materialization.js +0 -11
  944. package/dist/repository-mutation/application/model/directory-materialization.js.map +0 -1
  945. package/dist/repository-mutation/application/model/exact-postimage.d.ts +0 -17
  946. package/dist/repository-mutation/application/model/exact-postimage.d.ts.map +0 -1
  947. package/dist/repository-mutation/application/model/exact-postimage.js +0 -11
  948. package/dist/repository-mutation/application/model/exact-postimage.js.map +0 -1
  949. package/dist/repository-mutation/application/model/known-file-transaction-journal.d.ts +0 -63
  950. package/dist/repository-mutation/application/model/known-file-transaction-journal.d.ts.map +0 -1
  951. package/dist/repository-mutation/application/model/known-file-transaction-journal.js +0 -15
  952. package/dist/repository-mutation/application/model/known-file-transaction-journal.js.map +0 -1
  953. package/dist/repository-mutation/application/model/known-file-transaction.d.ts +0 -64
  954. package/dist/repository-mutation/application/model/known-file-transaction.d.ts.map +0 -1
  955. package/dist/repository-mutation/application/model/known-file-transaction.js +0 -2
  956. package/dist/repository-mutation/application/model/known-file-transaction.js.map +0 -1
  957. package/dist/repository-mutation/application/model/path-identity.d.ts +0 -7
  958. package/dist/repository-mutation/application/model/path-identity.d.ts.map +0 -1
  959. package/dist/repository-mutation/application/model/path-identity.js +0 -2
  960. package/dist/repository-mutation/application/model/path-identity.js.map +0 -1
  961. package/dist/repository-mutation/application/model/repository-path.d.ts +0 -8
  962. package/dist/repository-mutation/application/model/repository-path.d.ts.map +0 -1
  963. package/dist/repository-mutation/application/model/repository-path.js +0 -74
  964. package/dist/repository-mutation/application/model/repository-path.js.map +0 -1
  965. package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.d.ts +0 -25
  966. package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.d.ts.map +0 -1
  967. package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.js +0 -19
  968. package/dist/repository-mutation/application/policies/classify-known-file-recovery-transition.js.map +0 -1
  969. package/dist/repository-mutation/application/policies/known-file-transaction-envelope.d.ts +0 -8
  970. package/dist/repository-mutation/application/policies/known-file-transaction-envelope.d.ts.map +0 -1
  971. package/dist/repository-mutation/application/policies/known-file-transaction-envelope.js +0 -241
  972. package/dist/repository-mutation/application/policies/known-file-transaction-envelope.js.map +0 -1
  973. package/dist/repository-mutation/application/policies/known-file-transaction-plan.d.ts +0 -7
  974. package/dist/repository-mutation/application/policies/known-file-transaction-plan.d.ts.map +0 -1
  975. package/dist/repository-mutation/application/policies/known-file-transaction-plan.js +0 -215
  976. package/dist/repository-mutation/application/policies/known-file-transaction-plan.js.map +0 -1
  977. package/dist/repository-mutation/application/ports/owned-temporary-cleanup-transition.d.ts +0 -7
  978. package/dist/repository-mutation/application/ports/owned-temporary-cleanup-transition.d.ts.map +0 -1
  979. package/dist/repository-mutation/application/ports/owned-temporary-cleanup-transition.js +0 -2
  980. package/dist/repository-mutation/application/ports/owned-temporary-cleanup-transition.js.map +0 -1
  981. package/dist/scaffolding/adapters/node/filesystem-journal.d.ts +0 -17
  982. package/dist/scaffolding/adapters/node/filesystem-journal.d.ts.map +0 -1
  983. package/dist/scaffolding/adapters/node/filesystem-journal.js +0 -176
  984. package/dist/scaffolding/adapters/node/filesystem-journal.js.map +0 -1
  985. package/dist/scaffolding/adapters/node/node-scaffold-journal-reconciliation.d.ts +0 -15
  986. package/dist/scaffolding/adapters/node/node-scaffold-journal-reconciliation.d.ts.map +0 -1
  987. package/dist/scaffolding/adapters/node/node-scaffold-journal-reconciliation.js +0 -29
  988. package/dist/scaffolding/adapters/node/node-scaffold-journal-reconciliation.js.map +0 -1
  989. package/schemas/document-authoring-profile/v1.schema.json +0 -265
  990. package/schemas/document-authoring-profile/v2.schema.json +0 -168
  991. package/schemas/document-authoring-profile/v3.schema.json +0 -200
  992. package/schemas/document-command-envelope/v1.schema.json +0 -161
  993. package/schemas/document-command-envelope/v2.schema.json +0 -205
  994. package/schemas/document-intent/v1.schema.json +0 -102
  995. package/schemas/document-parent-materialization/v2.schema.json +0 -65
  996. package/schemas/document-plan/v1.schema.json +0 -162
  997. package/schemas/document-plan/v2.schema.json +0 -85
  998. package/schemas/document-receipt/v1.schema.json +0 -141
  999. package/schemas/document-receipt/v2.schema.json +0 -108
  1000. package/schemas/foundation-transaction-envelope/v3.schema.json +0 -169
  1001. package/schemas/foundation-transaction-envelope/v4.schema.json +0 -164
  1002. package/schemas/foundation-transaction-envelope/v5.schema.json +0 -94
  1003. package/schemas/known-file-transaction-plan/v1.schema.json +0 -65
  1004. package/schemas/known-file-transaction-receipt/v1.schema.json +0 -36
@@ -1,186 +0,0 @@
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
@@ -1 +0,0 @@
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,MAA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AAC,MAAM,IAAI,IAAI,CAAC,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,12 +0,0 @@
1
- import type { DocumentAuthorityEvidence } from "../../application/model/document-catalog.js";
2
- export interface DocumentAuthorityFile {
3
- readonly bytes: Buffer;
4
- readonly evidence: DocumentAuthorityEvidence;
5
- readonly source: string;
6
- }
7
- export declare function readDocumentAuthorityFile(request: {
8
- readonly consumerRoot: string;
9
- readonly maxBytes: number;
10
- readonly path: string;
11
- }): Promise<DocumentAuthorityFile>;
12
- //# sourceMappingURL=read-document-authority-file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read-document-authority-file.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/read-document-authority-file.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,yBAAyB,EAC1B,MAAM,6CAA6C,CAAC;AAIrD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AA6DD,wBAAsB,yBAAyB,CAAC,OAAO,EAAE;IACvD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4BjC"}
@@ -1,78 +0,0 @@
1
- import { createHash } from "node:crypto";
2
- import { resolve } from "node:path";
3
- import { ContainedFileReadError, readContainedRegularFile } from "../../../filesystem-path-safety.js";
4
- import { isDocumentRepositoryPath } from "../../application/policies/document-repository-path.js";
5
- import { DocumentCatalogError } from "../../document-catalog-error.js";
6
- function inputInvalid(message, options) {
7
- throw new DocumentCatalogError("DOCUMENT_CATALOG_INPUT_INVALID", message, options);
8
- }
9
- function assertPortableDocumentAuthorityPath(path) {
10
- if (!isDocumentRepositoryPath(path)) {
11
- inputInvalid("Document authority paths must use the portable repository-relative path grammar.");
12
- }
13
- }
14
- function decodeAuthoritySource(bytes, path) {
15
- if (bytes.length >= 3 &&
16
- bytes[0] === 0xef &&
17
- bytes[1] === 0xbb &&
18
- bytes[2] === 0xbf) {
19
- inputInvalid(`Document authority must not contain a UTF-8 BOM: ${path}.`);
20
- }
21
- let source;
22
- try {
23
- source = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
24
- }
25
- catch (error) {
26
- inputInvalid(`Document authority must contain well-formed UTF-8: ${path}.`, {
27
- cause: error
28
- });
29
- }
30
- if (source.includes("\u0000")) {
31
- inputInvalid(`Document authority must not contain NUL characters: ${path}.`);
32
- }
33
- return source;
34
- }
35
- function digest(bytes) {
36
- return `sha256:${createHash("sha256").update(bytes).digest("hex")}`;
37
- }
38
- function unavailable(path, error) {
39
- const detail = error.failure === "symlink"
40
- ? "cannot traverse a symbolic link"
41
- : error.failure === "invalid"
42
- ? "must be a bounded regular file"
43
- : error.failure === "escape"
44
- ? "escapes the repository"
45
- : "is unavailable or changed while reading";
46
- throw new DocumentCatalogError("DOCUMENT_CATALOG_AUTHORITY_UNAVAILABLE", `Document authority ${detail}: ${path}.`, { cause: error });
47
- }
48
- export async function readDocumentAuthorityFile(request) {
49
- assertPortableDocumentAuthorityPath(request.path);
50
- let bytes;
51
- try {
52
- bytes = await readContainedRegularFile({
53
- candidate: resolve(request.consumerRoot, request.path),
54
- maxBytes: request.maxBytes,
55
- root: request.consumerRoot
56
- });
57
- }
58
- catch (error) {
59
- if (error instanceof ContainedFileReadError) {
60
- unavailable(request.path, error);
61
- }
62
- throw error;
63
- }
64
- if (bytes.length === 0) {
65
- inputInvalid(`Document authority must not be empty: ${request.path}.`);
66
- }
67
- const source = decodeAuthoritySource(bytes, request.path);
68
- return Object.freeze({
69
- bytes,
70
- evidence: Object.freeze({
71
- digest: digest(bytes),
72
- path: request.path,
73
- size: bytes.byteLength
74
- }),
75
- source
76
- });
77
- }
78
- //# sourceMappingURL=read-document-authority-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read-document-authority-file.js","sourceRoot":"","sources":["../../../../src/document-authoring/adapters/node/read-document-authority-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,oCAAoC,CAAC;AAK5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,wDAA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AAM,CAAC,MAAM,CAAC;QACnB,KAAK;QACL,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;YACtB,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC;YACrB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,IAAI,EAAE,KAAK,CAAC,UAAU;SACvB,CAAC;QACF,MAAM;KACP,CAAC,CAAC;AACL,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { PortablePathIdentity } from "../../../repository-mutation/application/model/path-identity.js";
2
- import { sameNodePathIdentity } from "./node-path-authority.js";
3
- export interface RecapturedDocumentPublicationPaths {
4
- readonly ancestryIdentities: readonly PortablePathIdentity[];
5
- readonly destinationPath: string;
6
- readonly parent: string;
7
- readonly parentIdentity: PortablePathIdentity;
8
- readonly root: string;
9
- }
10
- /** Recaptures strict real-directory ancestry; the result is valid only for the immediate operation. */
11
- export declare function recaptureDocumentPublicationPaths(request: {
12
- readonly consumerRoot: string;
13
- readonly destination: string;
14
- }): Promise<RecapturedDocumentPublicationPaths>;
15
- export declare const sameDocumentPhysicalIdentity: typeof sameNodePathIdentity;
16
- export declare function sameDocumentAncestry(left: readonly PortablePathIdentity[], right: readonly PortablePathIdentity[]): boolean;
17
- //# sourceMappingURL=recapture-document-publication-paths.d.ts.map
@@ -1 +0,0 @@
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,33 +0,0 @@
1
- import { readdir } from "node:fs/promises";
2
- import { OWNED_TEMPORARY_CLEANUP_RESIDUE_MARKER } from "../../../repository-mutation/adapters/node/node-cleanup-owned-temporary.js";
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
- }
10
- }
11
- }
12
- /** Recaptures strict real-directory ancestry; the result is valid only for the immediate operation. */
13
- export async function recaptureDocumentPublicationPaths(request) {
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);
20
- return Object.freeze({
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
26
- });
27
- }
28
- export const sameDocumentPhysicalIdentity = sameNodePathIdentity;
29
- export function sameDocumentAncestry(left, right) {
30
- return left.length === right.length &&
31
- left.every((identity, index) => sameNodePathIdentity(identity, right[index]));
32
- }
33
- //# sourceMappingURL=recapture-document-publication-paths.js.map
@@ -1 +0,0 @@
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"}
@@ -1,57 +0,0 @@
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
- export type DocumentAuthoringProfileDescriptionV3 = Omit<DocumentAuthoringProfileDescriptionV2, "profileSchemaVersion" | "schemaVersion"> & {
54
- readonly profileSchemaVersion: 3;
55
- readonly schemaVersion: 3;
56
- };
57
- //# sourceMappingURL=document-authoring-profile-description.d.ts.map
@@ -1 +0,0 @@
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,yBAAyB,EACzB,4BAA4B,EAC7B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,8BAA8B,GACtC,OAAO,CAAC,4BAA4B,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC,GACxE;IACE,Q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AClC,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;AAED,MAAM,MAAM,qCAAqC,GAAG,IAAI,CACtD,qCAAqC,EACrC,sBAAsB,GAAG,eAAe,CACzC,GAAG;IACF,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;CAC3B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=document-authoring-profile-description.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-authoring-profile-description.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-authoring-profile-description.ts"],"names":[],"mappings":""}
@@ -1,88 +0,0 @@
1
- export type DocumentAuthorityDigest = `sha256:${string}`;
2
- export interface DocumentAuthorityEvidence {
3
- readonly digest: DocumentAuthorityDigest;
4
- readonly path: string;
5
- readonly size: number;
6
- }
7
- export interface DocumentDescriptor {
8
- readonly id: string;
9
- readonly owner: string;
10
- readonly repositoryPath: string;
11
- readonly source: "frontmatter-readme" | "markdown-tree";
12
- readonly status: string;
13
- readonly summary: string;
14
- readonly title: string;
15
- readonly type: string;
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
- }
25
- export interface DocumentIdentityProjectionEntry {
26
- readonly id: string;
27
- readonly repositoryPath: string;
28
- }
29
- export interface ReferencedDocumentProjection {
30
- readonly id: string;
31
- readonly path: string;
32
- }
33
- export interface DocumentationCatalogDiagnostic {
34
- readonly message: string;
35
- readonly ruleId: string;
36
- readonly severity: "error";
37
- readonly subject: string;
38
- }
39
- export interface DocumentationCatalogAuthority {
40
- readonly metadataSchema: DocumentAuthorityEvidence;
41
- readonly ownerCatalog: DocumentAuthorityEvidence;
42
- readonly profile: DocumentAuthorityEvidence;
43
- }
44
- export interface DocumentationCatalogAuthorityV2 extends DocumentationCatalogAuthority {
45
- readonly metadataSidecar?: DocumentAuthorityEvidence;
46
- }
47
- export interface DocumentationCatalogSnapshot {
48
- readonly authority: DocumentationCatalogAuthority;
49
- readonly diagnostics: readonly DocumentationCatalogDiagnostic[];
50
- readonly documents: readonly DocumentDescriptor[];
51
- readonly identityProjection: readonly DocumentIdentityProjectionEntry[];
52
- readonly ownerIds: readonly string[];
53
- readonly projectId: string;
54
- readonly status: "complete" | "partial";
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
- };
67
- export interface DocumentSearchCorpusEntry {
68
- readonly body: string;
69
- readonly descriptor: DocumentDescriptor;
70
- readonly headings: readonly string[];
71
- }
72
- export interface DocumentationSearchCatalogSnapshot {
73
- readonly catalog: DocumentationCatalogSnapshot;
74
- readonly documents: readonly DocumentSearchCorpusEntry[];
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
- }
83
- export interface ReferencedDocumentProjectionResult {
84
- readonly documents: readonly ReferencedDocumentProjection[];
85
- readonly missingIds: readonly string[];
86
- readonly unresolvedIds: readonly string[];
87
- }
88
- //# sourceMappingURL=document-catalog.d.ts.map
@@ -1 +0,0 @@
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;IACv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,oCAAoC;IACnD,QAAQ,CAAC,OAAO,EAAE,8BAA8B,CAAC;IACjD,QAAQ,CAAC,SAAS,EAAE,SAAS,2BAA2B,EAAE,CAAC;CAC5D;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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=document-catalog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-catalog.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-catalog.ts"],"names":[],"mappings":""}
@@ -1,69 +0,0 @@
1
- import type { DocumentReceiptOutcome } from "./document-receipt.js";
2
- export type DocumentCommandId = "docs.doctor" | "docs.new" | "docs.recover";
3
- export type DocumentCommandOutcome = "authority-stale" | "cancelled" | "conflict" | "execution-failure" | "invalid-input" | "recovery-required" | "success" | "violation";
4
- type DocumentCommandExitCode = 0 | 1 | 2 | 3 | 130;
5
- export interface DocumentRecoveryCommand {
6
- readonly commandId: "detach" | "docs.recover" | "scaffold-recover";
7
- readonly args: Readonly<Record<string, string>>;
8
- }
9
- export type DocumentCommandRemediation = DocumentRecoveryCommand | {
10
- readonly commandId: DocumentCommandId | "docs.find";
11
- readonly args: Readonly<Record<string, string>>;
12
- };
13
- export interface DocumentCommandDiagnostic {
14
- readonly ruleId: string;
15
- readonly severity: "error" | "info" | "warning";
16
- readonly phase: "apply" | "authority" | "input" | "planning" | "recovery";
17
- readonly subject: string;
18
- readonly message: string;
19
- readonly remediation?: DocumentCommandRemediation;
20
- }
21
- interface DocumentCommandEnvelope<Result> {
22
- readonly schemaVersion: 2;
23
- readonly command: DocumentCommandId;
24
- readonly outcome: DocumentCommandOutcome;
25
- readonly diagnostics: readonly DocumentCommandDiagnostic[];
26
- readonly result: Result;
27
- }
28
- export interface DocumentCommandExecution<Result> {
29
- readonly envelope: DocumentCommandEnvelope<Result>;
30
- readonly exitCode: DocumentCommandExitCode;
31
- }
32
- export interface DocumentReachabilityProjection {
33
- readonly state: "managed" | "manual-required" | "not-required";
34
- readonly indexPath?: string;
35
- readonly markdownLink?: string;
36
- }
37
- export interface DocumentNewResult {
38
- readonly kind: "new";
39
- readonly documentPath?: string;
40
- readonly writeState?: "already-applied" | "applied" | "preview";
41
- readonly reservation: "none";
42
- readonly receiptOutcome?: DocumentReceiptOutcome;
43
- readonly reachability?: DocumentReachabilityProjection;
44
- }
45
- export interface DocumentDoctorResult {
46
- readonly kind: "doctor";
47
- readonly installedFoundationVersion?: string;
48
- readonly installedFoundationBuildIdentity?: string;
49
- readonly filesystem?: {
50
- readonly basis: "platform-contract";
51
- readonly strictDirectoryDurability: "platform-supported" | "platform-unsupported";
52
- };
53
- readonly transactionState: "corrupt" | "document" | "local-mode" | "none" | "scaffold" | "transition-residue" | "unknown" | "version-mismatch";
54
- readonly protocolKind?: "document-authoring" | "local-mode" | "scaffolding" | "unknown";
55
- readonly foundationVersion?: string;
56
- readonly foundationBuildIdentity?: string;
57
- readonly recoveryClass: "auto-recoverable" | "manual" | "not-required";
58
- readonly recoveryCommand?: DocumentRecoveryCommand;
59
- }
60
- export interface DocumentRecoverResult {
61
- readonly kind: "recover";
62
- readonly transactionState: "already-applied" | "manual-required" | "no-pending-transaction" | "recovered" | "recovery-required" | "cancelled" | "failed";
63
- readonly writeState: "already-committed" | "committed" | "unchanged" | "unknown";
64
- readonly recoveryRequired: boolean;
65
- readonly receiptDigest?: string;
66
- readonly recoveryCommand?: DocumentRecoveryCommand;
67
- }
68
- export {};
69
- //# sourceMappingURL=document-command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-command.d.ts","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,M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,MAAM,GACN,UAAU,GACV,oBAAoB,GACpB,SAAS,GACT,kBAAkB,CAAC;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,oBAAoB,GAAG,YAAY,GAAG,aAAa,GAAG,SAAS,CAAC;IACxF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAC1C,QAAQ,CAAC,aAAa,EAAE,kBAAkB,GAAG,QAAQ,GAAG,cAAc,CAAC;IACvE,QAAQ,CAAC,eAAe,CAAC,EAAE,uBAAuB,CAAC;CACpD;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,gBAAgB,EACrB,iBAAiB,GACjB,iBAAiB,GACjB,wBAAwB,GACxB,WAAW,GACX,mBAAmB,GACnB,WAAW,GACX,QAAQ,CAAC;IACb,QAAQ,CAAC,UAAU,EAAE,mBAAmB,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;IACjF,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,eAAe,CAAC,EAAE,uBAAuB,CAAC;CACpD"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=document-command.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-command.js","sourceRoot":"","sources":["../../../../src/document-authoring/application/model/document-command.ts"],"names":[],"mappings":""}