@amalgm/shell 0.1.164-preview.44386772850 → 0.1.164-preview.44991101539

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 (1038) hide show
  1. package/dist/accepted-fold.js +0 -36
  2. package/dist/accepted-tail.js +0 -3
  3. package/dist/accepted-view.js +0 -1
  4. package/dist/agent-execution.js +0 -2
  5. package/dist/agent-instructions.js +0 -6
  6. package/dist/apply-attempt-memory.js +0 -5
  7. package/dist/apply-control.js +0 -50
  8. package/dist/apply-displaced-tree.js +0 -51
  9. package/dist/apply-durability.js +0 -16
  10. package/dist/apply-enter-build.js +2 -46
  11. package/dist/apply-enter-plan.js +0 -59
  12. package/dist/apply-fingerprint.js +0 -21
  13. package/dist/apply-git-held.js +4 -90
  14. package/dist/apply-git-storage.js +2 -38
  15. package/dist/apply-kept.js +0 -40
  16. package/dist/apply-local-work.js +0 -12
  17. package/dist/apply-map.js +18 -122
  18. package/dist/apply-showing.js +0 -71
  19. package/dist/apply-shown-again.js +0 -22
  20. package/dist/apply-spelling.js +0 -31
  21. package/dist/apply-trash-keep.js +5 -28
  22. package/dist/apply-window-cargo.js +0 -55
  23. package/dist/apply-window-ground.js +9 -71
  24. package/dist/apply-window-host.js +42 -421
  25. package/dist/apply-window-lane.js +0 -73
  26. package/dist/apply-window-line.js +0 -33
  27. package/dist/apply-window-recovery.js +0 -26
  28. package/dist/apply-window-reveal.js +0 -32
  29. package/dist/apply-window-rows.js +0 -53
  30. package/dist/apply-window-saves.js +0 -184
  31. package/dist/apply-window-store.js +0 -61
  32. package/dist/apply-window-verify.js +0 -42
  33. package/dist/authority-binding.js +0 -28
  34. package/dist/authorization/device-key.js +0 -1
  35. package/dist/authorization/index.js +0 -2
  36. package/dist/authorization/issuer.js +0 -1
  37. package/dist/authorization/key-store.js +0 -1
  38. package/dist/authorization/native-keyring.js +0 -1
  39. package/dist/authorization/recovery-client.js +0 -2
  40. package/dist/authorization/recovery-host.js +0 -1
  41. package/dist/authorization/recovery.js +0 -3
  42. package/dist/authorization/registration-http.js +0 -2
  43. package/dist/authorization/secret-process.js +0 -2
  44. package/dist/authorization/setup-http.js +0 -1
  45. package/dist/automations-cli-host.js +0 -2
  46. package/dist/background-error.js +0 -5
  47. package/dist/baseline-content.js +0 -3
  48. package/dist/billing/cli.js +0 -10
  49. package/dist/billing/mount.js +0 -1
  50. package/dist/billing/tools.js +0 -3
  51. package/dist/boot-identity.js +0 -12
  52. package/dist/browser-host.js +0 -15
  53. package/dist/builtin-agents.js +0 -8
  54. package/dist/capture-work.js +0 -9
  55. package/dist/captured-rows.js +4 -6
  56. package/dist/cargo-group.js +0 -48
  57. package/dist/cargo-journal.js +0 -36
  58. package/dist/channel-session.js +0 -9
  59. package/dist/chat-composition.js +0 -4
  60. package/dist/chat-host.js +0 -4
  61. package/dist/chat-toolbox.js +0 -2
  62. package/dist/chat-tools.js +0 -3
  63. package/dist/cli-arguments.js +17 -3
  64. package/dist/cli-commands.js +272 -0
  65. package/dist/cli.js +24 -72
  66. package/dist/construct-apply-host.js +0 -24
  67. package/dist/construct-door.js +3 -15
  68. package/dist/construct-ledger.js +3 -21
  69. package/dist/construct-products.js +0 -7
  70. package/dist/content-cache-collection.js +1 -27
  71. package/dist/content-cache-fences.js +0 -30
  72. package/dist/content-cache-host.js +0 -216
  73. package/dist/content-cache-index.js +0 -24
  74. package/dist/content-cache-namespace.js +0 -52
  75. package/dist/content-cache-partials.js +0 -23
  76. package/dist/content-cache-retention.js +1 -53
  77. package/dist/content-capture-pool.js +6 -134
  78. package/dist/content-capture-worker.js +4 -14
  79. package/dist/content-clock.js +1 -177
  80. package/dist/content-direct.js +0 -39
  81. package/dist/content-failure.js +0 -8
  82. package/dist/content-qualification.js +0 -56
  83. package/dist/content-wire-codec.js +0 -8
  84. package/dist/credentials-host.js +0 -2
  85. package/dist/derived-relocation.js +0 -27
  86. package/dist/detection/accepted-result.js +0 -14
  87. package/dist/detection/admission-save.js +0 -10
  88. package/dist/detection/admission-units.js +3 -93
  89. package/dist/detection/alias-discovery.js +0 -19
  90. package/dist/detection/alias-examination.js +0 -22
  91. package/dist/detection/apply-ownership.js +4 -52
  92. package/dist/detection/basis-advanced.js +0 -11
  93. package/dist/detection/cached-replay.js +0 -20
  94. package/dist/detection/capture-outcome.js +0 -20
  95. package/dist/detection/container-membership.js +0 -19
  96. package/dist/detection/detect-cancelled.js +0 -3
  97. package/dist/detection/directory-proof.js +0 -20
  98. package/dist/detection/dispositions.js +0 -29
  99. package/dist/detection/examinations.js +0 -32
  100. package/dist/detection/ground-proof.js +20 -130
  101. package/dist/detection/ground-reader.js +0 -9
  102. package/dist/detection/identity-discovery.js +15 -60
  103. package/dist/detection/maintenance-sweep.js +1 -73
  104. package/dist/detection/notebook-basis.js +1 -5
  105. package/dist/detection/owed-examinations.js +0 -4
  106. package/dist/detection/owed-selection.js +14 -40
  107. package/dist/detection/policy-owed.js +165 -26
  108. package/dist/detection/racy-close.js +46 -0
  109. package/dist/detection/reconciliation-coverage.js +0 -4
  110. package/dist/detection/repository-state.js +6 -56
  111. package/dist/detection/reveal-save.js +0 -2
  112. package/dist/detection/root-examination.js +32 -105
  113. package/dist/detection/root-walk.js +98 -295
  114. package/dist/detection/runtime.js +57 -153
  115. package/dist/detection/scope-frame.js +1 -37
  116. package/dist/detection/scoped-identity-port.js +0 -21
  117. package/dist/detection/sealed-folders.js +57 -0
  118. package/dist/detection/skip-policy.js +185 -0
  119. package/dist/detection/spelled-lookup.js +0 -19
  120. package/dist/detection/storage-holder.js +60 -0
  121. package/dist/detection/thread-database.js +0 -9
  122. package/dist/detection/unread-content.js +0 -13
  123. package/dist/detection/unreadable.js +0 -3
  124. package/dist/detection/walk-law.js +0 -20
  125. package/dist/detection/walked-roots.js +0 -6
  126. package/dist/detection/withheld.js +0 -46
  127. package/dist/development/fly-guest.js +0 -3
  128. package/dist/development/fly.js +2 -11
  129. package/dist/development/profile.js +0 -8
  130. package/dist/drive/cloud-files/asks.js +5 -48
  131. package/dist/drive/cloud-files/binding.js +0 -14
  132. package/dist/drive/cloud-files/contents.js +14 -57
  133. package/dist/drive/cloud-files/door.js +5 -45
  134. package/dist/drive/cloud-files/paths.js +4 -37
  135. package/dist/drive/cloud-files/populated.js +0 -14
  136. package/dist/drive/cloud-files/reconcile.js +18 -97
  137. package/dist/drive/cloud-files/sync-root.js +7 -21
  138. package/dist/drive/cloud-files/turns.js +0 -25
  139. package/dist/drive/cloud-files/writes.js +19 -122
  140. package/dist/drive/computer.js +0 -19
  141. package/dist/drive/fuse-opens.js +0 -31
  142. package/dist/drive/fuse.js +23 -43
  143. package/dist/drive/kept.js +32 -80
  144. package/dist/drive/kernel.js +12 -24
  145. package/dist/drive/layout.js +31 -20
  146. package/dist/drive/mount.js +53 -125
  147. package/dist/drive/mountpoint.js +0 -19
  148. package/dist/drive/names.js +17 -0
  149. package/dist/drive/nfs/apple-double.js +4 -29
  150. package/dist/drive/nfs/attributes.js +3 -19
  151. package/dist/drive/nfs/handles.js +0 -37
  152. package/dist/drive/nfs/mount3.js +0 -4
  153. package/dist/drive/nfs/nfs3.js +4 -65
  154. package/dist/drive/nfs/rpc.js +0 -19
  155. package/dist/drive/nfs/server.js +0 -14
  156. package/dist/drive/nfs/xdr.js +0 -15
  157. package/dist/drive/nfs.js +34 -90
  158. package/dist/drive/operations.js +46 -120
  159. package/dist/drive/shelf.js +0 -12
  160. package/dist/drive-maps.js +54 -0
  161. package/dist/drive-program/client.js +128 -0
  162. package/dist/drive-program/ports.js +49 -0
  163. package/dist/drive-program/program.js +82 -0
  164. package/dist/drive-program/protocol.js +2 -0
  165. package/dist/durability-barrier.js +0 -60
  166. package/dist/entity-access-wire.js +0 -9
  167. package/dist/entity-channel-holdings.js +0 -17
  168. package/dist/entity-grant-watch.js +0 -8
  169. package/dist/entity-record-observability.js +0 -4
  170. package/dist/entity-record-saves.js +0 -23
  171. package/dist/entity-record-store.js +0 -51
  172. package/dist/error-facts.js +1 -3
  173. package/dist/faults/drain.js +2 -32
  174. package/dist/faults/queue.js +0 -22
  175. package/dist/faults/show.js +0 -6
  176. package/dist/file-time.js +21 -0
  177. package/dist/files-browser-host.js +15 -7
  178. package/dist/files-mcp-host.js +0 -6
  179. package/dist/files-observability.js +0 -1
  180. package/dist/files-program/client.js +90 -320
  181. package/dist/files-program/journeys.js +0 -4
  182. package/dist/files-program/program.js +67 -162
  183. package/dist/files-program/protocol.js +0 -5
  184. package/dist/files-register-host.js +8 -56
  185. package/dist/files-trace.js +0 -39
  186. package/dist/files-watch-host.js +226 -0
  187. package/dist/filesystem.js +0 -39
  188. package/dist/flush.js +0 -37
  189. package/dist/forward.js +0 -8
  190. package/dist/gateway.js +0 -9
  191. package/dist/git/ground-owners.js +0 -11
  192. package/dist/git/held-package.js +0 -43
  193. package/dist/git/home.js +79 -67
  194. package/dist/git/marker.js +0 -9
  195. package/dist/git/named-objects.js +0 -32
  196. package/dist/git/objects.js +0 -23
  197. package/dist/git/play.js +0 -42
  198. package/dist/git/quarantine.js +0 -47
  199. package/dist/git/rail.js +55 -286
  200. package/dist/git/read-state.js +8 -70
  201. package/dist/git/repository.js +0 -43
  202. package/dist/git/write-files.js +16 -84
  203. package/dist/git-binding.js +58 -80
  204. package/dist/git-cat-file.js +0 -18
  205. package/dist/git-command.js +1 -71
  206. package/dist/git-index-entries.js +0 -5
  207. package/dist/git-index-format.js +0 -71
  208. package/dist/git-install-lines.js +0 -2
  209. package/dist/git-launcher-process.js +0 -19
  210. package/dist/git-launcher.js +1 -33
  211. package/dist/git-proven-blobs.js +48 -0
  212. package/dist/graph-heads.js +0 -14
  213. package/dist/ground-basis.js +1 -183
  214. package/dist/ground-checkpoint-worker.js +0 -26
  215. package/dist/ground-checkpoints.js +0 -14
  216. package/dist/ground-contract.js +1 -43
  217. package/dist/ground-coordination.js +0 -82
  218. package/dist/ground-database.js +0 -88
  219. package/dist/ground-differences.js +0 -6
  220. package/dist/ground-holders.js +0 -8
  221. package/dist/ground-initialization-worker.js +0 -7
  222. package/dist/ground-initialization.js +0 -19
  223. package/dist/ground-install-saves.js +0 -15
  224. package/dist/ground-inventory-schema.js +3 -142
  225. package/dist/ground-marks.js +0 -16
  226. package/dist/ground-places.js +33 -0
  227. package/dist/ground-profile.js +0 -77
  228. package/dist/ground-reads.js +0 -58
  229. package/dist/ground-relations.js +0 -43
  230. package/dist/ground-root-index.js +0 -7
  231. package/dist/ground-row.js +5 -29
  232. package/dist/ground-save-ops.js +0 -14
  233. package/dist/ground-saver-worker.js +3 -56
  234. package/dist/ground-saver.js +0 -52
  235. package/dist/ground-store.js +10 -144
  236. package/dist/held-ground.js +60 -0
  237. package/dist/index.js +0 -1
  238. package/dist/initial-publication.js +0 -7
  239. package/dist/install-from-git.js +42 -0
  240. package/dist/installation/environment.js +0 -4
  241. package/dist/installation/lease.js +0 -3
  242. package/dist/installation/ownership.js +0 -13
  243. package/dist/installation/selection.js +0 -2
  244. package/dist/keychain/cli-io.js +0 -7
  245. package/dist/keychain/cli.js +0 -9
  246. package/dist/keychain/host.js +0 -7
  247. package/dist/keychain/http-mount.js +0 -10
  248. package/dist/keychain/key-wire.js +0 -8
  249. package/dist/keychain/presence-mac.js +0 -7
  250. package/dist/keychain/presence.js +0 -7
  251. package/dist/keychain/rail.js +0 -7
  252. package/dist/keychain/secret-apply.js +0 -11
  253. package/dist/keychain/shelf-from-ledger.js +0 -7
  254. package/dist/keychain/use-log.js +0 -6
  255. package/dist/keychain/vault-file.js +0 -7
  256. package/dist/line-judge.js +0 -41
  257. package/dist/line-loops.js +0 -3
  258. package/dist/link-target.js +0 -38
  259. package/dist/local-host.js +0 -16
  260. package/dist/loop-watch.js +0 -13
  261. package/dist/machine-host.js +29 -123
  262. package/dist/main.js +4 -5
  263. package/dist/materialize-records.js +109 -112
  264. package/dist/materialized-graph.js +0 -1
  265. package/dist/module-thread.js +0 -8
  266. package/dist/mount.js +0 -7
  267. package/dist/native/cloud-files.node +0 -0
  268. package/dist/native/windows-fs.node +0 -0
  269. package/dist/official-mcp-host.js +0 -2
  270. package/dist/on-demand-roots.js +0 -4
  271. package/dist/open-standing.js +0 -36
  272. package/dist/own-folders.js +56 -0
  273. package/dist/own-results.js +0 -31
  274. package/dist/package-pages.js +0 -13
  275. package/dist/patient-flush.js +0 -16
  276. package/dist/physical-path-witness.js +0 -28
  277. package/dist/placement-owed.js +0 -8
  278. package/dist/placement-tidy.js +0 -68
  279. package/dist/platform-product-host.js +0 -3
  280. package/dist/platform-tools.js +0 -3
  281. package/dist/process-lifecycle.js +0 -7
  282. package/dist/product-cli.js +0 -10
  283. package/dist/pty-host.js +0 -22
  284. package/dist/received-state.js +0 -46
  285. package/dist/reference-placement.js +0 -30
  286. package/dist/registry-graph.js +0 -89
  287. package/dist/registry-page-cache.js +4 -12
  288. package/dist/release-catalog.js +0 -3
  289. package/dist/root-install.js +2 -36
  290. package/dist/runtime-activity.js +0 -14
  291. package/dist/runtime-argv.js +0 -8
  292. package/dist/runtime-command-host.js +0 -17
  293. package/dist/runtime-node-flags.js +0 -10
  294. package/dist/runtime-wire-host.js +0 -4
  295. package/dist/service/adapter.js +0 -6
  296. package/dist/service/cli.js +12 -46
  297. package/dist/service/control.js +0 -3
  298. package/dist/service/index.js +0 -4
  299. package/dist/service/keepalive.js +2 -21
  300. package/dist/service/launchd.js +0 -8
  301. package/dist/service/owner.js +0 -1
  302. package/dist/service/policy.js +0 -7
  303. package/dist/service/portable.js +0 -8
  304. package/dist/service/recovery.js +0 -9
  305. package/dist/service/registration.js +0 -29
  306. package/dist/service/systemd-unit.js +0 -4
  307. package/dist/service/systemd.js +0 -9
  308. package/dist/service/windows-action.js +0 -12
  309. package/dist/service/windows-task.js +0 -10
  310. package/dist/service/windows.js +0 -4
  311. package/dist/sha256.js +0 -2
  312. package/dist/sharing-admission.js +0 -16
  313. package/dist/sharing-host.js +0 -7
  314. package/dist/sharing-mcp-host.js +0 -6
  315. package/dist/snapshot-delivery-baseline.js +0 -29
  316. package/dist/socket-marking.js +0 -9
  317. package/dist/source-proof.js +0 -29
  318. package/dist/source-signature.js +4 -93
  319. package/dist/source-witness.js +0 -6
  320. package/dist/sqlite-durability.js +0 -12
  321. package/dist/sqlite.js +0 -10
  322. package/dist/state-host.js +0 -2
  323. package/dist/state-store.js +1 -4
  324. package/dist/supervised-program/child.js +136 -0
  325. package/dist/supervised-program/messages.js +1 -0
  326. package/dist/supervised-program/parent.js +249 -0
  327. package/dist/sync-address.js +0 -16
  328. package/dist/sync-cli.js +0 -9
  329. package/dist/sync-setting.js +0 -5
  330. package/dist/tool-mcp-client.js +0 -2
  331. package/dist/toolbox-host.js +0 -2
  332. package/dist/transfer-instrumentation.js +0 -21
  333. package/dist/turns.js +0 -41
  334. package/dist/updates/artifacts.js +0 -56
  335. package/dist/updates/bootstrap.js +0 -53
  336. package/dist/updates/controller.js +1 -25
  337. package/dist/updates/isolated-command-lifetime.js +0 -13
  338. package/dist/updates/locked-packages.js +0 -5
  339. package/dist/updates/store.js +0 -11
  340. package/dist/updates/trust.js +0 -6
  341. package/dist/user-ground-host.js +162 -1501
  342. package/dist/watching/fsevents.js +3 -41
  343. package/dist/watching/git-storage.js +0 -24
  344. package/dist/watching/host.js +65 -275
  345. package/dist/watching/index.js +1 -2
  346. package/dist/watching/inotify.js +0 -31
  347. package/dist/windows-fs.js +0 -5
  348. package/dist/windows-owner-only.js +0 -17
  349. package/dist/wire-binary.js +0 -4
  350. package/dist/wire-client.js +0 -42
  351. package/dist/wire-join.js +0 -11
  352. package/dist/wire-outbox.js +0 -29
  353. package/dist/wire-request-scope.js +0 -3
  354. package/dist/wire-socket-relay.js +0 -53
  355. package/dist/workspace-add-intent.js +2 -11
  356. package/dist/workspace-add-staging.js +4 -99
  357. package/dist/workspace-host.js +0 -5
  358. package/dist/workspace-store.js +0 -6
  359. package/examinations/fixtures/private-wire-authority.js +14 -10
  360. package/examinations/native-service.mjs +1 -1
  361. package/examinations/runtime-upgrade.native-test.mjs +11 -8
  362. package/npm-shrinkwrap.json +14 -14
  363. package/package.json +8 -17
  364. package/PURPOSE.md +0 -1956
  365. package/dist/accepted-fold.d.ts +0 -51
  366. package/dist/accepted-fold.js.map +0 -1
  367. package/dist/accepted-tail.d.ts +0 -36
  368. package/dist/accepted-tail.js.map +0 -1
  369. package/dist/accepted-view.d.ts +0 -27
  370. package/dist/accepted-view.js.map +0 -1
  371. package/dist/agent-execution.d.ts +0 -83
  372. package/dist/agent-execution.js.map +0 -1
  373. package/dist/agent-instructions.d.ts +0 -7
  374. package/dist/agent-instructions.js.map +0 -1
  375. package/dist/apply-attempt-memory.d.ts +0 -13
  376. package/dist/apply-attempt-memory.js.map +0 -1
  377. package/dist/apply-control.d.ts +0 -85
  378. package/dist/apply-control.js.map +0 -1
  379. package/dist/apply-displaced-tree.d.ts +0 -63
  380. package/dist/apply-displaced-tree.js.map +0 -1
  381. package/dist/apply-durability.d.ts +0 -33
  382. package/dist/apply-durability.js.map +0 -1
  383. package/dist/apply-enter-build.d.ts +0 -91
  384. package/dist/apply-enter-build.js.map +0 -1
  385. package/dist/apply-enter-plan.d.ts +0 -79
  386. package/dist/apply-enter-plan.js.map +0 -1
  387. package/dist/apply-fingerprint.d.ts +0 -39
  388. package/dist/apply-fingerprint.js.map +0 -1
  389. package/dist/apply-git-held.d.ts +0 -29
  390. package/dist/apply-git-held.js.map +0 -1
  391. package/dist/apply-git-storage.d.ts +0 -38
  392. package/dist/apply-git-storage.js.map +0 -1
  393. package/dist/apply-kept.d.ts +0 -42
  394. package/dist/apply-kept.js.map +0 -1
  395. package/dist/apply-local-work.d.ts +0 -41
  396. package/dist/apply-local-work.js.map +0 -1
  397. package/dist/apply-map.d.ts +0 -116
  398. package/dist/apply-map.js.map +0 -1
  399. package/dist/apply-showing.d.ts +0 -104
  400. package/dist/apply-showing.js.map +0 -1
  401. package/dist/apply-shown-again.d.ts +0 -28
  402. package/dist/apply-shown-again.js.map +0 -1
  403. package/dist/apply-spelling.d.ts +0 -35
  404. package/dist/apply-spelling.js.map +0 -1
  405. package/dist/apply-trash-keep.d.ts +0 -96
  406. package/dist/apply-trash-keep.js.map +0 -1
  407. package/dist/apply-window-cargo.d.ts +0 -54
  408. package/dist/apply-window-cargo.js.map +0 -1
  409. package/dist/apply-window-ground.d.ts +0 -130
  410. package/dist/apply-window-ground.js.map +0 -1
  411. package/dist/apply-window-host.d.ts +0 -136
  412. package/dist/apply-window-host.js.map +0 -1
  413. package/dist/apply-window-lane.d.ts +0 -30
  414. package/dist/apply-window-lane.js.map +0 -1
  415. package/dist/apply-window-line.d.ts +0 -31
  416. package/dist/apply-window-line.js.map +0 -1
  417. package/dist/apply-window-recovery.d.ts +0 -5
  418. package/dist/apply-window-recovery.js.map +0 -1
  419. package/dist/apply-window-reveal.d.ts +0 -22
  420. package/dist/apply-window-reveal.js.map +0 -1
  421. package/dist/apply-window-rows.d.ts +0 -144
  422. package/dist/apply-window-rows.js.map +0 -1
  423. package/dist/apply-window-saves.d.ts +0 -224
  424. package/dist/apply-window-saves.js.map +0 -1
  425. package/dist/apply-window-store.d.ts +0 -126
  426. package/dist/apply-window-store.js.map +0 -1
  427. package/dist/apply-window-verify.d.ts +0 -65
  428. package/dist/apply-window-verify.js.map +0 -1
  429. package/dist/authority-binding.d.ts +0 -9
  430. package/dist/authority-binding.js.map +0 -1
  431. package/dist/authorization/device-key.d.ts +0 -19
  432. package/dist/authorization/device-key.js.map +0 -1
  433. package/dist/authorization/index.d.ts +0 -65
  434. package/dist/authorization/index.js.map +0 -1
  435. package/dist/authorization/issuer.d.ts +0 -11
  436. package/dist/authorization/issuer.js.map +0 -1
  437. package/dist/authorization/key-store.d.ts +0 -16
  438. package/dist/authorization/key-store.js.map +0 -1
  439. package/dist/authorization/native-keyring.d.ts +0 -8
  440. package/dist/authorization/native-keyring.js.map +0 -1
  441. package/dist/authorization/recovery-client.d.ts +0 -19
  442. package/dist/authorization/recovery-client.js.map +0 -1
  443. package/dist/authorization/recovery-host.d.ts +0 -30
  444. package/dist/authorization/recovery-host.js.map +0 -1
  445. package/dist/authorization/recovery.d.ts +0 -13
  446. package/dist/authorization/recovery.js.map +0 -1
  447. package/dist/authorization/registration-http.d.ts +0 -5
  448. package/dist/authorization/registration-http.js.map +0 -1
  449. package/dist/authorization/secret-process.d.ts +0 -2
  450. package/dist/authorization/secret-process.js.map +0 -1
  451. package/dist/authorization/setup-http.d.ts +0 -5
  452. package/dist/authorization/setup-http.js.map +0 -1
  453. package/dist/automations-cli-host.d.ts +0 -4
  454. package/dist/automations-cli-host.js.map +0 -1
  455. package/dist/background-error.d.ts +0 -4
  456. package/dist/background-error.js.map +0 -1
  457. package/dist/baseline-content.d.ts +0 -12
  458. package/dist/baseline-content.js.map +0 -1
  459. package/dist/billing/cli.d.ts +0 -18
  460. package/dist/billing/cli.js.map +0 -1
  461. package/dist/billing/mount.d.ts +0 -12
  462. package/dist/billing/mount.js.map +0 -1
  463. package/dist/billing/tools.d.ts +0 -57
  464. package/dist/billing/tools.js.map +0 -1
  465. package/dist/boot-identity.d.ts +0 -1
  466. package/dist/boot-identity.js.map +0 -1
  467. package/dist/browser-host.d.ts +0 -30
  468. package/dist/browser-host.js.map +0 -1
  469. package/dist/builtin-agents.d.ts +0 -8
  470. package/dist/builtin-agents.js.map +0 -1
  471. package/dist/capture-work.d.ts +0 -8
  472. package/dist/capture-work.js.map +0 -1
  473. package/dist/captured-rows.d.ts +0 -33
  474. package/dist/captured-rows.js.map +0 -1
  475. package/dist/cargo-group.d.ts +0 -59
  476. package/dist/cargo-group.js.map +0 -1
  477. package/dist/cargo-journal.d.ts +0 -45
  478. package/dist/cargo-journal.js.map +0 -1
  479. package/dist/channel-session.d.ts +0 -60
  480. package/dist/channel-session.js.map +0 -1
  481. package/dist/chat-composition.d.ts +0 -30
  482. package/dist/chat-composition.js.map +0 -1
  483. package/dist/chat-host.d.ts +0 -30
  484. package/dist/chat-host.js.map +0 -1
  485. package/dist/chat-toolbox.d.ts +0 -10
  486. package/dist/chat-toolbox.js.map +0 -1
  487. package/dist/chat-tools.d.ts +0 -23
  488. package/dist/chat-tools.js.map +0 -1
  489. package/dist/cli-arguments.d.ts +0 -8
  490. package/dist/cli-arguments.js.map +0 -1
  491. package/dist/cli.d.ts +0 -10
  492. package/dist/cli.js.map +0 -1
  493. package/dist/construct-apply-host.d.ts +0 -64
  494. package/dist/construct-apply-host.js.map +0 -1
  495. package/dist/construct-door.d.ts +0 -39
  496. package/dist/construct-door.js.map +0 -1
  497. package/dist/construct-ledger.d.ts +0 -33
  498. package/dist/construct-ledger.js.map +0 -1
  499. package/dist/construct-products.d.ts +0 -22
  500. package/dist/construct-products.js.map +0 -1
  501. package/dist/content-cache-collection.d.ts +0 -25
  502. package/dist/content-cache-collection.js.map +0 -1
  503. package/dist/content-cache-fences.d.ts +0 -27
  504. package/dist/content-cache-fences.js.map +0 -1
  505. package/dist/content-cache-host.d.ts +0 -269
  506. package/dist/content-cache-host.js.map +0 -1
  507. package/dist/content-cache-index.d.ts +0 -59
  508. package/dist/content-cache-index.js.map +0 -1
  509. package/dist/content-cache-namespace.d.ts +0 -53
  510. package/dist/content-cache-namespace.js.map +0 -1
  511. package/dist/content-cache-partials.d.ts +0 -37
  512. package/dist/content-cache-partials.js.map +0 -1
  513. package/dist/content-cache-retention.d.ts +0 -38
  514. package/dist/content-cache-retention.js.map +0 -1
  515. package/dist/content-capture-pool.d.ts +0 -274
  516. package/dist/content-capture-pool.js.map +0 -1
  517. package/dist/content-capture-worker.d.ts +0 -7
  518. package/dist/content-capture-worker.js.map +0 -1
  519. package/dist/content-clock.d.ts +0 -68
  520. package/dist/content-clock.js.map +0 -1
  521. package/dist/content-direct.d.ts +0 -56
  522. package/dist/content-direct.js.map +0 -1
  523. package/dist/content-failure.d.ts +0 -18
  524. package/dist/content-failure.js.map +0 -1
  525. package/dist/content-qualification.d.ts +0 -72
  526. package/dist/content-qualification.js.map +0 -1
  527. package/dist/content-wire-codec.d.ts +0 -13
  528. package/dist/content-wire-codec.js.map +0 -1
  529. package/dist/credentials-host.d.ts +0 -5
  530. package/dist/credentials-host.js.map +0 -1
  531. package/dist/derived-relocation.d.ts +0 -31
  532. package/dist/derived-relocation.js.map +0 -1
  533. package/dist/detection/accepted-result.d.ts +0 -31
  534. package/dist/detection/accepted-result.js.map +0 -1
  535. package/dist/detection/admission-save.d.ts +0 -66
  536. package/dist/detection/admission-save.js.map +0 -1
  537. package/dist/detection/admission-units.d.ts +0 -78
  538. package/dist/detection/admission-units.js.map +0 -1
  539. package/dist/detection/alias-discovery.d.ts +0 -12
  540. package/dist/detection/alias-discovery.js.map +0 -1
  541. package/dist/detection/alias-examination.d.ts +0 -33
  542. package/dist/detection/alias-examination.js.map +0 -1
  543. package/dist/detection/apply-ownership.d.ts +0 -107
  544. package/dist/detection/apply-ownership.js.map +0 -1
  545. package/dist/detection/basis-advanced.d.ts +0 -15
  546. package/dist/detection/basis-advanced.js.map +0 -1
  547. package/dist/detection/cached-replay.d.ts +0 -38
  548. package/dist/detection/cached-replay.js.map +0 -1
  549. package/dist/detection/capture-outcome.d.ts +0 -16
  550. package/dist/detection/capture-outcome.js.map +0 -1
  551. package/dist/detection/container-membership.d.ts +0 -20
  552. package/dist/detection/container-membership.js.map +0 -1
  553. package/dist/detection/detect-cancelled.d.ts +0 -6
  554. package/dist/detection/detect-cancelled.js.map +0 -1
  555. package/dist/detection/directory-proof.d.ts +0 -47
  556. package/dist/detection/directory-proof.js.map +0 -1
  557. package/dist/detection/dispositions.d.ts +0 -107
  558. package/dist/detection/dispositions.js.map +0 -1
  559. package/dist/detection/examinations.d.ts +0 -33
  560. package/dist/detection/examinations.js.map +0 -1
  561. package/dist/detection/ground-proof.d.ts +0 -154
  562. package/dist/detection/ground-proof.js.map +0 -1
  563. package/dist/detection/ground-reader.d.ts +0 -29
  564. package/dist/detection/ground-reader.js.map +0 -1
  565. package/dist/detection/identity-discovery.d.ts +0 -45
  566. package/dist/detection/identity-discovery.js.map +0 -1
  567. package/dist/detection/maintenance-sweep.d.ts +0 -111
  568. package/dist/detection/maintenance-sweep.js.map +0 -1
  569. package/dist/detection/notebook-basis.d.ts +0 -24
  570. package/dist/detection/notebook-basis.js.map +0 -1
  571. package/dist/detection/owed-examinations.d.ts +0 -22
  572. package/dist/detection/owed-examinations.js.map +0 -1
  573. package/dist/detection/owed-selection.d.ts +0 -54
  574. package/dist/detection/owed-selection.js.map +0 -1
  575. package/dist/detection/policy-owed.d.ts +0 -17
  576. package/dist/detection/policy-owed.js.map +0 -1
  577. package/dist/detection/reconciliation-coverage.d.ts +0 -7
  578. package/dist/detection/reconciliation-coverage.js.map +0 -1
  579. package/dist/detection/repository-state.d.ts +0 -44
  580. package/dist/detection/repository-state.js.map +0 -1
  581. package/dist/detection/reveal-save.d.ts +0 -17
  582. package/dist/detection/reveal-save.js.map +0 -1
  583. package/dist/detection/root-examination.d.ts +0 -106
  584. package/dist/detection/root-examination.js.map +0 -1
  585. package/dist/detection/root-walk.d.ts +0 -191
  586. package/dist/detection/root-walk.js.map +0 -1
  587. package/dist/detection/runtime.d.ts +0 -144
  588. package/dist/detection/runtime.js.map +0 -1
  589. package/dist/detection/scope-frame.d.ts +0 -82
  590. package/dist/detection/scope-frame.js.map +0 -1
  591. package/dist/detection/scoped-identity-port.d.ts +0 -35
  592. package/dist/detection/scoped-identity-port.js.map +0 -1
  593. package/dist/detection/sharing-policy.d.ts +0 -19
  594. package/dist/detection/sharing-policy.js +0 -39
  595. package/dist/detection/sharing-policy.js.map +0 -1
  596. package/dist/detection/spelled-lookup.d.ts +0 -20
  597. package/dist/detection/spelled-lookup.js.map +0 -1
  598. package/dist/detection/thread-database.d.ts +0 -4
  599. package/dist/detection/thread-database.js.map +0 -1
  600. package/dist/detection/unread-content.d.ts +0 -20
  601. package/dist/detection/unread-content.js.map +0 -1
  602. package/dist/detection/unreadable.d.ts +0 -11
  603. package/dist/detection/unreadable.js.map +0 -1
  604. package/dist/detection/walk-law.d.ts +0 -25
  605. package/dist/detection/walk-law.js.map +0 -1
  606. package/dist/detection/walked-roots.d.ts +0 -17
  607. package/dist/detection/walked-roots.js.map +0 -1
  608. package/dist/detection/withheld.d.ts +0 -100
  609. package/dist/detection/withheld.js.map +0 -1
  610. package/dist/development/fly-guest.d.ts +0 -21
  611. package/dist/development/fly-guest.js.map +0 -1
  612. package/dist/development/fly.d.ts +0 -13
  613. package/dist/development/fly.js.map +0 -1
  614. package/dist/development/profile.d.ts +0 -34
  615. package/dist/development/profile.js.map +0 -1
  616. package/dist/drive/cloud-files/asks.d.ts +0 -7
  617. package/dist/drive/cloud-files/asks.js.map +0 -1
  618. package/dist/drive/cloud-files/binding.d.ts +0 -111
  619. package/dist/drive/cloud-files/binding.js.map +0 -1
  620. package/dist/drive/cloud-files/contents.d.ts +0 -82
  621. package/dist/drive/cloud-files/contents.js.map +0 -1
  622. package/dist/drive/cloud-files/door.d.ts +0 -11
  623. package/dist/drive/cloud-files/door.js.map +0 -1
  624. package/dist/drive/cloud-files/paths.d.ts +0 -42
  625. package/dist/drive/cloud-files/paths.js.map +0 -1
  626. package/dist/drive/cloud-files/populated.d.ts +0 -15
  627. package/dist/drive/cloud-files/populated.js.map +0 -1
  628. package/dist/drive/cloud-files/reconcile.d.ts +0 -17
  629. package/dist/drive/cloud-files/reconcile.js.map +0 -1
  630. package/dist/drive/cloud-files/sync-root.d.ts +0 -34
  631. package/dist/drive/cloud-files/sync-root.js.map +0 -1
  632. package/dist/drive/cloud-files/turns.d.ts +0 -9
  633. package/dist/drive/cloud-files/turns.js.map +0 -1
  634. package/dist/drive/cloud-files/writes.d.ts +0 -27
  635. package/dist/drive/cloud-files/writes.js.map +0 -1
  636. package/dist/drive/computer.d.ts +0 -19
  637. package/dist/drive/computer.js.map +0 -1
  638. package/dist/drive/fuse-opens.d.ts +0 -32
  639. package/dist/drive/fuse-opens.js.map +0 -1
  640. package/dist/drive/fuse.d.ts +0 -36
  641. package/dist/drive/fuse.js.map +0 -1
  642. package/dist/drive/kept.d.ts +0 -78
  643. package/dist/drive/kept.js.map +0 -1
  644. package/dist/drive/kernel.d.ts +0 -17
  645. package/dist/drive/kernel.js.map +0 -1
  646. package/dist/drive/layout.d.ts +0 -18
  647. package/dist/drive/layout.js.map +0 -1
  648. package/dist/drive/mount.d.ts +0 -107
  649. package/dist/drive/mount.js.map +0 -1
  650. package/dist/drive/mountpoint.d.ts +0 -14
  651. package/dist/drive/mountpoint.js.map +0 -1
  652. package/dist/drive/nfs/apple-double.d.ts +0 -6
  653. package/dist/drive/nfs/apple-double.js.map +0 -1
  654. package/dist/drive/nfs/attributes.d.ts +0 -64
  655. package/dist/drive/nfs/attributes.js.map +0 -1
  656. package/dist/drive/nfs/handles.d.ts +0 -44
  657. package/dist/drive/nfs/handles.js.map +0 -1
  658. package/dist/drive/nfs/mount3.d.ts +0 -16
  659. package/dist/drive/nfs/mount3.js.map +0 -1
  660. package/dist/drive/nfs/nfs3.d.ts +0 -27
  661. package/dist/drive/nfs/nfs3.js.map +0 -1
  662. package/dist/drive/nfs/rpc.d.ts +0 -66
  663. package/dist/drive/nfs/rpc.js.map +0 -1
  664. package/dist/drive/nfs/server.d.ts +0 -30
  665. package/dist/drive/nfs/server.js.map +0 -1
  666. package/dist/drive/nfs/xdr.d.ts +0 -44
  667. package/dist/drive/nfs/xdr.js.map +0 -1
  668. package/dist/drive/nfs.d.ts +0 -58
  669. package/dist/drive/nfs.js.map +0 -1
  670. package/dist/drive/operations.d.ts +0 -180
  671. package/dist/drive/operations.js.map +0 -1
  672. package/dist/drive/shelf.d.ts +0 -9
  673. package/dist/drive/shelf.js.map +0 -1
  674. package/dist/durability-barrier.d.ts +0 -66
  675. package/dist/durability-barrier.js.map +0 -1
  676. package/dist/entity-access-wire.d.ts +0 -33
  677. package/dist/entity-access-wire.js.map +0 -1
  678. package/dist/entity-channel-holdings.d.ts +0 -26
  679. package/dist/entity-channel-holdings.js.map +0 -1
  680. package/dist/entity-grant-watch.d.ts +0 -9
  681. package/dist/entity-grant-watch.js.map +0 -1
  682. package/dist/entity-record-observability.d.ts +0 -13
  683. package/dist/entity-record-observability.js.map +0 -1
  684. package/dist/entity-record-saves.d.ts +0 -47
  685. package/dist/entity-record-saves.js.map +0 -1
  686. package/dist/entity-record-store.d.ts +0 -60
  687. package/dist/entity-record-store.js.map +0 -1
  688. package/dist/error-facts.d.ts +0 -24
  689. package/dist/error-facts.js.map +0 -1
  690. package/dist/faults/drain.d.ts +0 -27
  691. package/dist/faults/drain.js.map +0 -1
  692. package/dist/faults/queue.d.ts +0 -46
  693. package/dist/faults/queue.js.map +0 -1
  694. package/dist/faults/show.d.ts +0 -7
  695. package/dist/faults/show.js.map +0 -1
  696. package/dist/files-browser-host.d.ts +0 -9
  697. package/dist/files-browser-host.js.map +0 -1
  698. package/dist/files-mcp-host.d.ts +0 -58
  699. package/dist/files-mcp-host.js.map +0 -1
  700. package/dist/files-observability.d.ts +0 -29
  701. package/dist/files-observability.js.map +0 -1
  702. package/dist/files-program/client.d.ts +0 -136
  703. package/dist/files-program/client.js.map +0 -1
  704. package/dist/files-program/journeys.d.ts +0 -15
  705. package/dist/files-program/journeys.js.map +0 -1
  706. package/dist/files-program/program.d.ts +0 -1
  707. package/dist/files-program/program.js.map +0 -1
  708. package/dist/files-program/protocol.d.ts +0 -180
  709. package/dist/files-program/protocol.js.map +0 -1
  710. package/dist/files-register-host.d.ts +0 -70
  711. package/dist/files-register-host.js.map +0 -1
  712. package/dist/files-trace.d.ts +0 -61
  713. package/dist/files-trace.js.map +0 -1
  714. package/dist/filesystem.d.ts +0 -38
  715. package/dist/filesystem.js.map +0 -1
  716. package/dist/flush.d.ts +0 -19
  717. package/dist/flush.js.map +0 -1
  718. package/dist/forward.d.ts +0 -11
  719. package/dist/forward.js.map +0 -1
  720. package/dist/gateway.d.ts +0 -38
  721. package/dist/gateway.js.map +0 -1
  722. package/dist/git/ground-owners.d.ts +0 -15
  723. package/dist/git/ground-owners.js.map +0 -1
  724. package/dist/git/held-package.d.ts +0 -67
  725. package/dist/git/held-package.js.map +0 -1
  726. package/dist/git/home.d.ts +0 -59
  727. package/dist/git/home.js.map +0 -1
  728. package/dist/git/marker.d.ts +0 -21
  729. package/dist/git/marker.js.map +0 -1
  730. package/dist/git/named-objects.d.ts +0 -24
  731. package/dist/git/named-objects.js.map +0 -1
  732. package/dist/git/objects.d.ts +0 -30
  733. package/dist/git/objects.js.map +0 -1
  734. package/dist/git/play.d.ts +0 -30
  735. package/dist/git/play.js.map +0 -1
  736. package/dist/git/quarantine.d.ts +0 -48
  737. package/dist/git/quarantine.js.map +0 -1
  738. package/dist/git/rail.d.ts +0 -206
  739. package/dist/git/rail.js.map +0 -1
  740. package/dist/git/read-state.d.ts +0 -49
  741. package/dist/git/read-state.js.map +0 -1
  742. package/dist/git/repository.d.ts +0 -62
  743. package/dist/git/repository.js.map +0 -1
  744. package/dist/git/write-files.d.ts +0 -29
  745. package/dist/git/write-files.js.map +0 -1
  746. package/dist/git-binding.d.ts +0 -53
  747. package/dist/git-binding.js.map +0 -1
  748. package/dist/git-cat-file.d.ts +0 -28
  749. package/dist/git-cat-file.js.map +0 -1
  750. package/dist/git-command.d.ts +0 -96
  751. package/dist/git-command.js.map +0 -1
  752. package/dist/git-index-entries.d.ts +0 -16
  753. package/dist/git-index-entries.js.map +0 -1
  754. package/dist/git-index-format.d.ts +0 -52
  755. package/dist/git-index-format.js.map +0 -1
  756. package/dist/git-install-lines.d.ts +0 -12
  757. package/dist/git-install-lines.js.map +0 -1
  758. package/dist/git-launcher-process.d.ts +0 -1
  759. package/dist/git-launcher-process.js.map +0 -1
  760. package/dist/git-launcher.d.ts +0 -70
  761. package/dist/git-launcher.js.map +0 -1
  762. package/dist/graph-heads.d.ts +0 -71
  763. package/dist/graph-heads.js.map +0 -1
  764. package/dist/ground-basis.d.ts +0 -278
  765. package/dist/ground-basis.js.map +0 -1
  766. package/dist/ground-checkpoint-worker.d.ts +0 -1
  767. package/dist/ground-checkpoint-worker.js.map +0 -1
  768. package/dist/ground-checkpoints.d.ts +0 -16
  769. package/dist/ground-checkpoints.js.map +0 -1
  770. package/dist/ground-contract.d.ts +0 -11
  771. package/dist/ground-contract.js.map +0 -1
  772. package/dist/ground-coordination.d.ts +0 -140
  773. package/dist/ground-coordination.js.map +0 -1
  774. package/dist/ground-database.d.ts +0 -40
  775. package/dist/ground-database.js.map +0 -1
  776. package/dist/ground-differences.d.ts +0 -24
  777. package/dist/ground-differences.js.map +0 -1
  778. package/dist/ground-holders.d.ts +0 -4
  779. package/dist/ground-holders.js.map +0 -1
  780. package/dist/ground-initialization-worker.d.ts +0 -1
  781. package/dist/ground-initialization-worker.js.map +0 -1
  782. package/dist/ground-initialization.d.ts +0 -38
  783. package/dist/ground-initialization.js.map +0 -1
  784. package/dist/ground-install-saves.d.ts +0 -104
  785. package/dist/ground-install-saves.js.map +0 -1
  786. package/dist/ground-inventory-schema.d.ts +0 -58
  787. package/dist/ground-inventory-schema.js.map +0 -1
  788. package/dist/ground-marks.d.ts +0 -49
  789. package/dist/ground-marks.js.map +0 -1
  790. package/dist/ground-profile.d.ts +0 -14
  791. package/dist/ground-profile.js.map +0 -1
  792. package/dist/ground-reads.d.ts +0 -86
  793. package/dist/ground-reads.js.map +0 -1
  794. package/dist/ground-relations.d.ts +0 -57
  795. package/dist/ground-relations.js.map +0 -1
  796. package/dist/ground-root-index.d.ts +0 -14
  797. package/dist/ground-root-index.js.map +0 -1
  798. package/dist/ground-row.d.ts +0 -78
  799. package/dist/ground-row.js.map +0 -1
  800. package/dist/ground-save-ops.d.ts +0 -62
  801. package/dist/ground-save-ops.js.map +0 -1
  802. package/dist/ground-saver-worker.d.ts +0 -1
  803. package/dist/ground-saver-worker.js.map +0 -1
  804. package/dist/ground-saver.d.ts +0 -103
  805. package/dist/ground-saver.js.map +0 -1
  806. package/dist/ground-store.d.ts +0 -125
  807. package/dist/ground-store.js.map +0 -1
  808. package/dist/index.d.ts +0 -22
  809. package/dist/index.js.map +0 -1
  810. package/dist/initial-publication.d.ts +0 -42
  811. package/dist/initial-publication.js.map +0 -1
  812. package/dist/installation/environment.d.ts +0 -34
  813. package/dist/installation/environment.js.map +0 -1
  814. package/dist/installation/lease.d.ts +0 -6
  815. package/dist/installation/lease.js.map +0 -1
  816. package/dist/installation/ownership.d.ts +0 -30
  817. package/dist/installation/ownership.js.map +0 -1
  818. package/dist/installation/selection.d.ts +0 -8
  819. package/dist/installation/selection.js.map +0 -1
  820. package/dist/keychain/cli-io.d.ts +0 -8
  821. package/dist/keychain/cli-io.js.map +0 -1
  822. package/dist/keychain/cli.d.ts +0 -12
  823. package/dist/keychain/cli.js.map +0 -1
  824. package/dist/keychain/host.d.ts +0 -28
  825. package/dist/keychain/host.js.map +0 -1
  826. package/dist/keychain/http-mount.d.ts +0 -16
  827. package/dist/keychain/http-mount.js.map +0 -1
  828. package/dist/keychain/key-wire.d.ts +0 -12
  829. package/dist/keychain/key-wire.js.map +0 -1
  830. package/dist/keychain/presence-mac.d.ts +0 -8
  831. package/dist/keychain/presence-mac.js.map +0 -1
  832. package/dist/keychain/presence.d.ts +0 -9
  833. package/dist/keychain/presence.js.map +0 -1
  834. package/dist/keychain/rail.d.ts +0 -19
  835. package/dist/keychain/rail.js.map +0 -1
  836. package/dist/keychain/secret-apply.d.ts +0 -22
  837. package/dist/keychain/secret-apply.js.map +0 -1
  838. package/dist/keychain/shelf-from-ledger.d.ts +0 -15
  839. package/dist/keychain/shelf-from-ledger.js.map +0 -1
  840. package/dist/keychain/use-log.d.ts +0 -7
  841. package/dist/keychain/use-log.js.map +0 -1
  842. package/dist/keychain/vault-file.d.ts +0 -12
  843. package/dist/keychain/vault-file.js.map +0 -1
  844. package/dist/line-judge.d.ts +0 -39
  845. package/dist/line-judge.js.map +0 -1
  846. package/dist/line-loops.d.ts +0 -22
  847. package/dist/line-loops.js.map +0 -1
  848. package/dist/link-target.d.ts +0 -16
  849. package/dist/link-target.js.map +0 -1
  850. package/dist/local-host.d.ts +0 -20
  851. package/dist/local-host.js.map +0 -1
  852. package/dist/loop-watch.d.ts +0 -17
  853. package/dist/loop-watch.js.map +0 -1
  854. package/dist/machine-host.d.ts +0 -249
  855. package/dist/machine-host.js.map +0 -1
  856. package/dist/main.d.ts +0 -2
  857. package/dist/main.js.map +0 -1
  858. package/dist/materialize-records.d.ts +0 -98
  859. package/dist/materialize-records.js.map +0 -1
  860. package/dist/materialized-graph.d.ts +0 -22
  861. package/dist/materialized-graph.js.map +0 -1
  862. package/dist/module-thread.d.ts +0 -9
  863. package/dist/module-thread.js.map +0 -1
  864. package/dist/mount.d.ts +0 -13
  865. package/dist/mount.js.map +0 -1
  866. package/dist/official-mcp-host.d.ts +0 -51
  867. package/dist/official-mcp-host.js.map +0 -1
  868. package/dist/on-demand-roots.d.ts +0 -31
  869. package/dist/on-demand-roots.js.map +0 -1
  870. package/dist/open-standing.d.ts +0 -8
  871. package/dist/open-standing.js.map +0 -1
  872. package/dist/own-results.d.ts +0 -37
  873. package/dist/own-results.js.map +0 -1
  874. package/dist/package-pages.d.ts +0 -41
  875. package/dist/package-pages.js.map +0 -1
  876. package/dist/patient-flush.d.ts +0 -24
  877. package/dist/patient-flush.js.map +0 -1
  878. package/dist/physical-path-witness.d.ts +0 -64
  879. package/dist/physical-path-witness.js.map +0 -1
  880. package/dist/placement-owed.d.ts +0 -28
  881. package/dist/placement-owed.js.map +0 -1
  882. package/dist/placement-tidy.d.ts +0 -57
  883. package/dist/placement-tidy.js.map +0 -1
  884. package/dist/platform-product-host.d.ts +0 -51
  885. package/dist/platform-product-host.js.map +0 -1
  886. package/dist/platform-tools.d.ts +0 -22
  887. package/dist/platform-tools.js.map +0 -1
  888. package/dist/process-lifecycle.d.ts +0 -13
  889. package/dist/process-lifecycle.js.map +0 -1
  890. package/dist/product-cli.d.ts +0 -26
  891. package/dist/product-cli.js.map +0 -1
  892. package/dist/pty-host.d.ts +0 -16
  893. package/dist/pty-host.js.map +0 -1
  894. package/dist/received-state.d.ts +0 -90
  895. package/dist/received-state.js.map +0 -1
  896. package/dist/reference-placement.d.ts +0 -26
  897. package/dist/reference-placement.js.map +0 -1
  898. package/dist/registry-graph.d.ts +0 -112
  899. package/dist/registry-graph.js.map +0 -1
  900. package/dist/registry-page-cache.d.ts +0 -15
  901. package/dist/registry-page-cache.js.map +0 -1
  902. package/dist/release-catalog.d.ts +0 -5
  903. package/dist/release-catalog.js.map +0 -1
  904. package/dist/root-install.d.ts +0 -72
  905. package/dist/root-install.js.map +0 -1
  906. package/dist/runtime-activity.d.ts +0 -20
  907. package/dist/runtime-activity.js.map +0 -1
  908. package/dist/runtime-argv.d.ts +0 -8
  909. package/dist/runtime-argv.js.map +0 -1
  910. package/dist/runtime-command-host.d.ts +0 -46
  911. package/dist/runtime-command-host.js.map +0 -1
  912. package/dist/runtime-node-flags.d.ts +0 -10
  913. package/dist/runtime-node-flags.js.map +0 -1
  914. package/dist/runtime-wire-host.d.ts +0 -17
  915. package/dist/runtime-wire-host.js.map +0 -1
  916. package/dist/service/adapter.d.ts +0 -37
  917. package/dist/service/adapter.js.map +0 -1
  918. package/dist/service/cli.d.ts +0 -8
  919. package/dist/service/cli.js.map +0 -1
  920. package/dist/service/control.d.ts +0 -38
  921. package/dist/service/control.js.map +0 -1
  922. package/dist/service/index.d.ts +0 -9
  923. package/dist/service/index.js.map +0 -1
  924. package/dist/service/keepalive.d.ts +0 -11
  925. package/dist/service/keepalive.js.map +0 -1
  926. package/dist/service/launchd.d.ts +0 -9
  927. package/dist/service/launchd.js.map +0 -1
  928. package/dist/service/owner.d.ts +0 -4
  929. package/dist/service/owner.js.map +0 -1
  930. package/dist/service/policy.d.ts +0 -36
  931. package/dist/service/policy.js.map +0 -1
  932. package/dist/service/portable.d.ts +0 -10
  933. package/dist/service/portable.js.map +0 -1
  934. package/dist/service/recovery.d.ts +0 -28
  935. package/dist/service/recovery.js.map +0 -1
  936. package/dist/service/registration.d.ts +0 -84
  937. package/dist/service/registration.js.map +0 -1
  938. package/dist/service/systemd-unit.d.ts +0 -7
  939. package/dist/service/systemd-unit.js.map +0 -1
  940. package/dist/service/systemd.d.ts +0 -5
  941. package/dist/service/systemd.js.map +0 -1
  942. package/dist/service/windows-action.d.ts +0 -18
  943. package/dist/service/windows-action.js.map +0 -1
  944. package/dist/service/windows-task.d.ts +0 -15
  945. package/dist/service/windows-task.js.map +0 -1
  946. package/dist/service/windows.d.ts +0 -2
  947. package/dist/service/windows.js.map +0 -1
  948. package/dist/sha256.d.ts +0 -1
  949. package/dist/sha256.js.map +0 -1
  950. package/dist/sharing-admission.d.ts +0 -22
  951. package/dist/sharing-admission.js.map +0 -1
  952. package/dist/sharing-host.d.ts +0 -14
  953. package/dist/sharing-host.js.map +0 -1
  954. package/dist/sharing-mcp-host.d.ts +0 -23
  955. package/dist/sharing-mcp-host.js.map +0 -1
  956. package/dist/snapshot-delivery-baseline.d.ts +0 -31
  957. package/dist/snapshot-delivery-baseline.js.map +0 -1
  958. package/dist/socket-marking.d.ts +0 -9
  959. package/dist/socket-marking.js.map +0 -1
  960. package/dist/source-proof.d.ts +0 -23
  961. package/dist/source-proof.js.map +0 -1
  962. package/dist/source-signature.d.ts +0 -157
  963. package/dist/source-signature.js.map +0 -1
  964. package/dist/source-witness.d.ts +0 -9
  965. package/dist/source-witness.js.map +0 -1
  966. package/dist/sqlite-durability.d.ts +0 -32
  967. package/dist/sqlite-durability.js.map +0 -1
  968. package/dist/sqlite.d.ts +0 -10
  969. package/dist/sqlite.js.map +0 -1
  970. package/dist/state-host.d.ts +0 -4
  971. package/dist/state-host.js.map +0 -1
  972. package/dist/state-store.d.ts +0 -15
  973. package/dist/state-store.js.map +0 -1
  974. package/dist/sync-address.d.ts +0 -16
  975. package/dist/sync-address.js.map +0 -1
  976. package/dist/sync-cli.d.ts +0 -7
  977. package/dist/sync-cli.js.map +0 -1
  978. package/dist/sync-setting.d.ts +0 -43
  979. package/dist/sync-setting.js.map +0 -1
  980. package/dist/tool-mcp-client.d.ts +0 -7
  981. package/dist/tool-mcp-client.js.map +0 -1
  982. package/dist/toolbox-host.d.ts +0 -4
  983. package/dist/toolbox-host.js.map +0 -1
  984. package/dist/transfer-instrumentation.d.ts +0 -47
  985. package/dist/transfer-instrumentation.js.map +0 -1
  986. package/dist/turns.d.ts +0 -44
  987. package/dist/turns.js.map +0 -1
  988. package/dist/updates/artifacts.d.ts +0 -66
  989. package/dist/updates/artifacts.js.map +0 -1
  990. package/dist/updates/bootstrap.d.ts +0 -94
  991. package/dist/updates/bootstrap.js.map +0 -1
  992. package/dist/updates/controller.d.ts +0 -78
  993. package/dist/updates/controller.js.map +0 -1
  994. package/dist/updates/isolated-command-lifetime.d.ts +0 -1
  995. package/dist/updates/isolated-command-lifetime.js.map +0 -1
  996. package/dist/updates/locked-packages.d.ts +0 -4
  997. package/dist/updates/locked-packages.js.map +0 -1
  998. package/dist/updates/store.d.ts +0 -47
  999. package/dist/updates/store.js.map +0 -1
  1000. package/dist/updates/trust.d.ts +0 -20
  1001. package/dist/updates/trust.js.map +0 -1
  1002. package/dist/user-ground-host.d.ts +0 -1007
  1003. package/dist/user-ground-host.js.map +0 -1
  1004. package/dist/watching/fsevents.d.ts +0 -69
  1005. package/dist/watching/fsevents.js.map +0 -1
  1006. package/dist/watching/git-storage.d.ts +0 -22
  1007. package/dist/watching/git-storage.js.map +0 -1
  1008. package/dist/watching/host.d.ts +0 -388
  1009. package/dist/watching/host.js.map +0 -1
  1010. package/dist/watching/index.d.ts +0 -3
  1011. package/dist/watching/index.js.map +0 -1
  1012. package/dist/watching/inotify.d.ts +0 -81
  1013. package/dist/watching/inotify.js.map +0 -1
  1014. package/dist/windows-fs.d.ts +0 -12
  1015. package/dist/windows-fs.js.map +0 -1
  1016. package/dist/windows-owner-only.d.ts +0 -6
  1017. package/dist/windows-owner-only.js.map +0 -1
  1018. package/dist/wire-binary.d.ts +0 -9
  1019. package/dist/wire-binary.js.map +0 -1
  1020. package/dist/wire-client.d.ts +0 -86
  1021. package/dist/wire-client.js.map +0 -1
  1022. package/dist/wire-join.d.ts +0 -19
  1023. package/dist/wire-join.js.map +0 -1
  1024. package/dist/wire-outbox.d.ts +0 -37
  1025. package/dist/wire-outbox.js.map +0 -1
  1026. package/dist/wire-request-scope.d.ts +0 -17
  1027. package/dist/wire-request-scope.js.map +0 -1
  1028. package/dist/wire-socket-relay.d.ts +0 -54
  1029. package/dist/wire-socket-relay.js.map +0 -1
  1030. package/dist/workspace-add-intent.d.ts +0 -41
  1031. package/dist/workspace-add-intent.js.map +0 -1
  1032. package/dist/workspace-add-staging.d.ts +0 -192
  1033. package/dist/workspace-add-staging.js.map +0 -1
  1034. package/dist/workspace-host.d.ts +0 -32
  1035. package/dist/workspace-host.js.map +0 -1
  1036. package/dist/workspace-store.d.ts +0 -8
  1037. package/dist/workspace-store.js.map +0 -1
  1038. package/skills/shell/SKILL.md +0 -175
@@ -1,10 +1,8 @@
1
- /** One walk of one root: what it read, what it captured, and what it
2
- * hands unit admission, Record and the next pass. */
3
1
  import { randomUUID } from "node:crypto";
4
2
  import { existsSync, lstatSync, readdirSync } from "node:fs";
5
3
  import { lstat } from "node:fs/promises";
6
4
  import { dirname, join, resolve, sep } from "node:path";
7
- import { ITEMS_PER_BOUNDARY, trashRemovedEntitiesSteps, selectPublicationSteps, artifactForRecord, canonicalVersion, classifyDirectory, classifyFile, DERIVED_PAYLOAD, parallelForEach, planGroundDetectionSteps, holdsOnlyItself, groundWaits, contentWaits, isRefusal, Refusal, membershipHash, materializableRecordsSteps, suspectScope, reconcileGroundUUIDsSteps, groundIdentityPriorSteps, observedPortableName, physicalKindOf, portableFileMode } from "@amalgm/live";
5
+ import { ITEMS_PER_BOUNDARY, trashRemovedEntitiesSteps, selectPublicationSteps, artifactForRecord, canonicalVersion, CONTAINERS, classifyDirectory, classifyFile, DERIVED_PAYLOAD, parallelForEach, planGroundDetectionSteps, holdsOnlyItself, groundWaits, contentWaits, isRefusal, Refusal, membershipHash, materializableRecordsSteps, suspectScope, reconcileGroundUUIDsSteps, groundIdentityPriorSteps, observedPortableName, physicalKindOf, portableFileMode } from "@amalgm/live";
8
6
  import { baselineStates } from "../baseline-content.js";
9
7
  import { CaptureWork } from "../capture-work.js";
10
8
  import { persistRows } from "../captured-rows.js";
@@ -23,33 +21,24 @@ import { portableGroundRecord as portableRecord, slashPath } from "../ground-row
23
21
  import { readLinkTarget } from "../link-target.js";
24
22
  import { sha256Hex } from "../sha256.js";
25
23
  import { admissionProof, witnessProof } from "../source-proof.js";
26
- import { identityRow, latestProof, onBoundDevice, physicalKey, shownMode, signedStat, sourceFingerprint, sourceReusable } from "../source-signature.js";
24
+ import { identityRow, latestProof, onBoundDevice, physicalKey, presenceHeld, shownMode, shownTime, signedStat, sourceFingerprint, sourceReusable } from "../source-signature.js";
27
25
  import { awaitTurn, eachBatchInTurns, eachInTurns, finishStepsInTurns, mapInTurns, turnBoundary } from "../turns.js";
28
26
  import { ownedObject, ownerName, placementOf } from "./apply-ownership.js";
29
27
  import { GroundSourceProof, groundSourceProof } from "./ground-proof.js";
28
+ import { closeRacy, presenceRead, presenceWaitMs } from "./racy-close.js";
30
29
  import { observeRepository } from "./repository-state.js";
31
- import { readSharingPolicy } from "./sharing-policy.js";
30
+ import { readSkipPolicy } from "./skip-policy.js";
31
+ import { lostToHolder, routeNames, routeShownBy, spelledRoot, storageRoute } from "./storage-holder.js";
32
32
  import { carryUnread } from "./unread-content.js";
33
33
  import { denied, unreadReason } from "./unreadable.js";
34
34
  import { listAgain, vanished, WALK_TURN_ENTRIES, walkSkips } from "./walk-law.js";
35
35
  import { RACY_READINGS, STALE_CAPTURE_ATTEMPTS, moved, moving, withhold, endsPass, withheldBy, StaleCaptureError, staleCapture, captureChurn } from "./withheld.js";
36
- /** File captures during a walk overlap reads and hashing across this many
37
- * lanes; the directory traversal itself stays ordered and serial. */
38
36
  const WALK_CAPTURE_CONCURRENCY = 8;
39
- /** A bound root standing on another device than the one it was bound on:
40
- * its drive is unplugged, renumbered, or another is mounted there. As with an
41
- * absent root, nothing of it is read or published. No timer retries it;
42
- * later suspicion, or Register adopting the directory, asks again, and the
43
- * original returning is caught up whole. */
44
37
  export class RootOffDevice extends Refusal {
45
38
  constructor(rootPath) {
46
39
  super(`${rootPath} is not on the device its workspace was bound to; amalgm files register adopts it`);
47
40
  }
48
41
  }
49
- /** A root this process may not even look at, because a directory above it
50
- * hides its entries. Like a binding the pass could not follow, it is unread
51
- * ground, never absent: nothing of it is read or published, the domain's
52
- * absence decisions wait for it, and access returning is heard. */
53
42
  export class RootUnreachable extends Error {
54
43
  root;
55
44
  constructor(root) {
@@ -57,16 +46,11 @@ export class RootUnreachable extends Error {
57
46
  this.root = root;
58
47
  }
59
48
  }
60
- /** A bound root re-created on its device is the same workspace, compared
61
- * whole: a walk that read less than a complete examination located owes
62
- * its complete examination. */
63
49
  export class RootRecreated extends Error {
64
50
  constructor(rootPath) {
65
51
  super(`${rootPath} was re-created; its workspace is compared whole`);
66
52
  }
67
53
  }
68
- /** One walk of a root. What its reads staged is named together once the walk
69
- * needs the names, or removed when the walk ends first (cargo-group.ts). */
70
54
  export async function observeRoot(input) {
71
55
  const cargo = CargoGroup.open();
72
56
  try {
@@ -78,20 +62,9 @@ export async function observeRoot(input) {
78
62
  }
79
63
  async function walkRoot(input, cargo) {
80
64
  const { identity, resourceId, rootUUID, rootName, rootType, database, cacheDir, restorePackage, bindingDir, evidence, measureEvidence = false, plansSendRecords, } = input;
81
- // Every address below is canonical: the walk joins names onto this one
82
- // resolved root, so containment and frames are string prefixes.
83
65
  const rootPath = resolve(input.rootPath);
84
- // Every content read below follows its root's content clock, and every
85
- // conclusion stands only while the stamped roots keep its qualification.
86
66
  const clockRoot = rootPath;
87
67
  const { stamp } = input, clock = stamp.boundary;
88
- // Prior rows reach this scan from every binding this root encloses. A row's
89
- // stored relativePath is relative to the root that last committed it, which
90
- // is a different frame when an enclosing boundary was just registered
91
- // (child/README.md is stored as "README.md" under the child root). Address
92
- // every prior row in this scan's frame before anything compares it with an
93
- // observed entry; absolutePath is the only coordinate both frames share,
94
- // and a walk writes it resolved.
95
68
  const rootPrefix = rootPath.endsWith(sep) ? rootPath : `${rootPath}${sep}`;
96
69
  const inRootFrame = async (rows) => {
97
70
  const framedRows = [];
@@ -103,9 +76,6 @@ async function walkRoot(input, cargo) {
103
76
  });
104
77
  return framedRows;
105
78
  };
106
- /** The records standing under no Trash, their own or inherited: this
107
- * root's, and those of every workspace it encloses, whose own root still
108
- * stands as one until this walk's ground enters with it. */
109
79
  const materializedUUIDs = async (records) => {
110
80
  const roots = new Set([rootUUID]);
111
81
  await eachInTurns(records, record => { if (record.parentUUID === null)
@@ -116,16 +86,10 @@ async function walkRoot(input, cargo) {
116
86
  }
117
87
  return uuids;
118
88
  };
119
- /** The rows this observation re-decides, in this scan's frame. */
120
89
  const examinedRows = async ({ o, b }) => {
121
90
  const existingRows = await inRootFrame(o);
122
- // Every walk observes all ground and selects under the home's policy. A
123
- // Send scan selects against sharing's admitted predecessor; a first
124
- // login's publication selects from nothing.
125
91
  const admittedRows = await inRootFrame(b);
126
92
  const sharingRows = plansSendRecords ? admittedRows : [];
127
- // A name may be reused after deletion, but a Trash identity may only return
128
- // through explicit Restore. Inherited Trash also excludes its descendants.
129
93
  let trashed = false;
130
94
  await eachInTurns(existingRows, row => { trashed ||= row.status !== "active"; });
131
95
  const activeIds = plansSendRecords && trashed ? await materializedUUIDs(await mapInTurns(existingRows, portableRecord)) : null;
@@ -135,7 +99,6 @@ async function walkRoot(input, cargo) {
135
99
  activeRows.push(row); });
136
100
  const existingByPath = new Map();
137
101
  await eachInTurns(activeRows, row => existingByPath.set(row.relativePath, row));
138
- // B's latest proof at each address O holds no active row at.
139
102
  const keptProofs = new Map();
140
103
  await eachInTurns(admittedRows, row => {
141
104
  if (existingByPath.has(row.relativePath))
@@ -151,42 +114,24 @@ async function walkRoot(input, cargo) {
151
114
  o: input.existingRows ?? readRows(database).filter(row => row.resourceId === resourceId && row.rootUUID === rootUUID),
152
115
  b: input.sharingRows ?? [],
153
116
  });
154
- const sharingPolicy = input.policy ?? readSharingPolicy(resolve(input.homePath), rootPath);
155
- // Selection withholds a file the policy excludes, itself or by a folder
156
- // above it.
157
- const withheldByPolicy = (path) => !sharingPolicy.includes(path, false);
117
+ const sharingPolicy = input.policy ?? readSkipPolicy({ root: rootPath,
118
+ database: existsSync(database) ? groundDatabase(database) : null, rootUUID });
119
+ const withheldByPolicy = (path) => !sharingPolicy.travels(path, false);
158
120
  const registeredBoundaries = input.registeredBoundaries ?? new Map();
159
- // A scan asked nothing examines nothing, but a folder scope, which reads
160
- // its root's own entry whatever names it follows.
161
121
  if (input.suspects?.length === 0 && !input.folders && complete.existingRows.length > 0) {
162
122
  return { kind: "unexamined" };
163
123
  }
164
124
  const { existingRows, admittedRows, sharingRows, activeRows, existingByPath, keptProofs } = complete;
165
- // O by address in this scan's frame.
166
125
  const priorsAt = (paths) => paths.map(path => existingByPath.get(path));
167
- // The object last proved at each address: O's row, else B's latest proof
168
- // there (latestProof). Identity is never taken from B's row; only the
169
- // proof of its unchanged object is.
170
126
  const provedAt = (paths) => paths.map(path => existingByPath.get(path) ?? keptProofs.get(path));
171
- // A proof an enclosed root minted stands on that root's chain, which its
172
- // own stamp checked before S0. Reused under this root, it is minted again
173
- // under this root's clock, while that clock does not stand behind the
174
- // enclosed root's stamp (lentQualification): the signature it was judged
175
- // by then precedes both.
176
127
  const enclosedStamps = input.enclosedStamps ?? new Map();
177
128
  const lent = new Map([...enclosedStamps].map(([root, enclosed]) => [root, lentQualification(clock, enclosed)]));
178
129
  const carriesOver = (prior) => {
179
130
  const qualification = lent.get(prior.rootUUID);
180
131
  return qualification != null && prior.sighting !== null && proofQualification(prior.sighting) === qualification;
181
132
  };
182
- // Regular files the walk read, by physical key: a link to any of them may
183
- // appear while they are read.
184
133
  const physicalReads = new Set();
185
- // Addresses whose collection did not complete, with why.
186
134
  const failedPaths = new Map();
187
- // The scan's costs are metadata traversal, content capture and each
188
- // repository's Git. They interleave, so each is accumulated where it is
189
- // spent rather than inferred from the total afterwards.
190
135
  const spent = (work, into) => {
191
136
  if (!measureEvidence || !evidence)
192
137
  return work();
@@ -198,7 +143,6 @@ async function walkRoot(input, cargo) {
198
143
  evidence[into] += performance.now() - at;
199
144
  }
200
145
  };
201
- // Git runs off the event loop; its leg is the awaited interval.
202
146
  const spentAwaiting = async (work, into) => {
203
147
  if (!measureEvidence || !evidence)
204
148
  return await work();
@@ -210,11 +154,7 @@ async function walkRoot(input, cargo) {
210
154
  evidence[into] += performance.now() - at;
211
155
  }
212
156
  };
213
- // Detect never waits for Apply: it reads around an open window's receipts
214
- // (apply-ownership.ts).
215
157
  const ownership = groundApplyOwnership(database);
216
- // A name inside a repository's Git storage asks that repository's Git,
217
- // which its `.git` stands for: the walk never descends into storage.
218
158
  const suspects = input.suspects ?? null;
219
159
  const scanSuspects = suspects === null ? null : [...new Set(suspects.map(path => {
220
160
  const owner = gitStorageOwner(path);
@@ -222,8 +162,6 @@ async function walkRoot(input, cargo) {
222
162
  }))].sort();
223
163
  const sharedByUuid = new Map();
224
164
  await eachInTurns(sharingRows, row => sharedByUuid.set(row.uuid, row));
225
- // Sharing's rows as the records they state, converted once for every
226
- // reading of B below.
227
165
  const sharedRecords = await mapInTurns(sharingRows, portableRecord);
228
166
  const sharedRecordByUuid = new Map();
229
167
  await eachInTurns(sharedRecords, record => sharedRecordByUuid.set(record.uuid, record));
@@ -231,17 +169,13 @@ async function walkRoot(input, cargo) {
231
169
  for (const rows of [existingRows, sharingRows])
232
170
  await eachInTurns(rows, row => heldIds.add(row.uuid));
233
171
  const owners = ownership.owners();
234
- // A cold journey admits only if no window it read around began or ended.
235
172
  if (!input.units)
236
173
  ownership.use({ subtrees: [rootPath], uuids: heldIds });
237
- // Ground a pruned walk reads: what a name covers and the directories on
238
- // the way to one.
239
174
  const scanScope = suspectScope(scanSuspects);
240
175
  const answered = new Set(input.answered), towardAnswered = suspectScope([...answered]);
241
176
  const touchesSuspicion = (path) => scanScope.covers(path) || scanScope.leadsTo(path)
242
177
  || answered.has(path) || towardAnswered.leadsTo(path);
243
178
  const entries = [];
244
- /** A row this walk did not read, entered exactly as last known. */
245
179
  const carriedEntry = (row) => ({
246
180
  uuid: row.uuid,
247
181
  type: row.type,
@@ -257,19 +191,12 @@ async function walkRoot(input, cargo) {
257
191
  sighting: row.sighting,
258
192
  size: row.size,
259
193
  keptTarget: row.linkTarget,
194
+ gitHomeEntity: row.gitHomeEntity,
195
+ gitHomePath: row.gitHomePath,
260
196
  });
261
- // Ground this process may not read, by absolute address: a directory whose
262
- // entries are hidden, or a leaf whose bytes are. It is unexamined, never
263
- // absent. Units only; a cold journey still reads every byte or fails.
264
197
  const unread = new Map();
265
- // What cannot travel answers by identity (GroundWait), so it answers only
266
- // once identity is resolved: a listing's UUID is provisional.
267
198
  const waitAnswers = new Map();
268
199
  const tooLarge = new Map();
269
- /** A file past the content bound has no state a receiver could accept: its
270
- * length decides it, before a byte is read (Live contentWaits). It keeps
271
- * its last file type and no state or proof, so every pass decides it again
272
- * from its stat, and selection holds it alone (Live groundWaits). */
273
200
  const waitsAlone = (entry, prior, reason) => {
274
201
  entry.type = prior?.type === "file.text" || prior?.type === "file.binary" ? prior.type : "file.binary";
275
202
  entry.payloadVersion = null;
@@ -282,13 +209,18 @@ async function walkRoot(input, cargo) {
282
209
  throw error;
283
210
  unread.set(address, { directory, reason: unreadReason(address, error) });
284
211
  };
285
- // An object an open Apply window shows where its receipt places it is
286
- // Apply's own: it keeps its member's identity and records nothing until
287
- // the window's end rings it. Apply's object anywhere else, and every other
288
- // object, is a person's. A container is one object; its children are read
289
- // as their own entities. Only an Enter's staged tree is Apply's whole, and
290
- // what a window took aside stays its member's: both hide the rows last
291
- // known beneath them, as an unlisted directory does.
212
+ let spelled;
213
+ const gitRoutes = new Map();
214
+ const readRoute = (checkout) => {
215
+ try {
216
+ const route = storageRoute(checkout, spelled ??= spelledRoot(rootPath));
217
+ if (route.length > 0)
218
+ gitRoutes.set(checkout, route);
219
+ }
220
+ catch (error) {
221
+ unreadGround(checkout, false, error);
222
+ }
223
+ };
292
224
  const applyOwned = new Map();
293
225
  const applyHidden = new Set();
294
226
  for (const owner of owners)
@@ -309,19 +241,17 @@ async function walkRoot(input, cargo) {
309
241
  throw new StaleCaptureError(`materialization root is unavailable: ${rootPath}`);
310
242
  }
311
243
  if (plansSendRecords && priorRoot && priorRoot.physicalKey !== physicalKey(rootStats)) {
312
- // A bound root off its device is unavailable here; one re-created on it
313
- // is the same workspace, compared whole.
314
244
  if (!onBoundDevice(priorRoot.physicalKey, rootStats))
315
245
  throw new RootOffDevice(rootPath);
316
246
  if (scanSuspects !== null && !input.pooled)
317
247
  throw new RootRecreated(rootPath);
318
248
  }
319
249
  evidence && (evidence.entries += 1);
320
- // A pruned walk reads only what Watch's names reach, and carries every
321
- // other row it holds exactly as last known.
322
250
  const pruned = scanSuspects !== null && input.folders === true;
323
251
  const vacant = new Set(input.vacant);
324
252
  const carried = new Set();
253
+ if (input.rootMarker)
254
+ readRoute(rootPath);
325
255
  if (pruned) {
326
256
  await eachInTurns(activeRows, row => {
327
257
  if (row.relativePath === "" || touchesSuspicion(row.relativePath))
@@ -344,26 +274,22 @@ async function walkRoot(input, cargo) {
344
274
  sighting: null,
345
275
  size: null,
346
276
  keptTarget: null,
277
+ gitHomeEntity: null,
278
+ gitHomePath: null,
347
279
  ...sourceFingerprint(rootStats),
348
280
  ...(input.rootMarker !== undefined ? { gitMarker: input.rootMarker } : {}),
349
281
  });
350
282
  let visitedEntries = 0;
351
- // The walk backpressures at the capture width. Every started read settles
352
- // before this observation can finish or release a failed attempt.
353
283
  const captures = new CaptureWork(WALK_CAPTURE_CONCURRENCY);
354
- // Content capture's leg spans its first read's start to its last read's end.
355
284
  let captureOpenedAt = 0;
356
285
  let captureClosedAt = 0;
357
- // The walk keeps the names of each listing its clock did not qualify, so
358
- // that a later listing can close it; one it could not take is null.
359
286
  const listings = new Map();
360
287
  const listing = (directory, stats) => {
361
288
  if (listingQualification(clock, stats) !== "qualified")
362
289
  listings.set(directory, []);
363
290
  };
291
+ const sealedFolders = new Map();
364
292
  const visit = async (directory, parentUUID, base = "") => {
365
- // A directory emptied mid-walk lists nothing. Its retained source closes
366
- // changed, so nothing that depended on it is admitted.
367
293
  let listed = true;
368
294
  const children = spent(() => {
369
295
  try {
@@ -384,10 +310,7 @@ async function walkRoot(input, cargo) {
384
310
  const relativePath = base ? `${base}/${child.name}` : child.name;
385
311
  if (pruned && !touchesSuspicion(relativePath))
386
312
  continue;
387
- // A listed name holds no separator and the directory is canonical.
388
313
  const absolutePath = directory.endsWith(sep) ? directory + child.name : directory + sep + child.name;
389
- // An entry gone since its listing changed its parent's entry list. A
390
- // listing whose entries cannot be examined hides them all.
391
314
  const stats = spent(() => {
392
315
  try {
393
316
  return lstatSync(absolutePath, { bigint: true });
@@ -413,9 +336,6 @@ async function walkRoot(input, cargo) {
413
336
  applyOwned.set(applied.placement.uuid, `${absolutePath} is being shown by ${ownerName(applied.owner)}`);
414
337
  }
415
338
  evidence && (evidence.entries += 1);
416
- // The walk is synchronous metadata work. Yield periodically so the
417
- // wire, Receive, and Apply keep running while a large root is proved.
418
- // A Watch ring during the yield remains a later generation.
419
339
  if (++visitedEntries % WALK_TURN_ENTRIES === 0) {
420
340
  await awaitTurn();
421
341
  input.checkpoint?.();
@@ -429,10 +349,13 @@ async function walkRoot(input, cargo) {
429
349
  }
430
350
  const fixedUUID = registeredBoundaryId || placed?.placement.uuid;
431
351
  const uuid = fixedUUID || existing?.uuid || randomUUID();
432
- // Bytes are read only where no trusted fingerprint proves them, in
433
- // every walk alike. Watch's names choose where to look, never what is
434
- // already proved. The proof is the object's, from whichever row last
435
- // proved it here (provedAt), never its identity's.
352
+ if (stats.isDirectory() && !registeredBoundaryId && sharingPolicy.sealed(relativePath)) {
353
+ entries.push({ uuid, type: "folder", parentUUID, name: child.name, relativePath,
354
+ absolutePath, payloadVersion: null, transportVersion: null, sighting: null, size: null, keptTarget: null,
355
+ gitHomeEntity: null, gitHomePath: null, ...sourceFingerprint(stats) });
356
+ sealedFolders.set(absolutePath, relativePath);
357
+ continue;
358
+ }
436
359
  const prior = existing ?? (stats.isDirectory() ? undefined : provedAt([relativePath])[0]);
437
360
  const reusable = prior !== undefined && sourceReusable(prior, stats);
438
361
  const observe = !reusable;
@@ -471,27 +394,23 @@ async function walkRoot(input, cargo) {
471
394
  type = classifyDirectory({ repository: marksRepository(gitMarker) });
472
395
  }
473
396
  catch (error) {
474
- // Neither its marker nor its entries can be read: it keeps its rail.
475
397
  unreadGround(absolutePath, true, error);
476
398
  type = existing?.type === "repo.git" ? "repo.git" : "folder";
477
399
  }
400
+ if (gitMarker)
401
+ readRoute(absolutePath);
478
402
  }
479
403
  else if (stats.isFile() && contentWaits(stats.size) !== null) {
480
404
  type = "file.binary";
481
405
  }
482
406
  else if (stats.isFile()) {
483
407
  evidence && (evidence.contentReads += 1);
484
- // Provisional identity; the pooled capture scheduled below settles
485
- // type, content head, and fingerprint before entries are read.
486
408
  type = "file.binary";
487
409
  deferredCapture = true;
488
410
  }
489
411
  else {
490
- // Unsupported ground is outside every graph.
491
412
  continue;
492
413
  }
493
- // Every directory is seen whole, a racy one again under the stamp its
494
- // listing closes under; a leaf's proof stands until it is read.
495
414
  if (observe || stats.isDirectory() || carriesOver(prior))
496
415
  sighting = sightingUnder(clock, stats);
497
416
  entries.push({
@@ -499,7 +418,6 @@ async function walkRoot(input, cargo) {
499
418
  ...(fixedUUID ? { fixedUUID } : {}),
500
419
  type,
501
420
  parentUUID,
502
- // Logical naming is attributed after identity, not to an old path occupant.
503
421
  name: child.name,
504
422
  relativePath,
505
423
  absolutePath,
@@ -508,6 +426,8 @@ async function walkRoot(input, cargo) {
508
426
  sighting,
509
427
  size,
510
428
  keptTarget,
429
+ gitHomeEntity: null,
430
+ gitHomePath: null,
511
431
  ...(linkTarget !== undefined ? { linkTarget } : {}),
512
432
  ...(gitMarker !== undefined ? { gitMarker } : {}),
513
433
  ...sourceFingerprint(stats),
@@ -522,8 +442,6 @@ async function walkRoot(input, cargo) {
522
442
  await captures.add(async () => {
523
443
  const taskStarted = measureEvidence ? performance.now() : 0;
524
444
  let current = stats;
525
- // Bytes a Send may carry are sealed by the read that observes
526
- // them, exactly as a named capture does; nothing reads them twice.
527
445
  const seals = plansSendRecords && !withheldByPolicy(relativePath);
528
446
  for (let attempt = 1;; attempt++) {
529
447
  try {
@@ -538,16 +456,12 @@ async function walkRoot(input, cargo) {
538
456
  entry.size = captured.bytes;
539
457
  entry.sighting = sightingUnder(clock, current);
540
458
  Object.assign(entry, sourceFingerprint(current));
541
- // A layout of more than one block is kept by the read that
542
- // derived it, so no later reader rereads the bytes for it.
543
459
  if (!seals && captured.layout.chunks.length > 1)
544
460
  await writeLayoutHint(cacheDir, captured.layout);
545
461
  return;
546
462
  }
547
463
  catch (error) {
548
464
  if (!captureChurn(error)) {
549
- // Present, but its bytes are unreadable: only its own result
550
- // waits, and it keeps its last-known rail meanwhile.
551
465
  unreadGround(absolutePath, false, error);
552
466
  if (existing && existing.type !== "folder" && existing.type !== "repo.git" && existing.type !== "workspace") {
553
467
  entry.type = existing.type;
@@ -558,7 +472,6 @@ async function walkRoot(input, cargo) {
558
472
  entry.sighting = existing?.sighting ?? null;
559
473
  return;
560
474
  }
561
- // Units wait only on this file; otherwise the root restarts.
562
475
  const stale = (detail, cause) => {
563
476
  if (!input.units)
564
477
  throw new StaleCaptureError(detail, { cause });
@@ -567,9 +480,6 @@ async function walkRoot(input, cargo) {
567
480
  if (attempt >= STALE_CAPTURE_ATTEMPTS) {
568
481
  return stale(`${absolutePath} kept changing while being captured`, error);
569
482
  }
570
- // The file moved mid-read. Capture what stands there now —
571
- // the walk publishes point-in-time truth, not the first bytes
572
- // it happened to observe.
573
483
  try {
574
484
  current = lstatSync(absolutePath, { bigint: true });
575
485
  }
@@ -587,8 +497,6 @@ async function walkRoot(input, cargo) {
587
497
  }
588
498
  });
589
499
  }
590
- // An Enter's staged tree is Apply's install wherever a person moves its
591
- // root: what it holds projects at the window's end.
592
500
  if (placed?.placement.opaque)
593
501
  applyHidden.add(absolutePath);
594
502
  if (stats.isDirectory() && !stats.isSymbolicLink() && !unread.has(absolutePath) && !placed?.placement.opaque) {
@@ -603,15 +511,9 @@ async function walkRoot(input, cargo) {
603
511
  if (measureEvidence && evidence && captureOpenedAt !== 0) {
604
512
  evidence.captureMs += captureClosedAt - captureOpenedAt;
605
513
  }
606
- // An unread directory, or ground Apply holds whole, hides its entries, not
607
- // their existence: every row last known there that the walk did not reach
608
- // is carried unchanged, neither refreshed nor absent. Nothing was read
609
- // there, so nothing there is a source of this walk.
610
- const hidden = new Set();
514
+ const hidden = new Set(sealedFolders.values());
611
515
  const unlisted = new Set([...[...unread].filter(([, gap]) => gap.directory).map(([address]) => address),
612
- ...applyHidden].map(address => resolve(address)));
613
- /** A stored address lies beneath an unlisted directory: one climb of its
614
- * own ancestors, never a scan of every unlisted directory. */
516
+ ...applyHidden, ...sealedFolders.keys()].map(address => resolve(address)));
615
517
  const beneathUnlisted = (address) => {
616
518
  for (let path = address, parent = dirname(path);; path = parent, parent = dirname(path)) {
617
519
  if (unlisted.has(path))
@@ -630,10 +532,6 @@ async function walkRoot(input, cargo) {
630
532
  hidden.add(row.relativePath);
631
533
  });
632
534
  }
633
- // A carried row stands only beneath a parent this walk read again as the
634
- // object O held there, or carried, at an address the walk did not read. A
635
- // folder that became a repository, or one that stopped being one, is still
636
- // that object: its members are files like any other.
637
535
  if (carried.size) {
638
536
  const walked = new Map();
639
537
  await eachInTurns(entries, entry => { if (!carried.has(entry))
@@ -655,9 +553,6 @@ async function walkRoot(input, cargo) {
655
553
  }
656
554
  });
657
555
  }
658
- // The proof closes what this walk read. A carried row's signature is O's
659
- // last belief, not a read, so it is no source: restating it would compare
660
- // O with now and hold every later absence open forever.
661
556
  const readEntries = [];
662
557
  await eachInTurns(entries, entry => { if (!hidden.has(entry.relativePath) && !carried.has(entry))
663
558
  readEntries.push(entry); });
@@ -671,62 +566,56 @@ async function walkRoot(input, cargo) {
671
566
  throw error;
672
567
  }
673
568
  }, list: listAgain }, { clock, names: listings }));
674
- // Units close the walk once, outside SQLite, and wait only where it moved.
675
- // A cold journey concludes every membership at once: its walk closes on a
676
- // content thread before anything trusts it, and again at admission.
677
569
  if (!input.units) {
678
570
  await closePhysicallyOffThread(witnessProof([await finishStepsInTurns(groundProof.witness())]), "complete");
679
571
  }
680
572
  const rootProofs = [
681
573
  admissionProof(() => assertQualified(database, stamp)),
682
574
  ...[...enclosedStamps.values()].map(enclosed => admissionProof(() => assertQualified(database, enclosed))),
683
- witnessProof([sharingPolicy.witness]),
684
- // Units read around every window open at collection. One that binds
685
- // later shows nothing but under a ground hold, which crosses exactly the
686
- // units that read its ground, so no root-wide answer is needed. A cold
687
- // journey claims its whole root, so any window beginning or ending in it
688
- // makes the walk stale.
575
+ admissionProof(() => sharingPolicy.validate()),
689
576
  ...(!input.units ? [admissionProof(ownership.seal().assertCurrent)] : []),
690
577
  ];
691
578
  const sourceProof = { physical: groundProof, dependencies: rootProofs };
692
579
  const observedByPath = new Map();
693
580
  await eachInTurns(entries, entry => observedByPath.set(entry.relativePath, entry));
694
- // Identities whose collection did not complete, with why. A repository
695
- // that cannot be read fails alone: its files are their own entities.
696
581
  const failed = new Map();
697
582
  const unitEvidence = async (whole) => {
698
583
  for (const [path, cause] of failedPaths)
699
584
  withhold(failed, observedByPath.get(path).uuid, cause);
700
- // Identities standing on unread ground wait until it can be read; one
701
- // Apply is showing is owed to its window's end, which rings it.
702
- if (unread.size || applyOwned.size)
585
+ const checkouts = [];
586
+ if (unread.size || applyOwned.size || gitRoutes.size)
703
587
  await eachInTurns(entries, entry => {
704
588
  const unreadable = unread.get(entry.absolutePath)?.reason;
705
589
  const shown = applyOwned.get(entry.uuid);
590
+ const route = carried.has(entry) ? undefined : gitRoutes.get(entry.absolutePath);
591
+ if (route)
592
+ checkouts.push({ entry, route });
706
593
  if (unreadable)
707
594
  withhold(failed, entry.uuid, { kind: "unavailable", reason: unreadable });
708
595
  else if (shown)
709
596
  withhold(failed, entry.uuid, { kind: "owed", reason: shown, address: entry.absolutePath });
710
597
  });
598
+ const routes = new Map();
599
+ for (const { entry, route } of checkouts) {
600
+ routes.set(entry.uuid, routeNames(route));
601
+ const owed = routeShownBy(owners, route) ?? (plansSendRecords
602
+ ? await lostToHolder(database, cacheDir, { synced: sharedByUuid.get(entry.uuid), type: entry.type,
603
+ parentUUID: entry.parentUUID, name: entry.name, marker: entry.gitMarker ?? null, route })
604
+ : null);
605
+ if (owed)
606
+ withhold(failed, entry.uuid, { kind: "owed", reason: owed, address: entry.absolutePath });
607
+ }
711
608
  return {
712
- walk: groundProof, failed, rootProofs, policy: sharingPolicy.text, physicalReads, whole, unread,
609
+ walk: groundProof, failed, rootProofs, physicalReads, whole, unread, gitRoutes: routes,
713
610
  namespace: [...unread.values()].find(gap => gap.directory)?.reason ?? null,
714
611
  };
715
612
  };
716
613
  const reconcileStarted = measureEvidence ? performance.now() : 0;
717
- // Proved return (docs/detection.md): an entry standing where O shows
718
- // nothing, or another object, may be a retained identity coming back, so
719
- // only its physical key is asked about and a quiet pass asks nothing.
720
614
  const probes = new Set();
721
615
  await eachBatchInTurns(entries, batch => priorsAt(batch.map(entry => entry.relativePath)).forEach((prior, index) => {
722
616
  if (prior?.physicalKey !== batch[index].physicalKey)
723
617
  probes.add(batch[index].physicalKey);
724
618
  }));
725
- // A batch of keys at a time, so a pass as large as its home keeps
726
- // answering. Each batch reads afresh and admission compares every returned
727
- // row with what was read, so a row that changes between batches is stale
728
- // as one that changes after a single read would be. A row that moves to a
729
- // later batch's key is read twice: that pass is stale too.
730
619
  const storedRetained = [];
731
620
  const retainedRead = new Set();
732
621
  await eachBatchInTurns(probes, batch => readRetainedRows(database, rootUUID, batch).forEach(row => {
@@ -751,27 +640,30 @@ async function walkRoot(input, cargo) {
751
640
  evidence.reconcileMs += performance.now() - reconcileStarted;
752
641
  const absentIds = await mapInTurns(absent, row => row.uuid);
753
642
  const examination = () => ({ examined: existingRows, absent: absentIds, returned, revealed, reveals });
754
- // A listing its walk's clock did not qualify cannot close by its signature:
755
- // an entry may have moved from a directory not yet listed into one already
756
- // listed. A racy one is read again under a later stamp, once its interval
757
- // since the walk's stamp has passed, so a Git command that wrote it between
758
- // the stamp and the walk closes here rather than deferring the whole pass
759
- // at admission. The stamp, not the timer, says whether that interval
760
- // passed, as for discovery's readings; that later read is the directory's
761
- // sighting. One whose directory changed since its walk, by Apply's reveal
762
- // or a person's write, is moving ground, not racy: its unit defers until
763
- // the ring its change makes. One that stays open stays racy and defers its
764
- // unit. A cold journey claims its root's whole namespace, so
765
- // any listing that stays open, an unqualified one read again by agreement
766
- // included, makes its walk stale; units read their unqualified listings
767
- // again at admission.
768
- if (groundProof.racy.length) {
769
- const open = await groundProof.closeRacy(async () => (await stampContentClock(database, clockRoot)).boundary, groundProof.racyWaitMs - (performance.now() - stamp.takenAt), RACY_READINGS, input.checkpoint);
770
- if (open !== null && !input.units)
643
+ const priorByUuid = new Map();
644
+ await eachInTurns(activeRows, row => priorByUuid.set(row.uuid, row));
645
+ const leafReads = [];
646
+ let waitMs = groundProof.racyWaitMs;
647
+ await eachInTurns(readEntries, entry => {
648
+ if (CONTAINERS.has(entry.type) || failedPaths.has(entry.relativePath) || unread.has(entry.absolutePath))
649
+ return;
650
+ const uuid = resolvedIdentity.get(entry.relativePath);
651
+ if (presenceHeld(uuid === undefined ? undefined : priorByUuid.get(uuid), { ...entry, rootUUID }))
652
+ return;
653
+ const wait = presenceWaitMs(entry);
654
+ if (wait === null)
655
+ return;
656
+ leafReads.push(presenceRead(entry, presence => { entry.presence = presence; }));
657
+ waitMs = Math.max(waitMs, wait);
658
+ });
659
+ if (groundProof.racy.length || leafReads.length) {
660
+ await closeRacy([...groundProof.racyReads(), ...leafReads], async () => (await stampContentClock(database, clockRoot)).boundary, waitMs - (performance.now() - stamp.takenAt), RACY_READINGS, input.checkpoint);
661
+ const open = groundProof.racy[0] ?? groundProof.moved[0];
662
+ if (open !== undefined && !input.units)
771
663
  throw new StaleCaptureError(`${open} did not list again as walked`);
772
- for (const [path, closed] of groundProof.closedUnder) {
664
+ for (const [path, under] of groundProof.closedUnder) {
773
665
  const entry = observedByPath.get(path);
774
- entry.sighting = sightingUnder(closed, signedStat(entry.sourceSignature));
666
+ entry.sighting = sightingUnder(under, signedStat(entry.sourceSignature));
775
667
  }
776
668
  }
777
669
  if (!input.units) {
@@ -779,16 +671,8 @@ async function walkRoot(input, cargo) {
779
671
  if (open !== null)
780
672
  throw new StaleCaptureError(`${open} did not list again as walked`);
781
673
  }
782
- const priorByUuid = new Map();
783
- await eachInTurns(activeRows, row => priorByUuid.set(row.uuid, row));
784
- // A created leaf whose bytes the walk could not read is no part of this
785
- // pass: nothing read states it and no prior row hangs on it, so the ground
786
- // beside it, its new folder included, admits without it. Its address stays
787
- // unread, so the root keeps retrying and a repository holding it waits.
788
674
  const unstated = new Set();
789
675
  await eachInTurns(entries, entry => {
790
- // An unresolved observation is a create. No provisional pathname UUID
791
- // can supply identity or parentage after the common resolver has run.
792
676
  const resolved = resolvedIdentity.get(entry.relativePath);
793
677
  if (resolved === undefined && unread.get(entry.absolutePath)?.directory === false)
794
678
  unstated.add(entry);
@@ -800,17 +684,8 @@ async function walkRoot(input, cargo) {
800
684
  entries[kept++] = entry; });
801
685
  entries.length = kept;
802
686
  }
803
- // The retained identities entries claimed, as stored. One back where it
804
- // stood, as its absence's top or beneath a container back where it stood,
805
- // is revealed: its absence lifts over it. Any other return is placed where
806
- // it stands now, as the identity it always was. Beneath a revealed top,
807
- // each stored child of a returned container that has not returned stays
808
- // absent under its own top (ground-store.ts reveal).
809
687
  const returned = new Map(), revealed = new Map();
810
688
  const reveals = new Map();
811
- // Returns stored where this walk's scope reads: each moved within it. One
812
- // stored beneath ground the walk could not list waits on that gap like any
813
- // other identity decision there (admission-units.ts), never on a wider read.
814
689
  const returnedWithin = new Set();
815
690
  if (retained.length) {
816
691
  const claimedAt = new Map(), framedRetained = new Map();
@@ -820,8 +695,6 @@ async function walkRoot(input, cargo) {
820
695
  await eachInTurns(storedRetained, ({ top: _top, ...row }) => { if (claimedAt.has(row.uuid))
821
696
  returned.set(row.uuid, row); });
822
697
  const back = (uuid) => claimedAt.get(uuid) === framedRetained.get(uuid).relativePath;
823
- // The revealed top whose range stores each returned row, if any: its
824
- // own, when it is a top back where it stood, else its container's.
825
698
  const tops = new Map(), opened = new Map();
826
699
  const topOver = (uuid) => {
827
700
  let top = tops.get(uuid);
@@ -869,17 +742,6 @@ async function walkRoot(input, cargo) {
869
742
  if (input.folders)
870
743
  await eachInTurns(carried, entry => context.add(entry.uuid));
871
744
  if (input.crossing) {
872
- // The scope holds the rows it examines, context apart. A return it
873
- // reveals lifts the absence whose range it consumes. A return stored
874
- // where it read crossed nothing, so only an alias elsewhere can make it
875
- // cross, as for any identity it does not hold; any other return was
876
- // stored where the scope never read, so it arrived from elsewhere in the
877
- // root. An identity the scope kept by address on another object than
878
- // its own crosses too when that object's identity is stored outside the
879
- // scope: a directory claims its object before any address
880
- // (docs/detection.md), so the whole root could answer otherwise, as in a
881
- // folder swap, or a folder and a file swapped, whose names Watch heard in
882
- // different cuts.
883
745
  const scope = new Set(revealed.keys());
884
746
  await eachInTurns(existingRows, row => { if (!context.has(row.uuid))
885
747
  scope.add(row.uuid); });
@@ -917,17 +779,16 @@ async function walkRoot(input, cargo) {
917
779
  group.push({ uuid: entry.uuid, name: entry.name });
918
780
  children.set(entry.parentUUID, group);
919
781
  });
920
- // canonicalVersion is a pure function of these identity inputs, so a stored
921
- // leaf row whose inputs are unchanged already holds the exact version —
922
- // recomputing 70k hashes on a stable restart pass proved nothing. Container
923
- // versions still derive from live membership, which is never persisted.
924
782
  const existingVersionByUuid = new Map(returned);
925
783
  await eachInTurns(existingRows, row => existingVersionByUuid.set(row.uuid, row));
926
784
  const rowFromEntry = (entry) => {
927
785
  const container = DERIVED_PAYLOAD.has(entry.type);
928
- const filesystemMode = shownMode(entry.filesystemMode, existingVersionByUuid.get(entry.uuid)?.filesystemMode);
786
+ const existing = existingVersionByUuid.get(entry.uuid);
787
+ const filesystemMode = shownMode(entry.filesystemMode, existing?.filesystemMode);
929
788
  const fileMode = portableFileMode(entry.type, filesystemMode);
930
- const stored = container && !context.has(entry.uuid) ? undefined : existingVersionByUuid.get(entry.uuid);
789
+ const mtime = entry.sourceSignature === null ? existing?.mtime ?? null
790
+ : shownTime(entry.type, signedStat(entry.sourceSignature).mtimeNs, existing);
791
+ const stored = container && !context.has(entry.uuid) ? undefined : existing;
931
792
  const storedVersion = stored !== undefined
932
793
  && stored.type === entry.type
933
794
  && stored.parentUUID === entry.parentUUID
@@ -935,6 +796,7 @@ async function walkRoot(input, cargo) {
935
796
  && stored.status === "active"
936
797
  && stored.payloadVersion === entry.payloadVersion
937
798
  && portableFileMode(stored.type, stored.filesystemMode) === fileMode
799
+ && stored.mtime === mtime
938
800
  ? stored.version
939
801
  : null;
940
802
  const record = {
@@ -952,12 +814,16 @@ async function walkRoot(input, cargo) {
952
814
  ? membershipHash(children.get(entry.uuid) ?? [], sha256Hex)
953
815
  : entry.payloadVersion,
954
816
  fileMode,
817
+ mtime,
955
818
  }, sha256Hex),
956
819
  payloadVersion: entry.payloadVersion,
957
820
  fileMode,
821
+ mtime,
958
822
  size: entry.size,
959
823
  linkTarget: entry.linkTarget ?? entry.keptTarget,
960
824
  transportVersion: entry.transportVersion,
825
+ gitHomeEntity: entry.gitHomeEntity,
826
+ gitHomePath: entry.gitHomePath,
961
827
  };
962
828
  return {
963
829
  record,
@@ -967,21 +833,13 @@ async function walkRoot(input, cargo) {
967
833
  sourceSignature: entry.sourceSignature,
968
834
  filesystemMode,
969
835
  sighting: entry.sighting,
836
+ ...(entry.presence ? { presence: entry.presence } : {}),
970
837
  };
971
838
  };
972
839
  const rowsFromEntries = () => mapInTurns(entries, rowFromEntry);
973
840
  const entryByUuid = new Map();
974
841
  await eachInTurns(entries, entry => entryByUuid.set(entry.uuid, entry));
975
- // Each repository's state is its Git directory, which Git reads: asked
976
- // whenever Watch named its storage, or the walk is complete or found it
977
- // new. The state is compared with the one its identity's row last
978
- // recorded, wherever that row stood (a moved repository is the same), and a
979
- // changed state is uploaded once, as the artifact its record carries. A
980
- // repository travels when everything its disk holds can reach the
981
- // receiver; when some of it cannot, that repository alone waits for its
982
- // files to change, and its neighbours travel.
983
842
  const repositories = [];
984
- // One that left Git territory, the bound, or the ground, waits for nothing.
985
843
  await eachInTurns(absent, row => { if (row.type === "repo.git" || groundWaits(row))
986
844
  waitAnswers.set(row.uuid, null); });
987
845
  await eachInTurns(entries, entry => {
@@ -998,15 +856,13 @@ async function walkRoot(input, cargo) {
998
856
  if (prior?.type === "repo.git") {
999
857
  entry.payloadVersion = prior.payloadVersion;
1000
858
  entry.transportVersion = prior.transportVersion;
859
+ entry.gitHomeEntity = prior.gitHomeEntity;
860
+ entry.gitHomePath = prior.gitHomePath;
1001
861
  }
1002
862
  if (scanSuspects === null || prior?.type !== "repo.git"
1003
863
  || scanScope.covers(entry.relativePath ? `${entry.relativePath}/.git` : ".git"))
1004
864
  repositories.push(entry);
1005
865
  });
1006
- // A linked worktree's Git directory lives in its main checkout's, a
1007
- // submodule's in its superproject's (git/home.ts): the pass names every
1008
- // repository it holds, and observes those with their own `.git` directory
1009
- // first, whose new states a worktree's upload is thin against.
1010
866
  const heldRepositories = entries.filter(entry => entry.type === "repo.git");
1011
867
  const gitFollows = new Map();
1012
868
  const gitOwners = groundGitOwners(existsSync(database) ? groundDatabase(database) : null, { root: rootPath, repositories: () => heldRepositories });
@@ -1017,11 +873,13 @@ async function walkRoot(input, cargo) {
1017
873
  evidence && (evidence.gitInspections += 1);
1018
874
  try {
1019
875
  const shared = sharedByUuid.get(repository.uuid);
1020
- const observed = await spentAwaiting(() => observeRepository(cacheDir, repository.absolutePath, repository, shared?.type === "repo.git" ? shared : null, gitOwners, !!input.units, restorePackage), "gitMs");
876
+ const observed = await spentAwaiting(() => observeRepository(cacheDir, repository.absolutePath, repository, shared?.type === "repo.git" ? shared : null, gitOwners, restorePackage), "gitMs");
1021
877
  if (observed.kind === "changed") {
1022
878
  evidence && (evidence.repositoryCaptures += 1);
1023
879
  repository.payloadVersion = observed.payloadVersion;
1024
880
  repository.transportVersion = observed.transportVersion;
881
+ repository.gitHomeEntity = observed.home?.entity ?? null;
882
+ repository.gitHomePath = observed.home?.path ?? null;
1025
883
  if (observed.follows.length > 0)
1026
884
  gitFollows.set(repository.uuid, observed.follows);
1027
885
  }
@@ -1034,10 +892,6 @@ async function walkRoot(input, cargo) {
1034
892
  catch (error) {
1035
893
  if (endsPass(error) || (!input.units && (error instanceof CaptureSourceChangedError || staleCapture(error))))
1036
894
  throw error;
1037
- // A repository whose state this pass could not read waits alone; its
1038
- // parent and neighbours travel. A refusal waits for its files to
1039
- // ring. A units lane withholds a fault and reads it again; a cold
1040
- // journey leaves it to the first pass over the root that follows.
1041
895
  const refusal = !moved(error) && !denied(error) && isRefusal(error);
1042
896
  if (input.units && !refusal)
1043
897
  withhold(failedPaths, repository.relativePath, withheldBy(error, repository.absolutePath));
@@ -1046,25 +900,17 @@ async function walkRoot(input, cargo) {
1046
900
  reason: error instanceof Error ? error.message : String(error) });
1047
901
  }
1048
902
  });
1049
- // Ground no read has yet given a state a receiver can accept waits:
1050
- // selection holds it and what stands under it (Live's publication `waiting`).
1051
903
  const waiting = new Set();
1052
904
  await eachInTurns(entries, entry => {
1053
905
  if (groundWaits(entry) && !context.has(entry.uuid))
1054
906
  waiting.add(entry.uuid);
1055
907
  });
1056
- // A root that waits holds everything under it: nothing travels.
1057
908
  const rootUnread = waiting.has(rootUUID);
1058
- // The selector reads structure alone: identity, parent, name, type and
1059
- // address. Versions and content packaging follow the selection. A
1060
- // materialization boundary can have a portable parent outside this scan.
1061
909
  const node = (row) => row.uuid === rootUUID && row.parentUUID !== null
1062
910
  ? { uuid: row.uuid, parentUUID: null, name: row.name, type: row.type, relativePath: row.relativePath } : row;
1063
- const includes = (path, _rootId, directory) => sharingPolicy.includes(path, directory);
1064
- // Sharing's statements: those standing under no Trash, and those Trash
1065
- // hides, which remain prior results. Selection decides every Restore.
911
+ const skipRules = sharingPolicy.with(entries.flatMap(entry => entry.type === "repo.git" ? [entry.relativePath] : []));
912
+ const travels = (path, _rootId, directory) => skipRules.travels(path, directory);
1066
913
  const sharedActiveIds = plansSendRecords ? await materializedUUIDs(sharedRecords) : new Set();
1067
- // A first publication selects from nothing: only its root stands before it.
1068
914
  const beforeNodes = [], trashHidden = [];
1069
915
  if (plansSendRecords) {
1070
916
  await eachInTurns(sharingRows, row => {
@@ -1079,13 +925,11 @@ async function walkRoot(input, cargo) {
1079
925
  const selection = await finishStepsInTurns(selectPublicationSteps({
1080
926
  before: beforeNodes,
1081
927
  observed: await mapInTurns(entries, node),
1082
- includes,
928
+ travels,
1083
929
  waiting,
1084
930
  hidden: trashHidden,
1085
931
  }));
1086
932
  const persisting = input.suspicion === undefined;
1087
- // A direct persist is its own admission: every semantic phase answers first,
1088
- // then the original witnesses close as the write that trusts them posts.
1089
933
  const persist = async (observed, shared) => {
1090
934
  if (!persisting)
1091
935
  return;
@@ -1097,9 +941,6 @@ async function walkRoot(input, cargo) {
1097
941
  await eachInTurns(selection.withheld, hold => { whole ||= !holdsOnlyItself(hold.reason); });
1098
942
  const observedRows = await spentAwaiting(rowsFromEntries, "persistMs");
1099
943
  if (rootUnread) {
1100
- // Type and identity are filesystem facts, so they settle locally even
1101
- // when a repository's state cannot yet travel. A root whose own state
1102
- // waits sends nothing until it is read.
1103
944
  await persist(observedRows, null);
1104
945
  return {
1105
946
  kind: "observed",
@@ -1117,7 +958,6 @@ async function walkRoot(input, cargo) {
1117
958
  }
1118
959
  const observedByUuid = new Map();
1119
960
  await eachInTurns(observedRows, row => observedByUuid.set(row.record.uuid, row));
1120
- // A link's leaf is its target, as the walk read it where it read one.
1121
961
  const linkTarget = (row) => entryByUuid.get(row.record.uuid)?.linkTarget
1122
962
  ?? (lstatSync(row.absolutePath, { bigint: true }).isSymbolicLink() ? readLinkTarget(row.absolutePath) : undefined);
1123
963
  let rows = await mapInTurns(selection.selected, ({ uuid }) => selection.sources.get(uuid) === "before" || context.has(uuid)
@@ -1126,10 +966,6 @@ async function walkRoot(input, cargo) {
1126
966
  const currentUUIDs = new Set(), holds = new Set();
1127
967
  await eachInTurns(rows, row => currentUUIDs.add(row.record.uuid));
1128
968
  await eachInTurns(selection.withheld, hold => holds.add(hold.entityId));
1129
- // Sharing's identities this pass did not select. Current rows form one
1130
- // active tree from the root, so any selected absence whose parent stands is
1131
- // its own Trash; one beneath another absence inherits that Trash. A hold is
1132
- // no absence: it keeps its statement, even one Trash hid from selection.
1133
969
  const retainedRows = [], removed = new Set();
1134
970
  if (input.suspicion !== undefined)
1135
971
  await eachInTurns(sharingRows, row => {
@@ -1140,8 +976,6 @@ async function walkRoot(input, cargo) {
1140
976
  removed.add(row.uuid);
1141
977
  }
1142
978
  });
1143
- // Membership is derived from the selected graph, never from observed-only
1144
- // children. Inactive history is retained but contributes no membership.
1145
979
  const selectedChildren = new Map();
1146
980
  await eachInTurns(rows, row => {
1147
981
  if (row.record.parentUUID === null || row.record.status !== "active")
@@ -1157,15 +991,11 @@ async function walkRoot(input, cargo) {
1157
991
  payloadVersion: membershipHash(selectedChildren.get(row.record.uuid) ?? [], sha256Hex) }, sha256Hex) } };
1158
992
  });
1159
993
  await persist(observedRows, rows);
1160
- // Trash is decided over the graph after this pass: beneath a parent that
1161
- // returned, an absence is its own Trash, and a trashed folder's membership
1162
- // excludes the children that moved away (removals.ts).
1163
994
  const untrashed = await mapInTurns(rows, row => row.record);
1164
995
  await eachInTurns(retainedRows, row => untrashed.push(sharedRecordByUuid.get(row.uuid)));
1165
996
  const trashed = plansSendRecords && removed.size
1166
997
  ? await finishStepsInTurns(trashRemovedEntitiesSteps(untrashed, removed, sha256Hex)) : new Map();
1167
998
  const units = await unitEvidence(whole);
1168
- // Only changed selected content needs cargo, a replay or a manifest.
1169
999
  const changedRows = [];
1170
1000
  if (plansSendRecords) {
1171
1001
  await eachInTurns(rows, row => {
@@ -1178,17 +1008,7 @@ async function walkRoot(input, cargo) {
1178
1008
  }
1179
1009
  const changedContent = new Set();
1180
1010
  await eachInTurns(changedRows, row => changedContent.add(row.record.uuid));
1181
- // Changed selected content needs durable cargo. A read that observed it
1182
- // already sealed it. Content no read observed stands on the walk's proof,
1183
- // which admission closes: its name is adopted where it already stands
1184
- // cached, and otherwise it is read once now and must match the
1185
- // observation. A repository's artifact was sealed when its Git was read.
1186
- // Each selected link whose target was sealed, as the walk read it or else
1187
- // as the read that sealed it did, so a link whose proof was reused still
1188
- // replays whole.
1189
1011
  const sealedLinks = new Set();
1190
- // Content no read observed is carried without reading it where it can be
1191
- // (detection/unread-content.ts); only bytes read are staged.
1192
1012
  const stated = baselineStates(groundDatabase(database), ["file.text", "file.binary"]);
1193
1013
  const textBase = (uuid) => sharedRecordByUuid.get(uuid)?.payloadVersion ?? null;
1194
1014
  const binaryManifests = new Map();
@@ -1228,8 +1048,6 @@ async function walkRoot(input, cargo) {
1228
1048
  }
1229
1049
  }
1230
1050
  catch (error) {
1231
- // Units: whatever stopped the file's capture since its walk withholds
1232
- // its unit alone.
1233
1051
  if (!input.units || endsPass(error))
1234
1052
  throw error;
1235
1053
  withhold(failed, row.record.uuid, withheldBy(error, row.absolutePath));
@@ -1245,8 +1063,6 @@ async function walkRoot(input, cargo) {
1245
1063
  kind: "link", contentHash: observed }, bytes, "detect-link", cargo);
1246
1064
  sealedLinks.add(row.record.uuid);
1247
1065
  });
1248
- // Manifests and replays read the sealed names of changed content; no other
1249
- // stage is cargo. A failed identity is on neither side of the plan.
1250
1066
  const sealed = new Set();
1251
1067
  const binaries = [], texts = [];
1252
1068
  await eachInTurns(changedRows, ({ record }) => {
@@ -1259,11 +1075,7 @@ async function walkRoot(input, cargo) {
1259
1075
  else if (record.type === "file.text")
1260
1076
  texts.push(record);
1261
1077
  });
1262
- // A walk's group is open: it holds nothing, so naming answers no held
1263
- // bytes and every replay below reads its sealed name.
1264
1078
  await cargo.publish(sealed);
1265
- // A binary replay carries its manifest: the hint when it is exactly valid,
1266
- // otherwise derived again from the bytes this pass just sealed.
1267
1079
  for (const record of binaries) {
1268
1080
  if (binaryManifests.has(record.uuid))
1269
1081
  continue;
@@ -1272,9 +1084,6 @@ async function walkRoot(input, cargo) {
1272
1084
  throw new Error("detected binary file has no content head");
1273
1085
  binaryManifests.set(record.uuid, (await contentLayout(cacheDir, artifact)).index);
1274
1086
  }
1275
- // A text replay is built on a content thread from the bytes this pass just
1276
- // sealed; a result it never read replays whole. A record that newly
1277
- // travels replays whole.
1278
1087
  const textReplays = new Map(await Promise.all(await mapInTurns(texts, async (record) => {
1279
1088
  if (!record.payloadVersion)
1280
1089
  throw new Error("detected text file has no content head");
@@ -1283,9 +1092,6 @@ async function walkRoot(input, cargo) {
1283
1092
  resultBytes: null }, "complete");
1284
1093
  return [record.uuid, replay];
1285
1094
  })));
1286
- // Replays exist to mint Send records; a scan that plans none builds none —
1287
- // and its walk staged no cache bytes for replays to read. A failed
1288
- // identity is on neither side of the plan, retained history included.
1289
1095
  const detectedOf = (row) => {
1290
1096
  let replay = { kind: "structure" };
1291
1097
  if (changedContent.has(row.record.uuid)) {
@@ -1334,8 +1140,6 @@ async function walkRoot(input, cargo) {
1334
1140
  };
1335
1141
  const detected = [];
1336
1142
  if (plansSendRecords) {
1337
- // Restore needs a proved return publication selects, as Trash needs a
1338
- // proved removal: an observed result for a statement of its own Trash.
1339
1143
  await eachInTurns(rows, row => {
1340
1144
  if (failed.has(row.record.uuid))
1341
1145
  return;
@@ -1380,4 +1184,3 @@ async function walkRoot(input, cargo) {
1380
1184
  ...examination(),
1381
1185
  };
1382
1186
  }
1383
- //# sourceMappingURL=root-walk.js.map