bosun 0.40.18 → 0.41.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/agent/agent-custom-tools.mjs +23 -5
- package/agent/agent-endpoint.mjs +1443 -1429
- package/agent/agent-pool.mjs +6 -2
- package/agent/primary-agent.mjs +81 -7
- package/bench/benchmark-mode.mjs +253 -0
- package/bench/benchmark-registry.mjs +347 -0
- package/bench/swebench/README.md +91 -0
- package/bench/swebench/bosun-swebench.mjs +461 -0
- package/cli.mjs +208 -3
- package/config/config-doctor.mjs +51 -2
- package/config/config.mjs +103 -3
- package/github/github-auth-manager.mjs +70 -19
- package/infra/library-manager.mjs +1223 -49
- package/infra/monitor.mjs +132 -52
- package/infra/session-tracker.mjs +13 -3
- package/infra/test-runtime.mjs +267 -0
- package/kanban/vibe-kanban-wrapper.mjs +0 -0
- package/package.json +13 -6
- package/server/setup-web-server.mjs +4 -1
- package/server/ui-server.mjs +2042 -86
- package/task/task-claims.mjs +49 -17
- package/task/task-cli-bin.mjs +8 -0
- package/task/task-cli.mjs +23 -7
- package/task/task-store.mjs +1 -1
- package/telegram/get-telegram-chat-id.mjs +0 -0
- package/telegram/telegram-sentinel.mjs +0 -0
- package/ui/app.js +2 -0
- package/ui/components/chat-view.js +18 -1
- package/ui/components/workspace-switcher.js +321 -9
- package/ui/demo-defaults.js +11746 -9470
- package/ui/demo.html +478 -1
- package/ui/modules/router.js +2 -0
- package/ui/modules/state.js +21 -0
- package/ui/modules/voice-client-sdk.js +1 -1
- package/ui/modules/voice-client.js +33 -2
- package/ui/styles/components.css +514 -1
- package/ui/tabs/benchmarks.js +845 -0
- package/ui/tabs/library.js +554 -40
- package/ui/tabs/tasks.js +1052 -506
- package/ui/tabs/workflow-canvas-utils.mjs +30 -0
- package/ui/tabs/workflows.js +914 -298
- package/voice/voice-agents-sdk.mjs +1 -1
- package/voice/voice-relay.mjs +24 -16
- package/workflow/project-detection.mjs +559 -0
- package/workflow/workflow-contract.mjs +433 -232
- package/workflow/workflow-engine.mjs +184 -27
- package/workflow/workflow-nodes.mjs +511 -10
- package/workflow/workflow-templates.mjs +92 -16
- package/workflow-templates/agents.mjs +20 -19
- package/workflow-templates/code-quality.mjs +20 -14
- package/workflow-templates/task-batch.mjs +3 -2
- package/workflow-templates/task-execution.mjs +752 -0
- package/workflow-templates/task-lifecycle.mjs +34 -8
- package/workspace/shared-state-manager.mjs +70 -8
- package/workspace/shared-workspace-cli.mjs +0 -0
- package/workspace/workspace-manager.mjs +151 -0
- package/ui/components/chat-view.js.bak +0 -1
- package/ui/tabs/infra.js.bak +0 -1
|
@@ -561,12 +561,30 @@ export async function invokeCustomTool(rootDir, toolId, args = [], opts = {}) {
|
|
|
561
561
|
timeout,
|
|
562
562
|
maxBuffer: 10 * 1024 * 1024, // 10 MB
|
|
563
563
|
});
|
|
564
|
-
|
|
565
|
-
stderr
|
|
564
|
+
// Node versions/environments may resolve promisified execFile as:
|
|
565
|
+
// - { stdout, stderr } (modern child_process custom promisify)
|
|
566
|
+
// - stdout string/buffer only (legacy/mocked fallback)
|
|
567
|
+
// - [stdout, stderr] tuple (some custom wrappers)
|
|
568
|
+
if (out && typeof out === "object" && !Array.isArray(out)) {
|
|
569
|
+
stdout = String(out.stdout ?? "");
|
|
570
|
+
stderr = String(out.stderr ?? "");
|
|
571
|
+
} else if (Array.isArray(out)) {
|
|
572
|
+
stdout = String(out[0] ?? "");
|
|
573
|
+
stderr = String(out[1] ?? "");
|
|
574
|
+
} else {
|
|
575
|
+
stdout = String(out ?? "");
|
|
576
|
+
stderr = "";
|
|
577
|
+
}
|
|
566
578
|
} catch (err) {
|
|
567
|
-
stdout = err
|
|
568
|
-
stderr = err
|
|
569
|
-
|
|
579
|
+
stdout = String(err?.stdout ?? "");
|
|
580
|
+
stderr = String(err?.stderr ?? err?.message ?? "");
|
|
581
|
+
const numericExit = Number(err?.code);
|
|
582
|
+
const numericStatus = Number(err?.status);
|
|
583
|
+
exitCode = Number.isFinite(numericExit)
|
|
584
|
+
? numericExit
|
|
585
|
+
: Number.isFinite(numericStatus)
|
|
586
|
+
? numericStatus
|
|
587
|
+
: 1;
|
|
570
588
|
}
|
|
571
589
|
|
|
572
590
|
// Record usage non-blocking
|