veryfront 0.1.252 → 0.1.255

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.
Files changed (32) hide show
  1. package/esm/cli/templates/manifest.d.ts +473 -473
  2. package/esm/cli/templates/manifest.js +521 -521
  3. package/esm/deno.js +1 -1
  4. package/esm/src/agent/conversation-hosted-lifecycle.d.ts +2 -0
  5. package/esm/src/agent/conversation-hosted-lifecycle.d.ts.map +1 -1
  6. package/esm/src/agent/conversation-hosted-lifecycle.js +7 -0
  7. package/esm/src/agent/conversation-run-event-preparation.d.ts +5 -0
  8. package/esm/src/agent/conversation-run-event-preparation.d.ts.map +1 -0
  9. package/esm/src/agent/conversation-run-event-preparation.js +8 -0
  10. package/esm/src/agent/conversation-run-events.d.ts +30 -0
  11. package/esm/src/agent/conversation-run-events.d.ts.map +1 -0
  12. package/esm/src/agent/conversation-run-events.js +198 -0
  13. package/esm/src/agent/conversation-run-stream-mirror.d.ts +21 -0
  14. package/esm/src/agent/conversation-run-stream-mirror.d.ts.map +1 -0
  15. package/esm/src/agent/conversation-run-stream-mirror.js +31 -0
  16. package/esm/src/agent/index.d.ts +4 -1
  17. package/esm/src/agent/index.d.ts.map +1 -1
  18. package/esm/src/agent/index.js +4 -1
  19. package/esm/src/server/dev-ui/manifest.d.ts +17 -17
  20. package/esm/src/server/dev-ui/manifest.js +17 -17
  21. package/esm/src/utils/version-constant.d.ts +1 -1
  22. package/esm/src/utils/version-constant.js +1 -1
  23. package/package.json +1 -1
  24. package/src/cli/templates/manifest.js +521 -521
  25. package/src/deno.js +1 -1
  26. package/src/src/agent/conversation-hosted-lifecycle.ts +14 -0
  27. package/src/src/agent/conversation-run-event-preparation.ts +20 -0
  28. package/src/src/agent/conversation-run-events.ts +234 -0
  29. package/src/src/agent/conversation-run-stream-mirror.ts +59 -0
  30. package/src/src/agent/index.ts +17 -0
  31. package/src/src/server/dev-ui/manifest.js +17 -17
  32. package/src/src/utils/version-constant.ts +1 -1
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.252",
3
+ "version": "0.1.255",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -1,5 +1,6 @@
1
1
  import { type ConversationAgentRunUsage, type ConversationRunProjection } from "./durable.js";
2
2
  import { type InvokeAgentChildRunProgressEvent, type InvokeAgentChildRunProgressInput } from "./invoke-agent-child-runs.js";
3
+ import type { ChatStreamEvent } from "../chat/protocol.js";
3
4
  import type { HostedChildLifecycleAdapter } from "./hosted-child-lifecycle.js";
4
5
  import type { HostedLifecycleAdapter, HostedLifecycleTerminalState } from "./hosted-lifecycle.js";
5
6
  export interface ConversationHostedLifecycleFinalizeInput {
@@ -22,6 +23,7 @@ export interface CreateConversationHostedLifecycleAdapterOptions<TChunk> {
22
23
  }) => Promise<ConversationHostedLifecycleFinalizeInput> | ConversationHostedLifecycleFinalizeInput;
23
24
  }
24
25
  export declare function createConversationHostedLifecycleAdapter<TChunk>(options: CreateConversationHostedLifecycleAdapterOptions<TChunk>): HostedLifecycleAdapter<ConversationRunProjection, TChunk>;
26
+ export declare function createConversationHostedStreamLifecycleAdapter(options: Omit<CreateConversationHostedLifecycleAdapterOptions<ChatStreamEvent>, "mapChunkToEvents">): HostedLifecycleAdapter<ConversationRunProjection, ChatStreamEvent>;
25
27
  export interface ConversationChildLifecycleContext {
26
28
  authToken: string;
27
29
  apiUrl: string;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-hosted-lifecycle.d.ts","sourceRoot":"","sources":["../../../src/src/agent/conversation-hosted-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EAEtC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACV,2BAA2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js";
2
+ import { prepareConversationRunStreamEvents } from "./conversation-run-event-preparation.js";
2
3
  import { publishInvokeAgentChildRunProgress, } from "./invoke-agent-child-runs.js";
3
4
  export function createConversationHostedLifecycleAdapter(options) {
4
5
  return {
@@ -54,6 +55,12 @@ export function createConversationHostedLifecycleAdapter(options) {
54
55
  },
55
56
  };
56
57
  }
58
+ export function createConversationHostedStreamLifecycleAdapter(options) {
59
+ return createConversationHostedLifecycleAdapter({
60
+ ...options,
61
+ mapChunkToEvents: (chunk) => prepareConversationRunStreamEvents([chunk]),
62
+ });
63
+ }
57
64
  function toConversationChildUsage(usage) {
58
65
  if (!usage) {
59
66
  return undefined;
@@ -0,0 +1,5 @@
1
+ import { type ChatStreamEvent } from "../chat/protocol.js";
2
+ import { type ConversationRunEvent, ConversationRunEventEncoder } from "./conversation-run-events.js";
3
+ export declare function prepareConversationRunStreamEvents(events: ChatStreamEvent[], encoder?: ConversationRunEventEncoder): ConversationRunEvent[];
4
+ export declare function prepareConversationRunExternalEvents(events: ConversationRunEvent[]): ConversationRunEvent[];
5
+ //# sourceMappingURL=conversation-run-event-preparation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-run-event-preparation.d.ts","sourceRoot":"","sources":["../../../src/src/agent/conversation-run-event-preparation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,KAAK,oBAAoB,EACzB,2BAA2B,EAE5B,MAAM,8BAA8B,CAAC;AAGtC,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,eAAe,EAAE,EACzB,OAAO,8BAAoC,GAC1C,oBAAoB,EAAE,CAExB;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,oBAAoB,EAAE,GAC7B,oBAAoB,EAAE,CAExB"}
@@ -0,0 +1,8 @@
1
+ import { ConversationRunEventEncoder, encodeConversationRunEvents, } from "./conversation-run-events.js";
2
+ import { normalizeConversationRunEvents } from "./conversation-run-event-normalization.js";
3
+ export function prepareConversationRunStreamEvents(events, encoder = new ConversationRunEventEncoder()) {
4
+ return normalizeConversationRunEvents(encodeConversationRunEvents(events, encoder));
5
+ }
6
+ export function prepareConversationRunExternalEvents(events) {
7
+ return normalizeConversationRunEvents(events);
8
+ }
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ import { type ChatStreamEvent } from "../chat/protocol.js";
3
+ export declare const conversationRunEventTypes: {
4
+ readonly custom: "CUSTOM";
5
+ readonly textMessageStart: "TEXT_MESSAGE_START";
6
+ readonly textMessageContent: "TEXT_MESSAGE_CONTENT";
7
+ readonly textMessageEnd: "TEXT_MESSAGE_END";
8
+ readonly reasoningMessageStart: "REASONING_MESSAGE_START";
9
+ readonly reasoningMessageContent: "REASONING_MESSAGE_CONTENT";
10
+ readonly reasoningMessageEnd: "REASONING_MESSAGE_END";
11
+ readonly toolCallStart: "TOOL_CALL_START";
12
+ readonly toolCallArgs: "TOOL_CALL_ARGS";
13
+ readonly toolCallEnd: "TOOL_CALL_END";
14
+ readonly toolCallResult: "TOOL_CALL_RESULT";
15
+ };
16
+ export declare const ConversationRunEventSchema: z.ZodObject<{
17
+ type: z.ZodString;
18
+ }, z.core.$loose>;
19
+ export type ConversationRunEvent = z.infer<typeof ConversationRunEventSchema>;
20
+ export declare class ConversationRunEventEncoder {
21
+ private readonly streamedToolInputs;
22
+ private readonly toolInputs;
23
+ private activeMessageId;
24
+ private getToolResultMessageId;
25
+ private serializeToolResultContent;
26
+ encode(chunk: ChatStreamEvent): ConversationRunEvent[];
27
+ }
28
+ export declare function encodeConversationRunEvents(events: ChatStreamEvent[], encoder?: ConversationRunEventEncoder): ConversationRunEvent[];
29
+ export declare function normalizeEncodedConversationRunEvents(events: ChatStreamEvent[], encoder?: ConversationRunEventEncoder): ConversationRunEvent[];
30
+ //# sourceMappingURL=conversation-run-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-run-events.d.ts","sourceRoot":"","sources":["../../../src/src/agent/conversation-run-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG3D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;CAY5B,CAAC;AAEX,eAAO,MAAM,0BAA0B;;iBAEvB,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAyB9E,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,eAAe,CAAuB;IAE9C,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,0BAA0B;IAYlC,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,oBAAoB,EAAE;CAqJvD;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,eAAe,EAAE,EACzB,OAAO,8BAAoC,GAC1C,oBAAoB,EAAE,CAExB;AAED,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,eAAe,EAAE,EACzB,OAAO,8BAAoC,GAC1C,oBAAoB,EAAE,CAExB"}
@@ -0,0 +1,198 @@
1
+ import { z } from "zod";
2
+ import { normalizeConversationRunEvents } from "./conversation-run-event-normalization.js";
3
+ export const conversationRunEventTypes = {
4
+ custom: "CUSTOM",
5
+ textMessageStart: "TEXT_MESSAGE_START",
6
+ textMessageContent: "TEXT_MESSAGE_CONTENT",
7
+ textMessageEnd: "TEXT_MESSAGE_END",
8
+ reasoningMessageStart: "REASONING_MESSAGE_START",
9
+ reasoningMessageContent: "REASONING_MESSAGE_CONTENT",
10
+ reasoningMessageEnd: "REASONING_MESSAGE_END",
11
+ toolCallStart: "TOOL_CALL_START",
12
+ toolCallArgs: "TOOL_CALL_ARGS",
13
+ toolCallEnd: "TOOL_CALL_END",
14
+ toolCallResult: "TOOL_CALL_RESULT",
15
+ };
16
+ export const ConversationRunEventSchema = z.object({
17
+ type: z.string().min(1),
18
+ }).passthrough();
19
+ function serializeToolInput(input) {
20
+ try {
21
+ return JSON.stringify(input ?? {});
22
+ }
23
+ catch {
24
+ return "{}";
25
+ }
26
+ }
27
+ function encodeCustomDataEvent(chunk) {
28
+ const name = chunk.type.slice("data-".length);
29
+ if (name.length === 0) {
30
+ return [];
31
+ }
32
+ return [{
33
+ type: conversationRunEventTypes.custom,
34
+ name,
35
+ value: chunk.data,
36
+ }];
37
+ }
38
+ export class ConversationRunEventEncoder {
39
+ streamedToolInputs = new Set();
40
+ toolInputs = new Map();
41
+ activeMessageId = null;
42
+ getToolResultMessageId(toolCallId) {
43
+ return this.activeMessageId
44
+ ? `${this.activeMessageId}:tool:${toolCallId}`
45
+ : `tool:${toolCallId}`;
46
+ }
47
+ serializeToolResultContent(value) {
48
+ if (typeof value === "string") {
49
+ return value;
50
+ }
51
+ try {
52
+ return JSON.stringify(value ?? null);
53
+ }
54
+ catch {
55
+ return String(value);
56
+ }
57
+ }
58
+ encode(chunk) {
59
+ switch (chunk.type) {
60
+ case "start":
61
+ this.activeMessageId = chunk.messageId ?? null;
62
+ return [];
63
+ case "text-start":
64
+ return [{
65
+ type: conversationRunEventTypes.textMessageStart,
66
+ messageId: chunk.id,
67
+ role: "assistant",
68
+ }];
69
+ case "text-delta":
70
+ return [{
71
+ type: conversationRunEventTypes.textMessageContent,
72
+ messageId: chunk.id,
73
+ delta: chunk.delta,
74
+ }];
75
+ case "text-end":
76
+ return [{ type: conversationRunEventTypes.textMessageEnd, messageId: chunk.id }];
77
+ case "reasoning-start":
78
+ return [{
79
+ type: conversationRunEventTypes.reasoningMessageStart,
80
+ messageId: chunk.id,
81
+ role: "assistant",
82
+ }];
83
+ case "reasoning-delta":
84
+ return [{
85
+ type: conversationRunEventTypes.reasoningMessageContent,
86
+ messageId: chunk.id,
87
+ delta: chunk.delta,
88
+ }];
89
+ case "reasoning-end":
90
+ return [{ type: conversationRunEventTypes.reasoningMessageEnd, messageId: chunk.id }];
91
+ case "tool-input-start":
92
+ return [{
93
+ type: conversationRunEventTypes.toolCallStart,
94
+ toolCallId: chunk.toolCallId,
95
+ toolCallName: chunk.toolName,
96
+ }];
97
+ case "tool-input-delta":
98
+ this.streamedToolInputs.add(chunk.toolCallId);
99
+ return [{
100
+ type: conversationRunEventTypes.toolCallArgs,
101
+ toolCallId: chunk.toolCallId,
102
+ delta: chunk.inputTextDelta,
103
+ }];
104
+ case "tool-input-available": {
105
+ this.toolInputs.set(chunk.toolCallId, chunk.input);
106
+ const events = [];
107
+ if (!this.streamedToolInputs.has(chunk.toolCallId)) {
108
+ events.push({
109
+ type: conversationRunEventTypes.toolCallArgs,
110
+ toolCallId: chunk.toolCallId,
111
+ delta: serializeToolInput(chunk.input),
112
+ });
113
+ }
114
+ events.push({ type: conversationRunEventTypes.toolCallEnd, toolCallId: chunk.toolCallId });
115
+ return events;
116
+ }
117
+ case "tool-input-error": {
118
+ this.toolInputs.set(chunk.toolCallId, chunk.input);
119
+ const events = [];
120
+ if (!this.streamedToolInputs.has(chunk.toolCallId)) {
121
+ events.push({
122
+ type: conversationRunEventTypes.toolCallArgs,
123
+ toolCallId: chunk.toolCallId,
124
+ delta: serializeToolInput(chunk.input),
125
+ });
126
+ }
127
+ events.push({ type: conversationRunEventTypes.toolCallEnd, toolCallId: chunk.toolCallId });
128
+ events.push({
129
+ type: conversationRunEventTypes.toolCallResult,
130
+ messageId: this.getToolResultMessageId(chunk.toolCallId),
131
+ toolCallId: chunk.toolCallId,
132
+ content: this.serializeToolResultContent(chunk.errorText),
133
+ role: "tool",
134
+ ...(this.toolInputs.has(chunk.toolCallId)
135
+ ? { input: this.toolInputs.get(chunk.toolCallId) }
136
+ : {}),
137
+ isError: true,
138
+ });
139
+ this.toolInputs.delete(chunk.toolCallId);
140
+ return events;
141
+ }
142
+ case "tool-output-available":
143
+ return [{
144
+ type: conversationRunEventTypes.toolCallResult,
145
+ messageId: this.getToolResultMessageId(chunk.toolCallId),
146
+ toolCallId: chunk.toolCallId,
147
+ content: this.serializeToolResultContent(chunk.output),
148
+ role: "tool",
149
+ ...(this.toolInputs.has(chunk.toolCallId)
150
+ ? { input: this.toolInputs.get(chunk.toolCallId) }
151
+ : {}),
152
+ }];
153
+ case "tool-output-error":
154
+ return [{
155
+ type: conversationRunEventTypes.toolCallResult,
156
+ messageId: this.getToolResultMessageId(chunk.toolCallId),
157
+ toolCallId: chunk.toolCallId,
158
+ content: this.serializeToolResultContent(chunk.errorText),
159
+ role: "tool",
160
+ ...(this.toolInputs.has(chunk.toolCallId)
161
+ ? { input: this.toolInputs.get(chunk.toolCallId) }
162
+ : {}),
163
+ isError: true,
164
+ }];
165
+ case "tool-output-denied":
166
+ return [{
167
+ type: conversationRunEventTypes.toolCallResult,
168
+ messageId: this.getToolResultMessageId(chunk.toolCallId),
169
+ toolCallId: chunk.toolCallId,
170
+ content: "Tool output denied",
171
+ role: "tool",
172
+ ...(this.toolInputs.has(chunk.toolCallId)
173
+ ? { input: this.toolInputs.get(chunk.toolCallId) }
174
+ : {}),
175
+ isError: true,
176
+ }];
177
+ case "error":
178
+ case "finish":
179
+ case "abort":
180
+ case "message-metadata":
181
+ case "source-url":
182
+ case "source-document":
183
+ case "file":
184
+ case "tool-approval-request":
185
+ case "start-step":
186
+ case "finish-step":
187
+ return [];
188
+ default:
189
+ return chunk.type.startsWith("data-") ? encodeCustomDataEvent(chunk) : [];
190
+ }
191
+ }
192
+ }
193
+ export function encodeConversationRunEvents(events, encoder = new ConversationRunEventEncoder()) {
194
+ return events.flatMap((event) => encoder.encode(event));
195
+ }
196
+ export function normalizeEncodedConversationRunEvents(events, encoder = new ConversationRunEventEncoder()) {
197
+ return normalizeConversationRunEvents(encodeConversationRunEvents(events, encoder));
198
+ }
@@ -0,0 +1,21 @@
1
+ import { type ChatStreamEvent } from "../chat/protocol.js";
2
+ import { type ConversationRunEvent, ConversationRunEventEncoder } from "./conversation-run-events.js";
3
+ import { type ConversationRunMirror, type ConversationRunMirrorRetryScheduledState, type ConversationRunMirrorStoppedState } from "./conversation-run-mirror.js";
4
+ import { type ConversationRunEventQueueController } from "./durable.js";
5
+ export interface ConversationRunStreamMirror {
6
+ handleStreamEvent(event: ChatStreamEvent): void;
7
+ appendEvents(events: ConversationRunEvent[]): void;
8
+ flush(): Promise<void>;
9
+ getSnapshot(): ReturnType<ConversationRunMirror["getSnapshot"]>;
10
+ dispose(): void;
11
+ }
12
+ export declare function createConversationRunStreamMirror(input: {
13
+ queueController: ConversationRunEventQueueController;
14
+ immediateFlushEventCount: number;
15
+ encoder?: ConversationRunEventEncoder;
16
+ flushDelayMs?: number;
17
+ getRetryDelayMs?: (consecutiveFailures: number) => number;
18
+ onRetryScheduled?: (state: ConversationRunMirrorRetryScheduledState) => Promise<void> | void;
19
+ onStopped?: (state: ConversationRunMirrorStoppedState) => Promise<void> | void;
20
+ }): ConversationRunStreamMirror;
21
+ //# sourceMappingURL=conversation-run-stream-mirror.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-run-stream-mirror.d.ts","sourceRoot":"","sources":["../../../src/src/agent/conversation-run-stream-mirror.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,KAAK,oBAAoB,EACzB,2BAA2B,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,wCAAwC,EAC7C,KAAK,iCAAiC,EAEvC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;IAChD,YAAY,CAAC,MAAM,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;IACnD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,WAAW,IAAI,UAAU,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,CAAC;IAChE,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,wBAAgB,iCAAiC,CAAC,KAAK,EAAE;IACvD,eAAe,EAAE,mCAAmC,CAAC;IACrD,wBAAwB,EAAE,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE,2BAA2B,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,CAAC,mBAAmB,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,wCAAwC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC7F,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAChF,GAAG,2BAA2B,CA4B9B"}
@@ -0,0 +1,31 @@
1
+ import { ConversationRunEventEncoder, } from "./conversation-run-events.js";
2
+ import { createConversationRunMirror, } from "./conversation-run-mirror.js";
3
+ import { normalizeConversationRunEvents } from "./conversation-run-event-normalization.js";
4
+ export function createConversationRunStreamMirror(input) {
5
+ const encoder = input.encoder ?? new ConversationRunEventEncoder();
6
+ const mirror = createConversationRunMirror({
7
+ queueController: input.queueController,
8
+ immediateFlushEventCount: input.immediateFlushEventCount,
9
+ ...(input.flushDelayMs !== undefined ? { flushDelayMs: input.flushDelayMs } : {}),
10
+ ...(input.getRetryDelayMs ? { getRetryDelayMs: input.getRetryDelayMs } : {}),
11
+ ...(input.onRetryScheduled ? { onRetryScheduled: input.onRetryScheduled } : {}),
12
+ ...(input.onStopped ? { onStopped: input.onStopped } : {}),
13
+ });
14
+ return {
15
+ handleStreamEvent(event) {
16
+ mirror.enqueue(normalizeConversationRunEvents(encoder.encode(event)));
17
+ },
18
+ appendEvents(events) {
19
+ mirror.enqueue(normalizeConversationRunEvents(events));
20
+ },
21
+ flush() {
22
+ return mirror.flush();
23
+ },
24
+ getSnapshot() {
25
+ return mirror.getSnapshot();
26
+ },
27
+ dispose() {
28
+ mirror.dispose();
29
+ },
30
+ };
31
+ }
@@ -92,9 +92,12 @@ export { type AgUiBrowserResponseEncoder, type AgUiBrowserResponseExecution, typ
92
92
  export { type ConversationRunContext, createConversationRunContext, } from "./conversation-run-context.js";
93
93
  export { type ConversationRootRunContext, type ConversationRootRunDescriptor, createConversationRootRunContext, createConversationRootRunStartAdapter, prepareConversationRootRunContext, startConversationRootRun, } from "./conversation-root-run-context.js";
94
94
  export { bootstrapConversationAgentRun, type BootstrapConversationAgentRunResult, type ConversationMessageRecord, ConversationMessageRecordSchema, type ConversationRecord, ConversationRecordSchema, createConversationMessage, createConversationRecord, ensureConversationProjectLink, fetchConversationRecord, } from "./conversation-bootstrap.js";
95
- export { type ConversationChildLifecycleContext, type ConversationHostedLifecycleFinalizeInput, createConversationChildLifecycleAdapter, createConversationHostedLifecycleAdapter, type CreateConversationHostedLifecycleAdapterOptions, } from "./conversation-hosted-lifecycle.js";
95
+ export { type ConversationChildLifecycleContext, type ConversationHostedLifecycleFinalizeInput, createConversationChildLifecycleAdapter, createConversationHostedLifecycleAdapter, type CreateConversationHostedLifecycleAdapterOptions, createConversationHostedStreamLifecycleAdapter, } from "./conversation-hosted-lifecycle.js";
96
96
  export { getConversationRunEventJsonByteLength, normalizeConversationRunEvent, normalizeConversationRunEvents, } from "./conversation-run-event-normalization.js";
97
+ export { type ConversationRunEvent, ConversationRunEventEncoder, ConversationRunEventSchema, conversationRunEventTypes, encodeConversationRunEvents, normalizeEncodedConversationRunEvents, } from "./conversation-run-events.js";
98
+ export { prepareConversationRunExternalEvents, prepareConversationRunStreamEvents, } from "./conversation-run-event-preparation.js";
97
99
  export { type ConversationRunMirror, type ConversationRunMirrorRetryScheduledState, type ConversationRunMirrorSnapshot, type ConversationRunMirrorStoppedState, createConversationRunMirror, } from "./conversation-run-mirror.js";
100
+ export { type ConversationRunStreamMirror, createConversationRunStreamMirror, } from "./conversation-run-stream-mirror.js";
98
101
  export { type ActiveConversationRunStatus, appendConversationRunEvents, AppendConversationRunEventsError, type AppendConversationRunEventsResponse, AppendConversationRunEventsResponseSchema, CompleteConversationRunResponseSchema, type ConversationAgentRunUsage, type ConversationRunAppendCursorResyncResult, type ConversationRunAppendExecutionOutcome, type ConversationRunAppendFailureOutcome, type ConversationRunAppendRecoveryOutcome, type ConversationRunBatchFlushOutcome, type ConversationRunEventQueueController, type ConversationRunProjection, ConversationRunProjectionSchema, type ConversationRunQueueFlushOutcome, ConversationRunStatusSchema, type ConversationRunTargets, ConversationRunTargetsSchema, ConversationRunTerminalStateError, createConversationAgentRun, createConversationRunEventQueueController, finalizeConversationAgentRun, flushConversationRunEventBatches, flushConversationRunEventQueue, getConversationRun, isActiveConversationRunStatus, isAppendableConversationRunProjection, isCursorMismatchConversationRunAppendError, isIgnorableConversationRunAppendError, monitorConversationRunStatus, parseAppendConversationRunEventsErrorBody, recoverConversationRunAppendExecution, recoverConversationRunAppendFailure, recoverConversationRunCursorMismatch, resolveConversationRunTargets, resyncConversationRunAppendCursor, type TerminalConversationRunStatus, } from "./durable.js";
99
102
  export { buildInvokeAgentChildRunLifecycleCustomEvent, buildInvokeAgentChildRunProgressEvents, buildInvokeAgentChildRunStateDelta, type InvokeAgentChildRunLifecycleCustomEvent, InvokeAgentChildRunLifecycleCustomEventSchema, type InvokeAgentChildRunLifecycleValue, InvokeAgentChildRunLifecycleValueSchema, type InvokeAgentChildRunProgressEvent, type InvokeAgentChildRunProgressInput, type InvokeAgentChildRunStateDelta, InvokeAgentChildRunStateDeltaSchema, publishInvokeAgentChildRunProgress, } from "./invoke-agent-child-runs.js";
100
103
  export { type HostedChildLifecycleAdapter, type HostedChildLifecycleRunnerOptions, type HostedChildLifecycleRunResult, type HostedChildLifecycleTerminalState, runHostedChildLifecycle, } from "./hosted-child-lifecycle.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,OAAO,yBAAyB,CAAC;AAGjC,YAAY,EACV,KAAK,EACL,WAAW,EACX,YAAY,EACZ,eAAe,EACf,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,OAAO,IAAI,YAAY,EACvB,WAAW,EACX,aAAa,EACb,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEnF,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,WAAW,EACX,KAAK,iBAAiB,EACtB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,WAAW,EACX,cAAc,EACd,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9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tB,qBAAqB,EACrB,4BAA4B,EAC5B,iBAAiB,EACjB,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,OAAO,yBAAyB,CAAC;AAGjC,YAAY,EACV,KAAK,EACL,WAAW,EACX,YAAY,EACZ,eAAe,EACf,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,OAAO,IAAI,YAAY,EACvB,WAAW,EACX,aAAa,EACb,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEnF,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,E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
@@ -91,9 +91,12 @@ export { createAgUiBrowserResponseStream, } from "./ag-ui-browser-response-strea
91
91
  export { createConversationRunContext, } from "./conversation-run-context.js";
92
92
  export { createConversationRootRunContext, createConversationRootRunStartAdapter, prepareConversationRootRunContext, startConversationRootRun, } from "./conversation-root-run-context.js";
93
93
  export { bootstrapConversationAgentRun, ConversationMessageRecordSchema, ConversationRecordSchema, createConversationMessage, createConversationRecord, ensureConversationProjectLink, fetchConversationRecord, } from "./conversation-bootstrap.js";
94
- export { createConversationChildLifecycleAdapter, createConversationHostedLifecycleAdapter, } from "./conversation-hosted-lifecycle.js";
94
+ export { createConversationChildLifecycleAdapter, createConversationHostedLifecycleAdapter, createConversationHostedStreamLifecycleAdapter, } from "./conversation-hosted-lifecycle.js";
95
95
  export { getConversationRunEventJsonByteLength, normalizeConversationRunEvent, normalizeConversationRunEvents, } from "./conversation-run-event-normalization.js";
96
+ export { ConversationRunEventEncoder, ConversationRunEventSchema, conversationRunEventTypes, encodeConversationRunEvents, normalizeEncodedConversationRunEvents, } from "./conversation-run-events.js";
97
+ export { prepareConversationRunExternalEvents, prepareConversationRunStreamEvents, } from "./conversation-run-event-preparation.js";
96
98
  export { createConversationRunMirror, } from "./conversation-run-mirror.js";
99
+ export { createConversationRunStreamMirror, } from "./conversation-run-stream-mirror.js";
97
100
  export { appendConversationRunEvents, AppendConversationRunEventsError, AppendConversationRunEventsResponseSchema, CompleteConversationRunResponseSchema, ConversationRunProjectionSchema, ConversationRunStatusSchema, ConversationRunTargetsSchema, ConversationRunTerminalStateError, createConversationAgentRun, createConversationRunEventQueueController, finalizeConversationAgentRun, flushConversationRunEventBatches, flushConversationRunEventQueue, getConversationRun, isActiveConversationRunStatus, isAppendableConversationRunProjection, isCursorMismatchConversationRunAppendError, isIgnorableConversationRunAppendError, monitorConversationRunStatus, parseAppendConversationRunEventsErrorBody, recoverConversationRunAppendExecution, recoverConversationRunAppendFailure, recoverConversationRunCursorMismatch, resolveConversationRunTargets, resyncConversationRunAppendCursor, } from "./durable.js";
98
101
  export { buildInvokeAgentChildRunLifecycleCustomEvent, buildInvokeAgentChildRunProgressEvents, buildInvokeAgentChildRunStateDelta, InvokeAgentChildRunLifecycleCustomEventSchema, InvokeAgentChildRunLifecycleValueSchema, InvokeAgentChildRunStateDeltaSchema, publishInvokeAgentChildRunProgress, } from "./invoke-agent-child-runs.js";
99
102
  export { runHostedChildLifecycle, } from "./hosted-child-lifecycle.js";
@@ -1,31 +1,31 @@
1
1
  declare namespace _default {
2
2
  let version: number;
3
3
  let files: {
4
- "projects/App.tsx": string;
5
- "projects/components/ProjectCard.tsx": string;
6
- "projects/components/SearchInput.tsx": string;
4
+ "shared/mount-react-app.tsx": string;
7
5
  "projects/components/EmptyState.tsx": string;
6
+ "projects/components/ProjectCard.tsx": string;
8
7
  "projects/components/Header.tsx": string;
8
+ "projects/components/SearchInput.tsx": string;
9
+ "projects/App.tsx": string;
9
10
  "projects/index.tsx": string;
10
- "shared/mount-react-app.tsx": string;
11
- "dashboard/App.tsx": string;
12
- "dashboard/components/AgentsTab.tsx": string;
11
+ "dashboard/components/APITab.tsx": string;
13
12
  "dashboard/components/Sidebar.tsx": string;
14
- "dashboard/components/WorkflowsTab.helpers.ts": string;
15
- "dashboard/components/WorkflowsTab.tsx": string;
16
- "dashboard/components/shared.tsx": string;
17
13
  "dashboard/components/Card.tsx": string;
18
- "dashboard/components/TabNav.tsx": string;
19
- "dashboard/components/MCPTab.tsx": string;
20
- "dashboard/components/ServerTab.tsx": string;
21
- "dashboard/components/ConfigTab.tsx": string;
22
- "dashboard/components/RuntimeTab.tsx": string;
23
14
  "dashboard/components/ErrorsTab.tsx": string;
24
- "dashboard/components/FilesTab.tsx": string;
25
- "dashboard/components/APITab.tsx": string;
26
- "dashboard/components/AgentTab.tsx": string;
15
+ "dashboard/components/AgentsTab.tsx": string;
16
+ "dashboard/components/WorkflowsTab.tsx": string;
17
+ "dashboard/components/RuntimeTab.tsx": string;
18
+ "dashboard/components/ConfigTab.tsx": string;
27
19
  "dashboard/components/WorkflowsTab.helpers.test.ts": string;
20
+ "dashboard/components/ServerTab.tsx": string;
21
+ "dashboard/components/WorkflowsTab.helpers.ts": string;
22
+ "dashboard/components/AgentTab.tsx": string;
28
23
  "dashboard/components/Header.tsx": string;
24
+ "dashboard/components/TabNav.tsx": string;
25
+ "dashboard/components/shared.tsx": string;
26
+ "dashboard/components/MCPTab.tsx": string;
27
+ "dashboard/components/FilesTab.tsx": string;
28
+ "dashboard/App.tsx": string;
29
29
  "dashboard/index.tsx": string;
30
30
  };
31
31
  }