@staff0rd/assist 0.236.0 → 0.238.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 +3 -3
- package/allowed.cli-reads +2 -0
- package/dist/allowed.cli-reads +2 -0
- package/dist/index.js +20 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -107,7 +107,7 @@ The first backlog command in a repository that still has a local `.assist/backlo
|
|
|
107
107
|
|
|
108
108
|
- `assist backlog [--dir <path>]` - Open the backlog tab in the web dashboard (same as `backlog web`). `--dir` overrides the directory used to resolve the current repository's git origin
|
|
109
109
|
- `assist backlog init` - Create an empty backlog
|
|
110
|
-
- `assist backlog list [--status <type>] [-a, --all] [--all-repos] [-v]` - List backlog items with status icons (alias: `ls`). Defaults to the current repository's todo/in-progress items; `--all` includes done/wontdo, `--all-repos` lists items across all repositories
|
|
110
|
+
- `assist backlog list [--status <type>] [-a, --all] [--all-repos] [-v]` - List backlog items with status icons (alias: `ls`). Defaults to the current repository's todo/in-progress items; `--all` includes done/wontdo, `--all-repos` lists items across all repositories. Also available as the top-level shortcut `assist list` / `assist ls` with the same flags
|
|
111
111
|
- `assist backlog add` - Add a new backlog item interactively (prompts for type: story/bug)
|
|
112
112
|
- `assist backlog add --name <n> --type <t> --desc <d> --ac <criterion...>` - Add a backlog item from CLI options (used by `/draft`)
|
|
113
113
|
- `assist backlog add-phase <id> <name> --task <t...> [--manual-check <c...>] [--position <pos>]` - Add a phase (appends by default; `--position` inserts at a 1-indexed position)
|
|
@@ -116,7 +116,7 @@ The first backlog command in a repository that still has a local `.assist/backlo
|
|
|
116
116
|
- `assist backlog update-phase <id> <phase> [--name <n>] [--task <t...>] [--manual-check <c...>]` - Modify a plan phase (name, tasks, or manual checks)
|
|
117
117
|
- `assist backlog update-phase <id> <phase> [--add-task <text>] [--edit-task <n> <text>] [--remove-task <n>] [--add-check <text>] [--edit-check <n> <text>] [--remove-check <n>]` - Granular task and manual-check edits using 1-based indices matching `backlog show`: `--add-*` appends (repeatable), `--edit-*` replaces entry n in place, `--remove-*` deletes entry n and renumbers the rest (task ops cannot be combined with `--task`; check ops cannot be combined with `--manual-check`)
|
|
118
118
|
- `assist backlog remove-phase <id> <phase>` - Remove a plan phase from a backlog item
|
|
119
|
-
- `assist backlog next` - Pick and run the next backlog item, or open `/draft` if none remain
|
|
119
|
+
- `assist backlog next [id]` - Pick and run the next backlog item, or open `/draft` if none remain; pass an `id` to run that item first, then continue chaining
|
|
120
120
|
- `assist backlog refine [id]` - Alias for `refine`
|
|
121
121
|
- `assist backlog start <id>` - Set a backlog item to in-progress
|
|
122
122
|
- `assist backlog stop` - Revert all in-progress backlog items to todo and reset their phase to 1
|
|
@@ -237,7 +237,7 @@ The first backlog command in a repository that still has a local `.assist/backlo
|
|
|
237
237
|
- `assist sessions` - Start the web dashboard (same as `sessions web`)
|
|
238
238
|
- `assist sessions web [-p, --port <number>]` - Start the web dashboard with Sessions and Backlog tabs, xterm.js terminals (default port 3100)
|
|
239
239
|
- `assist sessions summarise [-f, --force] [-n, --limit <count>]` - Generate one-line summaries for unsummarised Claude sessions (force re-generates all; limit caps how many to process)
|
|
240
|
-
- `assist next` - Alias for `backlog next`
|
|
240
|
+
- `assist next [id]` - Alias for `backlog next [id]`
|
|
241
241
|
- `assist draft` (alias: `feat`) - Launch Claude in `/draft` mode, chain into next on `/next` signal
|
|
242
242
|
- `assist bug` - Launch Claude in `/bug` mode, chain into next on `/next` signal
|
|
243
243
|
- `assist refine [id]` - Launch Claude in `/refine` mode to refine a backlog item; prompts for selection when no id given
|
package/allowed.cli-reads
CHANGED
package/dist/allowed.cli-reads
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.238.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -3798,12 +3798,14 @@ async function pickItem(items2, firstPick = false) {
|
|
|
3798
3798
|
const todo = items2.filter((i) => i.status === "todo");
|
|
3799
3799
|
return selectItem(todo, items2);
|
|
3800
3800
|
}
|
|
3801
|
-
async function next(options2) {
|
|
3801
|
+
async function next(options2, startId) {
|
|
3802
3802
|
if (blockedByHandover()) return;
|
|
3803
3803
|
pullIfConfigured();
|
|
3804
|
+
let pendingId = startId;
|
|
3804
3805
|
let firstPick = true;
|
|
3805
3806
|
while (true) {
|
|
3806
|
-
const id = await pickItem(await loadBacklog(), firstPick);
|
|
3807
|
+
const id = pendingId ?? await pickItem(await loadBacklog(), firstPick);
|
|
3808
|
+
pendingId = void 0;
|
|
3807
3809
|
firstPick = false;
|
|
3808
3810
|
if (id === void 0) return;
|
|
3809
3811
|
const completed = await run2(id, options2);
|
|
@@ -6330,8 +6332,8 @@ function registerRefineCommand(cmd) {
|
|
|
6330
6332
|
cmd.command("refine").argument("[id]", "Backlog item ID").description("Alias for refine").action((id) => refine(id));
|
|
6331
6333
|
}
|
|
6332
6334
|
function registerNextCommand(cmd) {
|
|
6333
|
-
cmd.command("next").description("Pick and run the next backlog item, or open /draft if none").option("-w, --write", "Run Claude with auto permission mode (default)").option("--no-write", "Run Claude without auto permission mode").action(
|
|
6334
|
-
(opts) => next({ allowEdits: opts.write !== false })
|
|
6335
|
+
cmd.command("next").argument("[id]", "Backlog item ID to run first").description("Pick and run the next backlog item, or open /draft if none").option("-w, --write", "Run Claude with auto permission mode (default)").option("--no-write", "Run Claude without auto permission mode").action(
|
|
6336
|
+
(id, opts) => next({ allowEdits: opts.write !== false }, id)
|
|
6335
6337
|
);
|
|
6336
6338
|
}
|
|
6337
6339
|
var registrars = [
|
|
@@ -9677,7 +9679,7 @@ async function reviewComments(number) {
|
|
|
9677
9679
|
|
|
9678
9680
|
// src/commands/registerLaunch.ts
|
|
9679
9681
|
function registerLaunch(program2) {
|
|
9680
|
-
program2.command("next").description("Alias for backlog next").action(() => next({ allowEdits: true }));
|
|
9682
|
+
program2.command("next").argument("[id]", "Backlog item ID to run first").description("Alias for backlog next").action((id) => next({ allowEdits: true }, id));
|
|
9681
9683
|
program2.command("draft").alias("feat").description(
|
|
9682
9684
|
"Launch Claude in /draft mode, chain into next on /next signal"
|
|
9683
9685
|
).action(() => launchMode("draft"));
|
|
@@ -9686,6 +9688,17 @@ function registerLaunch(program2) {
|
|
|
9686
9688
|
program2.command("refine").argument("[id]", "Backlog item ID").description("Launch Claude in /refine mode to refine a backlog item").action((id) => refine(id));
|
|
9687
9689
|
}
|
|
9688
9690
|
|
|
9691
|
+
// src/commands/registerList.ts
|
|
9692
|
+
function registerList(program2) {
|
|
9693
|
+
program2.command("list").alias("ls").description("Alias for backlog list").option(
|
|
9694
|
+
"--status <type>",
|
|
9695
|
+
"Filter by status (todo, in-progress, done, wontdo)"
|
|
9696
|
+
).option("-a, --all", "Include done/wontdo items").option("--all-repos", "List items across all repositories").option("-v, --verbose", "Show all item details").option("--dir <path>", "Override directory for backlog file discovery").action((options2) => {
|
|
9697
|
+
setBacklogDir(options2.dir);
|
|
9698
|
+
return list2(options2);
|
|
9699
|
+
});
|
|
9700
|
+
}
|
|
9701
|
+
|
|
9689
9702
|
// src/commands/mermaid/index.ts
|
|
9690
9703
|
import { mkdirSync as mkdirSync8, readdirSync as readdirSync5 } from "fs";
|
|
9691
9704
|
import { resolve as resolve10 } from "path";
|
|
@@ -17093,6 +17106,7 @@ registerMermaid(program);
|
|
|
17093
17106
|
registerPrs(program);
|
|
17094
17107
|
registerRoam(program);
|
|
17095
17108
|
registerBacklog(program);
|
|
17109
|
+
registerList(program);
|
|
17096
17110
|
registerVerify(program);
|
|
17097
17111
|
registerRefactor(program);
|
|
17098
17112
|
registerReview(program);
|