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.
Files changed (2) hide show
  1. package/dist/agent.js +3 -3
  2. 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 carry an autonomy reminder via --append-system-prompt
453
- // (see CLAUDE_TASK_SYSTEM_REMINDER) -- portable, unlike a slash command.
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "castle-web-cli",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "castle-web": "./dist/index.js"