@staff0rd/assist 0.233.2 → 0.234.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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/dist/index.js +24 -15
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -117,6 +117,7 @@ The first backlog command in a repository that still has a local `.assist/backlo
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
119
  - `assist backlog next` - Pick and run the next backlog item, or open `/draft` if none remain
120
+ - `assist backlog refine [id]` - Alias for `refine`
120
121
  - `assist backlog start <id>` - Set a backlog item to in-progress
121
122
  - `assist backlog stop` - Revert all in-progress backlog items to todo and reset their phase to 1
122
123
  - `assist backlog done <id>` - Set a backlog item to done
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.233.2",
9
+ version: "0.234.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -6243,29 +6243,38 @@ function registerShowCommands(cmd) {
6243
6243
  function registerWebCommand(cmd) {
6244
6244
  cmd.command("web").description("Open the backlog tab in the web dashboard").option("-p, --port <number>", "Port to listen on", "3100").action(web2);
6245
6245
  }
6246
+ function registerRefineCommand(cmd) {
6247
+ cmd.command("refine").argument("[id]", "Backlog item ID").description("Alias for refine").action((id) => refine(id));
6248
+ }
6246
6249
  function registerNextCommand(cmd) {
6247
6250
  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(
6248
6251
  (opts) => next({ allowEdits: opts.write !== false })
6249
6252
  );
6250
6253
  }
6254
+ var registrars = [
6255
+ registerItemCommands,
6256
+ registerShowCommands,
6257
+ registerStatusCommands,
6258
+ registerWebCommand,
6259
+ registerCommentCommands,
6260
+ registerLinkCommands,
6261
+ registerPlanCommands,
6262
+ registerRewindCommand,
6263
+ registerNextCommand,
6264
+ registerRefineCommand,
6265
+ registerRunCommand,
6266
+ registerSearchCommand,
6267
+ registerUpdateCommands,
6268
+ registerExportCommand,
6269
+ registerImportCommand
6270
+ ];
6251
6271
  function registerBacklog(program2) {
6252
6272
  const cmd = program2.command("backlog").description("Manage a backlog of work items").option("--dir <path>", "Override directory for backlog file discovery").hook("preAction", (thisCommand) => {
6253
6273
  setBacklogDir(thisCommand.opts().dir);
6254
6274
  }).action(() => web2({ port: "3100" }));
6255
- registerItemCommands(cmd);
6256
- registerShowCommands(cmd);
6257
- registerStatusCommands(cmd);
6258
- registerWebCommand(cmd);
6259
- registerCommentCommands(cmd);
6260
- registerLinkCommands(cmd);
6261
- registerPlanCommands(cmd);
6262
- registerRewindCommand(cmd);
6263
- registerNextCommand(cmd);
6264
- registerRunCommand(cmd);
6265
- registerSearchCommand(cmd);
6266
- registerUpdateCommands(cmd);
6267
- registerExportCommand(cmd);
6268
- registerImportCommand(cmd);
6275
+ for (const register of registrars) {
6276
+ register(cmd);
6277
+ }
6269
6278
  }
6270
6279
 
6271
6280
  // src/commands/cliHook/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.233.2",
3
+ "version": "0.234.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {