@amalgm/shell 0.1.164-main.39921181499 → 0.1.164-main.40054498467

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 (449) hide show
  1. package/PURPOSE.md +104 -56
  2. package/dist/accepted-fold.d.ts +85 -0
  3. package/dist/accepted-fold.js +446 -0
  4. package/dist/accepted-fold.js.map +1 -0
  5. package/dist/accepted-tail.d.ts +12 -8
  6. package/dist/accepted-tail.js +10 -10
  7. package/dist/accepted-tail.js.map +1 -1
  8. package/dist/apply-control.d.ts +54 -0
  9. package/dist/apply-control.js +82 -0
  10. package/dist/apply-control.js.map +1 -0
  11. package/dist/apply-durability.d.ts +30 -0
  12. package/dist/apply-durability.js +69 -0
  13. package/dist/apply-durability.js.map +1 -0
  14. package/dist/apply-enter-build.d.ts +0 -2
  15. package/dist/apply-enter-build.js +13 -12
  16. package/dist/apply-enter-build.js.map +1 -1
  17. package/dist/apply-enter-plan.d.ts +2 -2
  18. package/dist/apply-enter-plan.js +2 -3
  19. package/dist/apply-enter-plan.js.map +1 -1
  20. package/dist/apply-git-storage.d.ts +4 -3
  21. package/dist/apply-git-storage.js +29 -21
  22. package/dist/apply-git-storage.js.map +1 -1
  23. package/dist/apply-kept.d.ts +32 -0
  24. package/dist/apply-kept.js +120 -0
  25. package/dist/apply-kept.js.map +1 -0
  26. package/dist/apply-local-work.d.ts +32 -0
  27. package/dist/apply-local-work.js +121 -0
  28. package/dist/apply-local-work.js.map +1 -0
  29. package/dist/apply-showing.d.ts +5 -2
  30. package/dist/apply-showing.js +7 -5
  31. package/dist/apply-showing.js.map +1 -1
  32. package/dist/apply-window-cargo.d.ts +33 -0
  33. package/dist/apply-window-cargo.js +115 -0
  34. package/dist/apply-window-cargo.js.map +1 -0
  35. package/dist/apply-window-ground.d.ts +119 -0
  36. package/dist/apply-window-ground.js +294 -0
  37. package/dist/apply-window-ground.js.map +1 -0
  38. package/dist/{entity-apply-host.d.ts → apply-window-host.d.ts} +51 -43
  39. package/dist/apply-window-host.js +1455 -0
  40. package/dist/apply-window-host.js.map +1 -0
  41. package/dist/apply-window-line.d.ts +25 -0
  42. package/dist/apply-window-line.js +132 -0
  43. package/dist/apply-window-line.js.map +1 -0
  44. package/dist/apply-window-recovery.d.ts +5 -0
  45. package/dist/apply-window-recovery.js +108 -0
  46. package/dist/apply-window-recovery.js.map +1 -0
  47. package/dist/apply-window-repository.d.ts +97 -0
  48. package/dist/apply-window-repository.js +464 -0
  49. package/dist/apply-window-repository.js.map +1 -0
  50. package/dist/apply-window-reveal.d.ts +23 -0
  51. package/dist/apply-window-reveal.js +124 -0
  52. package/dist/apply-window-reveal.js.map +1 -0
  53. package/dist/apply-window-rows.d.ts +129 -0
  54. package/dist/apply-window-rows.js +106 -0
  55. package/dist/apply-window-rows.js.map +1 -0
  56. package/dist/apply-window-saves.d.ts +127 -0
  57. package/dist/apply-window-saves.js +299 -0
  58. package/dist/apply-window-saves.js.map +1 -0
  59. package/dist/apply-window-store.d.ts +93 -0
  60. package/dist/apply-window-store.js +215 -0
  61. package/dist/apply-window-store.js.map +1 -0
  62. package/dist/apply-window-verify.d.ts +56 -0
  63. package/dist/apply-window-verify.js +177 -0
  64. package/dist/apply-window-verify.js.map +1 -0
  65. package/dist/authority-binding.d.ts +1 -1
  66. package/dist/authority-binding.js +10 -7
  67. package/dist/authority-binding.js.map +1 -1
  68. package/dist/baseline-content.d.ts +14 -0
  69. package/dist/baseline-content.js +49 -0
  70. package/dist/baseline-content.js.map +1 -0
  71. package/dist/boot-identity.d.ts +1 -0
  72. package/dist/boot-identity.js +23 -0
  73. package/dist/boot-identity.js.map +1 -0
  74. package/dist/cargo-group.d.ts +31 -17
  75. package/dist/cargo-group.js +64 -26
  76. package/dist/cargo-group.js.map +1 -1
  77. package/dist/cargo-journal.d.ts +45 -0
  78. package/dist/cargo-journal.js +133 -0
  79. package/dist/cargo-journal.js.map +1 -0
  80. package/dist/construct-apply-host.d.ts +2 -3
  81. package/dist/construct-apply-host.js +0 -5
  82. package/dist/construct-apply-host.js.map +1 -1
  83. package/dist/content-cache-host.d.ts +95 -51
  84. package/dist/content-cache-host.js +251 -208
  85. package/dist/content-cache-host.js.map +1 -1
  86. package/dist/content-cache-index.d.ts +16 -3
  87. package/dist/content-cache-index.js +40 -16
  88. package/dist/content-cache-index.js.map +1 -1
  89. package/dist/content-cache-namespace.d.ts +19 -35
  90. package/dist/content-cache-namespace.js +55 -97
  91. package/dist/content-cache-namespace.js.map +1 -1
  92. package/dist/content-cache-partials.d.ts +37 -0
  93. package/dist/content-cache-partials.js +79 -0
  94. package/dist/content-cache-partials.js.map +1 -0
  95. package/dist/content-cache-retention.d.ts +5 -6
  96. package/dist/content-cache-retention.js +36 -86
  97. package/dist/content-cache-retention.js.map +1 -1
  98. package/dist/content-capture-pool.d.ts +47 -19
  99. package/dist/content-capture-pool.js +87 -24
  100. package/dist/content-capture-pool.js.map +1 -1
  101. package/dist/content-capture-worker.js +21 -8
  102. package/dist/content-capture-worker.js.map +1 -1
  103. package/dist/content-clock.d.ts +39 -33
  104. package/dist/content-clock.js +171 -128
  105. package/dist/content-clock.js.map +1 -1
  106. package/dist/content-direct.d.ts +0 -2
  107. package/dist/content-direct.js +53 -31
  108. package/dist/content-direct.js.map +1 -1
  109. package/dist/content-qualification.d.ts +72 -0
  110. package/dist/content-qualification.js +128 -0
  111. package/dist/content-qualification.js.map +1 -0
  112. package/dist/content-stream-thread.d.ts +9 -4
  113. package/dist/content-stream-thread.js +14 -9
  114. package/dist/content-stream-thread.js.map +1 -1
  115. package/dist/content-stream-worker.js +6 -4
  116. package/dist/content-stream-worker.js.map +1 -1
  117. package/dist/declaration-absorption.d.ts +14 -9
  118. package/dist/declaration-absorption.js +43 -32
  119. package/dist/declaration-absorption.js.map +1 -1
  120. package/dist/declaration-chain.js +2 -2
  121. package/dist/declaration-chain.js.map +1 -1
  122. package/dist/declaration-journal.d.ts +8 -2
  123. package/dist/declaration-journal.js +6 -2
  124. package/dist/declaration-journal.js.map +1 -1
  125. package/dist/declaration-save.js +10 -32
  126. package/dist/declaration-save.js.map +1 -1
  127. package/dist/detection/accepted-result.js +3 -3
  128. package/dist/detection/accepted-result.js.map +1 -1
  129. package/dist/detection/admission-save.d.ts +20 -9
  130. package/dist/detection/admission-save.js +26 -17
  131. package/dist/detection/admission-save.js.map +1 -1
  132. package/dist/detection/admission-units.d.ts +28 -0
  133. package/dist/detection/admission-units.js +224 -59
  134. package/dist/detection/admission-units.js.map +1 -1
  135. package/dist/detection/alias-examination.d.ts +5 -2
  136. package/dist/detection/alias-examination.js +15 -3
  137. package/dist/detection/alias-examination.js.map +1 -1
  138. package/dist/detection/apply-ownership.d.ts +47 -37
  139. package/dist/detection/apply-ownership.js +89 -119
  140. package/dist/detection/apply-ownership.js.map +1 -1
  141. package/dist/detection/capture-outcome.js +31 -28
  142. package/dist/detection/capture-outcome.js.map +1 -1
  143. package/dist/detection/codec-standing.d.ts +27 -0
  144. package/dist/detection/codec-standing.js +86 -0
  145. package/dist/detection/codec-standing.js.map +1 -0
  146. package/dist/detection/container-membership.d.ts +14 -28
  147. package/dist/detection/container-membership.js +28 -32
  148. package/dist/detection/container-membership.js.map +1 -1
  149. package/dist/detection/directory-proof.js +1 -1
  150. package/dist/detection/directory-proof.js.map +1 -1
  151. package/dist/detection/dispositions.d.ts +9 -31
  152. package/dist/detection/dispositions.js +26 -82
  153. package/dist/detection/dispositions.js.map +1 -1
  154. package/dist/detection/git-notice.d.ts +7 -6
  155. package/dist/detection/git-notice.js +26 -18
  156. package/dist/detection/git-notice.js.map +1 -1
  157. package/dist/detection/ground-proof.d.ts +7 -2
  158. package/dist/detection/ground-proof.js +15 -7
  159. package/dist/detection/ground-proof.js.map +1 -1
  160. package/dist/detection/ground-reader.d.ts +6 -8
  161. package/dist/detection/ground-reader.js +1 -23
  162. package/dist/detection/ground-reader.js.map +1 -1
  163. package/dist/detection/held-territory.d.ts +4 -0
  164. package/dist/detection/held-territory.js +19 -7
  165. package/dist/detection/held-territory.js.map +1 -1
  166. package/dist/detection/identity-discovery.d.ts +1 -1
  167. package/dist/detection/identity-discovery.js +16 -15
  168. package/dist/detection/identity-discovery.js.map +1 -1
  169. package/dist/detection/maintenance-sweep.js +10 -4
  170. package/dist/detection/maintenance-sweep.js.map +1 -1
  171. package/dist/detection/notebook-basis.d.ts +5 -1
  172. package/dist/detection/notebook-basis.js +7 -2
  173. package/dist/detection/notebook-basis.js.map +1 -1
  174. package/dist/detection/owed-examinations.d.ts +22 -0
  175. package/dist/detection/owed-examinations.js +54 -0
  176. package/dist/detection/owed-examinations.js.map +1 -0
  177. package/dist/detection/owed-selection.d.ts +10 -10
  178. package/dist/detection/owed-selection.js +52 -29
  179. package/dist/detection/owed-selection.js.map +1 -1
  180. package/dist/detection/policy-owed.d.ts +13 -0
  181. package/dist/detection/policy-owed.js +34 -0
  182. package/dist/detection/policy-owed.js.map +1 -0
  183. package/dist/detection/portable.d.ts +35 -14
  184. package/dist/detection/portable.js +111 -53
  185. package/dist/detection/portable.js.map +1 -1
  186. package/dist/detection/repository-routes.js +2 -4
  187. package/dist/detection/repository-routes.js.map +1 -1
  188. package/dist/detection/repository-seals.d.ts +8 -3
  189. package/dist/detection/repository-seals.js +16 -3
  190. package/dist/detection/repository-seals.js.map +1 -1
  191. package/dist/detection/reveal-save.d.ts +15 -0
  192. package/dist/detection/reveal-save.js +13 -0
  193. package/dist/detection/reveal-save.js.map +1 -0
  194. package/dist/detection/root-examination.d.ts +17 -0
  195. package/dist/detection/root-examination.js +209 -87
  196. package/dist/detection/root-examination.js.map +1 -1
  197. package/dist/detection/runtime.d.ts +8 -4
  198. package/dist/detection/runtime.js +135 -112
  199. package/dist/detection/runtime.js.map +1 -1
  200. package/dist/detection/scope-frame.d.ts +27 -1
  201. package/dist/detection/scope-frame.js +41 -13
  202. package/dist/detection/scope-frame.js.map +1 -1
  203. package/dist/detection/scoped-identity-port.d.ts +5 -1
  204. package/dist/detection/scoped-identity-port.js +7 -6
  205. package/dist/detection/scoped-identity-port.js.map +1 -1
  206. package/dist/detection/unread-content.d.ts +20 -0
  207. package/dist/detection/unread-content.js +34 -0
  208. package/dist/detection/unread-content.js.map +1 -0
  209. package/dist/durability-barrier.d.ts +29 -0
  210. package/dist/durability-barrier.js +91 -0
  211. package/dist/durability-barrier.js.map +1 -1
  212. package/dist/entity-record-observability.js +1 -0
  213. package/dist/entity-record-observability.js.map +1 -1
  214. package/dist/entity-record-saves.js +7 -3
  215. package/dist/entity-record-saves.js.map +1 -1
  216. package/dist/entity-record-store.d.ts +9 -4
  217. package/dist/entity-record-store.js +19 -14
  218. package/dist/entity-record-store.js.map +1 -1
  219. package/dist/filesystem.d.ts +0 -3
  220. package/dist/filesystem.js +13 -18
  221. package/dist/filesystem.js.map +1 -1
  222. package/dist/flush.d.ts +11 -0
  223. package/dist/flush.js +76 -0
  224. package/dist/flush.js.map +1 -0
  225. package/dist/git-binding.d.ts +15 -0
  226. package/dist/git-binding.js +44 -24
  227. package/dist/git-binding.js.map +1 -1
  228. package/dist/git-capture.d.ts +11 -4
  229. package/dist/git-capture.js +101 -9
  230. package/dist/git-capture.js.map +1 -1
  231. package/dist/git-card.d.ts +20 -7
  232. package/dist/git-card.js +22 -22
  233. package/dist/git-card.js.map +1 -1
  234. package/dist/git-checkpoint-construction.d.ts +7 -3
  235. package/dist/git-checkpoint-construction.js +13 -6
  236. package/dist/git-checkpoint-construction.js.map +1 -1
  237. package/dist/git-checkpoint-preparation.d.ts +9 -3
  238. package/dist/git-checkpoint-preparation.js +47 -14
  239. package/dist/git-checkpoint-preparation.js.map +1 -1
  240. package/dist/git-command.js +43 -37
  241. package/dist/git-command.js.map +1 -1
  242. package/dist/git-configuration.d.ts +16 -6
  243. package/dist/git-configuration.js +16 -10
  244. package/dist/git-configuration.js.map +1 -1
  245. package/dist/git-evidence.d.ts +22 -42
  246. package/dist/git-evidence.js +52 -151
  247. package/dist/git-evidence.js.map +1 -1
  248. package/dist/git-facts.d.ts +2 -0
  249. package/dist/git-facts.js +35 -0
  250. package/dist/git-facts.js.map +1 -0
  251. package/dist/git-index-entries.d.ts +5 -0
  252. package/dist/git-index-entries.js.map +1 -1
  253. package/dist/git-index-format.d.ts +7 -0
  254. package/dist/git-index-format.js +104 -20
  255. package/dist/git-index-format.js.map +1 -1
  256. package/dist/git-index-witness.d.ts +1 -1
  257. package/dist/git-index-witness.js +19 -4
  258. package/dist/git-index-witness.js.map +1 -1
  259. package/dist/git-launcher-process.d.ts +1 -0
  260. package/dist/git-launcher-process.js +108 -0
  261. package/dist/git-launcher-process.js.map +1 -0
  262. package/dist/git-launcher.d.ts +74 -0
  263. package/dist/git-launcher.js +180 -0
  264. package/dist/git-launcher.js.map +1 -0
  265. package/dist/git-literal-batch.d.ts +1 -0
  266. package/dist/git-literal-batch.js +2 -1
  267. package/dist/git-literal-batch.js.map +1 -1
  268. package/dist/git-literal-host.d.ts +4 -2
  269. package/dist/git-literal-host.js +13 -11
  270. package/dist/git-literal-host.js.map +1 -1
  271. package/dist/git-literal-read.d.ts +9 -2
  272. package/dist/git-literal-read.js +12 -7
  273. package/dist/git-literal-read.js.map +1 -1
  274. package/dist/git-literal-replay.d.ts +32 -3
  275. package/dist/git-literal-replay.js +77 -28
  276. package/dist/git-literal-replay.js.map +1 -1
  277. package/dist/git-native-file.js +1 -1
  278. package/dist/git-native-file.js.map +1 -1
  279. package/dist/git-native-index.d.ts +5 -1
  280. package/dist/git-native-index.js +13 -9
  281. package/dist/git-native-index.js.map +1 -1
  282. package/dist/git-operation-host.d.ts +10 -18
  283. package/dist/git-operation-host.js +14 -29
  284. package/dist/git-operation-host.js.map +1 -1
  285. package/dist/git-private-view.d.ts +7 -4
  286. package/dist/git-private-view.js +17 -15
  287. package/dist/git-private-view.js.map +1 -1
  288. package/dist/git-records.d.ts +29 -0
  289. package/dist/git-records.js +119 -0
  290. package/dist/git-records.js.map +1 -0
  291. package/dist/git-registration-host.d.ts +3 -0
  292. package/dist/git-registration-host.js +1 -1
  293. package/dist/git-registration-host.js.map +1 -1
  294. package/dist/git-repository-host.d.ts +25 -21
  295. package/dist/git-repository-host.js +193 -166
  296. package/dist/git-repository-host.js.map +1 -1
  297. package/dist/graph-heads.d.ts +26 -1
  298. package/dist/graph-heads.js +28 -13
  299. package/dist/graph-heads.js.map +1 -1
  300. package/dist/graph-publication.d.ts +26 -34
  301. package/dist/graph-publication.js +41 -132
  302. package/dist/graph-publication.js.map +1 -1
  303. package/dist/ground-basis.d.ts +76 -39
  304. package/dist/ground-basis.js +209 -84
  305. package/dist/ground-basis.js.map +1 -1
  306. package/dist/ground-checkpoint-worker.js +26 -25
  307. package/dist/ground-checkpoint-worker.js.map +1 -1
  308. package/dist/ground-checkpoints.d.ts +1 -1
  309. package/dist/ground-coordination.d.ts +27 -20
  310. package/dist/ground-coordination.js +90 -48
  311. package/dist/ground-coordination.js.map +1 -1
  312. package/dist/ground-database.d.ts +2 -2
  313. package/dist/ground-database.js +76 -33
  314. package/dist/ground-database.js.map +1 -1
  315. package/dist/ground-differences.d.ts +19 -18
  316. package/dist/ground-differences.js +20 -42
  317. package/dist/ground-differences.js.map +1 -1
  318. package/dist/ground-install-saves.d.ts +44 -11
  319. package/dist/ground-install-saves.js +39 -42
  320. package/dist/ground-install-saves.js.map +1 -1
  321. package/dist/ground-inventory-schema.d.ts +42 -2
  322. package/dist/ground-inventory-schema.js +237 -28
  323. package/dist/ground-inventory-schema.js.map +1 -1
  324. package/dist/ground-marks.d.ts +33 -22
  325. package/dist/ground-marks.js +63 -84
  326. package/dist/ground-marks.js.map +1 -1
  327. package/dist/ground-profile.d.ts +3 -0
  328. package/dist/ground-profile.js +51 -13
  329. package/dist/ground-profile.js.map +1 -1
  330. package/dist/ground-relations.d.ts +49 -0
  331. package/dist/ground-relations.js +183 -0
  332. package/dist/ground-relations.js.map +1 -0
  333. package/dist/ground-row.d.ts +18 -4
  334. package/dist/ground-row.js +17 -8
  335. package/dist/ground-row.js.map +1 -1
  336. package/dist/ground-save-ops.d.ts +30 -17
  337. package/dist/ground-save-ops.js +34 -17
  338. package/dist/ground-save-ops.js.map +1 -1
  339. package/dist/ground-saver-worker.js +169 -26
  340. package/dist/ground-saver-worker.js.map +1 -1
  341. package/dist/ground-saver.d.ts +35 -3
  342. package/dist/ground-saver.js +49 -10
  343. package/dist/ground-saver.js.map +1 -1
  344. package/dist/ground-store.d.ts +45 -4
  345. package/dist/ground-store.js +492 -70
  346. package/dist/ground-store.js.map +1 -1
  347. package/dist/index.d.ts +1 -1
  348. package/dist/initial-publication.d.ts +39 -0
  349. package/dist/initial-publication.js +39 -0
  350. package/dist/initial-publication.js.map +1 -0
  351. package/dist/machine-host.d.ts +7 -6
  352. package/dist/machine-host.js +1 -1
  353. package/dist/machine-host.js.map +1 -1
  354. package/dist/materialize-records.d.ts +21 -14
  355. package/dist/materialize-records.js +258 -205
  356. package/dist/materialize-records.js.map +1 -1
  357. package/dist/materialized-graph.d.ts +1 -1
  358. package/dist/materialized-graph.js +4 -4
  359. package/dist/materialized-graph.js.map +1 -1
  360. package/dist/physical-path-witness.js +12 -9
  361. package/dist/physical-path-witness.js.map +1 -1
  362. package/dist/placement-owed.d.ts +8 -3
  363. package/dist/placement-owed.js +7 -0
  364. package/dist/placement-owed.js.map +1 -1
  365. package/dist/received-state.d.ts +24 -9
  366. package/dist/received-state.js +76 -74
  367. package/dist/received-state.js.map +1 -1
  368. package/dist/register-upload-fusion.d.ts +7 -4
  369. package/dist/register-upload-fusion.js +6 -4
  370. package/dist/register-upload-fusion.js.map +1 -1
  371. package/dist/registry-graph.d.ts +6 -5
  372. package/dist/registry-graph.js +24 -13
  373. package/dist/registry-graph.js.map +1 -1
  374. package/dist/repository-statement.d.ts +3 -0
  375. package/dist/repository-statement.js +1 -1
  376. package/dist/repository-statement.js.map +1 -1
  377. package/dist/reveal-owner.d.ts +16 -0
  378. package/dist/reveal-owner.js +74 -0
  379. package/dist/reveal-owner.js.map +1 -0
  380. package/dist/root-install.d.ts +61 -0
  381. package/dist/root-install.js +176 -0
  382. package/dist/root-install.js.map +1 -0
  383. package/dist/sharing-admission.d.ts +5 -1
  384. package/dist/sharing-admission.js +42 -24
  385. package/dist/sharing-admission.js.map +1 -1
  386. package/dist/snapshot-delivery-baseline.d.ts +23 -13
  387. package/dist/snapshot-delivery-baseline.js +37 -40
  388. package/dist/snapshot-delivery-baseline.js.map +1 -1
  389. package/dist/source-signature.d.ts +91 -21
  390. package/dist/source-signature.js +108 -28
  391. package/dist/source-signature.js.map +1 -1
  392. package/dist/sqlite-durability.d.ts +1 -0
  393. package/dist/sqlite-durability.js +2 -0
  394. package/dist/sqlite-durability.js.map +1 -1
  395. package/dist/transfer-instrumentation.d.ts +3 -3
  396. package/dist/transfer-instrumentation.js +7 -5
  397. package/dist/transfer-instrumentation.js.map +1 -1
  398. package/dist/user-ground-host.d.ts +82 -23
  399. package/dist/user-ground-host.js +1390 -672
  400. package/dist/user-ground-host.js.map +1 -1
  401. package/dist/watching/git-storage.js +1 -1
  402. package/dist/watching/git-storage.js.map +1 -1
  403. package/dist/watching/host.d.ts +21 -8
  404. package/dist/watching/host.js +59 -35
  405. package/dist/watching/host.js.map +1 -1
  406. package/dist/workspace-add-staging.d.ts +60 -61
  407. package/dist/workspace-add-staging.js +128 -158
  408. package/dist/workspace-add-staging.js.map +1 -1
  409. package/examinations/fixtures/private-wire-authority.js +34 -5
  410. package/npm-shrinkwrap.json +10 -10
  411. package/package.json +6 -6
  412. package/dist/apply-bound-ground.d.ts +0 -109
  413. package/dist/apply-bound-ground.js +0 -349
  414. package/dist/apply-bound-ground.js.map +0 -1
  415. package/dist/apply-bound-root.d.ts +0 -23
  416. package/dist/apply-bound-root.js +0 -42
  417. package/dist/apply-bound-root.js.map +0 -1
  418. package/dist/apply-cleanup.d.ts +0 -28
  419. package/dist/apply-cleanup.js +0 -166
  420. package/dist/apply-cleanup.js.map +0 -1
  421. package/dist/apply-flush.d.ts +0 -8
  422. package/dist/apply-flush.js +0 -57
  423. package/dist/apply-flush.js.map +0 -1
  424. package/dist/apply-line.d.ts +0 -54
  425. package/dist/apply-line.js +0 -126
  426. package/dist/apply-line.js.map +0 -1
  427. package/dist/apply-placement.d.ts +0 -31
  428. package/dist/apply-placement.js +0 -133
  429. package/dist/apply-placement.js.map +0 -1
  430. package/dist/apply-recovery.d.ts +0 -92
  431. package/dist/apply-recovery.js +0 -167
  432. package/dist/apply-recovery.js.map +0 -1
  433. package/dist/apply-rows.d.ts +0 -89
  434. package/dist/apply-rows.js +0 -173
  435. package/dist/apply-rows.js.map +0 -1
  436. package/dist/apply-saves.d.ts +0 -109
  437. package/dist/apply-saves.js +0 -286
  438. package/dist/apply-saves.js.map +0 -1
  439. package/dist/detection/disposition-rows.d.ts +0 -18
  440. package/dist/detection/disposition-rows.js +0 -29
  441. package/dist/detection/disposition-rows.js.map +0 -1
  442. package/dist/detection/verified-content.d.ts +0 -6
  443. package/dist/detection/verified-content.js +0 -7
  444. package/dist/detection/verified-content.js.map +0 -1
  445. package/dist/entity-apply-host.js +0 -2673
  446. package/dist/entity-apply-host.js.map +0 -1
  447. package/dist/entity-apply-store.d.ts +0 -102
  448. package/dist/entity-apply-store.js +0 -233
  449. package/dist/entity-apply-store.js.map +0 -1
package/PURPOSE.md CHANGED
@@ -24,8 +24,13 @@ the sharing baseline, and the last verified materialization. Existing effect
24
24
  recovery must finish before this shortcut can resolve history. This boundary
25
25
  is being implemented; the full native Apply examination has not passed it yet.
26
26
 
27
- One read-only view of bound, nonterminal Apply recovery receipts protects original
28
- participants and source/destination cones during Detect. Root and path coverage
27
+ One read-only view of the open Apply windows, bound and not yet ended, protects
28
+ every address, object and entity their receipt rows name during Detect
29
+ (`src/detection/apply-ownership.ts`). The window's receipt is its row, never a
30
+ file: bound before the first visible effect, ended at Verify, durable only after
31
+ the revealed bytes are flushed (`src/apply-window-saves.ts`); every reveal step
32
+ is idempotent against it, so a window re-entered after a crash runs the same
33
+ steps again (`src/apply-window-recovery.ts`). Root and path coverage
29
34
  remain distinct from ownership: the walk leaves each owned cone unread inside its
30
35
  root and admits the root's independent units; only a cone containing the root, or
31
36
  Register and first-login declaration, defer the whole root. No deferred row is
@@ -208,8 +213,9 @@ effect remains. Every remaining effect passes the same local-work, preimage
208
213
  and destination checks under the complete ground scope. An interrupted effect
209
214
  owns a recovery obligation, never arbitrary later edits at its address. Recovery
210
215
  cannot be retired until its retained versions have an explicit safe disposition.
211
- Startup may settle history through an explicitly installed snapshot watermark;
212
- equality with a sharing row never manufactures a current materialization proof.
216
+ Only verified materialization settles history: Verify, or an Add's install of
217
+ exactly the entities it verified present or absent. Equality with a sharing row
218
+ never manufactures a current materialization proof.
213
219
  The exact Apply outcome commits before private recovery deletion. The same
214
220
  intent then owns only a finite cleanup description; restart dispatches that
215
221
  responsibility without current O or old cargo. Cleanup hashes survivors with
@@ -428,16 +434,23 @@ Each requests F_FULLFSYNC where the platform has it, because a plain macOS fsync
428
434
  can leave a commit in the drive's cache. Every write to a ground file is a
429
435
  named save run by that file's one saver thread (`src/ground-saver.ts`): saves
430
436
  posted while a commit flushes form the next batch, each in its own savepoint,
431
- committed once at synchronous=FULL. A save settles only once the drive holds
432
- it, so Send submits only durable Outbox rows; the main thread's ground
433
- connections only read, so it never waits for the drive. Detect reports the
434
- journal, synchronous and fullfsync settings the saver committed under.
437
+ committed once. A save settles only once the drive holds it, except an
438
+ ordered save whose truth also stands elsewhere (Detect's admission, a stamp,
439
+ a received page): it commits without waiting for the drive, and the next
440
+ strict commit's flush covers it, because the log only grows. Send asks for
441
+ that flush before every offer, so it submits only durable Outbox rows; the
442
+ main thread's ground connections only read, so it never waits for the drive.
443
+ Detect reports the journal, synchronous and fullfsync settings the saver's
444
+ strict commits run under.
435
445
  Whatever launches the runtime process names the Node flags of
436
446
  `src/runtime-node-flags.ts`: a bounded young generation keeps each of the main
437
447
  thread's garbage-collection pauses to a few milliseconds.
438
- Durability acknowledgements require the native flush to succeed through a handle
439
- with the access it requires; a failed flush cannot become a successful install
440
- or materialization. Each writer owns the durability of the files it creates.
448
+ Every file and directory flush is the operating system's own, through Node
449
+ (`src/flush.ts`): fsync, FlushFileBuffers on Windows, F_FULLFSYNC on macOS.
450
+ There is no weaker flush, so a write that must persist before another is
451
+ flushed before the other is issued. Durability acknowledgements require that
452
+ flush to succeed through a handle with the access it requires; a failed flush
453
+ cannot become a successful install or materialization. Each writer owns the durability of the files it creates.
441
454
  Content equality alone cannot acknowledge durable materialization; Verify
442
455
  re-establishes the affected file and directory flushes before completion.
443
456
  The staging barrier composes a writer's acknowledgement only while its exact
@@ -558,7 +571,10 @@ Local profiles retain their selected sources and do not follow managed targets.
558
571
  separation, installation verification, restart proof, and readiness. Its
559
572
  Files step returns explicit paused evidence or calls one `@amalgm/live`
560
573
  user-ground convergence operation. The shell supplies filesystem, SQLite,
561
- Watch, and cloud-wire effects only. Resume retains the existing recovery,
574
+ Watch, and cloud-wire effects only. Joining ground takes its place in one
575
+ save that discharges what produced it (initial-publication.ts); ground
576
+ already on the delivery line keeps its own position, and no startup jumps
577
+ it to a newer head. Resume retains the existing recovery,
562
578
  Watch and Detect/Record order to reconcile a stopped or paused interval.
563
579
 
564
580
  10. **One wire reaches the existing authority.** The shell's Live adapter uses
@@ -862,21 +878,24 @@ after adoption.
862
878
  entity identity. Missing, corrupt, or obsolete cache bytes are removed and
863
879
  recomputed from authoritative local ground; they never become a legacy
864
880
  compatibility requirement and never prevent the machine from resuming.
865
- A cache name appears only over durable bytes: every writer makes a staged
866
- file durable before renaming it into place, so an existing name already
881
+ A cache name appears only over durable bytes: every writer flushes a
882
+ staged file before renaming it into place, so an existing name already
867
883
  holds that immutable object and a rename over it replaces identical
868
884
  durable bytes. Windows refuses to replace a name another holder has
869
885
  open; that name is judged as one found before staging, adopted only when
870
- it qualifies. Staged cargo becomes durable in groups: its bytes are
871
- written through to the device, and one barrier covers every writer that
872
- staged before the barrier began (on macOS, one drive flush), so a burst of
873
- captures never waits for one full flush per file. A barrier stalls the
874
- staging still in flight, so a pass that captures a set names it together
875
- once the whole set has staged, as Git batches object writes behind one
876
- flush: one barrier per pass, and none while its reads run. Before Record admits
877
- captured cargo it flushes the cache directories off the event loop only
878
- when a required name is not yet known durable; a crash can lose an
879
- unrecorded name, never leave a Record naming torn bytes.
886
+ it qualifies. A staged file is flushed when it is named, not when it is
887
+ written: a pass that captures a set names the cargo its Records carry once
888
+ the whole set has staged and removes the rest unflushed, so its reads
889
+ never wait on the drive. A Record and its cargo become durable together.
890
+ The small cargo a named pass read commits in its Record's own
891
+ transaction, so the log's order is its durability and the pass pays no
892
+ flush; the cache names it afterward, and the journal lets it go only once
893
+ the name is durable. Send reads the journal first; any other reader of an
894
+ unnamed name finds it absent, which it already answers (a delta base
895
+ selects the snapshot). Any other cargo is named before its Record commits,
896
+ with one flush of the cache directory, off the event loop, and none when
897
+ every required name is already known flushed. A crash can lose an
898
+ unrecorded name, never leave a Record whose bytes stand nowhere.
880
899
  A pending Send consults its capture-derived manifest and the authority's
881
900
  immutable inventory before opening local cargo: after upload succeeded but
882
901
  before its acknowledgement became durable, complete cloud cargo is enough
@@ -992,17 +1011,18 @@ after adoption.
992
1011
  A graph that `add` has just materialized and verified is the initial
993
1012
  baseline for that newly covered root, so Watch does not report the
994
1013
  downloader's own writes as user edits; every later OS notification remains
995
- ordinary suspicion. The same verified notebook is Apply's materialization
996
- baseline: the newest retained Inbox result that exactly equals each
997
- installed row advances that entity's resolved and materialized sequence
998
- without replaying historical cargo, while every later different result
999
- remains ordinary Apply work. Watch may establish native coverage before
1000
- startup Apply is ready, but its suspicions remain unconsumed until Apply
1001
- has adopted or resumed durable materialization. Startup adopts that
1002
- baseline while holding every watched ground cone; only after Apply starts
1003
- does one Detect generation consume the rings accumulated during boot. An
1004
- older Detect transaction settles first and any newer Watch generation
1005
- waits until adoption finishes. Register
1014
+ ordinary suspicion. The same verified install is Apply's materialization
1015
+ baseline, committed with its rows: each installed entity resolves through
1016
+ its last received record within the watermark, materialized at that record
1017
+ when the install verified exactly its version, and each set-aside member,
1018
+ verified absent, resolves at the same place, materialized nowhere
1019
+ (`src/apply-window-saves.ts`). Every other received
1020
+ record, including every later record of those entities, remains ordinary
1021
+ Apply work, and the Add wakes Apply's line once it releases its ground.
1022
+ Watch may establish native coverage before startup Apply is ready, but its
1023
+ suspicions remain unconsumed until Apply has acquired its binding roots and
1024
+ resumed durable materialization; only after Apply starts does one Detect
1025
+ generation consume the rings accumulated during boot. Register
1006
1026
  and Watch enumerate the same durable binding inventory, so a missed
1007
1027
  notification for rendering the portable reference cannot lose a
1008
1028
  declaration. A bound root that no Register has committed is held: it is
@@ -1112,8 +1132,13 @@ after adoption.
1112
1132
  35. **Container membership is version input, never cargo.** A workspace or
1113
1133
  folder derives its logical version from the UUIDs and names of active
1114
1134
  direct children, while its portable and notebook `payloadVersion` remains
1115
- null. Every Shell writer stores only the derived version, and Live's cloud
1116
- codec refuses a container payload. An independently ordered container
1135
+ null. Every Shell writer stores only the derived version: each save that
1136
+ changes membership derives it inside its own transaction from the children
1137
+ that inventory records, so a child no save has recorded counts nowhere,
1138
+ no row comparison counts a container's version, and no proof holds it: a
1139
+ proof holds where a container stands and the slot it takes, so a sibling
1140
+ recorded meanwhile never stales it. Live's cloud codec refuses
1141
+ a container payload. An independently ordered container
1117
1142
  receipt may therefore create, move, or rename its address, but it can never
1118
1143
  overwrite membership already established by child UUID rows or emit a
1119
1144
  second container mutation for that derivation. Local adapter evidence can
@@ -1337,8 +1362,18 @@ after adoption.
1337
1362
  53. **Visible ground coordinates by address cone.** Detect, Register, Add, Add
1338
1363
  recovery, and Apply each name the directory cones their filesystem plus
1339
1364
  SQLite projection effects touch, and two effects wait for each other only
1340
- when one cone contains the other. A Detect pass holds exactly the roots it
1341
- observes; Register holds its coverage family and core reference ground;
1365
+ when one cone contains the other. A Detect pass leases exactly the ground
1366
+ it reads, and only ground no effect holds: a name under a held cone stays
1367
+ owed while its root's other names proceed, and a release rings Detect as
1368
+ a write rings Watch, so that name looks again once its ground is free.
1369
+ Every lane, the complete lane included, gates on the ground its cut reads
1370
+ by one law: each name's subtree from its top (the first address the
1371
+ index does not hold as a folder), or the repository that owns it, with
1372
+ the root's policy file. Ground a proof finds it reads beyond that (Git
1373
+ storage a checkout keeps elsewhere, a frame's folders, a root's whole
1374
+ namespace) it takes only while no effect holds it; held, a named proof
1375
+ waits for that ground and a complete-lane cut waits as its complete root.
1376
+ Register holds its coverage family and core reference ground;
1342
1377
  Add holds its destination, staging, and core ground; Apply's final guard
1343
1378
  holds its target address, the entity's current address, and any addresses
1344
1379
  a repository identity map relocates. Conflicting effects are served in
@@ -1415,9 +1450,11 @@ after adoption.
1415
1450
  phases service Watch and transport; it inserts no scheduling gap between
1416
1451
  a final guard and reveal. This does not bound a single synchronous effect.
1417
1452
  A visible repository rewrite carries
1418
- `.git/amalgm-reveal` from its first Git mutation until exact Verify; Detect
1419
- treats that marker as unsettled private Apply ground, and restart resumes the
1420
- same durable intent before the marker is removed. Incremental materialization
1453
+ `.git/amalgm-reveal`, naming its attempt, from its first Git mutation until
1454
+ its readback proves the result, and restart resumes the same durable intent
1455
+ before the marker is removed. Only that attempt's recovery reads the marker:
1456
+ Detect leaves the repository unread because the attempt's receipt owns the
1457
+ ground, and a marker no receipt owns holds nothing. Incremental materialization
1421
1458
  imports only transport ranges whose declared Git tips are absent locally.
1422
1459
  Gaining or losing `.git` keeps the containing UUID and changes only its
1423
1460
  type rail.
@@ -1483,8 +1520,10 @@ after adoption.
1483
1520
  every committed delivery prefix is reconstructible and Add never selects
1484
1521
  a graph the parcel law would not publish. Replay closure also owes a
1485
1522
  deletion nothing else states, because the repository whose package held
1486
- it stopped being a live one, together with its enclosing ancestors that
1487
- have no head. The first
1523
+ it stopped being a live one. Whatever it owes carries each enclosing
1524
+ ancestor up to the first that travels after the batch or is already owed:
1525
+ an ancestor's own head is no proof, since a later package may have
1526
+ superseded it. The first
1488
1527
  later record on an entity UUID establishes its immediate entity predecessor
1489
1528
  from the complete snapshot prefix, after which ordinary dense per-entity gap
1490
1529
  checking resumes. A publisher may name only the exact locally received
@@ -1670,8 +1709,9 @@ after adoption.
1670
1709
  is examined or remains explicitly pending. A named single-consumer result
1671
1710
  closes the complete original binding and exclusion proof at Record.
1672
1711
 
1673
- Changed native source evidence and Amalgm's own incomplete reveal refuse
1674
- capture; the mere existence of a Git lock does not. A stable
1712
+ Changed native source evidence refuses capture; the mere existence of a
1713
+ Git lock or a reveal marker does not. Amalgm's own incomplete reveal is
1714
+ ground its receipt owns, which Detect leaves unread (law 54). A stable
1675
1715
  unfinished merge is portable Checkpoint truth: Shell captures its
1676
1716
  unmerged stages, worktree conflict bytes, and merge continuation through
1677
1717
  Live's one repository contract, and restores ordinary stages only after
@@ -1831,15 +1871,18 @@ releasing narrow leases, then yields: the complete examination starts in its
1831
1871
  own dispatcher activation and reads a new basis over the wider scope. Later
1832
1872
  notices retain their own cutoffs. Failure, deferral and repeated widening
1833
1873
  cannot replenish foreground priority. Every examination may reuse proven
1834
- content: a leaf is reused only while its signature is unchanged and both its
1835
- times precede the boundary of a content clock stamped on the root's own
1874
+ content: a leaf is reused only while its signature is unchanged and its
1875
+ change time precedes the boundary of a content clock stamped on the root's own
1836
1876
  filesystem in `.amalgm/content-clock` before the reads (`content-clock.ts`).
1837
- The boundary is the stamp less its profile's margin; a time with no
1838
- subsecond part stands for its whole second. A racy leaf is reread; only that
1839
- reread clears it. A stamp behind the root's previous one, or under another
1840
- profile than the previous stamp names, retires every proof under the root;
1841
- a conclusion drawn before that retirement at, above or beneath the root fails
1842
- its admission and is read again, and a unit that consumed an identity
1877
+ The boundary is the stamp's change time less its profile's margin; a time
1878
+ with no subsecond part stands for its whole second. A racy leaf is reread;
1879
+ only that reread clears it. Every proof names the root's qualification it was
1880
+ stamped under, and a root shows only proofs under its own. A stamp under another
1881
+ profile, or behind the latest boundary a kept proof stands on, requalifies the
1882
+ root in one write of the root, never of its rows, so no stamp file restored
1883
+ from an old copy can revive a proof; a conclusion drawn before that at, above
1884
+ or beneath the root fails its admission and is read again, and a unit that
1885
+ consumed an identity
1843
1886
  discovery reads and stands on that discovery's whole scope.
1844
1887
  Directory listings close on the same rule: a racy listing names no complete
1845
1888
  membership until a fresh listing under a later stamp, and only filesystems
@@ -1851,7 +1894,7 @@ clock ticks escapes that, and each such move is a later Watch generation.
1851
1894
  The control tree carries a `.gitignore` of `*`, written once per root per
1852
1895
  process when absent or different, so a registered repository's Git status
1853
1896
  never shows it. Ground without a qualified clock (another device, a root that
1854
- cannot hold a stamp, a clock that went backwards) is read by every
1897
+ cannot hold a stamp) is read by every
1855
1898
  examination and closes each listing by reading it again: it loses shortcuts,
1856
1899
  never conclusions. Qualifying further filesystems, NTFS and ReFS among them,
1857
1900
  is unfinished.
@@ -1890,7 +1933,12 @@ are pending; this setting grants no performance pass.
1890
1933
 
1891
1934
  Fresh observation reads mutable content without copying unchanged files into
1892
1935
  the cache. Only selected new content is sealed before Record, against the same
1893
- original physical proof. Cache existence or size alone is never content proof.
1936
+ original physical proof. A leaf that publishes on its own channel is selected
1937
+ even when Git tracked it: the read that seals its observed bytes also names
1938
+ their Git object, and its record states the exact SHA-256 value while its
1939
+ repository's package keeps the Git object. A trashed leaf known only by its
1940
+ Git object stays unsealed; Restore, which would need its bytes, is not built.
1941
+ Cache existence or size alone is never content proof.
1894
1942
  Source reads refuse special-file substitutions without waiting for another
1895
1943
  process, and release every owned resource even when another cleanup fails.
1896
1944
  Git parcel reuse requires equal fresh worktree and Card evidence. The Card's
@@ -0,0 +1,85 @@
1
+ /**
2
+ * The accepted fold: a committed head H at watermark M with every statement
3
+ * the authority accepted in (M, N], resolved by Live's one reducer.
4
+ *
5
+ * H is paged per root, and nothing reads the whole account. A statement acts
6
+ * only on rows in the roots it reaches: the root H held its entity in, the
7
+ * root H held its parent in, and, through a parent the tail itself states,
8
+ * every root that parent reaches. Roots joined this way form a component.
9
+ * Folding a component's statements, in acceptance order, onto its roots'
10
+ * records is the whole fold restricted to those roots, because no statement
11
+ * outside the component reads or writes a row inside it. A parent that H
12
+ * does not place and no statement yet states can only be a member some
13
+ * package places, in any root, so its statement joins every root. A join
14
+ * wider than the fold needs is still exact: what it adds folds untouched.
15
+ *
16
+ * The fold is held (Reduction): advancing it through later statements folds
17
+ * only those, onto each component's reduction, and that is the fold of the
18
+ * whole tail at once. A join keeps a reduction only when the other side
19
+ * adds no base rows and no statement the reduction has passed; otherwise
20
+ * the joined component opens again from its roots. A component folds when a
21
+ * reader asks for a row in it. Its rows return to their final roots by
22
+ * parent chain, and every root it loaded answers, empty when nothing stays
23
+ * in it. A root no statement reaches is H's own.
24
+ *
25
+ * H traveled when it was published, so an unreached root travels as H holds
26
+ * it, and a reached one rejudges only the territories its fold touched.
27
+ */
28
+ import { type CloudEntityRecord, type EntityStatement, type FoldOfHead, type RepositoryIdentityPort, type Sha256Hex } from "@amalgm/live";
29
+ import type { RegistryGraph } from "./registry-graph.js";
30
+ /** Where the fold holds one identity: its final root and resolved row. */
31
+ export interface AcceptedRecord {
32
+ readonly root: string;
33
+ readonly record: CloudEntityRecord;
34
+ }
35
+ export declare class AcceptedFold {
36
+ #private;
37
+ readonly graph: RegistryGraph;
38
+ readonly repositoryIdentity: RepositoryIdentityPort;
39
+ private readonly sha256Hex;
40
+ private constructor();
41
+ /** Join `statements` into components over `graph`'s roots. Nothing folds
42
+ * until a reader asks for a root the statements reach. */
43
+ static open(graph: RegistryGraph, statements: readonly EntityStatement[], repositoryIdentity: RepositoryIdentityPort, sha256Hex: Sha256Hex): Promise<AcceptedFold>;
44
+ /** Take the statements accepted next, in acceptance order. */
45
+ advance(statements: readonly EntityStatement[]): Promise<void>;
46
+ /** One root's resolved rows, unprojected. */
47
+ root(rootId: string): Promise<readonly CloudEntityRecord[]>;
48
+ /** One root's resolved rows as they travel. */
49
+ traveling(rootId: string): Promise<readonly CloudEntityRecord[]>;
50
+ /** The subtree `uuid` heads after the fold, as it travels; empty when the
51
+ * fold holds no row for it. A row's verdict reads only its nearest
52
+ * repository's territory, which lies beneath that repository, so the
53
+ * projection reads the subtree of the nearest repository above `uuid`,
54
+ * or `uuid`'s own, and nothing else in its root. */
55
+ travelingSubtree(uuid: string): Promise<readonly CloudEntityRecord[]>;
56
+ /** Where the fold holds `uuid`, or null when it holds no row for it. */
57
+ locate(uuid: string): Promise<AcceptedRecord | null>;
58
+ /** Every root's own row after the fold: the discovery set. Only a root's
59
+ * own statement creates, changes or demotes it, since a package drops rows
60
+ * only beneath its repository, so only the components such statements join
61
+ * resolve. */
62
+ rootRecords(): Promise<readonly CloudEntityRecord[]>;
63
+ /** Every root a statement reaches, after the fold: what a head through N
64
+ * must rebuild so it never names a watermark it has not applied. */
65
+ reached(): Promise<readonly string[]>;
66
+ private componentOf;
67
+ /** The root H holds `uuid` in, asked of H once. */
68
+ private where;
69
+ private partition;
70
+ /** The component's reduction through all its statements. */
71
+ private resolve;
72
+ /** Fold the statements the reduction has not passed, opening it from the
73
+ * component's roots when there is none. A fold that fails leaves the
74
+ * reduction half-folded, so it is dropped. */
75
+ private fold;
76
+ }
77
+ /** A resolved graph (an accepted fold, or ground installed from one) as it
78
+ * travels, projected in the host's turns. `fold` names what a fold of a
79
+ * published head touched. */
80
+ export declare function travelingInTurns(records: readonly CloudEntityRecord[], sha256Hex: Sha256Hex, repositoryIdentity: RepositoryIdentityPort, fold?: FoldOfHead): Promise<readonly CloudEntityRecord[]>;
81
+ /** Ground this computer captured as it travels, in the host's turns: the
82
+ * rows it states on their own channels, each repository's package stating
83
+ * the rest. Structure alone, so no package is read and a disk spelling Git
84
+ * never saw cannot reach the graph. */
85
+ export declare function capturedInTurns(records: readonly CloudEntityRecord[], sha256Hex: Sha256Hex): Promise<readonly CloudEntityRecord[]>;