@polderlabs/bizar 4.7.1 → 4.7.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/bin.mjs +12 -1
- package/package.json +1 -1
package/cli/bin.mjs
CHANGED
|
@@ -360,7 +360,18 @@ async function main() {
|
|
|
360
360
|
// ── Run ───────────────────────────────────────────────────────────────────────
|
|
361
361
|
|
|
362
362
|
const thisFile = fileURLToPath(import.meta.url);
|
|
363
|
-
|
|
363
|
+
// Resolve symlinks: when invoked via a symlink (e.g. /home/drb0rk/.local/bin/bizar),
|
|
364
|
+
// process.argv[1] is the symlink path, but import.meta.url is the resolved target.
|
|
365
|
+
// Compare via realpath so main() runs regardless of how the script is invoked.
|
|
366
|
+
const { realpathSync } = await import('node:fs');
|
|
367
|
+
const resolvedArgv = (() => {
|
|
368
|
+
try {
|
|
369
|
+
return realpathSync(process.argv[1]);
|
|
370
|
+
} catch {
|
|
371
|
+
return process.argv[1];
|
|
372
|
+
}
|
|
373
|
+
})();
|
|
374
|
+
const isMainModule = resolvedArgv === thisFile;
|
|
364
375
|
if (isMainModule) {
|
|
365
376
|
await main().catch((err) => {
|
|
366
377
|
console.error(chalk.red(`bizar: ${err && err.message ? err.message : String(err)}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polderlabs/bizar",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.2",
|
|
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": {
|