@staff0rd/assist 0.352.1 → 0.353.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.352.1",
9
+ version: "0.353.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -4814,17 +4814,17 @@ import chalk41 from "chalk";
4814
4814
 
4815
4815
  // src/shared/awaitClaude.ts
4816
4816
  import chalk39 from "chalk";
4817
+ var CLAUDE_SPAWN_FAILED = null;
4817
4818
  async function awaitClaude(done2, context) {
4818
4819
  try {
4819
- await done2;
4820
- return true;
4820
+ return await done2;
4821
4821
  } catch (error) {
4822
4822
  const message = error instanceof Error ? error.message : String(error);
4823
4823
  console.error(
4824
4824
  chalk39.red(`
4825
4825
  Failed to launch Claude for ${context}: ${message}`)
4826
4826
  );
4827
- return false;
4827
+ return CLAUDE_SPAWN_FAILED;
4828
4828
  }
4829
4829
  }
4830
4830
 
@@ -5195,12 +5195,12 @@ async function executePhase(item, phaseIndex, phases, spawnOptions, totalPhases
5195
5195
  resumeSessionId ? spawnOptions : { ...spawnOptions, sessionId: claudeSessionId }
5196
5196
  );
5197
5197
  watchForMarker(child);
5198
- const launched = await awaitClaude(
5198
+ const exitCode = await awaitClaude(
5199
5199
  done2,
5200
5200
  `phase ${phaseNumber}/${totalPhases}`
5201
5201
  );
5202
5202
  stopWatching();
5203
- if (!launched) return -1;
5203
+ if (exitCode === CLAUDE_SPAWN_FAILED) return -1;
5204
5204
  void setSessionStatus("running");
5205
5205
  return await resolvePhaseResult(phaseIndex, item.id);
5206
5206
  }
@@ -8216,10 +8216,11 @@ async function launchMode(slashCommand, options2) {
8216
8216
  { allowEdits: true, sessionId: claudeSessionId, resumeSessionId }
8217
8217
  );
8218
8218
  watchForMarker(child, { actOnDone: options2?.once });
8219
- const launched = await awaitClaude(done2, `/${slashCommand}`);
8219
+ const exitCode = await awaitClaude(done2, `/${slashCommand}`);
8220
8220
  stopWatching();
8221
- if (!launched) return;
8221
+ if (exitCode === CLAUDE_SPAWN_FAILED) return;
8222
8222
  await handleLaunchSignal(slashCommand, options2?.once);
8223
+ if (exitCode !== 0) process.exitCode = exitCode;
8223
8224
  }
8224
8225
 
8225
8226
  // src/commands/backlog/refine.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.352.1",
3
+ "version": "0.353.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {