open-agents-ai 0.184.11 → 0.184.13
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 +20 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34762,6 +34762,8 @@ var init_render = __esm({
|
|
|
34762
34762
|
["/cohere deny <model>", "Hide a model from remote COHERE queries"],
|
|
34763
34763
|
["/nexus", "Show nexus P2P network status"],
|
|
34764
34764
|
["/nexus connect", "Connect to the agent mesh network"],
|
|
34765
|
+
["/nexus name <name>", "Set custom agent name (persists globally across all OA instances)"],
|
|
34766
|
+
["/nexus name", "Show current agent name"],
|
|
34765
34767
|
["/nexus restart", "Kill daemon and reconnect (picks up new version)"],
|
|
34766
34768
|
["/nexus restart --clean", "Restart + clear metering data for fresh stats"],
|
|
34767
34769
|
["/nexus disconnect", "Kill daemon without reconnecting"],
|
|
@@ -34770,6 +34772,7 @@ var init_render = __esm({
|
|
|
34770
34772
|
["/sponsor status", "Show sponsor dashboard with usage metrics"],
|
|
34771
34773
|
["/sponsor pause", "Pause active sponsorship"],
|
|
34772
34774
|
["/sponsor remove", "Remove sponsorship entirely"],
|
|
34775
|
+
["/endpoint sponsor", "Browse and connect to sponsored inference from the nexus mesh"],
|
|
34773
34776
|
["/expose <backend>", "Expose local inference via libp2p (default)"],
|
|
34774
34777
|
["/expose <backend> --tunnel", "Expose via cloudflared tunnel"],
|
|
34775
34778
|
["/expose passthrough", "Forward configured /endpoint through libp2p P2P"],
|
|
@@ -47864,6 +47867,18 @@ async function handleSlashCommand(input, ctx) {
|
|
|
47864
47867
|
ollamaUrl: "http://localhost:11434",
|
|
47865
47868
|
availableRows: ctx.availableContentRows?.(),
|
|
47866
47869
|
onGoLive: async (config) => {
|
|
47870
|
+
if (config.transport.libp2p) {
|
|
47871
|
+
try {
|
|
47872
|
+
const { NexusTool: NexusTool2 } = __require("@open-agents/execution");
|
|
47873
|
+
const nexus = new NexusTool2(projectDir);
|
|
47874
|
+
renderInfo("Connecting to nexus P2P mesh...");
|
|
47875
|
+
await nexus.execute({ action: "connect" });
|
|
47876
|
+
await new Promise((r) => setTimeout(r, 3e3));
|
|
47877
|
+
renderInfo("Nexus daemon connected.");
|
|
47878
|
+
} catch (err) {
|
|
47879
|
+
renderWarning(`Nexus auto-connect: ${err instanceof Error ? err.message : String(err)}`);
|
|
47880
|
+
}
|
|
47881
|
+
}
|
|
47867
47882
|
if (config.transport.cloudflared && ctx.exposeStart) {
|
|
47868
47883
|
try {
|
|
47869
47884
|
const url = await ctx.exposeStart("ollama", void 0, "tunnel");
|
|
@@ -47896,6 +47911,11 @@ async function handleSlashCommand(input, ctx) {
|
|
|
47896
47911
|
try {
|
|
47897
47912
|
const { NexusTool: NexusTool2 } = __require("@open-agents/execution");
|
|
47898
47913
|
const nexus = new NexusTool2(projectDir);
|
|
47914
|
+
try {
|
|
47915
|
+
await nexus.execute({ action: "connect" });
|
|
47916
|
+
} catch {
|
|
47917
|
+
}
|
|
47918
|
+
await new Promise((r) => setTimeout(r, 2e3));
|
|
47899
47919
|
const tunnelGw = ctx.getExposeGateway?.();
|
|
47900
47920
|
const enabledEps = config.endpoints.filter((e) => e.enabled);
|
|
47901
47921
|
const allModels = enabledEps.flatMap((e) => e.models || []);
|
package/package.json
CHANGED