@animalabs/agent-framework 0.31.0 → 0.33.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 +204 -14
- package/dist/src/admission/admit.d.ts +18 -0
- package/dist/src/admission/admit.d.ts.map +1 -1
- package/dist/src/admission/admit.js +16 -3
- package/dist/src/admission/admit.js.map +1 -1
- package/dist/src/agent.d.ts +185 -78
- package/dist/src/agent.d.ts.map +1 -1
- package/dist/src/agent.js +279 -102
- package/dist/src/agent.js.map +1 -1
- package/dist/src/api/mcp-server-core.d.ts.map +1 -1
- package/dist/src/api/mcp-server-core.js +50 -12
- 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 +4 -20
- package/dist/src/api/server.js.map +1 -1
- package/dist/src/code-execution/isolate/scripts.d.ts +12 -8
- package/dist/src/code-execution/isolate/scripts.d.ts.map +1 -1
- package/dist/src/code-execution/isolate/scripts.js +24 -0
- package/dist/src/code-execution/isolate/scripts.js.map +1 -1
- package/dist/src/config-checks.d.ts +7 -0
- package/dist/src/config-checks.d.ts.map +1 -1
- package/dist/src/config-checks.js +14 -0
- package/dist/src/config-checks.js.map +1 -1
- package/dist/src/context-manager-errors.d.ts +25 -0
- package/dist/src/context-manager-errors.d.ts.map +1 -0
- package/dist/src/context-manager-errors.js +31 -0
- package/dist/src/context-manager-errors.js.map +1 -0
- package/dist/src/context-options.d.ts +67 -0
- package/dist/src/context-options.d.ts.map +1 -0
- package/dist/src/context-options.js +85 -0
- package/dist/src/context-options.js.map +1 -0
- package/dist/src/deferred-import.d.ts +93 -0
- package/dist/src/deferred-import.d.ts.map +1 -0
- package/dist/src/deferred-import.js +177 -0
- package/dist/src/deferred-import.js.map +1 -0
- package/dist/src/dendrite/audience.d.ts +223 -0
- package/dist/src/dendrite/audience.d.ts.map +1 -0
- package/dist/src/dendrite/audience.js +202 -0
- package/dist/src/dendrite/audience.js.map +1 -0
- package/dist/src/dendrite/index.d.ts +5 -3
- package/dist/src/dendrite/index.d.ts.map +1 -1
- package/dist/src/dendrite/index.js +2 -1
- package/dist/src/dendrite/index.js.map +1 -1
- package/dist/src/dendrite/presets.d.ts +10 -5
- package/dist/src/dendrite/presets.d.ts.map +1 -1
- package/dist/src/dendrite/presets.js +17 -5
- package/dist/src/dendrite/presets.js.map +1 -1
- package/dist/src/dendrite/registry.d.ts +62 -7
- package/dist/src/dendrite/registry.d.ts.map +1 -1
- package/dist/src/dendrite/registry.js +179 -10
- package/dist/src/dendrite/registry.js.map +1 -1
- package/dist/src/dendrite/types.d.ts +91 -8
- package/dist/src/dendrite/types.d.ts.map +1 -1
- package/dist/src/foreign-rounds.d.ts +69 -0
- package/dist/src/foreign-rounds.d.ts.map +1 -0
- package/dist/src/foreign-rounds.js +152 -0
- package/dist/src/foreign-rounds.js.map +1 -0
- package/dist/src/framework.d.ts +1977 -820
- package/dist/src/framework.d.ts.map +1 -1
- package/dist/src/framework.js +7571 -3457
- package/dist/src/framework.js.map +1 -1
- package/dist/src/gate/event-gate.d.ts +85 -15
- package/dist/src/gate/event-gate.d.ts.map +1 -1
- package/dist/src/gate/event-gate.js +421 -47
- package/dist/src/gate/event-gate.js.map +1 -1
- package/dist/src/gate/index.d.ts +1 -1
- package/dist/src/gate/index.d.ts.map +1 -1
- package/dist/src/gate/index.js.map +1 -1
- package/dist/src/gate/rule-scope.d.ts +30 -0
- package/dist/src/gate/rule-scope.d.ts.map +1 -0
- package/dist/src/gate/rule-scope.js +41 -0
- package/dist/src/gate/rule-scope.js.map +1 -0
- package/dist/src/gate/suppress-script-worker.d.ts +2 -0
- package/dist/src/gate/suppress-script-worker.d.ts.map +1 -0
- package/dist/src/gate/suppress-script-worker.js +103 -0
- package/dist/src/gate/suppress-script-worker.js.map +1 -0
- package/dist/src/gate/suppress-scripts.d.ts +105 -0
- package/dist/src/gate/suppress-scripts.d.ts.map +1 -0
- package/dist/src/gate/suppress-scripts.js +403 -0
- package/dist/src/gate/suppress-scripts.js.map +1 -0
- package/dist/src/gate/suppression-review.d.ts +143 -0
- package/dist/src/gate/suppression-review.d.ts.map +1 -0
- package/dist/src/gate/suppression-review.js +463 -0
- package/dist/src/gate/suppression-review.js.map +1 -0
- package/dist/src/gate/suppression-stats.d.ts +125 -0
- package/dist/src/gate/suppression-stats.d.ts.map +1 -0
- package/dist/src/gate/suppression-stats.js +214 -0
- package/dist/src/gate/suppression-stats.js.map +1 -0
- package/dist/src/gate/types.d.ts +135 -7
- package/dist/src/gate/types.d.ts.map +1 -1
- package/dist/src/gate/wake-onboarding.d.ts +119 -0
- package/dist/src/gate/wake-onboarding.d.ts.map +1 -0
- package/dist/src/gate/wake-onboarding.js +277 -0
- package/dist/src/gate/wake-onboarding.js.map +1 -0
- package/dist/src/held-writes.d.ts +31 -23
- package/dist/src/held-writes.d.ts.map +1 -1
- package/dist/src/held-writes.js +44 -59
- package/dist/src/held-writes.js.map +1 -1
- package/dist/src/index.d.ts +5 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/jsonrpc-envelope.d.ts +69 -0
- package/dist/src/jsonrpc-envelope.d.ts.map +1 -0
- package/dist/src/jsonrpc-envelope.js +66 -0
- package/dist/src/jsonrpc-envelope.js.map +1 -0
- package/dist/src/mcpl/channel-registry.d.ts +131 -15
- package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
- package/dist/src/mcpl/channel-registry.js +290 -46
- package/dist/src/mcpl/channel-registry.js.map +1 -1
- package/dist/src/mcpl/checkpoint-manager.d.ts +2 -4
- package/dist/src/mcpl/checkpoint-manager.d.ts.map +1 -1
- package/dist/src/mcpl/checkpoint-manager.js.map +1 -1
- package/dist/src/mcpl/feature-set-manager.d.ts +2 -4
- package/dist/src/mcpl/feature-set-manager.d.ts.map +1 -1
- package/dist/src/mcpl/feature-set-manager.js.map +1 -1
- package/dist/src/mcpl/inbound-source.d.ts +2 -1
- package/dist/src/mcpl/inbound-source.d.ts.map +1 -1
- package/dist/src/mcpl/inbound-source.js +2 -1
- package/dist/src/mcpl/inbound-source.js.map +1 -1
- package/dist/src/mcpl/inference-router.d.ts +6 -6
- package/dist/src/mcpl/inference-router.d.ts.map +1 -1
- package/dist/src/mcpl/inference-router.js.map +1 -1
- package/dist/src/mcpl/push-coalescer.d.ts +132 -22
- package/dist/src/mcpl/push-coalescer.d.ts.map +1 -1
- package/dist/src/mcpl/push-coalescer.js +105 -15
- package/dist/src/mcpl/push-coalescer.js.map +1 -1
- package/dist/src/mcpl/push-handler.d.ts +9 -7
- package/dist/src/mcpl/push-handler.d.ts.map +1 -1
- package/dist/src/mcpl/push-handler.js.map +1 -1
- package/dist/src/mcpl/server-connection.d.ts +13 -10
- package/dist/src/mcpl/server-connection.d.ts.map +1 -1
- package/dist/src/mcpl/server-connection.js +134 -56
- package/dist/src/mcpl/server-connection.js.map +1 -1
- package/dist/src/mcpl/tool-classes.d.ts.map +1 -1
- package/dist/src/mcpl/tool-classes.js +3 -0
- package/dist/src/mcpl/tool-classes.js.map +1 -1
- package/dist/src/mcpl/types.d.ts +8 -2
- 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 +24 -1
- package/dist/src/module-registry.d.ts.map +1 -1
- package/dist/src/module-registry.js +68 -18
- package/dist/src/module-registry.js.map +1 -1
- package/dist/src/modules/discord/index.d.ts +45 -8
- package/dist/src/modules/discord/index.d.ts.map +1 -1
- package/dist/src/modules/discord/index.js +237 -86
- package/dist/src/modules/discord/index.js.map +1 -1
- package/dist/src/modules/history/index.d.ts +59 -0
- package/dist/src/modules/history/index.d.ts.map +1 -1
- package/dist/src/modules/history/index.js +432 -67
- package/dist/src/modules/history/index.js.map +1 -1
- package/dist/src/modules/history/semantic.d.ts +6 -5
- package/dist/src/modules/history/semantic.d.ts.map +1 -1
- package/dist/src/modules/history/semantic.js +15 -22
- package/dist/src/modules/history/semantic.js.map +1 -1
- package/dist/src/modules/workspace/disk-agreement.d.ts +1 -1
- package/dist/src/modules/workspace/disk-agreement.js +1 -1
- package/dist/src/modules/workspace/index.d.ts +28 -7
- package/dist/src/modules/workspace/index.d.ts.map +1 -1
- package/dist/src/modules/workspace/index.js +76 -22
- package/dist/src/modules/workspace/index.js.map +1 -1
- package/dist/src/notice-tags.d.ts +10 -1
- package/dist/src/notice-tags.d.ts.map +1 -1
- package/dist/src/notice-tags.js +10 -1
- package/dist/src/notice-tags.js.map +1 -1
- package/dist/src/operator-log.d.ts +36 -3
- package/dist/src/operator-log.d.ts.map +1 -1
- package/dist/src/operator-log.js +2 -2
- package/dist/src/operator-log.js.map +1 -1
- package/dist/src/presentation.d.ts +746 -0
- package/dist/src/presentation.d.ts.map +1 -0
- package/dist/src/presentation.js +1435 -0
- package/dist/src/presentation.js.map +1 -0
- package/dist/src/prose-drafts.d.ts +15 -11
- package/dist/src/prose-drafts.d.ts.map +1 -1
- package/dist/src/prose-drafts.js +16 -12
- package/dist/src/prose-drafts.js.map +1 -1
- package/dist/src/read-marks.d.ts +192 -0
- package/dist/src/read-marks.d.ts.map +1 -0
- package/dist/src/read-marks.js +242 -0
- package/dist/src/read-marks.js.map +1 -0
- package/dist/src/recovery/offline-branch.d.ts +91 -6
- package/dist/src/recovery/offline-branch.d.ts.map +1 -1
- package/dist/src/recovery/offline-branch.js +273 -29
- package/dist/src/recovery/offline-branch.js.map +1 -1
- package/dist/src/recovery/recover-cli.js +22 -3
- package/dist/src/recovery/recover-cli.js.map +1 -1
- package/dist/src/send-tools.d.ts +5 -9
- package/dist/src/send-tools.d.ts.map +1 -1
- package/dist/src/send-tools.js +40 -7
- package/dist/src/send-tools.js.map +1 -1
- package/dist/src/stored-injections.d.ts +2 -2
- package/dist/src/stored-injections.js +2 -2
- package/dist/src/stored-removal.d.ts +17 -4
- package/dist/src/stored-removal.d.ts.map +1 -1
- package/dist/src/stored-removal.js +29 -5
- package/dist/src/stored-removal.js.map +1 -1
- package/dist/src/tool-result-guard.d.ts +12 -1
- package/dist/src/tool-result-guard.d.ts.map +1 -1
- package/dist/src/tool-result-guard.js +42 -8
- package/dist/src/tool-result-guard.js.map +1 -1
- package/dist/src/tune-out/coordinator.d.ts +1159 -79
- package/dist/src/tune-out/coordinator.d.ts.map +1 -1
- package/dist/src/tune-out/coordinator.js +3709 -363
- package/dist/src/tune-out/coordinator.js.map +1 -1
- package/dist/src/tune-out/tools.d.ts +114 -17
- package/dist/src/tune-out/tools.d.ts.map +1 -1
- package/dist/src/tune-out/tools.js +87 -27
- package/dist/src/tune-out/tools.js.map +1 -1
- package/dist/src/tune-out/window-anchor.d.ts +143 -0
- package/dist/src/tune-out/window-anchor.d.ts.map +1 -0
- package/dist/src/tune-out/window-anchor.js +202 -0
- package/dist/src/tune-out/window-anchor.js.map +1 -0
- package/dist/src/types/agent.d.ts +86 -31
- package/dist/src/types/agent.d.ts.map +1 -1
- package/dist/src/types/events.d.ts +2 -0
- package/dist/src/types/events.d.ts.map +1 -1
- package/dist/src/types/framework.d.ts +43 -21
- package/dist/src/types/framework.d.ts.map +1 -1
- package/dist/src/types/module.d.ts +180 -69
- package/dist/src/types/module.d.ts.map +1 -1
- package/dist/src/types/trace.d.ts +510 -36
- package/dist/src/types/trace.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/admission/admit.ts +32 -3
- package/src/agent.ts +323 -120
- package/src/api/mcp-server-core.ts +54 -17
- package/src/api/server.ts +4 -23
- package/src/code-execution/isolate/scripts.ts +28 -3
- package/src/config-checks.ts +14 -0
- package/src/context-manager-errors.ts +37 -0
- package/src/context-options.ts +96 -0
- package/src/deferred-import.ts +239 -0
- package/src/dendrite/audience.ts +315 -0
- package/src/dendrite/index.ts +14 -2
- package/src/dendrite/presets.ts +18 -6
- package/src/dendrite/registry.ts +209 -12
- package/src/dendrite/types.ts +92 -8
- package/src/foreign-rounds.ts +199 -0
- package/src/framework.ts +7814 -3585
- package/src/gate/event-gate.ts +428 -65
- package/src/gate/index.ts +3 -0
- package/src/gate/rule-scope.ts +45 -0
- package/src/gate/suppress-script-worker.ts +89 -0
- package/src/gate/suppress-scripts.ts +414 -0
- package/src/gate/suppression-review.ts +517 -0
- package/src/gate/suppression-stats.ts +314 -0
- package/src/gate/types.ts +141 -7
- package/src/gate/wake-onboarding.ts +309 -0
- package/src/held-writes.ts +49 -60
- package/src/index.ts +9 -2
- package/src/jsonrpc-envelope.ts +81 -0
- package/src/mcpl/channel-registry.ts +353 -85
- package/src/mcpl/checkpoint-manager.ts +3 -2
- package/src/mcpl/feature-set-manager.ts +2 -1
- package/src/mcpl/inbound-source.ts +2 -1
- package/src/mcpl/inference-router.ts +7 -4
- package/src/mcpl/push-coalescer.ts +193 -34
- package/src/mcpl/push-handler.ts +10 -5
- package/src/mcpl/server-connection.ts +141 -60
- package/src/mcpl/tool-classes.ts +3 -0
- package/src/mcpl/types.ts +8 -2
- package/src/module-registry.ts +73 -17
- package/src/modules/discord/index.ts +229 -81
- package/src/modules/history/index.ts +439 -70
- package/src/modules/history/semantic.ts +15 -21
- package/src/modules/workspace/disk-agreement.ts +1 -1
- package/src/modules/workspace/index.ts +85 -23
- package/src/notice-tags.ts +10 -1
- package/src/operator-log.ts +36 -3
- package/src/presentation.ts +1676 -0
- package/src/prose-drafts.ts +16 -12
- package/src/read-marks.ts +328 -0
- package/src/recovery/offline-branch.ts +346 -32
- package/src/recovery/recover-cli.ts +21 -3
- package/src/send-tools.ts +40 -7
- package/src/stored-injections.ts +2 -2
- package/src/stored-removal.ts +31 -7
- package/src/tool-result-guard.ts +41 -7
- package/src/tune-out/coordinator.ts +4089 -457
- package/src/tune-out/tools.ts +160 -43
- package/src/tune-out/window-anchor.ts +277 -0
- package/src/types/agent.ts +90 -31
- package/src/types/events.ts +2 -0
- package/src/types/framework.ts +43 -21
- package/src/types/module.ts +181 -68
- package/src/types/trace.ts +542 -40
- package/dist/src/reasoning-loss-notice.d.ts +0 -23
- package/dist/src/reasoning-loss-notice.d.ts.map +0 -1
- package/dist/src/reasoning-loss-notice.js +0 -52
- package/dist/src/reasoning-loss-notice.js.map +0 -1
- package/dist/src/reasoning-loss.d.ts +0 -24
- package/dist/src/reasoning-loss.d.ts.map +0 -1
- package/dist/src/reasoning-loss.js +0 -102
- package/dist/src/reasoning-loss.js.map +0 -1
- package/src/reasoning-loss-notice.ts +0 -64
- package/src/reasoning-loss.ts +0 -120
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ContentBlock } from '@animalabs/membrane';
|
|
2
|
-
import type { MessageId, MessageMetadata, StoredMessage, ContextInjection } from '@animalabs/context-manager';
|
|
2
|
+
import type { ContextManager, MessageId, MessageMetadata, StoredMessage, ContextInjection, WindowStatus } from '@animalabs/context-manager';
|
|
3
3
|
import type { ProcessEvent, ToolDefinition, ToolCall, ToolResult } from './events.js';
|
|
4
4
|
import type { TraceEventListener } from './trace.js';
|
|
5
5
|
/**
|
|
@@ -43,44 +43,54 @@ export type ModuleContextInjection = ContextInjection & {
|
|
|
43
43
|
placedEachCompile?: true;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
* A message as a module context's reads answer it: a stored row,
|
|
47
|
-
*
|
|
48
|
-
* `heldFromResidents` when a tune-out holds it from the
|
|
46
|
+
* A message as a module context's reads answer it: a stored row, marked
|
|
47
|
+
* `held` when it isn't in the window of the agent the read is for, and
|
|
48
|
+
* `heldFromResidents` when a tune-out or a suppress rule holds it from the
|
|
49
|
+
* residents.
|
|
49
50
|
*/
|
|
50
51
|
export type ModuleMessage = StoredMessage & {
|
|
51
52
|
/**
|
|
52
|
-
* True
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
53
|
+
* True on a row stored and not in the window of the agent the read is for
|
|
54
|
+
* (#291's presentation index): it arrived while that agent's turn was
|
|
55
|
+
* alive, or while the host was quiesced, and enters the window at the
|
|
56
|
+
* agent's next presentation point (a turn's start, a tool boundary that
|
|
57
|
+
* can carry it, a turn's end, or at once while no turn of it is alive);
|
|
58
|
+
* or it was taken out of the window as an undone turn's; or it is never
|
|
59
|
+
* presented to that agent, as a held message is to a resident. Set only
|
|
60
|
+
* once that agent's window is written down (presented mode); a held
|
|
61
|
+
* message an earlier release stored is in a resident's window written
|
|
62
|
+
* down from the record, so it reads without `held`, and
|
|
63
|
+
* `heldFromResidents` is what marks it. Its `id`,
|
|
64
|
+
* `sequence` and `timestamp` are the store's, as for any row: since #291
|
|
65
|
+
* every write is stored at once, so no row is a handle and nothing
|
|
66
|
+
* changes when it enters the window. Before #291 the same name marked a
|
|
67
|
+
* write the framework still held, under a `held:` handle; see the
|
|
68
|
+
* changelog. Absent on a row the window holds.
|
|
63
69
|
*/
|
|
64
70
|
held?: true;
|
|
65
71
|
/**
|
|
66
72
|
* True on a message a tune-out holds from the residents: one that arrived
|
|
67
73
|
* in a tuned-out channel, stamped `metadata.tuneOut` as it came in. The
|
|
68
74
|
* store keeps it, but no resident is shown the row itself: no resident's
|
|
69
|
-
* compiled view includes it, during the tune-out or after it
|
|
70
|
-
* resident's tool boundary of a turn alive
|
|
71
|
-
*
|
|
75
|
+
* compiled view includes it, during the tune-out or after it. It is
|
|
76
|
+
* stored as any write is, and a resident's tool boundary of a turn alive
|
|
77
|
+
* when it arrived doesn't inject it into the live turn. The subconscious
|
|
78
|
+
* reads it. Its
|
|
72
79
|
* text can still reach a resident in rows of their own, which aren't
|
|
73
80
|
* marked, such as the
|
|
74
81
|
* cancel's `<tuned-out-backlog>` row, with the text of the tune-out's newest
|
|
75
82
|
* messages, up to `backlogCap` of them and as many as fit in one of the
|
|
76
|
-
* residents' messages
|
|
77
|
-
*
|
|
83
|
+
* residents' messages; what the subconscious says of it, in its report or
|
|
84
|
+
* its note; and the
|
|
78
85
|
* result of a tool that reads history on request, such as a
|
|
79
86
|
* channel's `fetch_history` or the history module's `extract`. A module
|
|
80
87
|
* that builds on what the residents see, such as one choosing from the
|
|
81
88
|
* recent conversation, leaves a marked row out, and one that matches
|
|
82
|
-
* what's stored, such as a sync's dedupe, keeps it. A
|
|
83
|
-
* is marked too
|
|
89
|
+
* what's stored, such as a sync's dedupe, keeps it. A row a suppress rule
|
|
90
|
+
* hid (`metadata.suppressed`) is marked too: no view shows it, the
|
|
91
|
+
* subconscious's included, and no window presents it, so once the
|
|
92
|
+
* agent's window is written down it reads `held` too. Absent on every
|
|
93
|
+
* other row.
|
|
84
94
|
*/
|
|
85
95
|
heldFromResidents?: true;
|
|
86
96
|
};
|
|
@@ -88,9 +98,8 @@ export type ModuleMessage = StoredMessage & {
|
|
|
88
98
|
* Result of a message query.
|
|
89
99
|
*/
|
|
90
100
|
export interface MessageQueryResult {
|
|
91
|
-
/** The matching stored rows,
|
|
92
|
-
*
|
|
93
|
-
* in a reversed query */
|
|
101
|
+
/** The matching stored rows, in store order (newest first in a reversed
|
|
102
|
+
* query), each marked as ModuleMessage says. */
|
|
94
103
|
messages: ModuleMessage[];
|
|
95
104
|
totalCount: number;
|
|
96
105
|
}
|
|
@@ -255,9 +264,10 @@ export interface AgentSettingsExtension {
|
|
|
255
264
|
* nothing.
|
|
256
265
|
*
|
|
257
266
|
* Its reads (`getState`, `getLog`, `getLogLength`, `getMessage`,
|
|
258
|
-
* `queryMessages`, `getAgents`, `getActiveTools`, `findMessageByExternalId
|
|
259
|
-
*
|
|
260
|
-
*
|
|
267
|
+
* `queryMessages`, `getAgents`, `getActiveTools`, `findMessageByExternalId`,
|
|
268
|
+
* and the window lookups `windowStatusOf`, `observes`, `viewKeeps` and
|
|
269
|
+
* `agentNameOf` where the framework offers them) answer, and fail, as
|
|
270
|
+
* before. The framework calls none of the
|
|
261
271
|
* module's `onProcess`, `onAgentSpeech` and `onToolBatchComplete` again; it
|
|
262
272
|
* drops whole a response of its that hadn't been applied by then, with a line
|
|
263
273
|
* naming what the response asked for if it asked for anything; and it leaves
|
|
@@ -345,20 +355,44 @@ export interface ModuleContext {
|
|
|
345
355
|
*/
|
|
346
356
|
getModule<T extends Module>(name: string): T | null;
|
|
347
357
|
/**
|
|
348
|
-
* Add a message to the conversation, and answer its id.
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
358
|
+
* Add a message to the conversation, and answer its stored id. The write
|
|
359
|
+
* is stored at once, whatever the agent's turn (#291): it enters the
|
|
360
|
+
* agent's window at the agent's next presentation point, or at once while
|
|
361
|
+
* no turn of it is alive, and until then reads mark it `held`
|
|
362
|
+
* (ModuleMessage.held). Only while the write is kept in memory is the id
|
|
363
|
+
* '': while an operator's surgery holds the store, stored at the
|
|
364
|
+
* surgery's end, and while the agent's context manager refuses its work
|
|
365
|
+
* after a failed re-initialization, stored when a switchBranch()
|
|
366
|
+
* re-initializes it (a restart loses it; if the agent ends first, it goes
|
|
367
|
+
* to the primary when it is a write the primary takes in its place).
|
|
368
|
+
* Until it lands, such a write can't be read, edited or removed through
|
|
369
|
+
* this context: it has no id, getMessage, editMessage and removeMessage
|
|
370
|
+
* take none for it, and queryMessages and findMessageByExternalId read
|
|
371
|
+
* the store, which doesn't hold it yet. Its release stores it as it was
|
|
372
|
+
* given here. A module that must change it keeps the change and applies
|
|
373
|
+
* it to the row once the row is stored, which the release traces
|
|
374
|
+
* synchronously as `message:added` with source `surgery-release` and the
|
|
375
|
+
* stored id, as the Discord module does for an edit or a delete of a
|
|
376
|
+
* message whose create was kept.
|
|
377
|
+
* Writes a release before #291 held and kept across a restart are
|
|
378
|
+
* stored once create() imports them, which is after every module's
|
|
379
|
+
* start().
|
|
380
|
+
* A write whose store throws after rows of it landed is answered by the
|
|
381
|
+
* first of them, as stored (context-manager's WriteLandedError names
|
|
382
|
+
* them). One whose store throws where the store can't be read to tell
|
|
383
|
+
* what of it landed throws context-manager's WriteOutcomeUnknownError,
|
|
384
|
+
* which names the rows it knows are stored (`landed`, presented as a
|
|
385
|
+
* stored write's rows are) and counts those it can't (`unknown`,
|
|
386
|
+
* `unnamed`): the write may be stored, in part or whole, or not at all,
|
|
387
|
+
* and isn't answered as stored. A read of the store tells, once the store
|
|
388
|
+
* reads: queryMessages, or findMessageByExternalId for a write that
|
|
389
|
+
* carried `metadata.external`. Any other error means none of it is stored.
|
|
356
390
|
*
|
|
357
391
|
* With `opts.forAgent`, it's added to the named agent's window instead: a
|
|
358
392
|
* conversation fork's or a running sub-agent's own store, or, for an
|
|
359
|
-
* ordinary resident, the residents' shared slot. It
|
|
360
|
-
* agent's
|
|
361
|
-
* primary's
|
|
393
|
+
* ordinary resident, the residents' shared slot. It enters that agent's
|
|
394
|
+
* window at that agent's points, as a write for the primary does at the
|
|
395
|
+
* primary's. A name that isn't a registered agent when the write is
|
|
362
396
|
* made, or the empty name, throws, naming the registered ones, so a write
|
|
363
397
|
* for a launcher that has gone is heard. For an ephemeral run (a
|
|
364
398
|
* sub-agent's run) or a conversation fork, whose window nothing reads
|
|
@@ -377,12 +411,17 @@ export interface ModuleContext {
|
|
|
377
411
|
* failed reply, or a channel notice its reader could act on). getMessage,
|
|
378
412
|
* editMessage and removeMessage read the delivery agent's window (the
|
|
379
413
|
* primary's, or the first agent's when none is primary): they don't take
|
|
380
|
-
* an id
|
|
414
|
+
* an id for a row in a fork's or a sub-agent's window, and don't
|
|
381
415
|
* find it (read it with queryMessages and the same forAgent). The
|
|
382
416
|
* residents' shared slot is the primary's window too, for a primary
|
|
383
417
|
* that's an ordinary resident, so there they do.
|
|
384
418
|
* `metadata.external` with a target throws: its id map is read in the
|
|
385
|
-
* primary's window.
|
|
419
|
+
* primary's window. The row is stamped (`metadata.audience`, #291) for
|
|
420
|
+
* the agent named, or, with no agent named, for the agents that take
|
|
421
|
+
* untargeted inbound in the slot it lands in: every resident on a
|
|
422
|
+
* residents' host. A row a suppress rule took is stamped for nobody, and
|
|
423
|
+
* one carrying a tune-out's hold for nobody but a named agent whose view
|
|
424
|
+
* keeps held traffic (the persistent subconscious).
|
|
386
425
|
*/
|
|
387
426
|
addMessage(participant: string, content: ContentBlock[], metadata?: MessageMetadata & {
|
|
388
427
|
external?: ExternalIdRef;
|
|
@@ -390,44 +429,49 @@ export interface ModuleContext {
|
|
|
390
429
|
forAgent?: string;
|
|
391
430
|
}): MessageId;
|
|
392
431
|
/**
|
|
393
|
-
* Edit a message, by its id
|
|
394
|
-
*
|
|
395
|
-
*
|
|
396
|
-
*
|
|
432
|
+
* Edit a stored message, by its id. An edit of a row an agent's window
|
|
433
|
+
* holds changes what that agent's next compile sends, as for any stored
|
|
434
|
+
* row. For one release it also takes the `held:` handle a release before
|
|
435
|
+
* #291 answered for a write it held, and edits the row that write landed
|
|
436
|
+
* as.
|
|
397
437
|
*/
|
|
398
438
|
editMessage(id: MessageId, content: ContentBlock[]): void;
|
|
399
439
|
/**
|
|
400
|
-
* Remove a message, by its id
|
|
401
|
-
*
|
|
402
|
-
*
|
|
403
|
-
* with nothing changed.
|
|
440
|
+
* Remove a stored message, by its id. For one release it also takes the
|
|
441
|
+
* `held:` handle a release before #291 answered for a write it held, and
|
|
442
|
+
* removes the row that write landed as.
|
|
404
443
|
*/
|
|
405
444
|
removeMessage(id: MessageId): void;
|
|
406
445
|
/**
|
|
407
446
|
* Find the message for an external ID this context added a message under:
|
|
408
|
-
* the row it added, while the store holds it. For a write
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
*
|
|
447
|
+
* the row it added, while the store holds it. For a write whose id this
|
|
448
|
+
* context doesn't keep (one kept in memory, by an operator's surgery or
|
|
449
|
+
* for its agent's recovery, one whose store threw where context-manager
|
|
450
|
+
* couldn't tell whether it landed (WriteOutcomeUnknownError), or one a
|
|
451
|
+
* release before #291 held, whose map it kept as ''), the first row the
|
|
452
|
+
* store shows under that external ID. Null when this context added none under
|
|
453
|
+
* it, when the row it added is gone, or when the store shows none for
|
|
454
|
+
* such a write, as for one an earlier release left queued, looked up in
|
|
455
|
+
* start() before create() imports it.
|
|
414
456
|
*/
|
|
415
457
|
findMessageByExternalId(source: string, externalId: string): MessageId | null;
|
|
416
458
|
/**
|
|
417
|
-
* Get a message by its id
|
|
418
|
-
*
|
|
419
|
-
*
|
|
459
|
+
* Get a stored message by its id, marked as ModuleMessage says: `held`
|
|
460
|
+
* when it isn't in the delivery agent's window, `heldFromResidents` when a
|
|
461
|
+
* tune-out or a suppress rule holds it from the residents. For one release
|
|
462
|
+
* it also takes the `held:` handle a release before #291 answered, and
|
|
463
|
+
* gives the row that write landed as.
|
|
420
464
|
*/
|
|
421
465
|
getMessage(id: MessageId): ModuleMessage | null;
|
|
422
466
|
/**
|
|
423
467
|
* Query messages by filter criteria.
|
|
424
468
|
* Useful for finding messages from external sources, by participant, etc.
|
|
425
|
-
* The rows
|
|
426
|
-
* the
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
469
|
+
* The rows come in store order, each marked as ModuleMessage says: `held`
|
|
470
|
+
* when it isn't in the window of the agent the read is for (stored and not
|
|
471
|
+
* yet presented to it, or undone), and `heldFromResidents` when a tune-out
|
|
472
|
+
* or a suppress rule holds it from the residents. Writes a release before
|
|
473
|
+
* #291 left queued show once create() has imported them, after every
|
|
474
|
+
* module's start() (addMessage).
|
|
431
475
|
*
|
|
432
476
|
* It reads the primary's window (the first registered agent's when none
|
|
433
477
|
* is primary), or with `opts.forAgent`, the named agent's: a conversation
|
|
@@ -441,6 +485,67 @@ export interface ModuleContext {
|
|
|
441
485
|
queryMessages(filter: MessageQuery, opts?: {
|
|
442
486
|
forAgent?: string;
|
|
443
487
|
}): MessageQueryResult;
|
|
488
|
+
/**
|
|
489
|
+
* Where a stored row stands with an agent's window (#291), the rows its
|
|
490
|
+
* requests are given, before its view's filter (context-manager's
|
|
491
|
+
* `windowStatusOf`): `'in'` when the window holds it, which is every row
|
|
492
|
+
* its record holds while the window is still the record; `'undone'` when
|
|
493
|
+
* it was taken out as an undone turn's, or shed after a refusal; `'out'`
|
|
494
|
+
* when it is stored and not in the window (not presented to the agent
|
|
495
|
+
* yet, or taken back to arrived); `'absent'` when the agent's record
|
|
496
|
+
* doesn't hold it (removed, never stored on its branch, or in a slot it
|
|
497
|
+
* doesn't read). For the delivery agent (the primary's, or the first
|
|
498
|
+
* agent's when none is primary), or with `opts.forAgent`, the named
|
|
499
|
+
* agent, which must be registered, as for queryMessages: a name that
|
|
500
|
+
* isn't throws. A tool that reads the record for an agent, such as the
|
|
501
|
+
* history module's, says with it, and with viewKeeps, which of the rows it
|
|
502
|
+
* returns the agent isn't being shown.
|
|
503
|
+
*
|
|
504
|
+
* Optional: a framework from before the presentation index, or a host's
|
|
505
|
+
* own context, doesn't offer it. Call as `ctx.windowStatusOf?.(...)`.
|
|
506
|
+
*/
|
|
507
|
+
windowStatusOf?(id: MessageId, opts?: {
|
|
508
|
+
forAgent?: string;
|
|
509
|
+
}): WindowStatus;
|
|
510
|
+
/**
|
|
511
|
+
* Whether `observer` reads `observed`'s own rows through an observe edge
|
|
512
|
+
* (dendrite's relationships): one of its edges reads another slot
|
|
513
|
+
* `observed` owns, or names `observed` and reads the observer's own slot
|
|
514
|
+
* (a resident's `AgentConfig.observes`). Seeing another agent's rounds is
|
|
515
|
+
* a declared relationship (#291, decision 1): an observe edge, which a
|
|
516
|
+
* resident's configuration declares with `observes`, so a tool that reads
|
|
517
|
+
* the record for an agent leaves out another agent's own rows it isn't
|
|
518
|
+
* shown unless this is true.
|
|
519
|
+
* False for a name the registry doesn't know. Optional, as
|
|
520
|
+
* windowStatusOf is, and offered with it.
|
|
521
|
+
*/
|
|
522
|
+
observes?(observer: string, observed: string): boolean;
|
|
523
|
+
/**
|
|
524
|
+
* Whether an agent's view keeps a stored row (#291): whether its requests
|
|
525
|
+
* carry the row, as its strategy renders it (a row it has folded, as that
|
|
526
|
+
* summary), while its window holds it. windowStatusOf answers before
|
|
527
|
+
* the view's filter, and a window written down from the record the
|
|
528
|
+
* residents share can hold rows the view never sends: another agent's
|
|
529
|
+
* stored context injection, and, for an agent whose view leaves held
|
|
530
|
+
* traffic out (a resident), a row a tune-out holds from the residents. A
|
|
531
|
+
* row the agent is shown is one windowStatusOf reads `'in'` and this
|
|
532
|
+
* keeps. It reads the view the agent's context was opened with
|
|
533
|
+
* (context-options.ts), for the delivery agent, or with `opts.forAgent`
|
|
534
|
+
* the named agent, which must be registered, as for windowStatusOf: a name
|
|
535
|
+
* that isn't throws. Optional, as windowStatusOf is, and offered with it.
|
|
536
|
+
*/
|
|
537
|
+
viewKeeps?(row: StoredMessage, opts?: {
|
|
538
|
+
forAgent?: string;
|
|
539
|
+
}): boolean;
|
|
540
|
+
/**
|
|
541
|
+
* The live agent whose context `contextManager` is (the one its
|
|
542
|
+
* `getContextManager()` returns), or undefined when it is no live
|
|
543
|
+
* agent's (#291). A module a host binds to an agent's context, as it binds
|
|
544
|
+
* the history module, reads that context's record and summaries; this
|
|
545
|
+
* says whose they are, so another agent's call can be told from that
|
|
546
|
+
* agent's own. Optional, as windowStatusOf is, and offered with it.
|
|
547
|
+
*/
|
|
548
|
+
agentNameOf?(contextManager: ContextManager): string | undefined;
|
|
444
549
|
/**
|
|
445
550
|
* Get info about all agents.
|
|
446
551
|
*/
|
|
@@ -586,17 +691,23 @@ export type AgentStatus = 'idle' | 'inferring' | 'streaming' | 'waiting_for_tool
|
|
|
586
691
|
*/
|
|
587
692
|
export interface EventResponse {
|
|
588
693
|
/**
|
|
589
|
-
* Messages to add to the conversation.
|
|
694
|
+
* Messages to add to the conversation. Each row says who it is for in
|
|
695
|
+
* `metadata.audience` (#291): the agents a `requestInference` list names
|
|
696
|
+
* that are registered and read the slot the row lands in (the agent the
|
|
697
|
+
* row is delivered to, when none of them is registered); for `true`, no
|
|
698
|
+
* request, or a list whose registered agents don't read that slot (an
|
|
699
|
+
* isolated job, a conversation fork), as for any write that names no
|
|
700
|
+
* agent, the agents that take untargeted inbound in the slot it lands in
|
|
701
|
+
* (every resident on a residents' host). A message that carries a
|
|
702
|
+
* tune-out's hold is for nobody.
|
|
590
703
|
*/
|
|
591
704
|
addMessages?: NewMessage[];
|
|
592
705
|
/**
|
|
593
|
-
* Messages to edit, each by its id
|
|
594
|
-
* (ModuleContext.editMessage).
|
|
706
|
+
* Messages to edit, each by its stored id (ModuleContext.editMessage).
|
|
595
707
|
*/
|
|
596
708
|
editMessages?: MessageEdit[];
|
|
597
709
|
/**
|
|
598
|
-
* Messages to remove, each by its id
|
|
599
|
-
* (ModuleContext.removeMessage).
|
|
710
|
+
* Messages to remove, each by its stored id (ModuleContext.removeMessage).
|
|
600
711
|
*/
|
|
601
712
|
removeMessages?: MessageId[];
|
|
602
713
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/types/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,aAAa,EACb,gBAAgB,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/types/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,YAAY,EACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kHAAkH;IAClH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,iCAAiC;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