@heynixie/contract 0.86.0 → 0.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -64,12 +64,14 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
64
64
|
images?: {
|
|
65
65
|
mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
66
66
|
}[] | undefined;
|
|
67
|
+
isVoided?: true | undefined;
|
|
67
68
|
spans?: {
|
|
68
69
|
end: number;
|
|
69
70
|
source: "dropped" | "pasted" | "typed" | "unknown";
|
|
70
71
|
start: number;
|
|
71
72
|
}[] | undefined;
|
|
72
73
|
text: string;
|
|
74
|
+
voidReason?: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped" | undefined;
|
|
73
75
|
} | undefined;
|
|
74
76
|
moment?: {
|
|
75
77
|
momentID: string;
|
|
@@ -143,6 +145,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
143
145
|
runID?: string | undefined;
|
|
144
146
|
tool?: string | undefined;
|
|
145
147
|
} | undefined;
|
|
148
|
+
voidedReply?: {
|
|
149
|
+
sequence: number;
|
|
150
|
+
reason: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped";
|
|
151
|
+
} | undefined;
|
|
146
152
|
worker?: {
|
|
147
153
|
phase: "started";
|
|
148
154
|
workerRunID: string;
|
|
@@ -235,12 +241,14 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
235
241
|
images?: {
|
|
236
242
|
mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
237
243
|
}[] | undefined;
|
|
244
|
+
isVoided?: true | undefined;
|
|
238
245
|
spans?: {
|
|
239
246
|
end: number;
|
|
240
247
|
source: "dropped" | "pasted" | "typed" | "unknown";
|
|
241
248
|
start: number;
|
|
242
249
|
}[] | undefined;
|
|
243
250
|
text: string;
|
|
251
|
+
voidReason?: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped" | undefined;
|
|
244
252
|
} | undefined;
|
|
245
253
|
moment?: {
|
|
246
254
|
momentID: string;
|
|
@@ -314,6 +322,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
314
322
|
runID?: string | undefined;
|
|
315
323
|
tool?: string | undefined;
|
|
316
324
|
} | undefined;
|
|
325
|
+
voidedReply?: {
|
|
326
|
+
sequence: number;
|
|
327
|
+
reason: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped";
|
|
328
|
+
} | undefined;
|
|
317
329
|
worker?: {
|
|
318
330
|
phase: "started";
|
|
319
331
|
workerRunID: string;
|
|
@@ -3733,12 +3745,14 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3733
3745
|
images?: {
|
|
3734
3746
|
mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
3735
3747
|
}[] | undefined;
|
|
3748
|
+
isVoided?: true | undefined;
|
|
3736
3749
|
spans?: {
|
|
3737
3750
|
end: number;
|
|
3738
3751
|
source: "dropped" | "pasted" | "typed" | "unknown";
|
|
3739
3752
|
start: number;
|
|
3740
3753
|
}[] | undefined;
|
|
3741
3754
|
text: string;
|
|
3755
|
+
voidReason?: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped" | undefined;
|
|
3742
3756
|
} | undefined;
|
|
3743
3757
|
moment?: {
|
|
3744
3758
|
momentID: string;
|
|
@@ -3812,6 +3826,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3812
3826
|
runID?: string | undefined;
|
|
3813
3827
|
tool?: string | undefined;
|
|
3814
3828
|
} | undefined;
|
|
3829
|
+
voidedReply?: {
|
|
3830
|
+
sequence: number;
|
|
3831
|
+
reason: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped";
|
|
3832
|
+
} | undefined;
|
|
3815
3833
|
worker?: {
|
|
3816
3834
|
phase: "started";
|
|
3817
3835
|
workerRunID: string;
|
|
@@ -3921,12 +3939,14 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3921
3939
|
images?: {
|
|
3922
3940
|
mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
3923
3941
|
}[] | undefined;
|
|
3942
|
+
isVoided?: true | undefined;
|
|
3924
3943
|
spans?: {
|
|
3925
3944
|
end: number;
|
|
3926
3945
|
source: "dropped" | "pasted" | "typed" | "unknown";
|
|
3927
3946
|
start: number;
|
|
3928
3947
|
}[] | undefined;
|
|
3929
3948
|
text: string;
|
|
3949
|
+
voidReason?: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped" | undefined;
|
|
3930
3950
|
} | undefined;
|
|
3931
3951
|
moment?: {
|
|
3932
3952
|
momentID: string;
|
|
@@ -4000,6 +4020,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
4000
4020
|
runID?: string | undefined;
|
|
4001
4021
|
tool?: string | undefined;
|
|
4002
4022
|
} | undefined;
|
|
4023
|
+
voidedReply?: {
|
|
4024
|
+
sequence: number;
|
|
4025
|
+
reason: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped";
|
|
4026
|
+
} | undefined;
|
|
4003
4027
|
worker?: {
|
|
4004
4028
|
phase: "started";
|
|
4005
4029
|
workerRunID: string;
|
|
@@ -87,6 +87,7 @@ export declare const contract: {
|
|
|
87
87
|
"image/webp": "image/webp";
|
|
88
88
|
}>;
|
|
89
89
|
}, z.core.$strip>>>;
|
|
90
|
+
isVoided: z.ZodOptional<z.ZodLiteral<true>>;
|
|
90
91
|
spans: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
92
|
end: z.ZodInt;
|
|
92
93
|
source: z.ZodEnum<{
|
|
@@ -98,6 +99,12 @@ export declare const contract: {
|
|
|
98
99
|
start: z.ZodInt;
|
|
99
100
|
}, z.core.$strip>>>;
|
|
100
101
|
text: z.ZodString;
|
|
102
|
+
voidReason: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
attempt_failed: "attempt_failed";
|
|
104
|
+
attempt_lost: "attempt_lost";
|
|
105
|
+
silent: "silent";
|
|
106
|
+
turn_dropped: "turn_dropped";
|
|
107
|
+
}>>;
|
|
101
108
|
}, z.core.$strip>>;
|
|
102
109
|
moment: z.ZodOptional<z.ZodObject<{
|
|
103
110
|
momentID: z.ZodString;
|
|
@@ -174,6 +181,15 @@ export declare const contract: {
|
|
|
174
181
|
runID: z.ZodOptional<z.ZodString>;
|
|
175
182
|
tool: z.ZodOptional<z.ZodString>;
|
|
176
183
|
}, z.core.$strip>>;
|
|
184
|
+
voidedReply: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
sequence: z.ZodInt;
|
|
186
|
+
reason: z.ZodEnum<{
|
|
187
|
+
attempt_failed: "attempt_failed";
|
|
188
|
+
attempt_lost: "attempt_lost";
|
|
189
|
+
silent: "silent";
|
|
190
|
+
turn_dropped: "turn_dropped";
|
|
191
|
+
}>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
177
193
|
worker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
178
194
|
phase: z.ZodLiteral<"started">;
|
|
179
195
|
workerRunID: z.ZodString;
|
|
@@ -289,6 +305,7 @@ export declare const contract: {
|
|
|
289
305
|
"image/webp": "image/webp";
|
|
290
306
|
}>;
|
|
291
307
|
}, z.core.$strip>>>;
|
|
308
|
+
isVoided: z.ZodOptional<z.ZodLiteral<true>>;
|
|
292
309
|
spans: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
293
310
|
end: z.ZodInt;
|
|
294
311
|
source: z.ZodEnum<{
|
|
@@ -300,6 +317,12 @@ export declare const contract: {
|
|
|
300
317
|
start: z.ZodInt;
|
|
301
318
|
}, z.core.$strip>>>;
|
|
302
319
|
text: z.ZodString;
|
|
320
|
+
voidReason: z.ZodOptional<z.ZodEnum<{
|
|
321
|
+
attempt_failed: "attempt_failed";
|
|
322
|
+
attempt_lost: "attempt_lost";
|
|
323
|
+
silent: "silent";
|
|
324
|
+
turn_dropped: "turn_dropped";
|
|
325
|
+
}>>;
|
|
303
326
|
}, z.core.$strip>>;
|
|
304
327
|
moment: z.ZodOptional<z.ZodObject<{
|
|
305
328
|
momentID: z.ZodString;
|
|
@@ -376,6 +399,15 @@ export declare const contract: {
|
|
|
376
399
|
runID: z.ZodOptional<z.ZodString>;
|
|
377
400
|
tool: z.ZodOptional<z.ZodString>;
|
|
378
401
|
}, z.core.$strip>>;
|
|
402
|
+
voidedReply: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
sequence: z.ZodInt;
|
|
404
|
+
reason: z.ZodEnum<{
|
|
405
|
+
attempt_failed: "attempt_failed";
|
|
406
|
+
attempt_lost: "attempt_lost";
|
|
407
|
+
silent: "silent";
|
|
408
|
+
turn_dropped: "turn_dropped";
|
|
409
|
+
}>;
|
|
410
|
+
}, z.core.$strip>>;
|
|
379
411
|
worker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
380
412
|
phase: z.ZodLiteral<"started">;
|
|
381
413
|
workerRunID: z.ZodString;
|
|
@@ -4258,12 +4290,14 @@ export declare const contract: {
|
|
|
4258
4290
|
images?: {
|
|
4259
4291
|
mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
4260
4292
|
}[] | undefined;
|
|
4293
|
+
isVoided?: true | undefined;
|
|
4261
4294
|
spans?: {
|
|
4262
4295
|
end: number;
|
|
4263
4296
|
source: "dropped" | "pasted" | "typed" | "unknown";
|
|
4264
4297
|
start: number;
|
|
4265
4298
|
}[] | undefined;
|
|
4266
4299
|
text: string;
|
|
4300
|
+
voidReason?: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped" | undefined;
|
|
4267
4301
|
} | undefined;
|
|
4268
4302
|
moment?: {
|
|
4269
4303
|
momentID: string;
|
|
@@ -4337,6 +4371,10 @@ export declare const contract: {
|
|
|
4337
4371
|
runID?: string | undefined;
|
|
4338
4372
|
tool?: string | undefined;
|
|
4339
4373
|
} | undefined;
|
|
4374
|
+
voidedReply?: {
|
|
4375
|
+
sequence: number;
|
|
4376
|
+
reason: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped";
|
|
4377
|
+
} | undefined;
|
|
4340
4378
|
worker?: {
|
|
4341
4379
|
phase: "started";
|
|
4342
4380
|
workerRunID: string;
|
|
@@ -4430,12 +4468,14 @@ export declare const contract: {
|
|
|
4430
4468
|
images?: {
|
|
4431
4469
|
mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
4432
4470
|
}[] | undefined;
|
|
4471
|
+
isVoided?: true | undefined;
|
|
4433
4472
|
spans?: {
|
|
4434
4473
|
end: number;
|
|
4435
4474
|
source: "dropped" | "pasted" | "typed" | "unknown";
|
|
4436
4475
|
start: number;
|
|
4437
4476
|
}[] | undefined;
|
|
4438
4477
|
text: string;
|
|
4478
|
+
voidReason?: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped" | undefined;
|
|
4439
4479
|
} | undefined;
|
|
4440
4480
|
moment?: {
|
|
4441
4481
|
momentID: string;
|
|
@@ -4509,6 +4549,10 @@ export declare const contract: {
|
|
|
4509
4549
|
runID?: string | undefined;
|
|
4510
4550
|
tool?: string | undefined;
|
|
4511
4551
|
} | undefined;
|
|
4552
|
+
voidedReply?: {
|
|
4553
|
+
sequence: number;
|
|
4554
|
+
reason: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped";
|
|
4555
|
+
} | undefined;
|
|
4512
4556
|
worker?: {
|
|
4513
4557
|
phase: "started";
|
|
4514
4558
|
workerRunID: string;
|
|
@@ -4614,12 +4658,14 @@ export declare const contract: {
|
|
|
4614
4658
|
images?: {
|
|
4615
4659
|
mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
4616
4660
|
}[] | undefined;
|
|
4661
|
+
isVoided?: true | undefined;
|
|
4617
4662
|
spans?: {
|
|
4618
4663
|
end: number;
|
|
4619
4664
|
source: "dropped" | "pasted" | "typed" | "unknown";
|
|
4620
4665
|
start: number;
|
|
4621
4666
|
}[] | undefined;
|
|
4622
4667
|
text: string;
|
|
4668
|
+
voidReason?: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped" | undefined;
|
|
4623
4669
|
} | undefined;
|
|
4624
4670
|
moment?: {
|
|
4625
4671
|
momentID: string;
|
|
@@ -4693,6 +4739,10 @@ export declare const contract: {
|
|
|
4693
4739
|
runID?: string | undefined;
|
|
4694
4740
|
tool?: string | undefined;
|
|
4695
4741
|
} | undefined;
|
|
4742
|
+
voidedReply?: {
|
|
4743
|
+
sequence: number;
|
|
4744
|
+
reason: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped";
|
|
4745
|
+
} | undefined;
|
|
4696
4746
|
worker?: {
|
|
4697
4747
|
phase: "started";
|
|
4698
4748
|
workerRunID: string;
|
|
@@ -4786,12 +4836,14 @@ export declare const contract: {
|
|
|
4786
4836
|
images?: {
|
|
4787
4837
|
mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
4788
4838
|
}[] | undefined;
|
|
4839
|
+
isVoided?: true | undefined;
|
|
4789
4840
|
spans?: {
|
|
4790
4841
|
end: number;
|
|
4791
4842
|
source: "dropped" | "pasted" | "typed" | "unknown";
|
|
4792
4843
|
start: number;
|
|
4793
4844
|
}[] | undefined;
|
|
4794
4845
|
text: string;
|
|
4846
|
+
voidReason?: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped" | undefined;
|
|
4795
4847
|
} | undefined;
|
|
4796
4848
|
moment?: {
|
|
4797
4849
|
momentID: string;
|
|
@@ -4865,6 +4917,10 @@ export declare const contract: {
|
|
|
4865
4917
|
runID?: string | undefined;
|
|
4866
4918
|
tool?: string | undefined;
|
|
4867
4919
|
} | undefined;
|
|
4920
|
+
voidedReply?: {
|
|
4921
|
+
sequence: number;
|
|
4922
|
+
reason: "attempt_failed" | "attempt_lost" | "silent" | "turn_dropped";
|
|
4923
|
+
} | undefined;
|
|
4868
4924
|
worker?: {
|
|
4869
4925
|
phase: "started";
|
|
4870
4926
|
workerRunID: string;
|
package/dist/index.js
CHANGED
|
@@ -1562,6 +1562,7 @@ var versionRefSchema = z40.object({
|
|
|
1562
1562
|
});
|
|
1563
1563
|
var recallItemSchema = versionRefSchema.extend({ score: z40.number().optional() });
|
|
1564
1564
|
var recallSchema = z40.object({ items: z40.array(recallItemSchema) });
|
|
1565
|
+
var replyVoidReasonSchema = z40.enum(["attempt_failed", "attempt_lost", "turn_dropped", "silent"]);
|
|
1565
1566
|
var tokenCountSchema = z40.int().nonnegative();
|
|
1566
1567
|
var contextSchema = z40.object({ size: tokenCountSchema, window: z40.int().positive() });
|
|
1567
1568
|
var compactionSchema = z40.object({
|
|
@@ -1617,8 +1618,10 @@ var recordSchema = z40.object({
|
|
|
1617
1618
|
message: z40.object({
|
|
1618
1619
|
clientMessageId: z40.uuid().optional(),
|
|
1619
1620
|
images: z40.array(imageSchema).optional(),
|
|
1621
|
+
isVoided: z40.literal(true).optional(),
|
|
1620
1622
|
spans: z40.array(spanSchema).optional(),
|
|
1621
|
-
text: z40.string()
|
|
1623
|
+
text: z40.string(),
|
|
1624
|
+
voidReason: replyVoidReasonSchema.optional()
|
|
1622
1625
|
}).optional(),
|
|
1623
1626
|
moment: z40.object({ momentID: z40.string(), shortID: z40.string(), title: z40.string().optional() }).optional(),
|
|
1624
1627
|
proposal: z40.object({ proposalID: z40.string(), shortID: z40.string() }).optional(),
|
|
@@ -1633,6 +1636,7 @@ var recordSchema = z40.object({
|
|
|
1633
1636
|
task: taskSchema2.optional(),
|
|
1634
1637
|
taskMessage: taskMessageSchema.optional(),
|
|
1635
1638
|
toolCall: toolCallSchema.optional(),
|
|
1639
|
+
voidedReply: z40.object({ sequence: sequenceSchema, reason: replyVoidReasonSchema }).optional(),
|
|
1636
1640
|
worker: workerViewSchema.optional()
|
|
1637
1641
|
});
|
|
1638
1642
|
var writerErrorSchema = z40.object({ at: z40.date(), code: z40.string(), message: z40.string().nullable() }).nullable();
|