neurastream 0.3.6 → 0.3.7

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.6",
3
+ "version": "0.3.7",
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",
@@ -562,6 +562,8 @@ export async function runTopics(cfg: Config, complete: Complete, opts: { close:
562
562
  const rows = effectiveRows();
563
563
  const window = newEntries(afterClosed(rows)).slice(0, WINDOW);
564
564
  if (window.length === 0) return { lines: [statsLine(tally)], failures: 0 };
565
+ const last = rows.at(-1);
566
+ if (last !== undefined && isSegment(last) && last.open && window.at(-1)!.id === last.to) return { lines: [statsLine(tally)], failures: 0 };
565
567
  const failed = await segmentWindow(cfg, complete, window, rows, tally);
566
568
  const lines = failed
567
569
  ? [`topics: fail ${window[0]!.id}..${window.at(-1)!.id} ${failed.reason} in=${failed.in} out=${failed.out}`]