castle-web-cli 0.4.23 → 0.4.24
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/agent.js +3 -3
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -449,9 +449,9 @@ function createTaskStore(opts) {
|
|
|
449
449
|
notesPath: path.join(relDir, 'notes.md'),
|
|
450
450
|
depsSummary: depsSummaryFor(tasks, task),
|
|
451
451
|
});
|
|
452
|
-
// Claude task runs
|
|
453
|
-
//
|
|
454
|
-
const invocation = buildAgentInvocation(backend, 'task', taskPrompt, opts.claudeModel());
|
|
452
|
+
// Claude task runs get /goal (claude code's built-in commit-to-completion
|
|
453
|
+
// command) plus the system-prompt autonomy reminder.
|
|
454
|
+
const invocation = buildAgentInvocation(backend, 'task', backend === 'claude' ? `/goal ${taskPrompt}` : taskPrompt, opts.claudeModel());
|
|
455
455
|
let result = { ok: false, finalText: '', error: 'not run' };
|
|
456
456
|
let lineBuf = '';
|
|
457
457
|
const flushFeedLines = (delta) => {
|