@jiggai/recipes 0.4.62 → 0.4.63

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.
@@ -2,7 +2,7 @@
2
2
  "id": "recipes",
3
3
  "name": "Recipes",
4
4
  "description": "Markdown recipes that scaffold agents and teams (workspace-local).",
5
- "version": "0.4.62",
5
+ "version": "0.4.63",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiggai/recipes",
3
- "version": "0.4.62",
3
+ "version": "0.4.63",
4
4
  "description": "ClawRecipes plugin for OpenClaw (markdown recipes -> scaffold agents/teams)",
5
5
  "main": "index.ts",
6
6
  "type": "commonjs",
@@ -47,7 +47,15 @@ function parseToolsInvokeError(json: ToolsInvokeResponse, status: number): strin
47
47
 
48
48
  async function doSingleToolsInvoke<T>(url: string, token: string, req: ToolsInvokeRequest): Promise<T> {
49
49
  const ac = new AbortController();
50
- const t = setTimeout(() => ac.abort(), TOOLS_INVOKE_TIMEOUT_MS);
50
+ // Honor per-call timeoutMs (e.g. LLM nodes often pass 300000-900000 ms).
51
+ // Add a 30s HTTP/gateway overhead buffer so the LLM has the full node-
52
+ // configured window to produce its response before the fetch aborts.
53
+ // Fall back to the module default when no timeout was passed.
54
+ const argsTimeout = typeof (req.args as Record<string, unknown> | undefined)?.['timeoutMs'] === 'number'
55
+ ? (req.args as { timeoutMs: number }).timeoutMs
56
+ : 0;
57
+ const fetchTimeoutMs = argsTimeout > 0 ? argsTimeout + 30_000 : TOOLS_INVOKE_TIMEOUT_MS;
58
+ const t = setTimeout(() => ac.abort(), fetchTimeoutMs);
51
59
  const res = await fetch(url, {
52
60
  method: "POST",
53
61
  signal: ac.signal,