neurastream 0.3.16 → 0.3.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neurastream",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "Guardrails for running many AI coding agents at once: plan queue, blockers, call budgets, provider caps, scoring, merge-verified close.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -2292,12 +2292,13 @@ function codeReviewProblem(file: string, after: string, ids: string[]): string |
2292
2292
  export function plannerBody(text: string): string {
2293
2293
  const body = q.outsideProgress(text).split("\n");
2294
2294
  let section = "";
2295
+ // Dropped lines are removed, not blanked: adding or deleting a Main-only line must not change the body.
2295
2296
  return body
2296
- .map((l) => {
2297
+ .flatMap((l) => {
2297
2298
  if (l.startsWith("## ")) section = l;
2298
- if (/^## +Done check\b/i.test(section)) return "";
2299
- if (/^## +Phases\b/i.test(section) && /^- \[[ x]\]/.test(l)) l = l.replace(/`verify:[^`]*`/g, "`verify:`");
2300
- return MAIN_ONLY_LINE.test(l) ? "" : l;
2299
+ if (/^## +Done check\b/i.test(section) || MAIN_ONLY_LINE.test(l)) return [];
2300
+ if (/^## +Phases\b/i.test(section) && /^- \[[ x]\]/.test(l)) return [l.replace(/`verify:[^`]*`/g, "`verify:`")];
2301
+ return [l];
2301
2302
  })
2302
2303
  .join("\n");
2303
2304
  }