@intentic/sandbox-contract 1.322.0 → 1.324.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/README.md +7 -0
- package/dist/contracts/agent.contract.d.ts +109 -6
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +13 -3
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +124 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/approvals.contract.d.ts +31 -0
- package/dist/contracts/approvals.contract.d.ts.map +1 -1
- package/dist/contracts/approvals.contract.js +2 -2
- package/dist/contracts/approvals.contract.js.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts +2 -0
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/loops.contract.d.ts +2 -0
- package/dist/contracts/loops.contract.d.ts.map +1 -1
- package/dist/contracts/needs.contract.d.ts +4 -0
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/privacy.contract.d.ts +187 -0
- package/dist/contracts/privacy.contract.d.ts.map +1 -0
- package/dist/contracts/privacy.contract.js +76 -0
- package/dist/contracts/privacy.contract.js.map +1 -0
- package/dist/contracts/runner.contract.d.ts +167 -122
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +11 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +74 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +90 -32
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +11 -1
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/usage.contract.d.ts +1 -0
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/contracts/workflows.contract.d.ts +3 -0
- package/dist/contracts/workflows.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +53 -1
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +6 -0
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/agent-ui.d.ts +33 -0
- package/dist/events/agent-ui.d.ts.map +1 -0
- package/dist/events/agent-ui.js +24 -0
- package/dist/events/agent-ui.js.map +1 -0
- package/dist/events/requests.d.ts +3 -0
- package/dist/events/requests.d.ts.map +1 -1
- package/dist/events/requests.js +4 -0
- package/dist/events/requests.js.map +1 -1
- package/dist/events/resume.d.ts +1 -0
- package/dist/events/resume.d.ts.map +1 -1
- package/dist/events/resume.js +7 -1
- package/dist/events/resume.js.map +1 -1
- package/dist/events/sandbox-notice.d.ts +2 -0
- package/dist/events/sandbox-notice.d.ts.map +1 -1
- package/dist/events/sandbox-notice.js +1 -1
- package/dist/events/sandbox-notice.js.map +1 -1
- package/dist/events/system-events.d.ts +15 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/system-events.js +1 -0
- package/dist/events/system-events.js.map +1 -1
- package/dist/events/transcript.d.ts +70 -0
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/events/transcript.js +44 -14
- package/dist/events/transcript.js.map +1 -1
- package/dist/front/generated/browser-wire.d.ts +4 -0
- package/dist/front/generated/browser-wire.d.ts.map +1 -1
- package/dist/index.d.ts +640 -38
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/models/agent-runtimes.d.ts +1 -0
- package/dist/models/agent-runtimes.d.ts.map +1 -1
- package/dist/models/agent-runtimes.js +6 -0
- package/dist/models/agent-runtimes.js.map +1 -1
- package/dist/policy/request-status.d.ts.map +1 -1
- package/dist/policy/request-status.js +16 -7
- package/dist/policy/request-status.js.map +1 -1
- package/dist/policy/turned-away.d.ts.map +1 -1
- package/dist/policy/turned-away.js +1 -0
- package/dist/policy/turned-away.js.map +1 -1
- package/dist/protocol/raw-routes.d.ts +12 -0
- package/dist/protocol/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw-routes.js +3 -0
- package/dist/protocol/raw-routes.js.map +1 -1
- package/dist/schemas/agent.d.ts +97 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +20 -2
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents.d.ts +18 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +9 -2
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/approvals.d.ts +102 -0
- package/dist/schemas/approvals.d.ts.map +1 -1
- package/dist/schemas/approvals.js +45 -4
- package/dist/schemas/approvals.js.map +1 -1
- package/dist/schemas/automations.d.ts +6 -0
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/capabilities.d.ts +2 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +10 -1
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/git/git.d.ts.map +1 -1
- package/dist/schemas/git/git.js.map +1 -1
- package/dist/schemas/logs.d.ts +1 -0
- package/dist/schemas/logs.d.ts.map +1 -1
- package/dist/schemas/logs.js +4 -0
- package/dist/schemas/logs.js.map +1 -1
- package/dist/schemas/loops.d.ts +3 -0
- package/dist/schemas/loops.d.ts.map +1 -1
- package/dist/schemas/loops.js +1 -1
- package/dist/schemas/loops.js.map +1 -1
- package/dist/schemas/needs.d.ts +6 -0
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +13 -3
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/platform-link.d.ts +50 -0
- package/dist/schemas/platform-link.d.ts.map +1 -0
- package/dist/schemas/platform-link.js +19 -0
- package/dist/schemas/platform-link.js.map +1 -0
- package/dist/schemas/privacy.d.ts +277 -0
- package/dist/schemas/privacy.d.ts.map +1 -0
- package/dist/schemas/privacy.js +127 -0
- package/dist/schemas/privacy.js.map +1 -0
- package/dist/schemas/providers/plan-limits.d.ts +8 -0
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.js +25 -4
- package/dist/schemas/providers/plan-limits.js.map +1 -1
- package/dist/schemas/providers/usage.d.ts +4 -0
- package/dist/schemas/providers/usage.d.ts.map +1 -1
- package/dist/schemas/providers/usage.js +5 -2
- package/dist/schemas/providers/usage.js.map +1 -1
- package/dist/schemas/push.d.ts +1 -0
- package/dist/schemas/push.d.ts.map +1 -1
- package/dist/schemas/push.js +4 -0
- package/dist/schemas/push.js.map +1 -1
- package/dist/schemas/settings.d.ts +80 -0
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +14 -3
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/system.d.ts +17 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +2 -1
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/updates.d.ts +30 -0
- package/dist/schemas/updates.d.ts.map +1 -1
- package/dist/schemas/updates.js +37 -0
- package/dist/schemas/updates.js.map +1 -1
- package/dist/schemas/workflows.d.ts +5 -0
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/state/definition.d.ts +10 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/history-state.d.ts.map +1 -1
- package/dist/state/history-state.js +1 -0
- package/dist/state/history-state.js.map +1 -1
- package/dist/state/runtime-state.d.ts +3 -0
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +1 -0
- package/dist/state/runtime-state.js.map +1 -1
- package/dist/state/workspace-state.d.ts +17 -1
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +20 -1
- package/dist/state/workspace-state.js.map +1 -1
- package/dist/text/transcript-fold.d.ts.map +1 -1
- package/dist/text/transcript-fold.js +9 -0
- package/dist/text/transcript-fold.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/agent.contract.ts +16 -3
- package/src/contracts/approvals.contract.ts +2 -2
- package/src/contracts/privacy.contract.ts +95 -0
- package/src/contracts/system.contract.ts +14 -1
- package/src/events/agent-events.ts +11 -0
- package/src/events/agent-ui.ts +40 -0
- package/src/events/requests.ts +6 -0
- package/src/events/resume.test.ts +13 -0
- package/src/events/resume.ts +11 -2
- package/src/events/sandbox-notice.ts +1 -1
- package/src/events/system-events.ts +2 -0
- package/src/events/transcript.ts +84 -20
- package/src/front/generated/browser-wire.json +27 -0
- package/src/front/generated/browser-wire.ts +1 -1
- package/src/index.ts +6 -0
- package/src/models/agent-catalog.test.ts +1 -0
- package/src/models/agent-runtimes.ts +17 -0
- package/src/models/capability-ledger.test.ts +3 -0
- package/src/policy/request-status.ts +19 -9
- package/src/policy/turned-away.ts +2 -0
- package/src/protocol/raw-routes.ts +9 -0
- package/src/schemas/agent.ts +36 -4
- package/src/schemas/agents.ts +17 -4
- package/src/schemas/approvals.ts +59 -4
- package/src/schemas/automations.ts +4 -4
- package/src/schemas/capabilities.ts +15 -2
- package/src/schemas/ci.ts +1 -1
- package/src/schemas/git/git.ts +1 -0
- package/src/schemas/logs.ts +6 -0
- package/src/schemas/loops.ts +2 -1
- package/src/schemas/needs.ts +18 -3
- package/src/schemas/platform-link.ts +42 -0
- package/src/schemas/privacy.ts +204 -0
- package/src/schemas/providers/plan-limits.ts +38 -5
- package/src/schemas/providers/usage.ts +13 -2
- package/src/schemas/push.ts +7 -0
- package/src/schemas/settings-history.ts +3 -3
- package/src/schemas/settings.test.ts +5 -5
- package/src/schemas/settings.ts +47 -19
- package/src/schemas/system.ts +6 -1
- package/src/schemas/updates.ts +71 -0
- package/src/state/history-state.ts +3 -0
- package/src/state/runtime-state.ts +4 -0
- package/src/state/workspace-state.test.ts +8 -2
- package/src/state/workspace-state.ts +32 -2
- package/src/text/transcript-fold.test.ts +15 -0
- package/src/text/transcript-fold.ts +10 -0
package/README.md
CHANGED
|
@@ -40,6 +40,13 @@ flowchart LR
|
|
|
40
40
|
editor says it in the reader's language and audience. On the wire the code is any string; `SandboxNoticeSchema` is
|
|
41
41
|
the typed list a reader decodes with, and a code it does not know draws `text`. (2026-09-29: a closed enum was
|
|
42
42
|
rejected, since the editor parses every answer with its own schema and one newer code would fail the whole page.)
|
|
43
|
+
- What a runtime's own extensions show has one lane, whichever runtime ran them (`src/events/agent-ui.ts`). An
|
|
44
|
+
`agent_status` frame is a keyed status entry (text, or null to clear it), a turn fact that replays to a late joiner and
|
|
45
|
+
is gone when the turn ends. An `agent_notice` frame (level `info` · `warning` · `error`, text, optional `source`) folds
|
|
46
|
+
into a `notice` row carrying `agentNotice`, so a reopened chat still says it. A dialog an extension opens is not part of
|
|
47
|
+
this lane: it rides the ordinary `question` card. Pi's extension UI and the Claude Code loop's informational lines
|
|
48
|
+
feed it today. (2026-10-04: a widget kind of its own was rejected: a widget's lines are a status entry's text, and
|
|
49
|
+
nothing yet draws a placement beside a composer.)
|
|
43
50
|
- `StatePlanSchema` and `StateStatusSchema` are what `ic` reads by field name: the update pre-flight's line (embedded
|
|
44
51
|
verbatim in the staged-update marker) and `/health`'s `state`. `golden/` holds their examples, which the contract's
|
|
45
52
|
test keeps current and ic's Rust tests parse.
|
|
@@ -88,6 +88,9 @@ export declare const agentContract: {
|
|
|
88
88
|
selection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
89
89
|
}, import("zod/v4/core").$strip>>;
|
|
90
90
|
sendAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
91
|
+
sendAfter: import("zod").ZodOptional<import("zod").ZodString>;
|
|
92
|
+
conversationAutoLand: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
93
|
+
continues: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
91
94
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
92
95
|
delivered: import("zod").ZodEnum<{
|
|
93
96
|
queued: "queued";
|
|
@@ -156,6 +159,10 @@ export declare const agentContract: {
|
|
|
156
159
|
code: string;
|
|
157
160
|
params?: Record<string, string | number | boolean> | undefined;
|
|
158
161
|
} | undefined;
|
|
162
|
+
agentNotice?: {
|
|
163
|
+
level: "error" | "info" | "warning";
|
|
164
|
+
source?: string | undefined;
|
|
165
|
+
} | undefined;
|
|
159
166
|
plan?: {
|
|
160
167
|
requestId: string;
|
|
161
168
|
text: string;
|
|
@@ -189,6 +196,7 @@ export declare const agentContract: {
|
|
|
189
196
|
} | undefined;
|
|
190
197
|
status: "answered" | "cancelled" | "pending";
|
|
191
198
|
answers?: Record<string, string[]> | undefined;
|
|
199
|
+
attachments?: Record<string, string[]> | undefined;
|
|
192
200
|
} | undefined;
|
|
193
201
|
permission?: {
|
|
194
202
|
toolName: string;
|
|
@@ -198,6 +206,7 @@ export declare const agentContract: {
|
|
|
198
206
|
reason?: string | undefined;
|
|
199
207
|
path?: string | undefined;
|
|
200
208
|
alwaysLabel?: string | undefined;
|
|
209
|
+
alwaysAsks?: true | undefined;
|
|
201
210
|
program?: {
|
|
202
211
|
text: string;
|
|
203
212
|
language: "bash" | "javascript";
|
|
@@ -232,7 +241,7 @@ export declare const agentContract: {
|
|
|
232
241
|
} | undefined;
|
|
233
242
|
explain?: string | undefined;
|
|
234
243
|
requestId: string;
|
|
235
|
-
status: "allowed" | "always" | "cancelled" | "denied" | "pending";
|
|
244
|
+
status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
|
|
236
245
|
} | undefined;
|
|
237
246
|
browserHelp?: {
|
|
238
247
|
requestId: string;
|
|
@@ -429,6 +438,10 @@ export declare const agentContract: {
|
|
|
429
438
|
code: string;
|
|
430
439
|
params?: Record<string, string | number | boolean> | undefined;
|
|
431
440
|
} | undefined;
|
|
441
|
+
agentNotice?: {
|
|
442
|
+
level: "error" | "info" | "warning";
|
|
443
|
+
source?: string | undefined;
|
|
444
|
+
} | undefined;
|
|
432
445
|
plan?: {
|
|
433
446
|
requestId: string;
|
|
434
447
|
text: string;
|
|
@@ -462,6 +475,7 @@ export declare const agentContract: {
|
|
|
462
475
|
} | undefined;
|
|
463
476
|
status: "answered" | "cancelled" | "pending";
|
|
464
477
|
answers?: Record<string, string[]> | undefined;
|
|
478
|
+
attachments?: Record<string, string[]> | undefined;
|
|
465
479
|
} | undefined;
|
|
466
480
|
permission?: {
|
|
467
481
|
toolName: string;
|
|
@@ -471,6 +485,7 @@ export declare const agentContract: {
|
|
|
471
485
|
reason?: string | undefined;
|
|
472
486
|
path?: string | undefined;
|
|
473
487
|
alwaysLabel?: string | undefined;
|
|
488
|
+
alwaysAsks?: true | undefined;
|
|
474
489
|
program?: {
|
|
475
490
|
text: string;
|
|
476
491
|
language: "bash" | "javascript";
|
|
@@ -505,7 +520,7 @@ export declare const agentContract: {
|
|
|
505
520
|
} | undefined;
|
|
506
521
|
explain?: string | undefined;
|
|
507
522
|
requestId: string;
|
|
508
|
-
status: "allowed" | "always" | "cancelled" | "denied" | "pending";
|
|
523
|
+
status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
|
|
509
524
|
} | undefined;
|
|
510
525
|
browserHelp?: {
|
|
511
526
|
requestId: string;
|
|
@@ -700,6 +715,10 @@ export declare const agentContract: {
|
|
|
700
715
|
code: string;
|
|
701
716
|
params?: Record<string, string | number | boolean> | undefined;
|
|
702
717
|
} | undefined;
|
|
718
|
+
agentNotice?: {
|
|
719
|
+
level: "error" | "info" | "warning";
|
|
720
|
+
source?: string | undefined;
|
|
721
|
+
} | undefined;
|
|
703
722
|
plan?: {
|
|
704
723
|
requestId: string;
|
|
705
724
|
text: string;
|
|
@@ -733,6 +752,7 @@ export declare const agentContract: {
|
|
|
733
752
|
} | undefined;
|
|
734
753
|
status: "answered" | "cancelled" | "pending";
|
|
735
754
|
answers?: Record<string, string[]> | undefined;
|
|
755
|
+
attachments?: Record<string, string[]> | undefined;
|
|
736
756
|
} | undefined;
|
|
737
757
|
permission?: {
|
|
738
758
|
toolName: string;
|
|
@@ -742,6 +762,7 @@ export declare const agentContract: {
|
|
|
742
762
|
reason?: string | undefined;
|
|
743
763
|
path?: string | undefined;
|
|
744
764
|
alwaysLabel?: string | undefined;
|
|
765
|
+
alwaysAsks?: true | undefined;
|
|
745
766
|
program?: {
|
|
746
767
|
text: string;
|
|
747
768
|
language: "bash" | "javascript";
|
|
@@ -776,7 +797,7 @@ export declare const agentContract: {
|
|
|
776
797
|
} | undefined;
|
|
777
798
|
explain?: string | undefined;
|
|
778
799
|
requestId: string;
|
|
779
|
-
status: "allowed" | "always" | "cancelled" | "denied" | "pending";
|
|
800
|
+
status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
|
|
780
801
|
} | undefined;
|
|
781
802
|
browserHelp?: {
|
|
782
803
|
requestId: string;
|
|
@@ -1001,6 +1022,10 @@ export declare const agentContract: {
|
|
|
1001
1022
|
code: string;
|
|
1002
1023
|
params?: Record<string, string | number | boolean> | undefined;
|
|
1003
1024
|
} | undefined;
|
|
1025
|
+
agentNotice?: {
|
|
1026
|
+
level: "error" | "info" | "warning";
|
|
1027
|
+
source?: string | undefined;
|
|
1028
|
+
} | undefined;
|
|
1004
1029
|
plan?: {
|
|
1005
1030
|
requestId: string;
|
|
1006
1031
|
text: string;
|
|
@@ -1034,6 +1059,7 @@ export declare const agentContract: {
|
|
|
1034
1059
|
} | undefined;
|
|
1035
1060
|
status: "answered" | "cancelled" | "pending";
|
|
1036
1061
|
answers?: Record<string, string[]> | undefined;
|
|
1062
|
+
attachments?: Record<string, string[]> | undefined;
|
|
1037
1063
|
} | undefined;
|
|
1038
1064
|
permission?: {
|
|
1039
1065
|
toolName: string;
|
|
@@ -1043,6 +1069,7 @@ export declare const agentContract: {
|
|
|
1043
1069
|
reason?: string | undefined;
|
|
1044
1070
|
path?: string | undefined;
|
|
1045
1071
|
alwaysLabel?: string | undefined;
|
|
1072
|
+
alwaysAsks?: true | undefined;
|
|
1046
1073
|
program?: {
|
|
1047
1074
|
text: string;
|
|
1048
1075
|
language: "bash" | "javascript";
|
|
@@ -1077,7 +1104,7 @@ export declare const agentContract: {
|
|
|
1077
1104
|
} | undefined;
|
|
1078
1105
|
explain?: string | undefined;
|
|
1079
1106
|
requestId: string;
|
|
1080
|
-
status: "allowed" | "always" | "cancelled" | "denied" | "pending";
|
|
1107
|
+
status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
|
|
1081
1108
|
} | undefined;
|
|
1082
1109
|
browserHelp?: {
|
|
1083
1110
|
requestId: string;
|
|
@@ -1274,6 +1301,10 @@ export declare const agentContract: {
|
|
|
1274
1301
|
code: string;
|
|
1275
1302
|
params?: Record<string, string | number | boolean> | undefined;
|
|
1276
1303
|
} | undefined;
|
|
1304
|
+
agentNotice?: {
|
|
1305
|
+
level: "error" | "info" | "warning";
|
|
1306
|
+
source?: string | undefined;
|
|
1307
|
+
} | undefined;
|
|
1277
1308
|
plan?: {
|
|
1278
1309
|
requestId: string;
|
|
1279
1310
|
text: string;
|
|
@@ -1307,6 +1338,7 @@ export declare const agentContract: {
|
|
|
1307
1338
|
} | undefined;
|
|
1308
1339
|
status: "answered" | "cancelled" | "pending";
|
|
1309
1340
|
answers?: Record<string, string[]> | undefined;
|
|
1341
|
+
attachments?: Record<string, string[]> | undefined;
|
|
1310
1342
|
} | undefined;
|
|
1311
1343
|
permission?: {
|
|
1312
1344
|
toolName: string;
|
|
@@ -1316,6 +1348,7 @@ export declare const agentContract: {
|
|
|
1316
1348
|
reason?: string | undefined;
|
|
1317
1349
|
path?: string | undefined;
|
|
1318
1350
|
alwaysLabel?: string | undefined;
|
|
1351
|
+
alwaysAsks?: true | undefined;
|
|
1319
1352
|
program?: {
|
|
1320
1353
|
text: string;
|
|
1321
1354
|
language: "bash" | "javascript";
|
|
@@ -1350,7 +1383,7 @@ export declare const agentContract: {
|
|
|
1350
1383
|
} | undefined;
|
|
1351
1384
|
explain?: string | undefined;
|
|
1352
1385
|
requestId: string;
|
|
1353
|
-
status: "allowed" | "always" | "cancelled" | "denied" | "pending";
|
|
1386
|
+
status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
|
|
1354
1387
|
} | undefined;
|
|
1355
1388
|
browserHelp?: {
|
|
1356
1389
|
requestId: string;
|
|
@@ -1545,6 +1578,10 @@ export declare const agentContract: {
|
|
|
1545
1578
|
code: string;
|
|
1546
1579
|
params?: Record<string, string | number | boolean> | undefined;
|
|
1547
1580
|
} | undefined;
|
|
1581
|
+
agentNotice?: {
|
|
1582
|
+
level: "error" | "info" | "warning";
|
|
1583
|
+
source?: string | undefined;
|
|
1584
|
+
} | undefined;
|
|
1548
1585
|
plan?: {
|
|
1549
1586
|
requestId: string;
|
|
1550
1587
|
text: string;
|
|
@@ -1578,6 +1615,7 @@ export declare const agentContract: {
|
|
|
1578
1615
|
} | undefined;
|
|
1579
1616
|
status: "answered" | "cancelled" | "pending";
|
|
1580
1617
|
answers?: Record<string, string[]> | undefined;
|
|
1618
|
+
attachments?: Record<string, string[]> | undefined;
|
|
1581
1619
|
} | undefined;
|
|
1582
1620
|
permission?: {
|
|
1583
1621
|
toolName: string;
|
|
@@ -1587,6 +1625,7 @@ export declare const agentContract: {
|
|
|
1587
1625
|
reason?: string | undefined;
|
|
1588
1626
|
path?: string | undefined;
|
|
1589
1627
|
alwaysLabel?: string | undefined;
|
|
1628
|
+
alwaysAsks?: true | undefined;
|
|
1590
1629
|
program?: {
|
|
1591
1630
|
text: string;
|
|
1592
1631
|
language: "bash" | "javascript";
|
|
@@ -1621,7 +1660,7 @@ export declare const agentContract: {
|
|
|
1621
1660
|
} | undefined;
|
|
1622
1661
|
explain?: string | undefined;
|
|
1623
1662
|
requestId: string;
|
|
1624
|
-
status: "allowed" | "always" | "cancelled" | "denied" | "pending";
|
|
1663
|
+
status: "allowed" | "always" | "cancelled" | "denied" | "everything" | "pending";
|
|
1625
1664
|
} | undefined;
|
|
1626
1665
|
browserHelp?: {
|
|
1627
1666
|
requestId: string;
|
|
@@ -1877,6 +1916,14 @@ export declare const agentContract: {
|
|
|
1877
1916
|
code: import("zod").ZodString;
|
|
1878
1917
|
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>>;
|
|
1879
1918
|
}, import("zod/v4/core").$strip>>;
|
|
1919
|
+
agentNotice: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1920
|
+
level: import("zod").ZodEnum<{
|
|
1921
|
+
error: "error";
|
|
1922
|
+
info: "info";
|
|
1923
|
+
warning: "warning";
|
|
1924
|
+
}>;
|
|
1925
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1926
|
+
}, import("zod/v4/core").$strip>>;
|
|
1880
1927
|
plan: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1881
1928
|
requestId: import("zod").ZodString;
|
|
1882
1929
|
text: import("zod").ZodString;
|
|
@@ -1919,6 +1966,7 @@ export declare const agentContract: {
|
|
|
1919
1966
|
pending: "pending";
|
|
1920
1967
|
}>;
|
|
1921
1968
|
answers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
1969
|
+
attachments: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
1922
1970
|
}, import("zod/v4/core").$strip>>;
|
|
1923
1971
|
permission: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1924
1972
|
toolName: import("zod").ZodString;
|
|
@@ -1928,6 +1976,7 @@ export declare const agentContract: {
|
|
|
1928
1976
|
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1929
1977
|
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1930
1978
|
alwaysLabel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1979
|
+
alwaysAsks: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
1931
1980
|
program: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1932
1981
|
text: import("zod").ZodString;
|
|
1933
1982
|
language: import("zod").ZodEnum<{
|
|
@@ -1980,6 +2029,7 @@ export declare const agentContract: {
|
|
|
1980
2029
|
always: "always";
|
|
1981
2030
|
cancelled: "cancelled";
|
|
1982
2031
|
denied: "denied";
|
|
2032
|
+
everything: "everything";
|
|
1983
2033
|
pending: "pending";
|
|
1984
2034
|
}>;
|
|
1985
2035
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -2287,6 +2337,14 @@ export declare const agentContract: {
|
|
|
2287
2337
|
code: import("zod").ZodString;
|
|
2288
2338
|
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>>;
|
|
2289
2339
|
}, import("zod/v4/core").$strip>>;
|
|
2340
|
+
agentNotice: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2341
|
+
level: import("zod").ZodEnum<{
|
|
2342
|
+
error: "error";
|
|
2343
|
+
info: "info";
|
|
2344
|
+
warning: "warning";
|
|
2345
|
+
}>;
|
|
2346
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2347
|
+
}, import("zod/v4/core").$strip>>;
|
|
2290
2348
|
plan: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2291
2349
|
requestId: import("zod").ZodString;
|
|
2292
2350
|
text: import("zod").ZodString;
|
|
@@ -2329,6 +2387,7 @@ export declare const agentContract: {
|
|
|
2329
2387
|
pending: "pending";
|
|
2330
2388
|
}>;
|
|
2331
2389
|
answers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
2390
|
+
attachments: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
2332
2391
|
}, import("zod/v4/core").$strip>>;
|
|
2333
2392
|
permission: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2334
2393
|
toolName: import("zod").ZodString;
|
|
@@ -2338,6 +2397,7 @@ export declare const agentContract: {
|
|
|
2338
2397
|
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2339
2398
|
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2340
2399
|
alwaysLabel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2400
|
+
alwaysAsks: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
2341
2401
|
program: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2342
2402
|
text: import("zod").ZodString;
|
|
2343
2403
|
language: import("zod").ZodEnum<{
|
|
@@ -2390,6 +2450,7 @@ export declare const agentContract: {
|
|
|
2390
2450
|
always: "always";
|
|
2391
2451
|
cancelled: "cancelled";
|
|
2392
2452
|
denied: "denied";
|
|
2453
|
+
everything: "everything";
|
|
2393
2454
|
pending: "pending";
|
|
2394
2455
|
}>;
|
|
2395
2456
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -2695,6 +2756,14 @@ export declare const agentContract: {
|
|
|
2695
2756
|
code: import("zod").ZodString;
|
|
2696
2757
|
params: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>>;
|
|
2697
2758
|
}, import("zod/v4/core").$strip>>;
|
|
2759
|
+
agentNotice: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2760
|
+
level: import("zod").ZodEnum<{
|
|
2761
|
+
error: "error";
|
|
2762
|
+
info: "info";
|
|
2763
|
+
warning: "warning";
|
|
2764
|
+
}>;
|
|
2765
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2766
|
+
}, import("zod/v4/core").$strip>>;
|
|
2698
2767
|
plan: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2699
2768
|
requestId: import("zod").ZodString;
|
|
2700
2769
|
text: import("zod").ZodString;
|
|
@@ -2737,6 +2806,7 @@ export declare const agentContract: {
|
|
|
2737
2806
|
pending: "pending";
|
|
2738
2807
|
}>;
|
|
2739
2808
|
answers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
2809
|
+
attachments: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
2740
2810
|
}, import("zod/v4/core").$strip>>;
|
|
2741
2811
|
permission: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2742
2812
|
toolName: import("zod").ZodString;
|
|
@@ -2746,6 +2816,7 @@ export declare const agentContract: {
|
|
|
2746
2816
|
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2747
2817
|
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2748
2818
|
alwaysLabel: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2819
|
+
alwaysAsks: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
2749
2820
|
program: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2750
2821
|
text: import("zod").ZodString;
|
|
2751
2822
|
language: import("zod").ZodEnum<{
|
|
@@ -2798,6 +2869,7 @@ export declare const agentContract: {
|
|
|
2798
2869
|
always: "always";
|
|
2799
2870
|
cancelled: "cancelled";
|
|
2800
2871
|
denied: "denied";
|
|
2872
|
+
everything: "everything";
|
|
2801
2873
|
pending: "pending";
|
|
2802
2874
|
}>;
|
|
2803
2875
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -3058,6 +3130,7 @@ export declare const agentContract: {
|
|
|
3058
3130
|
kind: import("zod").ZodLiteral<"question">;
|
|
3059
3131
|
requestId: import("zod").ZodString;
|
|
3060
3132
|
answers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
3133
|
+
attachments: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
3061
3134
|
cancelled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
3062
3135
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
3063
3136
|
kind: import("zod").ZodLiteral<"permission">;
|
|
@@ -3065,6 +3138,7 @@ export declare const agentContract: {
|
|
|
3065
3138
|
decision: import("zod").ZodEnum<{
|
|
3066
3139
|
always: "always";
|
|
3067
3140
|
deny: "deny";
|
|
3141
|
+
everything: "everything";
|
|
3068
3142
|
once: "once";
|
|
3069
3143
|
}>;
|
|
3070
3144
|
feedback: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -3164,6 +3238,7 @@ export declare const agentContract: {
|
|
|
3164
3238
|
stopped: "stopped";
|
|
3165
3239
|
}>>;
|
|
3166
3240
|
until: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3241
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3167
3242
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
3168
3243
|
queueRemove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3169
3244
|
conversationId: import("zod").ZodString;
|
|
@@ -3189,6 +3264,7 @@ export declare const agentContract: {
|
|
|
3189
3264
|
stopped: "stopped";
|
|
3190
3265
|
}>>;
|
|
3191
3266
|
until: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3267
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3192
3268
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
3193
3269
|
queueResume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3194
3270
|
conversationId: import("zod").ZodString;
|
|
@@ -3224,7 +3300,34 @@ export declare const agentContract: {
|
|
|
3224
3300
|
stopped: "stopped";
|
|
3225
3301
|
}>>;
|
|
3226
3302
|
until: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3303
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3304
|
+
}, import("zod/v4/core").$strip>>;
|
|
3305
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
3306
|
+
queueSchedule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3307
|
+
conversationId: import("zod").ZodString;
|
|
3308
|
+
sendAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3309
|
+
sendAfter: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3310
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
3311
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3312
|
+
id: import("zod").ZodString;
|
|
3313
|
+
text: import("zod").ZodString;
|
|
3314
|
+
attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
3315
|
+
voice: import("zod").ZodEnum<{
|
|
3316
|
+
agent: "agent";
|
|
3317
|
+
person: "person";
|
|
3318
|
+
sandbox: "sandbox";
|
|
3319
|
+
}>;
|
|
3320
|
+
queuedAt: import("zod").ZodNumber;
|
|
3321
|
+
revision: import("zod").ZodNumber;
|
|
3227
3322
|
}, import("zod/v4/core").$strip>>;
|
|
3323
|
+
revision: import("zod").ZodNumber;
|
|
3324
|
+
paused: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
3325
|
+
refused: "refused";
|
|
3326
|
+
scheduled: "scheduled";
|
|
3327
|
+
stopped: "stopped";
|
|
3328
|
+
}>>;
|
|
3329
|
+
until: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3330
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3228
3331
|
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
3229
3332
|
resume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3230
3333
|
conversationId: import("zod").ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agent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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYN,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWL,KAAK;;;;;;;;;;;;;;;;;;;;;IAWL,IAAI;;;;;;;;;;;;;IAYJ,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYT,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;IAWX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYX,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;IAYb,MAAM;;;;;;;;;;;;;;;IAaN,aAAa;;;;;;;;IAab,MAAM;;;;;;;;IAWN,QAAQ;;;;;;;;;IAaR,SAAS;;;;;;;;;;;;;;;;;;;;;;;;IAYT,QAAQ;;;;;;;;;;;;;;CAUX,CAAC"}
|
|
@@ -2,10 +2,10 @@ import { procedure } from "../protocol/route-meta.js";
|
|
|
2
2
|
import { streamOf } from "../protocol/routes.js";
|
|
3
3
|
import { AgentCommandsQuerySchema, AgentCommandsSchema } from "../events/requests.js";
|
|
4
4
|
import { AttachFrameSchema } from "../events/agent-events.js";
|
|
5
|
-
import {
|
|
5
|
+
import { AgentRunSchema, AttachTurnSchema, ConversationQueueSchema, MessageReceiptSchema, QueueResumedSchema, StartedTurnSchema } from "../schemas/agent.js";
|
|
6
6
|
import { ChatRouteAskSchema, ChatRouteSchema } from "../schemas/chat-route.js";
|
|
7
7
|
import { RewindResultSchema, RewindTurnSchema } from "../schemas/history.js";
|
|
8
|
-
import { AgentReplySchema, ProviderRefusalsSchema, QueuedMessageRefSchema, QueueEditSchema, QueueResumeSchema, ResumeTurnSchema, AccountSwitchedSchema, SteerSchema, SwitchAccountSchema, StopResultSchema, StopTurnSchema, } from "../schemas/providers/plan-limits.js";
|
|
8
|
+
import { AgentReplySchema, ProviderRefusalsSchema, QueuedMessageRefSchema, QueueEditSchema, QueueResumeSchema, QueueScheduleSchema, ResumeTurnSchema, AccountSwitchedSchema, SteerSchema, SwitchAccountSchema, StopResultSchema, StopTurnSchema, } from "../schemas/providers/plan-limits.js";
|
|
9
9
|
import { OkSchema } from "../schemas/shared.js";
|
|
10
10
|
export const agentContract = {
|
|
11
11
|
run: procedure
|
|
@@ -16,7 +16,7 @@ export const agentContract = {
|
|
|
16
16
|
description: "Answers at once with what became of the message: it starts a turn when the conversation is free, is said into the running turn where that turn takes words mid-way, and otherwise waits in the conversation's queue for the next turn, where every window sees it. The work runs inside the sandbox whether or not anybody stays connected; watch it by attaching. Naming a conversation that does not exist yet opens it. Give the message an id, and sending it again after a lost answer is met with what became of it the first time rather than a second delivery.",
|
|
17
17
|
})
|
|
18
18
|
.meta({ floor: "collaborator", guest: true, control: "editor" })
|
|
19
|
-
.input(
|
|
19
|
+
.input(AgentRunSchema)
|
|
20
20
|
.output(MessageReceiptSchema),
|
|
21
21
|
attach: procedure
|
|
22
22
|
.route({
|
|
@@ -88,6 +88,16 @@ export const agentContract = {
|
|
|
88
88
|
.meta({ floor: "collaborator", guest: true })
|
|
89
89
|
.input(QueueResumeSchema)
|
|
90
90
|
.output(QueueResumedSchema),
|
|
91
|
+
queueSchedule: procedure
|
|
92
|
+
.route({
|
|
93
|
+
method: "POST",
|
|
94
|
+
path: "/agent/queue/schedule",
|
|
95
|
+
summary: "Reschedule waiting messages",
|
|
96
|
+
description: "Books what waits in the conversation's queue to go out by itself at another instant, or once another conversation has finished and its work has landed, holding it until then. Works on a queue that is held for any reason, or on messages waiting behind a running turn. A time already past, or a conversation with nothing left to land, lets them go now.",
|
|
97
|
+
})
|
|
98
|
+
.meta({ floor: "collaborator", guest: true })
|
|
99
|
+
.input(QueueScheduleSchema)
|
|
100
|
+
.output(ConversationQueueSchema),
|
|
91
101
|
resume: procedure
|
|
92
102
|
.route({
|
|
93
103
|
method: "POST",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.contract.js","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"agent.contract.js","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7J,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACH,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,GACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,QAAQ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