@staff0rd/assist 0.252.0 → 0.253.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/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.252.0",
9
+ version: "0.253.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -5511,10 +5511,17 @@ Running backlog item #${id}...
5511
5511
  }
5512
5512
 
5513
5513
  // src/commands/backlog/launchMode.ts
5514
+ function buildSlashCommand(slashCommand, description) {
5515
+ const trimmed = description?.trim();
5516
+ return trimmed ? `/${slashCommand} ${trimmed}` : `/${slashCommand}`;
5517
+ }
5514
5518
  async function launchMode(slashCommand, options2) {
5515
5519
  pullIfConfigured();
5516
5520
  process.env.ASSIST_SESSION_ID = String(process.pid);
5517
- const { child, done: done2 } = spawnClaude(`/${slashCommand}`, { allowEdits: true });
5521
+ const { child, done: done2 } = spawnClaude(
5522
+ buildSlashCommand(slashCommand, options2?.description),
5523
+ { allowEdits: true }
5524
+ );
5518
5525
  watchForMarker(child, { actOnDone: options2?.once });
5519
5526
  await done2;
5520
5527
  stopWatching();
@@ -9677,13 +9684,13 @@ function registerLaunch(program2) {
9677
9684
  program2.command("next").argument("[id]", "Backlog item ID to run first").description("Alias for backlog next").option("--once", "Exit after the first completed item run").action(
9678
9685
  (id, opts) => next({ allowEdits: true, once: opts.once }, id)
9679
9686
  );
9680
- program2.command("draft").alias("feat").description(
9687
+ program2.command("draft").alias("feat").argument("[description]", "Text to forward to the /draft slash command").description(
9681
9688
  "Launch Claude in /draft mode, chain into next on /next signal"
9682
9689
  ).option("--once", "Exit when the initial task completes").action(
9683
- (opts) => launchMode("draft", { once: opts.once })
9690
+ (description, opts) => launchMode("draft", { once: opts.once, description })
9684
9691
  );
9685
- program2.command("bug").description("Launch Claude in /bug mode, chain into next on /next signal").option("--once", "Exit when the initial task completes").action(
9686
- (opts) => launchMode("bug", { once: opts.once })
9692
+ program2.command("bug").argument("[description]", "Text to forward to the /bug slash command").description("Launch Claude in /bug mode, chain into next on /next signal").option("--once", "Exit when the initial task completes").action(
9693
+ (description, opts) => launchMode("bug", { once: opts.once, description })
9687
9694
  );
9688
9695
  program2.command("review-comments").argument("[number]", "PR number to check out first").description("Launch Claude in /review-comments mode (single session)").action((number) => reviewComments(number));
9689
9696
  program2.command("refine").argument("[id]", "Backlog item ID").description("Launch Claude in /refine mode to refine a backlog item").option("--once", "Exit when the initial task completes").action(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.252.0",
3
+ "version": "0.253.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {