@srobroek/pi-speckit-beads 3.2.5 → 3.2.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## speckit-beads [3.2.6](https://github.com/srobroek/harness-plugins/compare/speckit-beads--v3.2.5...speckit-beads--v3.2.6) (2026-12-05)
2
+
3
+ ### Bug Fixes
4
+
5
+ * review follow-ups from the sweep PRs (speckit-beads, ratchet, code-challenge, docs, tests) ([#385](https://github.com/srobroek/harness-plugins/issues/385)) ([4fa9eb6](https://github.com/srobroek/harness-plugins/commit/4fa9eb6570bccea9d0dfae1a7b4af4922b5876b5))
6
+
1
7
  ## speckit-beads [3.2.5](https://github.com/srobroek/harness-plugins/compare/speckit-beads--v3.2.4...speckit-beads--v3.2.5) (2026-12-05)
2
8
 
3
9
  ### Bug Fixes
@@ -3180,6 +3180,14 @@ function createdRootOf(created, formula) {
3180
3180
  const id = mapping[formula];
3181
3181
  return typeof id === "string" ? id : undefined;
3182
3182
  }
3183
+ function captureUtf8(stream) {
3184
+ let text = "";
3185
+ stream.setEncoding("utf8");
3186
+ stream.on("data", (chunk) => {
3187
+ text += chunk;
3188
+ });
3189
+ return () => text;
3190
+ }
3183
3191
  async function runSpecStart(options, signal, commandMs = COMMAND_MS, module = BEADS_LOCK, timers = globalThis) {
3184
3192
  const started = Date.now();
3185
3193
  const cwd = realpathSync4(options.workspace);
@@ -3241,16 +3249,8 @@ async function runSpecStart(options, signal, commandMs = COMMAND_MS, module = BE
3241
3249
  timers.clearTimeout(grace);
3242
3250
  signal?.removeEventListener("abort", cancel);
3243
3251
  };
3244
- let stdout = "";
3245
- let stderr = "";
3246
- child.stdout.setEncoding("utf8");
3247
- child.stderr.setEncoding("utf8");
3248
- child.stdout.on("data", (text) => {
3249
- stdout += text;
3250
- });
3251
- child.stderr.on("data", (text) => {
3252
- stderr += text;
3253
- });
3252
+ const stdout = captureUtf8(child.stdout);
3253
+ const stderr = captureUtf8(child.stderr);
3254
3254
  child.on("error", (error) => {
3255
3255
  settle();
3256
3256
  reject(error);
@@ -3262,7 +3262,7 @@ async function runSpecStart(options, signal, commandMs = COMMAND_MS, module = BE
3262
3262
  return;
3263
3263
  }
3264
3264
  if (code !== 0) {
3265
- reject(new Error(stderr.trim() || `Beads command exited ${code}; inspect the run before retrying`));
3265
+ reject(new Error(stderr().trim() || `Beads command exited ${code}; inspect the run before retrying`));
3266
3266
  return;
3267
3267
  }
3268
3268
  completedSteps.push(step);
@@ -3272,7 +3272,7 @@ async function runSpecStart(options, signal, commandMs = COMMAND_MS, module = BE
3272
3272
  }
3273
3273
  let value;
3274
3274
  try {
3275
- value = JSON.parse(stdout);
3275
+ value = JSON.parse(stdout());
3276
3276
  } catch {
3277
3277
  reject(new Error("Beads returned invalid JSON; inspect the run before retrying"));
3278
3278
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srobroek/pi-speckit-beads",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "description": "SpecKit on Beads: a tasks.md guard, setup, ledger and bugfix skills, formulas, and the speckit-sync and speckit-verify subagents.",
5
5
  "keywords": [
6
6
  "pi-package"