@markjaquith/agency 2.39.0 → 2.39.1

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 (2) hide show
  1. package/package.json +2 -1
  2. package/src/cli.test.ts +17 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markjaquith/agency",
3
- "version": "2.39.0",
3
+ "version": "2.39.1",
4
4
  "description": "Manage agentic work across repositories with durable workbases",
5
5
  "keywords": [
6
6
  "agents",
@@ -59,6 +59,7 @@
59
59
  },
60
60
  "scripts": {
61
61
  "test": "find src \\( -name '*.test.ts' -o -name '*.test.tsx' \\) -print0 | xargs -0 -n 1 -P 4 bun test",
62
+ "test:opencode": "AGENCY_TEST_OPENCODE=1 bun test src/cli.test.ts --test-name-pattern 'provides effective whole-workbase OpenCode access'",
62
63
  "format": "oxfmt",
63
64
  "format:check": "oxfmt --check",
64
65
  "knip": "knip --production",
package/src/cli.test.ts CHANGED
@@ -416,7 +416,7 @@ describe("CLI", () => {
416
416
  })
417
417
 
418
418
  test("routes command help and global options on either side of commands", async () => {
419
- for (const [command, usage] of [
419
+ const commands = [
420
420
  ["init", "Usage: agency init"],
421
421
  ["workbase", "Usage: agency workbase"],
422
422
  ["integration", "Usage: agency integration"],
@@ -433,11 +433,19 @@ describe("CLI", () => {
433
433
  ["context", "Usage: agency context"],
434
434
  ["graph", "Usage: agency graph"],
435
435
  ["next", "Usage: agency next"],
436
- ] as const) {
437
- const result = await runCli([command, "--help"])
438
- expect(result.exitCode).toBe(0)
439
- expect(result.stdout).toContain(usage)
440
- expect(result.stderr).toBe("")
436
+ ] as const
437
+ for (let offset = 0; offset < commands.length; offset += 4) {
438
+ const results = await Promise.all(
439
+ commands.slice(offset, offset + 4).map(async ([command, usage]) => ({
440
+ usage,
441
+ result: await runCli([command, "--help"]),
442
+ })),
443
+ )
444
+ for (const { result, usage } of results) {
445
+ expect(result.exitCode).toBe(0)
446
+ expect(result.stdout).toContain(usage)
447
+ expect(result.stderr).toBe("")
448
+ }
441
449
  }
442
450
 
443
451
  const helpBefore = await runCli(["--help", "task"])
@@ -836,7 +844,9 @@ status: open
836
844
  ).toBe("example\n")
837
845
  })
838
846
 
839
- test.skipIf(Bun.which("opencode") === null)(
847
+ test.skipIf(
848
+ Bun.which("opencode") === null || process.env.AGENCY_TEST_OPENCODE !== "1",
849
+ )(
840
850
  "provides effective whole-workbase OpenCode access from every launch topology",
841
851
  async () => {
842
852
  const parent = await createTempDir()