@jiggai/recipes 0.4.22 → 0.4.23
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/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -192,31 +192,23 @@ export async function executeWorkflowNodes(opts: {
|
|
|
192
192
|
`Return ONLY the final content (the runner will store it as JSON).`,
|
|
193
193
|
].join('\n');
|
|
194
194
|
|
|
195
|
-
// Prefer llm-task-fixed when installed; fall back to llm-task.
|
|
196
|
-
// Avoid depending on sessions_spawn (not always exposed via gateway tools/invoke).
|
|
197
195
|
let text = '';
|
|
198
196
|
try {
|
|
199
|
-
|
|
197
|
+
|
|
200
198
|
const priorInput = await loadPriorLlmInput({ runDir, workflow, currentNode: node, currentNodeIndex: i });
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
args: {
|
|
215
|
-
prompt: task,
|
|
216
|
-
input: { teamId, runId, nodeId: node.id, agentId, ...priorInput },
|
|
217
|
-
},
|
|
218
|
-
});
|
|
219
|
-
}
|
|
199
|
+
|
|
200
|
+
const timeoutMsRaw = Number(asString(action['timeoutMs'] ?? (node as unknown as { config?: unknown })?.config?.['timeoutMs'] ?? '120000'));
|
|
201
|
+
const timeoutMs = Number.isFinite(timeoutMsRaw) && timeoutMsRaw > 0 ? timeoutMsRaw : 120000;
|
|
202
|
+
|
|
203
|
+
const llmRes = await toolsInvoke<unknown>(api, {
|
|
204
|
+
tool: 'llm-task',
|
|
205
|
+
action: 'json',
|
|
206
|
+
args: {
|
|
207
|
+
prompt: task,
|
|
208
|
+
input: { teamId, runId, nodeId: node.id, agentId, ...priorInput },
|
|
209
|
+
timeoutMs,
|
|
210
|
+
},
|
|
211
|
+
});
|
|
220
212
|
|
|
221
213
|
const llmRec = asRecord(llmRes);
|
|
222
214
|
const details = asRecord(llmRec['details']);
|
|
@@ -201,27 +201,21 @@ export async function runWorkflowWorkerTick(api: OpenClawPluginApi, opts: {
|
|
|
201
201
|
|
|
202
202
|
let text = '';
|
|
203
203
|
try {
|
|
204
|
-
|
|
204
|
+
|
|
205
205
|
const priorInput = await loadPriorLlmInput({ runDir, workflow, currentNode: node, currentNodeIndex: nodeIdx });
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
args: {
|
|
220
|
-
prompt: taskText,
|
|
221
|
-
input: { teamId, runId, nodeId: node.id, agentId, ...priorInput },
|
|
222
|
-
},
|
|
223
|
-
});
|
|
224
|
-
}
|
|
206
|
+
|
|
207
|
+
const timeoutMsRaw = Number(asString(action['timeoutMs'] ?? (node as unknown as { config?: unknown })?.config?.['timeoutMs'] ?? '120000'));
|
|
208
|
+
const timeoutMs = Number.isFinite(timeoutMsRaw) && timeoutMsRaw > 0 ? timeoutMsRaw : 120000;
|
|
209
|
+
|
|
210
|
+
const llmRes = await toolsInvoke<unknown>(api, {
|
|
211
|
+
tool: 'llm-task',
|
|
212
|
+
action: 'json',
|
|
213
|
+
args: {
|
|
214
|
+
prompt: taskText,
|
|
215
|
+
input: { teamId, runId, nodeId: node.id, agentId, ...priorInput },
|
|
216
|
+
timeoutMs,
|
|
217
|
+
},
|
|
218
|
+
});
|
|
225
219
|
|
|
226
220
|
const llmRec = asRecord(llmRes);
|
|
227
221
|
const details = asRecord(llmRec['details']);
|