import{wq as I,zq as X}from"./cli-0.5.3-jbzr8k4s.mjs";import{aga as H,kga as W}from"./cli-0.5.3-7wdgps7z.mjs";import{Xma as V}from"./cli-0.5.3-0df3r78b.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
export{q as xd,F as yd,K as zd,Q as Ad,R as Bd,_ as Cd,j as Dd,Y as Ed};
