@markjaquith/agency 0.7.2 → 0.7.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markjaquith/agency",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Manages personal agents files",
5
5
  "license": "MIT",
6
6
  "author": "Mark Jaquith",
@@ -141,7 +141,7 @@ describe("work command", () => {
141
141
  restore()
142
142
 
143
143
  expect(spawnCalled).toBe(true)
144
- expect(spawnArgs).toEqual(["opencode", "-p", "Start the task"])
144
+ expect(spawnArgs).toEqual(["opencode", "--prompt", "Start the task"])
145
145
  })
146
146
  })
147
147
 
@@ -171,7 +171,7 @@ describe("work command", () => {
171
171
 
172
172
  restore()
173
173
 
174
- expect(capturedArgs).toEqual(["opencode", "-p", "Start the task"])
174
+ expect(capturedArgs).toEqual(["opencode", "--prompt", "Start the task"])
175
175
  // On macOS, temp directories can have /private prefix
176
176
  expect(
177
177
  capturedOptions.cwd === tempDir ||
@@ -278,7 +278,7 @@ describe("work command", () => {
278
278
 
279
279
  restore()
280
280
 
281
- expect(capturedArgs).toEqual(["opencode", "-p", "Start the task"])
281
+ expect(capturedArgs).toEqual(["opencode", "--prompt", "Start the task"])
282
282
  })
283
283
 
284
284
  test("--claude flag forces use of Claude Code", async () => {
@@ -387,7 +387,7 @@ describe("work command", () => {
387
387
 
388
388
  expect(capturedArgs).toEqual([
389
389
  "opencode",
390
- "-p",
390
+ "--prompt",
391
391
  "Start the task",
392
392
  "--model",
393
393
  "claude-sonnet-4-20250514",
@@ -456,7 +456,7 @@ describe("work command", () => {
456
456
 
457
457
  restore()
458
458
 
459
- expect(capturedArgs).toEqual(["opencode", "-p", "Start the task"])
459
+ expect(capturedArgs).toEqual(["opencode", "--prompt", "Start the task"])
460
460
  })
461
461
  })
462
462
  })
@@ -117,7 +117,7 @@ export const work = (options: WorkOptions = {}) =>
117
117
 
118
118
  const cliName = useOpencode ? "opencode" : "claude"
119
119
  const baseArgs = useOpencode
120
- ? [cliName, "-p", "Start the task"]
120
+ ? [cliName, "--prompt", "Start the task"]
121
121
  : [cliName, "Start the task"]
122
122
 
123
123
  // Append extra args if provided