@lightcone-ai/daemon 0.9.29 → 0.9.30
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 +1 -1
- package/src/chat-bridge.js +5 -2
package/package.json
CHANGED
package/src/chat-bridge.js
CHANGED
|
@@ -439,9 +439,12 @@ server.tool('execute_approved_action',
|
|
|
439
439
|
const data = await api('POST', `/actions/${action_id}/execute`, {});
|
|
440
440
|
if (data.error) return { isError: true, content: [{ type: 'text', text: `Failed: ${data.error}` }] };
|
|
441
441
|
return { content: [{ type: 'text', text:
|
|
442
|
-
`Action
|
|
442
|
+
`Action approved. Now call the appropriate platform tool to actually perform the operation.\n` +
|
|
443
443
|
`actionType=${data.actionType} platform=${data.platform}\n` +
|
|
444
|
-
`Payload
|
|
444
|
+
`Payload: ${JSON.stringify(data.payload)}\n\n` +
|
|
445
|
+
`For xhs_post: call publish_content(platform="xhs", ...) with the payload fields above.\n` +
|
|
446
|
+
`For douyin_post: call publish_content(platform="douyin", ...).\n` +
|
|
447
|
+
`For x_post: call post_tweet(...).`
|
|
445
448
|
}]};
|
|
446
449
|
} catch (err) {
|
|
447
450
|
return { isError: true, content: [{ type: 'text', text: `Error: ${err.message}` }] };
|