@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.
- package/dist/accepted-fold.js +0 -36
- package/dist/accepted-tail.js +0 -3
- package/dist/accepted-view.js +0 -1
- package/dist/agent-execution.js +0 -2
- package/dist/agent-instructions.js +0 -6
- package/dist/apply-attempt-memory.js +0 -5
- package/dist/apply-control.js +0 -50
- package/dist/apply-displaced-tree.js +0 -51
- package/dist/apply-durability.js +0 -16
- package/dist/apply-enter-build.js +2 -46
- package/dist/apply-enter-plan.js +0 -59
- package/dist/apply-fingerprint.js +0 -21
- package/dist/apply-git-held.js +4 -90
- package/dist/apply-git-storage.js +2 -38
- package/dist/apply-kept.js +0 -40
- package/dist/apply-local-work.js +0 -12
- package/dist/apply-map.js +18 -122
- package/dist/apply-showing.js +0 -71
- package/dist/apply-shown-again.js +0 -22
- package/dist/apply-spelling.js +0 -31
- package/dist/apply-trash-keep.js +5 -28
- package/dist/apply-window-cargo.js +0 -55
- package/dist/apply-window-ground.js +9 -71
- package/dist/apply-window-host.js +42 -421
- package/dist/apply-window-lane.js +0 -73
- package/dist/apply-window-line.js +0 -33
- package/dist/apply-window-recovery.js +0 -26
- package/dist/apply-window-reveal.js +0 -32
- package/dist/apply-window-rows.js +0 -53
- package/dist/apply-window-saves.js +0 -184
- package/dist/apply-window-store.js +0 -61
- package/dist/apply-window-verify.js +0 -42
- package/dist/authority-binding.js +0 -28
- package/dist/authorization/device-key.js +0 -1
- package/dist/authorization/index.js +0 -2
- package/dist/authorization/issuer.js +0 -1
- package/dist/authorization/key-store.js +0 -1
- package/dist/authorization/native-keyring.js +0 -1
- package/dist/authorization/recovery-client.js +0 -2
- package/dist/authorization/recovery-host.js +0 -1
- package/dist/authorization/recovery.js +0 -3
- package/dist/authorization/registration-http.js +0 -2
- package/dist/authorization/secret-process.js +0 -2
- package/dist/authorization/setup-http.js +0 -1
- package/dist/automations-cli-host.js +0 -2
- package/dist/background-error.js +0 -5
- package/dist/baseline-content.js +0 -3
- package/dist/billing/cli.js +0 -10
- package/dist/billing/mount.js +0 -1
- package/dist/billing/tools.js +0 -3
- package/dist/boot-identity.js +0 -12
- package/dist/browser-host.js +0 -15
- package/dist/builtin-agents.js +0 -8
- package/dist/capture-work.js +0 -9
- package/dist/captured-rows.js +4 -6
- package/dist/cargo-group.js +0 -48
- package/dist/cargo-journal.js +0 -36
- package/dist/channel-session.js +0 -9
- package/dist/chat-composition.js +0 -4
- package/dist/chat-host.js +0 -4
- package/dist/chat-toolbox.js +0 -2
- package/dist/chat-tools.js +0 -3
- package/dist/cli-arguments.js +17 -3
- package/dist/cli-commands.js +272 -0
- package/dist/cli.js +24 -72
- package/dist/construct-apply-host.js +0 -24
- package/dist/construct-door.js +3 -15
- package/dist/construct-ledger.js +3 -21
- package/dist/construct-products.js +0 -7
- package/dist/content-cache-collection.js +1 -27
- package/dist/content-cache-fences.js +0 -30
- package/dist/content-cache-host.js +0 -216
- package/dist/content-cache-index.js +0 -24
- package/dist/content-cache-namespace.js +0 -52
- package/dist/content-cache-partials.js +0 -23
- package/dist/content-cache-retention.js +1 -53
- package/dist/content-capture-pool.js +6 -134
- package/dist/content-capture-worker.js +4 -14
- package/dist/content-clock.js +1 -177
- package/dist/content-direct.js +0 -39
- package/dist/content-failure.js +0 -8
- package/dist/content-qualification.js +0 -56
- package/dist/content-wire-codec.js +0 -8
- package/dist/credentials-host.js +0 -2
- package/dist/derived-relocation.js +0 -27
- package/dist/detection/accepted-result.js +0 -14
- package/dist/detection/admission-save.js +0 -10
- package/dist/detection/admission-units.js +3 -93
- package/dist/detection/alias-discovery.js +0 -19
- package/dist/detection/alias-examination.js +0 -22
- package/dist/detection/apply-ownership.js +4 -52
- package/dist/detection/basis-advanced.js +0 -11
- package/dist/detection/cached-replay.js +0 -20
- package/dist/detection/capture-outcome.js +0 -20
- package/dist/detection/container-membership.js +0 -19
- package/dist/detection/detect-cancelled.js +0 -3
- package/dist/detection/directory-proof.js +0 -20
- package/dist/detection/dispositions.js +0 -29
- package/dist/detection/examinations.js +0 -32
- package/dist/detection/ground-proof.js +20 -130
- package/dist/detection/ground-reader.js +0 -9
- package/dist/detection/identity-discovery.js +15 -60
- package/dist/detection/maintenance-sweep.js +1 -73
- package/dist/detection/notebook-basis.js +1 -5
- package/dist/detection/owed-examinations.js +0 -4
- package/dist/detection/owed-selection.js +14 -40
- package/dist/detection/policy-owed.js +165 -26
- package/dist/detection/racy-close.js +46 -0
- package/dist/detection/reconciliation-coverage.js +0 -4
- package/dist/detection/repository-state.js +6 -56
- package/dist/detection/reveal-save.js +0 -2
- package/dist/detection/root-examination.js +32 -105
- package/dist/detection/root-walk.js +98 -295
- package/dist/detection/runtime.js +57 -153
- package/dist/detection/scope-frame.js +1 -37
- package/dist/detection/scoped-identity-port.js +0 -21
- package/dist/detection/sealed-folders.js +57 -0
- package/dist/detection/skip-policy.js +185 -0
- package/dist/detection/spelled-lookup.js +0 -19
- package/dist/detection/storage-holder.js +60 -0
- package/dist/detection/thread-database.js +0 -9
- package/dist/detection/unread-content.js +0 -13
- package/dist/detection/unreadable.js +0 -3
- package/dist/detection/walk-law.js +0 -20
- package/dist/detection/walked-roots.js +0 -6
- package/dist/detection/withheld.js +0 -46
- package/dist/development/fly-guest.js +0 -3
- package/dist/development/fly.js +2 -11
- package/dist/development/profile.js +0 -8
- package/dist/drive/cloud-files/asks.js +5 -48
- package/dist/drive/cloud-files/binding.js +0 -14
- package/dist/drive/cloud-files/contents.js +14 -57
- package/dist/drive/cloud-files/door.js +5 -45
- package/dist/drive/cloud-files/paths.js +4 -37
- package/dist/drive/cloud-files/populated.js +0 -14
- package/dist/drive/cloud-files/reconcile.js +18 -97
- package/dist/drive/cloud-files/sync-root.js +7 -21
- package/dist/drive/cloud-files/turns.js +0 -25
- package/dist/drive/cloud-files/writes.js +19 -122
- package/dist/drive/computer.js +0 -19
- package/dist/drive/fuse-opens.js +0 -31
- package/dist/drive/fuse.js +23 -43
- package/dist/drive/kept.js +32 -80
- package/dist/drive/kernel.js +12 -24
- package/dist/drive/layout.js +31 -20
- package/dist/drive/mount.js +53 -125
- package/dist/drive/mountpoint.js +0 -19
- package/dist/drive/names.js +17 -0
- package/dist/drive/nfs/apple-double.js +4 -29
- package/dist/drive/nfs/attributes.js +3 -19
- package/dist/drive/nfs/handles.js +0 -37
- package/dist/drive/nfs/mount3.js +0 -4
- package/dist/drive/nfs/nfs3.js +4 -65
- package/dist/drive/nfs/rpc.js +0 -19
- package/dist/drive/nfs/server.js +0 -14
- package/dist/drive/nfs/xdr.js +0 -15
- package/dist/drive/nfs.js +34 -90
- package/dist/drive/operations.js +46 -120
- package/dist/drive/shelf.js +0 -12
- package/dist/drive-maps.js +54 -0
- package/dist/drive-program/client.js +128 -0
- package/dist/drive-program/ports.js +49 -0
- package/dist/drive-program/program.js +82 -0
- package/dist/drive-program/protocol.js +2 -0
- package/dist/durability-barrier.js +0 -60
- package/dist/entity-access-wire.js +0 -9
- package/dist/entity-channel-holdings.js +0 -17
- package/dist/entity-grant-watch.js +0 -8
- package/dist/entity-record-observability.js +0 -4
- package/dist/entity-record-saves.js +0 -23
- package/dist/entity-record-store.js +0 -51
- package/dist/error-facts.js +1 -3
- package/dist/faults/drain.js +2 -32
- package/dist/faults/queue.js +0 -22
- package/dist/faults/show.js +0 -6
- package/dist/file-time.js +21 -0
- package/dist/files-browser-host.js +15 -7
- package/dist/files-mcp-host.js +0 -6
- package/dist/files-observability.js +0 -1
- package/dist/files-program/client.js +90 -320
- package/dist/files-program/journeys.js +0 -4
- package/dist/files-program/program.js +67 -162
- package/dist/files-program/protocol.js +0 -5
- package/dist/files-register-host.js +8 -56
- package/dist/files-trace.js +0 -39
- package/dist/files-watch-host.js +226 -0
- package/dist/filesystem.js +0 -39
- package/dist/flush.js +0 -37
- package/dist/forward.js +0 -8
- package/dist/gateway.js +0 -9
- package/dist/git/ground-owners.js +0 -11
- package/dist/git/held-package.js +0 -43
- package/dist/git/home.js +79 -67
- package/dist/git/marker.js +0 -9
- package/dist/git/named-objects.js +0 -32
- package/dist/git/objects.js +0 -23
- package/dist/git/play.js +0 -42
- package/dist/git/quarantine.js +0 -47
- package/dist/git/rail.js +55 -286
- package/dist/git/read-state.js +8 -70
- package/dist/git/repository.js +0 -43
- package/dist/git/write-files.js +16 -84
- package/dist/git-binding.js +58 -80
- package/dist/git-cat-file.js +0 -18
- package/dist/git-command.js +1 -71
- package/dist/git-index-entries.js +0 -5
- package/dist/git-index-format.js +0 -71
- package/dist/git-install-lines.js +0 -2
- package/dist/git-launcher-process.js +0 -19
- package/dist/git-launcher.js +1 -33
- package/dist/git-proven-blobs.js +48 -0
- package/dist/graph-heads.js +0 -14
- package/dist/ground-basis.js +1 -183
- package/dist/ground-checkpoint-worker.js +0 -26
- package/dist/ground-checkpoints.js +0 -14
- package/dist/ground-contract.js +1 -43
- package/dist/ground-coordination.js +0 -82
- package/dist/ground-database.js +0 -88
- package/dist/ground-differences.js +0 -6
- package/dist/ground-holders.js +0 -8
- package/dist/ground-initialization-worker.js +0 -7
- package/dist/ground-initialization.js +0 -19
- package/dist/ground-install-saves.js +0 -15
- package/dist/ground-inventory-schema.js +3 -142
- package/dist/ground-marks.js +0 -16
- package/dist/ground-places.js +33 -0
- package/dist/ground-profile.js +0 -77
- package/dist/ground-reads.js +0 -58
- package/dist/ground-relations.js +0 -43
- package/dist/ground-root-index.js +0 -7
- package/dist/ground-row.js +5 -29
- package/dist/ground-save-ops.js +0 -14
- package/dist/ground-saver-worker.js +3 -56
- package/dist/ground-saver.js +0 -52
- package/dist/ground-store.js +10 -144
- package/dist/held-ground.js +60 -0
- package/dist/index.js +0 -1
- package/dist/initial-publication.js +0 -7
- package/dist/install-from-git.js +42 -0
- package/dist/installation/environment.js +0 -4
- package/dist/installation/lease.js +0 -3
- package/dist/installation/ownership.js +0 -13
- package/dist/installation/selection.js +0 -2
- package/dist/keychain/cli-io.js +0 -7
- package/dist/keychain/cli.js +0 -9
- package/dist/keychain/host.js +0 -7
- package/dist/keychain/http-mount.js +0 -10
- package/dist/keychain/key-wire.js +0 -8
- package/dist/keychain/presence-mac.js +0 -7
- package/dist/keychain/presence.js +0 -7
- package/dist/keychain/rail.js +0 -7
- package/dist/keychain/secret-apply.js +0 -11
- package/dist/keychain/shelf-from-ledger.js +0 -7
- package/dist/keychain/use-log.js +0 -6
- package/dist/keychain/vault-file.js +0 -7
- package/dist/line-judge.js +0 -41
- package/dist/line-loops.js +0 -3
- package/dist/link-target.js +0 -38
- package/dist/local-host.js +0 -16
- package/dist/loop-watch.js +0 -13
- package/dist/machine-host.js +29 -123
- package/dist/main.js +4 -5
- package/dist/materialize-records.js +109 -112
- package/dist/materialized-graph.js +0 -1
- package/dist/module-thread.js +0 -8
- package/dist/mount.js +0 -7
- package/dist/native/cloud-files.node +0 -0
- package/dist/native/windows-fs.node +0 -0
- package/dist/official-mcp-host.js +0 -2
- package/dist/on-demand-roots.js +0 -4
- package/dist/open-standing.js +0 -36
- package/dist/own-folders.js +56 -0
- package/dist/own-results.js +0 -31
- package/dist/package-pages.js +0 -13
- package/dist/patient-flush.js +0 -16
- package/dist/physical-path-witness.js +0 -28
- package/dist/placement-owed.js +0 -8
- package/dist/placement-tidy.js +0 -68
- package/dist/platform-product-host.js +0 -3
- package/dist/platform-tools.js +0 -3
- package/dist/process-lifecycle.js +0 -7
- package/dist/product-cli.js +0 -10
- package/dist/pty-host.js +0 -22
- package/dist/received-state.js +0 -46
- package/dist/reference-placement.js +0 -30
- package/dist/registry-graph.js +0 -89
- package/dist/registry-page-cache.js +4 -12
- package/dist/release-catalog.js +0 -3
- package/dist/root-install.js +2 -36
- package/dist/runtime-activity.js +0 -14
- package/dist/runtime-argv.js +0 -8
- package/dist/runtime-command-host.js +0 -17
- package/dist/runtime-node-flags.js +0 -10
- package/dist/runtime-wire-host.js +0 -4
- package/dist/service/adapter.js +0 -6
- package/dist/service/cli.js +12 -46
- package/dist/service/control.js +0 -3
- package/dist/service/index.js +0 -4
- package/dist/service/keepalive.js +2 -21
- package/dist/service/launchd.js +0 -8
- package/dist/service/owner.js +0 -1
- package/dist/service/policy.js +0 -7
- package/dist/service/portable.js +0 -8
- package/dist/service/recovery.js +0 -9
- package/dist/service/registration.js +0 -29
- package/dist/service/systemd-unit.js +0 -4
- package/dist/service/systemd.js +0 -9
- package/dist/service/windows-action.js +0 -12
- package/dist/service/windows-task.js +0 -10
- package/dist/service/windows.js +0 -4
- package/dist/sha256.js +0 -2
- package/dist/sharing-admission.js +0 -16
- package/dist/sharing-host.js +0 -7
- package/dist/sharing-mcp-host.js +0 -6
- package/dist/snapshot-delivery-baseline.js +0 -29
- package/dist/socket-marking.js +0 -9
- package/dist/source-proof.js +0 -29
- package/dist/source-signature.js +4 -93
- package/dist/source-witness.js +0 -6
- package/dist/sqlite-durability.js +0 -12
- package/dist/sqlite.js +0 -10
- package/dist/state-host.js +0 -2
- package/dist/state-store.js +1 -4
- package/dist/supervised-program/child.js +136 -0
- package/dist/supervised-program/messages.js +1 -0
- package/dist/supervised-program/parent.js +249 -0
- package/dist/sync-address.js +0 -16
- package/dist/sync-cli.js +0 -9
- package/dist/sync-setting.js +0 -5
- package/dist/tool-mcp-client.js +0 -2
- package/dist/toolbox-host.js +0 -2
- package/dist/transfer-instrumentation.js +0 -21
- package/dist/turns.js +0 -41
- package/dist/updates/artifacts.js +0 -56
- package/dist/updates/bootstrap.js +0 -53
- package/dist/updates/controller.js +1 -25
- package/dist/updates/isolated-command-lifetime.js +0 -13
- package/dist/updates/locked-packages.js +0 -5
- package/dist/updates/store.js +0 -11
- package/dist/updates/trust.js +0 -6
- package/dist/user-ground-host.js +162 -1501
- package/dist/watching/fsevents.js +3 -41
- package/dist/watching/git-storage.js +0 -24
- package/dist/watching/host.js +65 -275
- package/dist/watching/index.js +1 -2
- package/dist/watching/inotify.js +0 -31
- package/dist/windows-fs.js +0 -5
- package/dist/windows-owner-only.js +0 -17
- package/dist/wire-binary.js +0 -4
- package/dist/wire-client.js +0 -42
- package/dist/wire-join.js +0 -11
- package/dist/wire-outbox.js +0 -29
- package/dist/wire-request-scope.js +0 -3
- package/dist/wire-socket-relay.js +0 -53
- package/dist/workspace-add-intent.js +2 -11
- package/dist/workspace-add-staging.js +4 -99
- package/dist/workspace-host.js +0 -5
- package/dist/workspace-store.js +0 -6
- package/examinations/fixtures/private-wire-authority.js +14 -10
- package/examinations/native-service.mjs +1 -1
- package/examinations/runtime-upgrade.native-test.mjs +11 -8
- package/npm-shrinkwrap.json +14 -14
- package/package.json +8 -17
- package/PURPOSE.md +0 -1956
- package/dist/accepted-fold.d.ts +0 -51
- package/dist/accepted-fold.js.map +0 -1
- package/dist/accepted-tail.d.ts +0 -36
- package/dist/accepted-tail.js.map +0 -1
- package/dist/accepted-view.d.ts +0 -27
- package/dist/accepted-view.js.map +0 -1
- package/dist/agent-execution.d.ts +0 -83
- package/dist/agent-execution.js.map +0 -1
- package/dist/agent-instructions.d.ts +0 -7
- package/dist/agent-instructions.js.map +0 -1
- package/dist/apply-attempt-memory.d.ts +0 -13
- package/dist/apply-attempt-memory.js.map +0 -1
- package/dist/apply-control.d.ts +0 -85
- package/dist/apply-control.js.map +0 -1
- package/dist/apply-displaced-tree.d.ts +0 -63
- package/dist/apply-displaced-tree.js.map +0 -1
- package/dist/apply-durability.d.ts +0 -33
- package/dist/apply-durability.js.map +0 -1
- package/dist/apply-enter-build.d.ts +0 -91
- package/dist/apply-enter-build.js.map +0 -1
- package/dist/apply-enter-plan.d.ts +0 -79
- package/dist/apply-enter-plan.js.map +0 -1
- package/dist/apply-fingerprint.d.ts +0 -39
- package/dist/apply-fingerprint.js.map +0 -1
- package/dist/apply-git-held.d.ts +0 -29
- package/dist/apply-git-held.js.map +0 -1
- package/dist/apply-git-storage.d.ts +0 -38
- package/dist/apply-git-storage.js.map +0 -1
- package/dist/apply-kept.d.ts +0 -42
- package/dist/apply-kept.js.map +0 -1
- package/dist/apply-local-work.d.ts +0 -41
- package/dist/apply-local-work.js.map +0 -1
- package/dist/apply-map.d.ts +0 -116
- package/dist/apply-map.js.map +0 -1
- package/dist/apply-showing.d.ts +0 -104
- package/dist/apply-showing.js.map +0 -1
- package/dist/apply-shown-again.d.ts +0 -28
- package/dist/apply-shown-again.js.map +0 -1
- package/dist/apply-spelling.d.ts +0 -35
- package/dist/apply-spelling.js.map +0 -1
- package/dist/apply-trash-keep.d.ts +0 -96
- package/dist/apply-trash-keep.js.map +0 -1
- package/dist/apply-window-cargo.d.ts +0 -54
- package/dist/apply-window-cargo.js.map +0 -1
- package/dist/apply-window-ground.d.ts +0 -130
- package/dist/apply-window-ground.js.map +0 -1
- package/dist/apply-window-host.d.ts +0 -136
- package/dist/apply-window-host.js.map +0 -1
- package/dist/apply-window-lane.d.ts +0 -30
- package/dist/apply-window-lane.js.map +0 -1
- package/dist/apply-window-line.d.ts +0 -31
- package/dist/apply-window-line.js.map +0 -1
- package/dist/apply-window-recovery.d.ts +0 -5
- package/dist/apply-window-recovery.js.map +0 -1
- package/dist/apply-window-reveal.d.ts +0 -22
- package/dist/apply-window-reveal.js.map +0 -1
- package/dist/apply-window-rows.d.ts +0 -144
- package/dist/apply-window-rows.js.map +0 -1
- package/dist/apply-window-saves.d.ts +0 -224
- package/dist/apply-window-saves.js.map +0 -1
- package/dist/apply-window-store.d.ts +0 -126
- package/dist/apply-window-store.js.map +0 -1
- package/dist/apply-window-verify.d.ts +0 -65
- package/dist/apply-window-verify.js.map +0 -1
- package/dist/authority-binding.d.ts +0 -9
- package/dist/authority-binding.js.map +0 -1
- package/dist/authorization/device-key.d.ts +0 -19
- package/dist/authorization/device-key.js.map +0 -1
- package/dist/authorization/index.d.ts +0 -65
- package/dist/authorization/index.js.map +0 -1
- package/dist/authorization/issuer.d.ts +0 -11
- package/dist/authorization/issuer.js.map +0 -1
- package/dist/authorization/key-store.d.ts +0 -16
- package/dist/authorization/key-store.js.map +0 -1
- package/dist/authorization/native-keyring.d.ts +0 -8
- package/dist/authorization/native-keyring.js.map +0 -1
- package/dist/authorization/recovery-client.d.ts +0 -19
- package/dist/authorization/recovery-client.js.map +0 -1
- package/dist/authorization/recovery-host.d.ts +0 -30
- package/dist/authorization/recovery-host.js.map +0 -1
- package/dist/authorization/recovery.d.ts +0 -13
- package/dist/authorization/recovery.js.map +0 -1
- package/dist/authorization/registration-http.d.ts +0 -5
- package/dist/authorization/registration-http.js.map +0 -1
- package/dist/authorization/secret-process.d.ts +0 -2
- package/dist/authorization/secret-process.js.map +0 -1
- package/dist/authorization/setup-http.d.ts +0 -5
- package/dist/authorization/setup-http.js.map +0 -1
- package/dist/automations-cli-host.d.ts +0 -4
- package/dist/automations-cli-host.js.map +0 -1
- package/dist/background-error.d.ts +0 -4
- package/dist/background-error.js.map +0 -1
- package/dist/baseline-content.d.ts +0 -12
- package/dist/baseline-content.js.map +0 -1
- package/dist/billing/cli.d.ts +0 -18
- package/dist/billing/cli.js.map +0 -1
- package/dist/billing/mount.d.ts +0 -12
- package/dist/billing/mount.js.map +0 -1
- package/dist/billing/tools.d.ts +0 -57
- package/dist/billing/tools.js.map +0 -1
- package/dist/boot-identity.d.ts +0 -1
- package/dist/boot-identity.js.map +0 -1
- package/dist/browser-host.d.ts +0 -30
- package/dist/browser-host.js.map +0 -1
- package/dist/builtin-agents.d.ts +0 -8
- package/dist/builtin-agents.js.map +0 -1
- package/dist/capture-work.d.ts +0 -8
- package/dist/capture-work.js.map +0 -1
- package/dist/captured-rows.d.ts +0 -33
- package/dist/captured-rows.js.map +0 -1
- package/dist/cargo-group.d.ts +0 -59
- package/dist/cargo-group.js.map +0 -1
- package/dist/cargo-journal.d.ts +0 -45
- package/dist/cargo-journal.js.map +0 -1
- package/dist/channel-session.d.ts +0 -60
- package/dist/channel-session.js.map +0 -1
- package/dist/chat-composition.d.ts +0 -30
- package/dist/chat-composition.js.map +0 -1
- package/dist/chat-host.d.ts +0 -30
- package/dist/chat-host.js.map +0 -1
- package/dist/chat-toolbox.d.ts +0 -10
- package/dist/chat-toolbox.js.map +0 -1
- package/dist/chat-tools.d.ts +0 -23
- package/dist/chat-tools.js.map +0 -1
- package/dist/cli-arguments.d.ts +0 -8
- package/dist/cli-arguments.js.map +0 -1
- package/dist/cli.d.ts +0 -10
- package/dist/cli.js.map +0 -1
- package/dist/construct-apply-host.d.ts +0 -64
- package/dist/construct-apply-host.js.map +0 -1
- package/dist/construct-door.d.ts +0 -39
- package/dist/construct-door.js.map +0 -1
- package/dist/construct-ledger.d.ts +0 -33
- package/dist/construct-ledger.js.map +0 -1
- package/dist/construct-products.d.ts +0 -22
- package/dist/construct-products.js.map +0 -1
- package/dist/content-cache-collection.d.ts +0 -25
- package/dist/content-cache-collection.js.map +0 -1
- package/dist/content-cache-fences.d.ts +0 -27
- package/dist/content-cache-fences.js.map +0 -1
- package/dist/content-cache-host.d.ts +0 -269
- package/dist/content-cache-host.js.map +0 -1
- package/dist/content-cache-index.d.ts +0 -59
- package/dist/content-cache-index.js.map +0 -1
- package/dist/content-cache-namespace.d.ts +0 -53
- package/dist/content-cache-namespace.js.map +0 -1
- package/dist/content-cache-partials.d.ts +0 -37
- package/dist/content-cache-partials.js.map +0 -1
- package/dist/content-cache-retention.d.ts +0 -38
- package/dist/content-cache-retention.js.map +0 -1
- package/dist/content-capture-pool.d.ts +0 -274
- package/dist/content-capture-pool.js.map +0 -1
- package/dist/content-capture-worker.d.ts +0 -7
- package/dist/content-capture-worker.js.map +0 -1
- package/dist/content-clock.d.ts +0 -68
- package/dist/content-clock.js.map +0 -1
- package/dist/content-direct.d.ts +0 -56
- package/dist/content-direct.js.map +0 -1
- package/dist/content-failure.d.ts +0 -18
- package/dist/content-failure.js.map +0 -1
- package/dist/content-qualification.d.ts +0 -72
- package/dist/content-qualification.js.map +0 -1
- package/dist/content-wire-codec.d.ts +0 -13
- package/dist/content-wire-codec.js.map +0 -1
- package/dist/credentials-host.d.ts +0 -5
- package/dist/credentials-host.js.map +0 -1
- package/dist/derived-relocation.d.ts +0 -31
- package/dist/derived-relocation.js.map +0 -1
- package/dist/detection/accepted-result.d.ts +0 -31
- package/dist/detection/accepted-result.js.map +0 -1
- package/dist/detection/admission-save.d.ts +0 -66
- package/dist/detection/admission-save.js.map +0 -1
- package/dist/detection/admission-units.d.ts +0 -78
- package/dist/detection/admission-units.js.map +0 -1
- package/dist/detection/alias-discovery.d.ts +0 -12
- package/dist/detection/alias-discovery.js.map +0 -1
- package/dist/detection/alias-examination.d.ts +0 -33
- package/dist/detection/alias-examination.js.map +0 -1
- package/dist/detection/apply-ownership.d.ts +0 -107
- package/dist/detection/apply-ownership.js.map +0 -1
- package/dist/detection/basis-advanced.d.ts +0 -15
- package/dist/detection/basis-advanced.js.map +0 -1
- package/dist/detection/cached-replay.d.ts +0 -38
- package/dist/detection/cached-replay.js.map +0 -1
- package/dist/detection/capture-outcome.d.ts +0 -16
- package/dist/detection/capture-outcome.js.map +0 -1
- package/dist/detection/container-membership.d.ts +0 -20
- package/dist/detection/container-membership.js.map +0 -1
- package/dist/detection/detect-cancelled.d.ts +0 -6
- package/dist/detection/detect-cancelled.js.map +0 -1
- package/dist/detection/directory-proof.d.ts +0 -47
- package/dist/detection/directory-proof.js.map +0 -1
- package/dist/detection/dispositions.d.ts +0 -107
- package/dist/detection/dispositions.js.map +0 -1
- package/dist/detection/examinations.d.ts +0 -33
- package/dist/detection/examinations.js.map +0 -1
- package/dist/detection/ground-proof.d.ts +0 -154
- package/dist/detection/ground-proof.js.map +0 -1
- package/dist/detection/ground-reader.d.ts +0 -29
- package/dist/detection/ground-reader.js.map +0 -1
- package/dist/detection/identity-discovery.d.ts +0 -45
- package/dist/detection/identity-discovery.js.map +0 -1
- package/dist/detection/maintenance-sweep.d.ts +0 -111
- package/dist/detection/maintenance-sweep.js.map +0 -1
- package/dist/detection/notebook-basis.d.ts +0 -24
- package/dist/detection/notebook-basis.js.map +0 -1
- package/dist/detection/owed-examinations.d.ts +0 -22
- package/dist/detection/owed-examinations.js.map +0 -1
- package/dist/detection/owed-selection.d.ts +0 -54
- package/dist/detection/owed-selection.js.map +0 -1
- package/dist/detection/policy-owed.d.ts +0 -17
- package/dist/detection/policy-owed.js.map +0 -1
- package/dist/detection/reconciliation-coverage.d.ts +0 -7
- package/dist/detection/reconciliation-coverage.js.map +0 -1
- package/dist/detection/repository-state.d.ts +0 -44
- package/dist/detection/repository-state.js.map +0 -1
- package/dist/detection/reveal-save.d.ts +0 -17
- package/dist/detection/reveal-save.js.map +0 -1
- package/dist/detection/root-examination.d.ts +0 -106
- package/dist/detection/root-examination.js.map +0 -1
- package/dist/detection/root-walk.d.ts +0 -191
- package/dist/detection/root-walk.js.map +0 -1
- package/dist/detection/runtime.d.ts +0 -144
- package/dist/detection/runtime.js.map +0 -1
- package/dist/detection/scope-frame.d.ts +0 -82
- package/dist/detection/scope-frame.js.map +0 -1
- package/dist/detection/scoped-identity-port.d.ts +0 -35
- package/dist/detection/scoped-identity-port.js.map +0 -1
- package/dist/detection/sharing-policy.d.ts +0 -19
- package/dist/detection/sharing-policy.js +0 -39
- package/dist/detection/sharing-policy.js.map +0 -1
- package/dist/detection/spelled-lookup.d.ts +0 -20
- package/dist/detection/spelled-lookup.js.map +0 -1
- package/dist/detection/thread-database.d.ts +0 -4
- package/dist/detection/thread-database.js.map +0 -1
- package/dist/detection/unread-content.d.ts +0 -20
- package/dist/detection/unread-content.js.map +0 -1
- package/dist/detection/unreadable.d.ts +0 -11
- package/dist/detection/unreadable.js.map +0 -1
- package/dist/detection/walk-law.d.ts +0 -25
- package/dist/detection/walk-law.js.map +0 -1
- package/dist/detection/walked-roots.d.ts +0 -17
- package/dist/detection/walked-roots.js.map +0 -1
- package/dist/detection/withheld.d.ts +0 -100
- package/dist/detection/withheld.js.map +0 -1
- package/dist/development/fly-guest.d.ts +0 -21
- package/dist/development/fly-guest.js.map +0 -1
- package/dist/development/fly.d.ts +0 -13
- package/dist/development/fly.js.map +0 -1
- package/dist/development/profile.d.ts +0 -34
- package/dist/development/profile.js.map +0 -1
- package/dist/drive/cloud-files/asks.d.ts +0 -7
- package/dist/drive/cloud-files/asks.js.map +0 -1
- package/dist/drive/cloud-files/binding.d.ts +0 -111
- package/dist/drive/cloud-files/binding.js.map +0 -1
- package/dist/drive/cloud-files/contents.d.ts +0 -82
- package/dist/drive/cloud-files/contents.js.map +0 -1
- package/dist/drive/cloud-files/door.d.ts +0 -11
- package/dist/drive/cloud-files/door.js.map +0 -1
- package/dist/drive/cloud-files/paths.d.ts +0 -42
- package/dist/drive/cloud-files/paths.js.map +0 -1
- package/dist/drive/cloud-files/populated.d.ts +0 -15
- package/dist/drive/cloud-files/populated.js.map +0 -1
- package/dist/drive/cloud-files/reconcile.d.ts +0 -17
- package/dist/drive/cloud-files/reconcile.js.map +0 -1
- package/dist/drive/cloud-files/sync-root.d.ts +0 -34
- package/dist/drive/cloud-files/sync-root.js.map +0 -1
- package/dist/drive/cloud-files/turns.d.ts +0 -9
- package/dist/drive/cloud-files/turns.js.map +0 -1
- package/dist/drive/cloud-files/writes.d.ts +0 -27
- package/dist/drive/cloud-files/writes.js.map +0 -1
- package/dist/drive/computer.d.ts +0 -19
- package/dist/drive/computer.js.map +0 -1
- package/dist/drive/fuse-opens.d.ts +0 -32
- package/dist/drive/fuse-opens.js.map +0 -1
- package/dist/drive/fuse.d.ts +0 -36
- package/dist/drive/fuse.js.map +0 -1
- package/dist/drive/kept.d.ts +0 -78
- package/dist/drive/kept.js.map +0 -1
- package/dist/drive/kernel.d.ts +0 -17
- package/dist/drive/kernel.js.map +0 -1
- package/dist/drive/layout.d.ts +0 -18
- package/dist/drive/layout.js.map +0 -1
- package/dist/drive/mount.d.ts +0 -107
- package/dist/drive/mount.js.map +0 -1
- package/dist/drive/mountpoint.d.ts +0 -14
- package/dist/drive/mountpoint.js.map +0 -1
- package/dist/drive/nfs/apple-double.d.ts +0 -6
- package/dist/drive/nfs/apple-double.js.map +0 -1
- package/dist/drive/nfs/attributes.d.ts +0 -64
- package/dist/drive/nfs/attributes.js.map +0 -1
- package/dist/drive/nfs/handles.d.ts +0 -44
- package/dist/drive/nfs/handles.js.map +0 -1
- package/dist/drive/nfs/mount3.d.ts +0 -16
- package/dist/drive/nfs/mount3.js.map +0 -1
- package/dist/drive/nfs/nfs3.d.ts +0 -27
- package/dist/drive/nfs/nfs3.js.map +0 -1
- package/dist/drive/nfs/rpc.d.ts +0 -66
- package/dist/drive/nfs/rpc.js.map +0 -1
- package/dist/drive/nfs/server.d.ts +0 -30
- package/dist/drive/nfs/server.js.map +0 -1
- package/dist/drive/nfs/xdr.d.ts +0 -44
- package/dist/drive/nfs/xdr.js.map +0 -1
- package/dist/drive/nfs.d.ts +0 -58
- package/dist/drive/nfs.js.map +0 -1
- package/dist/drive/operations.d.ts +0 -180
- package/dist/drive/operations.js.map +0 -1
- package/dist/drive/shelf.d.ts +0 -9
- package/dist/drive/shelf.js.map +0 -1
- package/dist/durability-barrier.d.ts +0 -66
- package/dist/durability-barrier.js.map +0 -1
- package/dist/entity-access-wire.d.ts +0 -33
- package/dist/entity-access-wire.js.map +0 -1
- package/dist/entity-channel-holdings.d.ts +0 -26
- package/dist/entity-channel-holdings.js.map +0 -1
- package/dist/entity-grant-watch.d.ts +0 -9
- package/dist/entity-grant-watch.js.map +0 -1
- package/dist/entity-record-observability.d.ts +0 -13
- package/dist/entity-record-observability.js.map +0 -1
- package/dist/entity-record-saves.d.ts +0 -47
- package/dist/entity-record-saves.js.map +0 -1
- package/dist/entity-record-store.d.ts +0 -60
- package/dist/entity-record-store.js.map +0 -1
- package/dist/error-facts.d.ts +0 -24
- package/dist/error-facts.js.map +0 -1
- package/dist/faults/drain.d.ts +0 -27
- package/dist/faults/drain.js.map +0 -1
- package/dist/faults/queue.d.ts +0 -46
- package/dist/faults/queue.js.map +0 -1
- package/dist/faults/show.d.ts +0 -7
- package/dist/faults/show.js.map +0 -1
- package/dist/files-browser-host.d.ts +0 -9
- package/dist/files-browser-host.js.map +0 -1
- package/dist/files-mcp-host.d.ts +0 -58
- package/dist/files-mcp-host.js.map +0 -1
- package/dist/files-observability.d.ts +0 -29
- package/dist/files-observability.js.map +0 -1
- package/dist/files-program/client.d.ts +0 -136
- package/dist/files-program/client.js.map +0 -1
- package/dist/files-program/journeys.d.ts +0 -15
- package/dist/files-program/journeys.js.map +0 -1
- package/dist/files-program/program.d.ts +0 -1
- package/dist/files-program/program.js.map +0 -1
- package/dist/files-program/protocol.d.ts +0 -180
- package/dist/files-program/protocol.js.map +0 -1
- package/dist/files-register-host.d.ts +0 -70
- package/dist/files-register-host.js.map +0 -1
- package/dist/files-trace.d.ts +0 -61
- package/dist/files-trace.js.map +0 -1
- package/dist/filesystem.d.ts +0 -38
- package/dist/filesystem.js.map +0 -1
- package/dist/flush.d.ts +0 -19
- package/dist/flush.js.map +0 -1
- package/dist/forward.d.ts +0 -11
- package/dist/forward.js.map +0 -1
- package/dist/gateway.d.ts +0 -38
- package/dist/gateway.js.map +0 -1
- package/dist/git/ground-owners.d.ts +0 -15
- package/dist/git/ground-owners.js.map +0 -1
- package/dist/git/held-package.d.ts +0 -67
- package/dist/git/held-package.js.map +0 -1
- package/dist/git/home.d.ts +0 -59
- package/dist/git/home.js.map +0 -1
- package/dist/git/marker.d.ts +0 -21
- package/dist/git/marker.js.map +0 -1
- package/dist/git/named-objects.d.ts +0 -24
- package/dist/git/named-objects.js.map +0 -1
- package/dist/git/objects.d.ts +0 -30
- package/dist/git/objects.js.map +0 -1
- package/dist/git/play.d.ts +0 -30
- package/dist/git/play.js.map +0 -1
- package/dist/git/quarantine.d.ts +0 -48
- package/dist/git/quarantine.js.map +0 -1
- package/dist/git/rail.d.ts +0 -206
- package/dist/git/rail.js.map +0 -1
- package/dist/git/read-state.d.ts +0 -49
- package/dist/git/read-state.js.map +0 -1
- package/dist/git/repository.d.ts +0 -62
- package/dist/git/repository.js.map +0 -1
- package/dist/git/write-files.d.ts +0 -29
- package/dist/git/write-files.js.map +0 -1
- package/dist/git-binding.d.ts +0 -53
- package/dist/git-binding.js.map +0 -1
- package/dist/git-cat-file.d.ts +0 -28
- package/dist/git-cat-file.js.map +0 -1
- package/dist/git-command.d.ts +0 -96
- package/dist/git-command.js.map +0 -1
- package/dist/git-index-entries.d.ts +0 -16
- package/dist/git-index-entries.js.map +0 -1
- package/dist/git-index-format.d.ts +0 -52
- package/dist/git-index-format.js.map +0 -1
- package/dist/git-install-lines.d.ts +0 -12
- package/dist/git-install-lines.js.map +0 -1
- package/dist/git-launcher-process.d.ts +0 -1
- package/dist/git-launcher-process.js.map +0 -1
- package/dist/git-launcher.d.ts +0 -70
- package/dist/git-launcher.js.map +0 -1
- package/dist/graph-heads.d.ts +0 -71
- package/dist/graph-heads.js.map +0 -1
- package/dist/ground-basis.d.ts +0 -278
- package/dist/ground-basis.js.map +0 -1
- package/dist/ground-checkpoint-worker.d.ts +0 -1
- package/dist/ground-checkpoint-worker.js.map +0 -1
- package/dist/ground-checkpoints.d.ts +0 -16
- package/dist/ground-checkpoints.js.map +0 -1
- package/dist/ground-contract.d.ts +0 -11
- package/dist/ground-contract.js.map +0 -1
- package/dist/ground-coordination.d.ts +0 -140
- package/dist/ground-coordination.js.map +0 -1
- package/dist/ground-database.d.ts +0 -40
- package/dist/ground-database.js.map +0 -1
- package/dist/ground-differences.d.ts +0 -24
- package/dist/ground-differences.js.map +0 -1
- package/dist/ground-holders.d.ts +0 -4
- package/dist/ground-holders.js.map +0 -1
- package/dist/ground-initialization-worker.d.ts +0 -1
- package/dist/ground-initialization-worker.js.map +0 -1
- package/dist/ground-initialization.d.ts +0 -38
- package/dist/ground-initialization.js.map +0 -1
- package/dist/ground-install-saves.d.ts +0 -104
- package/dist/ground-install-saves.js.map +0 -1
- package/dist/ground-inventory-schema.d.ts +0 -58
- package/dist/ground-inventory-schema.js.map +0 -1
- package/dist/ground-marks.d.ts +0 -49
- package/dist/ground-marks.js.map +0 -1
- package/dist/ground-profile.d.ts +0 -14
- package/dist/ground-profile.js.map +0 -1
- package/dist/ground-reads.d.ts +0 -86
- package/dist/ground-reads.js.map +0 -1
- package/dist/ground-relations.d.ts +0 -57
- package/dist/ground-relations.js.map +0 -1
- package/dist/ground-root-index.d.ts +0 -14
- package/dist/ground-root-index.js.map +0 -1
- package/dist/ground-row.d.ts +0 -78
- package/dist/ground-row.js.map +0 -1
- package/dist/ground-save-ops.d.ts +0 -62
- package/dist/ground-save-ops.js.map +0 -1
- package/dist/ground-saver-worker.d.ts +0 -1
- package/dist/ground-saver-worker.js.map +0 -1
- package/dist/ground-saver.d.ts +0 -103
- package/dist/ground-saver.js.map +0 -1
- package/dist/ground-store.d.ts +0 -125
- package/dist/ground-store.js.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.js.map +0 -1
- package/dist/initial-publication.d.ts +0 -42
- package/dist/initial-publication.js.map +0 -1
- package/dist/installation/environment.d.ts +0 -34
- package/dist/installation/environment.js.map +0 -1
- package/dist/installation/lease.d.ts +0 -6
- package/dist/installation/lease.js.map +0 -1
- package/dist/installation/ownership.d.ts +0 -30
- package/dist/installation/ownership.js.map +0 -1
- package/dist/installation/selection.d.ts +0 -8
- package/dist/installation/selection.js.map +0 -1
- package/dist/keychain/cli-io.d.ts +0 -8
- package/dist/keychain/cli-io.js.map +0 -1
- package/dist/keychain/cli.d.ts +0 -12
- package/dist/keychain/cli.js.map +0 -1
- package/dist/keychain/host.d.ts +0 -28
- package/dist/keychain/host.js.map +0 -1
- package/dist/keychain/http-mount.d.ts +0 -16
- package/dist/keychain/http-mount.js.map +0 -1
- package/dist/keychain/key-wire.d.ts +0 -12
- package/dist/keychain/key-wire.js.map +0 -1
- package/dist/keychain/presence-mac.d.ts +0 -8
- package/dist/keychain/presence-mac.js.map +0 -1
- package/dist/keychain/presence.d.ts +0 -9
- package/dist/keychain/presence.js.map +0 -1
- package/dist/keychain/rail.d.ts +0 -19
- package/dist/keychain/rail.js.map +0 -1
- package/dist/keychain/secret-apply.d.ts +0 -22
- package/dist/keychain/secret-apply.js.map +0 -1
- package/dist/keychain/shelf-from-ledger.d.ts +0 -15
- package/dist/keychain/shelf-from-ledger.js.map +0 -1
- package/dist/keychain/use-log.d.ts +0 -7
- package/dist/keychain/use-log.js.map +0 -1
- package/dist/keychain/vault-file.d.ts +0 -12
- package/dist/keychain/vault-file.js.map +0 -1
- package/dist/line-judge.d.ts +0 -39
- package/dist/line-judge.js.map +0 -1
- package/dist/line-loops.d.ts +0 -22
- package/dist/line-loops.js.map +0 -1
- package/dist/link-target.d.ts +0 -16
- package/dist/link-target.js.map +0 -1
- package/dist/local-host.d.ts +0 -20
- package/dist/local-host.js.map +0 -1
- package/dist/loop-watch.d.ts +0 -17
- package/dist/loop-watch.js.map +0 -1
- package/dist/machine-host.d.ts +0 -249
- package/dist/machine-host.js.map +0 -1
- package/dist/main.d.ts +0 -2
- package/dist/main.js.map +0 -1
- package/dist/materialize-records.d.ts +0 -98
- package/dist/materialize-records.js.map +0 -1
- package/dist/materialized-graph.d.ts +0 -22
- package/dist/materialized-graph.js.map +0 -1
- package/dist/module-thread.d.ts +0 -9
- package/dist/module-thread.js.map +0 -1
- package/dist/mount.d.ts +0 -13
- package/dist/mount.js.map +0 -1
- package/dist/official-mcp-host.d.ts +0 -51
- package/dist/official-mcp-host.js.map +0 -1
- package/dist/on-demand-roots.d.ts +0 -31
- package/dist/on-demand-roots.js.map +0 -1
- package/dist/open-standing.d.ts +0 -8
- package/dist/open-standing.js.map +0 -1
- package/dist/own-results.d.ts +0 -37
- package/dist/own-results.js.map +0 -1
- package/dist/package-pages.d.ts +0 -41
- package/dist/package-pages.js.map +0 -1
- package/dist/patient-flush.d.ts +0 -24
- package/dist/patient-flush.js.map +0 -1
- package/dist/physical-path-witness.d.ts +0 -64
- package/dist/physical-path-witness.js.map +0 -1
- package/dist/placement-owed.d.ts +0 -28
- package/dist/placement-owed.js.map +0 -1
- package/dist/placement-tidy.d.ts +0 -57
- package/dist/placement-tidy.js.map +0 -1
- package/dist/platform-product-host.d.ts +0 -51
- package/dist/platform-product-host.js.map +0 -1
- package/dist/platform-tools.d.ts +0 -22
- package/dist/platform-tools.js.map +0 -1
- package/dist/process-lifecycle.d.ts +0 -13
- package/dist/process-lifecycle.js.map +0 -1
- package/dist/product-cli.d.ts +0 -26
- package/dist/product-cli.js.map +0 -1
- package/dist/pty-host.d.ts +0 -16
- package/dist/pty-host.js.map +0 -1
- package/dist/received-state.d.ts +0 -90
- package/dist/received-state.js.map +0 -1
- package/dist/reference-placement.d.ts +0 -26
- package/dist/reference-placement.js.map +0 -1
- package/dist/registry-graph.d.ts +0 -112
- package/dist/registry-graph.js.map +0 -1
- package/dist/registry-page-cache.d.ts +0 -15
- package/dist/registry-page-cache.js.map +0 -1
- package/dist/release-catalog.d.ts +0 -5
- package/dist/release-catalog.js.map +0 -1
- package/dist/root-install.d.ts +0 -72
- package/dist/root-install.js.map +0 -1
- package/dist/runtime-activity.d.ts +0 -20
- package/dist/runtime-activity.js.map +0 -1
- package/dist/runtime-argv.d.ts +0 -8
- package/dist/runtime-argv.js.map +0 -1
- package/dist/runtime-command-host.d.ts +0 -46
- package/dist/runtime-command-host.js.map +0 -1
- package/dist/runtime-node-flags.d.ts +0 -10
- package/dist/runtime-node-flags.js.map +0 -1
- package/dist/runtime-wire-host.d.ts +0 -17
- package/dist/runtime-wire-host.js.map +0 -1
- package/dist/service/adapter.d.ts +0 -37
- package/dist/service/adapter.js.map +0 -1
- package/dist/service/cli.d.ts +0 -8
- package/dist/service/cli.js.map +0 -1
- package/dist/service/control.d.ts +0 -38
- package/dist/service/control.js.map +0 -1
- package/dist/service/index.d.ts +0 -9
- package/dist/service/index.js.map +0 -1
- package/dist/service/keepalive.d.ts +0 -11
- package/dist/service/keepalive.js.map +0 -1
- package/dist/service/launchd.d.ts +0 -9
- package/dist/service/launchd.js.map +0 -1
- package/dist/service/owner.d.ts +0 -4
- package/dist/service/owner.js.map +0 -1
- package/dist/service/policy.d.ts +0 -36
- package/dist/service/policy.js.map +0 -1
- package/dist/service/portable.d.ts +0 -10
- package/dist/service/portable.js.map +0 -1
- package/dist/service/recovery.d.ts +0 -28
- package/dist/service/recovery.js.map +0 -1
- package/dist/service/registration.d.ts +0 -84
- package/dist/service/registration.js.map +0 -1
- package/dist/service/systemd-unit.d.ts +0 -7
- package/dist/service/systemd-unit.js.map +0 -1
- package/dist/service/systemd.d.ts +0 -5
- package/dist/service/systemd.js.map +0 -1
- package/dist/service/windows-action.d.ts +0 -18
- package/dist/service/windows-action.js.map +0 -1
- package/dist/service/windows-task.d.ts +0 -15
- package/dist/service/windows-task.js.map +0 -1
- package/dist/service/windows.d.ts +0 -2
- package/dist/service/windows.js.map +0 -1
- package/dist/sha256.d.ts +0 -1
- package/dist/sha256.js.map +0 -1
- package/dist/sharing-admission.d.ts +0 -22
- package/dist/sharing-admission.js.map +0 -1
- package/dist/sharing-host.d.ts +0 -14
- package/dist/sharing-host.js.map +0 -1
- package/dist/sharing-mcp-host.d.ts +0 -23
- package/dist/sharing-mcp-host.js.map +0 -1
- package/dist/snapshot-delivery-baseline.d.ts +0 -31
- package/dist/snapshot-delivery-baseline.js.map +0 -1
- package/dist/socket-marking.d.ts +0 -9
- package/dist/socket-marking.js.map +0 -1
- package/dist/source-proof.d.ts +0 -23
- package/dist/source-proof.js.map +0 -1
- package/dist/source-signature.d.ts +0 -157
- package/dist/source-signature.js.map +0 -1
- package/dist/source-witness.d.ts +0 -9
- package/dist/source-witness.js.map +0 -1
- package/dist/sqlite-durability.d.ts +0 -32
- package/dist/sqlite-durability.js.map +0 -1
- package/dist/sqlite.d.ts +0 -10
- package/dist/sqlite.js.map +0 -1
- package/dist/state-host.d.ts +0 -4
- package/dist/state-host.js.map +0 -1
- package/dist/state-store.d.ts +0 -15
- package/dist/state-store.js.map +0 -1
- package/dist/sync-address.d.ts +0 -16
- package/dist/sync-address.js.map +0 -1
- package/dist/sync-cli.d.ts +0 -7
- package/dist/sync-cli.js.map +0 -1
- package/dist/sync-setting.d.ts +0 -43
- package/dist/sync-setting.js.map +0 -1
- package/dist/tool-mcp-client.d.ts +0 -7
- package/dist/tool-mcp-client.js.map +0 -1
- package/dist/toolbox-host.d.ts +0 -4
- package/dist/toolbox-host.js.map +0 -1
- package/dist/transfer-instrumentation.d.ts +0 -47
- package/dist/transfer-instrumentation.js.map +0 -1
- package/dist/turns.d.ts +0 -44
- package/dist/turns.js.map +0 -1
- package/dist/updates/artifacts.d.ts +0 -66
- package/dist/updates/artifacts.js.map +0 -1
- package/dist/updates/bootstrap.d.ts +0 -94
- package/dist/updates/bootstrap.js.map +0 -1
- package/dist/updates/controller.d.ts +0 -78
- package/dist/updates/controller.js.map +0 -1
- package/dist/updates/isolated-command-lifetime.d.ts +0 -1
- package/dist/updates/isolated-command-lifetime.js.map +0 -1
- package/dist/updates/locked-packages.d.ts +0 -4
- package/dist/updates/locked-packages.js.map +0 -1
- package/dist/updates/store.d.ts +0 -47
- package/dist/updates/store.js.map +0 -1
- package/dist/updates/trust.d.ts +0 -20
- package/dist/updates/trust.js.map +0 -1
- package/dist/user-ground-host.d.ts +0 -1007
- package/dist/user-ground-host.js.map +0 -1
- package/dist/watching/fsevents.d.ts +0 -69
- package/dist/watching/fsevents.js.map +0 -1
- package/dist/watching/git-storage.d.ts +0 -22
- package/dist/watching/git-storage.js.map +0 -1
- package/dist/watching/host.d.ts +0 -388
- package/dist/watching/host.js.map +0 -1
- package/dist/watching/index.d.ts +0 -3
- package/dist/watching/index.js.map +0 -1
- package/dist/watching/inotify.d.ts +0 -81
- package/dist/watching/inotify.js.map +0 -1
- package/dist/windows-fs.d.ts +0 -12
- package/dist/windows-fs.js.map +0 -1
- package/dist/windows-owner-only.d.ts +0 -6
- package/dist/windows-owner-only.js.map +0 -1
- package/dist/wire-binary.d.ts +0 -9
- package/dist/wire-binary.js.map +0 -1
- package/dist/wire-client.d.ts +0 -86
- package/dist/wire-client.js.map +0 -1
- package/dist/wire-join.d.ts +0 -19
- package/dist/wire-join.js.map +0 -1
- package/dist/wire-outbox.d.ts +0 -37
- package/dist/wire-outbox.js.map +0 -1
- package/dist/wire-request-scope.d.ts +0 -17
- package/dist/wire-request-scope.js.map +0 -1
- package/dist/wire-socket-relay.d.ts +0 -54
- package/dist/wire-socket-relay.js.map +0 -1
- package/dist/workspace-add-intent.d.ts +0 -41
- package/dist/workspace-add-intent.js.map +0 -1
- package/dist/workspace-add-staging.d.ts +0 -192
- package/dist/workspace-add-staging.js.map +0 -1
- package/dist/workspace-host.d.ts +0 -32
- package/dist/workspace-host.js.map +0 -1
- package/dist/workspace-store.d.ts +0 -8
- package/dist/workspace-store.js.map +0 -1
- package/skills/shell/SKILL.md +0 -175
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/** The Apply window's writes, run only by the ground file's saver thread
|
|
2
|
-
* (ground-saver.ts): the bound fact, the ended fact, and the durable fact.
|
|
3
|
-
* The poster answers what disk holds when it posts; each save answers what
|
|
4
|
-
* only the database holds, inside its savepoint. */
|
|
5
1
|
import { CONTAINERS, assertApplyWindowIntent, createLocalEntityRecord, decodeAcceptedEntityRecord, decodeLocalEntityRecord, gitOwnChange, isConstructType, isSettlement, joinedLineEchoes, localWorkWins, resolvedPrefix, } from "@amalgm/live";
|
|
6
2
|
import { randomUUID } from "node:crypto";
|
|
7
3
|
import { join, posix } from "node:path";
|
|
@@ -31,23 +27,11 @@ const upsertState = (database, entityId, authorityId, resolvedThrough, materiali
|
|
|
31
27
|
materialized_record_json = excluded.materialized_record_json`)
|
|
32
28
|
.run(entityId, authorityId, resolvedThrough, materializedSequence, materializedRecordJson);
|
|
33
29
|
};
|
|
34
|
-
/** Stamp the rows one resolution covers. An Inbox row is stamped exactly
|
|
35
|
-
* when Apply state resolves it, and a row keeps its first stamp. */
|
|
36
30
|
const resolveInbox = (database, at, authorityId, entityId, after, through) => {
|
|
37
31
|
cachedStatement(database, `UPDATE record_inbox SET resolved_at = COALESCE(resolved_at, ?)
|
|
38
32
|
WHERE authority_id = ? AND entity_id = ? AND global_sequence > ? AND global_sequence <= ?`)
|
|
39
33
|
.run(at, authorityId, entityId, after, through);
|
|
40
34
|
};
|
|
41
|
-
/**
|
|
42
|
-
* The bound fact. One strict commit of the window's row and every member's
|
|
43
|
-
* receipt, before the first visible effect: each member's staged object is
|
|
44
|
-
* named here, so recovery reads every member's ground without another
|
|
45
|
-
* table. A window binds only while no other open window owns any of its
|
|
46
|
-
* ground, and only on the facts it read: a line member's resolved position,
|
|
47
|
-
* a lane member's materialization (`read`). A lane's member begins at its
|
|
48
|
-
* newest row within the cutoff, so its bind writes no history: only its end
|
|
49
|
-
* stands it there.
|
|
50
|
-
*/
|
|
51
35
|
export function bindWindow(database, input) {
|
|
52
36
|
const { intent, members } = input;
|
|
53
37
|
assertApplyWindowIntent(intent);
|
|
@@ -88,36 +72,8 @@ export function bindWindow(database, input) {
|
|
|
88
72
|
}
|
|
89
73
|
return null;
|
|
90
74
|
}
|
|
91
|
-
/** The window a track owns: a line's by its authority, a lane's by its unit. */
|
|
92
75
|
const openOnTrack = (database, intent) => intent.unit === null ? readOpenWindow(database, intent.authorityId) : readOpenLane(database, intent.unit);
|
|
93
|
-
/** The sequence this computer materialized an entity at, 0 for none. */
|
|
94
76
|
const materializedAt = (database, authorityId, entityId) => applyState(database, authorityId, entityId)?.materializedSequence ?? 0;
|
|
95
|
-
/**
|
|
96
|
-
* The ended fact. One ordered commit: every materialized member projects its
|
|
97
|
-
* rows into both inventories in the reveal's order (stopShowing), each member
|
|
98
|
-
* of the complete prefix stands at its target (standAt) with its
|
|
99
|
-
* materialization claimed (materialized), cleared (left) or unchanged
|
|
100
|
-
* (settled), each container whose membership changed re-derives its version
|
|
101
|
-
* once, and the window's ownership ends. Ownership never ends on
|
|
102
|
-
* ground the window showed without its rows: a materialized member after the
|
|
103
|
-
* first owed one projects and stays owed, so its next judgment finds its
|
|
104
|
-
* result already standing, and an owed member whose shown result a person
|
|
105
|
-
* changed, moved or removed before Verify projects that result unsighted, so
|
|
106
|
-
* Detect reads the person's version as a change of the identity Apply
|
|
107
|
-
* showed, never as a new one. Every Enter stands each entity it installed
|
|
108
|
-
* as an Add install at its closure's position does, and owes again the
|
|
109
|
-
* newest result another track resolved after that position directly inside
|
|
110
|
-
* a container it newly placed (apply-shown-again.ts). B beneath that
|
|
111
|
-
* container, and B at each result that stops showing here or settles
|
|
112
|
-
* unshown, keeps only what stands in O, shown or hidden (unshownBeneath); where an
|
|
113
|
-
* absence hides O's row, B keeps this computer's last showing as O does, and
|
|
114
|
-
* the result is owed again once the row shows. A trashed container Leave
|
|
115
|
-
* notes its files' proofs for its Trash keep before its rows leave O, and a
|
|
116
|
-
* container Enter lets its UUID's notes go (apply-trash-keep.ts). A fact a proof consumed that moved answers stale: nothing is
|
|
117
|
-
* committed. Ownership protects only what a window shows, so a settled
|
|
118
|
-
* member's read is checked here at every end. Answers every entity whose
|
|
119
|
-
* rows it wrote or took away, for whatever reads them to hear.
|
|
120
|
-
*/
|
|
121
77
|
export function endWindow(database, input) {
|
|
122
78
|
const { intent, members, endedAt } = input;
|
|
123
79
|
const written = new Set();
|
|
@@ -141,23 +97,9 @@ export function endWindow(database, input) {
|
|
|
141
97
|
throw new Error(`Apply member ${member.entityId} ends shown without its Verify rows`);
|
|
142
98
|
}
|
|
143
99
|
}
|
|
144
|
-
// Detect never waits for Apply: a person's change to what the window
|
|
145
|
-
// showed, made anywhere its receipt does not place it, was recorded while
|
|
146
|
-
// the window was open. That newer local record supersedes the member, as
|
|
147
|
-
// it does at a look: its own row stands as Detect recorded it, nothing
|
|
148
|
-
// claims its materialization, and what it installed beneath itself still
|
|
149
|
-
// projects, so those children keep their identities by name inside it. A
|
|
150
|
-
// product records its construct whenever it acts and this end claims
|
|
151
|
-
// nothing of it, so a newer save simply follows. A played type's record
|
|
152
|
-
// is superseded only when that work hides it or makes it another type, as
|
|
153
|
-
// a Trash or a removed .git made here does: otherwise the work is played
|
|
154
|
-
// onto it and what stands is its shown target (Live's localWorkWins,
|
|
155
|
-
// docs/clash-rules.md).
|
|
156
100
|
const superseded = new Set(showing.filter(member => !isConstructType(member.type)
|
|
157
101
|
&& localWorkWins(member.type, localWorkAfterTarget(database, member.authorityId, member.entityId, member.kept ?? member.throughSequence)))
|
|
158
102
|
.map(member => member.entityId));
|
|
159
|
-
// The window's one observation is its basis, accepted once before any
|
|
160
|
-
// projection write.
|
|
161
103
|
const verified = showing.flatMap(member => {
|
|
162
104
|
const ground = member.verified ?? member.shown;
|
|
163
105
|
if (!ground)
|
|
@@ -194,7 +136,6 @@ export function endWindow(database, input) {
|
|
|
194
136
|
const leaves = member.outcome.kind === "materialized" && member.verified !== undefined && !showsHere(member);
|
|
195
137
|
const unshown = prefix.has(member) && settlesUnshown(member.outcome) && !writer.hides(member.entityId);
|
|
196
138
|
if (leaves || unshown) {
|
|
197
|
-
// A trashed container's Trash keep takes its proofs from O first.
|
|
198
139
|
const top = leaves ? writer.get("entities", member.entityId) : undefined;
|
|
199
140
|
if (top && intent !== null) {
|
|
200
141
|
noteKeptProofs(database, { attemptId: intent.attemptId, result: resultOf(member), top,
|
|
@@ -260,13 +201,6 @@ export function endWindow(database, input) {
|
|
|
260
201
|
}
|
|
261
202
|
return { written: [...written], stated };
|
|
262
203
|
}
|
|
263
|
-
/**
|
|
264
|
-
* One echo (Live's `joinedLineEchoes`, docs/clash-rules.md): this
|
|
265
|
-
* computer's own repository record played onto a line another computer's
|
|
266
|
-
* record had already moved states each checkout text file its play joined,
|
|
267
|
-
* and the joined line once, in this same save. This reads the facts Live's
|
|
268
|
-
* rule asks for and appends what it answers. Answers whether it stated.
|
|
269
|
-
*/
|
|
270
204
|
function stateJoinedLine(database, member, result, line, files, at) {
|
|
271
205
|
const echoes = joinedLineEchoes(result, line, files, {
|
|
272
206
|
head: () => {
|
|
@@ -276,8 +210,6 @@ function stateJoinedLine(database, member, result, line, files, at) {
|
|
|
276
210
|
return json === undefined ? undefined : decodeAcceptedEntityRecord(json);
|
|
277
211
|
},
|
|
278
212
|
own: record => cachedStatement(database, "SELECT 1 FROM record_outbox WHERE mutation_id = ?").get(record.mutationId) !== undefined,
|
|
279
|
-
// Later in this computer's record order, so accepted later: the head's
|
|
280
|
-
// own row may still wait for its stamp, and is no later record.
|
|
281
213
|
laterOwn: record => cachedStatement(database, `SELECT 1 FROM record_outbox WHERE authority_id = ? AND entity_id = ?
|
|
282
214
|
AND local_sequence > (SELECT local_sequence FROM record_outbox WHERE mutation_id = ?) LIMIT 1`)
|
|
283
215
|
.get(member.authorityId, member.entityId, record.mutationId) !== undefined,
|
|
@@ -293,8 +225,6 @@ function stateJoinedLine(database, member, result, line, files, at) {
|
|
|
293
225
|
}));
|
|
294
226
|
return echoes.length > 0;
|
|
295
227
|
}
|
|
296
|
-
/** The entity at `path` in a repository's checkout, by the names this
|
|
297
|
-
* computer's notebook holds, or null. */
|
|
298
228
|
function checkoutEntity(database, repository, path) {
|
|
299
229
|
let at = repository;
|
|
300
230
|
for (const name of path.split("/")) {
|
|
@@ -305,9 +235,6 @@ function checkoutEntity(database, repository, path) {
|
|
|
305
235
|
}
|
|
306
236
|
return at;
|
|
307
237
|
}
|
|
308
|
-
/** An entity's newest row as this computer knows it: its own unaccepted
|
|
309
|
-
* work, else the newer of its newest Inbox row and its own newest
|
|
310
|
-
* accepted row. */
|
|
311
238
|
function newestRow(database, authorityId, entityId) {
|
|
312
239
|
const own = cachedStatement(database, `SELECT record_json AS json, status, global_sequence AS position FROM record_outbox
|
|
313
240
|
WHERE authority_id = ? AND entity_id = ? ORDER BY local_sequence DESC LIMIT 1`)
|
|
@@ -322,8 +249,6 @@ function newestRow(database, authorityId, entityId) {
|
|
|
322
249
|
}
|
|
323
250
|
return received === undefined ? null : decodeAcceptedEntityRecord(received.json).change.result;
|
|
324
251
|
}
|
|
325
|
-
/** What the member's window read that has moved since, in words, or null:
|
|
326
|
-
* its history, or a place its judgment read. */
|
|
327
252
|
function readMoved(database, member) {
|
|
328
253
|
const { read } = member;
|
|
329
254
|
if ("position" in read
|
|
@@ -333,13 +258,6 @@ function readMoved(database, member) {
|
|
|
333
258
|
const place = movedPlace(database, read.places);
|
|
334
259
|
return place === null ? null : `was judged where ${place} no longer reads the same`;
|
|
335
260
|
}
|
|
336
|
-
/**
|
|
337
|
-
* A member stands at its target over any position another track's end gave
|
|
338
|
-
* it: its history resolves through the later of the two, and, unless a later
|
|
339
|
-
* result is already materialized here, every later row is owed again. Its
|
|
340
|
-
* materialization is the target's when Verify claimed it, nothing when its
|
|
341
|
-
* ground left, and otherwise unchanged.
|
|
342
|
-
*/
|
|
343
261
|
function standAt(database, at, member, claimed, gone) {
|
|
344
262
|
const { authorityId, entityId, throughSequence: target } = member;
|
|
345
263
|
const { state: prior, resolvedThrough } = resolutionStart(database, authorityId, entityId);
|
|
@@ -353,10 +271,6 @@ function standAt(database, at, member, claimed, gone) {
|
|
|
353
271
|
if (member.played !== null)
|
|
354
272
|
keepEntityLine(database, authorityId, entityId, target, member.played);
|
|
355
273
|
}
|
|
356
|
-
/** A kept member shows the kept head's state, which no row names: it stands
|
|
357
|
-
* before its first retained row, read at end, so a first row that arrived
|
|
358
|
-
* and settled during the window is owed again, and with none where its state
|
|
359
|
-
* stands. Its materialization claims nothing the kept ground replaced. */
|
|
360
274
|
function keptStands(database, member) {
|
|
361
275
|
const { authorityId, entityId } = member;
|
|
362
276
|
const standing = keptPosition(database, authorityId, entityId);
|
|
@@ -369,10 +283,6 @@ function keptStands(database, member) {
|
|
|
369
283
|
return;
|
|
370
284
|
upsertState(database, entityId, authorityId, standing, replaced ? null : prior.materializedSequence, replaced ? null : prior.materializedRecordJson);
|
|
371
285
|
}
|
|
372
|
-
/** What each Enter of an end placed, by the position its closure was read
|
|
373
|
-
* at: a lane's cutoff, else its target's delivery position. `installed` is
|
|
374
|
-
* every active closure entity it showed beside the window's members, and
|
|
375
|
-
* `containers` every container it newly placed, itself included. */
|
|
376
286
|
function enteredAt(database, intent, targets, placed) {
|
|
377
287
|
const members = new Set(intent.members.map(each => each.entityId));
|
|
378
288
|
const enters = new Map();
|
|
@@ -401,38 +311,23 @@ function enteredAt(database, intent, targets, placed) {
|
|
|
401
311
|
}
|
|
402
312
|
return enters;
|
|
403
313
|
}
|
|
404
|
-
/** An entity whose ground left this computer is materialized nowhere here,
|
|
405
|
-
* and keeps no line: a repository built here again starts its own. */
|
|
406
314
|
const forgetMaterialized = (database, entityId) => {
|
|
407
315
|
cachedStatement(database, `UPDATE entity_apply_state SET materialized_sequence = NULL,
|
|
408
316
|
materialized_record_json = NULL WHERE entity_id = ?`).run(entityId);
|
|
409
317
|
cachedStatement(database, "DELETE FROM git_lines WHERE entity_id = ?").run(entityId);
|
|
410
318
|
};
|
|
411
|
-
/** A record's own line: its package and the state it holds. */
|
|
412
319
|
export const recordLine = (result) => ({ package: result.transportVersion, state: result.payloadVersion });
|
|
413
|
-
/** The line a repository's next record plays onto (src/git/rail.ts): the
|
|
414
|
-
* package of the state the records through `through` left here, and that
|
|
415
|
-
* state. */
|
|
416
320
|
export const keepLine = (database, entityId, line, through) => {
|
|
417
321
|
cachedStatement(database, `INSERT INTO git_lines(entity_id, transport_version, state_id, through) VALUES (?, ?, ?, ?)
|
|
418
322
|
ON CONFLICT(entity_id) DO UPDATE SET transport_version = excluded.transport_version,
|
|
419
323
|
state_id = excluded.state_id, through = excluded.through`)
|
|
420
324
|
.run(entityId, line.package, line.state, through);
|
|
421
325
|
};
|
|
422
|
-
/** The kept line and the record it stands through. */
|
|
423
326
|
export const keptLine = (database, entityId) => {
|
|
424
327
|
const kept = cachedStatement(database, "SELECT transport_version AS package, state_id AS state, through FROM git_lines WHERE entity_id = ?")
|
|
425
328
|
.get(entityId);
|
|
426
329
|
return kept ? { line: { package: kept.package, state: kept.state }, through: kept.through } : null;
|
|
427
330
|
};
|
|
428
|
-
/** The records around a repository's record at `through`: every record the
|
|
429
|
-
* cloud accepted after the line at `since` and before `through`, each one
|
|
430
|
-
* the line settled rather than played (this computer's own, or one a Trash
|
|
431
|
-
* made here superseded), in the cloud's order, which the line takes in; and
|
|
432
|
-
* this computer's own records not accepted by `through`, each placed where
|
|
433
|
-
* the cloud accepted it (its stamp, or its Inbox row before the stamp), in
|
|
434
|
-
* its record order, which play on top. Only those that changed the Git
|
|
435
|
-
* directory carry a change (Live `gitOwnChange`). */
|
|
436
331
|
export function lineRecords(database, authorityId, entityId, since, through) {
|
|
437
332
|
const reached = cachedStatement(database, `SELECT record_json FROM record_inbox
|
|
438
333
|
WHERE authority_id = ? AND entity_id = ? AND global_sequence > ? AND global_sequence < ?
|
|
@@ -441,31 +336,14 @@ export function lineRecords(database, authorityId, entityId, since, through) {
|
|
|
441
336
|
const ahead = ownChangesAhead(database, authorityId, entityId, through).flatMap(change => gitOwnChange(change) ?? []);
|
|
442
337
|
return { reached, ahead };
|
|
443
338
|
}
|
|
444
|
-
/** The durable fact: every byte these windows revealed persists, so their
|
|
445
|
-
* receipts go. A strict save, so its commit's drive flush also covers every
|
|
446
|
-
* ordered save before it. */
|
|
447
339
|
export function forgetDurableWindows(database, input) {
|
|
448
340
|
for (const attemptId of input.attemptIds) {
|
|
449
341
|
cachedStatement(database, "DELETE FROM apply_window_members WHERE attempt_id = ?").run(attemptId);
|
|
450
342
|
cachedStatement(database, "DELETE FROM apply_windows WHERE attempt_id = ? AND ended_at IS NOT NULL").run(attemptId);
|
|
451
343
|
}
|
|
452
344
|
}
|
|
453
|
-
/** Whether a member's Verify placed its own row. A Leave places none: its
|
|
454
|
-
* result shows nowhere here. */
|
|
455
345
|
const showsHere = (member) => member.verified.ground.observed.some(row => row.record.uuid === member.entityId);
|
|
456
|
-
/** A head the line settles `neither` or `listed` showed nothing here, and B
|
|
457
|
-
* keeps its result (notebookPlacement), unless an absence hides O's row for
|
|
458
|
-
* it: then O and B both keep this computer's last showing, so the ground's
|
|
459
|
-
* return publishes nothing it did not change, and the result is owed again
|
|
460
|
-
* once that row shows (apply-shown-again.ts). */
|
|
461
346
|
export const settlesUnshown = (outcome) => outcome.kind === "settled" && (outcome.settlement === "neither" || outcome.settlement === "listed");
|
|
462
|
-
/** Where B keeps an accepted result this computer resolves without showing
|
|
463
|
-
* it: a Leave's, or a head the line settles `neither` or `listed`. B places each accepted
|
|
464
|
-
* row under its parent's own row, and a root by its binding. Trash changes
|
|
465
|
-
* only status, so while B holds the parent the result stays there with its
|
|
466
|
-
* subtree beneath it. A result whose parent B lacks leaves B with its
|
|
467
|
-
* subtree. The end then keeps an active result only where its parent does
|
|
468
|
-
* not stand in O, shown or hidden, either (unshownBeneath). */
|
|
469
347
|
export function notebookPlacement(notebook, target) {
|
|
470
348
|
const prior = notebook.shared(target.uuid);
|
|
471
349
|
if (!prior)
|
|
@@ -481,17 +359,6 @@ export function notebookPlacement(notebook, target) {
|
|
|
481
359
|
absolutePath: join(parent.absolutePath, target.name) };
|
|
482
360
|
return { shared: [placed, ...rebaseRows(notebook.rowsUnder(prior), prior, placed)], removedShared: [] };
|
|
483
361
|
}
|
|
484
|
-
/**
|
|
485
|
-
* Rows follow the reveal's order: a removal reveals last, so a result that
|
|
486
|
-
* stops showing here (a Leave, or a head settled `neither` or `listed`) projects after
|
|
487
|
-
* every member's rows are placed, and B keeps it (notebookPlacement), except
|
|
488
|
-
* a settled head whose O row an absence hides (settlesUnshown). A
|
|
489
|
-
* Leave takes off O what stands beneath its own row now: its window's
|
|
490
|
-
* receipt kept Detect out of that ground, and a member that left from
|
|
491
|
-
* beneath it in the same window has already been placed where it went, so
|
|
492
|
-
* it stays, as its ground did. A `neither` or `listed` head showed nothing
|
|
493
|
-
* here, so O, which only Detect has changed since, stays. Returns what left O or B.
|
|
494
|
-
*/
|
|
495
362
|
function stopShowing(writer, store, result, containers, leaves) {
|
|
496
363
|
const top = leaves ? writer.get("entities", result.uuid) : undefined;
|
|
497
364
|
const removedObserved = top ? store.rowsUnder("entities", top.rootUUID, top.relativePath).map(row => row.uuid) : [];
|
|
@@ -502,14 +369,6 @@ function stopShowing(writer, store, result, containers, leaves) {
|
|
|
502
369
|
project(writer, { observed: [], removedObserved, ...kept }, containers);
|
|
503
370
|
return [...removedObserved, ...kept.removedShared];
|
|
504
371
|
}
|
|
505
|
-
/**
|
|
506
|
-
* A file or link holds nothing beneath it. A container that became one took
|
|
507
|
-
* what stood beneath it aside with its directory (apply-window-reveal.ts), so
|
|
508
|
-
* the end takes those rows off O, as a Leave does, once every member has
|
|
509
|
-
* placed its rows: one that moved out in the same window stays where it went.
|
|
510
|
-
* B keeps each beneath its parent until its own record lands, hidden there
|
|
511
|
-
* (docs/detection.md). Returns what left O.
|
|
512
|
-
*/
|
|
513
372
|
function takeBeneath(writer, store, uuid, containers) {
|
|
514
373
|
const row = writer.get("entities", uuid);
|
|
515
374
|
const removedObserved = row
|
|
@@ -518,25 +377,6 @@ function takeBeneath(writer, store, uuid, containers) {
|
|
|
518
377
|
project(writer, { observed: [], shared: [], removedObserved, removedShared: [] }, containers);
|
|
519
378
|
return removedObserved;
|
|
520
379
|
}
|
|
521
|
-
/**
|
|
522
|
-
* B keeps what stood beneath a container this computer stopped showing,
|
|
523
|
-
* hidden beneath it (notebookPlacement). Where a parent stands in O, shown
|
|
524
|
-
* or hidden by an absence, B beneath it holds only what stands in O, so once
|
|
525
|
-
* every member has placed its rows, B at `uuid` and beneath it holds only
|
|
526
|
-
* that: any other active row whose parent stands leaves B with its subtree,
|
|
527
|
-
* so Detect never reads its absence as a person's removal (root-walk.ts: an
|
|
528
|
-
* active row whose parent stands), and a folder that shows again owes it as
|
|
529
|
-
* the newest result it is (apply-shown-again.ts). That is a member an Enter
|
|
530
|
-
* left out for its own later row to place, one a unit on demand does not
|
|
531
|
-
* place, a result the line lists, as a folder on demand returning from Trash
|
|
532
|
-
* is (a listed arrival has no B row either), or a Leave into a folder an
|
|
533
|
-
* absence hides here. A row that stands in O stays, so a row an absence
|
|
534
|
-
* hides keeps this computer's last showing in B as in O, and an inactive
|
|
535
|
-
* row keeps its subtree hidden beneath it. Nothing stands beneath a row O
|
|
536
|
-
* does not hold, so unless O holds it or it leaves itself, its subtree stays
|
|
537
|
-
* as it is, and a Trash costs nothing here. Rows come parents first. Returns
|
|
538
|
-
* what left B.
|
|
539
|
-
*/
|
|
540
380
|
function unshownBeneath(writer, store, uuid, containers) {
|
|
541
381
|
const root = writer.get("detection_notebook", uuid);
|
|
542
382
|
const shown = (id) => id !== null && writer.get("entities", id) !== undefined;
|
|
@@ -555,11 +395,6 @@ function unshownBeneath(writer, store, uuid, containers) {
|
|
|
555
395
|
project(writer, { observed: [], shared: [], removedObserved: [], removedShared }, containers);
|
|
556
396
|
return removedShared;
|
|
557
397
|
}
|
|
558
|
-
/** Verify's exact rows replace both inventories; only active results stay
|
|
559
|
-
* observed. Each container whose membership they change, and each container
|
|
560
|
-
* they replace, joins `containers`, re-derived once by the window's end. */
|
|
561
|
-
/** A member's Verify rows without its own, which a person's newer record
|
|
562
|
-
* holds. */
|
|
563
398
|
function without(ground, uuid) {
|
|
564
399
|
return { observed: ground.observed.filter(row => row.record.uuid !== uuid),
|
|
565
400
|
shared: ground.shared.filter(row => row.record.uuid !== uuid),
|
|
@@ -608,19 +443,6 @@ export function relocateRows(database, relocation) {
|
|
|
608
443
|
});
|
|
609
444
|
}
|
|
610
445
|
const sharingOf = (inventory) => inventory === "detection_notebook" ? "retain-equivalent" : undefined;
|
|
611
|
-
/** Only verified materialization discharges an entity's Apply obligation, and
|
|
612
|
-
* an install verified exactly the entities it revealed or set aside. Each stands
|
|
613
|
-
* at its last record within T, the one dense per-entity predecessor of its
|
|
614
|
-
* first later record: its history resolves through that record, and every
|
|
615
|
-
* later record stays owed. That record is its materialized result only when
|
|
616
|
-
* the install verified exactly that version; an absent member, or one its
|
|
617
|
-
* repository's package placed, stands materialized nowhere. An installed
|
|
618
|
-
* repository's line is the one its next record plays onto: its record's
|
|
619
|
-
* state, or the line its install played, whose shown state is Apply's own. An entity a window
|
|
620
|
-
* owns keeps the history it began on, and one this computer already
|
|
621
|
-
* materialized past that record keeps its materialization. Histories are one
|
|
622
|
-
* index seek per entity: the entities lead, and INDEXED BY refuses an Inbox
|
|
623
|
-
* scan. */
|
|
624
446
|
export function recordInstallMaterialization(database, input) {
|
|
625
447
|
const { authorityId, watermark, resolvedAt } = input;
|
|
626
448
|
const lines = new Map((input.lines ?? []).map(({ uuid, line }) => [uuid, line]));
|
|
@@ -644,9 +466,6 @@ export function recordInstallMaterialization(database, input) {
|
|
|
644
466
|
const prior = applyState(database, authorityId, entityId);
|
|
645
467
|
if (prior?.materializedSequence != null && prior.materializedSequence > standing)
|
|
646
468
|
continue;
|
|
647
|
-
// What the install shows is the line through its record (the lookup
|
|
648
|
-
// plays each accepted change), so that is what it materializes and where
|
|
649
|
-
// the line stands next.
|
|
650
469
|
const result = within === null ? null : playedLine(database, authorityId, entityId, within)
|
|
651
470
|
?? decodeAcceptedEntityRecord(cachedStatement(database, `SELECT record_json
|
|
652
471
|
FROM record_inbox WHERE authority_id = ? AND entity_id = ? AND global_sequence = ?`).pluck()
|
|
@@ -660,8 +479,6 @@ export function recordInstallMaterialization(database, input) {
|
|
|
660
479
|
upsertState(database, entityId, authorityId, standing, materialized === null ? null : standing, materialized);
|
|
661
480
|
if (result !== null)
|
|
662
481
|
keepEntityLine(database, authorityId, entityId, standing, result);
|
|
663
|
-
// An installed repository stands at its record's state, which is the line
|
|
664
|
-
// the next record plays onto; one not verified there keeps no line.
|
|
665
482
|
if (result?.type === "repo.git" && materialized !== null && result.transportVersion) {
|
|
666
483
|
keepLine(database, entityId, line ?? recordLine(result), standing);
|
|
667
484
|
}
|
|
@@ -671,4 +488,3 @@ export function recordInstallMaterialization(database, input) {
|
|
|
671
488
|
}
|
|
672
489
|
}
|
|
673
490
|
export const settles = isSettlement;
|
|
674
|
-
//# sourceMappingURL=apply-window-saves.js.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/** The window's store port (Live EntityApplyStorePort): reads on this
|
|
2
|
-
* connection, and the three facts as saves on the ground file's saver thread
|
|
3
|
-
* (apply-window-saves.ts). The host stages each member's receipt before the
|
|
4
|
-
* bind and each member's verified rows before the end; the store posts them
|
|
5
|
-
* as one save each. */
|
|
6
1
|
import { isConstructType, lineStart, playRecords, resolvedPrefix, } from "@amalgm/live";
|
|
7
2
|
import { dirname } from "node:path";
|
|
8
3
|
import { NOTHING_ON_DEMAND } from "./apply-showing.js";
|
|
@@ -21,12 +16,8 @@ import { sha256Hex } from "./sha256.js";
|
|
|
21
16
|
import { groundStore } from "./ground-store.js";
|
|
22
17
|
import { lineLoops } from "./line-loops.js";
|
|
23
18
|
import { closePhysically, sourceProofs } from "./source-proof.js";
|
|
24
|
-
/** The fact a refusal names as moved, or null for a fault: a database fact
|
|
25
|
-
* the save re-read, or the disk or Git answer a retained witness saw. */
|
|
26
19
|
const movedFact = (error) => error instanceof GroundBasisChangedError || error instanceof CaptureSourceChangedError
|
|
27
20
|
|| error instanceof GitKeptChangingError ? error.message : null;
|
|
28
|
-
/** The result a member ends at: a kept member's kept state, else its line
|
|
29
|
-
* played through its target (Live selectEntityApply), or null for a kept one. */
|
|
30
21
|
const playedAt = (database, member, throughSequence) => {
|
|
31
22
|
const { work } = member;
|
|
32
23
|
if (work.kept !== null)
|
|
@@ -60,18 +51,11 @@ export class ApplyWindowStore {
|
|
|
60
51
|
#line;
|
|
61
52
|
#lane;
|
|
62
53
|
#judge;
|
|
63
|
-
/** What each lane member's window read: its materialized sequence. A
|
|
64
|
-
* line member's read is its resolved position, which its work carries. */
|
|
65
54
|
#reads = new WeakMap();
|
|
66
|
-
/** The places each member's judgment read, by the line or a lane. */
|
|
67
55
|
#judged = new WeakMap();
|
|
68
|
-
/** The same reads by unit and member, for a lane window's bind. */
|
|
69
56
|
#laneReads = new Map();
|
|
70
|
-
/** Each playing member's receipt, staged by its final guard, keyed by window. */
|
|
71
57
|
#receipts = new Map();
|
|
72
|
-
/** Each member's verified rows, staged by Verify, keyed by entity. */
|
|
73
58
|
#verified = new Map();
|
|
74
|
-
/** Each window's one observation, keyed by window. */
|
|
75
59
|
#observations = new Map();
|
|
76
60
|
constructor(database, options) {
|
|
77
61
|
this.#database = database;
|
|
@@ -86,18 +70,14 @@ export class ApplyWindowStore {
|
|
|
86
70
|
readApplyAuthorities() {
|
|
87
71
|
return this.#line.authorities();
|
|
88
72
|
}
|
|
89
|
-
/** The line's next step, through the position its judge has reached. */
|
|
90
73
|
async readApplyWindow(authorityId, before) {
|
|
91
74
|
const judged = await this.#judge.judge(authorityId);
|
|
92
75
|
return this.#judge.withLineParents(authorityId, lineParent => this.#line.step(authorityId, before, judged, lineParent));
|
|
93
76
|
}
|
|
94
|
-
/** The line's judged, unresolved rows after `after`, for fetching ahead. */
|
|
95
77
|
async readApplyAhead(authorityId, after, limit) {
|
|
96
78
|
const judged = await this.#judge.judge(authorityId);
|
|
97
79
|
return this.#line.ahead(authorityId, after, limit, judged);
|
|
98
80
|
}
|
|
99
|
-
/** One step of a unit's fetch lane (apply-window-lane.ts); each member's
|
|
100
|
-
* read is remembered for its bind and end. */
|
|
101
81
|
async readFetchWindow(unit, through) {
|
|
102
82
|
const step = await this.#lane.step(unit, through);
|
|
103
83
|
if (step.kind !== "window")
|
|
@@ -117,31 +97,20 @@ export class ApplyWindowStore {
|
|
|
117
97
|
localWorkAfter(authorityId, entityId, target) {
|
|
118
98
|
return localWorkAfterTarget(this.#database, authorityId, entityId, target);
|
|
119
99
|
}
|
|
120
|
-
/** A member's receipt, frozen by its final guard for the bind. */
|
|
121
100
|
stageReceipt(receipt) {
|
|
122
101
|
const window = this.#receipts.get(receipt.intent.attemptId) ?? new Map();
|
|
123
102
|
this.#receipts.set(receipt.intent.attemptId, window);
|
|
124
103
|
window.set(receipt.intent.entityId, JSON.parse(JSON.stringify(receipt)));
|
|
125
104
|
}
|
|
126
|
-
/** The receipts a window staged, or bound. */
|
|
127
105
|
receipts(attemptId) {
|
|
128
106
|
return this.#receipts.get(attemptId) ?? new Map();
|
|
129
107
|
}
|
|
130
|
-
/** A window is remembered by its bound receipts (recovery reads them from
|
|
131
|
-
* its rows). */
|
|
132
108
|
rememberReceipts(attemptId, receipts) {
|
|
133
109
|
this.#receipts.set(attemptId, new Map(receipts.map(receipt => [receipt.intent.entityId, receipt])));
|
|
134
110
|
}
|
|
135
|
-
/** A window that never bound forgets what it staged. */
|
|
136
111
|
forgetReceipts(attemptId) {
|
|
137
112
|
this.#receipts.delete(attemptId);
|
|
138
113
|
}
|
|
139
|
-
/** The window's row and every member's receipt, in one strict commit.
|
|
140
|
-
* Every file the window staged persists first, with every staged name,
|
|
141
|
-
* flushed as one set: Apply shows only bytes the drive holds, so whatever
|
|
142
|
-
* later differs in a shown object is a person's save, never a power cut's
|
|
143
|
-
* tear, and a staged object at neither its private name nor its address
|
|
144
|
-
* was moved by a person (apply-window-recovery.ts). */
|
|
145
114
|
async bindWindow(intent) {
|
|
146
115
|
const staged = this.#receipts.get(intent.attemptId);
|
|
147
116
|
const members = intent.members.map(member => {
|
|
@@ -157,14 +126,6 @@ export class ApplyWindowStore {
|
|
|
157
126
|
return waiting;
|
|
158
127
|
return undefined;
|
|
159
128
|
}
|
|
160
|
-
/**
|
|
161
|
-
* A window's Verify reads are one observation (docs/entity-apply.md): the
|
|
162
|
-
* first fixes its sequence, and each later read stands for it only while
|
|
163
|
-
* every fact that read consumes is unchanged since, so a save between two
|
|
164
|
-
* members' Verifies that moved nothing either consumed changes nothing.
|
|
165
|
-
* The end accepts the one basis they share. A read that cannot stand
|
|
166
|
-
* refuses the window: its end commits nothing, and the line reads again.
|
|
167
|
-
*/
|
|
168
129
|
verificationRead(attemptId, operation) {
|
|
169
130
|
let window = this.#observations.get(attemptId);
|
|
170
131
|
if (!window) {
|
|
@@ -185,32 +146,22 @@ export class ApplyWindowStore {
|
|
|
185
146
|
return { kind: "stale", reason: error.message };
|
|
186
147
|
}
|
|
187
148
|
}
|
|
188
|
-
/** A pass that reads again, or never ends, drops its observation and
|
|
189
|
-
* every row read under it. */
|
|
190
149
|
forgetObservation(attemptId) {
|
|
191
150
|
this.#observations.delete(attemptId);
|
|
192
151
|
for (const [entityId, staged] of this.#verified)
|
|
193
152
|
if (staged.attemptId === attemptId)
|
|
194
153
|
this.#verified.delete(entityId);
|
|
195
154
|
}
|
|
196
|
-
/** Verify's rows as data: each repository observation's proof closes with
|
|
197
|
-
* the Verify proof, never on the saver thread. */
|
|
198
155
|
stageVerification(intent, ground, proof) {
|
|
199
156
|
if (isConstructType(intent.targetType))
|
|
200
157
|
throw new Error("construct verification cannot claim filesystem ground");
|
|
201
158
|
this.#verified.set(intent.entityId, { attemptId: intent.attemptId, proof, ground: detachGround(ground), shown: false });
|
|
202
159
|
}
|
|
203
|
-
/** The rows of a result the window showed that a person changed, moved or
|
|
204
|
-
* removed before Verify read it: its staged object at its address, unsighted,
|
|
205
|
-
* so Detect reads the person's version against the identity Apply showed.
|
|
206
|
-
* They project at the end under the same observation; the member stays owed. */
|
|
207
160
|
stageShown(intent, ground, proof) {
|
|
208
161
|
if (isConstructType(intent.targetType))
|
|
209
162
|
throw new Error("construct Apply shows no filesystem ground");
|
|
210
163
|
this.#verified.set(intent.entityId, { attemptId: intent.attemptId, proof, ground: detachGround(ground), shown: true });
|
|
211
164
|
}
|
|
212
|
-
/** Product verification has no filesystem projection. The product remains
|
|
213
|
-
* the owner of its running state and ledger; this stages its exact receipt. */
|
|
214
165
|
stageConstructVerification(intent, target) {
|
|
215
166
|
if (!isConstructType(intent.targetType) || target.uuid !== intent.entityId
|
|
216
167
|
|| target.type !== intent.targetType || target.version !== intent.targetState) {
|
|
@@ -218,13 +169,6 @@ export class ApplyWindowStore {
|
|
|
218
169
|
}
|
|
219
170
|
this.#verified.set(intent.entityId, { attemptId: intent.attemptId, ground: null, proof: sourceProofs([]), shown: false });
|
|
220
171
|
}
|
|
221
|
-
/**
|
|
222
|
-
* The end commit checks every fact the staged proofs consumed: Git and
|
|
223
|
-
* other slow owners re-answer first, native witnesses close as the save is
|
|
224
|
-
* posted, and the save re-reads each database fact inside its own
|
|
225
|
-
* transaction. A moved fact changes nothing: the answer is stale against
|
|
226
|
-
* committed truth, and the line reads again. Any other refusal is a fault.
|
|
227
|
-
*/
|
|
228
172
|
async endWindow(intent, members, outcomes) {
|
|
229
173
|
if (members.length !== outcomes.length)
|
|
230
174
|
throw new Error("Apply end names an outcome per member");
|
|
@@ -259,7 +203,6 @@ export class ApplyWindowStore {
|
|
|
259
203
|
this.#onStale(ended.filter(member => member.verified), reason);
|
|
260
204
|
return { kind: "stale", reason };
|
|
261
205
|
};
|
|
262
|
-
// Every Verify this pass made read the window's one observation.
|
|
263
206
|
const attempts = new Set(ended.flatMap(member => member.attemptId === null ? [] : [member.attemptId]));
|
|
264
207
|
if (intent !== null)
|
|
265
208
|
attempts.add(intent.attemptId);
|
|
@@ -275,9 +218,6 @@ export class ApplyWindowStore {
|
|
|
275
218
|
if (projects && !window)
|
|
276
219
|
throw new Error("Apply Verify rows have no observation to end with");
|
|
277
220
|
const proofs = ended.flatMap(member => member.proof ? [member.proof] : []);
|
|
278
|
-
// A head settled unshown beside a member that projects writes its B rows
|
|
279
|
-
// under the same basis, so the observation reads what that placement
|
|
280
|
-
// consumes before it finishes.
|
|
281
221
|
const unshown = projects ? resolvedPrefix(ended, member => member.outcome.kind !== "owed").flatMap((member, index) => settlesUnshown(member.outcome) ? [resultAt(this.#database, members[index], member.throughSequence)] : []) : [];
|
|
282
222
|
let written;
|
|
283
223
|
let stated;
|
|
@@ -309,4 +249,3 @@ export class ApplyWindowStore {
|
|
|
309
249
|
this.#database.close();
|
|
310
250
|
}
|
|
311
251
|
}
|
|
312
|
-
//# sourceMappingURL=apply-window-store.js.map
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/** Verify's rows: what one reread of a member's real ground projects into
|
|
2
|
-
* both inventories, O (`entities`) and B (`detection_notebook`), and the
|
|
3
|
-
* basis that protects every fact those rows consume. The reread itself is
|
|
4
|
-
* the host's one comparator; these build its rows. */
|
|
5
1
|
import { dirname, join, posix, relative, sep } from "node:path";
|
|
6
2
|
import { CONTAINERS } from "@amalgm/live";
|
|
7
3
|
import { holds } from "./apply-spelling.js";
|
|
@@ -10,14 +6,9 @@ import { portableGroundRecord as portable, reparented } from "./ground-row.js";
|
|
|
10
6
|
import { optionalLstat, PhysicalPathWitnesses } from "./physical-path-witness.js";
|
|
11
7
|
import { sourceFingerprint, standingSighting } from "./source-signature.js";
|
|
12
8
|
import { witnessProof } from "./source-proof.js";
|
|
13
|
-
/** The fields a Verify receipt keeps of what it read. */
|
|
14
9
|
export const receiptStats = (actual) => Object.freeze({ dev: actual.dev, ino: actual.ino,
|
|
15
10
|
birthtimeNs: actual.birthtimeNs, mode: actual.mode, nlink: actual.nlink, size: actual.size, mtimeNs: actual.mtimeNs,
|
|
16
11
|
ctimeNs: actual.ctimeNs });
|
|
17
|
-
/** The member's own row at its target, with the sighting it stands on:
|
|
18
|
-
* what the row already stands on stays, anything else takes Verify's
|
|
19
|
-
* clock. A repository's names the package Verify found carrying it, since a
|
|
20
|
-
* row names only what this computer holds. */
|
|
21
12
|
export function verifiedRow(ground, target, context, receipt, clock) {
|
|
22
13
|
const prior = context.parent ?? context.current;
|
|
23
14
|
if (!prior)
|
|
@@ -36,8 +27,6 @@ export function verifiedRow(ground, target, context, receipt, clock) {
|
|
|
36
27
|
sighting: standingSighting(ground.current(target.uuid), { payloadVersion: target.payloadVersion, ...fingerprint }, sightingUnder(clock, stats)),
|
|
37
28
|
};
|
|
38
29
|
}
|
|
39
|
-
/** Address changes preserve each inventory's own portable values. Verifying
|
|
40
|
-
* a container does not admit the contents of independent descendants. */
|
|
41
30
|
export function rebaseRows(rows, prior, target) {
|
|
42
31
|
return rows.filter(row => row.uuid !== prior.uuid).map(row => ({
|
|
43
32
|
...row, record: portable(row), rootUUID: target.rootUUID, resourceId: target.resourceId,
|
|
@@ -45,8 +34,6 @@ export function rebaseRows(rows, prior, target) {
|
|
|
45
34
|
absolutePath: target.absolutePath + row.absolutePath.slice(prior.absolutePath.length),
|
|
46
35
|
}));
|
|
47
36
|
}
|
|
48
|
-
/** A container's rows: its own, and its subtree rebased beneath its new
|
|
49
|
-
* address when it moved. */
|
|
50
37
|
export function containerGround(ground, target, context, root) {
|
|
51
38
|
const rows = { observed: [root], shared: [root] };
|
|
52
39
|
for (const [inventory, output] of [["entities", "observed"], ["detection_notebook", "shared"]]) {
|
|
@@ -58,8 +45,6 @@ export function containerGround(ground, target, context, root) {
|
|
|
58
45
|
}
|
|
59
46
|
return { ...rows, removedObserved: [], removedShared: [] };
|
|
60
47
|
}
|
|
61
|
-
/** An Enter's rows: its landed root, read fresh, and every other row its
|
|
62
|
-
* seal holds, rebased beneath it. */
|
|
63
48
|
export function enterGround(enter, root) {
|
|
64
49
|
const members = enter.seal.rows.filter(row => row.relativePath !== "").map((row) => ({
|
|
65
50
|
resourceId: root.resourceId,
|
|
@@ -76,12 +61,7 @@ export function enterGround(enter, root) {
|
|
|
76
61
|
return { observed: rows, shared: rows, removedObserved: [], removedShared: [],
|
|
77
62
|
...enter.seal.lines ? { lines: enter.seal.lines } : {} };
|
|
78
63
|
}
|
|
79
|
-
/** A Leave's rows: none placed. Its result stops showing here, so the end
|
|
80
|
-
* takes off O what stands beneath it once every member that shows here has
|
|
81
|
-
* placed its rows, and B keeps it (apply-window-saves.ts, stopShowing). */
|
|
82
64
|
export const leaveGround = () => ({ observed: [], shared: [], removedObserved: [], removedShared: [] });
|
|
83
|
-
/** The rows of each sibling the member moved, placed where its object
|
|
84
|
-
* stands now, read inside Verify's snapshot. Only addresses change. */
|
|
85
65
|
export function roomRows(reader, receipt) {
|
|
86
66
|
const observed = [], shared = [];
|
|
87
67
|
const witnesses = new PhysicalPathWitnesses();
|
|
@@ -97,8 +77,6 @@ export function roomRows(reader, receipt) {
|
|
|
97
77
|
const top = rows.find(row => row.uuid === move.uuid);
|
|
98
78
|
if (!top)
|
|
99
79
|
continue;
|
|
100
|
-
// A return changes folder: standing at its destination, it goes under
|
|
101
|
-
// the entity shown at that folder (apply-window-saves.ts, relocateRows).
|
|
102
80
|
const returned = atDestination && dirname(move.source) !== dirname(move.destination);
|
|
103
81
|
if (!returned && top.absolutePath === actual)
|
|
104
82
|
continue;
|
|
@@ -126,9 +104,6 @@ function shownAtFolder(reader, rootUUID, relativePath) {
|
|
|
126
104
|
throw new Error(`Apply return has no parent shown at ${folder}`);
|
|
127
105
|
return shown[0].uuid;
|
|
128
106
|
}
|
|
129
|
-
/** A member's rows with the room its reveal made: each sibling it moved, and
|
|
130
|
-
* each return, stands where the room put it, never beneath the container it
|
|
131
|
-
* left, whose own rows were read before the room moved. */
|
|
132
107
|
export function withRoom(ground, room) {
|
|
133
108
|
const placed = (rows, moved) => {
|
|
134
109
|
const ids = new Set(moved.map(row => row.record.uuid));
|
|
@@ -136,17 +111,6 @@ export function withRoom(ground, room) {
|
|
|
136
111
|
};
|
|
137
112
|
return { ...ground, observed: placed(ground.observed, room.observed), shared: placed(ground.shared, room.shared) };
|
|
138
113
|
}
|
|
139
|
-
/** Original O/B evidence is captured before any verification output reads
|
|
140
|
-
* it. A proof holds what it states, never what a save derives: each row it
|
|
141
|
-
* writes (the target, its subtree, its manifest members and the accepted
|
|
142
|
-
* containers they fill, with those containers' children, and each moved
|
|
143
|
-
* sibling's subtree), and of each other container a row leaves or joins
|
|
144
|
-
* only where that container stands, plus the one slot the target takes. A
|
|
145
|
-
* container's membership version is re-derived by the save itself, so a
|
|
146
|
-
* sibling recorded meanwhile never stales this proof. A subtree read
|
|
147
|
-
* already holds every row it returns, so a member is read by itself only
|
|
148
|
-
* where it stands outside those subtrees, or nowhere yet. The reader is the
|
|
149
|
-
* window's one observation (ApplyWindowStore.verificationRead). */
|
|
150
114
|
export function readVerificationFacts(reader, target, members, containers, moved) {
|
|
151
115
|
const written = new Set([target.uuid, ...members, ...containers, ...moved]);
|
|
152
116
|
const parents = new Set(target.parentUUID ? [target.parentUUID] : []);
|
|
@@ -168,7 +132,6 @@ export function readVerificationFacts(reader, target, members, containers, moved
|
|
|
168
132
|
if (row?.parentUUID)
|
|
169
133
|
parents.add(row.parentUUID);
|
|
170
134
|
}
|
|
171
|
-
// Accepted containers occur in the result before they have rows.
|
|
172
135
|
for (const uuid of containers) {
|
|
173
136
|
read(uuid);
|
|
174
137
|
reader.children(inventory, uuid);
|
|
@@ -183,13 +146,8 @@ export function readVerificationFacts(reader, target, members, containers, moved
|
|
|
183
146
|
}
|
|
184
147
|
}
|
|
185
148
|
}
|
|
186
|
-
/** What B's placement of a result this computer settles without showing
|
|
187
|
-
* consumes (notebookPlacement): its row with every row beneath it, and where
|
|
188
|
-
* its parent stands. A window whose other members project reads these into
|
|
189
|
-
* its one observation, so the basis its end accepts holds every row it writes. */
|
|
190
149
|
export function readPlacementFacts(reader, target) {
|
|
191
150
|
reader.subtree("detection_notebook", target.uuid);
|
|
192
151
|
if (target.parentUUID)
|
|
193
152
|
reader.structure("detection_notebook", target.parentUUID);
|
|
194
153
|
}
|
|
195
|
-
//# sourceMappingURL=apply-window-verify.js.map
|