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

Function gUz

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

Source from the content-addressed store, hash-verified

2229{
2230 message.attachment.maxTurns
2231}
2232)`);break}yield N6;continue}if(BUz(N6)){if(await SQ([N6],R,f6).catch((Z6)=>N(`Failed to record sidechain transcript: ${Z6}`)),N6.type!=="progress")f6=N6.uuid;yield N6}}if(G6.signal.aborted)throw new Uz;if(I2(q)&&q.callback)q.callback()}finally{if(await l(),q.hooks)pN6(E,R);X6.readFileState.clear(),I.length=0,Qw6(R),Br1(R),E((N6)=>{if(!(R in N6.todos))return N6;let{[R]:Z6,...V6}=N6.todos;return{...N6,todos:V6}}),Jb4(R,_.getAppState,E)}}function mr1(q){let K=new Set;for(let _ of q)if(_?.type==="user"){let Y=_.message.content;if(Array.isArray(Y)){for(let $ of Y)if($.type==="tool_result"&&$.tool_use_id)K.add($.tool_use_id)}}return q.filter((_)=>{if(_?.type==="assistant"){let Y=_.message.content;if(Array.isArray(Y))return!Y.some((A)=>A.type==="tool_use"&&A.id&&!K.has(A.id))}return!0})}async function gUz(q,K,_,z,Y){let $=new Set(Y.map((A)=>A.name));try{let O=[q.getSystemPrompt({toolUseContext:K})];return await se6(O,_,z,$)}catch(A){return se6([K5K],_,z,$)}}function FUz(q,K,_){if(Gj6(q,K))return q;let z=_.agentType.split(":")[0];if(z){let A=`${z}:${q}`;if(Gj6(A,K))return A}let Y=`:${q}`,$=K.find((A)=>A.name.endsWith(Y));if($)return $.name;return null}var i46=y(()=>{Fu();_8();v8();yA();rL();jN();Tj6();o1();vr();Q76();PD();f0();$F1();lP();y8();bK();NG();nv();kb4();zo();y$();i1();cq6();_K();IA6();gN6();jm();rq6();SP()});function QUz(q){return`Describe your most recent action in 3-5 words using present tense (-ing). Name the file or function, not the branch. Do not use tools.
2233${q?`
2234Previous: "${q}" — say something NEW.

Callers 1

iNFunction · 0.85

Calls 1

se6Function · 0.85

Tested by

no test coverage detected