@makaio/framework 1.0.0-dev-1781397017668 → 1.0.0-dev-1781442380278
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/.makaio-build.json +2 -2
- package/dist/{adapter-D_p5kKxi.mjs → adapter-BH1X0THX.mjs} +1 -1
- package/dist/adapters/index.d.mts +1 -1
- package/dist/bus/index.d.mts +20 -20
- package/dist/bus/index.mjs +1 -1
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +6 -6
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +188 -183
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/provider/index.d.mts +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/{definition-CPc6oKaF.d.mts → definition-CZcVOhXZ.d.mts} +1 -1
- package/dist/handlers-Cpy9Q8ho.mjs +41 -0
- package/dist/{index-C24PcW2r.d.mts → index-B1PgTu7q.d.mts} +8 -8
- package/dist/{index-CEdOq5Om.d.mts → index-BDnI2oqX.d.mts} +1 -1
- package/dist/{index-QvciMc7_.d.mts → index-BF84QInS.d.mts} +875 -361
- package/dist/{index-DfNIhEm_.d.mts → index-BVMF3kRv.d.mts} +16 -16
- package/dist/{index-CszoKxxO.d.mts → index-Cj3XCjXZ.d.mts} +342 -342
- package/dist/{index-BLqtL-_a.d.mts → index-DHVoVh-j.d.mts} +7 -7
- package/dist/{index-WKF5BHsw.d.mts → index-DUI1W-zN.d.mts} +8 -8
- package/dist/{index-B99Prx5a.d.mts → index-DUsm-DeE.d.mts} +100 -100
- package/dist/{index-B92SK0rO.d.mts → index-DigeEyrf.d.mts} +19 -16
- package/dist/{index-GuspCNLR.d.mts → index-DyqZej9j.d.mts} +8 -8
- package/dist/{index-DBgv39-Q.d.mts → index-HiAth5G0.d.mts} +52 -52
- package/dist/{index-NyKdb8kT.d.mts → index-LrZlZUvQ.d.mts} +16 -16
- package/dist/{index-BM_y78ZA2.d.mts → index-cN4DkU5Y2.d.mts} +9 -9
- package/dist/{index-C0TEY7RE.d.mts → index-oUqyVvsD.d.mts} +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{namespace-DbvQ4HYc.d.mts → namespace-BXuuv8L9.d.mts} +152 -152
- package/dist/{namespace-CN2TfSCY.d.mts → namespace-Ba1gUpUu.d.mts} +4 -4
- package/dist/{namespace-D_ZXa76m.d.mts → namespace-CWgNi8Gv.d.mts} +26 -26
- package/dist/{namespace-BAJTZXWc.d.mts → namespace-DM3TSh_y.d.mts} +38 -38
- package/dist/{namespace-C_kaVySz.d.mts → namespace-Q-z7Lr2f.d.mts} +8 -8
- package/dist/{package-Bn665ylV.mjs → package-DMoFY63f.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/primitive-runtime-DWbV7f_r.mjs +1 -0
- package/dist/{schema-msWs4YhT.d.mts → schema-BKdn_bdY.d.mts} +2 -2
- package/dist/{schemas-DMl7IKG-.d.mts → schemas-BbFAwUpf.d.mts} +5 -5
- package/dist/{schemas-xoTn8JZb.d.mts → schemas-CyEdMtnQ.d.mts} +152 -152
- package/dist/schemas-CzvG8xq7.mjs +1 -0
- package/dist/{schemas-DRZJK6hW2.d.mts → schemas-DvjQHkmw2.d.mts} +6 -6
- package/dist/{schemas-CN9hprME.d.mts → schemas-IDGAJ_zv.d.mts} +6 -6
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/filesystem/namespace.d.mts +12 -12
- package/dist/services/filesystem/schemas.d.mts +6 -6
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +117 -117
- package/dist/services/index.mjs +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +4 -4
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +6 -6
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +2 -2
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/session-ZAJrcudH.mjs +39 -0
- package/dist/{session-bKk-XeaY.mjs → session-owtKCoUX.mjs} +1 -1
- package/dist/{tool-approval-service-C2xXBtdJ.mjs → tool-approval-service-B_28RhuK.mjs} +1 -1
- package/dist/{tools-DEUzCPBB.mjs → tools-BpzJterj.mjs} +1 -1
- package/dist/{types-4LKM7ZfA.d.mts → types-Bo2-N1YR.d.mts} +887 -357
- package/dist/workflow-engine/index.d.mts +34 -34
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/package.json +1 -1
- package/dist/handlers-CTrL8wmC.mjs +0 -41
- package/dist/primitive-runtime-C2yw4-F8.mjs +0 -1
- package/dist/schemas-CiMm2zrE.mjs +0 -1
- package/dist/session-Me3XO-l9.mjs +0 -39
|
@@ -64,9 +64,9 @@ declare const SurfaceBindingRegistrationSchema: z.ZodObject<{
|
|
|
64
64
|
template: z.ZodString;
|
|
65
65
|
}, z.core.$strip>], "kind">;
|
|
66
66
|
appliesTo: z.ZodArray<z.ZodEnum<{
|
|
67
|
+
workpiece: "workpiece";
|
|
67
68
|
artifact: "artifact";
|
|
68
69
|
surface: "surface";
|
|
69
|
-
workpiece: "workpiece";
|
|
70
70
|
}>>;
|
|
71
71
|
valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
72
72
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -103,13 +103,13 @@ type ProjectedField = z.infer<typeof ProjectedFieldSchema>;
|
|
|
103
103
|
*/
|
|
104
104
|
declare const ArtifactProjectionPolicySchema: z.ZodObject<{
|
|
105
105
|
mode: z.ZodEnum<{
|
|
106
|
-
none: "none";
|
|
107
|
-
surface: "surface";
|
|
108
106
|
comment: "comment";
|
|
107
|
+
surface: "surface";
|
|
108
|
+
none: "none";
|
|
109
109
|
}>;
|
|
110
110
|
defaultRole: z.ZodOptional<z.ZodEnum<{
|
|
111
|
-
artifact: "artifact";
|
|
112
111
|
workpiece: "workpiece";
|
|
112
|
+
artifact: "artifact";
|
|
113
113
|
}>>;
|
|
114
114
|
semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
115
115
|
created: "created";
|
|
@@ -141,8 +141,8 @@ declare const ArtifactMaterializationRefSchema: z.ZodObject<{
|
|
|
141
141
|
externalId: z.ZodString;
|
|
142
142
|
externalUrl: z.ZodOptional<z.ZodString>;
|
|
143
143
|
surfaceRole: z.ZodEnum<{
|
|
144
|
-
artifact: "artifact";
|
|
145
144
|
workpiece: "workpiece";
|
|
145
|
+
artifact: "artifact";
|
|
146
146
|
}>;
|
|
147
147
|
lastSyncedRevision: z.ZodOptional<z.ZodString>;
|
|
148
148
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -37,25 +37,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
37
37
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
38
|
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
39
39
|
sessionId: z.ZodString;
|
|
40
|
-
directTools: z.ZodArray<z.ZodObject<{
|
|
41
|
-
fullName: z.ZodString;
|
|
42
|
-
originalName: z.ZodString;
|
|
43
|
-
serverName: z.ZodString;
|
|
44
|
-
description: z.ZodOptional<z.ZodString>;
|
|
45
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
|
-
exposureMode: z.ZodEnum<{
|
|
47
|
-
hidden: "hidden";
|
|
48
|
-
discovery: "discovery";
|
|
49
|
-
direct: "direct";
|
|
50
|
-
}>;
|
|
51
|
-
enabled: z.ZodBoolean;
|
|
52
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
53
|
-
discovery: "discovery";
|
|
54
|
-
toolset: "toolset";
|
|
55
|
-
}>>;
|
|
56
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
exposed: z.ZodBoolean;
|
|
58
|
-
}, z.core.$strip>>;
|
|
59
40
|
servers: z.ZodArray<z.ZodObject<{
|
|
60
41
|
name: z.ZodString;
|
|
61
42
|
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -92,9 +73,28 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
92
73
|
type: z.ZodLiteral<"http">;
|
|
93
74
|
}, z.core.$strip>], "type">;
|
|
94
75
|
exposureMode: z.ZodEnum<{
|
|
76
|
+
direct: "direct";
|
|
95
77
|
discovery: "discovery";
|
|
78
|
+
}>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
81
|
+
fullName: z.ZodString;
|
|
82
|
+
originalName: z.ZodString;
|
|
83
|
+
serverName: z.ZodString;
|
|
84
|
+
description: z.ZodOptional<z.ZodString>;
|
|
85
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
86
|
+
exposureMode: z.ZodEnum<{
|
|
87
|
+
hidden: "hidden";
|
|
96
88
|
direct: "direct";
|
|
89
|
+
discovery: "discovery";
|
|
97
90
|
}>;
|
|
91
|
+
enabled: z.ZodBoolean;
|
|
92
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
discovery: "discovery";
|
|
94
|
+
toolset: "toolset";
|
|
95
|
+
}>>;
|
|
96
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
exposed: z.ZodBoolean;
|
|
98
98
|
}, z.core.$strip>>;
|
|
99
99
|
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
100
100
|
fullName: z.ZodString;
|
|
@@ -104,8 +104,8 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
104
104
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
105
105
|
exposureMode: z.ZodEnum<{
|
|
106
106
|
hidden: "hidden";
|
|
107
|
-
discovery: "discovery";
|
|
108
107
|
direct: "direct";
|
|
108
|
+
discovery: "discovery";
|
|
109
109
|
}>;
|
|
110
110
|
enabled: z.ZodBoolean;
|
|
111
111
|
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
@@ -134,18 +134,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
134
134
|
env?: Record<string, string> | undefined;
|
|
135
135
|
mcpSessionContext?: {
|
|
136
136
|
sessionId: string;
|
|
137
|
-
directTools: {
|
|
138
|
-
fullName: string;
|
|
139
|
-
originalName: string;
|
|
140
|
-
serverName: string;
|
|
141
|
-
inputSchema: Record<string, unknown>;
|
|
142
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
143
|
-
enabled: boolean;
|
|
144
|
-
exposed: boolean;
|
|
145
|
-
description?: string | undefined;
|
|
146
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
147
|
-
enabledAt?: number | undefined;
|
|
148
|
-
}[];
|
|
149
137
|
servers: {
|
|
150
138
|
name: string;
|
|
151
139
|
transport: {
|
|
@@ -173,14 +161,26 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
173
161
|
}[] | undefined;
|
|
174
162
|
alwaysLoad?: boolean | undefined;
|
|
175
163
|
};
|
|
176
|
-
exposureMode: "
|
|
164
|
+
exposureMode: "direct" | "discovery";
|
|
165
|
+
}[];
|
|
166
|
+
directTools: {
|
|
167
|
+
fullName: string;
|
|
168
|
+
originalName: string;
|
|
169
|
+
serverName: string;
|
|
170
|
+
inputSchema: Record<string, unknown>;
|
|
171
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
exposed: boolean;
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
176
|
+
enabledAt?: number | undefined;
|
|
177
177
|
}[];
|
|
178
178
|
discoverableTools: {
|
|
179
179
|
fullName: string;
|
|
180
180
|
originalName: string;
|
|
181
181
|
serverName: string;
|
|
182
182
|
inputSchema: Record<string, unknown>;
|
|
183
|
-
exposureMode: "hidden" | "
|
|
183
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
184
184
|
enabled: boolean;
|
|
185
185
|
exposed: boolean;
|
|
186
186
|
description?: string | undefined;
|
|
@@ -208,18 +208,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
208
208
|
env?: Record<string, string> | undefined;
|
|
209
209
|
mcpSessionContext?: {
|
|
210
210
|
sessionId: string;
|
|
211
|
-
directTools: {
|
|
212
|
-
fullName: string;
|
|
213
|
-
originalName: string;
|
|
214
|
-
serverName: string;
|
|
215
|
-
inputSchema: Record<string, unknown>;
|
|
216
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
217
|
-
enabled: boolean;
|
|
218
|
-
exposed: boolean;
|
|
219
|
-
description?: string | undefined;
|
|
220
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
221
|
-
enabledAt?: number | undefined;
|
|
222
|
-
}[];
|
|
223
211
|
servers: {
|
|
224
212
|
name: string;
|
|
225
213
|
transport: {
|
|
@@ -247,14 +235,26 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
247
235
|
}[] | undefined;
|
|
248
236
|
alwaysLoad?: boolean | undefined;
|
|
249
237
|
};
|
|
250
|
-
exposureMode: "
|
|
238
|
+
exposureMode: "direct" | "discovery";
|
|
239
|
+
}[];
|
|
240
|
+
directTools: {
|
|
241
|
+
fullName: string;
|
|
242
|
+
originalName: string;
|
|
243
|
+
serverName: string;
|
|
244
|
+
inputSchema: Record<string, unknown>;
|
|
245
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
246
|
+
enabled: boolean;
|
|
247
|
+
exposed: boolean;
|
|
248
|
+
description?: string | undefined;
|
|
249
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
250
|
+
enabledAt?: number | undefined;
|
|
251
251
|
}[];
|
|
252
252
|
discoverableTools: {
|
|
253
253
|
fullName: string;
|
|
254
254
|
originalName: string;
|
|
255
255
|
serverName: string;
|
|
256
256
|
inputSchema: Record<string, unknown>;
|
|
257
|
-
exposureMode: "hidden" | "
|
|
257
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
258
258
|
enabled: boolean;
|
|
259
259
|
exposed: boolean;
|
|
260
260
|
description?: string | undefined;
|
|
@@ -280,18 +280,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
280
280
|
env?: Record<string, string> | undefined;
|
|
281
281
|
mcpSessionContext?: {
|
|
282
282
|
sessionId: string;
|
|
283
|
-
directTools: {
|
|
284
|
-
fullName: string;
|
|
285
|
-
originalName: string;
|
|
286
|
-
serverName: string;
|
|
287
|
-
inputSchema: Record<string, unknown>;
|
|
288
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
289
|
-
enabled: boolean;
|
|
290
|
-
exposed: boolean;
|
|
291
|
-
description?: string | undefined;
|
|
292
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
293
|
-
enabledAt?: number | undefined;
|
|
294
|
-
}[];
|
|
295
283
|
servers: {
|
|
296
284
|
name: string;
|
|
297
285
|
transport: {
|
|
@@ -319,14 +307,26 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
319
307
|
}[] | undefined;
|
|
320
308
|
alwaysLoad?: boolean | undefined;
|
|
321
309
|
};
|
|
322
|
-
exposureMode: "
|
|
310
|
+
exposureMode: "direct" | "discovery";
|
|
311
|
+
}[];
|
|
312
|
+
directTools: {
|
|
313
|
+
fullName: string;
|
|
314
|
+
originalName: string;
|
|
315
|
+
serverName: string;
|
|
316
|
+
inputSchema: Record<string, unknown>;
|
|
317
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
318
|
+
enabled: boolean;
|
|
319
|
+
exposed: boolean;
|
|
320
|
+
description?: string | undefined;
|
|
321
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
322
|
+
enabledAt?: number | undefined;
|
|
323
323
|
}[];
|
|
324
324
|
discoverableTools: {
|
|
325
325
|
fullName: string;
|
|
326
326
|
originalName: string;
|
|
327
327
|
serverName: string;
|
|
328
328
|
inputSchema: Record<string, unknown>;
|
|
329
|
-
exposureMode: "hidden" | "
|
|
329
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
330
330
|
enabled: boolean;
|
|
331
331
|
exposed: boolean;
|
|
332
332
|
description?: string | undefined;
|
|
@@ -354,18 +354,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
354
354
|
env?: Record<string, string> | undefined;
|
|
355
355
|
mcpSessionContext?: {
|
|
356
356
|
sessionId: string;
|
|
357
|
-
directTools: {
|
|
358
|
-
fullName: string;
|
|
359
|
-
originalName: string;
|
|
360
|
-
serverName: string;
|
|
361
|
-
inputSchema: Record<string, unknown>;
|
|
362
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
363
|
-
enabled: boolean;
|
|
364
|
-
exposed: boolean;
|
|
365
|
-
description?: string | undefined;
|
|
366
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
367
|
-
enabledAt?: number | undefined;
|
|
368
|
-
}[];
|
|
369
357
|
servers: {
|
|
370
358
|
name: string;
|
|
371
359
|
transport: {
|
|
@@ -393,14 +381,26 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
393
381
|
}[] | undefined;
|
|
394
382
|
alwaysLoad?: boolean | undefined;
|
|
395
383
|
};
|
|
396
|
-
exposureMode: "
|
|
384
|
+
exposureMode: "direct" | "discovery";
|
|
385
|
+
}[];
|
|
386
|
+
directTools: {
|
|
387
|
+
fullName: string;
|
|
388
|
+
originalName: string;
|
|
389
|
+
serverName: string;
|
|
390
|
+
inputSchema: Record<string, unknown>;
|
|
391
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
392
|
+
enabled: boolean;
|
|
393
|
+
exposed: boolean;
|
|
394
|
+
description?: string | undefined;
|
|
395
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
396
|
+
enabledAt?: number | undefined;
|
|
397
397
|
}[];
|
|
398
398
|
discoverableTools: {
|
|
399
399
|
fullName: string;
|
|
400
400
|
originalName: string;
|
|
401
401
|
serverName: string;
|
|
402
402
|
inputSchema: Record<string, unknown>;
|
|
403
|
-
exposureMode: "hidden" | "
|
|
403
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
404
404
|
enabled: boolean;
|
|
405
405
|
exposed: boolean;
|
|
406
406
|
description?: string | undefined;
|
|
@@ -488,25 +488,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
488
488
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
489
489
|
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
490
490
|
sessionId: z.ZodString;
|
|
491
|
-
directTools: z.ZodArray<z.ZodObject<{
|
|
492
|
-
fullName: z.ZodString;
|
|
493
|
-
originalName: z.ZodString;
|
|
494
|
-
serverName: z.ZodString;
|
|
495
|
-
description: z.ZodOptional<z.ZodString>;
|
|
496
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
497
|
-
exposureMode: z.ZodEnum<{
|
|
498
|
-
hidden: "hidden";
|
|
499
|
-
discovery: "discovery";
|
|
500
|
-
direct: "direct";
|
|
501
|
-
}>;
|
|
502
|
-
enabled: z.ZodBoolean;
|
|
503
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
504
|
-
discovery: "discovery";
|
|
505
|
-
toolset: "toolset";
|
|
506
|
-
}>>;
|
|
507
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
508
|
-
exposed: z.ZodBoolean;
|
|
509
|
-
}, z.core.$strip>>;
|
|
510
491
|
servers: z.ZodArray<z.ZodObject<{
|
|
511
492
|
name: z.ZodString;
|
|
512
493
|
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -543,9 +524,28 @@ declare const AgentRuntimeSchemas: {
|
|
|
543
524
|
type: z.ZodLiteral<"http">;
|
|
544
525
|
}, z.core.$strip>], "type">;
|
|
545
526
|
exposureMode: z.ZodEnum<{
|
|
527
|
+
direct: "direct";
|
|
546
528
|
discovery: "discovery";
|
|
529
|
+
}>;
|
|
530
|
+
}, z.core.$strip>>;
|
|
531
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
532
|
+
fullName: z.ZodString;
|
|
533
|
+
originalName: z.ZodString;
|
|
534
|
+
serverName: z.ZodString;
|
|
535
|
+
description: z.ZodOptional<z.ZodString>;
|
|
536
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
537
|
+
exposureMode: z.ZodEnum<{
|
|
538
|
+
hidden: "hidden";
|
|
547
539
|
direct: "direct";
|
|
540
|
+
discovery: "discovery";
|
|
548
541
|
}>;
|
|
542
|
+
enabled: z.ZodBoolean;
|
|
543
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
544
|
+
discovery: "discovery";
|
|
545
|
+
toolset: "toolset";
|
|
546
|
+
}>>;
|
|
547
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
548
|
+
exposed: z.ZodBoolean;
|
|
549
549
|
}, z.core.$strip>>;
|
|
550
550
|
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
551
551
|
fullName: z.ZodString;
|
|
@@ -555,8 +555,8 @@ declare const AgentRuntimeSchemas: {
|
|
|
555
555
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
556
556
|
exposureMode: z.ZodEnum<{
|
|
557
557
|
hidden: "hidden";
|
|
558
|
-
discovery: "discovery";
|
|
559
558
|
direct: "direct";
|
|
559
|
+
discovery: "discovery";
|
|
560
560
|
}>;
|
|
561
561
|
enabled: z.ZodBoolean;
|
|
562
562
|
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
@@ -585,18 +585,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
585
585
|
env?: Record<string, string> | undefined;
|
|
586
586
|
mcpSessionContext?: {
|
|
587
587
|
sessionId: string;
|
|
588
|
-
directTools: {
|
|
589
|
-
fullName: string;
|
|
590
|
-
originalName: string;
|
|
591
|
-
serverName: string;
|
|
592
|
-
inputSchema: Record<string, unknown>;
|
|
593
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
594
|
-
enabled: boolean;
|
|
595
|
-
exposed: boolean;
|
|
596
|
-
description?: string | undefined;
|
|
597
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
598
|
-
enabledAt?: number | undefined;
|
|
599
|
-
}[];
|
|
600
588
|
servers: {
|
|
601
589
|
name: string;
|
|
602
590
|
transport: {
|
|
@@ -624,14 +612,26 @@ declare const AgentRuntimeSchemas: {
|
|
|
624
612
|
}[] | undefined;
|
|
625
613
|
alwaysLoad?: boolean | undefined;
|
|
626
614
|
};
|
|
627
|
-
exposureMode: "
|
|
615
|
+
exposureMode: "direct" | "discovery";
|
|
616
|
+
}[];
|
|
617
|
+
directTools: {
|
|
618
|
+
fullName: string;
|
|
619
|
+
originalName: string;
|
|
620
|
+
serverName: string;
|
|
621
|
+
inputSchema: Record<string, unknown>;
|
|
622
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
623
|
+
enabled: boolean;
|
|
624
|
+
exposed: boolean;
|
|
625
|
+
description?: string | undefined;
|
|
626
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
627
|
+
enabledAt?: number | undefined;
|
|
628
628
|
}[];
|
|
629
629
|
discoverableTools: {
|
|
630
630
|
fullName: string;
|
|
631
631
|
originalName: string;
|
|
632
632
|
serverName: string;
|
|
633
633
|
inputSchema: Record<string, unknown>;
|
|
634
|
-
exposureMode: "hidden" | "
|
|
634
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
635
635
|
enabled: boolean;
|
|
636
636
|
exposed: boolean;
|
|
637
637
|
description?: string | undefined;
|
|
@@ -659,18 +659,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
659
659
|
env?: Record<string, string> | undefined;
|
|
660
660
|
mcpSessionContext?: {
|
|
661
661
|
sessionId: string;
|
|
662
|
-
directTools: {
|
|
663
|
-
fullName: string;
|
|
664
|
-
originalName: string;
|
|
665
|
-
serverName: string;
|
|
666
|
-
inputSchema: Record<string, unknown>;
|
|
667
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
668
|
-
enabled: boolean;
|
|
669
|
-
exposed: boolean;
|
|
670
|
-
description?: string | undefined;
|
|
671
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
672
|
-
enabledAt?: number | undefined;
|
|
673
|
-
}[];
|
|
674
662
|
servers: {
|
|
675
663
|
name: string;
|
|
676
664
|
transport: {
|
|
@@ -698,14 +686,26 @@ declare const AgentRuntimeSchemas: {
|
|
|
698
686
|
}[] | undefined;
|
|
699
687
|
alwaysLoad?: boolean | undefined;
|
|
700
688
|
};
|
|
701
|
-
exposureMode: "
|
|
689
|
+
exposureMode: "direct" | "discovery";
|
|
690
|
+
}[];
|
|
691
|
+
directTools: {
|
|
692
|
+
fullName: string;
|
|
693
|
+
originalName: string;
|
|
694
|
+
serverName: string;
|
|
695
|
+
inputSchema: Record<string, unknown>;
|
|
696
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
697
|
+
enabled: boolean;
|
|
698
|
+
exposed: boolean;
|
|
699
|
+
description?: string | undefined;
|
|
700
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
701
|
+
enabledAt?: number | undefined;
|
|
702
702
|
}[];
|
|
703
703
|
discoverableTools: {
|
|
704
704
|
fullName: string;
|
|
705
705
|
originalName: string;
|
|
706
706
|
serverName: string;
|
|
707
707
|
inputSchema: Record<string, unknown>;
|
|
708
|
-
exposureMode: "hidden" | "
|
|
708
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
709
709
|
enabled: boolean;
|
|
710
710
|
exposed: boolean;
|
|
711
711
|
description?: string | undefined;
|
|
@@ -731,18 +731,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
731
731
|
env?: Record<string, string> | undefined;
|
|
732
732
|
mcpSessionContext?: {
|
|
733
733
|
sessionId: string;
|
|
734
|
-
directTools: {
|
|
735
|
-
fullName: string;
|
|
736
|
-
originalName: string;
|
|
737
|
-
serverName: string;
|
|
738
|
-
inputSchema: Record<string, unknown>;
|
|
739
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
740
|
-
enabled: boolean;
|
|
741
|
-
exposed: boolean;
|
|
742
|
-
description?: string | undefined;
|
|
743
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
744
|
-
enabledAt?: number | undefined;
|
|
745
|
-
}[];
|
|
746
734
|
servers: {
|
|
747
735
|
name: string;
|
|
748
736
|
transport: {
|
|
@@ -770,14 +758,26 @@ declare const AgentRuntimeSchemas: {
|
|
|
770
758
|
}[] | undefined;
|
|
771
759
|
alwaysLoad?: boolean | undefined;
|
|
772
760
|
};
|
|
773
|
-
exposureMode: "
|
|
761
|
+
exposureMode: "direct" | "discovery";
|
|
762
|
+
}[];
|
|
763
|
+
directTools: {
|
|
764
|
+
fullName: string;
|
|
765
|
+
originalName: string;
|
|
766
|
+
serverName: string;
|
|
767
|
+
inputSchema: Record<string, unknown>;
|
|
768
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
769
|
+
enabled: boolean;
|
|
770
|
+
exposed: boolean;
|
|
771
|
+
description?: string | undefined;
|
|
772
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
773
|
+
enabledAt?: number | undefined;
|
|
774
774
|
}[];
|
|
775
775
|
discoverableTools: {
|
|
776
776
|
fullName: string;
|
|
777
777
|
originalName: string;
|
|
778
778
|
serverName: string;
|
|
779
779
|
inputSchema: Record<string, unknown>;
|
|
780
|
-
exposureMode: "hidden" | "
|
|
780
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
781
781
|
enabled: boolean;
|
|
782
782
|
exposed: boolean;
|
|
783
783
|
description?: string | undefined;
|
|
@@ -805,18 +805,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
805
805
|
env?: Record<string, string> | undefined;
|
|
806
806
|
mcpSessionContext?: {
|
|
807
807
|
sessionId: string;
|
|
808
|
-
directTools: {
|
|
809
|
-
fullName: string;
|
|
810
|
-
originalName: string;
|
|
811
|
-
serverName: string;
|
|
812
|
-
inputSchema: Record<string, unknown>;
|
|
813
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
814
|
-
enabled: boolean;
|
|
815
|
-
exposed: boolean;
|
|
816
|
-
description?: string | undefined;
|
|
817
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
818
|
-
enabledAt?: number | undefined;
|
|
819
|
-
}[];
|
|
820
808
|
servers: {
|
|
821
809
|
name: string;
|
|
822
810
|
transport: {
|
|
@@ -844,14 +832,26 @@ declare const AgentRuntimeSchemas: {
|
|
|
844
832
|
}[] | undefined;
|
|
845
833
|
alwaysLoad?: boolean | undefined;
|
|
846
834
|
};
|
|
847
|
-
exposureMode: "
|
|
835
|
+
exposureMode: "direct" | "discovery";
|
|
836
|
+
}[];
|
|
837
|
+
directTools: {
|
|
838
|
+
fullName: string;
|
|
839
|
+
originalName: string;
|
|
840
|
+
serverName: string;
|
|
841
|
+
inputSchema: Record<string, unknown>;
|
|
842
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
843
|
+
enabled: boolean;
|
|
844
|
+
exposed: boolean;
|
|
845
|
+
description?: string | undefined;
|
|
846
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
847
|
+
enabledAt?: number | undefined;
|
|
848
848
|
}[];
|
|
849
849
|
discoverableTools: {
|
|
850
850
|
fullName: string;
|
|
851
851
|
originalName: string;
|
|
852
852
|
serverName: string;
|
|
853
853
|
inputSchema: Record<string, unknown>;
|
|
854
|
-
exposureMode: "hidden" | "
|
|
854
|
+
exposureMode: "hidden" | "direct" | "discovery";
|
|
855
855
|
enabled: boolean;
|
|
856
856
|
exposed: boolean;
|
|
857
857
|
description?: string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./json-value-CmhSGMLv.mjs";import{a as n,s as ee}from"./visibility-Cb62p9bv.mjs";import"./credential-ref-YWQQENEo.mjs";import{c as te,f as r,i as ne,o as i,p as a,r as re,s as ie}from"./shared-DpOEfD8F.mjs";import{a as ae,d as oe,i as o,n as se,o as s,p as ce,r as c,t as le}from"./compression-vRUOO-28.mjs";import{t as l}from"./schemas-DAYPhB5K.mjs";import{r as ue}from"./profile-r4G32bCH.mjs";import{i as u}from"./account-identity-D-9gunfD.mjs";import{SessionLineageSchema as de}from"./contracts/adapter/schemas/session-lineage.mjs";import{z as d}from"zod";import{localSubject as fe,observability as f}from"@makaio/framework/core";const p=d.object({adapterId:d.string(),adapterName:d.string()}),m=d.object({cwd:d.string().optional(),allowedTools:d.array(d.string()).optional(),disallowedTools:d.array(d.string()).optional(),allowedDirectories:d.array(d.string()).optional(),systemPrompt:r.optional()}),pe={request:d.object({adapterName:d.string().optional(),adapterId:d.string().optional()}).refine(e=>e.adapterName||e.adapterId,{message:`Either adapterName or adapterId must be provided`}),response:d.object({capabilities:d.array(d.string()),nativeTools:d.array(d.string())})},h=d.enum([`lead`,`member`]),g=d.enum([`fork`,`branch`,`subagent`,`compress`,`rewrite`,`coordinator`,`aside`]),_=d.enum([`parent-history`,`none`]),v=d.enum([`discovered`,`imported`,`tracking`]),y=d.object({sessionId:d.string(),title:d.string().nullable(),forkPointMessageId:d.string().nullable(),branchKind:g.nullable(),messageCount:d.number(),hasChildren:d.boolean(),spawningToolCallId:d.string().optional()}),b=d.object({fromMessageId:d.string(),toMessageId:d.string(),policy:d.enum([`verbatim`,`summarize`,`exclude`]),stripReasoning:d.boolean().optional(),stripToolOutputs:d.boolean().optional(),overrides:d.record(d.string(),d.literal(`exclude`)).optional(),summaryText:d.string().optional()}),x=d.object({removedMessageIds:d.array(d.string()).optional(),appliedPipeline:d.array(d.object({actionId:d.string(),options:d.record(d.string(),d.unknown()).optional()})).optional(),segments:d.array(b).optional()}),me=d.object({parentSessionId:d.string(),childSessionId:d.string(),summary:d.string().optional(),source:d.enum([`extension`,`user`,`system`]).optional(),extensionId:d.string().optional()}),he=d.object({success:d.boolean(),handoff:d.string().optional()}),ge=d.object({parentSessionId:d.string(),childSessionId:d.string(),source:d.enum([`extension`,`user`,`system`]).optional(),extensionId:d.string().optional()}),_e=d.object({success:d.boolean()}),ve=d.object({sessionId:d.string()}),ye=d.object({children:d.array(y)}),be=d.object({parentSessionId:d.string(),childSessionId:d.string(),reason:d.string()}),xe=d.object({parentSessionId:d.string(),childSessionId:d.string(),forkPoint:d.string().optional()}),Se=d.object({parentSessionId:d.string(),childSessionId:d.string()}),Ce=d.object({parentSessionId:d.string(),childSessionId:d.string(),handoff:d.string()}),we=d.object({sessionId:d.string(),parentSessionId:d.string().optional()}),Te=d.object({parentSessionId:d.string(),childSessionId:d.string(),result:d.unknown()}),Ee=d.object({sessionId:d.string(),reason:d.string(),source:d.enum([`extension`,`user`,`system`]).optional(),extensionId:d.string().optional()}),De=d.object({sessionId:d.string(),pipeline:d.array(d.object({actionId:d.string(),options:d.record(d.string(),d.unknown()).optional()}))}),Oe=d.object({eventId:d.string(),contextJson:d.record(d.string(),d.unknown()),tokensBefore:d.number(),tokensAfter:d.number().optional()}),ke=d.object({sessionId:d.string(),childSessionId:d.string(),parentSessionId:d.string(),kind:g,forkPointMessageId:d.string().optional(),transforms:x.optional()}),Ae=d.object({sessionId:d.string(),childSessionId:d.string(),parentSessionId:d.string(),resultJson:d.string().optional(),resultMessageId:d.string().optional()}),je=d.object({sessionId:d.string(),summaryJson:d.string(),tokensBefore:d.number().optional(),tokensAfter:d.number().optional(),compressedMessageIds:d.array(d.string()).optional()}),S=d.object({sessionId:d.string(),parentSessionId:d.string().nullable(),branchKind:g.nullable(),createdAt:d.number(),originWindowId:d.string().optional()}),C=d.object({sessionId:d.string(),changedProperties:d.array(d.string())}),Me={merge:{request:me,response:he},abandon:{request:ge,response:_e},getChildren:{request:ve,response:ye},forking:be,forked:xe,merging:Se,merged:Ce,abandoned:we,childCompleted:Te,compressionRequested:Ee,"branch.created":ke,"branch.merged":Ae,squash:je,created:S,updated:C,compress:{request:De,response:Oe}},w=d.object({messageHistory:d.array(te).optional(),hasNewTransforms:d.boolean().optional(),hasCompression:d.boolean().optional(),extractedContext:d.unknown().optional(),isFirstTurn:d.boolean().optional(),hasConnectorSwap:d.boolean().optional(),turnContext:d.record(d.string(),e).optional()}),T=ne,E=d.enum([`user`,`assistant`]),D=d.enum([`voice`,`text`,`compact`]),O=d.object({messageId:d.string(),turnId:d.string().nullable(),sessionId:d.string(),role:E,contentText:d.string(),blocks:d.array(T),agentId:d.string().optional(),adapterSessionId:d.string().optional(),adapterMessageId:d.string().optional(),timestamp:d.number(),editOf:d.string().optional(),origin:D.optional()}),k=d.enum([`active`,`completed`,`error`]),A=d.object({inputTokens:d.number(),outputTokens:d.number(),cost:d.number().optional()}),j=d.object({total:A,byAgent:d.record(d.string(),A).optional()}),M=d.object({source:d.enum([`user`,`extension`,`system`]),sourceId:d.string().optional()}),N=d.object({turnId:d.string(),sessionId:d.string(),turnNumber:d.number().int().min(1),startedAt:d.number(),completedAt:d.number().optional(),status:k,error:d.string().optional(),usage:j.optional(),initiator:M.optional()}),P=d.enum([`sent`,`acknowledged`,`completed`]),Ne=d.object({messageId:d.string(),agentId:d.string(),status:P,timestamp:d.number(),error:d.string().optional()}),F=d.object({sessionId:d.string(),turnId:d.string(),turnNumber:d.number().int().min(1)}),I=F.extend({messageId:d.string()}),L=F.extend({success:d.boolean(),error:d.string().optional(),usage:j.optional(),initiator:M.optional()}),Pe=ae.safeExtend({kind:d.string().regex(/^(?!(?:adapter|canonical-model)$).+$/)}),Fe=d.union([o,se,Pe]),Ie=o.extend({providerContext:c.optional()}),Le=d.object({sessionId:d.string(),agent:Ie,initialMessage:i.optional(),role:d.enum([`lead`,`member`]).optional()}),Re=d.object({agentId:d.string(),adapterSessionId:d.string(),role:d.enum([`lead`,`member`]),messageId:d.string().optional(),turnId:d.string().optional()}),R={sendMessage:{request:d.object({sessionId:d.string(),message:i,agent:Fe.optional(),agentIds:d.union([d.array(d.string()),d.literal(`all`)]).optional(),deliveryMode:d.enum([`enqueue`]).optional(),turnId:d.string().optional(),sessionContext:w.optional(),responseSchema:a.optional(),source:d.enum([`extension`,`user`,`system`]).optional(),extensionId:d.string().optional(),originWindowId:d.string().optional(),skipConnectorSwapWarning:d.boolean().optional(),origin:D.optional()}),response:d.object({messageId:d.string(),turnId:d.string(),sessionId:d.string()})},"agent.attach":{request:d.object({sessionId:d.string(),agent:s,initialMessage:i.optional(),role:d.enum([`lead`,`member`]).optional()}),response:d.object({agentId:d.string(),adapterSessionId:d.string(),role:d.enum([`lead`,`member`]),messageId:d.string().optional(),turnId:d.string().optional()})},"agent.attachResolved":fe({request:Le,response:Re}),"turn.started":F.extend({messageId:d.string(),agentIds:d.array(d.string()),initiator:M.optional()}),"turn.completed":L,"turn.await":{request:d.object({sessionId:d.string(),turnId:d.string(),timeoutMs:d.number().int().positive()}),response:d.object({completion:L})},"user_message.sent":I.extend({content:i,agentIds:d.array(d.string()),source:d.enum([`extension`,`user`,`system`]).optional(),origin:D.optional()}),"user_message.acknowledged":I.extend({agentId:d.string()}),"user_message.completed":I.extend({agentId:d.string(),outcome:ie,supersededBy:d.string().optional(),mergedInto:d.string().optional(),error:d.string().optional()}),fork:{request:d.object({sourceSessionId:d.string(),fromMessageId:d.string().optional(),name:d.string().optional(),branchKind:d.enum([`fork`,`branch`,`aside`]).optional(),transforms:x.optional(),targetWorkingDirectory:d.string().optional(),existingSessionId:d.string().optional()}),response:d.object({sessionId:d.string()})}},z=d.enum([`idle`,`active`,`dead`,`disposed`]),B=d.object({agentId:d.string(),adapterId:d.string(),adapterName:d.string(),sessionId:d.string(),adapterSessionId:d.string().optional(),model:d.string().optional(),cwd:d.string().optional(),allowedDirectories:d.array(d.string()).optional(),providerConfigId:d.string().optional(),personaId:d.string().optional(),profileId:d.string().optional(),harnessId:d.string().optional(),clientId:d.string().optional(),compressionMode:le.optional(),role:h,status:z,createdAt:d.number(),lastActivityAt:d.number()}),V=d.object({sessionId:d.string(),createdAt:d.number(),lastActivityAt:d.number(),agents:d.array(B),status:d.enum([`active`,`closed`,`archived`,`discovered`]),leadAgentId:d.string().optional(),parentSessionId:d.string().optional(),contextInheritance:_.optional(),rootSessionId:d.string().optional(),forkPointMessageId:d.string().optional(),branchKind:g.optional(),adapterName:d.string().optional(),adapterSessionId:d.string().optional(),adapterId:d.string().optional(),clientId:d.string().optional(),clientAccountId:d.string().optional(),lastClientIdentityObservation:u.optional(),isOrchestrated:d.boolean().optional(),title:d.string().optional(),summary:d.string().optional(),summaryUpdatedAt:d.number().optional(),isImported:d.boolean().optional(),forkTransforms:x.optional(),targetWorkingDirectory:d.string().optional(),executionTargetId:d.string().optional(),spawningToolCallId:d.string().optional(),approvalPolicyOverride:l.nullable().optional(),source:d.string().optional(),parentExternalSessionId:d.string().optional(),logFilePath:d.string().optional(),discoveredAt:d.number().optional(),importStatus:v.optional()}),H=d.object({messageCount:d.number(),firstUserMessage:d.string().nullable()}),U=V.extend({preview:H.optional()}),ze=d.discriminatedUnion(`success`,[d.object({agentId:d.string(),adapterId:d.string(),success:d.literal(!0)}),d.object({agentId:d.string(),adapterId:d.string(),success:d.literal(!1),error:d.string()})]),W=d.object({sessionId:d.string().optional(),parentSessionId:d.string().optional(),contextInheritance:_.optional(),forkPointMessageId:d.string().optional(),branchKind:g.optional(),forkTransforms:x.optional(),title:d.string().optional(),targetWorkingDirectory:d.string().optional(),executionTargetId:d.string().optional(),spawningToolCallId:d.string().optional(),originWindowId:d.string().optional()});function G(e,t){e.spawningToolCallId&&e.branchKind!==`subagent`&&t.addIssue({code:d.ZodIssueCode.custom,path:[`spawningToolCallId`],message:`spawningToolCallId is only valid for subagent sessions`})}const Be={list:{request:f.schema(d.object({status:d.enum([`active`,`closed`,`archived`,`discovered`,`all`]).optional(),limit:d.number().int().min(1).optional(),offset:f.hidden(d.number().int().min(0).optional()),includePreview:d.boolean().optional(),executionTargetId:d.string().optional()}),{traceAll:!0}),response:d.object({sessions:d.array(U),total:d.number()})},search:{request:d.object({query:d.string(),limit:d.number().int().min(1).optional(),status:d.enum([`active`,`closed`,`archived`,`discovered`,`all`]).optional(),isImported:d.boolean().optional()}),response:d.object({sessions:d.array(U),total:d.number()})},get:{request:d.object({sessionId:d.string()}),response:d.object({session:V.nullable()})},create:{request:W.superRefine(G),response:d.object({sessionId:d.string()})},close:{request:d.object({sessionId:d.string()}),response:d.object({success:d.boolean()})},resume:{request:d.object({sessionId:d.string()}),response:d.object({success:d.boolean()})},restartAgents:{request:d.object({sessionId:d.string()}),response:d.object({sessionId:d.string(),results:d.array(ze)})},archive:{request:d.object({sessionId:d.string()}),response:d.object({success:d.boolean()})},purge:{request:d.object({sessionId:d.string()}),response:d.object({success:d.boolean(),eventsDeleted:d.number().optional(),error:d.string().optional()})},update:{request:d.object({sessionId:d.string(),executionTargetId:d.string().nullable().optional(),approvalPolicyOverride:l.nullable().optional(),title:d.string().optional()}),response:d.object({success:d.boolean()})},getByAdapterSessionId:{request:d.object({adapterSessionId:d.string()}),response:d.object({session:V.nullable()})},getStatusCounts:{request:d.object({}),response:d.object({all:d.number(),active:d.number(),closed:d.number(),archived:d.number(),discovered:d.number()})},registerExternal:{request:W.extend({adapterName:d.string(),adapterSessionId:d.string(),lastClientIdentityObservation:u.optional()}).superRefine(G),response:d.object({sessionId:d.string(),created:d.boolean()})}},K=d.object({sessionId:d.string(),eventId:d.string(),timestamp:d.number()}),Ve=d.discriminatedUnion(`type`,[K.extend({type:d.literal(`agent.added`),payload:d.object({sessionId:d.string(),adapterSessionId:d.string(),agentId:d.string(),adapterId:d.string(),adapterName:d.string(),role:d.enum([`lead`,`member`]).optional(),model:d.string().optional(),cwd:d.string().optional()})}),K.extend({type:d.literal(`user_message.sent`),payload:R[`user_message.sent`]}),K.extend({type:d.literal(`user_message.acknowledged`),payload:R[`user_message.acknowledged`]}),K.extend({type:d.literal(`user_message.completed`),payload:R[`user_message.completed`]}),K.extend({type:d.literal(`turn.started`),payload:R[`turn.started`]}),K.extend({type:d.literal(`turn.completed`),payload:R[`turn.completed`]}),K.extend({type:d.literal(`message`),payload:d.object({messageId:d.string(),turnId:d.string().nullable(),role:d.enum([`user`,`assistant`])})}),K.extend({type:d.literal(`branch.created`),payload:d.object({childSessionId:d.string(),parentSessionId:d.string(),kind:g,forkPointMessageId:d.string().optional()})}),K.extend({type:d.literal(`branch.merged`),payload:d.object({childSessionId:d.string(),parentSessionId:d.string(),resultJson:d.string().optional(),resultMessageId:d.string().optional()})}),K.extend({type:d.literal(`squash`),payload:d.object({summaryJson:d.string(),tokensBefore:d.number().optional(),tokensAfter:d.number().optional(),compressedMessageIds:d.array(d.string()).optional()})})]),q=[`message`,`agent.added`,`turn.started`,`turn.completed`,`user_message.sent`,`user_message.acknowledged`,`user_message.completed`,`branch.created`,`branch.merged`,`squash`],He=q,Ue=K.extend({type:d.string().refine(e=>!q.includes(e),{message:`Plugin session event type must not shadow a core event type.`}),payload:d.record(d.string(),d.unknown())}),J=d.union([Ve,Ue]),We=d.string(),Y=d.object({sessionId:d.string().min(1),clientId:d.string().min(1),previousClientAccountId:d.string().min(1).nullable(),clientAccountId:d.string().min(1),source:d.string().min(1),observedAt:d.number().int().finite().nonnegative(),lastClientIdentityObservation:u}),X=d.object({sessionId:d.string(),importStatus:v}),Ge={"agent.added":d.object({sessionId:d.string(),adapterSessionId:d.string(),agentId:d.string(),adapterId:d.string(),adapterName:d.string(),role:h.optional(),model:d.string().optional(),cwd:d.string().optional()}),"agent.removed":d.object({sessionId:d.string(),agentId:d.string()}),closed:d.object({sessionId:d.string(),reason:d.string().optional()}),resumed:d.object({sessionId:d.string()}),archived:d.object({sessionId:d.string()}),purged:d.object({sessionId:d.string()}),compressed:d.object({sessionId:d.string(),eventId:d.string()}),"clientAccount.changed":Y,"connectorSwap.editRequested":d.object({sessionId:d.string(),agentId:d.string(),previousCwd:d.string().optional(),newCwd:d.string().optional(),previousModel:d.string().optional(),newModel:d.string().optional()}),getContextWindowState:{request:d.object({sessionId:d.string()}),response:d.object({state:d.object({currentTokens:d.number(),maxTokens:d.number(),percentage:d.number(),level:d.enum([`ok`,`warn`,`critical`]),lastUpdatedAt:d.number()}).nullable()})},importStatusChanged:X,"import.completed":d.object({sessionId:d.string(),adapterSessionId:d.string(),source:d.string()}),event:J},Z=d.object({includeEvents:d.boolean().default(!1),includeToolOutputs:d.boolean().default(!1),includeAncestors:d.boolean().default(!0),includeChildren:d.boolean().default(!1)}),Ke=`1.0`,Q=d.object({version:d.literal(`1.0`),exportedAt:d.number(),options:Z,sessions:d.array(V),agents:d.array(B),messages:d.array(O),turns:d.array(N),events:d.array(J).optional()});function qe(e){return Q.parse(e)}function Je(e){let t=Q.safeParse(e);return t.success?{success:!0,data:t.data}:{success:!1,error:t.error}}const Ye={"snapshot.export":{request:d.object({sessionId:d.string(),options:Z.optional()}),response:d.object({snapshot:Q})},"snapshot.import":{request:d.object({snapshot:Q,onConflict:d.enum([`fail`,`skip`,`overwrite`]).default(`fail`)}),response:d.object({imported:d.array(d.string()),skipped:d.array(d.string()),errors:d.array(d.object({sessionId:d.string(),error:d.string()}))})},"snapshot.validate":{request:d.object({snapshot:d.unknown()}),response:d.object({valid:d.boolean(),errors:d.array(d.string())})}},Xe={resolveAgentConfig:{request:d.object({selection:s,projectId:d.string().optional()}),response:d.object({adapterName:d.string(),model:d.string().optional(),providerConfigId:d.string().optional(),reasoningEffort:n.optional(),supportedReasoningLevels:ee.optional(),systemPrompt:r.optional(),allowedTools:d.array(d.string()).optional(),disallowedTools:d.array(d.string()).optional(),allowedDirectories:d.array(d.string()).optional()})}},Ze={resolveSystemPrompt:{request:d.object({sessionId:d.string(),personaId:d.string().optional(),profileId:d.string().optional()}),response:d.object({systemPrompt:d.string(),personaName:d.string().optional(),profileName:d.string().optional()})}},Qe={enrichContext:{request:d.object({sessionId:d.string()}),response:d.record(d.string(),d.unknown())}},$e={...Be,...Ge,...Ye,...Me,...R,...Xe,...Ze,...Qe},$=d.object({adapterId:d.string(),harnessId:d.string().optional(),clientId:d.string().optional(),clientProfileName:ue.optional(),initialMessage:i.optional(),responseSchema:a.optional(),model:d.string().optional(),reasoningEffort:n.optional(),adapterConfig:t.optional(),env:d.record(d.string(),d.string()).optional(),role:h,sessionContext:w.optional(),mcpSessionContext:d.union([ce,oe]).optional(),providerContext:c.optional(),ephemeral:d.boolean().optional()}).merge(m),et={request:d.union([$.extend({mode:d.literal(`fork`),sessionId:d.string(),sourceSessionId:d.string()}),$.extend({mode:d.literal(`resume`),sessionId:d.string(),adapterSessionId:d.string()}),$.extend({mode:d.literal(`create`).optional(),sessionId:d.string().optional()})]).superRefine((e,t)=>{let n=e.mode??`create`;e.ephemeral&&n!==`create`&&t.addIssue({code:d.ZodIssueCode.custom,path:[`ephemeral`],message:`ephemeral is only supported for create mode`}),e.ephemeral&&e.initialMessage===void 0&&t.addIssue({code:d.ZodIssueCode.custom,path:[`initialMessage`],message:`ephemeral startAgent requires initialMessage`})}),response:d.discriminatedUnion(`success`,[d.object({success:d.literal(!0),agentId:d.string(),adapterId:d.string(),adapterSessionId:d.string(),sessionId:d.string(),messageId:d.string().optional()}),d.object({success:d.literal(!1),message:d.string()})])},tt={request:d.object({adapterId:d.string(),prompt:d.string(),model:d.string().optional(),systemPrompt:d.string().optional(),responseSchema:a.optional(),providerContext:c.optional()}),response:d.object({text:d.string(),usage:d.object({inputTokens:d.number(),outputTokens:d.number()}).optional()})},nt={request:d.object({adapterId:d.string()}),response:d.object({agents:d.array(d.object({agentId:d.string(),sessionId:d.string(),adapterSessionId:d.string()}))})},rt={request:d.object({adapterId:d.string(),agentId:d.string()}),response:d.object({agent:d.object({agentId:d.string(),sessionId:d.string(),adapterSessionId:d.string()}).nullable()})},it={request:d.object({adapterId:d.string(),agentId:d.string()}),response:d.object({success:d.boolean()})},at={request:d.object({adapterId:d.string(),agentId:d.string(),cwd:d.string().optional(),model:d.string().optional(),adapterSessionId:d.string().optional()}),response:d.object({})},ot={request:d.object({adapterName:d.string()}),response:d.object({found:d.boolean(),adapterName:d.string(),jsonSchema:d.record(d.string(),d.unknown()).nullable()})},st=p.extend({agentId:d.string(),sessionId:d.string(),adapterSessionId:d.string().optional()}),ct=p.extend({adapterSessionId:d.string(),sessionId:d.string(),model:d.string()}),lt=p.extend({sessionId:d.string(),adapterSessionId:d.string(),totalInputTokens:d.number(),totalOutputTokens:d.number(),totalCalls:d.number()}),ut=p.extend({agentId:d.string(),sessionId:d.string(),adapterSessionId:d.string(),reason:d.string().optional()}),dt=p.extend({message:d.string(),timestamp:d.number(),level:d.enum([`debug`,`info`,`warn`,`error`]).optional()}),ft=p.extend({error:d.string(),sessionId:d.string().optional(),errorCategory:re.optional()}),pt=p.extend({capabilities:d.array(d.string()),nativeTools:d.array(d.string()).optional()}),mt=p.extend({provider:d.string(),quotaType:d.string(),limit:d.number(),used:d.number(),overage:d.number(),resetDate:d.string()}),ht=d.object({agentId:d.string(),adapterId:d.string(),adapterName:d.string(),sessionId:d.string().optional(),adapterSessionId:d.string(),messageId:d.string().optional(),turnId:d.string().optional(),clientId:d.string().optional(),providerConfigId:d.string().optional(),occurredAt:d.number().optional()}),gt=d.object({model:d.string().nullable(),cwd:d.string().nullable()}),_t=ht.merge(gt),vt=p.merge(gt).extend({adapterSessionId:d.string(),title:d.string().optional(),logFilePath:d.string().nullable().optional(),startedAt:d.number().finite().optional()}).and(de);export{S as $,J as A,P as B,Ke as C,qe as D,Je as E,H as F,M as G,D as H,U as I,j as J,N as K,z as L,We as M,W as N,Y as O,V as P,b as Q,B as R,Xe as S,Z as T,E as U,T as V,O as W,w as X,A as Y,x as Z,tt as _,pt as a,_ as at,Qe as b,ut as c,st as d,C as et,ot as f,nt as g,rt as h,mt as i,v as it,He as j,X as k,lt as l,it as m,_t as n,h as nt,ft as o,pe as ot,at as p,k as q,ht as r,g as rt,dt as s,m as st,vt as t,y as tt,ct as u,et as v,Q as w,Ze as x,$e as y,Ne as z};
|
|
@@ -44,14 +44,14 @@ type SubagentTemplateSummary = z.infer<typeof SubagentTemplateSummarySchema>;
|
|
|
44
44
|
*/
|
|
45
45
|
declare const SubagentTemplateCreateSchema: z.ZodObject<{
|
|
46
46
|
name: z.ZodString;
|
|
47
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
48
47
|
adapterName: z.ZodString;
|
|
49
|
-
model: z.ZodOptional<z.ZodString>;
|
|
50
48
|
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
51
|
-
|
|
49
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
50
|
+
model: z.ZodOptional<z.ZodString>;
|
|
52
51
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
52
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
53
|
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
55
55
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
56
56
|
fork: "fork";
|
|
57
57
|
fresh: "fresh";
|
|
@@ -129,14 +129,14 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
129
129
|
create: {
|
|
130
130
|
request: z.ZodObject<{
|
|
131
131
|
name: z.ZodString;
|
|
132
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
133
132
|
adapterName: z.ZodString;
|
|
134
|
-
model: z.ZodOptional<z.ZodString>;
|
|
135
133
|
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
136
|
-
|
|
134
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
135
|
+
model: z.ZodOptional<z.ZodString>;
|
|
137
136
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
137
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
138
|
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
140
140
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
141
141
|
fork: "fork";
|
|
142
142
|
fresh: "fresh";
|
|
@@ -26,9 +26,9 @@ declare const TrayMenuEntrySchema: z.ZodObject<{
|
|
|
26
26
|
/** A group entry inherits its owning package and section from the group. */
|
|
27
27
|
declare const TrayMenuGroupEntrySchema: z.ZodObject<{
|
|
28
28
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
-
priority: z.ZodDefault<z.ZodNumber>;
|
|
31
29
|
label: z.ZodString;
|
|
30
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
32
32
|
entryId: z.ZodString;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
/** Ordered group of tray entries contributed by one package. */
|
|
@@ -37,9 +37,9 @@ declare const TrayMenuGroupSchema: z.ZodObject<{
|
|
|
37
37
|
groupId: z.ZodString;
|
|
38
38
|
entries: z.ZodArray<z.ZodObject<{
|
|
39
39
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
-
priority: z.ZodDefault<z.ZodNumber>;
|
|
42
40
|
label: z.ZodString;
|
|
41
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
42
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
43
43
|
entryId: z.ZodString;
|
|
44
44
|
}, z.core.$strip>>;
|
|
45
45
|
section: z.ZodEnum<{
|
|
@@ -109,9 +109,9 @@ declare const TrayMenuSchemas: {
|
|
|
109
109
|
groupId: z.ZodString;
|
|
110
110
|
entries: z.ZodArray<z.ZodObject<{
|
|
111
111
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
112
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
113
|
-
priority: z.ZodDefault<z.ZodNumber>;
|
|
114
112
|
label: z.ZodString;
|
|
113
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
114
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
115
115
|
entryId: z.ZodString;
|
|
116
116
|
}, z.core.$strip>>;
|
|
117
117
|
section: z.ZodEnum<{
|