@animalabs/agent-framework 0.23.2 → 0.24.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 +212 -42
- package/dist/src/agent.d.ts +60 -9
- package/dist/src/agent.d.ts.map +1 -1
- package/dist/src/agent.js +92 -12
- package/dist/src/agent.js.map +1 -1
- package/dist/src/api/server.d.ts.map +1 -1
- package/dist/src/api/server.js +14 -12
- package/dist/src/api/server.js.map +1 -1
- package/dist/src/code-execution/engine.d.ts +177 -0
- package/dist/src/code-execution/engine.d.ts.map +1 -0
- package/dist/src/code-execution/engine.js +494 -0
- package/dist/src/code-execution/engine.js.map +1 -0
- package/dist/src/code-execution/index.d.ts +5 -10
- package/dist/src/code-execution/index.d.ts.map +1 -1
- package/dist/src/code-execution/index.js +5 -9
- package/dist/src/code-execution/index.js.map +1 -1
- package/dist/src/code-execution/isolate/calls.d.ts +114 -0
- package/dist/src/code-execution/isolate/calls.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/calls.js +145 -0
- package/dist/src/code-execution/isolate/calls.js.map +1 -0
- package/dist/src/code-execution/isolate/child-entry.d.ts +2 -0
- package/dist/src/code-execution/isolate/child-entry.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/child-entry.js +5 -0
- package/dist/src/code-execution/isolate/child-entry.js.map +1 -0
- package/dist/src/code-execution/isolate/child-main.d.ts +26 -0
- package/dist/src/code-execution/isolate/child-main.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/child-main.js +132 -0
- package/dist/src/code-execution/isolate/child-main.js.map +1 -0
- package/dist/src/code-execution/isolate/child.d.ts +44 -0
- package/dist/src/code-execution/isolate/child.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/child.js +315 -0
- package/dist/src/code-execution/isolate/child.js.map +1 -0
- package/dist/src/code-execution/isolate/frames.d.ts +80 -0
- package/dist/src/code-execution/isolate/frames.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/frames.js +210 -0
- package/dist/src/code-execution/isolate/frames.js.map +1 -0
- package/dist/src/code-execution/isolate/output.d.ts +68 -0
- package/dist/src/code-execution/isolate/output.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/output.js +143 -0
- package/dist/src/code-execution/isolate/output.js.map +1 -0
- package/dist/src/code-execution/isolate/prelude.d.ts +109 -0
- package/dist/src/code-execution/isolate/prelude.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/prelude.js +401 -0
- package/dist/src/code-execution/isolate/prelude.js.map +1 -0
- package/dist/src/code-execution/isolate/protocol.d.ts +151 -0
- package/dist/src/code-execution/isolate/protocol.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/protocol.js +150 -0
- package/dist/src/code-execution/isolate/protocol.js.map +1 -0
- package/dist/src/code-execution/isolate/render.d.ts +57 -0
- package/dist/src/code-execution/isolate/render.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/render.js +214 -0
- package/dist/src/code-execution/isolate/render.js.map +1 -0
- package/dist/src/code-execution/isolate/runner.d.ts +250 -0
- package/dist/src/code-execution/isolate/runner.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/runner.js +854 -0
- package/dist/src/code-execution/isolate/runner.js.map +1 -0
- package/dist/src/code-execution/isolate/scripts.d.ts +175 -0
- package/dist/src/code-execution/isolate/scripts.d.ts.map +1 -0
- package/dist/src/code-execution/isolate/scripts.js +357 -0
- package/dist/src/code-execution/isolate/scripts.js.map +1 -0
- package/dist/src/code-execution/quickjs.wasm +0 -0
- package/dist/src/code-execution/tool-definition.d.ts +93 -43
- package/dist/src/code-execution/tool-definition.d.ts.map +1 -1
- package/dist/src/code-execution/tool-definition.js +176 -142
- package/dist/src/code-execution/tool-definition.js.map +1 -1
- package/dist/src/deadline-timer.d.ts +3 -0
- package/dist/src/deadline-timer.d.ts.map +1 -1
- package/dist/src/deadline-timer.js +1 -1
- package/dist/src/deadline-timer.js.map +1 -1
- package/dist/src/framework.d.ts +1027 -440
- package/dist/src/framework.d.ts.map +1 -1
- package/dist/src/framework.js +4093 -2238
- package/dist/src/framework.js.map +1 -1
- package/dist/src/gate/event-gate.d.ts +28 -1
- package/dist/src/gate/event-gate.d.ts.map +1 -1
- package/dist/src/gate/event-gate.js +88 -10
- package/dist/src/gate/event-gate.js.map +1 -1
- package/dist/src/held-writes.d.ts +16 -3
- package/dist/src/held-writes.d.ts.map +1 -1
- package/dist/src/held-writes.js +16 -3
- package/dist/src/held-writes.js.map +1 -1
- package/dist/src/index.d.ts +6 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +9 -8
- package/dist/src/index.js.map +1 -1
- package/dist/src/mcpl/channel-registry.d.ts +471 -75
- package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
- package/dist/src/mcpl/channel-registry.js +1673 -337
- package/dist/src/mcpl/channel-registry.js.map +1 -1
- package/dist/src/mcpl/conversation-router.d.ts +12 -7
- package/dist/src/mcpl/conversation-router.d.ts.map +1 -1
- package/dist/src/mcpl/conversation-router.js +12 -7
- package/dist/src/mcpl/conversation-router.js.map +1 -1
- package/dist/src/mcpl/convert-block.d.ts.map +1 -1
- package/dist/src/mcpl/convert-block.js +9 -5
- package/dist/src/mcpl/convert-block.js.map +1 -1
- package/dist/src/mcpl/inbound-source.d.ts +50 -0
- package/dist/src/mcpl/inbound-source.d.ts.map +1 -1
- package/dist/src/mcpl/inbound-source.js +130 -0
- package/dist/src/mcpl/inbound-source.js.map +1 -1
- package/dist/src/mcpl/index.d.ts +2 -1
- package/dist/src/mcpl/index.d.ts.map +1 -1
- package/dist/src/mcpl/index.js +3 -2
- package/dist/src/mcpl/index.js.map +1 -1
- package/dist/src/mcpl/log-value.d.ts +6 -0
- package/dist/src/mcpl/log-value.d.ts.map +1 -1
- package/dist/src/mcpl/log-value.js +8 -0
- package/dist/src/mcpl/log-value.js.map +1 -1
- package/dist/src/mcpl/modern-connection.d.ts +15 -6
- package/dist/src/mcpl/modern-connection.d.ts.map +1 -1
- package/dist/src/mcpl/modern-connection.js +168 -53
- package/dist/src/mcpl/modern-connection.js.map +1 -1
- package/dist/src/mcpl/prose-grammar.d.ts +4 -5
- package/dist/src/mcpl/prose-grammar.d.ts.map +1 -1
- package/dist/src/mcpl/prose-grammar.js +4 -5
- package/dist/src/mcpl/prose-grammar.js.map +1 -1
- package/dist/src/mcpl/protocol-family.d.ts +97 -10
- package/dist/src/mcpl/protocol-family.d.ts.map +1 -1
- package/dist/src/mcpl/protocol-family.js +173 -16
- package/dist/src/mcpl/protocol-family.js.map +1 -1
- package/dist/src/mcpl/push-coalescer.d.ts +132 -14
- package/dist/src/mcpl/push-coalescer.d.ts.map +1 -1
- package/dist/src/mcpl/push-coalescer.js +227 -50
- package/dist/src/mcpl/push-coalescer.js.map +1 -1
- package/dist/src/mcpl/push-handler.d.ts +6 -1
- package/dist/src/mcpl/push-handler.d.ts.map +1 -1
- package/dist/src/mcpl/push-handler.js +4 -1
- package/dist/src/mcpl/push-handler.js.map +1 -1
- package/dist/src/mcpl/reference-fetcher.d.ts +2 -2
- package/dist/src/mcpl/reference-fetcher.d.ts.map +1 -1
- package/dist/src/mcpl/reference-fetcher.js +4 -4
- package/dist/src/mcpl/reference-fetcher.js.map +1 -1
- package/dist/src/mcpl/server-connection.d.ts +50 -21
- package/dist/src/mcpl/server-connection.d.ts.map +1 -1
- package/dist/src/mcpl/server-connection.js +158 -74
- package/dist/src/mcpl/server-connection.js.map +1 -1
- package/dist/src/mcpl/tags.d.ts +24 -0
- package/dist/src/mcpl/tags.d.ts.map +1 -1
- package/dist/src/mcpl/tags.js +33 -0
- package/dist/src/mcpl/tags.js.map +1 -1
- package/dist/src/mcpl/tool-result-normalize.d.ts +2 -1
- package/dist/src/mcpl/tool-result-normalize.d.ts.map +1 -1
- package/dist/src/mcpl/tool-result-normalize.js.map +1 -1
- package/dist/src/mcpl/transport.d.ts +55 -7
- package/dist/src/mcpl/transport.d.ts.map +1 -1
- package/dist/src/mcpl/transport.js +163 -34
- package/dist/src/mcpl/transport.js.map +1 -1
- package/dist/src/mcpl/types.d.ts +22 -6
- package/dist/src/mcpl/types.d.ts.map +1 -1
- package/dist/src/mcpl/types.js.map +1 -1
- package/dist/src/module-registry.d.ts +4 -2
- package/dist/src/module-registry.d.ts.map +1 -1
- package/dist/src/module-registry.js +100 -13
- package/dist/src/module-registry.js.map +1 -1
- package/dist/src/modules/discord/index.d.ts.map +1 -1
- package/dist/src/modules/discord/index.js +8 -13
- package/dist/src/modules/discord/index.js.map +1 -1
- package/dist/src/modules/history/index.d.ts.map +1 -1
- package/dist/src/modules/history/index.js +27 -4
- package/dist/src/modules/history/index.js.map +1 -1
- package/dist/src/modules/history/semantic.d.ts +15 -3
- package/dist/src/modules/history/semantic.d.ts.map +1 -1
- package/dist/src/modules/history/semantic.js +27 -5
- 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.map +1 -1
- package/dist/src/modules/unknown-tool.d.ts +4 -1
- package/dist/src/modules/unknown-tool.d.ts.map +1 -1
- package/dist/src/modules/unknown-tool.js +4 -1
- package/dist/src/modules/unknown-tool.js.map +1 -1
- package/dist/src/modules/workspace/branch-intent.d.ts +3 -1
- package/dist/src/modules/workspace/branch-intent.d.ts.map +1 -1
- package/dist/src/modules/workspace/branch-intent.js +3 -1
- package/dist/src/modules/workspace/branch-intent.js.map +1 -1
- package/dist/src/modules/workspace/edit-plan.d.ts +265 -0
- package/dist/src/modules/workspace/edit-plan.d.ts.map +1 -0
- package/dist/src/modules/workspace/edit-plan.js +794 -0
- package/dist/src/modules/workspace/edit-plan.js.map +1 -0
- package/dist/src/modules/workspace/edit-text.d.ts +117 -0
- package/dist/src/modules/workspace/edit-text.d.ts.map +1 -0
- package/dist/src/modules/workspace/edit-text.js +584 -0
- package/dist/src/modules/workspace/edit-text.js.map +1 -0
- package/dist/src/modules/workspace/effects.d.ts +5 -4
- package/dist/src/modules/workspace/effects.d.ts.map +1 -1
- package/dist/src/modules/workspace/effects.js +78 -25
- package/dist/src/modules/workspace/effects.js.map +1 -1
- package/dist/src/modules/workspace/index.d.ts +484 -61
- package/dist/src/modules/workspace/index.d.ts.map +1 -1
- package/dist/src/modules/workspace/index.js +2173 -645
- package/dist/src/modules/workspace/index.js.map +1 -1
- package/dist/src/modules/workspace/observe.d.ts +213 -38
- package/dist/src/modules/workspace/observe.d.ts.map +1 -1
- package/dist/src/modules/workspace/observe.js +416 -36
- package/dist/src/modules/workspace/observe.js.map +1 -1
- package/dist/src/modules/workspace/reconcile.d.ts.map +1 -1
- package/dist/src/modules/workspace/reconcile.js +15 -8
- package/dist/src/modules/workspace/reconcile.js.map +1 -1
- package/dist/src/modules/workspace/text.d.ts +32 -0
- package/dist/src/modules/workspace/text.d.ts.map +1 -0
- package/dist/src/modules/workspace/text.js +67 -0
- package/dist/src/modules/workspace/text.js.map +1 -0
- package/dist/src/modules/workspace/types.d.ts +210 -6
- 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 +3 -2
- package/dist/src/modules/workspace/watcher.d.ts.map +1 -1
- package/dist/src/modules/workspace/watcher.js.map +1 -1
- package/dist/src/operator-log.d.ts +52 -24
- package/dist/src/operator-log.d.ts.map +1 -1
- package/dist/src/operator-log.js.map +1 -1
- package/dist/src/recovery/discord-awareness-outbox.d.ts +496 -72
- package/dist/src/recovery/discord-awareness-outbox.d.ts.map +1 -1
- package/dist/src/recovery/discord-awareness-outbox.js +1196 -289
- package/dist/src/recovery/discord-awareness-outbox.js.map +1 -1
- package/dist/src/recovery/offline-branch.d.ts +26 -1
- package/dist/src/recovery/offline-branch.d.ts.map +1 -1
- package/dist/src/recovery/offline-branch.js +164 -39
- package/dist/src/recovery/offline-branch.js.map +1 -1
- package/dist/src/recovery/recover-cli.js +23 -4
- package/dist/src/recovery/recover-cli.js.map +1 -1
- package/dist/src/send-tools.d.ts +11 -0
- package/dist/src/send-tools.d.ts.map +1 -0
- package/dist/src/send-tools.js +11 -0
- package/dist/src/send-tools.js.map +1 -0
- package/dist/src/tool-result-guard.d.ts +4 -3
- package/dist/src/tool-result-guard.d.ts.map +1 -1
- package/dist/src/tool-result-guard.js +5 -4
- package/dist/src/tool-result-guard.js.map +1 -1
- package/dist/src/tool-result-history.d.ts +1 -1
- package/dist/src/tool-result-history.js +1 -1
- package/dist/src/tune-out/coordinator.d.ts +21 -0
- package/dist/src/tune-out/coordinator.d.ts.map +1 -1
- package/dist/src/tune-out/coordinator.js +139 -37
- package/dist/src/tune-out/coordinator.js.map +1 -1
- package/dist/src/types/agent.d.ts +4 -0
- package/dist/src/types/agent.d.ts.map +1 -1
- package/dist/src/types/events.d.ts +62 -9
- package/dist/src/types/events.d.ts.map +1 -1
- package/dist/src/types/framework.d.ts +62 -58
- package/dist/src/types/framework.d.ts.map +1 -1
- package/dist/src/types/module.d.ts +40 -8
- package/dist/src/types/module.d.ts.map +1 -1
- package/dist/src/types/trace.d.ts +111 -10
- package/dist/src/types/trace.d.ts.map +1 -1
- package/dist/src/usage/types.d.ts +16 -0
- package/dist/src/usage/types.d.ts.map +1 -1
- package/dist/src/usage/usage-tracker.d.ts +14 -1
- package/dist/src/usage/usage-tracker.d.ts.map +1 -1
- package/dist/src/usage/usage-tracker.js +81 -41
- package/dist/src/usage/usage-tracker.js.map +1 -1
- package/package.json +6 -5
- package/src/agent.ts +93 -12
- package/src/api/server.ts +14 -12
- package/src/code-execution/engine.ts +595 -0
- package/src/code-execution/index.ts +5 -17
- package/src/code-execution/isolate/calls.ts +199 -0
- package/src/code-execution/isolate/child-entry.ts +5 -0
- package/src/code-execution/isolate/child-main.ts +132 -0
- package/src/code-execution/isolate/child.ts +327 -0
- package/src/code-execution/isolate/frames.ts +209 -0
- package/src/code-execution/isolate/output.ts +161 -0
- package/src/code-execution/isolate/prelude.ts +409 -0
- package/src/code-execution/isolate/protocol.ts +240 -0
- package/src/code-execution/isolate/render.ts +230 -0
- package/src/code-execution/isolate/runner.ts +911 -0
- package/src/code-execution/isolate/scripts.ts +479 -0
- package/src/code-execution/quickjs.wasm +0 -0
- package/src/code-execution/quickjs.wasm.LICENSES +149 -0
- package/src/code-execution/tool-definition.ts +236 -167
- package/src/deadline-timer.ts +1 -1
- package/src/framework.ts +4468 -2418
- package/src/gate/event-gate.ts +78 -11
- package/src/held-writes.ts +17 -3
- package/src/index.ts +30 -22
- package/src/mcpl/channel-registry.ts +1825 -368
- package/src/mcpl/conversation-router.ts +12 -7
- package/src/mcpl/convert-block.ts +9 -5
- package/src/mcpl/inbound-source.ts +131 -0
- package/src/mcpl/index.ts +4 -2
- package/src/mcpl/log-value.ts +9 -0
- package/src/mcpl/modern-connection.ts +162 -53
- package/src/mcpl/prose-grammar.ts +4 -5
- package/src/mcpl/protocol-family.ts +199 -21
- package/src/mcpl/push-coalescer.ts +306 -62
- package/src/mcpl/push-handler.ts +10 -2
- package/src/mcpl/reference-fetcher.ts +4 -4
- package/src/mcpl/server-connection.ts +180 -79
- package/src/mcpl/tags.ts +36 -0
- package/src/mcpl/tool-result-normalize.ts +2 -1
- package/src/mcpl/transport.ts +162 -33
- package/src/mcpl/types.ts +23 -6
- package/src/module-registry.ts +92 -13
- package/src/modules/discord/index.ts +8 -13
- package/src/modules/history/index.ts +25 -3
- package/src/modules/history/semantic.ts +29 -6
- package/src/modules/index.ts +1 -0
- package/src/modules/unknown-tool.ts +4 -1
- package/src/modules/workspace/branch-intent.ts +3 -1
- package/src/modules/workspace/edit-plan.ts +954 -0
- package/src/modules/workspace/edit-text.ts +618 -0
- package/src/modules/workspace/effects.ts +70 -19
- package/src/modules/workspace/index.ts +2247 -642
- package/src/modules/workspace/observe.ts +465 -56
- package/src/modules/workspace/reconcile.ts +14 -7
- package/src/modules/workspace/text.ts +68 -0
- package/src/modules/workspace/types.ts +211 -6
- package/src/modules/workspace/watcher.ts +3 -2
- package/src/operator-log.ts +47 -19
- package/src/recovery/discord-awareness-outbox.ts +1500 -356
- package/src/recovery/offline-branch.ts +189 -55
- package/src/recovery/recover-cli.ts +25 -4
- package/src/send-tools.ts +11 -0
- package/src/tool-result-guard.ts +6 -5
- package/src/tool-result-history.ts +1 -1
- package/src/tune-out/coordinator.ts +163 -42
- package/src/types/agent.ts +4 -0
- package/src/types/events.ts +62 -9
- package/src/types/framework.ts +62 -58
- package/src/types/module.ts +40 -8
- package/src/types/trace.ts +121 -15
- package/src/usage/types.ts +16 -0
- package/src/usage/usage-tracker.ts +86 -43
- package/dist/src/code-execution/py-runner.d.ts +0 -191
- package/dist/src/code-execution/py-runner.d.ts.map +0 -1
- package/dist/src/code-execution/py-runner.js +0 -655
- package/dist/src/code-execution/py-runner.js.map +0 -1
- package/dist/src/code-execution/runtime-py.d.ts +0 -50
- package/dist/src/code-execution/runtime-py.d.ts.map +0 -1
- package/dist/src/code-execution/runtime-py.js +0 -677
- package/dist/src/code-execution/runtime-py.js.map +0 -1
- package/dist/src/mcpl/prose-stream-router.d.ts +0 -88
- package/dist/src/mcpl/prose-stream-router.d.ts.map +0 -1
- package/dist/src/mcpl/prose-stream-router.js +0 -291
- package/dist/src/mcpl/prose-stream-router.js.map +0 -1
- package/src/code-execution/py-runner.ts +0 -791
- package/src/code-execution/runtime-py.ts +0 -677
- package/src/mcpl/prose-stream-router.ts +0 -268
|
@@ -91,6 +91,13 @@ export interface CoalescedOccurrence<E = unknown> {
|
|
|
91
91
|
/** Set by the coalescer: deliver into this agent only (§3.2 audience may
|
|
92
92
|
* narrow, never widen — a replacement or notice follows the prior delivery). */
|
|
93
93
|
deliverTo?: string;
|
|
94
|
+
/** Set by the coalescer when the delivery is the agent's first view of
|
|
95
|
+
* the subject: a plain occurrence that replaces one that was the agent's
|
|
96
|
+
* first view (its `initial` birth, or a replacement so marked) and that
|
|
97
|
+
* the agent may never have been shown (CoalescerHost.isUnshown), or the
|
|
98
|
+
* first delivery of a batch that opened on a first view (its render, or
|
|
99
|
+
* a plain occurrence that drops it). No other path sets it. */
|
|
100
|
+
firstView?: boolean;
|
|
94
101
|
}
|
|
95
102
|
export interface DeferredNotice {
|
|
96
103
|
eventId: string;
|
|
@@ -116,6 +123,13 @@ interface DeferredBatch<E> {
|
|
|
116
123
|
dropped: number;
|
|
117
124
|
/** Set on a batch restored from a snapshot whose render may have started. */
|
|
118
125
|
noRender?: boolean;
|
|
126
|
+
/** The batch opened on the agent's first view of its subject: a fresh
|
|
127
|
+
* `initial` birth, or a first-view occupant it displaced that nothing had
|
|
128
|
+
* shown. Its first delivery is a first view too, while nothing of the
|
|
129
|
+
* subject has been read since and no other version of it is placed. It is
|
|
130
|
+
* cleared when the subject's first view ends while the batch is pending
|
|
131
|
+
* or rendering (occupantLeaves). */
|
|
132
|
+
firstView?: true;
|
|
119
133
|
}
|
|
120
134
|
interface Rendering<E> {
|
|
121
135
|
batch: DeferredBatch<E>;
|
|
@@ -136,24 +150,50 @@ export interface AssemblyResult {
|
|
|
136
150
|
* read: empty or blank render (§5.2), cancelled, revoked before the render
|
|
137
151
|
* or at its response, a render-start that could not be made durable (the
|
|
138
152
|
* batch then waits for its recovery wake), a batch whose audience doesn't
|
|
139
|
-
* include the agent, a render placed in
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* by another
|
|
153
|
+
* include the agent, a render placed in a deferred queue (another
|
|
154
|
+
* agent's, or this agent's own behind a write held there), a render
|
|
155
|
+
* another assembly froze (its compile may show it, as that request's), or
|
|
156
|
+
* a cause whose batch was withdrawn, displaced or consumed by another
|
|
157
|
+
* request. */
|
|
143
158
|
materialized: Set<string>;
|
|
144
159
|
}
|
|
160
|
+
/** What holds a subject's single slot (§3.2). A render describes what changed
|
|
161
|
+
* since the server's previous render (§5.2), so the renders before it that
|
|
162
|
+
* are still unread stay where they were placed, and the newest carries them
|
|
163
|
+
* as `before` (§3.3, vector 49). A plain occurrence displaces the run and a
|
|
164
|
+
* retraction removes it (§6), newest first (removeOccupant). */
|
|
165
|
+
interface Occupant {
|
|
166
|
+
eventId: string;
|
|
167
|
+
placement: CoalescingPlacement;
|
|
168
|
+
/** A materialized batch (its result or its fallback), which later renders build on. */
|
|
169
|
+
rendered?: true;
|
|
170
|
+
/** This occupant was the agent's first view of the subject when it was
|
|
171
|
+
* placed, as `firstView` defines it. It hands that view on only while
|
|
172
|
+
* nothing of the subject has been read and nothing of its run may have
|
|
173
|
+
* been shown (occupantLeaves). Unknown counts as not one. A plain
|
|
174
|
+
* occurrence can carry it, and of a run's renders only the oldest, since a
|
|
175
|
+
* render that joins a run finds a version placed. In memory only: a
|
|
176
|
+
* snapshot's occupant comes back as read. */
|
|
177
|
+
firstView?: true;
|
|
178
|
+
/** The run's earlier renders, oldest first, each placed ahead of this one. */
|
|
179
|
+
before?: Array<Omit<Occupant, 'before'>>;
|
|
180
|
+
}
|
|
145
181
|
interface SubjectState<E> {
|
|
146
182
|
history: 'none' | 'some' | 'unknown';
|
|
147
|
-
occupant?:
|
|
148
|
-
eventId: string;
|
|
149
|
-
placement: CoalescingPlacement;
|
|
150
|
-
};
|
|
183
|
+
occupant?: Occupant;
|
|
151
184
|
batch?: DeferredBatch<E>;
|
|
152
185
|
rendering?: Rendering<E>;
|
|
153
186
|
consumedEventId?: string;
|
|
154
187
|
identity?: CoalescedOccurrence['identity'];
|
|
155
188
|
/** Agent that received the last delivery; replacements and notices follow it. */
|
|
156
189
|
audienceAgent?: string;
|
|
190
|
+
/** The agent's first view of the subject has ended: an occupant that may
|
|
191
|
+
* have been shown left it without handing a first view on
|
|
192
|
+
* (occupantLeaves, endFirstView). No later batch or birth of the subject
|
|
193
|
+
* is a first view while the coalescer keeps this record. An idle
|
|
194
|
+
* subject's record can be evicted (prune), and an `initial` occurrence
|
|
195
|
+
* after that starts the subject afresh. */
|
|
196
|
+
firstViewEnded?: true;
|
|
157
197
|
touchedAt: number;
|
|
158
198
|
}
|
|
159
199
|
export interface CoalescingSnapshot {
|
|
@@ -172,11 +212,22 @@ export interface CoalescingSnapshot {
|
|
|
172
212
|
placement: CoalescingPlacement;
|
|
173
213
|
};
|
|
174
214
|
audienceAgent?: string;
|
|
215
|
+
/** The subject's first view has ended (SubjectState.firstViewEnded). A
|
|
216
|
+
* snapshot written before this field existed has none and reads as not
|
|
217
|
+
* ended. So after an upgrade, a subject whose first view had ended
|
|
218
|
+
* without a read is granted a first view again. Until the agent is shown
|
|
219
|
+
* or reads a version of it, each delivery that would mark a first view (a
|
|
220
|
+
* render, or a plain occurrence that replaces an unread version or a
|
|
221
|
+
* pending notice) carries a spurious `firstView`. */
|
|
222
|
+
firstViewEnded?: true;
|
|
223
|
+
/** `firstView` only on a batch that wasn't rendering: one that was may
|
|
224
|
+
* have been shown. */
|
|
175
225
|
batch?: {
|
|
176
226
|
latest: CoalescedOccurrence<unknown>;
|
|
177
227
|
notices: DeferredNotice[];
|
|
178
228
|
dropped: number;
|
|
179
229
|
rendering?: boolean;
|
|
230
|
+
firstView?: true;
|
|
180
231
|
};
|
|
181
232
|
}>;
|
|
182
233
|
}
|
|
@@ -188,6 +239,11 @@ export interface CoalescingReceiptRecord {
|
|
|
188
239
|
subject: string;
|
|
189
240
|
/** History the subject was created with, for a subject first seen by this receipt. */
|
|
190
241
|
born?: SubjectState<unknown>['history'];
|
|
242
|
+
/** The subject's first view had ended by this acceptance
|
|
243
|
+
* (SubjectState.firstViewEnded), so a crash before the snapshot flush
|
|
244
|
+
* can't forget the end. A record written before this field existed has
|
|
245
|
+
* none and reads as not ended, as a snapshot does. */
|
|
246
|
+
firstViewEnded?: true;
|
|
191
247
|
/** The subject's pending batch AFTER this acceptance: the accepted work
|
|
192
248
|
* itself (so a crash before the snapshot flush cannot lose it while keeping
|
|
193
249
|
* the receipt that suppresses its retry), or `null` when the acceptance
|
|
@@ -200,8 +256,20 @@ export interface CoalescingReceiptRecord {
|
|
|
200
256
|
} | null;
|
|
201
257
|
}
|
|
202
258
|
export interface CoalescerHost<E> {
|
|
203
|
-
/** True iff the placement still exists and
|
|
259
|
+
/** True iff the placement still exists and, as far as the host can tell,
|
|
260
|
+
* no model request has included it. The host can't always tell: a
|
|
261
|
+
* message injected into a stream that didn't say whether it carries
|
|
262
|
+
* injections, as no membrane 0.5.x stream does, counts as unread though
|
|
263
|
+
* a request may have included it. */
|
|
204
264
|
isUnread(placement: CoalescingPlacement): boolean;
|
|
265
|
+
/** True iff nothing may have shown the placement to the agent: it is still
|
|
266
|
+
* in the deferred queue and known not to be stored already, or it is
|
|
267
|
+
* stored where no committing compile has begun to assemble it and no tool
|
|
268
|
+
* boundary has injected past it. Unlike
|
|
269
|
+
* isUnread, a compile counts from its start, and a boundary counts
|
|
270
|
+
* whether or not its stream says it carries injected messages: a doubt
|
|
271
|
+
* counts as shown. */
|
|
272
|
+
isUnshown(placement: CoalescingPlacement): boolean;
|
|
205
273
|
/** False when the unread occurrence could not be removed (it may still be read). */
|
|
206
274
|
remove(placement: CoalescingPlacement): boolean;
|
|
207
275
|
/** Ordinary delivery of the event; undefined when routing delivered nowhere.
|
|
@@ -212,9 +280,9 @@ export interface CoalescerHost<E> {
|
|
|
212
280
|
wakeForBatch(occurrence: CoalescedOccurrence<E>): Promise<void>;
|
|
213
281
|
/** Queue an ordinary push wake for `agent`, under the batch's own wake
|
|
214
282
|
* policy, to read a render of the batch placed in its deferred queue that
|
|
215
|
-
* no request consumed
|
|
216
|
-
* and later withdrawals of them, leave it. */
|
|
217
|
-
wakeToRead(occurrence: CoalescedOccurrence<E>, agent: string): Promise<void>;
|
|
283
|
+
* no request consumed, at `deferredId`. It carries no subject, so the
|
|
284
|
+
* subject's other wakes, and later withdrawals of them, leave it. */
|
|
285
|
+
wakeToRead(occurrence: CoalescedOccurrence<E>, agent: string, deferredId?: string): Promise<void>;
|
|
218
286
|
/** Withdraw unstarted wakes whose sole cause is this subject. */
|
|
219
287
|
cancelWake(subject: string): void;
|
|
220
288
|
/** The batch's audience still holds the authority it was admitted under. */
|
|
@@ -312,8 +380,17 @@ export declare class PushCoalescer<E = unknown> {
|
|
|
312
380
|
private readonly subjects;
|
|
313
381
|
/** `committed`: the durability barrier succeeded after this receipt was
|
|
314
382
|
* written. An uncommitted receipt deduplicates effects but is not an
|
|
315
|
-
* acknowledgement until a commit succeeds.
|
|
383
|
+
* acknowledgement until a commit succeeds. `firstView`: the admission it
|
|
384
|
+
* records handed its occurrence to the host's delivery marked as the
|
|
385
|
+
* agent's first view (`firstView`), whether or not the host placed
|
|
386
|
+
* it, so a retry answered from it says so too. Kept in memory only: a
|
|
387
|
+
* receipt restored from a snapshot or the crash-window bridge reads as no
|
|
388
|
+
* first view. */
|
|
316
389
|
private readonly receipts;
|
|
390
|
+
/** Set by a delivery that carries `firstView`. admit() clears it before
|
|
391
|
+
* an admission's effects and reads it after them; every delivery runs
|
|
392
|
+
* under the lock, so between the two it is that admission's alone. */
|
|
393
|
+
private deliveredFirstView;
|
|
317
394
|
private readonly retryWindowMs;
|
|
318
395
|
private readonly maxSubjects;
|
|
319
396
|
private readonly maxNotices;
|
|
@@ -342,7 +419,14 @@ export declare class PushCoalescer<E = unknown> {
|
|
|
342
419
|
/** §10.7: a server handling push/render must not issue inference/request —
|
|
343
420
|
* including a render whose batch was cancelled while the RPC is outstanding. */
|
|
344
421
|
isRendering(serverId: string): boolean;
|
|
422
|
+
/** The host's delivery, noting one that carries `firstView` for the
|
|
423
|
+
* receipt of the admission it belongs to (deliveredFirstView). */
|
|
424
|
+
private deliver;
|
|
345
425
|
receipt(serverId: string, binding: string, eventId: string): PushEventResult | undefined;
|
|
426
|
+
/** Whether the admission this receipt records delivered its occurrence as
|
|
427
|
+
* the agent's first view: for the host's own bookkeeping, such as the
|
|
428
|
+
* channel registry's reply anchor, and never part of the wire result. */
|
|
429
|
+
receiptFirstView(serverId: string, binding: string, eventId: string): boolean;
|
|
346
430
|
private receiptEntry;
|
|
347
431
|
/** Acknowledge a receipt: durable first. A receipt whose commit failed is
|
|
348
432
|
* committed now (no effects are repeated); if that fails again, so does
|
|
@@ -357,8 +441,42 @@ export declare class PushCoalescer<E = unknown> {
|
|
|
357
441
|
accept(occurrence: CoalescedOccurrence<E>): Promise<PushEventResult>;
|
|
358
442
|
private admit;
|
|
359
443
|
private subjectFor;
|
|
360
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* Re-check the occupant against the host, member by member: a member the
|
|
446
|
+
* host counts as read, or that is gone (isUnread is false either way),
|
|
447
|
+
* becomes history, and the run keeps the members still unread. Returns
|
|
448
|
+
* whether any are.
|
|
449
|
+
*/
|
|
361
450
|
private refreshOccupant;
|
|
451
|
+
/**
|
|
452
|
+
* Remove the occupant and the run it builds on, newest first, auditing each
|
|
453
|
+
* as `kind`. Every member is unread: refreshOccupant has just run, under the
|
|
454
|
+
* lock. The host's removal may still refuse one, such as a held write the
|
|
455
|
+
* host can't tell isn't already stored. A member the host
|
|
456
|
+
* can't remove may be read, so the walk stops there, leaving it and the
|
|
457
|
+
* renders it builds on, and the history becomes `unknown`.
|
|
458
|
+
* Returns false then. It doesn't touch `state.occupant`, which still names
|
|
459
|
+
* the members it removed: each caller clears it, so what the walk left is
|
|
460
|
+
* history from then on, as an occupant whose removal failed always was.
|
|
461
|
+
*/
|
|
462
|
+
private removeOccupant;
|
|
463
|
+
/**
|
|
464
|
+
* An unread occupant leaves the subject: a notice or a plain occurrence
|
|
465
|
+
* displaces it, or a retraction withdraws it, with any run of renders it
|
|
466
|
+
* carries. Returns whether it was a first view that nothing may have shown
|
|
467
|
+
* (isUnshown), which a replacement carries on: for a run, its oldest render
|
|
468
|
+
* carries the mark, and no render of it may have been shown. Nor may
|
|
469
|
+
* anything of the subject have been read: a member a request has read, or
|
|
470
|
+
* that is gone, leaves the run before this (refreshOccupant), and only the
|
|
471
|
+
* subject's history still says so. Any other occupant may have been seen,
|
|
472
|
+
* and this is the last point where the host can say so, since the removal
|
|
473
|
+
* takes its placements: the subject's first view ends here (endFirstView).
|
|
474
|
+
*/
|
|
475
|
+
private occupantLeaves;
|
|
476
|
+
/** The subject's first view ends: for a batch pending or rendering, whose
|
|
477
|
+
* first delivery would come after it, and for every later batch and
|
|
478
|
+
* birth (firstViewEnded). */
|
|
479
|
+
private endFirstView;
|
|
362
480
|
private scheduleRecovery;
|
|
363
481
|
/** Disarm the timer only (a producer retry wakes now; the count stands). */
|
|
364
482
|
private disarmRecovery;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-coalescer.d.ts","sourceRoot":"","sources":["../../../src/mcpl/push-coalescer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIpE,eAAO,MAAM,uBAAuB;aAClC,UAAU;aAAQ,gBAAgB;aAAQ,QAAQ;aAAQ,iBAAiB;aAC3E,aAAa,EAAE,OAAS;CAChB,CAAC;AAEX,eAAO,MAAM,iBAAiB,YAAI,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,CAAU,CAAC;AAC9G,MAAM,MAAM,eAAe,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAI/D,qBAAa,aAAc,SAAQ,KAAK;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM;IAAmB,QAAQ,CAAC,IAAI;IAAlE,YAAqB,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAW,IAAI,SAAS,EAG1E;CACF;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,GAAG,kBAAkB,CAEhG;AAED,2EAA2E;AAC3E,qBAAa,iBAAkB,SAAQ,aAAa;IAClD,QAAQ,CAAC,MAAM,mBAAmB;IAClC,YAAY,KAAK,SAAoB,EAGpC;CACF;AAED,kDAAkD;AAClD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,M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