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

Function aGY

package/cli.js:6299–6300  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

6297`),mode:"task-notification"})}else Y((H)=>{let J=H.tasks?.[q];if(!J||J.status!=="running")return H;return{...H,ultraplanPendingChoice:{plan:O,sessionId:K,taskId:q}}})}catch(O){if(z().tasks?.[q]?.status!=="running")return;A=!0,d("tengu_ultraplan_failed",{duration_ms:Date.now()-$,reason:O instanceof Ms?O.reason:"network_or_unknown",reject_count:O instanceof Ms?O.rejectCount:void 0}),IO({value:`Ultraplan failed: ${d6(O)}
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(`

Callers 1

sGYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected