ai-cli-mcp 2.18.0 → 2.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 (101) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.ja.md +37 -11
  3. package/README.md +44 -11
  4. package/dist/app/cli.js +2 -1
  5. package/dist/app/mcp.js +65 -13
  6. package/dist/cli-builder.js +13 -6
  7. package/dist/cli-process-service.js +81 -95
  8. package/dist/cli-utils.js +6 -0
  9. package/dist/cli.js +1 -1
  10. package/dist/model-catalog.js +3 -2
  11. package/dist/parsers.js +111 -8
  12. package/dist/process-service.js +5 -4
  13. package/package.json +26 -2
  14. package/server.json +3 -3
  15. package/.gemini/settings.json +0 -11
  16. package/.github/dependabot.yml +0 -28
  17. package/.github/pull_request_template.md +0 -28
  18. package/.github/workflows/ci.yml +0 -34
  19. package/.github/workflows/dependency-review.yml +0 -22
  20. package/.github/workflows/publish.yml +0 -89
  21. package/.github/workflows/test.yml +0 -20
  22. package/.github/workflows/watch-session-prs.yml +0 -276
  23. package/.husky/pre-commit +0 -1
  24. package/.mcp.json +0 -11
  25. package/.releaserc.json +0 -18
  26. package/.vscode/settings.json +0 -3
  27. package/CONTRIBUTING.md +0 -81
  28. package/dist/__tests__/app-cli.test.js +0 -392
  29. package/dist/__tests__/cli-bin-smoke.test.js +0 -101
  30. package/dist/__tests__/cli-builder.test.js +0 -442
  31. package/dist/__tests__/cli-process-service.test.js +0 -655
  32. package/dist/__tests__/cli-utils.test.js +0 -171
  33. package/dist/__tests__/e2e.test.js +0 -256
  34. package/dist/__tests__/edge-cases.test.js +0 -130
  35. package/dist/__tests__/error-cases.test.js +0 -292
  36. package/dist/__tests__/mcp-contract.test.js +0 -636
  37. package/dist/__tests__/mocks.js +0 -32
  38. package/dist/__tests__/model-alias.test.js +0 -36
  39. package/dist/__tests__/parsers.test.js +0 -500
  40. package/dist/__tests__/peek.test.js +0 -36
  41. package/dist/__tests__/process-management.test.js +0 -871
  42. package/dist/__tests__/server.test.js +0 -809
  43. package/dist/__tests__/setup.js +0 -11
  44. package/dist/__tests__/utils/claude-mock.js +0 -80
  45. package/dist/__tests__/utils/mcp-client.js +0 -121
  46. package/dist/__tests__/utils/opencode-mock.js +0 -91
  47. package/dist/__tests__/utils/persistent-mock.js +0 -28
  48. package/dist/__tests__/utils/test-helpers.js +0 -11
  49. package/dist/__tests__/validation.test.js +0 -308
  50. package/dist/__tests__/version-print.test.js +0 -65
  51. package/dist/__tests__/wait.test.js +0 -260
  52. package/docs/RELEASE_CHECKLIST.md +0 -65
  53. package/docs/cli-architecture.md +0 -275
  54. package/docs/concept.md +0 -154
  55. package/docs/development.md +0 -156
  56. package/docs/e2e-testing.md +0 -148
  57. package/docs/prd.md +0 -146
  58. package/docs/session-stacking.md +0 -67
  59. package/src/__tests__/app-cli.test.ts +0 -495
  60. package/src/__tests__/cli-bin-smoke.test.ts +0 -136
  61. package/src/__tests__/cli-builder.test.ts +0 -549
  62. package/src/__tests__/cli-process-service.test.ts +0 -759
  63. package/src/__tests__/cli-utils.test.ts +0 -200
  64. package/src/__tests__/e2e.test.ts +0 -311
  65. package/src/__tests__/edge-cases.test.ts +0 -176
  66. package/src/__tests__/error-cases.test.ts +0 -370
  67. package/src/__tests__/mcp-contract.test.ts +0 -755
  68. package/src/__tests__/mocks.ts +0 -35
  69. package/src/__tests__/model-alias.test.ts +0 -44
  70. package/src/__tests__/parsers.test.ts +0 -564
  71. package/src/__tests__/peek.test.ts +0 -44
  72. package/src/__tests__/process-management.test.ts +0 -1043
  73. package/src/__tests__/server.test.ts +0 -1020
  74. package/src/__tests__/setup.ts +0 -13
  75. package/src/__tests__/utils/claude-mock.ts +0 -87
  76. package/src/__tests__/utils/mcp-client.ts +0 -159
  77. package/src/__tests__/utils/opencode-mock.ts +0 -108
  78. package/src/__tests__/utils/persistent-mock.ts +0 -33
  79. package/src/__tests__/utils/test-helpers.ts +0 -13
  80. package/src/__tests__/validation.test.ts +0 -369
  81. package/src/__tests__/version-print.test.ts +0 -81
  82. package/src/__tests__/wait.test.ts +0 -302
  83. package/src/app/cli.ts +0 -424
  84. package/src/app/mcp.ts +0 -466
  85. package/src/bin/ai-cli-mcp.ts +0 -7
  86. package/src/bin/ai-cli.ts +0 -11
  87. package/src/cli-builder.ts +0 -274
  88. package/src/cli-parse.ts +0 -105
  89. package/src/cli-process-service.ts +0 -708
  90. package/src/cli-utils.ts +0 -258
  91. package/src/cli.ts +0 -124
  92. package/src/model-catalog.ts +0 -87
  93. package/src/parsers.ts +0 -840
  94. package/src/peek.ts +0 -95
  95. package/src/process-result.ts +0 -88
  96. package/src/process-service.ts +0 -367
  97. package/src/server.ts +0 -10
  98. package/tsconfig.json +0 -16
  99. package/vitest.config.e2e.ts +0 -27
  100. package/vitest.config.ts +0 -22
  101. package/vitest.config.unit.ts +0 -28
@@ -1,442 +0,0 @@
1
- import { describe, it, expect, vi, beforeEach } from 'vitest';
2
- import { existsSync, readFileSync } from 'node:fs';
3
- // Mock dependencies
4
- vi.mock('node:fs');
5
- vi.mock('node:path', () => ({
6
- resolve: vi.fn((...args) => args[args.length - 1]),
7
- isAbsolute: vi.fn((p) => p.startsWith('/')),
8
- }));
9
- const mockExistsSync = vi.mocked(existsSync);
10
- const mockReadFileSync = vi.mocked(readFileSync);
11
- // Import after mocks
12
- import { buildCliCommand, resolveModelAlias, getReasoningEffort, } from '../cli-builder.js';
13
- const DEFAULT_CLI_PATHS = {
14
- claude: '/usr/bin/claude',
15
- codex: '/usr/bin/codex',
16
- gemini: '/usr/bin/gemini',
17
- forge: '/usr/bin/forge',
18
- opencode: '/usr/bin/opencode',
19
- };
20
- describe('cli-builder', () => {
21
- beforeEach(() => {
22
- vi.clearAllMocks();
23
- // By default, workFolder exists
24
- mockExistsSync.mockReturnValue(true);
25
- });
26
- describe('resolveModelAlias', () => {
27
- it('should resolve claude-ultra to opus', () => {
28
- expect(resolveModelAlias('claude-ultra')).toBe('opus');
29
- });
30
- it('should resolve codex-ultra to gpt-5.4', () => {
31
- expect(resolveModelAlias('codex-ultra')).toBe('gpt-5.4');
32
- });
33
- it('should resolve gemini-ultra to gemini-3.1-pro-preview', () => {
34
- expect(resolveModelAlias('gemini-ultra')).toBe('gemini-3.1-pro-preview');
35
- });
36
- it('should pass through non-alias model names', () => {
37
- expect(resolveModelAlias('sonnet')).toBe('sonnet');
38
- expect(resolveModelAlias('gpt-5.2-codex')).toBe('gpt-5.2-codex');
39
- });
40
- it('should pass through empty string', () => {
41
- expect(resolveModelAlias('')).toBe('');
42
- });
43
- });
44
- describe('getReasoningEffort', () => {
45
- it('should return empty string for non-string input', () => {
46
- expect(getReasoningEffort('gpt-5.2', undefined)).toBe('');
47
- expect(getReasoningEffort('gpt-5.2', null)).toBe('');
48
- expect(getReasoningEffort('gpt-5.2', 123)).toBe('');
49
- });
50
- it('should return empty string for empty/whitespace input', () => {
51
- expect(getReasoningEffort('gpt-5.2', '')).toBe('');
52
- expect(getReasoningEffort('gpt-5.2', ' ')).toBe('');
53
- });
54
- it('should normalize to lowercase', () => {
55
- expect(getReasoningEffort('gpt-5.2', 'HIGH')).toBe('high');
56
- expect(getReasoningEffort('gpt-5.2', 'Low')).toBe('low');
57
- });
58
- it('should accept valid values', () => {
59
- expect(getReasoningEffort('gpt-5.2', 'low')).toBe('low');
60
- expect(getReasoningEffort('gpt-5.2', 'medium')).toBe('medium');
61
- expect(getReasoningEffort('gpt-5.2', 'high')).toBe('high');
62
- expect(getReasoningEffort('gpt-5.2', 'xhigh')).toBe('xhigh');
63
- expect(getReasoningEffort('sonnet', 'high')).toBe('high');
64
- expect(getReasoningEffort('', 'low')).toBe('low');
65
- });
66
- it('should throw for invalid reasoning effort value', () => {
67
- expect(() => getReasoningEffort('gpt-5.2', 'ultra')).toThrow('Invalid reasoning_effort: ultra. Allowed values: low, medium, high, xhigh.');
68
- });
69
- it('should reject xhigh for claude models', () => {
70
- expect(() => getReasoningEffort('sonnet', 'xhigh')).toThrow('Claude reasoning_effort supports only low, medium, high.');
71
- });
72
- it('should throw for unsupported model families', () => {
73
- expect(() => getReasoningEffort('gemini-2.5-pro', 'high')).toThrow('reasoning_effort is only supported for Claude and Codex models.');
74
- });
75
- it('should reject reasoning_effort for forge explicitly', () => {
76
- expect(() => getReasoningEffort('forge', 'high')).toThrow('reasoning_effort is not supported for forge.');
77
- });
78
- it('should reject reasoning_effort for opencode explicitly', () => {
79
- expect(() => getReasoningEffort('opencode', 'high')).toThrow('reasoning_effort is not supported for opencode.');
80
- expect(() => getReasoningEffort('oc-openai/gpt-5.4', 'high')).toThrow('reasoning_effort is not supported for opencode.');
81
- });
82
- });
83
- describe('buildCliCommand', () => {
84
- describe('validation', () => {
85
- it('should throw when workFolder is missing', () => {
86
- expect(() => buildCliCommand({
87
- prompt: 'hello',
88
- workFolder: '',
89
- cliPaths: DEFAULT_CLI_PATHS,
90
- })).toThrow('Missing or invalid required parameter: workFolder');
91
- });
92
- it('should throw when neither prompt nor prompt_file is provided', () => {
93
- expect(() => buildCliCommand({
94
- workFolder: '/tmp',
95
- cliPaths: DEFAULT_CLI_PATHS,
96
- })).toThrow('Either prompt or prompt_file must be provided');
97
- });
98
- it('should throw when both prompt and prompt_file are provided', () => {
99
- expect(() => buildCliCommand({
100
- prompt: 'hello',
101
- prompt_file: '/tmp/prompt.txt',
102
- workFolder: '/tmp',
103
- cliPaths: DEFAULT_CLI_PATHS,
104
- })).toThrow('Cannot specify both prompt and prompt_file');
105
- });
106
- it('should throw when prompt_file does not exist', () => {
107
- mockExistsSync.mockImplementation((p) => {
108
- if (p === '/tmp/nonexistent.txt')
109
- return false;
110
- return true; // workFolder exists
111
- });
112
- expect(() => buildCliCommand({
113
- prompt_file: '/tmp/nonexistent.txt',
114
- workFolder: '/tmp',
115
- cliPaths: DEFAULT_CLI_PATHS,
116
- })).toThrow('Prompt file does not exist');
117
- });
118
- it('should throw when workFolder does not exist', () => {
119
- mockExistsSync.mockReturnValue(false);
120
- expect(() => buildCliCommand({
121
- prompt: 'hello',
122
- workFolder: '/nonexistent',
123
- cliPaths: DEFAULT_CLI_PATHS,
124
- })).toThrow('Working folder does not exist');
125
- });
126
- it('should read prompt from file', () => {
127
- mockExistsSync.mockReturnValue(true);
128
- mockReadFileSync.mockReturnValue('prompt from file');
129
- const cmd = buildCliCommand({
130
- prompt_file: '/tmp/prompt.txt',
131
- workFolder: '/tmp',
132
- cliPaths: DEFAULT_CLI_PATHS,
133
- });
134
- expect(cmd.prompt).toBe('prompt from file');
135
- });
136
- });
137
- describe('claude agent', () => {
138
- it('should build claude command with default model', () => {
139
- const cmd = buildCliCommand({
140
- prompt: 'hello world',
141
- workFolder: '/tmp',
142
- cliPaths: DEFAULT_CLI_PATHS,
143
- });
144
- expect(cmd.agent).toBe('claude');
145
- expect(cmd.cliPath).toBe('/usr/bin/claude');
146
- expect(cmd.args).toEqual([
147
- '--dangerously-skip-permissions',
148
- '--output-format',
149
- 'stream-json',
150
- '--verbose',
151
- '-p',
152
- 'hello world',
153
- ]);
154
- expect(cmd.resolvedModel).toBe('');
155
- });
156
- it('should build claude command with model', () => {
157
- const cmd = buildCliCommand({
158
- prompt: 'test',
159
- workFolder: '/tmp',
160
- model: 'sonnet',
161
- cliPaths: DEFAULT_CLI_PATHS,
162
- });
163
- expect(cmd.agent).toBe('claude');
164
- expect(cmd.args).toContain('--model');
165
- expect(cmd.args).toContain('sonnet');
166
- expect(cmd.resolvedModel).toBe('sonnet');
167
- });
168
- it('should build claude command with session_id', () => {
169
- const cmd = buildCliCommand({
170
- prompt: 'test',
171
- workFolder: '/tmp',
172
- session_id: 'ses-123',
173
- cliPaths: DEFAULT_CLI_PATHS,
174
- });
175
- expect(cmd.args).toContain('-r');
176
- expect(cmd.args).toContain('ses-123');
177
- expect(cmd.args).toContain('--fork-session');
178
- });
179
- it('should resolve claude-ultra alias to opus', () => {
180
- const cmd = buildCliCommand({
181
- prompt: 'test',
182
- workFolder: '/tmp',
183
- model: 'claude-ultra',
184
- cliPaths: DEFAULT_CLI_PATHS,
185
- });
186
- expect(cmd.agent).toBe('claude');
187
- expect(cmd.resolvedModel).toBe('opus');
188
- expect(cmd.args).toContain('opus');
189
- });
190
- it('should resolve claude-ultra and default to high effort', () => {
191
- const cmd = buildCliCommand({
192
- prompt: 'test',
193
- workFolder: '/tmp',
194
- model: 'claude-ultra',
195
- cliPaths: DEFAULT_CLI_PATHS,
196
- });
197
- expect(cmd.args).toContain('--effort');
198
- expect(cmd.args).toContain('high');
199
- });
200
- it('should build claude command with reasoning_effort using --effort', () => {
201
- const cmd = buildCliCommand({
202
- prompt: 'test',
203
- workFolder: '/tmp',
204
- model: 'sonnet',
205
- reasoning_effort: 'medium',
206
- cliPaths: DEFAULT_CLI_PATHS,
207
- });
208
- expect(cmd.args).toContain('--effort');
209
- expect(cmd.args).toContain('medium');
210
- });
211
- it('should reject xhigh reasoning_effort for claude', () => {
212
- expect(() => buildCliCommand({
213
- prompt: 'test',
214
- workFolder: '/tmp',
215
- model: 'sonnet',
216
- reasoning_effort: 'xhigh',
217
- cliPaths: DEFAULT_CLI_PATHS,
218
- })).toThrow('Claude reasoning_effort supports only low, medium, high.');
219
- });
220
- it('should allow overriding reasoning_effort for claude-ultra', () => {
221
- const cmd = buildCliCommand({
222
- prompt: 'test',
223
- workFolder: '/tmp',
224
- model: 'claude-ultra',
225
- reasoning_effort: 'low',
226
- cliPaths: DEFAULT_CLI_PATHS,
227
- });
228
- expect(cmd.args).toContain('--effort');
229
- expect(cmd.args).toContain('low');
230
- expect(cmd.args).not.toContain('high');
231
- });
232
- });
233
- describe('codex agent', () => {
234
- it('should build codex command', () => {
235
- const cmd = buildCliCommand({
236
- prompt: 'test',
237
- workFolder: '/tmp',
238
- model: 'gpt-5.2-codex',
239
- cliPaths: DEFAULT_CLI_PATHS,
240
- });
241
- expect(cmd.agent).toBe('codex');
242
- expect(cmd.cliPath).toBe('/usr/bin/codex');
243
- expect(cmd.args).toContain('exec');
244
- expect(cmd.args).toContain('--dangerously-bypass-approvals-and-sandbox');
245
- expect(cmd.args).not.toContain('--full-auto');
246
- expect(cmd.args).toContain('--json');
247
- expect(cmd.args).toContain('--model');
248
- expect(cmd.args).toContain('gpt-5.2-codex');
249
- });
250
- it('should build codex command with session_id using exec resume', () => {
251
- const cmd = buildCliCommand({
252
- prompt: 'test',
253
- workFolder: '/tmp',
254
- model: 'gpt-5.2',
255
- session_id: 'codex-ses-456',
256
- cliPaths: DEFAULT_CLI_PATHS,
257
- });
258
- expect(cmd.args[0]).toBe('exec');
259
- expect(cmd.args[1]).toBe('resume');
260
- expect(cmd.args[2]).toBe('codex-ses-456');
261
- });
262
- it('should build codex command with reasoning_effort', () => {
263
- const cmd = buildCliCommand({
264
- prompt: 'test',
265
- workFolder: '/tmp',
266
- model: 'gpt-5.2-codex',
267
- reasoning_effort: 'high',
268
- cliPaths: DEFAULT_CLI_PATHS,
269
- });
270
- expect(cmd.args).toContain('-c');
271
- expect(cmd.args).toContain('model_reasoning_effort=high');
272
- });
273
- it('should resolve codex-ultra and default to xhigh reasoning', () => {
274
- const cmd = buildCliCommand({
275
- prompt: 'test',
276
- workFolder: '/tmp',
277
- model: 'codex-ultra',
278
- cliPaths: DEFAULT_CLI_PATHS,
279
- });
280
- expect(cmd.agent).toBe('codex');
281
- expect(cmd.resolvedModel).toBe('gpt-5.4');
282
- expect(cmd.args).toContain('-c');
283
- expect(cmd.args).toContain('model_reasoning_effort=xhigh');
284
- });
285
- it('should allow overriding reasoning_effort for codex-ultra', () => {
286
- const cmd = buildCliCommand({
287
- prompt: 'test',
288
- workFolder: '/tmp',
289
- model: 'codex-ultra',
290
- reasoning_effort: 'low',
291
- cliPaths: DEFAULT_CLI_PATHS,
292
- });
293
- expect(cmd.args).toContain('model_reasoning_effort=low');
294
- expect(cmd.args).not.toContain('model_reasoning_effort=xhigh');
295
- });
296
- });
297
- describe('gemini agent', () => {
298
- it('should build gemini command', () => {
299
- const cmd = buildCliCommand({
300
- prompt: 'test',
301
- workFolder: '/tmp',
302
- model: 'gemini-2.5-pro',
303
- cliPaths: DEFAULT_CLI_PATHS,
304
- });
305
- expect(cmd.agent).toBe('gemini');
306
- expect(cmd.cliPath).toBe('/usr/bin/gemini');
307
- expect(cmd.args).toContain('-y');
308
- expect(cmd.args).toContain('--output-format');
309
- expect(cmd.args).toContain('stream-json');
310
- expect(cmd.args).toContain('--model');
311
- expect(cmd.args).toContain('gemini-2.5-pro');
312
- });
313
- it('should build gemini command with session_id', () => {
314
- const cmd = buildCliCommand({
315
- prompt: 'test',
316
- workFolder: '/tmp',
317
- model: 'gemini-2.5-pro',
318
- session_id: 'gem-789',
319
- cliPaths: DEFAULT_CLI_PATHS,
320
- });
321
- expect(cmd.args).toContain('-r');
322
- expect(cmd.args).toContain('gem-789');
323
- });
324
- it('should resolve gemini-ultra alias', () => {
325
- const cmd = buildCliCommand({
326
- prompt: 'test',
327
- workFolder: '/tmp',
328
- model: 'gemini-ultra',
329
- cliPaths: DEFAULT_CLI_PATHS,
330
- });
331
- expect(cmd.agent).toBe('gemini');
332
- expect(cmd.resolvedModel).toBe('gemini-3.1-pro-preview');
333
- });
334
- });
335
- describe('opencode agent', () => {
336
- it('should build default opencode command without --model', () => {
337
- const cmd = buildCliCommand({
338
- prompt: 'test',
339
- workFolder: '/tmp',
340
- model: 'opencode',
341
- cliPaths: DEFAULT_CLI_PATHS,
342
- });
343
- expect(cmd.agent).toBe('opencode');
344
- expect(cmd.cliPath).toBe('/usr/bin/opencode');
345
- expect(cmd.cwd).toBe('/tmp');
346
- expect(cmd.args).toEqual(['run', '--format', 'json', '--dir', '/tmp', 'test']);
347
- expect(cmd.args).not.toContain('--model');
348
- });
349
- it('should route valid explicit OpenCode model syntax', () => {
350
- const cmd = buildCliCommand({
351
- prompt: 'test',
352
- workFolder: '/tmp',
353
- model: 'oc-openai/gpt-5.4',
354
- cliPaths: DEFAULT_CLI_PATHS,
355
- });
356
- expect(cmd.agent).toBe('opencode');
357
- expect(cmd.resolvedModel).toBe('oc-openai/gpt-5.4');
358
- expect(cmd.args).toEqual([
359
- 'run',
360
- '--format',
361
- 'json',
362
- '--dir',
363
- '/tmp',
364
- '--model',
365
- 'openai/gpt-5.4',
366
- 'test',
367
- ]);
368
- });
369
- it.each([
370
- 'oc-',
371
- 'oc-openai',
372
- 'oc-/gpt-5.4',
373
- 'oc-openai/',
374
- ])('should reject invalid explicit OpenCode syntax: %s', (model) => {
375
- expect(() => buildCliCommand({
376
- prompt: 'test',
377
- workFolder: '/tmp',
378
- model,
379
- cliPaths: DEFAULT_CLI_PATHS,
380
- })).toThrow('Invalid OpenCode model. Expected exact syntax oc-<provider/model>.');
381
- });
382
- it.each([' oc-openai/gpt-5.4', 'oc-openai/gpt-5.4 '])('should reject explicit OpenCode models with surrounding whitespace: %s', (model) => {
383
- expect(() => buildCliCommand({
384
- prompt: 'test',
385
- workFolder: '/tmp',
386
- model,
387
- cliPaths: DEFAULT_CLI_PATHS,
388
- })).toThrow('Invalid OpenCode model. Expected exact syntax oc-<provider/model>.');
389
- });
390
- it('should reject reasoning_effort for OpenCode in command building', () => {
391
- expect(() => buildCliCommand({
392
- prompt: 'test',
393
- workFolder: '/tmp',
394
- model: 'opencode',
395
- reasoning_effort: 'high',
396
- cliPaths: DEFAULT_CLI_PATHS,
397
- })).toThrow('reasoning_effort is not supported for opencode.');
398
- });
399
- it('should build resumed default OpenCode command', () => {
400
- const cmd = buildCliCommand({
401
- prompt: 'resume prompt',
402
- workFolder: '/tmp',
403
- model: 'opencode',
404
- session_id: 'ses-123',
405
- cliPaths: DEFAULT_CLI_PATHS,
406
- });
407
- expect(cmd.args).toEqual([
408
- 'run',
409
- '--format',
410
- 'json',
411
- '--dir',
412
- '/tmp',
413
- '--session',
414
- 'ses-123',
415
- 'resume prompt',
416
- ]);
417
- expect(cmd.args).not.toContain('--model');
418
- });
419
- it('should build resumed explicit OpenCode command', () => {
420
- const cmd = buildCliCommand({
421
- prompt: 'resume prompt',
422
- workFolder: '/tmp',
423
- model: 'oc-openai/gpt-5.4',
424
- session_id: 'ses-456',
425
- cliPaths: DEFAULT_CLI_PATHS,
426
- });
427
- expect(cmd.args).toEqual([
428
- 'run',
429
- '--format',
430
- 'json',
431
- '--dir',
432
- '/tmp',
433
- '--session',
434
- 'ses-456',
435
- '--model',
436
- 'openai/gpt-5.4',
437
- 'resume prompt',
438
- ]);
439
- });
440
- });
441
- });
442
- });