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
package/src/agent/tool-output.ts
CHANGED
|
@@ -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 =
|
|
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);
|
package/src/ai/model-manager.ts
CHANGED
|
@@ -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
|
|
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
|
}
|