// THE TAKE-PATCH EDITS (umtool redesign L3, S6; 12 Nov 2026). Every edit IN THE APP lands in the working draft;
// a saved version is frozen and is edited in the app by opening it in the draft (`umtool takes open
`,
// which writes the version over the draft -- the draft saved first). The CLI's take-patch writes -- `set --take`,
// `look --take`, `window --take`, `timeline --take`, `posts … --in-take`, `take --import-item` -- are the
// SUPPORTED way to edit a take without touching the draft (knobs.md: "the take-scoped CLI stays for agents"): each
// writes takes//take.json's patch with an undo point of its own, and says nothing on stderr. They said this
// line from 9 Nov to 12 Nov, and its advice (open the take in the draft) is the one path that writes the draft.
// Only the old take walk's route (/api/report/takes/timeline, the app's) still says it, with its Deprecation header.
//
// Plain ESM: the CLI and the route both read it.
/**
* The one line, for `what` (the flag or route as typed) on take `take` of project `project`; `instead`, the verb
* that does it in the draft when it is not the same command without the flag.
* @param {string} what
* @param {{ project?: string | null, take?: string | null, instead?: string | null }} [o]
*/
export function takeEditDeprecation(what, { project = null, take = null, instead = null } = {}) {
const p = project ?? "";
const t = take ?? "";
return `umtool: ${what} is deprecated -- edits land in the draft now; open the take there first (umtool takes open ${p} ${t}) and ${instead ? `use ${instead}` : "edit without it"}`;
}
/** Say it on stderr (once per call). */
export function warnTakeEdit(what, o = {}, write = (s) => process.stderr.write(`${s}\n`)) {
write(takeEditDeprecation(what, o));
}