@polderlabs/bizar 4.4.0 → 4.4.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.
Files changed (2) hide show
  1. package/cli/bin.mjs +17 -1
  2. package/package.json +2 -2
package/cli/bin.mjs CHANGED
@@ -832,7 +832,23 @@ async function runDash(dashArgs) {
832
832
 
833
833
  switch (sub) {
834
834
  case 'start':
835
- await dashModule.start(subOpts);
835
+ // v4.4.0 — When `--bg` is passed, spawn the dashboard as a
836
+ // detached child process via the dash module's startInBackground
837
+ // helper, then return. Without this, runDash calls startDashboard
838
+ // in-process; once the bin's main() resolves, the bin process
839
+ // exits and takes the dashboard's HTTP server with it. The
840
+ // downstream effect is "(intermediate value)(intermediate value)
841
+ // (intermediate value) is not a function or its return value is
842
+ // not iterable" — a pre-existing crash signature in this codepath.
843
+ if (subOpts.bg) {
844
+ // Spawn the dashboard as a detached child process. The child's
845
+ // argv is `node cli.mjs start --bg` so the dash module's own
846
+ // CLI dispatch hits the background branch and runs
847
+ // startDashboard in the child, not the parent.
848
+ await dashModule.startInBackground(['start', ...(subOpts.subArgs || [])]);
849
+ } else {
850
+ await dashModule.start(subOpts);
851
+ }
836
852
  break;
837
853
  case 'stop':
838
854
  await dashModule.stop(subOpts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polderlabs/bizar",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "description": "Norse-pantheon multi-agent system for opencode — 13 agents across 4 cost tiers with cost-aware routing, plans, and a configurable agent harness. v4 ships as a single npm package bundling the dashboard server, opencode plugin, and typed SDK.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -96,4 +96,4 @@
96
96
  "url": "https://github.com/DrB0rk/BizarHarness/issues"
97
97
  },
98
98
  "homepage": "https://github.com/DrB0rk/BizarHarness#readme"
99
- }
99
+ }