@polderlabs/bizar 6.0.1 → 6.0.2
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 +7 -2
- package/cli/install.test.mjs +27 -0
- package/package.json +1 -1
- package/packages/sdk/package.json +1 -1
- package/plugins/bizar/package.json +1 -1
package/cli/install.mjs
CHANGED
|
@@ -319,8 +319,13 @@ async function promptAndInstallOptional() {
|
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
const dashDir = join(__dirname, '..', 'bizar-dash');
|
|
322
|
-
|
|
323
|
-
|
|
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)) {
|
|
324
329
|
console.error('');
|
|
325
330
|
console.error(' ✗ Dashboard source not found at bizar-dash/.');
|
|
326
331
|
console.error(' This package is missing the dashboard source. Reinstall:');
|
package/cli/install.test.mjs
CHANGED
|
@@ -240,6 +240,33 @@ describe('installPluginFromGlobal() — node_modules copy', () => {
|
|
|
240
240
|
rmSync(linkTarget, { recursive: true, force: true });
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
+
|
|
244
|
+
// v6.0.2 — Dashboard payload check now probes dist + src instead of
|
|
245
|
+
// package.json (which was removed in v4.0.0 when the dashboard became
|
|
246
|
+
// its own npm package). This test verifies the post-fix code path
|
|
247
|
+
// accepts a layout that has dist/index.html but no package.json.
|
|
248
|
+
test('dashboard check accepts dist+src layout without package.json', () => {
|
|
249
|
+
// We don't import the un-exported promptAndInstallOptional directly;
|
|
250
|
+
// instead we exercise the same fs.existsSync contract the check
|
|
251
|
+
// uses by staging a fake layout in a tmpdir and asserting the
|
|
252
|
+
// ginstay predicate is satisfied.
|
|
253
|
+
const layout = mkdtempSync(join(tmpdir(), 'bizar-dash-layout-'));
|
|
254
|
+
const dashDir = join(layout, 'bizar-dash');
|
|
255
|
+
mkdirSync(join(dashDir, 'dist'), { recursive: true });
|
|
256
|
+
writeFileSync(join(dashDir, 'dist', 'index.html'), '<html></html>');
|
|
257
|
+
mkdirSync(join(dashDir, 'src', 'server'), { recursive: true });
|
|
258
|
+
writeFileSync(join(dashDir, 'src', 'server', 'api.mjs'), '// fixture');
|
|
259
|
+
const distHtml = join(dashDir, 'dist', 'index.html');
|
|
260
|
+
const serverSrc = join(dashDir, 'src', 'server', 'api.mjs');
|
|
261
|
+
assert.ok(existsSync(distHtml), 'dist/index.html should exist (fixture)');
|
|
262
|
+
assert.ok(existsSync(serverSrc), 'src/server/api.mjs should exist (fixture)');
|
|
263
|
+
assert.equal(
|
|
264
|
+
existsSync(join(dashDir, 'package.json')),
|
|
265
|
+
false,
|
|
266
|
+
'package.json should NOT exist (proves the new check tolerates its absence)',
|
|
267
|
+
);
|
|
268
|
+
rmSync(layout, { recursive: true, force: true });
|
|
269
|
+
});
|
|
243
270
|
});
|
|
244
271
|
|
|
245
272
|
console.log(' install.mjs tests loaded — run with: node --test cli/install.test.mjs');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polderlabs/bizar",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
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": {
|