jeo-code 0.7.9 → 0.7.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeo-code",
3
- "version": "0.7.9",
3
+ "version": "0.7.12",
4
4
  "description": "Clean, highly optimized AI coding agent using spec-first loop",
5
5
  "type": "module",
6
6
  "main": "src/cli.ts",
@@ -83,7 +83,7 @@ export async function spillToolResult(tool: string, output: string, cwd: string)
83
83
  await fs.mkdir(dir, { recursive: true });
84
84
  const safeTool = tool.replace(/[^a-zA-Z0-9_-]/g, "_").slice(0, 32) || "tool";
85
85
  const stamp = `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
86
- const rel = path.join(".jeo", "artifacts", "tool-results", `${stamp}-${safeTool}.txt`);
86
+ const rel = `.jeo/artifacts/tool-results/${stamp}-${safeTool}.txt`;
87
87
  await fs.writeFile(path.join(cwd, rel), output, "utf-8");
88
88
  // Retention so a long session can't grow the artifact dir without bound.
89
89
  await pruneToolArtifacts(dir);
@@ -533,7 +533,8 @@ export function streamIdleMs(env?: Record<string, string | undefined>): number {
533
533
  * built-in default. Mirrors streamIdleMs so a slow non-interactive turn (callLlm without
534
534
  * onToken) can relax the cap via JEO_CALL_TIMEOUT_MS without a code change. */
535
535
  export function callTimeoutMs(env?: Record<string, string | undefined>): number {
536
- const raw = jeoEnv("CALL_TIMEOUT_MS", env);
536
+ const e = env ?? process.env;
537
+ const raw = jeoEnv("CALL_TIMEOUT_MS", e) ?? e["ANTHROPIC_TIMEOUT"];
537
538
  const n = raw !== undefined ? parseInt(raw, 10) : NaN;
538
539
  return Number.isFinite(n) && n > 0 ? n : DEFAULT_CALL_TIMEOUT_MS;
539
540
  }