| 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}> |
| 2478 | <${wj}>completed</${wj}> |
| 2479 | <${gw}>Remote review completed</${gw}> |
| 2480 | </${XA}> |
| 2481 | The remote review produced the following findings: |
| 2482 | |
| 2483 | ${K}`;IO({value:z,mode:"task-notification"})}function O3K(q,K,_){if(!vo1(q,_))return;let z=`<${XA}> |
| 2484 | <${jP}>${q}</${jP}> |
| 2485 | <${Re}>remote_agent</${Re}> |