@intentic/sandbox-contract 1.374.0 → 1.375.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/accounts.contract.d.ts +16 -0
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts +8 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/panels.contract.d.ts +14 -0
- package/dist/contracts/panels.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +123 -123
- package/dist/contracts/sharing.contract.d.ts +58 -0
- package/dist/contracts/sharing.contract.d.ts.map +1 -0
- package/dist/contracts/sharing.contract.js +41 -0
- package/dist/contracts/sharing.contract.js.map +1 -0
- package/dist/index.d.ts +95 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +152 -2
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +6 -1
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +16 -0
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +4 -0
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +8 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +4 -0
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/links.d.ts +29 -2
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/links.js +28 -12
- package/dist/schemas/links.js.map +1 -1
- package/dist/schemas/panels.d.ts +36 -0
- package/dist/schemas/panels.d.ts.map +1 -1
- package/dist/schemas/panels.js +17 -2
- package/dist/schemas/panels.js.map +1 -1
- package/dist/schemas/providers/account-sharing.d.ts +275 -0
- package/dist/schemas/providers/account-sharing.d.ts.map +1 -0
- package/dist/schemas/providers/account-sharing.js +68 -0
- package/dist/schemas/providers/account-sharing.js.map +1 -0
- package/dist/schemas/providers/provider-oauth.d.ts +16 -0
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.js +4 -0
- package/dist/schemas/providers/provider-oauth.js.map +1 -1
- package/dist/state/definition.d.ts +8 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/contracts/sharing.contract.ts +54 -0
- package/src/index.ts +2 -0
- package/src/protocol/raw/raw-json-routes.ts +14 -1
- package/src/protocol/raw/raw-routes.ts +7 -0
- package/src/schemas/capabilities.ts +6 -0
- package/src/schemas/links.ts +39 -14
- package/src/schemas/panels.ts +31 -6
- package/src/schemas/providers/account-sharing.ts +123 -0
- package/src/schemas/providers/provider-oauth.ts +6 -0
|
@@ -84,6 +84,10 @@ export declare const accountsContract: {
|
|
|
84
84
|
model: import("zod").ZodString;
|
|
85
85
|
}, import("zod/v4/core").$strip>>;
|
|
86
86
|
}, import("zod/v4/core").$strip>>;
|
|
87
|
+
borrowedFrom: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
88
|
+
name: import("zod").ZodString;
|
|
89
|
+
sandboxId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
90
|
+
}, import("zod/v4/core").$strip>>;
|
|
87
91
|
}, import("zod/v4/core").$strip>>;
|
|
88
92
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
89
93
|
status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -138,6 +142,10 @@ export declare const accountsContract: {
|
|
|
138
142
|
model: import("zod").ZodString;
|
|
139
143
|
}, import("zod/v4/core").$strip>>;
|
|
140
144
|
}, import("zod/v4/core").$strip>>;
|
|
145
|
+
borrowedFrom: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
146
|
+
name: import("zod").ZodString;
|
|
147
|
+
sandboxId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
148
|
+
}, import("zod/v4/core").$strip>>;
|
|
141
149
|
}, import("zod/v4/core").$strip>>;
|
|
142
150
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
143
151
|
status: import("zod").ZodLiteral<"error">;
|
|
@@ -208,6 +216,10 @@ export declare const accountsContract: {
|
|
|
208
216
|
model: import("zod").ZodString;
|
|
209
217
|
}, import("zod/v4/core").$strip>>;
|
|
210
218
|
}, import("zod/v4/core").$strip>>;
|
|
219
|
+
borrowedFrom: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
220
|
+
name: import("zod").ZodString;
|
|
221
|
+
sandboxId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
222
|
+
}, import("zod/v4/core").$strip>>;
|
|
211
223
|
}, import("zod/v4/core").$strip>>;
|
|
212
224
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
213
225
|
rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -259,6 +271,10 @@ export declare const accountsContract: {
|
|
|
259
271
|
model: import("zod").ZodString;
|
|
260
272
|
}, import("zod/v4/core").$strip>>;
|
|
261
273
|
}, import("zod/v4/core").$strip>>;
|
|
274
|
+
borrowedFrom: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
275
|
+
name: import("zod").ZodString;
|
|
276
|
+
sandboxId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
277
|
+
}, import("zod/v4/core").$strip>>;
|
|
262
278
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
263
279
|
disconnect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
264
280
|
id: import("zod").ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/accounts.contract.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,gBAAgB;IACzB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUL,QAAQ
|
|
1
|
+
{"version":3,"file":"accounts.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/accounts.contract.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,gBAAgB;IACzB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUL,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUN,MAAM;;;;;;;;;;;;;;;;IAUN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASN,UAAU;;;;;;;;;;;;;;;;CASb,CAAC"}
|
|
@@ -423,6 +423,10 @@ export declare const capabilitiesContract: {
|
|
|
423
423
|
token: import("zod").ZodString;
|
|
424
424
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
425
425
|
sandboxId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
426
|
+
purpose: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
427
|
+
accounts: "accounts";
|
|
428
|
+
tasks: "tasks";
|
|
429
|
+
}>>;
|
|
426
430
|
}, import("zod/v4/core").$strip>;
|
|
427
431
|
}, import("zod/v4/core").$strip>], "kind">, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
428
432
|
[x: string]: unknown;
|
|
@@ -811,6 +815,10 @@ export declare const capabilitiesContract: {
|
|
|
811
815
|
token: import("zod").ZodString;
|
|
812
816
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
813
817
|
sandboxId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
818
|
+
purpose: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
819
|
+
accounts: "accounts";
|
|
820
|
+
tasks: "tasks";
|
|
821
|
+
}>>;
|
|
814
822
|
}, import("zod/v4/core").$strip>;
|
|
815
823
|
}, import("zod/v4/core").$strip>], "kind">, import("zod").ZodObject<{
|
|
816
824
|
checked: import("zod").ZodBoolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/capabilities.contract.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,oBAAoB;IAC7B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASJ,GAAG
|
|
1
|
+
{"version":3,"file":"capabilities.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/capabilities.contract.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,oBAAoB;IAC7B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaL,MAAM;;;;IAWN,MAAM;;;;;IAUN,MAAM;;;;;;IAWN,SAAS;;;;;;IAWT,UAAU;;;;;;;;;IAWV,MAAM;;;;;;;;;;;;;IAUN,UAAU;;;;;;;IAYV,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUX,IAAI;;;;;;;;;;;;;;;IAUJ,OAAO;;;;;IAWP,KAAK;;;;;IAWL,GAAG;;;;;;CAYN,CAAC"}
|
|
@@ -3,6 +3,16 @@ export declare const panelsContract: {
|
|
|
3
3
|
panels: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4
4
|
repo: import("zod").ZodString;
|
|
5
5
|
hasPanel: import("zod").ZodBoolean;
|
|
6
|
+
start: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
7
|
+
from: import("zod").ZodEnum<{
|
|
8
|
+
cargo: "cargo";
|
|
9
|
+
dev: "dev";
|
|
10
|
+
operator: "operator";
|
|
11
|
+
procfile: "procfile";
|
|
12
|
+
start: "start";
|
|
13
|
+
}>;
|
|
14
|
+
command: import("zod").ZodString;
|
|
15
|
+
}, import("zod/v4/core").$strip>>;
|
|
6
16
|
running: import("zod").ZodBoolean;
|
|
7
17
|
installed: import("zod").ZodBoolean;
|
|
8
18
|
launch: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -19,6 +29,10 @@ export declare const panelsContract: {
|
|
|
19
29
|
dir: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
30
|
session: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
31
|
}, import("zod/v4/core").$strip>>;
|
|
32
|
+
windows: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
33
|
+
id: import("zod").ZodString;
|
|
34
|
+
title: import("zod").ZodString;
|
|
35
|
+
}, import("zod/v4/core").$strip>>>;
|
|
22
36
|
previewUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
37
|
role: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
24
38
|
app: "app";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panels.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/panels.contract.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc;IACvB,IAAI
|
|
1
|
+
{"version":3,"file":"panels.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/panels.contract.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQJ,KAAK;;;;;IASL,IAAI;;;;;CASP,CAAC"}
|
|
@@ -63,6 +63,37 @@ export declare const runnerContract: {
|
|
|
63
63
|
bytesBase64: z.ZodString;
|
|
64
64
|
}, z.core.$strip>>>;
|
|
65
65
|
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
66
|
+
requestId: string;
|
|
67
|
+
text: string;
|
|
68
|
+
document?: {
|
|
69
|
+
path: string;
|
|
70
|
+
title: string;
|
|
71
|
+
markdown: string;
|
|
72
|
+
truncated?: boolean | undefined;
|
|
73
|
+
plan?: boolean | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
kind: "plan";
|
|
76
|
+
} | {
|
|
77
|
+
requestId: string;
|
|
78
|
+
questions: {
|
|
79
|
+
question: string;
|
|
80
|
+
header: string;
|
|
81
|
+
multiSelect: boolean;
|
|
82
|
+
options: {
|
|
83
|
+
label: string;
|
|
84
|
+
description: string;
|
|
85
|
+
preview?: string | undefined;
|
|
86
|
+
}[];
|
|
87
|
+
}[];
|
|
88
|
+
document?: {
|
|
89
|
+
path: string;
|
|
90
|
+
title: string;
|
|
91
|
+
markdown: string;
|
|
92
|
+
truncated?: boolean | undefined;
|
|
93
|
+
plan?: boolean | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
kind: "question";
|
|
96
|
+
} | {
|
|
66
97
|
kind: "session";
|
|
67
98
|
sessionId: string;
|
|
68
99
|
account?: string | undefined;
|
|
@@ -288,37 +319,6 @@ export declare const runnerContract: {
|
|
|
288
319
|
sent?: string | undefined;
|
|
289
320
|
kind: "agent_notice";
|
|
290
321
|
text: string;
|
|
291
|
-
} | {
|
|
292
|
-
requestId: string;
|
|
293
|
-
text: string;
|
|
294
|
-
document?: {
|
|
295
|
-
path: string;
|
|
296
|
-
title: string;
|
|
297
|
-
markdown: string;
|
|
298
|
-
truncated?: boolean | undefined;
|
|
299
|
-
plan?: boolean | undefined;
|
|
300
|
-
} | undefined;
|
|
301
|
-
kind: "plan";
|
|
302
|
-
} | {
|
|
303
|
-
requestId: string;
|
|
304
|
-
questions: {
|
|
305
|
-
question: string;
|
|
306
|
-
header: string;
|
|
307
|
-
multiSelect: boolean;
|
|
308
|
-
options: {
|
|
309
|
-
label: string;
|
|
310
|
-
description: string;
|
|
311
|
-
preview?: string | undefined;
|
|
312
|
-
}[];
|
|
313
|
-
}[];
|
|
314
|
-
document?: {
|
|
315
|
-
path: string;
|
|
316
|
-
title: string;
|
|
317
|
-
markdown: string;
|
|
318
|
-
truncated?: boolean | undefined;
|
|
319
|
-
plan?: boolean | undefined;
|
|
320
|
-
} | undefined;
|
|
321
|
-
kind: "question";
|
|
322
322
|
} | {
|
|
323
323
|
requestId: string;
|
|
324
324
|
session: string;
|
|
@@ -712,6 +712,50 @@ export declare const runnerContract: {
|
|
|
712
712
|
unattended?: boolean | undefined;
|
|
713
713
|
} | {
|
|
714
714
|
kind: "done";
|
|
715
|
+
} | {
|
|
716
|
+
toolName: string;
|
|
717
|
+
title?: string | undefined;
|
|
718
|
+
displayName?: string | undefined;
|
|
719
|
+
description?: string | undefined;
|
|
720
|
+
reason?: string | undefined;
|
|
721
|
+
path?: string | undefined;
|
|
722
|
+
alwaysLabel?: string | undefined;
|
|
723
|
+
alwaysAsks?: true | undefined;
|
|
724
|
+
program?: {
|
|
725
|
+
text: string;
|
|
726
|
+
language: "bash" | "javascript";
|
|
727
|
+
truncated: boolean;
|
|
728
|
+
spans: {
|
|
729
|
+
start: number;
|
|
730
|
+
end: number;
|
|
731
|
+
}[];
|
|
732
|
+
} | undefined;
|
|
733
|
+
child?: {
|
|
734
|
+
provider: string;
|
|
735
|
+
model: string;
|
|
736
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
737
|
+
account?: string | undefined;
|
|
738
|
+
effort?: string | undefined;
|
|
739
|
+
thinking?: boolean | undefined;
|
|
740
|
+
fast?: boolean | undefined;
|
|
741
|
+
move: "answer" | "send" | "spawn";
|
|
742
|
+
child?: string | undefined;
|
|
743
|
+
task?: string | undefined;
|
|
744
|
+
message?: string | undefined;
|
|
745
|
+
on?: string | undefined;
|
|
746
|
+
proposed?: {
|
|
747
|
+
provider: string;
|
|
748
|
+
model: string;
|
|
749
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
750
|
+
account?: string | undefined;
|
|
751
|
+
effort?: string | undefined;
|
|
752
|
+
thinking?: boolean | undefined;
|
|
753
|
+
fast?: boolean | undefined;
|
|
754
|
+
} | undefined;
|
|
755
|
+
} | undefined;
|
|
756
|
+
explain?: string | undefined;
|
|
757
|
+
requestId: string;
|
|
758
|
+
kind: "permission";
|
|
715
759
|
} | {
|
|
716
760
|
window: number;
|
|
717
761
|
omitted: string[];
|
|
@@ -760,6 +804,54 @@ export declare const runnerContract: {
|
|
|
760
804
|
cachedAt?: number | undefined;
|
|
761
805
|
cacheTtlMs?: number | undefined;
|
|
762
806
|
kind: "context_usage";
|
|
807
|
+
} | {
|
|
808
|
+
outcome: "connected" | "unfinished";
|
|
809
|
+
id?: string | undefined;
|
|
810
|
+
kind: "capability_outcome";
|
|
811
|
+
requestId: string;
|
|
812
|
+
} | {
|
|
813
|
+
outcome: "failed" | "paid";
|
|
814
|
+
amountUsd: string;
|
|
815
|
+
transaction?: string | undefined;
|
|
816
|
+
network?: string | undefined;
|
|
817
|
+
kind: "payment_receipt";
|
|
818
|
+
requestId: string;
|
|
819
|
+
} | {
|
|
820
|
+
outcome: "refused" | "released";
|
|
821
|
+
approvedBy?: string | undefined;
|
|
822
|
+
kind: "credential_receipt";
|
|
823
|
+
requestId: string;
|
|
824
|
+
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
825
|
+
requestId: string;
|
|
826
|
+
text: string;
|
|
827
|
+
document?: {
|
|
828
|
+
path: string;
|
|
829
|
+
title: string;
|
|
830
|
+
markdown: string;
|
|
831
|
+
truncated?: boolean | undefined;
|
|
832
|
+
plan?: boolean | undefined;
|
|
833
|
+
} | undefined;
|
|
834
|
+
kind: "plan";
|
|
835
|
+
} | {
|
|
836
|
+
requestId: string;
|
|
837
|
+
questions: {
|
|
838
|
+
question: string;
|
|
839
|
+
header: string;
|
|
840
|
+
multiSelect: boolean;
|
|
841
|
+
options: {
|
|
842
|
+
label: string;
|
|
843
|
+
description: string;
|
|
844
|
+
preview?: string | undefined;
|
|
845
|
+
}[];
|
|
846
|
+
}[];
|
|
847
|
+
document?: {
|
|
848
|
+
path: string;
|
|
849
|
+
title: string;
|
|
850
|
+
markdown: string;
|
|
851
|
+
truncated?: boolean | undefined;
|
|
852
|
+
plan?: boolean | undefined;
|
|
853
|
+
} | undefined;
|
|
854
|
+
kind: "question";
|
|
763
855
|
} | {
|
|
764
856
|
toolName: string;
|
|
765
857
|
title?: string | undefined;
|
|
@@ -805,23 +897,6 @@ export declare const runnerContract: {
|
|
|
805
897
|
requestId: string;
|
|
806
898
|
kind: "permission";
|
|
807
899
|
} | {
|
|
808
|
-
outcome: "connected" | "unfinished";
|
|
809
|
-
id?: string | undefined;
|
|
810
|
-
kind: "capability_outcome";
|
|
811
|
-
requestId: string;
|
|
812
|
-
} | {
|
|
813
|
-
outcome: "failed" | "paid";
|
|
814
|
-
amountUsd: string;
|
|
815
|
-
transaction?: string | undefined;
|
|
816
|
-
network?: string | undefined;
|
|
817
|
-
kind: "payment_receipt";
|
|
818
|
-
requestId: string;
|
|
819
|
-
} | {
|
|
820
|
-
outcome: "refused" | "released";
|
|
821
|
-
approvedBy?: string | undefined;
|
|
822
|
-
kind: "credential_receipt";
|
|
823
|
-
requestId: string;
|
|
824
|
-
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
825
900
|
kind: "session";
|
|
826
901
|
sessionId: string;
|
|
827
902
|
account?: string | undefined;
|
|
@@ -1047,37 +1122,6 @@ export declare const runnerContract: {
|
|
|
1047
1122
|
sent?: string | undefined;
|
|
1048
1123
|
kind: "agent_notice";
|
|
1049
1124
|
text: string;
|
|
1050
|
-
} | {
|
|
1051
|
-
requestId: string;
|
|
1052
|
-
text: string;
|
|
1053
|
-
document?: {
|
|
1054
|
-
path: string;
|
|
1055
|
-
title: string;
|
|
1056
|
-
markdown: string;
|
|
1057
|
-
truncated?: boolean | undefined;
|
|
1058
|
-
plan?: boolean | undefined;
|
|
1059
|
-
} | undefined;
|
|
1060
|
-
kind: "plan";
|
|
1061
|
-
} | {
|
|
1062
|
-
requestId: string;
|
|
1063
|
-
questions: {
|
|
1064
|
-
question: string;
|
|
1065
|
-
header: string;
|
|
1066
|
-
multiSelect: boolean;
|
|
1067
|
-
options: {
|
|
1068
|
-
label: string;
|
|
1069
|
-
description: string;
|
|
1070
|
-
preview?: string | undefined;
|
|
1071
|
-
}[];
|
|
1072
|
-
}[];
|
|
1073
|
-
document?: {
|
|
1074
|
-
path: string;
|
|
1075
|
-
title: string;
|
|
1076
|
-
markdown: string;
|
|
1077
|
-
truncated?: boolean | undefined;
|
|
1078
|
-
plan?: boolean | undefined;
|
|
1079
|
-
} | undefined;
|
|
1080
|
-
kind: "question";
|
|
1081
1125
|
} | {
|
|
1082
1126
|
requestId: string;
|
|
1083
1127
|
session: string;
|
|
@@ -1521,50 +1565,6 @@ export declare const runnerContract: {
|
|
|
1521
1565
|
cachedAt?: number | undefined;
|
|
1522
1566
|
cacheTtlMs?: number | undefined;
|
|
1523
1567
|
kind: "context_usage";
|
|
1524
|
-
} | {
|
|
1525
|
-
toolName: string;
|
|
1526
|
-
title?: string | undefined;
|
|
1527
|
-
displayName?: string | undefined;
|
|
1528
|
-
description?: string | undefined;
|
|
1529
|
-
reason?: string | undefined;
|
|
1530
|
-
path?: string | undefined;
|
|
1531
|
-
alwaysLabel?: string | undefined;
|
|
1532
|
-
alwaysAsks?: true | undefined;
|
|
1533
|
-
program?: {
|
|
1534
|
-
text: string;
|
|
1535
|
-
language: "bash" | "javascript";
|
|
1536
|
-
truncated: boolean;
|
|
1537
|
-
spans: {
|
|
1538
|
-
start: number;
|
|
1539
|
-
end: number;
|
|
1540
|
-
}[];
|
|
1541
|
-
} | undefined;
|
|
1542
|
-
child?: {
|
|
1543
|
-
provider: string;
|
|
1544
|
-
model: string;
|
|
1545
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
1546
|
-
account?: string | undefined;
|
|
1547
|
-
effort?: string | undefined;
|
|
1548
|
-
thinking?: boolean | undefined;
|
|
1549
|
-
fast?: boolean | undefined;
|
|
1550
|
-
move: "answer" | "send" | "spawn";
|
|
1551
|
-
child?: string | undefined;
|
|
1552
|
-
task?: string | undefined;
|
|
1553
|
-
message?: string | undefined;
|
|
1554
|
-
on?: string | undefined;
|
|
1555
|
-
proposed?: {
|
|
1556
|
-
provider: string;
|
|
1557
|
-
model: string;
|
|
1558
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
1559
|
-
account?: string | undefined;
|
|
1560
|
-
effort?: string | undefined;
|
|
1561
|
-
thinking?: boolean | undefined;
|
|
1562
|
-
fast?: boolean | undefined;
|
|
1563
|
-
} | undefined;
|
|
1564
|
-
} | undefined;
|
|
1565
|
-
explain?: string | undefined;
|
|
1566
|
-
requestId: string;
|
|
1567
|
-
kind: "permission";
|
|
1568
1568
|
} | {
|
|
1569
1569
|
outcome: "connected" | "unfinished";
|
|
1570
1570
|
id?: string | undefined;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const sharingContract: {
|
|
2
|
+
shareable: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
+
sandbox: import("zod").ZodString;
|
|
4
|
+
accounts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
5
|
+
provider: import("zod").ZodString;
|
|
6
|
+
account: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
label: import("zod").ZodString;
|
|
8
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9
|
+
mode: import("zod").ZodEnum<{
|
|
10
|
+
copy: "copy";
|
|
11
|
+
lend: "lend";
|
|
12
|
+
no: "no";
|
|
13
|
+
}>;
|
|
14
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
}, import("zod/v4/core").$strip>>;
|
|
16
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
17
|
+
borrow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
18
|
+
card: import("zod").ZodString;
|
|
19
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
20
|
+
provider: import("zod").ZodString;
|
|
21
|
+
account: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
+
}, import("zod/v4/core").$strip>>;
|
|
23
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
24
|
+
results: import("zod").ZodArray<import("zod").ZodObject<{
|
|
25
|
+
provider: import("zod").ZodString;
|
|
26
|
+
account: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
+
outcome: import("zod").ZodEnum<{
|
|
28
|
+
borrowed: "borrowed";
|
|
29
|
+
copied: "copied";
|
|
30
|
+
failed: "failed";
|
|
31
|
+
}>;
|
|
32
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
}, import("zod/v4/core").$strip>>;
|
|
35
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
36
|
+
borrowed: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
37
|
+
accounts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
38
|
+
id: import("zod").ZodString;
|
|
39
|
+
card: import("zod").ZodString;
|
|
40
|
+
provider: import("zod").ZodString;
|
|
41
|
+
remote: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
+
label: import("zod").ZodString;
|
|
43
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
organization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
from: import("zod").ZodObject<{
|
|
46
|
+
name: import("zod").ZodString;
|
|
47
|
+
sandboxId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
+
}, import("zod/v4/core").$strip>;
|
|
49
|
+
borrowedAt: import("zod").ZodNumber;
|
|
50
|
+
}, import("zod/v4/core").$strip>>;
|
|
51
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
52
|
+
stop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
53
|
+
id: import("zod").ZodString;
|
|
54
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
55
|
+
ok: import("zod").ZodLiteral<true>;
|
|
56
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=sharing.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharing.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/sharing.contract.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;IACxB,SAAS;;;;;;;;;;;;;;;IAST,MAAM;;;;;;;;;;;;;;;;;;;IAUN,QAAQ;;;;;;;;;;;;;;;;IAQR,IAAI;;;;;CAUP,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
+
import { AccountsBorrowedSchema, AccountsBorrowSchema, BorrowedAccountIdSchema, BorrowedAccountsSchema, ShareableAccountsSchema, } from "../schemas/providers/account-sharing.js";
|
|
3
|
+
import { OkSchema } from "../schemas/shared.js";
|
|
4
|
+
const sharingRoute = procedure.meta({ floor: "maintainer", control: "never", panel: false });
|
|
5
|
+
export const sharingContract = {
|
|
6
|
+
shareable: sharingRoute
|
|
7
|
+
.route({
|
|
8
|
+
method: "GET",
|
|
9
|
+
path: "/sharing/accounts",
|
|
10
|
+
summary: "What this sandbox can share with another of yours",
|
|
11
|
+
description: "Every model account held here and how it would reach another of the owner's sandboxes: copied (a key that does not rotate), lent turn by turn (a sign-in whose renewal must stay here), or not at all, with why. No credential is in the answer.",
|
|
12
|
+
})
|
|
13
|
+
.output(ShareableAccountsSchema),
|
|
14
|
+
borrow: sharingRoute
|
|
15
|
+
.route({
|
|
16
|
+
method: "POST",
|
|
17
|
+
path: "/sharing/borrow",
|
|
18
|
+
summary: "Bring accounts in from another of your sandboxes",
|
|
19
|
+
description: "Over the accounts link saved as `card`, copies each named static key into this sandbox's own stores and files each lent sign-in as borrowed. Each account answers on its own, so one that fails leaves the others in.",
|
|
20
|
+
})
|
|
21
|
+
.input(AccountsBorrowSchema)
|
|
22
|
+
.output(AccountsBorrowedSchema),
|
|
23
|
+
borrowed: sharingRoute
|
|
24
|
+
.route({
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: "/sharing/borrowed",
|
|
27
|
+
summary: "Accounts this sandbox borrows",
|
|
28
|
+
description: "Each account another of the owner's sandboxes lends here, and which link it is borrowed through. No credential is in the answer.",
|
|
29
|
+
})
|
|
30
|
+
.output(BorrowedAccountsSchema),
|
|
31
|
+
stop: sharingRoute
|
|
32
|
+
.route({
|
|
33
|
+
method: "POST",
|
|
34
|
+
path: "/sharing/borrowed/stop",
|
|
35
|
+
summary: "Stop borrowing an account",
|
|
36
|
+
description: "Forgets one borrowed account here: no turn asks the source for it again. The source's own link is changed separately, by the owner's editor or on the source.",
|
|
37
|
+
})
|
|
38
|
+
.input(BorrowedAccountIdSchema)
|
|
39
|
+
.output(OkSchema),
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=sharing.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharing.contract.js","sourceRoot":"","sources":["../../src/contracts/sharing.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EACH,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,GAC1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAKhD,MAAM,YAAY,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;AAE7F,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,SAAS,EAAE,YAAY;SAClB,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,mDAAmD;QAC5D,WAAW,EACP,kPAAkP;KACzP,CAAC;SACD,MAAM,CAAC,uBAAuB,CAAC;IACpC,MAAM,EAAE,YAAY;SACf,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,kDAAkD;QAC3D,WAAW,EACP,uNAAuN;KAC9N,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,sBAAsB,CAAC;IACnC,QAAQ,EAAE,YAAY;SACjB,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,+BAA+B;QACxC,WAAW,EAAE,kIAAkI;KAClJ,CAAC;SACD,MAAM,CAAC,sBAAsB,CAAC;IACnC,IAAI,EAAE,YAAY;SACb,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,2BAA2B;QACpC,WAAW,EACP,+JAA+J;KACtK,CAAC;SACD,KAAK,CAAC,uBAAuB,CAAC;SAC9B,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|