@intentic/sandbox-contract 1.423.0 → 1.424.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/runner.contract.d.ts +246 -246
- package/dist/contracts/seal.contract.d.ts +1 -25
- package/dist/contracts/seal.contract.d.ts.map +1 -1
- package/dist/contracts/seal.contract.js +3 -14
- package/dist/contracts/seal.contract.js.map +1 -1
- package/dist/schemas/seal.d.ts +2 -21
- package/dist/schemas/seal.d.ts.map +1 -1
- package/dist/schemas/seal.js +1 -16
- package/dist/schemas/seal.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/seal.contract.ts +3 -18
- package/src/schemas/seal.ts +5 -30
- package/dist/schemas/seal-proof.d.ts +0 -20
- package/dist/schemas/seal-proof.d.ts.map +0 -1
- package/dist/schemas/seal-proof.js +0 -8
- package/dist/schemas/seal-proof.js.map +0 -1
- package/src/schemas/seal-proof.ts +0 -12
|
@@ -72,37 +72,6 @@ export declare const runnerContract: {
|
|
|
72
72
|
bytesBase64: z.ZodString;
|
|
73
73
|
}, z.core.$strip>>>;
|
|
74
74
|
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
75
|
-
requestId: string;
|
|
76
|
-
text: string;
|
|
77
|
-
document?: {
|
|
78
|
-
path: string;
|
|
79
|
-
title: string;
|
|
80
|
-
markdown: string;
|
|
81
|
-
truncated?: boolean | undefined;
|
|
82
|
-
plan?: boolean | undefined;
|
|
83
|
-
} | undefined;
|
|
84
|
-
kind: "plan";
|
|
85
|
-
} | {
|
|
86
|
-
requestId: string;
|
|
87
|
-
questions: {
|
|
88
|
-
question: string;
|
|
89
|
-
header: string;
|
|
90
|
-
multiSelect: boolean;
|
|
91
|
-
options: {
|
|
92
|
-
label: string;
|
|
93
|
-
description: string;
|
|
94
|
-
preview?: string | undefined;
|
|
95
|
-
}[];
|
|
96
|
-
}[];
|
|
97
|
-
document?: {
|
|
98
|
-
path: string;
|
|
99
|
-
title: string;
|
|
100
|
-
markdown: string;
|
|
101
|
-
truncated?: boolean | undefined;
|
|
102
|
-
plan?: boolean | undefined;
|
|
103
|
-
} | undefined;
|
|
104
|
-
kind: "question";
|
|
105
|
-
} | {
|
|
106
75
|
kind: "session";
|
|
107
76
|
sessionId: string;
|
|
108
77
|
account?: string | undefined;
|
|
@@ -338,6 +307,37 @@ export declare const runnerContract: {
|
|
|
338
307
|
sent?: string | undefined;
|
|
339
308
|
kind: "agent_notice";
|
|
340
309
|
text: string;
|
|
310
|
+
} | {
|
|
311
|
+
requestId: string;
|
|
312
|
+
text: string;
|
|
313
|
+
document?: {
|
|
314
|
+
path: string;
|
|
315
|
+
title: string;
|
|
316
|
+
markdown: string;
|
|
317
|
+
truncated?: boolean | undefined;
|
|
318
|
+
plan?: boolean | undefined;
|
|
319
|
+
} | undefined;
|
|
320
|
+
kind: "plan";
|
|
321
|
+
} | {
|
|
322
|
+
requestId: string;
|
|
323
|
+
questions: {
|
|
324
|
+
question: string;
|
|
325
|
+
header: string;
|
|
326
|
+
multiSelect: boolean;
|
|
327
|
+
options: {
|
|
328
|
+
label: string;
|
|
329
|
+
description: string;
|
|
330
|
+
preview?: string | undefined;
|
|
331
|
+
}[];
|
|
332
|
+
}[];
|
|
333
|
+
document?: {
|
|
334
|
+
path: string;
|
|
335
|
+
title: string;
|
|
336
|
+
markdown: string;
|
|
337
|
+
truncated?: boolean | undefined;
|
|
338
|
+
plan?: boolean | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
kind: "question";
|
|
341
341
|
} | {
|
|
342
342
|
requestId: string;
|
|
343
343
|
session: string;
|
|
@@ -754,50 +754,6 @@ export declare const runnerContract: {
|
|
|
754
754
|
unattended?: boolean | undefined;
|
|
755
755
|
} | {
|
|
756
756
|
kind: "done";
|
|
757
|
-
} | {
|
|
758
|
-
toolName: string;
|
|
759
|
-
title?: string | undefined;
|
|
760
|
-
displayName?: string | undefined;
|
|
761
|
-
description?: string | undefined;
|
|
762
|
-
reason?: string | undefined;
|
|
763
|
-
path?: string | undefined;
|
|
764
|
-
alwaysLabel?: string | undefined;
|
|
765
|
-
alwaysAsks?: true | undefined;
|
|
766
|
-
program?: {
|
|
767
|
-
text: string;
|
|
768
|
-
language: "bash" | "javascript";
|
|
769
|
-
truncated: boolean;
|
|
770
|
-
spans: {
|
|
771
|
-
start: number;
|
|
772
|
-
end: number;
|
|
773
|
-
}[];
|
|
774
|
-
} | undefined;
|
|
775
|
-
child?: {
|
|
776
|
-
provider: string;
|
|
777
|
-
model: string;
|
|
778
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
779
|
-
account?: string | undefined;
|
|
780
|
-
effort?: string | undefined;
|
|
781
|
-
thinking?: boolean | undefined;
|
|
782
|
-
fast?: boolean | undefined;
|
|
783
|
-
move: "answer" | "send" | "spawn";
|
|
784
|
-
child?: string | undefined;
|
|
785
|
-
task?: string | undefined;
|
|
786
|
-
message?: string | undefined;
|
|
787
|
-
on?: string | undefined;
|
|
788
|
-
proposed?: {
|
|
789
|
-
provider: string;
|
|
790
|
-
model: string;
|
|
791
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
792
|
-
account?: string | undefined;
|
|
793
|
-
effort?: string | undefined;
|
|
794
|
-
thinking?: boolean | undefined;
|
|
795
|
-
fast?: boolean | undefined;
|
|
796
|
-
} | undefined;
|
|
797
|
-
} | undefined;
|
|
798
|
-
explain?: string | undefined;
|
|
799
|
-
requestId: string;
|
|
800
|
-
kind: "permission";
|
|
801
757
|
} | {
|
|
802
758
|
window: number;
|
|
803
759
|
omitted: string[];
|
|
@@ -847,54 +803,6 @@ export declare const runnerContract: {
|
|
|
847
803
|
cachedAt?: number | undefined;
|
|
848
804
|
cacheTtlMs?: number | undefined;
|
|
849
805
|
kind: "context_usage";
|
|
850
|
-
} | {
|
|
851
|
-
outcome: "connected" | "unfinished";
|
|
852
|
-
id?: string | undefined;
|
|
853
|
-
kind: "capability_outcome";
|
|
854
|
-
requestId: string;
|
|
855
|
-
} | {
|
|
856
|
-
outcome: "failed" | "paid";
|
|
857
|
-
amountUsd: string;
|
|
858
|
-
transaction?: string | undefined;
|
|
859
|
-
network?: string | undefined;
|
|
860
|
-
kind: "payment_receipt";
|
|
861
|
-
requestId: string;
|
|
862
|
-
} | {
|
|
863
|
-
outcome: "refused" | "released";
|
|
864
|
-
approvedBy?: string | undefined;
|
|
865
|
-
kind: "credential_receipt";
|
|
866
|
-
requestId: string;
|
|
867
|
-
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
868
|
-
requestId: string;
|
|
869
|
-
text: string;
|
|
870
|
-
document?: {
|
|
871
|
-
path: string;
|
|
872
|
-
title: string;
|
|
873
|
-
markdown: string;
|
|
874
|
-
truncated?: boolean | undefined;
|
|
875
|
-
plan?: boolean | undefined;
|
|
876
|
-
} | undefined;
|
|
877
|
-
kind: "plan";
|
|
878
|
-
} | {
|
|
879
|
-
requestId: string;
|
|
880
|
-
questions: {
|
|
881
|
-
question: string;
|
|
882
|
-
header: string;
|
|
883
|
-
multiSelect: boolean;
|
|
884
|
-
options: {
|
|
885
|
-
label: string;
|
|
886
|
-
description: string;
|
|
887
|
-
preview?: string | undefined;
|
|
888
|
-
}[];
|
|
889
|
-
}[];
|
|
890
|
-
document?: {
|
|
891
|
-
path: string;
|
|
892
|
-
title: string;
|
|
893
|
-
markdown: string;
|
|
894
|
-
truncated?: boolean | undefined;
|
|
895
|
-
plan?: boolean | undefined;
|
|
896
|
-
} | undefined;
|
|
897
|
-
kind: "question";
|
|
898
806
|
} | {
|
|
899
807
|
toolName: string;
|
|
900
808
|
title?: string | undefined;
|
|
@@ -940,6 +848,23 @@ export declare const runnerContract: {
|
|
|
940
848
|
requestId: string;
|
|
941
849
|
kind: "permission";
|
|
942
850
|
} | {
|
|
851
|
+
outcome: "connected" | "unfinished";
|
|
852
|
+
id?: string | undefined;
|
|
853
|
+
kind: "capability_outcome";
|
|
854
|
+
requestId: string;
|
|
855
|
+
} | {
|
|
856
|
+
outcome: "failed" | "paid";
|
|
857
|
+
amountUsd: string;
|
|
858
|
+
transaction?: string | undefined;
|
|
859
|
+
network?: string | undefined;
|
|
860
|
+
kind: "payment_receipt";
|
|
861
|
+
requestId: string;
|
|
862
|
+
} | {
|
|
863
|
+
outcome: "refused" | "released";
|
|
864
|
+
approvedBy?: string | undefined;
|
|
865
|
+
kind: "credential_receipt";
|
|
866
|
+
requestId: string;
|
|
867
|
+
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
943
868
|
kind: "session";
|
|
944
869
|
sessionId: string;
|
|
945
870
|
account?: string | undefined;
|
|
@@ -1175,6 +1100,37 @@ export declare const runnerContract: {
|
|
|
1175
1100
|
sent?: string | undefined;
|
|
1176
1101
|
kind: "agent_notice";
|
|
1177
1102
|
text: string;
|
|
1103
|
+
} | {
|
|
1104
|
+
requestId: string;
|
|
1105
|
+
text: string;
|
|
1106
|
+
document?: {
|
|
1107
|
+
path: string;
|
|
1108
|
+
title: string;
|
|
1109
|
+
markdown: string;
|
|
1110
|
+
truncated?: boolean | undefined;
|
|
1111
|
+
plan?: boolean | undefined;
|
|
1112
|
+
} | undefined;
|
|
1113
|
+
kind: "plan";
|
|
1114
|
+
} | {
|
|
1115
|
+
requestId: string;
|
|
1116
|
+
questions: {
|
|
1117
|
+
question: string;
|
|
1118
|
+
header: string;
|
|
1119
|
+
multiSelect: boolean;
|
|
1120
|
+
options: {
|
|
1121
|
+
label: string;
|
|
1122
|
+
description: string;
|
|
1123
|
+
preview?: string | undefined;
|
|
1124
|
+
}[];
|
|
1125
|
+
}[];
|
|
1126
|
+
document?: {
|
|
1127
|
+
path: string;
|
|
1128
|
+
title: string;
|
|
1129
|
+
markdown: string;
|
|
1130
|
+
truncated?: boolean | undefined;
|
|
1131
|
+
plan?: boolean | undefined;
|
|
1132
|
+
} | undefined;
|
|
1133
|
+
kind: "question";
|
|
1178
1134
|
} | {
|
|
1179
1135
|
requestId: string;
|
|
1180
1136
|
session: string;
|
|
@@ -1642,6 +1598,50 @@ export declare const runnerContract: {
|
|
|
1642
1598
|
cachedAt?: number | undefined;
|
|
1643
1599
|
cacheTtlMs?: number | undefined;
|
|
1644
1600
|
kind: "context_usage";
|
|
1601
|
+
} | {
|
|
1602
|
+
toolName: string;
|
|
1603
|
+
title?: string | undefined;
|
|
1604
|
+
displayName?: string | undefined;
|
|
1605
|
+
description?: string | undefined;
|
|
1606
|
+
reason?: string | undefined;
|
|
1607
|
+
path?: string | undefined;
|
|
1608
|
+
alwaysLabel?: string | undefined;
|
|
1609
|
+
alwaysAsks?: true | undefined;
|
|
1610
|
+
program?: {
|
|
1611
|
+
text: string;
|
|
1612
|
+
language: "bash" | "javascript";
|
|
1613
|
+
truncated: boolean;
|
|
1614
|
+
spans: {
|
|
1615
|
+
start: number;
|
|
1616
|
+
end: number;
|
|
1617
|
+
}[];
|
|
1618
|
+
} | undefined;
|
|
1619
|
+
child?: {
|
|
1620
|
+
provider: string;
|
|
1621
|
+
model: string;
|
|
1622
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
1623
|
+
account?: string | undefined;
|
|
1624
|
+
effort?: string | undefined;
|
|
1625
|
+
thinking?: boolean | undefined;
|
|
1626
|
+
fast?: boolean | undefined;
|
|
1627
|
+
move: "answer" | "send" | "spawn";
|
|
1628
|
+
child?: string | undefined;
|
|
1629
|
+
task?: string | undefined;
|
|
1630
|
+
message?: string | undefined;
|
|
1631
|
+
on?: string | undefined;
|
|
1632
|
+
proposed?: {
|
|
1633
|
+
provider: string;
|
|
1634
|
+
model: string;
|
|
1635
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
1636
|
+
account?: string | undefined;
|
|
1637
|
+
effort?: string | undefined;
|
|
1638
|
+
thinking?: boolean | undefined;
|
|
1639
|
+
fast?: boolean | undefined;
|
|
1640
|
+
} | undefined;
|
|
1641
|
+
} | undefined;
|
|
1642
|
+
explain?: string | undefined;
|
|
1643
|
+
requestId: string;
|
|
1644
|
+
kind: "permission";
|
|
1645
1645
|
} | {
|
|
1646
1646
|
outcome: "connected" | "unfinished";
|
|
1647
1647
|
id?: string | undefined;
|
|
@@ -2760,37 +2760,6 @@ export declare const runnerContract: {
|
|
|
2760
2760
|
conversationId: z.ZodString;
|
|
2761
2761
|
after: z.ZodNumber;
|
|
2762
2762
|
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
2763
|
-
requestId: string;
|
|
2764
|
-
text: string;
|
|
2765
|
-
document?: {
|
|
2766
|
-
path: string;
|
|
2767
|
-
title: string;
|
|
2768
|
-
markdown: string;
|
|
2769
|
-
truncated?: boolean | undefined;
|
|
2770
|
-
plan?: boolean | undefined;
|
|
2771
|
-
} | undefined;
|
|
2772
|
-
kind: "plan";
|
|
2773
|
-
} | {
|
|
2774
|
-
requestId: string;
|
|
2775
|
-
questions: {
|
|
2776
|
-
question: string;
|
|
2777
|
-
header: string;
|
|
2778
|
-
multiSelect: boolean;
|
|
2779
|
-
options: {
|
|
2780
|
-
label: string;
|
|
2781
|
-
description: string;
|
|
2782
|
-
preview?: string | undefined;
|
|
2783
|
-
}[];
|
|
2784
|
-
}[];
|
|
2785
|
-
document?: {
|
|
2786
|
-
path: string;
|
|
2787
|
-
title: string;
|
|
2788
|
-
markdown: string;
|
|
2789
|
-
truncated?: boolean | undefined;
|
|
2790
|
-
plan?: boolean | undefined;
|
|
2791
|
-
} | undefined;
|
|
2792
|
-
kind: "question";
|
|
2793
|
-
} | {
|
|
2794
2763
|
kind: "session";
|
|
2795
2764
|
sessionId: string;
|
|
2796
2765
|
account?: string | undefined;
|
|
@@ -3026,6 +2995,37 @@ export declare const runnerContract: {
|
|
|
3026
2995
|
sent?: string | undefined;
|
|
3027
2996
|
kind: "agent_notice";
|
|
3028
2997
|
text: string;
|
|
2998
|
+
} | {
|
|
2999
|
+
requestId: string;
|
|
3000
|
+
text: string;
|
|
3001
|
+
document?: {
|
|
3002
|
+
path: string;
|
|
3003
|
+
title: string;
|
|
3004
|
+
markdown: string;
|
|
3005
|
+
truncated?: boolean | undefined;
|
|
3006
|
+
plan?: boolean | undefined;
|
|
3007
|
+
} | undefined;
|
|
3008
|
+
kind: "plan";
|
|
3009
|
+
} | {
|
|
3010
|
+
requestId: string;
|
|
3011
|
+
questions: {
|
|
3012
|
+
question: string;
|
|
3013
|
+
header: string;
|
|
3014
|
+
multiSelect: boolean;
|
|
3015
|
+
options: {
|
|
3016
|
+
label: string;
|
|
3017
|
+
description: string;
|
|
3018
|
+
preview?: string | undefined;
|
|
3019
|
+
}[];
|
|
3020
|
+
}[];
|
|
3021
|
+
document?: {
|
|
3022
|
+
path: string;
|
|
3023
|
+
title: string;
|
|
3024
|
+
markdown: string;
|
|
3025
|
+
truncated?: boolean | undefined;
|
|
3026
|
+
plan?: boolean | undefined;
|
|
3027
|
+
} | undefined;
|
|
3028
|
+
kind: "question";
|
|
3029
3029
|
} | {
|
|
3030
3030
|
requestId: string;
|
|
3031
3031
|
session: string;
|
|
@@ -3442,50 +3442,6 @@ export declare const runnerContract: {
|
|
|
3442
3442
|
unattended?: boolean | undefined;
|
|
3443
3443
|
} | {
|
|
3444
3444
|
kind: "done";
|
|
3445
|
-
} | {
|
|
3446
|
-
toolName: string;
|
|
3447
|
-
title?: string | undefined;
|
|
3448
|
-
displayName?: string | undefined;
|
|
3449
|
-
description?: string | undefined;
|
|
3450
|
-
reason?: string | undefined;
|
|
3451
|
-
path?: string | undefined;
|
|
3452
|
-
alwaysLabel?: string | undefined;
|
|
3453
|
-
alwaysAsks?: true | undefined;
|
|
3454
|
-
program?: {
|
|
3455
|
-
text: string;
|
|
3456
|
-
language: "bash" | "javascript";
|
|
3457
|
-
truncated: boolean;
|
|
3458
|
-
spans: {
|
|
3459
|
-
start: number;
|
|
3460
|
-
end: number;
|
|
3461
|
-
}[];
|
|
3462
|
-
} | undefined;
|
|
3463
|
-
child?: {
|
|
3464
|
-
provider: string;
|
|
3465
|
-
model: string;
|
|
3466
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
3467
|
-
account?: string | undefined;
|
|
3468
|
-
effort?: string | undefined;
|
|
3469
|
-
thinking?: boolean | undefined;
|
|
3470
|
-
fast?: boolean | undefined;
|
|
3471
|
-
move: "answer" | "send" | "spawn";
|
|
3472
|
-
child?: string | undefined;
|
|
3473
|
-
task?: string | undefined;
|
|
3474
|
-
message?: string | undefined;
|
|
3475
|
-
on?: string | undefined;
|
|
3476
|
-
proposed?: {
|
|
3477
|
-
provider: string;
|
|
3478
|
-
model: string;
|
|
3479
|
-
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
3480
|
-
account?: string | undefined;
|
|
3481
|
-
effort?: string | undefined;
|
|
3482
|
-
thinking?: boolean | undefined;
|
|
3483
|
-
fast?: boolean | undefined;
|
|
3484
|
-
} | undefined;
|
|
3485
|
-
} | undefined;
|
|
3486
|
-
explain?: string | undefined;
|
|
3487
|
-
requestId: string;
|
|
3488
|
-
kind: "permission";
|
|
3489
3445
|
} | {
|
|
3490
3446
|
window: number;
|
|
3491
3447
|
omitted: string[];
|
|
@@ -3535,54 +3491,6 @@ export declare const runnerContract: {
|
|
|
3535
3491
|
cachedAt?: number | undefined;
|
|
3536
3492
|
cacheTtlMs?: number | undefined;
|
|
3537
3493
|
kind: "context_usage";
|
|
3538
|
-
} | {
|
|
3539
|
-
outcome: "connected" | "unfinished";
|
|
3540
|
-
id?: string | undefined;
|
|
3541
|
-
kind: "capability_outcome";
|
|
3542
|
-
requestId: string;
|
|
3543
|
-
} | {
|
|
3544
|
-
outcome: "failed" | "paid";
|
|
3545
|
-
amountUsd: string;
|
|
3546
|
-
transaction?: string | undefined;
|
|
3547
|
-
network?: string | undefined;
|
|
3548
|
-
kind: "payment_receipt";
|
|
3549
|
-
requestId: string;
|
|
3550
|
-
} | {
|
|
3551
|
-
outcome: "refused" | "released";
|
|
3552
|
-
approvedBy?: string | undefined;
|
|
3553
|
-
kind: "credential_receipt";
|
|
3554
|
-
requestId: string;
|
|
3555
|
-
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
3556
|
-
requestId: string;
|
|
3557
|
-
text: string;
|
|
3558
|
-
document?: {
|
|
3559
|
-
path: string;
|
|
3560
|
-
title: string;
|
|
3561
|
-
markdown: string;
|
|
3562
|
-
truncated?: boolean | undefined;
|
|
3563
|
-
plan?: boolean | undefined;
|
|
3564
|
-
} | undefined;
|
|
3565
|
-
kind: "plan";
|
|
3566
|
-
} | {
|
|
3567
|
-
requestId: string;
|
|
3568
|
-
questions: {
|
|
3569
|
-
question: string;
|
|
3570
|
-
header: string;
|
|
3571
|
-
multiSelect: boolean;
|
|
3572
|
-
options: {
|
|
3573
|
-
label: string;
|
|
3574
|
-
description: string;
|
|
3575
|
-
preview?: string | undefined;
|
|
3576
|
-
}[];
|
|
3577
|
-
}[];
|
|
3578
|
-
document?: {
|
|
3579
|
-
path: string;
|
|
3580
|
-
title: string;
|
|
3581
|
-
markdown: string;
|
|
3582
|
-
truncated?: boolean | undefined;
|
|
3583
|
-
plan?: boolean | undefined;
|
|
3584
|
-
} | undefined;
|
|
3585
|
-
kind: "question";
|
|
3586
3494
|
} | {
|
|
3587
3495
|
toolName: string;
|
|
3588
3496
|
title?: string | undefined;
|
|
@@ -3628,6 +3536,23 @@ export declare const runnerContract: {
|
|
|
3628
3536
|
requestId: string;
|
|
3629
3537
|
kind: "permission";
|
|
3630
3538
|
} | {
|
|
3539
|
+
outcome: "connected" | "unfinished";
|
|
3540
|
+
id?: string | undefined;
|
|
3541
|
+
kind: "capability_outcome";
|
|
3542
|
+
requestId: string;
|
|
3543
|
+
} | {
|
|
3544
|
+
outcome: "failed" | "paid";
|
|
3545
|
+
amountUsd: string;
|
|
3546
|
+
transaction?: string | undefined;
|
|
3547
|
+
network?: string | undefined;
|
|
3548
|
+
kind: "payment_receipt";
|
|
3549
|
+
requestId: string;
|
|
3550
|
+
} | {
|
|
3551
|
+
outcome: "refused" | "released";
|
|
3552
|
+
approvedBy?: string | undefined;
|
|
3553
|
+
kind: "credential_receipt";
|
|
3554
|
+
requestId: string;
|
|
3555
|
+
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
3631
3556
|
kind: "session";
|
|
3632
3557
|
sessionId: string;
|
|
3633
3558
|
account?: string | undefined;
|
|
@@ -3863,6 +3788,37 @@ export declare const runnerContract: {
|
|
|
3863
3788
|
sent?: string | undefined;
|
|
3864
3789
|
kind: "agent_notice";
|
|
3865
3790
|
text: string;
|
|
3791
|
+
} | {
|
|
3792
|
+
requestId: string;
|
|
3793
|
+
text: string;
|
|
3794
|
+
document?: {
|
|
3795
|
+
path: string;
|
|
3796
|
+
title: string;
|
|
3797
|
+
markdown: string;
|
|
3798
|
+
truncated?: boolean | undefined;
|
|
3799
|
+
plan?: boolean | undefined;
|
|
3800
|
+
} | undefined;
|
|
3801
|
+
kind: "plan";
|
|
3802
|
+
} | {
|
|
3803
|
+
requestId: string;
|
|
3804
|
+
questions: {
|
|
3805
|
+
question: string;
|
|
3806
|
+
header: string;
|
|
3807
|
+
multiSelect: boolean;
|
|
3808
|
+
options: {
|
|
3809
|
+
label: string;
|
|
3810
|
+
description: string;
|
|
3811
|
+
preview?: string | undefined;
|
|
3812
|
+
}[];
|
|
3813
|
+
}[];
|
|
3814
|
+
document?: {
|
|
3815
|
+
path: string;
|
|
3816
|
+
title: string;
|
|
3817
|
+
markdown: string;
|
|
3818
|
+
truncated?: boolean | undefined;
|
|
3819
|
+
plan?: boolean | undefined;
|
|
3820
|
+
} | undefined;
|
|
3821
|
+
kind: "question";
|
|
3866
3822
|
} | {
|
|
3867
3823
|
requestId: string;
|
|
3868
3824
|
session: string;
|
|
@@ -4330,6 +4286,50 @@ export declare const runnerContract: {
|
|
|
4330
4286
|
cachedAt?: number | undefined;
|
|
4331
4287
|
cacheTtlMs?: number | undefined;
|
|
4332
4288
|
kind: "context_usage";
|
|
4289
|
+
} | {
|
|
4290
|
+
toolName: string;
|
|
4291
|
+
title?: string | undefined;
|
|
4292
|
+
displayName?: string | undefined;
|
|
4293
|
+
description?: string | undefined;
|
|
4294
|
+
reason?: string | undefined;
|
|
4295
|
+
path?: string | undefined;
|
|
4296
|
+
alwaysLabel?: string | undefined;
|
|
4297
|
+
alwaysAsks?: true | undefined;
|
|
4298
|
+
program?: {
|
|
4299
|
+
text: string;
|
|
4300
|
+
language: "bash" | "javascript";
|
|
4301
|
+
truncated: boolean;
|
|
4302
|
+
spans: {
|
|
4303
|
+
start: number;
|
|
4304
|
+
end: number;
|
|
4305
|
+
}[];
|
|
4306
|
+
} | undefined;
|
|
4307
|
+
child?: {
|
|
4308
|
+
provider: string;
|
|
4309
|
+
model: string;
|
|
4310
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
4311
|
+
account?: string | undefined;
|
|
4312
|
+
effort?: string | undefined;
|
|
4313
|
+
thinking?: boolean | undefined;
|
|
4314
|
+
fast?: boolean | undefined;
|
|
4315
|
+
move: "answer" | "send" | "spawn";
|
|
4316
|
+
child?: string | undefined;
|
|
4317
|
+
task?: string | undefined;
|
|
4318
|
+
message?: string | undefined;
|
|
4319
|
+
on?: string | undefined;
|
|
4320
|
+
proposed?: {
|
|
4321
|
+
provider: string;
|
|
4322
|
+
model: string;
|
|
4323
|
+
harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
|
|
4324
|
+
account?: string | undefined;
|
|
4325
|
+
effort?: string | undefined;
|
|
4326
|
+
thinking?: boolean | undefined;
|
|
4327
|
+
fast?: boolean | undefined;
|
|
4328
|
+
} | undefined;
|
|
4329
|
+
} | undefined;
|
|
4330
|
+
explain?: string | undefined;
|
|
4331
|
+
requestId: string;
|
|
4332
|
+
kind: "permission";
|
|
4333
4333
|
} | {
|
|
4334
4334
|
outcome: "connected" | "unfinished";
|
|
4335
4335
|
id?: string | undefined;
|
|
@@ -1740,33 +1740,9 @@ export declare const sealContract: {
|
|
|
1740
1740
|
}, import("zod/v4/core").$strip>>>;
|
|
1741
1741
|
archivedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1742
1742
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
1743
|
-
prepareOpen: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1744
|
-
id: import("zod").ZodString;
|
|
1745
|
-
reason: import("zod").ZodString;
|
|
1746
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1747
|
-
document: import("zod").ZodString;
|
|
1748
|
-
rpId: import("zod").ZodString;
|
|
1749
|
-
credentials: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1750
|
-
id: import("zod").ZodString;
|
|
1751
|
-
transports: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1752
|
-
}, import("zod/v4/core").$strip>>;
|
|
1753
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
1754
1743
|
open: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1755
1744
|
id: import("zod").ZodString;
|
|
1756
|
-
|
|
1757
|
-
assertion: import("zod").ZodObject<{
|
|
1758
|
-
id: import("zod").ZodString;
|
|
1759
|
-
rawId: import("zod").ZodString;
|
|
1760
|
-
type: import("zod").ZodLiteral<"public-key">;
|
|
1761
|
-
response: import("zod").ZodObject<{
|
|
1762
|
-
clientDataJSON: import("zod").ZodString;
|
|
1763
|
-
authenticatorData: import("zod").ZodString;
|
|
1764
|
-
signature: import("zod").ZodString;
|
|
1765
|
-
userHandle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1766
|
-
}, import("zod/v4/core").$strip>;
|
|
1767
|
-
authenticatorAttachment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1768
|
-
clientExtensionResults: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1769
|
-
}, import("zod/v4/core").$strip>;
|
|
1745
|
+
reason: import("zod").ZodString;
|
|
1770
1746
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1771
1747
|
id: import("zod").ZodString;
|
|
1772
1748
|
sessionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seal.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/seal.contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"seal.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/seal.contract.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,YAAY;IACrB,KAAK;;;;;;;;;;;;;IASL,QAAQ;;;;;;;;;;;;;;;;;;;IAWR,UAAU;;;;;;;;;;;;;;;IAUV,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWd,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { procedure } from "../protocol/route-meta.js";
|
|
2
2
|
import { AgentSummarySchema } from "../schemas/agents.js";
|
|
3
|
-
import { SealAnswerSchema, SealApproveSchema, SealHouseSchema, SealIdSchema,
|
|
4
|
-
import { SealOpenProofSchema } from "../schemas/seal-proof.js";
|
|
3
|
+
import { SealAnswerSchema, SealApproveSchema, SealHouseSchema, SealIdSchema, SealOpenRequestSchema, SealSetDefaultSchema, SealSetHouseSchema, SealSetSchema, } from "../schemas/seal.js";
|
|
5
4
|
export const sealContract = {
|
|
6
5
|
house: procedure
|
|
7
6
|
.route({
|
|
@@ -61,25 +60,15 @@ export const sealContract = {
|
|
|
61
60
|
.meta({ floor: "viewer", guest: true })
|
|
62
61
|
.input(SealAnswerSchema)
|
|
63
62
|
.output(AgentSummarySchema),
|
|
64
|
-
prepareOpen: procedure
|
|
65
|
-
.route({
|
|
66
|
-
method: "POST",
|
|
67
|
-
path: "/seal/{id}/open/prepare",
|
|
68
|
-
summary: "Prepare to open a private conversation without asking",
|
|
69
|
-
description: "For the sandbox owner alone: writes the document their passkey signs to open a private conversation without asking its author, with the reason they gave. Nothing opens yet.",
|
|
70
|
-
})
|
|
71
|
-
.meta({ floor: "owner" })
|
|
72
|
-
.input(SealOpenPrepareSchema)
|
|
73
|
-
.output(SealOpenCeremonySchema),
|
|
74
63
|
open: procedure
|
|
75
64
|
.route({
|
|
76
65
|
method: "POST",
|
|
77
66
|
path: "/seal/{id}/open",
|
|
78
67
|
summary: "Open a private conversation without asking",
|
|
79
|
-
description: "For the sandbox owner alone, with
|
|
68
|
+
description: "For the sandbox owner alone, with a written reason: lets them read a private conversation for a day without its author's yes. It is read-only, its author is told at once, and the reason stays on the conversation for good. Where an organisation asks for two people, it waits for a second person with Full access to agree.",
|
|
80
69
|
})
|
|
81
70
|
.meta({ floor: "owner" })
|
|
82
|
-
.input(
|
|
71
|
+
.input(SealOpenRequestSchema)
|
|
83
72
|
.output(AgentSummarySchema),
|
|
84
73
|
approveOpen: procedure
|
|
85
74
|
.route({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seal.contract.js","sourceRoot":"","sources":["../../src/contracts/seal.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EACH,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"seal.contract.js","sourceRoot":"","sources":["../../src/contracts/seal.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EACH,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,GAChB,MAAM,oBAAoB,CAAC;AAM5B,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,KAAK,EAAE,SAAS;SACX,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,+BA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SACZ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,uBAAuB;QAChC,WAAW,EAAE,0GAA0G;KAC1H,CAAC;SACD,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;SACtC,KAAK,CAAC,gBAAgB,CAAC;SACvB,MAAM,CAAC,kBAAkB,CAAC;IAC/B,IAAI,EAAE,SAAS;SACV,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,4CAA4C;QACrD,WAAW,EACP,kUAAkU;KACzU,CAAC;SACD,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;SACxB,KAAK,CAAC,qBAAqB,CAAC;SAC5B,MAAM,CAAC,kBAAkB,CAAC;IAC/B,WAAW,EAAE,SAAS;SACjB,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,oCAAoC;QAC7C,WAAW,EACP,8LAA8L;KACrM,CAAC;SACD,IAAI,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;SAC7B,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,kBAAkB,CAAC;CAClC,CAAC"}
|
package/dist/schemas/seal.d.ts
CHANGED
|
@@ -202,34 +202,15 @@ export declare const SealAnswerSchema: z.ZodObject<{
|
|
|
202
202
|
}>;
|
|
203
203
|
}, z.core.$strip>;
|
|
204
204
|
export type SealAnswer = z.infer<typeof SealAnswerSchema>;
|
|
205
|
-
export declare const
|
|
206
|
-
v: z.ZodLiteral<1>;
|
|
207
|
-
purpose: z.ZodLiteral<"intentic-conversation-open">;
|
|
208
|
-
conversationId: z.ZodString;
|
|
209
|
-
reason: z.ZodString;
|
|
210
|
-
nonce: z.ZodString;
|
|
211
|
-
expiresAt: z.ZodNumber;
|
|
212
|
-
}, z.core.$strict>;
|
|
213
|
-
export type SealOpenDocument = z.infer<typeof SealOpenDocumentSchema>;
|
|
214
|
-
export declare const SEAL_PROOF_MAX_AGE_MS: number;
|
|
215
|
-
export declare const SealOpenPrepareSchema: z.ZodObject<{
|
|
205
|
+
export declare const SealOpenRequestSchema: z.ZodObject<{
|
|
216
206
|
id: z.ZodString;
|
|
217
207
|
reason: z.ZodString;
|
|
218
208
|
}, z.core.$strip>;
|
|
219
|
-
export
|
|
220
|
-
document: z.ZodString;
|
|
221
|
-
rpId: z.ZodString;
|
|
222
|
-
credentials: z.ZodArray<z.ZodObject<{
|
|
223
|
-
id: z.ZodString;
|
|
224
|
-
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
225
|
-
}, z.core.$strip>>;
|
|
226
|
-
}, z.core.$strip>;
|
|
227
|
-
export type SealOpenCeremony = z.infer<typeof SealOpenCeremonySchema>;
|
|
209
|
+
export type SealOpenRequest = z.infer<typeof SealOpenRequestSchema>;
|
|
228
210
|
export declare const SealApproveSchema: z.ZodObject<{
|
|
229
211
|
id: z.ZodString;
|
|
230
212
|
open: z.ZodString;
|
|
231
213
|
agree: z.ZodBoolean;
|
|
232
214
|
}, z.core.$strip>;
|
|
233
215
|
export type SealApprove = z.infer<typeof SealApproveSchema>;
|
|
234
|
-
export declare const sealOpenDocumentText: (document: SealOpenDocument) => string;
|
|
235
216
|
//# sourceMappingURL=seal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seal.d.ts","sourceRoot":"","sources":["../../src/schemas/seal.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,cAAc;;;;EAA6C,CAAC;AACzE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,eAAO,MAAM,iBAAiB,EAAE,QAAqB,CAAC;AAGtD,eAAO,MAAM,eAAe;;;;;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iB;;;;iBAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/dist/schemas/seal.js
CHANGED
|
@@ -74,24 +74,9 @@ export const SealAnswerSchema = SealIdSchema.extend({
|
|
|
74
74
|
email: z.string().min(3).max(320).describe("Whose ask this answers."),
|
|
75
75
|
answer: z.enum(["day", "always", "decline"]).describe("Show it to them for a day, add them as a reader, or say no."),
|
|
76
76
|
});
|
|
77
|
-
export const
|
|
78
|
-
v: z.literal(1),
|
|
79
|
-
purpose: z.literal("intentic-conversation-open"),
|
|
80
|
-
conversationId: z.string().min(1),
|
|
81
|
-
reason: z.string().min(SEAL_REASON_MIN).max(SEAL_REASON_MAX),
|
|
82
|
-
nonce: z.string().min(16).max(64),
|
|
83
|
-
expiresAt: z.number().int().positive(),
|
|
84
|
-
});
|
|
85
|
-
export const SEAL_PROOF_MAX_AGE_MS = 5 * 60_000;
|
|
86
|
-
export const SealOpenPrepareSchema = SealIdSchema.extend({ reason: z.string().trim().min(SEAL_REASON_MIN).max(SEAL_REASON_MAX) });
|
|
87
|
-
export const SealOpenCeremonySchema = z.object({
|
|
88
|
-
document: z.string().min(1).max(4096),
|
|
89
|
-
rpId: z.string().min(1),
|
|
90
|
-
credentials: z.array(z.object({ id: z.string(), transports: z.array(z.string()).optional() })),
|
|
91
|
-
});
|
|
77
|
+
export const SealOpenRequestSchema = SealIdSchema.extend({ reason: z.string().trim().min(SEAL_REASON_MIN).max(SEAL_REASON_MAX) });
|
|
92
78
|
export const SealApproveSchema = SealIdSchema.extend({
|
|
93
79
|
open: z.string().min(1).describe("Which opening."),
|
|
94
80
|
agree: z.boolean(),
|
|
95
81
|
});
|
|
96
|
-
export const sealOpenDocumentText = (document) => JSON.stringify(document);
|
|
97
82
|
//# sourceMappingURL=seal.js.map
|
package/dist/schemas/seal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seal.js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,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;AAGlI,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAClD,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/sandbox-contract",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.424.0",
|
|
4
4
|
"description": "oRPC wire contract for the intentic sandbox daemon, shared by the daemon and its browser client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -395,10 +395,10 @@
|
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
"dependencies": {
|
|
398
|
-
"@intentic/base": "1.
|
|
399
|
-
"@intentic/constants": "1.
|
|
400
|
-
"@intentic/extension-manifest": "1.
|
|
401
|
-
"@intentic/registry": "1.
|
|
398
|
+
"@intentic/base": "1.424.0",
|
|
399
|
+
"@intentic/constants": "1.424.0",
|
|
400
|
+
"@intentic/extension-manifest": "1.424.0",
|
|
401
|
+
"@intentic/registry": "1.424.0",
|
|
402
402
|
"@orpc/contract": "1.16.1",
|
|
403
403
|
"zod": "4.6.7"
|
|
404
404
|
},
|
|
@@ -5,13 +5,11 @@ import {
|
|
|
5
5
|
SealApproveSchema,
|
|
6
6
|
SealHouseSchema,
|
|
7
7
|
SealIdSchema,
|
|
8
|
-
|
|
9
|
-
SealOpenPrepareSchema,
|
|
8
|
+
SealOpenRequestSchema,
|
|
10
9
|
SealSetDefaultSchema,
|
|
11
10
|
SealSetHouseSchema,
|
|
12
11
|
SealSetSchema,
|
|
13
12
|
} from "../schemas/seal.js";
|
|
14
|
-
import { SealOpenProofSchema } from "../schemas/seal-proof.js";
|
|
15
13
|
|
|
16
14
|
// PRIVATE CONVERSATIONS (schemas/seal.ts). Every route here is a person's: none is open to the agent token, a panel or a
|
|
17
15
|
// control token, so no agent ever makes, reads past or opens a seal, the owner's own agents included. Each route
|
|
@@ -79,29 +77,16 @@ export const sealContract = {
|
|
|
79
77
|
.meta({ floor: "viewer", guest: true })
|
|
80
78
|
.input(SealAnswerSchema)
|
|
81
79
|
.output(AgentSummarySchema),
|
|
82
|
-
// The document is prepared here rather than in the browser so its nonce and expiry are the daemon's, and the reason
|
|
83
|
-
// the author is shown is exactly the one that was signed.
|
|
84
|
-
prepareOpen: procedure
|
|
85
|
-
.route({
|
|
86
|
-
method: "POST",
|
|
87
|
-
path: "/seal/{id}/open/prepare",
|
|
88
|
-
summary: "Prepare to open a private conversation without asking",
|
|
89
|
-
description:
|
|
90
|
-
"For the sandbox owner alone: writes the document their passkey signs to open a private conversation without asking its author, with the reason they gave. Nothing opens yet.",
|
|
91
|
-
})
|
|
92
|
-
.meta({ floor: "owner" })
|
|
93
|
-
.input(SealOpenPrepareSchema)
|
|
94
|
-
.output(SealOpenCeremonySchema),
|
|
95
80
|
open: procedure
|
|
96
81
|
.route({
|
|
97
82
|
method: "POST",
|
|
98
83
|
path: "/seal/{id}/open",
|
|
99
84
|
summary: "Open a private conversation without asking",
|
|
100
85
|
description:
|
|
101
|
-
"For the sandbox owner alone, with
|
|
86
|
+
"For the sandbox owner alone, with a written reason: lets them read a private conversation for a day without its author's yes. It is read-only, its author is told at once, and the reason stays on the conversation for good. Where an organisation asks for two people, it waits for a second person with Full access to agree.",
|
|
102
87
|
})
|
|
103
88
|
.meta({ floor: "owner" })
|
|
104
|
-
.input(
|
|
89
|
+
.input(SealOpenRequestSchema)
|
|
105
90
|
.output(AgentSummarySchema),
|
|
106
91
|
approveOpen: procedure
|
|
107
92
|
.route({
|
package/src/schemas/seal.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// event: whose it is, which lane it stands in, and its diff once there is work to land. Never its title.
|
|
5
5
|
//
|
|
6
6
|
// The owner reads a sealed conversation the way anyone else does, by asking its author. The one other door is opening it
|
|
7
|
-
// without asking: the sandbox owner alone (never Full access, never an agent), with a written reason
|
|
8
|
-
//
|
|
7
|
+
// without asking: the sandbox owner alone (never Full access, never an agent), with a written reason, read-only for a
|
|
8
|
+
// day, told to the author at once and recorded on the conversation for good.
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
// ---- The house rule ----
|
|
@@ -139,37 +139,12 @@ export const SealAnswerSchema = SealIdSchema.extend({
|
|
|
139
139
|
});
|
|
140
140
|
export type SealAnswer = z.infer<typeof SealAnswerSchema>;
|
|
141
141
|
|
|
142
|
-
//
|
|
143
|
-
|
|
144
|
-
export
|
|
145
|
-
v: z.literal(1),
|
|
146
|
-
purpose: z.literal("intentic-conversation-open"),
|
|
147
|
-
conversationId: z.string().min(1),
|
|
148
|
-
reason: z.string().min(SEAL_REASON_MIN).max(SEAL_REASON_MAX),
|
|
149
|
-
nonce: z.string().min(16).max(64),
|
|
150
|
-
expiresAt: z.number().int().positive(),
|
|
151
|
-
});
|
|
152
|
-
export type SealOpenDocument = z.infer<typeof SealOpenDocumentSchema>;
|
|
153
|
-
export const SEAL_PROOF_MAX_AGE_MS = 5 * 60_000;
|
|
154
|
-
|
|
155
|
-
export const SealOpenPrepareSchema = SealIdSchema.extend({ reason: z.string().trim().min(SEAL_REASON_MIN).max(SEAL_REASON_MAX) });
|
|
156
|
-
|
|
157
|
-
// The signed document travels as `SealOpenProofSchema` (seal-proof.ts), apart from this file so the summary schema that
|
|
158
|
-
// reads this one does not import the passkey shapes, which sit behind the event frames that import the summary.
|
|
159
|
-
|
|
160
|
-
// What the editor needs to run the ceremony: the document text to hash, the relying party and the owner's credentials.
|
|
161
|
-
export const SealOpenCeremonySchema = z.object({
|
|
162
|
-
document: z.string().min(1).max(4096),
|
|
163
|
-
rpId: z.string().min(1),
|
|
164
|
-
credentials: z.array(z.object({ id: z.string(), transports: z.array(z.string()).optional() })),
|
|
165
|
-
});
|
|
166
|
-
export type SealOpenCeremony = z.infer<typeof SealOpenCeremonySchema>;
|
|
142
|
+
// The owner's opening without asking: which conversation, and the reason its author reads.
|
|
143
|
+
export const SealOpenRequestSchema = SealIdSchema.extend({ reason: z.string().trim().min(SEAL_REASON_MIN).max(SEAL_REASON_MAX) });
|
|
144
|
+
export type SealOpenRequest = z.infer<typeof SealOpenRequestSchema>;
|
|
167
145
|
|
|
168
146
|
export const SealApproveSchema = SealIdSchema.extend({
|
|
169
147
|
open: z.string().min(1).describe("Which opening."),
|
|
170
148
|
agree: z.boolean(),
|
|
171
149
|
});
|
|
172
150
|
export type SealApprove = z.infer<typeof SealApproveSchema>;
|
|
173
|
-
|
|
174
|
-
/** The document's text as it is signed and sent. */
|
|
175
|
-
export const sealOpenDocumentText = (document: SealOpenDocument): string => JSON.stringify(document);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const SealOpenProofSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
document: z.ZodString;
|
|
5
|
-
assertion: z.ZodObject<{
|
|
6
|
-
id: z.ZodString;
|
|
7
|
-
rawId: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"public-key">;
|
|
9
|
-
response: z.ZodObject<{
|
|
10
|
-
clientDataJSON: z.ZodString;
|
|
11
|
-
authenticatorData: z.ZodString;
|
|
12
|
-
signature: z.ZodString;
|
|
13
|
-
userHandle: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
authenticatorAttachment: z.ZodOptional<z.ZodString>;
|
|
16
|
-
clientExtensionResults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export type SealOpenProof = z.infer<typeof SealOpenProofSchema>;
|
|
20
|
-
//# sourceMappingURL=seal-proof.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seal-proof.d.ts","sourceRoot":"","sources":["../../src/schemas/seal-proof.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { SealIdSchema } from "./seal.js";
|
|
3
|
-
import { AuthenticationResponseSchema } from "./system.js";
|
|
4
|
-
export const SealOpenProofSchema = SealIdSchema.extend({
|
|
5
|
-
document: z.string().min(1).max(4096).describe("The document text, byte for byte what the challenge hashed."),
|
|
6
|
-
assertion: AuthenticationResponseSchema,
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=seal-proof.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seal-proof.js","sourceRoot":"","sources":["../../src/schemas/seal-proof.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAAC;IACnD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,6DAA6D,CAAC;IAC7G,SAAS,EAAE,4BAA4B;CAC1C,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// The owner's signed yes to opening a private conversation without asking (seal.ts SealOpenDocumentSchema). Apart from
|
|
2
|
-
// seal.ts because the passkey shapes live in system.ts, whose event frames import the conversation summary, which imports
|
|
3
|
-
// seal.ts: keeping this here is what keeps that a line rather than a circle.
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import { SealIdSchema } from "./seal.js";
|
|
6
|
-
import { AuthenticationResponseSchema } from "./system.js";
|
|
7
|
-
|
|
8
|
-
export const SealOpenProofSchema = SealIdSchema.extend({
|
|
9
|
-
document: z.string().min(1).max(4096).describe("The document text, byte for byte what the challenge hashed."),
|
|
10
|
-
assertion: AuthenticationResponseSchema,
|
|
11
|
-
});
|
|
12
|
-
export type SealOpenProof = z.infer<typeof SealOpenProofSchema>;
|