@yolk-sdk/agent 0.1.0-canary.119 → 0.1.0-canary.121
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 +4 -1
- package/dist/client/state.d.mts +76 -76
- package/dist/client/state.d.mts.map +1 -1
- package/dist/compaction/retry.d.mts +30 -30
- package/dist/compaction/retry.d.mts.map +1 -1
- package/dist/compaction/window.d.mts +39 -39
- package/dist/compaction/window.d.mts.map +1 -1
- package/dist/protocol/index.d.mts +2 -2
- package/dist/protocol/index.d.mts.map +1 -1
- package/dist/protocol/index.mjs +2 -2
- package/dist/protocol/tool-argument-hints.mjs +3 -3
- package/dist/protocol/tool-argument-hints.mjs.map +1 -1
- package/dist/protocol/tool-json-schema-marker.d.mts +20 -0
- package/dist/protocol/tool-json-schema-marker.d.mts.map +1 -0
- package/dist/protocol/tool-json-schema-marker.mjs +57 -0
- package/dist/protocol/tool-json-schema-marker.mjs.map +1 -0
- package/dist/protocol/tool.d.mts +11 -1
- package/dist/protocol/tool.d.mts.map +1 -1
- package/dist/protocol/tool.mjs +11 -1
- package/dist/protocol/tool.mjs.map +1 -1
- package/dist/providers/anthropic-provider-internal.d.mts.map +1 -1
- package/dist/providers/anthropic-provider-internal.mjs +85 -20
- package/dist/providers/anthropic-provider-internal.mjs.map +1 -1
- package/dist/providers/openai/provider.d.mts.map +1 -1
- package/dist/providers/openai/provider.mjs +2 -1
- package/dist/providers/openai/provider.mjs.map +1 -1
- package/dist/providers/openai/realtime/session-config.d.mts +3 -0
- package/dist/providers/openai/realtime/session-config.d.mts.map +1 -1
- package/dist/providers/openai/realtime/session-config.mjs +6 -1
- package/dist/providers/openai/realtime/session-config.mjs.map +1 -1
- package/dist/providers/openai-responses-provider-internal.d.mts.map +1 -1
- package/dist/providers/openai-responses-provider-internal.mjs +2 -1
- package/dist/providers/openai-responses-provider-internal.mjs.map +1 -1
- package/dist/react/chat-items.d.mts +69 -69
- package/dist/react/chat-items.d.mts.map +1 -1
- package/dist/react/chat-messages.d.mts +77 -77
- package/dist/react/chat-messages.d.mts.map +1 -1
- package/dist/skillset/merge.d.mts +2 -2
- package/dist/tools/arguments.mjs +2 -2
- package/dist/tools/arguments.mjs.map +1 -1
- package/dist/tools/input.d.mts.map +1 -1
- package/dist/tools/input.mjs +2 -2
- package/dist/tools/input.mjs.map +1 -1
- package/dist/tools/interaction.d.mts.map +1 -1
- package/dist/tools/interaction.mjs +2 -2
- package/dist/tools/interaction.mjs.map +1 -1
- package/dist/tools/omitted-null.d.mts +16 -0
- package/dist/tools/omitted-null.d.mts.map +1 -0
- package/dist/tools/omitted-null.mjs +105 -0
- package/dist/tools/omitted-null.mjs.map +1 -0
- package/dist/tools/plan-review.d.mts.map +1 -1
- package/dist/tools/plan-review.mjs +2 -2
- package/dist/tools/plan-review.mjs.map +1 -1
- package/dist/tools/registry.d.mts +17 -3
- package/dist/tools/registry.d.mts.map +1 -1
- package/dist/tools/registry.mjs +29 -10
- package/dist/tools/registry.mjs.map +1 -1
- package/package.json +2 -2
- package/src/protocol/index.ts +1 -0
- package/src/protocol/tool-json-schema-marker.ts +99 -0
- package/src/protocol/tool.ts +11 -0
- package/src/providers/anthropic-provider-internal.ts +215 -24
- package/src/providers/openai/provider.ts +2 -1
- package/src/providers/openai/realtime/session-config.ts +8 -1
- package/src/providers/openai-responses-provider-internal.ts +2 -1
- package/src/tools/input.ts +2 -1
- package/src/tools/interaction.ts +2 -1
- package/src/tools/omitted-null.ts +201 -0
- package/src/tools/plan-review.ts +2 -1
- package/src/tools/registry.ts +56 -10
package/README.md
CHANGED
|
@@ -370,7 +370,10 @@ add `u` to keep model-visible `pattern` hints.
|
|
|
370
370
|
|
|
371
371
|
Tool arguments are accepted exactly as advertised: unambiguous `null`s are normalized, and keys
|
|
372
372
|
that would be silently lost are rejected. `ToolDef.parameters` describes the schema's canonical JSON codec, so `Schema.optional(X)` is
|
|
373
|
-
advertised as `X | null
|
|
373
|
+
advertised as `X | null`; that codec-added `null` member carries
|
|
374
|
+
`$comment: toolJsonSchemaOmittedNullComment` (stable value), which Claude compatibility uses to
|
|
375
|
+
advertise such fields as `X` while unmarked (meaningful) nulls stay as they are; other provider
|
|
376
|
+
adapters remove the marker before sending. `makeTool` (validate and execute), `makeInputTool`/`makeInteractionTool`
|
|
374
377
|
call params, and the loop `question` decode model arguments with `Schema.toCodecJson(parameters)`:
|
|
375
378
|
`null` on `Schema.optional(X)` decodes as absent and `withDecodingDefault` still applies,
|
|
376
379
|
`Schema.optional(Schema.NullOr(X))` keeps `null`, and required non-nullable fields still reject it.
|
package/dist/client/state.d.mts
CHANGED
|
@@ -79,6 +79,26 @@ type AgentToolRun = {
|
|
|
79
79
|
readonly result: ToolResult;
|
|
80
80
|
};
|
|
81
81
|
declare const AgentToolRun: {
|
|
82
|
+
readonly InputStreaming: Data.TaggedEnum.ConstructorFrom<{
|
|
83
|
+
readonly _tag: "InputStreaming";
|
|
84
|
+
readonly id: string;
|
|
85
|
+
readonly name?: string;
|
|
86
|
+
readonly input: string;
|
|
87
|
+
}, "_tag">;
|
|
88
|
+
readonly InputReady: Data.TaggedEnum.ConstructorFrom<{
|
|
89
|
+
readonly _tag: "InputReady";
|
|
90
|
+
readonly call: ToolCall;
|
|
91
|
+
}, "_tag">;
|
|
92
|
+
readonly ApprovalRequested: Data.TaggedEnum.ConstructorFrom<{
|
|
93
|
+
readonly _tag: "ApprovalRequested";
|
|
94
|
+
readonly call: ToolCall;
|
|
95
|
+
readonly request?: ToolApprovalRequest;
|
|
96
|
+
}, "_tag">;
|
|
97
|
+
readonly Denied: Data.TaggedEnum.ConstructorFrom<{
|
|
98
|
+
readonly _tag: "Denied";
|
|
99
|
+
readonly toolCallId: string;
|
|
100
|
+
readonly reason: string;
|
|
101
|
+
}, "_tag">;
|
|
82
102
|
readonly QuestionRequested: Data.TaggedEnum.ConstructorFrom<{
|
|
83
103
|
readonly _tag: "QuestionRequested";
|
|
84
104
|
readonly request: QuestionRequest;
|
|
@@ -121,6 +141,12 @@ declare const AgentToolRun: {
|
|
|
121
141
|
readonly response: InteractionResponse;
|
|
122
142
|
readonly request?: InteractionRequest;
|
|
123
143
|
}, "_tag">;
|
|
144
|
+
readonly Executing: Data.TaggedEnum.ConstructorFrom<{
|
|
145
|
+
readonly _tag: "Executing";
|
|
146
|
+
readonly call: ToolCall;
|
|
147
|
+
readonly startedAtMs: number; /** Preserve witnessed interaction acceptance across transport interruptions. */
|
|
148
|
+
readonly interaction?: true;
|
|
149
|
+
}, "_tag">;
|
|
124
150
|
readonly Completed: Data.TaggedEnum.ConstructorFrom<{
|
|
125
151
|
readonly _tag: "Completed";
|
|
126
152
|
readonly call: ToolCall;
|
|
@@ -135,22 +161,6 @@ declare const AgentToolRun: {
|
|
|
135
161
|
readonly startedAtMs: number;
|
|
136
162
|
readonly endedAtMs: number;
|
|
137
163
|
}, "_tag">;
|
|
138
|
-
readonly InputStreaming: Data.TaggedEnum.ConstructorFrom<{
|
|
139
|
-
readonly _tag: "InputStreaming";
|
|
140
|
-
readonly id: string;
|
|
141
|
-
readonly name?: string;
|
|
142
|
-
readonly input: string;
|
|
143
|
-
}, "_tag">;
|
|
144
|
-
readonly ApprovalRequested: Data.TaggedEnum.ConstructorFrom<{
|
|
145
|
-
readonly _tag: "ApprovalRequested";
|
|
146
|
-
readonly call: ToolCall;
|
|
147
|
-
readonly request?: ToolApprovalRequest;
|
|
148
|
-
}, "_tag">;
|
|
149
|
-
readonly Denied: Data.TaggedEnum.ConstructorFrom<{
|
|
150
|
-
readonly _tag: "Denied";
|
|
151
|
-
readonly toolCallId: string;
|
|
152
|
-
readonly reason: string;
|
|
153
|
-
}, "_tag">;
|
|
154
164
|
readonly Errored: Data.TaggedEnum.ConstructorFrom<{
|
|
155
165
|
readonly _tag: "Errored";
|
|
156
166
|
readonly call: ToolCall;
|
|
@@ -162,17 +172,7 @@ declare const AgentToolRun: {
|
|
|
162
172
|
readonly call: ToolCall;
|
|
163
173
|
readonly result: ToolResult;
|
|
164
174
|
}, "_tag">;
|
|
165
|
-
readonly InputReady:
|
|
166
|
-
readonly _tag: "InputReady";
|
|
167
|
-
readonly call: ToolCall;
|
|
168
|
-
}, "_tag">;
|
|
169
|
-
readonly Executing: Data.TaggedEnum.ConstructorFrom<{
|
|
170
|
-
readonly _tag: "Executing";
|
|
171
|
-
readonly call: ToolCall;
|
|
172
|
-
readonly startedAtMs: number; /** Preserve witnessed interaction acceptance across transport interruptions. */
|
|
173
|
-
readonly interaction?: true;
|
|
174
|
-
}, "_tag">;
|
|
175
|
-
readonly $is: <Tag extends "QuestionRequested" | "QuestionAnswered" | "QuestionCancelled" | "InputRequested" | "InputSubmitted" | "InputCancelled" | "InteractionRequested" | "InteractionSubmitted" | "InteractionCancelled" | "Completed" | "Accepted" | "InputStreaming" | "ApprovalRequested" | "Denied" | "Errored" | "ProviderCompleted" | "InputReady" | "Executing">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
175
|
+
readonly $is: <Tag extends "InputStreaming" | "InputReady" | "ApprovalRequested" | "Denied" | "QuestionRequested" | "QuestionAnswered" | "QuestionCancelled" | "InputRequested" | "InputSubmitted" | "InputCancelled" | "InteractionRequested" | "InteractionSubmitted" | "InteractionCancelled" | "Executing" | "Completed" | "Accepted" | "Errored" | "ProviderCompleted">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
176
176
|
readonly _tag: "InputStreaming";
|
|
177
177
|
readonly id: string;
|
|
178
178
|
readonly name?: string;
|
|
@@ -286,6 +286,26 @@ declare const AgentToolRun: {
|
|
|
286
286
|
}>;
|
|
287
287
|
readonly $match: {
|
|
288
288
|
<Cases extends {
|
|
289
|
+
readonly InputStreaming: (args: {
|
|
290
|
+
readonly _tag: "InputStreaming";
|
|
291
|
+
readonly id: string;
|
|
292
|
+
readonly name?: string;
|
|
293
|
+
readonly input: string;
|
|
294
|
+
}) => any;
|
|
295
|
+
readonly InputReady: (args: {
|
|
296
|
+
readonly _tag: "InputReady";
|
|
297
|
+
readonly call: ToolCall;
|
|
298
|
+
}) => any;
|
|
299
|
+
readonly ApprovalRequested: (args: {
|
|
300
|
+
readonly _tag: "ApprovalRequested";
|
|
301
|
+
readonly call: ToolCall;
|
|
302
|
+
readonly request?: ToolApprovalRequest;
|
|
303
|
+
}) => any;
|
|
304
|
+
readonly Denied: (args: {
|
|
305
|
+
readonly _tag: "Denied";
|
|
306
|
+
readonly toolCallId: string;
|
|
307
|
+
readonly reason: string;
|
|
308
|
+
}) => any;
|
|
289
309
|
readonly QuestionRequested: (args: {
|
|
290
310
|
readonly _tag: "QuestionRequested";
|
|
291
311
|
readonly request: QuestionRequest;
|
|
@@ -328,6 +348,12 @@ declare const AgentToolRun: {
|
|
|
328
348
|
readonly response: InteractionResponse;
|
|
329
349
|
readonly request?: InteractionRequest;
|
|
330
350
|
}) => any;
|
|
351
|
+
readonly Executing: (args: {
|
|
352
|
+
readonly _tag: "Executing";
|
|
353
|
+
readonly call: ToolCall;
|
|
354
|
+
readonly startedAtMs: number; /** Preserve witnessed interaction acceptance across transport interruptions. */
|
|
355
|
+
readonly interaction?: true;
|
|
356
|
+
}) => any;
|
|
331
357
|
readonly Completed: (args: {
|
|
332
358
|
readonly _tag: "Completed";
|
|
333
359
|
readonly call: ToolCall;
|
|
@@ -342,22 +368,6 @@ declare const AgentToolRun: {
|
|
|
342
368
|
readonly startedAtMs: number;
|
|
343
369
|
readonly endedAtMs: number;
|
|
344
370
|
}) => any;
|
|
345
|
-
readonly InputStreaming: (args: {
|
|
346
|
-
readonly _tag: "InputStreaming";
|
|
347
|
-
readonly id: string;
|
|
348
|
-
readonly name?: string;
|
|
349
|
-
readonly input: string;
|
|
350
|
-
}) => any;
|
|
351
|
-
readonly ApprovalRequested: (args: {
|
|
352
|
-
readonly _tag: "ApprovalRequested";
|
|
353
|
-
readonly call: ToolCall;
|
|
354
|
-
readonly request?: ToolApprovalRequest;
|
|
355
|
-
}) => any;
|
|
356
|
-
readonly Denied: (args: {
|
|
357
|
-
readonly _tag: "Denied";
|
|
358
|
-
readonly toolCallId: string;
|
|
359
|
-
readonly reason: string;
|
|
360
|
-
}) => any;
|
|
361
371
|
readonly Errored: (args: {
|
|
362
372
|
readonly _tag: "Errored";
|
|
363
373
|
readonly call: ToolCall;
|
|
@@ -369,18 +379,28 @@ declare const AgentToolRun: {
|
|
|
369
379
|
readonly call: ToolCall;
|
|
370
380
|
readonly result: ToolResult;
|
|
371
381
|
}) => any;
|
|
382
|
+
}>(cases: Cases): (value: AgentToolRun) => import("effect/Unify").Unify<ReturnType<Cases["InputStreaming" | "InputReady" | "ApprovalRequested" | "Denied" | "QuestionRequested" | "QuestionAnswered" | "QuestionCancelled" | "InputRequested" | "InputSubmitted" | "InputCancelled" | "InteractionRequested" | "InteractionSubmitted" | "InteractionCancelled" | "Executing" | "Completed" | "Accepted" | "Errored" | "ProviderCompleted"]>>;
|
|
383
|
+
<Cases extends {
|
|
384
|
+
readonly InputStreaming: (args: {
|
|
385
|
+
readonly _tag: "InputStreaming";
|
|
386
|
+
readonly id: string;
|
|
387
|
+
readonly name?: string;
|
|
388
|
+
readonly input: string;
|
|
389
|
+
}) => any;
|
|
372
390
|
readonly InputReady: (args: {
|
|
373
391
|
readonly _tag: "InputReady";
|
|
374
392
|
readonly call: ToolCall;
|
|
375
393
|
}) => any;
|
|
376
|
-
readonly
|
|
377
|
-
readonly _tag: "
|
|
394
|
+
readonly ApprovalRequested: (args: {
|
|
395
|
+
readonly _tag: "ApprovalRequested";
|
|
378
396
|
readonly call: ToolCall;
|
|
379
|
-
readonly
|
|
380
|
-
|
|
397
|
+
readonly request?: ToolApprovalRequest;
|
|
398
|
+
}) => any;
|
|
399
|
+
readonly Denied: (args: {
|
|
400
|
+
readonly _tag: "Denied";
|
|
401
|
+
readonly toolCallId: string;
|
|
402
|
+
readonly reason: string;
|
|
381
403
|
}) => any;
|
|
382
|
-
}>(cases: Cases): (value: AgentToolRun) => import("effect/Unify").Unify<ReturnType<Cases["QuestionRequested" | "QuestionAnswered" | "QuestionCancelled" | "InputRequested" | "InputSubmitted" | "InputCancelled" | "InteractionRequested" | "InteractionSubmitted" | "InteractionCancelled" | "Completed" | "Accepted" | "InputStreaming" | "ApprovalRequested" | "Denied" | "Errored" | "ProviderCompleted" | "InputReady" | "Executing"]>>;
|
|
383
|
-
<Cases extends {
|
|
384
404
|
readonly QuestionRequested: (args: {
|
|
385
405
|
readonly _tag: "QuestionRequested";
|
|
386
406
|
readonly request: QuestionRequest;
|
|
@@ -423,6 +443,12 @@ declare const AgentToolRun: {
|
|
|
423
443
|
readonly response: InteractionResponse;
|
|
424
444
|
readonly request?: InteractionRequest;
|
|
425
445
|
}) => any;
|
|
446
|
+
readonly Executing: (args: {
|
|
447
|
+
readonly _tag: "Executing";
|
|
448
|
+
readonly call: ToolCall;
|
|
449
|
+
readonly startedAtMs: number; /** Preserve witnessed interaction acceptance across transport interruptions. */
|
|
450
|
+
readonly interaction?: true;
|
|
451
|
+
}) => any;
|
|
426
452
|
readonly Completed: (args: {
|
|
427
453
|
readonly _tag: "Completed";
|
|
428
454
|
readonly call: ToolCall;
|
|
@@ -437,22 +463,6 @@ declare const AgentToolRun: {
|
|
|
437
463
|
readonly startedAtMs: number;
|
|
438
464
|
readonly endedAtMs: number;
|
|
439
465
|
}) => any;
|
|
440
|
-
readonly InputStreaming: (args: {
|
|
441
|
-
readonly _tag: "InputStreaming";
|
|
442
|
-
readonly id: string;
|
|
443
|
-
readonly name?: string;
|
|
444
|
-
readonly input: string;
|
|
445
|
-
}) => any;
|
|
446
|
-
readonly ApprovalRequested: (args: {
|
|
447
|
-
readonly _tag: "ApprovalRequested";
|
|
448
|
-
readonly call: ToolCall;
|
|
449
|
-
readonly request?: ToolApprovalRequest;
|
|
450
|
-
}) => any;
|
|
451
|
-
readonly Denied: (args: {
|
|
452
|
-
readonly _tag: "Denied";
|
|
453
|
-
readonly toolCallId: string;
|
|
454
|
-
readonly reason: string;
|
|
455
|
-
}) => any;
|
|
456
466
|
readonly Errored: (args: {
|
|
457
467
|
readonly _tag: "Errored";
|
|
458
468
|
readonly call: ToolCall;
|
|
@@ -464,17 +474,7 @@ declare const AgentToolRun: {
|
|
|
464
474
|
readonly call: ToolCall;
|
|
465
475
|
readonly result: ToolResult;
|
|
466
476
|
}) => any;
|
|
467
|
-
|
|
468
|
-
readonly _tag: "InputReady";
|
|
469
|
-
readonly call: ToolCall;
|
|
470
|
-
}) => any;
|
|
471
|
-
readonly Executing: (args: {
|
|
472
|
-
readonly _tag: "Executing";
|
|
473
|
-
readonly call: ToolCall;
|
|
474
|
-
readonly startedAtMs: number; /** Preserve witnessed interaction acceptance across transport interruptions. */
|
|
475
|
-
readonly interaction?: true;
|
|
476
|
-
}) => any;
|
|
477
|
-
}>(value: AgentToolRun, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["QuestionRequested" | "QuestionAnswered" | "QuestionCancelled" | "InputRequested" | "InputSubmitted" | "InputCancelled" | "InteractionRequested" | "InteractionSubmitted" | "InteractionCancelled" | "Completed" | "Accepted" | "InputStreaming" | "ApprovalRequested" | "Denied" | "Errored" | "ProviderCompleted" | "InputReady" | "Executing"]>>;
|
|
477
|
+
}>(value: AgentToolRun, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["InputStreaming" | "InputReady" | "ApprovalRequested" | "Denied" | "QuestionRequested" | "QuestionAnswered" | "QuestionCancelled" | "InputRequested" | "InputSubmitted" | "InputCancelled" | "InteractionRequested" | "InteractionSubmitted" | "InteractionCancelled" | "Executing" | "Completed" | "Accepted" | "Errored" | "ProviderCompleted"]>>;
|
|
478
478
|
};
|
|
479
479
|
};
|
|
480
480
|
type AgentClientState = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.mts","names":[],"sources":["../../src/client/state.ts"],"mappings":";;;;KA0BY,YAAA;EAAA,SAEG,IAAA;EAAA,SACA,EAAA;EAAA,SACA,IAAA;EAAA,SACA,KAAA;AAAA;EAAA,SAEA,IAAA;EAAA,SAA6B,IAAA,EAAM,QAAA;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AA;EAAA;iBASJ,QAAA;EAAA,8BAb0C;EAAA;;cAgJlD,iBAAA,GAAqB,IAAA,EAAM,aAAA,CAAc,YAAA;EAAA;iBA5HjC,QAAA;EAAA,iBACE,UAAA;EAAA;;;cAwIV,wBAAA,GACX,QAAA,EAAU,aAAA,CAAc,WAAA,MACvB,aAAA,CAAc,YAAA;AAAA,cAwNJ,kBAAA,GACX,QAAA,EAAU,aAAA,CAAc,YAAA,GACxB,OAAA,EAAS,YAAA,KACR,eAAA;AAAA,cAUU,eAAA,GAAmB,KAAA,EAAO,gBAAA,EAAkB,KAAA,EAAO,UAAA,KAAa,gBAAA;AAAA,cAMhE,0BAAA,GACX,KAAA,EAAO,gBAAA,EACP,KAAA,EAAO,UAAA,EACP,OAAA,GAAS,sBAAA,KACR,gBAAA;AAAA,cAmSU,sBAAA,GACX,KAAA,EAAO,gBAAA,EACP,OAAA,EAAS,WAAA,KACR,gBAAA;;cAeU,cAAA,GACX,KAAA,EAAO,gBAAA,EACP,OAAA,WACA,KAAA,GAAQ,UAAA,KACP,gBAAA;;cAUU,gBAAA,GAAoB,KAAA,EAAO,gBAAA,KAAmB,gBAIxD;AAAA,cAEU,iBAAA,GACX,MAAA,EAAQ,aAAA,CAAc,UAAA,GACtB,YAAA,GAAc,gBAAA,EACd,OAAA,GAAS,sBAAA,KAA2B,gBAAA"}
|
|
@@ -12,58 +12,58 @@ type ContextOverflowRetryCompactionResult = Data.TaggedEnum<{
|
|
|
12
12
|
};
|
|
13
13
|
}>;
|
|
14
14
|
declare const ContextOverflowRetryCompactionResult: {
|
|
15
|
-
readonly Compacted: Data.TaggedEnum.ConstructorFrom<{
|
|
16
|
-
readonly _tag: "Compacted";
|
|
17
|
-
readonly messages: ReadonlyArray<AgentMessage>;
|
|
18
|
-
}, "_tag">;
|
|
19
15
|
readonly Skipped: Data.TaggedEnum.ConstructorFrom<{
|
|
20
16
|
readonly _tag: "Skipped";
|
|
21
17
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
22
18
|
}, "_tag">;
|
|
23
|
-
readonly
|
|
19
|
+
readonly Compacted: Data.TaggedEnum.ConstructorFrom<{
|
|
24
20
|
readonly _tag: "Compacted";
|
|
25
21
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
22
|
+
}, "_tag">;
|
|
23
|
+
readonly $is: <Tag extends "Skipped" | "Compacted">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
24
|
+
readonly _tag: "Skipped";
|
|
25
|
+
readonly messages: ReadonlyArray<AgentMessage>;
|
|
26
26
|
}, {
|
|
27
27
|
readonly _tag: Tag;
|
|
28
28
|
}> | Extract<{
|
|
29
|
-
readonly _tag: "
|
|
29
|
+
readonly _tag: "Compacted";
|
|
30
30
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
31
31
|
}, {
|
|
32
32
|
readonly _tag: Tag;
|
|
33
33
|
}>;
|
|
34
34
|
readonly $match: {
|
|
35
35
|
<Cases extends {
|
|
36
|
-
readonly Compacted: (args: {
|
|
37
|
-
readonly _tag: "Compacted";
|
|
38
|
-
readonly messages: ReadonlyArray<AgentMessage>;
|
|
39
|
-
}) => any;
|
|
40
36
|
readonly Skipped: (args: {
|
|
41
37
|
readonly _tag: "Skipped";
|
|
42
38
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
43
39
|
}) => any;
|
|
40
|
+
readonly Compacted: (args: {
|
|
41
|
+
readonly _tag: "Compacted";
|
|
42
|
+
readonly messages: ReadonlyArray<AgentMessage>;
|
|
43
|
+
}) => any;
|
|
44
44
|
}>(cases: Cases): (value: {
|
|
45
|
-
readonly _tag: "
|
|
45
|
+
readonly _tag: "Skipped";
|
|
46
46
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
47
47
|
} | {
|
|
48
|
-
readonly _tag: "
|
|
48
|
+
readonly _tag: "Compacted";
|
|
49
49
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
50
|
-
}) => import("effect/Unify").Unify<ReturnType<Cases["
|
|
50
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["Skipped" | "Compacted"]>>;
|
|
51
51
|
<Cases extends {
|
|
52
|
-
readonly Compacted: (args: {
|
|
53
|
-
readonly _tag: "Compacted";
|
|
54
|
-
readonly messages: ReadonlyArray<AgentMessage>;
|
|
55
|
-
}) => any;
|
|
56
52
|
readonly Skipped: (args: {
|
|
57
53
|
readonly _tag: "Skipped";
|
|
58
54
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
59
55
|
}) => any;
|
|
56
|
+
readonly Compacted: (args: {
|
|
57
|
+
readonly _tag: "Compacted";
|
|
58
|
+
readonly messages: ReadonlyArray<AgentMessage>;
|
|
59
|
+
}) => any;
|
|
60
60
|
}>(value: {
|
|
61
|
-
readonly _tag: "
|
|
61
|
+
readonly _tag: "Skipped";
|
|
62
62
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
63
63
|
} | {
|
|
64
|
-
readonly _tag: "
|
|
64
|
+
readonly _tag: "Compacted";
|
|
65
65
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
66
|
-
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["
|
|
66
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Skipped" | "Compacted"]>>;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
type OverflowCompactionDecision = {
|
|
@@ -73,14 +73,14 @@ type OverflowCompactionDecision = {
|
|
|
73
73
|
readonly _tag: 'Skipped';
|
|
74
74
|
};
|
|
75
75
|
declare const OverflowCompactionDecision: {
|
|
76
|
+
readonly Skipped: Data.TaggedEnum.ConstructorFrom<{
|
|
77
|
+
readonly _tag: "Skipped";
|
|
78
|
+
}, "_tag">;
|
|
76
79
|
readonly Compacted: Data.TaggedEnum.ConstructorFrom<{
|
|
77
80
|
readonly _tag: "Compacted";
|
|
78
81
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
79
82
|
}, "_tag">;
|
|
80
|
-
readonly Skipped:
|
|
81
|
-
readonly _tag: "Skipped";
|
|
82
|
-
}, "_tag">;
|
|
83
|
-
readonly $is: <Tag extends "Compacted" | "Skipped">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
83
|
+
readonly $is: <Tag extends "Skipped" | "Compacted">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
84
84
|
readonly _tag: "Compacted";
|
|
85
85
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
86
86
|
}, {
|
|
@@ -92,23 +92,23 @@ declare const OverflowCompactionDecision: {
|
|
|
92
92
|
}>;
|
|
93
93
|
readonly $match: {
|
|
94
94
|
<Cases extends {
|
|
95
|
+
readonly Skipped: (args: {
|
|
96
|
+
readonly _tag: "Skipped";
|
|
97
|
+
}) => any;
|
|
95
98
|
readonly Compacted: (args: {
|
|
96
99
|
readonly _tag: "Compacted";
|
|
97
100
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
98
101
|
}) => any;
|
|
102
|
+
}>(cases: Cases): (value: OverflowCompactionDecision) => import("effect/Unify").Unify<ReturnType<Cases["Skipped" | "Compacted"]>>;
|
|
103
|
+
<Cases extends {
|
|
99
104
|
readonly Skipped: (args: {
|
|
100
105
|
readonly _tag: "Skipped";
|
|
101
106
|
}) => any;
|
|
102
|
-
}>(cases: Cases): (value: OverflowCompactionDecision) => import("effect/Unify").Unify<ReturnType<Cases["Compacted" | "Skipped"]>>;
|
|
103
|
-
<Cases extends {
|
|
104
107
|
readonly Compacted: (args: {
|
|
105
108
|
readonly _tag: "Compacted";
|
|
106
109
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
107
110
|
}) => any;
|
|
108
|
-
|
|
109
|
-
readonly _tag: "Skipped";
|
|
110
|
-
}) => any;
|
|
111
|
-
}>(value: OverflowCompactionDecision, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Compacted" | "Skipped"]>>;
|
|
111
|
+
}>(value: OverflowCompactionDecision, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Skipped" | "Compacted"]>>;
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
type ContextOverflowRetryCompactor = (messages: ReadonlyArray<AgentMessage>) => Effect.Effect<ContextOverflowRetryCompactionResult, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.mts","names":[],"sources":["../../src/compaction/retry.ts"],"mappings":";;;;;KASY,oCAAA,GAAuC,IAAA,CAAK,UAAA;EACtD,SAAA;IAAA,SACW,QAAA,EAAU,aAAA,CAAc,YAAA;EAAA;EAEnC,OAAA;IAAA,SACW,QAAA,EAAU,aAAA,CAAc,YAAA;EAAA;AAAA;AAAA,cAIxB,oCAAA;EAAA;;
|
|
1
|
+
{"version":3,"file":"retry.d.mts","names":[],"sources":["../../src/compaction/retry.ts"],"mappings":";;;;;KASY,oCAAA,GAAuC,IAAA,CAAK,UAAA;EACtD,SAAA;IAAA,SACW,QAAA,EAAU,aAAA,CAAc,YAAA;EAAA;EAEnC,OAAA;IAAA,SACW,QAAA,EAAU,aAAA,CAAc,YAAA;EAAA;AAAA;AAAA,cAIxB,oCAAA;EAAA;;uBAJU,aAAA,CAAc,YAAA;EAAA;EAAA;;uBAHd,aAAA,CAAc,YAAA;EAAA;EAAA;;uBAGd,aAAA,CAAc,YAAA;EAAA;IAAA;;;uBAHd,aAAA,CAAc,YAAA;EAAA;IAAA;;;;;;2BAGd,aAAA,CAAc,YAAA;MAAA;MAAA;;2BAHd,aAAA,CAAc,YAAA;MAAA;IAAA;;yBAGd,aAAA,CAAc,YAAA;IAAA;MAAA;yBAHd,aAAA,CAAc,YAAA;IAAA;;;;2BAGd,aAAA,CAAc,YAAA;MAAA;MAAA;;2BAHd,aAAA,CAAc,YAAA;MAAA;IAAA;;yBAGd,aAAA,CAAc,YAAA;IAAA;MAAA;yBAHd,aAAA,CAAc,YAAA;IAAA;;;KAUzB,0BAAA;EAAA,SAEG,IAAA;EAAA,SACA,QAAA,EAAU,aAAa,CAAC,YAAA;AAAA;EAAA,SAGxB,IAAA;AAAA;AAAA,cAGF,0BA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|
+
readonly Skipped: Data.TaggedEnum.ConstructorFrom<{
|
|
61
|
+
readonly _tag: "Skipped";
|
|
62
|
+
readonly reason: CompactionSkipReason;
|
|
63
|
+
readonly messages: ReadonlyArray<AgentMessage>;
|
|
64
|
+
readonly events: ReadonlyArray<AgentEvent>;
|
|
65
|
+
readonly beforeTokens: number;
|
|
66
|
+
}, "_tag">;
|
|
60
67
|
readonly Compacted: Data.TaggedEnum.ConstructorFrom<{
|
|
61
68
|
readonly _tag: "Compacted";
|
|
62
69
|
readonly strategy: string;
|
|
@@ -68,14 +75,15 @@ declare const CompactionResult: {
|
|
|
68
75
|
readonly recentMessages: ReadonlyArray<AgentMessage>;
|
|
69
76
|
readonly summaryMessage: AgentMessage;
|
|
70
77
|
}, "_tag">;
|
|
71
|
-
readonly Skipped:
|
|
78
|
+
readonly $is: <Tag extends "Skipped" | "Compacted">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
72
79
|
readonly _tag: "Skipped";
|
|
73
80
|
readonly reason: CompactionSkipReason;
|
|
74
81
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
75
82
|
readonly events: ReadonlyArray<AgentEvent>;
|
|
76
83
|
readonly beforeTokens: number;
|
|
77
|
-
},
|
|
78
|
-
|
|
84
|
+
}, {
|
|
85
|
+
readonly _tag: Tag;
|
|
86
|
+
}> | Extract<{
|
|
79
87
|
readonly _tag: "Compacted";
|
|
80
88
|
readonly strategy: string;
|
|
81
89
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
@@ -87,17 +95,16 @@ declare const CompactionResult: {
|
|
|
87
95
|
readonly summaryMessage: AgentMessage;
|
|
88
96
|
}, {
|
|
89
97
|
readonly _tag: Tag;
|
|
90
|
-
}> | Extract<{
|
|
91
|
-
readonly _tag: "Skipped";
|
|
92
|
-
readonly reason: CompactionSkipReason;
|
|
93
|
-
readonly messages: ReadonlyArray<AgentMessage>;
|
|
94
|
-
readonly events: ReadonlyArray<AgentEvent>;
|
|
95
|
-
readonly beforeTokens: number;
|
|
96
|
-
}, {
|
|
97
|
-
readonly _tag: Tag;
|
|
98
98
|
}>;
|
|
99
99
|
readonly $match: {
|
|
100
100
|
<Cases extends {
|
|
101
|
+
readonly Skipped: (args: {
|
|
102
|
+
readonly _tag: "Skipped";
|
|
103
|
+
readonly reason: CompactionSkipReason;
|
|
104
|
+
readonly messages: ReadonlyArray<AgentMessage>;
|
|
105
|
+
readonly events: ReadonlyArray<AgentEvent>;
|
|
106
|
+
readonly beforeTokens: number;
|
|
107
|
+
}) => any;
|
|
101
108
|
readonly Compacted: (args: {
|
|
102
109
|
readonly _tag: "Compacted";
|
|
103
110
|
readonly strategy: string;
|
|
@@ -109,14 +116,13 @@ declare const CompactionResult: {
|
|
|
109
116
|
readonly recentMessages: ReadonlyArray<AgentMessage>;
|
|
110
117
|
readonly summaryMessage: AgentMessage;
|
|
111
118
|
}) => any;
|
|
112
|
-
readonly Skipped: (args: {
|
|
113
|
-
readonly _tag: "Skipped";
|
|
114
|
-
readonly reason: CompactionSkipReason;
|
|
115
|
-
readonly messages: ReadonlyArray<AgentMessage>;
|
|
116
|
-
readonly events: ReadonlyArray<AgentEvent>;
|
|
117
|
-
readonly beforeTokens: number;
|
|
118
|
-
}) => any;
|
|
119
119
|
}>(cases: Cases): (value: {
|
|
120
|
+
readonly _tag: "Skipped";
|
|
121
|
+
readonly reason: CompactionSkipReason;
|
|
122
|
+
readonly messages: ReadonlyArray<AgentMessage>;
|
|
123
|
+
readonly events: ReadonlyArray<AgentEvent>;
|
|
124
|
+
readonly beforeTokens: number;
|
|
125
|
+
} | {
|
|
120
126
|
readonly _tag: "Compacted";
|
|
121
127
|
readonly strategy: string;
|
|
122
128
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
@@ -126,14 +132,15 @@ declare const CompactionResult: {
|
|
|
126
132
|
readonly compactedMessages: ReadonlyArray<AgentMessage>;
|
|
127
133
|
readonly recentMessages: ReadonlyArray<AgentMessage>;
|
|
128
134
|
readonly summaryMessage: AgentMessage;
|
|
129
|
-
} |
|
|
130
|
-
readonly _tag: "Skipped";
|
|
131
|
-
readonly reason: CompactionSkipReason;
|
|
132
|
-
readonly messages: ReadonlyArray<AgentMessage>;
|
|
133
|
-
readonly events: ReadonlyArray<AgentEvent>;
|
|
134
|
-
readonly beforeTokens: number;
|
|
135
|
-
}) => import("effect/Unify").Unify<ReturnType<Cases["Compacted" | "Skipped"]>>;
|
|
135
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["Skipped" | "Compacted"]>>;
|
|
136
136
|
<Cases extends {
|
|
137
|
+
readonly Skipped: (args: {
|
|
138
|
+
readonly _tag: "Skipped";
|
|
139
|
+
readonly reason: CompactionSkipReason;
|
|
140
|
+
readonly messages: ReadonlyArray<AgentMessage>;
|
|
141
|
+
readonly events: ReadonlyArray<AgentEvent>;
|
|
142
|
+
readonly beforeTokens: number;
|
|
143
|
+
}) => any;
|
|
137
144
|
readonly Compacted: (args: {
|
|
138
145
|
readonly _tag: "Compacted";
|
|
139
146
|
readonly strategy: string;
|
|
@@ -145,14 +152,13 @@ declare const CompactionResult: {
|
|
|
145
152
|
readonly recentMessages: ReadonlyArray<AgentMessage>;
|
|
146
153
|
readonly summaryMessage: AgentMessage;
|
|
147
154
|
}) => any;
|
|
148
|
-
readonly Skipped: (args: {
|
|
149
|
-
readonly _tag: "Skipped";
|
|
150
|
-
readonly reason: CompactionSkipReason;
|
|
151
|
-
readonly messages: ReadonlyArray<AgentMessage>;
|
|
152
|
-
readonly events: ReadonlyArray<AgentEvent>;
|
|
153
|
-
readonly beforeTokens: number;
|
|
154
|
-
}) => any;
|
|
155
155
|
}>(value: {
|
|
156
|
+
readonly _tag: "Skipped";
|
|
157
|
+
readonly reason: CompactionSkipReason;
|
|
158
|
+
readonly messages: ReadonlyArray<AgentMessage>;
|
|
159
|
+
readonly events: ReadonlyArray<AgentEvent>;
|
|
160
|
+
readonly beforeTokens: number;
|
|
161
|
+
} | {
|
|
156
162
|
readonly _tag: "Compacted";
|
|
157
163
|
readonly strategy: string;
|
|
158
164
|
readonly messages: ReadonlyArray<AgentMessage>;
|
|
@@ -162,13 +168,7 @@ declare const CompactionResult: {
|
|
|
162
168
|
readonly compactedMessages: ReadonlyArray<AgentMessage>;
|
|
163
169
|
readonly recentMessages: ReadonlyArray<AgentMessage>;
|
|
164
170
|
readonly summaryMessage: AgentMessage;
|
|
165
|
-
} |
|
|
166
|
-
readonly _tag: "Skipped";
|
|
167
|
-
readonly reason: CompactionSkipReason;
|
|
168
|
-
readonly messages: ReadonlyArray<AgentMessage>;
|
|
169
|
-
readonly events: ReadonlyArray<AgentEvent>;
|
|
170
|
-
readonly beforeTokens: number;
|
|
171
|
-
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Compacted" | "Skipped"]>>;
|
|
171
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Skipped" | "Compacted"]>>;
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
174
|
type ApplyCompactionPlanOptions = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"window.d.mts","names":[],"sources":["../../src/compaction/window.ts"],"mappings":";;;;;cAWa,iCAAA;AAAA,cAEA,gCAAA;AAAA,KAED,oBAAA;AAAA,KAMA,2BAAA;EAAA,SACD,eAAA;EAAA,SACA,gBAAA;EAAA,SACA,WAAA;EAAA,SACA,cAAA,GAAiB,wBAAwB;AAAA;AAAA,KAGxC,oBAAA,GAAuB,IAAA,CAAK,UAAA;EACtC,IAAA;IAAA,SACW,MAAA,EAAQ,oBAAA;IAAA,SACR,QAAA,EAAU,aAAA,CAAc,YAAA;IAAA,SACxB,YAAA;EAAA;EAEX,OAAA;IAAA,SACW,QAAA,EAAU,aAAA,CAAc,YAAA;IAAA,SACxB,iBAAA,EAAmB,aAAA,CAAc,YAAA;IAAA,SACjC,cAAA,EAAgB,aAAA,CAAc,YAAA;IAAA,SAC9B,cAAA;IAAA,SACA,YAAA;EAAA;AAAA;AAAA,KAID,qBAAA,GA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AAA,EAAU,aAAa,CAAC,YAAA,GACxB,gBAAA;AAAA,cAaW,oBAAA,GACX,QAAA,EAAU,aAAA,CAAc,YAAA,GACxB,OAAA,EAAS,2BAAA,KACR,oBAAA;AAAA,cA8CU,mBAAA,GACX,IAAA,EAAM,oBAAA,EACN,OAAA,EAAS,0BAAA,KACR,gBAAA"}
|
|
@@ -4,7 +4,7 @@ import { AttachmentContentPart, AttachmentSource, AttachmentSourceResolver, Audi
|
|
|
4
4
|
import { FileDescriptor, FileId, fileIdPattern, fileLabel, fileNotCapturedLabel, formatFileSize, isFileId, normalizeFileMimeType } from "./file.mjs";
|
|
5
5
|
import { AgentInputUsage, AgentOutputUsage, AgentUsage, addAgentUsage, zeroAgentUsage } from "./usage.mjs";
|
|
6
6
|
import { BoundedNestedToolCallArgs, NestedToolCallAccess, NestedToolCallCounts, NestedToolCallInput, NestedToolCallRecord, NestedToolCallRecorder, NestedToolCallResultFields, NestedToolCallStatus, NestedToolCalls, boundNestedToolCallArgs, emptyNestedToolCallRecorder, makeNestedToolCallRecorder, nestedToolCallMaxArgsBytes, nestedToolCallMaxCalls, nestedToolCallMaxErrorChars, nestedToolCallMaxRecordedCalls, nestedToolCallMaxTotalArgsBytes, nestedToolCallRecordLimit, nestedToolCallResultFields, recordNestedToolCall } from "./nested-tool-calls.mjs";
|
|
7
|
-
import { BackgroundToolAccepted, BackgroundToolExecution, BackgroundToolInput, ErrorToolResultInput, HitlRequest, HitlResponse, HitlResponseSource, InputContentFormatter, InputDescriptor, InputRequest, InputResponse, InputResponseOutcome, InputResponseStructuredContent, InputResponseValidator, InputToolHandler, InteractionActionDescriptor, InteractionAdmissionError, InteractionBusinessOutcome, InteractionCallValidator, InteractionCandidate, InteractionClaim, InteractionDescriptor, InteractionHost, InteractionHostError, InteractionOutcome, InteractionPreflight, InteractionReceipt, InteractionReceiptStatus, InteractionRef, InteractionRequest, InteractionResponse, InteractionResponseOutcome, InteractionResponseStructuredContent, InteractionResponseValidator, InteractionValidationError, PlainHitlResponse, PlainInputResponse, PlainInteractionResponse, PlainQuestionAnswer, PlainQuestionResponse, PlainToolApprovalResponse, QuestionAnswer, QuestionOption, QuestionPrompt, QuestionRequest, QuestionResponse, QuestionResponseOutcome, QuestionResponseStructuredContent, QuestionToolParams, ToolApprovalDecision, ToolApprovalMode, ToolApprovalPolicy, ToolApprovalRequest, ToolApprovalResponse, ToolCall, ToolCallableBy, ToolDef, ToolDiscovery, ToolExposure, ToolJsonSchema, ToolJsonSchemaObject, ToolLoading, ToolResult, decodeBackgroundToolInput, decodeToolJsonSchema, decodeToolJsonSchemaObject, formatInputResponseContent, formatInteractionResponseContent, formatQuestionResponseContent, inputRequestId, inputResponseStructuredContent, interactionJsonEquals, interactionRequestId, interactionResponseStructuredContent, interactionUnknownOutcomeNotice, isCodeModeCallable, isCodeModeFailClosed, isDeferredTool, isProviderToolDef, isToolJsonSchemaObject, isToolStageable, makeBackgroundToolAcceptedResult, makeErrorToolResult, makeInteractionToolResult, plainHitlResponse, plainInputResponse, plainInteractionResponse, plainQuestionAnswer, plainQuestionResponse, plainToolApprovalResponse, providerToolDefs, questionResponseStructuredContent, sameInteractionBinding, sameInteractionCall, toolDiscovery, validInteractionReceipt, validateInteractionSubmission } from "./tool.mjs";
|
|
7
|
+
import { BackgroundToolAccepted, BackgroundToolExecution, BackgroundToolInput, ErrorToolResultInput, HitlRequest, HitlResponse, HitlResponseSource, InputContentFormatter, InputDescriptor, InputRequest, InputResponse, InputResponseOutcome, InputResponseStructuredContent, InputResponseValidator, InputToolHandler, InteractionActionDescriptor, InteractionAdmissionError, InteractionBusinessOutcome, InteractionCallValidator, InteractionCandidate, InteractionClaim, InteractionDescriptor, InteractionHost, InteractionHostError, InteractionOutcome, InteractionPreflight, InteractionReceipt, InteractionReceiptStatus, InteractionRef, InteractionRequest, InteractionResponse, InteractionResponseOutcome, InteractionResponseStructuredContent, InteractionResponseValidator, InteractionValidationError, PlainHitlResponse, PlainInputResponse, PlainInteractionResponse, PlainQuestionAnswer, PlainQuestionResponse, PlainToolApprovalResponse, QuestionAnswer, QuestionOption, QuestionPrompt, QuestionRequest, QuestionResponse, QuestionResponseOutcome, QuestionResponseStructuredContent, QuestionToolParams, ToolApprovalDecision, ToolApprovalMode, ToolApprovalPolicy, ToolApprovalRequest, ToolApprovalResponse, ToolCall, ToolCallableBy, ToolDef, ToolDiscovery, ToolExposure, ToolJsonSchema, ToolJsonSchemaObject, ToolLoading, ToolResult, decodeBackgroundToolInput, decodeToolJsonSchema, decodeToolJsonSchemaObject, formatInputResponseContent, formatInteractionResponseContent, formatQuestionResponseContent, inputRequestId, inputResponseStructuredContent, interactionJsonEquals, interactionRequestId, interactionResponseStructuredContent, interactionUnknownOutcomeNotice, isCodeModeCallable, isCodeModeFailClosed, isDeferredTool, isProviderToolDef, isToolJsonSchemaObject, isToolStageable, makeBackgroundToolAcceptedResult, makeErrorToolResult, makeInteractionToolResult, plainHitlResponse, plainInputResponse, plainInteractionResponse, plainQuestionAnswer, plainQuestionResponse, plainToolApprovalResponse, providerToolDefs, questionResponseStructuredContent, sameInteractionBinding, sameInteractionCall, toolDiscovery, toolJsonSchemaOmittedNullComment, validInteractionReceipt, validateInteractionSubmission } from "./tool.mjs";
|
|
8
8
|
import { ToolApprovalPreviewer, ToolChangeCut, ToolChangeItem, ToolChangePreview, ToolChangePreviewError, ToolChangePreviewErrorCause, ToolChangePreviewFailure, ToolChangeScalar, ToolChangeSetCuts, ToolChangeSideCuts, ToolChangeTarget, ToolFieldChange, ToolListChange, ToolSetChange, ToolStructuredChange, ToolTextChange, ToolValueChange } from "./change-preview.mjs";
|
|
9
9
|
import { AgentMessage, AssistantAgentMessage, AssistantPart, AssistantReasoningPart, AssistantReasoningReplay, AssistantTextPart, DanglingHostToolCall, HostToolCallPart, MessageAnnotations, MessageAuthor, MessageEnvelope, MessageInstruction, ProviderToolCallPart, ProviderToolResultPart, RedactedReasoningReplay, RepairDanglingHostToolCallsOptions, SignedReasoningReplay, ToolResultMessage, TranscriptInvariantValidation, UserMessage, assistantContent, assistantHostToolCalls, assistantReasoningText, danglingHostToolCalls, isInstructionMessage, latestInstructionMessages, latestInstructionState, messageContextText, prependMessageContextToContent, repairDanglingHostToolCalls, resolveMessageAttachmentSources, resolveMessagesAttachmentSources, toolResultMessageFromResult, validateNoDanglingHostToolCalls } from "./message.mjs";
|
|
10
10
|
import { AgentAbortReason, AgentAwaitingInput, AgentEnd, AgentError, AgentErrorCode, AgentEvent, AgentRetry, AgentStart, AssistantMessageEvent, CompactionEnd, CompactionStart, InputCancelled, InputRequested, InputSubmitted, InteractionCancelled, InteractionRequested, InteractionSubmitted, LLMReasoningDelta, LLMReasoningReplay, LLMStreamEnd, LLMStreamStart, LLMTextDelta, ProviderErrorInfo, ProviderFailureKind, ProviderStreamDiagnostics, ProviderStreamProtocol, ProviderStreamResponseFormat, ProviderToolResult, QuestionAnswered, QuestionCancelled, QuestionRequested, SubagentCompleted, SubagentStarted, SubagentStatus, TerminalAgentEvent, ToolApprovalDenied, ToolApprovalGranted, ToolApprovalRequested, ToolExecutionAccepted, ToolExecutionCompleted, ToolExecutionError, ToolExecutionStarted, ToolInputDelta, ToolInputEnd, ToolInputStart, TurnEnd, TurnStart, UsageUpdate, UserMessageEvent, hitlResponseEvent, isSubagentAcceptedToolResult, isSubagentObservationToolResult, isTerminalAgentEvent, makeSubagentRunId } from "./event.mjs";
|
|
@@ -16,5 +16,5 @@ import { ToolSearchActivation, activatedToolNames, declaredToolDefs, toolSearchT
|
|
|
16
16
|
//#region src/protocol/index.d.ts
|
|
17
17
|
type MessageId = string;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { AgentAbortReason, AgentActivity, AgentAwaitingInput, AgentBlocked, AgentBlockedKind, AgentBusy, AgentCompacting, AgentContentCapabilities, AgentDone, AgentEnd, AgentError, AgentErrorCode, AgentEvent, AgentFailed, AgentGenerating, AgentIdle, AgentInputUsage, AgentMessage, AgentModelCapabilities, AgentOutputUsage, AgentReasoningEffort, AgentRetry, AgentRetrying, AgentRunningTools, AgentStart, AgentStatus, AgentStatusTree, AgentToolActivityCall, AgentUsage, AgentWebSocketClientMessage, AgentWebSocketServerMessage, AgentWorking, AssistantAgentMessage, AssistantMessageEvent, AssistantPart, AssistantReasoningPart, AssistantReasoningReplay, AssistantTextPart, type AttachmentContentPart, AttachmentSource, type AttachmentSourceResolver, AudioPart, BackgroundToolAccepted, BackgroundToolExecution, BackgroundToolInput, type BoundedNestedToolCallArgs, CompactionEnd, CompactionStart, Content, ContentPart, type DanglingHostToolCall, DocumentPart, type ErrorToolResultInput, FileDescriptor, FileId, FilePart, HitlRequest, HitlResponse, HitlResponseSource, HostToolCallPart, ImagePart, InlineBase64AttachmentSource, InputCancelled, type InputContentFormatter, InputDescriptor, InputRequest, InputRequested, InputResponse, InputResponseInput, InputResponseOutcome, type InputResponseStructuredContent, type InputResponseValidator, InputSubmitted, type InputToolHandler, InteractionActionDescriptor, InteractionAdmissionError, InteractionBusinessOutcome, type InteractionCallValidator, InteractionCancelled, InteractionCandidate, InteractionClaim, InteractionDescriptor, type InteractionHost, InteractionHostError, type InteractionOutcome, type InteractionPreflight, InteractionReceipt, InteractionReceiptStatus, type InteractionRef, InteractionRequest, InteractionRequested, InteractionResponse, InteractionResponseInput, InteractionResponseOutcome, type InteractionResponseStructuredContent, type InteractionResponseValidator, InteractionSubmitted, InteractionValidationError, LLMReasoningDelta, LLMReasoningReplay, LLMStreamEnd, LLMStreamStart, LLMTextDelta, MessageAnnotations, MessageAuthor, type MessageEnvelope, MessageId, MessageInstruction, NestedToolCallAccess, NestedToolCallCounts, type NestedToolCallInput, NestedToolCallRecord, type NestedToolCallRecorder, type NestedToolCallResultFields, NestedToolCallStatus, NestedToolCalls, PlainHitlResponse, type PlainInputResponse, type PlainInteractionResponse, type PlainQuestionAnswer, type PlainQuestionResponse, type PlainToolApprovalResponse, ProviderErrorInfo, ProviderFailureKind, ProviderStreamDiagnostics, ProviderStreamProtocol, ProviderStreamResponseFormat, ProviderToolCallPart, ProviderToolResult, ProviderToolResultPart, QuestionAnswer, QuestionAnswered, QuestionCancelled, QuestionOption, QuestionPrompt, QuestionRequest, QuestionRequested, QuestionResponse, QuestionResponseInput, QuestionResponseOutcome, type QuestionResponseStructuredContent, QuestionToolParams, RedactedReasoningReplay, RefAttachmentSource, type RepairDanglingHostToolCallsOptions, SessionSnapshot, SignedReasoningReplay, SubagentCompleted, SubagentStarted, SubagentStatus, SubagentStatusEntry, type TerminalAgentEvent, TextPart, ToolApprovalDecision, ToolApprovalDenied, ToolApprovalGranted, ToolApprovalMode, ToolApprovalPolicy, type ToolApprovalPreviewer, ToolApprovalRequest, ToolApprovalRequested, ToolApprovalResponse, ToolApprovalResponseInput, ToolCall, ToolCallableBy, ToolChangeCut, ToolChangeItem, ToolChangePreview, ToolChangePreviewError, ToolChangePreviewErrorCause, ToolChangePreviewFailure, ToolChangeScalar, ToolChangeSetCuts, ToolChangeSideCuts, ToolChangeTarget, ToolDef, ToolDiscovery, ToolExecutionAccepted, ToolExecutionCompleted, ToolExecutionError, ToolExecutionStarted, type ToolExposure, ToolFieldChange, ToolInputDelta, ToolInputEnd, ToolInputStart, ToolJsonSchema, ToolJsonSchemaObject, ToolListChange, ToolLoading, ToolResult, ToolResultMessage, ToolSearchActivation, ToolSetChange, ToolStructuredChange, ToolTextChange, ToolValueChange, type TranscriptInvariantValidation, TurnEnd, TurnStart, UrlAttachmentSource, UsageUpdate, UserInput, UserMessage, UserMessageEvent, activatedToolNames, addAgentUsage, agentBlockedKind, agentStatusFromEvents, agentStatusRetry, agentStatusTreeFromEvents, appendTextToContent, assistantContent, assistantHostToolCalls, assistantReasoningText, attachmentSourceBase64, attachmentSourceDataUrl, attachmentSourcePreview, attachmentSourceText, attachmentSourceUrl, base64ToBytes, boundNestedToolCallArgs, bytesToBase64, contentPartPreview, contentPartText, contentParts, contentPreview, contentText, danglingHostToolCalls, declaredToolDefs, decodeBackgroundToolInput, decodeToolJsonSchema, decodeToolJsonSchemaObject, documentPartFromText, emptyNestedToolCallRecorder, fileIdPattern, fileLabel, fileNotCapturedLabel, filePartFromBytes, filePartText, formatFileSize, formatInputResponseContent, formatInteractionResponseContent, formatQuestionResponseContent, hitlRequestBlockedKind, hitlResponseEvent, idleAgentStatus, inferTextDocumentMimeType, initialAgentStatusTree, inlineBase64AttachmentSource, inlineBase64Source, inputRequestId, inputResponseStructuredContent, interactionJsonEquals, interactionRequestId, interactionResponseStructuredContent, interactionUnknownOutcomeNotice, isAgentStatusLive, isCodeModeCallable, isCodeModeFailClosed, isContentEmpty, isDeferredTool, isFileId, isInstructionMessage, isProviderToolDef, isSubagentAcceptedToolResult, isSubagentObservationToolResult, isTerminalAgentEvent, isTextDocumentMimeType, isToolJsonSchemaObject, isToolStageable, latestInstructionMessages, latestInstructionState, makeBackgroundToolAcceptedResult, makeErrorToolResult, makeInteractionToolResult, makeNestedToolCallRecorder, makeSubagentRunId, messageContextText, nestedToolCallMaxArgsBytes, nestedToolCallMaxCalls, nestedToolCallMaxErrorChars, nestedToolCallMaxRecordedCalls, nestedToolCallMaxTotalArgsBytes, nestedToolCallRecordLimit, nestedToolCallResultFields, nextAgentStatus, nextAgentStatusTree, normalizeFileMimeType, plainHitlResponse, plainInputResponse, plainInteractionResponse, plainQuestionAnswer, plainQuestionResponse, plainToolApprovalResponse, prependMessageContextToContent, providerToolDefs, questionResponseStructuredContent, reconcileAgentStatus, recordNestedToolCall, refAttachmentSource, repairDanglingHostToolCalls, replaceLoneSurrogates, replaceLoneSurrogatesDeep, resolveContentAttachmentSources, resolveMessageAttachmentSources, resolveMessagesAttachmentSources, sameInteractionBinding, sameInteractionCall, settleAgentStatusTree, startAgentStatusTree, textDocumentMimeTypeFromFilename, textImageDocumentModelCapabilities, textImageModelCapabilities, textOnlyModelCapabilities, textToBase64Utf8, toolDiscovery, toolResultMessageFromResult, toolSearchToolName, truncateCodePoints, urlAttachmentSource, validInteractionReceipt, validateInteractionSubmission, validateNoDanglingHostToolCalls, withSubagentStatus, zeroAgentUsage };
|
|
19
|
+
export { AgentAbortReason, AgentActivity, AgentAwaitingInput, AgentBlocked, AgentBlockedKind, AgentBusy, AgentCompacting, AgentContentCapabilities, AgentDone, AgentEnd, AgentError, AgentErrorCode, AgentEvent, AgentFailed, AgentGenerating, AgentIdle, AgentInputUsage, AgentMessage, AgentModelCapabilities, AgentOutputUsage, AgentReasoningEffort, AgentRetry, AgentRetrying, AgentRunningTools, AgentStart, AgentStatus, AgentStatusTree, AgentToolActivityCall, AgentUsage, AgentWebSocketClientMessage, AgentWebSocketServerMessage, AgentWorking, AssistantAgentMessage, AssistantMessageEvent, AssistantPart, AssistantReasoningPart, AssistantReasoningReplay, AssistantTextPart, type AttachmentContentPart, AttachmentSource, type AttachmentSourceResolver, AudioPart, BackgroundToolAccepted, BackgroundToolExecution, BackgroundToolInput, type BoundedNestedToolCallArgs, CompactionEnd, CompactionStart, Content, ContentPart, type DanglingHostToolCall, DocumentPart, type ErrorToolResultInput, FileDescriptor, FileId, FilePart, HitlRequest, HitlResponse, HitlResponseSource, HostToolCallPart, ImagePart, InlineBase64AttachmentSource, InputCancelled, type InputContentFormatter, InputDescriptor, InputRequest, InputRequested, InputResponse, InputResponseInput, InputResponseOutcome, type InputResponseStructuredContent, type InputResponseValidator, InputSubmitted, type InputToolHandler, InteractionActionDescriptor, InteractionAdmissionError, InteractionBusinessOutcome, type InteractionCallValidator, InteractionCancelled, InteractionCandidate, InteractionClaim, InteractionDescriptor, type InteractionHost, InteractionHostError, type InteractionOutcome, type InteractionPreflight, InteractionReceipt, InteractionReceiptStatus, type InteractionRef, InteractionRequest, InteractionRequested, InteractionResponse, InteractionResponseInput, InteractionResponseOutcome, type InteractionResponseStructuredContent, type InteractionResponseValidator, InteractionSubmitted, InteractionValidationError, LLMReasoningDelta, LLMReasoningReplay, LLMStreamEnd, LLMStreamStart, LLMTextDelta, MessageAnnotations, MessageAuthor, type MessageEnvelope, MessageId, MessageInstruction, NestedToolCallAccess, NestedToolCallCounts, type NestedToolCallInput, NestedToolCallRecord, type NestedToolCallRecorder, type NestedToolCallResultFields, NestedToolCallStatus, NestedToolCalls, PlainHitlResponse, type PlainInputResponse, type PlainInteractionResponse, type PlainQuestionAnswer, type PlainQuestionResponse, type PlainToolApprovalResponse, ProviderErrorInfo, ProviderFailureKind, ProviderStreamDiagnostics, ProviderStreamProtocol, ProviderStreamResponseFormat, ProviderToolCallPart, ProviderToolResult, ProviderToolResultPart, QuestionAnswer, QuestionAnswered, QuestionCancelled, QuestionOption, QuestionPrompt, QuestionRequest, QuestionRequested, QuestionResponse, QuestionResponseInput, QuestionResponseOutcome, type QuestionResponseStructuredContent, QuestionToolParams, RedactedReasoningReplay, RefAttachmentSource, type RepairDanglingHostToolCallsOptions, SessionSnapshot, SignedReasoningReplay, SubagentCompleted, SubagentStarted, SubagentStatus, SubagentStatusEntry, type TerminalAgentEvent, TextPart, ToolApprovalDecision, ToolApprovalDenied, ToolApprovalGranted, ToolApprovalMode, ToolApprovalPolicy, type ToolApprovalPreviewer, ToolApprovalRequest, ToolApprovalRequested, ToolApprovalResponse, ToolApprovalResponseInput, ToolCall, ToolCallableBy, ToolChangeCut, ToolChangeItem, ToolChangePreview, ToolChangePreviewError, ToolChangePreviewErrorCause, ToolChangePreviewFailure, ToolChangeScalar, ToolChangeSetCuts, ToolChangeSideCuts, ToolChangeTarget, ToolDef, ToolDiscovery, ToolExecutionAccepted, ToolExecutionCompleted, ToolExecutionError, ToolExecutionStarted, type ToolExposure, ToolFieldChange, ToolInputDelta, ToolInputEnd, ToolInputStart, ToolJsonSchema, ToolJsonSchemaObject, ToolListChange, ToolLoading, ToolResult, ToolResultMessage, ToolSearchActivation, ToolSetChange, ToolStructuredChange, ToolTextChange, ToolValueChange, type TranscriptInvariantValidation, TurnEnd, TurnStart, UrlAttachmentSource, UsageUpdate, UserInput, UserMessage, UserMessageEvent, activatedToolNames, addAgentUsage, agentBlockedKind, agentStatusFromEvents, agentStatusRetry, agentStatusTreeFromEvents, appendTextToContent, assistantContent, assistantHostToolCalls, assistantReasoningText, attachmentSourceBase64, attachmentSourceDataUrl, attachmentSourcePreview, attachmentSourceText, attachmentSourceUrl, base64ToBytes, boundNestedToolCallArgs, bytesToBase64, contentPartPreview, contentPartText, contentParts, contentPreview, contentText, danglingHostToolCalls, declaredToolDefs, decodeBackgroundToolInput, decodeToolJsonSchema, decodeToolJsonSchemaObject, documentPartFromText, emptyNestedToolCallRecorder, fileIdPattern, fileLabel, fileNotCapturedLabel, filePartFromBytes, filePartText, formatFileSize, formatInputResponseContent, formatInteractionResponseContent, formatQuestionResponseContent, hitlRequestBlockedKind, hitlResponseEvent, idleAgentStatus, inferTextDocumentMimeType, initialAgentStatusTree, inlineBase64AttachmentSource, inlineBase64Source, inputRequestId, inputResponseStructuredContent, interactionJsonEquals, interactionRequestId, interactionResponseStructuredContent, interactionUnknownOutcomeNotice, isAgentStatusLive, isCodeModeCallable, isCodeModeFailClosed, isContentEmpty, isDeferredTool, isFileId, isInstructionMessage, isProviderToolDef, isSubagentAcceptedToolResult, isSubagentObservationToolResult, isTerminalAgentEvent, isTextDocumentMimeType, isToolJsonSchemaObject, isToolStageable, latestInstructionMessages, latestInstructionState, makeBackgroundToolAcceptedResult, makeErrorToolResult, makeInteractionToolResult, makeNestedToolCallRecorder, makeSubagentRunId, messageContextText, nestedToolCallMaxArgsBytes, nestedToolCallMaxCalls, nestedToolCallMaxErrorChars, nestedToolCallMaxRecordedCalls, nestedToolCallMaxTotalArgsBytes, nestedToolCallRecordLimit, nestedToolCallResultFields, nextAgentStatus, nextAgentStatusTree, normalizeFileMimeType, plainHitlResponse, plainInputResponse, plainInteractionResponse, plainQuestionAnswer, plainQuestionResponse, plainToolApprovalResponse, prependMessageContextToContent, providerToolDefs, questionResponseStructuredContent, reconcileAgentStatus, recordNestedToolCall, refAttachmentSource, repairDanglingHostToolCalls, replaceLoneSurrogates, replaceLoneSurrogatesDeep, resolveContentAttachmentSources, resolveMessageAttachmentSources, resolveMessagesAttachmentSources, sameInteractionBinding, sameInteractionCall, settleAgentStatusTree, startAgentStatusTree, textDocumentMimeTypeFromFilename, textImageDocumentModelCapabilities, textImageModelCapabilities, textOnlyModelCapabilities, textToBase64Utf8, toolDiscovery, toolJsonSchemaOmittedNullComment, toolResultMessageFromResult, toolSearchToolName, truncateCodePoints, urlAttachmentSource, validInteractionReceipt, validateInteractionSubmission, validateNoDanglingHostToolCalls, withSubagentStatus, zeroAgentUsage };
|
|
20
20
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/protocol/index.ts"],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/protocol/index.ts"],"mappings":";;;;;;;;;;;;;;;;KA+WY,SAAA"}
|