tuna-agent 0.1.117 → 0.1.118
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/dist/daemon/index.js +3 -1
- package/package.json +1 -1
package/dist/daemon/index.js
CHANGED
|
@@ -624,8 +624,10 @@ ${skillContent.slice(0, 15000)}`;
|
|
|
624
624
|
// ── Claude-powered tasks (ideas, script, etc.) ────────────────────────
|
|
625
625
|
(async () => {
|
|
626
626
|
try {
|
|
627
|
+
// Build prompt: use msg.prompt if available, otherwise combine task + url
|
|
628
|
+
const fallbackPrompt = msg.prompt || (msg.url ? `${extTask}: ${msg.url}` : extTask);
|
|
627
629
|
const result = await runClaude({
|
|
628
|
-
prompt:
|
|
630
|
+
prompt: fallbackPrompt,
|
|
629
631
|
cwd: os.homedir(),
|
|
630
632
|
maxTurns: 10,
|
|
631
633
|
outputFormat: extStream ? 'stream-json' : 'json',
|