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

Function To1

package/cli.js:2463–2470  ·  view source on GitHub ↗
(q,K,_,z,Y)

Source from the content-addressed store, hash-verified

2461Here is the session description:
2462<description>{description}</description>
2463Please generate a title and branch name for this session.`;var am=y(()=>{CK();x3();v8();o1();k8();ZD();x7();Qr1();H3();dU();ew();Ax8();pW();C7();G7();_68();qL6();I7();_8();mZ();m8();y8();XK();U7();E5();vO();E8();i1();aq();_K();U1();l8();VM();oE6();z3K();bx8=O6(D6(),1)});function Jdz(q){return Hdz.includes(q??"")}async function Xdz(q){try{await Vo1(q.taskId,q)}catch(K){N(`persistRemoteAgentMetadata failed: ${String(K)}`)}}async function wa(q){try{await No1(q)}catch(K){N(`removeRemoteAgentMetadata failed: ${String(K)}`)}}async function Ix8({skipBundle:q=!1}={}){let K=await J5K({skipBundle:q});if(K.length>0)return{eligible:!1,errors:K};return{eligible:!0}}function ux8(q){switch(q.type){case"not_logged_in":return"Please run /login and sign in with your Claude.ai account (not Console).";case"no_remote_environment":return"No cloud environment available. Set one up at https://claude.ai/code/onboarding?magic=env-setup";case"not_in_git_repo":return"Background tasks require a git repository. Initialize git or run from a git repository.";case"no_git_remote":return"Background tasks require a GitHub remote. Add one with `git remote add origin REPO_URL`.";case"github_app_not_installed":return`The Claude GitHub app must be installed on this repository first.
2464https://github.com/apps/claude/installations/new`;case"policy_blocked":return"Remote sessions are disabled by your organization's policy. Contact your organization admin to enable them."}}function To1(q,K,_,z,Y){if(!vo1(q,z))return;let $=_==="completed"?"completed successfully":_==="failed"?"failed":"was stopped",A=Y?`
2465<${gT}>${Y}</${gT}>`:"",O=sz(q),w=`<${XA}>
2466<${jP}>${q}</${jP}>${A}
2467<${Re}>remote_agent</${Re}>
2468<${FT}>${O}</${FT}>
2469<${wj}>${_}</${wj}>
2470<${gw}>Remote task "${K}" ${$}</${gw}>
2471</${XA}>`;IO({value:w,mode:"task-notification"})}function vo1(q,K){let _=!1;return A3(q,K,(z)=>{if(z.notified)return z;return _=!0,{...z,notified:!0}}),_}function Pdz(q){for(let Y=q.length-1;Y>=0;Y--){let $=q[Y];if($?.type==="system"&&($.subtype==="hook_progress"||$.subtype==="hook_response")){let A=o4($.stdout,z_6);if(A?.trim())return A.trim()}}for(let Y=q.length-1;Y>=0;Y--){let $=q[Y];if($?.type!=="assistant")continue;let A=L3($.message.content,`
2472`),O=o4(A,z_6);if(O?.trim())return O.trim()}let K=q.filter((Y)=>Y.type==="system"&&(Y.subtype==="hook_progress"||Y.subtype==="hook_response")).map((Y)=>Y.stdout).join(""),_=o4(K,z_6);if(_?.trim())return _.trim();return q.filter((Y)=>Y.type==="assistant").map((Y)=>L3(Y.message.content,`
2473`)).join(`

Callers 1

HFunction · 0.85

Calls 3

vo1Function · 0.85
szFunction · 0.85
IOFunction · 0.85

Tested by

no test coverage detected