open-agents-ai 0.114.0 → 0.115.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/dist/index.js +72 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15510,9 +15510,10 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
15510
15510
|
"budget_status",
|
|
15511
15511
|
"budget_set",
|
|
15512
15512
|
"spend",
|
|
15513
|
-
"remote_infer"
|
|
15513
|
+
"remote_infer",
|
|
15514
|
+
"cohere_status"
|
|
15514
15515
|
],
|
|
15515
|
-
description: "The nexus action. MUST call 'connect' first (spawns daemon). Then: join_room, send_message, discover_peers, expose, status, etc."
|
|
15516
|
+
description: "The nexus action. MUST call 'connect' first (spawns daemon). Then: join_room, send_message, discover_peers, expose, status, cohere_status, etc."
|
|
15516
15517
|
},
|
|
15517
15518
|
room_id: {
|
|
15518
15519
|
type: "string",
|
|
@@ -15722,6 +15723,9 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
15722
15723
|
case "remote_infer":
|
|
15723
15724
|
result = await this.doRemoteInfer(args);
|
|
15724
15725
|
break;
|
|
15726
|
+
case "cohere_status":
|
|
15727
|
+
result = await this.doCohereSummary();
|
|
15728
|
+
break;
|
|
15725
15729
|
default:
|
|
15726
15730
|
return { success: false, output: "", error: `Unknown nexus action: ${action}`, durationMs: Date.now() - start };
|
|
15727
15731
|
}
|
|
@@ -16870,6 +16874,72 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
16870
16874
|
return "Could not generate proof. Ensure Ollama is running.";
|
|
16871
16875
|
}
|
|
16872
16876
|
}
|
|
16877
|
+
// ── COHERE Financial Summary ─────────────────────────────────────────────
|
|
16878
|
+
/**
|
|
16879
|
+
* Show comprehensive COHERE financial status including wallet, budget,
|
|
16880
|
+
* payout equation factors, sponsor pool, and two-balance model.
|
|
16881
|
+
* Per Project COHERE Unified Complete §Planes 3-5.
|
|
16882
|
+
*/
|
|
16883
|
+
async doCohereSummary() {
|
|
16884
|
+
const lines = [];
|
|
16885
|
+
lines.push("\u2550\u2550\u2550 COHERE Financial Status \u2550\u2550\u2550\n");
|
|
16886
|
+
try {
|
|
16887
|
+
const walletStatus = await this.doWalletStatus();
|
|
16888
|
+
lines.push("\u2500\u2500 Wallet \u2500\u2500");
|
|
16889
|
+
lines.push(walletStatus);
|
|
16890
|
+
lines.push("");
|
|
16891
|
+
} catch {
|
|
16892
|
+
lines.push("Wallet: not configured\n");
|
|
16893
|
+
}
|
|
16894
|
+
try {
|
|
16895
|
+
const budgetStatus = await this.doBudgetStatus();
|
|
16896
|
+
lines.push("\u2500\u2500 Budget Policy \u2500\u2500");
|
|
16897
|
+
lines.push(budgetStatus);
|
|
16898
|
+
lines.push("");
|
|
16899
|
+
} catch {
|
|
16900
|
+
lines.push("Budget: not configured\n");
|
|
16901
|
+
}
|
|
16902
|
+
try {
|
|
16903
|
+
const ledgerStatus = await this.doLedgerStatus();
|
|
16904
|
+
lines.push("\u2500\u2500 Transaction Ledger \u2500\u2500");
|
|
16905
|
+
lines.push(ledgerStatus);
|
|
16906
|
+
lines.push("");
|
|
16907
|
+
} catch {
|
|
16908
|
+
lines.push("Ledger: no transactions yet\n");
|
|
16909
|
+
}
|
|
16910
|
+
lines.push("\u2500\u2500 COHERE Revenue Split \u2500\u2500");
|
|
16911
|
+
lines.push(" Provider payout: 70%");
|
|
16912
|
+
lines.push(" Commons subsidy: 10%");
|
|
16913
|
+
lines.push(" Memory steward: 8%");
|
|
16914
|
+
lines.push(" Relay/discovery: 7%");
|
|
16915
|
+
lines.push(" Protocol reserve: 5%");
|
|
16916
|
+
lines.push("");
|
|
16917
|
+
lines.push("\u2500\u2500 Provider Payout Equation \u2500\u2500");
|
|
16918
|
+
lines.push(" provider_reward = base_compute + context_premium + streaming_bonus");
|
|
16919
|
+
lines.push(" + warm_bonus + qos_bonus + trust_bonus");
|
|
16920
|
+
lines.push(" + scarcity_bonus + sponsor_multiplier - penalties");
|
|
16921
|
+
lines.push(" Default rates: $0.0004/1K in, $0.0012/1K out");
|
|
16922
|
+
lines.push(" Bonuses: context(15%), stream(5%), warm(10%), QoS(5%), trust(10%), scarcity(20%)");
|
|
16923
|
+
lines.push("");
|
|
16924
|
+
lines.push("\u2500\u2500 Two-Balance Model \u2500\u2500");
|
|
16925
|
+
lines.push(" A. Cash credits: USDC-settled, withdrawable on-chain");
|
|
16926
|
+
lines.push(" B. Network credits: internal, for consuming inference");
|
|
16927
|
+
lines.push(" Earn split: 80% cash / 20% network");
|
|
16928
|
+
lines.push("");
|
|
16929
|
+
lines.push("\u2500\u2500 Routing Priority \u2500\u2500");
|
|
16930
|
+
lines.push(" 1. Privacy class");
|
|
16931
|
+
lines.push(" 2. Local availability");
|
|
16932
|
+
lines.push(" 3. Trust and policy fit");
|
|
16933
|
+
lines.push(" 4. Warmness (model already loaded)");
|
|
16934
|
+
lines.push(" 5. Latency");
|
|
16935
|
+
lines.push(" 6. Price");
|
|
16936
|
+
lines.push(" 7. Sponsor eligibility");
|
|
16937
|
+
lines.push("");
|
|
16938
|
+
lines.push("\u2500\u2500 Provenance \u2500\u2500");
|
|
16939
|
+
lines.push(" Project COHERE Unified Complete (March 2026)");
|
|
16940
|
+
lines.push(" Planes 1-5: Local Intelligence \u2192 P2P Transport \u2192 Market \u2192 Memory \u2192 Orchestration");
|
|
16941
|
+
return lines.join("\n");
|
|
16942
|
+
}
|
|
16873
16943
|
};
|
|
16874
16944
|
}
|
|
16875
16945
|
});
|
package/package.json
CHANGED