@kelceyp/caw-server 1.1.1 → 1.1.3

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/cli.js CHANGED
@@ -10134,13 +10134,15 @@ var create_default6 = Object.freeze({ create: create69 });
10134
10134
 
10135
10135
  // src/commands/job/continue.js
10136
10136
  var create70 = ({ httpClient }) => {
10137
- return createCommand("continue").summary("Continue a job with a follow-up prompt").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).param((p) => p.name("prompt").type("string").flag("prompt").required()).param((p) => p.name("model").type("string").flag("model")).param((p) => p.name("blocking").type("boolean").flag("blocking")).run(async (ctx) => {
10138
- const { sid, id, prompt, model, blocking } = ctx.params;
10137
+ return createCommand("continue").summary("Continue a job with a follow-up prompt").description("Continue a completed or errored job with a follow-up prompt. " + "The continue can also rewind a Claude job's conversation with --rewind-before-turn <N>.").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).param((p) => p.name("prompt").type("string").flag("prompt").required()).param((p) => p.name("model").type("string").flag("model")).param((p) => p.name("blocking").type("boolean").flag("blocking")).param((p) => p.name("rewindBeforeTurn").type("number").flag("rewind-before-turn").description("Rewind the conversation to just before turn N: the agent forgets turn N and every later turn it still remembers, and answers this prompt as the next turn number. " + "Claude jobs only. It applies once and sticks: later continues don't pass it again, and nothing in CAW is deleted. " + "Side effects of forgotten turns (file edits, CAW documents written, child jobs started) are not undone. " + "Sent to continue_job as rewindBeforeTurn, so its refusals (REWIND_NOT_SUPPORTED, REWIND_NOT_SUPPORTED_FOR_LEGACY, REWIND_NO_SESSION, " + "REWIND_TURN_OUT_OF_RANGE, REWIND_TURN_FORGOTTEN, REWIND_POINT_NO_UUID, REWIND_POINT_COMPACTED) are continue_job's.")).run(async (ctx) => {
10138
+ const { sid, id, prompt, model, blocking, rewindBeforeTurn } = ctx.params;
10139
10139
  const args = { id, prompt };
10140
10140
  if (model !== undefined)
10141
10141
  args.model = model;
10142
10142
  if (blocking !== undefined)
10143
10143
  args.blocking = blocking;
10144
+ if (rewindBeforeTurn !== undefined)
10145
+ args.rewindBeforeTurn = rewindBeforeTurn;
10144
10146
  const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
10145
10147
  cwd: process.cwd(),
10146
10148
  tool: "continue_job",