cumora 0.1.47 → 0.1.48

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/cli.js +14 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -181,7 +181,11 @@ var ClaudeAdapter = class {
181
181
  const flags = extraArgs("CUMORA_CLAUDE_ARGS");
182
182
  const model = args.model ? ["--model", args.model] : [];
183
183
  const argv = flags.length ? [...flags, "-p", args.prompt] : ["-p", args.prompt, ...model, "--output-format", "stream-json", "--verbose", "--dangerously-skip-permissions"];
184
- const env = args.fastModel ? { ...args.env, ANTHROPIC_SMALL_FAST_MODEL: args.fastModel } : args.env;
184
+ const env = {
185
+ ...args.env,
186
+ MAX_THINKING_TOKENS: args.env.MAX_THINKING_TOKENS ?? "0"
187
+ };
188
+ if (args.fastModel) env.ANTHROPIC_SMALL_FAST_MODEL = args.fastModel;
185
189
  return spawnEngine(this.bin, argv, { ...args, env });
186
190
  }
187
191
  };
@@ -222,6 +226,7 @@ var DEFAULT_SERVER = process.env.CUMORA_SERVER_URL || "https://api.cumora.ai";
222
226
  var TOKEN_REFRESH_SKEW_MS = 5 * 60 * 1e3;
223
227
  var AGENT_POLL_MS = 6e4;
224
228
  var HEARTBEAT_MS = 3e4;
229
+ var INBOX_POLL_MS = 2e4;
225
230
  var MAX_VISIBLE_ERROR_CHARS = 900;
226
231
  function parseArgs(argv) {
227
232
  const out = {};
@@ -379,14 +384,22 @@ var AgentRunner = class {
379
384
  pendingRerun = false;
380
385
  stopped = false;
381
386
  lastWakeConvo = null;
387
+ pollTimer;
382
388
  adapter;
383
389
  async start() {
384
390
  await this.adapter.seedHome(this.home, { id: this.agent.id, name: this.agent.name, role: this.agent.role });
385
391
  await writeShim(this.binDir);
386
392
  void this.streamLoop();
393
+ this.pollTimer = setInterval(() => {
394
+ if (!this.busy && !this.stopped) void this.runTurn();
395
+ }, INBOX_POLL_MS);
387
396
  }
388
397
  stop() {
389
398
  this.stopped = true;
399
+ if (this.pollTimer) {
400
+ clearInterval(this.pollTimer);
401
+ this.pollTimer = void 0;
402
+ }
390
403
  }
391
404
  /** Does this runner's live config still match the latest server state? The
392
405
  * engine + model + persona are captured at construction (the adapter is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cumora",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "description": "Run your Cumora agents on your own machine or VPS, powered by your local Claude Code or Codex CLI (BYOA).",
5
5
  "type": "module",
6
6
  "bin": {