@helmsmith/workbrokr 0.2.0 → 0.3.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.
- package/SKILL.md +12 -0
- package/dist/cli.js +529 -94
- package/dist/cli.js.map +1 -1
- package/dist/core/index.js +98 -21
- package/dist/core/index.js.map +1 -1
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -55,3 +55,15 @@ Every command takes `--project-root <dir>`; without it the repo is the main chec
|
|
|
55
55
|
## Error codes
|
|
56
56
|
|
|
57
57
|
Refusals (exit 2): `MANIFEST_INVALID`, `AREA_UNKNOWN`, `TYPE_UNKNOWN`, `MODE_UNKNOWN`, `MAIN_CHECKOUT`, `PROTECTED_BRANCH`, `EFFORT_OPEN`, `EFFORT_NOT_FOUND`, `SCOPE_CONFLICT`, `COMMONS_LOCKED`, `NO_FREE_SLOT`, `LEASE_NOT_FOUND`, `PORT_RANGE_TAKEN`, `SYNC_CONFLICT`, `DIRTY_WORKTREE`, `UNPUSHED`. Faults (exit 1): `MANIFEST_NOT_FOUND`, `HEALTH_TIMEOUT` (the last probe output is attached), `SERVICE_FAILED`, `STORYBROKR_FAILED`, `GIT_FAILED`, `INTERNAL`.
|
|
58
|
+
|
|
59
|
+
## Opening the pull request: `work pr`
|
|
60
|
+
|
|
61
|
+
After the last commit on an effort, open its PR with the words you already know:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
work pr <area> --title "feat(area): what changed" --body-file /tmp/pr-body.md # --task <slug> for a task effort; --draft for a draft
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`work pr` pushes the branch first, then opens the PR through `pritty pr --no-push --auto-approve --json` against the manifest's base branch, and stores `{ number, url, draft }` on the effort (`work status` shows it). Run it again and it returns the same PR; pass `--title`/`--body-file` again to update the PR's words in place. If the stored PR was merged or closed it refuses with `PR_CLOSED`; `--force` opens a new one. Write the body in the repository's PR conventions; the attribution footer comes from pritty's `prFooter`, not from you. Always pass a title and a body: pritty's AI path is the fallback, never the default. Needs `@helmsmith/pritty` 0.1.1 or newer on PATH.
|
|
68
|
+
|
|
69
|
+
`--story` takes a path relative to the manifest's Storybook host (`app-ui` in skoolscout): a folder, a story or module file, or a bare stem such as `components/discover-schools/dashboards/charts/ChartSkeleton` (storybrokr 0.3.1 or newer resolves a stem to its file).
|