@intent-hq/web 2.372.1 → 2.372.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{C7-pF3hJ.js → 1mJrE3jk.js} +1 -1
- package/web/app/immutable/chunks/{hlGimPBZ.js → 2XoFwLeT.js} +1 -1
- package/web/app/immutable/chunks/{vRnYB3t4.js → 2YKrLT6f.js} +1 -1
- package/web/app/immutable/chunks/{vjUVG9_D.js → 55NQjm3t.js} +1 -1
- package/web/app/immutable/chunks/{BiWJoWSv.js → 5Z6V3HtS.js} +3 -3
- package/web/app/immutable/chunks/{uh-AKdCH.js → 9DRLCqFH.js} +1 -1
- package/web/app/immutable/chunks/{Cp6ekE_s.js → A-qdlPO9.js} +1 -1
- package/web/app/immutable/chunks/{C9WFArWI.js → B0kpU9fA.js} +2 -2
- package/web/app/immutable/chunks/{CrKTQysx.js → B0lZCUS6.js} +1 -1
- package/web/app/immutable/chunks/{D9sQ8qcN.js → B2NZzPt-.js} +1 -1
- package/web/app/immutable/chunks/{D-Uz-39Z.js → B418rdhJ.js} +1 -1
- package/web/app/immutable/chunks/{Bc_WCBau.js → B5PU_SZw.js} +1 -1
- package/web/app/immutable/chunks/{B2pOchvy.js → B6l-Kttu.js} +1 -1
- package/web/app/immutable/chunks/{CvNJnDlW.js → B89v0U4a.js} +3 -3
- package/web/app/immutable/chunks/{zmWxChUq.js → B9STQthu.js} +1 -1
- package/web/app/immutable/chunks/{MUCe8vjx.js → B9Y57c7j.js} +6 -6
- package/web/app/immutable/chunks/{CVhHgrXf.js → BApUcPKR.js} +1 -1
- package/web/app/immutable/chunks/{2EVipgJi.js → BDThAQjj.js} +1 -1
- package/web/app/immutable/chunks/{CiKM_Bkk.js → BEWjMMmw.js} +3 -3
- package/web/app/immutable/chunks/{BRIObpKH.js → BHtMcien.js} +1 -1
- package/web/app/immutable/chunks/{CTpG0iUn.js → BIkmNkpw.js} +1 -1
- package/web/app/immutable/chunks/{BbU8lQ23.js → BIn5egRU.js} +1 -1
- package/web/app/immutable/chunks/{piULzuzd.js → BOD8_Ffh.js} +1 -1
- package/web/app/immutable/chunks/{7UCN4F7m.js → BPW7kjsh.js} +1 -1
- package/web/app/immutable/chunks/{D7c2h2XU.js → BPwzpRKZ.js} +1 -1
- package/web/app/immutable/chunks/{BRbooHVW.js → BQNpzQlP.js} +1 -1
- package/web/app/immutable/chunks/{B-9Pvu6y.js → BTcBtO7l.js} +1 -1
- package/web/app/immutable/chunks/{Cqh6RRVt.js → BTi_uPkP.js} +2 -2
- package/web/app/immutable/chunks/{wUr2Clcr.js → BWDjljS8.js} +3 -3
- package/web/app/immutable/chunks/{SSRyQIWE.js → BZQZwdGm.js} +1 -1
- package/web/app/immutable/chunks/{CJJs2g33.js → BbobBw8S.js} +1 -1
- package/web/app/immutable/chunks/{Dm3V_bi_.js → BehvUfjM.js} +1 -1
- package/web/app/immutable/chunks/{gFsMmW36.js → BesmUwoU.js} +1 -1
- package/web/app/immutable/chunks/{DRbwhDjx.js → BoefNJ5Q.js} +1 -1
- package/web/app/immutable/chunks/{fZM82vlq.js → BpSBXUuJ.js} +2 -2
- package/web/app/immutable/chunks/{CKEnN_Hn.js → BpWCMu3u.js} +1 -1
- package/web/app/immutable/chunks/{BUIz4Yba.js → Bpb7JDWq.js} +1 -1
- package/web/app/immutable/chunks/{CU2GkTBo.js → BrFkQr4z.js} +1 -1
- package/web/app/immutable/chunks/{DaO8nz6N.js → BuQN2T0g.js} +2 -2
- package/web/app/immutable/chunks/{DJPMh7Pg.js → Bxb8LI6C.js} +1 -1
- package/web/app/immutable/chunks/{DlXO0azG.js → C-y2Lv4J.js} +1 -1
- package/web/app/immutable/chunks/{CJrtVlDG.js → C79sRXBG.js} +1 -1
- package/web/app/immutable/chunks/{DuvgBOgL.js → CAG8YIXN.js} +1 -1
- package/web/app/immutable/chunks/{IcVyfKsD.js → CBHdapAk.js} +1 -1
- package/web/app/immutable/chunks/{DpBTZWt9.js → CIJY2gxU.js} +1 -1
- package/web/app/immutable/chunks/{CtatSKin.js → CKK0Gz-a.js} +2 -2
- package/web/app/immutable/chunks/{TET1QjU6.js → CL1PbmdJ.js} +1 -1
- package/web/app/immutable/chunks/{DEkD3je6.js → CMAV3UUk.js} +1 -1
- package/web/app/immutable/chunks/{Demr6Qvy.js → CNsgRr0G.js} +1 -1
- package/web/app/immutable/chunks/{Dhb96fci.js → CPj4SFCC.js} +1 -1
- package/web/app/immutable/chunks/{D6QsCyM5.js → CQR1o7um.js} +2 -2
- package/web/app/immutable/chunks/{BRfr79MP.js → CQy8trug.js} +1 -1
- package/web/app/immutable/chunks/{TYee8CmD.js → CR5ZxoLH.js} +1 -1
- package/web/app/immutable/chunks/{C-CEp48D.js → CRBVaIXN.js} +1 -1
- package/web/app/immutable/chunks/{DuiyN7wg.js → CYyfRGPT.js} +1 -1
- package/web/app/immutable/chunks/{Cc-PW4gv.js → CZDluI6H.js} +1 -1
- package/web/app/immutable/chunks/{CuiAAAM-.js → CajUAX8N.js} +2 -2
- package/web/app/immutable/chunks/{DFudQwu4.js → CjYF1At4.js} +1 -1
- package/web/app/immutable/chunks/{Dh6rqlVy.js → CnzZSXm6.js} +1 -1
- package/web/app/immutable/chunks/{D1S-BeW0.js → CrBBYf3_.js} +1 -1
- package/web/app/immutable/chunks/{-A1Xt6t2.js → CrL6DZCQ.js} +1 -1
- package/web/app/immutable/chunks/{CugIOLIa.js → CsleiD5D.js} +1 -1
- package/web/app/immutable/chunks/{v3dlpdhZ.js → CtKyfVB_.js} +1 -1
- package/web/app/immutable/chunks/{C8e17gER.js → CtZeiR9i.js} +1 -1
- package/web/app/immutable/chunks/{QMZYeDiU.js → Cv2q5gkL.js} +1 -1
- package/web/app/immutable/chunks/{Bb_op89B.js → CwB9Am9z.js} +3 -3
- package/web/app/immutable/chunks/{DVuRO9FX.js → D-usBtmP.js} +4 -4
- package/web/app/immutable/chunks/{BQYZptYQ.js → D0xQDzbV.js} +1 -1
- package/web/app/immutable/chunks/{C3HJlgor.js → D1wNvwqn.js} +1 -1
- package/web/app/immutable/chunks/{DiFC8Mk6.js → D82C3bhe.js} +1 -1
- package/web/app/immutable/chunks/{D7h3Dl5-.js → D9-KwDth.js} +1 -1
- package/web/app/immutable/chunks/{BEAj7h28.js → DC0oh9YH.js} +1 -1
- package/web/app/immutable/chunks/{CutJRErj.js → DCO02E6M.js} +1 -1
- package/web/app/immutable/chunks/{nPO4QUTk.js → DCzChru-.js} +1 -1
- package/web/app/immutable/chunks/{ChUo22u6.js → DE_K0DMt.js} +3 -3
- package/web/app/immutable/chunks/{CzTHqaDJ.js → DFQ6yCR1.js} +13 -13
- package/web/app/immutable/chunks/{0A5oWXer.js → DHpb0iQY.js} +1 -1
- package/web/app/immutable/chunks/{DVWpH0Ww.js → DLmLA9DN.js} +1 -1
- package/web/app/immutable/chunks/{QnlnDXiH.js → DOOplL0N.js} +2 -2
- package/web/app/immutable/chunks/{BAy-IHSv.js → DQewNXDh.js} +1 -1
- package/web/app/immutable/chunks/{B-vPMZJe.js → DSIsc1Ss.js} +1 -1
- package/web/app/immutable/chunks/{Cuk_Gihq.js → DY06SZsl.js} +1 -1
- package/web/app/immutable/chunks/{BCAvwmcb.js → DadrYnVI.js} +1 -1
- package/web/app/immutable/chunks/{BD3toGAv.js → DdJj628K.js} +1 -1
- package/web/app/immutable/chunks/{B873lVHv.js → Df3mQZLv.js} +3 -3
- package/web/app/immutable/chunks/{d4XsLpJr.js → Dge5ZGj2.js} +1 -1
- package/web/app/immutable/chunks/{DLR3Xiy1.js → Di4F3rxF.js} +1 -1
- package/web/app/immutable/chunks/{KwzSRF2d.js → Dkvzw9dt.js} +1 -1
- package/web/app/immutable/chunks/{DHk9xTTU.js → DqfSttpc.js} +1 -1
- package/web/app/immutable/chunks/{DD1WD1M5.js → Ds6NYQhM.js} +1 -1
- package/web/app/immutable/chunks/{D9uHbDgA.js → DsFpAZo7.js} +2 -2
- package/web/app/immutable/chunks/{CPI29I6f.js → DsnmJyUD.js} +1 -1
- package/web/app/immutable/chunks/{DjmUoBsP.js → DyaBo2y6.js} +1 -1
- package/web/app/immutable/chunks/{C8kqUaJu.js → EwMtkE4R.js} +4 -4
- package/web/app/immutable/chunks/{BN7MhY13.js → Ixhw1ROs.js} +1 -1
- package/web/app/immutable/chunks/{CuByX_yP.js → LbiCax8N.js} +1 -1
- package/web/app/immutable/chunks/{jWqlu3Sf.js → NPKMdhKA.js} +2 -2
- package/web/app/immutable/chunks/{kVZwUKh5.js → O-dTT9_6.js} +1 -1
- package/web/app/immutable/chunks/{Bn_8JArX.js → OfToEAub.js} +1 -1
- package/web/app/immutable/chunks/{C1elIQnx.js → OusZ11tk.js} +1 -1
- package/web/app/immutable/chunks/{BbSguaMP.js → Qh1eK2X9.js} +1 -1
- package/web/app/immutable/chunks/{CFPreIC6.js → R-aBLidW.js} +3 -3
- package/web/app/immutable/chunks/{ClsrgcJW.js → RwJyhbRN.js} +1 -1
- package/web/app/immutable/chunks/{Cp4OFkA0.js → Z4Jzxw8B.js} +1 -1
- package/web/app/immutable/chunks/{BxNRSHj7.js → ZJOyleCJ.js} +3 -3
- package/web/app/immutable/chunks/{BtZepnY7.js → ahq3r4Wz.js} +1 -1
- package/web/app/immutable/chunks/{BOj9vGyw.js → eGqXrC9g.js} +1 -1
- package/web/app/immutable/chunks/{IpC95BdD.js → f50N8hQo.js} +1 -1
- package/web/app/immutable/chunks/{BJ8UpUx3.js → ftVcR4tQ.js} +1 -1
- package/web/app/immutable/chunks/{DkM2tUNb.js → fth1noPu.js} +1 -1
- package/web/app/immutable/chunks/{xs7GVnBi.js → lCSqh71Z.js} +1 -1
- package/web/app/immutable/chunks/{B6jc-_sR.js → lFTk8wpi.js} +1 -1
- package/web/app/immutable/chunks/{CGprRn3S.js → m11ohSMf.js} +1 -1
- package/web/app/immutable/chunks/{DXoCvZQl.js → oaGKgX0i.js} +1 -1
- package/web/app/immutable/chunks/{EUqcNEWQ.js → uA3ZM6fH.js} +1 -1
- package/web/app/immutable/chunks/{DDRbr07B.js → ulO2uazy.js} +1 -1
- package/web/app/immutable/chunks/{D8PTjyMt.js → vE2E6sS8.js} +1 -1
- package/web/app/immutable/chunks/{Be-tvUeZ.js → vQ3XSTvm.js} +1 -1
- package/web/app/immutable/chunks/{VNZmrcSz.js → vlM04DTZ.js} +1 -1
- package/web/app/immutable/chunks/{C4Dbybcz.js → wDPUZWBZ.js} +1 -1
- package/web/app/immutable/chunks/{DyVTwc41.js → xs1C7KnJ.js} +1 -1
- package/web/app/immutable/chunks/{DBeNyp1m.js → yLWVsiXj.js} +1 -1
- package/web/app/immutable/chunks/{DAd8-v0C.js → zROLTv2m.js} +1 -1
- package/web/app/immutable/entry/{app.HXk4QgVW.js → app.-hRXZvoO.js} +2 -2
- package/web/app/immutable/entry/start.C3r7ji-v.js +1 -0
- package/web/app/immutable/nodes/{0.C35VPs87.js → 0.Bf92A2SS.js} +1 -1
- package/web/app/immutable/nodes/{1.ZQ0mU96X.js → 1.BWS1uOkH.js} +1 -1
- package/web/app/immutable/nodes/{10.Ba3bdQFj.js → 10.xvB45P-Z.js} +4 -4
- package/web/app/immutable/nodes/{11.ls9oXbQw.js → 11.CWt_UL31.js} +1 -1
- package/web/app/immutable/nodes/{15.DwnvTlNj.js → 15.BFkam5BT.js} +1 -1
- package/web/app/immutable/nodes/{19.ChdL9npo.js → 19.DASGyMmu.js} +2 -2
- package/web/app/immutable/nodes/{2.CEHgYNfF.js → 2.BLp65UB0.js} +4 -4
- package/web/app/immutable/nodes/{3.yDo-Jv4L.js → 3.sLYNU_z5.js} +1 -1
- package/web/app/immutable/nodes/{4.BfGmTHCX.js → 4.CYsqPvqR.js} +1 -1
- package/web/app/immutable/nodes/{5.CdbvrG1H.js → 5.BDPUNvGt.js} +1 -1
- package/web/app/immutable/nodes/{6.D-e34gg6.js → 6.Cmp_rej6.js} +1 -1
- package/web/app/immutable/nodes/{7.DkqU_r1v.js → 7.BeJ_Zasr.js} +1 -1
- package/web/app/immutable/nodes/{8.DXAWn9Y1.js → 8.CTerGGp8.js} +1 -1
- package/web/app/immutable/nodes/{9.a_zRpwry.js → 9.D8TUAlXi.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.okH3MvzT.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Cl=Object.defineProperty;var Ml=(r,t,a)=>t in r?Cl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var ma=(r,t,a)=>Ml(r,typeof t!="symbol"?t+"":t,a);import{t as St,bo as g,bw as Tt,b as Ct,bm as u,bq as Ha,bs as cr,br as Al,bp as mn}from"./ClpAEjbe.js";import{ai as Ja,bs as Mt,ca as ar,aD as e,bH as H,ay as ve,bS as C,a7 as kt,W as d,a5 as W,bA as O,bn as At,c9 as n,bV as _e,aA as m,b_ as $,aj as Mr,aB as x,be as vr,b$ as Wr,bO as Y,bf as rr,c0 as ba,bl as le,bj as Wa,c6 as Pl,bo as On,br as Xr,am as $a,ax as Oa,bk as Jn,aw as gn,bz as es,cb as ds,c5 as Dn,aC as Sr,cd as uo,bv as Rl}from"./CJxGDkBm.js";import{i as D}from"./wmcYjLAa.js";import{g as Ar,e as ua,p as cs,i as Za,I as El,h as Zs,X as ii,o as Nl}from"./BwASeArv.js";import{n as Ut,l as En,c as Qa,g as rn,s as hs,k as ts,S as Ll}from"./oXpJ1LFx.js";import{s as ee,f as Fe,g as pn,c as xt,e as tr,b as vn,p as $l,S as Ol,C as ql}from"./CnGVh7I3.js";import{b as sa}from"./NtFyWdpR.js";import{f as st,ae as Qs,a_ as Dl}from"./BVi5KkOP.js";import{J as Bl,O as Fl,Q as _s}from"./CPDV_dyu.js";import"./Gb7Ohwuc.js";import"./BYiyLeZ4.js";import"./Qt_rZNko.js";import{k as li,s as Ra}from"./WSVFXKpL.js";import{F as Ot,a4 as $s,bg as ya,cK as us,au as di,aZ as ci,aK as Wl,c9 as zl,a6 as rs,aN as Hl,cN as Ul,cM as jl,a3 as fs,aC as as,aw as Xs,I as fo,aj as Vl,bu as Kl,aS as Gl,aX as Zl,bJ as Ql,ao as Xl,cC as Yl,aP as go,c0 as ys,aI as Bn,cW as Jl,cb as ed,bn as td,b as rd,cp as ad,ag as nd,ba as bs,cr as _n,cF as sd}from"./CtJxHvGv.js";import{C as ui,A as od,o as id}from"./B06RKBOm.js";import{b as ws,V as mo}from"./BxAKyA2J.js";import{A as fi,I as ld,R as dd,q as cd}from"./BiWJoWSv.js";import{bZ as gi,j as Hn,a6 as Os,am as ns,F as ud,av as Un,aP as fd,aS as po}from"./DJPMh7Pg.js";import{t as an,o as gd}from"./DAsc1V4f.js";import{ce as jn,aN as Nn,c$ as mi,d1 as za,c3 as gs,q as md,cU as pi,c_ as ms,cZ as vi,cX as hi,n as Pa,al as pd,am as vd,aI as hd,z as _d,V as yd,a3 as vo,D as _i,e0 as bd,aE as wd,ak as xd,r as kd,C as xs,ag as Id,U as yn,d$ as Sd,ab as Td,k as ho,u as Cd,Z as Md,v as Ad,i as Pd,g as ks,f as _o,a0 as Rd,$ as Ed,a9 as Nd,x as yi,y as bi,l as wi,j as Ld,s as $d,a as Od,d2 as qd,ae as Dd,L as Bd,F as Fd,a2 as yo}from"./D9Ykl3eH.js";import{Jq as yt,oY as Wd,tN as Vn,nN as bo,vG as xi,vI as ki,r_ as zd,yE as ss,uZ as Ii,nI as Si,bq as Kn,yF as Hd,qw as Ud,th as jd,vz as Ti,nH as Vd,mM as Kd,m as Gd,z6 as Zd,z3 as Qd,z5 as Xd}from"./CpP1PKzF.js";import{a3 as Yd,y as Is,a1 as Jd,O as Ss,W as ec,$ as tc,k as rc,p as bn,P as cn,q as ac,G as nc,v as sc,t as oc,M as Ts,K as ic,z as lc,L as dc,_ as Sn,U as Fn,N as wo,n as xo,E as cc,c as Cs,F as ko,B as uc,w as Io,J as Tn,Q as fc,H as gc,j as mc,R as pc,T as vc,A as hc,g as _c,b as yc,D as bc,f as wc,e as xc,a as kc,C as Ic,i as Sc,d as qs,V as Ci,a4 as Tc,u as Cc,l as Mc}from"./CFPreIC6.js";import{i as Ac,e as Pc}from"./CTV49dzf.js";import{g as Ms}from"./B5aYN90J.js";import{M as wn,C as Cn}from"./ChUo22u6.js";import{C as So}from"./CTsZeMVP.js";import"./C1elIQnx.js";import{P as Rc}from"./CVhHgrXf.js";import"./DvfG7QDh.js";import{c as Mi}from"./ChTqQfQN.js";import{S as Ec}from"./Dhb96fci.js";import{D as To,M as Nc}from"./DVuRO9FX.js";import{b as Lc,s as Ya,c as os}from"./ClsrgcJW.js";import{O as Gn,y as As,E as Ps,B as Rs,N as $c,m as Oc,l as qc,k as Dc,d as Ln,C as Co,f as Bc,e as Fc,g as Wc}from"./Demr6Qvy.js";import{a as Ai,s as Mo}from"./BsieX9dN.js";import{f as zc}from"./BdWqymET.js";import{c as na}from"./DjAHTP5R.js";import{a as Hc,k as Pi,h as Ys,q as Ri,l as Ir}from"./By588DV1.js";import{P as Uc}from"./B5wwCKYG.js";import{r as Es,q as Ns,B as Ao,i as jc}from"./DRbwhDjx.js";import{R as Ei,C as ps,m as Vc,h as Kc,g as Gc,i as Po,P as Zc}from"./C1zxTHwk.js";import"./BeYVt6Wg.js";import{c as Qc,s as Xc}from"./BxNRSHj7.js";import{h as An}from"./D6QsCyM5.js";import{b as Yc,a as Ni}from"./DjmUoBsP.js";import{P as Li}from"./uD6eQoK5.js";import{B as Jc}from"./BlXZA0dT.js";import{o as $i,r as eu,e as tu}from"./DVWpH0Ww.js";import{o as Oi}from"./DaO8nz6N.js";import{A as Zn,b as qi}from"./Dd5ei__B.js";import{g as Js}from"./G-nrQJwO.js";import{a as ru,M as au}from"./BejTxFyR.js";import{t as Nr}from"./D2MmXC4A.js";import{c as xn}from"./DSqSJXGX.js";import{A as nu}from"./BQgCURYe.js";import{f as su,d as ou}from"./DXoCvZQl.js";import{a9 as iu,N as lu,Y as du,K as Ro,X as cu,v as uu}from"./wUr2Clcr.js";import{a as fu}from"./CC7to1B5.js";import{k as gu}from"./Xh71Wbuh.js";import{S as mu}from"./CxEy75pV.js";import{u as pu,a as vu,c as Eo,S as hu}from"./DJfJ5NWH.js";import{T as Ds}from"./Cfkb8WUl.js";import"./D_G_nxUe.js";import{g as _u}from"./MZe3NxQe.js";import{a as yu}from"./R9aYbjet.js";import{b as bu}from"./B5fQcqb-.js";import{b as No}from"./DfTSMq0b.js";import{ah as Fa,n as wu}from"./b89lNINv.js";import{x as xu}from"./BxKppgO5.js";import{c as ku}from"./MUCe8vjx.js";import{r as Lo}from"./D9sQ8qcN.js";function Iu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof l!="string"||!l||typeof c!="string"||!c||f!=="finished"&&f!=="ttl-expired"&&f!=="output-match"&&f!=="line-count")return null;const y=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f,...f==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function Su(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Tu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,l=iu(r)&&r.author?.principalId!==null&&o===t;return{edit:l,remove:l||t===a||s,sendNow:(l||s)&&!Di(r)}}function kn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Di(r){return Su(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function $o(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),l=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!l&&!o&&!Di(r)}const F_="pl-3.5! pr-2!";var Cu=x('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),Oo=x('<span class="attachment-status svelte-d8pwpf"> </span>'),Mu=x('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Au=x("<!><span> </span>",1),Pu=x('<img alt="" draggable="false"/>'),Ru=x('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Eu=x('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),Nu=x('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Lu=x('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),$u=x("<!> <!> <!>",1),Ou=x('<img draggable="false" class="svelte-d8pwpf"/>'),qu=x('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Du=x('<div class="media-viewer svelte-d8pwpf"><!></div>'),Bu=x("<!> <!>",1);function Fu(r,t){if(new.target)return St({component:Fu,...r});Mt(t,!0);const a=(P,ye=rr,ce=rr)=>{var T=Cu(),ge=W(T);st(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return l()},get"aria-label"(){return ce()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return ce()},onclick:()=>L(ye()),children:(Me,$e)=>{ws(Me,{glyph:"x"})},$$slots:{default:!0}}),O(T),d(P,T)};let s=g(t,"items",7),o=g(t,"labels",7),l=g(t,"disabled",7,!1),c=g(t,"onMarkUp",7),f=g(t,"onEdit",7),y=g(t,"onRemove",7),v=g(t,"onRetry",7),I=g(t,"onCopy",7),N=g(t,"onMenu",7);const q=P=>P.owner==="attachment"?2:{image:0,clip:1,file:2}[P.kind],X=n(()=>[...s()].sort((P,ye)=>q(P)-q(ye)));let k=_e(null),E=_e(!1),se=_e(null),G=null;const R=n(()=>s().find(P=>P.id===e(se)));ar(()=>{(!e(R)||e(R).kind==="image"&&!U(e(R)))&&H(E,!1)});function U(P){return P.kind==="image"&&P.status!=="placing"&&P.status!=="failed"&&P.url.trim().length>0}function B(P){return P.kind==="image"?o().image(P.markCount):P.kind==="clip"?P.summary?`${o().clip(P.duration)} ${P.summary}`:o().clip(P.duration):P.name}function ne(P,ye){if(!(l()||P.kind==="file"||P.kind==="image"&&!U(P)||P.kind==="clip"&&(!P.url||P.recording))){if((P.kind==="clip"||P.kind==="image")&&f()){f()(P.id);return}G=ye,H(se,P.id,!0),H(E,!0)}}async function L(P){l()||(e(se)===P&&H(E,!1),y()(P),await ba(),(!document.activeElement||document.activeElement===document.body)&&e(k)?.querySelector("button:not(:disabled)")?.focus())}function F(P){const ye=s().find(ce=>ce.id===P);l()||!ye||!U(ye)||(H(E,!1),f()?f()(P):c()(P))}function te(P,ye){P.key!=="Delete"||l()||(P.preventDefault(),P.stopPropagation(),L(ye))}function S(P){return P.status==="placing"||P.status==="failed"?!1:P.kind==="image"?!!P.file||U(P):P.kind==="clip"&&!P.recording&&!!P.url}function J(P,ye){const ce=Bl()?P.metaKey:P.ctrlKey,T=P.key.toLowerCase();if(ce&&!P.shiftKey&&!P.altKey&&(T==="c"||T==="x")){if(!I()||!S(ye)||(P.preventDefault(),P.stopPropagation(),T==="x"&&l()))return;I()(ye.id,T==="x");return}te(P,ye.id)}function oe(P,ye){!N()||!S(ye)||(P.preventDefault(),N()(ye.id))}var ke={get items(){return s()},set items(P){s(P),m()},get labels(){return o()},set labels(P){o(P),m()},get disabled(){return l()},set disabled(P=!1){l(P),m()},get onMarkUp(){return c()},set onMarkUp(P){c(P),m()},get onEdit(){return f()},set onEdit(P){f(P),m()},get onRemove(){return y()},set onRemove(P){y(P),m()},get onRetry(){return v()},set onRetry(P){v(P),m()},get onCopy(){return I()},set onCopy(P){I(P),m()},get onMenu(){return N()},set onMenu(P){N(P),m()},$set:Tt,$on:(P,ye)=>Ct(t,P,ye)},ue=Bu(),Ce=ve(ue);{var De=P=>{var ye=Lu();Ar(ye,21,()=>e(X),ce=>ce.id,(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Ie=>{var M=Mu(),Z=W(M);{let V=n(()=>l()||e(T).status==="placing");fi(Z,{get id(){return e(T).id},get name(){return e(T).file.name},get type(){return e(T).file.imageMimeType},get imageData(){return e(T).file.imageData},get imageMimeType(){return e(T).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(V)},get placementStatus(){return e(T).status},get placementError(){return e(T).error}})}var re=C(Z,2);{var ie=V=>{var Re=Oo(),We=le(Re,!0);$(()=>{ee(Re,"data-failed",e(T).status==="failed"||void 0),ee(Re,"role",e(T).status==="failed"?"alert":"status"),ee(Re,"title",e(T).error),Y(We,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(V,Re)};D(re,V=>{e(T).status&&V(ie)})}var b=C(re,2),be=W(b);{var Ne=V=>{st(V,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Re,We)=>{Ot(Re,{get icon(){return $s},size:16})},$$slots:{default:!0}})};D(be,V=>{e(T).status==="failed"&&v()&&V(Ne)})}var A=C(be,2);{let V=n(()=>u.chat_attachmentPreview_remove_ariaLabel({name:e(T).file.name}));a(A,()=>e(T).id,()=>e(V))}O(b),O(M),$(()=>ee(M,"data-attachment-id",e(T).id)),Mr("keydown",M,V=>J(V,e(T))),Mr("contextmenu",M,V=>oe(V,e(T))),Ut(1,M,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,M,()=>Qa,()=>({tier:"fast"})),d(Ie,M)},Pe=Ie=>{const M=n(()=>e(T).kind==="image"&&!U(e(T))&&e(T).status!=="failed");var Z=Nu(),re=W(Z);{var ie=me=>{st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(T).name},get disabled(){return l()},onkeydown:Oe=>te(Oe,e(T).id),children:(Oe,Se)=>{var Be=Au(),ae=ve(Be);Ot(ae,{get icon(){return ya},size:20});var Ge=C(ae),dt=le(Ge,!0);$(()=>Y(dt,e(T).name)),d(Oe,Be)},$$slots:{default:!0}})},b=me=>{{let Oe=n(()=>B(e(T))),Se=n(()=>l()||e(T).kind==="clip"&&(e(T).recording||!e(T).url));st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(Se)},onkeydown:Be=>J(Be,e(T)),onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{var Ge=kt(),dt=ve(Ge);{var sr=Le=>{var lt=Pu();$(()=>ee(lt,"src",e(T).url)),d(Le,lt)},Gt=Le=>{var lt=Eu(),qt=C(W(lt)),Je=le(qt,!0),qe=C(qt);{var bt=j=>{var h=Ru(),he=le(h,!0);$(()=>Y(he,e(T).summary)),d(j,h)};D(qe,j=>{e(T).summary&&j(bt)})}O(lt),$(()=>Y(Je,e(T).duration)),d(Le,lt)};D(dt,Le=>{e(T).kind==="image"?Le(sr):Le(Gt,-1)})}d(Be,Ge)},$$slots:{default:!0}})}},be=n(()=>e(T).kind!=="image"||U(e(T)));D(re,me=>{e(T).kind==="file"?me(ie):e(be)&&me(b,1)})}var Ne=C(re,2);{var A=me=>{var Oe=Oo(),Se=le(Oe,!0);$(()=>{ee(Oe,"data-failed",e(T).status==="failed"||void 0),ee(Oe,"role",e(T).status==="failed"?"alert":"status"),ee(Oe,"title",e(T).error),Y(Se,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(me,Oe)};D(Ne,me=>{(e(T).status||e(M))&&me(A)})}var V=C(Ne,2),Re=W(V);{var We=me=>{st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Oe,Se)=>{Ot(Oe,{get icon(){return $s},size:16})},$$slots:{default:!0}})},et=me=>{{let Oe=n(()=>f()?o().edit:o().markUp),Se=n(()=>f()?o().edit:o().markUp);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:()=>F(e(T).id),children:(Be,ae)=>{ws(Be,{glyph:"pencil"})},$$slots:{default:!0}})}},Ke=n(()=>U(e(T))),Bt=me=>{{let Oe=n(()=>f()?o().edit:o().play),Se=n(()=>f()?o().edit:o().play);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{{let Ge=n(()=>f()?"pencil":"play");ws(Be,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};D(Re,me=>{e(T).status==="failed"&&v()?me(We):e(Ke)?me(et,1):e(T).kind==="clip"&&!e(T).recording&&e(T).url&&me(Bt,2)})}var we=C(Re,2);a(we,()=>e(T).id,()=>o().remove),O(V),O(Z),$(()=>{ee(Z,"data-kind",e(T).kind),ee(Z,"data-attachment-id",e(T).id),ee(Z,"aria-busy",e(M)||void 0)}),Mr("contextmenu",Z,me=>oe(me,e(T))),Ut(1,Z,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,Z,()=>Qa,()=>({tier:"fast"})),d(Ie,Z)};D(Me,Ie=>{e(T).kind==="image"&&e(T).file?Ie($e):Ie(Pe,-1)})}d(ce,ge)}),O(ye),sa(ye,ce=>H(k,ce),()=>e(k)),$(()=>ee(ye,"aria-label",o().attachments)),d(P,ye)};D(Ce,P=>{e(X).length&&P(De)})}var at=C(Ce,2);{const P=ce=>{var T=kt(),ge=ve(T);{var Me=$e=>{var Pe=$u(),Ie=ve(Pe);{var M=b=>{st(b,{variant:"primary",get disabled(){return l()},onclick:()=>e(R)&&F(e(R).id),children:(be,Ne)=>{vr();var A=Wr();$(()=>Y(A,o().markUp)),d(be,A)},$$slots:{default:!0}})},Z=n(()=>U(e(R)));D(Ie,b=>{e(Z)&&b(M)})}var re=C(Ie,2);st(re,{variant:"secondary",get disabled(){return l()},onclick:()=>e(R)&&L(e(R).id),children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().remove)),d(b,Ne)},$$slots:{default:!0}});var ie=C(re,2);st(ie,{variant:"ghost-light",onclick:()=>{H(E,!1)},children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().done)),d(b,Ne)},$$slots:{default:!0}}),d($e,Pe)};D(ge,$e=>{e(R)&&e(R).kind!=="file"&&$e(Me)})}d(ce,T)};let ye=n(()=>e(R)?B(e(R)):o().attachments);ui(at,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:ce=>{ce.preventDefault(),G?.isConnected?G.focus():e(k)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(E)},set open(ce){H(E,ce,!0)},footer:P,children:(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Pe=>{var Ie=Du(),M=W(Ie);{var Z=b=>{var be=Ou();$(Ne=>{ee(be,"src",e(R).url),ee(be,"alt",Ne)},[()=>B(e(R))]),d(b,be)},re=n(()=>e(R).kind==="image"&&U(e(R))),ie=b=>{var be=qu();$(Ne=>{ee(be,"src",e(R).url),ee(be,"aria-label",Ne)},[()=>B(e(R))]),d(b,be)};D(M,b=>{e(re)?b(Z):e(R).kind==="clip"&&e(R).url&&b(ie,1)})}O(Ie),d(Pe,Ie)};D(Me,Pe=>{e(R)&&e(R).kind!=="file"&&Pe($e)})}d(ce,ge)},$$slots:{footer:!0,default:!0}})}return d(r,ue),At(ke)}Ja(["keydown","contextmenu"]);var Wu=x("<!> ",1),zu=x('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Bi(r,t){if(new.target)return St({component:Bi,...r});Mt(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),l=g(t,"onUseScript",7),c=_e(!1);function f(){navigator.clipboard.writeText(o()),H(c,!0),setTimeout(()=>{H(c,!1)},2e3)}function y(){l()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(S){a(S),m()},get description(){return s()},set description(S){s(S),m()},get content(){return o()},set content(S){o(S),m()},get onUseScript(){return l()},set onUseScript(S){l(S),m()},$set:Tt,$on:(S,J)=>Ct(t,S,J)},I=zu(),N=W(I),q=W(N),X=W(q),k=W(X);Ot(k,{get icon(){return us},size:"sm"}),O(X);var E=C(X,2),se=le(E,!0);O(q);var G=C(q,2),R=W(G);st(R,{variant:"ghost-light",size:"sm",onclick:f,class:"h-7 px-2",children:(S,J)=>{var oe=Wu(),ke=ve(oe);{let Ce=n(()=>e(c)?di:ci);Ot(ke,{get icon(){return e(Ce)},class:"mr-1"})}var ue=C(ke);$(Ce=>Y(ue,` ${Ce??""}`),[()=>e(c)?u.chat_shared_copied_label():u.chat_shared_copy_label()]),d(S,oe)},$$slots:{default:!0}});var U=C(R,2);{var B=S=>{st(S,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(J,oe)=>{vr();var ke=Wr();$(ue=>Y(ke,ue),[()=>u.chat_setupScriptCard_useScript_label()]),d(J,ke)},$$slots:{default:!0}})};D(U,S=>{l()&&S(B)})}O(G),O(N);var ne=C(N,2),L=le(ne,!0),F=C(ne,2),te=le(F,!0);return O(I),$(()=>{Y(se,a()),Y(L,s()),Y(te,o())}),d(r,I),At(v)}const kr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Hu{constructor(){ma(this,"buffer","");ma(this,"currentToolName",null);ma(this,"currentToolId",null);ma(this,"lastToolId",null);ma(this,"currentToolParams",[]);ma(this,"currentToolResultContent",[]);ma(this,"inToolResult",!1);ma(this,"inCodeBlock",!1);ma(this,"codeBlockLanguage","");ma(this,"codeBlockContent","");ma(this,"characterBuffer","");ma(this,"inCharacterMode",!1);ma(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const f=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),y=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
1
|
+
var Cl=Object.defineProperty;var Ml=(r,t,a)=>t in r?Cl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var ma=(r,t,a)=>Ml(r,typeof t!="symbol"?t+"":t,a);import{t as St,bo as g,bw as Tt,b as Ct,bm as u,bq as Ha,bs as cr,br as Al,bp as mn}from"./ClpAEjbe.js";import{ai as Ja,bs as Mt,ca as ar,aD as e,bH as H,ay as ve,bS as C,a7 as kt,W as d,a5 as W,bA as O,bn as At,c9 as n,bV as _e,aA as m,b_ as $,aj as Mr,aB as x,be as vr,b$ as Wr,bO as Y,bf as rr,c0 as ba,bl as le,bj as Wa,c6 as Pl,bo as On,br as Xr,am as $a,ax as Oa,bk as Jn,aw as gn,bz as es,cb as ds,c5 as Dn,aC as Sr,cd as uo,bv as Rl}from"./CJxGDkBm.js";import{i as D}from"./wmcYjLAa.js";import{g as Ar,e as ua,p as cs,i as Za,I as El,h as Zs,X as ii,o as Nl}from"./BwASeArv.js";import{n as Ut,l as En,c as Qa,g as rn,s as hs,k as ts,S as Ll}from"./oXpJ1LFx.js";import{s as ee,f as Fe,g as pn,c as xt,e as tr,b as vn,p as $l,S as Ol,C as ql}from"./CnGVh7I3.js";import{b as sa}from"./NtFyWdpR.js";import{f as st,ae as Qs,a_ as Dl}from"./BVi5KkOP.js";import{J as Bl,O as Fl,Q as _s}from"./CPDV_dyu.js";import"./Gb7Ohwuc.js";import"./BYiyLeZ4.js";import"./Qt_rZNko.js";import{k as li,s as Ra}from"./WSVFXKpL.js";import{F as Ot,a4 as $s,bg as ya,cK as us,au as di,aZ as ci,aK as Wl,c9 as zl,a6 as rs,aN as Hl,cN as Ul,cM as jl,a3 as fs,aC as as,aw as Xs,I as fo,aj as Vl,bu as Kl,aS as Gl,aX as Zl,bJ as Ql,ao as Xl,cC as Yl,aP as go,c0 as ys,aI as Bn,cW as Jl,cb as ed,bn as td,b as rd,cp as ad,ag as nd,ba as bs,cr as _n,cF as sd}from"./CtJxHvGv.js";import{C as ui,A as od,o as id}from"./B06RKBOm.js";import{b as ws,V as mo}from"./BxAKyA2J.js";import{A as fi,I as ld,R as dd,q as cd}from"./5Z6V3HtS.js";import{bZ as gi,j as Hn,a6 as Os,am as ns,F as ud,av as Un,aP as fd,aS as po}from"./Bxb8LI6C.js";import{t as an,o as gd}from"./DAsc1V4f.js";import{ce as jn,aN as Nn,c$ as mi,d1 as za,c3 as gs,q as md,cU as pi,c_ as ms,cZ as vi,cX as hi,n as Pa,al as pd,am as vd,aI as hd,z as _d,V as yd,a3 as vo,D as _i,e0 as bd,aE as wd,ak as xd,r as kd,C as xs,ag as Id,U as yn,d$ as Sd,ab as Td,k as ho,u as Cd,Z as Md,v as Ad,i as Pd,g as ks,f as _o,a0 as Rd,$ as Ed,a9 as Nd,x as yi,y as bi,l as wi,j as Ld,s as $d,a as Od,d2 as qd,ae as Dd,L as Bd,F as Fd,a2 as yo}from"./D9Ykl3eH.js";import{Jq as yt,oY as Wd,tN as Vn,nN as bo,vG as xi,vI as ki,r_ as zd,yE as ss,uZ as Ii,nI as Si,bq as Kn,yF as Hd,qw as Ud,th as jd,vz as Ti,nH as Vd,mM as Kd,m as Gd,z6 as Zd,z3 as Qd,z5 as Xd}from"./CpP1PKzF.js";import{a3 as Yd,y as Is,a1 as Jd,O as Ss,W as ec,$ as tc,k as rc,p as bn,P as cn,q as ac,G as nc,v as sc,t as oc,M as Ts,K as ic,z as lc,L as dc,_ as Sn,U as Fn,N as wo,n as xo,E as cc,c as Cs,F as ko,B as uc,w as Io,J as Tn,Q as fc,H as gc,j as mc,R as pc,T as vc,A as hc,g as _c,b as yc,D as bc,f as wc,e as xc,a as kc,C as Ic,i as Sc,d as qs,V as Ci,a4 as Tc,u as Cc,l as Mc}from"./R-aBLidW.js";import{i as Ac,e as Pc}from"./CTV49dzf.js";import{g as Ms}from"./B5aYN90J.js";import{M as wn,C as Cn}from"./DE_K0DMt.js";import{C as So}from"./CTsZeMVP.js";import"./OusZ11tk.js";import{P as Rc}from"./BApUcPKR.js";import"./DvfG7QDh.js";import{c as Mi}from"./ChTqQfQN.js";import{S as Ec}from"./CPj4SFCC.js";import{D as To,M as Nc}from"./D-usBtmP.js";import{b as Lc,s as Ya,c as os}from"./RwJyhbRN.js";import{O as Gn,y as As,E as Ps,B as Rs,N as $c,m as Oc,l as qc,k as Dc,d as Ln,C as Co,f as Bc,e as Fc,g as Wc}from"./CNsgRr0G.js";import{a as Ai,s as Mo}from"./BsieX9dN.js";import{f as zc}from"./BdWqymET.js";import{c as na}from"./DjAHTP5R.js";import{a as Hc,k as Pi,h as Ys,q as Ri,l as Ir}from"./By588DV1.js";import{P as Uc}from"./B5wwCKYG.js";import{r as Es,q as Ns,B as Ao,i as jc}from"./BoefNJ5Q.js";import{R as Ei,C as ps,m as Vc,h as Kc,g as Gc,i as Po,P as Zc}from"./C1zxTHwk.js";import"./BeYVt6Wg.js";import{c as Qc,s as Xc}from"./ZJOyleCJ.js";import{h as An}from"./CQR1o7um.js";import{b as Yc,a as Ni}from"./DyaBo2y6.js";import{P as Li}from"./uD6eQoK5.js";import{B as Jc}from"./BlXZA0dT.js";import{o as $i,r as eu,e as tu}from"./DLmLA9DN.js";import{o as Oi}from"./BuQN2T0g.js";import{A as Zn,b as qi}from"./Dd5ei__B.js";import{g as Js}from"./G-nrQJwO.js";import{a as ru,M as au}from"./BejTxFyR.js";import{t as Nr}from"./D2MmXC4A.js";import{c as xn}from"./DSqSJXGX.js";import{A as nu}from"./BQgCURYe.js";import{f as su,d as ou}from"./oaGKgX0i.js";import{a9 as iu,N as lu,Y as du,K as Ro,X as cu,v as uu}from"./BWDjljS8.js";import{a as fu}from"./CC7to1B5.js";import{k as gu}from"./Xh71Wbuh.js";import{S as mu}from"./CxEy75pV.js";import{u as pu,a as vu,c as Eo,S as hu}from"./DJfJ5NWH.js";import{T as Ds}from"./Cfkb8WUl.js";import"./D_G_nxUe.js";import{g as _u}from"./MZe3NxQe.js";import{a as yu}from"./R9aYbjet.js";import{b as bu}from"./B5fQcqb-.js";import{b as No}from"./DfTSMq0b.js";import{ah as Fa,n as wu}from"./b89lNINv.js";import{x as xu}from"./BxKppgO5.js";import{c as ku}from"./B9Y57c7j.js";import{r as Lo}from"./B2NZzPt-.js";function Iu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof l!="string"||!l||typeof c!="string"||!c||f!=="finished"&&f!=="ttl-expired"&&f!=="output-match"&&f!=="line-count")return null;const y=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f,...f==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function Su(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Tu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,l=iu(r)&&r.author?.principalId!==null&&o===t;return{edit:l,remove:l||t===a||s,sendNow:(l||s)&&!Di(r)}}function kn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Di(r){return Su(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function $o(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),l=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!l&&!o&&!Di(r)}const F_="pl-3.5! pr-2!";var Cu=x('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),Oo=x('<span class="attachment-status svelte-d8pwpf"> </span>'),Mu=x('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Au=x("<!><span> </span>",1),Pu=x('<img alt="" draggable="false"/>'),Ru=x('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Eu=x('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),Nu=x('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Lu=x('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),$u=x("<!> <!> <!>",1),Ou=x('<img draggable="false" class="svelte-d8pwpf"/>'),qu=x('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Du=x('<div class="media-viewer svelte-d8pwpf"><!></div>'),Bu=x("<!> <!>",1);function Fu(r,t){if(new.target)return St({component:Fu,...r});Mt(t,!0);const a=(P,ye=rr,ce=rr)=>{var T=Cu(),ge=W(T);st(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return l()},get"aria-label"(){return ce()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return ce()},onclick:()=>L(ye()),children:(Me,$e)=>{ws(Me,{glyph:"x"})},$$slots:{default:!0}}),O(T),d(P,T)};let s=g(t,"items",7),o=g(t,"labels",7),l=g(t,"disabled",7,!1),c=g(t,"onMarkUp",7),f=g(t,"onEdit",7),y=g(t,"onRemove",7),v=g(t,"onRetry",7),I=g(t,"onCopy",7),N=g(t,"onMenu",7);const q=P=>P.owner==="attachment"?2:{image:0,clip:1,file:2}[P.kind],X=n(()=>[...s()].sort((P,ye)=>q(P)-q(ye)));let k=_e(null),E=_e(!1),se=_e(null),G=null;const R=n(()=>s().find(P=>P.id===e(se)));ar(()=>{(!e(R)||e(R).kind==="image"&&!U(e(R)))&&H(E,!1)});function U(P){return P.kind==="image"&&P.status!=="placing"&&P.status!=="failed"&&P.url.trim().length>0}function B(P){return P.kind==="image"?o().image(P.markCount):P.kind==="clip"?P.summary?`${o().clip(P.duration)} ${P.summary}`:o().clip(P.duration):P.name}function ne(P,ye){if(!(l()||P.kind==="file"||P.kind==="image"&&!U(P)||P.kind==="clip"&&(!P.url||P.recording))){if((P.kind==="clip"||P.kind==="image")&&f()){f()(P.id);return}G=ye,H(se,P.id,!0),H(E,!0)}}async function L(P){l()||(e(se)===P&&H(E,!1),y()(P),await ba(),(!document.activeElement||document.activeElement===document.body)&&e(k)?.querySelector("button:not(:disabled)")?.focus())}function F(P){const ye=s().find(ce=>ce.id===P);l()||!ye||!U(ye)||(H(E,!1),f()?f()(P):c()(P))}function te(P,ye){P.key!=="Delete"||l()||(P.preventDefault(),P.stopPropagation(),L(ye))}function S(P){return P.status==="placing"||P.status==="failed"?!1:P.kind==="image"?!!P.file||U(P):P.kind==="clip"&&!P.recording&&!!P.url}function J(P,ye){const ce=Bl()?P.metaKey:P.ctrlKey,T=P.key.toLowerCase();if(ce&&!P.shiftKey&&!P.altKey&&(T==="c"||T==="x")){if(!I()||!S(ye)||(P.preventDefault(),P.stopPropagation(),T==="x"&&l()))return;I()(ye.id,T==="x");return}te(P,ye.id)}function oe(P,ye){!N()||!S(ye)||(P.preventDefault(),N()(ye.id))}var ke={get items(){return s()},set items(P){s(P),m()},get labels(){return o()},set labels(P){o(P),m()},get disabled(){return l()},set disabled(P=!1){l(P),m()},get onMarkUp(){return c()},set onMarkUp(P){c(P),m()},get onEdit(){return f()},set onEdit(P){f(P),m()},get onRemove(){return y()},set onRemove(P){y(P),m()},get onRetry(){return v()},set onRetry(P){v(P),m()},get onCopy(){return I()},set onCopy(P){I(P),m()},get onMenu(){return N()},set onMenu(P){N(P),m()},$set:Tt,$on:(P,ye)=>Ct(t,P,ye)},ue=Bu(),Ce=ve(ue);{var De=P=>{var ye=Lu();Ar(ye,21,()=>e(X),ce=>ce.id,(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Ie=>{var M=Mu(),Z=W(M);{let V=n(()=>l()||e(T).status==="placing");fi(Z,{get id(){return e(T).id},get name(){return e(T).file.name},get type(){return e(T).file.imageMimeType},get imageData(){return e(T).file.imageData},get imageMimeType(){return e(T).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(V)},get placementStatus(){return e(T).status},get placementError(){return e(T).error}})}var re=C(Z,2);{var ie=V=>{var Re=Oo(),We=le(Re,!0);$(()=>{ee(Re,"data-failed",e(T).status==="failed"||void 0),ee(Re,"role",e(T).status==="failed"?"alert":"status"),ee(Re,"title",e(T).error),Y(We,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(V,Re)};D(re,V=>{e(T).status&&V(ie)})}var b=C(re,2),be=W(b);{var Ne=V=>{st(V,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Re,We)=>{Ot(Re,{get icon(){return $s},size:16})},$$slots:{default:!0}})};D(be,V=>{e(T).status==="failed"&&v()&&V(Ne)})}var A=C(be,2);{let V=n(()=>u.chat_attachmentPreview_remove_ariaLabel({name:e(T).file.name}));a(A,()=>e(T).id,()=>e(V))}O(b),O(M),$(()=>ee(M,"data-attachment-id",e(T).id)),Mr("keydown",M,V=>J(V,e(T))),Mr("contextmenu",M,V=>oe(V,e(T))),Ut(1,M,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,M,()=>Qa,()=>({tier:"fast"})),d(Ie,M)},Pe=Ie=>{const M=n(()=>e(T).kind==="image"&&!U(e(T))&&e(T).status!=="failed");var Z=Nu(),re=W(Z);{var ie=me=>{st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(T).name},get disabled(){return l()},onkeydown:Oe=>te(Oe,e(T).id),children:(Oe,Se)=>{var Be=Au(),ae=ve(Be);Ot(ae,{get icon(){return ya},size:20});var Ge=C(ae),dt=le(Ge,!0);$(()=>Y(dt,e(T).name)),d(Oe,Be)},$$slots:{default:!0}})},b=me=>{{let Oe=n(()=>B(e(T))),Se=n(()=>l()||e(T).kind==="clip"&&(e(T).recording||!e(T).url));st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(Se)},onkeydown:Be=>J(Be,e(T)),onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{var Ge=kt(),dt=ve(Ge);{var sr=Le=>{var lt=Pu();$(()=>ee(lt,"src",e(T).url)),d(Le,lt)},Gt=Le=>{var lt=Eu(),qt=C(W(lt)),Je=le(qt,!0),qe=C(qt);{var bt=j=>{var h=Ru(),he=le(h,!0);$(()=>Y(he,e(T).summary)),d(j,h)};D(qe,j=>{e(T).summary&&j(bt)})}O(lt),$(()=>Y(Je,e(T).duration)),d(Le,lt)};D(dt,Le=>{e(T).kind==="image"?Le(sr):Le(Gt,-1)})}d(Be,Ge)},$$slots:{default:!0}})}},be=n(()=>e(T).kind!=="image"||U(e(T)));D(re,me=>{e(T).kind==="file"?me(ie):e(be)&&me(b,1)})}var Ne=C(re,2);{var A=me=>{var Oe=Oo(),Se=le(Oe,!0);$(()=>{ee(Oe,"data-failed",e(T).status==="failed"||void 0),ee(Oe,"role",e(T).status==="failed"?"alert":"status"),ee(Oe,"title",e(T).error),Y(Se,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(me,Oe)};D(Ne,me=>{(e(T).status||e(M))&&me(A)})}var V=C(Ne,2),Re=W(V);{var We=me=>{st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Oe,Se)=>{Ot(Oe,{get icon(){return $s},size:16})},$$slots:{default:!0}})},et=me=>{{let Oe=n(()=>f()?o().edit:o().markUp),Se=n(()=>f()?o().edit:o().markUp);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:()=>F(e(T).id),children:(Be,ae)=>{ws(Be,{glyph:"pencil"})},$$slots:{default:!0}})}},Ke=n(()=>U(e(T))),Bt=me=>{{let Oe=n(()=>f()?o().edit:o().play),Se=n(()=>f()?o().edit:o().play);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{{let Ge=n(()=>f()?"pencil":"play");ws(Be,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};D(Re,me=>{e(T).status==="failed"&&v()?me(We):e(Ke)?me(et,1):e(T).kind==="clip"&&!e(T).recording&&e(T).url&&me(Bt,2)})}var we=C(Re,2);a(we,()=>e(T).id,()=>o().remove),O(V),O(Z),$(()=>{ee(Z,"data-kind",e(T).kind),ee(Z,"data-attachment-id",e(T).id),ee(Z,"aria-busy",e(M)||void 0)}),Mr("contextmenu",Z,me=>oe(me,e(T))),Ut(1,Z,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,Z,()=>Qa,()=>({tier:"fast"})),d(Ie,Z)};D(Me,Ie=>{e(T).kind==="image"&&e(T).file?Ie($e):Ie(Pe,-1)})}d(ce,ge)}),O(ye),sa(ye,ce=>H(k,ce),()=>e(k)),$(()=>ee(ye,"aria-label",o().attachments)),d(P,ye)};D(Ce,P=>{e(X).length&&P(De)})}var at=C(Ce,2);{const P=ce=>{var T=kt(),ge=ve(T);{var Me=$e=>{var Pe=$u(),Ie=ve(Pe);{var M=b=>{st(b,{variant:"primary",get disabled(){return l()},onclick:()=>e(R)&&F(e(R).id),children:(be,Ne)=>{vr();var A=Wr();$(()=>Y(A,o().markUp)),d(be,A)},$$slots:{default:!0}})},Z=n(()=>U(e(R)));D(Ie,b=>{e(Z)&&b(M)})}var re=C(Ie,2);st(re,{variant:"secondary",get disabled(){return l()},onclick:()=>e(R)&&L(e(R).id),children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().remove)),d(b,Ne)},$$slots:{default:!0}});var ie=C(re,2);st(ie,{variant:"ghost-light",onclick:()=>{H(E,!1)},children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().done)),d(b,Ne)},$$slots:{default:!0}}),d($e,Pe)};D(ge,$e=>{e(R)&&e(R).kind!=="file"&&$e(Me)})}d(ce,T)};let ye=n(()=>e(R)?B(e(R)):o().attachments);ui(at,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:ce=>{ce.preventDefault(),G?.isConnected?G.focus():e(k)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(E)},set open(ce){H(E,ce,!0)},footer:P,children:(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Pe=>{var Ie=Du(),M=W(Ie);{var Z=b=>{var be=Ou();$(Ne=>{ee(be,"src",e(R).url),ee(be,"alt",Ne)},[()=>B(e(R))]),d(b,be)},re=n(()=>e(R).kind==="image"&&U(e(R))),ie=b=>{var be=qu();$(Ne=>{ee(be,"src",e(R).url),ee(be,"aria-label",Ne)},[()=>B(e(R))]),d(b,be)};D(M,b=>{e(re)?b(Z):e(R).kind==="clip"&&e(R).url&&b(ie,1)})}O(Ie),d(Pe,Ie)};D(Me,Pe=>{e(R)&&e(R).kind!=="file"&&Pe($e)})}d(ce,ge)},$$slots:{footer:!0,default:!0}})}return d(r,ue),At(ke)}Ja(["keydown","contextmenu"]);var Wu=x("<!> ",1),zu=x('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Bi(r,t){if(new.target)return St({component:Bi,...r});Mt(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),l=g(t,"onUseScript",7),c=_e(!1);function f(){navigator.clipboard.writeText(o()),H(c,!0),setTimeout(()=>{H(c,!1)},2e3)}function y(){l()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(S){a(S),m()},get description(){return s()},set description(S){s(S),m()},get content(){return o()},set content(S){o(S),m()},get onUseScript(){return l()},set onUseScript(S){l(S),m()},$set:Tt,$on:(S,J)=>Ct(t,S,J)},I=zu(),N=W(I),q=W(N),X=W(q),k=W(X);Ot(k,{get icon(){return us},size:"sm"}),O(X);var E=C(X,2),se=le(E,!0);O(q);var G=C(q,2),R=W(G);st(R,{variant:"ghost-light",size:"sm",onclick:f,class:"h-7 px-2",children:(S,J)=>{var oe=Wu(),ke=ve(oe);{let Ce=n(()=>e(c)?di:ci);Ot(ke,{get icon(){return e(Ce)},class:"mr-1"})}var ue=C(ke);$(Ce=>Y(ue,` ${Ce??""}`),[()=>e(c)?u.chat_shared_copied_label():u.chat_shared_copy_label()]),d(S,oe)},$$slots:{default:!0}});var U=C(R,2);{var B=S=>{st(S,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(J,oe)=>{vr();var ke=Wr();$(ue=>Y(ke,ue),[()=>u.chat_setupScriptCard_useScript_label()]),d(J,ke)},$$slots:{default:!0}})};D(U,S=>{l()&&S(B)})}O(G),O(N);var ne=C(N,2),L=le(ne,!0),F=C(ne,2),te=le(F,!0);return O(I),$(()=>{Y(se,a()),Y(L,s()),Y(te,o())}),d(r,I),At(v)}const kr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Hu{constructor(){ma(this,"buffer","");ma(this,"currentToolName",null);ma(this,"currentToolId",null);ma(this,"lastToolId",null);ma(this,"currentToolParams",[]);ma(this,"currentToolResultContent",[]);ma(this,"inToolResult",!1);ma(this,"inCodeBlock",!1);ma(this,"codeBlockLanguage","");ma(this,"codeBlockContent","");ma(this,"characterBuffer","");ma(this,"inCharacterMode",!1);ma(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const f=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),y=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);o.push({type:"tool_result",content:y,metadata:{toolId:this.currentToolId,isError:f}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const l=t.indexOf("🤖"),c=t.substring(l+2);if(this.inCharacterMode=!0,this.characterBuffer="",c&&c.trim()&&c!==`
|
|
3
3
|
`){const f=c.replace(/^\n/,"");f&&(this.characterBuffer=f)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
|