quantex-cli 0.19.0 → 0.21.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 (45) hide show
  1. package/README.md +6 -0
  2. package/README.zh-CN.md +4 -0
  3. package/dist/agents-CqX4AmIi.mjs +1 -0
  4. package/dist/capabilities-BV9VnfNY.mjs +1 -0
  5. package/dist/capabilities-D47qKysn.mjs +5 -0
  6. package/dist/cli.mjs +1 -1
  7. package/dist/color-BeRyMqm9.mjs +6 -0
  8. package/dist/commands-BVW6158n.mjs +1 -0
  9. package/dist/{commands-TfkZ40FQ.mjs → commands-CLqO7mwl.mjs} +1 -1
  10. package/dist/config-CvCtt9i2.mjs +3 -0
  11. package/dist/detect-Faj7A-SZ.mjs +1 -0
  12. package/dist/doctor-DDEBruF-.mjs +3 -0
  13. package/dist/ensure-B5pO75qe.mjs +1 -0
  14. package/dist/{ensure-Bsodatwu.mjs → ensure-DaDMUVUq.mjs} +1 -1
  15. package/dist/index.d.mts +75 -43
  16. package/dist/index.mjs +2 -2
  17. package/dist/{info-L1EKkDNs.mjs → info-lrDfz_Pk.mjs} +1 -1
  18. package/dist/{inspect-DOELzVla.mjs → inspect-aHnVkE1y.mjs} +1 -1
  19. package/dist/inspect-zLOD1zF6.mjs +1 -0
  20. package/dist/{install-BA0iWXm3.mjs → install-CnAKrxWy.mjs} +1 -1
  21. package/dist/{list-BzfNq_Hq.mjs → list-BKcqcp8l.mjs} +1 -1
  22. package/dist/{resolve-DD2lh-Rl.mjs → resolve-CVQ-2rK8.mjs} +1 -1
  23. package/dist/resolve-D8P8NNBr.mjs +1 -0
  24. package/dist/schema-B8pc2YX5.mjs +3 -0
  25. package/dist/schema-Byep9Vvi.mjs +1 -0
  26. package/dist/{uninstall-SefKbL8a.mjs → uninstall-BhwW-jdp.mjs} +1 -1
  27. package/dist/{update-BNzZDPvJ.mjs → update-CwQMSQKF.mjs} +1 -1
  28. package/dist/update-DOWtjWx4.mjs +1 -0
  29. package/dist/{upgrade-CVxQ8XFg.mjs → upgrade-LWHTMAQP.mjs} +1 -1
  30. package/dist/{user-output-C9oDB7iF.mjs → user-output-BxHvAzGg.mjs} +1 -1
  31. package/package.json +3 -1
  32. package/dist/agents-ZNosvpri.mjs +0 -1
  33. package/dist/capabilities-CH1g9Wyv.mjs +0 -1
  34. package/dist/capabilities-CKB3soqZ.mjs +0 -5
  35. package/dist/color-BgHjt9pg.mjs +0 -6
  36. package/dist/commands-DW43XU0t.mjs +0 -1
  37. package/dist/config-BviiWqlK.mjs +0 -3
  38. package/dist/detect-Q1nnDcca.mjs +0 -1
  39. package/dist/doctor-C_dl2rTA.mjs +0 -3
  40. package/dist/ensure-C6muP4LG.mjs +0 -1
  41. package/dist/inspect-VWWSSGk4.mjs +0 -1
  42. package/dist/resolve-BbcQHghj.mjs +0 -1
  43. package/dist/schema-CH18r4wk.mjs +0 -1
  44. package/dist/schema-Dh6SqSrc.mjs +0 -3
  45. package/dist/update-Gat4pKeS.mjs +0 -1
package/dist/index.d.mts CHANGED
@@ -2,10 +2,11 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/agents/types.d.ts
4
4
  type Platform = 'windows' | 'macos' | 'linux';
5
- type ManagedInstallType = 'bun' | 'npm' | 'brew' | 'cargo' | 'pip' | 'uv' | 'winget';
5
+ type ManagedInstallType = 'bun' | 'npm' | 'brew' | 'cargo' | 'deno' | 'mise' | 'pip' | 'uv' | 'winget';
6
6
  type InstallType = ManagedInstallType | 'script' | 'binary';
7
7
  type PackageTargetKind = 'package' | 'cask' | 'id';
8
8
  interface BaseInstallMethod {
9
+ binaryName?: string;
9
10
  command?: string;
10
11
  packageInstallArgs?: string[];
11
12
  packageName?: string;
@@ -26,6 +27,8 @@ interface BinaryInstallMethod extends BaseInstallMethod {
26
27
  type InstallMethod = ManagedInstallMethod | ScriptInstallMethod | BinaryInstallMethod;
27
28
  interface AgentPackageMetadata {
28
29
  cargo?: string;
30
+ deno?: string;
31
+ mise?: string;
29
32
  npm?: string;
30
33
  pip?: string;
31
34
  uv?: string;
@@ -51,64 +54,29 @@ interface AgentDefinition {
51
54
  versionProbe?: AgentVersionProbe;
52
55
  }
53
56
  //#endregion
54
- //#region src/agents/definitions/autohand.d.ts
57
+ //#region src/agents/generated/catalog-agents.d.ts
55
58
  declare const autohand: AgentDefinition;
56
- //#endregion
57
- //#region src/agents/definitions/claude.d.ts
58
59
  declare const claude: AgentDefinition;
59
- //#endregion
60
- //#region src/agents/definitions/codebuddy.d.ts
61
60
  declare const codebuddy: AgentDefinition;
62
- //#endregion
63
- //#region src/agents/definitions/codex.d.ts
64
61
  declare const codex: AgentDefinition;
65
- //#endregion
66
- //#region src/agents/definitions/copilot.d.ts
67
62
  declare const copilot: AgentDefinition;
68
- //#endregion
69
- //#region src/agents/definitions/cursor.d.ts
70
63
  declare const cursor: AgentDefinition;
71
- //#endregion
72
- //#region src/agents/definitions/deepseek.d.ts
64
+ declare const deepcode: AgentDefinition;
73
65
  declare const deepseek: AgentDefinition;
74
- //#endregion
75
- //#region src/agents/definitions/devin.d.ts
76
66
  declare const devin: AgentDefinition;
77
- //#endregion
78
- //#region src/agents/definitions/droid.d.ts
79
67
  declare const droid: AgentDefinition;
80
- //#endregion
81
- //#region src/agents/definitions/gemini.d.ts
82
68
  declare const gemini: AgentDefinition;
83
- //#endregion
84
- //#region src/agents/definitions/jcode.d.ts
69
+ declare const genie: AgentDefinition;
85
70
  declare const jcode: AgentDefinition;
86
- //#endregion
87
- //#region src/agents/definitions/junie.d.ts
88
71
  declare const junie: AgentDefinition;
89
- //#endregion
90
- //#region src/agents/definitions/kilo.d.ts
91
72
  declare const kilo: AgentDefinition;
92
- //#endregion
93
- //#region src/agents/definitions/opencode.d.ts
73
+ declare const omp: AgentDefinition;
94
74
  declare const opencode: AgentDefinition;
95
- //#endregion
96
- //#region src/agents/definitions/openhands.d.ts
97
75
  declare const openhands: AgentDefinition;
98
- //#endregion
99
- //#region src/agents/definitions/pi.d.ts
100
76
  declare const pi: AgentDefinition;
101
- //#endregion
102
- //#region src/agents/definitions/qoder.d.ts
103
77
  declare const qoder: AgentDefinition;
104
- //#endregion
105
- //#region src/agents/definitions/reasonix.d.ts
106
78
  declare const reasonix: AgentDefinition;
107
- //#endregion
108
- //#region src/agents/definitions/vibe.d.ts
109
79
  declare const vibe: AgentDefinition;
110
- //#endregion
111
- //#region src/agents/definitions/vtcode.d.ts
112
80
  declare const vtcode: AgentDefinition;
113
81
  //#endregion
114
82
  //#region src/agents/schema.d.ts
@@ -120,6 +88,8 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
120
88
  name: z.ZodString;
121
89
  packages: z.ZodOptional<z.ZodObject<{
122
90
  cargo: z.ZodOptional<z.ZodString>;
91
+ deno: z.ZodOptional<z.ZodString>;
92
+ mise: z.ZodOptional<z.ZodString>;
123
93
  npm: z.ZodOptional<z.ZodString>;
124
94
  pip: z.ZodOptional<z.ZodString>;
125
95
  uv: z.ZodOptional<z.ZodString>;
@@ -131,10 +101,13 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
131
101
  npm: "npm";
132
102
  brew: "brew";
133
103
  cargo: "cargo";
104
+ deno: "deno";
105
+ mise: "mise";
134
106
  pip: "pip";
135
107
  uv: "uv";
136
108
  winget: "winget";
137
109
  }>;
110
+ binaryName: z.ZodOptional<z.ZodString>;
138
111
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
112
  packageName: z.ZodOptional<z.ZodString>;
140
113
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -145,6 +118,7 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
145
118
  }, z.core.$strict>, z.ZodObject<{
146
119
  command: z.ZodString;
147
120
  type: z.ZodLiteral<"script">;
121
+ binaryName: z.ZodOptional<z.ZodString>;
148
122
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
149
123
  packageName: z.ZodOptional<z.ZodString>;
150
124
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -155,6 +129,7 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
155
129
  }, z.core.$strict>, z.ZodObject<{
156
130
  command: z.ZodString;
157
131
  type: z.ZodLiteral<"binary">;
132
+ binaryName: z.ZodOptional<z.ZodString>;
158
133
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
159
134
  packageName: z.ZodOptional<z.ZodString>;
160
135
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -169,10 +144,13 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
169
144
  npm: "npm";
170
145
  brew: "brew";
171
146
  cargo: "cargo";
147
+ deno: "deno";
148
+ mise: "mise";
172
149
  pip: "pip";
173
150
  uv: "uv";
174
151
  winget: "winget";
175
152
  }>;
153
+ binaryName: z.ZodOptional<z.ZodString>;
176
154
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
177
155
  packageName: z.ZodOptional<z.ZodString>;
178
156
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -183,6 +161,7 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
183
161
  }, z.core.$strict>, z.ZodObject<{
184
162
  command: z.ZodString;
185
163
  type: z.ZodLiteral<"script">;
164
+ binaryName: z.ZodOptional<z.ZodString>;
186
165
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
187
166
  packageName: z.ZodOptional<z.ZodString>;
188
167
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -193,6 +172,7 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
193
172
  }, z.core.$strict>, z.ZodObject<{
194
173
  command: z.ZodString;
195
174
  type: z.ZodLiteral<"binary">;
175
+ binaryName: z.ZodOptional<z.ZodString>;
196
176
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
197
177
  packageName: z.ZodOptional<z.ZodString>;
198
178
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -207,10 +187,13 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
207
187
  npm: "npm";
208
188
  brew: "brew";
209
189
  cargo: "cargo";
190
+ deno: "deno";
191
+ mise: "mise";
210
192
  pip: "pip";
211
193
  uv: "uv";
212
194
  winget: "winget";
213
195
  }>;
196
+ binaryName: z.ZodOptional<z.ZodString>;
214
197
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
215
198
  packageName: z.ZodOptional<z.ZodString>;
216
199
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -221,6 +204,7 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
221
204
  }, z.core.$strict>, z.ZodObject<{
222
205
  command: z.ZodString;
223
206
  type: z.ZodLiteral<"script">;
207
+ binaryName: z.ZodOptional<z.ZodString>;
224
208
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
209
  packageName: z.ZodOptional<z.ZodString>;
226
210
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -231,6 +215,7 @@ declare const agentCatalogEntrySchema: z.ZodObject<{
231
215
  }, z.core.$strict>, z.ZodObject<{
232
216
  command: z.ZodString;
233
217
  type: z.ZodLiteral<"binary">;
218
+ binaryName: z.ZodOptional<z.ZodString>;
234
219
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
235
220
  packageName: z.ZodOptional<z.ZodString>;
236
221
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -260,6 +245,8 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
260
245
  name: z.ZodString;
261
246
  packages: z.ZodOptional<z.ZodObject<{
262
247
  cargo: z.ZodOptional<z.ZodString>;
248
+ deno: z.ZodOptional<z.ZodString>;
249
+ mise: z.ZodOptional<z.ZodString>;
263
250
  npm: z.ZodOptional<z.ZodString>;
264
251
  pip: z.ZodOptional<z.ZodString>;
265
252
  uv: z.ZodOptional<z.ZodString>;
@@ -271,10 +258,13 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
271
258
  npm: "npm";
272
259
  brew: "brew";
273
260
  cargo: "cargo";
261
+ deno: "deno";
262
+ mise: "mise";
274
263
  pip: "pip";
275
264
  uv: "uv";
276
265
  winget: "winget";
277
266
  }>;
267
+ binaryName: z.ZodOptional<z.ZodString>;
278
268
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
269
  packageName: z.ZodOptional<z.ZodString>;
280
270
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -285,6 +275,7 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
285
275
  }, z.core.$strict>, z.ZodObject<{
286
276
  command: z.ZodString;
287
277
  type: z.ZodLiteral<"script">;
278
+ binaryName: z.ZodOptional<z.ZodString>;
288
279
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
289
280
  packageName: z.ZodOptional<z.ZodString>;
290
281
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -295,6 +286,7 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
295
286
  }, z.core.$strict>, z.ZodObject<{
296
287
  command: z.ZodString;
297
288
  type: z.ZodLiteral<"binary">;
289
+ binaryName: z.ZodOptional<z.ZodString>;
298
290
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
299
291
  packageName: z.ZodOptional<z.ZodString>;
300
292
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -309,10 +301,13 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
309
301
  npm: "npm";
310
302
  brew: "brew";
311
303
  cargo: "cargo";
304
+ deno: "deno";
305
+ mise: "mise";
312
306
  pip: "pip";
313
307
  uv: "uv";
314
308
  winget: "winget";
315
309
  }>;
310
+ binaryName: z.ZodOptional<z.ZodString>;
316
311
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
317
312
  packageName: z.ZodOptional<z.ZodString>;
318
313
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -323,6 +318,7 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
323
318
  }, z.core.$strict>, z.ZodObject<{
324
319
  command: z.ZodString;
325
320
  type: z.ZodLiteral<"script">;
321
+ binaryName: z.ZodOptional<z.ZodString>;
326
322
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
327
323
  packageName: z.ZodOptional<z.ZodString>;
328
324
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -333,6 +329,7 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
333
329
  }, z.core.$strict>, z.ZodObject<{
334
330
  command: z.ZodString;
335
331
  type: z.ZodLiteral<"binary">;
332
+ binaryName: z.ZodOptional<z.ZodString>;
336
333
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
337
334
  packageName: z.ZodOptional<z.ZodString>;
338
335
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -347,10 +344,13 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
347
344
  npm: "npm";
348
345
  brew: "brew";
349
346
  cargo: "cargo";
347
+ deno: "deno";
348
+ mise: "mise";
350
349
  pip: "pip";
351
350
  uv: "uv";
352
351
  winget: "winget";
353
352
  }>;
353
+ binaryName: z.ZodOptional<z.ZodString>;
354
354
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
355
  packageName: z.ZodOptional<z.ZodString>;
356
356
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -361,6 +361,7 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
361
361
  }, z.core.$strict>, z.ZodObject<{
362
362
  command: z.ZodString;
363
363
  type: z.ZodLiteral<"script">;
364
+ binaryName: z.ZodOptional<z.ZodString>;
364
365
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
365
366
  packageName: z.ZodOptional<z.ZodString>;
366
367
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -371,6 +372,7 @@ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
371
372
  }, z.core.$strict>, z.ZodObject<{
372
373
  command: z.ZodString;
373
374
  type: z.ZodLiteral<"binary">;
375
+ binaryName: z.ZodOptional<z.ZodString>;
374
376
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
375
377
  packageName: z.ZodOptional<z.ZodString>;
376
378
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -405,6 +407,8 @@ declare const agentCatalogJsonSchema: {
405
407
  name: z.ZodString;
406
408
  packages: z.ZodOptional<z.ZodObject<{
407
409
  cargo: z.ZodOptional<z.ZodString>;
410
+ deno: z.ZodOptional<z.ZodString>;
411
+ mise: z.ZodOptional<z.ZodString>;
408
412
  npm: z.ZodOptional<z.ZodString>;
409
413
  pip: z.ZodOptional<z.ZodString>;
410
414
  uv: z.ZodOptional<z.ZodString>;
@@ -416,10 +420,13 @@ declare const agentCatalogJsonSchema: {
416
420
  npm: "npm";
417
421
  brew: "brew";
418
422
  cargo: "cargo";
423
+ deno: "deno";
424
+ mise: "mise";
419
425
  pip: "pip";
420
426
  uv: "uv";
421
427
  winget: "winget";
422
428
  }>;
429
+ binaryName: z.ZodOptional<z.ZodString>;
423
430
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
424
431
  packageName: z.ZodOptional<z.ZodString>;
425
432
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -430,6 +437,7 @@ declare const agentCatalogJsonSchema: {
430
437
  }, z.core.$strict>, z.ZodObject<{
431
438
  command: z.ZodString;
432
439
  type: z.ZodLiteral<"script">;
440
+ binaryName: z.ZodOptional<z.ZodString>;
433
441
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
434
442
  packageName: z.ZodOptional<z.ZodString>;
435
443
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -440,6 +448,7 @@ declare const agentCatalogJsonSchema: {
440
448
  }, z.core.$strict>, z.ZodObject<{
441
449
  command: z.ZodString;
442
450
  type: z.ZodLiteral<"binary">;
451
+ binaryName: z.ZodOptional<z.ZodString>;
443
452
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
444
453
  packageName: z.ZodOptional<z.ZodString>;
445
454
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -454,10 +463,13 @@ declare const agentCatalogJsonSchema: {
454
463
  npm: "npm";
455
464
  brew: "brew";
456
465
  cargo: "cargo";
466
+ deno: "deno";
467
+ mise: "mise";
457
468
  pip: "pip";
458
469
  uv: "uv";
459
470
  winget: "winget";
460
471
  }>;
472
+ binaryName: z.ZodOptional<z.ZodString>;
461
473
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
462
474
  packageName: z.ZodOptional<z.ZodString>;
463
475
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -468,6 +480,7 @@ declare const agentCatalogJsonSchema: {
468
480
  }, z.core.$strict>, z.ZodObject<{
469
481
  command: z.ZodString;
470
482
  type: z.ZodLiteral<"script">;
483
+ binaryName: z.ZodOptional<z.ZodString>;
471
484
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
472
485
  packageName: z.ZodOptional<z.ZodString>;
473
486
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -478,6 +491,7 @@ declare const agentCatalogJsonSchema: {
478
491
  }, z.core.$strict>, z.ZodObject<{
479
492
  command: z.ZodString;
480
493
  type: z.ZodLiteral<"binary">;
494
+ binaryName: z.ZodOptional<z.ZodString>;
481
495
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
482
496
  packageName: z.ZodOptional<z.ZodString>;
483
497
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -492,10 +506,13 @@ declare const agentCatalogJsonSchema: {
492
506
  npm: "npm";
493
507
  brew: "brew";
494
508
  cargo: "cargo";
509
+ deno: "deno";
510
+ mise: "mise";
495
511
  pip: "pip";
496
512
  uv: "uv";
497
513
  winget: "winget";
498
514
  }>;
515
+ binaryName: z.ZodOptional<z.ZodString>;
499
516
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
500
517
  packageName: z.ZodOptional<z.ZodString>;
501
518
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -506,6 +523,7 @@ declare const agentCatalogJsonSchema: {
506
523
  }, z.core.$strict>, z.ZodObject<{
507
524
  command: z.ZodString;
508
525
  type: z.ZodLiteral<"script">;
526
+ binaryName: z.ZodOptional<z.ZodString>;
509
527
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
510
528
  packageName: z.ZodOptional<z.ZodString>;
511
529
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -516,6 +534,7 @@ declare const agentCatalogJsonSchema: {
516
534
  }, z.core.$strict>, z.ZodObject<{
517
535
  command: z.ZodString;
518
536
  type: z.ZodLiteral<"binary">;
537
+ binaryName: z.ZodOptional<z.ZodString>;
519
538
  packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
539
  packageName: z.ZodOptional<z.ZodString>;
521
540
  packageTargetKind: z.ZodOptional<z.ZodEnum<{
@@ -676,6 +695,7 @@ interface SelfUpgradePlan {
676
695
  //#region src/state/index.d.ts
677
696
  interface InstalledAgentState {
678
697
  agentName: string;
698
+ binaryName?: string;
679
699
  installType: InstallType;
680
700
  packageInstallArgs?: string[];
681
701
  packageName?: string;
@@ -845,6 +865,14 @@ interface CapabilitiesData {
845
865
  available: boolean;
846
866
  reason?: string;
847
867
  };
868
+ deno: {
869
+ available: boolean;
870
+ reason?: string;
871
+ };
872
+ mise: {
873
+ available: boolean;
874
+ reason?: string;
875
+ };
848
876
  npm: {
849
877
  available: boolean;
850
878
  reason?: string;
@@ -991,9 +1019,10 @@ declare function schemaCommand(commandName?: string): Promise<CommandResult<Sche
991
1019
  declare function getSchemaCatalog(): SchemaDocument[];
992
1020
  //#endregion
993
1021
  //#region src/config/index.d.ts
1022
+ type DefaultPackageManager = 'bun' | 'mise' | 'npm';
994
1023
  type NpmBunUpdateStrategy = 'latest-major' | 'respect-semver';
995
1024
  interface QuantexConfig {
996
- defaultPackageManager: 'bun' | 'npm';
1025
+ defaultPackageManager: DefaultPackageManager;
997
1026
  networkRetries: number;
998
1027
  networkTimeoutMs: number;
999
1028
  npmBunUpdateStrategy: NpmBunUpdateStrategy;
@@ -1045,11 +1074,13 @@ declare function emitCommandResult<T>(result: CommandResult<T>, renderHuman: Hum
1045
1074
  //#endregion
1046
1075
  //#region src/package-manager/installers.d.ts
1047
1076
  interface ManagedPackageSpec {
1077
+ binaryName?: string;
1048
1078
  packageInstallArgs?: string[];
1049
1079
  packageName: string;
1050
1080
  packageTargetKind?: PackageTargetKind;
1051
1081
  }
1052
1082
  interface ManagedInstallerUpdateOptions {
1083
+ binaryName?: string;
1053
1084
  npmBunUpdateStrategy?: NpmBunUpdateStrategy;
1054
1085
  packageInstallArgs?: string[];
1055
1086
  }
@@ -1058,7 +1089,7 @@ interface ManagedInstaller {
1058
1089
  getInstalledVersion?: (packageName: string, packageTargetKind?: PackageTargetKind) => Promise<string | undefined>;
1059
1090
  isAvailable: () => Promise<boolean>;
1060
1091
  install: (packageName: string, packageTargetKind?: PackageTargetKind, packageInstallArgs?: string[]) => Promise<boolean>;
1061
- uninstall: (packageName: string, packageTargetKind?: PackageTargetKind) => Promise<boolean>;
1092
+ uninstall: (packageName: string, packageTargetKind?: PackageTargetKind, options?: ManagedInstallerUpdateOptions) => Promise<boolean>;
1062
1093
  update: (packageName: string, packageTargetKind?: PackageTargetKind, options?: ManagedInstallerUpdateOptions) => Promise<boolean>;
1063
1094
  updateMany: (packages: ManagedPackageSpec[], options?: ManagedInstallerUpdateOptions) => Promise<boolean>;
1064
1095
  }
@@ -1204,6 +1235,7 @@ declare function planAgentUpdates(): Promise<PlannedAgentUpdates>;
1204
1235
  declare function getPlatform(): Platform;
1205
1236
  declare function isBunAvailable(): Promise<boolean>;
1206
1237
  declare function isNpmAvailable(): Promise<boolean>;
1238
+ declare function isDenoAvailable(): Promise<boolean>;
1207
1239
  declare function isBinaryInPath(binaryName: string): Promise<boolean>;
1208
1240
  //#endregion
1209
1241
  //#region src/utils/exec.d.ts
@@ -1219,4 +1251,4 @@ declare function getLatestVersion(packageName: string, distTag?: string, options
1219
1251
  }): Promise<string | undefined>;
1220
1252
  declare function getBinaryPath(binaryName: string): Promise<string | undefined>;
1221
1253
  //#endregion
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 };
1254
+ 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, deepcode, deepseek, detectSelfInstallSource, devin, droid, emitCommandResult, ensureCommand, execCommand, formatChecksums, gemini, genie, 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, isDenoAvailable, isInspectionUpdateAvailable, isManagedInstallType, isNpmAvailable, jcode, junie, kilo, loadConfig, loadState, normalizeRepositoryUrl, omp, 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 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
+ 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-CqX4AmIi.mjs";import{A as v,B as y,C as b,D as x,E as S,F as C,H as w,I as T,L as E,M as D,N as O,O as k,P as A,R as j,S as M,T as N,V as P,_ as F,b as I,c as L,f as R,g as z,h as B,i as V,j as H,k as U,m as W,n as G,o as K,p as q,t as J,v as Y,w as ae,x as oe,y as se,z as ce}from"./detect-Faj7A-SZ.mjs";import{A as le,B as ue,C as de,D as fe,E as pe,F as me,G as he,I as ge,K as _e,M as ve,N as ye,O as be,P as xe,R as Se,T as Ce,X as we,Z as Te,a as Ee,at as De,c as Oe,ct as ke,et as Ae,j as je,k as Me,l as Ne,n as Pe,o as Fe,ot as Ie,r as Le,s as Re,st as ze,tt as Be,u as Ve,w as He,z as Ue}from"./color-BeRyMqm9.mjs";import{t as We}from"./capabilities-D47qKysn.mjs";import{t as Ge}from"./commands-CLqO7mwl.mjs";import{t as Ke}from"./ensure-DaDMUVUq.mjs";import{t as qe}from"./inspect-aHnVkE1y.mjs";import{t as Je}from"./resolve-CVQ-2rK8.mjs";import{n as Ye,t as Xe}from"./schema-B8pc2YX5.mjs";import{n as Ze,t as X}from"./errors-DCtNasuC.mjs";import{a as Qe,i as $e,n as et,t as tt}from"./update-DOWtjWx4.mjs";const nt=[`quantex-darwin-arm64`,`quantex-darwin-x64`,`quantex-linux-arm64`,`quantex-linux-x64`,`quantex-windows-x64.exe`];function rt(e){return`${e.sort((e,t)=>e.name.localeCompare(t.name)).map(e=>`${e.checksum} ${e.name}`).join(`
2
+ `)}\n`}function it(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 at(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 ot(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 nt)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 st(e,t){try{let n=await _e(he([e,...t]));return{success:n===0,exitCode:n}}catch{return{success:!1,exitCode:1}}}export{y as agentCatalogEntrySchema,P as agentCatalogJsonSchema,w as agentCatalogSchema,f as agentUpdateProviders,B as autohand,de as canAutoUpdateSelf,a as canLookupLatestVersionForInstallType,l as canResolveAgentUpdate,n as canUninstallInstallType,_ as canUpdateInstallType,We as capabilitiesCommand,z as claude,F as codebuddy,Y as codex,Ge as commandsCommand,se as copilot,Pe as createErrorResult,at as createReleaseManifest,Le as createSuccessResult,$e as createUpdatePlan,I as cursor,oe as deepcode,M as deepseek,He as detectSelfInstallSource,b as devin,ae as droid,Ee as emitCommandResult,Ke as ensureCommand,st as execCommand,rt as formatChecksums,N as gemini,S as genie,R as getAgentByLookupName,q as getAgentByNameOrAlias,t as getAgentUpdateFailureHint,o as getAgentUpdateStrategy,W as getAllAgents,Se as getBinaryPath,pe as getBinaryReleaseAssetName,fe as getBinaryReleaseDownloadUrl,j as getCatalogAgent,ce as getCatalogAgents,De as getCliContext,we as getConfigDir,Te as getConfigFilePath,X as getExitCodeForError,Ze as getExitCodeForResult,ee as getInstallLifecycle,be as getInstalledAgentState,Ue as getInstalledVersion,i as getInstallerCapabilities,ue as getLatestVersion,re as getManagedInstaller,e as getManualAgentUpdateMessage,Fe as getManualSelfUpgradeCommand,d as getOrderedInstallMethods,J as getPlatform,Xe as getSchemaCatalog,Me as getSelfState,Ne as getSelfUpgradeRecoveryHint,Ve as getSelfUpgradeRecoveryHintForInspection,Ce as getSelfVersion,tt as getSingleAgentUpdateStatus,le as getStateFilePath,s as inspectAgent,te as inspectAllAgents,qe as inspectCommand,h as inspectRegisteredAgents,Re as inspectSelf,m as installAgent,G as isBinaryInPath,V as isBunAvailable,K as isDenoAvailable,Qe as isInspectionUpdateAvailable,r as isManagedInstallType,L as isNpmAvailable,x as jcode,k as junie,U as kilo,Ae as loadConfig,je as loadState,Q as normalizeRepositoryUrl,v as omp,H as opencode,D as openhands,Z as parseBinaryTarget,it as parseChecksums,O as pi,et as planAgentUpdates,A as qoder,C as reasonix,ve as removeInstalledAgentState,Ie as resetCliContext,u as resolveAgent,p as resolveAgentInspection,ie as resolveAgentUpdateProvider,ze as resolveCliContext,Je as resolveCommand,$ as resolveReleaseChannel,Be as saveConfig,ye as saveState,Ye as schemaCommand,ke as setCliContext,xe as setInstalledAgentState,me as setSelfInstallSource,ge as setSelfUpdateNoticeState,c as uninstallAgent,g as updateAgent,ne as updateAgentsByType,Oe as upgradeSelf,ot as validateReleaseManifest,T as vibe,E as vtcode};
@@ -1,2 +1,2 @@
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(`
1
+ import{r as e,v as t,y as n}from"./agents-CqX4AmIi.mjs";import{a as r,n as i,r as a,t as o}from"./color-BeRyMqm9.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-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(`
1
+ import{r as e,v as t,y as n}from"./agents-CqX4AmIi.mjs";import{a as r,n as i,r as a,t as o}from"./color-BeRyMqm9.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-aHnVkE1y.mjs";export{e as inspectCommand};
@@ -1 +1 @@
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
+ import{b as e,c as t,r as n,s as r}from"./agents-CqX4AmIi.mjs";import{J as i,a,i as o,n as s,r as c,t as l}from"./color-BeRyMqm9.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-BxHvAzGg.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-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(`
1
+ import{t as e}from"./agents-CqX4AmIi.mjs";import{a as t,r as n,t as r}from"./color-BeRyMqm9.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};
@@ -1 +1 @@
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:`resolve`,error:{code:`AGENT_NOT_FOUND`,details:{input:o},message:`Unknown agent: ${o}`},target:{kind:`agent`,name:o}}),c);let{agent:l,inspection:u}=s;if(!u.inPath||!u.binaryPath){let e=u.methods.map(e=>({command:t(l,e),label:n(e),type:e.type})).filter(e=>e.command);return r(i({action:`resolve`,data:{agent:{binaryName:l.binaryName,displayName:l.displayName,name:l.name},resolution:{binaryPath:``,installGuidance:{docsRef:`skills/quantex-cli/references/command-recipes.md`,installMethods:e,suggestedAction:`ensure-agent-installed`,suggestedEnsureCommand:`quantex ensure ${l.name}`},installed:!1,installSource:`not-installed`,lifecycle:`unmanaged`,sourceLabel:`not installed`,suggestedLaunchCommand:[]}},error:{code:`AGENT_NOT_INSTALLED`,details:{docsRef:`skills/quantex-cli/references/command-recipes.md`,installMethods:e,suggestedAction:`ensure-agent-installed`,suggestedEnsureCommand:`quantex ensure ${l.name}`},message:`${l.displayName} is not installed.`},target:{kind:`agent`,name:l.name}}),c)}return r(a({action:`resolve`,data:{agent:{binaryName:l.binaryName,displayName:l.displayName,name:l.name},resolution:{binaryPath:u.binaryPath,installed:!0,installSource:u.installedState?.installType??`detected-in-path`,installedVersion:u.installedVersion,lifecycle:u.lifecycle,sourceLabel:u.sourceLabel,suggestedLaunchCommand:[u.binaryPath]}},target:{kind:`agent`,name:l.name}}),c)}function c(e){if(e.error){console.log(o.red(e.error.message));let t=e.data?.resolution.installGuidance;if(t){console.log(o.dim(`Try: ${t.suggestedEnsureCommand}`));for(let e of t.installMethods)console.log(o.dim(`Install: [${e.label}] ${e.command}`))}return}e.data&&(console.log(o.bold(`\n${e.data.agent.displayName}\n`)),console.log(` Name: ${e.data.agent.name}`),console.log(` Binary: ${e.data.agent.binaryName}`),console.log(` Path: ${e.data.resolution.binaryPath}`),console.log(` Source: ${e.data.resolution.sourceLabel}`),console.log(` Lifecycle: ${e.data.resolution.lifecycle}`),console.log(` Install Type: ${e.data.resolution.installSource}`),e.data.resolution.installedVersion&&console.log(` Version: ${e.data.resolution.installedVersion}`),console.log(` Launch: ${e.data.resolution.suggestedLaunchCommand.join(` `)}`),console.log())}export{s as t};
1
+ import{r as e,v as t,y as n}from"./agents-CqX4AmIi.mjs";import{a as r,n as i,r as a,t as o}from"./color-BeRyMqm9.mjs";async function s(o){let s=await e(o);if(!s)return r(i({action:`resolve`,error:{code:`AGENT_NOT_FOUND`,details:{input:o},message:`Unknown agent: ${o}`},target:{kind:`agent`,name:o}}),c);let{agent:l,inspection:u}=s;if(!u.inPath||!u.binaryPath){let e=u.methods.map(e=>({command:t(l,e),label:n(e),type:e.type})).filter(e=>e.command);return r(i({action:`resolve`,data:{agent:{binaryName:l.binaryName,displayName:l.displayName,name:l.name},resolution:{binaryPath:``,installGuidance:{docsRef:`skills/quantex-cli/references/command-recipes.md`,installMethods:e,suggestedAction:`ensure-agent-installed`,suggestedEnsureCommand:`quantex ensure ${l.name}`},installed:!1,installSource:`not-installed`,lifecycle:`unmanaged`,sourceLabel:`not installed`,suggestedLaunchCommand:[]}},error:{code:`AGENT_NOT_INSTALLED`,details:{docsRef:`skills/quantex-cli/references/command-recipes.md`,installMethods:e,suggestedAction:`ensure-agent-installed`,suggestedEnsureCommand:`quantex ensure ${l.name}`},message:`${l.displayName} is not installed.`},target:{kind:`agent`,name:l.name}}),c)}return r(a({action:`resolve`,data:{agent:{binaryName:l.binaryName,displayName:l.displayName,name:l.name},resolution:{binaryPath:u.binaryPath,installed:!0,installSource:u.installedState?.installType??`detected-in-path`,installedVersion:u.installedVersion,lifecycle:u.lifecycle,sourceLabel:u.sourceLabel,suggestedLaunchCommand:[u.binaryPath]}},target:{kind:`agent`,name:l.name}}),c)}function c(e){if(e.error){console.log(o.red(e.error.message));let t=e.data?.resolution.installGuidance;if(t){console.log(o.dim(`Try: ${t.suggestedEnsureCommand}`));for(let e of t.installMethods)console.log(o.dim(`Install: [${e.label}] ${e.command}`))}return}e.data&&(console.log(o.bold(`\n${e.data.agent.displayName}\n`)),console.log(` Name: ${e.data.agent.name}`),console.log(` Binary: ${e.data.agent.binaryName}`),console.log(` Path: ${e.data.resolution.binaryPath}`),console.log(` Source: ${e.data.resolution.sourceLabel}`),console.log(` Lifecycle: ${e.data.resolution.lifecycle}`),console.log(` Install Type: ${e.data.resolution.installSource}`),e.data.resolution.installedVersion&&console.log(` Version: ${e.data.resolution.installedVersion}`),console.log(` Launch: ${e.data.resolution.suggestedLaunchCommand.join(` `)}`),console.log())}export{s as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./resolve-CVQ-2rK8.mjs";export{e as resolveCommand};
@@ -0,0 +1,3 @@
1
+ import{a as e,n as t,r as n,t as r}from"./color-BeRyMqm9.mjs";const i={additionalProperties:!1,properties:{action:{type:`string`},data:{type:`object`},error:{additionalProperties:!1,properties:{code:{type:`string`},message:{type:`string`}},required:[`code`,`message`],type:`object`},exitCode:{type:`integer`},meta:{additionalProperties:!1,properties:{mode:{type:`string`},runId:{type:`string`},schemaVersion:{type:`string`},source:{type:`string`},fetchedAt:{type:`string`},staleAfter:{type:`string`},timestamp:{type:`string`},version:{type:`string`}},required:[`mode`,`runId`,`schemaVersion`,`timestamp`,`version`],type:`object`},ok:{type:`boolean`},target:{additionalProperties:!1,properties:{kind:{type:`string`},name:{type:`string`}},required:[`kind`],type:`object`},warnings:{items:{additionalProperties:!1,properties:{code:{type:`string`},message:{type:`string`}},required:[`code`,`message`],type:`object`},type:`array`}},required:[`action`,`error`,`meta`,`ok`,`warnings`],type:`object`},a={additionalProperties:!1,properties:{action:{type:`string`},data:{type:`object`},meta:{additionalProperties:!1,properties:{mode:{type:`string`},runId:{type:`string`},schemaVersion:{type:`string`},source:{type:`string`},fetchedAt:{type:`string`},staleAfter:{type:`string`},timestamp:{type:`string`},version:{type:`string`}},required:[`mode`,`runId`,`schemaVersion`,`timestamp`,`version`],type:`object`},target:{additionalProperties:!1,properties:{kind:{type:`string`},name:{type:`string`}},required:[`kind`],type:`object`},type:{type:`string`}},required:[`action`,`meta`,`type`],type:`object`},o={additionalProperties:!1,properties:{available:{type:`boolean`},reason:{type:`string`}},required:[`available`],type:`object`},s={brew:o,bun:o,cargo:o,deno:o,mise:o,npm:o,pip:o,uv:o,winget:o},c=[`brew`,`bun`,`cargo`,`deno`,`mise`,`npm`,`pip`,`uv`,`winget`],l=[{dataSchema:{additionalProperties:!1,properties:{agents:{items:{type:`string`},type:`array`},features:{additionalProperties:!1,properties:{assumeYes:{type:`boolean`},cacheBypass:{type:`boolean`},cacheRefresh:{type:`boolean`},channels:{items:{type:`string`},type:`array`},colorModes:{items:{type:`string`},type:`array`},dryRun:{type:`boolean`},execInstallPolicies:{items:{type:`string`},type:`array`},freshnessMetadata:{type:`boolean`},idempotencyKey:{type:`boolean`},logLevels:{items:{type:`string`},type:`array`},quietLogs:{type:`boolean`},selfUpgrade:{type:`boolean`},timeout:{type:`boolean`}},required:[`assumeYes`,`cacheBypass`,`cacheRefresh`,`channels`,`colorModes`,`dryRun`,`execInstallPolicies`,`freshnessMetadata`,`idempotencyKey`,`logLevels`,`quietLogs`,`selfUpgrade`,`timeout`],type:`object`},installers:{additionalProperties:!1,properties:s,required:c,type:`object`},outputModes:{items:{type:`string`},type:`array`},platform:{additionalProperties:!1,properties:{arch:{type:`string`},os:{type:`string`}},required:[`arch`,`os`],type:`object`}},required:[`agents`,`features`,`installers`,`outputModes`,`platform`],type:`object`},description:`Environment and surface capabilities`,envelopeSchema:i,name:`capabilities`,ndjsonEventSchema:a},{dataSchema:{additionalProperties:!1,properties:{commands:{items:{additionalProperties:!1,properties:{flags:{items:{type:`string`},type:`array`},name:{type:`string`},outputSchemaRef:{type:`string`},stability:{type:`string`},summary:{type:`string`}},required:[`flags`,`name`,`outputSchemaRef`,`stability`,`summary`],type:`object`},type:`array`}},required:[`commands`],type:`object`},description:`Stable command catalog`,envelopeSchema:i,name:`commands`,ndjsonEventSchema:a},{dataSchema:{additionalProperties:!1,properties:{agents:{items:{additionalProperties:!1,properties:{displayName:{type:`string`},installedVersion:{type:`string`},latestVersion:{type:`string`},lifecycle:{type:`string`},outdated:{type:`boolean`},sourceLabel:{type:`string`}},required:[`displayName`,`lifecycle`,`outdated`,`sourceLabel`],type:`object`},type:`array`},installers:{additionalProperties:!1,properties:{brew:{type:`boolean`},bun:{type:`boolean`},cargo:{type:`boolean`},deno:{type:`boolean`},mise:{type:`boolean`},npm:{type:`boolean`},pip:{type:`boolean`},uv:{type:`boolean`},winget:{type:`boolean`}},required:c,type:`object`},issues:{items:{additionalProperties:!1,properties:{blocking:{type:`boolean`},category:{type:`string`},code:{type:`string`},docsRef:{type:`string`},message:{type:`string`},severity:{type:`string`},subject:{additionalProperties:!1,properties:{kind:{type:`string`},name:{type:`string`}},required:[`kind`],type:`object`},suggestedAction:{type:`string`},suggestedCommands:{items:{type:`string`},type:`array`}},required:[`blocking`,`category`,`code`,`message`,`severity`,`subject`,`suggestedAction`,`suggestedCommands`],type:`object`},type:`array`},self:{additionalProperties:!1,properties:{canAutoUpdate:{type:`boolean`},currentVersion:{type:`string`},installSource:{type:`string`},latestVersion:{type:`string`},outdated:{type:`boolean`},recoveryHint:{type:`string`}},required:[`canAutoUpdate`,`currentVersion`,`installSource`,`outdated`],type:`object`}},required:[`agents`,`installers`,`issues`,`self`],type:`object`},description:`Diagnostic state and remediation guidance for the current environment`,envelopeSchema:i,name:`doctor`,ndjsonEventSchema:a},{dataSchema:{additionalProperties:!1,properties:{agent:{additionalProperties:!1,properties:{binaryName:{type:`string`},displayName:{type:`string`},name:{type:`string`}},required:[`name`],type:`object`},execution:{additionalProperties:!1,properties:{args:{items:{type:`string`},type:`array`},installGuidance:{additionalProperties:!1,properties:{docsRef:{type:`string`},installMethods:{items:{additionalProperties:!1,properties:{command:{type:`string`},label:{type:`string`},type:{type:`string`}},required:[`command`,`label`,`type`],type:`object`},type:`array`},suggestedAction:{type:`string`},suggestedEnsureCommand:{type:`string`},suggestedExecCommand:{type:`string`}},required:[`docsRef`,`installMethods`,`suggestedAction`,`suggestedEnsureCommand`,`suggestedExecCommand`],type:`object`},installPolicy:{type:`string`},installed:{type:`boolean`},interactive:{type:`boolean`},launched:{type:`boolean`}},required:[`args`,`installPolicy`,`installed`,`interactive`,`launched`],type:`object`}},required:[`agent`,`execution`],type:`object`},description:`Preflight contract for managed agent execution`,envelopeSchema:i,name:`exec`,ndjsonEventSchema:a},{dataSchema:{additionalProperties:!1,properties:{agent:{type:`object`},changed:{type:`boolean`},installState:{type:`object`},installed:{type:`boolean`},results:{items:{additionalProperties:!1,properties:{agent:{type:`object`},changed:{type:`boolean`},error:{type:`object`},input:{type:`string`},installState:{type:`object`},installed:{type:`boolean`},ok:{type:`boolean`},status:{type:`string`},warnings:{items:{type:`object`},type:`array`}},required:[`agent`,`changed`,`input`,`installed`,`ok`,`status`,`warnings`],type:`object`},type:`array`},scope:{type:`string`},summary:{type:`object`}},type:`object`},description:`Install result for one or more agents`,envelopeSchema:i,name:`install`,ndjsonEventSchema:a},{dataSchema:{additionalProperties:!1,properties:{agent:{type:`object`},changed:{type:`boolean`},installState:{type:`object`},installed:{type:`boolean`}},required:[`agent`,`changed`,`installed`],type:`object`},description:`Ensure result for an agent`,envelopeSchema:i,name:`ensure`,ndjsonEventSchema:a},{dataSchema:{additionalProperties:!1,properties:{agent:{type:`object`},capabilities:{type:`object`},inspection:{type:`object`}},required:[`agent`,`capabilities`,`inspection`],type:`object`},description:`Structured inspection result for an agent`,envelopeSchema:i,name:`inspect`,ndjsonEventSchema:a},{dataSchema:{additionalProperties:!1,properties:{agent:{type:`object`},resolution:{additionalProperties:!1,properties:{binaryPath:{type:`string`},installGuidance:{additionalProperties:!1,properties:{docsRef:{type:`string`},installMethods:{items:{additionalProperties:!1,properties:{command:{type:`string`},label:{type:`string`},type:{type:`string`}},required:[`command`,`label`,`type`],type:`object`},type:`array`},suggestedAction:{type:`string`},suggestedEnsureCommand:{type:`string`}},required:[`docsRef`,`installMethods`,`suggestedAction`,`suggestedEnsureCommand`],type:`object`},installed:{type:`boolean`},installSource:{type:`string`},installedVersion:{type:`string`},lifecycle:{type:`string`},sourceLabel:{type:`string`},suggestedLaunchCommand:{items:{type:`string`},type:`array`}},required:[`binaryPath`,`installed`,`installSource`,`lifecycle`,`sourceLabel`,`suggestedLaunchCommand`],type:`object`}},required:[`agent`,`resolution`],type:`object`},description:`Resolved executable entrypoint for an agent`,envelopeSchema:i,name:`resolve`,ndjsonEventSchema:a},{dataSchema:{additionalProperties:!1,properties:{commands:{items:{additionalProperties:!1,properties:{dataSchema:{type:`object`},description:{type:`string`},envelopeSchema:{type:`object`},name:{type:`string`},ndjsonEventSchema:{type:`object`}},required:[`dataSchema`,`description`,`envelopeSchema`,`name`],type:`object`},type:`array`}},required:[`commands`],type:`object`},description:`Structured schema catalog`,envelopeSchema:i,name:`schema`,ndjsonEventSchema:a}];async function u(r){let i=r?l.filter(e=>e.name===r):l;return r&&i.length===0?e(t({action:`schema`,error:{code:`INVALID_ARGUMENT`,details:{command:r},message:`Unknown schema target: ${r}`},target:{kind:`system`,name:`schema`}}),d):e(n({action:`schema`,data:{commands:i},target:{kind:`system`,name:`schema`}}),d)}function d(e){if(e.error){console.log(r.red(e.error.message));return}if(e.data){console.log(r.bold(`
2
+ Quantex Schemas
3
+ `));for(let t of e.data.commands)console.log(` ${r.cyan(t.name)}`),console.log(` ${t.description}`);console.log()}}function f(){return l}export{u as n,f as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./schema-B8pc2YX5.mjs";export{e as schemaCommand};
@@ -1 +1 @@
1
- import{l as e,n as t}from"./agents-ZNosvpri.mjs";import{J as n,O as r,a as i,n as a,r as o,t as s}from"./color-BgHjt9pg.mjs";import{t as c}from"./lifecycle-errors-D7JpbOsK.mjs";import{a as l,i as u,n as d,r as f}from"./user-output-C9oDB7iF.mjs";async function p(s){let l=t(s);if(!l)return i(a({action:`uninstall`,error:{code:`AGENT_NOT_FOUND`,details:{input:s},message:`Unknown agent: ${s}`},target:{kind:`agent`,name:s}}),m);if(d())return await r(l.name)?i(o({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!1},target:{kind:`agent`,name:l.name},warnings:[{code:`DRY_RUN`,message:`Dry run: would uninstall ${l.displayName}.`}]}),m):i(a({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!1},error:{code:`UNINSTALL_FAILED`,message:`Failed to uninstall ${l.displayName}.`},target:{kind:`agent`,name:l.name}}),m);let u;try{u=await e(l)}catch(e){if(n(e))return i(a({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!1},...c(e,{kind:`agent`,name:l.name})}),m);throw e}return i(u?o({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!0},target:{kind:`agent`,name:l.name}}):a({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!1},error:{code:`UNINSTALL_FAILED`,message:`Failed to uninstall ${l.displayName}.`},target:{kind:`agent`,name:l.name}}),m)}function m(e){if(e.error){f(s.red(e.error.message));return}if(e.data){if(e.warnings&&e.warnings.length>0){for(let t of e.warnings)l(s.yellow(t.message));return}u(s.cyan(`Uninstalling ${e.data.agent.displayName}...`)),u(s.green(`${e.data.agent.displayName} uninstalled successfully!`))}}export{p as uninstallCommand};
1
+ import{l as e,n as t}from"./agents-CqX4AmIi.mjs";import{J as n,O as r,a as i,n as a,r as o,t as s}from"./color-BeRyMqm9.mjs";import{t as c}from"./lifecycle-errors-D7JpbOsK.mjs";import{a as l,i as u,n as d,r as f}from"./user-output-BxHvAzGg.mjs";async function p(s){let l=t(s);if(!l)return i(a({action:`uninstall`,error:{code:`AGENT_NOT_FOUND`,details:{input:s},message:`Unknown agent: ${s}`},target:{kind:`agent`,name:s}}),m);if(d())return await r(l.name)?i(o({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!1},target:{kind:`agent`,name:l.name},warnings:[{code:`DRY_RUN`,message:`Dry run: would uninstall ${l.displayName}.`}]}),m):i(a({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!1},error:{code:`UNINSTALL_FAILED`,message:`Failed to uninstall ${l.displayName}.`},target:{kind:`agent`,name:l.name}}),m);let u;try{u=await e(l)}catch(e){if(n(e))return i(a({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!1},...c(e,{kind:`agent`,name:l.name})}),m);throw e}return i(u?o({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!0},target:{kind:`agent`,name:l.name}}):a({action:`uninstall`,data:{agent:{displayName:l.displayName,name:l.name},changed:!1},error:{code:`UNINSTALL_FAILED`,message:`Failed to uninstall ${l.displayName}.`},target:{kind:`agent`,name:l.name}}),m)}function m(e){if(e.error){f(s.red(e.error.message));return}if(e.data){if(e.warnings&&e.warnings.length>0){for(let t of e.warnings)l(s.yellow(t.message));return}u(s.cyan(`Uninstalling ${e.data.agent.displayName}...`)),u(s.green(`${e.data.agent.displayName} uninstalled successfully!`))}}export{p as uninstallCommand};