@open-mercato/cezar 0.19.0-pr2138.5056 → 0.19.0-pr2139.5057

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.
@@ -2,6 +2,8 @@ export interface ShimOptions {
2
2
  platform?: NodeJS.Platform;
3
3
  /** The node to run a script with when the shim has none beside it; defaults to this process's. */
4
4
  nodePath?: string;
5
+ /** The environment whose PATH a bare program name is looked up in; defaults to this process's. */
6
+ env?: NodeJS.ProcessEnv;
5
7
  }
6
8
  /** What a shim launches: a node script, or a native binary it calls directly (opencode). */
7
9
  export interface ShimTarget {
@@ -83,6 +83,25 @@ export function shimScript(shimPath) {
83
83
  const target = shimTarget(shimPath);
84
84
  return target?.kind === 'node' ? target.path : null;
85
85
  }
86
+ /**
87
+ * A bare name (`codex`) is resolved against PATH the way cmd.exe would: libuv only tries `.com`/`.exe`,
88
+ * so an npm-installed `%APPDATA%\\npm\\codex.cmd` was ENOENT (#1948). A native binary on PATH is left to
89
+ * libuv; null when nothing is found, so the spawn fails with its own error.
90
+ */
91
+ function resolveBareShim(program, env) {
92
+ if (/[\\/]/.test(program) || extname(program) !== '')
93
+ return null;
94
+ const pathKey = Object.keys(env).find((key) => key.toLowerCase() === 'path');
95
+ const dirs = (pathKey ? env[pathKey] : undefined)?.split(';').map((dir) => dir.replace(/^"|"$/g, '')).filter(Boolean) ?? [];
96
+ for (const dir of dirs) {
97
+ if ([...NATIVE_EXTENSIONS].some((ext) => existsSync(join(dir, program + ext))))
98
+ return null;
99
+ for (const ext of ['.cmd', '.bat', '.ps1'])
100
+ if (existsSync(join(dir, program + ext)))
101
+ return join(dir, program + ext);
102
+ }
103
+ return null;
104
+ }
86
105
  /**
87
106
  * `[file, args]` that run `program` without a shell. Untouched off Windows and for anything that
88
107
  * is not a recognisable shim or script, so a bad path still fails the spawn with its own error.
@@ -90,6 +109,7 @@ export function shimScript(shimPath) {
90
109
  export function spawnableCommand(program, args, opts = {}) {
91
110
  if ((opts.platform ?? process.platform) !== 'win32')
92
111
  return [program, [...args]];
112
+ program = resolveBareShim(program, opts.env ?? process.env) ?? program;
93
113
  const ext = extname(program).toLowerCase();
94
114
  const nodePath = opts.nodePath ?? process.execPath;
95
115
  if (SCRIPT_EXTENSIONS.has(ext) && existsSync(program))
@@ -1 +1 @@
1
- {"version":3,"file":"windows-shim.js","sourceRoot":"","sources":["../../src/core/windows-shim.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAExE,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAC1D,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAC3D,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AACpD,qFAAqF;AACrF,MAAM,aAAa,GAAG,8BAA8B,CAAC;AACrD,yFAAyF;AACzF,MAAM,aAAa,GAAG,oCAAoC,CAAC;AAC3D,MAAM,cAAc,GAAG,EAAE,GAAG,IAAI,CAAC;AACjC,MAAM,eAAe,GAAG,eAAe,CAAC;AAcxC,2EAA2E;AAC3E,SAAS,QAAQ,CAAC,IAAY,EAAE,QAAgB;IAC9C,IAAI,CAAC;QACH,wFAAwF;QACxF,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC/B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;YAC1C,MAAM,KAAK,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CAAC;AACpF,CAAC"}
package/dist/handoff.d.ts CHANGED
@@ -70,7 +70,7 @@ export declare function followupsEnabled(env?: NodeJS.ProcessEnv): boolean;
70
70
  * inherited value from a parent cezar cannot shine through
71
71
  * (`RunManager.agentEnv`).
72
72
  */
73
- export declare const HANDOFF_ONLY_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\nUse the commands, never a hand-written script: node \"$CEZ_BIN\" handoff log \"<terse line>\" inserts the timestamped line under \"## Progress log\"; node \"$CEZ_BIN\" handoff resume \"<notes>\" (or the notes on stdin, for several lines) replaces \"## Resume notes\", and handoff resume \"\" clears it. Only if CEZ_BIN is unset, edit the file directly.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Dispatching a sub-agent is exactly this case, and it counts whether the sub-agent finishes inside this turn or runs in the background and reports back later through its own completion notification \u2014 cez has no sub-agent-completion event of its own, so an unmarked turn-end is indistinguishable from you asking the user a question, and it raises \"needs you\" and a browser notification for work nobody needs to look at. The test is one question: is the only thing between you and the next step work YOU started? Then the marker belongs there. A turn that fans work out ends like this, marker on the very last line:\n\n Dispatched 3 sub-agents to investigate the failing migration; I'll continue as soon as they report.\n CEZ:MONITORING\n\nUse CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE. A park is bounded, not indefinite: with an automatic re-check cadence configured cez wakes you on that cadence and, after the configured number of re-checks with no progress, hands the task to the user unless a dispatched child is still in flight; with no cadence configured it does the same after four times the configured waiting-session idle timeout (60 minutes by default, also the fallback when idle timeout is disabled), unless a dispatched child is still in flight. An unanswered hand-off ends the run as failed with a Continue button when the configured idle timeout closes the session; with idle timeout disabled it raises attention and rests at waiting \u2014 so end each re-check turn with CEZ:MONITORING again while the downstream work is still pending.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u201320 questions, 2\u201310 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The card itself gives every question an \"Other\u2026\" field for the user's own answer and a \"Need more info\" choice, so never add either as an option yourself. An answer that is not one of your labels is the user's own: act on it. An answer asking for more information means the user cannot decide yet: explain what that question hinges on \u2014 the context, the trade-offs, what each option would change \u2014 then ask it again with CEZ:ASK; never guess an answer for it. Several decisions that are genuinely all the user's ride ONE card \u2014 do not drop any to fit a count, and do not split them across turns. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line \u2014 those two always come last.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, text, archives \u2014 any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only and does not survive later workflow steps, some backends or a compacted context, while the file on disk always does; a non-image attachment exists ONLY as the file at that path. Read the file whenever the user refers to a screenshot you cannot see inline, and never tell the user their attachment did not reach you without opening its path first.\n\n## File links (#1923)\nA file link in your message \u2014 relative (`temp/summary.txt`) or absolute \u2014 is not clickable in the cockpit: it renders as inert text, and the Files tab lists only tracked or non-ignored files, so a gitignored file (such as one under `temp/`) is not there either. Put short deliverables (a summary, a result, a snippet) inline in your message. For a file the user must reach, write it to the artifacts directory ($CEZ_ARTIFACTS_DIR) and name it there, or to a non-ignored path in the worktree and give that worktree-relative path \u2014 never link to a gitignored file as if it could be opened.";
73
+ export declare const HANDOFF_ONLY_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\nUse the commands, never a hand-written script: node \"$CEZ_BIN\" handoff log \"<terse line>\" inserts the timestamped line under \"## Progress log\"; node \"$CEZ_BIN\" handoff resume \"<notes>\" (or the notes on stdin, for several lines) replaces \"## Resume notes\", and handoff resume \"\" clears it. Only if CEZ_BIN is unset, edit the file directly.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Dispatching a sub-agent is exactly this case, and it counts whether the sub-agent finishes inside this turn or runs in the background and reports back later through its own completion notification \u2014 cez has no sub-agent-completion event of its own, so an unmarked turn-end is indistinguishable from you asking the user a question, and it raises \"needs you\" and a browser notification for work nobody needs to look at. The test is one question: is the only thing between you and the next step work YOU started? Then the marker belongs there. A turn that fans work out ends like this, marker on the very last line:\n\n Dispatched 3 sub-agents to investigate the failing migration; I'll continue as soon as they report.\n CEZ:MONITORING\n\nUse CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE. A park is bounded, not indefinite: with an automatic re-check cadence configured cez wakes you on that cadence and, after the configured number of re-checks with no progress, hands the task to the user unless a dispatched child is still in flight; with no cadence configured it does the same after four times the configured waiting-session idle timeout (60 minutes by default, also the fallback when idle timeout is disabled), unless a dispatched child is still in flight. An unanswered hand-off ends the run as failed with a Continue button when the configured idle timeout closes the session; with idle timeout disabled it raises attention and rests at waiting \u2014 so end each re-check turn with CEZ:MONITORING again while the downstream work is still pending.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u201320 questions, 2\u201310 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The card itself gives every question an \"Other\u2026\" field for the user's own answer and a \"Need more info\" choice, so never add either as an option yourself. An answer that is not one of your labels is the user's own: act on it. An answer asking for more information means the user cannot decide yet: explain what that question hinges on \u2014 the context, the trade-offs, what each option would change \u2014 then ask it again with CEZ:ASK; never guess an answer for it. Several decisions that are genuinely all the user's ride ONE card \u2014 do not drop any to fit a count, and do not split them across turns. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line \u2014 those two always come last.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, text, archives \u2014 any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only and does not survive later workflow steps, some backends or a compacted context, while the file on disk always does; a non-image attachment exists ONLY as the file at that path. Read the file whenever the user refers to a screenshot you cannot see inline, and never tell the user their attachment did not reach you without opening its path first.";
74
74
  export declare const FOLLOWUP_INSTRUCTIONS = "## Follow-ups (cezar)\n\nCEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox \u2014 a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler \u2014 a restated summary of what you just finished, a congratulatory note, or \"no further action needed\" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:\n{ \"ts\": \"<ISO 8601>\", \"taskId\": \"<value of CEZ_TASK_ID>\", \"summary\": \"<one sentence: the concrete next action, not a status report>\", \"action\": \"<imperative user action, optional>\", \"prUrl\": \"<optional>\", \"suggestedSkill\": \"<optional skill name for the follow-up>\", \"suggestedArgs\": \"<optional>\", \"suggestedPrompt\": \"<optional freeform prompt for the follow-up task>\", \"runnable\": <true when an agent can execute this follow-up, false when it is a note> }\nSet \"runnable\": false for anything a human must do or merely read \u2014 manual QA, \"remember to\u2026\", informational notes \u2014 and leave out suggestedSkill/suggestedPrompt for those; the inbox then offers \"Acknowledge\" instead of \"Run\". Set \"runnable\": true only when suggestedSkill or suggestedPrompt says what to actually execute.\nNever modify or remove existing entries \u2014 append only.";
75
75
  /** Default-on combined contract retained for old callers and runs. */
76
- export declare const HANDOFF_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\nUse the commands, never a hand-written script: node \"$CEZ_BIN\" handoff log \"<terse line>\" inserts the timestamped line under \"## Progress log\"; node \"$CEZ_BIN\" handoff resume \"<notes>\" (or the notes on stdin, for several lines) replaces \"## Resume notes\", and handoff resume \"\" clears it. Only if CEZ_BIN is unset, edit the file directly.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Dispatching a sub-agent is exactly this case, and it counts whether the sub-agent finishes inside this turn or runs in the background and reports back later through its own completion notification \u2014 cez has no sub-agent-completion event of its own, so an unmarked turn-end is indistinguishable from you asking the user a question, and it raises \"needs you\" and a browser notification for work nobody needs to look at. The test is one question: is the only thing between you and the next step work YOU started? Then the marker belongs there. A turn that fans work out ends like this, marker on the very last line:\n\n Dispatched 3 sub-agents to investigate the failing migration; I'll continue as soon as they report.\n CEZ:MONITORING\n\nUse CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE. A park is bounded, not indefinite: with an automatic re-check cadence configured cez wakes you on that cadence and, after the configured number of re-checks with no progress, hands the task to the user unless a dispatched child is still in flight; with no cadence configured it does the same after four times the configured waiting-session idle timeout (60 minutes by default, also the fallback when idle timeout is disabled), unless a dispatched child is still in flight. An unanswered hand-off ends the run as failed with a Continue button when the configured idle timeout closes the session; with idle timeout disabled it raises attention and rests at waiting \u2014 so end each re-check turn with CEZ:MONITORING again while the downstream work is still pending.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u201320 questions, 2\u201310 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The card itself gives every question an \"Other\u2026\" field for the user's own answer and a \"Need more info\" choice, so never add either as an option yourself. An answer that is not one of your labels is the user's own: act on it. An answer asking for more information means the user cannot decide yet: explain what that question hinges on \u2014 the context, the trade-offs, what each option would change \u2014 then ask it again with CEZ:ASK; never guess an answer for it. Several decisions that are genuinely all the user's ride ONE card \u2014 do not drop any to fit a count, and do not split them across turns. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line \u2014 those two always come last.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, text, archives \u2014 any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only and does not survive later workflow steps, some backends or a compacted context, while the file on disk always does; a non-image attachment exists ONLY as the file at that path. Read the file whenever the user refers to a screenshot you cannot see inline, and never tell the user their attachment did not reach you without opening its path first.\n\n## File links (#1923)\nA file link in your message \u2014 relative (`temp/summary.txt`) or absolute \u2014 is not clickable in the cockpit: it renders as inert text, and the Files tab lists only tracked or non-ignored files, so a gitignored file (such as one under `temp/`) is not there either. Put short deliverables (a summary, a result, a snippet) inline in your message. For a file the user must reach, write it to the artifacts directory ($CEZ_ARTIFACTS_DIR) and name it there, or to a non-ignored path in the worktree and give that worktree-relative path \u2014 never link to a gitignored file as if it could be opened.\n\n## Follow-ups (cezar)\n\nCEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox \u2014 a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler \u2014 a restated summary of what you just finished, a congratulatory note, or \"no further action needed\" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:\n{ \"ts\": \"<ISO 8601>\", \"taskId\": \"<value of CEZ_TASK_ID>\", \"summary\": \"<one sentence: the concrete next action, not a status report>\", \"action\": \"<imperative user action, optional>\", \"prUrl\": \"<optional>\", \"suggestedSkill\": \"<optional skill name for the follow-up>\", \"suggestedArgs\": \"<optional>\", \"suggestedPrompt\": \"<optional freeform prompt for the follow-up task>\", \"runnable\": <true when an agent can execute this follow-up, false when it is a note> }\nSet \"runnable\": false for anything a human must do or merely read \u2014 manual QA, \"remember to\u2026\", informational notes \u2014 and leave out suggestedSkill/suggestedPrompt for those; the inbox then offers \"Acknowledge\" instead of \"Run\". Set \"runnable\": true only when suggestedSkill or suggestedPrompt says what to actually execute.\nNever modify or remove existing entries \u2014 append only.";
76
+ export declare const HANDOFF_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\nUse the commands, never a hand-written script: node \"$CEZ_BIN\" handoff log \"<terse line>\" inserts the timestamped line under \"## Progress log\"; node \"$CEZ_BIN\" handoff resume \"<notes>\" (or the notes on stdin, for several lines) replaces \"## Resume notes\", and handoff resume \"\" clears it. Only if CEZ_BIN is unset, edit the file directly.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Dispatching a sub-agent is exactly this case, and it counts whether the sub-agent finishes inside this turn or runs in the background and reports back later through its own completion notification \u2014 cez has no sub-agent-completion event of its own, so an unmarked turn-end is indistinguishable from you asking the user a question, and it raises \"needs you\" and a browser notification for work nobody needs to look at. The test is one question: is the only thing between you and the next step work YOU started? Then the marker belongs there. A turn that fans work out ends like this, marker on the very last line:\n\n Dispatched 3 sub-agents to investigate the failing migration; I'll continue as soon as they report.\n CEZ:MONITORING\n\nUse CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE. A park is bounded, not indefinite: with an automatic re-check cadence configured cez wakes you on that cadence and, after the configured number of re-checks with no progress, hands the task to the user unless a dispatched child is still in flight; with no cadence configured it does the same after four times the configured waiting-session idle timeout (60 minutes by default, also the fallback when idle timeout is disabled), unless a dispatched child is still in flight. An unanswered hand-off ends the run as failed with a Continue button when the configured idle timeout closes the session; with idle timeout disabled it raises attention and rests at waiting \u2014 so end each re-check turn with CEZ:MONITORING again while the downstream work is still pending.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u201320 questions, 2\u201310 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The card itself gives every question an \"Other\u2026\" field for the user's own answer and a \"Need more info\" choice, so never add either as an option yourself. An answer that is not one of your labels is the user's own: act on it. An answer asking for more information means the user cannot decide yet: explain what that question hinges on \u2014 the context, the trade-offs, what each option would change \u2014 then ask it again with CEZ:ASK; never guess an answer for it. Several decisions that are genuinely all the user's ride ONE card \u2014 do not drop any to fit a count, and do not split them across turns. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line \u2014 those two always come last.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, text, archives \u2014 any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only and does not survive later workflow steps, some backends or a compacted context, while the file on disk always does; a non-image attachment exists ONLY as the file at that path. Read the file whenever the user refers to a screenshot you cannot see inline, and never tell the user their attachment did not reach you without opening its path first.\n\n## Follow-ups (cezar)\n\nCEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox \u2014 a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler \u2014 a restated summary of what you just finished, a congratulatory note, or \"no further action needed\" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:\n{ \"ts\": \"<ISO 8601>\", \"taskId\": \"<value of CEZ_TASK_ID>\", \"summary\": \"<one sentence: the concrete next action, not a status report>\", \"action\": \"<imperative user action, optional>\", \"prUrl\": \"<optional>\", \"suggestedSkill\": \"<optional skill name for the follow-up>\", \"suggestedArgs\": \"<optional>\", \"suggestedPrompt\": \"<optional freeform prompt for the follow-up task>\", \"runnable\": <true when an agent can execute this follow-up, false when it is a note> }\nSet \"runnable\": false for anything a human must do or merely read \u2014 manual QA, \"remember to\u2026\", informational notes \u2014 and leave out suggestedSkill/suggestedPrompt for those; the inbox then offers \"Acknowledge\" instead of \"Run\". Set \"runnable\": true only when suggestedSkill or suggestedPrompt says what to actually execute.\nNever modify or remove existing entries \u2014 append only.";
package/dist/handoff.js CHANGED
@@ -257,10 +257,7 @@ Structured question marker: when you are blocked on a decision that is genuinely
257
257
  Task reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject — never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. "implementing comment threads"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line — those two always come last.
258
258
 
259
259
  ## Pasted attachments
260
- User-attached screenshots and files (PDF, text, archives — any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only and does not survive later workflow steps, some backends or a compacted context, while the file on disk always does; a non-image attachment exists ONLY as the file at that path. Read the file whenever the user refers to a screenshot you cannot see inline, and never tell the user their attachment did not reach you without opening its path first.
261
-
262
- ## File links (#1923)
263
- A file link in your message — relative (\`temp/summary.txt\`) or absolute — is not clickable in the cockpit: it renders as inert text, and the Files tab lists only tracked or non-ignored files, so a gitignored file (such as one under \`temp/\`) is not there either. Put short deliverables (a summary, a result, a snippet) inline in your message. For a file the user must reach, write it to the artifacts directory ($CEZ_ARTIFACTS_DIR) and name it there, or to a non-ignored path in the worktree and give that worktree-relative path — never link to a gitignored file as if it could be opened.`;
260
+ User-attached screenshots and files (PDF, text, archives — any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only and does not survive later workflow steps, some backends or a compacted context, while the file on disk always does; a non-image attachment exists ONLY as the file at that path. Read the file whenever the user refers to a screenshot you cannot see inline, and never tell the user their attachment did not reach you without opening its path first.`;
264
261
  export const FOLLOWUP_INSTRUCTIONS = `## Follow-ups (cezar)
265
262
 
266
263
  CEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox — a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler — a restated summary of what you just finished, a congratulatory note, or "no further action needed" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:
@@ -1 +1 @@
1
- {"version":3,"file":"handoff.js","sourceRoot":"","sources":["../src/handoff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;GAOG;AAEH,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,KAAa;IACxD,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,aAAa,CAAC,CAAC;AACtD,CAAC;AAWD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAU1C,MAAM,YAAY,GAAG,6GAA6G,CAAC;AACnI,MAAM,eAAe,GAAG,cAAc,CAAC;AAEvC,SAAS,cAAc,CAAC,IAAY;IAClC,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACzB,IAAI,CAAC,SAAS,IAAI,CAAC,OAAO;QAAE,OAAO,SAAS,CAAC;IAC7C,MAAM,cAAc,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AC,MAAM,qBAAqB,GAAG;;;;;uDAKkB,CAAC;AAExD,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,yBAAyB,OAAO,qBAAqB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/cezar",
3
- "version": "0.19.0-pr2138.5056",
3
+ "version": "0.19.0-pr2139.5057",
4
4
  "description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -56,8 +56,8 @@
56
56
  "zod": "^4.4.3"
57
57
  },
58
58
  "devDependencies": {
59
- "@open-mercato/cezar-api-client": "0.19.0-pr2138.5056",
60
- "@open-mercato/cezar-contract": "0.19.0-pr2138.5056",
59
+ "@open-mercato/cezar-api-client": "0.19.0-pr2139.5057",
60
+ "@open-mercato/cezar-contract": "0.19.0-pr2139.5057",
61
61
  "@types/node": "^20.14.0",
62
62
  "@types/proper-lockfile": "4.1.4",
63
63
  "@types/ws": "^8.18.1",