open-agents-ai 0.184.18 → 0.184.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 +39 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47976,12 +47976,41 @@ async function handleSlashCommand(input, ctx) {
47976
47976
  if (arg === "pause" && existingConfig?.status === "active") {
47977
47977
  existingConfig.status = "paused";
47978
47978
  saveSponsorConfig2(projectDir, existingConfig);
47979
- renderInfo("Sponsorship paused. /sponsor to resume.");
47979
+ const pauseGw = ctx.getExposeGateway?.();
47980
+ if (pauseGw && "setSponsorLimits" in pauseGw) {
47981
+ pauseGw.setSponsorLimits({ maxRequestsPerMinute: 0, maxTokensPerDay: 0, maxConcurrent: 0, allowedModels: [] });
47982
+ }
47983
+ renderInfo("Sponsorship paused. Tunnel still alive for quick resume.");
47984
+ renderInfo("/sponsor to resume, /sponsor remove to fully stop.");
47980
47985
  return "handled";
47981
47986
  }
47982
47987
  if (arg === "remove" && existingConfig) {
47983
47988
  existingConfig.status = "inactive";
47984
47989
  saveSponsorConfig2(projectDir, existingConfig);
47990
+ if (ctx.isExposeActive?.()) {
47991
+ try {
47992
+ await ctx.exposeStop?.();
47993
+ renderInfo("Tunnel/P2P gateway stopped.");
47994
+ } catch (err) {
47995
+ renderWarning(`Gateway stop: ${err instanceof Error ? err.message : String(err)}`);
47996
+ }
47997
+ }
47998
+ try {
47999
+ const { execSync: execSync34 } = __require("child_process");
48000
+ const pids = execSync34("pgrep -f 'cloudflared tunnel --url http://127.0.0.1'", { encoding: "utf8", timeout: 3e3 }).trim().split("\n");
48001
+ for (const pid of pids) {
48002
+ const p = parseInt(pid, 10);
48003
+ if (p > 0) {
48004
+ try {
48005
+ process.kill(p, "SIGTERM");
48006
+ } catch {
48007
+ }
48008
+ }
48009
+ }
48010
+ if (pids.length > 0 && pids[0])
48011
+ renderInfo(`Killed ${pids.length} orphaned cloudflared process(es).`);
48012
+ } catch {
48013
+ }
47985
48014
  renderInfo("Sponsorship removed.");
47986
48015
  return "handled";
47987
48016
  }
@@ -63510,6 +63539,15 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
63510
63539
  writeContent(() => {
63511
63540
  renderInfo(`Reconnected to existing expose tunnel: ${reconnected.tunnelUrl}`);
63512
63541
  });
63542
+ try {
63543
+ const { loadSponsorConfig: loadSponsorConfig2 } = await Promise.resolve().then(() => (init_sponsor_wizard(), sponsor_wizard_exports));
63544
+ const spCfg = loadSponsorConfig2(repoRoot);
63545
+ if (spCfg && spCfg.status === "active" && "setSponsorLimits" in reconnected) {
63546
+ reconnected.setSponsorLimits(spCfg.rateLimits);
63547
+ writeContent(() => renderInfo(`Sponsor rate limits restored: ${spCfg.rateLimits.maxRequestsPerMinute} req/min`));
63548
+ }
63549
+ } catch {
63550
+ }
63513
63551
  }
63514
63552
  } catch {
63515
63553
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.184.18",
3
+ "version": "0.184.19",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) \u2014 interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",