@heynixie/contract 0.76.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 +527 -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 +758 -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/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/view-contract.d.ts +209 -0
- package/dist/contract/worker-view-schema.d.ts +37 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1053 -686
- 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: {
|
|
@@ -427,15 +597,24 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
427
597
|
brief: string;
|
|
428
598
|
closedBy?: "disposable" | "nixie" | "owner" | undefined;
|
|
429
599
|
controls: ("close" | "interrupt" | "pause" | "restart" | "resume" | "stop")[];
|
|
600
|
+
definitionID?: string | undefined;
|
|
430
601
|
disposable: boolean | null;
|
|
602
|
+
fire?: {
|
|
603
|
+
scheduledFor: string;
|
|
604
|
+
firedAt: string;
|
|
605
|
+
isCatchUp: boolean;
|
|
606
|
+
} | null | undefined;
|
|
431
607
|
isPauseRequested: boolean;
|
|
432
608
|
isPausedByNixie: boolean;
|
|
433
609
|
isTakingMessages: boolean;
|
|
434
610
|
lastActivityAt: Date;
|
|
611
|
+
listedState?: "asleep" | "closed" | "done" | "failed" | "finished" | "idle" | "paused" | "ready" | "running" | "stopped" | "waiting" | undefined;
|
|
435
612
|
name: string;
|
|
613
|
+
nextRunAt?: string | undefined;
|
|
436
614
|
runner: string;
|
|
437
615
|
state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
438
616
|
taskID: string;
|
|
617
|
+
wakeable?: boolean | undefined;
|
|
439
618
|
waitingOn?: string | undefined;
|
|
440
619
|
}[];
|
|
441
620
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
@@ -443,7 +622,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
443
622
|
message: string;
|
|
444
623
|
status: number;
|
|
445
624
|
};
|
|
446
|
-
}>>> & 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>;
|
|
447
629
|
read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
448
630
|
taskID: string;
|
|
449
631
|
}, {
|
|
@@ -455,15 +637,24 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
455
637
|
brief: string;
|
|
456
638
|
closedBy?: "disposable" | "nixie" | "owner" | undefined;
|
|
457
639
|
controls: ("close" | "interrupt" | "pause" | "restart" | "resume" | "stop")[];
|
|
640
|
+
definitionID?: string | undefined;
|
|
458
641
|
disposable: boolean | null;
|
|
642
|
+
fire?: {
|
|
643
|
+
scheduledFor: string;
|
|
644
|
+
firedAt: string;
|
|
645
|
+
isCatchUp: boolean;
|
|
646
|
+
} | null | undefined;
|
|
459
647
|
isPauseRequested: boolean;
|
|
460
648
|
isPausedByNixie: boolean;
|
|
461
649
|
isTakingMessages: boolean;
|
|
462
650
|
lastActivityAt: Date;
|
|
651
|
+
listedState?: "asleep" | "closed" | "done" | "failed" | "finished" | "idle" | "paused" | "ready" | "running" | "stopped" | "waiting" | undefined;
|
|
463
652
|
name: string;
|
|
653
|
+
nextRunAt?: string | undefined;
|
|
464
654
|
runner: string;
|
|
465
655
|
state: "closed" | "done" | "failed" | "paused" | "ready" | "running" | "stopped" | "waiting";
|
|
466
656
|
taskID: string;
|
|
657
|
+
wakeable?: boolean | undefined;
|
|
467
658
|
waitingOn?: string | undefined;
|
|
468
659
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
469
660
|
UNAUTHORIZED: {
|
|
@@ -743,6 +934,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
743
934
|
message: string;
|
|
744
935
|
status: number;
|
|
745
936
|
};
|
|
937
|
+
DEFINITION_TASK_NEVER_CLOSES: {
|
|
938
|
+
message: string;
|
|
939
|
+
status: number;
|
|
940
|
+
};
|
|
746
941
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
747
942
|
clientActionID: string;
|
|
748
943
|
taskID: string;
|
|
@@ -1236,8 +1431,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1236
1431
|
changedAt: Date;
|
|
1237
1432
|
createdAt: Date;
|
|
1238
1433
|
forgottenAt: Date | null;
|
|
1434
|
+
isBridge: boolean;
|
|
1239
1435
|
isPinned: boolean;
|
|
1240
|
-
isSensitive: boolean;
|
|
1241
1436
|
itemID: string;
|
|
1242
1437
|
kind: "fact" | "self";
|
|
1243
1438
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1279,8 +1474,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1279
1474
|
changedAt: Date;
|
|
1280
1475
|
createdAt: Date;
|
|
1281
1476
|
forgottenAt: Date | null;
|
|
1477
|
+
isBridge: boolean;
|
|
1282
1478
|
isPinned: boolean;
|
|
1283
|
-
isSensitive: boolean;
|
|
1284
1479
|
itemID: string;
|
|
1285
1480
|
kind: "fact" | "self";
|
|
1286
1481
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1315,8 +1510,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1315
1510
|
changedAt: Date;
|
|
1316
1511
|
createdAt: Date;
|
|
1317
1512
|
forgottenAt: Date | null;
|
|
1513
|
+
isBridge: boolean;
|
|
1318
1514
|
isPinned: boolean;
|
|
1319
|
-
isSensitive: boolean;
|
|
1320
1515
|
itemID: string;
|
|
1321
1516
|
kind: "fact" | "self";
|
|
1322
1517
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1347,8 +1542,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1347
1542
|
changedAt: Date;
|
|
1348
1543
|
createdAt: Date;
|
|
1349
1544
|
forgottenAt: Date | null;
|
|
1545
|
+
isBridge: boolean;
|
|
1350
1546
|
isPinned: boolean;
|
|
1351
|
-
isSensitive: boolean;
|
|
1352
1547
|
itemID: string;
|
|
1353
1548
|
kind: "fact" | "self";
|
|
1354
1549
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1379,6 +1574,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1379
1574
|
sequence: number;
|
|
1380
1575
|
thread: string;
|
|
1381
1576
|
} | null;
|
|
1577
|
+
isBridge: boolean;
|
|
1578
|
+
isRemoved: boolean;
|
|
1382
1579
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1383
1580
|
proposalID: string | null;
|
|
1384
1581
|
recordedAt: Date;
|
|
@@ -1499,8 +1696,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1499
1696
|
changedAt: Date;
|
|
1500
1697
|
createdAt: Date;
|
|
1501
1698
|
forgottenAt: Date | null;
|
|
1699
|
+
isBridge: boolean;
|
|
1502
1700
|
isPinned: boolean;
|
|
1503
|
-
isSensitive: boolean;
|
|
1504
1701
|
itemID: string;
|
|
1505
1702
|
kind: "fact" | "self";
|
|
1506
1703
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1580,6 +1777,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1580
1777
|
message: string;
|
|
1581
1778
|
status: number;
|
|
1582
1779
|
};
|
|
1780
|
+
VERSION_REMOVED: {
|
|
1781
|
+
message: string;
|
|
1782
|
+
status: number;
|
|
1783
|
+
};
|
|
1583
1784
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
1584
1785
|
clientActionID: string;
|
|
1585
1786
|
itemID: string;
|
|
@@ -1632,8 +1833,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1632
1833
|
changedAt: Date;
|
|
1633
1834
|
createdAt: Date;
|
|
1634
1835
|
forgottenAt: Date | null;
|
|
1836
|
+
isBridge: boolean;
|
|
1635
1837
|
isPinned: boolean;
|
|
1636
|
-
isSensitive: boolean;
|
|
1637
1838
|
itemID: string;
|
|
1638
1839
|
kind: "fact" | "self";
|
|
1639
1840
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1664,6 +1865,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1664
1865
|
sequence: number;
|
|
1665
1866
|
thread: string;
|
|
1666
1867
|
} | null;
|
|
1868
|
+
isBridge: boolean;
|
|
1869
|
+
isRemoved: boolean;
|
|
1667
1870
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1668
1871
|
proposalID: string | null;
|
|
1669
1872
|
recordedAt: Date;
|
|
@@ -1759,8 +1962,8 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1759
1962
|
changedAt: Date;
|
|
1760
1963
|
createdAt: Date;
|
|
1761
1964
|
forgottenAt: Date | null;
|
|
1965
|
+
isBridge: boolean;
|
|
1762
1966
|
isPinned: boolean;
|
|
1763
|
-
isSensitive: boolean;
|
|
1764
1967
|
itemID: string;
|
|
1765
1968
|
kind: "fact" | "self";
|
|
1766
1969
|
origin: "conversation" | "lapse" | "owner" | "task";
|
|
@@ -1921,46 +2124,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1921
2124
|
version: number;
|
|
1922
2125
|
isPinned: boolean;
|
|
1923
2126
|
}>;
|
|
1924
|
-
markSensitive: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1925
|
-
clientActionID: string;
|
|
1926
|
-
isSensitive: boolean;
|
|
1927
|
-
itemID: string;
|
|
1928
|
-
}, {
|
|
1929
|
-
isSensitive: boolean;
|
|
1930
|
-
itemID: string;
|
|
1931
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1932
|
-
UNAUTHORIZED: {
|
|
1933
|
-
message: string;
|
|
1934
|
-
status: number;
|
|
1935
|
-
};
|
|
1936
|
-
}>, {
|
|
1937
|
-
MEMORY_NOT_STARTED: {
|
|
1938
|
-
message: string;
|
|
1939
|
-
status: number;
|
|
1940
|
-
};
|
|
1941
|
-
}>, {
|
|
1942
|
-
CLIENT_ACTION_ID_REUSED: {
|
|
1943
|
-
message: string;
|
|
1944
|
-
status: number;
|
|
1945
|
-
};
|
|
1946
|
-
}>, {
|
|
1947
|
-
MEMORY_ITEM_NOT_FOUND: {
|
|
1948
|
-
message: string;
|
|
1949
|
-
status: number;
|
|
1950
|
-
};
|
|
1951
|
-
STALE_VERSION: {
|
|
1952
|
-
message: string;
|
|
1953
|
-
status: number;
|
|
1954
|
-
};
|
|
1955
|
-
WRONG_STATE: {
|
|
1956
|
-
message: string;
|
|
1957
|
-
status: number;
|
|
1958
|
-
};
|
|
1959
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
1960
|
-
clientActionID: string;
|
|
1961
|
-
isSensitive: boolean;
|
|
1962
|
-
itemID: string;
|
|
1963
|
-
}>;
|
|
1964
2127
|
readVersions: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1965
2128
|
versions: {
|
|
1966
2129
|
itemID: string;
|
|
@@ -1984,29 +2147,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1984
2147
|
version: number;
|
|
1985
2148
|
}[];
|
|
1986
2149
|
}>;
|
|
1987
|
-
readRatingNotes: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
1988
|
-
notes: {
|
|
1989
|
-
itemID: string;
|
|
1990
|
-
sequence: number;
|
|
1991
|
-
}[];
|
|
1992
|
-
}, {
|
|
1993
|
-
notes: {
|
|
1994
|
-
itemID: string;
|
|
1995
|
-
sequence: number;
|
|
1996
|
-
status: "missing" | "readable" | "shredded" | "unreadable";
|
|
1997
|
-
text?: string | undefined;
|
|
1998
|
-
}[];
|
|
1999
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2000
|
-
UNAUTHORIZED: {
|
|
2001
|
-
message: string;
|
|
2002
|
-
status: number;
|
|
2003
|
-
};
|
|
2004
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2005
|
-
notes: {
|
|
2006
|
-
itemID: string;
|
|
2007
|
-
sequence: number;
|
|
2008
|
-
}[];
|
|
2009
|
-
}>;
|
|
2010
2150
|
writerStatus: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2011
2151
|
isEnabled: boolean;
|
|
2012
2152
|
backlog: number;
|
|
@@ -2114,6 +2254,146 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2114
2254
|
};
|
|
2115
2255
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2116
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>;
|
|
2117
2397
|
rules: {
|
|
2118
2398
|
readRule: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2119
2399
|
ruleID: string;
|
|
@@ -2411,7 +2691,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2411
2691
|
thread: string;
|
|
2412
2692
|
} | null;
|
|
2413
2693
|
isPinned: boolean;
|
|
2414
|
-
isSensitive: boolean;
|
|
2415
2694
|
itemID: string;
|
|
2416
2695
|
kind: "fact" | "self";
|
|
2417
2696
|
labels: {
|
|
@@ -2426,7 +2705,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2426
2705
|
origin: "conversation" | "owner" | "task";
|
|
2427
2706
|
proposalID: string;
|
|
2428
2707
|
quote: string | null;
|
|
2429
|
-
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";
|
|
2430
2709
|
source: "owner" | "owner_data" | "untrusted";
|
|
2431
2710
|
sources: {
|
|
2432
2711
|
origin: "conversation" | "owner" | "task";
|
|
@@ -2524,7 +2803,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2524
2803
|
thread: string;
|
|
2525
2804
|
} | null;
|
|
2526
2805
|
isPinned: boolean;
|
|
2527
|
-
isSensitive: boolean;
|
|
2528
2806
|
itemID: string;
|
|
2529
2807
|
kind: "fact" | "self";
|
|
2530
2808
|
labels: {
|
|
@@ -2539,7 +2817,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2539
2817
|
origin: "conversation" | "owner" | "task";
|
|
2540
2818
|
proposalID: string;
|
|
2541
2819
|
quote: string | null;
|
|
2542
|
-
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";
|
|
2543
2821
|
source: "owner" | "owner_data" | "untrusted";
|
|
2544
2822
|
sources: {
|
|
2545
2823
|
origin: "conversation" | "owner" | "task";
|
|
@@ -3178,9 +3456,15 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3178
3456
|
log: {
|
|
3179
3457
|
follow: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
3180
3458
|
afterSequence: number;
|
|
3459
|
+
clipPayloads?: boolean | undefined;
|
|
3181
3460
|
thread?: string | undefined;
|
|
3182
3461
|
}, import("@orpc/client").AsyncIteratorClass<{
|
|
3183
3462
|
record: {
|
|
3463
|
+
clipped?: {
|
|
3464
|
+
field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
|
|
3465
|
+
path: (string | number)[];
|
|
3466
|
+
bytes: number;
|
|
3467
|
+
}[] | undefined;
|
|
3184
3468
|
compaction?: {
|
|
3185
3469
|
postTokens?: number | undefined;
|
|
3186
3470
|
preTokens: number;
|
|
@@ -3194,6 +3478,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3194
3478
|
};
|
|
3195
3479
|
text: string;
|
|
3196
3480
|
} | undefined;
|
|
3481
|
+
reminder?: {
|
|
3482
|
+
brief: string;
|
|
3483
|
+
scheduledFor: string;
|
|
3484
|
+
lateBySeconds: number | null;
|
|
3485
|
+
} | undefined;
|
|
3197
3486
|
compactionFailure?: {
|
|
3198
3487
|
failures: number;
|
|
3199
3488
|
} | undefined;
|
|
@@ -3204,6 +3493,18 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3204
3493
|
size: number;
|
|
3205
3494
|
window: number;
|
|
3206
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;
|
|
3207
3508
|
isRemoved?: true | undefined;
|
|
3208
3509
|
isSilentTurn?: true | undefined;
|
|
3209
3510
|
kind: string;
|
|
@@ -3224,16 +3525,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3224
3525
|
shortID: string;
|
|
3225
3526
|
title?: string | undefined;
|
|
3226
3527
|
} | undefined;
|
|
3227
|
-
rating?: {
|
|
3228
|
-
items: {
|
|
3229
|
-
itemID: string;
|
|
3230
|
-
version: number;
|
|
3231
|
-
hasNote: boolean;
|
|
3232
|
-
verdict: "helpful" | "misleading" | "noise";
|
|
3233
|
-
}[];
|
|
3234
|
-
ratedBy?: string | undefined;
|
|
3235
|
-
recalledSequence: number;
|
|
3236
|
-
} | undefined;
|
|
3237
3528
|
proposal?: {
|
|
3238
3529
|
proposalID: string;
|
|
3239
3530
|
shortID: string;
|
|
@@ -3292,8 +3583,45 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3292
3583
|
content?: Record<string, unknown> | undefined;
|
|
3293
3584
|
input?: Record<string, unknown> | undefined;
|
|
3294
3585
|
outcome?: string | undefined;
|
|
3586
|
+
runID?: string | undefined;
|
|
3295
3587
|
tool?: string | undefined;
|
|
3296
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;
|
|
3297
3625
|
};
|
|
3298
3626
|
}, unknown, void>, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3299
3627
|
UNAUTHORIZED: {
|
|
@@ -3302,15 +3630,22 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3302
3630
|
};
|
|
3303
3631
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
3304
3632
|
afterSequence: number;
|
|
3633
|
+
clipPayloads?: boolean | undefined;
|
|
3305
3634
|
thread?: string | undefined;
|
|
3306
3635
|
}>;
|
|
3307
3636
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
3308
3637
|
records: {
|
|
3309
3638
|
follow: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
3310
3639
|
afterSequence: number;
|
|
3640
|
+
clipPayloads?: boolean | undefined;
|
|
3311
3641
|
thread?: string | undefined;
|
|
3312
3642
|
}, import("@orpc/client").AsyncIteratorClass<{
|
|
3313
3643
|
record: {
|
|
3644
|
+
clipped?: {
|
|
3645
|
+
field: "toolCall.content" | "toolCall.input" | "worker.detail" | "worker.text";
|
|
3646
|
+
path: (string | number)[];
|
|
3647
|
+
bytes: number;
|
|
3648
|
+
}[] | undefined;
|
|
3314
3649
|
compaction?: {
|
|
3315
3650
|
postTokens?: number | undefined;
|
|
3316
3651
|
preTokens: number;
|
|
@@ -3324,6 +3659,11 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3324
3659
|
};
|
|
3325
3660
|
text: string;
|
|
3326
3661
|
} | undefined;
|
|
3662
|
+
reminder?: {
|
|
3663
|
+
brief: string;
|
|
3664
|
+
scheduledFor: string;
|
|
3665
|
+
lateBySeconds: number | null;
|
|
3666
|
+
} | undefined;
|
|
3327
3667
|
compactionFailure?: {
|
|
3328
3668
|
failures: number;
|
|
3329
3669
|
} | undefined;
|
|
@@ -3334,6 +3674,18 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3334
3674
|
size: number;
|
|
3335
3675
|
window: number;
|
|
3336
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;
|
|
3337
3689
|
isRemoved?: true | undefined;
|
|
3338
3690
|
isSilentTurn?: true | undefined;
|
|
3339
3691
|
kind: string;
|
|
@@ -3354,16 +3706,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3354
3706
|
shortID: string;
|
|
3355
3707
|
title?: string | undefined;
|
|
3356
3708
|
} | undefined;
|
|
3357
|
-
rating?: {
|
|
3358
|
-
items: {
|
|
3359
|
-
itemID: string;
|
|
3360
|
-
version: number;
|
|
3361
|
-
hasNote: boolean;
|
|
3362
|
-
verdict: "helpful" | "misleading" | "noise";
|
|
3363
|
-
}[];
|
|
3364
|
-
ratedBy?: string | undefined;
|
|
3365
|
-
recalledSequence: number;
|
|
3366
|
-
} | undefined;
|
|
3367
3709
|
proposal?: {
|
|
3368
3710
|
proposalID: string;
|
|
3369
3711
|
shortID: string;
|
|
@@ -3422,8 +3764,45 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3422
3764
|
content?: Record<string, unknown> | undefined;
|
|
3423
3765
|
input?: Record<string, unknown> | undefined;
|
|
3424
3766
|
outcome?: string | undefined;
|
|
3767
|
+
runID?: string | undefined;
|
|
3425
3768
|
tool?: string | undefined;
|
|
3426
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;
|
|
3427
3806
|
};
|
|
3428
3807
|
}, unknown, void>, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3429
3808
|
UNAUTHORIZED: {
|
|
@@ -3432,8 +3811,40 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
3432
3811
|
};
|
|
3433
3812
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
3434
3813
|
afterSequence: number;
|
|
3814
|
+
clipPayloads?: boolean | undefined;
|
|
3435
3815
|
thread?: string | undefined;
|
|
3436
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
|
+
}>;
|
|
3437
3848
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
3438
3849
|
sessions: {
|
|
3439
3850
|
enrol: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|