open-agents-ai 0.185.18 → 0.185.19

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -48612,9 +48612,9 @@ async function handleSlashCommand(input, ctx) {
48612
48612
  const existingGateway = ctx.getExposeGateway?.();
48613
48613
  const managedPid = existingGateway?._cloudflaredPid || null;
48614
48614
  if (!existingGateway?.isActive) {
48615
- const staleOrphans = findPidsByPattern("cloudflared tunnel --url http").filter((p) => p !== managedPid);
48615
+ const staleOrphans2 = findPidsByPattern("cloudflared tunnel --url http").filter((p) => p !== managedPid);
48616
48616
  let cleanedUp = 0;
48617
- for (const pid of staleOrphans) {
48617
+ for (const pid of staleOrphans2) {
48618
48618
  if (killPid(pid))
48619
48619
  cleanedUp++;
48620
48620
  }
@@ -48625,6 +48625,9 @@ async function handleSlashCommand(input, ctx) {
48625
48625
  }
48626
48626
  const tunnelAlreadyActive = existingGateway?.isActive && existingGateway?.tunnelUrl;
48627
48627
  const p2pAlreadyActive = ctx.isExposeActive?.() && !existingGateway?.tunnelUrl;
48628
+ const staleOrphans = findPidsByPattern("cloudflared tunnel --url http");
48629
+ for (const pid of staleOrphans)
48630
+ killPid(pid);
48628
48631
  if (config.transport.cloudflared && ctx.exposeStart) {
48629
48632
  if (tunnelAlreadyActive) {
48630
48633
  renderInfo(`Tunnel already active: ${existingGateway.tunnelUrl}`);
@@ -48652,6 +48655,11 @@ async function handleSlashCommand(input, ctx) {
48652
48655
  let daemonReady = false;
48653
48656
  try {
48654
48657
  const nexus = new NexusTool(projectDir);
48658
+ try {
48659
+ await nexus.execute({ action: "disconnect" });
48660
+ await new Promise((r) => setTimeout(r, 500));
48661
+ } catch {
48662
+ }
48655
48663
  renderInfo("Starting nexus daemon...");
48656
48664
  await nexus.execute({ action: "connect" });
48657
48665
  for (let wait = 0; wait < 15; wait++) {
@@ -48693,6 +48701,8 @@ async function handleSlashCommand(input, ctx) {
48693
48701
  const sponsorUrl = tunnelGw?.tunnelUrl || "";
48694
48702
  if (!sponsorUrl) {
48695
48703
  renderWarning("No tunnel URL available \u2014 sponsor not registered in directory. Start with cloudflared or libp2p first.");
48704
+ renderInfo("Sponsor wizard completed (offline mode \u2014 no public endpoint).");
48705
+ return;
48696
48706
  }
48697
48707
  let sponsorName = (config.header.message || "").replace(/^\/+/, "").trim();
48698
48708
  if (!sponsorName || sponsorName.length < 2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.185.18",
3
+ "version": "0.185.19",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",