@staff0rd/assist 0.271.0 → 0.272.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/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.271.0",
9
+ version: "0.272.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -3758,12 +3758,8 @@ function buildPhasePrompt(item, phaseNumber, phase) {
3758
3758
  }
3759
3759
 
3760
3760
  // src/commands/backlog/buildResumePrompt.ts
3761
- function buildResumePrompt(phaseNumber, totalPhases) {
3762
- return [
3763
- `This conversation was interrupted partway through phase ${phaseNumber}/${totalPhases} by a restart.`,
3764
- "Review what you already did earlier in this conversation and continue from where you left off to finish the phase. Do not start the phase over.",
3765
- "When the phase is complete, run /verify and then the `assist backlog phase-done` command exactly as instructed earlier in this conversation."
3766
- ].join("\n");
3761
+ function buildResumePrompt() {
3762
+ return "A restart interrupted this conversation. Continue from where you left off.";
3767
3763
  }
3768
3764
 
3769
3765
  // src/commands/backlog/resolvePhaseResult.ts
@@ -3888,7 +3884,7 @@ async function executePhase(item, phaseIndex, phases, spawnOptions, totalPhases
3888
3884
  claudeSessionId
3889
3885
  });
3890
3886
  const { child, done: done2 } = spawnClaude(
3891
- resumeSessionId ? buildResumePrompt(phaseNumber, totalPhases) : buildPhasePrompt(item, phaseNumber, phase),
3887
+ resumeSessionId ? buildResumePrompt() : buildPhasePrompt(item, phaseNumber, phase),
3892
3888
  resumeSessionId ? spawnOptions : { ...spawnOptions, sessionId: claudeSessionId }
3893
3889
  );
3894
3890
  watchForMarker(child);
@@ -5913,7 +5909,12 @@ function buildSlashCommand(slashCommand, description) {
5913
5909
  async function launchMode(slashCommand, options2) {
5914
5910
  pullIfConfigured();
5915
5911
  process.env.ASSIST_SESSION_ID ??= String(process.pid);
5916
- emitActivity({ kind: "command", name: slashCommand });
5912
+ emitActivity({
5913
+ kind: "command",
5914
+ name: slashCommand,
5915
+ itemId: options2?.itemId,
5916
+ itemName: options2?.itemName
5917
+ });
5917
5918
  const { child, done: done2 } = spawnClaude(
5918
5919
  buildSlashCommand(slashCommand, options2?.description),
5919
5920
  { allowEdits: true }
@@ -5965,7 +5966,13 @@ async function pickItemForRefine() {
5965
5966
  async function refine(id, options2) {
5966
5967
  const itemId = id ?? await pickItemForRefine();
5967
5968
  if (!itemId) return;
5968
- await launchMode(`refine ${itemId}`, options2);
5969
+ const numericId = Number.parseInt(itemId, 10);
5970
+ const item = Number.isNaN(numericId) ? void 0 : await loadItem((await getReady()).orm, numericId);
5971
+ await launchMode(`refine ${itemId}`, {
5972
+ ...options2,
5973
+ itemId: item ? numericId : void 0,
5974
+ itemName: item?.name
5975
+ });
5969
5976
  }
5970
5977
 
5971
5978
  // src/commands/backlog/registerRefineCommand.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.271.0",
3
+ "version": "0.272.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {