@intentic/sandbox-contract 1.420.0 → 1.422.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/contracts/ci.contract.d.ts +30 -0
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/ci.contract.js +10 -1
- package/dist/contracts/ci.contract.js.map +1 -1
- package/dist/contracts/device.contract.d.ts +46 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/device.contract.js +2 -0
- package/dist/contracts/device.contract.js.map +1 -1
- package/dist/contracts/offload.contract.d.ts +51 -0
- package/dist/contracts/offload.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.js +3 -3
- package/dist/contracts/offload.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +308 -246
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +2 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +5 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +2 -1
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/requests.js +1 -1
- package/dist/events/requests.js.map +1 -1
- package/dist/events/sandbox-notice.d.ts +12 -0
- package/dist/events/sandbox-notice.d.ts.map +1 -1
- package/dist/events/sandbox-notice.js +5 -1
- package/dist/events/sandbox-notice.js.map +1 -1
- package/dist/models/account-moves.d.ts.map +1 -1
- package/dist/models/account-moves.js +10 -2
- package/dist/models/account-moves.js.map +1 -1
- package/dist/models/plan-pools.d.ts +3 -1
- package/dist/models/plan-pools.d.ts.map +1 -1
- package/dist/models/plan-pools.js +26 -3
- package/dist/models/plan-pools.js.map +1 -1
- package/dist/protocol/doors/runner-protocol.d.ts +42 -0
- package/dist/protocol/doors/runner-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/runner-protocol.js +23 -0
- package/dist/protocol/doors/runner-protocol.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +4 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +8 -0
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +2 -0
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/schemas/ci.d.ts +69 -0
- package/dist/schemas/ci.d.ts.map +1 -1
- package/dist/schemas/ci.js +30 -0
- package/dist/schemas/ci.js.map +1 -1
- package/dist/schemas/device-files.d.ts +71 -0
- package/dist/schemas/device-files.d.ts.map +1 -0
- package/dist/schemas/device-files.js +53 -0
- package/dist/schemas/device-files.js.map +1 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js.map +1 -1
- package/dist/schemas/hosts.d.ts +3 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +3 -0
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/night-hours.d.ts +5 -1
- package/dist/schemas/night-hours.d.ts.map +1 -1
- package/dist/schemas/night-hours.js +24 -2
- package/dist/schemas/night-hours.js.map +1 -1
- package/dist/schemas/offload.d.ts +40 -0
- package/dist/schemas/offload.d.ts.map +1 -1
- package/dist/schemas/offload.js +21 -0
- package/dist/schemas/offload.js.map +1 -1
- package/dist/schemas/providers/plan-limits.d.ts +1 -0
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.js +5 -1
- package/dist/schemas/providers/plan-limits.js.map +1 -1
- package/dist/schemas/settings.d.ts +2 -0
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +2 -2
- package/dist/schemas/settings.js.map +1 -1
- package/dist/state/definition.d.ts +4 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/text/land-rows.d.ts +7 -4
- package/dist/text/land-rows.d.ts.map +1 -1
- package/dist/text/land-rows.js +8 -4
- package/dist/text/land-rows.js.map +1 -1
- package/dist/text/transcript-fold.d.ts.map +1 -1
- package/dist/text/transcript-fold.js +6 -4
- package/dist/text/transcript-fold.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/ci.contract.ts +13 -0
- package/src/contracts/device.contract.ts +5 -0
- package/src/contracts/offload.contract.ts +3 -2
- package/src/events/agent-events.ts +3 -1
- package/src/events/requests.ts +1 -1
- package/src/events/sandbox-notice.ts +13 -2
- package/src/models/account-moves.test.ts +9 -1
- package/src/models/account-moves.ts +22 -7
- package/src/models/plan-pools.test.ts +57 -20
- package/src/models/plan-pools.ts +48 -8
- package/src/protocol/doors/runner-protocol.ts +42 -2
- package/src/protocol/raw/raw-routes.ts +5 -0
- package/src/schemas/automations.ts +3 -3
- package/src/schemas/ci.ts +42 -0
- package/src/schemas/device-files.ts +90 -0
- package/src/schemas/devices.ts +5 -4
- package/src/schemas/hosts.ts +15 -3
- package/src/schemas/night-hours.test.ts +32 -1
- package/src/schemas/night-hours.ts +46 -3
- package/src/schemas/offload.ts +39 -2
- package/src/schemas/providers/plan-limits.ts +7 -1
- package/src/schemas/settings.ts +2 -2
- package/src/text/land-rows.ts +18 -6
- package/src/text/transcript-fold.test.ts +17 -0
- package/src/text/transcript-fold.ts +8 -5
|
@@ -9,6 +9,10 @@ export declare const runnerContract: {
|
|
|
9
9
|
memoryLimitMb: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
cpuPressure: z.ZodOptional<z.ZodNumber>;
|
|
11
11
|
memoryStall: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
gpus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
memoryMb: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
12
16
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
13
17
|
syncWorkspace: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
14
18
|
op: z.ZodEnum<{
|
|
@@ -68,37 +72,6 @@ export declare const runnerContract: {
|
|
|
68
72
|
bytesBase64: z.ZodString;
|
|
69
73
|
}, z.core.$strip>>>;
|
|
70
74
|
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
71
|
-
requestId: string;
|
|
72
|
-
text: string;
|
|
73
|
-
document?: {
|
|
74
|
-
path: string;
|
|
75
|
-
title: string;
|
|
76
|
-
markdown: string;
|
|
77
|
-
truncated?: boolean | undefined;
|
|
78
|
-
plan?: boolean | undefined;
|
|
79
|
-
} | undefined;
|
|
80
|
-
kind: "plan";
|
|
81
|
-
} | {
|
|
82
|
-
requestId: string;
|
|
83
|
-
questions: {
|
|
84
|
-
question: string;
|
|
85
|
-
header: string;
|
|
86
|
-
multiSelect: boolean;
|
|
87
|
-
options: {
|
|
88
|
-
label: string;
|
|
89
|
-
description: string;
|
|
90
|
-
preview?: string | undefined;
|
|
91
|
-
}[];
|
|
92
|
-
}[];
|
|
93
|
-
document?: {
|
|
94
|
-
path: string;
|
|
95
|
-
title: string;
|
|
96
|
-
markdown: string;
|
|
97
|
-
truncated?: boolean | undefined;
|
|
98
|
-
plan?: boolean | undefined;
|
|
99
|
-
} | undefined;
|
|
100
|
-
kind: "question";
|
|
101
|
-
} | {
|
|
102
75
|
kind: "session";
|
|
103
76
|
sessionId: string;
|
|
104
77
|
account?: string | undefined;
|
|
@@ -110,6 +83,7 @@ export declare const runnerContract: {
|
|
|
110
83
|
sync?: {
|
|
111
84
|
commits: number;
|
|
112
85
|
blocked: string[];
|
|
86
|
+
cause?: "answer" | "between-tools" | "turn-open" | undefined;
|
|
113
87
|
} | undefined;
|
|
114
88
|
remote?: string | undefined;
|
|
115
89
|
} | {
|
|
@@ -333,6 +307,37 @@ export declare const runnerContract: {
|
|
|
333
307
|
sent?: string | undefined;
|
|
334
308
|
kind: "agent_notice";
|
|
335
309
|
text: string;
|
|
310
|
+
} | {
|
|
311
|
+
requestId: string;
|
|
312
|
+
text: string;
|
|
313
|
+
document?: {
|
|
314
|
+
path: string;
|
|
315
|
+
title: string;
|
|
316
|
+
markdown: string;
|
|
317
|
+
truncated?: boolean | undefined;
|
|
318
|
+
plan?: boolean | undefined;
|
|
319
|
+
} | undefined;
|
|
320
|
+
kind: "plan";
|
|
321
|
+
} | {
|
|
322
|
+
requestId: string;
|
|
323
|
+
questions: {
|
|
324
|
+
question: string;
|
|
325
|
+
header: string;
|
|
326
|
+
multiSelect: boolean;
|
|
327
|
+
options: {
|
|
328
|
+
label: string;
|
|
329
|
+
description: string;
|
|
330
|
+
preview?: string | undefined;
|
|
331
|
+
}[];
|
|
332
|
+
}[];
|
|
333
|
+
document?: {
|
|
334
|
+
path: string;
|
|
335
|
+
title: string;
|
|
336
|
+
markdown: string;
|
|
337
|
+
truncated?: boolean | undefined;
|
|
338
|
+
plan?: boolean | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
kind: "question";
|
|
336
341
|
} | {
|
|
337
342
|
requestId: string;
|
|
338
343
|
session: string;
|
|
@@ -749,50 +754,6 @@ export declare const runnerContract: {
|
|
|
749
754
|
unattended?: boolean | undefined;
|
|
750
755
|
} | {
|
|
751
756
|
kind: "done";
|
|
752
|
-
} | {
|
|
753
|
-
toolName: string;
|
|
754
|
-
title?: string | undefined;
|
|
755
|
-
displayName?: string | undefined;
|
|
756
|
-
description?: string | undefined;
|
|
757
|
-
reason?: string | undefined;
|
|
758
|
-
path?: string | undefined;
|
|
759
|
-
alwaysLabel?: string | undefined;
|
|
760
|
-
alwaysAsks?: true | undefined;
|
|
761
|
-
program?: {
|
|
762
|
-
text: string;
|
|
763
|
-
language: "bash" | "javascript";
|
|
764
|
-
truncated: boolean;
|
|
765
|
-
spans: {
|
|
766
|
-
start: number;
|
|
767
|
-
end: number;
|
|
768
|
-
}[];
|
|
769
|
-
} | undefined;
|
|
770
|
-
child?: {
|
|
771
|
-
provider: string;
|
|
772
|
-
model: string;
|
|
773
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
774
|
-
account?: string | undefined;
|
|
775
|
-
effort?: string | undefined;
|
|
776
|
-
thinking?: boolean | undefined;
|
|
777
|
-
fast?: boolean | undefined;
|
|
778
|
-
move: "answer" | "send" | "spawn";
|
|
779
|
-
child?: string | undefined;
|
|
780
|
-
task?: string | undefined;
|
|
781
|
-
message?: string | undefined;
|
|
782
|
-
on?: string | undefined;
|
|
783
|
-
proposed?: {
|
|
784
|
-
provider: string;
|
|
785
|
-
model: string;
|
|
786
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
787
|
-
account?: string | undefined;
|
|
788
|
-
effort?: string | undefined;
|
|
789
|
-
thinking?: boolean | undefined;
|
|
790
|
-
fast?: boolean | undefined;
|
|
791
|
-
} | undefined;
|
|
792
|
-
} | undefined;
|
|
793
|
-
explain?: string | undefined;
|
|
794
|
-
requestId: string;
|
|
795
|
-
kind: "permission";
|
|
796
757
|
} | {
|
|
797
758
|
window: number;
|
|
798
759
|
omitted: string[];
|
|
@@ -842,54 +803,6 @@ export declare const runnerContract: {
|
|
|
842
803
|
cachedAt?: number | undefined;
|
|
843
804
|
cacheTtlMs?: number | undefined;
|
|
844
805
|
kind: "context_usage";
|
|
845
|
-
} | {
|
|
846
|
-
outcome: "connected" | "unfinished";
|
|
847
|
-
id?: string | undefined;
|
|
848
|
-
kind: "capability_outcome";
|
|
849
|
-
requestId: string;
|
|
850
|
-
} | {
|
|
851
|
-
outcome: "failed" | "paid";
|
|
852
|
-
amountUsd: string;
|
|
853
|
-
transaction?: string | undefined;
|
|
854
|
-
network?: string | undefined;
|
|
855
|
-
kind: "payment_receipt";
|
|
856
|
-
requestId: string;
|
|
857
|
-
} | {
|
|
858
|
-
outcome: "refused" | "released";
|
|
859
|
-
approvedBy?: string | undefined;
|
|
860
|
-
kind: "credential_receipt";
|
|
861
|
-
requestId: string;
|
|
862
|
-
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
863
|
-
requestId: string;
|
|
864
|
-
text: string;
|
|
865
|
-
document?: {
|
|
866
|
-
path: string;
|
|
867
|
-
title: string;
|
|
868
|
-
markdown: string;
|
|
869
|
-
truncated?: boolean | undefined;
|
|
870
|
-
plan?: boolean | undefined;
|
|
871
|
-
} | undefined;
|
|
872
|
-
kind: "plan";
|
|
873
|
-
} | {
|
|
874
|
-
requestId: string;
|
|
875
|
-
questions: {
|
|
876
|
-
question: string;
|
|
877
|
-
header: string;
|
|
878
|
-
multiSelect: boolean;
|
|
879
|
-
options: {
|
|
880
|
-
label: string;
|
|
881
|
-
description: string;
|
|
882
|
-
preview?: string | undefined;
|
|
883
|
-
}[];
|
|
884
|
-
}[];
|
|
885
|
-
document?: {
|
|
886
|
-
path: string;
|
|
887
|
-
title: string;
|
|
888
|
-
markdown: string;
|
|
889
|
-
truncated?: boolean | undefined;
|
|
890
|
-
plan?: boolean | undefined;
|
|
891
|
-
} | undefined;
|
|
892
|
-
kind: "question";
|
|
893
806
|
} | {
|
|
894
807
|
toolName: string;
|
|
895
808
|
title?: string | undefined;
|
|
@@ -935,6 +848,23 @@ export declare const runnerContract: {
|
|
|
935
848
|
requestId: string;
|
|
936
849
|
kind: "permission";
|
|
937
850
|
} | {
|
|
851
|
+
outcome: "connected" | "unfinished";
|
|
852
|
+
id?: string | undefined;
|
|
853
|
+
kind: "capability_outcome";
|
|
854
|
+
requestId: string;
|
|
855
|
+
} | {
|
|
856
|
+
outcome: "failed" | "paid";
|
|
857
|
+
amountUsd: string;
|
|
858
|
+
transaction?: string | undefined;
|
|
859
|
+
network?: string | undefined;
|
|
860
|
+
kind: "payment_receipt";
|
|
861
|
+
requestId: string;
|
|
862
|
+
} | {
|
|
863
|
+
outcome: "refused" | "released";
|
|
864
|
+
approvedBy?: string | undefined;
|
|
865
|
+
kind: "credential_receipt";
|
|
866
|
+
requestId: string;
|
|
867
|
+
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
938
868
|
kind: "session";
|
|
939
869
|
sessionId: string;
|
|
940
870
|
account?: string | undefined;
|
|
@@ -946,6 +876,7 @@ export declare const runnerContract: {
|
|
|
946
876
|
sync?: {
|
|
947
877
|
commits: number;
|
|
948
878
|
blocked: string[];
|
|
879
|
+
cause?: "answer" | "between-tools" | "turn-open" | undefined;
|
|
949
880
|
} | undefined;
|
|
950
881
|
remote?: string | undefined;
|
|
951
882
|
} | {
|
|
@@ -1169,6 +1100,37 @@ export declare const runnerContract: {
|
|
|
1169
1100
|
sent?: string | undefined;
|
|
1170
1101
|
kind: "agent_notice";
|
|
1171
1102
|
text: string;
|
|
1103
|
+
} | {
|
|
1104
|
+
requestId: string;
|
|
1105
|
+
text: string;
|
|
1106
|
+
document?: {
|
|
1107
|
+
path: string;
|
|
1108
|
+
title: string;
|
|
1109
|
+
markdown: string;
|
|
1110
|
+
truncated?: boolean | undefined;
|
|
1111
|
+
plan?: boolean | undefined;
|
|
1112
|
+
} | undefined;
|
|
1113
|
+
kind: "plan";
|
|
1114
|
+
} | {
|
|
1115
|
+
requestId: string;
|
|
1116
|
+
questions: {
|
|
1117
|
+
question: string;
|
|
1118
|
+
header: string;
|
|
1119
|
+
multiSelect: boolean;
|
|
1120
|
+
options: {
|
|
1121
|
+
label: string;
|
|
1122
|
+
description: string;
|
|
1123
|
+
preview?: string | undefined;
|
|
1124
|
+
}[];
|
|
1125
|
+
}[];
|
|
1126
|
+
document?: {
|
|
1127
|
+
path: string;
|
|
1128
|
+
title: string;
|
|
1129
|
+
markdown: string;
|
|
1130
|
+
truncated?: boolean | undefined;
|
|
1131
|
+
plan?: boolean | undefined;
|
|
1132
|
+
} | undefined;
|
|
1133
|
+
kind: "question";
|
|
1172
1134
|
} | {
|
|
1173
1135
|
requestId: string;
|
|
1174
1136
|
session: string;
|
|
@@ -1636,6 +1598,50 @@ export declare const runnerContract: {
|
|
|
1636
1598
|
cachedAt?: number | undefined;
|
|
1637
1599
|
cacheTtlMs?: number | undefined;
|
|
1638
1600
|
kind: "context_usage";
|
|
1601
|
+
} | {
|
|
1602
|
+
toolName: string;
|
|
1603
|
+
title?: string | undefined;
|
|
1604
|
+
displayName?: string | undefined;
|
|
1605
|
+
description?: string | undefined;
|
|
1606
|
+
reason?: string | undefined;
|
|
1607
|
+
path?: string | undefined;
|
|
1608
|
+
alwaysLabel?: string | undefined;
|
|
1609
|
+
alwaysAsks?: true | undefined;
|
|
1610
|
+
program?: {
|
|
1611
|
+
text: string;
|
|
1612
|
+
language: "bash" | "javascript";
|
|
1613
|
+
truncated: boolean;
|
|
1614
|
+
spans: {
|
|
1615
|
+
start: number;
|
|
1616
|
+
end: number;
|
|
1617
|
+
}[];
|
|
1618
|
+
} | undefined;
|
|
1619
|
+
child?: {
|
|
1620
|
+
provider: string;
|
|
1621
|
+
model: string;
|
|
1622
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
1623
|
+
account?: string | undefined;
|
|
1624
|
+
effort?: string | undefined;
|
|
1625
|
+
thinking?: boolean | undefined;
|
|
1626
|
+
fast?: boolean | undefined;
|
|
1627
|
+
move: "answer" | "send" | "spawn";
|
|
1628
|
+
child?: string | undefined;
|
|
1629
|
+
task?: string | undefined;
|
|
1630
|
+
message?: string | undefined;
|
|
1631
|
+
on?: string | undefined;
|
|
1632
|
+
proposed?: {
|
|
1633
|
+
provider: string;
|
|
1634
|
+
model: string;
|
|
1635
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
1636
|
+
account?: string | undefined;
|
|
1637
|
+
effort?: string | undefined;
|
|
1638
|
+
thinking?: boolean | undefined;
|
|
1639
|
+
fast?: boolean | undefined;
|
|
1640
|
+
} | undefined;
|
|
1641
|
+
} | undefined;
|
|
1642
|
+
explain?: string | undefined;
|
|
1643
|
+
requestId: string;
|
|
1644
|
+
kind: "permission";
|
|
1639
1645
|
} | {
|
|
1640
1646
|
outcome: "connected" | "unfinished";
|
|
1641
1647
|
id?: string | undefined;
|
|
@@ -1666,6 +1672,11 @@ export declare const runnerContract: {
|
|
|
1666
1672
|
sync: z.ZodOptional<z.ZodObject<{
|
|
1667
1673
|
commits: z.ZodNumber;
|
|
1668
1674
|
blocked: z.ZodArray<z.ZodString>;
|
|
1675
|
+
cause: z.ZodOptional<z.ZodEnum<{
|
|
1676
|
+
answer: "answer";
|
|
1677
|
+
"between-tools": "between-tools";
|
|
1678
|
+
"turn-open": "turn-open";
|
|
1679
|
+
}>>;
|
|
1669
1680
|
}, z.core.$strip>>;
|
|
1670
1681
|
remote: z.ZodOptional<z.ZodString>;
|
|
1671
1682
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2749,37 +2760,6 @@ export declare const runnerContract: {
|
|
|
2749
2760
|
conversationId: z.ZodString;
|
|
2750
2761
|
after: z.ZodNumber;
|
|
2751
2762
|
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
2752
|
-
requestId: string;
|
|
2753
|
-
text: string;
|
|
2754
|
-
document?: {
|
|
2755
|
-
path: string;
|
|
2756
|
-
title: string;
|
|
2757
|
-
markdown: string;
|
|
2758
|
-
truncated?: boolean | undefined;
|
|
2759
|
-
plan?: boolean | undefined;
|
|
2760
|
-
} | undefined;
|
|
2761
|
-
kind: "plan";
|
|
2762
|
-
} | {
|
|
2763
|
-
requestId: string;
|
|
2764
|
-
questions: {
|
|
2765
|
-
question: string;
|
|
2766
|
-
header: string;
|
|
2767
|
-
multiSelect: boolean;
|
|
2768
|
-
options: {
|
|
2769
|
-
label: string;
|
|
2770
|
-
description: string;
|
|
2771
|
-
preview?: string | undefined;
|
|
2772
|
-
}[];
|
|
2773
|
-
}[];
|
|
2774
|
-
document?: {
|
|
2775
|
-
path: string;
|
|
2776
|
-
title: string;
|
|
2777
|
-
markdown: string;
|
|
2778
|
-
truncated?: boolean | undefined;
|
|
2779
|
-
plan?: boolean | undefined;
|
|
2780
|
-
} | undefined;
|
|
2781
|
-
kind: "question";
|
|
2782
|
-
} | {
|
|
2783
2763
|
kind: "session";
|
|
2784
2764
|
sessionId: string;
|
|
2785
2765
|
account?: string | undefined;
|
|
@@ -2791,6 +2771,7 @@ export declare const runnerContract: {
|
|
|
2791
2771
|
sync?: {
|
|
2792
2772
|
commits: number;
|
|
2793
2773
|
blocked: string[];
|
|
2774
|
+
cause?: "answer" | "between-tools" | "turn-open" | undefined;
|
|
2794
2775
|
} | undefined;
|
|
2795
2776
|
remote?: string | undefined;
|
|
2796
2777
|
} | {
|
|
@@ -3014,6 +2995,37 @@ export declare const runnerContract: {
|
|
|
3014
2995
|
sent?: string | undefined;
|
|
3015
2996
|
kind: "agent_notice";
|
|
3016
2997
|
text: string;
|
|
2998
|
+
} | {
|
|
2999
|
+
requestId: string;
|
|
3000
|
+
text: string;
|
|
3001
|
+
document?: {
|
|
3002
|
+
path: string;
|
|
3003
|
+
title: string;
|
|
3004
|
+
markdown: string;
|
|
3005
|
+
truncated?: boolean | undefined;
|
|
3006
|
+
plan?: boolean | undefined;
|
|
3007
|
+
} | undefined;
|
|
3008
|
+
kind: "plan";
|
|
3009
|
+
} | {
|
|
3010
|
+
requestId: string;
|
|
3011
|
+
questions: {
|
|
3012
|
+
question: string;
|
|
3013
|
+
header: string;
|
|
3014
|
+
multiSelect: boolean;
|
|
3015
|
+
options: {
|
|
3016
|
+
label: string;
|
|
3017
|
+
description: string;
|
|
3018
|
+
preview?: string | undefined;
|
|
3019
|
+
}[];
|
|
3020
|
+
}[];
|
|
3021
|
+
document?: {
|
|
3022
|
+
path: string;
|
|
3023
|
+
title: string;
|
|
3024
|
+
markdown: string;
|
|
3025
|
+
truncated?: boolean | undefined;
|
|
3026
|
+
plan?: boolean | undefined;
|
|
3027
|
+
} | undefined;
|
|
3028
|
+
kind: "question";
|
|
3017
3029
|
} | {
|
|
3018
3030
|
requestId: string;
|
|
3019
3031
|
session: string;
|
|
@@ -3430,50 +3442,6 @@ export declare const runnerContract: {
|
|
|
3430
3442
|
unattended?: boolean | undefined;
|
|
3431
3443
|
} | {
|
|
3432
3444
|
kind: "done";
|
|
3433
|
-
} | {
|
|
3434
|
-
toolName: string;
|
|
3435
|
-
title?: string | undefined;
|
|
3436
|
-
displayName?: string | undefined;
|
|
3437
|
-
description?: string | undefined;
|
|
3438
|
-
reason?: string | undefined;
|
|
3439
|
-
path?: string | undefined;
|
|
3440
|
-
alwaysLabel?: string | undefined;
|
|
3441
|
-
alwaysAsks?: true | undefined;
|
|
3442
|
-
program?: {
|
|
3443
|
-
text: string;
|
|
3444
|
-
language: "bash" | "javascript";
|
|
3445
|
-
truncated: boolean;
|
|
3446
|
-
spans: {
|
|
3447
|
-
start: number;
|
|
3448
|
-
end: number;
|
|
3449
|
-
}[];
|
|
3450
|
-
} | undefined;
|
|
3451
|
-
child?: {
|
|
3452
|
-
provider: string;
|
|
3453
|
-
model: string;
|
|
3454
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
3455
|
-
account?: string | undefined;
|
|
3456
|
-
effort?: string | undefined;
|
|
3457
|
-
thinking?: boolean | undefined;
|
|
3458
|
-
fast?: boolean | undefined;
|
|
3459
|
-
move: "answer" | "send" | "spawn";
|
|
3460
|
-
child?: string | undefined;
|
|
3461
|
-
task?: string | undefined;
|
|
3462
|
-
message?: string | undefined;
|
|
3463
|
-
on?: string | undefined;
|
|
3464
|
-
proposed?: {
|
|
3465
|
-
provider: string;
|
|
3466
|
-
model: string;
|
|
3467
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
3468
|
-
account?: string | undefined;
|
|
3469
|
-
effort?: string | undefined;
|
|
3470
|
-
thinking?: boolean | undefined;
|
|
3471
|
-
fast?: boolean | undefined;
|
|
3472
|
-
} | undefined;
|
|
3473
|
-
} | undefined;
|
|
3474
|
-
explain?: string | undefined;
|
|
3475
|
-
requestId: string;
|
|
3476
|
-
kind: "permission";
|
|
3477
3445
|
} | {
|
|
3478
3446
|
window: number;
|
|
3479
3447
|
omitted: string[];
|
|
@@ -3523,54 +3491,6 @@ export declare const runnerContract: {
|
|
|
3523
3491
|
cachedAt?: number | undefined;
|
|
3524
3492
|
cacheTtlMs?: number | undefined;
|
|
3525
3493
|
kind: "context_usage";
|
|
3526
|
-
} | {
|
|
3527
|
-
outcome: "connected" | "unfinished";
|
|
3528
|
-
id?: string | undefined;
|
|
3529
|
-
kind: "capability_outcome";
|
|
3530
|
-
requestId: string;
|
|
3531
|
-
} | {
|
|
3532
|
-
outcome: "failed" | "paid";
|
|
3533
|
-
amountUsd: string;
|
|
3534
|
-
transaction?: string | undefined;
|
|
3535
|
-
network?: string | undefined;
|
|
3536
|
-
kind: "payment_receipt";
|
|
3537
|
-
requestId: string;
|
|
3538
|
-
} | {
|
|
3539
|
-
outcome: "refused" | "released";
|
|
3540
|
-
approvedBy?: string | undefined;
|
|
3541
|
-
kind: "credential_receipt";
|
|
3542
|
-
requestId: string;
|
|
3543
|
-
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
3544
|
-
requestId: string;
|
|
3545
|
-
text: string;
|
|
3546
|
-
document?: {
|
|
3547
|
-
path: string;
|
|
3548
|
-
title: string;
|
|
3549
|
-
markdown: string;
|
|
3550
|
-
truncated?: boolean | undefined;
|
|
3551
|
-
plan?: boolean | undefined;
|
|
3552
|
-
} | undefined;
|
|
3553
|
-
kind: "plan";
|
|
3554
|
-
} | {
|
|
3555
|
-
requestId: string;
|
|
3556
|
-
questions: {
|
|
3557
|
-
question: string;
|
|
3558
|
-
header: string;
|
|
3559
|
-
multiSelect: boolean;
|
|
3560
|
-
options: {
|
|
3561
|
-
label: string;
|
|
3562
|
-
description: string;
|
|
3563
|
-
preview?: string | undefined;
|
|
3564
|
-
}[];
|
|
3565
|
-
}[];
|
|
3566
|
-
document?: {
|
|
3567
|
-
path: string;
|
|
3568
|
-
title: string;
|
|
3569
|
-
markdown: string;
|
|
3570
|
-
truncated?: boolean | undefined;
|
|
3571
|
-
plan?: boolean | undefined;
|
|
3572
|
-
} | undefined;
|
|
3573
|
-
kind: "question";
|
|
3574
3494
|
} | {
|
|
3575
3495
|
toolName: string;
|
|
3576
3496
|
title?: string | undefined;
|
|
@@ -3616,6 +3536,23 @@ export declare const runnerContract: {
|
|
|
3616
3536
|
requestId: string;
|
|
3617
3537
|
kind: "permission";
|
|
3618
3538
|
} | {
|
|
3539
|
+
outcome: "connected" | "unfinished";
|
|
3540
|
+
id?: string | undefined;
|
|
3541
|
+
kind: "capability_outcome";
|
|
3542
|
+
requestId: string;
|
|
3543
|
+
} | {
|
|
3544
|
+
outcome: "failed" | "paid";
|
|
3545
|
+
amountUsd: string;
|
|
3546
|
+
transaction?: string | undefined;
|
|
3547
|
+
network?: string | undefined;
|
|
3548
|
+
kind: "payment_receipt";
|
|
3549
|
+
requestId: string;
|
|
3550
|
+
} | {
|
|
3551
|
+
outcome: "refused" | "released";
|
|
3552
|
+
approvedBy?: string | undefined;
|
|
3553
|
+
kind: "credential_receipt";
|
|
3554
|
+
requestId: string;
|
|
3555
|
+
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
3619
3556
|
kind: "session";
|
|
3620
3557
|
sessionId: string;
|
|
3621
3558
|
account?: string | undefined;
|
|
@@ -3627,6 +3564,7 @@ export declare const runnerContract: {
|
|
|
3627
3564
|
sync?: {
|
|
3628
3565
|
commits: number;
|
|
3629
3566
|
blocked: string[];
|
|
3567
|
+
cause?: "answer" | "between-tools" | "turn-open" | undefined;
|
|
3630
3568
|
} | undefined;
|
|
3631
3569
|
remote?: string | undefined;
|
|
3632
3570
|
} | {
|
|
@@ -3850,6 +3788,37 @@ export declare const runnerContract: {
|
|
|
3850
3788
|
sent?: string | undefined;
|
|
3851
3789
|
kind: "agent_notice";
|
|
3852
3790
|
text: string;
|
|
3791
|
+
} | {
|
|
3792
|
+
requestId: string;
|
|
3793
|
+
text: string;
|
|
3794
|
+
document?: {
|
|
3795
|
+
path: string;
|
|
3796
|
+
title: string;
|
|
3797
|
+
markdown: string;
|
|
3798
|
+
truncated?: boolean | undefined;
|
|
3799
|
+
plan?: boolean | undefined;
|
|
3800
|
+
} | undefined;
|
|
3801
|
+
kind: "plan";
|
|
3802
|
+
} | {
|
|
3803
|
+
requestId: string;
|
|
3804
|
+
questions: {
|
|
3805
|
+
question: string;
|
|
3806
|
+
header: string;
|
|
3807
|
+
multiSelect: boolean;
|
|
3808
|
+
options: {
|
|
3809
|
+
label: string;
|
|
3810
|
+
description: string;
|
|
3811
|
+
preview?: string | undefined;
|
|
3812
|
+
}[];
|
|
3813
|
+
}[];
|
|
3814
|
+
document?: {
|
|
3815
|
+
path: string;
|
|
3816
|
+
title: string;
|
|
3817
|
+
markdown: string;
|
|
3818
|
+
truncated?: boolean | undefined;
|
|
3819
|
+
plan?: boolean | undefined;
|
|
3820
|
+
} | undefined;
|
|
3821
|
+
kind: "question";
|
|
3853
3822
|
} | {
|
|
3854
3823
|
requestId: string;
|
|
3855
3824
|
session: string;
|
|
@@ -4317,6 +4286,50 @@ export declare const runnerContract: {
|
|
|
4317
4286
|
cachedAt?: number | undefined;
|
|
4318
4287
|
cacheTtlMs?: number | undefined;
|
|
4319
4288
|
kind: "context_usage";
|
|
4289
|
+
} | {
|
|
4290
|
+
toolName: string;
|
|
4291
|
+
title?: string | undefined;
|
|
4292
|
+
displayName?: string | undefined;
|
|
4293
|
+
description?: string | undefined;
|
|
4294
|
+
reason?: string | undefined;
|
|
4295
|
+
path?: string | undefined;
|
|
4296
|
+
alwaysLabel?: string | undefined;
|
|
4297
|
+
alwaysAsks?: true | undefined;
|
|
4298
|
+
program?: {
|
|
4299
|
+
text: string;
|
|
4300
|
+
language: "bash" | "javascript";
|
|
4301
|
+
truncated: boolean;
|
|
4302
|
+
spans: {
|
|
4303
|
+
start: number;
|
|
4304
|
+
end: number;
|
|
4305
|
+
}[];
|
|
4306
|
+
} | undefined;
|
|
4307
|
+
child?: {
|
|
4308
|
+
provider: string;
|
|
4309
|
+
model: string;
|
|
4310
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
4311
|
+
account?: string | undefined;
|
|
4312
|
+
effort?: string | undefined;
|
|
4313
|
+
thinking?: boolean | undefined;
|
|
4314
|
+
fast?: boolean | undefined;
|
|
4315
|
+
move: "answer" | "send" | "spawn";
|
|
4316
|
+
child?: string | undefined;
|
|
4317
|
+
task?: string | undefined;
|
|
4318
|
+
message?: string | undefined;
|
|
4319
|
+
on?: string | undefined;
|
|
4320
|
+
proposed?: {
|
|
4321
|
+
provider: string;
|
|
4322
|
+
model: string;
|
|
4323
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
4324
|
+
account?: string | undefined;
|
|
4325
|
+
effort?: string | undefined;
|
|
4326
|
+
thinking?: boolean | undefined;
|
|
4327
|
+
fast?: boolean | undefined;
|
|
4328
|
+
} | undefined;
|
|
4329
|
+
} | undefined;
|
|
4330
|
+
explain?: string | undefined;
|
|
4331
|
+
requestId: string;
|
|
4332
|
+
kind: "permission";
|
|
4320
4333
|
} | {
|
|
4321
4334
|
outcome: "connected" | "unfinished";
|
|
4322
4335
|
id?: string | undefined;
|
|
@@ -4347,6 +4360,11 @@ export declare const runnerContract: {
|
|
|
4347
4360
|
sync: z.ZodOptional<z.ZodObject<{
|
|
4348
4361
|
commits: z.ZodNumber;
|
|
4349
4362
|
blocked: z.ZodArray<z.ZodString>;
|
|
4363
|
+
cause: z.ZodOptional<z.ZodEnum<{
|
|
4364
|
+
answer: "answer";
|
|
4365
|
+
"between-tools": "between-tools";
|
|
4366
|
+
"turn-open": "turn-open";
|
|
4367
|
+
}>>;
|
|
4350
4368
|
}, z.core.$strip>>;
|
|
4351
4369
|
remote: z.ZodOptional<z.ZodString>;
|
|
4352
4370
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -5560,6 +5578,8 @@ export declare const runnerContract: {
|
|
|
5560
5578
|
command: z.ZodString;
|
|
5561
5579
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5562
5580
|
exports: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5581
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5582
|
+
have: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5563
5583
|
label: z.ZodString;
|
|
5564
5584
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
5565
5585
|
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
@@ -5569,6 +5589,16 @@ export declare const runnerContract: {
|
|
|
5569
5589
|
kind: "output";
|
|
5570
5590
|
stream: "stderr" | "stdout";
|
|
5571
5591
|
text: string;
|
|
5592
|
+
} | {
|
|
5593
|
+
kind: "file";
|
|
5594
|
+
path: string;
|
|
5595
|
+
data?: string | undefined;
|
|
5596
|
+
end?: {
|
|
5597
|
+
size: number;
|
|
5598
|
+
mode: number;
|
|
5599
|
+
sha256: string;
|
|
5600
|
+
} | undefined;
|
|
5601
|
+
same?: boolean | undefined;
|
|
5572
5602
|
} | {
|
|
5573
5603
|
kind: "exit";
|
|
5574
5604
|
code: number;
|
|
@@ -5577,6 +5607,10 @@ export declare const runnerContract: {
|
|
|
5577
5607
|
ran?: boolean | undefined;
|
|
5578
5608
|
patchBase64?: string | undefined;
|
|
5579
5609
|
files?: Record<string, string> | undefined;
|
|
5610
|
+
peakMemoryMb?: number | undefined;
|
|
5611
|
+
durationMs?: number | undefined;
|
|
5612
|
+
missing?: string[] | undefined;
|
|
5613
|
+
tooBig?: string[] | undefined;
|
|
5580
5614
|
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
5581
5615
|
kind: "status";
|
|
5582
5616
|
text: string;
|
|
@@ -5584,6 +5618,16 @@ export declare const runnerContract: {
|
|
|
5584
5618
|
kind: "output";
|
|
5585
5619
|
stream: "stderr" | "stdout";
|
|
5586
5620
|
text: string;
|
|
5621
|
+
} | {
|
|
5622
|
+
kind: "file";
|
|
5623
|
+
path: string;
|
|
5624
|
+
data?: string | undefined;
|
|
5625
|
+
end?: {
|
|
5626
|
+
size: number;
|
|
5627
|
+
mode: number;
|
|
5628
|
+
sha256: string;
|
|
5629
|
+
} | undefined;
|
|
5630
|
+
same?: boolean | undefined;
|
|
5587
5631
|
} | {
|
|
5588
5632
|
kind: "exit";
|
|
5589
5633
|
code: number;
|
|
@@ -5592,6 +5636,10 @@ export declare const runnerContract: {
|
|
|
5592
5636
|
ran: boolean;
|
|
5593
5637
|
patchBase64?: string | undefined;
|
|
5594
5638
|
files: Record<string, string>;
|
|
5639
|
+
peakMemoryMb?: number | undefined;
|
|
5640
|
+
durationMs?: number | undefined;
|
|
5641
|
+
missing?: string[] | undefined;
|
|
5642
|
+
tooBig?: string[] | undefined;
|
|
5595
5643
|
}, unknown, void>> & {
|
|
5596
5644
|
[x: symbol]: z.ZodUnion<readonly [z.ZodObject<{
|
|
5597
5645
|
kind: z.ZodLiteral<"status">;
|
|
@@ -5603,6 +5651,16 @@ export declare const runnerContract: {
|
|
|
5603
5651
|
stdout: "stdout";
|
|
5604
5652
|
}>;
|
|
5605
5653
|
text: z.ZodString;
|
|
5654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5655
|
+
kind: z.ZodLiteral<"file">;
|
|
5656
|
+
path: z.ZodString;
|
|
5657
|
+
data: z.ZodOptional<z.ZodString>;
|
|
5658
|
+
end: z.ZodOptional<z.ZodObject<{
|
|
5659
|
+
size: z.ZodNumber;
|
|
5660
|
+
mode: z.ZodNumber;
|
|
5661
|
+
sha256: z.ZodString;
|
|
5662
|
+
}, z.core.$strip>>;
|
|
5663
|
+
same: z.ZodOptional<z.ZodBoolean>;
|
|
5606
5664
|
}, z.core.$strip>, z.ZodObject<{
|
|
5607
5665
|
kind: z.ZodLiteral<"exit">;
|
|
5608
5666
|
code: z.ZodNumber;
|
|
@@ -5611,6 +5669,10 @@ export declare const runnerContract: {
|
|
|
5611
5669
|
ran: z.ZodDefault<z.ZodBoolean>;
|
|
5612
5670
|
patchBase64: z.ZodOptional<z.ZodString>;
|
|
5613
5671
|
files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5672
|
+
peakMemoryMb: z.ZodOptional<z.ZodNumber>;
|
|
5673
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5674
|
+
missing: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5675
|
+
tooBig: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5614
5676
|
}, z.core.$strip>]>;
|
|
5615
5677
|
}, Record<never, never>, Record<never, never>>;
|
|
5616
5678
|
cancelCommand: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|