@brainpilot/protocol 0.1.0 → 0.1.2

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.
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from "vitest";
2
- import { SendMessageRequestSchema } from "../http.js";
2
+ import { SendMessageRequestSchema, UserInputResponseBodySchema } from "../http.js";
3
3
  describe("SendMessageRequestSchema", () => {
4
4
  it("accepts a normal send-message body", () => {
5
5
  const r = SendMessageRequestSchema.safeParse({ content: "hello", agent: "principal" });
@@ -14,6 +14,14 @@ describe("SendMessageRequestSchema", () => {
14
14
  });
15
15
  expect(r.success).toBe(true);
16
16
  });
17
+ it("rejects an empty user_input_response answer", () => {
18
+ expect(UserInputResponseBodySchema.safeParse({
19
+ type: "user_input_response",
20
+ session_id: "s1",
21
+ request_id: "r1",
22
+ answer: " ",
23
+ }).success).toBe(false);
24
+ });
17
25
  it("rejects a body that is neither (no content, no answer)", () => {
18
26
  const r = SendMessageRequestSchema.safeParse({ foo: "bar" });
19
27
  expect(r.success).toBe(false);
@@ -1 +1 @@
1
- {"version":3,"file":"http.test.js","sourceRoot":"","sources":["../../src/__tests__/http.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEtD,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CAAC,GAAG,wBAAwB,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;QACvF,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG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EAAE,SAAS;YACrB,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;QACH,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,CAAC,2BAA2B,CAAC,SAAS,CAAC;YAC3C,IAAI,EAAE,qBAAqB;YAC3B,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,KAAK;SACd,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;QAChE,MAAM,CAAC,GAAG,wBAAwB,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7D,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/dist/domain.d.ts CHANGED
@@ -41,6 +41,45 @@ export type Session = z.infer<typeof SessionSchema>;
41
41
  /** §10 state authority enum. */
42
42
  export declare const AgentStatusEnumSchema: z.ZodEnum<["idle", "running", "error", "stopped"]>;
43
43
  export type AgentStatusEnum = z.infer<typeof AgentStatusEnumSchema>;
44
+ /** Live provider retry state for an agent run. */
45
+ export declare const AgentRetryStateSchema: z.ZodObject<{
46
+ attempt: z.ZodNumber;
47
+ maxAttempts: z.ZodNumber;
48
+ delayMs: z.ZodNumber;
49
+ }, "strip", z.ZodTypeAny, {
50
+ attempt: number;
51
+ maxAttempts: number;
52
+ delayMs: number;
53
+ }, {
54
+ attempt: number;
55
+ maxAttempts: number;
56
+ delayMs: number;
57
+ }>;
58
+ export type AgentRetryState = z.infer<typeof AgentRetryStateSchema>;
59
+ /** Authoritative metadata for one tool call that is still executing. */
60
+ export declare const ActiveToolExecutionSchema: z.ZodObject<{
61
+ toolCallId: z.ZodString;
62
+ toolName: z.ZodString;
63
+ runId: z.ZodOptional<z.ZodString>;
64
+ startedAt: z.ZodString;
65
+ cancellable: z.ZodBoolean;
66
+ status: z.ZodEnum<["running", "stopping"]>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ status: "running" | "stopping";
69
+ toolCallId: string;
70
+ toolName: string;
71
+ startedAt: string;
72
+ cancellable: boolean;
73
+ runId?: string | undefined;
74
+ }, {
75
+ status: "running" | "stopping";
76
+ toolCallId: string;
77
+ toolName: string;
78
+ startedAt: string;
79
+ cancellable: boolean;
80
+ runId?: string | undefined;
81
+ }>;
82
+ export type ActiveToolExecution = z.infer<typeof ActiveToolExecutionSchema>;
44
83
  /**
45
84
  * AgentStatus as exposed in SessionStateSnapshot.agents (backend.ts). `status`
46
85
  * is kept open (string) for forward-compat with runtime values beyond the
@@ -52,18 +91,84 @@ export declare const AgentStatusSchema: z.ZodObject<{
52
91
  task: z.ZodString;
53
92
  updatedAt: z.ZodOptional<z.ZodString>;
54
93
  alive: z.ZodOptional<z.ZodBoolean>;
94
+ retry: z.ZodOptional<z.ZodObject<{
95
+ attempt: z.ZodNumber;
96
+ maxAttempts: z.ZodNumber;
97
+ delayMs: z.ZodNumber;
98
+ }, "strip", z.ZodTypeAny, {
99
+ attempt: number;
100
+ maxAttempts: number;
101
+ delayMs: number;
102
+ }, {
103
+ attempt: number;
104
+ maxAttempts: number;
105
+ delayMs: number;
106
+ }>>;
107
+ /** Rich replacement for the legacy id-only activeToolExecutions field. */
108
+ activeTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
109
+ toolCallId: z.ZodString;
110
+ toolName: z.ZodString;
111
+ runId: z.ZodOptional<z.ZodString>;
112
+ startedAt: z.ZodString;
113
+ cancellable: z.ZodBoolean;
114
+ status: z.ZodEnum<["running", "stopping"]>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ status: "running" | "stopping";
117
+ toolCallId: string;
118
+ toolName: string;
119
+ startedAt: string;
120
+ cancellable: boolean;
121
+ runId?: string | undefined;
122
+ }, {
123
+ status: "running" | "stopping";
124
+ toolCallId: string;
125
+ toolName: string;
126
+ startedAt: string;
127
+ cancellable: boolean;
128
+ runId?: string | undefined;
129
+ }>, "many">>;
130
+ /** Kept for older clients that only consume tool-call ids. */
131
+ activeToolExecutions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
55
132
  }, "strip", z.ZodTypeAny, {
56
133
  status: string;
57
134
  name: string;
58
135
  task: string;
59
136
  updatedAt?: string | undefined;
60
137
  alive?: boolean | undefined;
138
+ retry?: {
139
+ attempt: number;
140
+ maxAttempts: number;
141
+ delayMs: number;
142
+ } | undefined;
143
+ activeTools?: {
144
+ status: "running" | "stopping";
145
+ toolCallId: string;
146
+ toolName: string;
147
+ startedAt: string;
148
+ cancellable: boolean;
149
+ runId?: string | undefined;
150
+ }[] | undefined;
151
+ activeToolExecutions?: string[] | undefined;
61
152
  }, {
62
153
  status: string;
63
154
  name: string;
64
155
  task: string;
65
156
  updatedAt?: string | undefined;
66
157
  alive?: boolean | undefined;
158
+ retry?: {
159
+ attempt: number;
160
+ maxAttempts: number;
161
+ delayMs: number;
162
+ } | undefined;
163
+ activeTools?: {
164
+ status: "running" | "stopping";
165
+ toolCallId: string;
166
+ toolName: string;
167
+ startedAt: string;
168
+ cancellable: boolean;
169
+ runId?: string | undefined;
170
+ }[] | undefined;
171
+ activeToolExecutions?: string[] | undefined;
67
172
  }>;
68
173
  export type AgentStatus = z.infer<typeof AgentStatusSchema>;
69
174
  /**
@@ -74,6 +179,41 @@ export declare const AgentStateSchema: z.ZodObject<{
74
179
  status: z.ZodEnum<["idle", "running", "error", "stopped"]>;
75
180
  activeRunId: z.ZodOptional<z.ZodString>;
76
181
  activeToolExecutions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
182
+ activeTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
183
+ toolCallId: z.ZodString;
184
+ toolName: z.ZodString;
185
+ runId: z.ZodOptional<z.ZodString>;
186
+ startedAt: z.ZodString;
187
+ cancellable: z.ZodBoolean;
188
+ status: z.ZodEnum<["running", "stopping"]>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ status: "running" | "stopping";
191
+ toolCallId: string;
192
+ toolName: string;
193
+ startedAt: string;
194
+ cancellable: boolean;
195
+ runId?: string | undefined;
196
+ }, {
197
+ status: "running" | "stopping";
198
+ toolCallId: string;
199
+ toolName: string;
200
+ startedAt: string;
201
+ cancellable: boolean;
202
+ runId?: string | undefined;
203
+ }>, "many">>;
204
+ retry: z.ZodOptional<z.ZodObject<{
205
+ attempt: z.ZodNumber;
206
+ maxAttempts: z.ZodNumber;
207
+ delayMs: z.ZodNumber;
208
+ }, "strip", z.ZodTypeAny, {
209
+ attempt: number;
210
+ maxAttempts: number;
211
+ delayMs: number;
212
+ }, {
213
+ attempt: number;
214
+ maxAttempts: number;
215
+ delayMs: number;
216
+ }>>;
77
217
  lastError: z.ZodOptional<z.ZodObject<{
78
218
  message: z.ZodString;
79
219
  timestamp: z.ZodString;
@@ -90,8 +230,21 @@ export declare const AgentStateSchema: z.ZodObject<{
90
230
  }, "strip", z.ZodTypeAny, {
91
231
  status: "idle" | "running" | "error" | "stopped";
92
232
  name: string;
93
- activeRunId?: string | undefined;
233
+ retry?: {
234
+ attempt: number;
235
+ maxAttempts: number;
236
+ delayMs: number;
237
+ } | undefined;
238
+ activeTools?: {
239
+ status: "running" | "stopping";
240
+ toolCallId: string;
241
+ toolName: string;
242
+ startedAt: string;
243
+ cancellable: boolean;
244
+ runId?: string | undefined;
245
+ }[] | undefined;
94
246
  activeToolExecutions?: string[] | undefined;
247
+ activeRunId?: string | undefined;
95
248
  lastError?: {
96
249
  message: string;
97
250
  timestamp: string;
@@ -100,8 +253,21 @@ export declare const AgentStateSchema: z.ZodObject<{
100
253
  }, {
101
254
  status: "idle" | "running" | "error" | "stopped";
102
255
  name: string;
103
- activeRunId?: string | undefined;
256
+ retry?: {
257
+ attempt: number;
258
+ maxAttempts: number;
259
+ delayMs: number;
260
+ } | undefined;
261
+ activeTools?: {
262
+ status: "running" | "stopping";
263
+ toolCallId: string;
264
+ toolName: string;
265
+ startedAt: string;
266
+ cancellable: boolean;
267
+ runId?: string | undefined;
268
+ }[] | undefined;
104
269
  activeToolExecutions?: string[] | undefined;
270
+ activeRunId?: string | undefined;
105
271
  lastError?: {
106
272
  message: string;
107
273
  timestamp: string;
@@ -420,8 +586,8 @@ export declare const RunStatsSchema: z.ZodObject<{
420
586
  }, "strip", z.ZodTypeAny, {
421
587
  status: "aborted" | "error" | "ok";
422
588
  runId: string;
423
- agentName: string;
424
589
  startedAt: number;
590
+ agentName: string;
425
591
  finishedAt: number;
426
592
  delta: {
427
593
  tokens: {
@@ -442,8 +608,8 @@ export declare const RunStatsSchema: z.ZodObject<{
442
608
  }, {
443
609
  status: "aborted" | "error" | "ok";
444
610
  runId: string;
445
- agentName: string;
446
611
  startedAt: number;
612
+ agentName: string;
447
613
  finishedAt: number;
448
614
  delta: {
449
615
  tokens: {
@@ -680,8 +846,8 @@ export declare const SessionStatsSchema: z.ZodObject<{
680
846
  }, "strip", z.ZodTypeAny, {
681
847
  status: "aborted" | "error" | "ok";
682
848
  runId: string;
683
- agentName: string;
684
849
  startedAt: number;
850
+ agentName: string;
685
851
  finishedAt: number;
686
852
  delta: {
687
853
  tokens: {
@@ -702,8 +868,8 @@ export declare const SessionStatsSchema: z.ZodObject<{
702
868
  }, {
703
869
  status: "aborted" | "error" | "ok";
704
870
  runId: string;
705
- agentName: string;
706
871
  startedAt: number;
872
+ agentName: string;
707
873
  finishedAt: number;
708
874
  delta: {
709
875
  tokens: {
@@ -759,8 +925,8 @@ export declare const SessionStatsSchema: z.ZodObject<{
759
925
  byRun: {
760
926
  status: "aborted" | "error" | "ok";
761
927
  runId: string;
762
- agentName: string;
763
928
  startedAt: number;
929
+ agentName: string;
764
930
  finishedAt: number;
765
931
  delta: {
766
932
  tokens: {
@@ -816,8 +982,8 @@ export declare const SessionStatsSchema: z.ZodObject<{
816
982
  byRun: {
817
983
  status: "aborted" | "error" | "ok";
818
984
  runId: string;
819
- agentName: string;
820
985
  startedAt: number;
986
+ agentName: string;
821
987
  finishedAt: number;
822
988
  delta: {
823
989
  tokens: {
@@ -859,18 +1025,84 @@ export declare const SessionStateSnapshotSchema: z.ZodObject<{
859
1025
  task: z.ZodString;
860
1026
  updatedAt: z.ZodOptional<z.ZodString>;
861
1027
  alive: z.ZodOptional<z.ZodBoolean>;
1028
+ retry: z.ZodOptional<z.ZodObject<{
1029
+ attempt: z.ZodNumber;
1030
+ maxAttempts: z.ZodNumber;
1031
+ delayMs: z.ZodNumber;
1032
+ }, "strip", z.ZodTypeAny, {
1033
+ attempt: number;
1034
+ maxAttempts: number;
1035
+ delayMs: number;
1036
+ }, {
1037
+ attempt: number;
1038
+ maxAttempts: number;
1039
+ delayMs: number;
1040
+ }>>;
1041
+ /** Rich replacement for the legacy id-only activeToolExecutions field. */
1042
+ activeTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1043
+ toolCallId: z.ZodString;
1044
+ toolName: z.ZodString;
1045
+ runId: z.ZodOptional<z.ZodString>;
1046
+ startedAt: z.ZodString;
1047
+ cancellable: z.ZodBoolean;
1048
+ status: z.ZodEnum<["running", "stopping"]>;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ status: "running" | "stopping";
1051
+ toolCallId: string;
1052
+ toolName: string;
1053
+ startedAt: string;
1054
+ cancellable: boolean;
1055
+ runId?: string | undefined;
1056
+ }, {
1057
+ status: "running" | "stopping";
1058
+ toolCallId: string;
1059
+ toolName: string;
1060
+ startedAt: string;
1061
+ cancellable: boolean;
1062
+ runId?: string | undefined;
1063
+ }>, "many">>;
1064
+ /** Kept for older clients that only consume tool-call ids. */
1065
+ activeToolExecutions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
862
1066
  }, "strip", z.ZodTypeAny, {
863
1067
  status: string;
864
1068
  name: string;
865
1069
  task: string;
866
1070
  updatedAt?: string | undefined;
867
1071
  alive?: boolean | undefined;
1072
+ retry?: {
1073
+ attempt: number;
1074
+ maxAttempts: number;
1075
+ delayMs: number;
1076
+ } | undefined;
1077
+ activeTools?: {
1078
+ status: "running" | "stopping";
1079
+ toolCallId: string;
1080
+ toolName: string;
1081
+ startedAt: string;
1082
+ cancellable: boolean;
1083
+ runId?: string | undefined;
1084
+ }[] | undefined;
1085
+ activeToolExecutions?: string[] | undefined;
868
1086
  }, {
869
1087
  status: string;
870
1088
  name: string;
871
1089
  task: string;
872
1090
  updatedAt?: string | undefined;
873
1091
  alive?: boolean | undefined;
1092
+ retry?: {
1093
+ attempt: number;
1094
+ maxAttempts: number;
1095
+ delayMs: number;
1096
+ } | undefined;
1097
+ activeTools?: {
1098
+ status: "running" | "stopping";
1099
+ toolCallId: string;
1100
+ toolName: string;
1101
+ startedAt: string;
1102
+ cancellable: boolean;
1103
+ runId?: string | undefined;
1104
+ }[] | undefined;
1105
+ activeToolExecutions?: string[] | undefined;
874
1106
  }>, "many">;
875
1107
  lastActivityTs: z.ZodString;
876
1108
  /** Frozen when the session is created and persisted across restore. */
@@ -961,6 +1193,20 @@ export declare const SessionStateSnapshotSchema: z.ZodObject<{
961
1193
  task: string;
962
1194
  updatedAt?: string | undefined;
963
1195
  alive?: boolean | undefined;
1196
+ retry?: {
1197
+ attempt: number;
1198
+ maxAttempts: number;
1199
+ delayMs: number;
1200
+ } | undefined;
1201
+ activeTools?: {
1202
+ status: "running" | "stopping";
1203
+ toolCallId: string;
1204
+ toolName: string;
1205
+ startedAt: string;
1206
+ cancellable: boolean;
1207
+ runId?: string | undefined;
1208
+ }[] | undefined;
1209
+ activeToolExecutions?: string[] | undefined;
964
1210
  }[];
965
1211
  lastActivityTs: string;
966
1212
  domainResources?: "full" | "base" | undefined;
@@ -991,6 +1237,20 @@ export declare const SessionStateSnapshotSchema: z.ZodObject<{
991
1237
  task: string;
992
1238
  updatedAt?: string | undefined;
993
1239
  alive?: boolean | undefined;
1240
+ retry?: {
1241
+ attempt: number;
1242
+ maxAttempts: number;
1243
+ delayMs: number;
1244
+ } | undefined;
1245
+ activeTools?: {
1246
+ status: "running" | "stopping";
1247
+ toolCallId: string;
1248
+ toolName: string;
1249
+ startedAt: string;
1250
+ cancellable: boolean;
1251
+ runId?: string | undefined;
1252
+ }[] | undefined;
1253
+ activeToolExecutions?: string[] | undefined;
994
1254
  }[];
995
1255
  lastActivityTs: string;
996
1256
  domainResources?: "full" | "base" | undefined;
@@ -1116,10 +1376,10 @@ export declare const TraceNodeSchema: z.ZodObject<{
1116
1376
  toolCalls: z.ZodArray<z.ZodString, "many">;
1117
1377
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1118
1378
  }, "strip", z.ZodTypeAny, {
1119
- type: string;
1120
- status: string;
1121
1379
  id: string;
1122
1380
  title: string;
1381
+ type: string;
1382
+ status: string;
1123
1383
  parents: {
1124
1384
  id: string;
1125
1385
  relation?: string | undefined;
@@ -1151,10 +1411,10 @@ export declare const TraceNodeSchema: z.ZodObject<{
1151
1411
  errorMessage?: string | undefined;
1152
1412
  metadata?: Record<string, unknown> | undefined;
1153
1413
  }, {
1154
- type: string;
1155
- status: string;
1156
1414
  id: string;
1157
1415
  title: string;
1416
+ type: string;
1417
+ status: string;
1158
1418
  parents: {
1159
1419
  id: string;
1160
1420
  relation?: string | undefined;
@@ -1267,10 +1527,10 @@ export declare const TraceGraphSchema: z.ZodObject<{
1267
1527
  toolCalls: z.ZodArray<z.ZodString, "many">;
1268
1528
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1269
1529
  }, "strip", z.ZodTypeAny, {
1270
- type: string;
1271
- status: string;
1272
1530
  id: string;
1273
1531
  title: string;
1532
+ type: string;
1533
+ status: string;
1274
1534
  parents: {
1275
1535
  id: string;
1276
1536
  relation?: string | undefined;
@@ -1302,10 +1562,10 @@ export declare const TraceGraphSchema: z.ZodObject<{
1302
1562
  errorMessage?: string | undefined;
1303
1563
  metadata?: Record<string, unknown> | undefined;
1304
1564
  }, {
1305
- type: string;
1306
- status: string;
1307
1565
  id: string;
1308
1566
  title: string;
1567
+ type: string;
1568
+ status: string;
1309
1569
  parents: {
1310
1570
  id: string;
1311
1571
  relation?: string | undefined;
@@ -1348,10 +1608,10 @@ export declare const TraceGraphSchema: z.ZodObject<{
1348
1608
  [k: string]: unknown;
1349
1609
  };
1350
1610
  nodes: {
1351
- type: string;
1352
- status: string;
1353
1611
  id: string;
1354
1612
  title: string;
1613
+ type: string;
1614
+ status: string;
1355
1615
  parents: {
1356
1616
  id: string;
1357
1617
  relation?: string | undefined;
@@ -1394,10 +1654,10 @@ export declare const TraceGraphSchema: z.ZodObject<{
1394
1654
  [k: string]: unknown;
1395
1655
  };
1396
1656
  nodes: {
1397
- type: string;
1398
- status: string;
1399
1657
  id: string;
1400
1658
  title: string;
1659
+ type: string;
1660
+ status: string;
1401
1661
  parents: {
1402
1662
  id: string;
1403
1663
  relation?: string | undefined;
@@ -1445,6 +1705,39 @@ export declare const SettingsDataSchema: z.ZodObject<{
1445
1705
  baseUrl: string;
1446
1706
  }>;
1447
1707
  export type SettingsData = z.infer<typeof SettingsDataSchema>;
1708
+ /**
1709
+ * #377: BYOK annotation on a *preset* MCP server. Hosted deployments inject
1710
+ * presets (e.g. `tavily`) that are metered by an API key: the platform ships a
1711
+ * shared fallback key, and users are encouraged to register their own so usage
1712
+ * bills to them. `kind` is the credential identity the hosted BYOK endpoints are
1713
+ * keyed by (`PUT /api/mcp-servers/byok/:kind`); `keyParam` / `keyHeader` name
1714
+ * the single field the user's key is injected into — exactly one of the two, so
1715
+ * the annotation can never widen into "edit the whole transport".
1716
+ *
1717
+ * Self-hosted builds have no BYOK endpoint and simply ignore the field.
1718
+ */
1719
+ export declare const McpByokInfoSchema: z.ZodEffects<z.ZodObject<{
1720
+ kind: z.ZodString;
1721
+ keyParam: z.ZodOptional<z.ZodString>;
1722
+ keyHeader: z.ZodOptional<z.ZodString>;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ kind: string;
1725
+ keyParam?: string | undefined;
1726
+ keyHeader?: string | undefined;
1727
+ }, {
1728
+ kind: string;
1729
+ keyParam?: string | undefined;
1730
+ keyHeader?: string | undefined;
1731
+ }>, {
1732
+ kind: string;
1733
+ keyParam?: string | undefined;
1734
+ keyHeader?: string | undefined;
1735
+ }, {
1736
+ kind: string;
1737
+ keyParam?: string | undefined;
1738
+ keyHeader?: string | undefined;
1739
+ }>;
1740
+ export type McpByokInfo = z.infer<typeof McpByokInfoSchema>;
1448
1741
  export declare const McpServerEntrySchema: z.ZodObject<{
1449
1742
  name: z.ZodString;
1450
1743
  type: z.ZodEnum<["stdio", "http", "sse"]>;
@@ -1454,6 +1747,33 @@ export declare const McpServerEntrySchema: z.ZodObject<{
1454
1747
  url: z.ZodOptional<z.ZodString>;
1455
1748
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1456
1749
  timeout: z.ZodOptional<z.ZodNumber>;
1750
+ /**
1751
+ * #377: platform-managed entry — the UI must not offer Edit / Delete and must
1752
+ * not surface the raw URL (a hosted preset URL can carry the platform's shared
1753
+ * key). Orthogonal to `byok`: a preset can be read-only without being metered.
1754
+ */
1755
+ readOnly: z.ZodOptional<z.ZodBoolean>;
1756
+ byok: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1757
+ kind: z.ZodString;
1758
+ keyParam: z.ZodOptional<z.ZodString>;
1759
+ keyHeader: z.ZodOptional<z.ZodString>;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ kind: string;
1762
+ keyParam?: string | undefined;
1763
+ keyHeader?: string | undefined;
1764
+ }, {
1765
+ kind: string;
1766
+ keyParam?: string | undefined;
1767
+ keyHeader?: string | undefined;
1768
+ }>, {
1769
+ kind: string;
1770
+ keyParam?: string | undefined;
1771
+ keyHeader?: string | undefined;
1772
+ }, {
1773
+ kind: string;
1774
+ keyParam?: string | undefined;
1775
+ keyHeader?: string | undefined;
1776
+ }>>;
1457
1777
  }, "strip", z.ZodTypeAny, {
1458
1778
  type: "stdio" | "http" | "sse";
1459
1779
  name: string;
@@ -1463,6 +1783,12 @@ export declare const McpServerEntrySchema: z.ZodObject<{
1463
1783
  env?: Record<string, string> | undefined;
1464
1784
  headers?: Record<string, string> | undefined;
1465
1785
  timeout?: number | undefined;
1786
+ readOnly?: boolean | undefined;
1787
+ byok?: {
1788
+ kind: string;
1789
+ keyParam?: string | undefined;
1790
+ keyHeader?: string | undefined;
1791
+ } | undefined;
1466
1792
  }, {
1467
1793
  type: "stdio" | "http" | "sse";
1468
1794
  name: string;
@@ -1472,6 +1798,12 @@ export declare const McpServerEntrySchema: z.ZodObject<{
1472
1798
  env?: Record<string, string> | undefined;
1473
1799
  headers?: Record<string, string> | undefined;
1474
1800
  timeout?: number | undefined;
1801
+ readOnly?: boolean | undefined;
1802
+ byok?: {
1803
+ kind: string;
1804
+ keyParam?: string | undefined;
1805
+ keyHeader?: string | undefined;
1806
+ } | undefined;
1475
1807
  }>;
1476
1808
  export type McpServerEntry = z.infer<typeof McpServerEntrySchema>;
1477
1809
  export declare const McpServerConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../src/domain.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAMjD,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,6BAA2B,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,aAAa;;;;;IAKxB,mFAAmF;;;;;;;;;;;;;;EAEnF,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,K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