@amalgm/live 0.2.81-preview.45708334404 → 0.2.81-preview.46146788616
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/apply/contracts.d.ts +17 -348
- package/dist/apply/contracts.js +1 -108
- package/dist/apply/fetch-ahead.d.ts +0 -45
- package/dist/apply/fetch-ahead.js +1 -169
- package/dist/apply/index.d.ts +0 -2
- package/dist/apply/index.js +1 -10
- package/dist/apply/journey.d.ts +0 -35
- package/dist/apply/journey.js +1 -403
- package/dist/apply/lane.d.ts +0 -34
- package/dist/apply/lane.js +1 -72
- package/dist/apply/line.d.ts +0 -28
- package/dist/apply/line.js +1 -81
- package/dist/apply/plans.d.ts +0 -14
- package/dist/apply/plans.js +1 -182
- package/dist/apply/rail.d.ts +0 -60
- package/dist/apply/rail.js +1 -776
- package/dist/apply/selection.d.ts +0 -15
- package/dist/apply/selection.js +1 -111
- package/dist/apply/settling.d.ts +0 -57
- package/dist/apply/settling.js +1 -63
- package/dist/apply/showing.d.ts +1 -95
- package/dist/apply/showing.js +1 -203
- package/dist/apply/type-adapters.d.ts +0 -8
- package/dist/apply/type-adapters.js +1 -39
- package/dist/apply/window.d.ts +0 -109
- package/dist/apply/window.js +1 -323
- package/dist/clash/bodmas.d.ts +1 -51
- package/dist/clash/bodmas.js +1 -130
- package/dist/clash/echo.d.ts +0 -27
- package/dist/clash/echo.js +1 -35
- package/dist/clash/index.d.ts +0 -1
- package/dist/clash/index.js +1 -6
- package/dist/clash/local-work.d.ts +0 -36
- package/dist/clash/local-work.js +1 -51
- package/dist/clash/resolution.d.ts +0 -13
- package/dist/clash/resolution.js +1 -15
- package/dist/clash/tetris.d.ts +0 -18
- package/dist/clash/tetris.js +1 -26
- package/dist/{sharing/command-input.d.ts → commands/input.d.ts} +5 -9
- package/dist/commands/input.js +1 -0
- package/dist/commands/mcp.d.ts +23 -0
- package/dist/commands/mcp.js +1 -0
- package/dist/contracts/content.d.ts +0 -78
- package/dist/contracts/content.js +1 -251
- package/dist/contracts/index.d.ts +0 -6
- package/dist/contracts/index.js +1 -9
- package/dist/contracts/protection.d.ts +16 -22
- package/dist/contracts/protection.js +1 -53
- package/dist/contracts/validate.d.ts +0 -18
- package/dist/contracts/validate.js +1 -23
- package/dist/detection/adapter-contract.d.ts +0 -75
- package/dist/detection/adapter-contract.js +1 -130
- package/dist/detection/batch.d.ts +1 -14
- package/dist/detection/batch.js +1 -75
- package/dist/detection/classify.d.ts +6 -40
- package/dist/detection/classify.js +1 -45
- package/dist/detection/content.d.ts +0 -17
- package/dist/detection/content.js +1 -76
- package/dist/detection/dispositions.d.ts +3 -82
- package/dist/detection/dispositions.js +0 -20
- package/dist/detection/echo.d.ts +0 -20
- package/dist/detection/echo.js +1 -33
- package/dist/detection/identity.d.ts +0 -56
- package/dist/detection/identity.js +1 -229
- package/dist/detection/ignore-lines.d.ts +0 -15
- package/dist/detection/ignore-lines.js +2 -212
- package/dist/detection/index.d.ts +0 -31
- package/dist/detection/index.js +1 -48
- package/dist/detection/package-proposal.d.ts +0 -24
- package/dist/detection/package-proposal.js +1 -114
- package/dist/detection/record-order.d.ts +5 -19
- package/dist/detection/record-order.js +1 -311
- package/dist/detection/record-proposal.d.ts +0 -98
- package/dist/detection/record-proposal.js +1 -384
- package/dist/detection/refusal.d.ts +0 -69
- package/dist/detection/refusal.js +1 -78
- package/dist/detection/removals.d.ts +0 -8
- package/dist/detection/removals.js +1 -51
- package/dist/detection/scoped-identity.d.ts +1 -61
- package/dist/detection/scoped-identity.js +1 -189
- package/dist/detection/skip-defaults.d.ts +0 -16
- package/dist/detection/skip-defaults.js +3 -20
- package/dist/detection/skip-policy.d.ts +0 -58
- package/dist/detection/skip-policy.js +1 -203
- package/dist/detection/watch-boundary.d.ts +0 -16
- package/dist/detection/watch-boundary.js +1 -47
- package/dist/drive/contracts.d.ts +0 -182
- package/dist/drive/contracts.js +1 -30
- package/dist/drive/drive.d.ts +0 -147
- package/dist/drive/drive.js +1 -414
- package/dist/drive/held-removals.d.ts +0 -49
- package/dist/drive/held-removals.js +1 -136
- package/dist/drive/index.d.ts +0 -7
- package/dist/drive/index.js +1 -16
- package/dist/drive/kept.d.ts +0 -10
- package/dist/drive/kept.js +1 -33
- package/dist/drive/listing.d.ts +2 -13
- package/dist/drive/listing.js +1 -84
- package/dist/drive/map-index.d.ts +0 -59
- package/dist/drive/map-index.js +1 -240
- package/dist/drive/placements.d.ts +0 -71
- package/dist/drive/placements.js +1 -164
- package/dist/drive/records.d.ts +0 -43
- package/dist/drive/records.js +1 -85
- package/dist/drive/where.d.ts +7 -94
- package/dist/drive/where.js +2 -378
- package/dist/entities/accepted-view.d.ts +0 -47
- package/dist/entities/accepted-view.js +1 -260
- package/dist/entities/bytes.d.ts +0 -16
- package/dist/entities/bytes.js +1 -112
- package/dist/entities/cloud.d.ts +0 -125
- package/dist/entities/cloud.js +1 -430
- package/dist/entities/graph-head.d.ts +0 -32
- package/dist/entities/graph-head.js +1 -114
- package/dist/entities/graph-pages.d.ts +0 -75
- package/dist/entities/graph-pages.js +1 -239
- package/dist/entities/index.d.ts +0 -28
- package/dist/entities/index.js +1 -40
- package/dist/entities/package-pages.d.ts +0 -28
- package/dist/entities/package-pages.js +1 -91
- package/dist/entities/placement-owed.d.ts +0 -27
- package/dist/entities/placement-owed.js +1 -86
- package/dist/entities/reducer.d.ts +0 -30
- package/dist/entities/reducer.js +1 -130
- package/dist/entities/registry-graph.d.ts +0 -80
- package/dist/entities/registry-graph.js +1 -478
- package/dist/entities/rules.d.ts +7 -72
- package/dist/entities/rules.js +1 -230
- package/dist/entities/types.d.ts +0 -71
- package/dist/entities/types.js +1 -55
- package/dist/entities/units.d.ts +0 -25
- package/dist/entities/units.js +1 -27
- package/dist/faults/classify.d.ts +0 -24
- package/dist/faults/classify.js +1 -77
- package/dist/faults/index.d.ts +0 -8
- package/dist/faults/index.js +1 -13
- package/dist/faults/need.d.ts +0 -24
- package/dist/faults/need.js +1 -76
- package/dist/faults/recover.d.ts +0 -18
- package/dist/faults/recover.js +1 -44
- package/dist/faults/report.d.ts +0 -23
- package/dist/faults/report.js +1 -130
- package/dist/faults/scrub.d.ts +0 -27
- package/dist/faults/scrub.js +3 -159
- package/dist/faults/wire.d.ts +0 -13
- package/dist/faults/wire.js +1 -42
- package/dist/files/accepted-files.d.ts +0 -37
- package/dist/files/accepted-files.js +1 -129
- package/dist/files/api.d.ts +0 -1
- package/dist/files/api.js +1 -83
- package/dist/files/browse-types.d.ts +7 -7
- package/dist/files/browse-types.js +1 -46
- package/dist/files/browser.d.ts +4 -2
- package/dist/files/browser.js +1 -100
- package/dist/files/cloud-files.d.ts +6 -5
- package/dist/files/cloud-files.js +1 -153
- package/dist/files/commands.d.ts +0 -54
- package/dist/files/commands.js +1 -140
- package/dist/files/computer-address.d.ts +0 -10
- package/dist/files/computer-address.js +1 -48
- package/dist/files/index.d.ts +1 -3
- package/dist/files/index.js +1 -18
- package/dist/files/local-files.d.ts +0 -2
- package/dist/files/local-files.js +1 -104
- package/dist/files/media-type.d.ts +0 -1
- package/dist/files/media-type.js +1 -50
- package/dist/files/own-folders.d.ts +0 -29
- package/dist/files/own-folders.js +1 -50
- package/dist/files/plans.d.ts +1 -16
- package/dist/files/plans.js +1 -36
- package/dist/files/trash.d.ts +0 -97
- package/dist/files/trash.js +1 -287
- package/dist/files/usage-categories.d.ts +0 -13
- package/dist/files/usage-categories.js +1 -33
- package/dist/files/usage-chain.d.ts +0 -27
- package/dist/files/usage-chain.js +1 -44
- package/dist/files/usage-effect.d.ts +0 -34
- package/dist/files/usage-effect.js +1 -29
- package/dist/files/usage.d.ts +3 -47
- package/dist/files/usage.js +1 -132
- package/dist/git/alternates.d.ts +0 -21
- package/dist/git/alternates.js +1 -79
- package/dist/git/artifact.d.ts +0 -69
- package/dist/git/artifact.js +1 -190
- package/dist/git/chain.d.ts +0 -32
- package/dist/git/chain.js +1 -55
- package/dist/git/holds.d.ts +30 -0
- package/dist/git/holds.js +1 -0
- package/dist/git/index.d.ts +4 -2
- package/dist/git/index.js +1 -11
- package/dist/git/parts.d.ts +10 -0
- package/dist/git/parts.js +7 -0
- package/dist/git/places.d.ts +6 -0
- package/dist/git/places.js +1 -0
- package/dist/git/plan.d.ts +0 -40
- package/dist/git/plan.js +1 -97
- package/dist/git/play.d.ts +11 -72
- package/dist/git/play.js +4 -318
- package/dist/git/refs.d.ts +0 -18
- package/dist/git/refs.js +8 -63
- package/dist/git/restore.d.ts +8 -0
- package/dist/git/restore.js +2 -0
- package/dist/git/state.d.ts +0 -103
- package/dist/git/state.js +3 -209
- package/dist/git/tag.d.ts +5 -51
- package/dist/git/tag.js +3 -68
- package/dist/git/text.d.ts +0 -3
- package/dist/git/text.js +1 -4
- package/dist/git/turns.d.ts +0 -104
- package/dist/git/turns.js +1 -153
- package/dist/history/history.d.ts +2 -14
- package/dist/history/history.js +1 -51
- package/dist/history/identity.d.ts +11 -0
- package/dist/history/identity.js +1 -0
- package/dist/history/index.d.ts +6 -9
- package/dist/history/index.js +1 -10
- package/dist/history/rule.d.ts +3 -38
- package/dist/history/rule.js +1 -78
- package/dist/history/runs.d.ts +17 -0
- package/dist/history/runs.js +1 -0
- package/dist/history/types.d.ts +6 -64
- package/dist/history/types.js +0 -9
- package/dist/history/version.d.ts +2 -8
- package/dist/history/version.js +1 -32
- package/dist/index.d.ts +0 -15
- package/dist/index.js +1 -32
- package/dist/records/authority.d.ts +0 -7
- package/dist/records/authority.js +1 -28
- package/dist/records/codec.d.ts +0 -2
- package/dist/records/codec.js +1 -43
- package/dist/records/contracts.d.ts +0 -20
- package/dist/records/contracts.js +1 -190
- package/dist/records/inbox.d.ts +0 -3
- package/dist/records/inbox.js +1 -40
- package/dist/records/index.d.ts +0 -2
- package/dist/records/index.js +1 -18
- package/dist/records/intentional.d.ts +0 -24
- package/dist/records/intentional.js +1 -58
- package/dist/records/outbox.d.ts +0 -10
- package/dist/records/outbox.js +1 -46
- package/dist/records/owned-effects.d.ts +0 -8
- package/dist/records/owned-effects.js +1 -37
- package/dist/records/publication.d.ts +1 -67
- package/dist/records/publication.js +1 -583
- package/dist/records/rail-ports.d.ts +2 -81
- package/dist/records/rail-ports.js +0 -3
- package/dist/records/rail.d.ts +1 -42
- package/dist/records/rail.js +1 -195
- package/dist/records/receive-channel.d.ts +0 -42
- package/dist/records/receive-channel.js +1 -131
- package/dist/records/receive-loop.d.ts +0 -48
- package/dist/records/receive-loop.js +1 -278
- package/dist/records/receive-pages.d.ts +0 -23
- package/dist/records/receive-pages.js +1 -98
- package/dist/records/retry-clock.d.ts +0 -3
- package/dist/records/retry-clock.js +1 -35
- package/dist/records/send-batch.d.ts +0 -45
- package/dist/records/send-batch.js +1 -119
- package/dist/records/send-freeing.d.ts +4 -42
- package/dist/records/send-freeing.js +1 -124
- package/dist/records/send-line.d.ts +1 -82
- package/dist/records/send-line.js +1 -411
- package/dist/records/send-preparation.d.ts +0 -39
- package/dist/records/send-preparation.js +1 -226
- package/dist/records/submit-frame.d.ts +0 -28
- package/dist/records/submit-frame.js +1 -161
- package/dist/records/unsent-count.d.ts +0 -24
- package/dist/records/unsent-count.js +1 -91
- package/dist/records/wire.d.ts +0 -10
- package/dist/records/wire.js +1 -121
- package/dist/registration/home-layout.d.ts +0 -18
- package/dist/registration/home-layout.js +1 -34
- package/dist/registration/index.d.ts +0 -3
- package/dist/registration/index.js +1 -5
- package/dist/registration/user-ground.d.ts +0 -165
- package/dist/registration/user-ground.js +1 -399
- package/dist/sharing/access.d.ts +0 -8
- package/dist/sharing/access.js +1 -51
- package/dist/sharing/cli.d.ts +0 -7
- package/dist/sharing/cli.js +8 -88
- package/dist/sharing/commands.d.ts +3 -16
- package/dist/sharing/commands.js +1 -164
- package/dist/sharing/construct.d.ts +0 -10
- package/dist/sharing/construct.js +1 -47
- package/dist/sharing/download.d.ts +0 -12
- package/dist/sharing/download.js +1 -45
- package/dist/sharing/entity.d.ts +0 -11
- package/dist/sharing/entity.js +1 -53
- package/dist/sharing/errors.d.ts +0 -2
- package/dist/sharing/errors.js +1 -11
- package/dist/sharing/grants.d.ts +0 -15
- package/dist/sharing/grants.js +1 -103
- package/dist/sharing/index.d.ts +3 -9
- package/dist/sharing/index.js +1 -16
- package/dist/sharing/mcp.d.ts +2 -25
- package/dist/sharing/mcp.js +1 -31
- package/dist/sharing/permissions.d.ts +0 -8
- package/dist/sharing/permissions.js +1 -45
- package/dist/sharing/publish.d.ts +0 -8
- package/dist/sharing/publish.js +1 -42
- package/dist/sharing/share.d.ts +0 -10
- package/dist/sharing/share.js +1 -31
- package/dist/sharing/sharing.d.ts +0 -5
- package/dist/sharing/sharing.js +1 -22
- package/dist/sharing/types.d.ts +0 -47
- package/dist/sharing/types.js +1 -15
- package/dist/steps.d.ts +0 -18
- package/dist/steps.js +1 -58
- package/dist/transfer/artifacts.d.ts +0 -19
- package/dist/transfer/artifacts.js +1 -89
- package/dist/transfer/batches.d.ts +0 -11
- package/dist/transfer/batches.js +1 -40
- package/dist/transfer/cargo-pack.d.ts +39 -0
- package/dist/transfer/cargo-pack.js +1 -0
- package/dist/transfer/cargo.d.ts +0 -39
- package/dist/transfer/cargo.js +1 -130
- package/dist/transfer/dispute.d.ts +9 -0
- package/dist/transfer/dispute.js +1 -0
- package/dist/transfer/download.d.ts +0 -97
- package/dist/transfer/download.js +1 -627
- package/dist/transfer/index.d.ts +2 -3
- package/dist/transfer/index.js +1 -10
- package/dist/transfer/parallel.d.ts +0 -19
- package/dist/transfer/parallel.js +1 -136
- package/dist/transfer/ranges.d.ts +0 -22
- package/dist/transfer/ranges.js +1 -59
- package/dist/transfer/refs.d.ts +0 -22
- package/dist/transfer/refs.js +1 -41
- package/dist/transfer/upload.d.ts +0 -49
- package/dist/transfer/upload.js +1 -248
- package/dist/versions/admit.d.ts +8 -0
- package/dist/versions/admit.js +1 -0
- package/dist/versions/api.d.ts +3 -0
- package/dist/versions/api.js +1 -0
- package/dist/versions/cli-text.d.ts +3 -0
- package/dist/versions/cli-text.js +5 -0
- package/dist/versions/cli.d.ts +12 -0
- package/dist/versions/cli.js +19 -0
- package/dist/versions/commands.d.ts +31 -0
- package/dist/versions/commands.js +1 -0
- package/dist/versions/content.d.ts +4 -0
- package/dist/versions/content.js +1 -0
- package/dist/versions/dates.d.ts +15 -0
- package/dist/versions/dates.js +1 -0
- package/dist/versions/deliver.d.ts +25 -0
- package/dist/versions/deliver.js +2 -0
- package/dist/versions/errors.d.ts +10 -0
- package/dist/versions/errors.js +1 -0
- package/dist/versions/index.d.ts +18 -0
- package/dist/versions/index.js +1 -0
- package/dist/versions/line.d.ts +8 -0
- package/dist/versions/line.js +1 -0
- package/dist/versions/list.d.ts +5 -0
- package/dist/versions/list.js +1 -0
- package/dist/versions/mcp.d.ts +3 -0
- package/dist/versions/mcp.js +1 -0
- package/dist/versions/ports.d.ts +46 -0
- package/dist/versions/ports.js +0 -0
- package/dist/versions/read.d.ts +12 -0
- package/dist/versions/read.js +1 -0
- package/dist/versions/restore.d.ts +5 -0
- package/dist/versions/restore.js +1 -0
- package/dist/versions/services.d.ts +4 -0
- package/dist/versions/services.js +1 -0
- package/dist/versions/show.d.ts +5 -0
- package/dist/versions/show.js +1 -0
- package/dist/versions/types.d.ts +64 -0
- package/dist/versions/types.js +0 -0
- package/dist/versions/versions.d.ts +10 -0
- package/dist/versions/versions.js +1 -0
- package/dist/watching/coverage.d.ts +0 -23
- package/dist/watching/coverage.js +1 -44
- package/dist/watching/index.d.ts +0 -6
- package/dist/watching/index.js +1 -9
- package/dist/watching/maintenance.d.ts +0 -66
- package/dist/watching/maintenance.js +1 -204
- package/dist/watching/suspicion.d.ts +0 -59
- package/dist/watching/suspicion.js +1 -513
- package/dist/workspace/api.d.ts +0 -1
- package/dist/workspace/api.js +1 -108
- package/dist/workspace/entries.d.ts +0 -3
- package/dist/workspace/entries.js +1 -77
- package/dist/workspace/identity.d.ts +0 -2
- package/dist/workspace/identity.js +1 -27
- package/dist/workspace/index.d.ts +0 -1
- package/dist/workspace/index.js +1 -5
- package/dist/workspace/registry.d.ts +0 -12
- package/dist/workspace/registry.js +1 -255
- package/dist/workspace/types.d.ts +0 -19
- package/dist/workspace/types.js +0 -2
- package/dist-cjs/apply/contracts.js +1 -115
- package/dist-cjs/apply/fetch-ahead.js +1 -174
- package/dist-cjs/apply/index.js +1 -26
- package/dist-cjs/apply/journey.js +1 -408
- package/dist-cjs/apply/lane.js +1 -76
- package/dist-cjs/apply/line.js +1 -91
- package/dist-cjs/apply/plans.js +1 -185
- package/dist-cjs/apply/rail.js +1 -780
- package/dist-cjs/apply/selection.js +1 -117
- package/dist-cjs/apply/settling.js +1 -67
- package/dist-cjs/apply/showing.js +1 -211
- package/dist-cjs/apply/type-adapters.js +1 -43
- package/dist-cjs/apply/window.js +1 -331
- package/dist-cjs/clash/bodmas.js +1 -133
- package/dist-cjs/clash/echo.js +1 -38
- package/dist-cjs/clash/index.js +1 -22
- package/dist-cjs/clash/local-work.js +1 -57
- package/dist-cjs/clash/resolution.js +1 -19
- package/dist-cjs/clash/tetris.js +1 -29
- package/dist-cjs/commands/input.js +1 -0
- package/dist-cjs/commands/mcp.js +1 -0
- package/dist-cjs/contracts/content.js +1 -267
- package/dist-cjs/contracts/index.js +1 -25
- package/dist-cjs/contracts/protection.js +1 -58
- package/dist-cjs/contracts/validate.js +1 -31
- package/dist-cjs/detection/adapter-contract.js +1 -135
- package/dist-cjs/detection/batch.js +1 -78
- package/dist-cjs/detection/classify.js +1 -52
- package/dist-cjs/detection/content.js +1 -82
- package/dist-cjs/detection/dispositions.js +1 -21
- package/dist-cjs/detection/echo.js +1 -36
- package/dist-cjs/detection/identity.js +1 -239
- package/dist-cjs/detection/ignore-lines.js +2 -216
- package/dist-cjs/detection/index.js +1 -64
- package/dist-cjs/detection/package-proposal.js +1 -120
- package/dist-cjs/detection/record-order.js +1 -314
- package/dist-cjs/detection/record-proposal.js +1 -398
- package/dist-cjs/detection/refusal.js +1 -88
- package/dist-cjs/detection/removals.js +1 -54
- package/dist-cjs/detection/scoped-identity.js +1 -192
- package/dist-cjs/detection/skip-defaults.js +2 -22
- package/dist-cjs/detection/skip-policy.js +1 -208
- package/dist-cjs/detection/watch-boundary.js +1 -51
- package/dist-cjs/drive/contracts.js +1 -34
- package/dist-cjs/drive/drive.js +1 -418
- package/dist-cjs/drive/held-removals.js +1 -140
- package/dist-cjs/drive/index.js +1 -32
- package/dist-cjs/drive/kept.js +1 -36
- package/dist-cjs/drive/listing.js +1 -87
- package/dist-cjs/drive/map-index.js +1 -245
- package/dist-cjs/drive/placements.js +1 -168
- package/dist-cjs/drive/records.js +1 -93
- package/dist-cjs/drive/where.js +2 -394
- package/dist-cjs/entities/accepted-view.js +1 -264
- package/dist-cjs/entities/bytes.js +1 -124
- package/dist-cjs/entities/cloud.js +1 -451
- package/dist-cjs/entities/graph-head.js +1 -121
- package/dist-cjs/entities/graph-pages.js +1 -257
- package/dist-cjs/entities/index.js +1 -56
- package/dist-cjs/entities/package-pages.js +1 -99
- package/dist-cjs/entities/placement-owed.js +1 -91
- package/dist-cjs/entities/reducer.js +1 -136
- package/dist-cjs/entities/registry-graph.js +1 -483
- package/dist-cjs/entities/rules.js +1 -251
- package/dist-cjs/entities/types.js +1 -61
- package/dist-cjs/entities/units.js +1 -30
- package/dist-cjs/faults/classify.js +1 -83
- package/dist-cjs/faults/index.js +1 -32
- package/dist-cjs/faults/need.js +1 -84
- package/dist-cjs/faults/recover.js +1 -49
- package/dist-cjs/faults/report.js +1 -135
- package/dist-cjs/faults/scrub.js +3 -169
- package/dist-cjs/faults/wire.js +1 -47
- package/dist-cjs/files/accepted-files.js +1 -135
- package/dist-cjs/files/api.js +1 -85
- package/dist-cjs/files/browse-types.js +1 -54
- package/dist-cjs/files/browser.js +1 -104
- package/dist-cjs/files/cloud-files.js +1 -159
- package/dist-cjs/files/commands.js +1 -145
- package/dist-cjs/files/computer-address.js +1 -52
- package/dist-cjs/files/index.js +1 -65
- package/dist-cjs/files/local-files.js +1 -108
- package/dist-cjs/files/media-type.js +1 -53
- package/dist-cjs/files/own-folders.js +1 -53
- package/dist-cjs/files/plans.js +1 -40
- package/dist-cjs/files/trash.js +1 -299
- package/dist-cjs/files/usage-categories.js +1 -37
- package/dist-cjs/files/usage-chain.js +1 -49
- package/dist-cjs/files/usage-effect.js +1 -34
- package/dist-cjs/files/usage.js +1 -140
- package/dist-cjs/git/alternates.js +1 -84
- package/dist-cjs/git/artifact.js +1 -202
- package/dist-cjs/git/chain.js +1 -59
- package/dist-cjs/git/holds.js +1 -0
- package/dist-cjs/git/index.js +1 -29
- package/dist-cjs/git/parts.js +7 -0
- package/dist-cjs/git/places.js +1 -0
- package/dist-cjs/git/plan.js +1 -100
- package/dist-cjs/git/play.js +4 -323
- package/dist-cjs/git/refs.js +8 -72
- package/dist-cjs/git/restore.js +2 -0
- package/dist-cjs/git/state.js +3 -230
- package/dist-cjs/git/tag.js +3 -72
- package/dist-cjs/git/text.js +1 -8
- package/dist-cjs/git/turns.js +1 -162
- package/dist-cjs/history/history.js +1 -53
- package/dist-cjs/history/identity.js +1 -0
- package/dist-cjs/history/index.js +1 -21
- package/dist-cjs/history/rule.js +1 -83
- package/dist-cjs/history/runs.js +1 -0
- package/dist-cjs/history/types.js +1 -10
- package/dist-cjs/history/version.js +1 -36
- package/dist-cjs/index.js +1 -48
- package/dist-cjs/records/authority.js +1 -31
- package/dist-cjs/records/codec.js +1 -49
- package/dist-cjs/records/contracts.js +1 -196
- package/dist-cjs/records/inbox.js +1 -43
- package/dist-cjs/records/index.js +1 -47
- package/dist-cjs/records/intentional.js +1 -61
- package/dist-cjs/records/outbox.js +1 -50
- package/dist-cjs/records/owned-effects.js +1 -41
- package/dist-cjs/records/publication.js +1 -593
- package/dist-cjs/records/rail-ports.js +1 -4
- package/dist-cjs/records/rail.js +1 -199
- package/dist-cjs/records/receive-channel.js +1 -136
- package/dist-cjs/records/receive-loop.js +1 -282
- package/dist-cjs/records/receive-pages.js +1 -103
- package/dist-cjs/records/retry-clock.js +1 -39
- package/dist-cjs/records/send-batch.js +1 -126
- package/dist-cjs/records/send-freeing.js +1 -128
- package/dist-cjs/records/send-line.js +1 -415
- package/dist-cjs/records/send-preparation.js +1 -230
- package/dist-cjs/records/submit-frame.js +1 -167
- package/dist-cjs/records/unsent-count.js +1 -95
- package/dist-cjs/records/wire.js +1 -127
- package/dist-cjs/registration/home-layout.js +1 -38
- package/dist-cjs/registration/index.js +1 -21
- package/dist-cjs/registration/user-ground.js +1 -407
- package/dist-cjs/sharing/access.js +1 -56
- package/dist-cjs/sharing/cli.js +8 -93
- package/dist-cjs/sharing/commands.js +1 -169
- package/dist-cjs/sharing/construct.js +1 -53
- package/dist-cjs/sharing/download.js +1 -48
- package/dist-cjs/sharing/entity.js +1 -59
- package/dist-cjs/sharing/errors.js +1 -14
- package/dist-cjs/sharing/grants.js +1 -108
- package/dist-cjs/sharing/index.js +1 -36
- package/dist-cjs/sharing/mcp.js +1 -33
- package/dist-cjs/sharing/permissions.js +1 -47
- package/dist-cjs/sharing/publish.js +1 -45
- package/dist-cjs/sharing/share.js +1 -36
- package/dist-cjs/sharing/sharing.js +1 -24
- package/dist-cjs/sharing/types.js +1 -19
- package/dist-cjs/steps.js +1 -64
- package/dist-cjs/transfer/artifacts.js +1 -95
- package/dist-cjs/transfer/batches.js +1 -44
- package/dist-cjs/transfer/cargo-pack.js +1 -0
- package/dist-cjs/transfer/cargo.js +1 -135
- package/dist-cjs/transfer/dispute.js +1 -0
- package/dist-cjs/transfer/download.js +1 -634
- package/dist-cjs/transfer/index.js +1 -30
- package/dist-cjs/transfer/parallel.js +1 -143
- package/dist-cjs/transfer/ranges.js +1 -63
- package/dist-cjs/transfer/refs.js +1 -45
- package/dist-cjs/transfer/upload.js +1 -256
- package/dist-cjs/versions/admit.js +1 -0
- package/dist-cjs/versions/api.js +1 -0
- package/dist-cjs/versions/cli-text.js +5 -0
- package/dist-cjs/versions/cli.js +19 -0
- package/dist-cjs/versions/commands.js +1 -0
- package/dist-cjs/versions/content.js +1 -0
- package/dist-cjs/versions/dates.js +1 -0
- package/dist-cjs/versions/deliver.js +2 -0
- package/dist-cjs/versions/errors.js +1 -0
- package/dist-cjs/versions/index.js +1 -0
- package/dist-cjs/versions/line.js +1 -0
- package/dist-cjs/versions/list.js +1 -0
- package/dist-cjs/versions/mcp.js +1 -0
- package/dist-cjs/versions/ports.js +1 -0
- package/dist-cjs/versions/read.js +1 -0
- package/dist-cjs/versions/restore.js +1 -0
- package/dist-cjs/versions/services.js +1 -0
- package/dist-cjs/versions/show.js +1 -0
- package/dist-cjs/versions/types.js +1 -0
- package/dist-cjs/versions/versions.js +1 -0
- package/dist-cjs/watching/coverage.js +1 -48
- package/dist-cjs/watching/index.js +1 -25
- package/dist-cjs/watching/maintenance.js +1 -208
- package/dist-cjs/watching/suspicion.js +1 -517
- package/dist-cjs/workspace/api.js +1 -110
- package/dist-cjs/workspace/entries.js +1 -82
- package/dist-cjs/workspace/identity.js +1 -32
- package/dist-cjs/workspace/index.js +1 -15
- package/dist-cjs/workspace/registry.js +1 -259
- package/dist-cjs/workspace/types.js +1 -3
- package/package.json +22 -7
- package/PURPOSE.md +0 -697
- package/dist/apply/contracts.d.ts.map +0 -1
- package/dist/apply/contracts.js.map +0 -1
- package/dist/apply/fetch-ahead.d.ts.map +0 -1
- package/dist/apply/fetch-ahead.js.map +0 -1
- package/dist/apply/index.d.ts.map +0 -1
- package/dist/apply/index.js.map +0 -1
- package/dist/apply/journey.d.ts.map +0 -1
- package/dist/apply/journey.js.map +0 -1
- package/dist/apply/lane.d.ts.map +0 -1
- package/dist/apply/lane.js.map +0 -1
- package/dist/apply/line.d.ts.map +0 -1
- package/dist/apply/line.js.map +0 -1
- package/dist/apply/plans.d.ts.map +0 -1
- package/dist/apply/plans.js.map +0 -1
- package/dist/apply/rail.d.ts.map +0 -1
- package/dist/apply/rail.js.map +0 -1
- package/dist/apply/selection.d.ts.map +0 -1
- package/dist/apply/selection.js.map +0 -1
- package/dist/apply/settling.d.ts.map +0 -1
- package/dist/apply/settling.js.map +0 -1
- package/dist/apply/showing.d.ts.map +0 -1
- package/dist/apply/showing.js.map +0 -1
- package/dist/apply/type-adapters.d.ts.map +0 -1
- package/dist/apply/type-adapters.js.map +0 -1
- package/dist/apply/window.d.ts.map +0 -1
- package/dist/apply/window.js.map +0 -1
- package/dist/clash/bodmas.d.ts.map +0 -1
- package/dist/clash/bodmas.js.map +0 -1
- package/dist/clash/echo.d.ts.map +0 -1
- package/dist/clash/echo.js.map +0 -1
- package/dist/clash/index.d.ts.map +0 -1
- package/dist/clash/index.js.map +0 -1
- package/dist/clash/local-work.d.ts.map +0 -1
- package/dist/clash/local-work.js.map +0 -1
- package/dist/clash/resolution.d.ts.map +0 -1
- package/dist/clash/resolution.js.map +0 -1
- package/dist/clash/tetris.d.ts.map +0 -1
- package/dist/clash/tetris.js.map +0 -1
- package/dist/contracts/content.d.ts.map +0 -1
- package/dist/contracts/content.js.map +0 -1
- package/dist/contracts/index.d.ts.map +0 -1
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/protection.d.ts.map +0 -1
- package/dist/contracts/protection.js.map +0 -1
- package/dist/contracts/validate.d.ts.map +0 -1
- package/dist/contracts/validate.js.map +0 -1
- package/dist/detection/adapter-contract.d.ts.map +0 -1
- package/dist/detection/adapter-contract.js.map +0 -1
- package/dist/detection/batch.d.ts.map +0 -1
- package/dist/detection/batch.js.map +0 -1
- package/dist/detection/classify.d.ts.map +0 -1
- package/dist/detection/classify.js.map +0 -1
- package/dist/detection/content.d.ts.map +0 -1
- package/dist/detection/content.js.map +0 -1
- package/dist/detection/dispositions.d.ts.map +0 -1
- package/dist/detection/dispositions.js.map +0 -1
- package/dist/detection/echo.d.ts.map +0 -1
- package/dist/detection/echo.js.map +0 -1
- package/dist/detection/identity.d.ts.map +0 -1
- package/dist/detection/identity.js.map +0 -1
- package/dist/detection/ignore-lines.d.ts.map +0 -1
- package/dist/detection/ignore-lines.js.map +0 -1
- package/dist/detection/index.d.ts.map +0 -1
- package/dist/detection/index.js.map +0 -1
- package/dist/detection/package-proposal.d.ts.map +0 -1
- package/dist/detection/package-proposal.js.map +0 -1
- package/dist/detection/record-order.d.ts.map +0 -1
- package/dist/detection/record-order.js.map +0 -1
- package/dist/detection/record-proposal.d.ts.map +0 -1
- package/dist/detection/record-proposal.js.map +0 -1
- package/dist/detection/refusal.d.ts.map +0 -1
- package/dist/detection/refusal.js.map +0 -1
- package/dist/detection/removals.d.ts.map +0 -1
- package/dist/detection/removals.js.map +0 -1
- package/dist/detection/scoped-identity.d.ts.map +0 -1
- package/dist/detection/scoped-identity.js.map +0 -1
- package/dist/detection/skip-defaults.d.ts.map +0 -1
- package/dist/detection/skip-defaults.js.map +0 -1
- package/dist/detection/skip-policy.d.ts.map +0 -1
- package/dist/detection/skip-policy.js.map +0 -1
- package/dist/detection/watch-boundary.d.ts.map +0 -1
- package/dist/detection/watch-boundary.js.map +0 -1
- package/dist/drive/contracts.d.ts.map +0 -1
- package/dist/drive/contracts.js.map +0 -1
- package/dist/drive/drive.d.ts.map +0 -1
- package/dist/drive/drive.js.map +0 -1
- package/dist/drive/held-removals.d.ts.map +0 -1
- package/dist/drive/held-removals.js.map +0 -1
- package/dist/drive/index.d.ts.map +0 -1
- package/dist/drive/index.js.map +0 -1
- package/dist/drive/kept.d.ts.map +0 -1
- package/dist/drive/kept.js.map +0 -1
- package/dist/drive/listing.d.ts.map +0 -1
- package/dist/drive/listing.js.map +0 -1
- package/dist/drive/map-index.d.ts.map +0 -1
- package/dist/drive/map-index.js.map +0 -1
- package/dist/drive/placements.d.ts.map +0 -1
- package/dist/drive/placements.js.map +0 -1
- package/dist/drive/records.d.ts.map +0 -1
- package/dist/drive/records.js.map +0 -1
- package/dist/drive/where.d.ts.map +0 -1
- package/dist/drive/where.js.map +0 -1
- package/dist/entities/accepted-view.d.ts.map +0 -1
- package/dist/entities/accepted-view.js.map +0 -1
- package/dist/entities/bytes.d.ts.map +0 -1
- package/dist/entities/bytes.js.map +0 -1
- package/dist/entities/cloud.d.ts.map +0 -1
- package/dist/entities/cloud.js.map +0 -1
- package/dist/entities/graph-head.d.ts.map +0 -1
- package/dist/entities/graph-head.js.map +0 -1
- package/dist/entities/graph-pages.d.ts.map +0 -1
- package/dist/entities/graph-pages.js.map +0 -1
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/package-pages.d.ts.map +0 -1
- package/dist/entities/package-pages.js.map +0 -1
- package/dist/entities/placement-owed.d.ts.map +0 -1
- package/dist/entities/placement-owed.js.map +0 -1
- package/dist/entities/reducer.d.ts.map +0 -1
- package/dist/entities/reducer.js.map +0 -1
- package/dist/entities/registry-graph.d.ts.map +0 -1
- package/dist/entities/registry-graph.js.map +0 -1
- package/dist/entities/rules.d.ts.map +0 -1
- package/dist/entities/rules.js.map +0 -1
- package/dist/entities/types.d.ts.map +0 -1
- package/dist/entities/types.js.map +0 -1
- package/dist/entities/units.d.ts.map +0 -1
- package/dist/entities/units.js.map +0 -1
- package/dist/faults/classify.d.ts.map +0 -1
- package/dist/faults/classify.js.map +0 -1
- package/dist/faults/index.d.ts.map +0 -1
- package/dist/faults/index.js.map +0 -1
- package/dist/faults/need.d.ts.map +0 -1
- package/dist/faults/need.js.map +0 -1
- package/dist/faults/recover.d.ts.map +0 -1
- package/dist/faults/recover.js.map +0 -1
- package/dist/faults/report.d.ts.map +0 -1
- package/dist/faults/report.js.map +0 -1
- package/dist/faults/scrub.d.ts.map +0 -1
- package/dist/faults/scrub.js.map +0 -1
- package/dist/faults/wire.d.ts.map +0 -1
- package/dist/faults/wire.js.map +0 -1
- package/dist/files/accepted-files.d.ts.map +0 -1
- package/dist/files/accepted-files.js.map +0 -1
- package/dist/files/api.d.ts.map +0 -1
- package/dist/files/api.js.map +0 -1
- package/dist/files/browse-types.d.ts.map +0 -1
- package/dist/files/browse-types.js.map +0 -1
- package/dist/files/browser.d.ts.map +0 -1
- package/dist/files/browser.js.map +0 -1
- package/dist/files/cloud-files.d.ts.map +0 -1
- package/dist/files/cloud-files.js.map +0 -1
- package/dist/files/commands.d.ts.map +0 -1
- package/dist/files/commands.js.map +0 -1
- package/dist/files/computer-address.d.ts.map +0 -1
- package/dist/files/computer-address.js.map +0 -1
- package/dist/files/index.d.ts.map +0 -1
- package/dist/files/index.js.map +0 -1
- package/dist/files/local-files.d.ts.map +0 -1
- package/dist/files/local-files.js.map +0 -1
- package/dist/files/media-type.d.ts.map +0 -1
- package/dist/files/media-type.js.map +0 -1
- package/dist/files/own-folders.d.ts.map +0 -1
- package/dist/files/own-folders.js.map +0 -1
- package/dist/files/plans.d.ts.map +0 -1
- package/dist/files/plans.js.map +0 -1
- package/dist/files/trash.d.ts.map +0 -1
- package/dist/files/trash.js.map +0 -1
- package/dist/files/usage-categories.d.ts.map +0 -1
- package/dist/files/usage-categories.js.map +0 -1
- package/dist/files/usage-chain.d.ts.map +0 -1
- package/dist/files/usage-chain.js.map +0 -1
- package/dist/files/usage-effect.d.ts.map +0 -1
- package/dist/files/usage-effect.js.map +0 -1
- package/dist/files/usage.d.ts.map +0 -1
- package/dist/files/usage.js.map +0 -1
- package/dist/git/alternates.d.ts.map +0 -1
- package/dist/git/alternates.js.map +0 -1
- package/dist/git/artifact.d.ts.map +0 -1
- package/dist/git/artifact.js.map +0 -1
- package/dist/git/chain.d.ts.map +0 -1
- package/dist/git/chain.js.map +0 -1
- package/dist/git/commands.d.ts +0 -3
- package/dist/git/commands.d.ts.map +0 -1
- package/dist/git/commands.js +0 -35
- package/dist/git/commands.js.map +0 -1
- package/dist/git/index.d.ts.map +0 -1
- package/dist/git/index.js.map +0 -1
- package/dist/git/plan.d.ts.map +0 -1
- package/dist/git/plan.js.map +0 -1
- package/dist/git/play.d.ts.map +0 -1
- package/dist/git/play.js.map +0 -1
- package/dist/git/refs.d.ts.map +0 -1
- package/dist/git/refs.js.map +0 -1
- package/dist/git/state.d.ts.map +0 -1
- package/dist/git/state.js.map +0 -1
- package/dist/git/tag.d.ts.map +0 -1
- package/dist/git/tag.js.map +0 -1
- package/dist/git/text.d.ts.map +0 -1
- package/dist/git/text.js.map +0 -1
- package/dist/git/turns.d.ts.map +0 -1
- package/dist/git/turns.js.map +0 -1
- package/dist/history/history.d.ts.map +0 -1
- package/dist/history/history.js.map +0 -1
- package/dist/history/index.d.ts.map +0 -1
- package/dist/history/index.js.map +0 -1
- package/dist/history/rule.d.ts.map +0 -1
- package/dist/history/rule.js.map +0 -1
- package/dist/history/types.d.ts.map +0 -1
- package/dist/history/types.js.map +0 -1
- package/dist/history/version.d.ts.map +0 -1
- package/dist/history/version.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/records/authority.d.ts.map +0 -1
- package/dist/records/authority.js.map +0 -1
- package/dist/records/codec.d.ts.map +0 -1
- package/dist/records/codec.js.map +0 -1
- package/dist/records/contracts.d.ts.map +0 -1
- package/dist/records/contracts.js.map +0 -1
- package/dist/records/inbox.d.ts.map +0 -1
- package/dist/records/inbox.js.map +0 -1
- package/dist/records/index.d.ts.map +0 -1
- package/dist/records/index.js.map +0 -1
- package/dist/records/intentional.d.ts.map +0 -1
- package/dist/records/intentional.js.map +0 -1
- package/dist/records/outbox.d.ts.map +0 -1
- package/dist/records/outbox.js.map +0 -1
- package/dist/records/owned-effects.d.ts.map +0 -1
- package/dist/records/owned-effects.js.map +0 -1
- package/dist/records/publication.d.ts.map +0 -1
- package/dist/records/publication.js.map +0 -1
- package/dist/records/rail-ports.d.ts.map +0 -1
- package/dist/records/rail-ports.js.map +0 -1
- package/dist/records/rail.d.ts.map +0 -1
- package/dist/records/rail.js.map +0 -1
- package/dist/records/receive-channel.d.ts.map +0 -1
- package/dist/records/receive-channel.js.map +0 -1
- package/dist/records/receive-loop.d.ts.map +0 -1
- package/dist/records/receive-loop.js.map +0 -1
- package/dist/records/receive-pages.d.ts.map +0 -1
- package/dist/records/receive-pages.js.map +0 -1
- package/dist/records/retry-clock.d.ts.map +0 -1
- package/dist/records/retry-clock.js.map +0 -1
- package/dist/records/send-batch.d.ts.map +0 -1
- package/dist/records/send-batch.js.map +0 -1
- package/dist/records/send-freeing.d.ts.map +0 -1
- package/dist/records/send-freeing.js.map +0 -1
- package/dist/records/send-line.d.ts.map +0 -1
- package/dist/records/send-line.js.map +0 -1
- package/dist/records/send-preparation.d.ts.map +0 -1
- package/dist/records/send-preparation.js.map +0 -1
- package/dist/records/submit-frame.d.ts.map +0 -1
- package/dist/records/submit-frame.js.map +0 -1
- package/dist/records/unsent-count.d.ts.map +0 -1
- package/dist/records/unsent-count.js.map +0 -1
- package/dist/records/wire.d.ts.map +0 -1
- package/dist/records/wire.js.map +0 -1
- package/dist/registration/home-layout.d.ts.map +0 -1
- package/dist/registration/home-layout.js.map +0 -1
- package/dist/registration/index.d.ts.map +0 -1
- package/dist/registration/index.js.map +0 -1
- package/dist/registration/user-ground.d.ts.map +0 -1
- package/dist/registration/user-ground.js.map +0 -1
- package/dist/sharing/access.d.ts.map +0 -1
- package/dist/sharing/access.js.map +0 -1
- package/dist/sharing/cli.d.ts.map +0 -1
- package/dist/sharing/cli.js.map +0 -1
- package/dist/sharing/command-input.d.ts.map +0 -1
- package/dist/sharing/command-input.js +0 -63
- package/dist/sharing/command-input.js.map +0 -1
- package/dist/sharing/commands.d.ts.map +0 -1
- package/dist/sharing/commands.js.map +0 -1
- package/dist/sharing/construct.d.ts.map +0 -1
- package/dist/sharing/construct.js.map +0 -1
- package/dist/sharing/download.d.ts.map +0 -1
- package/dist/sharing/download.js.map +0 -1
- package/dist/sharing/entity.d.ts.map +0 -1
- package/dist/sharing/entity.js.map +0 -1
- package/dist/sharing/errors.d.ts.map +0 -1
- package/dist/sharing/errors.js.map +0 -1
- package/dist/sharing/grants.d.ts.map +0 -1
- package/dist/sharing/grants.js.map +0 -1
- package/dist/sharing/index.d.ts.map +0 -1
- package/dist/sharing/index.js.map +0 -1
- package/dist/sharing/mcp.d.ts.map +0 -1
- package/dist/sharing/mcp.js.map +0 -1
- package/dist/sharing/permissions.d.ts.map +0 -1
- package/dist/sharing/permissions.js.map +0 -1
- package/dist/sharing/publish.d.ts.map +0 -1
- package/dist/sharing/publish.js.map +0 -1
- package/dist/sharing/share.d.ts.map +0 -1
- package/dist/sharing/share.js.map +0 -1
- package/dist/sharing/sharing.d.ts.map +0 -1
- package/dist/sharing/sharing.js.map +0 -1
- package/dist/sharing/types.d.ts.map +0 -1
- package/dist/sharing/types.js.map +0 -1
- package/dist/steps.d.ts.map +0 -1
- package/dist/steps.js.map +0 -1
- package/dist/transfer/artifacts.d.ts.map +0 -1
- package/dist/transfer/artifacts.js.map +0 -1
- package/dist/transfer/batches.d.ts.map +0 -1
- package/dist/transfer/batches.js.map +0 -1
- package/dist/transfer/cargo-frame.d.ts +0 -42
- package/dist/transfer/cargo-frame.d.ts.map +0 -1
- package/dist/transfer/cargo-frame.js +0 -98
- package/dist/transfer/cargo-frame.js.map +0 -1
- package/dist/transfer/cargo.d.ts.map +0 -1
- package/dist/transfer/cargo.js.map +0 -1
- package/dist/transfer/download.d.ts.map +0 -1
- package/dist/transfer/download.js.map +0 -1
- package/dist/transfer/index.d.ts.map +0 -1
- package/dist/transfer/index.js.map +0 -1
- package/dist/transfer/parallel.d.ts.map +0 -1
- package/dist/transfer/parallel.js.map +0 -1
- package/dist/transfer/ranges.d.ts.map +0 -1
- package/dist/transfer/ranges.js.map +0 -1
- package/dist/transfer/refs.d.ts.map +0 -1
- package/dist/transfer/refs.js.map +0 -1
- package/dist/transfer/upload.d.ts.map +0 -1
- package/dist/transfer/upload.js.map +0 -1
- package/dist/watching/coverage.d.ts.map +0 -1
- package/dist/watching/coverage.js.map +0 -1
- package/dist/watching/index.d.ts.map +0 -1
- package/dist/watching/index.js.map +0 -1
- package/dist/watching/maintenance.d.ts.map +0 -1
- package/dist/watching/maintenance.js.map +0 -1
- package/dist/watching/suspicion.d.ts.map +0 -1
- package/dist/watching/suspicion.js.map +0 -1
- package/dist/workspace/api.d.ts.map +0 -1
- package/dist/workspace/api.js.map +0 -1
- package/dist/workspace/entries.d.ts.map +0 -1
- package/dist/workspace/entries.js.map +0 -1
- package/dist/workspace/identity.d.ts.map +0 -1
- package/dist/workspace/identity.js.map +0 -1
- package/dist/workspace/index.d.ts.map +0 -1
- package/dist/workspace/index.js.map +0 -1
- package/dist/workspace/registry.d.ts.map +0 -1
- package/dist/workspace/registry.js.map +0 -1
- package/dist/workspace/types.d.ts.map +0 -1
- package/dist/workspace/types.js.map +0 -1
- package/dist-cjs/apply/contracts.js.map +0 -1
- package/dist-cjs/apply/fetch-ahead.js.map +0 -1
- package/dist-cjs/apply/index.js.map +0 -1
- package/dist-cjs/apply/journey.js.map +0 -1
- package/dist-cjs/apply/lane.js.map +0 -1
- package/dist-cjs/apply/line.js.map +0 -1
- package/dist-cjs/apply/plans.js.map +0 -1
- package/dist-cjs/apply/rail.js.map +0 -1
- package/dist-cjs/apply/selection.js.map +0 -1
- package/dist-cjs/apply/settling.js.map +0 -1
- package/dist-cjs/apply/showing.js.map +0 -1
- package/dist-cjs/apply/type-adapters.js.map +0 -1
- package/dist-cjs/apply/window.js.map +0 -1
- package/dist-cjs/clash/bodmas.js.map +0 -1
- package/dist-cjs/clash/echo.js.map +0 -1
- package/dist-cjs/clash/index.js.map +0 -1
- package/dist-cjs/clash/local-work.js.map +0 -1
- package/dist-cjs/clash/resolution.js.map +0 -1
- package/dist-cjs/clash/tetris.js.map +0 -1
- package/dist-cjs/contracts/content.js.map +0 -1
- package/dist-cjs/contracts/index.js.map +0 -1
- package/dist-cjs/contracts/protection.js.map +0 -1
- package/dist-cjs/contracts/validate.js.map +0 -1
- package/dist-cjs/detection/adapter-contract.js.map +0 -1
- package/dist-cjs/detection/batch.js.map +0 -1
- package/dist-cjs/detection/classify.js.map +0 -1
- package/dist-cjs/detection/content.js.map +0 -1
- package/dist-cjs/detection/dispositions.js.map +0 -1
- package/dist-cjs/detection/echo.js.map +0 -1
- package/dist-cjs/detection/identity.js.map +0 -1
- package/dist-cjs/detection/ignore-lines.js.map +0 -1
- package/dist-cjs/detection/index.js.map +0 -1
- package/dist-cjs/detection/package-proposal.js.map +0 -1
- package/dist-cjs/detection/record-order.js.map +0 -1
- package/dist-cjs/detection/record-proposal.js.map +0 -1
- package/dist-cjs/detection/refusal.js.map +0 -1
- package/dist-cjs/detection/removals.js.map +0 -1
- package/dist-cjs/detection/scoped-identity.js.map +0 -1
- package/dist-cjs/detection/skip-defaults.js.map +0 -1
- package/dist-cjs/detection/skip-policy.js.map +0 -1
- package/dist-cjs/detection/watch-boundary.js.map +0 -1
- package/dist-cjs/drive/contracts.js.map +0 -1
- package/dist-cjs/drive/drive.js.map +0 -1
- package/dist-cjs/drive/held-removals.js.map +0 -1
- package/dist-cjs/drive/index.js.map +0 -1
- package/dist-cjs/drive/kept.js.map +0 -1
- package/dist-cjs/drive/listing.js.map +0 -1
- package/dist-cjs/drive/map-index.js.map +0 -1
- package/dist-cjs/drive/placements.js.map +0 -1
- package/dist-cjs/drive/records.js.map +0 -1
- package/dist-cjs/drive/where.js.map +0 -1
- package/dist-cjs/entities/accepted-view.js.map +0 -1
- package/dist-cjs/entities/bytes.js.map +0 -1
- package/dist-cjs/entities/cloud.js.map +0 -1
- package/dist-cjs/entities/graph-head.js.map +0 -1
- package/dist-cjs/entities/graph-pages.js.map +0 -1
- package/dist-cjs/entities/index.js.map +0 -1
- package/dist-cjs/entities/package-pages.js.map +0 -1
- package/dist-cjs/entities/placement-owed.js.map +0 -1
- package/dist-cjs/entities/reducer.js.map +0 -1
- package/dist-cjs/entities/registry-graph.js.map +0 -1
- package/dist-cjs/entities/rules.js.map +0 -1
- package/dist-cjs/entities/types.js.map +0 -1
- package/dist-cjs/entities/units.js.map +0 -1
- package/dist-cjs/faults/classify.js.map +0 -1
- package/dist-cjs/faults/index.js.map +0 -1
- package/dist-cjs/faults/need.js.map +0 -1
- package/dist-cjs/faults/recover.js.map +0 -1
- package/dist-cjs/faults/report.js.map +0 -1
- package/dist-cjs/faults/scrub.js.map +0 -1
- package/dist-cjs/faults/wire.js.map +0 -1
- package/dist-cjs/files/accepted-files.js.map +0 -1
- package/dist-cjs/files/api.js.map +0 -1
- package/dist-cjs/files/browse-types.js.map +0 -1
- package/dist-cjs/files/browser.js.map +0 -1
- package/dist-cjs/files/cloud-files.js.map +0 -1
- package/dist-cjs/files/commands.js.map +0 -1
- package/dist-cjs/files/computer-address.js.map +0 -1
- package/dist-cjs/files/index.js.map +0 -1
- package/dist-cjs/files/local-files.js.map +0 -1
- package/dist-cjs/files/media-type.js.map +0 -1
- package/dist-cjs/files/own-folders.js.map +0 -1
- package/dist-cjs/files/plans.js.map +0 -1
- package/dist-cjs/files/trash.js.map +0 -1
- package/dist-cjs/files/usage-categories.js.map +0 -1
- package/dist-cjs/files/usage-chain.js.map +0 -1
- package/dist-cjs/files/usage-effect.js.map +0 -1
- package/dist-cjs/files/usage.js.map +0 -1
- package/dist-cjs/git/alternates.js.map +0 -1
- package/dist-cjs/git/artifact.js.map +0 -1
- package/dist-cjs/git/chain.js.map +0 -1
- package/dist-cjs/git/commands.js +0 -39
- package/dist-cjs/git/commands.js.map +0 -1
- package/dist-cjs/git/index.js.map +0 -1
- package/dist-cjs/git/plan.js.map +0 -1
- package/dist-cjs/git/play.js.map +0 -1
- package/dist-cjs/git/refs.js.map +0 -1
- package/dist-cjs/git/state.js.map +0 -1
- package/dist-cjs/git/tag.js.map +0 -1
- package/dist-cjs/git/text.js.map +0 -1
- package/dist-cjs/git/turns.js.map +0 -1
- package/dist-cjs/history/history.js.map +0 -1
- package/dist-cjs/history/index.js.map +0 -1
- package/dist-cjs/history/rule.js.map +0 -1
- package/dist-cjs/history/types.js.map +0 -1
- package/dist-cjs/history/version.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/records/authority.js.map +0 -1
- package/dist-cjs/records/codec.js.map +0 -1
- package/dist-cjs/records/contracts.js.map +0 -1
- package/dist-cjs/records/inbox.js.map +0 -1
- package/dist-cjs/records/index.js.map +0 -1
- package/dist-cjs/records/intentional.js.map +0 -1
- package/dist-cjs/records/outbox.js.map +0 -1
- package/dist-cjs/records/owned-effects.js.map +0 -1
- package/dist-cjs/records/publication.js.map +0 -1
- package/dist-cjs/records/rail-ports.js.map +0 -1
- package/dist-cjs/records/rail.js.map +0 -1
- package/dist-cjs/records/receive-channel.js.map +0 -1
- package/dist-cjs/records/receive-loop.js.map +0 -1
- package/dist-cjs/records/receive-pages.js.map +0 -1
- package/dist-cjs/records/retry-clock.js.map +0 -1
- package/dist-cjs/records/send-batch.js.map +0 -1
- package/dist-cjs/records/send-freeing.js.map +0 -1
- package/dist-cjs/records/send-line.js.map +0 -1
- package/dist-cjs/records/send-preparation.js.map +0 -1
- package/dist-cjs/records/submit-frame.js.map +0 -1
- package/dist-cjs/records/unsent-count.js.map +0 -1
- package/dist-cjs/records/wire.js.map +0 -1
- package/dist-cjs/registration/home-layout.js.map +0 -1
- package/dist-cjs/registration/index.js.map +0 -1
- package/dist-cjs/registration/user-ground.js.map +0 -1
- package/dist-cjs/sharing/access.js.map +0 -1
- package/dist-cjs/sharing/cli.js.map +0 -1
- package/dist-cjs/sharing/command-input.js +0 -69
- package/dist-cjs/sharing/command-input.js.map +0 -1
- package/dist-cjs/sharing/commands.js.map +0 -1
- package/dist-cjs/sharing/construct.js.map +0 -1
- package/dist-cjs/sharing/download.js.map +0 -1
- package/dist-cjs/sharing/entity.js.map +0 -1
- package/dist-cjs/sharing/errors.js.map +0 -1
- package/dist-cjs/sharing/grants.js.map +0 -1
- package/dist-cjs/sharing/index.js.map +0 -1
- package/dist-cjs/sharing/mcp.js.map +0 -1
- package/dist-cjs/sharing/permissions.js.map +0 -1
- package/dist-cjs/sharing/publish.js.map +0 -1
- package/dist-cjs/sharing/share.js.map +0 -1
- package/dist-cjs/sharing/sharing.js.map +0 -1
- package/dist-cjs/sharing/types.js.map +0 -1
- package/dist-cjs/steps.js.map +0 -1
- package/dist-cjs/transfer/artifacts.js.map +0 -1
- package/dist-cjs/transfer/batches.js.map +0 -1
- package/dist-cjs/transfer/cargo-frame.js +0 -104
- package/dist-cjs/transfer/cargo-frame.js.map +0 -1
- package/dist-cjs/transfer/cargo.js.map +0 -1
- package/dist-cjs/transfer/download.js.map +0 -1
- package/dist-cjs/transfer/index.js.map +0 -1
- package/dist-cjs/transfer/parallel.js.map +0 -1
- package/dist-cjs/transfer/ranges.js.map +0 -1
- package/dist-cjs/transfer/refs.js.map +0 -1
- package/dist-cjs/transfer/upload.js.map +0 -1
- package/dist-cjs/watching/coverage.js.map +0 -1
- package/dist-cjs/watching/index.js.map +0 -1
- package/dist-cjs/watching/maintenance.js.map +0 -1
- package/dist-cjs/watching/suspicion.js.map +0 -1
- package/dist-cjs/workspace/api.js.map +0 -1
- package/dist-cjs/workspace/entries.js.map +0 -1
- package/dist-cjs/workspace/identity.js.map +0 -1
- package/dist-cjs/workspace/index.js.map +0 -1
- package/dist-cjs/workspace/registry.js.map +0 -1
- package/dist-cjs/workspace/types.js.map +0 -1
|
@@ -1,130 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* The adapter contract: what it means to serve an entity type.
|
|
3
|
-
*
|
|
4
|
-
* An adapter is how a KIND of entity rides the seven realtime rails —
|
|
5
|
-
* watch, detect, record, send, receive, apply, verify. The entity's
|
|
6
|
-
* `type` selects its adapter; the rails themselves never change shape
|
|
7
|
-
* per type. Ratified by entity-model.md ("Type selects the complete
|
|
8
|
-
* adapter cycle") and entity-implementation.md.
|
|
9
|
-
*
|
|
10
|
-
* Axioms:
|
|
11
|
-
*
|
|
12
|
-
* 1. ONE ADAPTER PER TYPE, EVERY TYPE ASSIGNED. The alphabet belongs
|
|
13
|
-
* to the registry; the adapter map covers it exactly — no type
|
|
14
|
-
* unassigned, no type claimed twice. Assigned is not yet
|
|
15
|
-
* operational: operational is earned rail by rail, and absence is
|
|
16
|
-
* honest.
|
|
17
|
-
* 2. ADAPTERS OWN BEHAVIOR; THE REGISTRY OWNS IDENTITY. A lawful type
|
|
18
|
-
* transition that crosses adapters is a handoff on the same UUID,
|
|
19
|
-
* never a rebirth.
|
|
20
|
-
* 3. ONE SOCKET PER RAIL. A rail's callable surfaces are ratified
|
|
21
|
-
* HERE, once, for every adapter (`SOCKETS`). An adapter binds a
|
|
22
|
-
* rail's whole socket or binds the rail not at all; a rail whose
|
|
23
|
-
* socket is not yet ratified cannot be bound by anyone.
|
|
24
|
-
* 4. A TRUTH READ NEVER LIES. Every assigned type names its source of
|
|
25
|
-
* truth in one sentence, and reading it produces exactly one of
|
|
26
|
-
* three honest answers: present, absent, or unsettled.
|
|
27
|
-
* 5. RAILS ARE HONEST. An unbound rail is absent — never stubbed,
|
|
28
|
-
* never defaulted.
|
|
29
|
-
* 6. THE CONTRACT IS FROZEN GROUND. A descriptor is immutable from
|
|
30
|
-
* the moment it loads.
|
|
31
|
-
* 7. THE BASE ORCHESTRATES; THE ADAPTER SUPPLIES TYPE BEHAVIOR. A
|
|
32
|
-
* rail earns a socket only when a real consumer proves that
|
|
33
|
-
* behavior differs by type — never for symmetry.
|
|
34
|
-
*/
|
|
35
|
-
import { isRecord } from '../contracts/validate.js';
|
|
36
|
-
/** The seven rails, declared once, frozen, in journey order. */
|
|
37
|
-
export const RAILS = Object.freeze([
|
|
38
|
-
'watch', 'detect', 'record', 'send', 'receive', 'apply', 'verify',
|
|
39
|
-
]);
|
|
40
|
-
/**
|
|
41
|
-
* The ratified sockets — for each rail that has one, the exact surfaces
|
|
42
|
-
* every binding adapter implements. Same names, same shapes, every
|
|
43
|
-
* type. Detect, Apply, and Verify are ratified from their real portable
|
|
44
|
-
* consumers. Watch, Record, Send, and Receive need no type-specific surface
|
|
45
|
-
* at this bar. A socket is ratified from a real consumer or it is not
|
|
46
|
-
* ratified at all.
|
|
47
|
-
*/
|
|
48
|
-
export const SOCKETS = Object.freeze({
|
|
49
|
-
detect: Object.freeze(['truth']),
|
|
50
|
-
apply: Object.freeze(['prepare', 'guard', 'reveal']),
|
|
51
|
-
verify: Object.freeze(['verify']),
|
|
52
|
-
});
|
|
53
|
-
/**
|
|
54
|
-
* Convict a malformed adapter descriptor loudly; return it (typed)
|
|
55
|
-
* unchanged when lawful.
|
|
56
|
-
*/
|
|
57
|
-
export function assertAdapter(adapter) {
|
|
58
|
-
const where = isRecord(adapter) && typeof adapter['name'] === 'string' && adapter['name']
|
|
59
|
-
? `adapter ${JSON.stringify(adapter['name'])}` : 'adapter';
|
|
60
|
-
if (!isRecord(adapter) || !Object.isFrozen(adapter)) {
|
|
61
|
-
throw new Error(`${where}: a descriptor is a frozen object`);
|
|
62
|
-
}
|
|
63
|
-
if (typeof adapter['name'] !== 'string' || adapter['name'].length === 0) {
|
|
64
|
-
throw new Error('adapter: name is a non-empty string');
|
|
65
|
-
}
|
|
66
|
-
const { types, rails } = adapter;
|
|
67
|
-
if (!isRecord(types) || !Object.isFrozen(types) || Object.keys(types).length === 0) {
|
|
68
|
-
throw new Error(`${where}: types is a frozen, non-empty map of entity type → declared truth`);
|
|
69
|
-
}
|
|
70
|
-
for (const [type, truth] of Object.entries(types)) {
|
|
71
|
-
if (typeof truth !== 'string' || truth.length === 0) {
|
|
72
|
-
throw new Error(`${where}: type ${JSON.stringify(type)} must declare its source of truth in one sentence`);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
if (!isRecord(rails) || !Object.isFrozen(rails)) {
|
|
76
|
-
throw new Error(`${where}: rails is a frozen map (empty is honest; a stub is not)`);
|
|
77
|
-
}
|
|
78
|
-
for (const [rail, surfaces] of Object.entries(rails)) {
|
|
79
|
-
if (!RAILS.includes(rail)) {
|
|
80
|
-
throw new Error(`${where}: ${JSON.stringify(rail)} is not a rail — the rails are ${RAILS.join(', ')}`);
|
|
81
|
-
}
|
|
82
|
-
const socket = SOCKETS[rail];
|
|
83
|
-
if (!socket) {
|
|
84
|
-
throw new Error(`${where}: rail ${rail} has no ratified socket yet — a socket is ratified in the contract before anyone binds it`);
|
|
85
|
-
}
|
|
86
|
-
if (!isRecord(surfaces) || !Object.isFrozen(surfaces)) {
|
|
87
|
-
throw new Error(`${where}: rail ${rail} must bind a frozen map of its socket's surfaces`);
|
|
88
|
-
}
|
|
89
|
-
const bound = Object.keys(surfaces).sort();
|
|
90
|
-
if (bound.join(',') !== [...socket].sort().join(',')) {
|
|
91
|
-
throw new Error(`${where}: rail ${rail} binds [${bound.join(', ')}] but its socket is [${socket.join(', ')}] — an adapter implements a rail's whole socket or binds the rail not at all`);
|
|
92
|
-
}
|
|
93
|
-
for (const [surface, fn] of Object.entries(surfaces)) {
|
|
94
|
-
if (typeof fn !== 'function') {
|
|
95
|
-
throw new Error(`${where}: ${rail}.${surface} must be a function — an unbuilt surface is left absent, never stubbed`);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return adapter;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Build the one type → adapter map, convicting every violation of
|
|
103
|
-
* axiom 1: an adapter claiming a type outside the alphabet, two
|
|
104
|
-
* adapters claiming one type, or an alphabet type left unassigned.
|
|
105
|
-
* Pure — callers own where the alphabet and adapters come from.
|
|
106
|
-
*/
|
|
107
|
-
export function buildTypeMap(adapters, alphabet) {
|
|
108
|
-
const known = new Set(alphabet);
|
|
109
|
-
const byType = new Map();
|
|
110
|
-
for (const candidate of adapters) {
|
|
111
|
-
const adapter = assertAdapter(candidate);
|
|
112
|
-
for (const type of Object.keys(adapter.types)) {
|
|
113
|
-
if (!known.has(type)) {
|
|
114
|
-
throw new Error(`adapter ${adapter.name} claims ${JSON.stringify(type)}, which is not in the registry's alphabet`);
|
|
115
|
-
}
|
|
116
|
-
const holder = byType.get(type);
|
|
117
|
-
if (holder) {
|
|
118
|
-
throw new Error(`entity type ${JSON.stringify(type)} is claimed by both ${holder.name} and ${adapter.name} — one adapter per type`);
|
|
119
|
-
}
|
|
120
|
-
byType.set(type, adapter);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
for (const type of known) {
|
|
124
|
-
if (!byType.has(type)) {
|
|
125
|
-
throw new Error(`entity type ${JSON.stringify(type)} has no adapter — every type is assigned`);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return byType;
|
|
129
|
-
}
|
|
130
|
-
//# sourceMappingURL=adapter-contract.js.map
|
|
1
|
+
var b=Object.defineProperty;var f=(e,r)=>b(e,"name",{value:r,configurable:!0});import{isRecord as c}from"../contracts/validate.js";const y=Object.freeze(["watch","detect","record","send","receive","apply","verify"]),w=Object.freeze({detect:Object.freeze(["truth"]),apply:Object.freeze(["prepare","guard","reveal"]),verify:Object.freeze(["verify"])});function l(e){const r=c(e)&&typeof e.name=="string"&&e.name?`adapter ${JSON.stringify(e.name)}`:"adapter";if(!c(e)||!Object.isFrozen(e))throw new Error(`${r}: a descriptor is a frozen object`);if(typeof e.name!="string"||e.name.length===0)throw new Error("adapter: name is a non-empty string");const{types:s,rails:i}=e;if(!c(s)||!Object.isFrozen(s)||Object.keys(s).length===0)throw new Error(`${r}: types is a frozen, non-empty map of entity type → declared truth`);for(const[t,n]of Object.entries(s))if(typeof n!="string"||n.length===0)throw new Error(`${r}: type ${JSON.stringify(t)} must declare its source of truth in one sentence`);if(!c(i)||!Object.isFrozen(i))throw new Error(`${r}: rails is a frozen map (empty is honest; a stub is not)`);for(const[t,n]of Object.entries(i)){if(!y.includes(t))throw new Error(`${r}: ${JSON.stringify(t)} is not a rail — the rails are ${y.join(", ")}`);const o=w[t];if(!o)throw new Error(`${r}: rail ${t} has no ratified socket yet — a socket is ratified in the contract before anyone binds it`);if(!c(n)||!Object.isFrozen(n))throw new Error(`${r}: rail ${t} must bind a frozen map of its socket's surfaces`);const a=Object.keys(n).sort();if(a.join(",")!==[...o].sort().join(","))throw new Error(`${r}: rail ${t} binds [${a.join(", ")}] but its socket is [${o.join(", ")}] — an adapter implements a rail's whole socket or binds the rail not at all`);for(const[p,h]of Object.entries(n))if(typeof h!="function")throw new Error(`${r}: ${t}.${p} must be a function — an unbuilt surface is left absent, never stubbed`)}return e}f(l,"assertAdapter");function $(e,r){const s=new Set(r),i=new Map;for(const t of e){const n=l(t);for(const o of Object.keys(n.types)){if(!s.has(o))throw new Error(`adapter ${n.name} claims ${JSON.stringify(o)}, which is not in the registry's alphabet`);const a=i.get(o);if(a)throw new Error(`entity type ${JSON.stringify(o)} is claimed by both ${a.name} and ${n.name} — one adapter per type`);i.set(o,n)}}for(const t of s)if(!i.has(t))throw new Error(`entity type ${JSON.stringify(t)} has no adapter — every type is assigned`);return i}f($,"buildTypeMap");export{y as RAILS,w as SOCKETS,l as assertAdapter,$ as buildTypeMap};
|
|
@@ -1,28 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Net-difference planning for one settled Watch batch.
|
|
3
|
-
*
|
|
4
|
-
* Identity reconciliation and type-specific capture happen before this seam.
|
|
5
|
-
* This seam makes cancellation, unsettled truth, lifecycle authority, coverage
|
|
6
|
-
* requests, and Watch settlement one total decision.
|
|
7
|
-
*/
|
|
8
1
|
import type { CloudEntityRecord } from '../entities/cloud.js';
|
|
9
2
|
import { type DetectedChangeProposal, type ReplayInstruction } from './record-proposal.js';
|
|
10
3
|
import { type DetectionBatch, type DirectoryCoverageRequest } from './watch-boundary.js';
|
|
11
4
|
import { type Steps } from '../steps.js';
|
|
12
5
|
export interface PresentTransition {
|
|
13
6
|
readonly truth: 'present';
|
|
14
|
-
/** Current root-relative address, used only for observation and coverage. */
|
|
15
7
|
readonly relPath: string;
|
|
16
8
|
readonly base: CloudEntityRecord | null;
|
|
17
9
|
readonly result: CloudEntityRecord;
|
|
18
10
|
readonly replay: ReplayInstruction;
|
|
19
11
|
readonly lifecycleAuthorization?: 'trash' | 'restore';
|
|
12
|
+
readonly echo?: true;
|
|
20
13
|
}
|
|
21
14
|
export interface AbsentTransition {
|
|
22
15
|
readonly truth: 'absent';
|
|
23
|
-
/** null is the absent-before/absent-after ephemeral cancellation case. */
|
|
24
16
|
readonly base: CloudEntityRecord | null;
|
|
25
|
-
/** Exact entity-law result, required only for an authorized Trash. */
|
|
26
17
|
readonly trashedResult?: CloudEntityRecord;
|
|
27
18
|
readonly lifecycleAuthorization?: 'trash';
|
|
28
19
|
}
|
|
@@ -38,13 +29,9 @@ export interface RetryDetectionBatch {
|
|
|
38
29
|
export interface ReadyDetectionBatch {
|
|
39
30
|
readonly kind: 'ready';
|
|
40
31
|
readonly proposals: readonly DetectedChangeProposal[];
|
|
41
|
-
/** Unproven absences retained until removal or lifecycle authority is established. */
|
|
42
32
|
readonly missing: readonly CloudEntityRecord[];
|
|
43
33
|
readonly coverage: readonly DirectoryCoverageRequest[];
|
|
44
|
-
/** Record may settle exactly this generation after durable acceptance. */
|
|
45
34
|
readonly settle: DetectionBatch;
|
|
46
35
|
}
|
|
47
36
|
export type DetectionBatchPlan = RetryDetectionBatch | ReadyDetectionBatch;
|
|
48
|
-
/** Plan the complete net difference. No partial proposals escape an unsettled batch. */
|
|
49
37
|
export declare function planDetectionBatchSteps(batch: DetectionBatch, transitions: readonly SettledTransition[]): Steps<DetectionBatchPlan>;
|
|
50
|
-
//# sourceMappingURL=batch.d.ts.map
|
package/dist/detection/batch.js
CHANGED
|
@@ -1,75 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Net-difference planning for one settled Watch batch.
|
|
3
|
-
*
|
|
4
|
-
* Identity reconciliation and type-specific capture happen before this seam.
|
|
5
|
-
* This seam makes cancellation, unsettled truth, lifecycle authority, coverage
|
|
6
|
-
* requests, and Watch settlement one total decision.
|
|
7
|
-
*/
|
|
8
|
-
import { CONTAINERS } from '../entities/types.js';
|
|
9
|
-
import { detectedChangeProposal, } from './record-proposal.js';
|
|
10
|
-
import { directoryCoverageRequests, } from './watch-boundary.js';
|
|
11
|
-
import { eachStep } from '../steps.js';
|
|
12
|
-
const newlyDirectoryGround = (transition) => transition.relPath !== ''
|
|
13
|
-
&&
|
|
14
|
-
CONTAINERS.has(transition.result.type)
|
|
15
|
-
&& (transition.base === null || !CONTAINERS.has(transition.base.type));
|
|
16
|
-
/** Plan the complete net difference. No partial proposals escape an unsettled batch. */
|
|
17
|
-
export function* planDetectionBatchSteps(batch, transitions) {
|
|
18
|
-
const unsettled = [];
|
|
19
|
-
yield* eachStep(transitions, (transition) => {
|
|
20
|
-
if (transition.truth === 'unsettled')
|
|
21
|
-
unsettled.push(transition);
|
|
22
|
-
});
|
|
23
|
-
if (unsettled.length > 0) {
|
|
24
|
-
return Object.freeze({
|
|
25
|
-
kind: 'retry',
|
|
26
|
-
reasons: Object.freeze(unsettled.map((transition) => transition.reason ?? 'truth is unsettled')),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
const proposals = [];
|
|
30
|
-
const missing = [];
|
|
31
|
-
const createdDirectories = [];
|
|
32
|
-
yield* eachStep(transitions, (transition) => {
|
|
33
|
-
if (transition.truth === 'present') {
|
|
34
|
-
const proposal = detectedChangeProposal(transition);
|
|
35
|
-
if (proposal)
|
|
36
|
-
proposals.push(proposal);
|
|
37
|
-
if (newlyDirectoryGround(transition)) {
|
|
38
|
-
createdDirectories.push(transition.relPath);
|
|
39
|
-
}
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (transition.truth !== 'absent') {
|
|
43
|
-
throw new Error('unsettled truth escaped the batch retry gate');
|
|
44
|
-
}
|
|
45
|
-
if (transition.base === null)
|
|
46
|
-
return; // absent before and after: no entity existed
|
|
47
|
-
if (transition.base.status !== 'active')
|
|
48
|
-
return;
|
|
49
|
-
if (transition.lifecycleAuthorization !== 'trash') {
|
|
50
|
-
missing.push(transition.base);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
if (!transition.trashedResult) {
|
|
54
|
-
throw new Error('authorized Trash requires the entity law\'s exact trashed result');
|
|
55
|
-
}
|
|
56
|
-
const proposal = detectedChangeProposal({
|
|
57
|
-
base: transition.base,
|
|
58
|
-
result: transition.trashedResult,
|
|
59
|
-
replay: { kind: 'structure' },
|
|
60
|
-
lifecycleAuthorization: 'trash',
|
|
61
|
-
});
|
|
62
|
-
if (proposal)
|
|
63
|
-
proposals.push(proposal);
|
|
64
|
-
});
|
|
65
|
-
const coverage = directoryCoverageRequests(batch, createdDirectories);
|
|
66
|
-
yield;
|
|
67
|
-
return Object.freeze({
|
|
68
|
-
kind: 'ready',
|
|
69
|
-
proposals: Object.freeze(proposals),
|
|
70
|
-
missing: Object.freeze(missing),
|
|
71
|
-
coverage,
|
|
72
|
-
settle: batch,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=batch.js.map
|
|
1
|
+
var b=Object.defineProperty;var u=(r,t)=>b(r,"name",{value:t,configurable:!0});import{CONTAINERS as a}from"../entities/types.js";import{detectedChangeProposal as f,echoProposal as m}from"./record-proposal.js";import{directoryCoverageRequests as z}from"./watch-boundary.js";import{eachStep as d}from"../steps.js";const g=u(r=>r.relPath!==""&&a.has(r.result.type)&&(r.base===null||!a.has(r.base.type)),"newlyDirectoryGround");function*k(r,t){const s=[];if(yield*d(t,e=>{e.truth==="unsettled"&&s.push(e)}),s.length>0)return Object.freeze({kind:"retry",reasons:Object.freeze(s.map(e=>e.reason??"truth is unsettled"))});const l=[],c=[],h=[];yield*d(t,e=>{if(e.truth==="present"){const o=e.echo&&e.base!==null?m({joins:e.base,result:e.result,replay:e.replay}):f(e);o&&l.push(o),g(e)&&h.push(e.relPath);return}if(e.truth!=="absent")throw new Error("unsettled truth escaped the batch retry gate");if(e.base===null||e.base.status!=="active")return;if(e.lifecycleAuthorization!=="trash"){c.push(e.base);return}if(!e.trashedResult)throw new Error("authorized Trash requires the entity law's exact trashed result");const p=f({base:e.base,result:e.trashedResult,replay:{kind:"structure"},lifecycleAuthorization:"trash"});p&&l.push(p)});const y=z(r,h);return yield,Object.freeze({kind:"ready",proposals:Object.freeze(l),missing:Object.freeze(c),coverage:y,settle:r})}u(k,"planDetectionBatchSteps");export{k as planDetectionBatchSteps};
|
|
@@ -1,53 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Amalgm's file-type policy: which physical type a piece of file ground
|
|
3
|
-
* takes. Ratified by entity-model.md ("Formats live underneath the file
|
|
4
|
-
* types"; text versus binary is an adapter difference, never an
|
|
5
|
-
* identity difference).
|
|
6
|
-
*
|
|
7
|
-
* Classification is an INJECTED policy everywhere it is used — the
|
|
8
|
-
* registration boundary and its lenses refuse to construct without one
|
|
9
|
-
* — so it lives in its own file with no other job: one definition,
|
|
10
|
-
* replaceable whole.
|
|
11
|
-
*
|
|
12
|
-
* The rule is the oldest one there is: bytes holding a NUL are not
|
|
13
|
-
* text. What matters is WHERE that fact comes from. It is not read
|
|
14
|
-
* here. Detect's single read of a file produces its fingerprint and
|
|
15
|
-
* this report together, and this policy only names the type that report
|
|
16
|
-
* implies.
|
|
17
|
-
*
|
|
18
|
-
* That is the whole law: A FILE'S HASH AND ITS TYPE DESCRIBE THE SAME
|
|
19
|
-
* OBSERVED BYTES. A policy that opened the ground itself would be a
|
|
20
|
-
* second look — and a second look can meet different bytes, or none at
|
|
21
|
-
* all, leaving a record whose type contradicts the payload beside it.
|
|
22
|
-
* So this function takes evidence, never a path; it is total, and it
|
|
23
|
-
* cannot fail.
|
|
24
|
-
*/
|
|
25
1
|
export type FileType = 'file.binary' | 'file.text';
|
|
26
2
|
export type DirectoryType = 'folder' | 'repo.git';
|
|
27
3
|
export type RegisteredRootType = 'workspace' | 'repo.git';
|
|
28
|
-
/** Detect's report on the bytes it hashed — the same read as the fingerprint. */
|
|
29
4
|
export interface ClassifyEvidence {
|
|
30
5
|
readonly binary: boolean;
|
|
31
6
|
}
|
|
32
7
|
export declare function classifyFile({ binary }: ClassifyEvidence): FileType;
|
|
33
|
-
/** Git truth belongs to the directory that contains its marker. The host
|
|
34
|
-
* reports whether that marker names a repository Git can use, by Git's own
|
|
35
|
-
* structural test and without running Git: a `.git` directory or gitfile
|
|
36
|
-
* whose storage holds a valid HEAD, objects, and refs. A marker Git cannot
|
|
37
|
-
* use is no repository. Git command health is transfer evidence, never
|
|
38
|
-
* classification evidence. */
|
|
39
8
|
export interface RepositoryEvidence {
|
|
40
9
|
readonly repository: boolean;
|
|
10
|
+
readonly ending?: boolean;
|
|
41
11
|
}
|
|
42
|
-
export declare function classifyDirectory({ repository }: RepositoryEvidence): DirectoryType;
|
|
43
|
-
/** A deliberately registered external directory remains a tree root. A Git
|
|
44
|
-
* root wears `repo.git`; an ordinary root wears `workspace`. */
|
|
12
|
+
export declare function classifyDirectory({ repository, ending }: RepositoryEvidence): DirectoryType;
|
|
45
13
|
export declare function classifyRegisteredRoot({ repository }: RepositoryEvidence): RegisteredRootType;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
14
|
+
export declare function repositoryEnding(was: string | null | undefined, { repository, lost }: {
|
|
15
|
+
readonly repository: boolean;
|
|
16
|
+
readonly lost?: boolean;
|
|
17
|
+
}): boolean;
|
|
50
18
|
export declare function isRepositoryMetadataEntry(name: string): boolean;
|
|
51
|
-
/** The name Git keeps a repository's metadata at. */
|
|
52
19
|
export declare const REPOSITORY_METADATA = ".git";
|
|
53
|
-
//# sourceMappingURL=classify.d.ts.map
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Amalgm's file-type policy: which physical type a piece of file ground
|
|
3
|
-
* takes. Ratified by entity-model.md ("Formats live underneath the file
|
|
4
|
-
* types"; text versus binary is an adapter difference, never an
|
|
5
|
-
* identity difference).
|
|
6
|
-
*
|
|
7
|
-
* Classification is an INJECTED policy everywhere it is used — the
|
|
8
|
-
* registration boundary and its lenses refuse to construct without one
|
|
9
|
-
* — so it lives in its own file with no other job: one definition,
|
|
10
|
-
* replaceable whole.
|
|
11
|
-
*
|
|
12
|
-
* The rule is the oldest one there is: bytes holding a NUL are not
|
|
13
|
-
* text. What matters is WHERE that fact comes from. It is not read
|
|
14
|
-
* here. Detect's single read of a file produces its fingerprint and
|
|
15
|
-
* this report together, and this policy only names the type that report
|
|
16
|
-
* implies.
|
|
17
|
-
*
|
|
18
|
-
* That is the whole law: A FILE'S HASH AND ITS TYPE DESCRIBE THE SAME
|
|
19
|
-
* OBSERVED BYTES. A policy that opened the ground itself would be a
|
|
20
|
-
* second look — and a second look can meet different bytes, or none at
|
|
21
|
-
* all, leaving a record whose type contradicts the payload beside it.
|
|
22
|
-
* So this function takes evidence, never a path; it is total, and it
|
|
23
|
-
* cannot fail.
|
|
24
|
-
*/
|
|
25
|
-
export function classifyFile({ binary }) {
|
|
26
|
-
return binary ? 'file.binary' : 'file.text';
|
|
27
|
-
}
|
|
28
|
-
export function classifyDirectory({ repository }) {
|
|
29
|
-
return repository ? 'repo.git' : 'folder';
|
|
30
|
-
}
|
|
31
|
-
/** A deliberately registered external directory remains a tree root. A Git
|
|
32
|
-
* root wears `repo.git`; an ordinary root wears `workspace`. */
|
|
33
|
-
export function classifyRegisteredRoot({ repository }) {
|
|
34
|
-
return repository ? 'repo.git' : 'workspace';
|
|
35
|
-
}
|
|
36
|
-
/** `.git` is Git's own metadata, never an entity, wherever it lies. A marker
|
|
37
|
-
* Git can use makes its parent a repository and is that repository's cargo;
|
|
38
|
-
* one Git cannot use leaves its parent ordinary ground, whose other children
|
|
39
|
-
* stay ordinary entities. */
|
|
40
|
-
export function isRepositoryMetadataEntry(name) {
|
|
41
|
-
return name === REPOSITORY_METADATA;
|
|
42
|
-
}
|
|
43
|
-
/** The name Git keeps a repository's metadata at. */
|
|
44
|
-
export const REPOSITORY_METADATA = '.git';
|
|
45
|
-
//# sourceMappingURL=classify.js.map
|
|
1
|
+
var i=Object.defineProperty;var e=(t,r)=>i(t,"name",{value:r,configurable:!0});function f({binary:t}){return t?"file.binary":"file.text"}e(f,"classifyFile");function p({repository:t,ending:r=!1}){return t||r?"repo.git":"folder"}e(p,"classifyDirectory");function c({repository:t}){return t?"repo.git":"workspace"}e(c,"classifyRegisteredRoot");function a(t,{repository:r,lost:o=!1}){return t==="repo.git"&&(!r||o)}e(a,"repositoryEnding");function u(t){return t===n}e(u,"isRepositoryMetadataEntry");const n=".git";export{n as REPOSITORY_METADATA,p as classifyDirectory,f as classifyFile,c as classifyRegisteredRoot,u as isRepositoryMetadataEntry,a as repositoryEnding};
|
|
@@ -1,32 +1,15 @@
|
|
|
1
|
-
/** Text replay: the one rule choosing a byte splice or the whole-result
|
|
2
|
-
* snapshot, and the one splice every host runs on an exact base. */
|
|
3
1
|
import type { Sha256Hex } from '../entities/types.js';
|
|
4
2
|
import { type TextReplay, type TextSplice } from './record-proposal.js';
|
|
5
|
-
/** The smallest single replacement span that transforms base bytes to result. */
|
|
6
3
|
export declare function textSplice(base: Uint8Array, result: Uint8Array): TextSplice;
|
|
7
4
|
export interface TextReplayInput {
|
|
8
|
-
/** Logical history: the base the record names, whatever bytes are held. */
|
|
9
5
|
readonly basePayloadVersion: string | null;
|
|
10
|
-
/** Bytes held for that base; only a splice input, used when they are it. */
|
|
11
6
|
readonly baseBytes: Uint8Array | null;
|
|
12
7
|
readonly resultPayloadVersion: string;
|
|
13
8
|
readonly resultBytes: Uint8Array;
|
|
14
9
|
}
|
|
15
|
-
/**
|
|
16
|
-
* The text replay from a base to a result: one byte splice when the held base
|
|
17
|
-
* bytes are the named base and the splice is smaller than the result,
|
|
18
|
-
* otherwise the whole-result snapshot. Either way the record keeps the base
|
|
19
|
-
* it names, so missing base bytes never rewrite history.
|
|
20
|
-
*/
|
|
21
10
|
export declare function textReplay(input: TextReplayInput, sha256Hex: Sha256Hex): TextReplay;
|
|
22
|
-
/** A whole-result text replay. It carries no bytes: Send moves the result by
|
|
23
|
-
* its content head, so a snapshot needs no read of it. */
|
|
24
11
|
export declare function textSnapshot(basePayloadVersion: string | null, resultPayloadVersion: string): TextReplay;
|
|
25
|
-
/** Replay one text splice on its exact base: the result bytes, or null when
|
|
26
|
-
* the base or the result is not the one the record names. Null sends the
|
|
27
|
-
* caller to the record's snapshot; a splice is a shortcut, never truth. */
|
|
28
12
|
export declare function spliceText(base: Uint8Array, strategy: {
|
|
29
13
|
readonly basePayloadVersion: string;
|
|
30
14
|
readonly delta: TextSplice;
|
|
31
15
|
}, resultPayloadVersion: string, sha256Hex: Sha256Hex): Uint8Array | null;
|
|
32
|
-
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1,76 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* snapshot, and the one splice every host runs on an exact base. */
|
|
3
|
-
import { textReplayBase } from './record-proposal.js';
|
|
4
|
-
/** The smallest single replacement span that transforms base bytes to result. */
|
|
5
|
-
export function textSplice(base, result) {
|
|
6
|
-
let prefix = 0;
|
|
7
|
-
const shared = Math.min(base.byteLength, result.byteLength);
|
|
8
|
-
while (prefix < shared && base[prefix] === result[prefix])
|
|
9
|
-
prefix += 1;
|
|
10
|
-
let suffix = 0;
|
|
11
|
-
while (suffix < shared - prefix
|
|
12
|
-
&& base[base.byteLength - suffix - 1] === result[result.byteLength - suffix - 1]) {
|
|
13
|
-
suffix += 1;
|
|
14
|
-
}
|
|
15
|
-
return Object.freeze({
|
|
16
|
-
offset: prefix,
|
|
17
|
-
deleteBytes: base.byteLength - prefix - suffix,
|
|
18
|
-
// A copy, so a splice never holds the whole result alive (a Buffer's
|
|
19
|
-
// slice is a view).
|
|
20
|
-
insert: new Uint8Array(result.subarray(prefix, result.byteLength - suffix)),
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The text replay from a base to a result: one byte splice when the held base
|
|
25
|
-
* bytes are the named base and the splice is smaller than the result,
|
|
26
|
-
* otherwise the whole-result snapshot. Either way the record keeps the base
|
|
27
|
-
* it names, so missing base bytes never rewrite history.
|
|
28
|
-
*/
|
|
29
|
-
export function textReplay(input, sha256Hex) {
|
|
30
|
-
const { baseBytes, resultBytes, resultPayloadVersion } = input;
|
|
31
|
-
if (sha256Hex(resultBytes) !== resultPayloadVersion) {
|
|
32
|
-
throw new Error('text result bytes do not match their content head');
|
|
33
|
-
}
|
|
34
|
-
const basePayloadVersion = textReplayBase(input.basePayloadVersion);
|
|
35
|
-
const delta = basePayloadVersion !== null && basePayloadVersion !== resultPayloadVersion
|
|
36
|
-
&& baseBytes !== null && sha256Hex(baseBytes) === basePayloadVersion
|
|
37
|
-
? textSplice(baseBytes, resultBytes)
|
|
38
|
-
: null;
|
|
39
|
-
// Two numeric fields are fixed overhead on the wire. This conservative
|
|
40
|
-
// estimate keeps a replace-all operation on the snapshot path.
|
|
41
|
-
if (delta === null || delta.insert.byteLength + 16 >= resultBytes.byteLength) {
|
|
42
|
-
return textSnapshot(basePayloadVersion, resultPayloadVersion);
|
|
43
|
-
}
|
|
44
|
-
return Object.freeze({
|
|
45
|
-
kind: 'file.text', mode: 'delta', basePayloadVersion, resultPayloadVersion, delta,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/** A whole-result text replay. It carries no bytes: Send moves the result by
|
|
49
|
-
* its content head, so a snapshot needs no read of it. */
|
|
50
|
-
export function textSnapshot(basePayloadVersion, resultPayloadVersion) {
|
|
51
|
-
return Object.freeze({
|
|
52
|
-
kind: 'file.text',
|
|
53
|
-
mode: 'snapshot',
|
|
54
|
-
basePayloadVersion: textReplayBase(basePayloadVersion),
|
|
55
|
-
resultPayloadVersion,
|
|
56
|
-
delta: null,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
/** Replay one text splice on its exact base: the result bytes, or null when
|
|
60
|
-
* the base or the result is not the one the record names. Null sends the
|
|
61
|
-
* caller to the record's snapshot; a splice is a shortcut, never truth. */
|
|
62
|
-
export function spliceText(base, strategy, resultPayloadVersion, sha256Hex) {
|
|
63
|
-
if (sha256Hex(base) !== strategy.basePayloadVersion)
|
|
64
|
-
return null;
|
|
65
|
-
const { offset, deleteBytes, insert } = strategy.delta;
|
|
66
|
-
if (!Number.isSafeInteger(offset) || !Number.isSafeInteger(deleteBytes)
|
|
67
|
-
|| offset < 0 || deleteBytes < 0 || offset + deleteBytes > base.byteLength) {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
const result = new Uint8Array(base.byteLength - deleteBytes + insert.byteLength);
|
|
71
|
-
result.set(base.subarray(0, offset), 0);
|
|
72
|
-
result.set(insert, offset);
|
|
73
|
-
result.set(base.subarray(offset + deleteBytes), offset + insert.byteLength);
|
|
74
|
-
return sha256Hex(result) === resultPayloadVersion ? result : null;
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=content.js.map
|
|
1
|
+
var f=Object.defineProperty;var y=(t,n)=>f(t,"name",{value:n,configurable:!0});import{textReplayBase as a}from"./record-proposal.js";function u(t,n){let r=0;const l=Math.min(t.byteLength,n.byteLength);for(;r<l&&t[r]===n[r];)r+=1;let e=0;for(;e<l-r&&t[t.byteLength-e-1]===n[n.byteLength-e-1];)e+=1;return Object.freeze({offset:r,deleteBytes:t.byteLength-r-e,insert:new Uint8Array(n.subarray(r,n.byteLength-e))})}y(u,"textSplice");function c(t,n){const{baseBytes:r,resultBytes:l,resultPayloadVersion:e}=t;if(n(l)!==e)throw new Error("text result bytes do not match their content head");const o=a(t.basePayloadVersion),i=o!==null&&o!==e&&r!==null&&n(r)===o?u(r,l):null;return i===null||i.insert.byteLength+16>=l.byteLength?h(o,e):Object.freeze({kind:"file.text",mode:"delta",basePayloadVersion:o,resultPayloadVersion:e,delta:i})}y(c,"textReplay");function h(t,n){return Object.freeze({kind:"file.text",mode:"snapshot",basePayloadVersion:a(t),resultPayloadVersion:n,delta:null})}y(h,"textSnapshot");function g(t,n,r,l){if(l(t)!==n.basePayloadVersion)return null;const{offset:e,deleteBytes:o,insert:i}=n.delta;if(!Number.isSafeInteger(e)||!Number.isSafeInteger(o)||e<0||o<0||e+o>t.byteLength)return null;const s=new Uint8Array(t.byteLength-o+i.byteLength);return s.set(t.subarray(0,e),0),s.set(i,e),s.set(t.subarray(e+o),e+i.byteLength),l(s)===r?s:null}y(g,"spliceText");export{g as spliceText,c as textReplay,h as textSnapshot,u as textSplice};
|
|
@@ -1,118 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
* Detect dispositions — the portable vocabulary for explaining what happened
|
|
3
|
-
* to the work a Detect pass took on.
|
|
4
|
-
*
|
|
5
|
-
* Three facts make every completed collection traceable:
|
|
6
|
-
*
|
|
7
|
-
* ready a collection is registered for admission (before it runs)
|
|
8
|
-
* outcome that collection's admission attempt ended one way
|
|
9
|
-
* observation a Watch observation's pass ended one way
|
|
10
|
-
*
|
|
11
|
-
* The ledger never causes a write: every fact is delivered in process only,
|
|
12
|
-
* so explaining a decision never costs the save that made it. A runtime that
|
|
13
|
-
* ends first delivers no more; an absent fact never means nothing ran, and no
|
|
14
|
-
* cause is invented for it. The ledger records decisions its owners already
|
|
15
|
-
* made; it never grants a capture, settles a generation,
|
|
16
|
-
* advances a receipt or schedules a retry. Product work recovers from its own
|
|
17
|
-
* durable responsibilities.
|
|
18
|
-
*/
|
|
19
|
-
export type DetectDisposition =
|
|
20
|
-
/** Committed against its cutoff with at least one new Record. */
|
|
21
|
-
'admitted'
|
|
22
|
-
/** Committed against its cutoff; nothing new needed recording. */
|
|
23
|
-
| 'examined-no-change'
|
|
24
|
-
/** Committed against its cutoff; every changed leaf was policy-excluded. */
|
|
25
|
-
| 'excluded'
|
|
26
|
-
/** Collected, but a fact it depended on changed before admission. */
|
|
27
|
-
| 'invalidated'
|
|
28
|
-
/** Deliberately declined ground; answered until that ground rings again. */
|
|
29
|
-
| 'refused'
|
|
30
|
-
/** Ground this work needs exists but could not be read. It stays
|
|
31
|
-
* unexamined, never absent, and is read again on its next ring or a
|
|
32
|
-
* bounded retry. */
|
|
33
|
-
| 'unavailable'
|
|
34
|
-
/** Yielded or re-scoped before admission. */
|
|
35
|
-
| 'cancelled'
|
|
36
|
-
/** The system could not uphold its contract for this work. */
|
|
37
|
-
| 'faulted';
|
|
1
|
+
export type DetectDisposition = 'admitted' | 'examined-no-change' | 'excluded' | 'invalidated' | 'refused' | 'unavailable' | 'cancelled' | 'faulted';
|
|
38
2
|
export type DetectDispositionFact = 'ready' | 'outcome' | 'observation';
|
|
39
|
-
|
|
40
|
-
export type
|
|
41
|
-
/** Examining ground; no collection was registered for admission. */
|
|
42
|
-
'collection'
|
|
43
|
-
/** The admission basis no longer matched the collection's reads. */
|
|
44
|
-
| 'admission-basis'
|
|
45
|
-
/** An original source witness changed when admission closed it. */
|
|
46
|
-
| 'admission-source-close'
|
|
47
|
-
/** The admission transaction itself. */
|
|
48
|
-
| 'admission';
|
|
49
|
-
/** The re-examination decision actually made, never a predicted outcome. */
|
|
50
|
-
export type DetectRetry =
|
|
51
|
-
/** Nothing further: the work is settled. */
|
|
52
|
-
'none'
|
|
53
|
-
/** The same finite pass re-reads once while it owns the ground. */
|
|
54
|
-
| 'same-turn'
|
|
55
|
-
/** A bounded timer re-runs Detect over the still-pending generation. */
|
|
56
|
-
| 'timer'
|
|
57
|
-
/** The effect that crossed this attempt re-runs it on release; the attempt
|
|
58
|
-
* holds nothing while it waits. */
|
|
59
|
-
| 'ground-release'
|
|
60
|
-
/** The complete lane re-examines it as a whole-root proof. */
|
|
61
|
-
| 'complete-lane'
|
|
62
|
-
/** Only a relevant change to that ground re-examines it. */
|
|
63
|
-
| 'next-ring';
|
|
64
|
-
/** One Watch cutoff covered by a disposition. */
|
|
3
|
+
export type DetectDispositionPhase = 'collection' | 'admission-basis' | 'admission-source-close' | 'admission';
|
|
4
|
+
export type DetectRetry = 'none' | 'same-turn' | 'timer' | 'ground-release' | 'complete-lane' | 'next-ring';
|
|
65
5
|
export interface DetectCutoff {
|
|
66
6
|
readonly directory: string;
|
|
67
7
|
readonly generation: number;
|
|
68
8
|
readonly scope: 'paths' | 'root';
|
|
69
9
|
}
|
|
70
|
-
/** Exact counts; a proposal is not necessarily a new Record. */
|
|
71
10
|
export interface DetectDispositionCounts {
|
|
72
11
|
readonly proposed: number;
|
|
73
12
|
readonly admitted: number;
|
|
74
|
-
/** Proposals already covered by accepted Inbox history. */
|
|
75
13
|
readonly alreadyAccounted: number;
|
|
76
|
-
/** Observed results that sharing policy withheld; null where the lane
|
|
77
|
-
* does not measure it. */
|
|
78
14
|
readonly withheld: number | null;
|
|
79
15
|
}
|
|
80
|
-
/** The database basis a collection's admission is checked against: the
|
|
81
|
-
* database incarnation, the committed sequence it was read at, and the facts
|
|
82
|
-
* it consumed. It is the prepared basis described, never rebuilt from what
|
|
83
|
-
* the unit should have read. A basis small enough to check fact by fact is
|
|
84
|
-
* listed; a larger one is counted. */
|
|
85
16
|
export interface DetectBasisDescriptor {
|
|
86
17
|
readonly database: string;
|
|
87
|
-
/** The read sequence S0, in decimal. */
|
|
88
18
|
readonly sequence: string;
|
|
89
19
|
readonly facts: number;
|
|
90
|
-
/** Each fact as [inventory, aspect, identity]; null when only counted. */
|
|
91
20
|
readonly listed: readonly (readonly [string, string, string])[] | null;
|
|
92
21
|
}
|
|
93
|
-
/** One fact, identified by `eventId` wherever it is delivered or stored. */
|
|
94
22
|
export interface DetectDispositionEvent {
|
|
95
23
|
readonly eventId: string;
|
|
96
24
|
readonly incarnation: string;
|
|
97
25
|
readonly job: number;
|
|
98
26
|
readonly pass: number;
|
|
99
27
|
readonly fact: DetectDispositionFact;
|
|
100
|
-
/** Null for an observation no collection reached. */
|
|
101
28
|
readonly collectionId: string | null;
|
|
102
|
-
/** Admission attempt of the collection; null for an observation fact. */
|
|
103
29
|
readonly attempt: number | null;
|
|
104
|
-
/** The admission unit, and why it is as broad as it is. */
|
|
105
30
|
readonly unit: string | null;
|
|
106
|
-
/** Null only for a ready fact. */
|
|
107
31
|
readonly disposition: DetectDisposition | null;
|
|
108
32
|
readonly phase: DetectDispositionPhase;
|
|
109
33
|
readonly retry: DetectRetry | null;
|
|
110
34
|
readonly reason: string | null;
|
|
111
35
|
readonly cutoffs: readonly DetectCutoff[];
|
|
112
36
|
readonly counts: DetectDispositionCounts | null;
|
|
113
|
-
/** On a ready fact, the basis its admission will check; otherwise null. */
|
|
114
37
|
readonly basis: DetectBasisDescriptor | null;
|
|
115
|
-
/** Wall time, for correlation and retention only. */
|
|
116
38
|
readonly recordedAt: number;
|
|
117
39
|
}
|
|
118
|
-
//# sourceMappingURL=dispositions.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detect dispositions — the portable vocabulary for explaining what happened
|
|
3
|
-
* to the work a Detect pass took on.
|
|
4
|
-
*
|
|
5
|
-
* Three facts make every completed collection traceable:
|
|
6
|
-
*
|
|
7
|
-
* ready a collection is registered for admission (before it runs)
|
|
8
|
-
* outcome that collection's admission attempt ended one way
|
|
9
|
-
* observation a Watch observation's pass ended one way
|
|
10
|
-
*
|
|
11
|
-
* The ledger never causes a write: every fact is delivered in process only,
|
|
12
|
-
* so explaining a decision never costs the save that made it. A runtime that
|
|
13
|
-
* ends first delivers no more; an absent fact never means nothing ran, and no
|
|
14
|
-
* cause is invented for it. The ledger records decisions its owners already
|
|
15
|
-
* made; it never grants a capture, settles a generation,
|
|
16
|
-
* advances a receipt or schedules a retry. Product work recovers from its own
|
|
17
|
-
* durable responsibilities.
|
|
18
|
-
*/
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=dispositions.js.map
|
package/dist/detection/echo.d.ts
CHANGED
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* No echo across crossed rails.
|
|
3
|
-
*
|
|
4
|
-
* Apply never suppresses watcher rings. It verifies the incoming result and
|
|
5
|
-
* advances the notebook, so its own write later reads as equal and records
|
|
6
|
-
* nothing. The one crossing that equality alone cannot settle is below.
|
|
7
|
-
*/
|
|
8
1
|
import type { DetectedChangeProposal } from './record-proposal.js';
|
|
9
2
|
import type { AcceptedEntityRecord } from '../records/contracts.js';
|
|
10
|
-
/**
|
|
11
|
-
* Detect may observe an authority result before Apply has advanced the local
|
|
12
|
-
* notebook through that accepted Inbox row. The observation is already
|
|
13
|
-
* globally ordered work when its complete logical result is exact.
|
|
14
|
-
* Recording it again would create an outgoing echo solely because
|
|
15
|
-
* two local rails crossed in time.
|
|
16
|
-
*
|
|
17
|
-
* Lineage and facets are intentionally not compared: they describe how each
|
|
18
|
-
* observer reached the same complete result. Deltas and Git packs can differ
|
|
19
|
-
* while reproducing the same payload. Member identities now participate in
|
|
20
|
-
* that payload, so they need no transport comparison as a second truth.
|
|
21
|
-
*/
|
|
22
3
|
export declare function acceptedResultCoversDetection(accepted: AcceptedEntityRecord, proposal: Pick<DetectedChangeProposal, 'entityId' | 'result'>): boolean;
|
|
23
|
-
//# sourceMappingURL=echo.d.ts.map
|