@polderlabs/bizar 3.15.0 → 3.15.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.
- package/cli/bin.mjs +14 -16
- package/cli/update.mjs +45 -29
- package/package.json +1 -1
package/cli/bin.mjs
CHANGED
|
@@ -84,7 +84,7 @@ function showHelp() {
|
|
|
84
84
|
plan <subcommand> Manage visual plans
|
|
85
85
|
graph Per-project knowledge graph (powered by graphify)
|
|
86
86
|
test-gate Detect & run the project's test suite
|
|
87
|
-
update
|
|
87
|
+
update Auto-update everything (opencode + bizar + dash + plugin)
|
|
88
88
|
service Manage the background service daemon
|
|
89
89
|
bg <subcommand> Manage background agents (list/view/kill/logs)
|
|
90
90
|
dash <subcommand> Manage the dashboard (start/stop/status/tui)
|
|
@@ -182,13 +182,12 @@ function showInstallHelp() {
|
|
|
182
182
|
|
|
183
183
|
function showUpdateHelp() {
|
|
184
184
|
console.log(`
|
|
185
|
-
bizar update — Update opencode, bizar, and/or bizar-plugin
|
|
185
|
+
bizar update — Update opencode, bizar, bizar-dash, and/or bizar-plugin
|
|
186
186
|
|
|
187
187
|
Usage:
|
|
188
|
-
bizar update
|
|
189
|
-
bizar update --
|
|
188
|
+
bizar update Update EVERYTHING (default; auto-kills + restarts)
|
|
189
|
+
bizar update --pick Interactive picker (legacy per-component UI)
|
|
190
190
|
bizar update opencode bizar dash Update specific components
|
|
191
|
-
bizar update --all --yes Update everything + auto-kill running instances
|
|
192
191
|
bizar update --no-restart Don't auto-restart the dashboard after update
|
|
193
192
|
bizar update --dry-run Print what would happen, change nothing
|
|
194
193
|
bizar update --help Show this help
|
|
@@ -199,13 +198,15 @@ function showUpdateHelp() {
|
|
|
199
198
|
dash @polderlabs/bizar-dash (web dashboard + TUI)
|
|
200
199
|
plugin @polderlabs/bizar-plugin (opencode plugin)
|
|
201
200
|
|
|
202
|
-
Behavior:
|
|
201
|
+
Behavior (v3.15.0+):
|
|
202
|
+
• Default = automatic. Updates all 4 components without prompting.
|
|
203
|
+
Any missing package is auto-installed so a broken install gets
|
|
204
|
+
repaired in one shot.
|
|
203
205
|
• Detects running Bizar instances (background service daemon, web
|
|
204
206
|
dashboard) by reading ~/.config/bizar/{service,dashboard}.pid and
|
|
205
|
-
|
|
206
|
-
•
|
|
207
|
-
|
|
208
|
-
non-interactive shells).
|
|
207
|
+
cleans up any stale or empty PID files.
|
|
208
|
+
• Auto-kills running instances with a brief notice (use --pick to
|
|
209
|
+
be prompted first instead).
|
|
209
210
|
• Sends SIGTERM, waits up to 5s, escalates to SIGKILL if needed.
|
|
210
211
|
• Re-runs the install script so the deployed plugin source matches
|
|
211
212
|
the just-upgraded npm version (avoids the version-skew trap).
|
|
@@ -214,15 +215,12 @@ function showUpdateHelp() {
|
|
|
214
215
|
(skipped with --no-restart).
|
|
215
216
|
• Runs \`bizar doctor\` after a successful update to catch config
|
|
216
217
|
regressions before opencode tries to start.
|
|
217
|
-
• If ~/.config/opencode/plugins/bizar is a dev symlink (created
|
|
218
|
-
by \`bizar dev-link\`), the copy step is skipped to preserve the
|
|
219
|
-
link. Use \`bizar dev-unlink\` first, or pass --force.
|
|
220
218
|
|
|
221
219
|
Examples:
|
|
222
|
-
bizar update
|
|
223
|
-
bizar update
|
|
220
|
+
bizar update Full auto-update (recommended)
|
|
221
|
+
bizar update --dry-run Preview what would change
|
|
222
|
+
bizar update --pick Pick specific components
|
|
224
223
|
bizar update plugin --no-restart Plugin-only, leave dashboard alone
|
|
225
|
-
bizar update --all --dry-run See what would change without doing it
|
|
226
224
|
`);
|
|
227
225
|
}
|
|
228
226
|
|
package/cli/update.mjs
CHANGED
|
@@ -475,6 +475,22 @@ async function promptForUpdates(forceAll) {
|
|
|
475
475
|
// Main entry point
|
|
476
476
|
// ---------------------------------------------------------------------------
|
|
477
477
|
|
|
478
|
+
/**
|
|
479
|
+
* Default behavior policy for `bizar update`:
|
|
480
|
+
* - Update EVERYTHING (opencode + bizar + dash + plugin) automatically.
|
|
481
|
+
* - Auto-install any missing component without asking.
|
|
482
|
+
* - Kill running instances without confirmation (with a brief notice).
|
|
483
|
+
* - Re-run the install script to refresh the on-disk plugin.
|
|
484
|
+
* - Restart the dashboard if it was running.
|
|
485
|
+
*
|
|
486
|
+
* The `--pick` / `-p` flag opts into the legacy per-component picker
|
|
487
|
+
* (checkbox UI) for users who want to update only some components.
|
|
488
|
+
*
|
|
489
|
+
* The `--dry-run` flag previews what would happen without touching
|
|
490
|
+
* anything.
|
|
491
|
+
*
|
|
492
|
+
* The `--no-restart` flag skips the dashboard restart step.
|
|
493
|
+
*/
|
|
478
494
|
export async function runUpdate(subargs = []) {
|
|
479
495
|
console.log(chalk.bold.hex('#a855f7')('\n ᚦ BIZAR UPDATE ᚦ\n'));
|
|
480
496
|
|
|
@@ -483,6 +499,11 @@ export async function runUpdate(subargs = []) {
|
|
|
483
499
|
const restartAfter = !subargs.includes('--no-restart');
|
|
484
500
|
const forceAll = subargs.includes('--all');
|
|
485
501
|
const dryRun = subargs.includes('--dry-run');
|
|
502
|
+
// Opt-in interactive picker. Without `--pick`, we update everything
|
|
503
|
+
// automatically. This matches what the user actually wants 95% of
|
|
504
|
+
// the time ("update my install") and removes a prompt that
|
|
505
|
+
// interrupted the flow.
|
|
506
|
+
const interactivePick = subargs.includes('--pick') || subargs.includes('-p');
|
|
486
507
|
|
|
487
508
|
if (dryRun) {
|
|
488
509
|
console.log(
|
|
@@ -503,13 +524,16 @@ export async function runUpdate(subargs = []) {
|
|
|
503
524
|
chalk.dim(` [dry-run] would stop running instances: ${labels.join(', ')}`),
|
|
504
525
|
);
|
|
505
526
|
} else {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
console.log(chalk.
|
|
527
|
+
// In automatic mode we still print what we're about to kill
|
|
528
|
+
// but don't prompt — the operator asked for a full update and
|
|
529
|
+
// these processes would block the npm replace anyway.
|
|
530
|
+
const labels = [];
|
|
531
|
+
if (instances.service) labels.push(instances.service.label);
|
|
532
|
+
if (instances.dashboard) labels.push(instances.dashboard.label);
|
|
533
|
+
console.log(chalk.yellow(` ⚠ Stopping running instances: ${labels.join(', ')}`));
|
|
534
|
+
console.log(
|
|
535
|
+
chalk.dim(' (use `--pick` to be prompted before killing in future)'),
|
|
536
|
+
);
|
|
513
537
|
const kills = await killInstances(instances);
|
|
514
538
|
for (const k of kills) {
|
|
515
539
|
const marker = k.ok ? chalk.green('✓') : chalk.red('✗');
|
|
@@ -552,31 +576,23 @@ export async function runUpdate(subargs = []) {
|
|
|
552
576
|
}
|
|
553
577
|
console.log('');
|
|
554
578
|
|
|
555
|
-
// 3. Decide what to update.
|
|
579
|
+
// 3. Decide what to update. Default = everything. Any missing package
|
|
580
|
+
// is automatically included so a partial install gets completed.
|
|
556
581
|
let selected;
|
|
557
|
-
if (forceAll
|
|
558
|
-
// dryRun defaults to showing everything (the whole point is to see
|
|
559
|
-
// what *would* change across the board). Pass a positional list to
|
|
560
|
-
// narrow the preview.
|
|
561
|
-
selected = new Set(COMPONENTS);
|
|
562
|
-
// If the user passed positional component names alongside --dry-run,
|
|
563
|
-
// narrow the selection to those.
|
|
564
|
-
const positional = subargs.filter((a) => !a.startsWith('-'));
|
|
565
|
-
if (positional.length > 0) {
|
|
566
|
-
const valid = new Set(COMPONENTS);
|
|
567
|
-
const narrowed = positional.filter((a) => valid.has(a));
|
|
568
|
-
if (narrowed.length > 0) selected = new Set(narrowed);
|
|
569
|
-
}
|
|
570
|
-
} else if (subargs.length === 0) {
|
|
582
|
+
if (interactivePick && !dryRun && !forceAll && !assumeYes) {
|
|
571
583
|
selected = await promptForUpdates(false);
|
|
572
584
|
} else {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
585
|
+
// Auto-select: all components + any missing one (so a broken install
|
|
586
|
+
// gets repaired automatically).
|
|
587
|
+
selected = new Set(COMPONENTS);
|
|
588
|
+
for (const k of COMPONENTS) {
|
|
589
|
+
if (cur[k] === null && latest[k] !== null) selected.add(k);
|
|
590
|
+
}
|
|
591
|
+
if (interactivePick) {
|
|
592
|
+
// --pick + --dry-run / --all / --yes → still update everything
|
|
593
|
+
// but make the auto-selection visible so the dry-run output is
|
|
594
|
+
// informative.
|
|
595
|
+
console.log(chalk.dim(` Auto-selecting all components (--pick ignored due to flags).`));
|
|
580
596
|
}
|
|
581
597
|
}
|
|
582
598
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polderlabs/bizar",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.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.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|