@intentic/sandbox-contract 1.416.0 → 1.416.1
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/runner.contract.d.ts +246 -246
- package/dist/contracts/system.contract.d.ts +18 -18
- package/dist/models/plan-pools.d.ts +2 -13
- package/dist/models/plan-pools.d.ts.map +1 -1
- package/dist/models/plan-pools.js +7 -41
- package/dist/models/plan-pools.js.map +1 -1
- package/dist/models/verdict/refusal-verdict.d.ts +2 -0
- package/dist/models/verdict/refusal-verdict.d.ts.map +1 -1
- package/dist/models/verdict/refusal-verdict.js +24 -2
- package/dist/models/verdict/refusal-verdict.js.map +1 -1
- package/dist/models/verdict/window-period.d.ts +13 -0
- package/dist/models/verdict/window-period.d.ts.map +1 -0
- package/dist/models/verdict/window-period.js +37 -0
- package/dist/models/verdict/window-period.js.map +1 -0
- package/package.json +5 -5
- package/src/models/plan-pools.test.ts +46 -3
- package/src/models/plan-pools.ts +11 -64
- package/src/models/verdict/refusal-verdict.ts +48 -3
- package/src/models/verdict/window-period.ts +57 -0
|
@@ -68,6 +68,37 @@ export declare const runnerContract: {
|
|
|
68
68
|
bytesBase64: z.ZodString;
|
|
69
69
|
}, z.core.$strip>>>;
|
|
70
70
|
}, 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
|
+
} | {
|
|
71
102
|
kind: "session";
|
|
72
103
|
sessionId: string;
|
|
73
104
|
account?: string | undefined;
|
|
@@ -302,37 +333,6 @@ export declare const runnerContract: {
|
|
|
302
333
|
sent?: string | undefined;
|
|
303
334
|
kind: "agent_notice";
|
|
304
335
|
text: string;
|
|
305
|
-
} | {
|
|
306
|
-
requestId: string;
|
|
307
|
-
text: string;
|
|
308
|
-
document?: {
|
|
309
|
-
path: string;
|
|
310
|
-
title: string;
|
|
311
|
-
markdown: string;
|
|
312
|
-
truncated?: boolean | undefined;
|
|
313
|
-
plan?: boolean | undefined;
|
|
314
|
-
} | undefined;
|
|
315
|
-
kind: "plan";
|
|
316
|
-
} | {
|
|
317
|
-
requestId: string;
|
|
318
|
-
questions: {
|
|
319
|
-
question: string;
|
|
320
|
-
header: string;
|
|
321
|
-
multiSelect: boolean;
|
|
322
|
-
options: {
|
|
323
|
-
label: string;
|
|
324
|
-
description: string;
|
|
325
|
-
preview?: string | undefined;
|
|
326
|
-
}[];
|
|
327
|
-
}[];
|
|
328
|
-
document?: {
|
|
329
|
-
path: string;
|
|
330
|
-
title: string;
|
|
331
|
-
markdown: string;
|
|
332
|
-
truncated?: boolean | undefined;
|
|
333
|
-
plan?: boolean | undefined;
|
|
334
|
-
} | undefined;
|
|
335
|
-
kind: "question";
|
|
336
336
|
} | {
|
|
337
337
|
requestId: string;
|
|
338
338
|
session: string;
|
|
@@ -749,6 +749,50 @@ export declare const runnerContract: {
|
|
|
749
749
|
unattended?: boolean | undefined;
|
|
750
750
|
} | {
|
|
751
751
|
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";
|
|
752
796
|
} | {
|
|
753
797
|
window: number;
|
|
754
798
|
omitted: string[];
|
|
@@ -798,6 +842,54 @@ export declare const runnerContract: {
|
|
|
798
842
|
cachedAt?: number | undefined;
|
|
799
843
|
cacheTtlMs?: number | undefined;
|
|
800
844
|
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";
|
|
801
893
|
} | {
|
|
802
894
|
toolName: string;
|
|
803
895
|
title?: string | undefined;
|
|
@@ -843,23 +935,6 @@ export declare const runnerContract: {
|
|
|
843
935
|
requestId: string;
|
|
844
936
|
kind: "permission";
|
|
845
937
|
} | {
|
|
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
938
|
kind: "session";
|
|
864
939
|
sessionId: string;
|
|
865
940
|
account?: string | undefined;
|
|
@@ -1094,37 +1169,6 @@ export declare const runnerContract: {
|
|
|
1094
1169
|
sent?: string | undefined;
|
|
1095
1170
|
kind: "agent_notice";
|
|
1096
1171
|
text: string;
|
|
1097
|
-
} | {
|
|
1098
|
-
requestId: string;
|
|
1099
|
-
text: string;
|
|
1100
|
-
document?: {
|
|
1101
|
-
path: string;
|
|
1102
|
-
title: string;
|
|
1103
|
-
markdown: string;
|
|
1104
|
-
truncated?: boolean | undefined;
|
|
1105
|
-
plan?: boolean | undefined;
|
|
1106
|
-
} | undefined;
|
|
1107
|
-
kind: "plan";
|
|
1108
|
-
} | {
|
|
1109
|
-
requestId: string;
|
|
1110
|
-
questions: {
|
|
1111
|
-
question: string;
|
|
1112
|
-
header: string;
|
|
1113
|
-
multiSelect: boolean;
|
|
1114
|
-
options: {
|
|
1115
|
-
label: string;
|
|
1116
|
-
description: string;
|
|
1117
|
-
preview?: string | undefined;
|
|
1118
|
-
}[];
|
|
1119
|
-
}[];
|
|
1120
|
-
document?: {
|
|
1121
|
-
path: string;
|
|
1122
|
-
title: string;
|
|
1123
|
-
markdown: string;
|
|
1124
|
-
truncated?: boolean | undefined;
|
|
1125
|
-
plan?: boolean | undefined;
|
|
1126
|
-
} | undefined;
|
|
1127
|
-
kind: "question";
|
|
1128
1172
|
} | {
|
|
1129
1173
|
requestId: string;
|
|
1130
1174
|
session: string;
|
|
@@ -1592,50 +1636,6 @@ export declare const runnerContract: {
|
|
|
1592
1636
|
cachedAt?: number | undefined;
|
|
1593
1637
|
cacheTtlMs?: number | undefined;
|
|
1594
1638
|
kind: "context_usage";
|
|
1595
|
-
} | {
|
|
1596
|
-
toolName: string;
|
|
1597
|
-
title?: string | undefined;
|
|
1598
|
-
displayName?: string | undefined;
|
|
1599
|
-
description?: string | undefined;
|
|
1600
|
-
reason?: string | undefined;
|
|
1601
|
-
path?: string | undefined;
|
|
1602
|
-
alwaysLabel?: string | undefined;
|
|
1603
|
-
alwaysAsks?: true | undefined;
|
|
1604
|
-
program?: {
|
|
1605
|
-
text: string;
|
|
1606
|
-
language: "bash" | "javascript";
|
|
1607
|
-
truncated: boolean;
|
|
1608
|
-
spans: {
|
|
1609
|
-
start: number;
|
|
1610
|
-
end: number;
|
|
1611
|
-
}[];
|
|
1612
|
-
} | undefined;
|
|
1613
|
-
child?: {
|
|
1614
|
-
provider: string;
|
|
1615
|
-
model: string;
|
|
1616
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
1617
|
-
account?: string | undefined;
|
|
1618
|
-
effort?: string | undefined;
|
|
1619
|
-
thinking?: boolean | undefined;
|
|
1620
|
-
fast?: boolean | undefined;
|
|
1621
|
-
move: "answer" | "send" | "spawn";
|
|
1622
|
-
child?: string | undefined;
|
|
1623
|
-
task?: string | undefined;
|
|
1624
|
-
message?: string | undefined;
|
|
1625
|
-
on?: string | undefined;
|
|
1626
|
-
proposed?: {
|
|
1627
|
-
provider: string;
|
|
1628
|
-
model: string;
|
|
1629
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
1630
|
-
account?: string | undefined;
|
|
1631
|
-
effort?: string | undefined;
|
|
1632
|
-
thinking?: boolean | undefined;
|
|
1633
|
-
fast?: boolean | undefined;
|
|
1634
|
-
} | undefined;
|
|
1635
|
-
} | undefined;
|
|
1636
|
-
explain?: string | undefined;
|
|
1637
|
-
requestId: string;
|
|
1638
|
-
kind: "permission";
|
|
1639
1639
|
} | {
|
|
1640
1640
|
outcome: "connected" | "unfinished";
|
|
1641
1641
|
id?: string | undefined;
|
|
@@ -2749,6 +2749,37 @@ export declare const runnerContract: {
|
|
|
2749
2749
|
conversationId: z.ZodString;
|
|
2750
2750
|
after: z.ZodNumber;
|
|
2751
2751
|
}, 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
|
+
} | {
|
|
2752
2783
|
kind: "session";
|
|
2753
2784
|
sessionId: string;
|
|
2754
2785
|
account?: string | undefined;
|
|
@@ -2983,37 +3014,6 @@ export declare const runnerContract: {
|
|
|
2983
3014
|
sent?: string | undefined;
|
|
2984
3015
|
kind: "agent_notice";
|
|
2985
3016
|
text: string;
|
|
2986
|
-
} | {
|
|
2987
|
-
requestId: string;
|
|
2988
|
-
text: string;
|
|
2989
|
-
document?: {
|
|
2990
|
-
path: string;
|
|
2991
|
-
title: string;
|
|
2992
|
-
markdown: string;
|
|
2993
|
-
truncated?: boolean | undefined;
|
|
2994
|
-
plan?: boolean | undefined;
|
|
2995
|
-
} | undefined;
|
|
2996
|
-
kind: "plan";
|
|
2997
|
-
} | {
|
|
2998
|
-
requestId: string;
|
|
2999
|
-
questions: {
|
|
3000
|
-
question: string;
|
|
3001
|
-
header: string;
|
|
3002
|
-
multiSelect: boolean;
|
|
3003
|
-
options: {
|
|
3004
|
-
label: string;
|
|
3005
|
-
description: string;
|
|
3006
|
-
preview?: string | undefined;
|
|
3007
|
-
}[];
|
|
3008
|
-
}[];
|
|
3009
|
-
document?: {
|
|
3010
|
-
path: string;
|
|
3011
|
-
title: string;
|
|
3012
|
-
markdown: string;
|
|
3013
|
-
truncated?: boolean | undefined;
|
|
3014
|
-
plan?: boolean | undefined;
|
|
3015
|
-
} | undefined;
|
|
3016
|
-
kind: "question";
|
|
3017
3017
|
} | {
|
|
3018
3018
|
requestId: string;
|
|
3019
3019
|
session: string;
|
|
@@ -3430,6 +3430,50 @@ export declare const runnerContract: {
|
|
|
3430
3430
|
unattended?: boolean | undefined;
|
|
3431
3431
|
} | {
|
|
3432
3432
|
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";
|
|
3433
3477
|
} | {
|
|
3434
3478
|
window: number;
|
|
3435
3479
|
omitted: string[];
|
|
@@ -3479,6 +3523,54 @@ export declare const runnerContract: {
|
|
|
3479
3523
|
cachedAt?: number | undefined;
|
|
3480
3524
|
cacheTtlMs?: number | undefined;
|
|
3481
3525
|
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";
|
|
3482
3574
|
} | {
|
|
3483
3575
|
toolName: string;
|
|
3484
3576
|
title?: string | undefined;
|
|
@@ -3524,23 +3616,6 @@ export declare const runnerContract: {
|
|
|
3524
3616
|
requestId: string;
|
|
3525
3617
|
kind: "permission";
|
|
3526
3618
|
} | {
|
|
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
3619
|
kind: "session";
|
|
3545
3620
|
sessionId: string;
|
|
3546
3621
|
account?: string | undefined;
|
|
@@ -3775,37 +3850,6 @@ export declare const runnerContract: {
|
|
|
3775
3850
|
sent?: string | undefined;
|
|
3776
3851
|
kind: "agent_notice";
|
|
3777
3852
|
text: string;
|
|
3778
|
-
} | {
|
|
3779
|
-
requestId: string;
|
|
3780
|
-
text: string;
|
|
3781
|
-
document?: {
|
|
3782
|
-
path: string;
|
|
3783
|
-
title: string;
|
|
3784
|
-
markdown: string;
|
|
3785
|
-
truncated?: boolean | undefined;
|
|
3786
|
-
plan?: boolean | undefined;
|
|
3787
|
-
} | undefined;
|
|
3788
|
-
kind: "plan";
|
|
3789
|
-
} | {
|
|
3790
|
-
requestId: string;
|
|
3791
|
-
questions: {
|
|
3792
|
-
question: string;
|
|
3793
|
-
header: string;
|
|
3794
|
-
multiSelect: boolean;
|
|
3795
|
-
options: {
|
|
3796
|
-
label: string;
|
|
3797
|
-
description: string;
|
|
3798
|
-
preview?: string | undefined;
|
|
3799
|
-
}[];
|
|
3800
|
-
}[];
|
|
3801
|
-
document?: {
|
|
3802
|
-
path: string;
|
|
3803
|
-
title: string;
|
|
3804
|
-
markdown: string;
|
|
3805
|
-
truncated?: boolean | undefined;
|
|
3806
|
-
plan?: boolean | undefined;
|
|
3807
|
-
} | undefined;
|
|
3808
|
-
kind: "question";
|
|
3809
3853
|
} | {
|
|
3810
3854
|
requestId: string;
|
|
3811
3855
|
session: string;
|
|
@@ -4273,50 +4317,6 @@ export declare const runnerContract: {
|
|
|
4273
4317
|
cachedAt?: number | undefined;
|
|
4274
4318
|
cacheTtlMs?: number | undefined;
|
|
4275
4319
|
kind: "context_usage";
|
|
4276
|
-
} | {
|
|
4277
|
-
toolName: string;
|
|
4278
|
-
title?: string | undefined;
|
|
4279
|
-
displayName?: string | undefined;
|
|
4280
|
-
description?: string | undefined;
|
|
4281
|
-
reason?: string | undefined;
|
|
4282
|
-
path?: string | undefined;
|
|
4283
|
-
alwaysLabel?: string | undefined;
|
|
4284
|
-
alwaysAsks?: true | undefined;
|
|
4285
|
-
program?: {
|
|
4286
|
-
text: string;
|
|
4287
|
-
language: "bash" | "javascript";
|
|
4288
|
-
truncated: boolean;
|
|
4289
|
-
spans: {
|
|
4290
|
-
start: number;
|
|
4291
|
-
end: number;
|
|
4292
|
-
}[];
|
|
4293
|
-
} | undefined;
|
|
4294
|
-
child?: {
|
|
4295
|
-
provider: string;
|
|
4296
|
-
model: string;
|
|
4297
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
4298
|
-
account?: string | undefined;
|
|
4299
|
-
effort?: string | undefined;
|
|
4300
|
-
thinking?: boolean | undefined;
|
|
4301
|
-
fast?: boolean | undefined;
|
|
4302
|
-
move: "answer" | "send" | "spawn";
|
|
4303
|
-
child?: string | undefined;
|
|
4304
|
-
task?: string | undefined;
|
|
4305
|
-
message?: string | undefined;
|
|
4306
|
-
on?: string | undefined;
|
|
4307
|
-
proposed?: {
|
|
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
|
-
} | undefined;
|
|
4316
|
-
} | undefined;
|
|
4317
|
-
explain?: string | undefined;
|
|
4318
|
-
requestId: string;
|
|
4319
|
-
kind: "permission";
|
|
4320
4320
|
} | {
|
|
4321
4321
|
outcome: "connected" | "unfinished";
|
|
4322
4322
|
id?: string | undefined;
|
|
@@ -220,6 +220,9 @@ export declare const systemContract: {
|
|
|
220
220
|
ms?: number | undefined;
|
|
221
221
|
}[];
|
|
222
222
|
kind: "boot";
|
|
223
|
+
} | {
|
|
224
|
+
kind: "reposChanged";
|
|
225
|
+
repos: string[];
|
|
223
226
|
} | {
|
|
224
227
|
kind: "workspaceChanged";
|
|
225
228
|
paths: string[];
|
|
@@ -230,9 +233,6 @@ export declare const systemContract: {
|
|
|
230
233
|
kind: "checkoutChanged";
|
|
231
234
|
agent: string;
|
|
232
235
|
paths: string[];
|
|
233
|
-
} | {
|
|
234
|
-
kind: "reposChanged";
|
|
235
|
-
repos: string[];
|
|
236
236
|
} | {
|
|
237
237
|
kind: "refsChanged";
|
|
238
238
|
repos: string[];
|
|
@@ -1159,6 +1159,19 @@ export declare const systemContract: {
|
|
|
1159
1159
|
barren?: string[] | undefined;
|
|
1160
1160
|
kind: "treeChanged";
|
|
1161
1161
|
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
1162
|
+
kind: "heartbeat";
|
|
1163
|
+
rev: number;
|
|
1164
|
+
} | {
|
|
1165
|
+
ready: boolean;
|
|
1166
|
+
startedAt: number;
|
|
1167
|
+
steps: {
|
|
1168
|
+
key: string;
|
|
1169
|
+
label: string;
|
|
1170
|
+
state: "done" | "failed" | "pending" | "running";
|
|
1171
|
+
ms?: number | undefined;
|
|
1172
|
+
}[];
|
|
1173
|
+
kind: "boot";
|
|
1174
|
+
} | {
|
|
1162
1175
|
kind: "hello";
|
|
1163
1176
|
workspaceId: string;
|
|
1164
1177
|
routes?: string[] | undefined;
|
|
@@ -1183,18 +1196,8 @@ export declare const systemContract: {
|
|
|
1183
1196
|
surface?: "folder" | "sandbox" | undefined;
|
|
1184
1197
|
recordsSwitches?: boolean | undefined;
|
|
1185
1198
|
} | {
|
|
1186
|
-
kind: "
|
|
1187
|
-
|
|
1188
|
-
} | {
|
|
1189
|
-
ready: boolean;
|
|
1190
|
-
startedAt: number;
|
|
1191
|
-
steps: {
|
|
1192
|
-
key: string;
|
|
1193
|
-
label: string;
|
|
1194
|
-
state: "done" | "failed" | "pending" | "running";
|
|
1195
|
-
ms?: number | undefined;
|
|
1196
|
-
}[];
|
|
1197
|
-
kind: "boot";
|
|
1199
|
+
kind: "reposChanged";
|
|
1200
|
+
repos: string[];
|
|
1198
1201
|
} | {
|
|
1199
1202
|
kind: "workspaceChanged";
|
|
1200
1203
|
paths: string[];
|
|
@@ -1205,9 +1208,6 @@ export declare const systemContract: {
|
|
|
1205
1208
|
kind: "checkoutChanged";
|
|
1206
1209
|
agent: string;
|
|
1207
1210
|
paths: string[];
|
|
1208
|
-
} | {
|
|
1209
|
-
kind: "reposChanged";
|
|
1210
|
-
repos: string[];
|
|
1211
1211
|
} | {
|
|
1212
1212
|
kind: "refsChanged";
|
|
1213
1213
|
repos: string[];
|
|
@@ -2,19 +2,8 @@ import type { AccountState, AccountUsage, ProviderRefusal, UsageWindow } from ".
|
|
|
2
2
|
import { type ModelRef } from "./verdict/pool-gates.js";
|
|
3
3
|
import { type RefusalsOnFile, type ServiceFacts } from "./verdict/refusal-verdict.js";
|
|
4
4
|
export { answerCovers, bindingWindow, gatesModel, gatingWindows, type ModelRef, pinnedFull, provenFull, runOfWords, scopedWindow, SPENT_UTILIZATION, uncoveredModels, wordsOf, } from "./verdict/pool-gates.js";
|
|
5
|
-
export { refusalVerdict, refusedPoolReset, type RefusalsOnFile, type ServiceFacts, standingOver } from "./verdict/refusal-verdict.js";
|
|
6
|
-
export
|
|
7
|
-
readonly seconds: number;
|
|
8
|
-
readonly short: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const periodWords: (pool: {
|
|
11
|
-
readonly kind: string;
|
|
12
|
-
readonly label?: string | undefined;
|
|
13
|
-
}) => string;
|
|
14
|
-
export declare const windowPeriod: (pool: {
|
|
15
|
-
readonly kind: string;
|
|
16
|
-
readonly label?: string | undefined;
|
|
17
|
-
}) => WindowPeriod | undefined;
|
|
5
|
+
export { type RefusedInstant, refusedInstant, refusalVerdict, refusedPoolReset, type RefusalsOnFile, type ServiceFacts, standingOver } from "./verdict/refusal-verdict.js";
|
|
6
|
+
export { periodWords, type WindowPeriod, windowPeriod } from "./verdict/window-period.js";
|
|
18
7
|
export declare const windowLive: (window: UsageWindow, measuredAt: number, now: number) => boolean;
|
|
19
8
|
export declare const currentWindows: (usage: AccountUsage, now: number) => UsageWindow[];
|
|
20
9
|
export declare const readingHeadroom: (usage: AccountUsage | undefined, model?: ModelRef) => AccountState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-pools.d.ts","sourceRoot":"","sources":["../../src/models/plan-pools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEpH,OAAO,EAA4C,KAAK,QAAQ,EAA6C,MAAM,yBAAyB,CAAC;AAC7I,OAAO,EAAE,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"plan-pools.d.ts","sourceRoot":"","sources":["../../src/models/plan-pools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEpH,OAAO,EAA4C,KAAK,QAAQ,EAA6C,MAAM,yBAAyB,CAAC;AAC7I,OAAO,EAAE,KAAK,cAAc,EAAkB,KAAK,YAAY,EAAgB,MAAM,8BAA8B,CAAC;AAMpH,OAAO,EACH,YAAY,EACZ,aAAa,EACb,UAAU,EACV,aAAa,EACb,KAAK,QAAQ,EACb,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,OAAO,GACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC3K,OAAO,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK1F,eAAO,MAAM,UAAU,WAAY,WAAW,cAAc,MAAM,OAAO,MAAM,KAAG,OAMjF,CAAC;AAkBF,eAAO,MAAM,cAAc,UAAW,YAAY,OAAO,MAAM,KAAG,WAAW,EAW5E,CAAC;AA0DF,eAAO,MAAM,eAAe,UAAW,YAAY,GAAG,SAAS,UAAU,QAAQ,KAAG,YAmBnF,CAAC;AA8CF,eAAO,MAAM,aAAa,UAAW,YAAY,GAAG,SAAS,YAAY,cAAc,UAAU,QAAQ,KAAG,YAAY,GAAG,SAIT,CAAC;AAGnH,eAAO,MAAM,aAAa,aAAc,cAAc,KAAG,eAAe,GAAG,SAC0E,CAAC;AAQtJ,eAAO,MAAM,YAAY,UAAW,YAAY,aAAY,cAAc,UAAe,QAAQ,QAAO,MAAM,KAAgB,YAkB7H,CAAC;AAuBF,eAAO,MAAM,aAAa,aACZ,SAAS,YAAY,EAAE,aACvB,cAAc,UAChB,QAAQ,QACX,MAAM,KACZ,WAAW,CAAC,MAAM,EAAE,YAAY,CAGlC,CAAC;AAGF,eAAO,MAAM,WAAW,UAAW,YAAY,KAAG,MAAM,GAAG,SAK1D,CAAC;AAOF,MAAM,MAAM,aAAa,GAEnB;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAE5B;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAG/H;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAGzI,eAAO,MAAM,OAAO,aAAc,SAAS,YAAY,EAAE,UAAU,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,KAAG,aAsBtG,CAAC;AAGF,eAAO,MAAM,aAAa,aAAc,SAAS,YAAY,EAAE,aAAY,cAAc,UAAe,QAAQ,QAAO,MAAM,KAAgB,aACzE,CAAC;AAkBrE,UAAU,aAAa;IACnB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAE7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3C;AAsBD,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,aAAa,WAAW,SAAS,CAAC,EAAE,KAAG,CAAC,GAAG,SACoC,CAAC;AAO3H,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,aAAa,WAAW,SAAS,CAAC,EAAE,KAAG,CAAC,GAAG,SACgB,CAAC"}
|