@lightcone-ai/daemon 0.15.13 → 0.15.14

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": "@lightcone-ai/daemon",
3
- "version": "0.15.13",
3
+ "version": "0.15.14",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1701,7 +1701,7 @@ server.tool('execute_approved_action',
1701
1701
  const data = await api('POST', `/actions/${action_id}/execute`, {});
1702
1702
  if (data.error) return { isError: true, content: [{ type: 'text', text: `Failed: ${data.error}` }] };
1703
1703
  if (data?.execution?.mode === 'user_daemon_job') {
1704
- const actionId = data.execution.action_id ?? data.action_id;
1704
+ const actionId = action_id; // use the parameter passed to this tool
1705
1705
  const jobId = data.execution.publish_job_id;
1706
1706
  // Poll until the daemon job finishes (max 5 min)
1707
1707
  const deadline = Date.now() + 5 * 60 * 1000;