@av-pi-studio/protocol 0.0.114 → 0.0.115
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/dist/messages.d.ts +62 -0
- package/dist/messages.js +8 -0
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -799,6 +799,14 @@ export declare const agentStreamEventSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
799
799
|
output?: string | undefined;
|
|
800
800
|
}>]>;
|
|
801
801
|
status: z.ZodOptional<z.ZodString>;
|
|
802
|
+
/**
|
|
803
|
+
* Ephemeral in-flight output snapshot (Pi `tool_execution_update`). Producer contract: broadcast
|
|
804
|
+
* with no `seq`, never appended to the timeline, never replayed from history, and never sent
|
|
805
|
+
* after the call's terminal event. Consumer contract: upsert by `callId` and let the snapshot
|
|
806
|
+
* supersede earlier output — never accumulate. Describes the delivery, not the tool call, so a
|
|
807
|
+
* client must not store it on its row model.
|
|
808
|
+
*/
|
|
809
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
802
810
|
}, "strip", z.ZodTypeAny, {
|
|
803
811
|
kind: "tool_call";
|
|
804
812
|
callId?: string | undefined;
|
|
@@ -833,6 +841,7 @@ export declare const agentStreamEventSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
833
841
|
output?: string | undefined;
|
|
834
842
|
};
|
|
835
843
|
status?: string | undefined;
|
|
844
|
+
partial?: boolean | undefined;
|
|
836
845
|
}, {
|
|
837
846
|
kind: "tool_call";
|
|
838
847
|
callId?: string | undefined;
|
|
@@ -867,6 +876,7 @@ export declare const agentStreamEventSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
867
876
|
output?: string | undefined;
|
|
868
877
|
};
|
|
869
878
|
status?: string | undefined;
|
|
879
|
+
partial?: boolean | undefined;
|
|
870
880
|
}>, z.ZodObject<{
|
|
871
881
|
kind: z.ZodLiteral<"turn_started">;
|
|
872
882
|
turnId: z.ZodOptional<z.ZodString>;
|
|
@@ -1122,6 +1132,14 @@ export declare const agentStreamSchema: z.ZodObject<{
|
|
|
1122
1132
|
output?: string | undefined;
|
|
1123
1133
|
}>]>;
|
|
1124
1134
|
status: z.ZodOptional<z.ZodString>;
|
|
1135
|
+
/**
|
|
1136
|
+
* Ephemeral in-flight output snapshot (Pi `tool_execution_update`). Producer contract: broadcast
|
|
1137
|
+
* with no `seq`, never appended to the timeline, never replayed from history, and never sent
|
|
1138
|
+
* after the call's terminal event. Consumer contract: upsert by `callId` and let the snapshot
|
|
1139
|
+
* supersede earlier output — never accumulate. Describes the delivery, not the tool call, so a
|
|
1140
|
+
* client must not store it on its row model.
|
|
1141
|
+
*/
|
|
1142
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
1125
1143
|
}, "strip", z.ZodTypeAny, {
|
|
1126
1144
|
kind: "tool_call";
|
|
1127
1145
|
callId?: string | undefined;
|
|
@@ -1156,6 +1174,7 @@ export declare const agentStreamSchema: z.ZodObject<{
|
|
|
1156
1174
|
output?: string | undefined;
|
|
1157
1175
|
};
|
|
1158
1176
|
status?: string | undefined;
|
|
1177
|
+
partial?: boolean | undefined;
|
|
1159
1178
|
}, {
|
|
1160
1179
|
kind: "tool_call";
|
|
1161
1180
|
callId?: string | undefined;
|
|
@@ -1190,6 +1209,7 @@ export declare const agentStreamSchema: z.ZodObject<{
|
|
|
1190
1209
|
output?: string | undefined;
|
|
1191
1210
|
};
|
|
1192
1211
|
status?: string | undefined;
|
|
1212
|
+
partial?: boolean | undefined;
|
|
1193
1213
|
}>, z.ZodObject<{
|
|
1194
1214
|
kind: z.ZodLiteral<"turn_started">;
|
|
1195
1215
|
turnId: z.ZodOptional<z.ZodString>;
|
|
@@ -1337,6 +1357,7 @@ export declare const agentStreamSchema: z.ZodObject<{
|
|
|
1337
1357
|
output?: string | undefined;
|
|
1338
1358
|
};
|
|
1339
1359
|
status?: string | undefined;
|
|
1360
|
+
partial?: boolean | undefined;
|
|
1340
1361
|
} | {
|
|
1341
1362
|
kind: "turn_started";
|
|
1342
1363
|
turnId?: string | undefined;
|
|
@@ -1424,6 +1445,7 @@ export declare const agentStreamSchema: z.ZodObject<{
|
|
|
1424
1445
|
output?: string | undefined;
|
|
1425
1446
|
};
|
|
1426
1447
|
status?: string | undefined;
|
|
1448
|
+
partial?: boolean | undefined;
|
|
1427
1449
|
} | {
|
|
1428
1450
|
kind: "turn_started";
|
|
1429
1451
|
turnId?: string | undefined;
|
|
@@ -11653,6 +11675,14 @@ export declare const sessionMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
11653
11675
|
output?: string | undefined;
|
|
11654
11676
|
}>]>;
|
|
11655
11677
|
status: z.ZodOptional<z.ZodString>;
|
|
11678
|
+
/**
|
|
11679
|
+
* Ephemeral in-flight output snapshot (Pi `tool_execution_update`). Producer contract: broadcast
|
|
11680
|
+
* with no `seq`, never appended to the timeline, never replayed from history, and never sent
|
|
11681
|
+
* after the call's terminal event. Consumer contract: upsert by `callId` and let the snapshot
|
|
11682
|
+
* supersede earlier output — never accumulate. Describes the delivery, not the tool call, so a
|
|
11683
|
+
* client must not store it on its row model.
|
|
11684
|
+
*/
|
|
11685
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
11656
11686
|
}, "strip", z.ZodTypeAny, {
|
|
11657
11687
|
kind: "tool_call";
|
|
11658
11688
|
callId?: string | undefined;
|
|
@@ -11687,6 +11717,7 @@ export declare const sessionMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
11687
11717
|
output?: string | undefined;
|
|
11688
11718
|
};
|
|
11689
11719
|
status?: string | undefined;
|
|
11720
|
+
partial?: boolean | undefined;
|
|
11690
11721
|
}, {
|
|
11691
11722
|
kind: "tool_call";
|
|
11692
11723
|
callId?: string | undefined;
|
|
@@ -11721,6 +11752,7 @@ export declare const sessionMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
11721
11752
|
output?: string | undefined;
|
|
11722
11753
|
};
|
|
11723
11754
|
status?: string | undefined;
|
|
11755
|
+
partial?: boolean | undefined;
|
|
11724
11756
|
}>, z.ZodObject<{
|
|
11725
11757
|
kind: z.ZodLiteral<"turn_started">;
|
|
11726
11758
|
turnId: z.ZodOptional<z.ZodString>;
|
|
@@ -11868,6 +11900,7 @@ export declare const sessionMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
11868
11900
|
output?: string | undefined;
|
|
11869
11901
|
};
|
|
11870
11902
|
status?: string | undefined;
|
|
11903
|
+
partial?: boolean | undefined;
|
|
11871
11904
|
} | {
|
|
11872
11905
|
kind: "turn_started";
|
|
11873
11906
|
turnId?: string | undefined;
|
|
@@ -11955,6 +11988,7 @@ export declare const sessionMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
11955
11988
|
output?: string | undefined;
|
|
11956
11989
|
};
|
|
11957
11990
|
status?: string | undefined;
|
|
11991
|
+
partial?: boolean | undefined;
|
|
11958
11992
|
} | {
|
|
11959
11993
|
kind: "turn_started";
|
|
11960
11994
|
turnId?: string | undefined;
|
|
@@ -20885,6 +20919,14 @@ export declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
20885
20919
|
output?: string | undefined;
|
|
20886
20920
|
}>]>;
|
|
20887
20921
|
status: z.ZodOptional<z.ZodString>;
|
|
20922
|
+
/**
|
|
20923
|
+
* Ephemeral in-flight output snapshot (Pi `tool_execution_update`). Producer contract: broadcast
|
|
20924
|
+
* with no `seq`, never appended to the timeline, never replayed from history, and never sent
|
|
20925
|
+
* after the call's terminal event. Consumer contract: upsert by `callId` and let the snapshot
|
|
20926
|
+
* supersede earlier output — never accumulate. Describes the delivery, not the tool call, so a
|
|
20927
|
+
* client must not store it on its row model.
|
|
20928
|
+
*/
|
|
20929
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
20888
20930
|
}, "strip", z.ZodTypeAny, {
|
|
20889
20931
|
kind: "tool_call";
|
|
20890
20932
|
callId?: string | undefined;
|
|
@@ -20919,6 +20961,7 @@ export declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
20919
20961
|
output?: string | undefined;
|
|
20920
20962
|
};
|
|
20921
20963
|
status?: string | undefined;
|
|
20964
|
+
partial?: boolean | undefined;
|
|
20922
20965
|
}, {
|
|
20923
20966
|
kind: "tool_call";
|
|
20924
20967
|
callId?: string | undefined;
|
|
@@ -20953,6 +20996,7 @@ export declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
20953
20996
|
output?: string | undefined;
|
|
20954
20997
|
};
|
|
20955
20998
|
status?: string | undefined;
|
|
20999
|
+
partial?: boolean | undefined;
|
|
20956
21000
|
}>, z.ZodObject<{
|
|
20957
21001
|
kind: z.ZodLiteral<"turn_started">;
|
|
20958
21002
|
turnId: z.ZodOptional<z.ZodString>;
|
|
@@ -21100,6 +21144,7 @@ export declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
21100
21144
|
output?: string | undefined;
|
|
21101
21145
|
};
|
|
21102
21146
|
status?: string | undefined;
|
|
21147
|
+
partial?: boolean | undefined;
|
|
21103
21148
|
} | {
|
|
21104
21149
|
kind: "turn_started";
|
|
21105
21150
|
turnId?: string | undefined;
|
|
@@ -21187,6 +21232,7 @@ export declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
21187
21232
|
output?: string | undefined;
|
|
21188
21233
|
};
|
|
21189
21234
|
status?: string | undefined;
|
|
21235
|
+
partial?: boolean | undefined;
|
|
21190
21236
|
} | {
|
|
21191
21237
|
kind: "turn_started";
|
|
21192
21238
|
turnId?: string | undefined;
|
|
@@ -29795,6 +29841,7 @@ export declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
29795
29841
|
output?: string | undefined;
|
|
29796
29842
|
};
|
|
29797
29843
|
status?: string | undefined;
|
|
29844
|
+
partial?: boolean | undefined;
|
|
29798
29845
|
} | {
|
|
29799
29846
|
kind: "turn_started";
|
|
29800
29847
|
turnId?: string | undefined;
|
|
@@ -32749,6 +32796,7 @@ export declare const sessionEnvelopeSchema: z.ZodObject<{
|
|
|
32749
32796
|
output?: string | undefined;
|
|
32750
32797
|
};
|
|
32751
32798
|
status?: string | undefined;
|
|
32799
|
+
partial?: boolean | undefined;
|
|
32752
32800
|
} | {
|
|
32753
32801
|
kind: "turn_started";
|
|
32754
32802
|
turnId?: string | undefined;
|
|
@@ -36115,6 +36163,14 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
36115
36163
|
output?: string | undefined;
|
|
36116
36164
|
}>]>;
|
|
36117
36165
|
status: z.ZodOptional<z.ZodString>;
|
|
36166
|
+
/**
|
|
36167
|
+
* Ephemeral in-flight output snapshot (Pi `tool_execution_update`). Producer contract: broadcast
|
|
36168
|
+
* with no `seq`, never appended to the timeline, never replayed from history, and never sent
|
|
36169
|
+
* after the call's terminal event. Consumer contract: upsert by `callId` and let the snapshot
|
|
36170
|
+
* supersede earlier output — never accumulate. Describes the delivery, not the tool call, so a
|
|
36171
|
+
* client must not store it on its row model.
|
|
36172
|
+
*/
|
|
36173
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
36118
36174
|
}, "strip", z.ZodTypeAny, {
|
|
36119
36175
|
kind: "tool_call";
|
|
36120
36176
|
callId?: string | undefined;
|
|
@@ -36149,6 +36205,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
36149
36205
|
output?: string | undefined;
|
|
36150
36206
|
};
|
|
36151
36207
|
status?: string | undefined;
|
|
36208
|
+
partial?: boolean | undefined;
|
|
36152
36209
|
}, {
|
|
36153
36210
|
kind: "tool_call";
|
|
36154
36211
|
callId?: string | undefined;
|
|
@@ -36183,6 +36240,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
36183
36240
|
output?: string | undefined;
|
|
36184
36241
|
};
|
|
36185
36242
|
status?: string | undefined;
|
|
36243
|
+
partial?: boolean | undefined;
|
|
36186
36244
|
}>, z.ZodObject<{
|
|
36187
36245
|
kind: z.ZodLiteral<"turn_started">;
|
|
36188
36246
|
turnId: z.ZodOptional<z.ZodString>;
|
|
@@ -36330,6 +36388,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
36330
36388
|
output?: string | undefined;
|
|
36331
36389
|
};
|
|
36332
36390
|
status?: string | undefined;
|
|
36391
|
+
partial?: boolean | undefined;
|
|
36333
36392
|
} | {
|
|
36334
36393
|
kind: "turn_started";
|
|
36335
36394
|
turnId?: string | undefined;
|
|
@@ -36417,6 +36476,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
36417
36476
|
output?: string | undefined;
|
|
36418
36477
|
};
|
|
36419
36478
|
status?: string | undefined;
|
|
36479
|
+
partial?: boolean | undefined;
|
|
36420
36480
|
} | {
|
|
36421
36481
|
kind: "turn_started";
|
|
36422
36482
|
turnId?: string | undefined;
|
|
@@ -45025,6 +45085,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
45025
45085
|
output?: string | undefined;
|
|
45026
45086
|
};
|
|
45027
45087
|
status?: string | undefined;
|
|
45088
|
+
partial?: boolean | undefined;
|
|
45028
45089
|
} | {
|
|
45029
45090
|
kind: "turn_started";
|
|
45030
45091
|
turnId?: string | undefined;
|
|
@@ -47979,6 +48040,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
47979
48040
|
output?: string | undefined;
|
|
47980
48041
|
};
|
|
47981
48042
|
status?: string | undefined;
|
|
48043
|
+
partial?: boolean | undefined;
|
|
47982
48044
|
} | {
|
|
47983
48045
|
kind: "turn_started";
|
|
47984
48046
|
turnId?: string | undefined;
|
package/dist/messages.js
CHANGED
|
@@ -241,6 +241,14 @@ export const agentStreamEventSchema = z.discriminatedUnion("kind", [
|
|
|
241
241
|
callId: z.string().optional(),
|
|
242
242
|
tool: toolCallDetailSchema,
|
|
243
243
|
status: z.string().optional(),
|
|
244
|
+
/**
|
|
245
|
+
* Ephemeral in-flight output snapshot (Pi `tool_execution_update`). Producer contract: broadcast
|
|
246
|
+
* with no `seq`, never appended to the timeline, never replayed from history, and never sent
|
|
247
|
+
* after the call's terminal event. Consumer contract: upsert by `callId` and let the snapshot
|
|
248
|
+
* supersede earlier output — never accumulate. Describes the delivery, not the tool call, so a
|
|
249
|
+
* client must not store it on its row model.
|
|
250
|
+
*/
|
|
251
|
+
partial: z.boolean().optional(),
|
|
244
252
|
}),
|
|
245
253
|
z.object({ kind: z.literal("turn_started"), turnId: z.string().optional() }),
|
|
246
254
|
z.object({ kind: z.literal("turn_completed"), turnId: z.string().optional() }),
|