@animalabs/agent-framework 0.22.2 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -4
- package/dist/src/agent.d.ts +108 -17
- package/dist/src/agent.d.ts.map +1 -1
- package/dist/src/agent.js +207 -67
- package/dist/src/agent.js.map +1 -1
- package/dist/src/api/mcp-server-core.js +1 -1
- package/dist/src/api/mcp-server-core.js.map +1 -1
- package/dist/src/api/server.d.ts.map +1 -1
- package/dist/src/api/server.js +5 -1
- package/dist/src/api/server.js.map +1 -1
- package/dist/src/api/types.d.ts +1 -1
- package/dist/src/api/types.d.ts.map +1 -1
- package/dist/src/branch-names.d.ts +14 -0
- package/dist/src/branch-names.d.ts.map +1 -0
- package/dist/src/branch-names.js +22 -0
- package/dist/src/branch-names.js.map +1 -0
- package/dist/src/closest-names.d.ts +28 -0
- package/dist/src/closest-names.d.ts.map +1 -0
- package/dist/src/closest-names.js +98 -0
- package/dist/src/closest-names.js.map +1 -0
- package/dist/src/code-execution/index.d.ts +1 -1
- package/dist/src/code-execution/index.d.ts.map +1 -1
- package/dist/src/code-execution/index.js.map +1 -1
- package/dist/src/code-execution/py-runner.d.ts +50 -7
- package/dist/src/code-execution/py-runner.d.ts.map +1 -1
- package/dist/src/code-execution/py-runner.js +258 -90
- package/dist/src/code-execution/py-runner.js.map +1 -1
- package/dist/src/code-execution/runtime-py.d.ts +3 -2
- package/dist/src/code-execution/runtime-py.d.ts.map +1 -1
- package/dist/src/code-execution/runtime-py.js +94 -8
- package/dist/src/code-execution/runtime-py.js.map +1 -1
- package/dist/src/code-execution/tool-definition.d.ts +17 -1
- package/dist/src/code-execution/tool-definition.d.ts.map +1 -1
- package/dist/src/code-execution/tool-definition.js +72 -6
- package/dist/src/code-execution/tool-definition.js.map +1 -1
- package/dist/src/config-checks.d.ts +28 -0
- package/dist/src/config-checks.d.ts.map +1 -0
- package/dist/src/config-checks.js +56 -0
- package/dist/src/config-checks.js.map +1 -0
- package/dist/src/deadline-timer.d.ts +21 -0
- package/dist/src/deadline-timer.d.ts.map +1 -0
- package/dist/src/deadline-timer.js +43 -0
- package/dist/src/deadline-timer.js.map +1 -0
- package/dist/src/error-message.d.ts +30 -0
- package/dist/src/error-message.d.ts.map +1 -0
- package/dist/src/error-message.js +50 -0
- package/dist/src/error-message.js.map +1 -0
- package/dist/src/framework.d.ts +1529 -165
- package/dist/src/framework.d.ts.map +1 -1
- package/dist/src/framework.js +8264 -1939
- package/dist/src/framework.js.map +1 -1
- package/dist/src/gate/event-gate.d.ts +8 -0
- package/dist/src/gate/event-gate.d.ts.map +1 -1
- package/dist/src/gate/event-gate.js +36 -5
- package/dist/src/gate/event-gate.js.map +1 -1
- package/dist/src/held-writes.d.ts +16 -0
- package/dist/src/held-writes.d.ts.map +1 -0
- package/dist/src/held-writes.js +56 -0
- package/dist/src/held-writes.js.map +1 -0
- package/dist/src/index.d.ts +10 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -5
- package/dist/src/index.js.map +1 -1
- package/dist/src/mcpl/capability-grant.d.ts +4 -0
- package/dist/src/mcpl/capability-grant.d.ts.map +1 -1
- package/dist/src/mcpl/capability-grant.js +1 -1
- package/dist/src/mcpl/capability-grant.js.map +1 -1
- package/dist/src/mcpl/channel-registry.d.ts +233 -18
- package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
- package/dist/src/mcpl/channel-registry.js +975 -386
- package/dist/src/mcpl/channel-registry.js.map +1 -1
- package/dist/src/mcpl/checkpoint-manager.d.ts +21 -1
- package/dist/src/mcpl/checkpoint-manager.d.ts.map +1 -1
- package/dist/src/mcpl/checkpoint-manager.js +91 -30
- package/dist/src/mcpl/checkpoint-manager.js.map +1 -1
- package/dist/src/mcpl/conversation-router.d.ts +19 -3
- package/dist/src/mcpl/conversation-router.d.ts.map +1 -1
- package/dist/src/mcpl/conversation-router.js +23 -8
- package/dist/src/mcpl/conversation-router.js.map +1 -1
- package/dist/src/mcpl/convert-block.d.ts +20 -0
- package/dist/src/mcpl/convert-block.d.ts.map +1 -0
- package/dist/src/mcpl/convert-block.js +88 -0
- package/dist/src/mcpl/convert-block.js.map +1 -0
- package/dist/src/mcpl/errors.d.ts +13 -0
- package/dist/src/mcpl/errors.d.ts.map +1 -1
- package/dist/src/mcpl/errors.js +28 -0
- package/dist/src/mcpl/errors.js.map +1 -1
- package/dist/src/mcpl/hook-orchestrator.d.ts +23 -0
- package/dist/src/mcpl/hook-orchestrator.d.ts.map +1 -1
- package/dist/src/mcpl/hook-orchestrator.js +83 -72
- package/dist/src/mcpl/hook-orchestrator.js.map +1 -1
- package/dist/src/mcpl/inbound-source.d.ts +114 -0
- package/dist/src/mcpl/inbound-source.d.ts.map +1 -0
- package/dist/src/mcpl/inbound-source.js +83 -0
- package/dist/src/mcpl/inbound-source.js.map +1 -0
- package/dist/src/mcpl/index.d.ts +7 -1
- package/dist/src/mcpl/index.d.ts.map +1 -1
- package/dist/src/mcpl/index.js +5 -1
- package/dist/src/mcpl/index.js.map +1 -1
- package/dist/src/mcpl/inference-router.d.ts +19 -13
- package/dist/src/mcpl/inference-router.d.ts.map +1 -1
- package/dist/src/mcpl/inference-router.js +155 -87
- package/dist/src/mcpl/inference-router.js.map +1 -1
- package/dist/src/mcpl/log-value.d.ts +7 -0
- package/dist/src/mcpl/log-value.d.ts.map +1 -1
- package/dist/src/mcpl/log-value.js +9 -0
- package/dist/src/mcpl/log-value.js.map +1 -1
- package/dist/src/mcpl/modern-connection.d.ts +227 -0
- package/dist/src/mcpl/modern-connection.d.ts.map +1 -0
- package/dist/src/mcpl/modern-connection.js +1088 -0
- package/dist/src/mcpl/modern-connection.js.map +1 -0
- package/dist/src/mcpl/prefix-rule.d.ts +18 -0
- package/dist/src/mcpl/prefix-rule.d.ts.map +1 -0
- package/dist/src/mcpl/prefix-rule.js +25 -0
- package/dist/src/mcpl/prefix-rule.js.map +1 -0
- package/dist/src/mcpl/protocol-family.d.ts +179 -0
- package/dist/src/mcpl/protocol-family.d.ts.map +1 -0
- package/dist/src/mcpl/protocol-family.js +697 -0
- package/dist/src/mcpl/protocol-family.js.map +1 -0
- package/dist/src/mcpl/push-coalescer.d.ts +58 -17
- package/dist/src/mcpl/push-coalescer.d.ts.map +1 -1
- package/dist/src/mcpl/push-coalescer.js +93 -32
- package/dist/src/mcpl/push-coalescer.js.map +1 -1
- package/dist/src/mcpl/push-handler.d.ts +16 -9
- package/dist/src/mcpl/push-handler.d.ts.map +1 -1
- package/dist/src/mcpl/push-handler.js +18 -83
- package/dist/src/mcpl/push-handler.js.map +1 -1
- package/dist/src/mcpl/reference-fetcher.d.ts +76 -13
- package/dist/src/mcpl/reference-fetcher.d.ts.map +1 -1
- package/dist/src/mcpl/reference-fetcher.js +275 -66
- package/dist/src/mcpl/reference-fetcher.js.map +1 -1
- package/dist/src/mcpl/references.d.ts +98 -18
- package/dist/src/mcpl/references.d.ts.map +1 -1
- package/dist/src/mcpl/references.js +170 -32
- package/dist/src/mcpl/references.js.map +1 -1
- package/dist/src/mcpl/server-connection.d.ts +406 -31
- package/dist/src/mcpl/server-connection.d.ts.map +1 -1
- package/dist/src/mcpl/server-connection.js +1331 -272
- package/dist/src/mcpl/server-connection.js.map +1 -1
- package/dist/src/mcpl/server-registry.d.ts +35 -6
- package/dist/src/mcpl/server-registry.d.ts.map +1 -1
- package/dist/src/mcpl/server-registry.js +63 -13
- package/dist/src/mcpl/server-registry.js.map +1 -1
- package/dist/src/mcpl/skip-reply-wake.d.ts +36 -0
- package/dist/src/mcpl/skip-reply-wake.d.ts.map +1 -0
- package/dist/src/mcpl/skip-reply-wake.js +55 -0
- package/dist/src/mcpl/skip-reply-wake.js.map +1 -0
- package/dist/src/mcpl/tool-result-normalize.d.ts +54 -0
- package/dist/src/mcpl/tool-result-normalize.d.ts.map +1 -0
- package/dist/src/mcpl/tool-result-normalize.js +232 -0
- package/dist/src/mcpl/tool-result-normalize.js.map +1 -0
- package/dist/src/mcpl/transport.d.ts +104 -12
- package/dist/src/mcpl/transport.d.ts.map +1 -1
- package/dist/src/mcpl/transport.js +315 -85
- package/dist/src/mcpl/transport.js.map +1 -1
- package/dist/src/mcpl/types.d.ts +76 -19
- package/dist/src/mcpl/types.d.ts.map +1 -1
- package/dist/src/mcpl/types.js.map +1 -1
- package/dist/src/mcpl/visible-content.d.ts +16 -0
- package/dist/src/mcpl/visible-content.d.ts.map +1 -1
- package/dist/src/mcpl/visible-content.js +26 -0
- package/dist/src/mcpl/visible-content.js.map +1 -1
- package/dist/src/module-registry.d.ts +34 -6
- package/dist/src/module-registry.d.ts.map +1 -1
- package/dist/src/module-registry.js +119 -31
- package/dist/src/module-registry.js.map +1 -1
- package/dist/src/modules/api/index.d.ts +1 -1
- package/dist/src/modules/api/index.d.ts.map +1 -1
- package/dist/src/modules/api/index.js +3 -2
- package/dist/src/modules/api/index.js.map +1 -1
- package/dist/src/modules/discord/discord-js-client.d.ts +43 -2
- package/dist/src/modules/discord/discord-js-client.d.ts.map +1 -1
- package/dist/src/modules/discord/discord-js-client.js +286 -67
- package/dist/src/modules/discord/discord-js-client.js.map +1 -1
- package/dist/src/modules/discord/index.d.ts +53 -5
- package/dist/src/modules/discord/index.d.ts.map +1 -1
- package/dist/src/modules/discord/index.js +712 -186
- package/dist/src/modules/discord/index.js.map +1 -1
- package/dist/src/modules/discord/refusal.d.ts +14 -0
- package/dist/src/modules/discord/refusal.d.ts.map +1 -0
- package/dist/src/modules/discord/refusal.js +14 -0
- package/dist/src/modules/discord/refusal.js.map +1 -0
- package/dist/src/modules/discord/types.d.ts +27 -4
- package/dist/src/modules/discord/types.d.ts.map +1 -1
- package/dist/src/modules/health/index.d.ts.map +1 -1
- package/dist/src/modules/health/index.js +8 -3
- package/dist/src/modules/health/index.js.map +1 -1
- package/dist/src/modules/history/index.d.ts +3 -1
- package/dist/src/modules/history/index.d.ts.map +1 -1
- package/dist/src/modules/history/index.js +359 -127
- package/dist/src/modules/history/index.js.map +1 -1
- package/dist/src/modules/history/semantic.d.ts +28 -1
- package/dist/src/modules/history/semantic.d.ts.map +1 -1
- package/dist/src/modules/history/semantic.js +177 -32
- package/dist/src/modules/history/semantic.js.map +1 -1
- package/dist/src/modules/index.d.ts +1 -1
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/index.js +1 -1
- package/dist/src/modules/index.js.map +1 -1
- package/dist/src/modules/unknown-tool.d.ts +10 -0
- package/dist/src/modules/unknown-tool.d.ts.map +1 -0
- package/dist/src/modules/unknown-tool.js +17 -0
- package/dist/src/modules/unknown-tool.js.map +1 -0
- package/dist/src/modules/workspace/disk-agreement.d.ts +57 -4
- package/dist/src/modules/workspace/disk-agreement.d.ts.map +1 -1
- package/dist/src/modules/workspace/disk-agreement.js +75 -7
- package/dist/src/modules/workspace/disk-agreement.js.map +1 -1
- package/dist/src/modules/workspace/effects.d.ts +66 -7
- package/dist/src/modules/workspace/effects.d.ts.map +1 -1
- package/dist/src/modules/workspace/effects.js +303 -46
- package/dist/src/modules/workspace/effects.js.map +1 -1
- package/dist/src/modules/workspace/index.d.ts +313 -45
- package/dist/src/modules/workspace/index.d.ts.map +1 -1
- package/dist/src/modules/workspace/index.js +1404 -304
- package/dist/src/modules/workspace/index.js.map +1 -1
- package/dist/src/modules/workspace/observe.d.ts +315 -16
- package/dist/src/modules/workspace/observe.d.ts.map +1 -1
- package/dist/src/modules/workspace/observe.js +727 -37
- package/dist/src/modules/workspace/observe.js.map +1 -1
- package/dist/src/modules/workspace/reconcile.d.ts +58 -7
- package/dist/src/modules/workspace/reconcile.d.ts.map +1 -1
- package/dist/src/modules/workspace/reconcile.js +521 -56
- package/dist/src/modules/workspace/reconcile.js.map +1 -1
- package/dist/src/modules/workspace/types.d.ts +28 -5
- package/dist/src/modules/workspace/types.d.ts.map +1 -1
- package/dist/src/modules/workspace/types.js.map +1 -1
- package/dist/src/modules/workspace/watcher.d.ts +49 -2
- package/dist/src/modules/workspace/watcher.d.ts.map +1 -1
- package/dist/src/modules/workspace/watcher.js +158 -29
- package/dist/src/modules/workspace/watcher.js.map +1 -1
- package/dist/src/prose-drafts.d.ts +240 -0
- package/dist/src/prose-drafts.d.ts.map +1 -0
- package/dist/src/prose-drafts.js +362 -0
- package/dist/src/prose-drafts.js.map +1 -0
- package/dist/src/prose-segments.d.ts +21 -2
- package/dist/src/prose-segments.d.ts.map +1 -1
- package/dist/src/prose-segments.js +46 -9
- package/dist/src/prose-segments.js.map +1 -1
- package/dist/src/recovery/offline-branch.d.ts +1 -0
- package/dist/src/recovery/offline-branch.d.ts.map +1 -1
- package/dist/src/recovery/offline-branch.js +3 -1
- package/dist/src/recovery/offline-branch.js.map +1 -1
- package/dist/src/safe-slice.d.ts +5 -1
- package/dist/src/safe-slice.d.ts.map +1 -1
- package/dist/src/safe-slice.js +9 -1
- package/dist/src/safe-slice.js.map +1 -1
- package/dist/src/silent-heartbeat.d.ts +112 -39
- package/dist/src/silent-heartbeat.d.ts.map +1 -1
- package/dist/src/silent-heartbeat.js +100 -29
- package/dist/src/silent-heartbeat.js.map +1 -1
- package/dist/src/tool-args.d.ts +40 -0
- package/dist/src/tool-args.d.ts.map +1 -0
- package/dist/src/tool-args.js +207 -0
- package/dist/src/tool-args.js.map +1 -0
- package/dist/src/tool-image-ledger.d.ts +87 -19
- package/dist/src/tool-image-ledger.d.ts.map +1 -1
- package/dist/src/tool-image-ledger.js +135 -32
- package/dist/src/tool-image-ledger.js.map +1 -1
- package/dist/src/tool-presentation.d.ts +9 -0
- package/dist/src/tool-presentation.d.ts.map +1 -1
- package/dist/src/tool-presentation.js +266 -62
- package/dist/src/tool-presentation.js.map +1 -1
- package/dist/src/tool-result-guard.d.ts.map +1 -1
- package/dist/src/tool-result-guard.js +7 -10
- package/dist/src/tool-result-guard.js.map +1 -1
- package/dist/src/tool-result-history.d.ts +32 -3
- package/dist/src/tool-result-history.d.ts.map +1 -1
- package/dist/src/tool-result-history.js +106 -19
- package/dist/src/tool-result-history.js.map +1 -1
- package/dist/src/tune-out/coordinator.d.ts +25 -1
- package/dist/src/tune-out/coordinator.d.ts.map +1 -1
- package/dist/src/tune-out/coordinator.js +260 -65
- package/dist/src/tune-out/coordinator.js.map +1 -1
- package/dist/src/types/agent.d.ts +44 -22
- package/dist/src/types/agent.d.ts.map +1 -1
- package/dist/src/types/events.d.ts +25 -0
- package/dist/src/types/events.d.ts.map +1 -1
- package/dist/src/types/framework.d.ts +38 -7
- package/dist/src/types/framework.d.ts.map +1 -1
- package/dist/src/types/inference-log.d.ts +1 -1
- package/dist/src/types/inference-log.d.ts.map +1 -1
- package/dist/src/types/module.d.ts +77 -14
- package/dist/src/types/module.d.ts.map +1 -1
- package/dist/src/types/trace.d.ts +97 -8
- package/dist/src/types/trace.d.ts.map +1 -1
- package/dist/src/usage/usage-tracker.d.ts +5 -0
- package/dist/src/usage/usage-tracker.d.ts.map +1 -1
- package/dist/src/usage/usage-tracker.js +35 -8
- package/dist/src/usage/usage-tracker.js.map +1 -1
- package/package.json +5 -4
- package/src/agent.ts +257 -72
- package/src/api/mcp-server-core.ts +1 -1
- package/src/api/server.ts +4 -1
- package/src/api/types.ts +1 -1
- package/src/branch-names.ts +19 -0
- package/src/closest-names.ts +94 -0
- package/src/code-execution/index.ts +1 -0
- package/src/code-execution/py-runner.ts +304 -93
- package/src/code-execution/runtime-py.ts +94 -8
- package/src/code-execution/tool-definition.ts +85 -7
- package/src/config-checks.ts +50 -0
- package/src/deadline-timer.ts +44 -0
- package/src/error-message.ts +48 -0
- package/src/framework.ts +8625 -1984
- package/src/gate/event-gate.ts +38 -5
- package/src/held-writes.ts +59 -0
- package/src/index.ts +29 -5
- package/src/mcpl/capability-grant.ts +1 -1
- package/src/mcpl/channel-registry.ts +1095 -411
- package/src/mcpl/checkpoint-manager.ts +104 -29
- package/src/mcpl/conversation-router.ts +28 -8
- package/src/mcpl/convert-block.ts +105 -0
- package/src/mcpl/errors.ts +28 -0
- package/src/mcpl/hook-orchestrator.ts +84 -77
- package/src/mcpl/inbound-source.ts +156 -0
- package/src/mcpl/index.ts +23 -1
- package/src/mcpl/inference-router.ts +179 -103
- package/src/mcpl/log-value.ts +10 -0
- package/src/mcpl/modern-connection.ts +1182 -0
- package/src/mcpl/prefix-rule.ts +32 -0
- package/src/mcpl/protocol-family.ts +691 -0
- package/src/mcpl/push-coalescer.ts +110 -36
- package/src/mcpl/push-handler.ts +20 -90
- package/src/mcpl/reference-fetcher.ts +318 -67
- package/src/mcpl/references.ts +183 -34
- package/src/mcpl/server-connection.ts +1404 -280
- package/src/mcpl/server-registry.ts +63 -14
- package/src/mcpl/skip-reply-wake.ts +73 -0
- package/src/mcpl/tool-result-normalize.ts +294 -0
- package/src/mcpl/transport.ts +320 -76
- package/src/mcpl/types.ts +77 -19
- package/src/mcpl/visible-content.ts +28 -0
- package/src/module-registry.ts +126 -36
- package/src/modules/api/index.ts +3 -2
- package/src/modules/discord/discord-js-client.ts +306 -74
- package/src/modules/discord/index.ts +737 -201
- package/src/modules/discord/refusal.ts +13 -0
- package/src/modules/discord/types.ts +27 -6
- package/src/modules/health/index.ts +8 -3
- package/src/modules/history/index.ts +410 -120
- package/src/modules/history/semantic.ts +189 -32
- package/src/modules/index.ts +1 -1
- package/src/modules/unknown-tool.ts +16 -0
- package/src/modules/workspace/disk-agreement.ts +97 -8
- package/src/modules/workspace/effects.ts +291 -36
- package/src/modules/workspace/index.ts +1469 -321
- package/src/modules/workspace/observe.ts +784 -41
- package/src/modules/workspace/reconcile.ts +619 -64
- package/src/modules/workspace/types.ts +28 -5
- package/src/modules/workspace/watcher.ts +154 -30
- package/src/prose-drafts.ts +481 -0
- package/src/prose-segments.ts +51 -8
- package/src/recovery/offline-branch.ts +4 -1
- package/src/safe-slice.ts +9 -1
- package/src/silent-heartbeat.ts +184 -59
- package/src/tool-args.ts +213 -0
- package/src/tool-image-ledger.ts +153 -34
- package/src/tool-presentation.ts +233 -42
- package/src/tool-result-guard.ts +7 -8
- package/src/tool-result-history.ts +124 -20
- package/src/tune-out/coordinator.ts +259 -65
- package/src/types/agent.ts +44 -24
- package/src/types/events.ts +25 -0
- package/src/types/framework.ts +38 -7
- package/src/types/inference-log.ts +1 -1
- package/src/types/module.ts +79 -14
- package/src/types/trace.ts +103 -8
- package/src/usage/usage-tracker.ts +32 -8
- package/dist/test/activation-request-sanitize.test.d.ts +0 -2
- package/dist/test/activation-request-sanitize.test.d.ts.map +0 -1
- package/dist/test/activation-request-sanitize.test.js +0 -89
- package/dist/test/activation-request-sanitize.test.js.map +0 -1
- package/dist/test/agent-cache-ttl.test.d.ts +0 -2
- package/dist/test/agent-cache-ttl.test.d.ts.map +0 -1
- package/dist/test/agent-cache-ttl.test.js +0 -41
- package/dist/test/agent-cache-ttl.test.js.map +0 -1
- package/dist/test/agent-runtime-settings.test.d.ts +0 -2
- package/dist/test/agent-runtime-settings.test.d.ts.map +0 -1
- package/dist/test/agent-runtime-settings.test.js +0 -1598
- package/dist/test/agent-runtime-settings.test.js.map +0 -1
- package/dist/test/api-admin-gate.test.d.ts +0 -2
- package/dist/test/api-admin-gate.test.d.ts.map +0 -1
- package/dist/test/api-admin-gate.test.js +0 -116
- package/dist/test/api-admin-gate.test.js.map +0 -1
- package/dist/test/assistant-persist-refusal.test.d.ts +0 -2
- package/dist/test/assistant-persist-refusal.test.d.ts.map +0 -1
- package/dist/test/assistant-persist-refusal.test.js +0 -63
- package/dist/test/assistant-persist-refusal.test.js.map +0 -1
- package/dist/test/batched-wake-locus.test.d.ts +0 -2
- package/dist/test/batched-wake-locus.test.d.ts.map +0 -1
- package/dist/test/batched-wake-locus.test.js +0 -166
- package/dist/test/batched-wake-locus.test.js.map +0 -1
- package/dist/test/busy-agent-scheduler.test.d.ts +0 -2
- package/dist/test/busy-agent-scheduler.test.d.ts.map +0 -1
- package/dist/test/busy-agent-scheduler.test.js +0 -92
- package/dist/test/busy-agent-scheduler.test.js.map +0 -1
- package/dist/test/channel-incoming-targeting.test.d.ts +0 -2
- package/dist/test/channel-incoming-targeting.test.d.ts.map +0 -1
- package/dist/test/channel-incoming-targeting.test.js +0 -81
- package/dist/test/channel-incoming-targeting.test.js.map +0 -1
- package/dist/test/channel-label-history.test.d.ts +0 -2
- package/dist/test/channel-label-history.test.d.ts.map +0 -1
- package/dist/test/channel-label-history.test.js +0 -424
- package/dist/test/channel-label-history.test.js.map +0 -1
- package/dist/test/channel-lifecycle-provenance.test.d.ts +0 -2
- package/dist/test/channel-lifecycle-provenance.test.d.ts.map +0 -1
- package/dist/test/channel-lifecycle-provenance.test.js +0 -47
- package/dist/test/channel-lifecycle-provenance.test.js.map +0 -1
- package/dist/test/channel-registry-routing.test.d.ts +0 -2
- package/dist/test/channel-registry-routing.test.d.ts.map +0 -1
- package/dist/test/channel-registry-routing.test.js +0 -446
- package/dist/test/channel-registry-routing.test.js.map +0 -1
- package/dist/test/channel-registry-typing.test.d.ts +0 -2
- package/dist/test/channel-registry-typing.test.d.ts.map +0 -1
- package/dist/test/channel-registry-typing.test.js +0 -91
- package/dist/test/channel-registry-typing.test.js.map +0 -1
- package/dist/test/channels-changed-respond-first.test.d.ts +0 -2
- package/dist/test/channels-changed-respond-first.test.d.ts.map +0 -1
- package/dist/test/channels-changed-respond-first.test.js +0 -74
- package/dist/test/channels-changed-respond-first.test.js.map +0 -1
- package/dist/test/checkpoint-attribution.test.d.ts +0 -2
- package/dist/test/checkpoint-attribution.test.d.ts.map +0 -1
- package/dist/test/checkpoint-attribution.test.js +0 -200
- package/dist/test/checkpoint-attribution.test.js.map +0 -1
- package/dist/test/code-execution.test.d.ts +0 -11
- package/dist/test/code-execution.test.d.ts.map +0 -1
- package/dist/test/code-execution.test.js +0 -1272
- package/dist/test/code-execution.test.js.map +0 -1
- package/dist/test/component-defaults.test.d.ts +0 -2
- package/dist/test/component-defaults.test.d.ts.map +0 -1
- package/dist/test/component-defaults.test.js +0 -54
- package/dist/test/component-defaults.test.js.map +0 -1
- package/dist/test/conversation-fork-injection-scoping.test.d.ts +0 -2
- package/dist/test/conversation-fork-injection-scoping.test.d.ts.map +0 -1
- package/dist/test/conversation-fork-injection-scoping.test.js +0 -200
- package/dist/test/conversation-fork-injection-scoping.test.js.map +0 -1
- package/dist/test/conversation-router.test.d.ts +0 -2
- package/dist/test/conversation-router.test.d.ts.map +0 -1
- package/dist/test/conversation-router.test.js +0 -174
- package/dist/test/conversation-router.test.js.map +0 -1
- package/dist/test/conversation-routing.test.d.ts +0 -7
- package/dist/test/conversation-routing.test.d.ts.map +0 -1
- package/dist/test/conversation-routing.test.js +0 -621
- package/dist/test/conversation-routing.test.js.map +0 -1
- package/dist/test/deferred-wake-integrity.test.d.ts +0 -29
- package/dist/test/deferred-wake-integrity.test.d.ts.map +0 -1
- package/dist/test/deferred-wake-integrity.test.js +0 -320
- package/dist/test/deferred-wake-integrity.test.js.map +0 -1
- package/dist/test/discord-awareness-outbox.test.d.ts +0 -2
- package/dist/test/discord-awareness-outbox.test.d.ts.map +0 -1
- package/dist/test/discord-awareness-outbox.test.js +0 -371
- package/dist/test/discord-awareness-outbox.test.js.map +0 -1
- package/dist/test/discord-history-delete-window.test.d.ts +0 -2
- package/dist/test/discord-history-delete-window.test.d.ts.map +0 -1
- package/dist/test/discord-history-delete-window.test.js +0 -81
- package/dist/test/discord-history-delete-window.test.js.map +0 -1
- package/dist/test/discord-history-sync.test.d.ts +0 -2
- package/dist/test/discord-history-sync.test.d.ts.map +0 -1
- package/dist/test/discord-history-sync.test.js +0 -56
- package/dist/test/discord-history-sync.test.js.map +0 -1
- package/dist/test/discord-typing-keepalive.test.d.ts +0 -2
- package/dist/test/discord-typing-keepalive.test.d.ts.map +0 -1
- package/dist/test/discord-typing-keepalive.test.js +0 -77
- package/dist/test/discord-typing-keepalive.test.js.map +0 -1
- package/dist/test/ephemeral-settle.test.d.ts +0 -2
- package/dist/test/ephemeral-settle.test.d.ts.map +0 -1
- package/dist/test/ephemeral-settle.test.js +0 -354
- package/dist/test/ephemeral-settle.test.js.map +0 -1
- package/dist/test/event-gate-passthrough.test.d.ts +0 -15
- package/dist/test/event-gate-passthrough.test.d.ts.map +0 -1
- package/dist/test/event-gate-passthrough.test.js +0 -289
- package/dist/test/event-gate-passthrough.test.js.map +0 -1
- package/dist/test/event-gate-policy-mutation.test.d.ts +0 -2
- package/dist/test/event-gate-policy-mutation.test.d.ts.map +0 -1
- package/dist/test/event-gate-policy-mutation.test.js +0 -137
- package/dist/test/event-gate-policy-mutation.test.js.map +0 -1
- package/dist/test/event-gate-rate-limit.test.d.ts +0 -2
- package/dist/test/event-gate-rate-limit.test.d.ts.map +0 -1
- package/dist/test/event-gate-rate-limit.test.js +0 -627
- package/dist/test/event-gate-rate-limit.test.js.map +0 -1
- package/dist/test/event-gate-script.test.d.ts +0 -2
- package/dist/test/event-gate-script.test.d.ts.map +0 -1
- package/dist/test/event-gate-script.test.js +0 -95
- package/dist/test/event-gate-script.test.js.map +0 -1
- package/dist/test/event-gate-selfwake.test.d.ts +0 -15
- package/dist/test/event-gate-selfwake.test.d.ts.map +0 -1
- package/dist/test/event-gate-selfwake.test.js +0 -125
- package/dist/test/event-gate-selfwake.test.js.map +0 -1
- package/dist/test/event-gate-tags.test.d.ts +0 -2
- package/dist/test/event-gate-tags.test.d.ts.map +0 -1
- package/dist/test/event-gate-tags.test.js +0 -76
- package/dist/test/event-gate-tags.test.js.map +0 -1
- package/dist/test/event-gate.test.d.ts +0 -2
- package/dist/test/event-gate.test.d.ts.map +0 -1
- package/dist/test/event-gate.test.js +0 -919
- package/dist/test/event-gate.test.js.map +0 -1
- package/dist/test/explicit-prose-routing.test.d.ts +0 -11
- package/dist/test/explicit-prose-routing.test.d.ts.map +0 -1
- package/dist/test/explicit-prose-routing.test.js +0 -1715
- package/dist/test/explicit-prose-routing.test.js.map +0 -1
- package/dist/test/framework.test.d.ts +0 -5
- package/dist/test/framework.test.d.ts.map +0 -1
- package/dist/test/framework.test.js +0 -1048
- package/dist/test/framework.test.js.map +0 -1
- package/dist/test/gather-context-timeout.test.d.ts +0 -2
- package/dist/test/gather-context-timeout.test.d.ts.map +0 -1
- package/dist/test/gather-context-timeout.test.js +0 -120
- package/dist/test/gather-context-timeout.test.js.map +0 -1
- package/dist/test/health-snapshot.test.d.ts +0 -2
- package/dist/test/health-snapshot.test.d.ts.map +0 -1
- package/dist/test/health-snapshot.test.js +0 -74
- package/dist/test/health-snapshot.test.js.map +0 -1
- package/dist/test/helpers/coalescing-fixture.d.ts +0 -74
- package/dist/test/helpers/coalescing-fixture.d.ts.map +0 -1
- package/dist/test/helpers/coalescing-fixture.js +0 -152
- package/dist/test/helpers/coalescing-fixture.js.map +0 -1
- package/dist/test/helpers/coalescing-kill-child.d.ts +0 -2
- package/dist/test/helpers/coalescing-kill-child.d.ts.map +0 -1
- package/dist/test/helpers/coalescing-kill-child.js +0 -24
- package/dist/test/helpers/coalescing-kill-child.js.map +0 -1
- package/dist/test/helpers/mock-membrane.d.ts +0 -53
- package/dist/test/helpers/mock-membrane.d.ts.map +0 -1
- package/dist/test/helpers/mock-membrane.js +0 -168
- package/dist/test/helpers/mock-membrane.js.map +0 -1
- package/dist/test/helpers/pytc-stop-rows.d.ts +0 -11
- package/dist/test/helpers/pytc-stop-rows.d.ts.map +0 -1
- package/dist/test/helpers/pytc-stop-rows.js +0 -143
- package/dist/test/helpers/pytc-stop-rows.js.map +0 -1
- package/dist/test/helpers/quiesce-crash-child.d.ts +0 -2
- package/dist/test/helpers/quiesce-crash-child.d.ts.map +0 -1
- package/dist/test/helpers/quiesce-crash-child.js +0 -156
- package/dist/test/helpers/quiesce-crash-child.js.map +0 -1
- package/dist/test/hide-then-turn.test.d.ts +0 -2
- package/dist/test/hide-then-turn.test.d.ts.map +0 -1
- package/dist/test/hide-then-turn.test.js +0 -101
- package/dist/test/hide-then-turn.test.js.map +0 -1
- package/dist/test/history-module-overview.test.d.ts +0 -2
- package/dist/test/history-module-overview.test.d.ts.map +0 -1
- package/dist/test/history-module-overview.test.js +0 -711
- package/dist/test/history-module-overview.test.js.map +0 -1
- package/dist/test/history-module-realstore.test.d.ts +0 -2
- package/dist/test/history-module-realstore.test.d.ts.map +0 -1
- package/dist/test/history-module-realstore.test.js +0 -363
- package/dist/test/history-module-realstore.test.js.map +0 -1
- package/dist/test/history-module-semantic.test.d.ts +0 -2
- package/dist/test/history-module-semantic.test.d.ts.map +0 -1
- package/dist/test/history-module-semantic.test.js +0 -213
- package/dist/test/history-module-semantic.test.js.map +0 -1
- package/dist/test/history-module-ux.test.d.ts +0 -2
- package/dist/test/history-module-ux.test.d.ts.map +0 -1
- package/dist/test/history-module-ux.test.js +0 -304
- package/dist/test/history-module-ux.test.js.map +0 -1
- package/dist/test/history-module.test.d.ts +0 -2
- package/dist/test/history-module.test.d.ts.map +0 -1
- package/dist/test/history-module.test.js +0 -619
- package/dist/test/history-module.test.js.map +0 -1
- package/dist/test/history-semantic-review-findings.test.d.ts +0 -2
- package/dist/test/history-semantic-review-findings.test.d.ts.map +0 -1
- package/dist/test/history-semantic-review-findings.test.js +0 -338
- package/dist/test/history-semantic-review-findings.test.js.map +0 -1
- package/dist/test/history-semantic-sync-converges.test.d.ts +0 -2
- package/dist/test/history-semantic-sync-converges.test.d.ts.map +0 -1
- package/dist/test/history-semantic-sync-converges.test.js +0 -109
- package/dist/test/history-semantic-sync-converges.test.js.map +0 -1
- package/dist/test/host-quiesce.test.d.ts +0 -2
- package/dist/test/host-quiesce.test.d.ts.map +0 -1
- package/dist/test/host-quiesce.test.js +0 -988
- package/dist/test/host-quiesce.test.js.map +0 -1
- package/dist/test/inference-exhaustion-rewind.test.d.ts +0 -2
- package/dist/test/inference-exhaustion-rewind.test.d.ts.map +0 -1
- package/dist/test/inference-exhaustion-rewind.test.js +0 -387
- package/dist/test/inference-exhaustion-rewind.test.js.map +0 -1
- package/dist/test/inference-failure-bounds.test.d.ts +0 -2
- package/dist/test/inference-failure-bounds.test.d.ts.map +0 -1
- package/dist/test/inference-failure-bounds.test.js +0 -1202
- package/dist/test/inference-failure-bounds.test.js.map +0 -1
- package/dist/test/inference-failure-observability.test.d.ts +0 -2
- package/dist/test/inference-failure-observability.test.d.ts.map +0 -1
- package/dist/test/inference-failure-observability.test.js +0 -84
- package/dist/test/inference-failure-observability.test.js.map +0 -1
- package/dist/test/journal-tool.test.d.ts +0 -2
- package/dist/test/journal-tool.test.d.ts.map +0 -1
- package/dist/test/journal-tool.test.js +0 -33
- package/dist/test/journal-tool.test.js.map +0 -1
- package/dist/test/kv-unified-open-flight-retry.test.d.ts +0 -2
- package/dist/test/kv-unified-open-flight-retry.test.d.ts.map +0 -1
- package/dist/test/kv-unified-open-flight-retry.test.js +0 -189
- package/dist/test/kv-unified-open-flight-retry.test.js.map +0 -1
- package/dist/test/kv-unified-wiring.test.d.ts +0 -2
- package/dist/test/kv-unified-wiring.test.d.ts.map +0 -1
- package/dist/test/kv-unified-wiring.test.js +0 -95
- package/dist/test/kv-unified-wiring.test.js.map +0 -1
- package/dist/test/late-events-after-stop.test.d.ts +0 -2
- package/dist/test/late-events-after-stop.test.d.ts.map +0 -1
- package/dist/test/late-events-after-stop.test.js +0 -122
- package/dist/test/late-events-after-stop.test.js.map +0 -1
- package/dist/test/liveness-watchdog.test.d.ts +0 -2
- package/dist/test/liveness-watchdog.test.d.ts.map +0 -1
- package/dist/test/liveness-watchdog.test.js +0 -94
- package/dist/test/liveness-watchdog.test.js.map +0 -1
- package/dist/test/machine-close-provenance.test.d.ts +0 -2
- package/dist/test/machine-close-provenance.test.d.ts.map +0 -1
- package/dist/test/machine-close-provenance.test.js +0 -116
- package/dist/test/machine-close-provenance.test.js.map +0 -1
- package/dist/test/maintenance-timer.test.d.ts +0 -2
- package/dist/test/maintenance-timer.test.d.ts.map +0 -1
- package/dist/test/maintenance-timer.test.js +0 -1827
- package/dist/test/maintenance-timer.test.js.map +0 -1
- package/dist/test/mcp-server-bin.test.d.ts +0 -2
- package/dist/test/mcp-server-bin.test.d.ts.map +0 -1
- package/dist/test/mcp-server-bin.test.js +0 -142
- package/dist/test/mcp-server-bin.test.js.map +0 -1
- package/dist/test/mcpl-access-provider.test.d.ts +0 -2
- package/dist/test/mcpl-access-provider.test.d.ts.map +0 -1
- package/dist/test/mcpl-access-provider.test.js +0 -20
- package/dist/test/mcpl-access-provider.test.js.map +0 -1
- package/dist/test/mcpl-awareness-barrier.test.d.ts +0 -2
- package/dist/test/mcpl-awareness-barrier.test.d.ts.map +0 -1
- package/dist/test/mcpl-awareness-barrier.test.js +0 -769
- package/dist/test/mcpl-awareness-barrier.test.js.map +0 -1
- package/dist/test/mcpl-capability-grant.test.d.ts +0 -10
- package/dist/test/mcpl-capability-grant.test.d.ts.map +0 -1
- package/dist/test/mcpl-capability-grant.test.js +0 -111
- package/dist/test/mcpl-capability-grant.test.js.map +0 -1
- package/dist/test/mcpl-capability-scoping.test.d.ts +0 -2
- package/dist/test/mcpl-capability-scoping.test.d.ts.map +0 -1
- package/dist/test/mcpl-capability-scoping.test.js +0 -266
- package/dist/test/mcpl-capability-scoping.test.js.map +0 -1
- package/dist/test/mcpl-child-env.test.d.ts +0 -2
- package/dist/test/mcpl-child-env.test.d.ts.map +0 -1
- package/dist/test/mcpl-child-env.test.js +0 -158
- package/dist/test/mcpl-child-env.test.js.map +0 -1
- package/dist/test/mcpl-coalesced-content-parity.test.d.ts +0 -2
- package/dist/test/mcpl-coalesced-content-parity.test.d.ts.map +0 -1
- package/dist/test/mcpl-coalesced-content-parity.test.js +0 -532
- package/dist/test/mcpl-coalesced-content-parity.test.js.map +0 -1
- package/dist/test/mcpl-coalescing.test.d.ts +0 -2
- package/dist/test/mcpl-coalescing.test.d.ts.map +0 -1
- package/dist/test/mcpl-coalescing.test.js +0 -1125
- package/dist/test/mcpl-coalescing.test.js.map +0 -1
- package/dist/test/mcpl-config-diagnostics.test.d.ts +0 -2
- package/dist/test/mcpl-config-diagnostics.test.d.ts.map +0 -1
- package/dist/test/mcpl-config-diagnostics.test.js +0 -452
- package/dist/test/mcpl-config-diagnostics.test.js.map +0 -1
- package/dist/test/mcpl-empty-content.test.d.ts +0 -2
- package/dist/test/mcpl-empty-content.test.d.ts.map +0 -1
- package/dist/test/mcpl-empty-content.test.js +0 -368
- package/dist/test/mcpl-empty-content.test.js.map +0 -1
- package/dist/test/mcpl-gate-roundtrip.test.d.ts +0 -2
- package/dist/test/mcpl-gate-roundtrip.test.d.ts.map +0 -1
- package/dist/test/mcpl-gate-roundtrip.test.js +0 -285
- package/dist/test/mcpl-gate-roundtrip.test.js.map +0 -1
- package/dist/test/mcpl-list-status.test.d.ts +0 -2
- package/dist/test/mcpl-list-status.test.d.ts.map +0 -1
- package/dist/test/mcpl-list-status.test.js +0 -82
- package/dist/test/mcpl-list-status.test.js.map +0 -1
- package/dist/test/mcpl-manifest-changed.test.d.ts +0 -2
- package/dist/test/mcpl-manifest-changed.test.d.ts.map +0 -1
- package/dist/test/mcpl-manifest-changed.test.js +0 -178
- package/dist/test/mcpl-manifest-changed.test.js.map +0 -1
- package/dist/test/mcpl-push-convert.test.d.ts +0 -2
- package/dist/test/mcpl-push-convert.test.d.ts.map +0 -1
- package/dist/test/mcpl-push-convert.test.js +0 -42
- package/dist/test/mcpl-push-convert.test.js.map +0 -1
- package/dist/test/mcpl-reconnect-events.test.d.ts +0 -2
- package/dist/test/mcpl-reconnect-events.test.d.ts.map +0 -1
- package/dist/test/mcpl-reconnect-events.test.js +0 -144
- package/dist/test/mcpl-reconnect-events.test.js.map +0 -1
- package/dist/test/mcpl-reconnect-reregistration.test.d.ts +0 -2
- package/dist/test/mcpl-reconnect-reregistration.test.d.ts.map +0 -1
- package/dist/test/mcpl-reconnect-reregistration.test.js +0 -238
- package/dist/test/mcpl-reconnect-reregistration.test.js.map +0 -1
- package/dist/test/mcpl-reference-fetcher.test.d.ts +0 -2
- package/dist/test/mcpl-reference-fetcher.test.d.ts.map +0 -1
- package/dist/test/mcpl-reference-fetcher.test.js +0 -427
- package/dist/test/mcpl-reference-fetcher.test.js.map +0 -1
- package/dist/test/mcpl-reference-fields.test.d.ts +0 -2
- package/dist/test/mcpl-reference-fields.test.d.ts.map +0 -1
- package/dist/test/mcpl-reference-fields.test.js +0 -149
- package/dist/test/mcpl-reference-fields.test.js.map +0 -1
- package/dist/test/mcpl-rejection-log-lines.test.d.ts +0 -2
- package/dist/test/mcpl-rejection-log-lines.test.d.ts.map +0 -1
- package/dist/test/mcpl-rejection-log-lines.test.js +0 -349
- package/dist/test/mcpl-rejection-log-lines.test.js.map +0 -1
- package/dist/test/mcpl-request-timeout.test.d.ts +0 -2
- package/dist/test/mcpl-request-timeout.test.d.ts.map +0 -1
- package/dist/test/mcpl-request-timeout.test.js +0 -138
- package/dist/test/mcpl-request-timeout.test.js.map +0 -1
- package/dist/test/mcpl-runtime-lifecycle.test.d.ts +0 -7
- package/dist/test/mcpl-runtime-lifecycle.test.d.ts.map +0 -1
- package/dist/test/mcpl-runtime-lifecycle.test.js +0 -142
- package/dist/test/mcpl-runtime-lifecycle.test.js.map +0 -1
- package/dist/test/mcpl-stderr-tail.test.d.ts +0 -2
- package/dist/test/mcpl-stderr-tail.test.d.ts.map +0 -1
- package/dist/test/mcpl-stderr-tail.test.js +0 -210
- package/dist/test/mcpl-stderr-tail.test.js.map +0 -1
- package/dist/test/mcpl-tool-class-listing.test.d.ts +0 -2
- package/dist/test/mcpl-tool-class-listing.test.d.ts.map +0 -1
- package/dist/test/mcpl-tool-class-listing.test.js +0 -147
- package/dist/test/mcpl-tool-class-listing.test.js.map +0 -1
- package/dist/test/mcpl-tool-classes.test.d.ts +0 -7
- package/dist/test/mcpl-tool-classes.test.d.ts.map +0 -1
- package/dist/test/mcpl-tool-classes.test.js +0 -80
- package/dist/test/mcpl-tool-classes.test.js.map +0 -1
- package/dist/test/mcpl-tool-lifecycle-e2e.test.d.ts +0 -2
- package/dist/test/mcpl-tool-lifecycle-e2e.test.d.ts.map +0 -1
- package/dist/test/mcpl-tool-lifecycle-e2e.test.js +0 -237
- package/dist/test/mcpl-tool-lifecycle-e2e.test.js.map +0 -1
- package/dist/test/mcpl-tool-lifecycle-emitter.test.d.ts +0 -11
- package/dist/test/mcpl-tool-lifecycle-emitter.test.d.ts.map +0 -1
- package/dist/test/mcpl-tool-lifecycle-emitter.test.js +0 -412
- package/dist/test/mcpl-tool-lifecycle-emitter.test.js.map +0 -1
- package/dist/test/mcpl-tool-lifecycle-script.test.d.ts +0 -2
- package/dist/test/mcpl-tool-lifecycle-script.test.d.ts.map +0 -1
- package/dist/test/mcpl-tool-lifecycle-script.test.js +0 -288
- package/dist/test/mcpl-tool-lifecycle-script.test.js.map +0 -1
- package/dist/test/mcpl-tool-lifecycle.test.d.ts +0 -11
- package/dist/test/mcpl-tool-lifecycle.test.d.ts.map +0 -1
- package/dist/test/mcpl-tool-lifecycle.test.js +0 -270
- package/dist/test/mcpl-tool-lifecycle.test.js.map +0 -1
- package/dist/test/mcpl-transport-close.test.d.ts +0 -2
- package/dist/test/mcpl-transport-close.test.d.ts.map +0 -1
- package/dist/test/mcpl-transport-close.test.js +0 -373
- package/dist/test/mcpl-transport-close.test.js.map +0 -1
- package/dist/test/mcpl-transport-spawn.test.d.ts +0 -2
- package/dist/test/mcpl-transport-spawn.test.d.ts.map +0 -1
- package/dist/test/mcpl-transport-spawn.test.js +0 -58
- package/dist/test/mcpl-transport-spawn.test.js.map +0 -1
- package/dist/test/mcpl-ws-transport.test.d.ts +0 -2
- package/dist/test/mcpl-ws-transport.test.d.ts.map +0 -1
- package/dist/test/mcpl-ws-transport.test.js +0 -259
- package/dist/test/mcpl-ws-transport.test.js.map +0 -1
- package/dist/test/module-context-integration.test.d.ts +0 -18
- package/dist/test/module-context-integration.test.d.ts.map +0 -1
- package/dist/test/module-context-integration.test.js +0 -181
- package/dist/test/module-context-integration.test.js.map +0 -1
- package/dist/test/offline-recovery-branch.test.d.ts +0 -2
- package/dist/test/offline-recovery-branch.test.d.ts.map +0 -1
- package/dist/test/offline-recovery-branch.test.js +0 -570
- package/dist/test/offline-recovery-branch.test.js.map +0 -1
- package/dist/test/operator-surgery.test.d.ts +0 -2
- package/dist/test/operator-surgery.test.d.ts.map +0 -1
- package/dist/test/operator-surgery.test.js +0 -595
- package/dist/test/operator-surgery.test.js.map +0 -1
- package/dist/test/ops-alert.test.d.ts +0 -2
- package/dist/test/ops-alert.test.d.ts.map +0 -1
- package/dist/test/ops-alert.test.js +0 -153
- package/dist/test/ops-alert.test.js.map +0 -1
- package/dist/test/overbudget-drain-breaker.test.d.ts +0 -2
- package/dist/test/overbudget-drain-breaker.test.d.ts.map +0 -1
- package/dist/test/overbudget-drain-breaker.test.js +0 -198
- package/dist/test/overbudget-drain-breaker.test.js.map +0 -1
- package/dist/test/pack-installs-alone.test.d.ts +0 -2
- package/dist/test/pack-installs-alone.test.d.ts.map +0 -1
- package/dist/test/pack-installs-alone.test.js +0 -284
- package/dist/test/pack-installs-alone.test.js.map +0 -1
- package/dist/test/per-agent-delivery.test.d.ts +0 -2
- package/dist/test/per-agent-delivery.test.d.ts.map +0 -1
- package/dist/test/per-agent-delivery.test.js +0 -108
- package/dist/test/per-agent-delivery.test.js.map +0 -1
- package/dist/test/physical-window-restart.test.d.ts +0 -16
- package/dist/test/physical-window-restart.test.d.ts.map +0 -1
- package/dist/test/physical-window-restart.test.js +0 -487
- package/dist/test/physical-window-restart.test.js.map +0 -1
- package/dist/test/placed-reaction-baseline.test.d.ts +0 -2
- package/dist/test/placed-reaction-baseline.test.d.ts.map +0 -1
- package/dist/test/placed-reaction-baseline.test.js +0 -312
- package/dist/test/placed-reaction-baseline.test.js.map +0 -1
- package/dist/test/present-while-acting.test.d.ts +0 -19
- package/dist/test/present-while-acting.test.d.ts.map +0 -1
- package/dist/test/present-while-acting.test.js +0 -1649
- package/dist/test/present-while-acting.test.js.map +0 -1
- package/dist/test/prose-segments.test.d.ts +0 -2
- package/dist/test/prose-segments.test.d.ts.map +0 -1
- package/dist/test/prose-segments.test.js +0 -52
- package/dist/test/prose-segments.test.js.map +0 -1
- package/dist/test/prose-stream-router.test.d.ts +0 -2
- package/dist/test/prose-stream-router.test.d.ts.map +0 -1
- package/dist/test/prose-stream-router.test.js +0 -171
- package/dist/test/prose-stream-router.test.js.map +0 -1
- package/dist/test/provider-acceleration-cooldown.test.d.ts +0 -2
- package/dist/test/provider-acceleration-cooldown.test.d.ts.map +0 -1
- package/dist/test/provider-acceleration-cooldown.test.js +0 -435
- package/dist/test/provider-acceleration-cooldown.test.js.map +0 -1
- package/dist/test/provider-waits.test.d.ts +0 -2
- package/dist/test/provider-waits.test.d.ts.map +0 -1
- package/dist/test/provider-waits.test.js +0 -2259
- package/dist/test/provider-waits.test.js.map +0 -1
- package/dist/test/puppet-tool-call.test.d.ts +0 -2
- package/dist/test/puppet-tool-call.test.d.ts.map +0 -1
- package/dist/test/puppet-tool-call.test.js +0 -226
- package/dist/test/puppet-tool-call.test.js.map +0 -1
- package/dist/test/puppet-turn-reservation.test.d.ts +0 -2
- package/dist/test/puppet-turn-reservation.test.d.ts.map +0 -1
- package/dist/test/puppet-turn-reservation.test.js +0 -139
- package/dist/test/puppet-turn-reservation.test.js.map +0 -1
- package/dist/test/reaction-baseline-platform.test.d.ts +0 -2
- package/dist/test/reaction-baseline-platform.test.d.ts.map +0 -1
- package/dist/test/reaction-baseline-platform.test.js +0 -124
- package/dist/test/reaction-baseline-platform.test.js.map +0 -1
- package/dist/test/record-journal.test.d.ts +0 -6
- package/dist/test/record-journal.test.d.ts.map +0 -1
- package/dist/test/record-journal.test.js +0 -269
- package/dist/test/record-journal.test.js.map +0 -1
- package/dist/test/refusal-reaction-baseline.test.d.ts +0 -2
- package/dist/test/refusal-reaction-baseline.test.d.ts.map +0 -1
- package/dist/test/refusal-reaction-baseline.test.js +0 -81
- package/dist/test/refusal-reaction-baseline.test.js.map +0 -1
- package/dist/test/refusal-rewind.test.d.ts +0 -2
- package/dist/test/refusal-rewind.test.d.ts.map +0 -1
- package/dist/test/refusal-rewind.test.js +0 -117
- package/dist/test/refusal-rewind.test.js.map +0 -1
- package/dist/test/refusal-single-call.test.d.ts +0 -2
- package/dist/test/refusal-single-call.test.d.ts.map +0 -1
- package/dist/test/refusal-single-call.test.js +0 -177
- package/dist/test/refusal-single-call.test.js.map +0 -1
- package/dist/test/release-bump.test.d.ts +0 -2
- package/dist/test/release-bump.test.d.ts.map +0 -1
- package/dist/test/release-bump.test.js +0 -248
- package/dist/test/release-bump.test.js.map +0 -1
- package/dist/test/release-changelog.test.d.ts +0 -2
- package/dist/test/release-changelog.test.d.ts.map +0 -1
- package/dist/test/release-changelog.test.js +0 -159
- package/dist/test/release-changelog.test.js.map +0 -1
- package/dist/test/release-holds.test.d.ts +0 -2
- package/dist/test/release-holds.test.d.ts.map +0 -1
- package/dist/test/release-holds.test.js +0 -456
- package/dist/test/release-holds.test.js.map +0 -1
- package/dist/test/same-round-think-policy.test.d.ts +0 -2
- package/dist/test/same-round-think-policy.test.d.ts.map +0 -1
- package/dist/test/same-round-think-policy.test.js +0 -853
- package/dist/test/same-round-think-policy.test.js.map +0 -1
- package/dist/test/save-recent-image.test.d.ts +0 -26
- package/dist/test/save-recent-image.test.d.ts.map +0 -1
- package/dist/test/save-recent-image.test.js +0 -974
- package/dist/test/save-recent-image.test.js.map +0 -1
- package/dist/test/shutdown-errors.test.d.ts +0 -2
- package/dist/test/shutdown-errors.test.d.ts.map +0 -1
- package/dist/test/shutdown-errors.test.js +0 -662
- package/dist/test/shutdown-errors.test.js.map +0 -1
- package/dist/test/silent-heartbeat-rows.test.d.ts +0 -2
- package/dist/test/silent-heartbeat-rows.test.d.ts.map +0 -1
- package/dist/test/silent-heartbeat-rows.test.js +0 -451
- package/dist/test/silent-heartbeat-rows.test.js.map +0 -1
- package/dist/test/silent-heartbeat.test.d.ts +0 -2
- package/dist/test/silent-heartbeat.test.d.ts.map +0 -1
- package/dist/test/silent-heartbeat.test.js +0 -165
- package/dist/test/silent-heartbeat.test.js.map +0 -1
- package/dist/test/state-scaling-e2e.test.d.ts +0 -22
- package/dist/test/state-scaling-e2e.test.d.ts.map +0 -1
- package/dist/test/state-scaling-e2e.test.js +0 -206
- package/dist/test/state-scaling-e2e.test.js.map +0 -1
- package/dist/test/state-scaling.test.d.ts +0 -12
- package/dist/test/state-scaling.test.d.ts.map +0 -1
- package/dist/test/state-scaling.test.js +0 -251
- package/dist/test/state-scaling.test.js.map +0 -1
- package/dist/test/stop-with-host-operations.test.d.ts +0 -20
- package/dist/test/stop-with-host-operations.test.d.ts.map +0 -1
- package/dist/test/stop-with-host-operations.test.js +0 -1174
- package/dist/test/stop-with-host-operations.test.js.map +0 -1
- package/dist/test/stop-with-work-in-flight.test.d.ts +0 -23
- package/dist/test/stop-with-work-in-flight.test.d.ts.map +0 -1
- package/dist/test/stop-with-work-in-flight.test.js +0 -784
- package/dist/test/stop-with-work-in-flight.test.js.map +0 -1
- package/dist/test/surgery-marks-receipt.test.d.ts +0 -2
- package/dist/test/surgery-marks-receipt.test.d.ts.map +0 -1
- package/dist/test/surgery-marks-receipt.test.js +0 -540
- package/dist/test/surgery-marks-receipt.test.js.map +0 -1
- package/dist/test/thinking-token-stamp.test.d.ts +0 -12
- package/dist/test/thinking-token-stamp.test.d.ts.map +0 -1
- package/dist/test/thinking-token-stamp.test.js +0 -129
- package/dist/test/thinking-token-stamp.test.js.map +0 -1
- package/dist/test/timezone.test.d.ts +0 -2
- package/dist/test/timezone.test.d.ts.map +0 -1
- package/dist/test/timezone.test.js +0 -18
- package/dist/test/timezone.test.js.map +0 -1
- package/dist/test/tool-batch-hook.test.d.ts +0 -8
- package/dist/test/tool-batch-hook.test.d.ts.map +0 -1
- package/dist/test/tool-batch-hook.test.js +0 -275
- package/dist/test/tool-batch-hook.test.js.map +0 -1
- package/dist/test/tool-policy.test.d.ts +0 -2
- package/dist/test/tool-policy.test.d.ts.map +0 -1
- package/dist/test/tool-policy.test.js +0 -51
- package/dist/test/tool-policy.test.js.map +0 -1
- package/dist/test/tool-presentation.test.d.ts +0 -2
- package/dist/test/tool-presentation.test.d.ts.map +0 -1
- package/dist/test/tool-presentation.test.js +0 -268
- package/dist/test/tool-presentation.test.js.map +0 -1
- package/dist/test/tool-result-content.test.d.ts +0 -2
- package/dist/test/tool-result-content.test.d.ts.map +0 -1
- package/dist/test/tool-result-content.test.js +0 -37
- package/dist/test/tool-result-content.test.js.map +0 -1
- package/dist/test/tool-result-guard.test.d.ts +0 -2
- package/dist/test/tool-result-guard.test.d.ts.map +0 -1
- package/dist/test/tool-result-guard.test.js +0 -3729
- package/dist/test/tool-result-guard.test.js.map +0 -1
- package/dist/test/tool-result-history.test.d.ts +0 -7
- package/dist/test/tool-result-history.test.d.ts.map +0 -1
- package/dist/test/tool-result-history.test.js +0 -156
- package/dist/test/tool-result-history.test.js.map +0 -1
- package/dist/test/tool-result-spill.test.d.ts +0 -13
- package/dist/test/tool-result-spill.test.d.ts.map +0 -1
- package/dist/test/tool-result-spill.test.js +0 -586
- package/dist/test/tool-result-spill.test.js.map +0 -1
- package/dist/test/tool-wrapper-prose-guard-integration.test.d.ts +0 -2
- package/dist/test/tool-wrapper-prose-guard-integration.test.d.ts.map +0 -1
- package/dist/test/tool-wrapper-prose-guard-integration.test.js +0 -485
- package/dist/test/tool-wrapper-prose-guard-integration.test.js.map +0 -1
- package/dist/test/tool-wrapper-prose-guard.test.d.ts +0 -2
- package/dist/test/tool-wrapper-prose-guard.test.d.ts.map +0 -1
- package/dist/test/tool-wrapper-prose-guard.test.js +0 -34
- package/dist/test/tool-wrapper-prose-guard.test.js.map +0 -1
- package/dist/test/tools-observe-parser-conformance.test.d.ts +0 -2
- package/dist/test/tools-observe-parser-conformance.test.d.ts.map +0 -1
- package/dist/test/tools-observe-parser-conformance.test.js +0 -129
- package/dist/test/tools-observe-parser-conformance.test.js.map +0 -1
- package/dist/test/trunk-channel-routing.test.d.ts +0 -19
- package/dist/test/trunk-channel-routing.test.d.ts.map +0 -1
- package/dist/test/trunk-channel-routing.test.js +0 -652
- package/dist/test/trunk-channel-routing.test.js.map +0 -1
- package/dist/test/tune-out-e2e.test.d.ts +0 -2
- package/dist/test/tune-out-e2e.test.d.ts.map +0 -1
- package/dist/test/tune-out-e2e.test.js +0 -142
- package/dist/test/tune-out-e2e.test.js.map +0 -1
- package/dist/test/tune-out-gate-composition.test.d.ts +0 -2
- package/dist/test/tune-out-gate-composition.test.d.ts.map +0 -1
- package/dist/test/tune-out-gate-composition.test.js +0 -221
- package/dist/test/tune-out-gate-composition.test.js.map +0 -1
- package/dist/test/tune-out-lifecycle.test.d.ts +0 -2
- package/dist/test/tune-out-lifecycle.test.d.ts.map +0 -1
- package/dist/test/tune-out-lifecycle.test.js +0 -121
- package/dist/test/tune-out-lifecycle.test.js.map +0 -1
- package/dist/test/turn-trigger-provenance.test.d.ts +0 -2
- package/dist/test/turn-trigger-provenance.test.d.ts.map +0 -1
- package/dist/test/turn-trigger-provenance.test.js +0 -137
- package/dist/test/turn-trigger-provenance.test.js.map +0 -1
- package/dist/test/unconvertible-tool-result.test.d.ts +0 -2
- package/dist/test/unconvertible-tool-result.test.d.ts.map +0 -1
- package/dist/test/unconvertible-tool-result.test.js +0 -358
- package/dist/test/unconvertible-tool-result.test.js.map +0 -1
- package/dist/test/unsent-compiles.test.d.ts +0 -2
- package/dist/test/unsent-compiles.test.d.ts.map +0 -1
- package/dist/test/unsent-compiles.test.js +0 -139
- package/dist/test/unsent-compiles.test.js.map +0 -1
- package/dist/test/usage-accounting.test.d.ts +0 -2
- package/dist/test/usage-accounting.test.d.ts.map +0 -1
- package/dist/test/usage-accounting.test.js +0 -13
- package/dist/test/usage-accounting.test.js.map +0 -1
- package/dist/test/usage-tracker.test.d.ts +0 -2
- package/dist/test/usage-tracker.test.d.ts.map +0 -1
- package/dist/test/usage-tracker.test.js +0 -129
- package/dist/test/usage-tracker.test.js.map +0 -1
- package/dist/test/utils-surface.test.d.ts +0 -2
- package/dist/test/utils-surface.test.d.ts.map +0 -1
- package/dist/test/utils-surface.test.js +0 -145
- package/dist/test/utils-surface.test.js.map +0 -1
- package/dist/test/workspace-branch-continuation.test.d.ts +0 -15
- package/dist/test/workspace-branch-continuation.test.d.ts.map +0 -1
- package/dist/test/workspace-branch-continuation.test.js +0 -183
- package/dist/test/workspace-branch-continuation.test.js.map +0 -1
- package/dist/test/workspace-materialize-freshness.test.d.ts +0 -16
- package/dist/test/workspace-materialize-freshness.test.d.ts.map +0 -1
- package/dist/test/workspace-materialize-freshness.test.js +0 -252
- package/dist/test/workspace-materialize-freshness.test.js.map +0 -1
- package/dist/test/workspace-path-containment.test.d.ts +0 -19
- package/dist/test/workspace-path-containment.test.d.ts.map +0 -1
- package/dist/test/workspace-path-containment.test.js +0 -91
- package/dist/test/workspace-path-containment.test.js.map +0 -1
- package/dist/test/workspace-read-file-from-disk.test.d.ts +0 -17
- package/dist/test/workspace-read-file-from-disk.test.d.ts.map +0 -1
- package/dist/test/workspace-read-file-from-disk.test.js +0 -174
- package/dist/test/workspace-read-file-from-disk.test.js.map +0 -1
- package/dist/test/workspace-read-image.test.d.ts +0 -2
- package/dist/test/workspace-read-image.test.d.ts.map +0 -1
- package/dist/test/workspace-read-image.test.js +0 -597
- package/dist/test/workspace-read-image.test.js.map +0 -1
- package/dist/test/workspace-read-text.test.d.ts +0 -2
- package/dist/test/workspace-read-text.test.d.ts.map +0 -1
- package/dist/test/workspace-read-text.test.js +0 -101
- package/dist/test/workspace-read-text.test.js.map +0 -1
- package/dist/test/workspace-restore-order.test.d.ts +0 -16
- package/dist/test/workspace-restore-order.test.d.ts.map +0 -1
- package/dist/test/workspace-restore-order.test.js +0 -140
- package/dist/test/workspace-restore-order.test.js.map +0 -1
- package/dist/test/workspace-three-way.test.d.ts +0 -12
- package/dist/test/workspace-three-way.test.d.ts.map +0 -1
- package/dist/test/workspace-three-way.test.js +0 -4094
- package/dist/test/workspace-three-way.test.js.map +0 -1
- package/dist/test/workspace-watcher.test.d.ts +0 -2
- package/dist/test/workspace-watcher.test.d.ts.map +0 -1
- package/dist/test/workspace-watcher.test.js +0 -281
- package/dist/test/workspace-watcher.test.js.map +0 -1
- package/dist/test/xml-round-persist.test.d.ts +0 -19
- package/dist/test/xml-round-persist.test.d.ts.map +0 -1
- package/dist/test/xml-round-persist.test.js +0 -235
- package/dist/test/xml-round-persist.test.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -12,15 +12,29 @@ export type { WorkspaceConfig, MountConfig, MountState, WorkspaceModuleState, Re
|
|
|
12
12
|
/**
|
|
13
13
|
* Why a workspace-owned filesystem read was refused. Distinguishes the cases a
|
|
14
14
|
* peer needs to react to differently: a path that never resolved inside the
|
|
15
|
-
* mount (`unknown_mount`, `traversal`), a mount whose root is gone
|
|
16
|
-
*
|
|
17
|
-
* (`
|
|
18
|
-
*
|
|
19
|
-
*
|
|
15
|
+
* mount (`unknown_mount`, `traversal`), a mount whose root is gone, isn't a
|
|
16
|
+
* directory, or isn't the directory the workspace was using
|
|
17
|
+
* (`mount_unavailable`: with errno ENOENT or ENOTDIR when no directory is
|
|
18
|
+
* there at all, with none for another directory), an ordinary missing file
|
|
19
|
+
* or one that isn't a regular file, such as a FIFO (`not_found`), a directory
|
|
20
|
+
* (`directory`), a file that is itself a symlink, refused by the mount's
|
|
21
|
+
* `followSymlinks` policy (`symlink`), a symlink among the path's directories
|
|
22
|
+
* on a mount that doesn't follow symlinks, leading to a directory or a file
|
|
23
|
+
* inside the mount, or nowhere (`parent_symlink`), whose message names the
|
|
24
|
+
* link and, where it leads somewhere, its target, a symlink whose canonical
|
|
25
|
+
* target lands outside the canonical mount root, or one among the path's
|
|
26
|
+
* directories leading out of it (`escape`), a file swapped underneath the read
|
|
27
|
+
* (`changed`), and a path in another mount's directory nested in the one
|
|
28
|
+
* named, or reached through a symlink among the path's directories leading
|
|
29
|
+
* there (`other_mount`), whose message names the mount that holds it and the
|
|
30
|
+
* path to use there. A `mount_unavailable` for a root whose realpath or stat
|
|
31
|
+
* fails otherwise carries that errno, such as EACCES.
|
|
20
32
|
*/
|
|
21
|
-
export type WorkspaceReadErrorCode = 'unknown_mount' | 'traversal' | 'mount_unavailable' | 'not_found' | 'directory' | 'symlink' | 'escape' | 'changed';
|
|
33
|
+
export type WorkspaceReadErrorCode = 'unknown_mount' | 'traversal' | 'other_mount' | 'mount_unavailable' | 'not_found' | 'directory' | 'symlink' | 'parent_symlink' | 'escape' | 'changed';
|
|
22
34
|
/** Where in the open sequence a `WorkspaceReadError` originated (diagnostics). */
|
|
23
|
-
export type WorkspaceReadStage = 'parse'
|
|
35
|
+
export type WorkspaceReadStage = 'parse'
|
|
36
|
+
/** The mount root's check: a directory, the one the workspace was using. */
|
|
37
|
+
| 'root' | 'readlink' | 'lstat' | 'realpath_root' | 'open' | 'fstat' | 'post_lstat' | 'realpath' | 'stat' | 'read';
|
|
24
38
|
/**
|
|
25
39
|
* Thrown by `WorkspaceModule.readFileFromDisk()`. Messages carry the
|
|
26
40
|
* mount-prefixed path only — never absolute filesystem paths — so they can be
|
|
@@ -37,13 +51,23 @@ export declare class WorkspaceReadError extends Error {
|
|
|
37
51
|
}
|
|
38
52
|
/** Successful `readFileFromDisk()` result. */
|
|
39
53
|
export interface WorkspaceDiskReadResult {
|
|
40
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* File bytes: the whole file, or its first `maxBytes` when `truncated`.
|
|
56
|
+
* Without `maxBytes` the file is read with `readFile`, with no limit. In
|
|
57
|
+
* Node, that reads up to the size its own fstat finds, or to the file's end
|
|
58
|
+
* if that size is 0.
|
|
59
|
+
*/
|
|
41
60
|
bytes: Buffer;
|
|
42
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* The file's size, agreeing with `bytes` and `truncated`: `bytes.length`,
|
|
63
|
+
* unless `truncated`. Then it's the file's size by an fstat after the read,
|
|
64
|
+
* or `maxBytes + 1` if that's less, since the read found at least that many
|
|
65
|
+
* bytes.
|
|
66
|
+
*/
|
|
43
67
|
size: number;
|
|
44
|
-
/** True when `maxBytes` was set and the file
|
|
68
|
+
/** True when `maxBytes` was set and the read found the file going on past it; `bytes` is a prefix. */
|
|
45
69
|
truncated: boolean;
|
|
46
|
-
/** mtime of the file actually read (for change-detection caches). */
|
|
70
|
+
/** mtime of the file actually read, from its fstat at the open (for change-detection caches). */
|
|
47
71
|
mtimeMs: number;
|
|
48
72
|
/** Canonical (realpath) location of the file read — inside the canonical mount root by construction. */
|
|
49
73
|
realPath: string;
|
|
@@ -51,7 +75,12 @@ export interface WorkspaceDiskReadResult {
|
|
|
51
75
|
mount: string;
|
|
52
76
|
}
|
|
53
77
|
export interface ReadFileFromDiskOptions {
|
|
54
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* Keep at most this many bytes (a bounded prefix read): the read loads them
|
|
80
|
+
* and one byte past them, which isn't kept and tells whether the file goes
|
|
81
|
+
* on, and never the rest of the file. It bounds the read itself, so it
|
|
82
|
+
* holds for a file that grows while it's read.
|
|
83
|
+
*/
|
|
55
84
|
maxBytes?: number;
|
|
56
85
|
}
|
|
57
86
|
export declare class WorkspaceModule implements Module {
|
|
@@ -60,6 +89,8 @@ export declare class WorkspaceModule implements Module {
|
|
|
60
89
|
private store;
|
|
61
90
|
/** Set once stop has drained and saved, cleared by start (running()). */
|
|
62
91
|
private stopped;
|
|
92
|
+
/** Stops begun, so a start that read disk meanwhile can tell that one came. */
|
|
93
|
+
private stopsBegun;
|
|
63
94
|
private config;
|
|
64
95
|
private mounts;
|
|
65
96
|
private watchers;
|
|
@@ -74,6 +105,26 @@ export declare class WorkspaceModule implements Module {
|
|
|
74
105
|
/** Whether a mount root's filesystem maintains ctime, by canonical root. */
|
|
75
106
|
/** Per canonical root: the device of its filesystem when that maintains ctime, else null. */
|
|
76
107
|
private ctimeTrust;
|
|
108
|
+
/**
|
|
109
|
+
* Each mount's directories that are other mounts nested inside it, with
|
|
110
|
+
* each mount's name and real root, in each spelling that names the
|
|
111
|
+
* directory: as configured; as the real roots place it, where that differs
|
|
112
|
+
* (`fromRoots`); and as disk spells each of those where that differs.
|
|
113
|
+
* Each spelling is mount-relative and `/`-separated, with its root beneath
|
|
114
|
+
* the mount's resolved root. The constructor nests by configured path,
|
|
115
|
+
* with each root as resolved standing for its real one, and each start
|
|
116
|
+
* reads it all again with the roots placed where disk has them
|
|
117
|
+
* (readNesting).
|
|
118
|
+
*/
|
|
119
|
+
private otherMounts;
|
|
120
|
+
/** Whether each mount's root folds case (foldsCase), where disk has it, as the last start read it. */
|
|
121
|
+
private rootFoldsCase;
|
|
122
|
+
/**
|
|
123
|
+
* Whether a file's mode is observed, taken in and applied (MountRuntime's
|
|
124
|
+
* `modesObserved`): not on Windows, which reports no POSIX modes. A test
|
|
125
|
+
* sets it false to run that case anywhere.
|
|
126
|
+
*/
|
|
127
|
+
private modesObserved;
|
|
77
128
|
/** Persisted state decoded in start(), held until mounts exist to apply it
|
|
78
129
|
* to — in the Host ordering start() runs before initStore() creates the
|
|
79
130
|
* mounts, so restoration must be second-callback-safe like watcher
|
|
@@ -99,8 +150,28 @@ export declare class WorkspaceModule implements Module {
|
|
|
99
150
|
*/
|
|
100
151
|
private withMount;
|
|
101
152
|
private agreementOrThrow;
|
|
153
|
+
/**
|
|
154
|
+
* A mount as observation reads it, with the root identity the workspace
|
|
155
|
+
* recorded for it, if any: what a pass reads beneath (runtime), with
|
|
156
|
+
* rootIdentity's, and what a disk read checks its root against (readRoot),
|
|
157
|
+
* with rootIdentityForRead's.
|
|
158
|
+
*/
|
|
159
|
+
private viewOf;
|
|
102
160
|
/** The view reconciliation needs of a mount, refreshed per pass. */
|
|
103
161
|
private runtime;
|
|
162
|
+
/**
|
|
163
|
+
* Where a search's walk starts: `base`, its path as parsePath spells it,
|
|
164
|
+
* then each segment of `beneath` while disk lists it, in the directory
|
|
165
|
+
* reached so far, as a directory with exactly that spelling. The walk names
|
|
166
|
+
* what it finds from its start's spelling, and a case-insensitive disk
|
|
167
|
+
* would let it go on under a spelling disk doesn't list, taking files in
|
|
168
|
+
* under that spelling beside their own. So the start stops before a segment
|
|
169
|
+
* spelled any other way, not there, or not a directory, and before a link,
|
|
170
|
+
* which a walk of the whole mount doesn't go through either. It lists only
|
|
171
|
+
* directories it has checked lie inside the mount, and none the mount
|
|
172
|
+
* passes over by design, which the walk then answers for.
|
|
173
|
+
*/
|
|
174
|
+
private walkStart;
|
|
104
175
|
/** One disk→store pass; the caller holds the mount's turn. Emits its events. */
|
|
105
176
|
private passUnlocked;
|
|
106
177
|
/** One store→disk push; the caller holds the mount's turn. */
|
|
@@ -165,6 +236,15 @@ export declare class WorkspaceModule implements Module {
|
|
|
165
236
|
/** Generated files bypass stored blobs so every read reflects current definitions. */
|
|
166
237
|
registerGeneratedTextFile(path: string, read: () => string, agentName: string): void;
|
|
167
238
|
handleToolCall(call: ToolCall): Promise<ToolResult>;
|
|
239
|
+
/**
|
|
240
|
+
* Tool calls, and the public reads and writes that take a mount's turn,
|
|
241
|
+
* under way. Each can await disk (parsePath) before it takes its turn, so
|
|
242
|
+
* stop waits for these as well as for the turns.
|
|
243
|
+
*/
|
|
244
|
+
private callsUnderWay;
|
|
245
|
+
/** `work`, recorded as under way until it settles (callsUnderWay). */
|
|
246
|
+
private underWay;
|
|
247
|
+
private runToolCall;
|
|
168
248
|
onProcess(event: ProcessEvent, _state: ProcessState): Promise<EventResponse>;
|
|
169
249
|
/**
|
|
170
250
|
* Resolve a mount-prefixed path (e.g. "tickets/2026-04-22-foo.md") to its
|
|
@@ -206,6 +286,7 @@ export declare class WorkspaceModule implements Module {
|
|
|
206
286
|
writeBinary(mountPrefixedPath: string, data: Buffer, mimeType: string, options?: {
|
|
207
287
|
branch?: string;
|
|
208
288
|
}): Promise<ToolResult>;
|
|
289
|
+
private writeBinaryUnderWay;
|
|
209
290
|
/**
|
|
210
291
|
* Read a file's raw bytes from a mount (through the Chronicle tree, synced
|
|
211
292
|
* first like the `read` tool). Public API for the framework's synthesized
|
|
@@ -216,6 +297,7 @@ export declare class WorkspaceModule implements Module {
|
|
|
216
297
|
} | {
|
|
217
298
|
error: string;
|
|
218
299
|
}>;
|
|
300
|
+
private readBinaryUnderWay;
|
|
219
301
|
/**
|
|
220
302
|
* Read a file's raw bytes straight from the mount's filesystem, bypassing
|
|
221
303
|
* the Chronicle tree.
|
|
@@ -228,8 +310,16 @@ export declare class WorkspaceModule implements Module {
|
|
|
228
310
|
* permanent cost to send something once is the wrong trade.
|
|
229
311
|
*
|
|
230
312
|
* Same mount boundary and traversal guard as every other path here: only
|
|
231
|
-
* declared mounts, nothing above their root
|
|
232
|
-
*
|
|
313
|
+
* declared mounts, nothing above their root, and the file reached as
|
|
314
|
+
* readFileFromDisk reaches it (openContainedFile), so the mount's
|
|
315
|
+
* `followSymlinks` holds for the file and the directories on its way, and
|
|
316
|
+
* what it reaches stays canonically inside the mount. Deliberately does NOT
|
|
317
|
+
* sync, register, or hash anything — it reads and returns.
|
|
318
|
+
*
|
|
319
|
+
* `maxBytes` refuses a larger file as "File too large", having loaded at
|
|
320
|
+
* most `maxBytes` bytes and one more: the reads decide where the file ends,
|
|
321
|
+
* not the size fstat gave at the open, so the bound holds for a file that
|
|
322
|
+
* grows while it's read.
|
|
233
323
|
*/
|
|
234
324
|
readBinaryFromDisk(mountPrefixedPath: string, opts?: {
|
|
235
325
|
maxBytes?: number;
|
|
@@ -239,10 +329,98 @@ export declare class WorkspaceModule implements Module {
|
|
|
239
329
|
} | {
|
|
240
330
|
error: string;
|
|
241
331
|
}>;
|
|
332
|
+
/** The directories of the mounts nested inside a mount, mount-relative, in each spelling. */
|
|
333
|
+
private othersOf;
|
|
242
334
|
/**
|
|
243
|
-
*
|
|
335
|
+
* Which mounts are nested in which, read afresh at each start. A mount is
|
|
336
|
+
* nested in another where its configured path lies beneath the other's
|
|
337
|
+
* root, as configured or as it lies on disk, whatever links the path
|
|
338
|
+
* reaches that root through, or where its real root lies beneath the
|
|
339
|
+
* other's. Each root, and each directory above a configured path, is
|
|
340
|
+
* placed by realBeneath, awaited, so a root on a share that stops
|
|
341
|
+
* answering holds this start and not the process, and a root moved while
|
|
342
|
+
* the module was stopped is placed where it is now. A mount whose real
|
|
343
|
+
* root is the other's own, or holds it, is nested by its configured path
|
|
344
|
+
* alone, with no real root, since through it it would claim the other's
|
|
345
|
+
* every path.
|
|
346
|
+
*
|
|
347
|
+
* Each way it lies there is a spelling of its directory (`fromRoots`), and
|
|
348
|
+
* so is the spelling disk lists each of those by, where that differs. On a
|
|
349
|
+
* disk that folds names, the outer mount's walks name the directory as
|
|
350
|
+
* disk does, and so does a path parsePath has respelled, while a path given
|
|
351
|
+
* as configured still names it as configured (resolveAbsolutePath). A
|
|
352
|
+
* directory not on disk keeps the spellings the roots give alone. Each
|
|
353
|
+
* mount's real root comes back beside the nesting (`reals`), for what
|
|
354
|
+
* start reads there.
|
|
355
|
+
*/
|
|
356
|
+
private readNesting;
|
|
357
|
+
/** The mounts nested in `mountName`, by directory, name and real root where it has one (MountView's `nested`), in each spelling known. */
|
|
358
|
+
private nestedOf;
|
|
359
|
+
/**
|
|
360
|
+
* The innermost mount nested in `mountName` whose directory holds a path
|
|
361
|
+
* of that mount, judged lexically where the path lands (`.`, `..` and
|
|
362
|
+
* repeated separators resolved, as for the traversal guard; a link of the
|
|
363
|
+
* outer mount isn't followed), with the path to use there; undefined when
|
|
364
|
+
* no nested mount's directory holds it.
|
|
365
|
+
*/
|
|
366
|
+
private holderOf;
|
|
367
|
+
/**
|
|
368
|
+
* Why a mount leaves a path in a nested mount's directory, naming that
|
|
369
|
+
* mount and the path to use: for a sync or a push, which of them leaves
|
|
370
|
+
* it; for a listing, whose the path is.
|
|
371
|
+
*/
|
|
372
|
+
private otherMountNote;
|
|
373
|
+
/**
|
|
374
|
+
* parsePath for the file operations (read, write, edit, delete, and the
|
|
375
|
+
* module's binary and disk reads and writes). A path in another mount's
|
|
376
|
+
* directory nested in this one is that mount's: this mount's passes don't
|
|
377
|
+
* observe it and its pushes don't write it, so its file operations refuse
|
|
378
|
+
* it, naming the innermost mount that holds it and the path to use there.
|
|
379
|
+
*/
|
|
380
|
+
private parseFilePath;
|
|
381
|
+
/**
|
|
382
|
+
* The refusal for a path of `mount` that reaches a nested mount's directory
|
|
383
|
+
* through a symlink on its way (nestedAtReal), or null where it doesn't. On
|
|
384
|
+
* a mount that doesn't follow the link, the refusal is the link's own
|
|
385
|
+
* (linkWords), as the readers and pushes give it. A mount with nothing
|
|
386
|
+
* nested has nothing to find, so it pays nothing.
|
|
387
|
+
*/
|
|
388
|
+
private leadsIntoNested;
|
|
389
|
+
/** A parsed path, refused if it lies in a nested mount's directory (parseFilePath). */
|
|
390
|
+
private refuseNested;
|
|
391
|
+
/**
|
|
392
|
+
* Parse a mount-prefixed path into its mount and mount-relative path, as
|
|
393
|
+
* disk spells it (diskSpelling), with `path` the mount-prefixed path so
|
|
394
|
+
* spelled. On a disk that folds names, a path spelled otherwise reaches
|
|
395
|
+
* disk's file, so every tool takes it by disk's name: one name per file,
|
|
396
|
+
* and the names its answers give are disk's, except that a path that names
|
|
397
|
+
* a workspace entry exactly, or does once its directories take disk's
|
|
398
|
+
* spelling, keeps the entry's spelling. A path the workspace records an
|
|
399
|
+
* intent at, such as a deletion disk hasn't been given yet, counts as an
|
|
400
|
+
* entry here, so the calls that settle it reach it. The workspace's
|
|
401
|
+
* entries (entriesOf) stand in for disk where it has nothing yet, so a
|
|
402
|
+
* draft has one name too. Neither applies to a path that disk's spelling
|
|
403
|
+
* puts in a nested mount's directory.
|
|
404
|
+
* A handler that must read something at the moment it's asked, as
|
|
405
|
+
* handleSync reads the branch a path sync adopts on, reads it before
|
|
406
|
+
* calling this, since this awaits disk. The entries are read when the
|
|
407
|
+
* step needs them, some after those awaits, from the branch current then.
|
|
244
408
|
*/
|
|
245
409
|
private parsePath;
|
|
410
|
+
/**
|
|
411
|
+
* A mount's entries on the current branch, and the paths it records an
|
|
412
|
+
* intent at there, as diskSpelling reads them when it does, whether its
|
|
413
|
+
* root folds case as the last start read it (false before the first), and
|
|
414
|
+
* which nested mount's directory holds a path, by holderOf, as the
|
|
415
|
+
* nested-mount checks read it. diskSpelling keeps disk's spelling of a
|
|
416
|
+
* path that lies in a nested mount's directory as disk spells it, so the
|
|
417
|
+
* checks refuse at least what they would refuse without the entries.
|
|
418
|
+
*/
|
|
419
|
+
private entriesOf;
|
|
420
|
+
/**
|
|
421
|
+
* Parse a mount-prefixed path into (mountName, relativePath), as spelled.
|
|
422
|
+
*/
|
|
423
|
+
private parsePathAsGiven;
|
|
246
424
|
/**
|
|
247
425
|
* Whether the module takes work: stop hasn't finished. Work admitted while
|
|
248
426
|
* stop drains still runs; once stop has saved the pins and watermarks,
|
|
@@ -255,26 +433,72 @@ export declare class WorkspaceModule implements Module {
|
|
|
255
433
|
private getStore;
|
|
256
434
|
private validateImageBytes;
|
|
257
435
|
private tryReadImageFromTree;
|
|
436
|
+
/**
|
|
437
|
+
* The mount root a disk read reads beneath: resolved, then checked as
|
|
438
|
+
* observation checks it (checkRoot), so the read and the evidence agree on
|
|
439
|
+
* which directory the mount is. Once the workspace has recorded the root's
|
|
440
|
+
* identity, a root that resolves to any other directory is refused, in
|
|
441
|
+
* ROOT_REPLACED's words; with none recorded yet, it need only be a
|
|
442
|
+
* directory there. A refusal where no directory is at the root's path
|
|
443
|
+
* carries the errno that gives (rootAbsence: ENOENT when nothing is there
|
|
444
|
+
* and ENOTDIR when something else is, which a caller can read as no file,
|
|
445
|
+
* or the errno the root's stat failed with otherwise, such as EACCES). A
|
|
446
|
+
* root whose realpath fails carries realpath's errno, and one that is
|
|
447
|
+
* another directory carries none. The identity is rootIdentityForRead's,
|
|
448
|
+
* which answers while the evidence awaits reopening; where even it can't
|
|
449
|
+
* be read, as when the evidence was never read back whole, the read is
|
|
450
|
+
* refused too, with an errno only where no directory is at the root's path.
|
|
451
|
+
*/
|
|
452
|
+
private readRoot;
|
|
453
|
+
/**
|
|
454
|
+
* The refusal for a root that stopped being the directory a read checked,
|
|
455
|
+
* with the code and errno readRoot gives what is at its path now (its stage
|
|
456
|
+
* and words are this check's): gone, or not a directory, with ENOENT or
|
|
457
|
+
* ENOTDIR, so a caller reads a root gone mid-read as one gone before it; or
|
|
458
|
+
* another directory, with none.
|
|
459
|
+
*/
|
|
460
|
+
private rootMoved;
|
|
258
461
|
/**
|
|
259
462
|
* Open a mount-relative file for reading with the mount boundary enforced on
|
|
260
463
|
* the *filesystem*, not just the path string:
|
|
261
464
|
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
465
|
+
* 0. Check the root (readRoot) before anything beneath it: under a root
|
|
466
|
+
* that isn't the mount's directory, no path says anything about the
|
|
467
|
+
* mount's files, an absence included.
|
|
468
|
+
* 1. On a mount that does not `followSymlinks`, refuse a path with a symlink
|
|
469
|
+
* among the directories on its way beneath the mount's root, wherever it
|
|
470
|
+
* leads (linkOnTheWay), before anything resolves it: as `escape` for a
|
|
471
|
+
* link leading outside the mount, as `other_mount` for one into a nested
|
|
472
|
+
* mount's directory, and as `parent_symlink` for any other.
|
|
473
|
+
* 2. `lstat` the lexical path — refuse directories; refuse a final-component
|
|
474
|
+
* symlink when the mount does not `followSymlinks`; refuse anything else
|
|
475
|
+
* that isn't a regular file, such as a FIFO, without opening it.
|
|
476
|
+
* 3. Open with `O_NOFOLLOW` where the platform has it (POSIX) so the refusal
|
|
265
477
|
* holds against a symlink swapped in between lstat and open; where it
|
|
266
|
-
* doesn't (Windows), re-`lstat` after opening instead.
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
478
|
+
* doesn't (Windows), re-`lstat` after opening instead. `O_NONBLOCK`, so a
|
|
479
|
+
* FIFO swapped in meanwhile doesn't wait for a writer.
|
|
480
|
+
* 4. `realpath` the opened path. On a mount that does not `followSymlinks`,
|
|
481
|
+
* refuse it again for a symlinked directory on its way, which catches one
|
|
482
|
+
* swapped in since step 1 (linkRefusal). Then require canonical
|
|
483
|
+
* containment in the root step 0 resolved — this is what catches an
|
|
484
|
+
* *intermediate* symlinked directory escaping the mount, and a followed
|
|
485
|
+
* symlink whose target lands outside, on every platform (junctions
|
|
486
|
+
* included).
|
|
487
|
+
* 5. Confirm the descriptor and the canonical path are the same inode, and
|
|
488
|
+
* the root still the directory step 0 checked.
|
|
272
489
|
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
490
|
+
* Whatever steps 1 to 5 refuse, a missing file included, is said of the
|
|
491
|
+
* mount's files only while the root is still that directory. If it isn't,
|
|
492
|
+
* the read is refused with the code and errno step 0 gives what is at the
|
|
493
|
+
* root's path then (rootMoved), as step 5's own check of the root does.
|
|
494
|
+
*
|
|
495
|
+
* `inspect` runs last, after the boundary's checks, so a caller's own check
|
|
496
|
+
* of the file, such as a size limit, never answers for a file the boundary
|
|
497
|
+
* refuses. The returned handle is the caller's to close.
|
|
276
498
|
*/
|
|
277
499
|
private openContainedFile;
|
|
500
|
+
/** Steps 1 to 5 of openContainedFile, beneath the root that step 0 checked. */
|
|
501
|
+
private openBeneathRoot;
|
|
278
502
|
/**
|
|
279
503
|
* Read a workspace file from disk with the mount boundary enforced on the
|
|
280
504
|
* filesystem (see {@link openContainedFile}). Public API for peer modules
|
|
@@ -287,29 +511,55 @@ export declare class WorkspaceModule implements Module {
|
|
|
287
511
|
* - With symlinks allowed, the canonical target must stay beneath the
|
|
288
512
|
* canonical mount root; a sibling-prefix root (`/mount-other`) does not count.
|
|
289
513
|
* - `maxBytes` performs a bounded prefix read: at most `maxBytes` bytes are
|
|
290
|
-
*
|
|
514
|
+
* kept, and one byte past them is read to tell whether the file goes on
|
|
515
|
+
* (`truncated`). The reads decide where the file ends, not the size fstat
|
|
516
|
+
* gave at the open, so the bound holds for a file that grows while it's
|
|
517
|
+
* read.
|
|
518
|
+
* - Once the workspace has recorded the mount root's identity, with the
|
|
519
|
+
* first evidence it gathers there, a root that is another directory is
|
|
520
|
+
* an unavailable mount: a replaced directory, a link swapped in for it,
|
|
521
|
+
* or an unmounted drive's mountpoint. In any mount, recorded or not, a
|
|
522
|
+
* root that stops being the directory the read checked until the file
|
|
523
|
+
* has been opened and checked is unavailable too: with ENOENT or
|
|
524
|
+
* ENOTDIR where no directory is there, as before the read, and with no
|
|
525
|
+
* errno for another directory. The file's bytes are then read through
|
|
526
|
+
* the descriptor that was checked.
|
|
291
527
|
*
|
|
292
528
|
* Throws {@link WorkspaceReadError} with a `code` distinguishing unknown
|
|
293
|
-
* mount, lexical traversal,
|
|
294
|
-
*
|
|
529
|
+
* mount, lexical traversal, a path in another mount's directory nested in
|
|
530
|
+
* the one named (`other_mount`), unavailable mount, missing or non-regular
|
|
531
|
+
* file, directory, policy-denied symlink, outside-mount target, and
|
|
532
|
+
* file-changed-during-read.
|
|
295
533
|
*/
|
|
296
534
|
readFileFromDisk(mountPrefixedPath: string, options?: ReadFileFromDiskOptions): Promise<WorkspaceDiskReadResult>;
|
|
297
535
|
/** Map a core read refusal onto the image reader's historical error vocabulary and wording. */
|
|
298
536
|
private imageErrorFromRead;
|
|
299
537
|
private readImageFromFilesystem;
|
|
538
|
+
/**
|
|
539
|
+
* Whether a tool's change on this mount goes to disk as it commits: the
|
|
540
|
+
* push commitToolChange makes, and what an edit's answer says of it.
|
|
541
|
+
*/
|
|
542
|
+
private pushesOnCommit;
|
|
300
543
|
/**
|
|
301
544
|
* Commit a tool's write or delete to the workspace tree, with the branch
|
|
302
|
-
* intent it implies
|
|
303
|
-
*
|
|
545
|
+
* intent it implies: store origin for a path disk never agreed with; for a
|
|
546
|
+
* deletion, a tombstone, unless the evidence holds no agreed disk copy (P
|
|
547
|
+
* absent, or no P and store origin), when it clears the path's intent and
|
|
548
|
+
* pushes nothing. It pushes the change to disk when the mount opts in via
|
|
304
549
|
* `autoMaterialize` — required for cross-agent pipelines, since another
|
|
305
550
|
* agent's watcher on the same directory only sees real filesystem events.
|
|
306
551
|
* The push follows materialize's rule: a disk copy that changed since it
|
|
307
552
|
* last agreed is not overwritten or unlinked, and the refusal says why.
|
|
308
553
|
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
* that disk is the source of truth for
|
|
312
|
-
*
|
|
554
|
+
* Answers, so callers surface them in the tool result, the reason when the
|
|
555
|
+
* change reached the workspace but not disk (`refused`): the
|
|
556
|
+
* autoMaterialize contract is that disk is the source of truth for
|
|
557
|
+
* downstream agents. And, apart from it, why a write whose bytes reached
|
|
558
|
+
* disk left the file's mode as disk had it (`modeKept`), and, for a
|
|
559
|
+
* deletion that cleared a conflict naming a disk file the workspace never
|
|
560
|
+
* took in, that nothing was unlinked (`note`). The caller holds the mount's
|
|
561
|
+
* turn and has settled the path first (settleBeforeMutation, or a pass over
|
|
562
|
+
* the path, as an edit makes).
|
|
313
563
|
*/
|
|
314
564
|
private commitToolChange;
|
|
315
565
|
/**
|
|
@@ -318,15 +568,20 @@ export declare class WorkspaceModule implements Module {
|
|
|
318
568
|
* disk now holds (an edit sees a disk change the settled adoption took in).
|
|
319
569
|
* The pass may not settle it (a branch that keeps changing, an unreadable
|
|
320
570
|
* disk copy); the precondition that matters is enforced again,
|
|
321
|
-
* synchronously, where the change commits (commitToolChange). The
|
|
322
|
-
*
|
|
571
|
+
* synchronously, where the change commits (commitToolChange). The pass
|
|
572
|
+
* names the path, as a file tool names the one it acts on, so a path the
|
|
573
|
+
* mount passes over by design is observed there, as a sync naming it would
|
|
574
|
+
* observe it (#276). The caller holds the mount's turn.
|
|
323
575
|
*/
|
|
324
576
|
private settleBeforeMutation;
|
|
325
577
|
/**
|
|
326
578
|
* Before a read: a path the workspace doesn't hold is observed under the
|
|
327
579
|
* three-way rule, which ingests a new disk file but never brings back a
|
|
328
|
-
* workspace deletion or a file absent from this branch. The
|
|
329
|
-
* the mount
|
|
580
|
+
* workspace deletion or a file absent from this branch. The pass names the
|
|
581
|
+
* path, as a file tool names the one it acts on: a path the mount passes
|
|
582
|
+
* over by design is observed, as a sync naming it would observe it (#276),
|
|
583
|
+
* while a path in another mount's directory is refused before this, and
|
|
584
|
+
* passed over by any pass. The caller holds the mount's turn.
|
|
330
585
|
*/
|
|
331
586
|
private ensureSynced;
|
|
332
587
|
/** Why the workspace holds no entry at a path, when disk explains it. */
|
|
@@ -352,10 +607,21 @@ export declare class WorkspaceModule implements Module {
|
|
|
352
607
|
* does). `inPlace` says whether any tree entry was left out for that reason.
|
|
353
608
|
*/
|
|
354
609
|
private materializeSelection;
|
|
610
|
+
/**
|
|
611
|
+
* Whether a path of the mount is its own to push and to count as owed:
|
|
612
|
+
* not in another mount's directory nested in it. Copies the mount's tree
|
|
613
|
+
* holds there (stored before the nesting) stay in its history and its
|
|
614
|
+
* listings (and in status's fileCount, which counts the tree), passed over
|
|
615
|
+
* by its syncs, and left out of what it pushes and of status's pending
|
|
616
|
+
* changes, conflicts and workspace deletions.
|
|
617
|
+
*/
|
|
618
|
+
private ownPaths;
|
|
355
619
|
/**
|
|
356
620
|
* The workspace entries by what the evidence says of disk. `owed`: P
|
|
357
|
-
* differs from the entry (a draft, or a push still pending),
|
|
358
|
-
*
|
|
621
|
+
* differs from the entry (a draft, or a push still pending), the entry
|
|
622
|
+
* records a mode other than the one P agreed (a mode owed to disk), or
|
|
623
|
+
* there is no P and the entry came from the workspace (a draft disk never
|
|
624
|
+
* had).
|
|
359
625
|
* `unchecked`: no P and no workspace origin, an entry from before the
|
|
360
626
|
* evidence; a push agrees it, writes it where disk lacks it, or refuses it
|
|
361
627
|
* as a conflict. `agreed`: how many have P = S, so disk holds them. Status
|
|
@@ -421,9 +687,11 @@ export declare class WorkspaceModule implements Module {
|
|
|
421
687
|
/** The scan deadline, kept below the framework's hook bound (warned once). */
|
|
422
688
|
private agentActionScanDeadlineMs;
|
|
423
689
|
/**
|
|
424
|
-
* Push one ProcessEvent per op for a pass's tree changes and new conflicts
|
|
425
|
-
*
|
|
426
|
-
*
|
|
690
|
+
* Push one ProcessEvent per op for a pass's tree changes and new conflicts,
|
|
691
|
+
* apart from an op that changes only a file's mode, which brings nothing
|
|
692
|
+
* new to read and makes none. A conflict rides the event for the disk
|
|
693
|
+
* change behind it (modified, or deleted for a disk deletion of a file with
|
|
694
|
+
* newer workspace changes).
|
|
427
695
|
*/
|
|
428
696
|
private emitFsEvents;
|
|
429
697
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/workspace/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/workspace/index.ts"],"names":[],"mappings":"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"}
|