quantex-cli 0.18.6 → 0.20.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 (44) hide show
  1. package/README.md +2 -0
  2. package/dist/agents-Egq0RCta.mjs +1 -0
  3. package/dist/capabilities-DVYVq0Kb.mjs +1 -0
  4. package/dist/capabilities-LjMH_zbA.mjs +5 -0
  5. package/dist/cli.mjs +1 -1
  6. package/dist/color-DEbCq7kh.mjs +6 -0
  7. package/dist/{commands-DVAfsMT8.mjs → commands-B_Hju0lq.mjs} +1 -1
  8. package/dist/commands-CBYZqBF0.mjs +1 -0
  9. package/dist/config-CFYt99os.mjs +3 -0
  10. package/dist/detect-DWabXMgY.mjs +1 -0
  11. package/dist/doctor-Dp9VEmRS.mjs +3 -0
  12. package/dist/ensure-B-zpnaT-.mjs +1 -0
  13. package/dist/{ensure-DuRRFZmS.mjs → ensure-DpX11qbo.mjs} +1 -1
  14. package/dist/index.d.mts +520 -42
  15. package/dist/index.mjs +2 -2
  16. package/dist/{info-Zsyqe0jC.mjs → info-BUsquCrf.mjs} +1 -1
  17. package/dist/{inspect-CK_ALbxP.mjs → inspect-CihiIfvE.mjs} +1 -1
  18. package/dist/inspect-DO3c51A6.mjs +1 -0
  19. package/dist/{install-C5cl3k71.mjs → install-YLaojYug.mjs} +1 -1
  20. package/dist/{list-DmYR-K6f.mjs → list-D79BiyLS.mjs} +1 -1
  21. package/dist/{resolve-_c9rEF3-.mjs → resolve-BhJphfVN.mjs} +1 -1
  22. package/dist/resolve-D3cko00u.mjs +1 -0
  23. package/dist/schema-1VaAQRYe.mjs +1 -0
  24. package/dist/schema-C7v-CajU.mjs +3 -0
  25. package/dist/{uninstall-B9b6U53O.mjs → uninstall-C0IfMGxA.mjs} +1 -1
  26. package/dist/{update-CZQO3b9_.mjs → update-DNz98nPV.mjs} +1 -1
  27. package/dist/update-DgZD1TXs.mjs +1 -0
  28. package/dist/{upgrade-CO0Y_7H-.mjs → upgrade-C60CHTun.mjs} +1 -1
  29. package/dist/{user-output-C7nlU1BQ.mjs → user-output-DoYIFFWA.mjs} +1 -1
  30. package/package.json +6 -2
  31. package/dist/agents-BOLWzpZ2.mjs +0 -1
  32. package/dist/capabilities-BUvTRfqU.mjs +0 -5
  33. package/dist/capabilities-D72SCWy0.mjs +0 -1
  34. package/dist/color-BA_mTbgZ.mjs +0 -6
  35. package/dist/commands-CBQtsHnj.mjs +0 -1
  36. package/dist/config-DzSvpu7m.mjs +0 -3
  37. package/dist/detect-WobxukWj.mjs +0 -1
  38. package/dist/doctor-D7bnPdiy.mjs +0 -3
  39. package/dist/ensure-IuU--9f1.mjs +0 -1
  40. package/dist/inspect-4GtSMtpP.mjs +0 -1
  41. package/dist/resolve-e4S1Y5ZC.mjs +0 -1
  42. package/dist/schema-Cb8NeghM.mjs +0 -3
  43. package/dist/schema-aBF2dM7X.mjs +0 -1
  44. package/dist/update-C7ZE9ikj.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' | 'mise' | 'pip' | 'uv' | 'winget';
4
6
  type InstallType = ManagedInstallType | 'script' | 'binary';
5
7
  type PackageTargetKind = 'package' | 'cask' | 'id';
6
8
  interface BaseInstallMethod {
@@ -24,8 +26,10 @@ interface BinaryInstallMethod extends BaseInstallMethod {
24
26
  type InstallMethod = ManagedInstallMethod | ScriptInstallMethod | BinaryInstallMethod;
25
27
  interface AgentPackageMetadata {
26
28
  cargo?: string;
29
+ mise?: string;
27
30
  npm?: string;
28
31
  pip?: string;
32
+ uv?: string;
29
33
  }
30
34
  interface AgentSelfUpdate {
31
35
  command: string[];
@@ -48,66 +52,531 @@ interface AgentDefinition {
48
52
  versionProbe?: AgentVersionProbe;
49
53
  }
50
54
  //#endregion
51
- //#region src/agents/definitions/autohand.d.ts
55
+ //#region src/agents/generated/catalog-agents.d.ts
52
56
  declare const autohand: AgentDefinition;
53
- //#endregion
54
- //#region src/agents/definitions/claude.d.ts
55
57
  declare const claude: AgentDefinition;
56
- //#endregion
57
- //#region src/agents/definitions/codebuddy.d.ts
58
58
  declare const codebuddy: AgentDefinition;
59
- //#endregion
60
- //#region src/agents/definitions/codex.d.ts
61
59
  declare const codex: AgentDefinition;
62
- //#endregion
63
- //#region src/agents/definitions/copilot.d.ts
64
60
  declare const copilot: AgentDefinition;
65
- //#endregion
66
- //#region src/agents/definitions/cursor.d.ts
67
61
  declare const cursor: AgentDefinition;
68
- //#endregion
69
- //#region src/agents/definitions/deepseek.d.ts
70
62
  declare const deepseek: AgentDefinition;
71
- //#endregion
72
- //#region src/agents/definitions/devin.d.ts
73
63
  declare const devin: AgentDefinition;
74
- //#endregion
75
- //#region src/agents/definitions/droid.d.ts
76
64
  declare const droid: AgentDefinition;
77
- //#endregion
78
- //#region src/agents/definitions/gemini.d.ts
79
65
  declare const gemini: AgentDefinition;
80
- //#endregion
81
- //#region src/agents/definitions/jcode.d.ts
82
66
  declare const jcode: AgentDefinition;
83
- //#endregion
84
- //#region src/agents/definitions/junie.d.ts
85
67
  declare const junie: AgentDefinition;
86
- //#endregion
87
- //#region src/agents/definitions/kilo.d.ts
88
68
  declare const kilo: AgentDefinition;
89
- //#endregion
90
- //#region src/agents/definitions/opencode.d.ts
91
69
  declare const opencode: AgentDefinition;
92
- //#endregion
93
- //#region src/agents/definitions/openhands.d.ts
94
70
  declare const openhands: AgentDefinition;
95
- //#endregion
96
- //#region src/agents/definitions/pi.d.ts
97
71
  declare const pi: AgentDefinition;
98
- //#endregion
99
- //#region src/agents/definitions/qoder.d.ts
100
72
  declare const qoder: AgentDefinition;
101
- //#endregion
102
- //#region src/agents/definitions/reasonix.d.ts
103
73
  declare const reasonix: AgentDefinition;
104
- //#endregion
105
- //#region src/agents/definitions/vibe.d.ts
106
74
  declare const vibe: AgentDefinition;
107
- //#endregion
108
- //#region src/agents/definitions/vtcode.d.ts
109
75
  declare const vtcode: AgentDefinition;
110
76
  //#endregion
77
+ //#region src/agents/schema.d.ts
78
+ declare const agentCatalogEntrySchema: z.ZodObject<{
79
+ binaryName: z.ZodString;
80
+ displayName: z.ZodString;
81
+ homepage: z.ZodURL;
82
+ lookupAliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
83
+ name: z.ZodString;
84
+ packages: z.ZodOptional<z.ZodObject<{
85
+ cargo: z.ZodOptional<z.ZodString>;
86
+ mise: z.ZodOptional<z.ZodString>;
87
+ npm: z.ZodOptional<z.ZodString>;
88
+ pip: z.ZodOptional<z.ZodString>;
89
+ uv: z.ZodOptional<z.ZodString>;
90
+ }, z.core.$strict>>;
91
+ platforms: z.ZodObject<{
92
+ linux: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
93
+ type: z.ZodEnum<{
94
+ bun: "bun";
95
+ npm: "npm";
96
+ brew: "brew";
97
+ cargo: "cargo";
98
+ mise: "mise";
99
+ pip: "pip";
100
+ uv: "uv";
101
+ winget: "winget";
102
+ }>;
103
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
+ packageName: z.ZodOptional<z.ZodString>;
105
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
106
+ package: "package";
107
+ cask: "cask";
108
+ id: "id";
109
+ }>>;
110
+ }, z.core.$strict>, z.ZodObject<{
111
+ command: z.ZodString;
112
+ type: z.ZodLiteral<"script">;
113
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ packageName: z.ZodOptional<z.ZodString>;
115
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
116
+ package: "package";
117
+ cask: "cask";
118
+ id: "id";
119
+ }>>;
120
+ }, z.core.$strict>, z.ZodObject<{
121
+ command: z.ZodString;
122
+ type: z.ZodLiteral<"binary">;
123
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
124
+ packageName: z.ZodOptional<z.ZodString>;
125
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
126
+ package: "package";
127
+ cask: "cask";
128
+ id: "id";
129
+ }>>;
130
+ }, z.core.$strict>], "type">>>;
131
+ macos: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
132
+ type: z.ZodEnum<{
133
+ bun: "bun";
134
+ npm: "npm";
135
+ brew: "brew";
136
+ cargo: "cargo";
137
+ mise: "mise";
138
+ pip: "pip";
139
+ uv: "uv";
140
+ winget: "winget";
141
+ }>;
142
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ packageName: z.ZodOptional<z.ZodString>;
144
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
145
+ package: "package";
146
+ cask: "cask";
147
+ id: "id";
148
+ }>>;
149
+ }, z.core.$strict>, z.ZodObject<{
150
+ command: z.ZodString;
151
+ type: z.ZodLiteral<"script">;
152
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
153
+ packageName: z.ZodOptional<z.ZodString>;
154
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
155
+ package: "package";
156
+ cask: "cask";
157
+ id: "id";
158
+ }>>;
159
+ }, z.core.$strict>, z.ZodObject<{
160
+ command: z.ZodString;
161
+ type: z.ZodLiteral<"binary">;
162
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
163
+ packageName: z.ZodOptional<z.ZodString>;
164
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
165
+ package: "package";
166
+ cask: "cask";
167
+ id: "id";
168
+ }>>;
169
+ }, z.core.$strict>], "type">>>;
170
+ windows: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
171
+ type: z.ZodEnum<{
172
+ bun: "bun";
173
+ npm: "npm";
174
+ brew: "brew";
175
+ cargo: "cargo";
176
+ mise: "mise";
177
+ pip: "pip";
178
+ uv: "uv";
179
+ winget: "winget";
180
+ }>;
181
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
+ packageName: z.ZodOptional<z.ZodString>;
183
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
184
+ package: "package";
185
+ cask: "cask";
186
+ id: "id";
187
+ }>>;
188
+ }, z.core.$strict>, z.ZodObject<{
189
+ command: z.ZodString;
190
+ type: z.ZodLiteral<"script">;
191
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
+ packageName: z.ZodOptional<z.ZodString>;
193
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
194
+ package: "package";
195
+ cask: "cask";
196
+ id: "id";
197
+ }>>;
198
+ }, z.core.$strict>, z.ZodObject<{
199
+ command: z.ZodString;
200
+ type: z.ZodLiteral<"binary">;
201
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
202
+ packageName: z.ZodOptional<z.ZodString>;
203
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
204
+ package: "package";
205
+ cask: "cask";
206
+ id: "id";
207
+ }>>;
208
+ }, z.core.$strict>], "type">>>;
209
+ }, z.core.$strict>;
210
+ selfUpdate: z.ZodOptional<z.ZodObject<{
211
+ command: z.ZodArray<z.ZodString>;
212
+ fallbackCommands: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
213
+ versionAfter: z.ZodOptional<z.ZodEnum<{
214
+ "same-process": "same-process";
215
+ respawn: "respawn";
216
+ }>>;
217
+ }, z.core.$strict>>;
218
+ versionProbe: z.ZodOptional<z.ZodObject<{
219
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
220
+ }, z.core.$strict>>;
221
+ }, z.core.$strict>;
222
+ declare const agentCatalogSchema: z.ZodArray<z.ZodObject<{
223
+ binaryName: z.ZodString;
224
+ displayName: z.ZodString;
225
+ homepage: z.ZodURL;
226
+ lookupAliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
227
+ name: z.ZodString;
228
+ packages: z.ZodOptional<z.ZodObject<{
229
+ cargo: z.ZodOptional<z.ZodString>;
230
+ mise: z.ZodOptional<z.ZodString>;
231
+ npm: z.ZodOptional<z.ZodString>;
232
+ pip: z.ZodOptional<z.ZodString>;
233
+ uv: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strict>>;
235
+ platforms: z.ZodObject<{
236
+ linux: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
237
+ type: z.ZodEnum<{
238
+ bun: "bun";
239
+ npm: "npm";
240
+ brew: "brew";
241
+ cargo: "cargo";
242
+ mise: "mise";
243
+ pip: "pip";
244
+ uv: "uv";
245
+ winget: "winget";
246
+ }>;
247
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
248
+ packageName: z.ZodOptional<z.ZodString>;
249
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
250
+ package: "package";
251
+ cask: "cask";
252
+ id: "id";
253
+ }>>;
254
+ }, z.core.$strict>, z.ZodObject<{
255
+ command: z.ZodString;
256
+ type: z.ZodLiteral<"script">;
257
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
+ packageName: z.ZodOptional<z.ZodString>;
259
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
260
+ package: "package";
261
+ cask: "cask";
262
+ id: "id";
263
+ }>>;
264
+ }, z.core.$strict>, z.ZodObject<{
265
+ command: z.ZodString;
266
+ type: z.ZodLiteral<"binary">;
267
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
268
+ packageName: z.ZodOptional<z.ZodString>;
269
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
270
+ package: "package";
271
+ cask: "cask";
272
+ id: "id";
273
+ }>>;
274
+ }, z.core.$strict>], "type">>>;
275
+ macos: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
276
+ type: z.ZodEnum<{
277
+ bun: "bun";
278
+ npm: "npm";
279
+ brew: "brew";
280
+ cargo: "cargo";
281
+ mise: "mise";
282
+ pip: "pip";
283
+ uv: "uv";
284
+ winget: "winget";
285
+ }>;
286
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
287
+ packageName: z.ZodOptional<z.ZodString>;
288
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
289
+ package: "package";
290
+ cask: "cask";
291
+ id: "id";
292
+ }>>;
293
+ }, z.core.$strict>, z.ZodObject<{
294
+ command: z.ZodString;
295
+ type: z.ZodLiteral<"script">;
296
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
297
+ packageName: z.ZodOptional<z.ZodString>;
298
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
299
+ package: "package";
300
+ cask: "cask";
301
+ id: "id";
302
+ }>>;
303
+ }, z.core.$strict>, z.ZodObject<{
304
+ command: z.ZodString;
305
+ type: z.ZodLiteral<"binary">;
306
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
307
+ packageName: z.ZodOptional<z.ZodString>;
308
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
309
+ package: "package";
310
+ cask: "cask";
311
+ id: "id";
312
+ }>>;
313
+ }, z.core.$strict>], "type">>>;
314
+ windows: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
315
+ type: z.ZodEnum<{
316
+ bun: "bun";
317
+ npm: "npm";
318
+ brew: "brew";
319
+ cargo: "cargo";
320
+ mise: "mise";
321
+ pip: "pip";
322
+ uv: "uv";
323
+ winget: "winget";
324
+ }>;
325
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
326
+ packageName: z.ZodOptional<z.ZodString>;
327
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
328
+ package: "package";
329
+ cask: "cask";
330
+ id: "id";
331
+ }>>;
332
+ }, z.core.$strict>, z.ZodObject<{
333
+ command: z.ZodString;
334
+ type: z.ZodLiteral<"script">;
335
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
336
+ packageName: z.ZodOptional<z.ZodString>;
337
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
338
+ package: "package";
339
+ cask: "cask";
340
+ id: "id";
341
+ }>>;
342
+ }, z.core.$strict>, z.ZodObject<{
343
+ command: z.ZodString;
344
+ type: z.ZodLiteral<"binary">;
345
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
346
+ packageName: z.ZodOptional<z.ZodString>;
347
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
348
+ package: "package";
349
+ cask: "cask";
350
+ id: "id";
351
+ }>>;
352
+ }, z.core.$strict>], "type">>>;
353
+ }, z.core.$strict>;
354
+ selfUpdate: z.ZodOptional<z.ZodObject<{
355
+ command: z.ZodArray<z.ZodString>;
356
+ fallbackCommands: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
357
+ versionAfter: z.ZodOptional<z.ZodEnum<{
358
+ "same-process": "same-process";
359
+ respawn: "respawn";
360
+ }>>;
361
+ }, z.core.$strict>>;
362
+ versionProbe: z.ZodOptional<z.ZodObject<{
363
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
364
+ }, z.core.$strict>>;
365
+ }, z.core.$strict>>;
366
+ type AgentCatalogEntry = z.infer<typeof agentCatalogEntrySchema>;
367
+ type AgentCatalogData = z.infer<typeof agentCatalogSchema>;
368
+ declare const agentCatalogJsonSchema: {
369
+ $id: string;
370
+ title: string;
371
+ "~standard": z.core.ZodStandardSchemaWithJSON<z.ZodArray<z.ZodObject<{
372
+ binaryName: z.ZodString;
373
+ displayName: z.ZodString;
374
+ homepage: z.ZodURL;
375
+ lookupAliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
376
+ name: z.ZodString;
377
+ packages: z.ZodOptional<z.ZodObject<{
378
+ cargo: z.ZodOptional<z.ZodString>;
379
+ mise: z.ZodOptional<z.ZodString>;
380
+ npm: z.ZodOptional<z.ZodString>;
381
+ pip: z.ZodOptional<z.ZodString>;
382
+ uv: z.ZodOptional<z.ZodString>;
383
+ }, z.core.$strict>>;
384
+ platforms: z.ZodObject<{
385
+ linux: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
386
+ type: z.ZodEnum<{
387
+ bun: "bun";
388
+ npm: "npm";
389
+ brew: "brew";
390
+ cargo: "cargo";
391
+ mise: "mise";
392
+ pip: "pip";
393
+ uv: "uv";
394
+ winget: "winget";
395
+ }>;
396
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
397
+ packageName: z.ZodOptional<z.ZodString>;
398
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
399
+ package: "package";
400
+ cask: "cask";
401
+ id: "id";
402
+ }>>;
403
+ }, z.core.$strict>, z.ZodObject<{
404
+ command: z.ZodString;
405
+ type: z.ZodLiteral<"script">;
406
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
407
+ packageName: z.ZodOptional<z.ZodString>;
408
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
409
+ package: "package";
410
+ cask: "cask";
411
+ id: "id";
412
+ }>>;
413
+ }, z.core.$strict>, z.ZodObject<{
414
+ command: z.ZodString;
415
+ type: z.ZodLiteral<"binary">;
416
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
417
+ packageName: z.ZodOptional<z.ZodString>;
418
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
419
+ package: "package";
420
+ cask: "cask";
421
+ id: "id";
422
+ }>>;
423
+ }, z.core.$strict>], "type">>>;
424
+ macos: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
425
+ type: z.ZodEnum<{
426
+ bun: "bun";
427
+ npm: "npm";
428
+ brew: "brew";
429
+ cargo: "cargo";
430
+ mise: "mise";
431
+ pip: "pip";
432
+ uv: "uv";
433
+ winget: "winget";
434
+ }>;
435
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
436
+ packageName: z.ZodOptional<z.ZodString>;
437
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
438
+ package: "package";
439
+ cask: "cask";
440
+ id: "id";
441
+ }>>;
442
+ }, z.core.$strict>, z.ZodObject<{
443
+ command: z.ZodString;
444
+ type: z.ZodLiteral<"script">;
445
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
446
+ packageName: z.ZodOptional<z.ZodString>;
447
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
448
+ package: "package";
449
+ cask: "cask";
450
+ id: "id";
451
+ }>>;
452
+ }, z.core.$strict>, z.ZodObject<{
453
+ command: z.ZodString;
454
+ type: z.ZodLiteral<"binary">;
455
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
456
+ packageName: z.ZodOptional<z.ZodString>;
457
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
458
+ package: "package";
459
+ cask: "cask";
460
+ id: "id";
461
+ }>>;
462
+ }, z.core.$strict>], "type">>>;
463
+ windows: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
464
+ type: z.ZodEnum<{
465
+ bun: "bun";
466
+ npm: "npm";
467
+ brew: "brew";
468
+ cargo: "cargo";
469
+ mise: "mise";
470
+ pip: "pip";
471
+ uv: "uv";
472
+ winget: "winget";
473
+ }>;
474
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
475
+ packageName: z.ZodOptional<z.ZodString>;
476
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
477
+ package: "package";
478
+ cask: "cask";
479
+ id: "id";
480
+ }>>;
481
+ }, z.core.$strict>, z.ZodObject<{
482
+ command: z.ZodString;
483
+ type: z.ZodLiteral<"script">;
484
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
485
+ packageName: z.ZodOptional<z.ZodString>;
486
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
487
+ package: "package";
488
+ cask: "cask";
489
+ id: "id";
490
+ }>>;
491
+ }, z.core.$strict>, z.ZodObject<{
492
+ command: z.ZodString;
493
+ type: z.ZodLiteral<"binary">;
494
+ packageInstallArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
495
+ packageName: z.ZodOptional<z.ZodString>;
496
+ packageTargetKind: z.ZodOptional<z.ZodEnum<{
497
+ package: "package";
498
+ cask: "cask";
499
+ id: "id";
500
+ }>>;
501
+ }, z.core.$strict>], "type">>>;
502
+ }, z.core.$strict>;
503
+ selfUpdate: z.ZodOptional<z.ZodObject<{
504
+ command: z.ZodArray<z.ZodString>;
505
+ fallbackCommands: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
506
+ versionAfter: z.ZodOptional<z.ZodEnum<{
507
+ "same-process": "same-process";
508
+ respawn: "respawn";
509
+ }>>;
510
+ }, z.core.$strict>>;
511
+ versionProbe: z.ZodOptional<z.ZodObject<{
512
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
513
+ }, z.core.$strict>>;
514
+ }, z.core.$strict>>>;
515
+ $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
516
+ $anchor?: string;
517
+ $ref?: string;
518
+ $dynamicRef?: string;
519
+ $dynamicAnchor?: string;
520
+ $vocabulary?: Record<string, boolean>;
521
+ $comment?: string;
522
+ $defs?: Record<string, z.core.JSONSchema.JSONSchema>;
523
+ type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
524
+ additionalItems?: z.core.JSONSchema._JSONSchema;
525
+ unevaluatedItems?: z.core.JSONSchema._JSONSchema;
526
+ prefixItems?: z.core.JSONSchema._JSONSchema[];
527
+ items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
528
+ contains?: z.core.JSONSchema._JSONSchema;
529
+ additionalProperties?: z.core.JSONSchema._JSONSchema;
530
+ unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
531
+ properties?: Record<string, z.core.JSONSchema._JSONSchema>;
532
+ patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
533
+ dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
534
+ propertyNames?: z.core.JSONSchema._JSONSchema;
535
+ if?: z.core.JSONSchema._JSONSchema;
536
+ then?: z.core.JSONSchema._JSONSchema;
537
+ else?: z.core.JSONSchema._JSONSchema;
538
+ allOf?: z.core.JSONSchema.JSONSchema[];
539
+ anyOf?: z.core.JSONSchema.JSONSchema[];
540
+ oneOf?: z.core.JSONSchema.JSONSchema[];
541
+ not?: z.core.JSONSchema._JSONSchema;
542
+ multipleOf?: number;
543
+ maximum?: number;
544
+ exclusiveMaximum?: number | boolean;
545
+ minimum?: number;
546
+ exclusiveMinimum?: number | boolean;
547
+ maxLength?: number;
548
+ minLength?: number;
549
+ pattern?: string;
550
+ maxItems?: number;
551
+ minItems?: number;
552
+ uniqueItems?: boolean;
553
+ maxContains?: number;
554
+ minContains?: number;
555
+ maxProperties?: number;
556
+ minProperties?: number;
557
+ required?: string[];
558
+ dependentRequired?: Record<string, string[]>;
559
+ enum?: Array<string | number | boolean | null>;
560
+ const?: string | number | boolean | null;
561
+ id?: string;
562
+ description?: string;
563
+ default?: unknown;
564
+ deprecated?: boolean;
565
+ readOnly?: boolean;
566
+ writeOnly?: boolean;
567
+ nullable?: boolean;
568
+ examples?: unknown[];
569
+ format?: string;
570
+ contentMediaType?: string;
571
+ contentEncoding?: string;
572
+ contentSchema?: z.core.JSONSchema.JSONSchema;
573
+ _prefault?: unknown;
574
+ };
575
+ //#endregion
576
+ //#region src/agents/catalog.d.ts
577
+ declare function getCatalogAgents(): AgentDefinition[];
578
+ declare function getCatalogAgent(name: string): AgentDefinition;
579
+ //#endregion
111
580
  //#region src/agents/index.d.ts
112
581
  declare function getAllAgents(): AgentDefinition[];
113
582
  declare function getAgentByLookupName(name: string): AgentDefinition | undefined;
@@ -351,6 +820,10 @@ interface CapabilitiesData {
351
820
  available: boolean;
352
821
  reason?: string;
353
822
  };
823
+ mise: {
824
+ available: boolean;
825
+ reason?: string;
826
+ };
354
827
  npm: {
355
828
  available: boolean;
356
829
  reason?: string;
@@ -359,6 +832,10 @@ interface CapabilitiesData {
359
832
  available: boolean;
360
833
  reason?: string;
361
834
  };
835
+ uv: {
836
+ available: boolean;
837
+ reason?: string;
838
+ };
362
839
  winget: {
363
840
  available: boolean;
364
841
  reason?: string;
@@ -493,9 +970,10 @@ declare function schemaCommand(commandName?: string): Promise<CommandResult<Sche
493
970
  declare function getSchemaCatalog(): SchemaDocument[];
494
971
  //#endregion
495
972
  //#region src/config/index.d.ts
973
+ type DefaultPackageManager = 'bun' | 'mise' | 'npm';
496
974
  type NpmBunUpdateStrategy = 'latest-major' | 'respect-semver';
497
975
  interface QuantexConfig {
498
- defaultPackageManager: 'bun' | 'npm';
976
+ defaultPackageManager: DefaultPackageManager;
499
977
  networkRetries: number;
500
978
  networkTimeoutMs: number;
501
979
  npmBunUpdateStrategy: NpmBunUpdateStrategy;
@@ -721,4 +1199,4 @@ declare function getLatestVersion(packageName: string, distTag?: string, options
721
1199
  }): Promise<string | undefined>;
722
1200
  declare function getBinaryPath(binaryName: string): Promise<string | undefined>;
723
1201
  //#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 };
1202
+ 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-BOLWzpZ2.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-WobxukWj.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-BA_mTbgZ.mjs";import{t as Fe}from"./capabilities-BUvTRfqU.mjs";import{t as Ie}from"./commands-DVAfsMT8.mjs";import{t as Le}from"./ensure-DuRRFZmS.mjs";import{t as Re}from"./inspect-CK_ALbxP.mjs";import{t as ze}from"./resolve-_c9rEF3-.mjs";import{n as Be,t as Ve}from"./schema-Cb8NeghM.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-C7ZE9ikj.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 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-Egq0RCta.mjs";import{A as v,C as y,D as b,E as x,F as S,I as C,L as w,M as T,N as E,O as D,P as O,R as k,S as A,T as j,_ as M,b as N,d as P,f as F,g as I,h as L,i as R,j as z,k as B,m as V,n as H,p as U,s as W,t as G,v as K,w as q,x as J,y as Y}from"./detect-DWabXMgY.mjs";import{A as ae,B as oe,C as se,D as ce,E as le,F as ue,G as de,I as fe,K as pe,M as me,N as he,O as ge,P as _e,R as ve,T as ye,X as be,Z as xe,a as Se,at as Ce,c as we,ct as Te,et as Ee,j as De,k as Oe,l as ke,n as Ae,o as je,ot as Me,r as Ne,s as Pe,st as Fe,tt as Ie,u as Le,w as Re,z as ze}from"./color-DEbCq7kh.mjs";import{t as Be}from"./capabilities-LjMH_zbA.mjs";import{t as Ve}from"./commands-B_Hju0lq.mjs";import{t as He}from"./ensure-DpX11qbo.mjs";import{t as Ue}from"./inspect-CihiIfvE.mjs";import{t as We}from"./resolve-BhJphfVN.mjs";import{n as Ge,t as Ke}from"./schema-C7v-CajU.mjs";import{n as qe,t as Je}from"./errors-DCtNasuC.mjs";import{a as Ye,i as Xe,n as Ze,t as X}from"./update-DgZD1TXs.mjs";const 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 pe(de([e,...t]));return{success:n===0,exitCode:n}}catch{return{success:!1,exitCode:1}}}export{C as agentCatalogEntrySchema,w as agentCatalogJsonSchema,k as agentCatalogSchema,f as agentUpdateProviders,V as autohand,se as canAutoUpdateSelf,a as canLookupLatestVersionForInstallType,l as canResolveAgentUpdate,n as canUninstallInstallType,_ as canUpdateInstallType,Be as capabilitiesCommand,L as claude,I as codebuddy,M as codex,Ve as commandsCommand,K as copilot,Ae as createErrorResult,tt as createReleaseManifest,Ne as createSuccessResult,Xe as createUpdatePlan,Y as cursor,N as deepseek,Re as detectSelfInstallSource,J as devin,A as droid,Se as emitCommandResult,He as ensureCommand,rt as execCommand,$e as formatChecksums,y as gemini,P as getAgentByLookupName,F as getAgentByNameOrAlias,t as getAgentUpdateFailureHint,o as getAgentUpdateStrategy,U as getAllAgents,ve as getBinaryPath,le as getBinaryReleaseAssetName,ce as getBinaryReleaseDownloadUrl,O as getCatalogAgent,S as getCatalogAgents,Ce as getCliContext,be as getConfigDir,xe as getConfigFilePath,Je as getExitCodeForError,qe as getExitCodeForResult,ee as getInstallLifecycle,ge as getInstalledAgentState,ze as getInstalledVersion,i as getInstallerCapabilities,oe as getLatestVersion,re as getManagedInstaller,e as getManualAgentUpdateMessage,je as getManualSelfUpgradeCommand,d as getOrderedInstallMethods,G as getPlatform,Ke as getSchemaCatalog,Oe as getSelfState,ke as getSelfUpgradeRecoveryHint,Le as getSelfUpgradeRecoveryHintForInspection,ye as getSelfVersion,X as getSingleAgentUpdateStatus,ae as getStateFilePath,s as inspectAgent,te as inspectAllAgents,Ue as inspectCommand,h as inspectRegisteredAgents,Pe as inspectSelf,m as installAgent,H as isBinaryInPath,R as isBunAvailable,Ye as isInspectionUpdateAvailable,r as isManagedInstallType,W as isNpmAvailable,q as jcode,j as junie,x as kilo,Ee as loadConfig,De as loadState,Q as normalizeRepositoryUrl,b as opencode,D as openhands,Z as parseBinaryTarget,et as parseChecksums,B as pi,Ze as planAgentUpdates,v as qoder,z as reasonix,me as removeInstalledAgentState,Me as resetCliContext,u as resolveAgent,p as resolveAgentInspection,ie as resolveAgentUpdateProvider,Fe as resolveCliContext,We as resolveCommand,$ as resolveReleaseChannel,Ie as saveConfig,he as saveState,Ge as schemaCommand,Te as setCliContext,_e as setInstalledAgentState,ue as setSelfInstallSource,fe as setSelfUpdateNoticeState,c as uninstallAgent,g as updateAgent,ne as updateAgentsByType,we as upgradeSelf,nt as validateReleaseManifest,T as vibe,E as vtcode};