@polderlabs/bizar 6.0.2 → 6.1.0
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/install.mjs +17 -40
- package/cli/utils.mjs +9 -25
- package/package.json +1 -1
- package/packages/sdk/package.json +1 -1
- package/plugins/bizar/package.json +1 -1
package/cli/install.mjs
CHANGED
|
@@ -8,9 +8,10 @@ import { fileURLToPath } from 'node:url';
|
|
|
8
8
|
// `__dirname` is a CommonJS global. ESM modules don't have it. We define it
|
|
9
9
|
// at module scope so all functions in this file can use it without each
|
|
10
10
|
// having to recreate the polyfill. (v4.2.3 — previously only `runInstaller`
|
|
11
|
-
// had it, which caused `promptAndInstallOptional`
|
|
12
|
-
//
|
|
13
|
-
//
|
|
11
|
+
// had it, which caused the legacy `promptAndInstallOptional` bootstrap
|
|
12
|
+
// to crash with `ERR_AMBIGUOUS_MODULE_SYNTAX`. v6.1.0 — that helper
|
|
13
|
+
// has been removed; `__dirname` is still used by `runPostInstall` for
|
|
14
|
+
// the same reason.)
|
|
14
15
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
15
16
|
|
|
16
17
|
import { showBanner, showPantheon, sectionHeading } from './banner.mjs';
|
|
@@ -302,39 +303,6 @@ async function isPackageInstalled(name) {
|
|
|
302
303
|
}
|
|
303
304
|
}
|
|
304
305
|
|
|
305
|
-
async function promptAndInstallOptional() {
|
|
306
|
-
// v4.4.5 — Plugin and dashboard are both shipped inside this package.
|
|
307
|
-
// No separate npm install step is required for either. The plugin
|
|
308
|
-
// copy happens via installPluginFromGlobal() in runInstaller(); the
|
|
309
|
-
// dashboard is loaded directly from this package's bizar-dash/src/.
|
|
310
|
-
// We just verify they're present here and warn loudly if not.
|
|
311
|
-
const pluginPath = join(__dirname, '..', 'plugins', 'bizar');
|
|
312
|
-
if (!existsSync(pluginPath)) {
|
|
313
|
-
console.error('');
|
|
314
|
-
console.error(' ✗ Plugin source not found at plugins/bizar/.');
|
|
315
|
-
console.error(' This package is missing the plugin source. Reinstall:');
|
|
316
|
-
console.error(' npm install -g @polderlabs/bizar --force');
|
|
317
|
-
} else {
|
|
318
|
-
console.log(' ✓ Plugin source present (plugins/bizar/)');
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
const dashDir = join(__dirname, '..', 'bizar-dash');
|
|
322
|
-
// v6.0.2 — Dashboard shipped as a resource directory since v4.0.0.
|
|
323
|
-
// It no longer carries its own `package.json` (it became a separate
|
|
324
|
-
// `@polderlabs/bizar-dash` npm package, then was collapsed back in
|
|
325
|
-
// for v6.x). Probe for the built artifact + server source instead.
|
|
326
|
-
const dashDistHtml = join(dashDir, 'dist', 'index.html');
|
|
327
|
-
const dashServerSrc = join(dashDir, 'src', 'server', 'api.mjs');
|
|
328
|
-
if (!existsSync(dashDistHtml) && !existsSync(dashServerSrc)) {
|
|
329
|
-
console.error('');
|
|
330
|
-
console.error(' ✗ Dashboard source not found at bizar-dash/.');
|
|
331
|
-
console.error(' This package is missing the dashboard source. Reinstall:');
|
|
332
|
-
console.error(' npm install -g @polderlabs/bizar --force');
|
|
333
|
-
} else {
|
|
334
|
-
console.log(' ✓ Dashboard source present (bizar-dash/)');
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
306
|
async function promptGraphifyInstall() {
|
|
339
307
|
const { spawnSync, execSync } = await import('node:child_process');
|
|
340
308
|
|
|
@@ -511,10 +479,19 @@ async function promptGraphifyInstall() {
|
|
|
511
479
|
}
|
|
512
480
|
|
|
513
481
|
export async function runPostInstall() {
|
|
514
|
-
//
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
}
|
|
482
|
+
// v6.1.0 — Bizar is Cline-only. The legacy opencode-era
|
|
483
|
+
// `promptAndInstallOptional()` (plugin/dashboard presence probes)
|
|
484
|
+
// has been removed; `cli/provision.mjs:runProvision` covers the same
|
|
485
|
+
// surface via `runProvision({ mode: 'install' })`, which is the path
|
|
486
|
+
// used by `bizar install` and `bizar update`. This `runPostInstall`
|
|
487
|
+
// is now a thin Cline-only bootstrap that:
|
|
488
|
+
// - copies `config/cline.json` template on first install
|
|
489
|
+
// - runs `installCommandsBizar()` for the legacy `commands-bizar/` dir
|
|
490
|
+
// - installs agents into `~/.cline/agents/`
|
|
491
|
+
// - probes for headroom / semble / skills-cli
|
|
492
|
+
// - installs Headroom via pip or npm
|
|
493
|
+
// The old OpenCode-era probes (`Plugin source present`,
|
|
494
|
+
// `Dashboard source present`) moved to `cli/doctor.mjs` as live checks.
|
|
518
495
|
const { mkdirSync, copyFileSync, existsSync } = await import('node:fs');
|
|
519
496
|
const { execSync } = await import('node:child_process');
|
|
520
497
|
|
package/cli/utils.mjs
CHANGED
|
@@ -16,15 +16,15 @@ export function repoPath(...parts) {
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Resolve the Cline global config directory.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
*
|
|
20
|
+
* Mirrors Cline's `resolveClineDir()` in `@cline/shared/storage`:
|
|
21
|
+
* 1. `process.env.CLINE_DIR` (explicit override)
|
|
22
|
+
* 2. `$HOME/.cline` (the Cline default since v3.0)
|
|
23
|
+
*
|
|
24
|
+
* v6.1.0 — Bizar is Cline-only. The pre-v5.6 `~/.config/cline/` path
|
|
25
|
+
* (the OpenCode-era layout) is no longer supported; the previous
|
|
26
|
+
* `legacyClineConfigDir()` helper has been removed.
|
|
27
|
+
*/
|
|
28
28
|
export function clineConfigDir() {
|
|
29
29
|
if (process.env.CLINE_DIR && process.env.CLINE_DIR.trim()) {
|
|
30
30
|
return process.env.CLINE_DIR.trim();
|
|
@@ -37,22 +37,6 @@ export function clineConfigDir() {
|
|
|
37
37
|
return join(homedir(), '.cline');
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
* Legacy Cline config dir (`~/.config/cline/`). Used by OpenCode and the
|
|
42
|
-
* pre-v5.6 BizarHarness installer. Exposed for back-compat with scripts
|
|
43
|
-
* and tests that hard-coded this path.
|
|
44
|
-
*/
|
|
45
|
-
export function legacyClineConfigDir() {
|
|
46
|
-
if (isWin) {
|
|
47
|
-
return process.env.APPDATA
|
|
48
|
-
? join(process.env.APPDATA, 'cline')
|
|
49
|
-
: join(homedir(), '.config', 'cline');
|
|
50
|
-
}
|
|
51
|
-
return process.env.XDG_CONFIG_HOME
|
|
52
|
-
? join(process.env.XDG_CONFIG_HOME, 'cline')
|
|
53
|
-
: join(homedir(), '.config', 'cline');
|
|
54
|
-
}
|
|
55
|
-
|
|
56
40
|
export function clineAgentsDir() {
|
|
57
41
|
return join(clineConfigDir(), 'agents');
|
|
58
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polderlabs/bizar",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Norse-pantheon multi-agent system for cline \u2014 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, cline plugin, and typed SDK.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|