@markjaquith/agency 2.1.0 → 2.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markjaquith/agency",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Manage agentic work across repositories with durable workbases",
5
5
  "keywords": [
6
6
  "agents",
@@ -247,7 +247,7 @@ describe("work command", () => {
247
247
  )
248
248
  })
249
249
 
250
- expect(logs).toEqual(["epic delivery"])
250
+ expect(logs).toEqual(["\x1b[35m\x1b[0m delivery"])
251
251
  expect(harness.launches).toEqual([])
252
252
  })
253
253
 
@@ -56,13 +56,13 @@ describe("work target choices", () => {
56
56
  )
57
57
 
58
58
  expect(choices.map((choice) => choice.label)).toEqual([
59
- "epic delivery - Ship the release",
60
- " task multi",
61
- " phase build",
62
- " phase verify",
63
- " phase unlisted",
64
- " task single",
65
- "task standalone - Independent work",
59
+ "\x1b[35m\x1b[0m delivery\x1b[2m - Ship the release\x1b[0m",
60
+ " \x1b[36m󰗡\x1b[0m multi",
61
+ " \x1b[33m󰔚\x1b[0m build",
62
+ " \x1b[33m󰔚\x1b[0m verify",
63
+ " \x1b[33m󰔚\x1b[0m unlisted",
64
+ " \x1b[36m󰗡\x1b[0m single",
65
+ "\x1b[36m󰗡\x1b[0m standalone\x1b[2m - Independent work\x1b[0m",
66
66
  ])
67
67
  expect(choices.map((choice) => choice.target.kind)).toEqual([
68
68
  "epic",
@@ -57,7 +57,13 @@ const label = (
57
57
  id: string,
58
58
  description?: string,
59
59
  ) =>
60
- `${indent}${kind} ${id}${description === undefined ? "" : ` - ${description}`}`
60
+ `${indent}${
61
+ {
62
+ epic: "\x1b[35m\x1b[0m",
63
+ task: "\x1b[36m󰗡\x1b[0m",
64
+ phase: "\x1b[33m󰔚\x1b[0m",
65
+ }[kind]
66
+ } ${id}${description === undefined ? "" : `\x1b[2m - ${description}\x1b[0m`}`
61
67
 
62
68
  const taskChoices = (
63
69
  task: TaskRecord,
@@ -164,7 +170,13 @@ export const pickWorkTarget: PickWorkTarget = (choices) =>
164
170
  .map((choice, index) => `${index}\t${choice.label}`)
165
171
  .join("\n")
166
172
  const process = Bun.spawn(
167
- ["fzf", "--delimiter=\t", "--with-nth=2..", "--prompt=Work on> "],
173
+ [
174
+ "fzf",
175
+ "--ansi",
176
+ "--delimiter=\t",
177
+ "--with-nth=2..",
178
+ "--prompt=Work on> ",
179
+ ],
168
180
  { stdin: new Blob([input]), stdout: "pipe", stderr: "inherit" },
169
181
  )
170
182
  const [exitCode, output] = await Promise.all([