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

Function Wdz

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

Source from the content-addressed store, hash-verified

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(`
2474`).trim()||null}function Wdz(q){for(let z=q.length-1;z>=0;z--){let Y=q[z];if(Y?.type==="system"&&(Y.subtype==="hook_progress"||Y.subtype==="hook_response")){let $=o4(Y.stdout,z_6);if($?.trim())return $.trim()}}for(let z=q.length-1;z>=0;z--){let Y=q[z];if(Y?.type!=="assistant")continue;let $=L3(Y.message.content,`
2475`),A=o4($,z_6);if(A?.trim())return A.trim()}let K=q.filter((z)=>z.type==="system"&&(z.subtype==="hook_progress"||z.subtype==="hook_response")).map((z)=>z.stdout).join(""),_=o4(K,z_6);if(_?.trim())return _.trim();return null}function Ddz(q,K,_){if(!vo1(q,_))return;let z=`<${XA}>
2476<${jP}>${q}</${jP}>
2477<${Re}>remote_agent</${Re}>

Callers 1

HFunction · 0.85

Calls 5

o4Function · 0.85
L3Function · 0.85
filterMethod · 0.80
trimMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected