@serkanalgur/opencode-nexus 1.2.0 → 1.2.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/dist/index.js +4 -4
- package/dist/tui.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9807,10 +9807,10 @@ class NexusOrchestrator {
|
|
|
9807
9807
|
const dashHost = host || this.config.dashboard.host;
|
|
9808
9808
|
this.dashboard = new DashboardModule(this);
|
|
9809
9809
|
this.dashboard.start(dashPort, dashHost);
|
|
9810
|
-
this.on("agent:spawned", (agent) => this.dashboard
|
|
9811
|
-
this.on("agent:terminated", (agent) => this.dashboard
|
|
9812
|
-
this.on("budget:alert", (data) => this.dashboard
|
|
9813
|
-
this.on("budget:exceeded", (data) => this.dashboard
|
|
9810
|
+
this.on("agent:spawned", (agent) => this.dashboard?.broadcast("agent:spawned", agent));
|
|
9811
|
+
this.on("agent:terminated", (agent) => this.dashboard?.broadcast("agent:terminated", agent));
|
|
9812
|
+
this.on("budget:alert", (data) => this.dashboard?.broadcast("budget:alert", data));
|
|
9813
|
+
this.on("budget:exceeded", (data) => this.dashboard?.broadcast("budget:exceeded", data));
|
|
9814
9814
|
}
|
|
9815
9815
|
stopDashboard() {
|
|
9816
9816
|
if (this.dashboard) {
|
package/dist/tui.js
CHANGED
|
@@ -34419,6 +34419,7 @@ var tui_default = define({
|
|
|
34419
34419
|
});
|
|
34420
34420
|
if (selected !== null && selected !== undefined) {
|
|
34421
34421
|
configManager.setModel(role, selected);
|
|
34422
|
+
configManager.saveGlobalConfig();
|
|
34422
34423
|
context.ui.toast.show({
|
|
34423
34424
|
title: "Nexus",
|
|
34424
34425
|
message: `${role} → ${selected || "default"}`,
|
|
@@ -34438,6 +34439,7 @@ var tui_default = define({
|
|
|
34438
34439
|
configManager.updateStorageConfig({
|
|
34439
34440
|
budget: { ...config.budget, maxTotalCost: budget }
|
|
34440
34441
|
});
|
|
34442
|
+
configManager.saveGlobalConfig();
|
|
34441
34443
|
context.ui.toast.show({
|
|
34442
34444
|
title: "Nexus",
|
|
34443
34445
|
message: `Budget updated: $${budget}`,
|