quantex-cli 0.18.5 → 0.19.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.
Files changed (41) hide show
  1. package/dist/agents-ZNosvpri.mjs +1 -0
  2. package/dist/capabilities-CH1g9Wyv.mjs +1 -0
  3. package/dist/capabilities-CKB3soqZ.mjs +5 -0
  4. package/dist/cli.mjs +1 -1
  5. package/dist/{color-DPVCVxkr.mjs → color-BgHjt9pg.mjs} +2 -2
  6. package/dist/commands-DW43XU0t.mjs +1 -0
  7. package/dist/{commands-BtmyjCx1.mjs → commands-TfkZ40FQ.mjs} +1 -1
  8. package/dist/{config-B6pPWz2n.mjs → config-BviiWqlK.mjs} +1 -1
  9. package/dist/detect-Q1nnDcca.mjs +1 -0
  10. package/dist/doctor-C_dl2rTA.mjs +3 -0
  11. package/dist/{ensure-gz-U0dLB.mjs → ensure-Bsodatwu.mjs} +1 -1
  12. package/dist/ensure-C6muP4LG.mjs +1 -0
  13. package/dist/index.d.mts +500 -2
  14. package/dist/index.mjs +2 -2
  15. package/dist/{info-BImqGoFh.mjs → info-L1EKkDNs.mjs} +1 -1
  16. package/dist/{inspect-BYkFiCr4.mjs → inspect-DOELzVla.mjs} +1 -1
  17. package/dist/inspect-VWWSSGk4.mjs +1 -0
  18. package/dist/{install-BlrGWHOk.mjs → install-BA0iWXm3.mjs} +1 -1
  19. package/dist/{list-szBoZRQ0.mjs → list-BzfNq_Hq.mjs} +1 -1
  20. package/dist/resolve-BbcQHghj.mjs +1 -0
  21. package/dist/{resolve-D67Ham9Q.mjs → resolve-DD2lh-Rl.mjs} +1 -1
  22. package/dist/schema-CH18r4wk.mjs +1 -0
  23. package/dist/{schema-C5qyYzdx.mjs → schema-Dh6SqSrc.mjs} +2 -2
  24. package/dist/{uninstall-GV6FgdBN.mjs → uninstall-SefKbL8a.mjs} +1 -1
  25. package/dist/update-BNzZDPvJ.mjs +1 -0
  26. package/dist/update-Gat4pKeS.mjs +1 -0
  27. package/dist/{upgrade-CrOevmFQ.mjs → upgrade-CVxQ8XFg.mjs} +1 -1
  28. package/dist/{user-output-Bb3bt9ss.mjs → user-output-C9oDB7iF.mjs} +1 -1
  29. package/package.json +4 -2
  30. package/dist/agents-XljEY0Vt.mjs +0 -1
  31. package/dist/capabilities-C79bDKbV.mjs +0 -5
  32. package/dist/capabilities-CiHKQ7Vg.mjs +0 -1
  33. package/dist/commands-DW6yZtuy.mjs +0 -1
  34. package/dist/detect-DQJbxlSn.mjs +0 -1
  35. package/dist/doctor-lsSzS5D5.mjs +0 -3
  36. package/dist/ensure-DoHI7HaT.mjs +0 -1
  37. package/dist/inspect-B4aUB04l.mjs +0 -1
  38. package/dist/resolve-C-hYtghC.mjs +0 -1
  39. package/dist/schema-C-U1n2xE.mjs +0 -1
  40. package/dist/update-BwoFH6zN.mjs +0 -1
  41. package/dist/update-DoeWcNiV.mjs +0 -1
package/dist/index.d.mts CHANGED
@@ -1,6 +1,8 @@
1
+ import { z } from "zod";
2
+
1
3
  //#region src/agents/types.d.ts
2
4
  type Platform = 'windows' | 'macos' | 'linux';
3
- type ManagedInstallType = 'bun' | 'npm' | 'brew' | 'cargo' | 'pip' | 'winget';
5
+ type ManagedInstallType = 'bun' | 'npm' | 'brew' | 'cargo' | 'pip' | 'uv' | 'winget';
4
6
  type InstallType = ManagedInstallType | 'script' | 'binary';
5
7
  type PackageTargetKind = 'package' | 'cask' | 'id';
6
8
  interface BaseInstallMethod {
@@ -26,6 +28,7 @@ interface AgentPackageMetadata {
26
28
  cargo?: string;
27
29
  npm?: string;
28
30
  pip?: string;
31
+ uv?: string;
29
32
  }
30
33
  interface AgentSelfUpdate {
31
34
  command: string[];
@@ -108,6 +111,497 @@ declare const vibe: AgentDefinition;
108
111
  //#region src/agents/definitions/vtcode.d.ts
109
112
  declare const vtcode: AgentDefinition;
110
113
  //#endregion
114
+ //#region src/agents/schema.d.ts
115
+ declare const agentCatalogEntrySchema: z.ZodObject<{
116
+ binaryName: z.ZodString;
117
+ displayName: z.ZodString;
118
+ homepage: z.ZodURL;
119
+ lookupAliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
+ name: z.ZodString;
121
+ packages: z.ZodOptional<z.ZodObject<{
122
+ cargo: z.ZodOptional<z.ZodString>;
123
+ npm: z.ZodOptional<z.ZodString>;
124
+ pip: z.ZodOptional<z.ZodString>;
125
+ uv: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strict>>;
127
+ platforms: z.ZodObject<{
128
+ linux: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
129
+ type: z.ZodEnum<{
130
+ bun: "bun";
131
+ npm: "npm";
132
+ brew: "brew";
133
+ cargo: "cargo";
134
+ pip: "pip";
135
+ uv: "uv";
136
+ winget: "winget";
137
+ }>;
138
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ packageName: z.ZodOptional<z.ZodString>;
140
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
141
+ package: "package";
142
+ cask: "cask";
143
+ id: "id";
144
+ }>>;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ command: z.ZodString;
147
+ type: z.ZodLiteral<"script">;
148
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
149
+ packageName: z.ZodOptional<z.ZodString>;
150
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
151
+ package: "package";
152
+ cask: "cask";
153
+ id: "id";
154
+ }>>;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ command: z.ZodString;
157
+ type: z.ZodLiteral<"binary">;
158
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
159
+ packageName: z.ZodOptional<z.ZodString>;
160
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
161
+ package: "package";
162
+ cask: "cask";
163
+ id: "id";
164
+ }>>;
165
+ }, z.core.$strict>], "type">>>;
166
+ macos: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
167
+ type: z.ZodEnum<{
168
+ bun: "bun";
169
+ npm: "npm";
170
+ brew: "brew";
171
+ cargo: "cargo";
172
+ pip: "pip";
173
+ uv: "uv";
174
+ winget: "winget";
175
+ }>;
176
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
177
+ packageName: z.ZodOptional<z.ZodString>;
178
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
179
+ package: "package";
180
+ cask: "cask";
181
+ id: "id";
182
+ }>>;
183
+ }, z.core.$strict>, z.ZodObject<{
184
+ command: z.ZodString;
185
+ type: z.ZodLiteral<"script">;
186
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
187
+ packageName: z.ZodOptional<z.ZodString>;
188
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
189
+ package: "package";
190
+ cask: "cask";
191
+ id: "id";
192
+ }>>;
193
+ }, z.core.$strict>, z.ZodObject<{
194
+ command: z.ZodString;
195
+ type: z.ZodLiteral<"binary">;
196
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
197
+ packageName: z.ZodOptional<z.ZodString>;
198
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
199
+ package: "package";
200
+ cask: "cask";
201
+ id: "id";
202
+ }>>;
203
+ }, z.core.$strict>], "type">>>;
204
+ windows: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
205
+ type: z.ZodEnum<{
206
+ bun: "bun";
207
+ npm: "npm";
208
+ brew: "brew";
209
+ cargo: "cargo";
210
+ pip: "pip";
211
+ uv: "uv";
212
+ winget: "winget";
213
+ }>;
214
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
215
+ packageName: z.ZodOptional<z.ZodString>;
216
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
217
+ package: "package";
218
+ cask: "cask";
219
+ id: "id";
220
+ }>>;
221
+ }, z.core.$strict>, z.ZodObject<{
222
+ command: z.ZodString;
223
+ type: z.ZodLiteral<"script">;
224
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
+ packageName: z.ZodOptional<z.ZodString>;
226
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
227
+ package: "package";
228
+ cask: "cask";
229
+ id: "id";
230
+ }>>;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ command: z.ZodString;
233
+ type: z.ZodLiteral<"binary">;
234
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
235
+ packageName: z.ZodOptional<z.ZodString>;
236
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
237
+ package: "package";
238
+ cask: "cask";
239
+ id: "id";
240
+ }>>;
241
+ }, z.core.$strict>], "type">>>;
242
+ }, z.core.$strict>;
243
+ selfUpdate: z.ZodOptional<z.ZodObject<{
244
+ command: z.ZodArray<z.ZodString>;
245
+ fallbackCommands: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
246
+ versionAfter: z.ZodOptional<z.ZodEnum<{
247
+ "same-process": "same-process";
248
+ respawn: "respawn";
249
+ }>>;
250
+ }, z.core.$strict>>;
251
+ versionProbe: z.ZodOptional<z.ZodObject<{
252
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
253
+ }, z.core.$strict>>;
254
+ }, z.core.$strict>;
255
+ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
256
+ binaryName: z.ZodString;
257
+ displayName: z.ZodString;
258
+ homepage: z.ZodURL;
259
+ lookupAliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
260
+ name: z.ZodString;
261
+ packages: z.ZodOptional<z.ZodObject<{
262
+ cargo: z.ZodOptional<z.ZodString>;
263
+ npm: z.ZodOptional<z.ZodString>;
264
+ pip: z.ZodOptional<z.ZodString>;
265
+ uv: z.ZodOptional<z.ZodString>;
266
+ }, z.core.$strict>>;
267
+ platforms: z.ZodObject<{
268
+ linux: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
269
+ type: z.ZodEnum<{
270
+ bun: "bun";
271
+ npm: "npm";
272
+ brew: "brew";
273
+ cargo: "cargo";
274
+ pip: "pip";
275
+ uv: "uv";
276
+ winget: "winget";
277
+ }>;
278
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
+ packageName: z.ZodOptional<z.ZodString>;
280
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
281
+ package: "package";
282
+ cask: "cask";
283
+ id: "id";
284
+ }>>;
285
+ }, z.core.$strict>, z.ZodObject<{
286
+ command: z.ZodString;
287
+ type: z.ZodLiteral<"script">;
288
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
289
+ packageName: z.ZodOptional<z.ZodString>;
290
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
291
+ package: "package";
292
+ cask: "cask";
293
+ id: "id";
294
+ }>>;
295
+ }, z.core.$strict>, z.ZodObject<{
296
+ command: z.ZodString;
297
+ type: z.ZodLiteral<"binary">;
298
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
299
+ packageName: z.ZodOptional<z.ZodString>;
300
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
301
+ package: "package";
302
+ cask: "cask";
303
+ id: "id";
304
+ }>>;
305
+ }, z.core.$strict>], "type">>>;
306
+ macos: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
307
+ type: z.ZodEnum<{
308
+ bun: "bun";
309
+ npm: "npm";
310
+ brew: "brew";
311
+ cargo: "cargo";
312
+ pip: "pip";
313
+ uv: "uv";
314
+ winget: "winget";
315
+ }>;
316
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
317
+ packageName: z.ZodOptional<z.ZodString>;
318
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
319
+ package: "package";
320
+ cask: "cask";
321
+ id: "id";
322
+ }>>;
323
+ }, z.core.$strict>, z.ZodObject<{
324
+ command: z.ZodString;
325
+ type: z.ZodLiteral<"script">;
326
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
327
+ packageName: z.ZodOptional<z.ZodString>;
328
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
329
+ package: "package";
330
+ cask: "cask";
331
+ id: "id";
332
+ }>>;
333
+ }, z.core.$strict>, z.ZodObject<{
334
+ command: z.ZodString;
335
+ type: z.ZodLiteral<"binary">;
336
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
337
+ packageName: z.ZodOptional<z.ZodString>;
338
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
339
+ package: "package";
340
+ cask: "cask";
341
+ id: "id";
342
+ }>>;
343
+ }, z.core.$strict>], "type">>>;
344
+ windows: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
345
+ type: z.ZodEnum<{
346
+ bun: "bun";
347
+ npm: "npm";
348
+ brew: "brew";
349
+ cargo: "cargo";
350
+ pip: "pip";
351
+ uv: "uv";
352
+ winget: "winget";
353
+ }>;
354
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
+ packageName: z.ZodOptional<z.ZodString>;
356
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
357
+ package: "package";
358
+ cask: "cask";
359
+ id: "id";
360
+ }>>;
361
+ }, z.core.$strict>, z.ZodObject<{
362
+ command: z.ZodString;
363
+ type: z.ZodLiteral<"script">;
364
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
365
+ packageName: z.ZodOptional<z.ZodString>;
366
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
367
+ package: "package";
368
+ cask: "cask";
369
+ id: "id";
370
+ }>>;
371
+ }, z.core.$strict>, z.ZodObject<{
372
+ command: z.ZodString;
373
+ type: z.ZodLiteral<"binary">;
374
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
375
+ packageName: z.ZodOptional<z.ZodString>;
376
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
377
+ package: "package";
378
+ cask: "cask";
379
+ id: "id";
380
+ }>>;
381
+ }, z.core.$strict>], "type">>>;
382
+ }, z.core.$strict>;
383
+ selfUpdate: z.ZodOptional<z.ZodObject<{
384
+ command: z.ZodArray<z.ZodString>;
385
+ fallbackCommands: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
386
+ versionAfter: z.ZodOptional<z.ZodEnum<{
387
+ "same-process": "same-process";
388
+ respawn: "respawn";
389
+ }>>;
390
+ }, z.core.$strict>>;
391
+ versionProbe: z.ZodOptional<z.ZodObject<{
392
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
393
+ }, z.core.$strict>>;
394
+ }, z.core.$strict>>;
395
+ type AgentCatalogEntry = z.infer<typeof agentCatalogEntrySchema>;
396
+ type AgentCatalogData = z.infer<typeof agentCatalogSchema>;
397
+ declare const agentCatalogJsonSchema: {
398
+ $id: string;
399
+ title: string;
400
+ "~standard": z.core.ZodStandardSchemaWithJSON<z.ZodArray<z.ZodObject<{
401
+ binaryName: z.ZodString;
402
+ displayName: z.ZodString;
403
+ homepage: z.ZodURL;
404
+ lookupAliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
405
+ name: z.ZodString;
406
+ packages: z.ZodOptional<z.ZodObject<{
407
+ cargo: z.ZodOptional<z.ZodString>;
408
+ npm: z.ZodOptional<z.ZodString>;
409
+ pip: z.ZodOptional<z.ZodString>;
410
+ uv: z.ZodOptional<z.ZodString>;
411
+ }, z.core.$strict>>;
412
+ platforms: z.ZodObject<{
413
+ linux: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
414
+ type: z.ZodEnum<{
415
+ bun: "bun";
416
+ npm: "npm";
417
+ brew: "brew";
418
+ cargo: "cargo";
419
+ pip: "pip";
420
+ uv: "uv";
421
+ winget: "winget";
422
+ }>;
423
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
424
+ packageName: z.ZodOptional<z.ZodString>;
425
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
426
+ package: "package";
427
+ cask: "cask";
428
+ id: "id";
429
+ }>>;
430
+ }, z.core.$strict>, z.ZodObject<{
431
+ command: z.ZodString;
432
+ type: z.ZodLiteral<"script">;
433
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
434
+ packageName: z.ZodOptional<z.ZodString>;
435
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
436
+ package: "package";
437
+ cask: "cask";
438
+ id: "id";
439
+ }>>;
440
+ }, z.core.$strict>, z.ZodObject<{
441
+ command: z.ZodString;
442
+ type: z.ZodLiteral<"binary">;
443
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
444
+ packageName: z.ZodOptional<z.ZodString>;
445
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
446
+ package: "package";
447
+ cask: "cask";
448
+ id: "id";
449
+ }>>;
450
+ }, z.core.$strict>], "type">>>;
451
+ macos: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
452
+ type: z.ZodEnum<{
453
+ bun: "bun";
454
+ npm: "npm";
455
+ brew: "brew";
456
+ cargo: "cargo";
457
+ pip: "pip";
458
+ uv: "uv";
459
+ winget: "winget";
460
+ }>;
461
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
462
+ packageName: z.ZodOptional<z.ZodString>;
463
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
464
+ package: "package";
465
+ cask: "cask";
466
+ id: "id";
467
+ }>>;
468
+ }, z.core.$strict>, z.ZodObject<{
469
+ command: z.ZodString;
470
+ type: z.ZodLiteral<"script">;
471
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
472
+ packageName: z.ZodOptional<z.ZodString>;
473
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
474
+ package: "package";
475
+ cask: "cask";
476
+ id: "id";
477
+ }>>;
478
+ }, z.core.$strict>, z.ZodObject<{
479
+ command: z.ZodString;
480
+ type: z.ZodLiteral<"binary">;
481
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
482
+ packageName: z.ZodOptional<z.ZodString>;
483
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
484
+ package: "package";
485
+ cask: "cask";
486
+ id: "id";
487
+ }>>;
488
+ }, z.core.$strict>], "type">>>;
489
+ windows: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
490
+ type: z.ZodEnum<{
491
+ bun: "bun";
492
+ npm: "npm";
493
+ brew: "brew";
494
+ cargo: "cargo";
495
+ pip: "pip";
496
+ uv: "uv";
497
+ winget: "winget";
498
+ }>;
499
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
500
+ packageName: z.ZodOptional<z.ZodString>;
501
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
502
+ package: "package";
503
+ cask: "cask";
504
+ id: "id";
505
+ }>>;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ command: z.ZodString;
508
+ type: z.ZodLiteral<"script">;
509
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
510
+ packageName: z.ZodOptional<z.ZodString>;
511
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
512
+ package: "package";
513
+ cask: "cask";
514
+ id: "id";
515
+ }>>;
516
+ }, z.core.$strict>, z.ZodObject<{
517
+ command: z.ZodString;
518
+ type: z.ZodLiteral<"binary">;
519
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
+ packageName: z.ZodOptional<z.ZodString>;
521
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
522
+ package: "package";
523
+ cask: "cask";
524
+ id: "id";
525
+ }>>;
526
+ }, z.core.$strict>], "type">>>;
527
+ }, z.core.$strict>;
528
+ selfUpdate: z.ZodOptional<z.ZodObject<{
529
+ command: z.ZodArray<z.ZodString>;
530
+ fallbackCommands: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
531
+ versionAfter: z.ZodOptional<z.ZodEnum<{
532
+ "same-process": "same-process";
533
+ respawn: "respawn";
534
+ }>>;
535
+ }, z.core.$strict>>;
536
+ versionProbe: z.ZodOptional<z.ZodObject<{
537
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
538
+ }, z.core.$strict>>;
539
+ }, z.core.$strict>>>;
540
+ $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
541
+ $anchor?: string;
542
+ $ref?: string;
543
+ $dynamicRef?: string;
544
+ $dynamicAnchor?: string;
545
+ $vocabulary?: Record<string, boolean>;
546
+ $comment?: string;
547
+ $defs?: Record<string, z.core.JSONSchema.JSONSchema>;
548
+ type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
549
+ additionalItems?: z.core.JSONSchema._JSONSchema;
550
+ unevaluatedItems?: z.core.JSONSchema._JSONSchema;
551
+ prefixItems?: z.core.JSONSchema._JSONSchema[];
552
+ items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
553
+ contains?: z.core.JSONSchema._JSONSchema;
554
+ additionalProperties?: z.core.JSONSchema._JSONSchema;
555
+ unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
556
+ properties?: Record<string, z.core.JSONSchema._JSONSchema>;
557
+ patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
558
+ dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
559
+ propertyNames?: z.core.JSONSchema._JSONSchema;
560
+ if?: z.core.JSONSchema._JSONSchema;
561
+ then?: z.core.JSONSchema._JSONSchema;
562
+ else?: z.core.JSONSchema._JSONSchema;
563
+ allOf?: z.core.JSONSchema.JSONSchema[];
564
+ anyOf?: z.core.JSONSchema.JSONSchema[];
565
+ oneOf?: z.core.JSONSchema.JSONSchema[];
566
+ not?: z.core.JSONSchema._JSONSchema;
567
+ multipleOf?: number;
568
+ maximum?: number;
569
+ exclusiveMaximum?: number | boolean;
570
+ minimum?: number;
571
+ exclusiveMinimum?: number | boolean;
572
+ maxLength?: number;
573
+ minLength?: number;
574
+ pattern?: string;
575
+ maxItems?: number;
576
+ minItems?: number;
577
+ uniqueItems?: boolean;
578
+ maxContains?: number;
579
+ minContains?: number;
580
+ maxProperties?: number;
581
+ minProperties?: number;
582
+ required?: string[];
583
+ dependentRequired?: Record<string, string[]>;
584
+ enum?: Array<string | number | boolean | null>;
585
+ const?: string | number | boolean | null;
586
+ id?: string;
587
+ description?: string;
588
+ default?: unknown;
589
+ deprecated?: boolean;
590
+ readOnly?: boolean;
591
+ writeOnly?: boolean;
592
+ nullable?: boolean;
593
+ examples?: unknown[];
594
+ format?: string;
595
+ contentMediaType?: string;
596
+ contentEncoding?: string;
597
+ contentSchema?: z.core.JSONSchema.JSONSchema;
598
+ _prefault?: unknown;
599
+ };
600
+ //#endregion
601
+ //#region src/agents/catalog.d.ts
602
+ declare function getCatalogAgents(): AgentDefinition[];
603
+ declare function getCatalogAgent(name: string): AgentDefinition;
604
+ //#endregion
111
605
  //#region src/agents/index.d.ts
112
606
  declare function getAllAgents(): AgentDefinition[];
113
607
  declare function getAgentByLookupName(name: string): AgentDefinition | undefined;
@@ -359,6 +853,10 @@ interface CapabilitiesData {
359
853
  available: boolean;
360
854
  reason?: string;
361
855
  };
856
+ uv: {
857
+ available: boolean;
858
+ reason?: string;
859
+ };
362
860
  winget: {
363
861
  available: boolean;
364
862
  reason?: string;
@@ -721,4 +1219,4 @@ declare function getLatestVersion(packageName: string, distTag?: string, options
721
1219
  }): Promise<string | undefined>;
722
1220
  declare function getBinaryPath(binaryName: string): Promise<string | undefined>;
723
1221
  //#endregion
724
- export { type AgentDefinition, type AgentInspection, type AgentOperationResult, type AgentPackageMetadata, type AgentSelfUpdate, type AgentUpdateContext, type AgentUpdateProvider, type AgentUpdateStrategy, type AgentVersionProbe, type BinaryInstallMethod, type CliContext, type CliContextOptions, type CliErrorCode, type CommandError, type CommandMeta, type CommandResult, type CommandTarget, type CommandWarning, type ExecCommandOptions, type ExecInstallPolicy, type HumanRenderer, type InstallMethod, type InstallType, type InstalledAgentState, type ManagedInstallMethod, type ManagedInstallType, type ManagedInstaller, type ManagedPackageSpec, type ManagedUpdateBucket, type OutputMode, type PackageTargetKind, type PendingAgentUpdate, type PlannedAgentUpdates, type Platform, type QuantexConfig, type QuantexState, type ReleaseArtifactTarget, type ReleaseChannel, type ReleaseManifest, type ReleaseManifestAsset, type ResolvedAgentInspection, type ScriptInstallMethod, type SelfInspection, type SelfInstallSource, type SelfState, type SelfUpdateResult, type SingleAgentUpdateStatus, type UpdatePlan, type UpdatePlanEntry, agentUpdateProviders, autohand, canAutoUpdateSelf, canLookupLatestVersionForInstallType, canResolveAgentUpdate, canUninstallInstallType, canUpdateInstallType, capabilitiesCommand, claude, codebuddy, codex, commandsCommand, copilot, createErrorResult, createReleaseManifest, createSuccessResult, createUpdatePlan, cursor, deepseek, detectSelfInstallSource, devin, droid, emitCommandResult, ensureCommand, execCommand, formatChecksums, gemini, getAgentByLookupName, getAgentByNameOrAlias, getAgentUpdateFailureHint, getAgentUpdateStrategy, getAllAgents, getBinaryPath, getBinaryReleaseAssetName, getBinaryReleaseDownloadUrl, getCliContext, getConfigDir, getConfigFilePath, getExitCodeForError, getExitCodeForResult, getInstallLifecycle, getInstalledAgentState, getInstalledVersion, getInstallerCapabilities, getLatestVersion, getManagedInstaller, getManualAgentUpdateMessage, getManualSelfUpgradeCommand, getOrderedInstallMethods, getPlatform, getSchemaCatalog, getSelfState, getSelfUpgradeRecoveryHint, getSelfUpgradeRecoveryHintForInspection, getSelfVersion, getSingleAgentUpdateStatus, getStateFilePath, inspectAgent, inspectAllAgents, inspectCommand, inspectRegisteredAgents, inspectSelf, installAgent, isBinaryInPath, isBunAvailable, isInspectionUpdateAvailable, isManagedInstallType, isNpmAvailable, jcode, junie, kilo, loadConfig, loadState, normalizeRepositoryUrl, opencode, openhands, parseBinaryTarget, parseChecksums, pi, planAgentUpdates, qoder, reasonix, removeInstalledAgentState, resetCliContext, resolveAgent, resolveAgentInspection, resolveAgentUpdateProvider, resolveCliContext, resolveCommand, resolveReleaseChannel, saveConfig, saveState, schemaCommand, setCliContext, setInstalledAgentState, setSelfInstallSource, setSelfUpdateNoticeState, uninstallAgent, updateAgent, updateAgentsByType, upgradeSelf, validateReleaseManifest, vibe, vtcode };
1222
+ export { type AgentCatalogData, type AgentCatalogEntry, type AgentDefinition, type AgentInspection, type AgentOperationResult, type AgentPackageMetadata, type AgentSelfUpdate, type AgentUpdateContext, type AgentUpdateProvider, type AgentUpdateStrategy, type AgentVersionProbe, type BinaryInstallMethod, type CliContext, type CliContextOptions, type CliErrorCode, type CommandError, type CommandMeta, type CommandResult, type CommandTarget, type CommandWarning, type ExecCommandOptions, type ExecInstallPolicy, type HumanRenderer, type InstallMethod, type InstallType, type InstalledAgentState, type ManagedInstallMethod, type ManagedInstallType, type ManagedInstaller, type ManagedPackageSpec, type ManagedUpdateBucket, type OutputMode, type PackageTargetKind, type PendingAgentUpdate, type PlannedAgentUpdates, type Platform, type QuantexConfig, type QuantexState, type ReleaseArtifactTarget, type ReleaseChannel, type ReleaseManifest, type ReleaseManifestAsset, type ResolvedAgentInspection, type ScriptInstallMethod, type SelfInspection, type SelfInstallSource, type SelfState, type SelfUpdateResult, type SingleAgentUpdateStatus, type UpdatePlan, type UpdatePlanEntry, agentCatalogEntrySchema, agentCatalogJsonSchema, agentCatalogSchema, agentUpdateProviders, autohand, canAutoUpdateSelf, canLookupLatestVersionForInstallType, canResolveAgentUpdate, canUninstallInstallType, canUpdateInstallType, capabilitiesCommand, claude, codebuddy, codex, commandsCommand, copilot, createErrorResult, createReleaseManifest, createSuccessResult, createUpdatePlan, cursor, deepseek, detectSelfInstallSource, devin, droid, emitCommandResult, ensureCommand, execCommand, formatChecksums, gemini, getAgentByLookupName, getAgentByNameOrAlias, getAgentUpdateFailureHint, getAgentUpdateStrategy, getAllAgents, getBinaryPath, getBinaryReleaseAssetName, getBinaryReleaseDownloadUrl, getCatalogAgent, getCatalogAgents, getCliContext, getConfigDir, getConfigFilePath, getExitCodeForError, getExitCodeForResult, getInstallLifecycle, getInstalledAgentState, getInstalledVersion, getInstallerCapabilities, getLatestVersion, getManagedInstaller, getManualAgentUpdateMessage, getManualSelfUpgradeCommand, getOrderedInstallMethods, getPlatform, getSchemaCatalog, getSelfState, getSelfUpgradeRecoveryHint, getSelfUpgradeRecoveryHintForInspection, getSelfVersion, getSingleAgentUpdateStatus, getStateFilePath, inspectAgent, inspectAllAgents, inspectCommand, inspectRegisteredAgents, inspectSelf, installAgent, isBinaryInPath, isBunAvailable, isInspectionUpdateAvailable, isManagedInstallType, isNpmAvailable, jcode, junie, kilo, loadConfig, loadState, normalizeRepositoryUrl, opencode, openhands, parseBinaryTarget, parseChecksums, pi, planAgentUpdates, qoder, reasonix, removeInstalledAgentState, resetCliContext, resolveAgent, resolveAgentInspection, resolveAgentUpdateProvider, resolveCliContext, resolveCommand, resolveReleaseChannel, saveConfig, saveState, schemaCommand, setCliContext, setInstalledAgentState, setSelfInstallSource, setSelfUpdateNoticeState, uninstallAgent, updateAgent, updateAgentsByType, upgradeSelf, validateReleaseManifest, vibe, vtcode };
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{n as e,t}from"./messages-qcLhD-Gc.mjs";import{C as n,D as r,E as i,S as a,T as ee,a as te,d as ne,f as re,g as ie,h as o,i as s,l as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g,w as _}from"./agents-XljEY0Vt.mjs";import{A as v,C as y,D as b,E as x,O as S,S as C,T as w,_ as T,b as E,d as D,f as O,g as k,h as A,i as j,j as M,k as N,l as P,m as F,n as I,o as L,p as R,t as z,u as B,v as V,w as H,x as U,y as W}from"./detect-DQJbxlSn.mjs";import{$ as G,A as K,B as q,C as J,D as Y,E as ae,F as oe,G as se,I as ce,K as le,M as ue,N as de,O as fe,P as pe,R as me,T as he,X as ge,Z as _e,a as ve,at as ye,c as be,et as xe,it as Se,j as Ce,k as we,l as Te,n as Ee,o as De,ot as Oe,r as ke,s as Ae,st as je,u as Me,w as Ne,z as Pe}from"./color-DPVCVxkr.mjs";import{t as Fe}from"./capabilities-C79bDKbV.mjs";import{t as Ie}from"./commands-BtmyjCx1.mjs";import{t as Le}from"./ensure-gz-U0dLB.mjs";import{t as Re}from"./inspect-BYkFiCr4.mjs";import{t as ze}from"./resolve-D67Ham9Q.mjs";import{n as Be,t as Ve}from"./schema-C5qyYzdx.mjs";import{n as He,t as Ue}from"./errors-DCtNasuC.mjs";import{a as We,i as X,n as Ge,t as Ke}from"./update-DoeWcNiV.mjs";const qe=[`quantex-darwin-arm64`,`quantex-darwin-x64`,`quantex-linux-arm64`,`quantex-linux-x64`,`quantex-windows-x64.exe`];function Je(e){return`${e.sort((e,t)=>e.name.localeCompare(t.name)).map(e=>`${e.checksum} ${e.name}`).join(`
2
- `)}\n`}function Ye(e){let t=new Map;for(let n of e.split(/\r?\n/)){let e=n.trim();if(!e)continue;let[r,i]=e.split(/\s+/,2),a=i?.replace(/^\*/,``);r&&a&&t.set(a,r)}return t}function Z(e){let t=e.match(/^quantex-(darwin|linux|windows)-(arm64|x64)(?:\.exe)?$/);if(t)return{arch:t[2]===`arm64`?`arm64`:`x64`,platform:t[1]===`windows`?`win32`:t[1]===`darwin`?`darwin`:`linux`}}function Q(e){return e?e.startsWith(`git+`)?e.slice(4).replace(/\.git$/,``):e.startsWith(`git@github.com:`)?e.replace(`git@github.com:`,`https://github.com/`).replace(/\.git$/,``):e.replace(/\.git$/,``):`https://github.com/Drswith/quantex-cli`}function $(e){return e.includes(`beta`)?`beta`:`stable`}function Xe(e){let t=Q(e.repositoryUrl),n=$(e.version),r=e.files.map(n=>{let r=Z(n.name);if(!r)return;let i=e.checksums.get(n.name);if(!i)throw Error(`Missing checksum entry for ${n.name}.`);return{arch:r.arch,checksum:i,downloadUrl:`${t}/releases/download/v${e.version}/${n.name}`,name:n.name,platform:r.platform,size:n.size}}).filter(e=>e!==void 0).sort((e,t)=>e.name.localeCompare(t.name));if(r.length===0)throw Error(`No release binaries were found when creating manifest.json.`);return{assets:r,channel:n,version:e.version}}function Ze(e,t){if(e.assets.length===0)throw Error(`manifest.json must contain at least one binary asset.`);let n=new Set(e.assets.map(e=>e.name));for(let e of qe)if(!n.has(e))throw Error(`manifest.json is missing required release asset: ${e}.`);for(let n of e.assets){let e=t.get(n.name);if(!e)throw Error(`manifest.json references ${n.name}, but it is missing from SHA256SUMS.txt.`);if(n.checksum!==e)throw Error(`manifest.json checksum mismatch for ${n.name}.`);if(!Z(n.name))throw Error(`manifest.json contains an invalid binary asset name: ${n.name}.`)}}async function Qe(e,t){try{let n=await le(se([e,...t]));return{success:n===0,exitCode:n}}catch{return{success:!1,exitCode:1}}}export{f as agentUpdateProviders,M as autohand,J as canAutoUpdateSelf,a as canLookupLatestVersionForInstallType,l as canResolveAgentUpdate,n as canUninstallInstallType,_ as canUpdateInstallType,Fe as capabilitiesCommand,v as claude,N as codebuddy,S as codex,Ie as commandsCommand,b as copilot,Ee as createErrorResult,Xe as createReleaseManifest,ke as createSuccessResult,X as createUpdatePlan,x as cursor,w as deepseek,Ne as detectSelfInstallSource,H as devin,y as droid,ve as emitCommandResult,Le as ensureCommand,Qe as execCommand,Je as formatChecksums,C as gemini,P as getAgentByLookupName,B as getAgentByNameOrAlias,t as getAgentUpdateFailureHint,o as getAgentUpdateStrategy,D as getAllAgents,me as getBinaryPath,ae as getBinaryReleaseAssetName,Y as getBinaryReleaseDownloadUrl,Se as getCliContext,ge as getConfigDir,_e as getConfigFilePath,Ue as getExitCodeForError,He as getExitCodeForResult,ee as getInstallLifecycle,fe as getInstalledAgentState,Pe as getInstalledVersion,i as getInstallerCapabilities,q as getLatestVersion,re as getManagedInstaller,e as getManualAgentUpdateMessage,De as getManualSelfUpgradeCommand,d as getOrderedInstallMethods,z as getPlatform,Ve as getSchemaCatalog,we as getSelfState,Te as getSelfUpgradeRecoveryHint,Me as getSelfUpgradeRecoveryHintForInspection,he as getSelfVersion,Ke as getSingleAgentUpdateStatus,K as getStateFilePath,s as inspectAgent,te as inspectAllAgents,Re as inspectCommand,h as inspectRegisteredAgents,Ae as inspectSelf,m as installAgent,I as isBinaryInPath,j as isBunAvailable,We as isInspectionUpdateAvailable,r as isManagedInstallType,L as isNpmAvailable,U as jcode,E as junie,W as kilo,G as loadConfig,Ce as loadState,Q as normalizeRepositoryUrl,V as opencode,T as openhands,Z as parseBinaryTarget,Ye as parseChecksums,k as pi,Ge as planAgentUpdates,A as qoder,F as reasonix,ue as removeInstalledAgentState,ye as resetCliContext,u as resolveAgent,p as resolveAgentInspection,ie as resolveAgentUpdateProvider,Oe as resolveCliContext,ze as resolveCommand,$ as resolveReleaseChannel,xe as saveConfig,de as saveState,Be as schemaCommand,je as setCliContext,pe as setInstalledAgentState,oe as setSelfInstallSource,ce as setSelfUpdateNoticeState,c as uninstallAgent,g as updateAgent,ne as updateAgentsByType,be as upgradeSelf,Ze as validateReleaseManifest,R as vibe,O as vtcode};
1
+ import{n as e,t}from"./messages-qcLhD-Gc.mjs";import{C as n,D as r,E as i,S as a,T as o,a as ee,d as te,f as ne,g as re,h as ie,i as s,l as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g,w as _}from"./agents-ZNosvpri.mjs";import{_ as v,d as y,f as b,g as x,h as S,i as C,m as w,n as T,o as E,p as D,t as O,u as k}from"./detect-Q1nnDcca.mjs";import{$ as A,A as j,B as M,C as N,D as P,E as F,F as I,G as L,I as R,K as z,M as B,N as V,O as H,P as U,R as W,T as G,X as K,Z as q,a as J,at as Y,c as ae,et as oe,it as se,j as ce,k as le,l as ue,n as de,o as fe,ot as pe,r as me,s as he,st as ge,u as _e,w as ve,z as ye}from"./color-BgHjt9pg.mjs";import{t as be}from"./capabilities-CKB3soqZ.mjs";import{t as xe}from"./commands-TfkZ40FQ.mjs";import{t as Se}from"./ensure-Bsodatwu.mjs";import{t as Ce}from"./inspect-DOELzVla.mjs";import{t as we}from"./resolve-DD2lh-Rl.mjs";import{n as Te,t as Ee}from"./schema-Dh6SqSrc.mjs";import{n as De,t as Oe}from"./errors-DCtNasuC.mjs";import{a as ke,i as Ae,n as je,t as Me}from"./update-Gat4pKeS.mjs";const Ne=D(`autohand`),Pe=D(`claude`),Fe=D(`codebuddy`),Ie=D(`codex`),Le=D(`copilot`),Re=D(`cursor`),ze=D(`deepseek`),Be=D(`devin`),Ve=D(`droid`),He=D(`gemini`),Ue=D(`jcode`),We=D(`junie`),Ge=D(`kilo`),Ke=D(`opencode`),qe=D(`openhands`),Je=D(`pi`),Ye=D(`qoder`),Xe=D(`reasonix`),Ze=D(`vibe`),X=D(`vtcode`),Qe=[`quantex-darwin-arm64`,`quantex-darwin-x64`,`quantex-linux-arm64`,`quantex-linux-x64`,`quantex-windows-x64.exe`];function $e(e){return`${e.sort((e,t)=>e.name.localeCompare(t.name)).map(e=>`${e.checksum} ${e.name}`).join(`
2
+ `)}\n`}function et(e){let t=new Map;for(let n of e.split(/\r?\n/)){let e=n.trim();if(!e)continue;let[r,i]=e.split(/\s+/,2),a=i?.replace(/^\*/,``);r&&a&&t.set(a,r)}return t}function Z(e){let t=e.match(/^quantex-(darwin|linux|windows)-(arm64|x64)(?:\.exe)?$/);if(t)return{arch:t[2]===`arm64`?`arm64`:`x64`,platform:t[1]===`windows`?`win32`:t[1]===`darwin`?`darwin`:`linux`}}function Q(e){return e?e.startsWith(`git+`)?e.slice(4).replace(/\.git$/,``):e.startsWith(`git@github.com:`)?e.replace(`git@github.com:`,`https://github.com/`).replace(/\.git$/,``):e.replace(/\.git$/,``):`https://github.com/Drswith/quantex-cli`}function $(e){return e.includes(`beta`)?`beta`:`stable`}function tt(e){let t=Q(e.repositoryUrl),n=$(e.version),r=e.files.map(n=>{let r=Z(n.name);if(!r)return;let i=e.checksums.get(n.name);if(!i)throw Error(`Missing checksum entry for ${n.name}.`);return{arch:r.arch,checksum:i,downloadUrl:`${t}/releases/download/v${e.version}/${n.name}`,name:n.name,platform:r.platform,size:n.size}}).filter(e=>e!==void 0).sort((e,t)=>e.name.localeCompare(t.name));if(r.length===0)throw Error(`No release binaries were found when creating manifest.json.`);return{assets:r,channel:n,version:e.version}}function nt(e,t){if(e.assets.length===0)throw Error(`manifest.json must contain at least one binary asset.`);let n=new Set(e.assets.map(e=>e.name));for(let e of Qe)if(!n.has(e))throw Error(`manifest.json is missing required release asset: ${e}.`);for(let n of e.assets){let e=t.get(n.name);if(!e)throw Error(`manifest.json references ${n.name}, but it is missing from SHA256SUMS.txt.`);if(n.checksum!==e)throw Error(`manifest.json checksum mismatch for ${n.name}.`);if(!Z(n.name))throw Error(`manifest.json contains an invalid binary asset name: ${n.name}.`)}}async function rt(e,t){try{let n=await z(L([e,...t]));return{success:n===0,exitCode:n}}catch{return{success:!1,exitCode:1}}}export{S as agentCatalogEntrySchema,x as agentCatalogJsonSchema,v as agentCatalogSchema,f as agentUpdateProviders,Ne as autohand,N as canAutoUpdateSelf,a as canLookupLatestVersionForInstallType,l as canResolveAgentUpdate,n as canUninstallInstallType,_ as canUpdateInstallType,be as capabilitiesCommand,Pe as claude,Fe as codebuddy,Ie as codex,xe as commandsCommand,Le as copilot,de as createErrorResult,tt as createReleaseManifest,me as createSuccessResult,Ae as createUpdatePlan,Re as cursor,ze as deepseek,ve as detectSelfInstallSource,Be as devin,Ve as droid,J as emitCommandResult,Se as ensureCommand,rt as execCommand,$e as formatChecksums,He as gemini,k as getAgentByLookupName,y as getAgentByNameOrAlias,t as getAgentUpdateFailureHint,ie as getAgentUpdateStrategy,b as getAllAgents,W as getBinaryPath,F as getBinaryReleaseAssetName,P as getBinaryReleaseDownloadUrl,D as getCatalogAgent,w as getCatalogAgents,se as getCliContext,K as getConfigDir,q as getConfigFilePath,Oe as getExitCodeForError,De as getExitCodeForResult,o as getInstallLifecycle,H as getInstalledAgentState,ye as getInstalledVersion,i as getInstallerCapabilities,M as getLatestVersion,ne as getManagedInstaller,e as getManualAgentUpdateMessage,fe as getManualSelfUpgradeCommand,d as getOrderedInstallMethods,O as getPlatform,Ee as getSchemaCatalog,le as getSelfState,ue as getSelfUpgradeRecoveryHint,_e as getSelfUpgradeRecoveryHintForInspection,G as getSelfVersion,Me as getSingleAgentUpdateStatus,j as getStateFilePath,s as inspectAgent,ee as inspectAllAgents,Ce as inspectCommand,h as inspectRegisteredAgents,he as inspectSelf,m as installAgent,T as isBinaryInPath,C as isBunAvailable,ke as isInspectionUpdateAvailable,r as isManagedInstallType,E as isNpmAvailable,Ue as jcode,We as junie,Ge as kilo,A as loadConfig,ce as loadState,Q as normalizeRepositoryUrl,Ke as opencode,qe as openhands,Z as parseBinaryTarget,et as parseChecksums,Je as pi,je as planAgentUpdates,Ye as qoder,Xe as reasonix,B as removeInstalledAgentState,Y as resetCliContext,u as resolveAgent,p as resolveAgentInspection,re as resolveAgentUpdateProvider,pe as resolveCliContext,we as resolveCommand,$ as resolveReleaseChannel,oe as saveConfig,V as saveState,Te as schemaCommand,ge as setCliContext,U as setInstalledAgentState,I as setSelfInstallSource,R as setSelfUpdateNoticeState,c as uninstallAgent,g as updateAgent,te as updateAgentsByType,ae as upgradeSelf,nt as validateReleaseManifest,Ze as vibe,X as vtcode};
@@ -1,2 +1,2 @@
1
- import{r as e,v as t,y as n}from"./agents-XljEY0Vt.mjs";import{a as r,n as i,r as a,t as o}from"./color-DPVCVxkr.mjs";async function s(o){let s=await e(o);if(!s)return r(i({action:`info`,error:{code:`AGENT_NOT_FOUND`,details:{input:o},message:`Unknown agent: ${o}`},target:{kind:`agent`,name:o}}),c);let{agent:l,inspection:u}=s,d=l.selfUpdate?[l.selfUpdate.command,...l.selfUpdate.fallbackCommands??[]].map(e=>e.join(` `)):[];return r(a({action:`info`,data:{agent:{aliases:l.lookupAliases??[],binaryName:l.binaryName,displayName:l.displayName,installMethods:u.methods.map(e=>({command:t(l,e),label:n(e),type:e.type})),name:l.name,packageName:l.packages?.npm,selfUpdateCommands:d},inspection:{binaryPath:u.binaryPath,installed:u.inPath,installedVersion:u.installedVersion,latestVersion:u.latestVersion,lifecycle:u.lifecycle,sourceLabel:u.inPath?u.sourceLabel:void 0}},target:{kind:`agent`,name:l.name}}),c)}function c(e){if(e.error){console.log(o.red(e.error.message));return}if(e.data){console.log(o.bold(`\n${e.data.agent.displayName}\n`)),console.log(` Name: ${e.data.agent.name}`),console.log(` Aliases: ${e.data.agent.aliases.join(`, `)||`-`}`),console.log(` Package: ${e.data.agent.packageName??`-`}`),console.log(` Binary: ${e.data.agent.binaryName}`),console.log(` Update: ${e.data.agent.selfUpdateCommands.join(` || `)||`-`}`),console.log(` Installed: ${e.data.inspection.installed?o.green(`Yes`):o.red(`No`)}`),e.data.inspection.sourceLabel&&console.log(` Source: ${e.data.inspection.sourceLabel}`),e.data.inspection.installed&&console.log(` Lifecycle: ${e.data.inspection.lifecycle}`),e.data.inspection.installedVersion&&console.log(` Version: ${e.data.inspection.installedVersion}`),e.data.inspection.latestVersion&&console.log(` Latest: ${e.data.inspection.latestVersion}`),e.data.inspection.binaryPath&&console.log(` Path: ${e.data.inspection.binaryPath}`),console.log(o.bold(`
1
+ import{r as e,v as t,y as n}from"./agents-ZNosvpri.mjs";import{a as r,n as i,r as a,t as o}from"./color-BgHjt9pg.mjs";async function s(o){let s=await e(o);if(!s)return r(i({action:`info`,error:{code:`AGENT_NOT_FOUND`,details:{input:o},message:`Unknown agent: ${o}`},target:{kind:`agent`,name:o}}),c);let{agent:l,inspection:u}=s,d=l.selfUpdate?[l.selfUpdate.command,...l.selfUpdate.fallbackCommands??[]].map(e=>e.join(` `)):[];return r(a({action:`info`,data:{agent:{aliases:l.lookupAliases??[],binaryName:l.binaryName,displayName:l.displayName,installMethods:u.methods.map(e=>({command:t(l,e),label:n(e),type:e.type})),name:l.name,packageName:l.packages?.npm,selfUpdateCommands:d},inspection:{binaryPath:u.binaryPath,installed:u.inPath,installedVersion:u.installedVersion,latestVersion:u.latestVersion,lifecycle:u.lifecycle,sourceLabel:u.inPath?u.sourceLabel:void 0}},target:{kind:`agent`,name:l.name}}),c)}function c(e){if(e.error){console.log(o.red(e.error.message));return}if(e.data){console.log(o.bold(`\n${e.data.agent.displayName}\n`)),console.log(` Name: ${e.data.agent.name}`),console.log(` Aliases: ${e.data.agent.aliases.join(`, `)||`-`}`),console.log(` Package: ${e.data.agent.packageName??`-`}`),console.log(` Binary: ${e.data.agent.binaryName}`),console.log(` Update: ${e.data.agent.selfUpdateCommands.join(` || `)||`-`}`),console.log(` Installed: ${e.data.inspection.installed?o.green(`Yes`):o.red(`No`)}`),e.data.inspection.sourceLabel&&console.log(` Source: ${e.data.inspection.sourceLabel}`),e.data.inspection.installed&&console.log(` Lifecycle: ${e.data.inspection.lifecycle}`),e.data.inspection.installedVersion&&console.log(` Version: ${e.data.inspection.installedVersion}`),e.data.inspection.latestVersion&&console.log(` Latest: ${e.data.inspection.latestVersion}`),e.data.inspection.binaryPath&&console.log(` Path: ${e.data.inspection.binaryPath}`),console.log(o.bold(`
2
2
  Install Methods:`));for(let t of e.data.agent.installMethods)console.log(` ${o.green(`+`)} [${t.label}] ${t.command}`);console.log()}}export{s as infoCommand};
@@ -1,3 +1,3 @@
1
- import{r as e,v as t,y as n}from"./agents-XljEY0Vt.mjs";import{a as r,n as i,r as a,t as o}from"./color-DPVCVxkr.mjs";async function s(o){let s=await e(o);if(!s)return r(i({action:`inspect`,error:{code:`AGENT_NOT_FOUND`,details:{input:o},message:`Unknown agent: ${o}`},target:{kind:`agent`,name:o}}),c);let{agent:l,inspection:u}=s,d=l.selfUpdate?[l.selfUpdate.command,...l.selfUpdate.fallbackCommands??[]].map(e=>e.join(` `)):[];return r(a({action:`inspect`,data:{agent:{aliases:l.lookupAliases??[],binaryName:l.binaryName,displayName:l.displayName,installMethods:u.methods.map(e=>({command:t(l,e),label:n(e),type:e.type})),name:l.name,packageName:l.packages?.npm,selfUpdateCommands:d},capabilities:{canAutoInstall:u.methods.length>0,canAutoUninstall:u.inPath&&u.lifecycle===`managed`,canRun:u.inPath,canSelfUpdate:d.length>0},inspection:{binaryPath:u.binaryPath,installed:u.inPath,installedVersion:u.installedVersion,latestVersion:u.latestVersion,lifecycle:u.lifecycle,sourceLabel:u.inPath?u.sourceLabel:void 0,updateLabel:u.updateLabel}},target:{kind:`agent`,name:l.name}}),c)}function c(e){if(e.error){console.log(o.red(e.error.message));return}if(e.data){console.log(o.bold(`\n${e.data.agent.displayName}\n`)),console.log(` Name: ${e.data.agent.name}`),console.log(` Aliases: ${e.data.agent.aliases.join(`, `)||`-`}`),console.log(` Package: ${e.data.agent.packageName??`-`}`),console.log(` Binary: ${e.data.agent.binaryName}`),console.log(` Installed: ${e.data.inspection.installed?o.green(`Yes`):o.red(`No`)}`),console.log(` Update Mode: ${e.data.inspection.updateLabel}`),console.log(` Self Update: ${e.data.agent.selfUpdateCommands.join(` || `)||`-`}`),e.data.inspection.sourceLabel&&console.log(` Source: ${e.data.inspection.sourceLabel}`),e.data.inspection.installedVersion&&console.log(` Version: ${e.data.inspection.installedVersion}`),e.data.inspection.latestVersion&&console.log(` Latest: ${e.data.inspection.latestVersion}`),e.data.inspection.binaryPath&&console.log(` Path: ${e.data.inspection.binaryPath}`),console.log(o.bold(`
1
+ import{r as e,v as t,y as n}from"./agents-ZNosvpri.mjs";import{a as r,n as i,r as a,t as o}from"./color-BgHjt9pg.mjs";async function s(o){let s=await e(o);if(!s)return r(i({action:`inspect`,error:{code:`AGENT_NOT_FOUND`,details:{input:o},message:`Unknown agent: ${o}`},target:{kind:`agent`,name:o}}),c);let{agent:l,inspection:u}=s,d=l.selfUpdate?[l.selfUpdate.command,...l.selfUpdate.fallbackCommands??[]].map(e=>e.join(` `)):[];return r(a({action:`inspect`,data:{agent:{aliases:l.lookupAliases??[],binaryName:l.binaryName,displayName:l.displayName,installMethods:u.methods.map(e=>({command:t(l,e),label:n(e),type:e.type})),name:l.name,packageName:l.packages?.npm,selfUpdateCommands:d},capabilities:{canAutoInstall:u.methods.length>0,canAutoUninstall:u.inPath&&u.lifecycle===`managed`,canRun:u.inPath,canSelfUpdate:d.length>0},inspection:{binaryPath:u.binaryPath,installed:u.inPath,installedVersion:u.installedVersion,latestVersion:u.latestVersion,lifecycle:u.lifecycle,sourceLabel:u.inPath?u.sourceLabel:void 0,updateLabel:u.updateLabel}},target:{kind:`agent`,name:l.name}}),c)}function c(e){if(e.error){console.log(o.red(e.error.message));return}if(e.data){console.log(o.bold(`\n${e.data.agent.displayName}\n`)),console.log(` Name: ${e.data.agent.name}`),console.log(` Aliases: ${e.data.agent.aliases.join(`, `)||`-`}`),console.log(` Package: ${e.data.agent.packageName??`-`}`),console.log(` Binary: ${e.data.agent.binaryName}`),console.log(` Installed: ${e.data.inspection.installed?o.green(`Yes`):o.red(`No`)}`),console.log(` Update Mode: ${e.data.inspection.updateLabel}`),console.log(` Self Update: ${e.data.agent.selfUpdateCommands.join(` || `)||`-`}`),e.data.inspection.sourceLabel&&console.log(` Source: ${e.data.inspection.sourceLabel}`),e.data.inspection.installedVersion&&console.log(` Version: ${e.data.inspection.installedVersion}`),e.data.inspection.latestVersion&&console.log(` Latest: ${e.data.inspection.latestVersion}`),e.data.inspection.binaryPath&&console.log(` Path: ${e.data.inspection.binaryPath}`),console.log(o.bold(`
2
2
  Capabilities:`)),console.log(` auto-install: ${e.data.capabilities.canAutoInstall?`yes`:`no`}`),console.log(` self-update: ${e.data.capabilities.canSelfUpdate?`yes`:`no`}`),console.log(` auto-uninstall: ${e.data.capabilities.canAutoUninstall?`yes`:`no`}`),console.log(` runnable: ${e.data.capabilities.canRun?`yes`:`no`}`),console.log(o.bold(`
3
3
  Install Methods:`));for(let t of e.data.agent.installMethods)console.log(` ${o.green(`+`)} [${t.label}] ${t.command}`);console.log()}}export{s as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./inspect-DOELzVla.mjs";export{e as inspectCommand};
@@ -1 +1 @@
1
- import{b as e,c as t,r as n,s as r}from"./agents-XljEY0Vt.mjs";import{J as i,a,i as o,n as s,r as c,t as l}from"./color-DPVCVxkr.mjs";import{t as u}from"./lifecycle-errors-D7JpbOsK.mjs";import{a as d,i as f,n as p,r as m}from"./user-output-Bb3bt9ss.mjs";async function h(e){let t=Array.isArray(e)?e:[e];if(t.length<=1)return a(await g(t[0],{emitStartedEvent:!0}),S);o({action:`install`,data:{scope:`batch`},target:{kind:`agent`},type:`started`});let n=[];for(let e of t){let t=v(e,await g(e));n.push(t),o({action:`install`,data:t,target:{kind:`agent`,name:t.agent.name},type:`progress`})}let r={results:n,scope:`batch`,summary:b(n)};return a(n.some(e=>!e.ok)?s({action:`install`,data:r,error:x(n),target:{kind:`agent`}}):c({action:`install`,data:r,target:{kind:`agent`}}),C)}async function g(a,o={}){let l=await n(a);if(!l)return s({action:`install`,error:{code:`AGENT_NOT_FOUND`,details:{input:a},message:`Unknown agent: ${a}`},target:{kind:`agent`,name:a}});let{agent:d,inspection:f}=l;if(f.inPath){if(f.installedState)return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!0},target:{kind:`agent`,name:d.name},warnings:[{code:`ALREADY_INSTALLED`,message:`${d.displayName} is already installed.`}]});let n=e(f.methods,f.resolvedBinaryPath??f.binaryPath);if(n){if(p())return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!0},target:{kind:`agent`,name:d.name},warnings:[{code:`DRY_RUN`,message:`Dry run: would record the existing ${d.displayName} install in Quantex state.`}]});_(d,o.emitStartedEvent);try{let e=await t(d,n);return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!0,installState:{installType:e.installType,packageName:e.packageName},installed:!0},target:{kind:`agent`,name:d.name},warnings:[{code:`TRACKED_EXISTING_INSTALL`,message:`${d.displayName} is already installed. Quantex is now tracking the existing install.`}]})}catch(e){if(i(e))return s({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!0},...u(e,{kind:`agent`,name:d.name})});throw e}}return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!0},target:{kind:`agent`,name:d.name},warnings:[{code:`UNTRACKED_EXISTING_INSTALL`,message:`${d.displayName} is already installed but not tracked by Quantex. Quantex could not safely determine the supported install source, so the existing install remains unmanaged.`}]})}if(p())return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!1},target:{kind:`agent`,name:d.name},warnings:[{code:`DRY_RUN`,message:`Dry run: would install ${d.displayName}.`}]});_(d,o.emitStartedEvent);let m;try{m=await r(d)}catch(e){if(i(e))return s({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!1},...u(e,{kind:`agent`,name:d.name})});throw e}return m.success?c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!0,installState:m.installedState?{installType:m.installedState.installType,packageName:m.installedState.packageName}:void 0,installed:!0},target:{kind:`agent`,name:d.name}}):s({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!1},error:{code:`INSTALL_FAILED`,message:`Failed to install ${d.displayName}.`},target:{kind:`agent`,name:d.name}})}function _(e,t=!1){t&&o({action:`install`,data:{agent:{displayName:e.displayName,name:e.name}},target:{kind:`agent`,name:e.name},type:`started`})}function v(e,t){let n=t.data,r=t.warnings.map(e=>({code:e.code,message:e.message}));return{agent:n?.agent??{displayName:e,name:t.target?.name??e},changed:n?.changed??!1,error:t.error?{code:t.error.code,message:t.error.message}:void 0,input:e,installState:n?.installState,installed:n?.installed??!1,ok:t.ok,status:y(t),warnings:r}}function y(e){return e.ok?e.warnings.some(e=>e.code===`TRACKED_EXISTING_INSTALL`)?`tracked-existing-install`:e.warnings.some(e=>e.code===`UNTRACKED_EXISTING_INSTALL`)?`untracked-existing-install`:e.warnings.some(e=>e.code===`ALREADY_INSTALLED`)?`already-installed`:e.warnings.some(e=>e.code===`DRY_RUN`)?`planned`:`installed`:e.error?.code===`RESOURCE_LOCKED`?`locked`:`failed`}function b(e){let t={alreadyInstalled:0,failed:0,installed:0,locked:0,planned:0,trackedExistingInstall:0,untrackedExistingInstall:0};for(let n of e)switch(n.status){case`already-installed`:t.alreadyInstalled+=1;break;case`failed`:t.failed+=1;break;case`installed`:t.installed+=1;break;case`locked`:t.locked+=1;break;case`planned`:t.planned+=1;break;case`tracked-existing-install`:t.trackedExistingInstall+=1;break;case`untracked-existing-install`:t.untrackedExistingInstall+=1;break}return t}function x(e){let t=e.filter(e=>!e.ok),n=new Set(t.map(e=>e.error?.code));return n.size===1&&n.has(`RESOURCE_LOCKED`)?{code:`RESOURCE_LOCKED`,details:{failedAgents:t.map(e=>e.input)},message:`One or more agents could not be installed because another Quantex process is already using the agent lifecycle lock.`}:{code:`INSTALL_FAILED`,details:{failedAgents:t.map(e=>e.input)},message:`One or more agents failed to install.`}}function S(e){if(e.error){m(l.red(e.error.message));return}if(e.data){if(e.warnings.length>0){for(let t of e.warnings){if(t.code===`TRACKED_EXISTING_INSTALL`){f(l.green(t.message));continue}if(t.code===`DRY_RUN`){d(l.cyan(t.message));continue}d(l.yellow(t.message))}return}f(l.cyan(`Installing ${e.data.agent.displayName}...`)),f(l.green(`${e.data.agent.displayName} installed successfully!`))}}function C(e){if(!e.data){e.error&&m(l.red(e.error.message));return}for(let t of e.data.results)switch(t.status){case`installed`:f(l.cyan(`Installing ${t.agent.displayName}...`)),f(l.green(`${t.agent.displayName} installed successfully!`));break;case`tracked-existing-install`:f(l.green(w(t.warnings,`${t.agent.displayName} is already installed.`)));break;case`already-installed`:case`untracked-existing-install`:d(l.yellow(w(t.warnings,`${t.agent.displayName} is already installed.`)));break;case`planned`:d(l.cyan(w(t.warnings,`Dry run: would install ${t.agent.displayName}.`)));break;case`locked`:d(l.yellow(t.error?.message??`Another quantex process is already installing ${t.agent.displayName}.`));break;case`failed`:m(l.red(t.error?.message??`Failed to install ${t.agent.displayName}.`));break}T(e.data.summary)}function w(e,t){return e[0]?.message??t}function T(e){let t=[e.installed?`installed ${e.installed}`:void 0,e.alreadyInstalled?`already installed ${e.alreadyInstalled}`:void 0,e.trackedExistingInstall?`tracked existing ${e.trackedExistingInstall}`:void 0,e.untrackedExistingInstall?`untracked existing ${e.untrackedExistingInstall}`:void 0,e.failed?`failed ${e.failed}`:void 0,e.locked?`locked ${e.locked}`:void 0,e.planned?`planned ${e.planned}`:void 0].filter(Boolean);t.length>0&&f(l.bold(`Summary: ${t.join(`, `)}`))}export{h as installCommand};
1
+ import{b as e,c as t,r as n,s as r}from"./agents-ZNosvpri.mjs";import{J as i,a,i as o,n as s,r as c,t as l}from"./color-BgHjt9pg.mjs";import{t as u}from"./lifecycle-errors-D7JpbOsK.mjs";import{a as d,i as f,n as p,r as m}from"./user-output-C9oDB7iF.mjs";async function h(e){let t=Array.isArray(e)?e:[e];if(t.length<=1)return a(await g(t[0],{emitStartedEvent:!0}),S);o({action:`install`,data:{scope:`batch`},target:{kind:`agent`},type:`started`});let n=[];for(let e of t){let t=v(e,await g(e));n.push(t),o({action:`install`,data:t,target:{kind:`agent`,name:t.agent.name},type:`progress`})}let r={results:n,scope:`batch`,summary:b(n)};return a(n.some(e=>!e.ok)?s({action:`install`,data:r,error:x(n),target:{kind:`agent`}}):c({action:`install`,data:r,target:{kind:`agent`}}),C)}async function g(a,o={}){let l=await n(a);if(!l)return s({action:`install`,error:{code:`AGENT_NOT_FOUND`,details:{input:a},message:`Unknown agent: ${a}`},target:{kind:`agent`,name:a}});let{agent:d,inspection:f}=l;if(f.inPath){if(f.installedState)return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!0},target:{kind:`agent`,name:d.name},warnings:[{code:`ALREADY_INSTALLED`,message:`${d.displayName} is already installed.`}]});let n=e(f.methods,f.resolvedBinaryPath??f.binaryPath);if(n){if(p())return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!0},target:{kind:`agent`,name:d.name},warnings:[{code:`DRY_RUN`,message:`Dry run: would record the existing ${d.displayName} install in Quantex state.`}]});_(d,o.emitStartedEvent);try{let e=await t(d,n);return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!0,installState:{installType:e.installType,packageName:e.packageName},installed:!0},target:{kind:`agent`,name:d.name},warnings:[{code:`TRACKED_EXISTING_INSTALL`,message:`${d.displayName} is already installed. Quantex is now tracking the existing install.`}]})}catch(e){if(i(e))return s({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!0},...u(e,{kind:`agent`,name:d.name})});throw e}}return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!0},target:{kind:`agent`,name:d.name},warnings:[{code:`UNTRACKED_EXISTING_INSTALL`,message:`${d.displayName} is already installed but not tracked by Quantex. Quantex could not safely determine the supported install source, so the existing install remains unmanaged.`}]})}if(p())return c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!1},target:{kind:`agent`,name:d.name},warnings:[{code:`DRY_RUN`,message:`Dry run: would install ${d.displayName}.`}]});_(d,o.emitStartedEvent);let m;try{m=await r(d)}catch(e){if(i(e))return s({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!1},...u(e,{kind:`agent`,name:d.name})});throw e}return m.success?c({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!0,installState:m.installedState?{installType:m.installedState.installType,packageName:m.installedState.packageName}:void 0,installed:!0},target:{kind:`agent`,name:d.name}}):s({action:`install`,data:{agent:{displayName:d.displayName,name:d.name},changed:!1,installed:!1},error:{code:`INSTALL_FAILED`,message:`Failed to install ${d.displayName}.`},target:{kind:`agent`,name:d.name}})}function _(e,t=!1){t&&o({action:`install`,data:{agent:{displayName:e.displayName,name:e.name}},target:{kind:`agent`,name:e.name},type:`started`})}function v(e,t){let n=t.data,r=t.warnings.map(e=>({code:e.code,message:e.message}));return{agent:n?.agent??{displayName:e,name:t.target?.name??e},changed:n?.changed??!1,error:t.error?{code:t.error.code,message:t.error.message}:void 0,input:e,installState:n?.installState,installed:n?.installed??!1,ok:t.ok,status:y(t),warnings:r}}function y(e){return e.ok?e.warnings.some(e=>e.code===`TRACKED_EXISTING_INSTALL`)?`tracked-existing-install`:e.warnings.some(e=>e.code===`UNTRACKED_EXISTING_INSTALL`)?`untracked-existing-install`:e.warnings.some(e=>e.code===`ALREADY_INSTALLED`)?`already-installed`:e.warnings.some(e=>e.code===`DRY_RUN`)?`planned`:`installed`:e.error?.code===`RESOURCE_LOCKED`?`locked`:`failed`}function b(e){let t={alreadyInstalled:0,failed:0,installed:0,locked:0,planned:0,trackedExistingInstall:0,untrackedExistingInstall:0};for(let n of e)switch(n.status){case`already-installed`:t.alreadyInstalled+=1;break;case`failed`:t.failed+=1;break;case`installed`:t.installed+=1;break;case`locked`:t.locked+=1;break;case`planned`:t.planned+=1;break;case`tracked-existing-install`:t.trackedExistingInstall+=1;break;case`untracked-existing-install`:t.untrackedExistingInstall+=1;break}return t}function x(e){let t=e.filter(e=>!e.ok),n=new Set(t.map(e=>e.error?.code));return n.size===1&&n.has(`RESOURCE_LOCKED`)?{code:`RESOURCE_LOCKED`,details:{failedAgents:t.map(e=>e.input)},message:`One or more agents could not be installed because another Quantex process is already using the agent lifecycle lock.`}:{code:`INSTALL_FAILED`,details:{failedAgents:t.map(e=>e.input)},message:`One or more agents failed to install.`}}function S(e){if(e.error){m(l.red(e.error.message));return}if(e.data){if(e.warnings.length>0){for(let t of e.warnings){if(t.code===`TRACKED_EXISTING_INSTALL`){f(l.green(t.message));continue}if(t.code===`DRY_RUN`){d(l.cyan(t.message));continue}d(l.yellow(t.message))}return}f(l.cyan(`Installing ${e.data.agent.displayName}...`)),f(l.green(`${e.data.agent.displayName} installed successfully!`))}}function C(e){if(!e.data){e.error&&m(l.red(e.error.message));return}for(let t of e.data.results)switch(t.status){case`installed`:f(l.cyan(`Installing ${t.agent.displayName}...`)),f(l.green(`${t.agent.displayName} installed successfully!`));break;case`tracked-existing-install`:f(l.green(w(t.warnings,`${t.agent.displayName} is already installed.`)));break;case`already-installed`:case`untracked-existing-install`:d(l.yellow(w(t.warnings,`${t.agent.displayName} is already installed.`)));break;case`planned`:d(l.cyan(w(t.warnings,`Dry run: would install ${t.agent.displayName}.`)));break;case`locked`:d(l.yellow(t.error?.message??`Another quantex process is already installing ${t.agent.displayName}.`));break;case`failed`:m(l.red(t.error?.message??`Failed to install ${t.agent.displayName}.`));break}T(e.data.summary)}function w(e,t){return e[0]?.message??t}function T(e){let t=[e.installed?`installed ${e.installed}`:void 0,e.alreadyInstalled?`already installed ${e.alreadyInstalled}`:void 0,e.trackedExistingInstall?`tracked existing ${e.trackedExistingInstall}`:void 0,e.untrackedExistingInstall?`untracked existing ${e.untrackedExistingInstall}`:void 0,e.failed?`failed ${e.failed}`:void 0,e.locked?`locked ${e.locked}`:void 0,e.planned?`planned ${e.planned}`:void 0].filter(Boolean);t.length>0&&f(l.bold(`Summary: ${t.join(`, `)}`))}export{h as installCommand};
@@ -1,3 +1,3 @@
1
- import{t as e}from"./agents-XljEY0Vt.mjs";import{a as t,r as n,t as r}from"./color-DPVCVxkr.mjs";async function i(){return t(n({action:`list`,data:{agents:(await e()).map(e=>({binaryName:e.agent.binaryName,displayName:e.agent.displayName,installed:e.inPath,installedVersion:e.installedVersion,latestVersion:e.latestVersion,lifecycle:e.lifecycle,name:e.agent.name,sourceLabel:e.sourceLabel,updateLabel:e.updateLabel}))},target:{kind:`system`,name:`agents`}}),a)}function a(e){console.log(r.bold(`
1
+ import{t as e}from"./agents-ZNosvpri.mjs";import{a as t,r as n,t as r}from"./color-BgHjt9pg.mjs";async function i(){return t(n({action:`list`,data:{agents:(await e()).map(e=>({binaryName:e.agent.binaryName,displayName:e.agent.displayName,installed:e.inPath,installedVersion:e.installedVersion,latestVersion:e.latestVersion,lifecycle:e.lifecycle,name:e.agent.name,sourceLabel:e.sourceLabel,updateLabel:e.updateLabel}))},target:{kind:`system`,name:`agents`}}),a)}function a(e){console.log(r.bold(`
2
2
  AI Agents:
3
3
  `));for(let t of e.data?.agents??[]){let e=t.displayName.padEnd(18),n=t.installed?r.green(`installed`):r.gray(`not installed`),i=t.installed?r.dim(t.installedVersion??`unknown version`):``,a=t.installed?r.cyan(t.updateLabel):``,o=t.installed?r.dim(t.sourceLabel):``;console.log(` ${e} ${n} ${i}${a?` ${a}`:``}${o?` ${o}`:``}`)}console.log()}export{i as listCommand};
@@ -0,0 +1 @@
1
+ import{t as e}from"./resolve-DD2lh-Rl.mjs";export{e as resolveCommand};