@staff0rd/assist 0.237.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 +2 -2
- package/dist/index.js +8 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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/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"));
|