@heynixie/contract 0.75.0 → 0.77.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.
@@ -3,12 +3,23 @@ export declare const contract: {
3
3
  conversation: {
4
4
  read: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5
5
  beforeSequence: z.ZodOptional<z.ZodInt>;
6
+ clipPayloads: z.ZodOptional<z.ZodBoolean>;
6
7
  limit: z.ZodOptional<z.ZodInt>;
7
8
  thread: z.ZodString;
8
9
  }, z.core.$strip>, z.ZodObject<{
9
10
  hasEarlier: z.ZodBoolean;
10
11
  readAtSequence: z.ZodInt;
11
12
  records: z.ZodArray<z.ZodObject<{
13
+ clipped: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ field: z.ZodEnum<{
15
+ "toolCall.content": "toolCall.content";
16
+ "toolCall.input": "toolCall.input";
17
+ "worker.detail": "worker.detail";
18
+ "worker.text": "worker.text";
19
+ }>;
20
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
21
+ bytes: z.ZodNumber;
22
+ }, z.core.$strip>>>;
12
23
  compaction: z.ZodOptional<z.ZodObject<{
13
24
  postTokens: z.ZodOptional<z.ZodInt>;
14
25
  preTokens: z.ZodInt;
@@ -25,6 +36,11 @@ export declare const contract: {
25
36
  }, z.core.$strip>;
26
37
  text: z.ZodString;
27
38
  }, z.core.$strip>>;
39
+ reminder: z.ZodOptional<z.ZodObject<{
40
+ brief: z.ZodString;
41
+ scheduledFor: z.ZodISODateTime;
42
+ lateBySeconds: z.ZodNullable<z.ZodNumber>;
43
+ }, z.core.$strip>>;
28
44
  compactionFailure: z.ZodOptional<z.ZodObject<{
29
45
  failures: z.ZodInt;
30
46
  }, z.core.$strip>>;
@@ -35,6 +51,28 @@ export declare const contract: {
35
51
  size: z.ZodInt;
36
52
  window: z.ZodInt;
37
53
  }, z.core.$strip>>;
54
+ definitionNotice: z.ZodOptional<z.ZodObject<{
55
+ definitionID: z.ZodString;
56
+ name: z.ZodNullable<z.ZodString>;
57
+ operation: z.ZodEnum<{
58
+ add: "add";
59
+ change: "change";
60
+ remove: "remove";
61
+ undo: "undo";
62
+ }>;
63
+ shortID: z.ZodString;
64
+ changeID: z.ZodString;
65
+ hasVersion: z.ZodBoolean;
66
+ rendered: z.ZodNullable<z.ZodString>;
67
+ next: z.ZodNullable<z.ZodString>;
68
+ state: z.ZodEnum<{
69
+ adopted: "adopted";
70
+ in_force: "in_force";
71
+ retired: "retired";
72
+ superseded: "superseded";
73
+ }>;
74
+ isUnreadable: z.ZodBoolean;
75
+ }, z.core.$strip>>;
38
76
  isRemoved: z.ZodOptional<z.ZodLiteral<true>>;
39
77
  isSilentTurn: z.ZodOptional<z.ZodLiteral<true>>;
40
78
  kind: z.ZodString;
@@ -65,20 +103,6 @@ export declare const contract: {
65
103
  shortID: z.ZodString;
66
104
  title: z.ZodOptional<z.ZodString>;
67
105
  }, z.core.$strip>>;
68
- rating: z.ZodOptional<z.ZodObject<{
69
- items: z.ZodArray<z.ZodObject<{
70
- itemID: z.ZodString;
71
- version: z.ZodInt;
72
- hasNote: z.ZodBoolean;
73
- verdict: z.ZodEnum<{
74
- helpful: "helpful";
75
- misleading: "misleading";
76
- noise: "noise";
77
- }>;
78
- }, z.core.$strip>>;
79
- ratedBy: z.ZodOptional<z.ZodString>;
80
- recalledSequence: z.ZodInt;
81
- }, z.core.$strip>>;
82
106
  proposal: z.ZodOptional<z.ZodObject<{
83
107
  proposalID: z.ZodString;
84
108
  shortID: z.ZodString;
@@ -140,10 +164,57 @@ export declare const contract: {
140
164
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
141
165
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
142
166
  outcome: z.ZodOptional<z.ZodString>;
167
+ runID: z.ZodOptional<z.ZodString>;
143
168
  tool: z.ZodOptional<z.ZodString>;
144
169
  }, z.core.$strip>>;
170
+ worker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
171
+ phase: z.ZodLiteral<"started">;
172
+ workerRunID: z.ZodString;
173
+ shortID: z.ZodString;
174
+ callID: z.ZodString;
175
+ model: z.ZodString;
176
+ tools: z.ZodArray<z.ZodString>;
177
+ limits: z.ZodObject<{
178
+ minutes: z.ZodNumber;
179
+ turns: z.ZodNumber;
180
+ tokens: z.ZodNumber;
181
+ dollars: z.ZodNumber;
182
+ }, z.core.$strip>;
183
+ isTaskLimit: z.ZodBoolean;
184
+ }, z.core.$strip>, z.ZodObject<{
185
+ phase: z.ZodLiteral<"turn">;
186
+ workerRunID: z.ZodString;
187
+ callID: z.ZodString;
188
+ turn: z.ZodNumber;
189
+ tokens: z.ZodNumber;
190
+ dollars: z.ZodNumber;
191
+ text: z.ZodOptional<z.ZodString>;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ phase: z.ZodLiteral<"ended">;
194
+ workerRunID: z.ZodString;
195
+ callID: z.ZodString;
196
+ outcome: z.ZodString;
197
+ limit: z.ZodOptional<z.ZodString>;
198
+ used: z.ZodObject<{
199
+ minutes: z.ZodNumber;
200
+ turns: z.ZodNumber;
201
+ tokens: z.ZodNumber;
202
+ dollars: z.ZodNumber;
203
+ }, z.core.$strip>;
204
+ detail: z.ZodOptional<z.ZodString>;
205
+ }, z.core.$strip>], "phase">>;
145
206
  }, z.core.$strip>>;
146
207
  lastStepEnd: z.ZodOptional<z.ZodNullable<z.ZodObject<{
208
+ clipped: z.ZodOptional<z.ZodArray<z.ZodObject<{
209
+ field: z.ZodEnum<{
210
+ "toolCall.content": "toolCall.content";
211
+ "toolCall.input": "toolCall.input";
212
+ "worker.detail": "worker.detail";
213
+ "worker.text": "worker.text";
214
+ }>;
215
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
216
+ bytes: z.ZodNumber;
217
+ }, z.core.$strip>>>;
147
218
  compaction: z.ZodOptional<z.ZodObject<{
148
219
  postTokens: z.ZodOptional<z.ZodInt>;
149
220
  preTokens: z.ZodInt;
@@ -160,6 +231,11 @@ export declare const contract: {
160
231
  }, z.core.$strip>;
161
232
  text: z.ZodString;
162
233
  }, z.core.$strip>>;
234
+ reminder: z.ZodOptional<z.ZodObject<{
235
+ brief: z.ZodString;
236
+ scheduledFor: z.ZodISODateTime;
237
+ lateBySeconds: z.ZodNullable<z.ZodNumber>;
238
+ }, z.core.$strip>>;
163
239
  compactionFailure: z.ZodOptional<z.ZodObject<{
164
240
  failures: z.ZodInt;
165
241
  }, z.core.$strip>>;
@@ -170,6 +246,28 @@ export declare const contract: {
170
246
  size: z.ZodInt;
171
247
  window: z.ZodInt;
172
248
  }, z.core.$strip>>;
249
+ definitionNotice: z.ZodOptional<z.ZodObject<{
250
+ definitionID: z.ZodString;
251
+ name: z.ZodNullable<z.ZodString>;
252
+ operation: z.ZodEnum<{
253
+ add: "add";
254
+ change: "change";
255
+ remove: "remove";
256
+ undo: "undo";
257
+ }>;
258
+ shortID: z.ZodString;
259
+ changeID: z.ZodString;
260
+ hasVersion: z.ZodBoolean;
261
+ rendered: z.ZodNullable<z.ZodString>;
262
+ next: z.ZodNullable<z.ZodString>;
263
+ state: z.ZodEnum<{
264
+ adopted: "adopted";
265
+ in_force: "in_force";
266
+ retired: "retired";
267
+ superseded: "superseded";
268
+ }>;
269
+ isUnreadable: z.ZodBoolean;
270
+ }, z.core.$strip>>;
173
271
  isRemoved: z.ZodOptional<z.ZodLiteral<true>>;
174
272
  isSilentTurn: z.ZodOptional<z.ZodLiteral<true>>;
175
273
  kind: z.ZodString;
@@ -200,20 +298,6 @@ export declare const contract: {
200
298
  shortID: z.ZodString;
201
299
  title: z.ZodOptional<z.ZodString>;
202
300
  }, z.core.$strip>>;
203
- rating: z.ZodOptional<z.ZodObject<{
204
- items: z.ZodArray<z.ZodObject<{
205
- itemID: z.ZodString;
206
- version: z.ZodInt;
207
- hasNote: z.ZodBoolean;
208
- verdict: z.ZodEnum<{
209
- helpful: "helpful";
210
- misleading: "misleading";
211
- noise: "noise";
212
- }>;
213
- }, z.core.$strip>>;
214
- ratedBy: z.ZodOptional<z.ZodString>;
215
- recalledSequence: z.ZodInt;
216
- }, z.core.$strip>>;
217
301
  proposal: z.ZodOptional<z.ZodObject<{
218
302
  proposalID: z.ZodString;
219
303
  shortID: z.ZodString;
@@ -275,8 +359,45 @@ export declare const contract: {
275
359
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
276
360
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
277
361
  outcome: z.ZodOptional<z.ZodString>;
362
+ runID: z.ZodOptional<z.ZodString>;
278
363
  tool: z.ZodOptional<z.ZodString>;
279
364
  }, z.core.$strip>>;
365
+ worker: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
366
+ phase: z.ZodLiteral<"started">;
367
+ workerRunID: z.ZodString;
368
+ shortID: z.ZodString;
369
+ callID: z.ZodString;
370
+ model: z.ZodString;
371
+ tools: z.ZodArray<z.ZodString>;
372
+ limits: z.ZodObject<{
373
+ minutes: z.ZodNumber;
374
+ turns: z.ZodNumber;
375
+ tokens: z.ZodNumber;
376
+ dollars: z.ZodNumber;
377
+ }, z.core.$strip>;
378
+ isTaskLimit: z.ZodBoolean;
379
+ }, z.core.$strip>, z.ZodObject<{
380
+ phase: z.ZodLiteral<"turn">;
381
+ workerRunID: z.ZodString;
382
+ callID: z.ZodString;
383
+ turn: z.ZodNumber;
384
+ tokens: z.ZodNumber;
385
+ dollars: z.ZodNumber;
386
+ text: z.ZodOptional<z.ZodString>;
387
+ }, z.core.$strip>, z.ZodObject<{
388
+ phase: z.ZodLiteral<"ended">;
389
+ workerRunID: z.ZodString;
390
+ callID: z.ZodString;
391
+ outcome: z.ZodString;
392
+ limit: z.ZodOptional<z.ZodString>;
393
+ used: z.ZodObject<{
394
+ minutes: z.ZodNumber;
395
+ turns: z.ZodNumber;
396
+ tokens: z.ZodNumber;
397
+ dollars: z.ZodNumber;
398
+ }, z.core.$strip>;
399
+ detail: z.ZodOptional<z.ZodString>;
400
+ }, z.core.$strip>], "phase">>;
280
401
  }, z.core.$strip>>>;
281
402
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
282
403
  UNAUTHORIZED: {
@@ -432,7 +553,121 @@ export declare const contract: {
432
553
  }>, Record<never, never>>;
433
554
  };
434
555
  tasks: {
435
- list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
556
+ listEnded: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
557
+ limit: z.ZodInt;
558
+ before: z.ZodOptional<z.ZodInt>;
559
+ definitionID: z.ZodOptional<z.ZodString>;
560
+ }, z.core.$strip>, z.ZodObject<{
561
+ tasks: z.ZodArray<z.ZodObject<{
562
+ actions: z.ZodObject<{
563
+ cancelled: z.ZodInt;
564
+ queued: z.ZodInt;
565
+ started: z.ZodInt;
566
+ }, z.core.$strip>;
567
+ brief: z.ZodString;
568
+ closedBy: z.ZodOptional<z.ZodEnum<{
569
+ disposable: "disposable";
570
+ nixie: "nixie";
571
+ owner: "owner";
572
+ }>>;
573
+ controls: z.ZodArray<z.ZodEnum<{
574
+ close: "close";
575
+ interrupt: "interrupt";
576
+ pause: "pause";
577
+ restart: "restart";
578
+ resume: "resume";
579
+ stop: "stop";
580
+ }>>;
581
+ definitionID: z.ZodOptional<z.ZodString>;
582
+ disposable: z.ZodNullable<z.ZodBoolean>;
583
+ fire: z.ZodOptional<z.ZodNullable<z.ZodObject<{
584
+ scheduledFor: z.ZodString;
585
+ firedAt: z.ZodString;
586
+ isCatchUp: z.ZodBoolean;
587
+ }, z.core.$strip>>>;
588
+ isPauseRequested: z.ZodBoolean;
589
+ isPausedByNixie: z.ZodBoolean;
590
+ isTakingMessages: z.ZodBoolean;
591
+ lastActivityAt: z.ZodDate;
592
+ listedState: z.ZodOptional<z.ZodEnum<{
593
+ asleep: "asleep";
594
+ closed: "closed";
595
+ done: "done";
596
+ failed: "failed";
597
+ finished: "finished";
598
+ idle: "idle";
599
+ paused: "paused";
600
+ ready: "ready";
601
+ running: "running";
602
+ stopped: "stopped";
603
+ waiting: "waiting";
604
+ }>>;
605
+ name: z.ZodString;
606
+ nextRunAt: z.ZodOptional<z.ZodString>;
607
+ runner: z.ZodString;
608
+ state: z.ZodEnum<{
609
+ closed: "closed";
610
+ done: "done";
611
+ failed: "failed";
612
+ paused: "paused";
613
+ ready: "ready";
614
+ running: "running";
615
+ stopped: "stopped";
616
+ waiting: "waiting";
617
+ }>;
618
+ taskID: z.ZodString;
619
+ wakeable: z.ZodOptional<z.ZodBoolean>;
620
+ waitingOn: z.ZodOptional<z.ZodString>;
621
+ }, z.core.$strip>>;
622
+ runs: z.ZodArray<z.ZodObject<{
623
+ runID: z.ZodString;
624
+ taskID: z.ZodString;
625
+ definitionID: z.ZodNullable<z.ZodString>;
626
+ startedAt: z.ZodDate;
627
+ endedAt: z.ZodDate;
628
+ sequence: z.ZodInt;
629
+ cause: z.ZodString;
630
+ endedBy: z.ZodString;
631
+ carriesRunID: z.ZodNullable<z.ZodString>;
632
+ reportID: z.ZodString;
633
+ delivery: z.ZodEnum<{
634
+ kept: "kept";
635
+ next_turn: "next_turn";
636
+ wake: "wake";
637
+ }>;
638
+ fire: z.ZodNullable<z.ZodObject<{
639
+ scheduledFor: z.ZodString;
640
+ firedAt: z.ZodString;
641
+ isCatchUp: z.ZodBoolean;
642
+ }, z.core.$strip>>;
643
+ used: z.ZodObject<{
644
+ turns: z.ZodNumber;
645
+ dollars: z.ZodNumber;
646
+ }, z.core.$strip>;
647
+ }, z.core.$strip>>;
648
+ next: z.ZodNullable<z.ZodInt>;
649
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
650
+ UNAUTHORIZED: {
651
+ message: string;
652
+ status: number;
653
+ };
654
+ }>, Record<never, never>>;
655
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
656
+ definitionID: z.ZodOptional<z.ZodString>;
657
+ states: z.ZodOptional<z.ZodArray<z.ZodEnum<{
658
+ asleep: "asleep";
659
+ closed: "closed";
660
+ done: "done";
661
+ failed: "failed";
662
+ finished: "finished";
663
+ idle: "idle";
664
+ paused: "paused";
665
+ ready: "ready";
666
+ running: "running";
667
+ stopped: "stopped";
668
+ waiting: "waiting";
669
+ }>>>;
670
+ }, z.core.$strip>>, z.ZodObject<{
436
671
  readAtSequence: z.ZodInt;
437
672
  tasks: z.ZodArray<z.ZodObject<{
438
673
  actions: z.ZodObject<{
@@ -441,6 +676,11 @@ export declare const contract: {
441
676
  started: z.ZodInt;
442
677
  }, z.core.$strip>;
443
678
  brief: z.ZodString;
679
+ closedBy: z.ZodOptional<z.ZodEnum<{
680
+ disposable: "disposable";
681
+ nixie: "nixie";
682
+ owner: "owner";
683
+ }>>;
444
684
  controls: z.ZodArray<z.ZodEnum<{
445
685
  close: "close";
446
686
  interrupt: "interrupt";
@@ -449,11 +689,32 @@ export declare const contract: {
449
689
  resume: "resume";
450
690
  stop: "stop";
451
691
  }>>;
692
+ definitionID: z.ZodOptional<z.ZodString>;
693
+ disposable: z.ZodNullable<z.ZodBoolean>;
694
+ fire: z.ZodOptional<z.ZodNullable<z.ZodObject<{
695
+ scheduledFor: z.ZodString;
696
+ firedAt: z.ZodString;
697
+ isCatchUp: z.ZodBoolean;
698
+ }, z.core.$strip>>>;
452
699
  isPauseRequested: z.ZodBoolean;
453
700
  isPausedByNixie: z.ZodBoolean;
454
701
  isTakingMessages: z.ZodBoolean;
455
702
  lastActivityAt: z.ZodDate;
703
+ listedState: z.ZodOptional<z.ZodEnum<{
704
+ asleep: "asleep";
705
+ closed: "closed";
706
+ done: "done";
707
+ failed: "failed";
708
+ finished: "finished";
709
+ idle: "idle";
710
+ paused: "paused";
711
+ ready: "ready";
712
+ running: "running";
713
+ stopped: "stopped";
714
+ waiting: "waiting";
715
+ }>>;
456
716
  name: z.ZodString;
717
+ nextRunAt: z.ZodOptional<z.ZodString>;
457
718
  runner: z.ZodString;
458
719
  state: z.ZodEnum<{
459
720
  closed: "closed";
@@ -466,6 +727,7 @@ export declare const contract: {
466
727
  waiting: "waiting";
467
728
  }>;
468
729
  taskID: z.ZodString;
730
+ wakeable: z.ZodOptional<z.ZodBoolean>;
469
731
  waitingOn: z.ZodOptional<z.ZodString>;
470
732
  }, z.core.$strip>>;
471
733
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
@@ -483,6 +745,11 @@ export declare const contract: {
483
745
  started: z.ZodInt;
484
746
  }, z.core.$strip>;
485
747
  brief: z.ZodString;
748
+ closedBy: z.ZodOptional<z.ZodEnum<{
749
+ disposable: "disposable";
750
+ nixie: "nixie";
751
+ owner: "owner";
752
+ }>>;
486
753
  controls: z.ZodArray<z.ZodEnum<{
487
754
  close: "close";
488
755
  interrupt: "interrupt";
@@ -491,11 +758,32 @@ export declare const contract: {
491
758
  resume: "resume";
492
759
  stop: "stop";
493
760
  }>>;
761
+ definitionID: z.ZodOptional<z.ZodString>;
762
+ disposable: z.ZodNullable<z.ZodBoolean>;
763
+ fire: z.ZodOptional<z.ZodNullable<z.ZodObject<{
764
+ scheduledFor: z.ZodString;
765
+ firedAt: z.ZodString;
766
+ isCatchUp: z.ZodBoolean;
767
+ }, z.core.$strip>>>;
494
768
  isPauseRequested: z.ZodBoolean;
495
769
  isPausedByNixie: z.ZodBoolean;
496
770
  isTakingMessages: z.ZodBoolean;
497
771
  lastActivityAt: z.ZodDate;
772
+ listedState: z.ZodOptional<z.ZodEnum<{
773
+ asleep: "asleep";
774
+ closed: "closed";
775
+ done: "done";
776
+ failed: "failed";
777
+ finished: "finished";
778
+ idle: "idle";
779
+ paused: "paused";
780
+ ready: "ready";
781
+ running: "running";
782
+ stopped: "stopped";
783
+ waiting: "waiting";
784
+ }>>;
498
785
  name: z.ZodString;
786
+ nextRunAt: z.ZodOptional<z.ZodString>;
499
787
  runner: z.ZodString;
500
788
  state: z.ZodEnum<{
501
789
  closed: "closed";
@@ -508,6 +796,7 @@ export declare const contract: {
508
796
  waiting: "waiting";
509
797
  }>;
510
798
  taskID: z.ZodString;
799
+ wakeable: z.ZodOptional<z.ZodBoolean>;
511
800
  waitingOn: z.ZodOptional<z.ZodString>;
512
801
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
513
802
  UNAUTHORIZED: {
@@ -816,6 +1105,10 @@ export declare const contract: {
816
1105
  message: string;
817
1106
  status: number;
818
1107
  };
1108
+ DEFINITION_TASK_NEVER_CLOSES: {
1109
+ message: string;
1110
+ status: number;
1111
+ };
819
1112
  }>, Record<never, never>>;
820
1113
  interrupt: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
821
1114
  clientActionID: z.ZodUUID;
@@ -871,6 +1164,50 @@ export declare const contract: {
871
1164
  status: number;
872
1165
  };
873
1166
  }>, Record<never, never>>;
1167
+ setDisposable: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1168
+ clientActionID: z.ZodUUID;
1169
+ disposable: z.ZodBoolean;
1170
+ taskID: z.ZodString;
1171
+ }, z.core.$strip>, z.ZodObject<{
1172
+ changedAt: z.ZodDate;
1173
+ disposable: z.ZodBoolean;
1174
+ taskID: z.ZodString;
1175
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1176
+ UNAUTHORIZED: {
1177
+ message: string;
1178
+ status: number;
1179
+ };
1180
+ }>, {
1181
+ CLIENT_ACTION_ID_REUSED: {
1182
+ message: string;
1183
+ status: number;
1184
+ };
1185
+ }>, {
1186
+ TASK_NOT_FOUND: {
1187
+ message: string;
1188
+ status: number;
1189
+ };
1190
+ TASK_HAS_NO_MARK: {
1191
+ message: string;
1192
+ status: number;
1193
+ };
1194
+ TASK_STATE_REFUSED: {
1195
+ message: string;
1196
+ status: number;
1197
+ data: z.ZodObject<{
1198
+ state: z.ZodEnum<{
1199
+ closed: "closed";
1200
+ done: "done";
1201
+ failed: "failed";
1202
+ paused: "paused";
1203
+ ready: "ready";
1204
+ running: "running";
1205
+ stopped: "stopped";
1206
+ waiting: "waiting";
1207
+ }>;
1208
+ }, z.core.$strip>;
1209
+ };
1210
+ }>, Record<never, never>>;
874
1211
  };
875
1212
  memory: {
876
1213
  export: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -1248,8 +1585,8 @@ export declare const contract: {
1248
1585
  changedAt: z.ZodDate;
1249
1586
  createdAt: z.ZodDate;
1250
1587
  forgottenAt: z.ZodNullable<z.ZodDate>;
1588
+ isBridge: z.ZodBoolean;
1251
1589
  isPinned: z.ZodBoolean;
1252
- isSensitive: z.ZodBoolean;
1253
1590
  itemID: z.ZodString;
1254
1591
  kind: z.ZodEnum<{
1255
1592
  fact: "fact";
@@ -1311,8 +1648,8 @@ export declare const contract: {
1311
1648
  changedAt: z.ZodDate;
1312
1649
  createdAt: z.ZodDate;
1313
1650
  forgottenAt: z.ZodNullable<z.ZodDate>;
1651
+ isBridge: z.ZodBoolean;
1314
1652
  isPinned: z.ZodBoolean;
1315
- isSensitive: z.ZodBoolean;
1316
1653
  itemID: z.ZodString;
1317
1654
  kind: z.ZodEnum<{
1318
1655
  fact: "fact";
@@ -1374,8 +1711,8 @@ export declare const contract: {
1374
1711
  changedAt: z.ZodDate;
1375
1712
  createdAt: z.ZodDate;
1376
1713
  forgottenAt: z.ZodNullable<z.ZodDate>;
1714
+ isBridge: z.ZodBoolean;
1377
1715
  isPinned: z.ZodBoolean;
1378
- isSensitive: z.ZodBoolean;
1379
1716
  itemID: z.ZodString;
1380
1717
  kind: z.ZodEnum<{
1381
1718
  fact: "fact";
@@ -1431,8 +1768,8 @@ export declare const contract: {
1431
1768
  changedAt: z.ZodDate;
1432
1769
  createdAt: z.ZodDate;
1433
1770
  forgottenAt: z.ZodNullable<z.ZodDate>;
1771
+ isBridge: z.ZodBoolean;
1434
1772
  isPinned: z.ZodBoolean;
1435
- isSensitive: z.ZodBoolean;
1436
1773
  itemID: z.ZodString;
1437
1774
  kind: z.ZodEnum<{
1438
1775
  fact: "fact";
@@ -1499,6 +1836,8 @@ export declare const contract: {
1499
1836
  sequence: z.ZodInt;
1500
1837
  thread: z.ZodString;
1501
1838
  }, z.core.$strip>>;
1839
+ isBridge: z.ZodBoolean;
1840
+ isRemoved: z.ZodBoolean;
1502
1841
  origin: z.ZodEnum<{
1503
1842
  conversation: "conversation";
1504
1843
  lapse: "lapse";
@@ -1632,8 +1971,8 @@ export declare const contract: {
1632
1971
  changedAt: z.ZodDate;
1633
1972
  createdAt: z.ZodDate;
1634
1973
  forgottenAt: z.ZodNullable<z.ZodDate>;
1974
+ isBridge: z.ZodBoolean;
1635
1975
  isPinned: z.ZodBoolean;
1636
- isSensitive: z.ZodBoolean;
1637
1976
  itemID: z.ZodString;
1638
1977
  kind: z.ZodEnum<{
1639
1978
  fact: "fact";
@@ -1745,6 +2084,10 @@ export declare const contract: {
1745
2084
  message: string;
1746
2085
  status: number;
1747
2086
  };
2087
+ VERSION_REMOVED: {
2088
+ message: string;
2089
+ status: number;
2090
+ };
1748
2091
  }>, Record<never, never>>;
1749
2092
  keep: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1750
2093
  clientActionID: z.ZodUUID;
@@ -1789,8 +2132,8 @@ export declare const contract: {
1789
2132
  changedAt: z.ZodDate;
1790
2133
  createdAt: z.ZodDate;
1791
2134
  forgottenAt: z.ZodNullable<z.ZodDate>;
2135
+ isBridge: z.ZodBoolean;
1792
2136
  isPinned: z.ZodBoolean;
1793
- isSensitive: z.ZodBoolean;
1794
2137
  itemID: z.ZodString;
1795
2138
  kind: z.ZodEnum<{
1796
2139
  fact: "fact";
@@ -1857,6 +2200,8 @@ export declare const contract: {
1857
2200
  sequence: z.ZodInt;
1858
2201
  thread: z.ZodString;
1859
2202
  }, z.core.$strip>>;
2203
+ isBridge: z.ZodBoolean;
2204
+ isRemoved: z.ZodBoolean;
1860
2205
  origin: z.ZodEnum<{
1861
2206
  conversation: "conversation";
1862
2207
  lapse: "lapse";
@@ -1961,8 +2306,8 @@ export declare const contract: {
1961
2306
  changedAt: z.ZodDate;
1962
2307
  createdAt: z.ZodDate;
1963
2308
  forgottenAt: z.ZodNullable<z.ZodDate>;
2309
+ isBridge: z.ZodBoolean;
1964
2310
  isPinned: z.ZodBoolean;
1965
- isSensitive: z.ZodBoolean;
1966
2311
  itemID: z.ZodString;
1967
2312
  kind: z.ZodEnum<{
1968
2313
  fact: "fact";
@@ -2135,42 +2480,6 @@ export declare const contract: {
2135
2480
  status: number;
2136
2481
  };
2137
2482
  }>, Record<never, never>>;
2138
- markSensitive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2139
- clientActionID: z.ZodUUID;
2140
- isSensitive: z.ZodBoolean;
2141
- itemID: z.ZodString;
2142
- }, z.core.$strip>, z.ZodObject<{
2143
- isSensitive: z.ZodBoolean;
2144
- itemID: z.ZodString;
2145
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2146
- UNAUTHORIZED: {
2147
- message: string;
2148
- status: number;
2149
- };
2150
- }>, {
2151
- MEMORY_NOT_STARTED: {
2152
- message: string;
2153
- status: number;
2154
- };
2155
- }>, {
2156
- CLIENT_ACTION_ID_REUSED: {
2157
- message: string;
2158
- status: number;
2159
- };
2160
- }>, {
2161
- MEMORY_ITEM_NOT_FOUND: {
2162
- message: string;
2163
- status: number;
2164
- };
2165
- STALE_VERSION: {
2166
- message: string;
2167
- status: number;
2168
- };
2169
- WRONG_STATE: {
2170
- message: string;
2171
- status: number;
2172
- };
2173
- }>, Record<never, never>>;
2174
2483
  readVersions: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2175
2484
  versions: z.ZodArray<z.ZodObject<{
2176
2485
  itemID: z.ZodString;
@@ -2194,29 +2503,6 @@ export declare const contract: {
2194
2503
  status: number;
2195
2504
  };
2196
2505
  }>, Record<never, never>>;
2197
- readRatingNotes: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2198
- notes: z.ZodArray<z.ZodObject<{
2199
- itemID: z.ZodString;
2200
- sequence: z.ZodInt;
2201
- }, z.core.$strip>>;
2202
- }, z.core.$strip>, z.ZodObject<{
2203
- notes: z.ZodArray<z.ZodObject<{
2204
- itemID: z.ZodString;
2205
- sequence: z.ZodInt;
2206
- status: z.ZodEnum<{
2207
- missing: "missing";
2208
- readable: "readable";
2209
- shredded: "shredded";
2210
- unreadable: "unreadable";
2211
- }>;
2212
- text: z.ZodOptional<z.ZodString>;
2213
- }, z.core.$strip>>;
2214
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2215
- UNAUTHORIZED: {
2216
- message: string;
2217
- status: number;
2218
- };
2219
- }>, Record<never, never>>;
2220
2506
  writerStatus: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2221
2507
  isEnabled: z.ZodBoolean;
2222
2508
  backlog: z.ZodInt;
@@ -2344,6 +2630,173 @@ export declare const contract: {
2344
2630
  };
2345
2631
  }>, Record<never, never>>;
2346
2632
  };
2633
+ triggers: {
2634
+ report: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2635
+ since: z.ZodString;
2636
+ definitionID: z.ZodOptional<z.ZodString>;
2637
+ }, z.core.$strip>, z.ZodObject<{
2638
+ entries: z.ZodArray<z.ZodObject<{
2639
+ definitionID: z.ZodString;
2640
+ name: z.ZodString;
2641
+ kind: z.ZodEnum<{
2642
+ late: "late";
2643
+ skipped: "skipped";
2644
+ }>;
2645
+ scheduledFor: z.ZodString;
2646
+ firedAt: z.ZodNullable<z.ZodString>;
2647
+ lateBySeconds: z.ZodNullable<z.ZodNumber>;
2648
+ reason: z.ZodNullable<z.ZodEnum<{
2649
+ catch_up_off: "catch_up_off";
2650
+ still_running: "still_running";
2651
+ task_held: "task_held";
2652
+ too_late: "too_late";
2653
+ window_closed: "window_closed";
2654
+ }>>;
2655
+ sequence: z.ZodInt;
2656
+ }, z.core.$strip>>;
2657
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2658
+ UNAUTHORIZED: {
2659
+ message: string;
2660
+ status: number;
2661
+ };
2662
+ }>, Record<never, never>>;
2663
+ };
2664
+ definitions: {
2665
+ undo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2666
+ clientActionID: z.ZodUUID;
2667
+ changeID: z.ZodString;
2668
+ }, z.core.$strip>, z.ZodObject<{
2669
+ definitionID: z.ZodString;
2670
+ changeID: z.ZodString;
2671
+ restored: z.ZodOptional<z.ZodLiteral<"repo">>;
2672
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2673
+ UNAUTHORIZED: {
2674
+ message: string;
2675
+ status: number;
2676
+ };
2677
+ }>, {
2678
+ CLIENT_ACTION_ID_REUSED: {
2679
+ message: string;
2680
+ status: number;
2681
+ };
2682
+ }>, {
2683
+ NOT_STARTED: {
2684
+ message: string;
2685
+ status: number;
2686
+ };
2687
+ NOT_FOUND: {
2688
+ message: string;
2689
+ status: number;
2690
+ };
2691
+ REPLACED: {
2692
+ message: string;
2693
+ status: number;
2694
+ data: z.ZodObject<{
2695
+ head: z.ZodObject<{
2696
+ changeID: z.ZodString;
2697
+ shortID: z.ZodString;
2698
+ operation: z.ZodEnum<{
2699
+ add: "add";
2700
+ change: "change";
2701
+ remove: "remove";
2702
+ undo: "undo";
2703
+ }>;
2704
+ }, z.core.$strip>;
2705
+ }, z.core.$strip>;
2706
+ };
2707
+ REPO_MOVED: {
2708
+ message: string;
2709
+ status: number;
2710
+ data: z.ZodObject<{
2711
+ seedSequence: z.ZodInt;
2712
+ }, z.core.$strip>;
2713
+ };
2714
+ NOT_IN_FORCE: {
2715
+ message: string;
2716
+ status: number;
2717
+ data: z.ZodObject<{
2718
+ cause: z.ZodEnum<{
2719
+ kept_repo: "kept_repo";
2720
+ one_shot_fired: "one_shot_fired";
2721
+ one_shot_skipped: "one_shot_skipped";
2722
+ }>;
2723
+ }, z.core.$strip>;
2724
+ };
2725
+ ONE_SHOT_OVER_REPO: {
2726
+ message: string;
2727
+ status: number;
2728
+ };
2729
+ ONE_SHOT_PAST: {
2730
+ message: string;
2731
+ status: number;
2732
+ };
2733
+ }>, Record<never, never>>;
2734
+ listTasks: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2735
+ definitions: z.ZodArray<z.ZodObject<{
2736
+ definitionID: z.ZodString;
2737
+ name: z.ZodString;
2738
+ enabled: z.ZodBoolean;
2739
+ target: z.ZodEnum<{
2740
+ conversation: "conversation";
2741
+ task: "task";
2742
+ }>;
2743
+ trigger: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
2744
+ schedule: z.ZodObject<{
2745
+ every: z.ZodUnion<readonly [z.ZodEnum<{
2746
+ day: "day";
2747
+ hour: "hour";
2748
+ week: "week";
2749
+ }>, z.ZodObject<{
2750
+ minutes: z.ZodInt;
2751
+ }, z.core.$strict>]>;
2752
+ at: z.ZodOptional<z.ZodString>;
2753
+ on: z.ZodOptional<z.ZodEnum<{
2754
+ fri: "fri";
2755
+ mon: "mon";
2756
+ sat: "sat";
2757
+ sun: "sun";
2758
+ thu: "thu";
2759
+ tue: "tue";
2760
+ wed: "wed";
2761
+ }>>;
2762
+ window: z.ZodOptional<z.ZodObject<{
2763
+ from: z.ZodString;
2764
+ until: z.ZodString;
2765
+ }, z.core.$strict>>;
2766
+ idleMinutes: z.ZodOptional<z.ZodInt>;
2767
+ zone: z.ZodDefault<z.ZodString>;
2768
+ catchUp: z.ZodDefault<z.ZodEnum<{
2769
+ once: "once";
2770
+ skip: "skip";
2771
+ }>>;
2772
+ }, z.core.$strict>;
2773
+ }, z.core.$strict>, z.ZodObject<{
2774
+ at: z.ZodISODateTime;
2775
+ }, z.core.$strict>]>>;
2776
+ rendered: z.ZodNullable<z.ZodString>;
2777
+ next: z.ZodNullable<z.ZodString>;
2778
+ tools: z.ZodArray<z.ZodString>;
2779
+ origin: z.ZodEnum<{
2780
+ definitions: "definitions";
2781
+ nixie: "nixie";
2782
+ }>;
2783
+ createdBy: z.ZodObject<{
2784
+ sequence: z.ZodInt;
2785
+ kind: z.ZodEnum<{
2786
+ "definition.changed": "definition.changed";
2787
+ definitions_seeded: "definitions_seeded";
2788
+ }>;
2789
+ }, z.core.$strip>;
2790
+ taskID: z.ZodNullable<z.ZodString>;
2791
+ isUnreadable: z.ZodBoolean;
2792
+ }, z.core.$strip>>;
2793
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2794
+ UNAUTHORIZED: {
2795
+ message: string;
2796
+ status: number;
2797
+ };
2798
+ }>, Record<never, never>>;
2799
+ };
2347
2800
  rules: {
2348
2801
  readRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2349
2802
  ruleID: z.ZodString;
@@ -2649,7 +3102,6 @@ export declare const contract: {
2649
3102
  thread: z.ZodString;
2650
3103
  }, z.core.$strip>>;
2651
3104
  isPinned: z.ZodBoolean;
2652
- isSensitive: z.ZodBoolean;
2653
3105
  itemID: z.ZodString;
2654
3106
  kind: z.ZodEnum<{
2655
3107
  fact: "fact";
@@ -2695,7 +3147,6 @@ export declare const contract: {
2695
3147
  quote_in_quoted_block: "quote_in_quoted_block";
2696
3148
  quote_not_typed: "quote_not_typed";
2697
3149
  self_note: "self_note";
2698
- sensitive: "sensitive";
2699
3150
  subject_change: "subject_change";
2700
3151
  token_missing: "token_missing";
2701
3152
  }>;
@@ -2860,7 +3311,6 @@ export declare const contract: {
2860
3311
  thread: z.ZodString;
2861
3312
  }, z.core.$strip>>;
2862
3313
  isPinned: z.ZodBoolean;
2863
- isSensitive: z.ZodBoolean;
2864
3314
  itemID: z.ZodString;
2865
3315
  kind: z.ZodEnum<{
2866
3316
  fact: "fact";
@@ -2906,7 +3356,6 @@ export declare const contract: {
2906
3356
  quote_in_quoted_block: "quote_in_quoted_block";
2907
3357
  quote_not_typed: "quote_not_typed";
2908
3358
  self_note: "self_note";
2909
- sensitive: "sensitive";
2910
3359
  subject_change: "subject_change";
2911
3360
  token_missing: "token_missing";
2912
3361
  }>;
@@ -3511,9 +3960,15 @@ export declare const contract: {
3511
3960
  log: {
3512
3961
  follow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3513
3962
  afterSequence: z.ZodInt;
3963
+ clipPayloads: z.ZodOptional<z.ZodBoolean>;
3514
3964
  thread: z.ZodOptional<z.ZodString>;
3515
3965
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3516
3966
  record: {
3967
+ clipped?: {
3968
+ field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
3969
+ path: (string | number)[];
3970
+ bytes: number;
3971
+ }[] | undefined;
3517
3972
  compaction?: {
3518
3973
  postTokens?: number | undefined;
3519
3974
  preTokens: number;
@@ -3527,6 +3982,11 @@ export declare const contract: {
3527
3982
  };
3528
3983
  text: string;
3529
3984
  } | undefined;
3985
+ reminder?: {
3986
+ brief: string;
3987
+ scheduledFor: string;
3988
+ lateBySeconds: number | null;
3989
+ } | undefined;
3530
3990
  compactionFailure?: {
3531
3991
  failures: number;
3532
3992
  } | undefined;
@@ -3537,6 +3997,18 @@ export declare const contract: {
3537
3997
  size: number;
3538
3998
  window: number;
3539
3999
  } | undefined;
4000
+ definitionNotice?: {
4001
+ definitionID: string;
4002
+ name: string | null;
4003
+ operation: "add" | "change" | "remove" | "undo";
4004
+ shortID: string;
4005
+ changeID: string;
4006
+ hasVersion: boolean;
4007
+ rendered: string | null;
4008
+ next: string | null;
4009
+ state: "adopted" | "in_force" | "retired" | "superseded";
4010
+ isUnreadable: boolean;
4011
+ } | undefined;
3540
4012
  isRemoved?: true | undefined;
3541
4013
  isSilentTurn?: true | undefined;
3542
4014
  kind: string;
@@ -3557,16 +4029,6 @@ export declare const contract: {
3557
4029
  shortID: string;
3558
4030
  title?: string | undefined;
3559
4031
  } | undefined;
3560
- rating?: {
3561
- items: {
3562
- itemID: string;
3563
- version: number;
3564
- hasNote: boolean;
3565
- verdict: "helpful" | "misleading" | "noise";
3566
- }[];
3567
- ratedBy?: string | undefined;
3568
- recalledSequence: number;
3569
- } | undefined;
3570
4032
  proposal?: {
3571
4033
  proposalID: string;
3572
4034
  shortID: string;
@@ -3625,11 +4087,53 @@ export declare const contract: {
3625
4087
  content?: Record<string, unknown> | undefined;
3626
4088
  input?: Record<string, unknown> | undefined;
3627
4089
  outcome?: string | undefined;
4090
+ runID?: string | undefined;
3628
4091
  tool?: string | undefined;
3629
4092
  } | undefined;
4093
+ worker?: {
4094
+ phase: "started";
4095
+ workerRunID: string;
4096
+ shortID: string;
4097
+ callID: string;
4098
+ model: string;
4099
+ tools: string[];
4100
+ limits: {
4101
+ minutes: number;
4102
+ turns: number;
4103
+ tokens: number;
4104
+ dollars: number;
4105
+ };
4106
+ isTaskLimit: boolean;
4107
+ } | {
4108
+ phase: "turn";
4109
+ workerRunID: string;
4110
+ callID: string;
4111
+ turn: number;
4112
+ tokens: number;
4113
+ dollars: number;
4114
+ text?: string | undefined;
4115
+ } | {
4116
+ phase: "ended";
4117
+ workerRunID: string;
4118
+ callID: string;
4119
+ outcome: string;
4120
+ limit?: string | undefined;
4121
+ used: {
4122
+ minutes: number;
4123
+ turns: number;
4124
+ tokens: number;
4125
+ dollars: number;
4126
+ };
4127
+ detail?: string | undefined;
4128
+ } | undefined;
3630
4129
  };
3631
4130
  }, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
3632
4131
  record: {
4132
+ clipped?: {
4133
+ field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
4134
+ path: (string | number)[];
4135
+ bytes: number;
4136
+ }[] | undefined;
3633
4137
  compaction?: {
3634
4138
  postTokens?: number | undefined;
3635
4139
  preTokens: number;
@@ -3643,6 +4147,11 @@ export declare const contract: {
3643
4147
  };
3644
4148
  text: string;
3645
4149
  } | undefined;
4150
+ reminder?: {
4151
+ brief: string;
4152
+ scheduledFor: string;
4153
+ lateBySeconds: number | null;
4154
+ } | undefined;
3646
4155
  compactionFailure?: {
3647
4156
  failures: number;
3648
4157
  } | undefined;
@@ -3653,6 +4162,18 @@ export declare const contract: {
3653
4162
  size: number;
3654
4163
  window: number;
3655
4164
  } | undefined;
4165
+ definitionNotice?: {
4166
+ definitionID: string;
4167
+ name: string | null;
4168
+ operation: "add" | "change" | "remove" | "undo";
4169
+ shortID: string;
4170
+ changeID: string;
4171
+ hasVersion: boolean;
4172
+ rendered: string | null;
4173
+ next: string | null;
4174
+ state: "adopted" | "in_force" | "retired" | "superseded";
4175
+ isUnreadable: boolean;
4176
+ } | undefined;
3656
4177
  isRemoved?: true | undefined;
3657
4178
  isSilentTurn?: true | undefined;
3658
4179
  kind: string;
@@ -3673,16 +4194,6 @@ export declare const contract: {
3673
4194
  shortID: string;
3674
4195
  title?: string | undefined;
3675
4196
  } | undefined;
3676
- rating?: {
3677
- items: {
3678
- itemID: string;
3679
- version: number;
3680
- hasNote: boolean;
3681
- verdict: "helpful" | "misleading" | "noise";
3682
- }[];
3683
- ratedBy?: string | undefined;
3684
- recalledSequence: number;
3685
- } | undefined;
3686
4197
  proposal?: {
3687
4198
  proposalID: string;
3688
4199
  shortID: string;
@@ -3741,8 +4252,45 @@ export declare const contract: {
3741
4252
  content?: Record<string, unknown> | undefined;
3742
4253
  input?: Record<string, unknown> | undefined;
3743
4254
  outcome?: string | undefined;
4255
+ runID?: string | undefined;
3744
4256
  tool?: string | undefined;
3745
4257
  } | undefined;
4258
+ worker?: {
4259
+ phase: "started";
4260
+ workerRunID: string;
4261
+ shortID: string;
4262
+ callID: string;
4263
+ model: string;
4264
+ tools: string[];
4265
+ limits: {
4266
+ minutes: number;
4267
+ turns: number;
4268
+ tokens: number;
4269
+ dollars: number;
4270
+ };
4271
+ isTaskLimit: boolean;
4272
+ } | {
4273
+ phase: "turn";
4274
+ workerRunID: string;
4275
+ callID: string;
4276
+ turn: number;
4277
+ tokens: number;
4278
+ dollars: number;
4279
+ text?: string | undefined;
4280
+ } | {
4281
+ phase: "ended";
4282
+ workerRunID: string;
4283
+ callID: string;
4284
+ outcome: string;
4285
+ limit?: string | undefined;
4286
+ used: {
4287
+ minutes: number;
4288
+ turns: number;
4289
+ tokens: number;
4290
+ dollars: number;
4291
+ };
4292
+ detail?: string | undefined;
4293
+ } | undefined;
3746
4294
  };
3747
4295
  }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3748
4296
  UNAUTHORIZED: {
@@ -3754,9 +4302,15 @@ export declare const contract: {
3754
4302
  records: {
3755
4303
  follow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3756
4304
  afterSequence: z.ZodInt;
4305
+ clipPayloads: z.ZodOptional<z.ZodBoolean>;
3757
4306
  thread: z.ZodOptional<z.ZodString>;
3758
4307
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3759
4308
  record: {
4309
+ clipped?: {
4310
+ field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
4311
+ path: (string | number)[];
4312
+ bytes: number;
4313
+ }[] | undefined;
3760
4314
  compaction?: {
3761
4315
  postTokens?: number | undefined;
3762
4316
  preTokens: number;
@@ -3770,6 +4324,11 @@ export declare const contract: {
3770
4324
  };
3771
4325
  text: string;
3772
4326
  } | undefined;
4327
+ reminder?: {
4328
+ brief: string;
4329
+ scheduledFor: string;
4330
+ lateBySeconds: number | null;
4331
+ } | undefined;
3773
4332
  compactionFailure?: {
3774
4333
  failures: number;
3775
4334
  } | undefined;
@@ -3780,6 +4339,18 @@ export declare const contract: {
3780
4339
  size: number;
3781
4340
  window: number;
3782
4341
  } | undefined;
4342
+ definitionNotice?: {
4343
+ definitionID: string;
4344
+ name: string | null;
4345
+ operation: "add" | "change" | "remove" | "undo";
4346
+ shortID: string;
4347
+ changeID: string;
4348
+ hasVersion: boolean;
4349
+ rendered: string | null;
4350
+ next: string | null;
4351
+ state: "adopted" | "in_force" | "retired" | "superseded";
4352
+ isUnreadable: boolean;
4353
+ } | undefined;
3783
4354
  isRemoved?: true | undefined;
3784
4355
  isSilentTurn?: true | undefined;
3785
4356
  kind: string;
@@ -3800,16 +4371,6 @@ export declare const contract: {
3800
4371
  shortID: string;
3801
4372
  title?: string | undefined;
3802
4373
  } | undefined;
3803
- rating?: {
3804
- items: {
3805
- itemID: string;
3806
- version: number;
3807
- hasNote: boolean;
3808
- verdict: "helpful" | "misleading" | "noise";
3809
- }[];
3810
- ratedBy?: string | undefined;
3811
- recalledSequence: number;
3812
- } | undefined;
3813
4374
  proposal?: {
3814
4375
  proposalID: string;
3815
4376
  shortID: string;
@@ -3868,11 +4429,53 @@ export declare const contract: {
3868
4429
  content?: Record<string, unknown> | undefined;
3869
4430
  input?: Record<string, unknown> | undefined;
3870
4431
  outcome?: string | undefined;
4432
+ runID?: string | undefined;
3871
4433
  tool?: string | undefined;
3872
4434
  } | undefined;
4435
+ worker?: {
4436
+ phase: "started";
4437
+ workerRunID: string;
4438
+ shortID: string;
4439
+ callID: string;
4440
+ model: string;
4441
+ tools: string[];
4442
+ limits: {
4443
+ minutes: number;
4444
+ turns: number;
4445
+ tokens: number;
4446
+ dollars: number;
4447
+ };
4448
+ isTaskLimit: boolean;
4449
+ } | {
4450
+ phase: "turn";
4451
+ workerRunID: string;
4452
+ callID: string;
4453
+ turn: number;
4454
+ tokens: number;
4455
+ dollars: number;
4456
+ text?: string | undefined;
4457
+ } | {
4458
+ phase: "ended";
4459
+ workerRunID: string;
4460
+ callID: string;
4461
+ outcome: string;
4462
+ limit?: string | undefined;
4463
+ used: {
4464
+ minutes: number;
4465
+ turns: number;
4466
+ tokens: number;
4467
+ dollars: number;
4468
+ };
4469
+ detail?: string | undefined;
4470
+ } | undefined;
3873
4471
  };
3874
4472
  }, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
3875
4473
  record: {
4474
+ clipped?: {
4475
+ field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
4476
+ path: (string | number)[];
4477
+ bytes: number;
4478
+ }[] | undefined;
3876
4479
  compaction?: {
3877
4480
  postTokens?: number | undefined;
3878
4481
  preTokens: number;
@@ -3886,6 +4489,11 @@ export declare const contract: {
3886
4489
  };
3887
4490
  text: string;
3888
4491
  } | undefined;
4492
+ reminder?: {
4493
+ brief: string;
4494
+ scheduledFor: string;
4495
+ lateBySeconds: number | null;
4496
+ } | undefined;
3889
4497
  compactionFailure?: {
3890
4498
  failures: number;
3891
4499
  } | undefined;
@@ -3896,6 +4504,18 @@ export declare const contract: {
3896
4504
  size: number;
3897
4505
  window: number;
3898
4506
  } | undefined;
4507
+ definitionNotice?: {
4508
+ definitionID: string;
4509
+ name: string | null;
4510
+ operation: "add" | "change" | "remove" | "undo";
4511
+ shortID: string;
4512
+ changeID: string;
4513
+ hasVersion: boolean;
4514
+ rendered: string | null;
4515
+ next: string | null;
4516
+ state: "adopted" | "in_force" | "retired" | "superseded";
4517
+ isUnreadable: boolean;
4518
+ } | undefined;
3899
4519
  isRemoved?: true | undefined;
3900
4520
  isSilentTurn?: true | undefined;
3901
4521
  kind: string;
@@ -3916,16 +4536,6 @@ export declare const contract: {
3916
4536
  shortID: string;
3917
4537
  title?: string | undefined;
3918
4538
  } | undefined;
3919
- rating?: {
3920
- items: {
3921
- itemID: string;
3922
- version: number;
3923
- hasNote: boolean;
3924
- verdict: "helpful" | "misleading" | "noise";
3925
- }[];
3926
- ratedBy?: string | undefined;
3927
- recalledSequence: number;
3928
- } | undefined;
3929
4539
  proposal?: {
3930
4540
  proposalID: string;
3931
4541
  shortID: string;
@@ -3984,8 +4594,45 @@ export declare const contract: {
3984
4594
  content?: Record<string, unknown> | undefined;
3985
4595
  input?: Record<string, unknown> | undefined;
3986
4596
  outcome?: string | undefined;
4597
+ runID?: string | undefined;
3987
4598
  tool?: string | undefined;
3988
4599
  } | undefined;
4600
+ worker?: {
4601
+ phase: "started";
4602
+ workerRunID: string;
4603
+ shortID: string;
4604
+ callID: string;
4605
+ model: string;
4606
+ tools: string[];
4607
+ limits: {
4608
+ minutes: number;
4609
+ turns: number;
4610
+ tokens: number;
4611
+ dollars: number;
4612
+ };
4613
+ isTaskLimit: boolean;
4614
+ } | {
4615
+ phase: "turn";
4616
+ workerRunID: string;
4617
+ callID: string;
4618
+ turn: number;
4619
+ tokens: number;
4620
+ dollars: number;
4621
+ text?: string | undefined;
4622
+ } | {
4623
+ phase: "ended";
4624
+ workerRunID: string;
4625
+ callID: string;
4626
+ outcome: string;
4627
+ limit?: string | undefined;
4628
+ used: {
4629
+ minutes: number;
4630
+ turns: number;
4631
+ tokens: number;
4632
+ dollars: number;
4633
+ };
4634
+ detail?: string | undefined;
4635
+ } | undefined;
3989
4636
  };
3990
4637
  }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3991
4638
  UNAUTHORIZED: {
@@ -3993,6 +4640,34 @@ export declare const contract: {
3993
4640
  status: number;
3994
4641
  };
3995
4642
  }>, Record<never, never>>;
4643
+ readPayload: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4644
+ thread: z.ZodString;
4645
+ sequence: z.ZodInt;
4646
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4647
+ status: z.ZodLiteral<"readable">;
4648
+ toolCall: z.ZodOptional<z.ZodObject<{
4649
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4650
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4651
+ }, z.core.$strip>>;
4652
+ worker: z.ZodOptional<z.ZodObject<{
4653
+ text: z.ZodOptional<z.ZodString>;
4654
+ detail: z.ZodOptional<z.ZodString>;
4655
+ }, z.core.$strip>>;
4656
+ }, z.core.$strip>, z.ZodObject<{
4657
+ status: z.ZodLiteral<"forgotten">;
4658
+ }, z.core.$strip>, z.ZodObject<{
4659
+ status: z.ZodLiteral<"unreadable">;
4660
+ }, z.core.$strip>], "status">, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
4661
+ UNAUTHORIZED: {
4662
+ message: string;
4663
+ status: number;
4664
+ };
4665
+ }>, {
4666
+ RECORD_NOT_FOUND: {
4667
+ readonly message: 'No record on this thread has this sequence';
4668
+ readonly status: 404;
4669
+ };
4670
+ }>, Record<never, never>>;
3996
4671
  };
3997
4672
  sessions: {
3998
4673
  enrol: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{