neurastream 0.3.24 → 0.3.25

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.24",
3
+ "version": "0.3.25",
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",
@@ -2,7 +2,7 @@
2
2
 
3
3
  import path from "node:path";
4
4
  import type { Decision, InjectEvent, StopEvent } from "../adapter.ts";
5
- import { currentTier } from "../autonomy.ts";
5
+ import { currentPlanner, currentTier } from "../autonomy.ts";
6
6
  import type { Config } from "../config.ts";
7
7
  import { withFileLock, writeAtomicSync } from "../file-lock.ts";
8
8
  import * as q from "../queue/lib.ts";
@@ -44,9 +44,11 @@ export function flagCancel(text: string, cfg: Config): string {
44
44
  return `\nmain-guard: ${CANCEL_TODO} Flagged: "${words}"`;
45
45
  }
46
46
 
47
- /** The owner prompt's Tools-and-limits card: the call cap and the open plans' deny-command blockers, three lines at most. */
47
+ /** The owner prompt's Tools-and-limits card: the call cap, planner mode, approval gate and the open plans' deny-command blockers, three lines at most. */
48
48
  function toolsCard(cfg: Config, tier: string, plans: q.Plan[]): string[] {
49
- const calls = mainCallsCapOn(cfg, tier) ? `Calls: ${cfg.guards.main_max_calls} per turn (warn at ${cfg.guards.main_warn_calls})` : "Calls: off";
49
+ const cap = mainCallsCapOn(cfg, tier) ? `Calls: ${cfg.guards.main_max_calls} per turn (warn at ${cfg.guards.main_warn_calls})` : "Calls: off";
50
+ const approval = cfg.approval.since ? `plans stamped >= ${cfg.approval.since} need page + approve` : "off";
51
+ const calls = `${cap} | planner: ${currentPlanner(cfg)} | approval: ${approval}`;
50
52
  const denies = plans.flatMap(p => p.blockers.filter(b => path.basename(b.script) === "deny-command").map(b => `${path.basename(p.file)}: ${b.args.join(" ")}`));
51
53
  if (!denies.length) return ["Tools and limits", calls];
52
54
  const more = denies.length > 3 ? ` | +${denies.length - 3} more` : "";