@deepagents/experimental 6.1.0 → 7.0.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 +151 -10
- package/dist/coding-agent-reminders/types.d.ts.map +1 -1
- package/dist/index.js +3084 -1206
- package/dist/index.js.map +4 -4
- package/dist/providers/claude/index.d.ts +4 -0
- package/dist/providers/claude/index.d.ts.map +1 -0
- package/dist/providers/claude/index.js +196 -0
- package/dist/providers/claude/index.js.map +7 -0
- package/dist/providers/claude/local-credentials.d.ts +3 -0
- package/dist/providers/claude/local-credentials.d.ts.map +1 -0
- package/dist/providers/codex/generate-via-stream.d.ts +8 -0
- package/dist/providers/codex/generate-via-stream.d.ts.map +1 -0
- package/dist/providers/codex/index.d.ts +4 -0
- package/dist/providers/codex/index.d.ts.map +1 -0
- package/dist/providers/codex/index.js +358 -0
- package/dist/providers/codex/index.js.map +7 -0
- package/dist/providers/codex/local-credentials.d.ts +4 -0
- package/dist/providers/codex/local-credentials.d.ts.map +1 -0
- package/dist/providers/language-model-provider.d.ts +5 -0
- package/dist/providers/language-model-provider.d.ts.map +1 -0
- package/dist/zukhruf/agent.d.ts +17 -2
- package/dist/zukhruf/agent.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/agent-tool-context.d.ts +2 -2
- package/dist/zukhruf/collaboration/agent-tool-context.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts +1807 -3
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/spawn-agent.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/wait-agent.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/agent-control-plane.d.ts +6 -7
- package/dist/zukhruf/control-plane/agent-control-plane.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/agent-declaration-registry.d.ts +1 -0
- package/dist/zukhruf/control-plane/agent-declaration-registry.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/agent-status-projector.d.ts +6 -3
- package/dist/zukhruf/control-plane/agent-status-projector.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/agent-thread.d.ts.map +1 -1
- package/dist/zukhruf/index.d.ts +7 -3
- package/dist/zukhruf/index.d.ts.map +1 -1
- package/dist/zukhruf/index.js +3085 -1207
- package/dist/zukhruf/index.js.map +4 -4
- package/dist/zukhruf/{multi-agent-v2-config.d.ts → multi-agent-config.d.ts} +14 -9
- package/dist/zukhruf/multi-agent-config.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts +76 -0
- package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/index.d.ts +13 -0
- package/dist/zukhruf/plugins/conversation-scheduling/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/index.js +999 -0
- package/dist/zukhruf/plugins/conversation-scheduling/index.js.map +7 -0
- package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts +19 -0
- package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/tools.d.ts +1305 -0
- package/dist/zukhruf/plugins/conversation-scheduling/tools.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts +12 -0
- package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts.map +1 -0
- package/dist/zukhruf/plugins/http/index.d.ts +50 -0
- package/dist/zukhruf/plugins/http/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/http/index.js +618 -0
- package/dist/zukhruf/plugins/http/index.js.map +7 -0
- package/dist/zukhruf/plugins/http/parse.d.ts +3 -0
- package/dist/zukhruf/plugins/http/parse.d.ts.map +1 -0
- package/dist/zukhruf/plugins/http/validator.d.ts +64 -0
- package/dist/zukhruf/plugins/http/validator.d.ts.map +1 -0
- package/dist/zukhruf/plugins/mcp/index.d.ts +8 -0
- package/dist/zukhruf/plugins/mcp/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/mcp/index.js +25 -0
- package/dist/zukhruf/plugins/mcp/index.js.map +7 -0
- package/dist/zukhruf/plugins/schedules/http.d.ts +45 -0
- package/dist/zukhruf/plugins/schedules/http.d.ts.map +1 -0
- package/dist/zukhruf/plugins/schedules/http.js +528 -0
- package/dist/zukhruf/plugins/schedules/http.js.map +7 -0
- package/dist/zukhruf/plugins/schedules/index.d.ts +35 -0
- package/dist/zukhruf/plugins/schedules/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/schedules/index.js +1873 -0
- package/dist/zukhruf/plugins/schedules/index.js.map +7 -0
- package/dist/zukhruf/plugins/schedules/schedule-files.d.ts +6 -0
- package/dist/zukhruf/plugins/schedules/schedule-files.d.ts.map +1 -0
- package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts +157 -0
- package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts.map +1 -0
- package/dist/zukhruf/plugins/uploads/http.d.ts +27 -0
- package/dist/zukhruf/plugins/uploads/http.d.ts.map +1 -0
- package/dist/zukhruf/plugins/uploads/http.js +426 -0
- package/dist/zukhruf/plugins/uploads/http.js.map +7 -0
- package/dist/zukhruf/plugins/uploads/index.d.ts +73 -0
- package/dist/zukhruf/plugins/uploads/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/uploads/index.js +247 -0
- package/dist/zukhruf/plugins/uploads/index.js.map +7 -0
- package/dist/zukhruf/queue/pg-boss-notifications.d.ts +10 -0
- package/dist/zukhruf/queue/pg-boss-notifications.d.ts.map +1 -0
- package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts +8 -11
- package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/queue/turn-queue.d.ts +43 -38
- package/dist/zukhruf/queue/turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/runtime/agent-runtime.d.ts +163 -43
- package/dist/zukhruf/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts +9 -2
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts.map +1 -1
- package/dist/zukhruf/runtime/approval-controller.d.ts +10 -25
- package/dist/zukhruf/runtime/approval-controller.d.ts.map +1 -1
- package/dist/zukhruf/runtime/compaction.d.ts +47 -0
- package/dist/zukhruf/runtime/compaction.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/change-source.d.ts +19 -0
- package/dist/zukhruf/runtime/conversation-status/change-source.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/child-progress.d.ts +84 -0
- package/dist/zukhruf/runtime/conversation-status/child-progress.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/pg-boss-change-source.d.ts +22 -0
- package/dist/zukhruf/runtime/conversation-status/pg-boss-change-source.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/projector.d.ts +62 -0
- package/dist/zukhruf/runtime/conversation-status/projector.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/status-publishing-turn-queue.d.ts +20 -0
- package/dist/zukhruf/runtime/conversation-status/status-publishing-turn-queue.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/agent-skills.d.ts +22 -0
- package/dist/zukhruf/runtime/plugin/agent-skills.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-agents.d.ts +14 -0
- package/dist/zukhruf/runtime/plugin/plugin-agents.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-bindings.d.ts +8 -0
- package/dist/zukhruf/runtime/plugin/plugin-bindings.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-context-composition.d.ts +7 -0
- package/dist/zukhruf/runtime/plugin/plugin-context-composition.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts +38 -0
- package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-tool-composition.d.ts +10 -0
- package/dist/zukhruf/runtime/plugin/plugin-tool-composition.d.ts.map +1 -0
- package/dist/zukhruf/tool.d.ts +5 -1
- package/dist/zukhruf/tool.d.ts.map +1 -1
- package/package.json +74 -6
- package/dist/zukhruf/multi-agent-v2-config.d.ts.map +0 -1
- package/dist/zukhruf/runtime/agent-skills.d.ts +0 -9
- package/dist/zukhruf/runtime/agent-skills.d.ts.map +0 -1
- package/dist/zukhruf/runtime/approval-job-id.d.ts +0 -3
- package/dist/zukhruf/runtime/approval-job-id.d.ts.map +0 -1
|
@@ -1,34 +1,40 @@
|
|
|
1
|
+
import type { UIMessage } from 'ai';
|
|
2
|
+
import type { ElementDescriptor } from '@deepagents/elements';
|
|
3
|
+
import type { ClientToolSet } from '../tool.ts';
|
|
4
|
+
export type TurnRequest = {
|
|
5
|
+
/** Client-declared tools available to the model and completed by that client. */
|
|
6
|
+
tools?: ClientToolSet;
|
|
7
|
+
/**
|
|
8
|
+
* Interactive-element catalog declared by the client. When present it
|
|
9
|
+
* overwrites the chat's durable catalog snapshot (an empty array clears
|
|
10
|
+
* it); when absent the turn inherits the stored snapshot, so recovery and
|
|
11
|
+
* later turns keep rendering with the same catalog.
|
|
12
|
+
*/
|
|
13
|
+
elements?: ElementDescriptor[];
|
|
14
|
+
} & ({
|
|
15
|
+
message: UIMessage & {
|
|
16
|
+
role: 'user';
|
|
17
|
+
};
|
|
18
|
+
trigger: 'submit-message' | 'regenerate-message';
|
|
19
|
+
} | {
|
|
20
|
+
message: UIMessage & {
|
|
21
|
+
role: 'assistant';
|
|
22
|
+
};
|
|
23
|
+
trigger: 'submit-message';
|
|
24
|
+
});
|
|
1
25
|
export type TurnRef = {
|
|
2
26
|
streamId: string;
|
|
3
27
|
chatId: string;
|
|
4
28
|
userId: string;
|
|
5
|
-
} & ({
|
|
6
|
-
kind: '
|
|
29
|
+
} & (({
|
|
30
|
+
kind: 'message';
|
|
31
|
+
} & TurnRequest) | {
|
|
7
32
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* persistence would let a queued turn's message leak into the running
|
|
11
|
-
* turn's prompt (and `chat()` streams into the chain head, which must
|
|
12
|
-
* be THIS turn's placeholder).
|
|
33
|
+
* Internal re-execution of an existing assistant stream after a worker
|
|
34
|
+
* handoff or a proven-idempotent tool failure.
|
|
13
35
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Recovery-only re-execution of an existing stream. Normal approval
|
|
18
|
-
* responses resume directly inside their approval job.
|
|
19
|
-
*/
|
|
20
|
-
kind: 'continuation';
|
|
21
|
-
recovery?: 'handoff' | 'idempotent';
|
|
22
|
-
} | {
|
|
23
|
-
kind: 'approval';
|
|
24
|
-
toolCallId: string;
|
|
25
|
-
approvalId: string;
|
|
26
|
-
decision: {
|
|
27
|
-
approved: true;
|
|
28
|
-
} | {
|
|
29
|
-
approved: false;
|
|
30
|
-
reason?: string;
|
|
31
|
-
};
|
|
36
|
+
kind: 'recovery';
|
|
37
|
+
mode: 'handoff' | 'idempotent';
|
|
32
38
|
} | {
|
|
33
39
|
/**
|
|
34
40
|
* A mailbox wake-up. The communication payload remains in MailboxStore;
|
|
@@ -36,13 +42,6 @@ export type TurnRef = {
|
|
|
36
42
|
*/
|
|
37
43
|
kind: 'mailbox';
|
|
38
44
|
});
|
|
39
|
-
export interface TurnPushResult {
|
|
40
|
-
jobId: string;
|
|
41
|
-
inserted: boolean;
|
|
42
|
-
}
|
|
43
|
-
export type ApprovalTurnRef = Extract<TurnRef, {
|
|
44
|
-
kind: 'approval';
|
|
45
|
-
}>;
|
|
46
45
|
export interface ConsumeContext {
|
|
47
46
|
signal: AbortSignal;
|
|
48
47
|
/**
|
|
@@ -55,12 +54,19 @@ export interface ConsumeContext {
|
|
|
55
54
|
export interface ConsumeOptions {
|
|
56
55
|
/** Max turns processed concurrently by this consumer (across chats). */
|
|
57
56
|
concurrency?: number;
|
|
57
|
+
/** Wait for active handlers and settlement on disposal; otherwise only stop new claims. */
|
|
58
|
+
waitForActive?: boolean;
|
|
58
59
|
/**
|
|
59
60
|
* Fires for a turn whose handler crashed or whose worker died mid-turn.
|
|
60
61
|
* After it resolves, the turn's chat is unblocked and its next queued
|
|
61
62
|
* turn becomes eligible.
|
|
62
63
|
*/
|
|
63
64
|
onOrphaned: (turn: TurnRef, error: string) => Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Runs after a non-parked turn releases its conversation's FIFO ownership.
|
|
67
|
+
* Implementations report failures without rolling back the settled turn.
|
|
68
|
+
*/
|
|
69
|
+
onSettled?: (turn: TurnRef) => Promise<void>;
|
|
64
70
|
}
|
|
65
71
|
export type TurnActivity = 'idle' | 'queued' | 'running';
|
|
66
72
|
/**
|
|
@@ -68,17 +74,16 @@ export type TurnActivity = 'idle' | 'queued' | 'running';
|
|
|
68
74
|
*
|
|
69
75
|
* Contract every implementation must honor:
|
|
70
76
|
* - `push` is durable: a pushed turn survives process death until consumed.
|
|
71
|
-
* - Delivery is AT-LEAST-ONCE: a pushed
|
|
77
|
+
* - Delivery is AT-LEAST-ONCE: a pushed turn is delivered until settled, and
|
|
72
78
|
* duplicate pushes of the same `streamId` may each be delivered. Consumers
|
|
73
79
|
* MUST be idempotent on `streamId` (the zukhruf runtime skips turns whose
|
|
74
80
|
* stream row is terminal — a check that, unlike queue-side dedup, never
|
|
75
81
|
* expires with job retention).
|
|
76
|
-
* - Approval pushes use their persisted approval id as a deterministic job
|
|
77
|
-
* identity. The first decision inserts; later decisions for that approval
|
|
78
|
-
* report the existing job instead of adding a row.
|
|
79
82
|
* - Per chat, at most ONE handler invocation is active at a time, and turns
|
|
80
83
|
* run in the order they were pushed (strict FIFO per `chatId`) — this
|
|
81
84
|
* covers duplicates too: they can never run concurrently or out of order.
|
|
85
|
+
* - After a non-parked job releases its FIFO ownership, `consume` invokes the
|
|
86
|
+
* optional `onSettled` hook before considering that delivery complete.
|
|
82
87
|
* - Turns from different chats may run concurrently.
|
|
83
88
|
* - `getTurnActivity` distinguishes queued from active scheduler work for
|
|
84
89
|
* status inspection; adapters must not silently fall back to stale history.
|
|
@@ -94,13 +99,13 @@ export type TurnActivity = 'idle' | 'queued' | 'running';
|
|
|
94
99
|
* authority.
|
|
95
100
|
* - A parked turn (`context.park()`) is not delivered again until
|
|
96
101
|
* `resumeParked(chatId)`; revived turns keep their original FIFO order,
|
|
97
|
-
* and
|
|
102
|
+
* and recovery turns pushed for the chat outrank them.
|
|
98
103
|
*
|
|
99
104
|
* On platforms with native per-conversation serialization (e.g. Durable
|
|
100
105
|
* Objects) this port is absorbed by the host rather than implemented.
|
|
101
106
|
*/
|
|
102
107
|
export declare abstract class TurnQueue {
|
|
103
|
-
abstract push(turn: TurnRef): Promise<
|
|
108
|
+
abstract push(turn: TurnRef): Promise<void>;
|
|
104
109
|
/** Whether this conversation currently has queued or active scheduler work. */
|
|
105
110
|
abstract getTurnActivity(conversation: Pick<TurnRef, 'chatId' | 'userId'>): Promise<TurnActivity>;
|
|
106
111
|
/** Active turn, or the oldest eligible queued turn, for a conversation. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-queue.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/queue/turn-queue.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"turn-queue.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/queue/turn-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG;IACxB,iFAAiF;IACjF,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAChC,GAAG,CACA;IACE,OAAO,EA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CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3C,+EAA+E;IAC/E,QAAQ,CAAC,eAAe,CACtB,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAC/C,OAAO,CAAC,YAAY,CAAC;IAExB,2EAA2E;IAC3E,QAAQ,CAAC,cAAc,CACrB,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAC/C,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAE/B,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAEhD,QAAQ,CAAC,OAAO,CACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,EAClE,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC;IAE3B,QAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CACrD"}
|
|
@@ -1,64 +1,184 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
1
|
+
import type { Telemetry } from 'ai';
|
|
2
|
+
import { ContextEngine, type ContextStore, type StreamManager, type StreamPart, type StreamStatus } from '@deepagents/context';
|
|
3
|
+
import type { AgentDeclaration, ZukhrufSandbox } from '../agent.ts';
|
|
4
|
+
import { AgentDirectory } from '../control-plane/agent-directory.ts';
|
|
4
5
|
import type { MailboxStore } from '../mailbox/store.ts';
|
|
5
6
|
import type { ConversationId, InterAgentCommunication, MessageDeliveryMode } from '../mailbox/types.ts';
|
|
6
|
-
import { type
|
|
7
|
-
import type { TurnQueue } from '../queue/turn-queue.ts';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
import { type MultiAgentHostConfig } from '../multi-agent-config.ts';
|
|
8
|
+
import type { TurnQueue, TurnRequest } from '../queue/turn-queue.ts';
|
|
9
|
+
import type { ZukhrufToolSet } from '../tool.ts';
|
|
10
|
+
import type { ConversationStatusChangeSource } from './conversation-status/change-source.ts';
|
|
11
|
+
import type { ChildProgress } from './conversation-status/child-progress.ts';
|
|
12
|
+
import { type ConversationStatus, type ConversationStatusEvent } from './conversation-status/projector.ts';
|
|
13
|
+
export interface AgentPluginToolContext extends Readonly<Record<string, unknown>> {
|
|
14
|
+
readonly conversation: ConversationId;
|
|
15
|
+
/** Root conversation id of this agent tree, which is the session id per-conversation plugin state is scoped by. */
|
|
16
|
+
readonly treeId: string;
|
|
17
|
+
readonly streamId: string;
|
|
18
|
+
readonly agentName: string;
|
|
19
|
+
readonly agentPath: string;
|
|
20
|
+
}
|
|
21
|
+
export interface AgentPluginHost {
|
|
22
|
+
readonly info: AgentRuntimeInfo;
|
|
23
|
+
enqueue(conversation: ConversationId, turn: TurnRequest): Promise<{
|
|
24
|
+
id: string;
|
|
25
|
+
stream: ReadableStream<StreamPart>;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Attach the root agent's sandbox for `conversation`. The handle is
|
|
29
|
+
* borrowed: a plugin must never dispose it. The backend is named by
|
|
30
|
+
* `chatId` and re-attached across turns, workers, and restarts (see
|
|
31
|
+
* `SandboxContext` in `agent.ts`), so this works before the conversation
|
|
32
|
+
* exists.
|
|
33
|
+
*/
|
|
34
|
+
sandbox(conversation: ConversationId): Promise<ZukhrufSandbox>;
|
|
35
|
+
conversationExists(conversation: ConversationId): Promise<boolean>;
|
|
36
|
+
isConversationAvailable(conversation: ConversationId): Promise<boolean>;
|
|
37
|
+
readConversationMetadata(conversation: ConversationId): Promise<Record<string, unknown> | undefined>;
|
|
38
|
+
updateConversationMetadata(conversation: ConversationId, update: (metadata: Record<string, unknown> | undefined) => Record<string, unknown>): Promise<void>;
|
|
39
|
+
listHistory(): Promise<readonly AgentHistoryItem[]>;
|
|
40
|
+
observe(conversation: ConversationId): AgentObservation;
|
|
41
|
+
/** Status changes observed by this process; ends when `signal` aborts. */
|
|
42
|
+
subscribeConversationStatus(signal: AbortSignal): Promise<AsyncIterable<ConversationStatusEvent>>;
|
|
43
|
+
}
|
|
44
|
+
export interface AgentPluginBinding {
|
|
45
|
+
readonly capability: AgentPluginCapability<unknown>;
|
|
46
|
+
readonly value: unknown;
|
|
47
|
+
}
|
|
48
|
+
export declare class AgentPluginCapability<Value> {
|
|
49
|
+
readonly name: string;
|
|
50
|
+
constructor(name: string);
|
|
51
|
+
bind(value: Value): AgentPluginBinding;
|
|
52
|
+
}
|
|
53
|
+
export interface AgentPluginBindings {
|
|
54
|
+
get<Value>(capability: AgentPluginCapability<Value>): Value;
|
|
55
|
+
}
|
|
56
|
+
/** Resources and tools acquired by asynchronous plugin initialization. */
|
|
57
|
+
export interface AgentPluginInitialization extends AsyncDisposable {
|
|
58
|
+
readonly tools?: ZukhrufToolSet;
|
|
59
|
+
}
|
|
60
|
+
export interface AgentPluginInstance {
|
|
61
|
+
readonly tools?: ZukhrufToolSet;
|
|
62
|
+
/** Per-turn AI SDK telemetry integration contributed by this plugin. */
|
|
63
|
+
telemetry?(context: AgentPluginToolContext): Telemetry;
|
|
64
|
+
/** Directories whose immediate Markdown files declare plugin-scoped agents. */
|
|
65
|
+
readonly agents?: readonly (string | URL)[];
|
|
66
|
+
/** Skill directories available for agents to select by frontmatter name. */
|
|
67
|
+
readonly skills?: readonly (string | URL)[];
|
|
68
|
+
/** Static namespaced context merged into every model call made by this runtime. */
|
|
69
|
+
readonly runtimeContext?: Readonly<Record<string, unknown>>;
|
|
70
|
+
configure?(root: AgentDeclaration): AgentDeclaration;
|
|
71
|
+
initialize?(host: AgentPluginHost): Promise<void | AgentPluginInitialization>;
|
|
72
|
+
/** Hosts wait for active plugin work before releasing infrastructure. */
|
|
73
|
+
work?(host: AgentPluginHost, waitForActive?: boolean): Promise<AsyncDisposable>;
|
|
74
|
+
conversationAvailable?(host: AgentPluginHost, conversation: ConversationId): Promise<void>;
|
|
75
|
+
}
|
|
76
|
+
export interface AgentPluginDefinition<Instance extends object = object> {
|
|
77
|
+
readonly name: string;
|
|
78
|
+
readonly capabilities?: readonly AgentPluginCapability<unknown>[];
|
|
79
|
+
create(bindings: AgentPluginBindings): AgentPluginInstance & Instance;
|
|
17
80
|
}
|
|
18
81
|
export interface AgentRuntimeWorkOptions {
|
|
19
82
|
concurrency?: number;
|
|
20
83
|
}
|
|
84
|
+
export interface AgentRuntimeInfo {
|
|
85
|
+
readonly root: string;
|
|
86
|
+
readonly agents: readonly {
|
|
87
|
+
readonly name: string;
|
|
88
|
+
readonly description?: string;
|
|
89
|
+
readonly plugin?: string;
|
|
90
|
+
readonly model: {
|
|
91
|
+
readonly provider: string;
|
|
92
|
+
readonly modelId: string;
|
|
93
|
+
};
|
|
94
|
+
readonly tools: readonly string[];
|
|
95
|
+
readonly subagents: readonly string[];
|
|
96
|
+
}[];
|
|
97
|
+
}
|
|
98
|
+
export interface AgentHistoryItem {
|
|
99
|
+
readonly chatId: string;
|
|
100
|
+
readonly userId: string;
|
|
101
|
+
readonly title?: string;
|
|
102
|
+
readonly createdAt: number;
|
|
103
|
+
readonly updatedAt: number;
|
|
104
|
+
readonly messageCount: number;
|
|
105
|
+
readonly status: ConversationStatus;
|
|
106
|
+
readonly children?: readonly ChildProgress[];
|
|
107
|
+
}
|
|
108
|
+
export interface AgentTurnStatus {
|
|
109
|
+
status: StreamStatus;
|
|
110
|
+
startedAt: number | null;
|
|
111
|
+
finishedAt: number | null;
|
|
112
|
+
error: string | null;
|
|
113
|
+
}
|
|
114
|
+
interface AgentObservationStatus {
|
|
115
|
+
read: () => Promise<ConversationStatus>;
|
|
116
|
+
publish: () => Promise<void>;
|
|
117
|
+
}
|
|
21
118
|
/** Reconnect and cancellation view over one durable conversation. */
|
|
22
119
|
export declare class AgentObservation {
|
|
23
120
|
#private;
|
|
24
121
|
readonly engine: ContextEngine;
|
|
25
|
-
constructor(conversation: ConversationId, store: ContextStore, streams: StreamManager, queue: TurnQueue);
|
|
26
|
-
|
|
122
|
+
constructor(conversation: ConversationId, store: ContextStore, directory: AgentDirectory, streams: StreamManager, queue: TurnQueue, status: AgentObservationStatus, conversationAvailable?: () => Promise<void>);
|
|
123
|
+
/** Codex-shaped conversation status derived from durable state. */
|
|
124
|
+
conversationStatus(): Promise<ConversationStatus>;
|
|
125
|
+
resume(): Promise<ReadableStream<StreamPart> | null>;
|
|
126
|
+
status(streamId?: string): Promise<AgentTurnStatus | undefined>;
|
|
27
127
|
cancel(streamId?: string): Promise<void>;
|
|
28
128
|
}
|
|
29
|
-
/**
|
|
129
|
+
/** A reusable recipe. Register only resources the returned host should own. */
|
|
130
|
+
export type AgentStack = (resources: AsyncDisposableStack) => Promise<{
|
|
131
|
+
store: ContextStore;
|
|
132
|
+
/** Stream subsystem backed by the adapters composed in this recipe. */
|
|
133
|
+
streams: StreamManager;
|
|
134
|
+
queue: TurnQueue;
|
|
135
|
+
/** Durable pending inter-agent input. Distinct from the TurnQueue scheduler. */
|
|
136
|
+
mailboxStore: MailboxStore;
|
|
137
|
+
/** Codex-compatible multi-agent host guidance and tool configuration. */
|
|
138
|
+
multiAgent?: MultiAgentHostConfig;
|
|
139
|
+
/** Host implementations for capabilities required by root-owned plugins. */
|
|
140
|
+
bindings?: readonly AgentPluginBinding[];
|
|
141
|
+
/**
|
|
142
|
+
* Cross-process conversation status hints. Without it, status changes are
|
|
143
|
+
* observed only by the process where the transition happened.
|
|
144
|
+
*/
|
|
145
|
+
conversationStatusChanges?: ConversationStatusChangeSource;
|
|
146
|
+
}>;
|
|
147
|
+
/** Defines infrastructure without acquiring it; each initialization opens its own scope. */
|
|
148
|
+
export declare function defineStack(create: AgentStack): AgentStack;
|
|
149
|
+
/** Ready operations and ownership, available only after initialize() succeeds. */
|
|
150
|
+
export type AgentHost = Omit<RuntimeHost, 'initialize'>;
|
|
151
|
+
/** Creates independent ready hosts from an agent declaration. */
|
|
30
152
|
export declare class AgentRuntime {
|
|
31
153
|
#private;
|
|
32
|
-
constructor(root: AgentDeclaration
|
|
33
|
-
|
|
154
|
+
constructor(root: AgentDeclaration);
|
|
155
|
+
initialize(stack: AgentStack): Promise<AgentHost>;
|
|
156
|
+
}
|
|
157
|
+
/** Compiles an initialized adapter set and supplies the plugin host. */
|
|
158
|
+
declare class RuntimeHost implements AsyncDisposable {
|
|
159
|
+
#private;
|
|
160
|
+
readonly info: AgentRuntimeInfo;
|
|
161
|
+
constructor(root: AgentDeclaration, options: Awaited<ReturnType<AgentStack>>, resources: AsyncDisposableStack);
|
|
162
|
+
initialize(): Promise<void>;
|
|
163
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
164
|
+
plugin<Instance extends object>(definition: AgentPluginDefinition<Instance>): AgentPluginInstance & Instance;
|
|
165
|
+
createSession(conversation: ConversationId): Promise<void>;
|
|
166
|
+
sessionExists(conversation: ConversationId): Promise<boolean>;
|
|
167
|
+
enqueue(conversation: ConversationId, turn: TurnRequest): Promise<{
|
|
34
168
|
id: string;
|
|
35
|
-
stream: ReadableStream<
|
|
169
|
+
stream: ReadableStream<StreamPart>;
|
|
36
170
|
}>;
|
|
37
171
|
deliver(communication: InterAgentCommunication, mode: MessageDeliveryMode): Promise<void>;
|
|
38
|
-
approve(conversation: ConversationId, input: {
|
|
39
|
-
toolCallId: string;
|
|
40
|
-
}): Promise<{
|
|
41
|
-
id: string;
|
|
42
|
-
jobId: string;
|
|
43
|
-
status: "already-applied";
|
|
44
|
-
} | {
|
|
45
|
-
id: string;
|
|
46
|
-
jobId: string;
|
|
47
|
-
status: "queued" | "already-queued";
|
|
48
|
-
}>;
|
|
49
|
-
deny(conversation: ConversationId, input: {
|
|
50
|
-
toolCallId: string;
|
|
51
|
-
reason?: string;
|
|
52
|
-
}): Promise<{
|
|
53
|
-
id: string;
|
|
54
|
-
jobId: string;
|
|
55
|
-
status: "already-applied";
|
|
56
|
-
} | {
|
|
57
|
-
id: string;
|
|
58
|
-
jobId: string;
|
|
59
|
-
status: "queued" | "already-queued";
|
|
60
|
-
}>;
|
|
61
172
|
observe(conversation: ConversationId): AgentObservation;
|
|
173
|
+
/**
|
|
174
|
+
* Conversation status changes observed by this process, in the shape of
|
|
175
|
+
* Codex's `thread/status/changed`. Execution transitions are observed by the
|
|
176
|
+
* process running `work()`; `observe(...).conversationStatus()` is always
|
|
177
|
+
* authoritative.
|
|
178
|
+
*/
|
|
179
|
+
subscribeConversationStatus(signal: AbortSignal): Promise<AsyncIterable<ConversationStatusEvent>>;
|
|
180
|
+
listHistory(userId?: string): Promise<readonly AgentHistoryItem[]>;
|
|
62
181
|
work(options?: AgentRuntimeWorkOptions): Promise<AsyncDisposable>;
|
|
63
182
|
}
|
|
183
|
+
export {};
|
|
64
184
|
//# sourceMappingURL=agent-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runtime.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/runtime/agent-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"agent-runtime.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/runtime/agent-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,OAAO,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAMrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC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,gBAAgB,CAAC;gBAkB9B,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,EACxC,SAAS,EAAE,oBAAoB;IAsHjC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC,MAAM,CAAC,QAAQ,SAAS,MAAM,EAC5B,UAAU,EAAE,qBAAqB,CAAC,QAAQ,CAAC,GAC1C,mBAAmB,GAAG,QAAQ;IAI3B,aAAa,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,aAAa,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAM7D,OAAO,CAAC,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW;;;;IAKvD,OAAO,CACX,aAAa,EAAE,uBAAuB,EACtC,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,IAAI,CAAC;IAKhB,OAAO,CAAC,YAAY,EAAE,cAAc,GAAG,gBAAgB;IAevD;;;;;OAKG;IACH,2BAA2B,CACzB,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;IA0C5C,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,gBAAgB,EAAE,CAAC;IA+BxE,IAAI,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,eAAe,CAAC;CA4HlE"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { type ContextStore, type StreamManager } from '@deepagents/context';
|
|
2
2
|
import type { AgentControlPlane } from '../control-plane/agent-control-plane.ts';
|
|
3
3
|
import type { MailboxCoordinator } from '../mailbox/coordinator.ts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ConversationId } from '../mailbox/types.ts';
|
|
5
|
+
import type { ResolvedMultiAgentHostConfig } from '../multi-agent-config.ts';
|
|
5
6
|
import type { ConsumeContext, TurnRef } from '../queue/turn-queue.ts';
|
|
6
7
|
import type { ApprovalController } from './approval-controller.ts';
|
|
8
|
+
import type { PluginManager } from './plugin/plugin-manager.ts';
|
|
9
|
+
type TurnPlugins = Pick<PluginManager, 'collaborationTools' | 'tools' | 'skillsByAgent' | 'runtimeContext' | 'configureTelemetry'>;
|
|
7
10
|
export interface AgentTurnExecutorOptions {
|
|
8
11
|
store: ContextStore;
|
|
9
12
|
streams: StreamManager;
|
|
10
13
|
controlPlane: AgentControlPlane;
|
|
11
14
|
mailbox: MailboxCoordinator;
|
|
12
15
|
approvals: ApprovalController;
|
|
13
|
-
|
|
16
|
+
multiAgent: ResolvedMultiAgentHostConfig;
|
|
17
|
+
plugins: TurnPlugins;
|
|
18
|
+
/** Signals that the conversation's status may have changed. Never rejects. */
|
|
19
|
+
publishConversationStatus: (conversation: ConversationId) => Promise<void>;
|
|
14
20
|
}
|
|
15
21
|
/** Executes one queued turn without owning host lifecycle or agent routing. */
|
|
16
22
|
export declare class AgentTurnExecutor {
|
|
@@ -18,4 +24,5 @@ export declare class AgentTurnExecutor {
|
|
|
18
24
|
constructor(options: AgentTurnExecutorOptions);
|
|
19
25
|
execute(turn: TurnRef, context: ConsumeContext): Promise<void>;
|
|
20
26
|
}
|
|
27
|
+
export {};
|
|
21
28
|
//# sourceMappingURL=agent-turn-executor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-turn-executor.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/runtime/agent-turn-executor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-turn-executor.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/runtime/agent-turn-executor.ts"],"names":[],"mappings":"AAUA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,aAAa,EAMnB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAOnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,KAAK,WAAW,GAAG,IAAI,CACrB,aAAa,EACX,oBAAoB,GACpB,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,oBAAoB,CACvB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,aAAa,CAAC;IACvB,YAAY,EAAE,iBAAiB,CAAC;IAChC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,UAAU,EAAE,4BAA4B,CAAC;IACzC,OAAO,EAAE,WAAW,CAAC;IACrB,8EAA8E;IAC9E,yBAAyB,EAAE,CAAC,YAAY,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5E;AAMD,+EAA+E;AAC/E,qBAAa,iBAAiB;;gBAUhB,OAAO,EAAE,wBAAwB;IAWvC,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAocrE"}
|
|
@@ -1,45 +1,30 @@
|
|
|
1
1
|
import { type UIMessage } from 'ai';
|
|
2
2
|
import { type ContextStore } from '@deepagents/context';
|
|
3
3
|
import type { ConversationId } from '../mailbox/types.ts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TurnQueue, TurnRef } from '../queue/turn-queue.ts';
|
|
5
5
|
import type { ZukhrufToolSet } from '../tool.ts';
|
|
6
6
|
export interface ApprovalControllerOptions {
|
|
7
7
|
store: ContextStore;
|
|
8
8
|
queue: TurnQueue;
|
|
9
9
|
}
|
|
10
|
+
/** The head assistant message holds a tool call the host has not approved or denied. */
|
|
11
|
+
export declare function hasUnansweredApprovals(message: UIMessage): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The head assistant message holds a tool call whose output must come from
|
|
14
|
+
* outside the runtime. Every server-side tool executes before its turn
|
|
15
|
+
* completes, so `input-available` at a completed head is a client tool.
|
|
16
|
+
*/
|
|
17
|
+
export declare function hasPendingClientInput(message: UIMessage): boolean;
|
|
10
18
|
/** Durable approval-response and continuation state machine. */
|
|
11
19
|
export declare class ApprovalController {
|
|
12
20
|
#private;
|
|
13
21
|
constructor(options: ApprovalControllerOptions);
|
|
14
22
|
isPaused(message: UIMessage | undefined): boolean;
|
|
15
|
-
|
|
16
|
-
toolCallId: string;
|
|
17
|
-
}): Promise<{
|
|
18
|
-
id: string;
|
|
19
|
-
jobId: string;
|
|
20
|
-
status: "already-applied";
|
|
21
|
-
} | {
|
|
22
|
-
id: string;
|
|
23
|
-
jobId: string;
|
|
24
|
-
status: "queued" | "already-queued";
|
|
25
|
-
}>;
|
|
26
|
-
deny(conversation: ConversationId, input: {
|
|
27
|
-
toolCallId: string;
|
|
28
|
-
reason?: string;
|
|
29
|
-
}): Promise<{
|
|
30
|
-
id: string;
|
|
31
|
-
jobId: string;
|
|
32
|
-
status: "already-applied";
|
|
33
|
-
} | {
|
|
34
|
-
id: string;
|
|
35
|
-
jobId: string;
|
|
36
|
-
status: "queued" | "already-queued";
|
|
37
|
-
}>;
|
|
23
|
+
isConversationPaused(conversation: ConversationId): Promise<boolean>;
|
|
38
24
|
settleDeniedApprovals(conversation: ConversationId, streamId: string): Promise<void>;
|
|
39
25
|
settleFailedApprovals(conversation: ConversationId, streamId: string, error: string): Promise<void>;
|
|
40
26
|
reconcileTerminalContinuation(conversation: ConversationId, streamId: string, status: 'completed' | 'failed' | 'cancelled', error?: string | null): Promise<void>;
|
|
41
27
|
retryIdempotentContinuation(conversation: ConversationId, streamId: string, tools: ZukhrufToolSet): Promise<boolean>;
|
|
42
|
-
applyDecision(turn: ApprovalTurnRef): Promise<boolean>;
|
|
43
28
|
recoverUnstartedContinuation(turn: TurnRef, streamId: string): Promise<boolean>;
|
|
44
29
|
}
|
|
45
30
|
//# sourceMappingURL=approval-controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-controller.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/runtime/approval-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EAGf,MAAM,IAAI,CAAC;AAEZ,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"approval-controller.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/runtime/approval-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EAGf,MAAM,IAAI,CAAC;AAEZ,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;CAClB;AAID,wFAAwF;AACxF,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAIlE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAIjE;AAED,gEAAgE;AAChE,qBAAa,kBAAkB;;gBAUjB,OAAO,EAAE,yBAAyB;IAK9C,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO;IAO3C,oBAAoB,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAMpE,qBAAqB,CACzB,YAAY,EAAE,cAAc,EAC5B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;IAiCV,qBAAqB,CACzB,YAAY,EAAE,cAAc,EAC5B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IAmCV,6BAA6B,CACjC,YAAY,EAAE,cAAc,EAC5B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,EAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GACpB,OAAO,CAAC,IAAI,CAAC;IAaV,2BAA2B,CAC/B,YAAY,EAAE,cAAc,EAC5B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,OAAO,CAAC;IA6Bb,4BAA4B,CAChC,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC;CAkCpB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type GenerateTextOnStartCallback, type GenerateTextOnStepEndCallback, type GenerateTextOnStepStartCallback, type ModelMessage, type PrepareStepFunction, type ToolSet } from 'ai';
|
|
2
|
+
import { type CompactResult, type CompactionFailureReason } from '@deepagents/compaction';
|
|
3
|
+
import type { ContextEngine, ContextStore } from '@deepagents/context';
|
|
4
|
+
import type { AgentCompaction } from '../agent.ts';
|
|
5
|
+
/** Payload of AI SDK `data-compaction` parts; IDs group one evaluation. */
|
|
6
|
+
export type CompactionEvent = {
|
|
7
|
+
id: string;
|
|
8
|
+
} & ({
|
|
9
|
+
status: 'restored';
|
|
10
|
+
sourceMessages: number;
|
|
11
|
+
replacementMessages: number;
|
|
12
|
+
} | {
|
|
13
|
+
status: 'started';
|
|
14
|
+
/** Absent on historical events that counted only messages. */
|
|
15
|
+
tokenScope?: 'request';
|
|
16
|
+
triggerIndex: number;
|
|
17
|
+
tokensBefore: number;
|
|
18
|
+
targetTokens: number;
|
|
19
|
+
messageCount: number;
|
|
20
|
+
} | {
|
|
21
|
+
status: 'completed';
|
|
22
|
+
/** Absent on historical events that counted only messages. */
|
|
23
|
+
tokenScope?: 'request';
|
|
24
|
+
tokens: CompactResult['tokens'];
|
|
25
|
+
replacedRange: {
|
|
26
|
+
start: number;
|
|
27
|
+
end: number;
|
|
28
|
+
};
|
|
29
|
+
usage: CompactResult['usage'];
|
|
30
|
+
} | {
|
|
31
|
+
status: 'failed';
|
|
32
|
+
phase: 'restore' | 'evaluate' | 'compact' | 'persist';
|
|
33
|
+
reason: CompactionFailureReason | 'request-overhead' | 'error';
|
|
34
|
+
});
|
|
35
|
+
/** Projects model history while leaving the durable UI transcript untouched. */
|
|
36
|
+
export declare function createCompaction(config: AgentCompaction, engine: ContextEngine, store: ContextStore, signal: AbortSignal, onEvent: (event: CompactionEvent) => void): {
|
|
37
|
+
prepareStep: (input: Pick<Parameters<PrepareStepFunction<ToolSet>>[0], "messages" | "model" | "instructions" | "toolsContext" | "experimental_sandbox">) => Promise<{
|
|
38
|
+
messages: ModelMessage[];
|
|
39
|
+
}>;
|
|
40
|
+
onStart: GenerateTextOnStartCallback<ToolSet>;
|
|
41
|
+
onStepStart: GenerateTextOnStepStartCallback<ToolSet>;
|
|
42
|
+
onStepEnd: GenerateTextOnStepEndCallback<ToolSet>;
|
|
43
|
+
include: {
|
|
44
|
+
requestBody: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=compaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compaction.d.ts","s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kBAAkB,GAAG,OAAO,CAAC;CAChE,CACJ,CAAC;AAgIF,gFAAgF;AAChF,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI;yBA8FhC,IAAI,CACT,UAAU,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EACzC,UAAU,GACV,OAAO,GACP,cAAc,GACd,cAAc,GACd,sBAAsB,CACzB;;;;;;;;;EA0PJ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ConversationId } from '../../mailbox/types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Cross-process wake hints for conversation status.
|
|
4
|
+
*
|
|
5
|
+
* A hint names a conversation whose status may have changed; it carries no
|
|
6
|
+
* status, because `observe(conversation).conversationStatus()` is the
|
|
7
|
+
* authority in every process and a stale or reordered payload would not be.
|
|
8
|
+
*/
|
|
9
|
+
export interface ConversationStatusChangeSource {
|
|
10
|
+
notify(conversation: ConversationId): Promise<void>;
|
|
11
|
+
subscribe(signal: AbortSignal): Promise<AsyncIterable<ConversationStatusChangeHint>>;
|
|
12
|
+
}
|
|
13
|
+
export type ConversationStatusChangeHint = {
|
|
14
|
+
type: 'change';
|
|
15
|
+
conversation: ConversationId;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'reset';
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=change-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-source.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/conversation-status/change-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,SAAS,CACP,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC,CAAC;CACzD;AAED,MAAM,MAAM,4BAA4B,GACtC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,YAAY,EAAE,cAAc,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC"}
|