eve 0.13.1 → 0.13.3

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.
Files changed (95) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/src/chunks/use-eve-agent-B18LYpfZ.js +5765 -0
  3. package/dist/src/chunks/use-eve-agent-BPI1nbo5.js +5795 -0
  4. package/dist/src/cli/dev/tui/provider-picker.d.ts +64 -0
  5. package/dist/src/cli/dev/tui/provider-picker.js +1 -0
  6. package/dist/src/cli/dev/tui/remote-auth-result.d.ts +21 -0
  7. package/dist/src/cli/dev/tui/remote-auth-result.js +1 -0
  8. package/dist/src/cli/dev/tui/remote-connection-probe.d.ts +9 -0
  9. package/dist/src/cli/dev/tui/remote-connection-probe.js +1 -0
  10. package/dist/src/cli/dev/tui/remote-connection-types.d.ts +67 -0
  11. package/dist/src/cli/dev/tui/remote-connection-types.js +1 -0
  12. package/dist/src/cli/dev/tui/remote-connection.d.ts +3 -0
  13. package/dist/src/cli/dev/tui/remote-connection.js +1 -0
  14. package/dist/src/cli/dev/tui/runner.js +1 -1
  15. package/dist/src/cli/dev/tui/setup-commands.d.ts +1 -1
  16. package/dist/src/cli/dev/tui/setup-commands.js +2 -2
  17. package/dist/src/cli/dev/tui/setup-flow.d.ts +3 -0
  18. package/dist/src/cli/dev/tui/setup-issues.d.ts +7 -0
  19. package/dist/src/cli/dev/tui/setup-issues.js +1 -1
  20. package/dist/src/cli/dev/tui/setup-panel.d.ts +25 -12
  21. package/dist/src/cli/dev/tui/setup-panel.js +3 -2
  22. package/dist/src/cli/dev/tui/target.d.ts +2 -0
  23. package/dist/src/cli/dev/tui/target.js +1 -1
  24. package/dist/src/cli/dev/tui/terminal-renderer.js +9 -9
  25. package/dist/src/cli/dev/tui/test/fake-setup-flow-renderer.js +1 -1
  26. package/dist/src/cli/dev/tui/tui.js +1 -1
  27. package/dist/src/cli/dev/tui/vercel-trusted-sources-policy.d.ts +22 -0
  28. package/dist/src/cli/dev/tui/vercel-trusted-sources-policy.js +1 -0
  29. package/dist/src/cli/dev/tui/vercel-trusted-sources.d.ts +48 -0
  30. package/dist/src/cli/dev/tui/vercel-trusted-sources.js +1 -0
  31. package/dist/src/client/agent-info-schema.d.ts +532 -0
  32. package/dist/src/client/agent-info-schema.js +1 -0
  33. package/dist/src/client/client.js +1 -1
  34. package/dist/src/client/types.d.ts +11 -169
  35. package/dist/src/client/types.js +1 -1
  36. package/dist/src/compiled/.vendor-stamp.json +4 -4
  37. package/dist/src/compiled/@chat-adapter/slack/_slack-web-api.d.ts +1 -0
  38. package/dist/src/compiled/@chat-adapter/slack/blocks.d.ts +160 -0
  39. package/dist/src/compiled/@chat-adapter/slack/blocks.js +8 -0
  40. package/dist/src/compiled/@chat-adapter/slack/index.d.ts +28 -3
  41. package/dist/src/compiled/@chat-adapter/slack/index.js +26 -26
  42. package/dist/src/compiled/_chunks/node/chunk-AYN7QRWH-Csu8sG38.js +1 -0
  43. package/dist/src/compiled/_chunks/node/{dist-BQYUcBqu.js → dist-W8yle6rh.js} +3 -3
  44. package/dist/src/compiled/chat/index.d.ts +4 -4
  45. package/dist/src/compiled/chat/index.js +1 -1
  46. package/dist/src/compiled/chat/{jsx-runtime-CFq1K_Ve.d.ts → jsx-runtime-CzthIo1o.d.ts} +6 -1
  47. package/dist/src/internal/application/package.js +1 -1
  48. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/lib/primitives.js +1 -0
  49. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/lib/schemas.js +1 -0
  50. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/models/aclaction.js +1 -0
  51. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/models/sdkvalidationerror.js +1 -0
  52. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/models/updateprojectprojectsaction.js +1 -0
  53. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/models/updateprojectprojectsoptionsallowlist.js +1 -0
  54. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/defaultToZeroValue.js +1 -0
  55. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/fp.js +1 -0
  56. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/primitives.js +1 -0
  57. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/rfcdate.js +1 -0
  58. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/smartUnion.js +1 -0
  59. package/dist/src/node_modules/.pnpm/@vercel_sdk@1.28.1/node_modules/@vercel/sdk/esm/types/unrecognized.js +1 -0
  60. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/ZodError.js +1 -0
  61. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/errors.js +1 -0
  62. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/external.js +1 -0
  63. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/errorUtil.js +1 -0
  64. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/parseUtil.js +1 -0
  65. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  66. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/util.js +1 -0
  67. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/index.js +1 -0
  68. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/locales/en.js +1 -0
  69. package/dist/src/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/types.js +1 -0
  70. package/dist/src/public/channels/slack/blocks.d.ts +3 -41
  71. package/dist/src/public/channels/slack/blocks.js +2 -3
  72. package/dist/src/public/channels/slack/defaults.js +3 -3
  73. package/dist/src/services/dev-client/client-options.js +1 -1
  74. package/dist/src/services/dev-client/credential-gate.d.ts +11 -6
  75. package/dist/src/services/dev-client/credential-gate.js +1 -1
  76. package/dist/src/services/dev-client/request-headers.d.ts +0 -12
  77. package/dist/src/services/dev-client/request-headers.js +1 -1
  78. package/dist/src/services/dev-client/vercel-auth-error.js +1 -1
  79. package/dist/src/setup/flows/model.d.ts +5 -5
  80. package/dist/src/setup/flows/model.js +1 -1
  81. package/dist/src/setup/flows/provider.d.ts +57 -0
  82. package/dist/src/setup/flows/provider.js +4 -0
  83. package/dist/src/setup/scaffold/create/project.js +1 -1
  84. package/dist/src/svelte/index.js +1 -1
  85. package/dist/src/svelte/use-eve-agent.js +1 -1
  86. package/dist/src/vue/index.js +1 -1
  87. package/dist/src/vue/use-eve-agent.js +1 -1
  88. package/docs/guides/client/overview.mdx +24 -0
  89. package/docs/guides/dev-tui.md +4 -4
  90. package/docs/guides/instrumentation.md +1 -1
  91. package/package.json +5 -4
  92. package/dist/src/chunks/use-eve-agent-DEm_Jg4k.js +0 -1343
  93. package/dist/src/chunks/use-eve-agent-DsXOQMFZ.js +0 -1313
  94. package/dist/src/setup/flows/vercel.d.ts +0 -37
  95. package/dist/src/setup/flows/vercel.js +0 -2
@@ -0,0 +1,532 @@
1
+ import { z } from "zod";
2
+ declare const source: z.ZodObject<{
3
+ exportName: z.ZodOptional<z.ZodString>;
4
+ logicalPath: z.ZodString;
5
+ sourceId: z.ZodOptional<z.ZodString>;
6
+ sourceKind: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const entry: z.ZodObject<{
9
+ exportName: z.ZodOptional<z.ZodString>;
10
+ logicalPath: z.ZodString;
11
+ sourceId: z.ZodOptional<z.ZodString>;
12
+ sourceKind: z.ZodString;
13
+ name: z.ZodString;
14
+ }, z.core.$strip>;
15
+ declare const tool: z.ZodObject<{
16
+ exportName: z.ZodOptional<z.ZodString>;
17
+ logicalPath: z.ZodString;
18
+ sourceId: z.ZodOptional<z.ZodString>;
19
+ sourceKind: z.ZodString;
20
+ name: z.ZodString;
21
+ description: z.ZodString;
22
+ hasAuth: z.ZodBoolean;
23
+ hasExecute: z.ZodBoolean;
24
+ hasModelOutputProjection: z.ZodBoolean;
25
+ hasOutputSchema: z.ZodBoolean;
26
+ inputSchema: z.ZodUnknown;
27
+ origin: z.ZodEnum<{
28
+ authored: "authored";
29
+ framework: "framework";
30
+ }>;
31
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
32
+ replacesFrameworkTool: z.ZodBoolean;
33
+ requiresApproval: z.ZodBoolean;
34
+ }, z.core.$strip>;
35
+ declare const frameworkTool: z.ZodObject<{
36
+ exportName: z.ZodOptional<z.ZodString>;
37
+ logicalPath: z.ZodString;
38
+ sourceId: z.ZodOptional<z.ZodString>;
39
+ sourceKind: z.ZodString;
40
+ name: z.ZodString;
41
+ description: z.ZodString;
42
+ hasAuth: z.ZodBoolean;
43
+ hasExecute: z.ZodBoolean;
44
+ hasModelOutputProjection: z.ZodBoolean;
45
+ hasOutputSchema: z.ZodBoolean;
46
+ inputSchema: z.ZodUnknown;
47
+ origin: z.ZodEnum<{
48
+ authored: "authored";
49
+ framework: "framework";
50
+ }>;
51
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
52
+ replacesFrameworkTool: z.ZodBoolean;
53
+ requiresApproval: z.ZodBoolean;
54
+ disabledByAuthor: z.ZodBoolean;
55
+ replacedByAuthoredTool: z.ZodBoolean;
56
+ status: z.ZodEnum<{
57
+ active: "active";
58
+ disabled: "disabled";
59
+ replaced: "replaced";
60
+ }>;
61
+ }, z.core.$strip>;
62
+ declare const dynamicResolver: z.ZodObject<{
63
+ exportName: z.ZodOptional<z.ZodString>;
64
+ logicalPath: z.ZodString;
65
+ sourceId: z.ZodOptional<z.ZodString>;
66
+ sourceKind: z.ZodString;
67
+ eventNames: z.ZodArray<z.ZodString>;
68
+ origin: z.ZodEnum<{
69
+ authored: "authored";
70
+ framework: "framework";
71
+ }>;
72
+ slug: z.ZodString;
73
+ }, z.core.$strip>;
74
+ declare const skill: z.ZodObject<{
75
+ exportName: z.ZodOptional<z.ZodString>;
76
+ logicalPath: z.ZodString;
77
+ sourceId: z.ZodOptional<z.ZodString>;
78
+ sourceKind: z.ZodString;
79
+ name: z.ZodString;
80
+ description: z.ZodString;
81
+ license: z.ZodOptional<z.ZodString>;
82
+ markdown: z.ZodString;
83
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
84
+ }, z.core.$strip>;
85
+ declare const instructions: z.ZodObject<{
86
+ exportName: z.ZodOptional<z.ZodString>;
87
+ logicalPath: z.ZodString;
88
+ sourceId: z.ZodOptional<z.ZodString>;
89
+ sourceKind: z.ZodString;
90
+ name: z.ZodString;
91
+ markdown: z.ZodString;
92
+ }, z.core.$strip>;
93
+ declare const schedule: z.ZodObject<{
94
+ exportName: z.ZodOptional<z.ZodString>;
95
+ logicalPath: z.ZodString;
96
+ sourceId: z.ZodOptional<z.ZodString>;
97
+ sourceKind: z.ZodString;
98
+ name: z.ZodString;
99
+ cron: z.ZodString;
100
+ hasRun: z.ZodBoolean;
101
+ markdown: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strip>;
103
+ declare const subagent: z.ZodObject<{
104
+ exportName: z.ZodOptional<z.ZodString>;
105
+ logicalPath: z.ZodString;
106
+ sourceId: z.ZodOptional<z.ZodString>;
107
+ sourceKind: z.ZodString;
108
+ name: z.ZodString;
109
+ description: z.ZodString;
110
+ entryPath: z.ZodString;
111
+ nodeId: z.ZodString;
112
+ rootPath: z.ZodString;
113
+ summary: z.ZodObject<{
114
+ channels: z.ZodNumber;
115
+ connections: z.ZodNumber;
116
+ hooks: z.ZodNumber;
117
+ instructions: z.ZodBoolean;
118
+ schedules: z.ZodNumber;
119
+ skills: z.ZodNumber;
120
+ tools: z.ZodNumber;
121
+ }, z.core.$strip>;
122
+ }, z.core.$strip>;
123
+ declare const channel: z.ZodObject<{
124
+ exportName: z.ZodOptional<z.ZodString>;
125
+ logicalPath: z.ZodString;
126
+ sourceId: z.ZodOptional<z.ZodString>;
127
+ sourceKind: z.ZodString;
128
+ name: z.ZodString;
129
+ adapterKind: z.ZodOptional<z.ZodString>;
130
+ method: z.ZodString;
131
+ origin: z.ZodEnum<{
132
+ authored: "authored";
133
+ framework: "framework";
134
+ }>;
135
+ urlPath: z.ZodString;
136
+ }, z.core.$strip>;
137
+ declare const frameworkChannel: z.ZodObject<{
138
+ exportName: z.ZodOptional<z.ZodString>;
139
+ logicalPath: z.ZodString;
140
+ sourceId: z.ZodOptional<z.ZodString>;
141
+ sourceKind: z.ZodString;
142
+ name: z.ZodString;
143
+ adapterKind: z.ZodOptional<z.ZodString>;
144
+ method: z.ZodString;
145
+ origin: z.ZodEnum<{
146
+ authored: "authored";
147
+ framework: "framework";
148
+ }>;
149
+ urlPath: z.ZodString;
150
+ disabledByAuthor: z.ZodBoolean;
151
+ replacedByAuthoredChannel: z.ZodBoolean;
152
+ status: z.ZodEnum<{
153
+ active: "active";
154
+ disabled: "disabled";
155
+ replaced: "replaced";
156
+ }>;
157
+ }, z.core.$strip>;
158
+ declare const connection: z.ZodObject<{
159
+ exportName: z.ZodOptional<z.ZodString>;
160
+ logicalPath: z.ZodString;
161
+ sourceId: z.ZodOptional<z.ZodString>;
162
+ sourceKind: z.ZodString;
163
+ connectionName: z.ZodString;
164
+ description: z.ZodString;
165
+ hasApproval: z.ZodBoolean;
166
+ hasAuthorization: z.ZodBoolean;
167
+ hasHeaders: z.ZodBoolean;
168
+ protocol: z.ZodString;
169
+ toolFilter: z.ZodOptional<z.ZodUnknown>;
170
+ url: z.ZodString;
171
+ }, z.core.$strip>;
172
+ declare const hook: z.ZodObject<{
173
+ exportName: z.ZodOptional<z.ZodString>;
174
+ logicalPath: z.ZodString;
175
+ sourceId: z.ZodOptional<z.ZodString>;
176
+ sourceKind: z.ZodString;
177
+ eventNames: z.ZodArray<z.ZodString>;
178
+ slug: z.ZodString;
179
+ }, z.core.$strip>;
180
+ declare const sandbox: z.ZodObject<{
181
+ exportName: z.ZodOptional<z.ZodString>;
182
+ logicalPath: z.ZodString;
183
+ sourceId: z.ZodOptional<z.ZodString>;
184
+ sourceKind: z.ZodString;
185
+ backendKind: z.ZodOptional<z.ZodString>;
186
+ description: z.ZodOptional<z.ZodString>;
187
+ hasBootstrap: z.ZodBoolean;
188
+ hasOnSession: z.ZodBoolean;
189
+ revalidationKey: z.ZodOptional<z.ZodString>;
190
+ sourceHash: z.ZodOptional<z.ZodString>;
191
+ }, z.core.$strip>;
192
+ /** Runtime contract for the complete `/eve/v1/info` response. */
193
+ export declare const AgentInfoResultSchema: z.ZodObject<{
194
+ agent: z.ZodObject<{
195
+ agentRoot: z.ZodString;
196
+ appRoot: z.ZodString;
197
+ configSource: z.ZodOptional<z.ZodObject<{
198
+ exportName: z.ZodOptional<z.ZodString>;
199
+ logicalPath: z.ZodString;
200
+ sourceId: z.ZodOptional<z.ZodString>;
201
+ sourceKind: z.ZodString;
202
+ }, z.core.$strip>>;
203
+ description: z.ZodOptional<z.ZodString>;
204
+ model: z.ZodObject<{
205
+ contextWindowTokens: z.ZodOptional<z.ZodNumber>;
206
+ id: z.ZodString;
207
+ providerOptions: z.ZodOptional<z.ZodUnknown>;
208
+ source: z.ZodOptional<z.ZodObject<{
209
+ exportName: z.ZodOptional<z.ZodString>;
210
+ logicalPath: z.ZodString;
211
+ sourceId: z.ZodOptional<z.ZodString>;
212
+ sourceKind: z.ZodString;
213
+ }, z.core.$strip>>;
214
+ routing: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
215
+ kind: z.ZodLiteral<"gateway">;
216
+ target: z.ZodString;
217
+ byok: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strip>, z.ZodObject<{
219
+ kind: z.ZodLiteral<"external">;
220
+ provider: z.ZodString;
221
+ }, z.core.$strip>], "kind">>;
222
+ endpoint: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
223
+ kind: z.ZodLiteral<"external">;
224
+ provider: z.ZodString;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ kind: z.ZodLiteral<"gateway">;
227
+ connected: z.ZodLiteral<true>;
228
+ credential: z.ZodEnum<{
229
+ "api-key": "api-key";
230
+ oidc: "oidc";
231
+ }>;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ kind: z.ZodLiteral<"gateway">;
234
+ connected: z.ZodLiteral<false>;
235
+ }, z.core.$strip>]>>;
236
+ }, z.core.$strip>;
237
+ name: z.ZodString;
238
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
239
+ }, z.core.$strip>;
240
+ capabilities: z.ZodObject<{
241
+ devRoutes: z.ZodBoolean;
242
+ }, z.core.$strip>;
243
+ channels: z.ZodObject<{
244
+ authored: z.ZodArray<z.ZodObject<{
245
+ exportName: z.ZodOptional<z.ZodString>;
246
+ logicalPath: z.ZodString;
247
+ sourceId: z.ZodOptional<z.ZodString>;
248
+ sourceKind: z.ZodString;
249
+ name: z.ZodString;
250
+ adapterKind: z.ZodOptional<z.ZodString>;
251
+ method: z.ZodString;
252
+ origin: z.ZodEnum<{
253
+ authored: "authored";
254
+ framework: "framework";
255
+ }>;
256
+ urlPath: z.ZodString;
257
+ }, z.core.$strip>>;
258
+ available: z.ZodArray<z.ZodObject<{
259
+ exportName: z.ZodOptional<z.ZodString>;
260
+ logicalPath: z.ZodString;
261
+ sourceId: z.ZodOptional<z.ZodString>;
262
+ sourceKind: z.ZodString;
263
+ name: z.ZodString;
264
+ adapterKind: z.ZodOptional<z.ZodString>;
265
+ method: z.ZodString;
266
+ origin: z.ZodEnum<{
267
+ authored: "authored";
268
+ framework: "framework";
269
+ }>;
270
+ urlPath: z.ZodString;
271
+ }, z.core.$strip>>;
272
+ disabledFramework: z.ZodArray<z.ZodString>;
273
+ framework: z.ZodArray<z.ZodObject<{
274
+ exportName: z.ZodOptional<z.ZodString>;
275
+ logicalPath: z.ZodString;
276
+ sourceId: z.ZodOptional<z.ZodString>;
277
+ sourceKind: z.ZodString;
278
+ name: z.ZodString;
279
+ adapterKind: z.ZodOptional<z.ZodString>;
280
+ method: z.ZodString;
281
+ origin: z.ZodEnum<{
282
+ authored: "authored";
283
+ framework: "framework";
284
+ }>;
285
+ urlPath: z.ZodString;
286
+ disabledByAuthor: z.ZodBoolean;
287
+ replacedByAuthoredChannel: z.ZodBoolean;
288
+ status: z.ZodEnum<{
289
+ active: "active";
290
+ disabled: "disabled";
291
+ replaced: "replaced";
292
+ }>;
293
+ }, z.core.$strip>>;
294
+ }, z.core.$strip>;
295
+ connections: z.ZodArray<z.ZodObject<{
296
+ exportName: z.ZodOptional<z.ZodString>;
297
+ logicalPath: z.ZodString;
298
+ sourceId: z.ZodOptional<z.ZodString>;
299
+ sourceKind: z.ZodString;
300
+ connectionName: z.ZodString;
301
+ description: z.ZodString;
302
+ hasApproval: z.ZodBoolean;
303
+ hasAuthorization: z.ZodBoolean;
304
+ hasHeaders: z.ZodBoolean;
305
+ protocol: z.ZodString;
306
+ toolFilter: z.ZodOptional<z.ZodUnknown>;
307
+ url: z.ZodString;
308
+ }, z.core.$strip>>;
309
+ diagnostics: z.ZodObject<{
310
+ discoveryErrors: z.ZodNumber;
311
+ discoveryWarnings: z.ZodNumber;
312
+ }, z.core.$strip>;
313
+ hooks: z.ZodArray<z.ZodObject<{
314
+ exportName: z.ZodOptional<z.ZodString>;
315
+ logicalPath: z.ZodString;
316
+ sourceId: z.ZodOptional<z.ZodString>;
317
+ sourceKind: z.ZodString;
318
+ eventNames: z.ZodArray<z.ZodString>;
319
+ slug: z.ZodString;
320
+ }, z.core.$strip>>;
321
+ instructions: z.ZodObject<{
322
+ dynamic: z.ZodArray<z.ZodObject<{
323
+ exportName: z.ZodOptional<z.ZodString>;
324
+ logicalPath: z.ZodString;
325
+ sourceId: z.ZodOptional<z.ZodString>;
326
+ sourceKind: z.ZodString;
327
+ eventNames: z.ZodArray<z.ZodString>;
328
+ origin: z.ZodEnum<{
329
+ authored: "authored";
330
+ framework: "framework";
331
+ }>;
332
+ slug: z.ZodString;
333
+ }, z.core.$strip>>;
334
+ static: z.ZodNullable<z.ZodObject<{
335
+ exportName: z.ZodOptional<z.ZodString>;
336
+ logicalPath: z.ZodString;
337
+ sourceId: z.ZodOptional<z.ZodString>;
338
+ sourceKind: z.ZodString;
339
+ name: z.ZodString;
340
+ markdown: z.ZodString;
341
+ }, z.core.$strip>>;
342
+ }, z.core.$strip>;
343
+ kind: z.ZodLiteral<"eve-agent-info">;
344
+ mode: z.ZodEnum<{
345
+ development: "development";
346
+ production: "production";
347
+ }>;
348
+ sandbox: z.ZodNullable<z.ZodObject<{
349
+ exportName: z.ZodOptional<z.ZodString>;
350
+ logicalPath: z.ZodString;
351
+ sourceId: z.ZodOptional<z.ZodString>;
352
+ sourceKind: z.ZodString;
353
+ backendKind: z.ZodOptional<z.ZodString>;
354
+ description: z.ZodOptional<z.ZodString>;
355
+ hasBootstrap: z.ZodBoolean;
356
+ hasOnSession: z.ZodBoolean;
357
+ revalidationKey: z.ZodOptional<z.ZodString>;
358
+ sourceHash: z.ZodOptional<z.ZodString>;
359
+ }, z.core.$strip>>;
360
+ schedules: z.ZodArray<z.ZodObject<{
361
+ exportName: z.ZodOptional<z.ZodString>;
362
+ logicalPath: z.ZodString;
363
+ sourceId: z.ZodOptional<z.ZodString>;
364
+ sourceKind: z.ZodString;
365
+ name: z.ZodString;
366
+ cron: z.ZodString;
367
+ hasRun: z.ZodBoolean;
368
+ markdown: z.ZodOptional<z.ZodString>;
369
+ }, z.core.$strip>>;
370
+ skills: z.ZodObject<{
371
+ dynamic: z.ZodArray<z.ZodObject<{
372
+ exportName: z.ZodOptional<z.ZodString>;
373
+ logicalPath: z.ZodString;
374
+ sourceId: z.ZodOptional<z.ZodString>;
375
+ sourceKind: z.ZodString;
376
+ eventNames: z.ZodArray<z.ZodString>;
377
+ origin: z.ZodEnum<{
378
+ authored: "authored";
379
+ framework: "framework";
380
+ }>;
381
+ slug: z.ZodString;
382
+ }, z.core.$strip>>;
383
+ static: z.ZodArray<z.ZodObject<{
384
+ exportName: z.ZodOptional<z.ZodString>;
385
+ logicalPath: z.ZodString;
386
+ sourceId: z.ZodOptional<z.ZodString>;
387
+ sourceKind: z.ZodString;
388
+ name: z.ZodString;
389
+ description: z.ZodString;
390
+ license: z.ZodOptional<z.ZodString>;
391
+ markdown: z.ZodString;
392
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
393
+ }, z.core.$strip>>;
394
+ }, z.core.$strip>;
395
+ subagents: z.ZodObject<{
396
+ local: z.ZodArray<z.ZodObject<{
397
+ exportName: z.ZodOptional<z.ZodString>;
398
+ logicalPath: z.ZodString;
399
+ sourceId: z.ZodOptional<z.ZodString>;
400
+ sourceKind: z.ZodString;
401
+ name: z.ZodString;
402
+ description: z.ZodString;
403
+ entryPath: z.ZodString;
404
+ nodeId: z.ZodString;
405
+ rootPath: z.ZodString;
406
+ summary: z.ZodObject<{
407
+ channels: z.ZodNumber;
408
+ connections: z.ZodNumber;
409
+ hooks: z.ZodNumber;
410
+ instructions: z.ZodBoolean;
411
+ schedules: z.ZodNumber;
412
+ skills: z.ZodNumber;
413
+ tools: z.ZodNumber;
414
+ }, z.core.$strip>;
415
+ }, z.core.$strip>>;
416
+ total: z.ZodNumber;
417
+ }, z.core.$strip>;
418
+ tools: z.ZodObject<{
419
+ authored: z.ZodArray<z.ZodObject<{
420
+ exportName: z.ZodOptional<z.ZodString>;
421
+ logicalPath: z.ZodString;
422
+ sourceId: z.ZodOptional<z.ZodString>;
423
+ sourceKind: z.ZodString;
424
+ name: z.ZodString;
425
+ description: z.ZodString;
426
+ hasAuth: z.ZodBoolean;
427
+ hasExecute: z.ZodBoolean;
428
+ hasModelOutputProjection: z.ZodBoolean;
429
+ hasOutputSchema: z.ZodBoolean;
430
+ inputSchema: z.ZodUnknown;
431
+ origin: z.ZodEnum<{
432
+ authored: "authored";
433
+ framework: "framework";
434
+ }>;
435
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
436
+ replacesFrameworkTool: z.ZodBoolean;
437
+ requiresApproval: z.ZodBoolean;
438
+ }, z.core.$strip>>;
439
+ available: z.ZodArray<z.ZodObject<{
440
+ exportName: z.ZodOptional<z.ZodString>;
441
+ logicalPath: z.ZodString;
442
+ sourceId: z.ZodOptional<z.ZodString>;
443
+ sourceKind: z.ZodString;
444
+ name: z.ZodString;
445
+ description: z.ZodString;
446
+ hasAuth: z.ZodBoolean;
447
+ hasExecute: z.ZodBoolean;
448
+ hasModelOutputProjection: z.ZodBoolean;
449
+ hasOutputSchema: z.ZodBoolean;
450
+ inputSchema: z.ZodUnknown;
451
+ origin: z.ZodEnum<{
452
+ authored: "authored";
453
+ framework: "framework";
454
+ }>;
455
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
456
+ replacesFrameworkTool: z.ZodBoolean;
457
+ requiresApproval: z.ZodBoolean;
458
+ }, z.core.$strip>>;
459
+ disabledFramework: z.ZodArray<z.ZodString>;
460
+ dynamic: z.ZodArray<z.ZodObject<{
461
+ exportName: z.ZodOptional<z.ZodString>;
462
+ logicalPath: z.ZodString;
463
+ sourceId: z.ZodOptional<z.ZodString>;
464
+ sourceKind: z.ZodString;
465
+ eventNames: z.ZodArray<z.ZodString>;
466
+ origin: z.ZodEnum<{
467
+ authored: "authored";
468
+ framework: "framework";
469
+ }>;
470
+ slug: z.ZodString;
471
+ }, z.core.$strip>>;
472
+ framework: z.ZodArray<z.ZodObject<{
473
+ exportName: z.ZodOptional<z.ZodString>;
474
+ logicalPath: z.ZodString;
475
+ sourceId: z.ZodOptional<z.ZodString>;
476
+ sourceKind: z.ZodString;
477
+ name: z.ZodString;
478
+ description: z.ZodString;
479
+ hasAuth: z.ZodBoolean;
480
+ hasExecute: z.ZodBoolean;
481
+ hasModelOutputProjection: z.ZodBoolean;
482
+ hasOutputSchema: z.ZodBoolean;
483
+ inputSchema: z.ZodUnknown;
484
+ origin: z.ZodEnum<{
485
+ authored: "authored";
486
+ framework: "framework";
487
+ }>;
488
+ outputSchema: z.ZodOptional<z.ZodUnknown>;
489
+ replacesFrameworkTool: z.ZodBoolean;
490
+ requiresApproval: z.ZodBoolean;
491
+ disabledByAuthor: z.ZodBoolean;
492
+ replacedByAuthoredTool: z.ZodBoolean;
493
+ status: z.ZodEnum<{
494
+ active: "active";
495
+ disabled: "disabled";
496
+ replaced: "replaced";
497
+ }>;
498
+ }, z.core.$strip>>;
499
+ reserved: z.ZodArray<z.ZodString>;
500
+ }, z.core.$strip>;
501
+ version: z.ZodLiteral<1>;
502
+ workflow: z.ZodObject<{
503
+ enabled: z.ZodBoolean;
504
+ toolName: z.ZodString;
505
+ }, z.core.$strip>;
506
+ workspace: z.ZodObject<{
507
+ resourceRoot: z.ZodUnknown;
508
+ rootEntries: z.ZodArray<z.ZodString>;
509
+ }, z.core.$strip>;
510
+ }, z.core.$strip>;
511
+ type ReadonlyDeep<T> = T extends readonly (infer Item)[] ? readonly ReadonlyDeep<Item>[] : T extends object ? {
512
+ readonly [Key in keyof T]: ReadonlyDeep<T[Key]>;
513
+ } : T;
514
+ export type AgentInfoSource = ReadonlyDeep<z.output<typeof source>>;
515
+ export type AgentInfoEntry = ReadonlyDeep<z.output<typeof entry>>;
516
+ export type AgentInfoToolEntry = ReadonlyDeep<z.output<typeof tool>>;
517
+ export type AgentInfoFrameworkToolEntry = ReadonlyDeep<z.output<typeof frameworkTool>>;
518
+ export type AgentInfoDynamicResolverEntry = ReadonlyDeep<z.output<typeof dynamicResolver>>;
519
+ export type AgentInfoTools = AgentInfoResult["tools"];
520
+ export type AgentInfoSkillEntry = ReadonlyDeep<z.output<typeof skill>>;
521
+ export type AgentInfoInstructionsEntry = ReadonlyDeep<z.output<typeof instructions>>;
522
+ export type AgentInfoInstructions = AgentInfoResult["instructions"];
523
+ export type AgentInfoScheduleEntry = ReadonlyDeep<z.output<typeof schedule>>;
524
+ export type AgentInfoSubagentEntry = ReadonlyDeep<z.output<typeof subagent>>;
525
+ export type AgentInfoChannelEntry = ReadonlyDeep<z.output<typeof channel>>;
526
+ export type AgentInfoFrameworkChannelEntry = ReadonlyDeep<z.output<typeof frameworkChannel>>;
527
+ export type AgentInfoChannels = AgentInfoResult["channels"];
528
+ export type AgentInfoConnectionEntry = ReadonlyDeep<z.output<typeof connection>>;
529
+ export type AgentInfoHookEntry = ReadonlyDeep<z.output<typeof hook>>;
530
+ export type AgentInfoSandboxEntry = ReadonlyDeep<z.output<typeof sandbox>>;
531
+ export type AgentInfoResult = ReadonlyDeep<z.output<typeof AgentInfoResultSchema>>;
532
+ export {};
@@ -0,0 +1 @@
1
+ import{_enum,array,boolean,discriminatedUnion,literal,number,object,record,string,union,unknown}from"../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js";import"../node_modules/.pnpm/zod@4.4.3/node_modules/zod/index.js";const source=object({exportName:string().optional(),logicalPath:string(),sourceId:string().optional(),sourceKind:string()}),entry=source.extend({name:string()}),modelRouting=discriminatedUnion(`kind`,[object({kind:literal(`gateway`),target:string(),byok:string().optional()}),object({kind:literal(`external`),provider:string()})]),modelEndpoint=union([object({kind:literal(`external`),provider:string()}),object({kind:literal(`gateway`),connected:literal(!0),credential:_enum([`api-key`,`oidc`])}),object({kind:literal(`gateway`),connected:literal(!1)})]),tool=entry.extend({description:string(),hasAuth:boolean(),hasExecute:boolean(),hasModelOutputProjection:boolean(),hasOutputSchema:boolean(),inputSchema:unknown(),origin:_enum([`authored`,`framework`]),outputSchema:unknown().optional(),replacesFrameworkTool:boolean(),requiresApproval:boolean()}),frameworkTool=tool.extend({disabledByAuthor:boolean(),replacedByAuthoredTool:boolean(),status:_enum([`active`,`disabled`,`replaced`])}),dynamicResolver=source.extend({eventNames:array(string()),origin:_enum([`authored`,`framework`]),slug:string()}),skill=entry.extend({description:string(),license:string().optional(),markdown:string(),metadata:record(string(),string()).optional()}),instructions=entry.extend({markdown:string()}),schedule=entry.extend({cron:string(),hasRun:boolean(),markdown:string().optional()}),subagent=entry.extend({description:string(),entryPath:string(),nodeId:string(),rootPath:string(),summary:object({channels:number(),connections:number(),hooks:number(),instructions:boolean(),schedules:number(),skills:number(),tools:number()})}),channel=entry.extend({adapterKind:string().optional(),method:string(),origin:_enum([`authored`,`framework`]),urlPath:string()}),frameworkChannel=channel.extend({disabledByAuthor:boolean(),replacedByAuthoredChannel:boolean(),status:_enum([`active`,`disabled`,`replaced`])}),connection=source.extend({connectionName:string(),description:string(),hasApproval:boolean(),hasAuthorization:boolean(),hasHeaders:boolean(),protocol:string(),toolFilter:unknown().optional(),url:string()}),hook=source.extend({eventNames:array(string()),slug:string()}),sandbox=source.extend({backendKind:string().optional(),description:string().optional(),hasBootstrap:boolean(),hasOnSession:boolean(),revalidationKey:string().optional(),sourceHash:string().optional()}),AgentInfoResultSchema=object({agent:object({agentRoot:string(),appRoot:string(),configSource:source.optional(),description:string().optional(),model:object({contextWindowTokens:number().optional(),id:string(),providerOptions:unknown().optional(),source:source.optional(),routing:modelRouting.optional(),endpoint:modelEndpoint.optional()}),name:string(),outputSchema:unknown().optional()}),capabilities:object({devRoutes:boolean()}),channels:object({authored:array(channel),available:array(channel),disabledFramework:array(string()),framework:array(frameworkChannel)}),connections:array(connection),diagnostics:object({discoveryErrors:number(),discoveryWarnings:number()}),hooks:array(hook),instructions:object({dynamic:array(dynamicResolver),static:instructions.nullable()}),kind:literal(`eve-agent-info`),mode:_enum([`development`,`production`]),sandbox:sandbox.nullable(),schedules:array(schedule),skills:object({dynamic:array(dynamicResolver),static:array(skill)}),subagents:object({local:array(subagent),total:number()}),tools:object({authored:array(tool),available:array(tool),disabledFramework:array(string()),dynamic:array(dynamicResolver),framework:array(frameworkTool),reserved:array(string())}),version:literal(1),workflow:object({enabled:boolean(),toolName:string()}),workspace:object({resourceRoot:unknown(),rootEntries:array(string())})});export{AgentInfoResultSchema};
@@ -1 +1 @@
1
- import{EVE_HEALTH_ROUTE_PATH,EVE_INFO_ROUTE_PATH}from"#protocol/routes.js";import{ClientError}from"#client/client-error.js";import{ClientSession}from"#client/session.js";import{createInitialSessionState}from"#client/session-utils.js";import{createClientUrl}from"#client/url.js";var Client=class{#e;#t;#n;#r;#i;#a;constructor(e){this.#n=e.host,this.#e=e.auth,this.#t=e.headers,this.#r=e.maxReconnectAttempts??3,this.#i=e.preserveCompletedSessions??!1,this.#a=e.redirect}async health(){let t=createClientUrl(this.#n,EVE_HEALTH_ROUTE_PATH),r=await this.#o(),i=await fetch(t,withRedirectPolicy({headers:r},this.#a));if(!i.ok){let e=await i.text();throw new ClientError(i.status,e)}return await i.json()}async info(){let e=createClientUrl(this.#n,EVE_INFO_ROUTE_PATH),r=await this.#o(),i=await fetch(e,withRedirectPolicy({headers:r},this.#a));if(!i.ok){let e=await i.text();throw new ClientError(i.status,e)}return await i.json()}async fetch(e,t={}){let n=createClientUrl(this.#n,e),r=await this.#o(headersInitToRecord(t.headers));return await fetch(n,withRedirectPolicy({...t,headers:r},this.#a))}session(e){let t;return t=typeof e==`string`?{continuationToken:e,streamIndex:0}:e||createInitialSessionState(),new ClientSession({host:this.#n,maxReconnectAttempts:this.#r,preserveCompletedSessions:this.#i,redirect:this.#a,resolveHeaders:e=>this.#o(e)},t)}async#o(e){let t=new Headers,n=await resolveHeadersValue(this.#t);for(let[e,r]of Object.entries(n))t.set(e,r);if(e)for(let[n,r]of Object.entries(e))t.set(n,r);let r=await this.#s();return r&&t.set(`authorization`,r),t}async#s(){let e=this.#e;if(e){if(`bearer`in e){let t=(await resolveTokenValue(e.bearer)).trim();return t.length===0?void 0:`Bearer ${t}`}if(`basic`in e){let t=await resolveTokenValue(e.basic.password);return`Basic ${encodeBasicCredentials(e.basic.username,t)}`}}}};async function resolveTokenValue(e){return typeof e==`function`?e():e}async function resolveHeadersValue(e){return e===void 0?{}:typeof e==`function`?await e():e}function headersInitToRecord(e){return e===void 0?{}:Object.fromEntries(new Headers(e).entries())}function withRedirectPolicy(e,t){return t===void 0?e:{...e,redirect:t}}function encodeBasicCredentials(e,t){let n=new TextEncoder().encode(`${e}:${t}`),r=Array.from(n,e=>String.fromCodePoint(e)).join(``);return btoa(r)}export{Client};
1
+ import{EVE_HEALTH_ROUTE_PATH,EVE_INFO_ROUTE_PATH}from"#protocol/routes.js";import{AgentInfoResultSchema}from"#client/agent-info-schema.js";import{ClientError}from"#client/client-error.js";import{ClientSession}from"#client/session.js";import{createInitialSessionState}from"#client/session-utils.js";import{createClientUrl}from"#client/url.js";import{VERCEL_TRUSTED_OIDC_IDP_TOKEN_HEADER}from"#client/types.js";var Client=class{#e;#t;#n;#r;#i;#a;constructor(e){this.#n=e.host,this.#e=e.auth,this.#t=e.headers,this.#r=e.maxReconnectAttempts??3,this.#i=e.preserveCompletedSessions??!1,this.#a=e.redirect}async health(){let t=createClientUrl(this.#n,EVE_HEALTH_ROUTE_PATH),n=await this.#o(),i=await fetch(t,withRedirectPolicy({headers:n},this.#a));if(!i.ok){let e=await i.text();throw new ClientError(i.status,e)}return await i.json()}async info(){let e=await this.fetch(EVE_INFO_ROUTE_PATH);if(!e.ok){let t=await e.text();throw new ClientError(e.status,t)}let i=AgentInfoResultSchema.safeParse(await e.json());if(!i.success)throw SyntaxError(`The server returned an unrecognized response from the Eve agent info route.`);return i.data}async fetch(e,t={}){let n=createClientUrl(this.#n,e),r=await this.#o(headersInitToRecord(t.headers));return await fetch(n,withRedirectPolicy({...t,headers:r},this.#a))}session(e){let t;return t=typeof e==`string`?{continuationToken:e,streamIndex:0}:e||createInitialSessionState(),new ClientSession({host:this.#n,maxReconnectAttempts:this.#r,preserveCompletedSessions:this.#i,redirect:this.#a,resolveHeaders:e=>this.#o(e)},t)}async#o(e){let t=new Headers,[n,r]=await Promise.all([resolveHeadersValue(this.#t),this.#s()]);for(let[e,r]of Object.entries(n))t.set(e,r);if(e)for(let[n,r]of Object.entries(e))t.set(n,r);for(let[e,n]of Object.entries(r))t.set(e,n);return t}async#s(){let e=this.#e;if(!e)return{};if(`vercelOidc`in e){let t=(await resolveTokenValue(e.vercelOidc.token)).trim();return t.length===0?{}:{authorization:`Bearer ${t}`,[VERCEL_TRUSTED_OIDC_IDP_TOKEN_HEADER]:t}}if(`bearer`in e){let t=(await resolveTokenValue(e.bearer)).trim();return t.length===0?{}:{authorization:`Bearer ${t}`}}if(`basic`in e){let t=await resolveTokenValue(e.basic.password);return{authorization:`Basic ${encodeBasicCredentials(e.basic.username,t)}`}}return{}}};async function resolveTokenValue(e){return typeof e==`function`?e():e}async function resolveHeadersValue(e){return e===void 0?{}:typeof e==`function`?await e():e}function headersInitToRecord(e){return e===void 0?{}:Object.fromEntries(new Headers(e).entries())}function withRedirectPolicy(e,t){return t===void 0?e:{...e,redirect:t}}function encodeBasicCredentials(e,t){let n=new TextEncoder().encode(`${e}:${t}`),r=Array.from(n,e=>String.fromCodePoint(e)).join(``);return btoa(r)}export{Client};