@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.
- package/dist/contract/approval-contract.d.ts +0 -4
- package/dist/contract/build-query-utils.d.ts +579 -116
- package/dist/contract/clip-record-payloads.d.ts +2 -0
- package/dist/contract/clipped-payload-schema.d.ts +11 -0
- package/dist/contract/contract.d.ts +814 -139
- package/dist/contract/definition-notice-schema.d.ts +24 -0
- package/dist/contract/definitions-contract.d.ts +72 -0
- package/dist/contract/forgettable-kinds.d.ts +1 -1
- package/dist/contract/host-contract.d.ts +31 -2
- package/dist/contract/listed-task-schema.d.ts +91 -0
- package/dist/contract/memory-view-contract.d.ts +15 -45
- package/dist/contract/payload-clip-bytes.d.ts +1 -0
- package/dist/contract/read-payload-contract.d.ts +29 -0
- package/dist/contract/schedule-schema.d.ts +31 -0
- package/dist/contract/sequence-schema.d.ts +2 -0
- package/dist/contract/thread-schema.d.ts +2 -0
- package/dist/contract/tool-call-schema.d.ts +1 -0
- package/dist/contract/trigger-schema.d.ts +36 -0
- package/dist/contract/view-contract.d.ts +209 -0
- package/dist/contract/worker-view-schema.d.ts +37 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1075 -639
- package/package.json +1 -1
|
@@ -3,12 +3,18 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3
3
|
conversation: {
|
|
4
4
|
read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
5
5
|
beforeSequence?: number | undefined;
|
|
6
|
+
clipPayloads?: boolean | undefined;
|
|
6
7
|
limit?: number | undefined;
|
|
7
8
|
thread: string;
|
|
8
9
|
}, {
|
|
9
10
|
hasEarlier: boolean;
|
|
10
11
|
readAtSequence: number;
|
|
11
12
|
records: {
|
|
13
|
+
clipped?: {
|
|
14
|
+
field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
|
|
15
|
+
path: (string | number)[];
|
|
16
|
+
bytes: number;
|
|
17
|
+
}[] | undefined;
|
|
12
18
|
compaction?: {
|
|
13
19
|
postTokens?: number | undefined;
|
|
14
20
|
preTokens: number;
|
|
@@ -22,6 +28,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
22
28
|
};
|
|
23
29
|
text: string;
|
|
24
30
|
} | undefined;
|
|
31
|
+
reminder?: {
|
|
32
|
+
brief: string;
|
|
33
|
+
scheduledFor: string;
|
|
34
|
+
lateBySeconds: number | null;
|
|
35
|
+
} | undefined;
|
|
25
36
|
compactionFailure?: {
|
|
26
37
|
failures: number;
|
|
27
38
|
} | undefined;
|
|
@@ -32,6 +43,18 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
32
43
|
size: number;
|
|
33
44
|
window: number;
|
|
34
45
|
} | undefined;
|
|
46
|
+
definitionNotice?: {
|
|
47
|
+
definitionID: string;
|
|
48
|
+
name: string | null;
|
|
49
|
+
operation: "add" | "change" | "remove" | "undo";
|
|
50
|
+
shortID: string;
|
|
51
|
+
changeID: string;
|
|
52
|
+
hasVersion: boolean;
|
|
53
|
+
rendered: string | null;
|
|
54
|
+
next: string | null;
|
|
55
|
+
state: "adopted" | "in_force" | "retired" | "superseded";
|
|
56
|
+
isUnreadable: boolean;
|
|
57
|
+
} | undefined;
|
|
35
58
|
isRemoved?: true | undefined;
|
|
36
59
|
isSilentTurn?: true | undefined;
|
|
37
60
|
kind: string;
|
|
@@ -52,16 +75,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
52
75
|
shortID: string;
|
|
53
76
|
title?: string | undefined;
|
|
54
77
|
} | undefined;
|
|
55
|
-
rating?: {
|
|
56
|
-
items: {
|
|
57
|
-
itemID: string;
|
|
58
|
-
version: number;
|
|
59
|
-
hasNote: boolean;
|
|
60
|
-
verdict: "helpful" | "misleading" | "noise";
|
|
61
|
-
}[];
|
|
62
|
-
ratedBy?: string | undefined;
|
|
63
|
-
recalledSequence: number;
|
|
64
|
-
} | undefined;
|
|
65
78
|
proposal?: {
|
|
66
79
|
proposalID: string;
|
|
67
80
|
shortID: string;
|
|
@@ -120,10 +133,52 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
120
133
|
content?: Record<string, unknown> | undefined;
|
|
121
134
|
input?: Record<string, unknown> | undefined;
|
|
122
135
|
outcome?: string | undefined;
|
|
136
|
+
runID?: string | undefined;
|
|
123
137
|
tool?: string | undefined;
|
|
124
138
|
} | undefined;
|
|
139
|
+
worker?: {
|
|
140
|
+
phase: "started";
|
|
141
|
+
workerRunID: string;
|
|
142
|
+
shortID: string;
|
|
143
|
+
callID: string;
|
|
144
|
+
model: string;
|
|
145
|
+
tools: string[];
|
|
146
|
+
limits: {
|
|
147
|
+
minutes: number;
|
|
148
|
+
turns: number;
|
|
149
|
+
tokens: number;
|
|
150
|
+
dollars: number;
|
|
151
|
+
};
|
|
152
|
+
isTaskLimit: boolean;
|
|
153
|
+
} | {
|
|
154
|
+
phase: "turn";
|
|
155
|
+
workerRunID: string;
|
|
156
|
+
callID: string;
|
|
157
|
+
turn: number;
|
|
158
|
+
tokens: number;
|
|
159
|
+
dollars: number;
|
|
160
|
+
text?: string | undefined;
|
|
161
|
+
} | {
|
|
162
|
+
phase: "ended";
|
|
163
|
+
workerRunID: string;
|
|
164
|
+
callID: string;
|
|
165
|
+
outcome: string;
|
|
166
|
+
limit?: string | undefined;
|
|
167
|
+
used: {
|
|
168
|
+
minutes: number;
|
|
169
|
+
turns: number;
|
|
170
|
+
tokens: number;
|
|
171
|
+
dollars: number;
|
|
172
|
+
};
|
|
173
|
+
detail?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
125
175
|
}[];
|
|
126
176
|
lastStepEnd?: {
|
|
177
|
+
clipped?: {
|
|
178
|
+
field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
|
|
179
|
+
path: (string | number)[];
|
|
180
|
+
bytes: number;
|
|
181
|
+
}[] | undefined;
|
|
127
182
|
compaction?: {
|
|
128
183
|
postTokens?: number | undefined;
|
|
129
184
|
preTokens: number;
|
|
@@ -137,6 +192,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
137
192
|
};
|
|
138
193
|
text: string;
|
|
139
194
|
} | undefined;
|
|
195
|
+
reminder?: {
|
|
196
|
+
brief: string;
|
|
197
|
+
scheduledFor: string;
|
|
198
|
+
lateBySeconds: number | null;
|
|
199
|
+
} | undefined;
|
|
140
200
|
compactionFailure?: {
|
|
141
201
|
failures: number;
|
|
142
202
|
} | undefined;
|
|
@@ -147,6 +207,18 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
147
207
|
size: number;
|
|
148
208
|
window: number;
|
|
149
209
|
} | undefined;
|
|
210
|
+
definitionNotice?: {
|
|
211
|
+
definitionID: string;
|
|
212
|
+
name: string | null;
|
|
213
|
+
operation: "add" | "change" | "remove" | "undo";
|
|
214
|
+
shortID: string;
|
|
215
|
+
changeID: string;
|
|
216
|
+
hasVersion: boolean;
|
|
217
|
+
rendered: string | null;
|
|
218
|
+
next: string | null;
|
|
219
|
+
state: "adopted" | "in_force" | "retired" | "superseded";
|
|
220
|
+
isUnreadable: boolean;
|
|
221
|
+
} | undefined;
|
|
150
222
|
isRemoved?: true | undefined;
|
|
151
223
|
isSilentTurn?: true | undefined;
|
|
152
224
|
kind: string;
|
|
@@ -167,16 +239,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
167
239
|
shortID: string;
|
|
168
240
|
title?: string | undefined;
|
|
169
241
|
} | undefined;
|
|
170
|
-
rating?: {
|
|
171
|
-
items: {
|
|
172
|
-
itemID: string;
|
|
173
|
-
version: number;
|
|
174
|
-
hasNote: boolean;
|
|
175
|
-
verdict: "helpful" | "misleading" | "noise";
|
|
176
|
-
}[];
|
|
177
|
-
ratedBy?: string | undefined;
|
|
178
|
-
recalledSequence: number;
|
|
179
|
-
} | undefined;
|
|
180
242
|
proposal?: {
|
|
181
243
|
proposalID: string;
|
|
182
244
|
shortID: string;
|
|
@@ -235,8 +297,45 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
235
297
|
content?: Record<string, unknown> | undefined;
|
|
236
298
|
input?: Record<string, unknown> | undefined;
|
|
237
299
|
outcome?: string | undefined;
|
|
300
|
+
runID?: string | undefined;
|
|
238
301
|
tool?: string | undefined;
|
|
239
302
|
} | undefined;
|
|
303
|
+
worker?: {
|
|
304
|
+
phase: "started";
|
|
305
|
+
workerRunID: string;
|
|
306
|
+
shortID: string;
|
|
307
|
+
callID: string;
|
|
308
|
+
model: string;
|
|
309
|
+
tools: string[];
|
|
310
|
+
limits: {
|
|
311
|
+
minutes: number;
|
|
312
|
+
turns: number;
|
|
313
|
+
tokens: number;
|
|
314
|
+
dollars: number;
|
|
315
|
+
};
|
|
316
|
+
isTaskLimit: boolean;
|
|
317
|
+
} | {
|
|
318
|
+
phase: "turn";
|
|
319
|
+
workerRunID: string;
|
|
320
|
+
callID: string;
|
|
321
|
+
turn: number;
|
|
322
|
+
tokens: number;
|
|
323
|
+
dollars: number;
|
|
324
|
+
text?: string | undefined;
|
|
325
|
+
} | {
|
|
326
|
+
phase: "ended";
|
|
327
|
+
workerRunID: string;
|
|
328
|
+
callID: string;
|
|
329
|
+
outcome: string;
|
|
330
|
+
limit?: string | undefined;
|
|
331
|
+
used: {
|
|
332
|
+
minutes: number;
|
|
333
|
+
turns: number;
|
|
334
|
+
tokens: number;
|
|
335
|
+
dollars: number;
|
|
336
|
+
};
|
|
337
|
+
detail?: string | undefined;
|
|
338
|
+
} | undefined;
|
|
240
339
|
} | null | undefined;
|
|
241
340
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
242
341
|
UNAUTHORIZED: {
|
|
@@ -250,6 +349,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
250
349
|
};
|
|
251
350
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
252
351
|
beforeSequence?: number | undefined;
|
|
352
|
+
clipPayloads?: boolean | undefined;
|
|
253
353
|
limit?: number | undefined;
|
|
254
354
|
thread: string;
|
|
255
355
|
}>;
|
|
@@ -416,7 +516,77 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
416
516
|
}>;
|
|
417
517
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
418
518
|
tasks: {
|
|
419
|
-
|
|
519
|
+
listEnded: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
520
|
+
limit: number;
|
|
521
|
+
before?: number | undefined;
|
|
522
|
+
definitionID?: string | undefined;
|
|
523
|
+
}, {
|
|
524
|
+
tasks: {
|
|
525
|
+
actions: {
|
|
526
|
+
cancelled: number;
|
|
527
|
+
queued: number;
|
|
528
|
+
started: number;
|
|
529
|
+
};
|
|
530
|
+
brief: string;
|
|
531
|
+
closedBy?: "disposable" | "nixie" | "owner" | undefined;
|
|
532
|
+
controls: ("close" | "interrupt" | "pause" | "restart" | "resume" | "stop")[];
|
|
533
|
+
definitionID?: string | undefined;
|
|
534
|
+
disposable: boolean | null;
|
|
535
|
+
fire?: {
|
|
536
|
+
scheduledFor: string;
|
|
537
|
+
firedAt: string;
|
|
538
|
+
isCatchUp: boolean;
|
|
539
|
+
} | null | undefined;
|
|
540
|
+
isPauseRequested: boolean;
|
|
541
|
+
isPausedByNixie: boolean;
|
|
542
|
+
isTakingMessages: boolean;
|
|
543
|
+
lastActivityAt: Date;
|
|
544
|
+
listedState?: "asleep" | "closed" | "done" | "failed" | "finished" | "idle" | "paused" | "ready" | "running" | "stopped" | "waiting" | undefined;
|
|
545
|
+
name: string;
|
|
546
|
+
nextRunAt?: string | undefined;
|
|
547
|
+
runner: string;
|
|
548
|
+
state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
549
|
+
taskID: string;
|
|
550
|
+
wakeable?: boolean | undefined;
|
|
551
|
+
waitingOn?: string | undefined;
|
|
552
|
+
}[];
|
|
553
|
+
runs: {
|
|
554
|
+
runID: string;
|
|
555
|
+
taskID: string;
|
|
556
|
+
definitionID: string | null;
|
|
557
|
+
startedAt: Date;
|
|
558
|
+
endedAt: Date;
|
|
559
|
+
sequence: number;
|
|
560
|
+
cause: string;
|
|
561
|
+
endedBy: string;
|
|
562
|
+
carriesRunID: string | null;
|
|
563
|
+
reportID: string;
|
|
564
|
+
delivery: "kept" | "next_turn" | "wake";
|
|
565
|
+
fire: {
|
|
566
|
+
scheduledFor: string;
|
|
567
|
+
firedAt: string;
|
|
568
|
+
isCatchUp: boolean;
|
|
569
|
+
} | null;
|
|
570
|
+
used: {
|
|
571
|
+
turns: number;
|
|
572
|
+
dollars: number;
|
|
573
|
+
};
|
|
574
|
+
}[];
|
|
575
|
+
next: number | null;
|
|
576
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
577
|
+
UNAUTHORIZED: {
|
|
578
|
+
message: string;
|
|
579
|
+
status: number;
|
|
580
|
+
};
|
|
581
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
582
|
+
limit: number;
|
|
583
|
+
before?: number | undefined;
|
|
584
|
+
definitionID?: string | undefined;
|
|
585
|
+
}>;
|
|
586
|
+
list: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
587
|
+
definitionID?: string | undefined;
|
|
588
|
+
states?: ("asleep" | "closed" | "done" | "failed" | "finished" | "idle" | "paused" | "ready" | "running" | "stopped" | "waiting")[] | undefined;
|
|
589
|
+
} | undefined, {
|
|
420
590
|
readAtSequence: number;
|
|
421
591
|
tasks: {
|
|
422
592
|
actions: {
|
|
@@ -425,15 +595,26 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
425
595
|
started: number;
|
|
426
596
|
};
|
|
427
597
|
brief: string;
|
|
598
|
+
closedBy?: "disposable" | "nixie" | "owner" | undefined;
|
|
428
599
|
controls: ("close" | "interrupt" | "pause" | "restart" | "resume" | "stop")[];
|
|
600
|
+
definitionID?: string | undefined;
|
|
601
|
+
disposable: boolean | null;
|
|
602
|
+
fire?: {
|
|
603
|
+
scheduledFor: string;
|
|
604
|
+
firedAt: string;
|
|
605
|
+
isCatchUp: boolean;
|
|
606
|
+
} | null | undefined;
|
|
429
607
|
isPauseRequested: boolean;
|
|
430
608
|
isPausedByNixie: boolean;
|
|
431
609
|
isTakingMessages: boolean;
|
|
432
610
|
lastActivityAt: Date;
|
|
611
|
+
listedState?: "asleep" | "closed" | "done" | "failed" | "finished" | "idle" | "paused" | "ready" | "running" | "stopped" | "waiting" | undefined;
|
|
433
612
|
name: string;
|
|
613
|
+
nextRunAt?: string | undefined;
|
|
434
614
|
runner: string;
|
|
435
615
|
state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
436
616
|
taskID: string;
|
|
617
|
+
wakeable?: boolean | undefined;
|
|
437
618
|
waitingOn?: string | undefined;
|
|
438
619
|
}[];
|
|
439
620
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
@@ -441,7 +622,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
441
622
|
message: string;
|
|
442
623
|
status: number;
|
|
443
624
|
};
|
|
444
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<
|
|
625
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
626
|
+
definitionID?: string | undefined;
|
|
627
|
+
states?: ("asleep" | "closed" | "done" | "failed" | "finished" | "idle" | "paused" | "ready" | "running" | "stopped" | "waiting")[] | undefined;
|
|
628
|
+
} | undefined>;
|
|
445
629
|
read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
446
630
|
taskID: string;
|
|
447
631
|
}, {
|
|
@@ -451,15 +635,26 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
451
635
|
started: number;
|
|
452
636
|
};
|
|
453
637
|
brief: string;
|
|
638
|
+
closedBy?: "disposable" | "nixie" | "owner" | undefined;
|
|
454
639
|
controls: ("close" | "interrupt" | "pause" | "restart" | "resume" | "stop")[];
|
|
640
|
+
definitionID?: string | undefined;
|
|
641
|
+
disposable: boolean | null;
|
|
642
|
+
fire?: {
|
|
643
|
+
scheduledFor: string;
|
|
644
|
+
firedAt: string;
|
|
645
|
+
isCatchUp: boolean;
|
|
646
|
+
} | null | undefined;
|
|
455
647
|
isPauseRequested: boolean;
|
|
456
648
|
isPausedByNixie: boolean;
|
|
457
649
|
isTakingMessages: boolean;
|
|
458
650
|
lastActivityAt: Date;
|
|
651
|
+
listedState?: "asleep" | "closed" | "done" | "failed" | "finished" | "idle" | "paused" | "ready" | "running" | "stopped" | "waiting" | undefined;
|
|
459
652
|
name: string;
|
|
653
|
+
nextRunAt?: string | undefined;
|
|
460
654
|
runner: string;
|
|
461
655
|
state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
462
656
|
taskID: string;
|
|
657
|
+
wakeable?: boolean | undefined;
|
|
463
658
|
waitingOn?: string | undefined;
|
|
464
659
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
465
660
|
UNAUTHORIZED: {
|
|
@@ -739,6 +934,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
739
934
|
message: string;
|
|
740
935
|
status: number;
|
|
741
936
|
};
|
|
937
|
+
DEFINITION_TASK_NEVER_CLOSES: {
|
|
938
|
+
message: string;
|
|
939
|
+
status: number;
|
|
940
|
+
};
|
|
742
941
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
743
942
|
clientActionID: string;
|
|
744
943
|
taskID: string;
|
|
@@ -791,6 +990,54 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
791
990
|
clientActionID: string;
|
|
792
991
|
taskID: string;
|
|
793
992
|
}>;
|
|
993
|
+
setDisposable: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
994
|
+
clientActionID: string;
|
|
995
|
+
disposable: boolean;
|
|
996
|
+
taskID: string;
|
|
997
|
+
}, {
|
|
998
|
+
changedAt: Date;
|
|
999
|
+
disposable: boolean;
|
|
1000
|
+
taskID: string;
|
|
1001
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1002
|
+
UNAUTHORIZED: {
|
|
1003
|
+
message: string;
|
|
1004
|
+
status: number;
|
|
1005
|
+
};
|
|
1006
|
+
}>, {
|
|
1007
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
1008
|
+
message: string;
|
|
1009
|
+
status: number;
|
|
1010
|
+
};
|
|
1011
|
+
}>, {
|
|
1012
|
+
TASK_NOT_FOUND: {
|
|
1013
|
+
message: string;
|
|
1014
|
+
status: number;
|
|
1015
|
+
};
|
|
1016
|
+
TASK_HAS_NO_MARK: {
|
|
1017
|
+
message: string;
|
|
1018
|
+
status: number;
|
|
1019
|
+
};
|
|
1020
|
+
TASK_STATE_REFUSED: {
|
|
1021
|
+
message: string;
|
|
1022
|
+
status: number;
|
|
1023
|
+
data: import("zod").ZodObject<{
|
|
1024
|
+
state: import("zod").ZodEnum<{
|
|
1025
|
+
closed: "closed";
|
|
1026
|
+
done: "done";
|
|
1027
|
+
failed: "failed";
|
|
1028
|
+
paused: "paused";
|
|
1029
|
+
ready: "ready";
|
|
1030
|
+
running: "running";
|
|
1031
|
+
stopped: "stopped";
|
|
1032
|
+
waiting: "waiting";
|
|
1033
|
+
}>;
|
|
1034
|
+
}, import("zod/v4/core").$strip>;
|
|
1035
|
+
};
|
|
1036
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
1037
|
+
clientActionID: string;
|
|
1038
|
+
disposable: boolean;
|
|
1039
|
+
taskID: string;
|
|
1040
|
+
}>;
|
|
794
1041
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
795
1042
|
memory: {
|
|
796
1043
|
export: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
@@ -1184,8 +1431,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1184
1431
|
changedAt: Date;
|
|
1185
1432
|
createdAt: Date;
|
|
1186
1433
|
forgottenAt: Date | null;
|
|
1434
|
+
isBridge: boolean;
|
|
1187
1435
|
isPinned: boolean;
|
|
1188
|
-
isSensitive: boolean;
|
|
1189
1436
|
itemID: string;
|
|
1190
1437
|
kind: "fact" | "self";
|
|
1191
1438
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1227,8 +1474,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1227
1474
|
changedAt: Date;
|
|
1228
1475
|
createdAt: Date;
|
|
1229
1476
|
forgottenAt: Date | null;
|
|
1477
|
+
isBridge: boolean;
|
|
1230
1478
|
isPinned: boolean;
|
|
1231
|
-
isSensitive: boolean;
|
|
1232
1479
|
itemID: string;
|
|
1233
1480
|
kind: "fact" | "self";
|
|
1234
1481
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1263,8 +1510,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1263
1510
|
changedAt: Date;
|
|
1264
1511
|
createdAt: Date;
|
|
1265
1512
|
forgottenAt: Date | null;
|
|
1513
|
+
isBridge: boolean;
|
|
1266
1514
|
isPinned: boolean;
|
|
1267
|
-
isSensitive: boolean;
|
|
1268
1515
|
itemID: string;
|
|
1269
1516
|
kind: "fact" | "self";
|
|
1270
1517
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1295,8 +1542,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1295
1542
|
changedAt: Date;
|
|
1296
1543
|
createdAt: Date;
|
|
1297
1544
|
forgottenAt: Date | null;
|
|
1545
|
+
isBridge: boolean;
|
|
1298
1546
|
isPinned: boolean;
|
|
1299
|
-
isSensitive: boolean;
|
|
1300
1547
|
itemID: string;
|
|
1301
1548
|
kind: "fact" | "self";
|
|
1302
1549
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1327,6 +1574,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1327
1574
|
sequence: number;
|
|
1328
1575
|
thread: string;
|
|
1329
1576
|
} | null;
|
|
1577
|
+
isBridge: boolean;
|
|
1578
|
+
isRemoved: boolean;
|
|
1330
1579
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1331
1580
|
proposalID: string | null;
|
|
1332
1581
|
recordedAt: Date;
|
|
@@ -1447,8 +1696,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1447
1696
|
changedAt: Date;
|
|
1448
1697
|
createdAt: Date;
|
|
1449
1698
|
forgottenAt: Date | null;
|
|
1699
|
+
isBridge: boolean;
|
|
1450
1700
|
isPinned: boolean;
|
|
1451
|
-
isSensitive: boolean;
|
|
1452
1701
|
itemID: string;
|
|
1453
1702
|
kind: "fact" | "self";
|
|
1454
1703
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1528,6 +1777,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1528
1777
|
message: string;
|
|
1529
1778
|
status: number;
|
|
1530
1779
|
};
|
|
1780
|
+
VERSION_REMOVED: {
|
|
1781
|
+
message: string;
|
|
1782
|
+
status: number;
|
|
1783
|
+
};
|
|
1531
1784
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
1532
1785
|
clientActionID: string;
|
|
1533
1786
|
itemID: string;
|
|
@@ -1580,8 +1833,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1580
1833
|
changedAt: Date;
|
|
1581
1834
|
createdAt: Date;
|
|
1582
1835
|
forgottenAt: Date | null;
|
|
1836
|
+
isBridge: boolean;
|
|
1583
1837
|
isPinned: boolean;
|
|
1584
|
-
isSensitive: boolean;
|
|
1585
1838
|
itemID: string;
|
|
1586
1839
|
kind: "fact" | "self";
|
|
1587
1840
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1612,6 +1865,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1612
1865
|
sequence: number;
|
|
1613
1866
|
thread: string;
|
|
1614
1867
|
} | null;
|
|
1868
|
+
isBridge: boolean;
|
|
1869
|
+
isRemoved: boolean;
|
|
1615
1870
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1616
1871
|
proposalID: string | null;
|
|
1617
1872
|
recordedAt: Date;
|
|
@@ -1707,8 +1962,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1707
1962
|
changedAt: Date;
|
|
1708
1963
|
createdAt: Date;
|
|
1709
1964
|
forgottenAt: Date | null;
|
|
1965
|
+
isBridge: boolean;
|
|
1710
1966
|
isPinned: boolean;
|
|
1711
|
-
isSensitive: boolean;
|
|
1712
1967
|
itemID: string;
|
|
1713
1968
|
kind: "fact" | "self";
|
|
1714
1969
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1869,46 +2124,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1869
2124
|
version: number;
|
|
1870
2125
|
isPinned: boolean;
|
|
1871
2126
|
}>;
|
|
1872
|
-
markSensitive: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1873
|
-
clientActionID: string;
|
|
1874
|
-
isSensitive: boolean;
|
|
1875
|
-
itemID: string;
|
|
1876
|
-
}, {
|
|
1877
|
-
isSensitive: boolean;
|
|
1878
|
-
itemID: string;
|
|
1879
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1880
|
-
UNAUTHORIZED: {
|
|
1881
|
-
message: string;
|
|
1882
|
-
status: number;
|
|
1883
|
-
};
|
|
1884
|
-
}>, {
|
|
1885
|
-
MEMORY_NOT_STARTED: {
|
|
1886
|
-
message: string;
|
|
1887
|
-
status: number;
|
|
1888
|
-
};
|
|
1889
|
-
}>, {
|
|
1890
|
-
CLIENT_ACTION_ID_REUSED: {
|
|
1891
|
-
message: string;
|
|
1892
|
-
status: number;
|
|
1893
|
-
};
|
|
1894
|
-
}>, {
|
|
1895
|
-
MEMORY_ITEM_NOT_FOUND: {
|
|
1896
|
-
message: string;
|
|
1897
|
-
status: number;
|
|
1898
|
-
};
|
|
1899
|
-
STALE_VERSION: {
|
|
1900
|
-
message: string;
|
|
1901
|
-
status: number;
|
|
1902
|
-
};
|
|
1903
|
-
WRONG_STATE: {
|
|
1904
|
-
message: string;
|
|
1905
|
-
status: number;
|
|
1906
|
-
};
|
|
1907
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
1908
|
-
clientActionID: string;
|
|
1909
|
-
isSensitive: boolean;
|
|
1910
|
-
itemID: string;
|
|
1911
|
-
}>;
|
|
1912
2127
|
readVersions: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1913
2128
|
versions: {
|
|
1914
2129
|
itemID: string;
|
|
@@ -1932,29 +2147,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1932
2147
|
version: number;
|
|
1933
2148
|
}[];
|
|
1934
2149
|
}>;
|
|
1935
|
-
readRatingNotes: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1936
|
-
notes: {
|
|
1937
|
-
itemID: string;
|
|
1938
|
-
sequence: number;
|
|
1939
|
-
}[];
|
|
1940
|
-
}, {
|
|
1941
|
-
notes: {
|
|
1942
|
-
itemID: string;
|
|
1943
|
-
sequence: number;
|
|
1944
|
-
status: "missing" | "readable" | "shredded" | "unreadable";
|
|
1945
|
-
text?: string | undefined;
|
|
1946
|
-
}[];
|
|
1947
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1948
|
-
UNAUTHORIZED: {
|
|
1949
|
-
message: string;
|
|
1950
|
-
status: number;
|
|
1951
|
-
};
|
|
1952
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
1953
|
-
notes: {
|
|
1954
|
-
itemID: string;
|
|
1955
|
-
sequence: number;
|
|
1956
|
-
}[];
|
|
1957
|
-
}>;
|
|
1958
2150
|
writerStatus: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
1959
2151
|
isEnabled: boolean;
|
|
1960
2152
|
backlog: number;
|
|
@@ -2062,6 +2254,146 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2062
2254
|
};
|
|
2063
2255
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2064
2256
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2257
|
+
triggers: {
|
|
2258
|
+
report: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2259
|
+
since: string;
|
|
2260
|
+
definitionID?: string | undefined;
|
|
2261
|
+
}, {
|
|
2262
|
+
entries: {
|
|
2263
|
+
definitionID: string;
|
|
2264
|
+
name: string;
|
|
2265
|
+
kind: "late" | "skipped";
|
|
2266
|
+
scheduledFor: string;
|
|
2267
|
+
firedAt: string | null;
|
|
2268
|
+
lateBySeconds: number | null;
|
|
2269
|
+
reason: "catch_up_off" | "still_running" | "task_held" | "too_late" | "window_closed" | null;
|
|
2270
|
+
sequence: number;
|
|
2271
|
+
}[];
|
|
2272
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2273
|
+
UNAUTHORIZED: {
|
|
2274
|
+
message: string;
|
|
2275
|
+
status: number;
|
|
2276
|
+
};
|
|
2277
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2278
|
+
since: string;
|
|
2279
|
+
definitionID?: string | undefined;
|
|
2280
|
+
}>;
|
|
2281
|
+
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2282
|
+
definitions: {
|
|
2283
|
+
undo: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2284
|
+
clientActionID: string;
|
|
2285
|
+
changeID: string;
|
|
2286
|
+
}, {
|
|
2287
|
+
definitionID: string;
|
|
2288
|
+
changeID: string;
|
|
2289
|
+
restored?: "repo" | undefined;
|
|
2290
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2291
|
+
UNAUTHORIZED: {
|
|
2292
|
+
message: string;
|
|
2293
|
+
status: number;
|
|
2294
|
+
};
|
|
2295
|
+
}>, {
|
|
2296
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2297
|
+
message: string;
|
|
2298
|
+
status: number;
|
|
2299
|
+
};
|
|
2300
|
+
}>, {
|
|
2301
|
+
NOT_STARTED: {
|
|
2302
|
+
message: string;
|
|
2303
|
+
status: number;
|
|
2304
|
+
};
|
|
2305
|
+
NOT_FOUND: {
|
|
2306
|
+
message: string;
|
|
2307
|
+
status: number;
|
|
2308
|
+
};
|
|
2309
|
+
REPLACED: {
|
|
2310
|
+
message: string;
|
|
2311
|
+
status: number;
|
|
2312
|
+
data: import("zod").ZodObject<{
|
|
2313
|
+
head: import("zod").ZodObject<{
|
|
2314
|
+
changeID: import("zod").ZodString;
|
|
2315
|
+
shortID: import("zod").ZodString;
|
|
2316
|
+
operation: import("zod").ZodEnum<{
|
|
2317
|
+
add: "add";
|
|
2318
|
+
change: "change";
|
|
2319
|
+
remove: "remove";
|
|
2320
|
+
undo: "undo";
|
|
2321
|
+
}>;
|
|
2322
|
+
}, import("zod/v4/core").$strip>;
|
|
2323
|
+
}, import("zod/v4/core").$strip>;
|
|
2324
|
+
};
|
|
2325
|
+
REPO_MOVED: {
|
|
2326
|
+
message: string;
|
|
2327
|
+
status: number;
|
|
2328
|
+
data: import("zod").ZodObject<{
|
|
2329
|
+
seedSequence: import("zod").ZodInt;
|
|
2330
|
+
}, import("zod/v4/core").$strip>;
|
|
2331
|
+
};
|
|
2332
|
+
NOT_IN_FORCE: {
|
|
2333
|
+
message: string;
|
|
2334
|
+
status: number;
|
|
2335
|
+
data: import("zod").ZodObject<{
|
|
2336
|
+
cause: import("zod").ZodEnum<{
|
|
2337
|
+
kept_repo: "kept_repo";
|
|
2338
|
+
one_shot_fired: "one_shot_fired";
|
|
2339
|
+
one_shot_skipped: "one_shot_skipped";
|
|
2340
|
+
}>;
|
|
2341
|
+
}, import("zod/v4/core").$strip>;
|
|
2342
|
+
};
|
|
2343
|
+
ONE_SHOT_OVER_REPO: {
|
|
2344
|
+
message: string;
|
|
2345
|
+
status: number;
|
|
2346
|
+
};
|
|
2347
|
+
ONE_SHOT_PAST: {
|
|
2348
|
+
message: string;
|
|
2349
|
+
status: number;
|
|
2350
|
+
};
|
|
2351
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2352
|
+
clientActionID: string;
|
|
2353
|
+
changeID: string;
|
|
2354
|
+
}>;
|
|
2355
|
+
listTasks: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2356
|
+
definitions: {
|
|
2357
|
+
definitionID: string;
|
|
2358
|
+
name: string;
|
|
2359
|
+
enabled: boolean;
|
|
2360
|
+
target: "conversation" | "task";
|
|
2361
|
+
trigger: {
|
|
2362
|
+
schedule: {
|
|
2363
|
+
every: "day" | "hour" | "week" | {
|
|
2364
|
+
minutes: number;
|
|
2365
|
+
};
|
|
2366
|
+
at?: string | undefined;
|
|
2367
|
+
on?: "fri" | "mon" | "sat" | "sun" | "thu" | "tue" | "wed" | undefined;
|
|
2368
|
+
window?: {
|
|
2369
|
+
from: string;
|
|
2370
|
+
until: string;
|
|
2371
|
+
} | undefined;
|
|
2372
|
+
idleMinutes?: number | undefined;
|
|
2373
|
+
zone: string;
|
|
2374
|
+
catchUp: "once" | "skip";
|
|
2375
|
+
};
|
|
2376
|
+
} | {
|
|
2377
|
+
at: string;
|
|
2378
|
+
} | null;
|
|
2379
|
+
rendered: string | null;
|
|
2380
|
+
next: string | null;
|
|
2381
|
+
tools: string[];
|
|
2382
|
+
origin: "definitions" | "nixie";
|
|
2383
|
+
createdBy: {
|
|
2384
|
+
sequence: number;
|
|
2385
|
+
kind: "definition.changed" | "definitions_seeded";
|
|
2386
|
+
};
|
|
2387
|
+
taskID: string | null;
|
|
2388
|
+
isUnreadable: boolean;
|
|
2389
|
+
}[];
|
|
2390
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2391
|
+
UNAUTHORIZED: {
|
|
2392
|
+
message: string;
|
|
2393
|
+
status: number;
|
|
2394
|
+
};
|
|
2395
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2396
|
+
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2065
2397
|
rules: {
|
|
2066
2398
|
readRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2067
2399
|
ruleID: string;
|
|
@@ -2359,7 +2691,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2359
2691
|
thread: string;
|
|
2360
2692
|
} | null;
|
|
2361
2693
|
isPinned: boolean;
|
|
2362
|
-
isSensitive: boolean;
|
|
2363
2694
|
itemID: string;
|
|
2364
2695
|
kind: "fact" | "self";
|
|
2365
2696
|
labels: {
|
|
@@ -2374,7 +2705,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2374
2705
|
origin: "conversation" | "owner" | "task";
|
|
2375
2706
|
proposalID: string;
|
|
2376
2707
|
quote: string | null;
|
|
2377
|
-
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "labels" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "
|
|
2708
|
+
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "labels" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "subject_change" | "token_missing";
|
|
2378
2709
|
source: "owner" | "owner_data" | "untrusted";
|
|
2379
2710
|
sources: {
|
|
2380
2711
|
origin: "conversation" | "owner" | "task";
|
|
@@ -2472,7 +2803,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2472
2803
|
thread: string;
|
|
2473
2804
|
} | null;
|
|
2474
2805
|
isPinned: boolean;
|
|
2475
|
-
isSensitive: boolean;
|
|
2476
2806
|
itemID: string;
|
|
2477
2807
|
kind: "fact" | "self";
|
|
2478
2808
|
labels: {
|
|
@@ -2487,7 +2817,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2487
2817
|
origin: "conversation" | "owner" | "task";
|
|
2488
2818
|
proposalID: string;
|
|
2489
2819
|
quote: string | null;
|
|
2490
|
-
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "labels" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "
|
|
2820
|
+
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "labels" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "subject_change" | "token_missing";
|
|
2491
2821
|
source: "owner" | "owner_data" | "untrusted";
|
|
2492
2822
|
sources: {
|
|
2493
2823
|
origin: "conversation" | "owner" | "task";
|
|
@@ -3126,9 +3456,15 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3126
3456
|
log: {
|
|
3127
3457
|
follow: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
3128
3458
|
afterSequence: number;
|
|
3459
|
+
clipPayloads?: boolean | undefined;
|
|
3129
3460
|
thread?: string | undefined;
|
|
3130
3461
|
}, import("@orpc/client").AsyncIteratorClass<{
|
|
3131
3462
|
record: {
|
|
3463
|
+
clipped?: {
|
|
3464
|
+
field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
|
|
3465
|
+
path: (string | number)[];
|
|
3466
|
+
bytes: number;
|
|
3467
|
+
}[] | undefined;
|
|
3132
3468
|
compaction?: {
|
|
3133
3469
|
postTokens?: number | undefined;
|
|
3134
3470
|
preTokens: number;
|
|
@@ -3142,6 +3478,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3142
3478
|
};
|
|
3143
3479
|
text: string;
|
|
3144
3480
|
} | undefined;
|
|
3481
|
+
reminder?: {
|
|
3482
|
+
brief: string;
|
|
3483
|
+
scheduledFor: string;
|
|
3484
|
+
lateBySeconds: number | null;
|
|
3485
|
+
} | undefined;
|
|
3145
3486
|
compactionFailure?: {
|
|
3146
3487
|
failures: number;
|
|
3147
3488
|
} | undefined;
|
|
@@ -3152,6 +3493,18 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3152
3493
|
size: number;
|
|
3153
3494
|
window: number;
|
|
3154
3495
|
} | undefined;
|
|
3496
|
+
definitionNotice?: {
|
|
3497
|
+
definitionID: string;
|
|
3498
|
+
name: string | null;
|
|
3499
|
+
operation: "add" | "change" | "remove" | "undo";
|
|
3500
|
+
shortID: string;
|
|
3501
|
+
changeID: string;
|
|
3502
|
+
hasVersion: boolean;
|
|
3503
|
+
rendered: string | null;
|
|
3504
|
+
next: string | null;
|
|
3505
|
+
state: "adopted" | "in_force" | "retired" | "superseded";
|
|
3506
|
+
isUnreadable: boolean;
|
|
3507
|
+
} | undefined;
|
|
3155
3508
|
isRemoved?: true | undefined;
|
|
3156
3509
|
isSilentTurn?: true | undefined;
|
|
3157
3510
|
kind: string;
|
|
@@ -3172,16 +3525,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3172
3525
|
shortID: string;
|
|
3173
3526
|
title?: string | undefined;
|
|
3174
3527
|
} | undefined;
|
|
3175
|
-
rating?: {
|
|
3176
|
-
items: {
|
|
3177
|
-
itemID: string;
|
|
3178
|
-
version: number;
|
|
3179
|
-
hasNote: boolean;
|
|
3180
|
-
verdict: "helpful" | "misleading" | "noise";
|
|
3181
|
-
}[];
|
|
3182
|
-
ratedBy?: string | undefined;
|
|
3183
|
-
recalledSequence: number;
|
|
3184
|
-
} | undefined;
|
|
3185
3528
|
proposal?: {
|
|
3186
3529
|
proposalID: string;
|
|
3187
3530
|
shortID: string;
|
|
@@ -3240,8 +3583,45 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3240
3583
|
content?: Record<string, unknown> | undefined;
|
|
3241
3584
|
input?: Record<string, unknown> | undefined;
|
|
3242
3585
|
outcome?: string | undefined;
|
|
3586
|
+
runID?: string | undefined;
|
|
3243
3587
|
tool?: string | undefined;
|
|
3244
3588
|
} | undefined;
|
|
3589
|
+
worker?: {
|
|
3590
|
+
phase: "started";
|
|
3591
|
+
workerRunID: string;
|
|
3592
|
+
shortID: string;
|
|
3593
|
+
callID: string;
|
|
3594
|
+
model: string;
|
|
3595
|
+
tools: string[];
|
|
3596
|
+
limits: {
|
|
3597
|
+
minutes: number;
|
|
3598
|
+
turns: number;
|
|
3599
|
+
tokens: number;
|
|
3600
|
+
dollars: number;
|
|
3601
|
+
};
|
|
3602
|
+
isTaskLimit: boolean;
|
|
3603
|
+
} | {
|
|
3604
|
+
phase: "turn";
|
|
3605
|
+
workerRunID: string;
|
|
3606
|
+
callID: string;
|
|
3607
|
+
turn: number;
|
|
3608
|
+
tokens: number;
|
|
3609
|
+
dollars: number;
|
|
3610
|
+
text?: string | undefined;
|
|
3611
|
+
} | {
|
|
3612
|
+
phase: "ended";
|
|
3613
|
+
workerRunID: string;
|
|
3614
|
+
callID: string;
|
|
3615
|
+
outcome: string;
|
|
3616
|
+
limit?: string | undefined;
|
|
3617
|
+
used: {
|
|
3618
|
+
minutes: number;
|
|
3619
|
+
turns: number;
|
|
3620
|
+
tokens: number;
|
|
3621
|
+
dollars: number;
|
|
3622
|
+
};
|
|
3623
|
+
detail?: string | undefined;
|
|
3624
|
+
} | undefined;
|
|
3245
3625
|
};
|
|
3246
3626
|
}, unknown, void>, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3247
3627
|
UNAUTHORIZED: {
|
|
@@ -3250,15 +3630,22 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3250
3630
|
};
|
|
3251
3631
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
3252
3632
|
afterSequence: number;
|
|
3633
|
+
clipPayloads?: boolean | undefined;
|
|
3253
3634
|
thread?: string | undefined;
|
|
3254
3635
|
}>;
|
|
3255
3636
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
3256
3637
|
records: {
|
|
3257
3638
|
follow: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
3258
3639
|
afterSequence: number;
|
|
3640
|
+
clipPayloads?: boolean | undefined;
|
|
3259
3641
|
thread?: string | undefined;
|
|
3260
3642
|
}, import("@orpc/client").AsyncIteratorClass<{
|
|
3261
3643
|
record: {
|
|
3644
|
+
clipped?: {
|
|
3645
|
+
field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
|
|
3646
|
+
path: (string | number)[];
|
|
3647
|
+
bytes: number;
|
|
3648
|
+
}[] | undefined;
|
|
3262
3649
|
compaction?: {
|
|
3263
3650
|
postTokens?: number | undefined;
|
|
3264
3651
|
preTokens: number;
|
|
@@ -3272,6 +3659,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3272
3659
|
};
|
|
3273
3660
|
text: string;
|
|
3274
3661
|
} | undefined;
|
|
3662
|
+
reminder?: {
|
|
3663
|
+
brief: string;
|
|
3664
|
+
scheduledFor: string;
|
|
3665
|
+
lateBySeconds: number | null;
|
|
3666
|
+
} | undefined;
|
|
3275
3667
|
compactionFailure?: {
|
|
3276
3668
|
failures: number;
|
|
3277
3669
|
} | undefined;
|
|
@@ -3282,6 +3674,18 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3282
3674
|
size: number;
|
|
3283
3675
|
window: number;
|
|
3284
3676
|
} | undefined;
|
|
3677
|
+
definitionNotice?: {
|
|
3678
|
+
definitionID: string;
|
|
3679
|
+
name: string | null;
|
|
3680
|
+
operation: "add" | "change" | "remove" | "undo";
|
|
3681
|
+
shortID: string;
|
|
3682
|
+
changeID: string;
|
|
3683
|
+
hasVersion: boolean;
|
|
3684
|
+
rendered: string | null;
|
|
3685
|
+
next: string | null;
|
|
3686
|
+
state: "adopted" | "in_force" | "retired" | "superseded";
|
|
3687
|
+
isUnreadable: boolean;
|
|
3688
|
+
} | undefined;
|
|
3285
3689
|
isRemoved?: true | undefined;
|
|
3286
3690
|
isSilentTurn?: true | undefined;
|
|
3287
3691
|
kind: string;
|
|
@@ -3302,16 +3706,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3302
3706
|
shortID: string;
|
|
3303
3707
|
title?: string | undefined;
|
|
3304
3708
|
} | undefined;
|
|
3305
|
-
rating?: {
|
|
3306
|
-
items: {
|
|
3307
|
-
itemID: string;
|
|
3308
|
-
version: number;
|
|
3309
|
-
hasNote: boolean;
|
|
3310
|
-
verdict: "helpful" | "misleading" | "noise";
|
|
3311
|
-
}[];
|
|
3312
|
-
ratedBy?: string | undefined;
|
|
3313
|
-
recalledSequence: number;
|
|
3314
|
-
} | undefined;
|
|
3315
3709
|
proposal?: {
|
|
3316
3710
|
proposalID: string;
|
|
3317
3711
|
shortID: string;
|
|
@@ -3370,8 +3764,45 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3370
3764
|
content?: Record<string, unknown> | undefined;
|
|
3371
3765
|
input?: Record<string, unknown> | undefined;
|
|
3372
3766
|
outcome?: string | undefined;
|
|
3767
|
+
runID?: string | undefined;
|
|
3373
3768
|
tool?: string | undefined;
|
|
3374
3769
|
} | undefined;
|
|
3770
|
+
worker?: {
|
|
3771
|
+
phase: "started";
|
|
3772
|
+
workerRunID: string;
|
|
3773
|
+
shortID: string;
|
|
3774
|
+
callID: string;
|
|
3775
|
+
model: string;
|
|
3776
|
+
tools: string[];
|
|
3777
|
+
limits: {
|
|
3778
|
+
minutes: number;
|
|
3779
|
+
turns: number;
|
|
3780
|
+
tokens: number;
|
|
3781
|
+
dollars: number;
|
|
3782
|
+
};
|
|
3783
|
+
isTaskLimit: boolean;
|
|
3784
|
+
} | {
|
|
3785
|
+
phase: "turn";
|
|
3786
|
+
workerRunID: string;
|
|
3787
|
+
callID: string;
|
|
3788
|
+
turn: number;
|
|
3789
|
+
tokens: number;
|
|
3790
|
+
dollars: number;
|
|
3791
|
+
text?: string | undefined;
|
|
3792
|
+
} | {
|
|
3793
|
+
phase: "ended";
|
|
3794
|
+
workerRunID: string;
|
|
3795
|
+
callID: string;
|
|
3796
|
+
outcome: string;
|
|
3797
|
+
limit?: string | undefined;
|
|
3798
|
+
used: {
|
|
3799
|
+
minutes: number;
|
|
3800
|
+
turns: number;
|
|
3801
|
+
tokens: number;
|
|
3802
|
+
dollars: number;
|
|
3803
|
+
};
|
|
3804
|
+
detail?: string | undefined;
|
|
3805
|
+
} | undefined;
|
|
3375
3806
|
};
|
|
3376
3807
|
}, unknown, void>, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3377
3808
|
UNAUTHORIZED: {
|
|
@@ -3380,8 +3811,40 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3380
3811
|
};
|
|
3381
3812
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
3382
3813
|
afterSequence: number;
|
|
3814
|
+
clipPayloads?: boolean | undefined;
|
|
3383
3815
|
thread?: string | undefined;
|
|
3384
3816
|
}>;
|
|
3817
|
+
readPayload: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
3818
|
+
thread: string;
|
|
3819
|
+
sequence: number;
|
|
3820
|
+
}, {
|
|
3821
|
+
status: "readable";
|
|
3822
|
+
toolCall?: {
|
|
3823
|
+
input?: Record<string, unknown> | undefined;
|
|
3824
|
+
content?: Record<string, unknown> | undefined;
|
|
3825
|
+
} | undefined;
|
|
3826
|
+
worker?: {
|
|
3827
|
+
text?: string | undefined;
|
|
3828
|
+
detail?: string | undefined;
|
|
3829
|
+
} | undefined;
|
|
3830
|
+
} | {
|
|
3831
|
+
status: "forgotten";
|
|
3832
|
+
} | {
|
|
3833
|
+
status: "unreadable";
|
|
3834
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3835
|
+
UNAUTHORIZED: {
|
|
3836
|
+
message: string;
|
|
3837
|
+
status: number;
|
|
3838
|
+
};
|
|
3839
|
+
}>, {
|
|
3840
|
+
RECORD_NOT_FOUND: {
|
|
3841
|
+
readonly message: 'No record on this thread has this sequence';
|
|
3842
|
+
readonly status: 404;
|
|
3843
|
+
};
|
|
3844
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
3845
|
+
thread: string;
|
|
3846
|
+
sequence: number;
|
|
3847
|
+
}>;
|
|
3385
3848
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
3386
3849
|
sessions: {
|
|
3387
3850
|
enrol: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|