@intentic/sandbox-contract 1.239.0 → 1.240.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/agent.contract.d.ts +28 -28
- package/dist/contracts/agents.contract.d.ts +474 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +28 -28
- package/dist/contracts/sessions.contract.d.ts +474 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +474 -0
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/events.d.ts +2533 -123
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +112 -61
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +1450 -28
- package/dist/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/events.ts +206 -97
|
@@ -50,7 +50,6 @@ export declare const runnerContract: {
|
|
|
50
50
|
bytesBase64: z.ZodString;
|
|
51
51
|
}, z.core.$strip>>>;
|
|
52
52
|
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
53
|
-
kind: "plan";
|
|
54
53
|
requestId: string;
|
|
55
54
|
text: string;
|
|
56
55
|
document?: {
|
|
@@ -60,8 +59,8 @@ export declare const runnerContract: {
|
|
|
60
59
|
truncated?: boolean | undefined;
|
|
61
60
|
plan?: boolean | undefined;
|
|
62
61
|
} | undefined;
|
|
62
|
+
kind: "plan";
|
|
63
63
|
} | {
|
|
64
|
-
kind: "question";
|
|
65
64
|
requestId: string;
|
|
66
65
|
questions: {
|
|
67
66
|
question: string;
|
|
@@ -80,6 +79,7 @@ export declare const runnerContract: {
|
|
|
80
79
|
truncated?: boolean | undefined;
|
|
81
80
|
plan?: boolean | undefined;
|
|
82
81
|
} | undefined;
|
|
82
|
+
kind: "question";
|
|
83
83
|
} | {
|
|
84
84
|
toolName: string;
|
|
85
85
|
title?: string | undefined;
|
|
@@ -98,8 +98,8 @@ export declare const runnerContract: {
|
|
|
98
98
|
}[];
|
|
99
99
|
} | undefined;
|
|
100
100
|
explain?: string | undefined;
|
|
101
|
-
kind: "permission";
|
|
102
101
|
requestId: string;
|
|
102
|
+
kind: "permission";
|
|
103
103
|
} | {
|
|
104
104
|
kind: "session";
|
|
105
105
|
sessionId: string;
|
|
@@ -304,18 +304,17 @@ export declare const runnerContract: {
|
|
|
304
304
|
preTokens?: number | undefined;
|
|
305
305
|
postTokens?: number | undefined;
|
|
306
306
|
} | {
|
|
307
|
-
kind: "browser_help";
|
|
308
307
|
requestId: string;
|
|
309
308
|
session: string;
|
|
310
309
|
account: string;
|
|
311
310
|
message: string;
|
|
311
|
+
kind: "browser_help";
|
|
312
312
|
} | {
|
|
313
|
-
kind: "terminal_help";
|
|
314
313
|
requestId: string;
|
|
315
314
|
session: string;
|
|
316
315
|
message: string;
|
|
316
|
+
kind: "terminal_help";
|
|
317
317
|
} | {
|
|
318
|
-
kind: "service_offer";
|
|
319
318
|
requestId: string;
|
|
320
319
|
offer: {
|
|
321
320
|
slug: string;
|
|
@@ -332,6 +331,7 @@ export declare const runnerContract: {
|
|
|
332
331
|
request: string;
|
|
333
332
|
why?: string | undefined;
|
|
334
333
|
};
|
|
334
|
+
kind: "service_offer";
|
|
335
335
|
} | {
|
|
336
336
|
kind: "service_event";
|
|
337
337
|
requestId: string;
|
|
@@ -343,26 +343,25 @@ export declare const runnerContract: {
|
|
|
343
343
|
data: unknown;
|
|
344
344
|
};
|
|
345
345
|
} | {
|
|
346
|
-
kind: "service_receipt";
|
|
347
|
-
requestId: string;
|
|
348
346
|
outcome: "ok" | "refunded" | "refused";
|
|
349
347
|
credits: number;
|
|
350
348
|
remaining?: number | undefined;
|
|
349
|
+
kind: "service_receipt";
|
|
350
|
+
requestId: string;
|
|
351
351
|
} | {
|
|
352
|
-
kind: "capability_offer";
|
|
353
352
|
requestId: string;
|
|
354
353
|
offer: {
|
|
355
354
|
card: string;
|
|
356
355
|
name: string;
|
|
357
356
|
why?: string | undefined;
|
|
358
357
|
};
|
|
358
|
+
kind: "capability_offer";
|
|
359
359
|
} | {
|
|
360
|
-
kind: "capability_outcome";
|
|
361
|
-
requestId: string;
|
|
362
360
|
outcome: "connected" | "unfinished";
|
|
363
361
|
id?: string | undefined;
|
|
362
|
+
kind: "capability_outcome";
|
|
363
|
+
requestId: string;
|
|
364
364
|
} | {
|
|
365
|
-
kind: "payment_offer";
|
|
366
365
|
requestId: string;
|
|
367
366
|
offer: {
|
|
368
367
|
url: string;
|
|
@@ -376,13 +375,14 @@ export declare const runnerContract: {
|
|
|
376
375
|
dailyCapUsd: string;
|
|
377
376
|
why?: string | undefined;
|
|
378
377
|
};
|
|
378
|
+
kind: "payment_offer";
|
|
379
379
|
} | {
|
|
380
|
-
kind: "payment_receipt";
|
|
381
|
-
requestId: string;
|
|
382
380
|
outcome: "failed" | "paid";
|
|
383
381
|
amountUsd: string;
|
|
384
382
|
transaction?: string | undefined;
|
|
385
383
|
network?: string | undefined;
|
|
384
|
+
kind: "payment_receipt";
|
|
385
|
+
requestId: string;
|
|
386
386
|
} | {
|
|
387
387
|
kind: "resolved";
|
|
388
388
|
requestId: string;
|
|
@@ -453,7 +453,6 @@ export declare const runnerContract: {
|
|
|
453
453
|
} | {
|
|
454
454
|
kind: "done";
|
|
455
455
|
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
456
|
-
kind: "plan";
|
|
457
456
|
requestId: string;
|
|
458
457
|
text: string;
|
|
459
458
|
document?: {
|
|
@@ -463,8 +462,8 @@ export declare const runnerContract: {
|
|
|
463
462
|
truncated?: boolean | undefined;
|
|
464
463
|
plan?: boolean | undefined;
|
|
465
464
|
} | undefined;
|
|
465
|
+
kind: "plan";
|
|
466
466
|
} | {
|
|
467
|
-
kind: "question";
|
|
468
467
|
requestId: string;
|
|
469
468
|
questions: {
|
|
470
469
|
question: string;
|
|
@@ -483,6 +482,7 @@ export declare const runnerContract: {
|
|
|
483
482
|
truncated?: boolean | undefined;
|
|
484
483
|
plan?: boolean | undefined;
|
|
485
484
|
} | undefined;
|
|
485
|
+
kind: "question";
|
|
486
486
|
} | {
|
|
487
487
|
toolName: string;
|
|
488
488
|
title?: string | undefined;
|
|
@@ -501,8 +501,8 @@ export declare const runnerContract: {
|
|
|
501
501
|
}[];
|
|
502
502
|
} | undefined;
|
|
503
503
|
explain?: string | undefined;
|
|
504
|
-
kind: "permission";
|
|
505
504
|
requestId: string;
|
|
505
|
+
kind: "permission";
|
|
506
506
|
} | {
|
|
507
507
|
kind: "session";
|
|
508
508
|
sessionId: string;
|
|
@@ -707,18 +707,17 @@ export declare const runnerContract: {
|
|
|
707
707
|
preTokens?: number | undefined;
|
|
708
708
|
postTokens?: number | undefined;
|
|
709
709
|
} | {
|
|
710
|
-
kind: "browser_help";
|
|
711
710
|
requestId: string;
|
|
712
711
|
session: string;
|
|
713
712
|
account: string;
|
|
714
713
|
message: string;
|
|
714
|
+
kind: "browser_help";
|
|
715
715
|
} | {
|
|
716
|
-
kind: "terminal_help";
|
|
717
716
|
requestId: string;
|
|
718
717
|
session: string;
|
|
719
718
|
message: string;
|
|
719
|
+
kind: "terminal_help";
|
|
720
720
|
} | {
|
|
721
|
-
kind: "service_offer";
|
|
722
721
|
requestId: string;
|
|
723
722
|
offer: {
|
|
724
723
|
slug: string;
|
|
@@ -735,6 +734,7 @@ export declare const runnerContract: {
|
|
|
735
734
|
request: string;
|
|
736
735
|
why?: string | undefined;
|
|
737
736
|
};
|
|
737
|
+
kind: "service_offer";
|
|
738
738
|
} | {
|
|
739
739
|
kind: "service_event";
|
|
740
740
|
requestId: string;
|
|
@@ -746,26 +746,25 @@ export declare const runnerContract: {
|
|
|
746
746
|
data: unknown;
|
|
747
747
|
};
|
|
748
748
|
} | {
|
|
749
|
-
kind: "service_receipt";
|
|
750
|
-
requestId: string;
|
|
751
749
|
outcome: "ok" | "refunded" | "refused";
|
|
752
750
|
credits: number;
|
|
753
751
|
remaining?: number | undefined;
|
|
752
|
+
kind: "service_receipt";
|
|
753
|
+
requestId: string;
|
|
754
754
|
} | {
|
|
755
|
-
kind: "capability_offer";
|
|
756
755
|
requestId: string;
|
|
757
756
|
offer: {
|
|
758
757
|
card: string;
|
|
759
758
|
name: string;
|
|
760
759
|
why?: string | undefined;
|
|
761
760
|
};
|
|
761
|
+
kind: "capability_offer";
|
|
762
762
|
} | {
|
|
763
|
-
kind: "capability_outcome";
|
|
764
|
-
requestId: string;
|
|
765
763
|
outcome: "connected" | "unfinished";
|
|
766
764
|
id?: string | undefined;
|
|
765
|
+
kind: "capability_outcome";
|
|
766
|
+
requestId: string;
|
|
767
767
|
} | {
|
|
768
|
-
kind: "payment_offer";
|
|
769
768
|
requestId: string;
|
|
770
769
|
offer: {
|
|
771
770
|
url: string;
|
|
@@ -779,13 +778,14 @@ export declare const runnerContract: {
|
|
|
779
778
|
dailyCapUsd: string;
|
|
780
779
|
why?: string | undefined;
|
|
781
780
|
};
|
|
781
|
+
kind: "payment_offer";
|
|
782
782
|
} | {
|
|
783
|
-
kind: "payment_receipt";
|
|
784
|
-
requestId: string;
|
|
785
783
|
outcome: "failed" | "paid";
|
|
786
784
|
amountUsd: string;
|
|
787
785
|
transaction?: string | undefined;
|
|
788
786
|
network?: string | undefined;
|
|
787
|
+
kind: "payment_receipt";
|
|
788
|
+
requestId: string;
|
|
789
789
|
} | {
|
|
790
790
|
kind: "resolved";
|
|
791
791
|
requestId: string;
|