agent-dealer 0.1.13 → 0.3.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 (56) hide show
  1. package/bundle/server/dist/adapters/agent-health.js +28 -1
  2. package/bundle/server/dist/cli-env.js +16 -0
  3. package/bundle/server/dist/cli-env.test.js +14 -1
  4. package/bundle/server/dist/db/index.js +2 -1
  5. package/bundle/server/dist/queue/result-qa.js +1 -1
  6. package/bundle/server/dist/runners/claude.js +6 -87
  7. package/bundle/server/dist/runners/codex-args.js +59 -0
  8. package/bundle/server/dist/runners/codex-args.test.js +72 -0
  9. package/bundle/server/dist/runners/codex-jsonl.js +150 -0
  10. package/bundle/server/dist/runners/codex-jsonl.test.js +36 -0
  11. package/bundle/server/dist/runners/codex-resume.test.js +19 -0
  12. package/bundle/server/dist/runners/codex.js +46 -0
  13. package/bundle/server/dist/runners/models-codex.test.js +14 -0
  14. package/bundle/server/dist/runners/models.js +53 -1
  15. package/bundle/server/dist/runners/persist.js +4 -1
  16. package/bundle/server/dist/runners/qa.js +17 -1
  17. package/bundle/server/dist/runners/spawn-cli.js +90 -0
  18. package/bundle/server/package.json +2 -2
  19. package/bundle/server/static-ui/assets/index-DTcianAH.js +79 -0
  20. package/bundle/server/static-ui/index.html +1 -1
  21. package/bundle/shared/dist/agents.d.ts +18 -17
  22. package/bundle/shared/dist/agents.js +1 -0
  23. package/bundle/shared/dist/index.d.ts +83 -83
  24. package/bundle/shared/dist/runtime.d.ts +1 -1
  25. package/bundle/shared/dist/runtime.js +1 -1
  26. package/bundle/shared/package.json +1 -1
  27. package/dist/doctor.js +18 -0
  28. package/dist/index.js +14 -2
  29. package/dist/install.d.ts +8 -0
  30. package/dist/install.js +72 -0
  31. package/dist/managed/activate.d.ts +2 -0
  32. package/dist/managed/activate.js +49 -0
  33. package/dist/managed/activate.test.d.ts +1 -0
  34. package/dist/managed/activate.test.js +34 -0
  35. package/dist/managed/index.d.ts +8 -0
  36. package/dist/managed/index.js +8 -0
  37. package/dist/managed/install-kind.d.ts +5 -0
  38. package/dist/managed/install-kind.js +16 -0
  39. package/dist/managed/launcher.d.ts +1 -0
  40. package/dist/managed/launcher.js +19 -0
  41. package/dist/managed/npm-prefix-install.d.ts +16 -0
  42. package/dist/managed/npm-prefix-install.js +38 -0
  43. package/dist/managed/paths.d.ts +11 -0
  44. package/dist/managed/paths.js +45 -0
  45. package/dist/managed/semver.d.ts +2 -0
  46. package/dist/managed/semver.js +12 -0
  47. package/dist/managed/update-state.d.ts +7 -0
  48. package/dist/managed/update-state.js +22 -0
  49. package/dist/managed/updater.d.ts +21 -0
  50. package/dist/managed/updater.js +107 -0
  51. package/dist/update-check.d.ts +1 -0
  52. package/dist/update-check.js +25 -37
  53. package/dist/upgrade.d.ts +1 -0
  54. package/dist/upgrade.js +55 -6
  55. package/package.json +1 -1
  56. package/bundle/server/static-ui/assets/index-B_7S7xJb.js +0 -79
@@ -8,7 +8,7 @@
8
8
  <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
9
9
  <meta name="theme-color" content="#0a0e14" />
10
10
  <link rel="preload" href="/fonts/Monaco.ttf" as="font" type="font/ttf" crossorigin />
11
- <script type="module" crossorigin src="/assets/index-B_7S7xJb.js"></script>
11
+ <script type="module" crossorigin src="/assets/index-DTcianAH.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="/assets/index-QYv3zmE6.css">
13
13
  </head>
14
14
  <body>
@@ -2,6 +2,7 @@ import { z } from "zod";
2
2
  /** Built-in agent IDs — stable across installs. */
3
3
  export declare const BUILTIN_AGENT_CLAUDE_ID = "00000000-0000-4000-a000-000000000001";
4
4
  export declare const BUILTIN_AGENT_CURSOR_ID = "00000000-0000-4000-a000-000000000002";
5
+ export declare const BUILTIN_AGENT_CODEX_ID = "00000000-0000-4000-a000-000000000003";
5
6
  /** Cursor CLI model id for Auto + Composer subscription pool (not IDE default). */
6
7
  export declare const CURSOR_DEFAULT_MODEL = "auto";
7
8
  /** Cursor models that draw from the Auto + Composer pool on individual Pro plans. */
@@ -20,7 +21,7 @@ export type AgentHealthIssue = z.infer<typeof AgentHealthIssue>;
20
21
  export declare const AgentProfile: z.ZodObject<{
21
22
  id: z.ZodString;
22
23
  name: z.ZodString;
23
- runtime: z.ZodEnum<["claude_code", "cursor_local"]>;
24
+ runtime: z.ZodEnum<["claude_code", "cursor_local", "codex_local"]>;
24
25
  workspaceRoot: z.ZodNullable<z.ZodString>;
25
26
  deckId: z.ZodNullable<z.ZodString>;
26
27
  deckName: z.ZodNullable<z.ZodString>;
@@ -39,7 +40,7 @@ export declare const AgentProfile: z.ZodObject<{
39
40
  }, "strip", z.ZodTypeAny, {
40
41
  id: string;
41
42
  name: string;
42
- runtime: "claude_code" | "cursor_local";
43
+ runtime: "claude_code" | "cursor_local" | "codex_local";
43
44
  workspaceRoot: string | null;
44
45
  deckId: string | null;
45
46
  deckName: string | null;
@@ -54,7 +55,7 @@ export declare const AgentProfile: z.ZodObject<{
54
55
  }, {
55
56
  id: string;
56
57
  name: string;
57
- runtime: "claude_code" | "cursor_local";
58
+ runtime: "claude_code" | "cursor_local" | "codex_local";
58
59
  workspaceRoot: string | null;
59
60
  deckId: string | null;
60
61
  deckName: string | null;
@@ -71,7 +72,7 @@ export type AgentProfile = z.infer<typeof AgentProfile>;
71
72
  export declare const AgentWithHealth: z.ZodObject<{
72
73
  id: z.ZodString;
73
74
  name: z.ZodString;
74
- runtime: z.ZodEnum<["claude_code", "cursor_local"]>;
75
+ runtime: z.ZodEnum<["claude_code", "cursor_local", "codex_local"]>;
75
76
  workspaceRoot: z.ZodNullable<z.ZodString>;
76
77
  deckId: z.ZodNullable<z.ZodString>;
77
78
  deckName: z.ZodNullable<z.ZodString>;
@@ -106,7 +107,7 @@ export declare const AgentWithHealth: z.ZodObject<{
106
107
  }[];
107
108
  id: string;
108
109
  name: string;
109
- runtime: "claude_code" | "cursor_local";
110
+ runtime: "claude_code" | "cursor_local" | "codex_local";
110
111
  workspaceRoot: string | null;
111
112
  deckId: string | null;
112
113
  deckName: string | null;
@@ -126,7 +127,7 @@ export declare const AgentWithHealth: z.ZodObject<{
126
127
  }[];
127
128
  id: string;
128
129
  name: string;
129
- runtime: "claude_code" | "cursor_local";
130
+ runtime: "claude_code" | "cursor_local" | "codex_local";
130
131
  workspaceRoot: string | null;
131
132
  deckId: string | null;
132
133
  deckName: string | null;
@@ -143,7 +144,7 @@ export declare const AgentWithHealth: z.ZodObject<{
143
144
  export type AgentWithHealth = z.infer<typeof AgentWithHealth>;
144
145
  export declare const CreateAgentInput: z.ZodObject<{
145
146
  name: z.ZodString;
146
- runtime: z.ZodEnum<["claude_code", "cursor_local"]>;
147
+ runtime: z.ZodEnum<["claude_code", "cursor_local", "codex_local"]>;
147
148
  workspaceRoot: z.ZodString;
148
149
  deckId: z.ZodOptional<z.ZodString>;
149
150
  playbookId: z.ZodOptional<z.ZodString>;
@@ -171,7 +172,7 @@ export declare const CreateAgentInput: z.ZodObject<{
171
172
  }>>>;
172
173
  }, "strip", z.ZodTypeAny, {
173
174
  name: string;
174
- runtime: "claude_code" | "cursor_local";
175
+ runtime: "claude_code" | "cursor_local" | "codex_local";
175
176
  workspaceRoot: string;
176
177
  deckId?: string | undefined;
177
178
  playbookId?: string | undefined;
@@ -187,7 +188,7 @@ export declare const CreateAgentInput: z.ZodObject<{
187
188
  } | null | undefined;
188
189
  }, {
189
190
  name: string;
190
- runtime: "claude_code" | "cursor_local";
191
+ runtime: "claude_code" | "cursor_local" | "codex_local";
191
192
  workspaceRoot: string;
192
193
  deckId?: string | undefined;
193
194
  playbookId?: string | undefined;
@@ -205,7 +206,7 @@ export declare const CreateAgentInput: z.ZodObject<{
205
206
  export type CreateAgentInput = z.infer<typeof CreateAgentInput>;
206
207
  export declare const UpdateAgentInput: z.ZodObject<{
207
208
  name: z.ZodOptional<z.ZodString>;
208
- runtime: z.ZodOptional<z.ZodEnum<["claude_code", "cursor_local"]>>;
209
+ runtime: z.ZodOptional<z.ZodEnum<["claude_code", "cursor_local", "codex_local"]>>;
209
210
  workspaceRoot: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
211
  deckId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
212
  playbookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -233,7 +234,7 @@ export declare const UpdateAgentInput: z.ZodObject<{
233
234
  }>>>;
234
235
  }, "strip", z.ZodTypeAny, {
235
236
  name?: string | undefined;
236
- runtime?: "claude_code" | "cursor_local" | undefined;
237
+ runtime?: "claude_code" | "cursor_local" | "codex_local" | undefined;
237
238
  workspaceRoot?: string | null | undefined;
238
239
  deckId?: string | null | undefined;
239
240
  playbookId?: string | null | undefined;
@@ -249,7 +250,7 @@ export declare const UpdateAgentInput: z.ZodObject<{
249
250
  } | null | undefined;
250
251
  }, {
251
252
  name?: string | undefined;
252
- runtime?: "claude_code" | "cursor_local" | undefined;
253
+ runtime?: "claude_code" | "cursor_local" | "codex_local" | undefined;
253
254
  workspaceRoot?: string | null | undefined;
254
255
  deckId?: string | null | undefined;
255
256
  playbookId?: string | null | undefined;
@@ -269,7 +270,7 @@ export declare const AgentsSnapshot: z.ZodObject<{
269
270
  agents: z.ZodArray<z.ZodObject<{
270
271
  id: z.ZodString;
271
272
  name: z.ZodString;
272
- runtime: z.ZodEnum<["claude_code", "cursor_local"]>;
273
+ runtime: z.ZodEnum<["claude_code", "cursor_local", "codex_local"]>;
273
274
  workspaceRoot: z.ZodNullable<z.ZodString>;
274
275
  deckId: z.ZodNullable<z.ZodString>;
275
276
  deckName: z.ZodNullable<z.ZodString>;
@@ -304,7 +305,7 @@ export declare const AgentsSnapshot: z.ZodObject<{
304
305
  }[];
305
306
  id: string;
306
307
  name: string;
307
- runtime: "claude_code" | "cursor_local";
308
+ runtime: "claude_code" | "cursor_local" | "codex_local";
308
309
  workspaceRoot: string | null;
309
310
  deckId: string | null;
310
311
  deckName: string | null;
@@ -324,7 +325,7 @@ export declare const AgentsSnapshot: z.ZodObject<{
324
325
  }[];
325
326
  id: string;
326
327
  name: string;
327
- runtime: "claude_code" | "cursor_local";
328
+ runtime: "claude_code" | "cursor_local" | "codex_local";
328
329
  workspaceRoot: string | null;
329
330
  deckId: string | null;
330
331
  deckName: string | null;
@@ -347,7 +348,7 @@ export declare const AgentsSnapshot: z.ZodObject<{
347
348
  }[];
348
349
  id: string;
349
350
  name: string;
350
- runtime: "claude_code" | "cursor_local";
351
+ runtime: "claude_code" | "cursor_local" | "codex_local";
351
352
  workspaceRoot: string | null;
352
353
  deckId: string | null;
353
354
  deckName: string | null;
@@ -370,7 +371,7 @@ export declare const AgentsSnapshot: z.ZodObject<{
370
371
  }[];
371
372
  id: string;
372
373
  name: string;
373
- runtime: "claude_code" | "cursor_local";
374
+ runtime: "claude_code" | "cursor_local" | "codex_local";
374
375
  workspaceRoot: string | null;
375
376
  deckId: string | null;
376
377
  deckName: string | null;
@@ -4,6 +4,7 @@ import { Runtime } from "./runtime.js";
4
4
  /** Built-in agent IDs — stable across installs. */
5
5
  export const BUILTIN_AGENT_CLAUDE_ID = "00000000-0000-4000-a000-000000000001";
6
6
  export const BUILTIN_AGENT_CURSOR_ID = "00000000-0000-4000-a000-000000000002";
7
+ export const BUILTIN_AGENT_CODEX_ID = "00000000-0000-4000-a000-000000000003";
7
8
  /** Cursor CLI model id for Auto + Composer subscription pool (not IDE default). */
8
9
  export const CURSOR_DEFAULT_MODEL = "auto";
9
10
  /** Cursor models that draw from the Auto + Composer pool on individual Pro plans. */