@tangle-network/sandbox 0.16.0 → 0.17.2-develop.20260803000136.6dc5f0b
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/README.md +9 -1
- package/dist/agent/index.d.ts +3 -3
- package/dist/{client-BIr5NPKo.d.ts → client-DHwvqxth.d.ts} +2 -2
- package/dist/{client-DS6fz6PF.js → client-jlWtzNDF.js} +2 -2
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-C89k_hW1.d.ts → index-DXwZxrlU.d.ts} +2 -2
- package/dist/index.d.ts +45 -25
- package/dist/index.js +4 -4
- package/dist/{runtime-api-Bd9NAChb.js → runtime-api-BRQkJnW4.js} +3 -10
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-CiVbnsQp.d.ts → sandbox-BrcMNTFB.d.ts} +21 -19
- package/dist/{sandbox-CkaqBz54.js → sandbox-DQ1yf_nX.js} +113 -53
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Cxe2HYQb.js → tangle-Bbf2QqDC.js} +1 -1
- package/dist/{types-DTHan0Lc.d.ts → types-B9NCgBp-.d.ts} +91 -65
- package/package.json +4 -4
|
@@ -10,16 +10,9 @@ import { z } from "zod";
|
|
|
10
10
|
* backend must keep failing closed rather than dispatching to a runner that cannot start.
|
|
11
11
|
*/
|
|
12
12
|
declare const NON_BACKEND_HARNESSES: readonly ["gemini"];
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
|
|
16
|
-
* turns their adoption upstream into a compile error so this list is emptied rather than
|
|
17
|
-
* silently duplicating a canonical id.
|
|
18
|
-
*/
|
|
19
|
-
declare const EXTRA_BACKEND_TYPES: readonly ["forge", "cursor"];
|
|
20
|
-
/** The runners this repo can actually dispatch: the canonical harness set, minus what has no
|
|
21
|
-
* adapter here, plus adapters the canonical set has yet to adopt. */
|
|
22
|
-
type BackendType = Exclude<HarnessType, (typeof NON_BACKEND_HARNESSES)[number]> | (typeof EXTRA_BACKEND_TYPES)[number];
|
|
13
|
+
/** The runners this repo can actually dispatch: the canonical harness set minus what has no
|
|
14
|
+
* adapter here. */
|
|
15
|
+
type BackendType = Exclude<HarnessType, (typeof NON_BACKEND_HARNESSES)[number]>;
|
|
23
16
|
declare function parseBackendType(value: string): BackendType;
|
|
24
17
|
//#endregion
|
|
25
18
|
//#region ../../../packages/runtime-contracts/dist/batch-request.d.ts
|
|
@@ -42,10 +35,10 @@ declare const batchBackendSchema: z.ZodObject<{
|
|
|
42
35
|
openclaw: "openclaw";
|
|
43
36
|
amp: "amp";
|
|
44
37
|
"factory-droids": "factory-droids";
|
|
45
|
-
acp: "acp";
|
|
46
|
-
"cli-base": "cli-base";
|
|
47
38
|
forge: "forge";
|
|
48
39
|
cursor: "cursor";
|
|
40
|
+
acp: "acp";
|
|
41
|
+
"cli-base": "cli-base";
|
|
49
42
|
}>;
|
|
50
43
|
model: z.ZodOptional<z.ZodObject<{
|
|
51
44
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -87,10 +80,10 @@ declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
87
80
|
openclaw: "openclaw";
|
|
88
81
|
amp: "amp";
|
|
89
82
|
"factory-droids": "factory-droids";
|
|
90
|
-
acp: "acp";
|
|
91
|
-
"cli-base": "cli-base";
|
|
92
83
|
forge: "forge";
|
|
93
84
|
cursor: "cursor";
|
|
85
|
+
acp: "acp";
|
|
86
|
+
"cli-base": "cli-base";
|
|
94
87
|
}>;
|
|
95
88
|
model: z.ZodOptional<z.ZodObject<{
|
|
96
89
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -150,10 +143,10 @@ declare const publicBatchRunRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
150
143
|
openclaw: "openclaw";
|
|
151
144
|
amp: "amp";
|
|
152
145
|
"factory-droids": "factory-droids";
|
|
153
|
-
acp: "acp";
|
|
154
|
-
"cli-base": "cli-base";
|
|
155
146
|
forge: "forge";
|
|
156
147
|
cursor: "cursor";
|
|
148
|
+
acp: "acp";
|
|
149
|
+
"cli-base": "cli-base";
|
|
157
150
|
}>;
|
|
158
151
|
model: z.ZodOptional<z.ZodObject<{
|
|
159
152
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -214,10 +207,10 @@ declare const batchBackendStatsSchema: z.ZodObject<{
|
|
|
214
207
|
openclaw: "openclaw";
|
|
215
208
|
amp: "amp";
|
|
216
209
|
"factory-droids": "factory-droids";
|
|
217
|
-
acp: "acp";
|
|
218
|
-
"cli-base": "cli-base";
|
|
219
210
|
forge: "forge";
|
|
220
211
|
cursor: "cursor";
|
|
212
|
+
acp: "acp";
|
|
213
|
+
"cli-base": "cli-base";
|
|
221
214
|
}>;
|
|
222
215
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
223
216
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -236,10 +229,10 @@ declare const batchSidecarGroupSchema: z.ZodObject<{
|
|
|
236
229
|
openclaw: "openclaw";
|
|
237
230
|
amp: "amp";
|
|
238
231
|
"factory-droids": "factory-droids";
|
|
239
|
-
acp: "acp";
|
|
240
|
-
"cli-base": "cli-base";
|
|
241
232
|
forge: "forge";
|
|
242
233
|
cursor: "cursor";
|
|
234
|
+
acp: "acp";
|
|
235
|
+
"cli-base": "cli-base";
|
|
243
236
|
}>;
|
|
244
237
|
backendIds: z.ZodArray<z.ZodString>;
|
|
245
238
|
sidecarId: z.ZodString;
|
|
@@ -271,10 +264,10 @@ declare const batchEventDataSchemas: {
|
|
|
271
264
|
openclaw: "openclaw";
|
|
272
265
|
amp: "amp";
|
|
273
266
|
"factory-droids": "factory-droids";
|
|
274
|
-
acp: "acp";
|
|
275
|
-
"cli-base": "cli-base";
|
|
276
267
|
forge: "forge";
|
|
277
268
|
cursor: "cursor";
|
|
269
|
+
acp: "acp";
|
|
270
|
+
"cli-base": "cli-base";
|
|
278
271
|
}>>;
|
|
279
272
|
backendGroups: z.ZodNumber;
|
|
280
273
|
executionClass: z.ZodEnum<{
|
|
@@ -301,10 +294,10 @@ declare const batchEventDataSchemas: {
|
|
|
301
294
|
openclaw: "openclaw";
|
|
302
295
|
amp: "amp";
|
|
303
296
|
"factory-droids": "factory-droids";
|
|
304
|
-
acp: "acp";
|
|
305
|
-
"cli-base": "cli-base";
|
|
306
297
|
forge: "forge";
|
|
307
298
|
cursor: "cursor";
|
|
299
|
+
acp: "acp";
|
|
300
|
+
"cli-base": "cli-base";
|
|
308
301
|
}>;
|
|
309
302
|
backendIds: z.ZodArray<z.ZodString>;
|
|
310
303
|
sidecarId: z.ZodString;
|
|
@@ -345,10 +338,10 @@ declare const batchEventDataSchemas: {
|
|
|
345
338
|
openclaw: "openclaw";
|
|
346
339
|
amp: "amp";
|
|
347
340
|
"factory-droids": "factory-droids";
|
|
348
|
-
acp: "acp";
|
|
349
|
-
"cli-base": "cli-base";
|
|
350
341
|
forge: "forge";
|
|
351
342
|
cursor: "cursor";
|
|
343
|
+
acp: "acp";
|
|
344
|
+
"cli-base": "cli-base";
|
|
352
345
|
}>;
|
|
353
346
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
354
347
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -387,10 +380,10 @@ declare const batchEventDataSchemas: {
|
|
|
387
380
|
openclaw: "openclaw";
|
|
388
381
|
amp: "amp";
|
|
389
382
|
"factory-droids": "factory-droids";
|
|
390
|
-
acp: "acp";
|
|
391
|
-
"cli-base": "cli-base";
|
|
392
383
|
forge: "forge";
|
|
393
384
|
cursor: "cursor";
|
|
385
|
+
acp: "acp";
|
|
386
|
+
"cli-base": "cli-base";
|
|
394
387
|
}>;
|
|
395
388
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
396
389
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -417,10 +410,10 @@ declare const batchEventDataSchemas: {
|
|
|
417
410
|
openclaw: "openclaw";
|
|
418
411
|
amp: "amp";
|
|
419
412
|
"factory-droids": "factory-droids";
|
|
420
|
-
acp: "acp";
|
|
421
|
-
"cli-base": "cli-base";
|
|
422
413
|
forge: "forge";
|
|
423
414
|
cursor: "cursor";
|
|
415
|
+
acp: "acp";
|
|
416
|
+
"cli-base": "cli-base";
|
|
424
417
|
}>;
|
|
425
418
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
426
419
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -447,10 +440,10 @@ declare const batchEventDataSchemas: {
|
|
|
447
440
|
openclaw: "openclaw";
|
|
448
441
|
amp: "amp";
|
|
449
442
|
"factory-droids": "factory-droids";
|
|
450
|
-
acp: "acp";
|
|
451
|
-
"cli-base": "cli-base";
|
|
452
443
|
forge: "forge";
|
|
453
444
|
cursor: "cursor";
|
|
445
|
+
acp: "acp";
|
|
446
|
+
"cli-base": "cli-base";
|
|
454
447
|
}>;
|
|
455
448
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
456
449
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -472,10 +465,10 @@ declare const batchEventDataSchemas: {
|
|
|
472
465
|
openclaw: "openclaw";
|
|
473
466
|
amp: "amp";
|
|
474
467
|
"factory-droids": "factory-droids";
|
|
475
|
-
acp: "acp";
|
|
476
|
-
"cli-base": "cli-base";
|
|
477
468
|
forge: "forge";
|
|
478
469
|
cursor: "cursor";
|
|
470
|
+
acp: "acp";
|
|
471
|
+
"cli-base": "cli-base";
|
|
479
472
|
}>;
|
|
480
473
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
481
474
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -510,10 +503,10 @@ declare const batchEventDataSchemas: {
|
|
|
510
503
|
openclaw: "openclaw";
|
|
511
504
|
amp: "amp";
|
|
512
505
|
"factory-droids": "factory-droids";
|
|
513
|
-
acp: "acp";
|
|
514
|
-
"cli-base": "cli-base";
|
|
515
506
|
forge: "forge";
|
|
516
507
|
cursor: "cursor";
|
|
508
|
+
acp: "acp";
|
|
509
|
+
"cli-base": "cli-base";
|
|
517
510
|
}>;
|
|
518
511
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
519
512
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -547,10 +540,10 @@ declare const batchEventDataSchemas: {
|
|
|
547
540
|
openclaw: "openclaw";
|
|
548
541
|
amp: "amp";
|
|
549
542
|
"factory-droids": "factory-droids";
|
|
550
|
-
acp: "acp";
|
|
551
|
-
"cli-base": "cli-base";
|
|
552
543
|
forge: "forge";
|
|
553
544
|
cursor: "cursor";
|
|
545
|
+
acp: "acp";
|
|
546
|
+
"cli-base": "cli-base";
|
|
554
547
|
}>;
|
|
555
548
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
556
549
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -580,10 +573,10 @@ declare const batchEventDataSchemas: {
|
|
|
580
573
|
openclaw: "openclaw";
|
|
581
574
|
amp: "amp";
|
|
582
575
|
"factory-droids": "factory-droids";
|
|
583
|
-
acp: "acp";
|
|
584
|
-
"cli-base": "cli-base";
|
|
585
576
|
forge: "forge";
|
|
586
577
|
cursor: "cursor";
|
|
578
|
+
acp: "acp";
|
|
579
|
+
"cli-base": "cli-base";
|
|
587
580
|
}>;
|
|
588
581
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
589
582
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -607,10 +600,10 @@ declare const batchEventDataSchemas: {
|
|
|
607
600
|
openclaw: "openclaw";
|
|
608
601
|
amp: "amp";
|
|
609
602
|
"factory-droids": "factory-droids";
|
|
610
|
-
acp: "acp";
|
|
611
|
-
"cli-base": "cli-base";
|
|
612
603
|
forge: "forge";
|
|
613
604
|
cursor: "cursor";
|
|
605
|
+
acp: "acp";
|
|
606
|
+
"cli-base": "cli-base";
|
|
614
607
|
}>;
|
|
615
608
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
616
609
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -662,10 +655,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
662
655
|
openclaw: "openclaw";
|
|
663
656
|
amp: "amp";
|
|
664
657
|
"factory-droids": "factory-droids";
|
|
665
|
-
acp: "acp";
|
|
666
|
-
"cli-base": "cli-base";
|
|
667
658
|
forge: "forge";
|
|
668
659
|
cursor: "cursor";
|
|
660
|
+
acp: "acp";
|
|
661
|
+
"cli-base": "cli-base";
|
|
669
662
|
}>>;
|
|
670
663
|
backendGroups: z.ZodNumber;
|
|
671
664
|
executionClass: z.ZodEnum<{
|
|
@@ -695,10 +688,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
695
688
|
openclaw: "openclaw";
|
|
696
689
|
amp: "amp";
|
|
697
690
|
"factory-droids": "factory-droids";
|
|
698
|
-
acp: "acp";
|
|
699
|
-
"cli-base": "cli-base";
|
|
700
691
|
forge: "forge";
|
|
701
692
|
cursor: "cursor";
|
|
693
|
+
acp: "acp";
|
|
694
|
+
"cli-base": "cli-base";
|
|
702
695
|
}>;
|
|
703
696
|
backendIds: z.ZodArray<z.ZodString>;
|
|
704
697
|
sidecarId: z.ZodString;
|
|
@@ -742,10 +735,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
742
735
|
openclaw: "openclaw";
|
|
743
736
|
amp: "amp";
|
|
744
737
|
"factory-droids": "factory-droids";
|
|
745
|
-
acp: "acp";
|
|
746
|
-
"cli-base": "cli-base";
|
|
747
738
|
forge: "forge";
|
|
748
739
|
cursor: "cursor";
|
|
740
|
+
acp: "acp";
|
|
741
|
+
"cli-base": "cli-base";
|
|
749
742
|
}>;
|
|
750
743
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
751
744
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -796,10 +789,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
796
789
|
openclaw: "openclaw";
|
|
797
790
|
amp: "amp";
|
|
798
791
|
"factory-droids": "factory-droids";
|
|
799
|
-
acp: "acp";
|
|
800
|
-
"cli-base": "cli-base";
|
|
801
792
|
forge: "forge";
|
|
802
793
|
cursor: "cursor";
|
|
794
|
+
acp: "acp";
|
|
795
|
+
"cli-base": "cli-base";
|
|
803
796
|
}>;
|
|
804
797
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
805
798
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -829,10 +822,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
829
822
|
openclaw: "openclaw";
|
|
830
823
|
amp: "amp";
|
|
831
824
|
"factory-droids": "factory-droids";
|
|
832
|
-
acp: "acp";
|
|
833
|
-
"cli-base": "cli-base";
|
|
834
825
|
forge: "forge";
|
|
835
826
|
cursor: "cursor";
|
|
827
|
+
acp: "acp";
|
|
828
|
+
"cli-base": "cli-base";
|
|
836
829
|
}>;
|
|
837
830
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
838
831
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -862,10 +855,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
862
855
|
openclaw: "openclaw";
|
|
863
856
|
amp: "amp";
|
|
864
857
|
"factory-droids": "factory-droids";
|
|
865
|
-
acp: "acp";
|
|
866
|
-
"cli-base": "cli-base";
|
|
867
858
|
forge: "forge";
|
|
868
859
|
cursor: "cursor";
|
|
860
|
+
acp: "acp";
|
|
861
|
+
"cli-base": "cli-base";
|
|
869
862
|
}>;
|
|
870
863
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
871
864
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -890,10 +883,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
890
883
|
openclaw: "openclaw";
|
|
891
884
|
amp: "amp";
|
|
892
885
|
"factory-droids": "factory-droids";
|
|
893
|
-
acp: "acp";
|
|
894
|
-
"cli-base": "cli-base";
|
|
895
886
|
forge: "forge";
|
|
896
887
|
cursor: "cursor";
|
|
888
|
+
acp: "acp";
|
|
889
|
+
"cli-base": "cli-base";
|
|
897
890
|
}>;
|
|
898
891
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
899
892
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -931,10 +924,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
931
924
|
openclaw: "openclaw";
|
|
932
925
|
amp: "amp";
|
|
933
926
|
"factory-droids": "factory-droids";
|
|
934
|
-
acp: "acp";
|
|
935
|
-
"cli-base": "cli-base";
|
|
936
927
|
forge: "forge";
|
|
937
928
|
cursor: "cursor";
|
|
929
|
+
acp: "acp";
|
|
930
|
+
"cli-base": "cli-base";
|
|
938
931
|
}>;
|
|
939
932
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
940
933
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -971,10 +964,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
971
964
|
openclaw: "openclaw";
|
|
972
965
|
amp: "amp";
|
|
973
966
|
"factory-droids": "factory-droids";
|
|
974
|
-
acp: "acp";
|
|
975
|
-
"cli-base": "cli-base";
|
|
976
967
|
forge: "forge";
|
|
977
968
|
cursor: "cursor";
|
|
969
|
+
acp: "acp";
|
|
970
|
+
"cli-base": "cli-base";
|
|
978
971
|
}>;
|
|
979
972
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
980
973
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -1007,10 +1000,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1007
1000
|
openclaw: "openclaw";
|
|
1008
1001
|
amp: "amp";
|
|
1009
1002
|
"factory-droids": "factory-droids";
|
|
1010
|
-
acp: "acp";
|
|
1011
|
-
"cli-base": "cli-base";
|
|
1012
1003
|
forge: "forge";
|
|
1013
1004
|
cursor: "cursor";
|
|
1005
|
+
acp: "acp";
|
|
1006
|
+
"cli-base": "cli-base";
|
|
1014
1007
|
}>;
|
|
1015
1008
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
1016
1009
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -1037,10 +1030,10 @@ declare const batchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1037
1030
|
openclaw: "openclaw";
|
|
1038
1031
|
amp: "amp";
|
|
1039
1032
|
"factory-droids": "factory-droids";
|
|
1040
|
-
acp: "acp";
|
|
1041
|
-
"cli-base": "cli-base";
|
|
1042
1033
|
forge: "forge";
|
|
1043
1034
|
cursor: "cursor";
|
|
1035
|
+
acp: "acp";
|
|
1036
|
+
"cli-base": "cli-base";
|
|
1044
1037
|
}>;
|
|
1045
1038
|
backendLabel: z.ZodOptional<z.ZodString>;
|
|
1046
1039
|
backendModel: z.ZodOptional<z.ZodString>;
|
|
@@ -2513,6 +2506,15 @@ interface PromptResult {
|
|
|
2513
2506
|
success: boolean;
|
|
2514
2507
|
/** Granular run outcome. */
|
|
2515
2508
|
status: AgentRunStatus;
|
|
2509
|
+
/**
|
|
2510
|
+
* Runtime execution that produced this result.
|
|
2511
|
+
*
|
|
2512
|
+
* Preserve this value when a session may receive another turn: passing it
|
|
2513
|
+
* to `session.result({ executionId })` or
|
|
2514
|
+
* `session.interrupt({ executionId })` keeps the later operation bound to
|
|
2515
|
+
* this run instead of whichever run is newest at call time.
|
|
2516
|
+
*/
|
|
2517
|
+
executionId?: string;
|
|
2516
2518
|
/** Agent's response text */
|
|
2517
2519
|
response?: string;
|
|
2518
2520
|
/** Error message when the run did not succeed */
|
|
@@ -3056,6 +3058,8 @@ interface SessionInfo {
|
|
|
3056
3058
|
parentId?: string;
|
|
3057
3059
|
/** Current lifecycle state. */
|
|
3058
3060
|
status: SessionStatus;
|
|
3061
|
+
/** Execution currently running, when one is active. */
|
|
3062
|
+
activeExecutionId?: string;
|
|
3059
3063
|
/** Most recent execution id, retained after completion for event replay. */
|
|
3060
3064
|
latestExecutionId?: string;
|
|
3061
3065
|
/** Backend identifier (e.g. provider name). */
|
|
@@ -3234,6 +3238,26 @@ interface SessionEventStreamOptions {
|
|
|
3234
3238
|
/** Cancel the stream by aborting this signal. */
|
|
3235
3239
|
signal?: AbortSignal;
|
|
3236
3240
|
}
|
|
3241
|
+
/** Select one exact execution when awaiting a session result. */
|
|
3242
|
+
interface SessionResultOptions {
|
|
3243
|
+
/**
|
|
3244
|
+
* Runtime execution to replay and aggregate.
|
|
3245
|
+
*
|
|
3246
|
+
* When omitted, `result()` retains its existing behavior and selects the
|
|
3247
|
+
* session's latest execution at call time.
|
|
3248
|
+
*/
|
|
3249
|
+
executionId?: string;
|
|
3250
|
+
}
|
|
3251
|
+
/** Select one exact execution when interrupting a session. */
|
|
3252
|
+
interface SessionInterruptOptions {
|
|
3253
|
+
/**
|
|
3254
|
+
* Runtime execution to cancel.
|
|
3255
|
+
*
|
|
3256
|
+
* When supplied, a newer execution on the same session is never cancelled.
|
|
3257
|
+
* When omitted, `interrupt()` selects the current execution.
|
|
3258
|
+
*/
|
|
3259
|
+
executionId?: string;
|
|
3260
|
+
}
|
|
3237
3261
|
/**
|
|
3238
3262
|
* Options for `box.dispatchPrompt()` — fire-and-detach prompt semantics.
|
|
3239
3263
|
*/
|
|
@@ -3337,6 +3361,8 @@ interface DispatchedSession {
|
|
|
3337
3361
|
/** Session id (either the one the caller supplied or one the sandbox
|
|
3338
3362
|
* minted). */
|
|
3339
3363
|
sessionId: string;
|
|
3364
|
+
/** Runtime execution id when the admission event supplied one. */
|
|
3365
|
+
executionId?: string;
|
|
3340
3366
|
/** Lifecycle state at the moment dispatch returned. */
|
|
3341
3367
|
status: SessionStatus;
|
|
3342
3368
|
/** True when a session with the supplied id already existed. On its own
|
|
@@ -6143,4 +6169,4 @@ interface CodeExecutionOptions {
|
|
|
6143
6169
|
idempotencyKey?: string;
|
|
6144
6170
|
}
|
|
6145
6171
|
//#endregion
|
|
6146
|
-
export { EventStreamOptions as $,
|
|
6172
|
+
export { EventStreamOptions as $, PublicBatchRunRequest as $i, SandboxFleetCostEstimate as $n, SessionBackendCredentials as $r, ListSandboxFleetOptions as $t, CreateSandboxFleetTokenOptions as A, UpdateUserOptions as Ai, PublishPublicTemplateVersionOptions as An, SandboxResources as Ar, GitCommit as At, DownloadOptions as B, TerminalExitInfo as Bi, RolloutOptions as Bn, SandboxTraceEvent as Br, GpuLeaseProviderName as Bt, CodeResultPart as C, TeeAttestationReport as Ci, ProvisionEvent as Cn, SandboxFleetWorkspaceSnapshotResult as Cr, FleetExecDispatchResult as Ct, CreateIntelligenceReportOptions as D, TokenRefreshHandler as Di, PublicTemplateInfo as Dn, SandboxPortBinding as Dr, GPU_LEASE_PROVIDER_NAMES as Dt, CreateGpuLeaseOptions as E, TeePublicKeyResponse as Ei, ProvisionStep as En, SandboxIntelligenceEnvelope as Er, FleetPromptDispatchResult as Et, DeleteOptions as F, WaitForRolloutOptions as Fi, RenameOptions as Fn, SandboxTerminalInfo as Fr, GpuLeaseBilling as Ft, DriverType as G, TerminalStreamHandlers as Gi, SSHCommandDescriptor as Gn, ScopedTokenScope as Gr, IntelligenceReport as Gt, DriveTurnOptions as H, TerminalStream as Hi, RolloutStartResult as Hn, SandboxTraceOptions as Hr, HostAgentDriverConfig as Ht, DevServerInfo as I, WriteFileOptions as Ii, RestoreSnapshotOptions as In, SandboxTerminalManager as Ir, GpuLeaseCommandResult as It, EffectiveBackendProfile as J, BatchBackendStats as Ji, SandboxConnection as Jn, SecretInfo as Jr, IntelligenceReportSubjectType as Jt, DurablePlan as K, TerminalStreamOptions as Ki, SSHCredentials as Kn, SearchMatch as Kr, IntelligenceReportBudget as Kt, DirectoryPermission as L, WriteManyFile as Li, ResumeOptions as Ln, SandboxTerminalRequestOptions as Lr, GpuLeaseExecOptions as Lt, CreateSandboxOptions as M, UploadProgress as Mi, ReapExpiredSandboxFleetsResult as Mn, SandboxStatus as Mr, GitDiff as Mt, CreateSessionOptions as N, UsageInfo as Ni, ReconcileSandboxFleetsOptions as Nn, SandboxTerminalAttachOptions as Nr, GitStatus as Nt, CreateRequestOptions as O, TokenUsage as Oi, PublicTemplateVersionInfo as On, SandboxPortPreviewLink as Or, GitAuth as Ot, CreateTaskSessionOptions as P, WaitForOptions as Pi, ReconcileSandboxFleetsResult as Pn, SandboxTerminalCreateOptions as Pr, GpuLease as Pt, EnsureDevServerOptions as Q, BatchTaskUsage as Qi, SandboxFleetArtifactSpec as Qn, SentSessionMessage as Qr, ListOptions as Qt, DispatchPromptOptions as R, WriteManyOptions as Ri, Rollout as Rn, SandboxTerminals as Rr, GpuLeaseExecResult as Rt, CodeLanguage as S, TeeAttestationOptions as Si, PromptResult as Sn, SandboxFleetWorkspaceRestoreResult as Sr, FleetExecDispatchOptions as St, CompletedTurnResult as T, TeePublicKey as Ti, ProvisionStatus as Tn, SandboxInfo as Tr, FleetPromptDispatchOptions as Tt, DriverConfig as U, TerminalStreamAuthFormat as Ui, RolloutStatus as Un, SandboxUser as Ur, HostAgentRuntimeBackend as Ut, DownloadProgress as V, TerminalReadyInfo as Vi, RolloutScorer as Vn, SandboxTraceExport as Vr, GpuLeaseStatus as Vt, DriverInfo as W, TerminalStreamError as Wi, RolloutTurnPart as Wn, ScopedToken as Wr, InstalledTool as Wt, EgressManager as X, BatchEventDataMap as Xi, SandboxEvent as Xn, SendSessionMessageOptions as Xr, JsonValue as Xt, EffectiveBackendSource as Y, BatchEvent as Yi, SandboxEnvironment as Yn, SecretsManager as Yr, IntelligenceReportWindow as Yt, EgressPolicy as Z, BatchSidecarGroup as Zi, SandboxFleetArtifact as Zn, SendSessionMessageRequest as Zr, ListMessagesOptions as Zt, BranchOptions as _, TaskSessionChanges as _i, ProcessSignal as _n, SandboxFleetTraceExport as _r, FleetDispatchResultBuffer as _t, AttachSandboxFleetMachineOptions as a, SessionMessage as ai, NetworkManager as an, SandboxFleetIntelligenceEnvelope as ar, FileReadBatchResult as at, CodeExecutionOptions as b, TaskSessionInfo as bi, PromptInputPart as bn, SandboxFleetWorkspace as br, FleetDriveTurnOutcome as bt, BackendInfo as c, SessionStatus as ci, PermissionsManager as cn, SandboxFleetMachineRecord as cr, FileRenameResult as ct, BatchBackend as d, SnapshotResult as di, PreviewLinkWaitOptions as dn, SandboxFleetManifestMachine as dr, FileTreeOptions as dt, BackendType as ea, SessionEventStreamOptions as ei, ListSandboxOptions as en, SandboxFleetDispatchFailureClass as er, ExactProcessSpawnOptions as et, BatchResult as f, SshKeysManager as fi, Process as fn, SandboxFleetOperationsSummary as fr, FileTreeResult as ft, BatchTaskResult as g, SubscriptionInfo as gi, ProcessManager as gn, SandboxFleetTraceEvent as gr, FleetDispatchCancelResult as gt, BatchTask as h, StorageConfig as hi, ProcessLogEntry as hn, SandboxFleetTraceBundle as hr, FileWriteResult as ht, AttachGpuLeaseOptions as i, SessionListOptions as ii, NetworkConfig as in, SandboxFleetInfo as ir, FileReadBatchOptions as it, CreateSandboxFleetWithCoordinatorOptions as j, UploadOptions as ji, ReapExpiredSandboxFleetsOptions as jn, SandboxRuntimeHealth as jr, GitConfig as jt, CreateSandboxFleetOptions as k, TurnDriveResult as ki, PublishPublicTemplateOptions as kn, SandboxResourceUsage as kr, GitBranch as kt, BackendManager as l, SnapshotInfo as li, PreviewLinkInfo as ln, SandboxFleetMachineSpec as lr, FileSystem as lt, BatchRunRequest as m, StartupOperation as mi, ProcessListOptions as mn, SandboxFleetToken as mr, FileUsageResult as mt, AccessPolicyRule as n, SessionInfo as ni, MintScopedTokenOptions as nn, SandboxFleetDriverCapability as nr, ExecResult as nt, BackendCapabilities as o, SessionMessageInputPart as oi, NonHostAgentDriverConfig as on, SandboxFleetMachine as or, FileReadError as ot, BatchRunOptions as p, StartupDiagnostics as pi, ProcessInfo as pn, SandboxFleetPolicy as pr, FileUsageOptions as pt, EffectiveBackend as q, TerminalStreamToken as qi, SandboxConfig as qn, SearchOptions as qr, IntelligenceReportCompareTo as qt, AddUserOptions as r, SessionInterruptOptions as ri, MkdirOptions as rn, SandboxFleetDriverTimings as rr, FileInfo as rt, BackendConfig as s, SessionResultOptions as si, PermissionLevel as sn, SandboxFleetMachineMeteredUsage as sr, FileReadResult as st, AcceleratorKind as t, parseBackendType as ta, SessionForkOptions as ti, McpServerConfig as tn, SandboxFleetDispatchResponse as tr, ExecOptions as tt, BackendStatus as u, SnapshotOptions as ui, PreviewLinkManager as un, SandboxFleetManifest as ur, FileTreeFile as ut, ChunkedUploadOptions as v, TaskSessionCommitResult as vi, ProcessSpawnOptions as vn, SandboxFleetTraceOptions as vr, FleetDispatchResultBufferOptions as vt, CommitTaskSessionOptions as w, TeeAttestationResponse as wi, ProvisionResult as wn, SandboxIdentity as wr, FleetMachineId as wt, CodeExecutionResult as x, TaskSessionProfile as xi, PromptOptions as xn, SandboxFleetWorkspaceReconcileResult as xr, FleetDriveTurnRequest as xt, ChunkedUploadResult as y, TaskSessionFileChange as yi, ProcessStatus as yn, SandboxFleetUsage as yr, FleetDispatchStreamOptions as yt, DispatchedSession as z, TERMINAL_WS_ECHO_SUBPROTOCOL as zi, RolloutChildResult as zn, SandboxTraceBundle as zr, GpuLeaseManager as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.2-develop.20260803000136.6dc5f0b",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"url": "https://github.com/tangle-network/agent-dev-container/issues"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@tangle-network/agent-core": "0.4.
|
|
91
|
-
"@tangle-network/agent-interface": "0.
|
|
90
|
+
"@tangle-network/agent-core": "0.4.33",
|
|
91
|
+
"@tangle-network/agent-interface": "0.43.0",
|
|
92
92
|
"zod": "4.4.3"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"ws": "^8.20.0",
|
|
129
129
|
"yjs": "13.6.30",
|
|
130
130
|
"@repo/shared": "0.0.0",
|
|
131
|
-
"@tangle-network/runtime-contracts": "0.4.
|
|
131
|
+
"@tangle-network/runtime-contracts": "0.4.2"
|
|
132
132
|
},
|
|
133
133
|
"scripts": {
|
|
134
134
|
"build": "node scripts/build-dist.mjs",
|