MCPcopy Index your code
hub / github.com/ChinaSiro/claude-code-sourcemap / d57

Function d57

package/cli.js:6300–6302  ·  view source on GitHub ↗
(q,K,_)

Source from the content-addressed store, hash-verified

6298
6299Session: ${_}`,mode:"task-notification"}),$L6(K).catch((j)=>N(`ultraplan archive failed: ${String(j)}`)),Y((j)=>j.ultraplanSessionUrl===_?{...j,ultraplanSessionUrl:void 0}:j)}finally{if(A)A3(q,Y,(O)=>O.status!=="running"?O:{...O,status:"failed",endTime:Date.now()})}})()}function oGY(q){let K=q?`${Hq8} `:"";return`${NW} ultraplan
6300${K}Starting Claude Code on the web…`}function aGY(q){return`${NW} ultraplan · Monitor progress in Claude Code on the web ${q}
6301You can continue working — when the ${NW} fills, press ↓ to view results`}function _CK(q){return q?`ultraplan: already polling. Open ${q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function d57(q,K,_){await AL6.kill(q,_),_((Y)=>Y.ultraplanSessionUrl||Y.ultraplanPendingChoice||Y.ultraplanLaunching?{...Y,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:Y);let z=MM(K,process.env.SESSION_INGRESS_URL);IO({value:`Ultraplan stopped.
6302
6303Session: ${z}`,mode:"task-notification"}),IO({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function c57(q){let{blurb:K,seedPlan:_,getAppState:z,setAppState:Y,signal:$,disconnectedBridge:A,onSessionReady:O}=q,{ultraplanSessionUrl:w,ultraplanLaunching:j}=z();if(w||j)return d("tengu_ultraplan_create_failed",{reason:w?"already_polling":"already_launching"}),_CK(w);if(!K&&!_)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${KCK}`].join(`
6304`);return Y((H)=>H.ultraplanLaunching?H:{...H,ultraplanLaunching:!0}),sGY({blurb:K,seedPlan:_,getAppState:z,setAppState:Y,signal:$,onSessionReady:O}),oGY(A)}async function sGY(q){let{blurb:K,seedPlan:_,getAppState:z,setAppState:Y,signal:$,onSessionReady:A}=q,O;try{let w=cGY(),j=await Ix8();if(!j.eligible){d("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:j.errors.map((D)=>D.type).join(",")});let W=j.errors.map(ux8).join(`
6305`);IO({value:`ultraplan: cannot launch remote session —

Callers 2

EFunction · 0.85
WU8Function · 0.85

Calls 4

MMFunction · 0.85
IOFunction · 0.85
_Class · 0.70
killMethod · 0.45

Tested by

no test coverage detected