@markjaquith/agency 2.52.1 → 2.53.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/README.md +11 -10
- package/cli-main.ts +845 -0
- package/cli.ts +15 -850
- package/package.json +2 -1
- package/src/cli-parser.test.ts +9 -5
- package/src/cli-parser.ts +35 -17
- package/src/cli.test.ts +30 -16
- package/src/commands/pr.test.ts +139 -37
- package/src/commands/pr.ts +23 -35
- package/src/services/FileSystemService.ts +17 -8
- package/src/services/TaskService.ts +1 -1
- package/src/services/VcsMigrationService.test.ts +46 -0
- package/src/services/VcsMigrationService.ts +35 -21
- package/src/services/VersionControlService.ts +9 -3
- package/src/services/WorktreeService.ts +234 -40
- package/src/vcs-status-fast.ts +315 -0
- package/src/workbase/AGENTS.md +2 -2
- package/src/workbase/opencode-plugin-file.ts +31 -4
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ read or write.
|
|
|
10
10
|
- [Bun](https://bun.sh) 1.0 or newer
|
|
11
11
|
- Git
|
|
12
12
|
- [Jujutsu](https://jj-vcs.github.io/jj/) is preferred when available
|
|
13
|
-
- [GitHub CLI](https://cli.github.com/) for `agency pr
|
|
13
|
+
- [GitHub CLI](https://cli.github.com/) for `agency pr`
|
|
14
14
|
- OpenCode, Claude Code, or a configured runner for `agency work`
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
@@ -401,7 +401,8 @@ agency task new
|
|
|
401
401
|
agency validate
|
|
402
402
|
agency context tasks/refresh-copy --json
|
|
403
403
|
agency work tasks/refresh-copy
|
|
404
|
-
|
|
404
|
+
cd tasks/refresh-copy
|
|
405
|
+
agency pr create --fill
|
|
405
406
|
```
|
|
406
407
|
|
|
407
408
|
After cloning an existing workbase on another machine, restore its declared
|
|
@@ -476,10 +477,10 @@ priority ready unit in human output.
|
|
|
476
477
|
execution unit. Excluded entries retain status, terminal state, `blockedBy`, and
|
|
477
478
|
detailed dependency, validation, or status blockers for orchestrators.
|
|
478
479
|
|
|
479
|
-
`agency work`
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
480
|
+
`agency work` consults this shared readiness model before materializing. Blocked,
|
|
481
|
+
done, and dropped targets are rejected unless `--force` is supplied explicitly.
|
|
482
|
+
`agency pr` leaves command semantics to `gh`; run `agency context . --json` first
|
|
483
|
+
when readiness or validation state needs inspection.
|
|
483
484
|
|
|
484
485
|
### Reconciliation
|
|
485
486
|
|
|
@@ -803,7 +804,7 @@ for restoration. Archived IDs are reserved until restored.
|
|
|
803
804
|
agency work [<directory> | --epic <epic-id>] [--runner <name>] [--auto] [--print-command]
|
|
804
805
|
agency work prepare [target] [--dry-run] [--json]
|
|
805
806
|
agency worktree <list|inspect|prepare|remove|rebuild|repair>
|
|
806
|
-
agency pr
|
|
807
|
+
agency pr [args...]
|
|
807
808
|
```
|
|
808
809
|
|
|
809
810
|
`agency work` presents the full hierarchy in the native OpenTUI selector or the
|
|
@@ -849,9 +850,9 @@ Agency resolves the ref to a commit and creates a detached worktree. Existing
|
|
|
849
850
|
reference worktrees are reused only while their commit still matches the declared
|
|
850
851
|
ref; use a commit SHA as `ref` when reproducibility matters.
|
|
851
852
|
|
|
852
|
-
`agency pr
|
|
853
|
-
|
|
854
|
-
the
|
|
853
|
+
`agency pr` forwards every argument to `gh pr`. From an execution task or phase
|
|
854
|
+
directory, including descendants, it runs in that execution unit's authoritative
|
|
855
|
+
writable checkout. Otherwise it runs in the caller's current directory.
|
|
855
856
|
|
|
856
857
|
### Status and Validation
|
|
857
858
|
|