import{Cq as X,zq as I}from"./cli-0.5.12-zc0qwdy2.mjs";import{Mga as H,Wga as W}from"./cli-0.5.12-60w1a0bs.mjs";import{aoa as V}from"./cli-0.5.12-xzeb7mtb.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 jd,F as kd,K as ld,Q as md,R as nd,_ as od,j as pd,Y as qd};
