diff --git a/claude/releases/v2.1.70/cli.js b/claude/releases/v2.1.70/cli.js index 502e288..00f1056 100755 --- a/claude/releases/v2.1.70/cli.js +++ b/claude/releases/v2.1.70/cli.js @@ -3334,7 +3334,7 @@ Remember: DO NOT write or edit any files yet. This is a read-only exploration an ## Parameters - \`name\` (optional): A name for the worktree. If not provided, a random name is generated. -`}function gzq(){return"Creating worktree…"}function Fzq(){return null}function Qzq(A,q,K){return Ci.createElement(B,{flexDirection:"column"},Ci.createElement(T,null,"Switched to worktree on branch ",Ci.createElement(T,{bold:!0},A.worktreeBranch)),Ci.createElement(T,{dimColor:!0},A.worktreePath))}function pzq(){return null}function Uzq(){return null}var Ci;var dzq=E(()=>{c6();Ci=q6(P6(),1)});var o7z,a7z,czq;var lzq=E(()=>{Y4();dzq();X7();pb();Q1();hG1();p0();WC();a3();kJ();m1();o7z=i6(()=>I.strictObject({name:I.string().optional().describe("Optional name for the worktree. A random name is generated if not provided.")})),a7z=i6(()=>I.object({worktreePath:I.string(),worktreeBranch:I.string().optional(),message:I.string()})),czq={name:tG1,searchHint:"create an isolated git worktree and switch into it",maxResultSizeChars:1e5,async description(){return"Creates an isolated worktree (via git or configured hooks) and switches the session into it"},async prompt(){return Bzq()},get inputSchema(){return o7z()},get outputSchema(){return a7z()},userFacingName(){return"Creating worktree"},shouldDefer:!0,isEnabled(){return!0},isConcurrencySafe(){return!1},isReadOnly(){return!1},toAutoClassifierInput(A){return A.name??""},async checkPermissions(A){return{behavior:"allow",updatedInput:A}},renderToolUseMessage:gzq,renderToolUseProgressMessage:Fzq,renderToolResultMessage:Qzq,renderToolUseRejectedMessage:pzq,renderToolUseErrorMessage:Uzq,async call(A){if(wL())throw Error("Already in a worktree session");let q=D0(C1());if(q&&q!==C1())process.chdir(q),uH(q);let K=A.name??hl(),Y=await ai6(l1(),K);process.chdir(Y.worktreePath),uH(Y.worktreePath),d76(C1()),Zy6(!0),CG1(),VJ.cache.clear?.(),AH.cache.clear?.(),l("tengu_worktree_created",{mid_session:!0});let z=Y.worktreeBranch?` on branch ${Y.worktreeBranch}`:"";return{data:{worktreePath:Y.worktreePath,worktreeBranch:Y.worktreeBranch,message:`Created worktree at ${Y.worktreePath}${z}. The session is now working in the worktree. On exit, you will be prompted to keep or remove it.`}}},mapToolResultToToolResultBlockParam({message:A},q){return{type:"tool_result",content:A,tool_use_id:q}}}});var Ry1,Sy1,nzq;var SU8=E(()=>{Ry1=["auto","iterm2","iterm2_with_bell","terminal_bell","kitty","notifications_disabled"],Sy1=["normal","vim"],nzq=["auto","tmux","in-process"]});async function Cy1(A){let q=A.trim();if(!q)return{valid:!1,error:"Model name cannot be empty"};if(!Et(q))return{valid:!1,error:`Model '${q}' is not in the list of available models`};let K=q.toLowerCase();if(R36.includes(K))return{valid:!0};if(izq.has(q))return{valid:!0};try{return await gl({model:q,max_tokens:1,maxRetries:0,messages:[{role:"user",content:[{type:"text",text:"Hi",cache_control:{type:"ephemeral"}}]}]}),izq.set(q,!0),{valid:!0}}catch(Y){return s7z(Y,q)}}function s7z(A,q){if(A instanceof AK6){let Y=t7z(q),z=Y?`. Try '${Y}' instead`:"";return{valid:!1,error:`Model '${q}' not found${z}`}}if(A instanceof k4){if(A instanceof eq6)return{valid:!1,error:"Authentication failed. Please check your API credentials."};if(A instanceof WZ)return{valid:!1,error:"Network error. Please check your internet connection."};let Y=A.error;if(Y&&typeof Y==="object"&&"type"in Y&&Y.type==="not_found_error"&&"message"in Y&&typeof Y.message==="string"&&Y.message.includes("model:"))return{valid:!1,error:`Model '${q}' not found`};return{valid:!1,error:`API error: ${A.message}`}}return{valid:!1,error:`Unable to validate model: ${A instanceof Error?A.message:String(A)}`}}function t7z(A){if(D7()==="firstParty")return;let q=A.toLowerCase();if(q.includes("opus-4-6")||q.includes("opus_4_6"))return p5().opus41;if(q.includes("sonnet-4-6")||q.includes("sonnet_4_6"))return p5().sonnet45;if(q.includes("sonnet-4-5")||q.includes("sonnet_4_5"))return p5().sonnet40;return}var izq;var CU8=E(()=>{$P6();vm6();Wz();PG6();IN();E36();izq=new Map});function hy1(A=!1){if(eA())return{value:null,label:"Default (recommended)",description:HP6(A)};let q=D7()!=="firstParty";return{value:null,label:"Default (recommended)",description:`Use the default model (currently ${g$8(FB())})${q?"":` · ${RR(y36)}`}`}}function e7z(){let A=D7()!=="firstParty",q=process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;if(A&&q)return{value:"sonnet",label:q,description:"Custom Sonnet model",descriptionForModel:`Custom Sonnet model (${q})`}}function A4z(){let A=D7()!=="firstParty";return{value:A?p5().sonnet46:"sonnet",label:"Sonnet",description:`Sonnet 4.6 · Best for everyday tasks${A?"":` · ${RR(y36)}`}`,descriptionForModel:"Sonnet 4.6 - best for everyday tasks. Generally recommended for most coding tasks"}}function q4z(){let A=D7()!=="firstParty",q=process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;if(A&&q)return{value:"opus",label:q,description:"Custom Opus model",descriptionForModel:`Custom Opus model (${q})`}}function K4z(){return{value:"opus",label:"Opus 4.1",description:"Opus 4.1 · Legacy",descriptionForModel:"Opus 4.1 - legacy version"}}function rzq(A=!1){return{value:D7()!=="firstParty"?p5().opus46:"opus",label:"Opus",description:`Opus 4.6${Hb6()} · Most capable for complex work${C36(!1,A)}`,descriptionForModel:"Opus 4.6 - most capable for complex work"}}function ozq(){let A=D7()!=="firstParty";return{value:A?p5().sonnet46+"[1m]":"sonnet[1m]",label:"Sonnet (1M context)",description:`Sonnet 4.6 for long sessions${A?"":` · ${RR(b_1)}`}`,descriptionForModel:"Sonnet 4.6 with 1M context window - for long sessions with large codebases"}}function azq(A=!1){return{value:D7()!=="firstParty"?p5().opus46+"[1m]":"opus[1m]",label:"Opus (1M context)",description:`Opus 4.6 for long sessions${C36(!0,A)}`,descriptionForModel:"Opus 4.6 with 1M context window - for long sessions with large codebases"}}function Y4z(){let A=D7()!=="firstParty",q=process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;if(A&&q)return{value:"haiku",label:q,description:"Custom Haiku model",descriptionForModel:`Custom Haiku model (${q})`}}function Awq(){return{value:"haiku",label:"Haiku",description:`Haiku 4.5 · Fastest for quick answers${D7()!=="firstParty"?"":` · ${RR(m$8)}`}`,descriptionForModel:"Haiku 4.5 - fastest for quick answers. Lower cost but less capable than Sonnet 4.6."}}function z4z(){return{value:"haiku",label:"Haiku",description:`Haiku 3.5 for simple tasks${D7()!=="firstParty"?"":` · ${RR(u$8)}`}`,descriptionForModel:"Haiku 3.5 - faster and lower cost, but less capable than Sonnet. Use for simple tasks."}}function w4z(){return OP6()===p5().haiku45?Awq():z4z()}function _4z(A=!1){return{value:"opus",label:"Opus",description:`Opus 4.6${Hb6()} · Most capable for complex work${A?C36(!1,!0):""}`}}function szq(){let A=D7()!=="firstParty";return{value:"sonnet[1m]",label:"Sonnet (1M context)",description:`Sonnet 4.6 with 1M context · ${eA()?"Billed as extra usage":"Billed at premium rate"}${A?"":` · ${RR(b_1)}`}`}}function tzq(A=!1){return{value:"opus[1m]",label:"Opus (1M context)",description:`Opus 4.6 with 1M context · ${eA()?"Billed as extra usage":"Billed at premium rate"}${C36(!0,A)}`}}function H4z(A=!1){if(eA()){if(iy()||Lt()){let _=[hy1(A)];if(Tn())_.push(tzq(A));if(_.push($4z),Nn())_.push(szq());return _.push(ezq),_}let w=[hy1(A)];if(Nn())w.push(szq());if(w.push(_4z(A)),Tn())w.push(tzq(A));return w.push(ezq),w}if(D7()==="firstParty"){let w=[hy1(A)];if(Nn())w.push(ozq());if(w.push(rzq(A)),Tn())w.push(azq(A));return w.push(Awq()),w}let q=[hy1(A)],K=e7z();if(K!==void 0)q.push(K);else if(q.push(A4z()),Nn())q.push(ozq());let Y=q4z();if(Y!==void 0)q.push(Y);else if(q.push(K4z()),q.push(rzq(A)),Tn())q.push(azq(A));let z=Y4z();if(z!==void 0)q.push(z);else q.push(w4z());return q}function j4z(A){let q=A.toLowerCase();if(q.includes("claude-sonnet-4-6")||q.includes("claude-sonnet-4-5")||q.includes("claude-sonnet-4-")||q.includes("claude-3-7-sonnet")||q.includes("claude-3-5-sonnet")){let K=Ef(),Y=Nt(K);if(Y)return{alias:"Sonnet",currentVersionName:Y}}if(q.includes("claude-opus-4")){let K=YV(),Y=Nt(K);if(Y)return{alias:"Opus",currentVersionName:Y}}if(q.includes("claude-haiku")||q.includes("claude-3-5-haiku")){let K=OP6(),Y=Nt(K);if(Y)return{alias:"Haiku",currentVersionName:Y}}return null}function J4z(A){let q=Nt(A);if(!q)return null;let K=j4z(A);if(!K)return{value:A,label:q,description:A};if(q!==K.currentVersionName)return{value:A,label:q,description:`Newer version available · select ${K.alias} for ${K.currentVersionName}`};return{value:A,label:q,description:A}}function T26(A=!1){let q=H4z(A),K=null,Y=SR(),z=kO6();if(Y!==void 0&&Y!==null)K=Y;else if(z!==null)K=z;var _cm=process.env.CLAUDE_CUSTOM_MODELS||"";if(_cm){var _vs=new Set(q.map(function(_w){return String(_w.value)}));_cm.split(",").forEach(function(_w){_w=_w.trim();if(_w&&!_vs.has(_w)){q.push({value:_w,label:_w,description:"Custom model"});_vs.add(_w)}})}if(K===null||q.some((w)=>w.value===K))return hU8(q);else if(K==="opusplan")return hU8([...q,O4z()]);else{let w=J4z(K);if(w)q.push(w);else q.push({value:K,label:K,description:"Custom model"});return hU8(q)}}function hU8(A){var _cm=process.env.CLAUDE_CUSTOM_MODELS||"";if(_cm)return A;if(!(hA()||{}).availableModels)return A;return A.filter(function(K){return K.value===null||K.value!==null&&uA6(K.value)})}var $4z,ezq,O4z=()=>{return{value:"opusplan",label:"Opus Plan Mode",description:"Use Opus 4.6 in plan mode, Sonnet 4.6 otherwise"}};var Ur6=E(()=>{Q1();bA();zP6();E36();Vt();kA();of1();Wz();vm6();_q();ZK6();$4z={value:"sonnet",label:"Sonnet",description:"Sonnet 4.6 · Best for everyday tasks"},ezq={value:"haiku",label:"Haiku",description:"Haiku 4.5 · Fastest for quick answers"}});var M4z;var bU8=E(()=>{Ab();SU8();CU8();Ur6();F8();M4z={theme:{source:"global",type:"string",description:"Color theme for the UI",options:nj8},editorMode:{source:"global",type:"string",description:"Key binding mode",options:Sy1},verbose:{source:"global",type:"boolean",description:"Show detailed debug output",appStateKey:"verbose"},preferredNotifChannel:{source:"global",type:"string",description:"Preferred notification channel",options:Ry1},autoCompactEnabled:{source:"global",type:"boolean",description:"Auto-compact when context is full"},autoMemoryEnabled:{source:"settings",type:"boolean",description:"Enable auto-memory"},fileCheckpointingEnabled:{source:"global",type:"boolean",description:"Enable file checkpointing for code rewind"},showTurnDuration:{source:"global",type:"boolean",description:'Show turn duration message after responses (e.g., "Cooked for 1m 6s")'},todoFeatureEnabled:{source:"global",type:"boolean",description:"Enable todo/task tracking"},model:{source:"settings",type:"string",description:"Override the default model",appStateKey:"mainLoopModel",getOptions:()=>{try{return T26().filter((A)=>A.value!==null).map((A)=>A.value)}catch{return["sonnet","opus","haiku"]}},validateOnWrite:(A)=>Cy1(String(A)),formatOnRead:(A)=>A===null?"default":A},alwaysThinkingEnabled:{source:"settings",type:"boolean",description:"Enable extended thinking (false to disable)",appStateKey:"thinkingEnabled"},"permissions.defaultMode":{source:"settings",type:"string",description:"Default permission mode for tool usage",options:["default","plan","acceptEdits","dontAsk"]},language:{source:"settings",type:"string",description:'Preferred language for Claude responses (e.g., "japanese", "spanish")'},teammateMode:{source:"global",type:"string",description:'How to spawn teammates: "tmux" for traditional tmux, "in-process" for same process, "auto" to choose automatically',options:nzq},...{},...{voiceEnabled:{source:"settings",type:"boolean",description:"Enable voice dictation mode (hold Space to record)"}},...{remoteControlAtStartup:{source:"global",type:"boolean",description:"Enable Remote Control for all sessions (true | false | default)",formatOnRead:()=>c86()}}}});var qwq=E(()=>{bU8();Ur6();Tl()});var X4z;var Kwq=E(()=>{c6();mH();kK();a1();X4z=q6(P6(),1)});var wT$,_T$;var Ywq=E(()=>{Y4();qwq();bU8();Kwq();F8();kA();m1();x1();a1();XA();wT$=i6(()=>I.strictObject({setting:I.string().describe('The setting key (e.g., "theme", "model", "permissions.defaultMode")'),value:I.union([I.string(),I.boolean(),I.number()]).optional().describe("The new value. Omit to get current value.")})),_T$=i6(()=>I.object({success:I.boolean(),operation:I.enum(["get","set"]).optional(),setting:I.string().optional(),value:I.unknown().optional(),previousValue:I.unknown().optional(),newValue:I.unknown().optional(),error:I.string().optional()}))});function wwq(){let A=P7()?" and potentially assigned to teammates":"",q=P7()?"- New tasks are created with status 'pending' and no owner - use TaskUpdate with the `owner` parameter to assign them\n":"";return`Use this tool to create a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user. +`}function gzq(){return"Creating worktree…"}function Fzq(){return null}function Qzq(A,q,K){return Ci.createElement(B,{flexDirection:"column"},Ci.createElement(T,null,"Switched to worktree on branch ",Ci.createElement(T,{bold:!0},A.worktreeBranch)),Ci.createElement(T,{dimColor:!0},A.worktreePath))}function pzq(){return null}function Uzq(){return null}var Ci;var dzq=E(()=>{c6();Ci=q6(P6(),1)});var o7z,a7z,czq;var lzq=E(()=>{Y4();dzq();X7();pb();Q1();hG1();p0();WC();a3();kJ();m1();o7z=i6(()=>I.strictObject({name:I.string().optional().describe("Optional name for the worktree. A random name is generated if not provided.")})),a7z=i6(()=>I.object({worktreePath:I.string(),worktreeBranch:I.string().optional(),message:I.string()})),czq={name:tG1,searchHint:"create an isolated git worktree and switch into it",maxResultSizeChars:1e5,async description(){return"Creates an isolated worktree (via git or configured hooks) and switches the session into it"},async prompt(){return Bzq()},get inputSchema(){return o7z()},get outputSchema(){return a7z()},userFacingName(){return"Creating worktree"},shouldDefer:!0,isEnabled(){return!0},isConcurrencySafe(){return!1},isReadOnly(){return!1},toAutoClassifierInput(A){return A.name??""},async checkPermissions(A){return{behavior:"allow",updatedInput:A}},renderToolUseMessage:gzq,renderToolUseProgressMessage:Fzq,renderToolResultMessage:Qzq,renderToolUseRejectedMessage:pzq,renderToolUseErrorMessage:Uzq,async call(A){if(wL())throw Error("Already in a worktree session");let q=D0(C1());if(q&&q!==C1())process.chdir(q),uH(q);let K=A.name??hl(),Y=await ai6(l1(),K);process.chdir(Y.worktreePath),uH(Y.worktreePath),d76(C1()),Zy6(!0),CG1(),VJ.cache.clear?.(),AH.cache.clear?.(),l("tengu_worktree_created",{mid_session:!0});let z=Y.worktreeBranch?` on branch ${Y.worktreeBranch}`:"";return{data:{worktreePath:Y.worktreePath,worktreeBranch:Y.worktreeBranch,message:`Created worktree at ${Y.worktreePath}${z}. The session is now working in the worktree. On exit, you will be prompted to keep or remove it.`}}},mapToolResultToToolResultBlockParam({message:A},q){return{type:"tool_result",content:A,tool_use_id:q}}}});var Ry1,Sy1,nzq;var SU8=E(()=>{Ry1=["auto","iterm2","iterm2_with_bell","terminal_bell","kitty","notifications_disabled"],Sy1=["normal","vim"],nzq=["auto","tmux","in-process"]});async function Cy1(A){let q=A.trim();if(!q)return{valid:!1,error:"Model name cannot be empty"};if(!Et(q))return{valid:!1,error:`Model '${q}' is not in the list of available models`};let K=q.toLowerCase();if(R36.includes(K))return{valid:!0};if(izq.has(q))return{valid:!0};try{return await gl({model:q,max_tokens:1,maxRetries:0,messages:[{role:"user",content:[{type:"text",text:"Hi",cache_control:{type:"ephemeral"}}]}]}),izq.set(q,!0),{valid:!0}}catch(Y){return s7z(Y,q)}}function s7z(A,q){if(A instanceof AK6){let Y=t7z(q),z=Y?`. Try '${Y}' instead`:"";return{valid:!1,error:`Model '${q}' not found${z}`}}if(A instanceof k4){if(A instanceof eq6)return{valid:!1,error:"Authentication failed. Please check your API credentials."};if(A instanceof WZ)return{valid:!1,error:"Network error. Please check your internet connection."};let Y=A.error;if(Y&&typeof Y==="object"&&"type"in Y&&Y.type==="not_found_error"&&"message"in Y&&typeof Y.message==="string"&&Y.message.includes("model:"))return{valid:!1,error:`Model '${q}' not found`};return{valid:!1,error:`API error: ${A.message}`}}return{valid:!1,error:`Unable to validate model: ${A instanceof Error?A.message:String(A)}`}}function t7z(A){if(D7()==="firstParty")return;let q=A.toLowerCase();if(q.includes("opus-4-6")||q.includes("opus_4_6"))return p5().opus41;if(q.includes("sonnet-4-6")||q.includes("sonnet_4_6"))return p5().sonnet45;if(q.includes("sonnet-4-5")||q.includes("sonnet_4_5"))return p5().sonnet40;return}var izq;var CU8=E(()=>{$P6();vm6();Wz();PG6();IN();E36();izq=new Map});function hy1(A=!1){if(eA())return{value:null,label:"Default (recommended)",description:HP6(A)};let q=D7()!=="firstParty";return{value:null,label:"Default (recommended)",description:`Use the default model (currently ${g$8(FB())})${q?"":` · ${RR(y36)}`}`}}function e7z(){let A=D7()!=="firstParty",q=process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;if(A&&q)return{value:"sonnet",label:q,description:"Custom Sonnet model",descriptionForModel:`Custom Sonnet model (${q})`}}function A4z(){let A=D7()!=="firstParty";return{value:A?p5().sonnet46:"sonnet",label:"Sonnet",description:`Sonnet 4.6 · Best for everyday tasks${A?"":` · ${RR(y36)}`}`,descriptionForModel:"Sonnet 4.6 - best for everyday tasks. Generally recommended for most coding tasks"}}function q4z(){let A=D7()!=="firstParty",q=process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;if(A&&q)return{value:"opus",label:q,description:"Custom Opus model",descriptionForModel:`Custom Opus model (${q})`}}function K4z(){return{value:"opus",label:"Opus 4.1",description:"Opus 4.1 · Legacy",descriptionForModel:"Opus 4.1 - legacy version"}}function rzq(A=!1){return{value:D7()!=="firstParty"?p5().opus46:"opus",label:"Opus",description:`Opus 4.6${Hb6()} · Most capable for complex work${C36(!1,A)}`,descriptionForModel:"Opus 4.6 - most capable for complex work"}}function ozq(){let A=D7()!=="firstParty";return{value:A?p5().sonnet46+"[1m]":"sonnet[1m]",label:"Sonnet (1M context)",description:`Sonnet 4.6 for long sessions${A?"":` · ${RR(b_1)}`}`,descriptionForModel:"Sonnet 4.6 with 1M context window - for long sessions with large codebases"}}function azq(A=!1){return{value:D7()!=="firstParty"?p5().opus46+"[1m]":"opus[1m]",label:"Opus (1M context)",description:`Opus 4.6 for long sessions${C36(!0,A)}`,descriptionForModel:"Opus 4.6 with 1M context window - for long sessions with large codebases"}}function Y4z(){let A=D7()!=="firstParty",q=process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;if(A&&q)return{value:"haiku",label:q,description:"Custom Haiku model",descriptionForModel:`Custom Haiku model (${q})`}}function Awq(){return{value:"haiku",label:"Haiku",description:`Haiku 4.5 · Fastest for quick answers${D7()!=="firstParty"?"":` · ${RR(m$8)}`}`,descriptionForModel:"Haiku 4.5 - fastest for quick answers. Lower cost but less capable than Sonnet 4.6."}}function z4z(){return{value:"haiku",label:"Haiku",description:`Haiku 3.5 for simple tasks${D7()!=="firstParty"?"":` · ${RR(u$8)}`}`,descriptionForModel:"Haiku 3.5 - faster and lower cost, but less capable than Sonnet. Use for simple tasks."}}function w4z(){return OP6()===p5().haiku45?Awq():z4z()}function _4z(A=!1){return{value:"opus",label:"Opus",description:`Opus 4.6${Hb6()} · Most capable for complex work${A?C36(!1,!0):""}`}}function szq(){let A=D7()!=="firstParty";return{value:"sonnet[1m]",label:"Sonnet (1M context)",description:`Sonnet 4.6 with 1M context · ${eA()?"Billed as extra usage":"Billed at premium rate"}${A?"":` · ${RR(b_1)}`}`}}function tzq(A=!1){return{value:"opus[1m]",label:"Opus (1M context)",description:`Opus 4.6 with 1M context · ${eA()?"Billed as extra usage":"Billed at premium rate"}${C36(!0,A)}`}}function H4z(A=!1){if(eA()){if(iy()||Lt()){let _=[hy1(A)];if(Tn())_.push(tzq(A));if(_.push($4z),Nn())_.push(szq());return _.push(ezq),_}let w=[hy1(A)];if(Nn())w.push(szq());if(w.push(_4z(A)),Tn())w.push(tzq(A));return w.push(ezq),w}if(D7()==="firstParty"){let w=[hy1(A)];if(Nn())w.push(ozq());if(w.push(rzq(A)),Tn())w.push(azq(A));return w.push(Awq()),w}let q=[hy1(A)],K=e7z();if(K!==void 0)q.push(K);else if(q.push(A4z()),Nn())q.push(ozq());let Y=q4z();if(Y!==void 0)q.push(Y);else if(q.push(K4z()),q.push(rzq(A)),Tn())q.push(azq(A));let z=Y4z();if(z!==void 0)q.push(z);else q.push(w4z());return q}function j4z(A){let q=A.toLowerCase();if(q.includes("claude-sonnet-4-6")||q.includes("claude-sonnet-4-5")||q.includes("claude-sonnet-4-")||q.includes("claude-3-7-sonnet")||q.includes("claude-3-5-sonnet")){let K=Ef(),Y=Nt(K);if(Y)return{alias:"Sonnet",currentVersionName:Y}}if(q.includes("claude-opus-4")){let K=YV(),Y=Nt(K);if(Y)return{alias:"Opus",currentVersionName:Y}}if(q.includes("claude-haiku")||q.includes("claude-3-5-haiku")){let K=OP6(),Y=Nt(K);if(Y)return{alias:"Haiku",currentVersionName:Y}}return null}function J4z(A){let q=Nt(A);if(!q)return null;let K=j4z(A);if(!K)return{value:A,label:q,description:A};if(q!==K.currentVersionName)return{value:A,label:q,description:`Newer version available · select ${K.alias} for ${K.currentVersionName}`};return{value:A,label:q,description:A}}function T26(A=!1){let q=H4z(A),K=null,Y=SR(),z=kO6();if(Y!==void 0&&Y!==null)K=Y;else if(z!==null)K=z;var _cm=process.env.CLAUDE_CUSTOM_MODELS||"";if(_cm){var _vs=new Set(q.map(function(_w){return String(_w.value)}));_cm.split(",").forEach(function(_w){_w=_w.trim();if(_w&&!_vs.has(_w)){q.push({value:_w,label:_w,description:"Custom model"});_vs.add(_w)}})}if(K===null||q.some((w)=>w.value===K))return hU8(q);else if(K==="opusplan")return hU8([...q,O4z()]);else{let w=J4z(K);if(w)q.push(w);else q.push({value:K,label:K,description:"Custom model"});return hU8(q)}}function hU8(A){if(process.env.CLAUDE_CUSTOM_MODELS)return A;return A}var $4z,ezq,O4z=()=>{return{value:"opusplan",label:"Opus Plan Mode",description:"Use Opus 4.6 in plan mode, Sonnet 4.6 otherwise"}};var Ur6=E(()=>{Q1();bA();zP6();E36();Vt();kA();of1();Wz();vm6();_q();ZK6();$4z={value:"sonnet",label:"Sonnet",description:"Sonnet 4.6 · Best for everyday tasks"},ezq={value:"haiku",label:"Haiku",description:"Haiku 4.5 · Fastest for quick answers"}});var M4z;var bU8=E(()=>{Ab();SU8();CU8();Ur6();F8();M4z={theme:{source:"global",type:"string",description:"Color theme for the UI",options:nj8},editorMode:{source:"global",type:"string",description:"Key binding mode",options:Sy1},verbose:{source:"global",type:"boolean",description:"Show detailed debug output",appStateKey:"verbose"},preferredNotifChannel:{source:"global",type:"string",description:"Preferred notification channel",options:Ry1},autoCompactEnabled:{source:"global",type:"boolean",description:"Auto-compact when context is full"},autoMemoryEnabled:{source:"settings",type:"boolean",description:"Enable auto-memory"},fileCheckpointingEnabled:{source:"global",type:"boolean",description:"Enable file checkpointing for code rewind"},showTurnDuration:{source:"global",type:"boolean",description:'Show turn duration message after responses (e.g., "Cooked for 1m 6s")'},todoFeatureEnabled:{source:"global",type:"boolean",description:"Enable todo/task tracking"},model:{source:"settings",type:"string",description:"Override the default model",appStateKey:"mainLoopModel",getOptions:()=>{try{return T26().filter((A)=>A.value!==null).map((A)=>A.value)}catch{return["sonnet","opus","haiku"]}},validateOnWrite:(A)=>Cy1(String(A)),formatOnRead:(A)=>A===null?"default":A},alwaysThinkingEnabled:{source:"settings",type:"boolean",description:"Enable extended thinking (false to disable)",appStateKey:"thinkingEnabled"},"permissions.defaultMode":{source:"settings",type:"string",description:"Default permission mode for tool usage",options:["default","plan","acceptEdits","dontAsk"]},language:{source:"settings",type:"string",description:'Preferred language for Claude responses (e.g., "japanese", "spanish")'},teammateMode:{source:"global",type:"string",description:'How to spawn teammates: "tmux" for traditional tmux, "in-process" for same process, "auto" to choose automatically',options:nzq},...{},...{voiceEnabled:{source:"settings",type:"boolean",description:"Enable voice dictation mode (hold Space to record)"}},...{remoteControlAtStartup:{source:"global",type:"boolean",description:"Enable Remote Control for all sessions (true | false | default)",formatOnRead:()=>c86()}}}});var qwq=E(()=>{bU8();Ur6();Tl()});var X4z;var Kwq=E(()=>{c6();mH();kK();a1();X4z=q6(P6(),1)});var wT$,_T$;var Ywq=E(()=>{Y4();qwq();bU8();Kwq();F8();kA();m1();x1();a1();XA();wT$=i6(()=>I.strictObject({setting:I.string().describe('The setting key (e.g., "theme", "model", "permissions.defaultMode")'),value:I.union([I.string(),I.boolean(),I.number()]).optional().describe("The new value. Omit to get current value.")})),_T$=i6(()=>I.object({success:I.boolean(),operation:I.enum(["get","set"]).optional(),setting:I.string().optional(),value:I.unknown().optional(),previousValue:I.unknown().optional(),newValue:I.unknown().optional(),error:I.string().optional()}))});function wwq(){let A=P7()?" and potentially assigned to teammates":"",q=P7()?"- New tasks are created with status 'pending' and no owner - use TaskUpdate with the `owner` parameter to assign them\n":"";return`Use this tool to create a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user. It also helps the user understand the progress of the task and overall progress of their requests. ## When to Use This Tool