eve 0.89.0 → 0.90.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/CHANGELOG.md +28 -9
- package/dist/src/channel/adapter.d.ts +12 -3
- package/dist/src/channel/adapter.js +1 -1
- package/dist/src/channel/auth/definitions.d.ts +7 -20
- package/dist/src/channel/auth/definitions.js +1 -1
- package/dist/src/channel/auth/jwt-ecdsa.js +1 -1
- package/dist/src/channel/auth/jwt-hmac.js +1 -1
- package/dist/src/channel/auth/oidc.js +1 -1
- package/dist/src/channel/auth/result.d.ts +2 -3
- package/dist/src/channel/auth/result.js +1 -1
- package/dist/src/channel/channel-address.d.ts +1 -1
- package/dist/src/channel/channel-address.js +1 -1
- package/dist/src/channel/schedule.js +1 -1
- package/dist/src/chunks/{use-eve-agent-Bbl4H5aA.js → use-eve-agent-Bwloorf8.js} +77 -63
- package/dist/src/chunks/{use-eve-agent-CNpxgKEH.js → use-eve-agent-XCB0-tLX.js} +77 -63
- package/dist/src/cli/dev/environment.js +1 -1
- package/dist/src/cli/dev/tui/remote-connection-probe.js +1 -1
- package/dist/src/cli/dev/tui/remote-connection-types.d.ts +1 -0
- package/dist/src/cli/dev/tui/runner.js +2 -2
- package/dist/src/cli/dev/tui/status-line.d.ts +2 -2
- package/dist/src/cli/dev/tui/status-line.js +1 -1
- package/dist/src/client/agent-info-schema.d.ts +341 -326
- package/dist/src/client/agent-info-schema.js +1 -1
- package/dist/src/client/agent-info-types.d.ts +13 -10
- package/dist/src/client/client-error.d.ts +1 -1
- package/dist/src/client/client.d.ts +5 -3
- package/dist/src/client/client.js +1 -1
- package/dist/src/compiled/.vendor-stamp.json +1 -1
- package/dist/src/evals/target.js +1 -1
- package/dist/src/eve-channel/auth.d.ts +19 -0
- package/dist/src/eve-channel/auth.js +1 -0
- package/dist/src/eve-channel/index.d.ts +1 -0
- package/dist/src/eve-channel/index.js +1 -1
- package/dist/src/eve-channel/types.d.ts +23 -4
- package/dist/src/execution/catalog/connection-entry.js +1 -1
- package/dist/src/execution/coordination-dispatch-shared.js +1 -1
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/tools/agent-router-workflow.js +1 -1
- package/dist/src/internal/application/stamped-package-version.js +1 -1
- package/dist/src/internal/authored-module-graph.js +1 -1
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.d.ts +2 -2
- package/dist/src/protocol/routes.d.ts +7 -1
- package/dist/src/protocol/routes.js +1 -1
- package/dist/src/public/channels/github/githubChannel.js +1 -1
- package/dist/src/public/channels/github/state.d.ts +7 -0
- package/dist/src/public/channels/github/state.js +1 -1
- package/dist/src/public/channels/mcp.js +1 -1
- package/dist/src/public/channels/telegram/telegramChannel.js +1 -1
- package/dist/src/public/connections/index.d.ts +1 -1
- package/dist/src/public/definitions/channel.js +1 -1
- package/dist/src/public/definitions/connections/tool-call.d.ts +2 -2
- package/dist/src/reactions/frame.js +1 -1
- package/dist/src/runtime/channels/registry.d.ts +2 -2
- package/dist/src/runtime/channels/registry.js +1 -1
- package/dist/src/runtime/connections/approval-scope.d.ts +9 -0
- package/dist/src/runtime/connections/approval-scope.js +1 -0
- package/dist/src/runtime/connections/mcp-client.d.ts +1 -1
- package/dist/src/runtime/connections/mcp-client.js +1 -1
- package/dist/src/runtime/connections/provided-arguments.js +1 -1
- package/dist/src/runtime/subagents/workflow.js +1 -1
- package/dist/src/setup/scaffold/create/project.js +1 -1
- package/dist/src/shared/agent-info-access.d.ts +5 -0
- package/dist/src/shared/agent-info-access.js +1 -0
- package/dist/src/shared/connection-types.d.ts +21 -4
- package/dist/src/svelte/index.js +1 -1
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tools/provided/ask-question-workflow.js +1 -1
- package/dist/src/tools/provided/sleep-workflow.js +1 -1
- package/dist/src/vue/index.js +1 -1
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/channels/custom.mdx +2 -0
- package/docs/channels/eve.mdx +4 -2
- package/docs/concepts/sessions-runs-and-streaming.md +6 -2
- package/docs/connections/overview.mdx +30 -0
- package/docs/evals/targets.mdx +2 -0
- package/docs/evals/tool-stubs.mdx +4 -4
- package/docs/guides/auth-and-route-protection.md +16 -3
- package/docs/guides/client/overview.mdx +6 -2
- package/docs/guides/prepare-for-1-0.md +23 -1
- package/docs/tools/human-in-the-loop.md +1 -1
- package/package.json +1 -1
|
@@ -135,29 +135,33 @@ const mountIdSchema = z.string().min(1);
|
|
|
135
135
|
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region src/client/agent-info-schema.ts
|
|
138
|
+
const AGENT_INFO_VERSION = 5;
|
|
139
|
+
function openEnum(values) {
|
|
140
|
+
return z.union([z.enum(values), z.string().transform(() => "unrecognized")]);
|
|
141
|
+
}
|
|
138
142
|
const owner = z.discriminatedUnion("kind", [
|
|
139
|
-
z.object({ kind: z.literal("application") })
|
|
143
|
+
z.object({ kind: z.literal("application") }),
|
|
140
144
|
z.object({
|
|
141
145
|
feature: z.string(),
|
|
142
146
|
kind: z.literal("framework")
|
|
143
|
-
})
|
|
147
|
+
}),
|
|
144
148
|
z.object({
|
|
145
149
|
kind: z.literal("extension"),
|
|
146
150
|
mountId: mountIdSchema.optional(),
|
|
147
151
|
namespace: z.string(),
|
|
148
152
|
packageName: z.string()
|
|
149
|
-
})
|
|
153
|
+
})
|
|
150
154
|
]);
|
|
151
155
|
const moduleBacking = z.discriminatedUnion("kind", [z.object({
|
|
152
156
|
externalDependencies: z.array(z.string()),
|
|
153
157
|
extensionScope: z.object({
|
|
154
158
|
namespace: z.string(),
|
|
155
159
|
sourceRoot: z.string()
|
|
156
|
-
}).
|
|
160
|
+
}).optional(),
|
|
157
161
|
kind: z.literal("filesystem"),
|
|
158
162
|
mountId: z.string().optional(),
|
|
159
163
|
sourcePath: z.string()
|
|
160
|
-
})
|
|
164
|
+
}), z.object({
|
|
161
165
|
dependencies: z.record(z.string(), z.string()).optional(),
|
|
162
166
|
kind: z.literal("programmatic"),
|
|
163
167
|
mountId: z.string().optional(),
|
|
@@ -166,42 +170,42 @@ const moduleBacking = z.discriminatedUnion("kind", [z.object({
|
|
|
166
170
|
registryId: z.string(),
|
|
167
171
|
revision: z.string(),
|
|
168
172
|
semanticRevision: z.string().optional()
|
|
169
|
-
})
|
|
173
|
+
})]);
|
|
170
174
|
const binding = z.object({
|
|
171
175
|
backing: moduleBacking,
|
|
172
176
|
logicalPath: z.string(),
|
|
173
177
|
owner
|
|
174
|
-
})
|
|
178
|
+
});
|
|
175
179
|
const source = z.object({
|
|
176
180
|
binding: binding.optional(),
|
|
177
181
|
exportName: z.string().optional(),
|
|
178
182
|
logicalPath: z.string(),
|
|
179
183
|
owner,
|
|
180
184
|
sourceId: z.string(),
|
|
181
|
-
sourceKind:
|
|
185
|
+
sourceKind: openEnum([
|
|
182
186
|
"markdown",
|
|
183
187
|
"module",
|
|
184
188
|
"skill-package"
|
|
185
189
|
])
|
|
186
|
-
})
|
|
187
|
-
const entry = source.extend({ name: z.string() })
|
|
188
|
-
const dynamicResolver = source.extend({ slug: z.string() })
|
|
190
|
+
});
|
|
191
|
+
const entry = source.extend({ name: z.string() });
|
|
192
|
+
const dynamicResolver = source.extend({ slug: z.string() });
|
|
189
193
|
const modelRouting = z.discriminatedUnion("kind", [z.object({
|
|
190
194
|
kind: z.literal("gateway"),
|
|
191
195
|
target: z.string(),
|
|
192
196
|
byok: z.string().optional()
|
|
193
|
-
})
|
|
197
|
+
}), z.object({
|
|
194
198
|
kind: z.literal("external"),
|
|
195
199
|
provider: z.string()
|
|
196
|
-
})
|
|
200
|
+
})]);
|
|
197
201
|
const modelEndpoint = z.union([
|
|
198
202
|
z.object({
|
|
199
203
|
kind: z.literal("external"),
|
|
200
204
|
provider: z.string()
|
|
201
|
-
})
|
|
205
|
+
}),
|
|
202
206
|
z.object({
|
|
203
207
|
kind: z.literal("chatgpt"),
|
|
204
|
-
state:
|
|
208
|
+
state: openEnum([
|
|
205
209
|
"checking",
|
|
206
210
|
"ready",
|
|
207
211
|
"signed-out",
|
|
@@ -209,21 +213,21 @@ const modelEndpoint = z.union([
|
|
|
209
213
|
"unavailable"
|
|
210
214
|
]),
|
|
211
215
|
accountLabel: z.string().optional()
|
|
212
|
-
})
|
|
216
|
+
}),
|
|
213
217
|
z.object({
|
|
214
218
|
kind: z.literal("gateway"),
|
|
215
219
|
connected: z.literal(true),
|
|
216
|
-
credential:
|
|
220
|
+
credential: openEnum([
|
|
217
221
|
"api-key",
|
|
218
222
|
"oidc",
|
|
219
223
|
"oauth"
|
|
220
224
|
]),
|
|
221
225
|
team: z.optional(z.string())
|
|
222
|
-
})
|
|
226
|
+
}),
|
|
223
227
|
z.object({
|
|
224
228
|
kind: z.literal("gateway"),
|
|
225
229
|
connected: z.literal(false)
|
|
226
|
-
})
|
|
230
|
+
})
|
|
227
231
|
]);
|
|
228
232
|
const modelBaseFields = {
|
|
229
233
|
contextWindowTokens: z.number().optional(),
|
|
@@ -244,15 +248,15 @@ const agentModel = z.union([z.object({
|
|
|
244
248
|
endpoint: modelEndpoint.optional(),
|
|
245
249
|
id: z.string(),
|
|
246
250
|
routing: modelRouting
|
|
247
|
-
})
|
|
251
|
+
}), z.object({
|
|
248
252
|
...modelBaseFields,
|
|
249
253
|
endpoint: z.never().optional(),
|
|
250
254
|
id: z.never().optional(),
|
|
251
255
|
routing: z.object({
|
|
252
256
|
kind: z.literal("dynamic"),
|
|
253
257
|
resolver: dynamicResolver
|
|
254
|
-
})
|
|
255
|
-
})
|
|
258
|
+
})
|
|
259
|
+
})]);
|
|
256
260
|
const tool = entry.extend({
|
|
257
261
|
description: z.string(),
|
|
258
262
|
hasAuth: z.boolean(),
|
|
@@ -262,23 +266,23 @@ const tool = entry.extend({
|
|
|
262
266
|
inputSchema: z.unknown(),
|
|
263
267
|
outputSchema: z.unknown().optional(),
|
|
264
268
|
requiresApproval: z.boolean()
|
|
265
|
-
})
|
|
269
|
+
});
|
|
266
270
|
const skill = entry.extend({
|
|
267
271
|
description: z.string(),
|
|
268
272
|
license: z.string().optional(),
|
|
269
273
|
markdown: z.string(),
|
|
270
274
|
metadata: z.record(z.string(), z.string()).optional()
|
|
271
|
-
})
|
|
275
|
+
});
|
|
272
276
|
const instructions = entry.extend({
|
|
273
277
|
content: z.string(),
|
|
274
|
-
role:
|
|
275
|
-
})
|
|
278
|
+
role: openEnum(["system", "user"])
|
|
279
|
+
});
|
|
276
280
|
const schedule = entry.extend({
|
|
277
281
|
cron: z.string(),
|
|
278
282
|
hasRun: z.boolean(),
|
|
279
283
|
markdown: z.string().optional()
|
|
280
|
-
})
|
|
281
|
-
const channelMethod =
|
|
284
|
+
});
|
|
285
|
+
const channelMethod = openEnum([
|
|
282
286
|
"GET",
|
|
283
287
|
"HEAD",
|
|
284
288
|
"POST",
|
|
@@ -292,14 +296,14 @@ const channelRoute = entry.extend({
|
|
|
292
296
|
adapterKind: z.string().optional(),
|
|
293
297
|
method: channelMethod,
|
|
294
298
|
urlPath: z.string()
|
|
295
|
-
})
|
|
299
|
+
});
|
|
296
300
|
const sourceDescriptor = z.object({
|
|
297
301
|
backing: z.union([moduleBacking, z.object({
|
|
298
302
|
kind: z.literal("resource"),
|
|
299
303
|
sourcePath: z.string()
|
|
300
|
-
})
|
|
301
|
-
form:
|
|
302
|
-
layer:
|
|
304
|
+
})]),
|
|
305
|
+
form: openEnum(["derived", "direct"]),
|
|
306
|
+
layer: openEnum([
|
|
303
307
|
"framework-default",
|
|
304
308
|
"extension-package",
|
|
305
309
|
"extension-override",
|
|
@@ -308,13 +312,13 @@ const sourceDescriptor = z.object({
|
|
|
308
312
|
logicalPath: z.string(),
|
|
309
313
|
owner,
|
|
310
314
|
sourceId: z.string()
|
|
311
|
-
})
|
|
315
|
+
});
|
|
312
316
|
const shadowedChannelRoute = z.object({
|
|
313
317
|
method: channelMethod,
|
|
314
318
|
source: sourceDescriptor,
|
|
315
319
|
urlPath: z.string(),
|
|
316
320
|
winnerSourceId: z.string()
|
|
317
|
-
})
|
|
321
|
+
});
|
|
318
322
|
const connection = source.extend({
|
|
319
323
|
connectionName: z.string(),
|
|
320
324
|
description: z.string(),
|
|
@@ -324,20 +328,20 @@ const connection = source.extend({
|
|
|
324
328
|
protocol: z.string(),
|
|
325
329
|
toolFilter: z.unknown().optional(),
|
|
326
330
|
url: z.string()
|
|
327
|
-
})
|
|
331
|
+
});
|
|
328
332
|
const hook = source.extend({
|
|
329
333
|
eventNames: z.array(z.string()),
|
|
330
334
|
slug: z.string()
|
|
331
|
-
})
|
|
335
|
+
});
|
|
332
336
|
const memory = source.extend({
|
|
333
337
|
description: z.string().optional(),
|
|
334
338
|
slot: z.string()
|
|
335
|
-
})
|
|
339
|
+
});
|
|
336
340
|
const sandbox = source.extend({
|
|
337
341
|
provider: z.string().optional(),
|
|
338
342
|
environmentExportName: z.string().optional(),
|
|
339
343
|
revisionHash: z.string()
|
|
340
|
-
})
|
|
344
|
+
});
|
|
341
345
|
const subagent = entry.extend({
|
|
342
346
|
configResolver: dynamicResolver.optional(),
|
|
343
347
|
description: z.string().optional(),
|
|
@@ -354,90 +358,91 @@ const subagent = entry.extend({
|
|
|
354
358
|
schedules: z.number(),
|
|
355
359
|
skills: z.number(),
|
|
356
360
|
tools: z.number()
|
|
357
|
-
})
|
|
358
|
-
})
|
|
361
|
+
})
|
|
362
|
+
});
|
|
359
363
|
const remoteAgent = entry.extend({
|
|
360
364
|
description: z.string(),
|
|
361
365
|
nodeId: z.string(),
|
|
362
366
|
parentNodeId: z.string(),
|
|
363
367
|
url: z.string().optional()
|
|
364
|
-
})
|
|
368
|
+
});
|
|
365
369
|
const kernelEffect = z.object({
|
|
366
|
-
action:
|
|
367
|
-
audience: z.array(
|
|
368
|
-
kind:
|
|
370
|
+
action: openEnum(["subagent-call", "workflow-tool-call"]).optional(),
|
|
371
|
+
audience: z.array(openEnum(["root-session"])),
|
|
372
|
+
kind: openEnum(["dispatch", "provider-tool"]),
|
|
369
373
|
sourceId: z.string()
|
|
370
|
-
})
|
|
374
|
+
});
|
|
371
375
|
const compositionDiagnostic = z.object({
|
|
372
|
-
kind:
|
|
376
|
+
kind: openEnum(["disabled", "shadowed"]),
|
|
373
377
|
logicalPath: z.string(),
|
|
374
378
|
owner,
|
|
375
379
|
sourceId: z.string(),
|
|
376
380
|
winnerSourceId: z.string().optional()
|
|
377
|
-
})
|
|
381
|
+
});
|
|
378
382
|
const AgentInfoResultSchema = z.object({
|
|
379
383
|
agent: z.object({
|
|
380
384
|
agentRoot: z.string(),
|
|
381
385
|
appRoot: z.string(),
|
|
382
|
-
config: source.extend({ binding })
|
|
386
|
+
config: source.extend({ binding }),
|
|
383
387
|
description: z.string().optional(),
|
|
384
388
|
model: agentModel,
|
|
385
389
|
name: z.string(),
|
|
386
390
|
nodeId: z.string(),
|
|
387
391
|
outputSchema: z.unknown().optional()
|
|
388
|
-
})
|
|
389
|
-
capabilities: z.object({ devRoutes: z.boolean() })
|
|
392
|
+
}),
|
|
393
|
+
capabilities: z.object({ devRoutes: z.boolean() }),
|
|
390
394
|
channels: z.object({
|
|
391
395
|
routes: z.array(channelRoute),
|
|
392
396
|
shadowed: z.array(shadowedChannelRoute)
|
|
393
|
-
})
|
|
397
|
+
}),
|
|
394
398
|
composition: z.object({
|
|
395
399
|
disabled: z.array(compositionDiagnostic),
|
|
396
400
|
shadowed: z.array(compositionDiagnostic)
|
|
397
|
-
})
|
|
401
|
+
}),
|
|
398
402
|
connections: z.array(connection),
|
|
399
403
|
diagnostics: z.object({
|
|
400
404
|
discoveryErrors: z.number(),
|
|
401
405
|
discoveryWarnings: z.number()
|
|
402
|
-
})
|
|
406
|
+
}),
|
|
403
407
|
hooks: z.array(hook),
|
|
404
408
|
instructions: z.object({
|
|
405
409
|
dynamic: z.array(dynamicResolver),
|
|
406
410
|
static: z.array(instructions)
|
|
407
|
-
})
|
|
411
|
+
}),
|
|
408
412
|
instrumentation: source.optional(),
|
|
409
413
|
kernelEffects: z.array(kernelEffect),
|
|
410
414
|
kind: z.literal("eve-agent-info"),
|
|
411
415
|
memories: z.array(memory),
|
|
412
|
-
mode:
|
|
416
|
+
mode: openEnum(["development", "production"]),
|
|
413
417
|
remoteAgents: z.object({
|
|
414
418
|
entries: z.array(remoteAgent),
|
|
415
419
|
total: z.number()
|
|
416
|
-
})
|
|
420
|
+
}),
|
|
417
421
|
sandbox,
|
|
418
422
|
schedules: z.array(schedule),
|
|
419
423
|
skills: z.object({
|
|
420
424
|
dynamic: z.array(dynamicResolver),
|
|
421
425
|
static: z.array(skill)
|
|
422
|
-
})
|
|
426
|
+
}),
|
|
423
427
|
subagents: z.object({
|
|
424
428
|
local: z.array(subagent),
|
|
425
429
|
total: z.number()
|
|
426
|
-
})
|
|
430
|
+
}),
|
|
427
431
|
tools: z.object({
|
|
428
432
|
dynamic: z.array(dynamicResolver),
|
|
429
433
|
static: z.array(tool)
|
|
430
|
-
})
|
|
434
|
+
}),
|
|
431
435
|
version: z.literal(5),
|
|
432
436
|
workspace: z.object({
|
|
433
437
|
resourceRoot: z.unknown(),
|
|
434
438
|
rootEntries: z.array(z.string())
|
|
435
|
-
})
|
|
436
|
-
}).
|
|
439
|
+
})
|
|
440
|
+
}).superRefine((value, context) => {
|
|
437
441
|
const assertUnique = (entries, identity, path) => {
|
|
438
442
|
const seen = /* @__PURE__ */ new Set();
|
|
439
443
|
entries.forEach((entry, index) => {
|
|
440
444
|
const key = identity(entry);
|
|
445
|
+
if (key === void 0) return;
|
|
441
446
|
if (seen.has(key)) context.addIssue({
|
|
442
447
|
code: "custom",
|
|
443
448
|
message: `Duplicate public identity "${key}".`,
|
|
@@ -463,7 +468,7 @@ const AgentInfoResultSchema = z.object({
|
|
|
463
468
|
assertUnique(value.connections, (entry) => entry.connectionName, ["connections"]);
|
|
464
469
|
assertUnique(value.hooks, (entry) => entry.slug, ["hooks"]);
|
|
465
470
|
assertUnique(value.memories, (entry) => entry.slot, ["memories"]);
|
|
466
|
-
assertUnique(value.channels.routes, (entry) => `${entry.method} ${normalizeRoutePattern(entry.urlPath)}`, ["channels", "routes"]);
|
|
471
|
+
assertUnique(value.channels.routes, (entry) => entry.method === "unrecognized" ? void 0 : `${entry.method} ${normalizeRoutePattern(entry.urlPath)}`, ["channels", "routes"]);
|
|
467
472
|
assertUnique(value.subagents.local, (entry) => entry.nodeId, ["subagents", "local"]);
|
|
468
473
|
assertUnique(value.remoteAgents.entries, (entry) => entry.nodeId, ["remoteAgents", "entries"]);
|
|
469
474
|
assertTotal(value.subagents.total, value.subagents.local, ["subagents", "total"]);
|
|
@@ -543,7 +548,7 @@ const AgentInfoResultSchema = z.object({
|
|
|
543
548
|
});
|
|
544
549
|
continue;
|
|
545
550
|
}
|
|
546
|
-
if (entry.sourceKind !== "module" && entry.binding !== void 0) {
|
|
551
|
+
if (entry.sourceKind !== "module" && entry.sourceKind !== "unrecognized" && entry.binding !== void 0) {
|
|
547
552
|
context.addIssue({
|
|
548
553
|
code: "custom",
|
|
549
554
|
message: `${entry.sourceKind} source cannot carry a module binding.`,
|
|
@@ -572,6 +577,13 @@ const AgentInfoResultSchema = z.object({
|
|
|
572
577
|
});
|
|
573
578
|
}
|
|
574
579
|
});
|
|
580
|
+
function describeAgentInfoVersionMismatch(payload) {
|
|
581
|
+
if (typeof payload !== "object" || payload === null) return void 0;
|
|
582
|
+
const { kind, version } = payload;
|
|
583
|
+
if (kind !== "eve-agent-info" || typeof version !== "number") return void 0;
|
|
584
|
+
if (version === 5) return void 0;
|
|
585
|
+
return `version: the server sent agent-info version ${version}, but this client reads version ${5}. ${version < 5 ? "Upgrade eve in the agent and redeploy it" : "Upgrade the eve package this client runs from"}.`;
|
|
586
|
+
}
|
|
575
587
|
function normalizeRoutePattern(path) {
|
|
576
588
|
return path.replace(/^\/+|\/+$/g, "").split("/").map((segment) => segment.startsWith(":") || /^\[[^\]]+\]$/.test(segment) ? ":" : segment).join("/");
|
|
577
589
|
}
|
|
@@ -3319,6 +3331,8 @@ var Client = class {
|
|
|
3319
3331
|
} catch {
|
|
3320
3332
|
throw new AgentInfoResponseError();
|
|
3321
3333
|
}
|
|
3334
|
+
const versionMismatch = describeAgentInfoVersionMismatch(payload);
|
|
3335
|
+
if (versionMismatch !== void 0) throw new AgentInfoResponseError([versionMismatch]);
|
|
3322
3336
|
const result = AgentInfoResultSchema.safeParse(payload);
|
|
3323
3337
|
if (!result.success) throw new AgentInfoResponseError(result.error.issues.slice(0, 5).map((issue) => {
|
|
3324
3338
|
const path = issue.path.join(".");
|