@rely-ai/caliber 1.41.2 → 1.41.4

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/bin.js +18 -9
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -2847,16 +2847,33 @@ var ClaudeCliProvider = class {
2847
2847
  if (model) args.push("--model", model);
2848
2848
  const child = spawnClaude(args);
2849
2849
  child.stdin.end(combinedPrompt);
2850
+ let settled = false;
2850
2851
  const chunks = [];
2851
2852
  const stderrChunks = [];
2852
2853
  child.stdout.on("data", (chunk) => chunks.push(chunk));
2853
2854
  child.stderr.on("data", (chunk) => stderrChunks.push(chunk));
2855
+ const timer = setTimeout(() => {
2856
+ child.kill("SIGTERM");
2857
+ if (!settled) {
2858
+ settled = true;
2859
+ reject(
2860
+ new Error(
2861
+ `Claude CLI timed out after ${this.timeoutMs / 1e3}s. Set CALIBER_CLAUDE_CLI_TIMEOUT_MS to increase.`
2862
+ )
2863
+ );
2864
+ }
2865
+ }, this.timeoutMs);
2854
2866
  child.on("error", (err) => {
2855
2867
  clearTimeout(timer);
2856
- reject(err);
2868
+ if (!settled) {
2869
+ settled = true;
2870
+ reject(err);
2871
+ }
2857
2872
  });
2858
2873
  child.on("close", (code, signal) => {
2859
2874
  clearTimeout(timer);
2875
+ if (settled) return;
2876
+ settled = true;
2860
2877
  const stdout = Buffer.concat(chunks).toString("utf-8").trim();
2861
2878
  if (code === 0) {
2862
2879
  resolve3(stdout);
@@ -2868,14 +2885,6 @@ var ClaudeCliProvider = class {
2868
2885
  reject(new Error(detail ? `${base}. ${detail}` : base));
2869
2886
  }
2870
2887
  });
2871
- const timer = setTimeout(() => {
2872
- child.kill("SIGTERM");
2873
- reject(
2874
- new Error(
2875
- `Claude CLI timed out after ${this.timeoutMs / 1e3}s. Set CALIBER_CLAUDE_CLI_TIMEOUT_MS to increase.`
2876
- )
2877
- );
2878
- }, this.timeoutMs);
2879
2888
  });
2880
2889
  }
2881
2890
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.41.2",
3
+ "version": "1.41.4",
4
4
  "description": "AI context infrastructure for coding agents — keeps CLAUDE.md, Cursor rules, and skills in sync as your codebase evolves",
5
5
  "type": "module",
6
6
  "bin": {