@intent-hq/web 2.357.2 → 2.357.3
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/{Cqkz_Y4B.js → -s7FI3Ur.js} +1 -1
- package/web/app/immutable/chunks/{BJw6iNpc.js → 0-a6QNX5.js} +1 -1
- package/web/app/immutable/chunks/{BSCeNo9e.js → 5eQGAVoR.js} +1 -1
- package/web/app/immutable/chunks/{Byu35bMH.js → 7Q1TI3ob.js} +1 -1
- package/web/app/immutable/chunks/{DGTsMy6C.js → 7RDmM56K.js} +1 -1
- package/web/app/immutable/chunks/{1YDXnizR.js → B1FaBhwe.js} +1 -1
- package/web/app/immutable/chunks/{UellkQfD.js → BCVkwATM.js} +1 -1
- package/web/app/immutable/chunks/{C5N_x7sk.js → BJPl3JdS.js} +1 -1
- package/web/app/immutable/chunks/{Dpqmreji.js → BKaNGJFl.js} +1 -1
- package/web/app/immutable/chunks/{wJIU9o1g.js → BM1SUsjB.js} +1 -1
- package/web/app/immutable/chunks/{M-M1rI3h.js → BMaEkfLt.js} +2 -2
- package/web/app/immutable/chunks/{VQlvcqoz.js → BQZSSU2n.js} +1 -1
- package/web/app/immutable/chunks/{hHLbxLPR.js → BQhjuilH.js} +1 -1
- package/web/app/immutable/chunks/{DBk-fCri.js → BRLli4f_.js} +1 -1
- package/web/app/immutable/chunks/{BoxDV-eV.js → BTS_Pk4y.js} +2 -2
- package/web/app/immutable/chunks/{ByRDKkGj.js → BUKBcxz-.js} +1 -1
- package/web/app/immutable/chunks/{KWeNDW5r.js → BUWvzhIi.js} +3 -3
- package/web/app/immutable/chunks/{DWX6T0QV.js → BVKX1BGD.js} +1 -1
- package/web/app/immutable/chunks/{DctOxxB0.js → BYxZqyUK.js} +1 -1
- package/web/app/immutable/chunks/{ReAQOXUy.js → BZwxoq-T.js} +1 -1
- package/web/app/immutable/chunks/{CEA35q_5.js → Bd6hCB_F.js} +1 -1
- package/web/app/immutable/chunks/{ChGDQSZ_.js → BdCIKNME.js} +1 -1
- package/web/app/immutable/chunks/{DE4VO873.js → BeBeuvSc.js} +1 -1
- package/web/app/immutable/chunks/{C7Q4ST3H.js → Bh5sMBMA.js} +1 -1
- package/web/app/immutable/chunks/{B2Hrr9gC.js → BiW7TYXm.js} +1 -1
- package/web/app/immutable/chunks/{CwZa9-wv.js → Bj3xJd4J.js} +1 -1
- package/web/app/immutable/chunks/{Cvl4pk-J.js → BkTrhn3s.js} +1 -1
- package/web/app/immutable/chunks/{CihHUFd0.js → BlDZ5Ew8.js} +1 -1
- package/web/app/immutable/chunks/{CCpFKQ8v.js → BrrlnrEz.js} +1 -1
- package/web/app/immutable/chunks/{BxEqq8u7.js → BtlSYgVo.js} +1 -1
- package/web/app/immutable/chunks/{CoFABCAh.js → Budx4nUV.js} +3 -3
- package/web/app/immutable/chunks/{DEMUCUuw.js → BxWucDAP.js} +1 -1
- package/web/app/immutable/chunks/{m4bzYqUU.js → BxzAtAmw.js} +1 -1
- package/web/app/immutable/chunks/{Qrthgzan.js → ByYiVEbX.js} +1 -1
- package/web/app/immutable/chunks/{CBtIyqx-.js → BzvnBtj7.js} +1 -1
- package/web/app/immutable/chunks/{C_h3ttX_.js → C1JrwCZc.js} +1 -1
- package/web/app/immutable/chunks/{CI4whfda.js → C54-fVJP.js} +1 -1
- package/web/app/immutable/chunks/{NpNlLFF3.js → CBDifbVm.js} +1 -1
- package/web/app/immutable/chunks/{Cmx4YFs-.js → CBLidLon.js} +1 -1
- package/web/app/immutable/chunks/{qmcc6vFR.js → CC70jpYk.js} +1 -1
- package/web/app/immutable/chunks/{DE5aYQIc.js → CCtfGpTe.js} +1 -1
- package/web/app/immutable/chunks/{CavPnWIE.js → CFrm2n7H.js} +1 -1
- package/web/app/immutable/chunks/{DcLEPfXx.js → CHUM1C12.js} +1 -1
- package/web/app/immutable/chunks/{keOgz1DR.js → CJxu_HWo.js} +1 -1
- package/web/app/immutable/chunks/{Dt1vPmrx.js → CQHtILYK.js} +1 -1
- package/web/app/immutable/chunks/{hl720_Ai.js → CSvhAGpG.js} +2 -2
- package/web/app/immutable/chunks/{CQcXCvtR.js → CV5JXA9Q.js} +1 -1
- package/web/app/immutable/chunks/{DNZlJSa8.js → CW11fgES.js} +4 -4
- package/web/app/immutable/chunks/{DfrYdRvI.js → C_m6SOkL.js} +1 -1
- package/web/app/immutable/chunks/{DrTzfICr.js → CaSJ0sQG.js} +1 -1
- package/web/app/immutable/chunks/{Ce-uRCe2.js → Cc2v7DSO.js} +1 -1
- package/web/app/immutable/chunks/{BV_sqti5.js → Cc327AX0.js} +1 -1
- package/web/app/immutable/chunks/{WSKMt1K7.js → Cd22N1Uk.js} +1 -1
- package/web/app/immutable/chunks/{CR4GS07l.js → CfILip1R.js} +1 -1
- package/web/app/immutable/chunks/{BduS68Gp.js → Cfc-xYdO.js} +1 -1
- package/web/app/immutable/chunks/{Bdn977NY.js → CgHcztjY.js} +1 -1
- package/web/app/immutable/chunks/{By5vwL_O.js → CgsNRqOg.js} +1 -1
- package/web/app/immutable/chunks/{DGtIaQ-Y.js → CigpXs75.js} +2 -2
- package/web/app/immutable/chunks/{PdEjBdEX.js → CnOllerM.js} +1 -1
- package/web/app/immutable/chunks/{DDF-sX8n.js → Cpdvmnok.js} +1 -1
- package/web/app/immutable/chunks/{C612fWtF.js → CqdqO9FQ.js} +1 -1
- package/web/app/immutable/chunks/{BZwWAcIQ.js → CscJA1St.js} +3 -3
- package/web/app/immutable/chunks/{D56_Uee5.js → CslncITQ.js} +1 -1
- package/web/app/immutable/chunks/{DtbX3uA6.js → CucOO3Ax.js} +1 -1
- package/web/app/immutable/chunks/{Bx2UPUSS.js → D0ZJIQ_W.js} +1 -1
- package/web/app/immutable/chunks/{CGvRyYuS.js → D1ru1X8d.js} +1 -1
- package/web/app/immutable/chunks/{FiJlDSoB.js → D2ELUbjV.js} +1 -1
- package/web/app/immutable/chunks/{C0Jm4fWy.js → D74233_Q.js} +1 -1
- package/web/app/immutable/chunks/{SSx-ToX7.js → D9M1r-CB.js} +1 -1
- package/web/app/immutable/chunks/{D-2rCQOV.js → D9SEQmH7.js} +1 -1
- package/web/app/immutable/chunks/{B5f0EnPA.js → DEe2b0Kj.js} +1 -1
- package/web/app/immutable/chunks/{CpEc01Iz.js → DFi7yP72.js} +1 -1
- package/web/app/immutable/chunks/{HNohAAS8.js → DFjeE4d9.js} +3 -3
- package/web/app/immutable/chunks/{YGYabZh2.js → DJ0W5XqP.js} +1 -1
- package/web/app/immutable/chunks/{CB1MXwdv.js → DKdXdHR6.js} +1 -1
- package/web/app/immutable/chunks/{3DNo8acM.js → DQ5ZQkVO.js} +1 -1
- package/web/app/immutable/chunks/{BYMuFfMr.js → DRFbJ0fE.js} +1 -1
- package/web/app/immutable/chunks/{CBc0yuEL.js → DTxEcsgY.js} +1 -1
- package/web/app/immutable/chunks/{V4puAVlm.js → DV_rESKJ.js} +1 -1
- package/web/app/immutable/chunks/{BGp9wcKF.js → DWE1f5g-.js} +1 -1
- package/web/app/immutable/chunks/{BZhCnW00.js → DWwg6ky8.js} +12 -12
- package/web/app/immutable/chunks/{io4bINRP.js → DYY_u4Nd.js} +3 -3
- package/web/app/immutable/chunks/{D48R4ayA.js → DZsu37Wu.js} +1 -1
- package/web/app/immutable/chunks/{hIi9_0Am.js → DarAEOzd.js} +1 -1
- package/web/app/immutable/chunks/{iHR6T21j.js → Dbzd7fdj.js} +1 -1
- package/web/app/immutable/chunks/{Dx5hTAuT.js → DcFVygFY.js} +1 -1
- package/web/app/immutable/chunks/{DShRMpzG.js → Df9CG01x.js} +4 -4
- package/web/app/immutable/chunks/{BF-dXrHQ.js → DhamU0oR.js} +1 -1
- package/web/app/immutable/chunks/{BLvaW6U-.js → DiAV_2eF.js} +2 -2
- package/web/app/immutable/chunks/{BVzM8oPa.js → Dk0iNh1p.js} +2 -2
- package/web/app/immutable/chunks/{Cebm9OzC.js → DkDNeNoK.js} +1 -1
- package/web/app/immutable/chunks/{y5y-6t4A.js → Dn_OrzDs.js} +1 -1
- package/web/app/immutable/chunks/{NHC0QFuc.js → Do_j6-re.js} +1 -1
- package/web/app/immutable/chunks/{CSQgXrQ-.js → Dp56157B.js} +1 -1
- package/web/app/immutable/chunks/{BN3wupfJ.js → DrtJjqz2.js} +1 -1
- package/web/app/immutable/chunks/{B4xNlIAV.js → DtDPAvdn.js} +1 -1
- package/web/app/immutable/chunks/{BKyuDno-.js → Dtg5hKuu.js} +1 -1
- package/web/app/immutable/chunks/{CxqTcejm.js → DvQuppuR.js} +1 -1
- package/web/app/immutable/chunks/{DpWQU928.js → DwEzJUxs.js} +1 -1
- package/web/app/immutable/chunks/{BYacIeji.js → DyZEdzhT.js} +1 -1
- package/web/app/immutable/chunks/{BupcAMwT.js → ETKLgZcV.js} +2 -2
- package/web/app/immutable/chunks/{B01_K0Zx.js → Fo1RRGE4.js} +1 -1
- package/web/app/immutable/chunks/{-Dz8vPPu.js → G4S-HFzv.js} +1 -1
- package/web/app/immutable/chunks/{B6_POptn.js → HZ-IVNhM.js} +2 -2
- package/web/app/immutable/chunks/{_yjvhbN1.js → MlN_FXHo.js} +1 -1
- package/web/app/immutable/chunks/{AZARnJTP.js → NHMqp5_V.js} +1 -1
- package/web/app/immutable/chunks/{CeuuQZ9t.js → OaCDBRav.js} +1 -1
- package/web/app/immutable/chunks/{CiYS6VIq.js → Om2iTitv.js} +1 -1
- package/web/app/immutable/chunks/{DPWS4vXp.js → SRjDh2x8.js} +1 -1
- package/web/app/immutable/chunks/{BRQfmzJK.js → SuLb2IuM.js} +2 -2
- package/web/app/immutable/chunks/{CIsT_9vf.js → ThRyrCzJ.js} +1 -1
- package/web/app/immutable/chunks/{CalkReL4.js → TwSJptto.js} +1 -1
- package/web/app/immutable/chunks/{4qtgvHSc.js → cGE9a4fB.js} +1 -1
- package/web/app/immutable/chunks/{B6aoFNsZ.js → e9gOjV1J.js} +1 -1
- package/web/app/immutable/chunks/{CVmn9QQQ.js → hcF7JX5B.js} +1 -1
- package/web/app/immutable/chunks/{BMEbotzk.js → iJc67NkM.js} +1 -1
- package/web/app/immutable/chunks/{GWtQ84As.js → j5WxhH_R.js} +4 -4
- package/web/app/immutable/chunks/{DmswUbfK.js → kG3im293.js} +1 -1
- package/web/app/immutable/chunks/{DQyKrRWr.js → kQedEgnI.js} +4 -4
- package/web/app/immutable/chunks/{TR7Il4dM.js → njpaVHVA.js} +1 -1
- package/web/app/immutable/chunks/{plhbWb67.js → uJ6cUlsf.js} +1 -1
- package/web/app/immutable/chunks/{Ck0rM6Li.js → yQxKGmRJ.js} +1 -1
- package/web/app/immutable/chunks/{C_UYdROC.js → z7OoXTLq.js} +1 -1
- package/web/app/immutable/chunks/{DGnmZhC2.js → zCkM2MuU.js} +1 -1
- package/web/app/immutable/entry/{app.DaT2jZP4.js → app.g3MnFOth.js} +2 -2
- package/web/app/immutable/entry/start.BTWMh34v.js +1 -0
- package/web/app/immutable/nodes/{0.IRQk4fx-.js → 0.6cH5u6I3.js} +1 -1
- package/web/app/immutable/nodes/{1.C7dAQZ1s.js → 1.DUV-GFdq.js} +1 -1
- package/web/app/immutable/nodes/{10.CrxzCF8j.js → 10.DRAVLUkT.js} +1 -1
- package/web/app/immutable/nodes/{14.BRXhvkwl.js → 14.DHS_Dg-e.js} +1 -1
- package/web/app/immutable/nodes/{18.Dtxf0Wm-.js → 18.C8u3MdMG.js} +2 -2
- package/web/app/immutable/nodes/{2.BQlv0IyR.js → 2.1_eczerq.js} +4 -4
- package/web/app/immutable/nodes/{3.BhV4kspL.js → 3.BCsVRG_L.js} +1 -1
- package/web/app/immutable/nodes/{4.BRzAB7P9.js → 4.B16CsZ13.js} +1 -1
- package/web/app/immutable/nodes/{5.CcK5L35R.js → 5.DjbPD6LE.js} +1 -1
- package/web/app/immutable/nodes/{6.BGohbAey.js → 6.FJHwQgdr.js} +1 -1
- package/web/app/immutable/nodes/{7.DRSBiJwF.js → 7.BcYoROj2.js} +1 -1
- package/web/app/immutable/nodes/{8.T0vbIHs7.js → 8.BDbQhDAX.js} +4 -4
- package/web/app/immutable/nodes/{9.DGJtpKQ9.js → 9.CZD4_T0A.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.CjqKMkDH.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as z}from"./
|
|
1
|
+
import{p as z}from"./Cfc-xYdO.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./kQedEgnI.js";import{p as I}from"./BGC1OvbZ.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as qa,s as fa}from"./
|
|
1
|
+
import{k as qa,s as fa}from"./OaCDBRav.js";import{p as ma,g as Ct,I as Wa,X as Qa,e as Nn}from"./jKsiRjTE.js";import{Z as Ga,cT as Ka,A as Ya,aY as xn,bX as Va,v as Xa}from"./DV_rESKJ.js";import{bm as c,t as Pt,bo as w,bw as Tt,b as Rt,bq as qn,bs as Re,br as Ja}from"./BkULGdgB.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 Qt,bV as le,cd as Mt,br as va,be as un,c5 as Za,bi as En,bj as er,bf as hn,am as ta,ax as na,ai as tr,aj as nr,c0 as ar}from"./DYhIMPy1.js";import{i as M}from"./CVqc5kFv.js";import{s as _a}from"./DdvXzOsp.js";import{e as rr}from"./i56WxPLH.js";import{s as q,g as en,f as ve,b as sr}from"./BkQ2g3_N.js";import{t as Wt,k as or,a as ir,I as ha}from"./B7H9m8-p.js";import{r as lr,o as dr,A as aa,L as ur}from"./HZ-IVNhM.js";import{S as bn,t as Dn}from"./DqP39woS.js";import{R as ra}from"./8KpVpm2n.js";import{I as ba}from"./ClwnVDeP.js";import"./BhaFA6n_.js";import{aC as wn,cz as cr,al as pr,aA as gr,ct as fr,cu as mr,ah as vr,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"./D4U_w4GT.js";import{IH as J,cg as Fn,ce as wa,ch as kn,q_ as Sr,Db as Ir,fI as ka,Dg as Cr,bv as Pr,zt as Tr,ms as sa,tU as Rr,ck as Or,us as oa,nm as Lr,CX as Nr,De as Er,c2 as Dr}from"./DZwGQbE8.js";import{A as Mr,ar as zr,am as Fr,Q as Br}from"./j5WxhH_R.js";import{y as jr}from"./BGikh8Vc.js";import{l as Hr}from"./a11INEB2.js";import{f as ia}from"./BzvnBtj7.js";import{h as Ur,g as qr}from"./DKmafHBY.js";import"./BTOuGvfD.js";import{ae as Wr,ah as Qr,f as Mn,a1 as Gr}from"./DbyXkQ-A.js";import{h as Kr,F as la}from"./CjRRnXFa.js";import"./Dewa-xFN.js";import{c as Yr,o as Vr,n as Xr,m as Jr,E as Zr}from"./ByONXdFP.js";import{c as Bn,b as da,d as jn,a as Hn,A as xa,j as es,n as ts,k as ns,P as as}from"./CigpXs75.js";import{c as de}from"./dqNuna_B.js";import{F as rs,j as ss,bA as os,i as is,bO as ls}from"./NHMqp5_V.js";import{D as ds,b as us}from"./DyRs4I5x.js";import{T as cs}from"./DjzRT3Ue.js";import"./D_gAF2kq.js";import{ch as ya,cL as ps,cK as gs,bO as fs,y as ms,F as yn,b2 as vs,ar as _s,aH as hs,aD as bs,cP as ws,bb as ks,ax as xs,aI as ys,a_ as $s,ae as ua,a5 as As,c2 as Ss,ad as Is,cB as Cs,ak as Ps,cO as Ts,aA as Rs}from"./DcwBt__E.js";import{b as Os}from"./BaIAhI85.js";import"./B491IXH3.js";import"./zqSn-6Mx.js";import{f as Ls}from"./De7ie7VI.js";const Ns=80,Es=10,Ds=new Ga(Ka,{renderer:{html({text:a}){return Ya(a)},image({tokens:a}){return this.parser.parseInline(a)}}});function Qn(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 Qi(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 v=r[1],f=v.match(/\\+$/)?.[0].length??0;if(v!==v.trim()||v.includes("**")||v.startsWith("*")||v.endsWith("*")||f%2!==0)return null}const p=zt(r[1]);return Sn(r[0],p)?{title:n&&o?Qn(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=Kn(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 Gi(a){const n=[];let o=a;for(;o.trim();){const i=Kn(o,!0,Qn),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 Ki(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 Kn(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?Qn:zt,i=Kn(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 v=zt(p[1]),f=a.slice(d.length+p[0].length);if(f.trim()&&Sn(p[1],v))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)]",Yi="type-body font-family-child font-normal text-muted-foreground",Vi=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,Xi=`${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`,Ji=`${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`,Zi=`${Gt} relative min-w-0 max-w-full`,el=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,tl=`${Gt} operational-group-child-row ml-2 min-w-0 w-[calc(100%-0.5rem)] max-w-[calc(100%-0.5rem)]`,nl="pt-6",al="text-muted-foreground",rl="text-muted-foreground",$a="font-normal text-muted-foreground",sl="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",ol="h-[16px]! w-[16px]! shrink-0",il=`${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`,ll=`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}`,dl=`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}`,ul="type-body flex min-w-0 shrink-0 items-center gap-1 whitespace-nowrap",cl="h-[16px]! w-[16px]! shrink-0 opacity-60 transition-transform duration-[var(--motion-fast)] motion-reduce:transition-none";function pl(a){return qa(a,{axis:"y",duration:ma()?0:150})}function cn(a){return a.type==="thinking"||a.type==="tool_use"||a.type==="content_group"}function gl(a){const n=a?.[0];return!n||cn(n)?"":"pt-4"}function fl(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 ml(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 v=cn(p),f=cn(d);return v&&f?"":p.type==="thinking"&&!f?"pt-6":v||f?"pt-4":"pt-1"}const vl="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"||jr(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),Qs=_('<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>'),Ks=_('<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 v=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,m)=>Rt(n,T,m)},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,m)=>{var me=Bs();let ue;x(()=>{q(me,"data-owner",e(m).owner),ue=en(me,"",ue,{"flex-grow":e(m).share})}),l(T,me)}),$(D);var P=b(D,2);return de(P,()=>xa,(T,m)=>{m(T,{type:"multiple",children:(me,ue)=>{var R=zn(),_e=H(R);Ct(_e,17,()=>i().groups,pe=>pe.kind,(pe,K)=>{var W=Oe(),ne=H(W);de(ne,()=>Bn,(ge,ze)=>{ze(ge,{get value(){return e(K).kind},get"data-prompt-group"(){return e(K).kind},children:(ot,G)=>{var I=zn(),ae=H(I);de(ae,()=>da,(he,N)=>{N(he,{level:4,children:(Le,X)=>{var Q=Oe(),Z=H(Q);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(K).kind==="native"&&ct(at)})}var Ee=b(tt,2),Kt=U(Ee,!0);$(be),x((ct,Nt)=>{q(je,"data-kind",e(K).kind),L(ut,ct),ve(Ee,1,`shrink-0 tabular-nums ${e(K).kind==="native"?"text-muted-foreground":""}`),L(Kt,Nt)},[()=>p(e(K).kind),()=>r(e(K).estTokens)]),l(ee,be)},$$slots:{default:!0}})}),l(Le,Q)},$$slots:{default:!0}})});var Be=b(ae,2);de(Be,()=>Hn,(he,N)=>{N(he,{inset:!1,children:(Le,X)=>{var Q=Ws();Ct(Q,21,()=>e(K).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),ve(be,1,`tabular-nums ${e(Y).counted?"":"text-muted-foreground"}`),L(je,tt)},[()=>r(e(Y).estTokens)]),l(Z,oe)}),$(Q),l(Le,Q)},$$slots:{default:!0}})}),l(ot,I)},$$slots:{default:!0}})}),l(pe,W)});var ce=b(_e,2);{var xe=pe=>{var K=Oe(),W=H(K);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(),Q=H(X);de(Q,()=>jn,(Z,Y)=>{Y(Z,{inset:!1,class:d,children:(oe,ee)=>{var Ne=Qs(),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=Ks();Ct(X,21,()=>i().hiddenSkills,Q=>Q.name,(Q,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(Q,Y)}),$(X),l(N,X)},$$slots:{default:!0}})}),l(ze,G)},$$slots:{default:!0}})}),l(pe,K)};M(ce,pe=>{i().hiddenSkills.length>0&&pe(xe)})}l(me,R)},$$slots:{default:!0}})}),$(S),x((T,m)=>{q(S,"aria-labelledby",`${o}-title`),q(g,"id",`${o}-title`),L(E,T),L(Ce,m),q(D,"aria-label",e(v))},[()=>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:v,controlHint:f}=a;if(typeof o!="string"||typeof i!="string"||!Zs(d)||typeof r!="string"||!Xs.includes(r)||!An(p)||!An(v))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:v,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),v=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:v,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),v=w(n,"agentId",7),f=w(n,"breakdown",7),S=le(null);const y=u(()=>f()===void 0&&!!v());Fe(()=>{if(!i()||!e(y)||!v())return;const D=v();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===v()?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 v()},set agentId(D){v(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()}));Yr(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 m=po(),me=O(m);{var ue=W=>{var ne=oo(),ge=O(ne);Aa(ge,{get breakdown(){return e(g)}}),$(ne),l(W,ne)};M(me,W=>{e(g)&&W(ue)})}var R=b(me,2),_e=O(R),ce=U(_e,!0),xe=b(_e,2),pe=U(xe,!0),K=b(xe,2);Ct(K,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)=>{es(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);Wr(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)},Q=Z=>{var Y=Qt();x(()=>L(Y,e(ae).label)),l(Z,Y)};M(Le,Z=>{e(ae).description?Z(X):Z(Q,-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)}),$(K),$(R),$(m),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,m)},$$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),v=w(n,"workspaceId",7),f=w(n,"agentId",7);const S=crypto.randomUUID(),y=Mt(""),g=xn(y,S),E=u(()=>o()?.workspaceId===v()&&o().agentId===f()?o():void 0),z=u(()=>e(E)?.status==="pending"),Ce=u(()=>e(E)?.status==="failed"?e(E).error:"");Fe(()=>{const m=v();return f(),y.set(m),()=>J.dispatch(Fn(m,S))}),Fe(()=>{e(E)?.status==="succeeded"&&(r(!1),J.dispatch(wa(v(),S,e(E).requestId)))});function D(){const m=xn.select(J.state,v(),S);m?.agentId===f()&&m.status==="pending"||J.dispatch(kn(v(),S,crypto.randomUUID(),f(),{kind:"retire"}))}var P={get open(){return r()},set open(m=!1){r(m),k()},get agentName(){return p()},set agentName(m){p(m),k()},get workspaceId(){return v()},set workspaceId(m){v(m),k()},get agentId(){return f()},set agentId(m){f(m),k()},$set:Tt,$on:(m,me)=>Rt(n,m,me)};{const m=ce=>{var xe=Oe(),pe=H(xe);{var K=W=>{var ne=go(),ge=U(ne,!0);x(()=>L(ge,e(Ce))),l(W,ne)};M(pe,W=>{e(Ce)&&W(K)})}l(ce,xe)};let me=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(me)},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:m,$$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.
|