@intent-hq/web 2.342.4 → 2.342.5
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/{NM7qy67Z.js → 5MJ74bom.js} +1 -1
- package/web/app/immutable/chunks/{CxMzoxX3.js → 9I9M5TBJ.js} +1 -1
- package/web/app/immutable/chunks/{DRUHoPvO.js → Ab20mLmH.js} +1 -1
- package/web/app/immutable/chunks/{C4lA6Qko.js → B-UTQE9n.js} +1 -1
- package/web/app/immutable/chunks/{DV-obrTk.js → B0_qkqY_.js} +1 -1
- package/web/app/immutable/chunks/{DgtpjRdr.js → B0ssL2xu.js} +1 -1
- package/web/app/immutable/chunks/{CVKwboeu.js → B2V9AEgR.js} +1 -1
- package/web/app/immutable/chunks/{Dt0R2Ktk.js → B5BS4m6v.js} +1 -1
- package/web/app/immutable/chunks/{Cf4bZipG.js → B9MR2qKJ.js} +1 -1
- package/web/app/immutable/chunks/{CUMVOvj8.js → B9ZSdq0q.js} +1 -1
- package/web/app/immutable/chunks/{BGxSDng4.js → B9pffw5f.js} +1 -1
- package/web/app/immutable/chunks/{DwdKjBer.js → BA2lJblc.js} +1 -1
- package/web/app/immutable/chunks/{CpUxooti.js → BCnX9t4a.js} +1 -1
- package/web/app/immutable/chunks/{BGqqSLU-.js → BD-KZLHv.js} +2 -2
- package/web/app/immutable/chunks/{B2sG3ycV.js → BD82W8Bt.js} +3 -3
- package/web/app/immutable/chunks/{C8qlJ0Ks.js → BEbaPOYh.js} +1 -1
- package/web/app/immutable/chunks/{DQDdpgUG.js → BEwb8M62.js} +1 -1
- package/web/app/immutable/chunks/{DTnOOoUt.js → BH4ln8o3.js} +1 -1
- package/web/app/immutable/chunks/{CTCotWuX.js → BHuMIaB-.js} +1 -1
- package/web/app/immutable/chunks/{CvZnx98i.js → BLwzhvkL.js} +1 -1
- package/web/app/immutable/chunks/{CQWXQG41.js → BNH24FIO.js} +1 -1
- package/web/app/immutable/chunks/{CkPDW0xR.js → BO1j1ixt.js} +1 -1
- package/web/app/immutable/chunks/{BtxvvbW8.js → BO7wBdO6.js} +1 -1
- package/web/app/immutable/chunks/{CICfpKca.js → BP-Q7b0i.js} +1 -1
- package/web/app/immutable/chunks/{Os4z29kc.js → BSdbHZ8z.js} +1 -1
- package/web/app/immutable/chunks/{BmytRNPE.js → BU-iKTox.js} +1 -1
- package/web/app/immutable/chunks/{bijN4Zym.js → BVhqJMlz.js} +1 -1
- package/web/app/immutable/chunks/{C8KtEq0s.js → BVtokOo_.js} +1 -1
- package/web/app/immutable/chunks/{BGlD6YLC.js → BX3J6LtW.js} +1 -1
- package/web/app/immutable/chunks/{DXeiIMAg.js → BXAV7QDz.js} +1 -1
- package/web/app/immutable/chunks/{BbmXR-SH.js → BXF4phu3.js} +1 -1
- package/web/app/immutable/chunks/{BI2l6wE6.js → BYQopcl_.js} +1 -1
- package/web/app/immutable/chunks/{zGggXnza.js → Be1jptX6.js} +2 -2
- package/web/app/immutable/chunks/{CkMQV99G.js → BeIjMbrN.js} +1 -1
- package/web/app/immutable/chunks/{COgT-EXe.js → BgCuVUEx.js} +1 -1
- package/web/app/immutable/chunks/{LUvhmWrd.js → Bl3ku6zY.js} +1 -1
- package/web/app/immutable/chunks/{CgO3N0Eh.js → BlY9wYzn.js} +12 -12
- package/web/app/immutable/chunks/{CUfd6v40.js → Blf45GFr.js} +1 -1
- package/web/app/immutable/chunks/{DB4b4MsO.js → BmbBYGbu.js} +1 -1
- package/web/app/immutable/chunks/{DgiTVZJP.js → BpIyu9yy.js} +1 -1
- package/web/app/immutable/chunks/{DSnMQfNF.js → BtwTtkFh.js} +1 -1
- package/web/app/immutable/chunks/{mS-9NIEA.js → Buz03DoT.js} +4 -4
- package/web/app/immutable/chunks/{DxzBH9If.js → C-6qbf4N.js} +1 -1
- package/web/app/immutable/chunks/{ChiWSNHv.js → C0KM0FtB.js} +3 -3
- package/web/app/immutable/chunks/{B9Rr6BpD.js → C2EFFsXa.js} +1 -1
- package/web/app/immutable/chunks/{C17WHWXN.js → C2SncAbm.js} +3 -3
- package/web/app/immutable/chunks/{Dvj55vXN.js → C2_NbCok.js} +2 -2
- package/web/app/immutable/chunks/{CYkYJCIe.js → C7EyPIPK.js} +1 -1
- package/web/app/immutable/chunks/{C4jx-XZh.js → C8HFCtQc.js} +4 -4
- package/web/app/immutable/chunks/{DumOb8FY.js → CBlkSpHT.js} +1 -1
- package/web/app/immutable/chunks/{CmwgdR7R.js → CEi628Ly.js} +1 -1
- package/web/app/immutable/chunks/{1KURqqMz.js → CFd_BR6h.js} +1 -1
- package/web/app/immutable/chunks/{jqA28ECO.js → CIvLO5u3.js} +1 -1
- package/web/app/immutable/chunks/{C3fOi3VT.js → CJBdHKP3.js} +1 -1
- package/web/app/immutable/chunks/{D-XhH1EI.js → CKhvCB1c.js} +1 -1
- package/web/app/immutable/chunks/{8a4AenV7.js → CQLWXrdV.js} +1 -1
- package/web/app/immutable/chunks/{BAKm0uzb.js → CRsmjbca.js} +1 -1
- package/web/app/immutable/chunks/{D2wzgv1F.js → CTGhMPAl.js} +1 -1
- package/web/app/immutable/chunks/{Bau8iVXk.js → CVAh3mzO.js} +1 -1
- package/web/app/immutable/chunks/{CFgR764H.js → CW8eu9Fc.js} +1 -1
- package/web/app/immutable/chunks/{CyAWaGyu.js → CYd9CxM2.js} +1 -1
- package/web/app/immutable/chunks/{7HuWq_hr.js → CYi-3y1a.js} +1 -1
- package/web/app/immutable/chunks/{C_7QOYdw.js → CcPtU8UW.js} +1 -1
- package/web/app/immutable/chunks/{WIMBPpA0.js → CePSYC9W.js} +1 -1
- package/web/app/immutable/chunks/{t9E12oJ3.js → CgrygJV3.js} +1 -1
- package/web/app/immutable/chunks/{DMIUJOUV.js → CigGYFQE.js} +2 -2
- package/web/app/immutable/chunks/{DEpTpabV.js → Cj4_fE_Z.js} +1 -1
- package/web/app/immutable/chunks/{D4m_3H3b.js → Cj5DhOJq.js} +1 -1
- package/web/app/immutable/chunks/{DDm2Bs3C.js → CmOh1j88.js} +1 -1
- package/web/app/immutable/chunks/{5Cz4WZpZ.js → CnsfGu51.js} +1 -1
- package/web/app/immutable/chunks/{DfEfJ41H.js → CovxsylF.js} +1 -1
- package/web/app/immutable/chunks/{Dtat8Jyj.js → CrvrVD-n.js} +1 -1
- package/web/app/immutable/chunks/{CpMT4a7n.js → CtN89xMf.js} +2 -2
- package/web/app/immutable/chunks/{BvQPs1Xx.js → CtkAQ7oC.js} +1 -1
- package/web/app/immutable/chunks/{Cth8kMss.js → CySMzPv8.js} +1 -1
- package/web/app/immutable/chunks/{CqND6pvG.js → Cz-8OuDt.js} +1 -1
- package/web/app/immutable/chunks/{D0ypGvvA.js → D-ZUE96G.js} +1 -1
- package/web/app/immutable/chunks/{DYJF6z7c.js → D1NmEmqB.js} +4 -4
- package/web/app/immutable/chunks/D3QcPFoL.js +18 -0
- package/web/app/immutable/chunks/{CxvlNIyu.js → D51Ok7Sl.js} +1 -1
- package/web/app/immutable/chunks/{D5YUYmA3.js → D77Zy4An.js} +1 -1
- package/web/app/immutable/chunks/{_d_cQJ1G.js → D85uTUYL.js} +1 -1
- package/web/app/immutable/chunks/{DIw4K70V.js → D96ib-I5.js} +1 -1
- package/web/app/immutable/chunks/{BVg9yzXR.js → DDFZpvPx.js} +1 -1
- package/web/app/immutable/chunks/{BRm0glkU.js → DFmEtG_9.js} +1 -1
- package/web/app/immutable/chunks/{B1cObw1z.js → DJpCOlC8.js} +1 -1
- package/web/app/immutable/chunks/{Dc7eHIw9.js → DKenUM6A.js} +1 -1
- package/web/app/immutable/chunks/{DkqCzXww.js → DMKEf35d.js} +1 -1
- package/web/app/immutable/chunks/{CFR39oq5.js → DNJxn0wo.js} +1 -1
- package/web/app/immutable/chunks/{BONdHkQs.js → DP7f3kY3.js} +1 -1
- package/web/app/immutable/chunks/{CNpCGMBp.js → DPYAIBdn.js} +1 -1
- package/web/app/immutable/chunks/{DdI6xQc_.js → DPprzF9n.js} +1 -1
- package/web/app/immutable/chunks/{DRlYzKsv.js → DSCfIpEg.js} +1 -1
- package/web/app/immutable/chunks/{ztS7waxk.js → DUs9bSzD.js} +1 -1
- package/web/app/immutable/chunks/{BtxzFh2d.js → DX1PnF-2.js} +1 -1
- package/web/app/immutable/chunks/{D0LCHW4n.js → DYWAzny3.js} +2 -2
- package/web/app/immutable/chunks/{BuvdM8FN.js → Dav9TY89.js} +2 -2
- package/web/app/immutable/chunks/{BeeSTXCF.js → DdbGGrJT.js} +1 -1
- package/web/app/immutable/chunks/{DEgM7-3u.js → DhMpGM70.js} +1 -1
- package/web/app/immutable/chunks/{CBR1HO24.js → DiEYOblK.js} +1 -1
- package/web/app/immutable/chunks/{B1NzFEuO.js → DisP4tLe.js} +2 -2
- package/web/app/immutable/chunks/{B6A6cgF-.js → Djv-oe2E.js} +1 -1
- package/web/app/immutable/chunks/{DxtKR96k.js → DkjCEo5b.js} +1 -1
- package/web/app/immutable/chunks/{BFw-QJi_.js → DnSVyFe6.js} +1 -1
- package/web/app/immutable/chunks/{Bb4ph25I.js → DtCouCNA.js} +1 -1
- package/web/app/immutable/chunks/{BS1TtWt_.js → DtVHsKFz.js} +1 -1
- package/web/app/immutable/chunks/{Bj2crfQp.js → Duzuaj0l.js} +1 -1
- package/web/app/immutable/chunks/{B8XCEZm-.js → DvLU4NvH.js} +1 -1
- package/web/app/immutable/chunks/{DUpM6F7J.js → DzXMRkfF.js} +1 -1
- package/web/app/immutable/chunks/{L-ubqpH9.js → LaNiSp-z.js} +3 -3
- package/web/app/immutable/chunks/{D78kBZDL.js → NbtAw81Q.js} +3 -3
- package/web/app/immutable/chunks/{DuD5Wxpm.js → O5l0RJYc.js} +1 -1
- package/web/app/immutable/chunks/SYPnLWme.js +1 -0
- package/web/app/immutable/chunks/{5KtPZQMj.js → TjCk4I06.js} +1 -1
- package/web/app/immutable/chunks/{D-CZRaat.js → VD7jBGIa.js} +1 -1
- package/web/app/immutable/chunks/{H0MOjDP3.js → VU_dEs1O.js} +1 -1
- package/web/app/immutable/chunks/{BkT4AaId.js → VemCiT-h.js} +1 -1
- package/web/app/immutable/chunks/{CAZtHQBF.js → XL6L6bac.js} +4 -4
- package/web/app/immutable/chunks/{CRgdXK-6.js → Y1stQAOD.js} +1 -1
- package/web/app/immutable/chunks/{Cqu-aR4t.js → aCgYXkiq.js} +1 -1
- package/web/app/immutable/chunks/{VPc0uUzO.js → af2M07Jp.js} +1 -1
- package/web/app/immutable/chunks/{C_hDvi-s.js → bRNHBr3p.js} +1 -1
- package/web/app/immutable/chunks/{DKTzyP0R.js → eHDwA5XP.js} +1 -1
- package/web/app/immutable/chunks/{BnMYxi1T.js → fWUdssGw.js} +1 -1
- package/web/app/immutable/chunks/{LPPUEsZT.js → fv5BUC0x.js} +1 -1
- package/web/app/immutable/chunks/{DjFKdLks.js → gobvQJh-.js} +1 -1
- package/web/app/immutable/chunks/{uZlZnPJv.js → jW3hslOU.js} +1 -1
- package/web/app/immutable/chunks/{Ci8LBOxa.js → jvcXRR0d.js} +1 -1
- package/web/app/immutable/chunks/{3KbBjGJm.js → lik_9VSn.js} +1 -1
- package/web/app/immutable/chunks/{ClPZ-dnm.js → qT0nknp5.js} +1 -1
- package/web/app/immutable/chunks/{CD69NP_A.js → tjMxf7Rt.js} +1 -1
- package/web/app/immutable/chunks/{CRVLrgxJ.js → u4y-pfzC.js} +1 -1
- package/web/app/immutable/chunks/{PeAPKDUF.js → uX_fRBME.js} +1 -1
- package/web/app/immutable/chunks/{CEhJvA02.js → uytaZeoE.js} +1 -1
- package/web/app/immutable/chunks/{BwfLVMMM.js → wN7G2Ia4.js} +1 -1
- package/web/app/immutable/chunks/{ZvX_fEaP.js → xWqZTTcb.js} +1 -1
- package/web/app/immutable/chunks/{DOJHO8tY.js → xqTOvfYK.js} +1 -1
- package/web/app/immutable/chunks/{BAdws6Fu.js → zhV4pxah.js} +2 -2
- package/web/app/immutable/entry/{app.4WfHy_Zl.js → app.Cm8DHtWj.js} +2 -2
- package/web/app/immutable/entry/start.DYkk2YwH.js +1 -0
- package/web/app/immutable/nodes/{0.vO0Tybn6.js → 0.pEooyJKH.js} +1 -1
- package/web/app/immutable/nodes/{1.Bfh_ynUg.js → 1.CbjXsHd9.js} +1 -1
- package/web/app/immutable/nodes/{10.CbLOWaiK.js → 10.Q77UiFRH.js} +1 -1
- package/web/app/immutable/nodes/{14.CgOJLuna.js → 14.C-qEjPAS.js} +1 -1
- package/web/app/immutable/nodes/{17.CeWDuaDv.js → 17.caLOiGPT.js} +2 -2
- package/web/app/immutable/nodes/{2.BJIFazOq.js → 2.PREGdjWy.js} +4 -4
- package/web/app/immutable/nodes/{3.BfaIoPwI.js → 3.DF3rA8tZ.js} +1 -1
- package/web/app/immutable/nodes/{4.CIKjzhEc.js → 4.BFLefrw4.js} +1 -1
- package/web/app/immutable/nodes/{5.D0xlWd9R.js → 5.B7tCZt0m.js} +1 -1
- package/web/app/immutable/nodes/{6.CXDD93jK.js → 6.B4T5XCJq.js} +1 -1
- package/web/app/immutable/nodes/{7.Om4HLRbN.js → 7.mplXPh2f.js} +1 -1
- package/web/app/immutable/nodes/{8.3MB3X1xo.js → 8.jv6gXmsb.js} +4 -4
- package/web/app/immutable/nodes/{9.CawzZbso.js → 9.CCQEjL0t.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/CKJ3ApuI.js +0 -1
- package/web/app/immutable/chunks/Cg2SHWhQ.js +0 -18
- package/web/app/immutable/entry/start.gUgDD-in.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BJneMVAK.js","/app/immutable/chunks/DT4bpJWb.js","/app/immutable/chunks/DyvrH0mm.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/DXyyWeag.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CjaOLL1c.js","/app/immutable/chunks/Cuqq8bL5.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Bfr1QjPr.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CnVt0JNG.js","/app/immutable/chunks/BybfkKTj.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BboIV5H5.js","/app/immutable/chunks/DJkHth-B.js","/app/immutable/chunks/D5ej8a-y.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/ppRpwazH.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BTdkHPOB.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/
|
|
2
|
-
import{bp as b,_ as C}from"./DXyyWeag.js";import{g as f,Iy as a,db as P,GW as S,yy as N,F6 as q,vd as R,qy as W,uN as H,KC as U}from"./D5ej8a-y.js";import{d as y}from"./ChkzKl5W.js";import{bb as V}from"./Bfr1QjPr.js";import{parseIntentLink as j}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BJneMVAK.js","/app/immutable/chunks/DT4bpJWb.js","/app/immutable/chunks/DyvrH0mm.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/DXyyWeag.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CjaOLL1c.js","/app/immutable/chunks/Cuqq8bL5.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Bfr1QjPr.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CnVt0JNG.js","/app/immutable/chunks/BybfkKTj.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BboIV5H5.js","/app/immutable/chunks/DJkHth-B.js","/app/immutable/chunks/D5ej8a-y.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/ppRpwazH.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BTdkHPOB.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BmbBYGbu.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/ChkzKl5W.js","/app/immutable/chunks/DogedYC1.js","/app/immutable/chunks/pKvpKpo4.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DNBv5HWD.js","/app/immutable/chunks/D3QcPFoL.js","/app/immutable/chunks/DEYvT_CO.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/zhV4pxah.js","/app/immutable/chunks/DhMpGM70.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bp as b,_ as C}from"./DXyyWeag.js";import{g as f,Iy as a,db as P,GW as S,yy as N,F6 as q,vd as R,qy as W,uN as H,KC as U}from"./D5ej8a-y.js";import{d as y}from"./ChkzKl5W.js";import{bb as V}from"./Bfr1QjPr.js";import{parseIntentLink as j}from"./Dav9TY89.js";import{k as I}from"./DT4bpJWb.js";import"./DYhIMPy1.js";import"./CjaOLL1c.js";import"./Cuqq8bL5.js";import"./ChTqQfQN.js";import"./DJkHth-B.js";import{I as B,q as x,H as L}from"./DHQOuksI.js";import{dr as D}from"./D3QcPFoL.js";import{p as F,o as K,h as $}from"./Bl3ku6zY.js";const p="assistant-content",z=a.createSelector(t=>{const r=F.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:x.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return I.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=F.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await y.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(I.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await C(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./BJneMVAK.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await y.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(I.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(N(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??y.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return I.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||x.select(a.state,u).some(v)}),E=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!M&&(!r.background||E===void 0)&&a.dispatch(q(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await y.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await y.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return I.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await C(async()=>{const{openMessage:h}=await import("./BmbBYGbu.js");return{openMessage:h}},__vite__mapDeps([27,28,29,30,4,3,17,18,19,20,5,7,21,13,2,9,6,8,10,11,12,14,31,32,33,34,35,23,36,15,37,38,39]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as qa,s as fa}from"./
|
|
1
|
+
import{k as qa,s as fa}from"./C-6qbf4N.js";import{s as va,n as Ct,u as q,w as en,v as me,I as Wa,X as Ka,i as Ga,g as Nn}from"./CjaOLL1c.js";import{Z as Qa,cT as Ya,A as Va,aY as xn,bX as Xa,v as Ja}from"./Blf45GFr.js";import{bp as c,t as Pt,br as w,a_ as M,bz as Tt,b as Rt,bt as qn,bv as Re,bu as Za}from"./DXyyWeag.js";import{bo as Wn,bs as Ot,a5 as O,bl as U,bS as b,bA as $,b_ as x,aD as e,W as l,ay as H,a7 as Oe,bO as L,bn as Lt,c9 as u,aA as k,aB as _,ca as Fe,bH as h,b$ as Kt,bV as le,cd as Mt,br as ma,be as un,c5 as er,bi as En,bj as tr,bf as hn,am as ta,ax as na,ai as nr,aj as ar,c0 as rr}from"./DYhIMPy1.js";import{s as _a}from"./Cuqq8bL5.js";import{e as sr}from"./B5m4HK_m.js";import{t as Wt,k as or,a as ir,I as ha}from"./BboIV5H5.js";import{r as lr,o as dr,A as aa,L as ur}from"./BD-KZLHv.js";import{S as bn,t as Dn}from"./4NMrKcis.js";import{R as ra}from"./DT4bpJWb.js";import{I as ba}from"./ChOlbK8y.js";import"./Co9PgWQA.js";import{aC as wn,cz as cr,al as pr,aA as gr,ct as fr,cu as vr,ah as mr,aj as _r,aq as hr,aw as br,l as wr,G as kr,dS as xr,M as yr,ck as $r,bS as Ar}from"./D3QcPFoL.js";import{Iy as J,cd as Fn,cb as wa,ce as kn,qT as Sr,C$ as Ir,fF as ka,D4 as Cr,bs as Pr,zg as Tr,mq as sa,tN as Rr,ch as Or,ul as oa,nk as Lr,CL as Nr,D2 as Er,b$ as Dr}from"./D5ej8a-y.js";import{K as Mr,A as zr,at as Fr,ao as Br,T as jr}from"./XL6L6bac.js";import{y as Hr}from"./DyvrH0mm.js";import{l as Ur}from"./BP-Q7b0i.js";import{f as ia}from"./lik_9VSn.js";import{h as qr,g as Wr}from"./BVwzqysu.js";import"./BKnW-cqy.js";import{ax as Kr,am as Gr,ap as Qr,f as Mn,a5 as Yr,bc as la}from"./Bfr1QjPr.js";import"./Dwmx7Nbz.js";import{c as Vr,o as Xr,n as Jr,m as Zr,E as es}from"./CX_KiszT.js";import{c as Bn,b as da,d as jn,a as Hn,A as xa,j as ts,l as ns,P as as}from"./CtN89xMf.js";import{c as de}from"./CnVt0JNG.js";import{F as rs,j as ss,bx as os,i as is,bK as ls}from"./D77Zy4An.js";import{D as ds,b as us}from"./2YGlULfT.js";import{T as cs}from"./BqxV3q0f.js";import"./C5oPUaEZ.js";import{cg as ya,cK as ps,cJ as gs,bN as fs,x as vs,F as yn,b1 as ms,aq as _s,aG as hs,aC as bs,cO as ws,ba as ks,aw as xs,aH as ys,aZ as $s,ad as ua,a4 as As,c1 as Ss,ac as Is,cA as Cs,aj as Ps,cN as Ts,az as Rs}from"./BTdkHPOB.js";import{b as Os}from"./BaIAhI85.js";import"./D6bHtnlF.js";import"./B0gQeWRk.js";import{f as Ls}from"./B8xn49s1.js";const Ns=80,Es=10,Ds=new Qa(Ya,{renderer:{html({text:a}){return Va(a)},image({tokens:a}){return this.parser.parseInline(a)}}});function Kn(a){const n=document.createElement("template");n.innerHTML=Ds.parseInline(a,{async:!1});for(const o of n.content.querySelectorAll("br"))o.replaceWith(" ");return(n.content.textContent??"").replace(/\s+/g," ").trim()}function zt(a){return a.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`+([^`]*?)`+/g,"$1").replace(/<[^>]+>/g,"").replace(/\\([\\`*_[\]{}()#+\-.!>])/g,"$1").replace(/[*~]/g,"").replace(/(^|[^A-Za-z0-9])_+/g,"$1").replace(/_+([^A-Za-z0-9]|$)/g,"$1").replace(/\s+/g," ").trim()}function Un(a,n){return a.slice(n).replace(/^(?:[ \t]*(?:\r\n|\n|\r))+/,"")}function Sn(a,n){return!n||n.length>Ns||n.split(/\s+/).length>Es||/[.!?;]$/.test(n)?!1:!/^[ \t]*(?:[-+*][ \t]+|\d+[.)][ \t]+|>|```|~~~|\|)/.test(a)}function Ui(a){const o=a.trim().match(/^\*\*([^\r\n]+)\*\*$/);if(!o)return null;const i=zt(o[1]);return Sn(o[0],i)?i:null}function Gn(a,n=!1,o=!0){const i=a.match(/^(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",r=a.slice(i.length).match(/^\*\*([^\r\n]+)\*\*[ \t]*(?:(?:\r\n|\n|\r)|$)/);if(!r)return null;if(n){const m=r[1],f=m.match(/\\+$/)?.[0].length??0;if(m!==m.trim()||m.includes("**")||m.startsWith("*")||m.endsWith("*")||f%2!==0)return null}const p=zt(r[1]);return Sn(r[0],p)?{title:n&&o?Kn(r[1]):p,body:Un(a,i.length+r[0].length)}:null}function ca(a){const n=[];let o=a;for(;o.trim();){const i=Qn(o,!0),d=i.heading?{body:i.body}:Gn(o,!0,!1);if(!d)return null;n.push(o.slice(0,o.length-d.body.length)),o=d.body}return n.length?n:null}function qi(a){const n=[];let o=a;for(;o.trim();){const i=Qn(o,!0,Kn),d=i.heading?{title:i.heading,body:i.body}:Gn(o,!0);if(!d)return null;n.push(d.title),o=d.body}return n.length?n:null}function Wi(a){const n=zs(a),o=[];let i=a;for(n.heading&&(o.push({title:n.heading,body:""}),i=n.body);i;){const d=Gn(i);if(!d||d.body.length>=i.length)break;o.push({title:d.title,body:""}),i=d.body}if(o.length===0){const d=a.trim(),r=zt(d);return!d.includes(`
|
|
2
2
|
`)&&Sn(d,r)?[{title:r,body:""}]:d?[{title:null,body:d}]:[]}return o[o.length-1].body=i.trim(),o}function Ms(a){const n=a.replace(/^ {0,3}/,"");return!/^(?:\s|>|`{3}|~{3}|(?:[-+*]|\d+[.)])(?:[ \t]|$)|#{1,6}(?:[ \t]|$)|<|\[[^\]]*\]:)/.test(n)&&!/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})$/.test(n)}function Qn(a,n=!1,o=zt){const i=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",d=a.slice(i.length);if(n&&/^(?: {4}| {0,3}\t)/.test(d))return{heading:null,body:a};const r=d.match(/^[ \t]{0,3}#{1,6}[ \t]+([^\r\n]*?)(?:[ \t]+#+)?[ \t]*(?:\r\n|\n|\r|$)/);if(r&&zt(r[1]))return{heading:o(r[1]),body:Un(a,i.length+r[0].length)};const p=d.match(/^([^\r\n]+)(?:\r\n|\n|\r)([ \t]{0,3})(?:=+|-+)[ \t]*(?:\r\n|\n|\r|$)/);return p&&(!n||Ms(p[1])&&!p[2].includes(" "))&&zt(p[1])?{heading:o(p[1]),body:Un(a,i.length+p[0].length)}:{heading:null,body:a}}function zs(a,{preserveInlineText:n=!1}={}){const o=n?Kn:zt,i=Qn(a,!1,o);if(i.heading)return i;const d=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",p=a.slice(d.length).match(/^([^\r\n]+)(?:\r\n|\n|\r)(?:[ \t]*(?:\r\n|\n|\r))+/);if(p){const m=zt(p[1]),f=a.slice(d.length+p[0].length);if(f.trim()&&Sn(p[1],m))return{heading:o(p[1]),body:f}}return{heading:null,body:a}}const Gt="[--operational-row-inline-padding:var(--chat-operational-row-inline-padding,0.5rem)] [--operational-leading-slot-size:1.25rem] [--operational-leading-half-slot-size:0.625rem] [--operational-leading-gap:var(--chat-operational-leading-gap,0.5rem)]",Ki="type-body font-family-child font-normal text-muted-foreground",Gi=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,Qi=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1.5`,Yi=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1`,Vi=`${Gt} relative min-w-0 max-w-full`,Xi=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,Ji=`${Gt} operational-group-child-row ml-2 min-w-0 w-[calc(100%-0.5rem)] max-w-[calc(100%-0.5rem)]`,Zi="pt-6",el="text-muted-foreground",tl="text-muted-foreground",$a="font-normal text-muted-foreground",nl="tool-call-container group relative block w-full min-w-0 max-w-full overflow-hidden type-body font-family-child font-normal text-muted-foreground",al="h-[16px]! w-[16px]! shrink-0",rl=`${Gt} relative grid h-7 w-full min-w-0 max-w-full grid-cols-[var(--operational-leading-slot-size)_minmax(0,1fr)_auto] items-center gap-[var(--operational-leading-gap)] overflow-hidden rounded-md px-[var(--operational-row-inline-padding)] type-body transition-colors duration-[var(--motion-fast)] motion-reduce:transition-none`,sl=`a11y-ignore pointer-events-none flex size-[var(--operational-leading-slot-size)] min-w-[var(--operational-leading-slot-size)] shrink-0 items-center justify-center [&_svg]:size-[16px]! ${$a}`,ol=`type-body block min-w-0 max-w-full truncate overflow-hidden text-ellipsis whitespace-nowrap border-0 bg-transparent p-0 text-left ${$a}`,il="type-body flex min-w-0 shrink-0 items-center gap-1 whitespace-nowrap",ll="h-[16px]! w-[16px]! shrink-0 opacity-60 transition-transform duration-[var(--motion-fast)] motion-reduce:transition-none";function dl(a){return qa(a,{axis:"y",duration:va()?0:150})}function cn(a){return a.type==="thinking"||a.type==="tool_use"||a.type==="content_group"}function ul(a){const n=a?.[0];return!n||cn(n)?"":"pt-4"}function cl(a,n,o=()=>!0){const i=a[n];if(!i||!o(i)||!cn(i))return!1;let d=n-1;for(;d>=0&&!o(a[d]);)d-=1;return d>=0&&cn(a[d])}function pl(a,n,o=()=>!0,i=!1){const d=a[n];if(!d||!o(d))return"";let r=n-1;for(;r>=0&&!o(a[r]);)r-=1;if(r<0)return"";const p=a[r];if(p.type==="thinking"&&d.type==="thinking")return i||ca(p.text??p.content??"")!==null&&ca(d.text??d.content??"")!==null?"":"pt-14";const m=cn(p),f=cn(d);return m&&f?"":p.type==="thinking"&&!f?"pt-6":m||f?"pt-4":"pt-1"}const gl="shrink-0 whitespace-nowrap text-ui text-subtle focus-visible:outline-none focus-visible:text-foreground";function Fs(a){if(a?.status==="halted")return c.agent_node_halted_label();if(a?.status==="resuming")return c.agent_node_resuming_label();if(a?.placement?.target==="remote"||Hr(a?.placement?.target)){if(a.placementError)return c.remoteAgent_status_failed();if(a.cloudStart)return c.remoteAgent_status_starting();if(a.effectiveIsolation==="pending")return a.setup?.state==="pending"?c.remoteAgent_status_preparingCheckout():a.setup?.state==="running"?c.remoteAgent_status_runningSetup():c.remoteAgent_status_starting()}if(a?.placement&&a.effectiveIsolation==="pending")return c.agent_node_provisioning_label()}var Bs=_('<span class="owner-fill block h-full svelte-sxf8s9"></span>'),js=_('<span class="shrink-0 text-xs text-muted-foreground"> </span>'),Hs=_('<span class="flex items-center gap-2"><span class="group-key size-1.5 shrink-0 rounded-full svelte-sxf8s9"></span> <span class="min-w-0 flex-1"> </span> <!> <span> </span></span>'),Us=_('<dd class="col-span-2 pl-[1.125rem] text-xs text-muted-foreground wrap-anywhere"> </dd>'),qs=_(`<div class="grid grid-cols-[1fr_auto] items-baseline gap-x-3 py-0.5 text-sm"><dt class="relative min-w-0 pl-[1.125rem] wrap-anywhere before:absolute before:top-2 before:left-0 before:size-1 before:rounded-full before:bg-muted-foreground before:content-['']"> </dt> <dd> </dd> <!></div>`),Ws=_('<dl class="ml-3.5 text-foreground"></dl>'),zn=_("<!> <!>",1),Ks=_('<span class="flex items-center gap-2"><span class="min-w-0 flex-1"> </span> <span class="shrink-0 tabular-nums text-muted-foreground"> </span></span>'),Gs=_('<div class="min-w-0"><dt class="truncate text-sm text-foreground"> </dt> <dd class="text-xs text-muted-foreground wrap-anywhere"> </dd></div>'),Qs=_('<dl class="ml-3.5 flex flex-col gap-2"></dl>'),Ys=_('<section class="min-w-0" data-testid="prompt-breakdown"><div class="mb-3 flex items-baseline justify-between gap-3"><h3 class="text-sm font-medium"> </h3> <span class="shrink-0 text-sm tabular-nums text-muted-foreground"> </span></div> <div class="owner-strip mb-2 flex h-1.5 w-full overflow-hidden svelte-sxf8s9" role="img"></div> <!></section>');function Aa(a,n){const o=Wn();if(new.target)return Pt({component:Aa,...a});Ot(n,!0);let i=w(n,"breakdown",7);const d="type-body font-normal text-foreground data-[state=open]:font-normal";function r(T){return or(T,{maximumFractionDigits:T<1e4?1:0})}function p(T){return T==="native"?c.agent_contextBreakdown_owner_native_label():T==="intent"?c.agent_contextBreakdown_owner_intent_label():c.agent_contextBreakdown_owner_user_label()}const m=u(()=>i().owners.map(T=>c.agent_contextBreakdown_ownerShare_label({owner:p(T.owner),tokens:r(T.estTokens)})).join(", "));var f={get breakdown(){return i()},set breakdown(T){i(T),k()},$set:Tt,$on:(T,v)=>Rt(n,T,v)},S=Ys(),y=O(S),g=O(y),E=U(g,!0),z=b(g,2),Ce=U(z,!0);$(y);var D=b(y,2);Ct(D,21,()=>i().owners,T=>T.owner,(T,v)=>{var ve=Bs();let ue;x(()=>{q(ve,"data-owner",e(v).owner),ue=en(ve,"",ue,{"flex-grow":e(v).share})}),l(T,ve)}),$(D);var P=b(D,2);return de(P,()=>xa,(T,v)=>{v(T,{type:"multiple",children:(ve,ue)=>{var R=zn(),_e=H(R);Ct(_e,17,()=>i().groups,pe=>pe.kind,(pe,Q)=>{var W=Oe(),ne=H(W);de(ne,()=>Bn,(ge,ze)=>{ze(ge,{get value(){return e(Q).kind},get"data-prompt-group"(){return e(Q).kind},children:(ot,G)=>{var I=zn(),ae=H(I);de(ae,()=>da,(he,N)=>{N(he,{level:4,children:(Le,X)=>{var K=Oe(),Z=H(K);de(Z,()=>jn,(Y,oe)=>{oe(Y,{inset:!1,class:d,children:(ee,Ne)=>{var be=Hs(),je=O(be),et=b(je,2),ut=U(et,!0),tt=b(et,2);{var at=ct=>{var Nt=js(),yt=U(Nt,!0);x(V=>L(yt,V),[()=>c.agent_contextBreakdown_notCounted_label()]),l(ct,Nt)};M(tt,ct=>{e(Q).kind==="native"&&ct(at)})}var Ee=b(tt,2),Qt=U(Ee,!0);$(be),x((ct,Nt)=>{q(je,"data-kind",e(Q).kind),L(ut,ct),me(Ee,1,`shrink-0 tabular-nums ${e(Q).kind==="native"?"text-muted-foreground":""}`),L(Qt,Nt)},[()=>p(e(Q).kind),()=>r(e(Q).estTokens)]),l(ee,be)},$$slots:{default:!0}})}),l(Le,K)},$$slots:{default:!0}})});var Be=b(ae,2);de(Be,()=>Hn,(he,N)=>{N(he,{inset:!1,children:(Le,X)=>{var K=Ws();Ct(K,21,()=>e(Q).rows,Z=>Z.key,(Z,Y)=>{var oe=qs(),ee=O(oe),Ne=U(ee,!0),be=b(ee,2),je=U(be,!0),et=b(be,2);{var ut=tt=>{var at=Us(),Ee=U(at,!0);x(()=>L(Ee,e(Y).hint)),l(tt,at)};M(et,tt=>{e(Y).hint&&tt(ut)})}$(oe),x(tt=>{L(Ne,e(Y).label),me(be,1,`tabular-nums ${e(Y).counted?"":"text-muted-foreground"}`),L(je,tt)},[()=>r(e(Y).estTokens)]),l(Z,oe)}),$(K),l(Le,K)},$$slots:{default:!0}})}),l(ot,I)},$$slots:{default:!0}})}),l(pe,W)});var ce=b(_e,2);{var xe=pe=>{var Q=Oe(),W=H(Q);de(W,()=>Bn,(ne,ge)=>{ge(ne,{value:"hidden-skills",class:"mt-1",children:(ze,ot)=>{var G=zn(),I=H(G);de(I,()=>da,(Be,he)=>{he(Be,{level:4,children:(N,Le)=>{var X=Oe(),K=H(X);de(K,()=>jn,(Z,Y)=>{Y(Z,{inset:!1,class:d,children:(oe,ee)=>{var Ne=Ks(),be=O(Ne),je=U(be,!0),et=b(be,2),ut=U(et,!0);$(Ne),x((tt,at)=>{L(je,tt),L(ut,at)},[()=>c.agent_contextBreakdown_hiddenSkills_title(),()=>Wt(i().hiddenSkills.length)]),l(oe,Ne)},$$slots:{default:!0}})}),l(N,X)},$$slots:{default:!0}})});var ae=b(I,2);de(ae,()=>Hn,(Be,he)=>{he(Be,{inset:!1,children:(N,Le)=>{var X=Qs();Ct(X,21,()=>i().hiddenSkills,K=>K.name,(K,Z)=>{var Y=Gs(),oe=O(Y),ee=U(oe,!0),Ne=b(oe,2),be=U(Ne,!0);$(Y),x(je=>{L(ee,e(Z).name),L(be,je)},[()=>[e(Z).detail,e(Z).fix].filter(Boolean).join(" · ")]),l(K,Y)}),$(X),l(N,X)},$$slots:{default:!0}})}),l(ze,G)},$$slots:{default:!0}})}),l(pe,Q)};M(ce,pe=>{i().hiddenSkills.length>0&&pe(xe)})}l(ve,R)},$$slots:{default:!0}})}),$(S),x((T,v)=>{q(S,"aria-labelledby",`${o}-title`),q(g,"id",`${o}-title`),L(E,T),L(Ce,v),q(D,"aria-label",e(m))},[()=>c.agent_contextBreakdown_title(),()=>c.agent_contextBreakdown_tokens_label({tokens:r(i().estTokens)})]),l(a,S),Lt(f)}const Vs=["intent","user"],Xs=["systemPrompt","toolDescription","provider"],Js=["native","user","intent"],$n=a=>typeof a=="object"&&a!==null&&!Array.isArray(a),An=a=>typeof a=="number"&&Number.isFinite(a)&&a>=0,Zs=a=>a==="intent"||a==="user";function eo(a,n){if(!$n(a))return null;const{id:o,label:i,owner:d,location:r,chars:p,estTokens:m,controlHint:f}=a;if(typeof o!="string"||typeof i!="string"||!Zs(d)||typeof r!="string"||!Xs.includes(r)||!An(p)||!An(m))return null;const S=$n(f)&&typeof f.text=="string"&&f.text;return{key:`${n}:${o}`,id:o,label:i,owner:d,chars:p,estTokens:m,counted:r!=="provider",...S?{hint:S}:{}}}function to(a){if(!$n(a))return null;const{name:n,reason:o,detail:i,fix:d}=a;return[n,o,i,d].some(r=>typeof r!="string")?null:{name:n,reason:o,detail:i,fix:d}}function no(a){if(!$n(a)||a.available!==!0)return null;const{totalChars:n,estTokens:o,sections:i,hiddenSkills:d}=a;if(!An(n)||!An(o)||!Array.isArray(i)||!Array.isArray(d))return null;const r=i.map(eo).filter(f=>f!==null).sort((f,S)=>S.chars-f.chars),p=Vs.map(f=>{const S=r.filter(g=>g.counted&&g.owner===f),y=S.reduce((g,E)=>g+E.chars,0);return{owner:f,chars:y,estTokens:S.reduce((g,E)=>g+E.estTokens,0),share:n>0?y/n:0}}).filter(f=>f.chars>0),m=Js.map(f=>{const S=r.filter(y=>f==="native"?!y.counted:y.counted&&y.owner===f);return{kind:f,chars:S.reduce((y,g)=>y+g.chars,0),estTokens:S.reduce((y,g)=>y+g.estTokens,0),rows:S}}).filter(f=>f.rows.length>0);return{totalChars:n,estTokens:o,rows:r,groups:m,owners:p,hiddenSkills:d.map(to).filter(f=>f!==null)}}async function ao(a){try{const n=await Kr("agent.getSession",{agentId:a});return no(n?.session?.promptBreakdown)}catch{return null}}const pa=rs.map(a=>({key:a.path.replace(/^agentFeatures\./,""),label:a.label,description:a.description}));function ro(a){const n=a.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").toLowerCase().trim();return n.charAt(0).toUpperCase()+n.slice(1)}function so(a){const n=a??{},o=pa.map(r=>({key:r.key,label:r.label(),description:r.description(),enabled:n[r.key]===!0,known:!0})),i=new Set(pa.map(r=>r.key)),d=[];for(const[r,p]of Object.entries(n))i.has(r)||d.push({key:r,label:ro(r),description:null,enabled:p===!0,known:!1});return d.sort((r,p)=>r.label.localeCompare(p.label)),o.concat(d)}var oo=_('<div class="mb-6 border-b border-border pb-6"><!></div>'),io=_("<span> </span>"),lo=_('<!> <span class="sr-only"> </span>',1),uo=_('<div role="listitem" class="text-xs text-subtle" aria-hidden="true">—</div>'),co=_('<section class="min-w-0"><h4 class="text-sm font-medium mb-3"> </h4> <div role="list" class="space-y-2"></div></section>'),po=_('<div class="@container"><!> <section><h3 class="text-sm font-medium"> </h3> <p class="mb-4 mt-1 text-sm text-muted-foreground"> </p> <div class="grid grid-cols-1 gap-6 @min-[28rem]:grid-cols-2" data-testid="harness-features-list"></div></section></div>');function Sa(a,n){const o=Wn();if(new.target)return Pt({component:Sa,...a});Ot(n,!0);let i=w(n,"open",15,!1),d=w(n,"static",7,!1),r=w(n,"version",7),p=w(n,"features",7,null),m=w(n,"agentId",7),f=w(n,"breakdown",7),S=le(null);const y=u(()=>f()===void 0&&!!m());Fe(()=>{if(!i()||!e(y)||!m())return;const D=m();let P=!0;return ao(D).then(T=>{P&&h(S,{agentId:D,view:T},!0)}),()=>{P=!1}});const g=u(()=>f()!==void 0?f():e(y)&&e(S)&&e(S).agentId===m()?e(S).view:null),E=u(()=>so(p())),z=u(()=>[{enabled:!0,label:c.chat_shared_valueOn_label(),rows:e(E).filter(D=>D.enabled)},{enabled:!1,label:c.chat_shared_valueOff_label(),rows:e(E).filter(D=>!D.enabled)}]);var Ce={get open(){return i()},set open(D=!1){i(D),k()},get static(){return d()},set static(D=!1){d(D),k()},get version(){return r()},set version(D){r(D),k()},get features(){return p()},set features(D=null){p(D),k()},get agentId(){return m()},set agentId(D){m(D),k()},get breakdown(){return f()},set breakdown(D){f(D),k()},$set:Tt,$on:(D,P)=>Rt(n,D,P)};{let D=u(()=>c.chat_harnessFeaturesModal_title({version:r()}));Vr(a,{get static(){return d()},get title(){return e(D)},size:"wide",get open(){return i()},set open(P){i(P)},children:(P,T)=>{var v=po(),ve=O(v);{var ue=W=>{var ne=oo(),ge=O(ne);Aa(ge,{get breakdown(){return e(g)}}),$(ne),l(W,ne)};M(ve,W=>{e(g)&&W(ue)})}var R=b(ve,2),_e=O(R),ce=U(_e,!0),xe=b(_e,2),pe=U(xe,!0),Q=b(xe,2);Ct(Q,21,()=>e(z),W=>W.enabled,(W,ne)=>{var ge=co(),ze=O(ge),ot=U(ze,!0),G=b(ze,2);Ct(G,21,()=>e(ne).rows,I=>I.key,(I,ae)=>{ts(I,{role:"listitem",class:"min-h-0 px-0 py-0 [&_.truncate]:whitespace-normal","data-testid":"harness-feature-state",get"data-feature"(){return e(ae).key},get"data-enabled"(){return e(ae).enabled},title:he=>{var N=Oe(),Le=H(N);{var X=Z=>{var Y=lo(),oe=H(Y);Gr(oe,{get content(){return e(ae).description},side:"top",size:"sm",children:(be,je)=>{var et=io(),ut=U(et,!0);x(()=>L(ut,e(ae).label)),l(be,et)},$$slots:{default:!0}});var ee=b(oe,2),Ne=U(ee,!0);x(()=>L(Ne,e(ae).description)),l(Z,Y)},K=Z=>{var Y=Kt();x(()=>L(Y,e(ae).label)),l(Z,Y)};M(Le,Z=>{e(ae).description?Z(X):Z(K,-1)})}l(he,N)},$$slots:{title:!0}})},I=>{var ae=uo();l(I,ae)}),$(G),$(ge),x(()=>{q(ge,"aria-label",e(ne).label),L(ot,e(ne).label)}),l(W,ge)}),$(Q),$(R),$(v),x((W,ne)=>{q(R,"aria-labelledby",`${o}-capabilities`),q(_e,"id",`${o}-capabilities`),L(ce,W),L(pe,ne)},[()=>c.chat_harnessFeaturesModal_capabilities_title(),()=>c.chat_harnessFeaturesModal_description()]),l(P,v)},$$slots:{default:!0}})}return Lt(Ce)}var go=_('<p role="alert" class="type-body text-danger"> </p>');function Ia(a,n){if(new.target)return Pt({component:Ia,...a});Ot(n,!0);const o=()=>Re(g,"$outcome$",i),[i,d]=qn();let r=w(n,"open",15,!1),p=w(n,"agentName",7),m=w(n,"workspaceId",7),f=w(n,"agentId",7);const S=crypto.randomUUID(),y=Mt(""),g=xn(y,S),E=u(()=>o()?.workspaceId===m()&&o().agentId===f()?o():void 0),z=u(()=>e(E)?.status==="pending"),Ce=u(()=>e(E)?.status==="failed"?e(E).error:"");Fe(()=>{const v=m();return f(),y.set(v),()=>J.dispatch(Fn(v,S))}),Fe(()=>{e(E)?.status==="succeeded"&&(r(!1),J.dispatch(wa(m(),S,e(E).requestId)))});function D(){const v=xn.select(J.state,m(),S);v?.agentId===f()&&v.status==="pending"||J.dispatch(kn(m(),S,crypto.randomUUID(),f(),{kind:"retire"}))}var P={get open(){return r()},set open(v=!1){r(v),k()},get agentName(){return p()},set agentName(v){p(v),k()},get workspaceId(){return m()},set workspaceId(v){m(v),k()},get agentId(){return f()},set agentId(v){f(v),k()},$set:Tt,$on:(v,ve)=>Rt(n,v,ve)};{const v=ce=>{var xe=Oe(),pe=H(xe);{var Q=W=>{var ne=go(),ge=U(ne,!0);x(()=>L(ge,e(Ce))),l(W,ne)};M(pe,W=>{e(Ce)&&W(Q)})}l(ce,xe)};let ve=u(()=>c.modals_retireAgent_title()),ue=u(()=>c.modals_retireAgent_description({name:p()})),R=u(()=>c.modals_retireAgent_confirm_label()),_e=u(()=>c.modals_bulkActionConfirm_cancel_label());ds(a,{get title(){return e(ve)},get description(){return e(ue)},get confirmLabel(){return e(R)},get cancelLabel(){return e(_e)},focusSubmit:!1,focusCancel:!0,get busy(){return e(z)},onConfirm:D,get open(){return r()},set open(ce){r(ce)},details:v,$$slots:{details:!0}})}var T=Lt(P);return d(),T}function fo({agentName:a,specialist:n}){const o=n?`{ topLevel: true, specialist: ${JSON.stringify(n)} }`:"{ topLevel: true }",i=n?`and keep the same specialist (${JSON.stringify(n)})`:"and, if you were created with a specialist, pass that exact same `specialist` value in the options";return`Please replace yourself with a fresh top-level agent and run a gradual, coordinated hand-off:
|
|
3
3
|
|
|
4
4
|
1. Create your replacement now: call \`ws.agent.create(${JSON.stringify(a)}, kickoffMessage, ${o})\`. The first argument must be your EXACT current name (${JSON.stringify(a)}) ${i}. Write the kickoff message as a thorough context hand-off: the overall goal, the current state of the work, key notes and files, decisions already made, and open threads.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o,r as l,d as t}from"./
|
|
1
|
+
import{g as o,r as l,d as t}from"./DMKEf35d.js";import{p as m}from"./BO1j1ixt.js";import{b as n,ay as s}from"./D1NmEmqB.js";import{M as p,d as u}from"./2gme4FSl.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{fF as U,Iy as o,ny as x,m0 as F,lT as G,sY as K}from"./D5ej8a-y.js";import{g as q,G as j,dS as V,cG as N,dr as w,dC as E,dN as M,cB as Y,aB as $}from"./
|
|
1
|
+
import{fF as U,Iy as o,ny as x,m0 as F,lT as G,sY as K}from"./D5ej8a-y.js";import{g as q,G as j,dS as V,cG as N,dr as w,dC as E,dN as M,cB as Y,aB as $}from"./D3QcPFoL.js";import{l as z,R as J,E as Q}from"./DHQOuksI.js";function X(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function k(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function we(e){const t=e.filter(X).map(s=>({agent:s,activity:k(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>U(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function Z(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ee(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?q(r).trim():"";return!t||Z(t)?c||L:c||t}const te="chief-of-staff",se=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function be(e){const t=e?.trim();return t?`${T}
|
|
2
2
|
|
|
3
3
|
${t}`:T}const re=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?x(s.hooks):[]}),oe=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),O=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??F),Ae=o.createSelector((e,t,s)=>{const r=O.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=o.createSelector((e,t,s)=>{const r=K(t,s);return e.agentSubscriptionUI.entries[r]??G}),ne=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ae=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),ce=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),ve=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),ye=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Ce=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function ie(e){return[...new Set(e.filter(Boolean))]}const We=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of ie(n))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((n,a)=>n.createdAt.localeCompare(a.createdAt)||n.id.localeCompare(a.id));for(const n of h)n.delegationGroup?.awaitMode!=="all"&&i(n.actorIds);const g=new Map;for(const n of r.delegationGroups)n.awaitMode==="all"&&g.set(n.groupId,n);for(const n of g.values())i(n.expectedAgentIds);for(const n of h){const a=n.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const n of r.delegationGroups){for(const a of n.completedAgentIds)d.add(a);for(const a of n.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(n.agentStatuses))f==="completed"&&d.add(a)}for(const[n,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(n);const A=e.agentSessions?.byAgentId??{},v=new Set([...d].filter(n=>{const a=A[n];return!a||!j(V(a))})),y=new Map(c.map((n,a)=>[n,a])),C=n=>{const a=A[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(v.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},W=c.filter(n=>!v.has(n)).sort((n,a)=>C(n)-C(a)||(y.get(n)??0)-(y.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:W.length,participantAgentIds:W}}),Te=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Ne=o.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});o.createSelector((e,t,s)=>{const r=ce.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Ee=o.createSelector(e=>{const t=z.select(e);if(!t||!J.select(e))return[];const s=new Set;for(const r of Q.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),P="pinned",le=64;function I(e){return e.trim().toLocaleLowerCase()}function R(e){return e===P}function Me(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>le)return{ok:!1,error:"tooLong"};const r=I(s);return r===P?{ok:!1,error:"reserved"}:t.some(c=>I(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function de(e){const t=new Map;for(const s of e){if(typeof s!="string"||R(s))continue;const r=s.trim();if(r.length===0)continue;const c=I(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function _(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function D(e){return e.metadata?.specialist===te&&e.metadata?.chiefPromptVersion===se}function B(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:ee(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:B(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function b(e){return _(e).filter(t=>!t.retiredAt)}function m(e,t){return k(t)-k(e)}const Le=o.createSelector(e=>e.sidebarNav.panelItem),Oe=o.createSelector(e=>e.sidebarNav.onboardingActive),Pe=o.createSelector(e=>e.sidebarNav.showCreateModal),Re=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),_e=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),H=o.createSelector(e=>N.select(e)?.capabilities.workspaceLabels===1),De=o.createSelector((e,t)=>w.select(e,t)?.label??null),Be=o.createSelector(e=>de(E.select(e).map(t=>t.label))),pe=["id","label"],He=o.createSelector((e,t)=>H.select(e)&&M.select(e,t,pe)!==null),ue=o.createSelector(e=>N.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),ge=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Ue=o.createSelector((e,t)=>w.select(e,t)?.autoArchiveDisabled===!0),fe=["id","autoArchiveDisabled"],xe=o.createSelector((e,t)=>{if(!ue.select(e)||!ge.select(e))return!1;const s=w.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:M.select(e,t,fe)!==null}),Fe=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),Ge=o.createSelector(e=>H.select(e)?E.select(e).filter(t=>R(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),Ke=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),qe=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),je=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),Ve=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Ye=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),$e=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=oe.select(e,p)==="ready"?re.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=Y.select(e,p)==="ready"?$.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=O.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ne.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ae.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),ze=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),he=o.createSelector(e=>b(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||m(t,s)).map(S)),Se=o.createSelector(e=>_(e).filter(t=>!!t.retiredAt).sort(m).map(S)),Je=o.createSelector(e=>[...he.select(e),...Se.select(e)]),Qe=o.createSelector(e=>{const t=b(e).filter(D).sort(m)[0];return t?S(t):null}),Xe=o.createSelector(e=>{const t=b(e).filter(s=>B(s)===0&&!s.lastMessageId&&D(s)).sort(m)[0];return t?S(t):null});export{Oe as A,Le as B,se as C,L as D,Ge as E,Se as F,Xe as G,O as H,Pe as I,ze as J,Te as K,Ne as L,ye as M,Ce as N,Ue as O,P,je as Q,Ve as R,De as S,Be as T,qe as U,Me as V,le as W,te as a,p as b,be as c,X as d,We as e,ve as f,ne as g,Je as h,R as i,$e as j,re as k,oe as l,xe as m,He as n,Ye as o,he as p,_e as q,we as r,Ae as s,Re as t,Qe as u,ce as v,Ee as w,H as x,Fe as y,Ke as z};
|