MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / mHK

Function mHK

package/cli.js:3334–3334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33325. Use ${a$} if you need to clarify approaches
33336. Exit plan mode with ExitPlanMode when ready to implement
3334
3335`});function IHK(){return null}function uHK(q,K,_){return rP.createElement(u,{flexDirection:"column",marginTop:1},rP.createElement(u,{flexDirection:"row"},rP.createElement(k,{color:lT("plan")},A_),rP.createElement(k,null," Entered plan mode")),rP.createElement(u,{paddingLeft:2},rP.createElement(k,{dimColor:!0},"Claude is now exploring and designing an implementation approach.")))}function mHK(){return rP.createElement(u,{flexDirection:"row",marginTop:1},rP.createElement(k,{color:lT("default")},A_),rP.createElement(k,null," User declined to enter plan mode"))}var rP;var pHK=y(()=>{zz();yW();s6();rP=O6(D6(),1)});var M7Y,X7Y,C88;var le1=y(()=>{x7();v8();Bq();LH();fX();pK6();xHK();pHK();M7Y=B6(()=>L.strictObject({})),X7Y=B6(()=>L.object({message:L.string().describe("Confirmation that plan mode was entered")})),C88=sq({name:Zq6,searchHint:"switch to plan mode to design an approach before coding",maxResultSizeChars:1e5,async description(){return"Requests permission to enter plan mode for complex tasks requiring exploration and design"},async prompt(){return bHK()},get inputSchema(){return M7Y()},get outputSchema(){return X7Y()},userFacingName(){return""},shouldDefer:!0,isEnabled(){if(eH().length>0)return!1;return!0},isConcurrencySafe(){return!0},isReadOnly(){return!0},renderToolUseMessage:IHK,renderToolResultMessage:uHK,renderToolUseRejectedMessage:mHK,async call(q,K){if(K.agentId)throw Error("EnterPlanMode tool cannot be used in agent contexts");let _=K.getAppState();return Tc(_.toolPermissionContext.mode,"plan"),K.setAppState((z)=>({...z,toolPermissionContext:L$(vR6(z.toolPermissionContext),{type:"setMode",mode:"plan",destination:"session"})})),{data:{message:"Entered plan mode. You should now focus on exploring the codebase and designing an implementation approach."}}},mapToolResultToToolResultBlockParam({message:q},K){return{type:"tool_result",content:l2()?`${q}
3336
3337DO NOT write or edit any files except the plan file. Detailed workflow instructions will follow.`:`${q}

Callers

nothing calls this directly

Calls 2

lTFunction · 0.85
createElementMethod · 0.80

Tested by

no test coverage detected