@markjaquith/agency 2.71.3 → 2.71.4
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 +2 -1
- package/src/commands/task.ts +14 -7
- package/src/work-view.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markjaquith/agency",
|
|
3
|
-
"version": "2.71.
|
|
3
|
+
"version": "2.71.4",
|
|
4
4
|
"description": "Manage agentic work across repositories with durable workbases",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"benchmark:workbase": "bun scripts/benchmark-workbase.ts",
|
|
69
69
|
"benchmark:context": "bun scripts/benchmark-context.ts",
|
|
70
70
|
"benchmark:sync": "bun scripts/benchmark-sync.ts",
|
|
71
|
+
"benchmark:task": "bun scripts/benchmark-task.ts",
|
|
71
72
|
"test": "find src \\( -name '*.test.ts' -o -name '*.test.tsx' \\) -print0 | xargs -0 -n 1 -P 4 bun test",
|
|
72
73
|
"test:opencode": "AGENCY_TEST_OPENCODE=1 bun test src/cli.test.ts --test-name-pattern 'provides effective whole-workbase OpenCode access'",
|
|
73
74
|
"format": "oxfmt",
|
package/src/commands/task.ts
CHANGED
|
@@ -360,8 +360,7 @@ export const task = (
|
|
|
360
360
|
return
|
|
361
361
|
}
|
|
362
362
|
case "list": {
|
|
363
|
-
const
|
|
364
|
-
const { taskRows } = yield* getWorkViews({
|
|
363
|
+
const { taskRows, tasks: taskNodes } = yield* getWorkViews({
|
|
365
364
|
cwd,
|
|
366
365
|
statuses: options.statuses,
|
|
367
366
|
repositories: options.repositories,
|
|
@@ -369,14 +368,22 @@ export const task = (
|
|
|
369
368
|
blocked: options.blocked,
|
|
370
369
|
pr: options.pr,
|
|
371
370
|
})
|
|
372
|
-
const ordered = taskRows.flatMap((row) => {
|
|
373
|
-
const record = records.find((item) => item.id === row.key)
|
|
374
|
-
return record ? [record] : []
|
|
375
|
-
})
|
|
376
371
|
if (options.json) {
|
|
377
372
|
log(
|
|
378
373
|
JSON.stringify(
|
|
379
|
-
|
|
374
|
+
taskRows.flatMap((row) => {
|
|
375
|
+
const node = taskNodes.get(row.key)
|
|
376
|
+
if (!node?.workspace) return []
|
|
377
|
+
const { sha256, ...data } = node.data
|
|
378
|
+
return [
|
|
379
|
+
{
|
|
380
|
+
id: row.key,
|
|
381
|
+
path: node.workspace.documentPath,
|
|
382
|
+
revision: sha256,
|
|
383
|
+
data,
|
|
384
|
+
},
|
|
385
|
+
]
|
|
386
|
+
}),
|
|
380
387
|
null,
|
|
381
388
|
2,
|
|
382
389
|
),
|
package/src/work-view.ts
CHANGED
|
@@ -262,5 +262,5 @@ export const getWorkViews = (options: WorkViewOptions = {}) =>
|
|
|
262
262
|
}
|
|
263
263
|
const executionRows = filterRows(makeRows(executionEntities))
|
|
264
264
|
|
|
265
|
-
return { epicRows, taskRows, phaseRows, executionRows }
|
|
265
|
+
return { epicRows, taskRows, phaseRows, executionRows, tasks }
|
|
266
266
|
})
|