@heynixie/contract 0.76.0 → 0.78.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<{
@@ -454,12 +689,32 @@ export declare const contract: {
454
689
  resume: "resume";
455
690
  stop: "stop";
456
691
  }>>;
692
+ definitionID: z.ZodOptional<z.ZodString>;
457
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>>>;
458
699
  isPauseRequested: z.ZodBoolean;
459
700
  isPausedByNixie: z.ZodBoolean;
460
701
  isTakingMessages: z.ZodBoolean;
461
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
+ }>>;
462
716
  name: z.ZodString;
717
+ nextRunAt: z.ZodOptional<z.ZodString>;
463
718
  runner: z.ZodString;
464
719
  state: z.ZodEnum<{
465
720
  closed: "closed";
@@ -472,6 +727,7 @@ export declare const contract: {
472
727
  waiting: "waiting";
473
728
  }>;
474
729
  taskID: z.ZodString;
730
+ wakeable: z.ZodOptional<z.ZodBoolean>;
475
731
  waitingOn: z.ZodOptional<z.ZodString>;
476
732
  }, z.core.$strip>>;
477
733
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
@@ -502,12 +758,32 @@ export declare const contract: {
502
758
  resume: "resume";
503
759
  stop: "stop";
504
760
  }>>;
761
+ definitionID: z.ZodOptional<z.ZodString>;
505
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>>>;
506
768
  isPauseRequested: z.ZodBoolean;
507
769
  isPausedByNixie: z.ZodBoolean;
508
770
  isTakingMessages: z.ZodBoolean;
509
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
+ }>>;
510
785
  name: z.ZodString;
786
+ nextRunAt: z.ZodOptional<z.ZodString>;
511
787
  runner: z.ZodString;
512
788
  state: z.ZodEnum<{
513
789
  closed: "closed";
@@ -520,6 +796,7 @@ export declare const contract: {
520
796
  waiting: "waiting";
521
797
  }>;
522
798
  taskID: z.ZodString;
799
+ wakeable: z.ZodOptional<z.ZodBoolean>;
523
800
  waitingOn: z.ZodOptional<z.ZodString>;
524
801
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
525
802
  UNAUTHORIZED: {
@@ -828,6 +1105,10 @@ export declare const contract: {
828
1105
  message: string;
829
1106
  status: number;
830
1107
  };
1108
+ DEFINITION_TASK_NEVER_CLOSES: {
1109
+ message: string;
1110
+ status: number;
1111
+ };
831
1112
  }>, Record<never, never>>;
832
1113
  interrupt: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
833
1114
  clientActionID: z.ZodUUID;
@@ -1304,8 +1585,8 @@ export declare const contract: {
1304
1585
  changedAt: z.ZodDate;
1305
1586
  createdAt: z.ZodDate;
1306
1587
  forgottenAt: z.ZodNullable<z.ZodDate>;
1588
+ isBridge: z.ZodBoolean;
1307
1589
  isPinned: z.ZodBoolean;
1308
- isSensitive: z.ZodBoolean;
1309
1590
  itemID: z.ZodString;
1310
1591
  kind: z.ZodEnum<{
1311
1592
  fact: "fact";
@@ -1367,8 +1648,8 @@ export declare const contract: {
1367
1648
  changedAt: z.ZodDate;
1368
1649
  createdAt: z.ZodDate;
1369
1650
  forgottenAt: z.ZodNullable<z.ZodDate>;
1651
+ isBridge: z.ZodBoolean;
1370
1652
  isPinned: z.ZodBoolean;
1371
- isSensitive: z.ZodBoolean;
1372
1653
  itemID: z.ZodString;
1373
1654
  kind: z.ZodEnum<{
1374
1655
  fact: "fact";
@@ -1430,8 +1711,8 @@ export declare const contract: {
1430
1711
  changedAt: z.ZodDate;
1431
1712
  createdAt: z.ZodDate;
1432
1713
  forgottenAt: z.ZodNullable<z.ZodDate>;
1714
+ isBridge: z.ZodBoolean;
1433
1715
  isPinned: z.ZodBoolean;
1434
- isSensitive: z.ZodBoolean;
1435
1716
  itemID: z.ZodString;
1436
1717
  kind: z.ZodEnum<{
1437
1718
  fact: "fact";
@@ -1487,8 +1768,8 @@ export declare const contract: {
1487
1768
  changedAt: z.ZodDate;
1488
1769
  createdAt: z.ZodDate;
1489
1770
  forgottenAt: z.ZodNullable<z.ZodDate>;
1771
+ isBridge: z.ZodBoolean;
1490
1772
  isPinned: z.ZodBoolean;
1491
- isSensitive: z.ZodBoolean;
1492
1773
  itemID: z.ZodString;
1493
1774
  kind: z.ZodEnum<{
1494
1775
  fact: "fact";
@@ -1555,6 +1836,8 @@ export declare const contract: {
1555
1836
  sequence: z.ZodInt;
1556
1837
  thread: z.ZodString;
1557
1838
  }, z.core.$strip>>;
1839
+ isBridge: z.ZodBoolean;
1840
+ isRemoved: z.ZodBoolean;
1558
1841
  origin: z.ZodEnum<{
1559
1842
  conversation: "conversation";
1560
1843
  lapse: "lapse";
@@ -1688,8 +1971,8 @@ export declare const contract: {
1688
1971
  changedAt: z.ZodDate;
1689
1972
  createdAt: z.ZodDate;
1690
1973
  forgottenAt: z.ZodNullable<z.ZodDate>;
1974
+ isBridge: z.ZodBoolean;
1691
1975
  isPinned: z.ZodBoolean;
1692
- isSensitive: z.ZodBoolean;
1693
1976
  itemID: z.ZodString;
1694
1977
  kind: z.ZodEnum<{
1695
1978
  fact: "fact";
@@ -1801,6 +2084,10 @@ export declare const contract: {
1801
2084
  message: string;
1802
2085
  status: number;
1803
2086
  };
2087
+ VERSION_REMOVED: {
2088
+ message: string;
2089
+ status: number;
2090
+ };
1804
2091
  }>, Record<never, never>>;
1805
2092
  keep: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1806
2093
  clientActionID: z.ZodUUID;
@@ -1845,8 +2132,8 @@ export declare const contract: {
1845
2132
  changedAt: z.ZodDate;
1846
2133
  createdAt: z.ZodDate;
1847
2134
  forgottenAt: z.ZodNullable<z.ZodDate>;
2135
+ isBridge: z.ZodBoolean;
1848
2136
  isPinned: z.ZodBoolean;
1849
- isSensitive: z.ZodBoolean;
1850
2137
  itemID: z.ZodString;
1851
2138
  kind: z.ZodEnum<{
1852
2139
  fact: "fact";
@@ -1913,6 +2200,8 @@ export declare const contract: {
1913
2200
  sequence: z.ZodInt;
1914
2201
  thread: z.ZodString;
1915
2202
  }, z.core.$strip>>;
2203
+ isBridge: z.ZodBoolean;
2204
+ isRemoved: z.ZodBoolean;
1916
2205
  origin: z.ZodEnum<{
1917
2206
  conversation: "conversation";
1918
2207
  lapse: "lapse";
@@ -2017,8 +2306,8 @@ export declare const contract: {
2017
2306
  changedAt: z.ZodDate;
2018
2307
  createdAt: z.ZodDate;
2019
2308
  forgottenAt: z.ZodNullable<z.ZodDate>;
2309
+ isBridge: z.ZodBoolean;
2020
2310
  isPinned: z.ZodBoolean;
2021
- isSensitive: z.ZodBoolean;
2022
2311
  itemID: z.ZodString;
2023
2312
  kind: z.ZodEnum<{
2024
2313
  fact: "fact";
@@ -2191,42 +2480,6 @@ export declare const contract: {
2191
2480
  status: number;
2192
2481
  };
2193
2482
  }>, Record<never, never>>;
2194
- markSensitive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2195
- clientActionID: z.ZodUUID;
2196
- isSensitive: z.ZodBoolean;
2197
- itemID: z.ZodString;
2198
- }, z.core.$strip>, z.ZodObject<{
2199
- isSensitive: z.ZodBoolean;
2200
- itemID: z.ZodString;
2201
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2202
- UNAUTHORIZED: {
2203
- message: string;
2204
- status: number;
2205
- };
2206
- }>, {
2207
- MEMORY_NOT_STARTED: {
2208
- message: string;
2209
- status: number;
2210
- };
2211
- }>, {
2212
- CLIENT_ACTION_ID_REUSED: {
2213
- message: string;
2214
- status: number;
2215
- };
2216
- }>, {
2217
- MEMORY_ITEM_NOT_FOUND: {
2218
- message: string;
2219
- status: number;
2220
- };
2221
- STALE_VERSION: {
2222
- message: string;
2223
- status: number;
2224
- };
2225
- WRONG_STATE: {
2226
- message: string;
2227
- status: number;
2228
- };
2229
- }>, Record<never, never>>;
2230
2483
  readVersions: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2231
2484
  versions: z.ZodArray<z.ZodObject<{
2232
2485
  itemID: z.ZodString;
@@ -2250,29 +2503,6 @@ export declare const contract: {
2250
2503
  status: number;
2251
2504
  };
2252
2505
  }>, Record<never, never>>;
2253
- readRatingNotes: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2254
- notes: z.ZodArray<z.ZodObject<{
2255
- itemID: z.ZodString;
2256
- sequence: z.ZodInt;
2257
- }, z.core.$strip>>;
2258
- }, z.core.$strip>, z.ZodObject<{
2259
- notes: z.ZodArray<z.ZodObject<{
2260
- itemID: z.ZodString;
2261
- sequence: z.ZodInt;
2262
- status: z.ZodEnum<{
2263
- missing: "missing";
2264
- readable: "readable";
2265
- shredded: "shredded";
2266
- unreadable: "unreadable";
2267
- }>;
2268
- text: z.ZodOptional<z.ZodString>;
2269
- }, z.core.$strip>>;
2270
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2271
- UNAUTHORIZED: {
2272
- message: string;
2273
- status: number;
2274
- };
2275
- }>, Record<never, never>>;
2276
2506
  writerStatus: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2277
2507
  isEnabled: z.ZodBoolean;
2278
2508
  backlog: z.ZodInt;
@@ -2400,6 +2630,173 @@ export declare const contract: {
2400
2630
  };
2401
2631
  }>, Record<never, never>>;
2402
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
+ };
2403
2800
  rules: {
2404
2801
  readRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2405
2802
  ruleID: z.ZodString;
@@ -2705,7 +3102,6 @@ export declare const contract: {
2705
3102
  thread: z.ZodString;
2706
3103
  }, z.core.$strip>>;
2707
3104
  isPinned: z.ZodBoolean;
2708
- isSensitive: z.ZodBoolean;
2709
3105
  itemID: z.ZodString;
2710
3106
  kind: z.ZodEnum<{
2711
3107
  fact: "fact";
@@ -2751,7 +3147,6 @@ export declare const contract: {
2751
3147
  quote_in_quoted_block: "quote_in_quoted_block";
2752
3148
  quote_not_typed: "quote_not_typed";
2753
3149
  self_note: "self_note";
2754
- sensitive: "sensitive";
2755
3150
  subject_change: "subject_change";
2756
3151
  token_missing: "token_missing";
2757
3152
  }>;
@@ -2916,7 +3311,6 @@ export declare const contract: {
2916
3311
  thread: z.ZodString;
2917
3312
  }, z.core.$strip>>;
2918
3313
  isPinned: z.ZodBoolean;
2919
- isSensitive: z.ZodBoolean;
2920
3314
  itemID: z.ZodString;
2921
3315
  kind: z.ZodEnum<{
2922
3316
  fact: "fact";
@@ -2962,7 +3356,6 @@ export declare const contract: {
2962
3356
  quote_in_quoted_block: "quote_in_quoted_block";
2963
3357
  quote_not_typed: "quote_not_typed";
2964
3358
  self_note: "self_note";
2965
- sensitive: "sensitive";
2966
3359
  subject_change: "subject_change";
2967
3360
  token_missing: "token_missing";
2968
3361
  }>;
@@ -3567,9 +3960,15 @@ export declare const contract: {
3567
3960
  log: {
3568
3961
  follow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3569
3962
  afterSequence: z.ZodInt;
3963
+ clipPayloads: z.ZodOptional<z.ZodBoolean>;
3570
3964
  thread: z.ZodOptional<z.ZodString>;
3571
3965
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3572
3966
  record: {
3967
+ clipped?: {
3968
+ field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
3969
+ path: (string | number)[];
3970
+ bytes: number;
3971
+ }[] | undefined;
3573
3972
  compaction?: {
3574
3973
  postTokens?: number | undefined;
3575
3974
  preTokens: number;
@@ -3583,6 +3982,11 @@ export declare const contract: {
3583
3982
  };
3584
3983
  text: string;
3585
3984
  } | undefined;
3985
+ reminder?: {
3986
+ brief: string;
3987
+ scheduledFor: string;
3988
+ lateBySeconds: number | null;
3989
+ } | undefined;
3586
3990
  compactionFailure?: {
3587
3991
  failures: number;
3588
3992
  } | undefined;
@@ -3593,6 +3997,18 @@ export declare const contract: {
3593
3997
  size: number;
3594
3998
  window: number;
3595
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;
3596
4012
  isRemoved?: true | undefined;
3597
4013
  isSilentTurn?: true | undefined;
3598
4014
  kind: string;
@@ -3613,16 +4029,6 @@ export declare const contract: {
3613
4029
  shortID: string;
3614
4030
  title?: string | undefined;
3615
4031
  } | undefined;
3616
- rating?: {
3617
- items: {
3618
- itemID: string;
3619
- version: number;
3620
- hasNote: boolean;
3621
- verdict: "helpful" | "misleading" | "noise";
3622
- }[];
3623
- ratedBy?: string | undefined;
3624
- recalledSequence: number;
3625
- } | undefined;
3626
4032
  proposal?: {
3627
4033
  proposalID: string;
3628
4034
  shortID: string;
@@ -3681,11 +4087,53 @@ export declare const contract: {
3681
4087
  content?: Record<string, unknown> | undefined;
3682
4088
  input?: Record<string, unknown> | undefined;
3683
4089
  outcome?: string | undefined;
4090
+ runID?: string | undefined;
3684
4091
  tool?: string | undefined;
3685
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;
3686
4129
  };
3687
4130
  }, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
3688
4131
  record: {
4132
+ clipped?: {
4133
+ field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
4134
+ path: (string | number)[];
4135
+ bytes: number;
4136
+ }[] | undefined;
3689
4137
  compaction?: {
3690
4138
  postTokens?: number | undefined;
3691
4139
  preTokens: number;
@@ -3699,6 +4147,11 @@ export declare const contract: {
3699
4147
  };
3700
4148
  text: string;
3701
4149
  } | undefined;
4150
+ reminder?: {
4151
+ brief: string;
4152
+ scheduledFor: string;
4153
+ lateBySeconds: number | null;
4154
+ } | undefined;
3702
4155
  compactionFailure?: {
3703
4156
  failures: number;
3704
4157
  } | undefined;
@@ -3709,6 +4162,18 @@ export declare const contract: {
3709
4162
  size: number;
3710
4163
  window: number;
3711
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;
3712
4177
  isRemoved?: true | undefined;
3713
4178
  isSilentTurn?: true | undefined;
3714
4179
  kind: string;
@@ -3729,16 +4194,6 @@ export declare const contract: {
3729
4194
  shortID: string;
3730
4195
  title?: string | undefined;
3731
4196
  } | undefined;
3732
- rating?: {
3733
- items: {
3734
- itemID: string;
3735
- version: number;
3736
- hasNote: boolean;
3737
- verdict: "helpful" | "misleading" | "noise";
3738
- }[];
3739
- ratedBy?: string | undefined;
3740
- recalledSequence: number;
3741
- } | undefined;
3742
4197
  proposal?: {
3743
4198
  proposalID: string;
3744
4199
  shortID: string;
@@ -3797,8 +4252,45 @@ export declare const contract: {
3797
4252
  content?: Record<string, unknown> | undefined;
3798
4253
  input?: Record<string, unknown> | undefined;
3799
4254
  outcome?: string | undefined;
4255
+ runID?: string | undefined;
3800
4256
  tool?: string | undefined;
3801
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;
3802
4294
  };
3803
4295
  }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3804
4296
  UNAUTHORIZED: {
@@ -3810,9 +4302,15 @@ export declare const contract: {
3810
4302
  records: {
3811
4303
  follow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3812
4304
  afterSequence: z.ZodInt;
4305
+ clipPayloads: z.ZodOptional<z.ZodBoolean>;
3813
4306
  thread: z.ZodOptional<z.ZodString>;
3814
4307
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3815
4308
  record: {
4309
+ clipped?: {
4310
+ field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
4311
+ path: (string | number)[];
4312
+ bytes: number;
4313
+ }[] | undefined;
3816
4314
  compaction?: {
3817
4315
  postTokens?: number | undefined;
3818
4316
  preTokens: number;
@@ -3826,6 +4324,11 @@ export declare const contract: {
3826
4324
  };
3827
4325
  text: string;
3828
4326
  } | undefined;
4327
+ reminder?: {
4328
+ brief: string;
4329
+ scheduledFor: string;
4330
+ lateBySeconds: number | null;
4331
+ } | undefined;
3829
4332
  compactionFailure?: {
3830
4333
  failures: number;
3831
4334
  } | undefined;
@@ -3836,6 +4339,18 @@ export declare const contract: {
3836
4339
  size: number;
3837
4340
  window: number;
3838
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;
3839
4354
  isRemoved?: true | undefined;
3840
4355
  isSilentTurn?: true | undefined;
3841
4356
  kind: string;
@@ -3856,16 +4371,6 @@ export declare const contract: {
3856
4371
  shortID: string;
3857
4372
  title?: string | undefined;
3858
4373
  } | undefined;
3859
- rating?: {
3860
- items: {
3861
- itemID: string;
3862
- version: number;
3863
- hasNote: boolean;
3864
- verdict: "helpful" | "misleading" | "noise";
3865
- }[];
3866
- ratedBy?: string | undefined;
3867
- recalledSequence: number;
3868
- } | undefined;
3869
4374
  proposal?: {
3870
4375
  proposalID: string;
3871
4376
  shortID: string;
@@ -3924,11 +4429,53 @@ export declare const contract: {
3924
4429
  content?: Record<string, unknown> | undefined;
3925
4430
  input?: Record<string, unknown> | undefined;
3926
4431
  outcome?: string | undefined;
4432
+ runID?: string | undefined;
3927
4433
  tool?: string | undefined;
3928
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;
3929
4471
  };
3930
4472
  }, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
3931
4473
  record: {
4474
+ clipped?: {
4475
+ field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
4476
+ path: (string | number)[];
4477
+ bytes: number;
4478
+ }[] | undefined;
3932
4479
  compaction?: {
3933
4480
  postTokens?: number | undefined;
3934
4481
  preTokens: number;
@@ -3942,6 +4489,11 @@ export declare const contract: {
3942
4489
  };
3943
4490
  text: string;
3944
4491
  } | undefined;
4492
+ reminder?: {
4493
+ brief: string;
4494
+ scheduledFor: string;
4495
+ lateBySeconds: number | null;
4496
+ } | undefined;
3945
4497
  compactionFailure?: {
3946
4498
  failures: number;
3947
4499
  } | undefined;
@@ -3952,6 +4504,18 @@ export declare const contract: {
3952
4504
  size: number;
3953
4505
  window: number;
3954
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;
3955
4519
  isRemoved?: true | undefined;
3956
4520
  isSilentTurn?: true | undefined;
3957
4521
  kind: string;
@@ -3972,16 +4536,6 @@ export declare const contract: {
3972
4536
  shortID: string;
3973
4537
  title?: string | undefined;
3974
4538
  } | undefined;
3975
- rating?: {
3976
- items: {
3977
- itemID: string;
3978
- version: number;
3979
- hasNote: boolean;
3980
- verdict: "helpful" | "misleading" | "noise";
3981
- }[];
3982
- ratedBy?: string | undefined;
3983
- recalledSequence: number;
3984
- } | undefined;
3985
4539
  proposal?: {
3986
4540
  proposalID: string;
3987
4541
  shortID: string;
@@ -4040,8 +4594,45 @@ export declare const contract: {
4040
4594
  content?: Record<string, unknown> | undefined;
4041
4595
  input?: Record<string, unknown> | undefined;
4042
4596
  outcome?: string | undefined;
4597
+ runID?: string | undefined;
4043
4598
  tool?: string | undefined;
4044
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;
4045
4636
  };
4046
4637
  }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
4047
4638
  UNAUTHORIZED: {
@@ -4049,6 +4640,34 @@ export declare const contract: {
4049
4640
  status: number;
4050
4641
  };
4051
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>>;
4052
4671
  };
4053
4672
  sessions: {
4054
4673
  enrol: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{