@intent-hq/web 2.380.0 → 2.380.1
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/{CDH3wgh9.js → 2V-FT4ZN.js} +1 -1
- package/web/app/immutable/chunks/{C3bHv6vj.js → 2tIg3zRC.js} +1 -1
- package/web/app/immutable/chunks/{BnnqUrrA.js → 3XDqrO07.js} +1 -1
- package/web/app/immutable/chunks/{DkIpepCI.js → 4IwpvVwZ.js} +1 -1
- package/web/app/immutable/chunks/{CujTNdGM.js → 4TQ-wOQj.js} +1 -1
- package/web/app/immutable/chunks/{B30IEaPI.js → 4dEsEkEW.js} +1 -1
- package/web/app/immutable/chunks/{wlRwGgvg.js → 8yY720EA.js} +1 -1
- package/web/app/immutable/chunks/{CPN1a4ER.js → 9Z-CGmW0.js} +1 -1
- package/web/app/immutable/chunks/{jnsZrPVB.js → 9kN-cZth.js} +1 -1
- package/web/app/immutable/chunks/{BQ_H_anx.js → B2KdznJa.js} +1 -1
- package/web/app/immutable/chunks/{Ble6-g5B.js → B4vl19YV.js} +1 -1
- package/web/app/immutable/chunks/{CYzN5BWb.js → B6aNgl-u.js} +6 -6
- package/web/app/immutable/chunks/{BYdTAlbb.js → B6kWt-NF.js} +1 -1
- package/web/app/immutable/chunks/{CUPLSgMR.js → BCME5FCI.js} +2 -2
- package/web/app/immutable/chunks/{BZIO5H42.js → BEWzvyPM.js} +1 -1
- package/web/app/immutable/chunks/{DPjD0DQx.js → BGIIIhAt.js} +3 -3
- package/web/app/immutable/chunks/{CqoNhUOR.js → BHM1cyPv.js} +1 -1
- package/web/app/immutable/chunks/{rull8DFa.js → BHQUrNk1.js} +3 -3
- package/web/app/immutable/chunks/{DECU-iIP.js → BNq2Q1Ih.js} +1 -1
- package/web/app/immutable/chunks/{CCQ7UDrk.js → BO6AmRhX.js} +1 -1
- package/web/app/immutable/chunks/{C3YmofVF.js → BOzhtrmb.js} +1 -1
- package/web/app/immutable/chunks/{BUvix1Kg.js → BPsBKYg_.js} +1 -1
- package/web/app/immutable/chunks/{D6N7T3x-.js → BT-SBMwG.js} +1 -1
- package/web/app/immutable/chunks/{DBOKH6iU.js → BUrKWYyT.js} +1 -1
- package/web/app/immutable/chunks/{DquFvZKr.js → BUs9PHLx.js} +1 -1
- package/web/app/immutable/chunks/{BXTpY5y8.js → BVVQo5Xu.js} +1 -1
- package/web/app/immutable/chunks/{e0tyUrux.js → BVZYGKUs.js} +1 -1
- package/web/app/immutable/chunks/{BYqjqyqc.js → BVls_E6i.js} +1 -1
- package/web/app/immutable/chunks/{CUwvPGZB.js → BYW8f2oV.js} +2 -2
- package/web/app/immutable/chunks/{Zxq4ML42.js → BYeqTXC2.js} +1 -1
- package/web/app/immutable/chunks/{CK_RweuK.js → BYm3oGAs.js} +1 -1
- package/web/app/immutable/chunks/{CE6R-dRp.js → BZUgE8w7.js} +1 -1
- package/web/app/immutable/chunks/{Be831IP4.js → BbCHGRAU.js} +1 -1
- package/web/app/immutable/chunks/{CLfdXuzT.js → Bd-3nxyB.js} +1 -1
- package/web/app/immutable/chunks/{BiBcmvkl.js → Bondcgar.js} +1 -1
- package/web/app/immutable/chunks/{B3Jw9XtV.js → BpY_21Cw.js} +4 -4
- package/web/app/immutable/chunks/{B7X-AK1d.js → Bs12y6Hh.js} +3 -3
- package/web/app/immutable/chunks/{C8C4dK2T.js → Btjc8Ky7.js} +1 -1
- package/web/app/immutable/chunks/{s3btz0Xv.js → BvGA2PYn.js} +1 -1
- package/web/app/immutable/chunks/{vNGikJQC.js → BvjokUWx.js} +1 -1
- package/web/app/immutable/chunks/{DNqGTO8s.js → Bwkbh1IC.js} +1 -1
- package/web/app/immutable/chunks/{ssAJdhye.js → C3btDKsC.js} +2 -2
- package/web/app/immutable/chunks/{DZMawptX.js → C5UZ-z7q.js} +2 -2
- package/web/app/immutable/chunks/{7bi3ZM7b.js → C7tMlsfz.js} +1 -1
- package/web/app/immutable/chunks/{BfAkJ2nl.js → C7vUMkVq.js} +1 -1
- package/web/app/immutable/chunks/{DvzNnLaI.js → CABtGAhT.js} +1 -1
- package/web/app/immutable/chunks/{Da34V0LY.js → CBpGFpXN.js} +1 -1
- package/web/app/immutable/chunks/{CNkRMqxA.js → CC0zIW-Q.js} +1 -1
- package/web/app/immutable/chunks/{AVD8By0j.js → CK0iX2TE.js} +1 -1
- package/web/app/immutable/chunks/{SRwBzLT8.js → CM22-mrT.js} +1 -1
- package/web/app/immutable/chunks/{DLpVNAiX.js → CMYiw90g.js} +1 -1
- package/web/app/immutable/chunks/{C6D8Jg6d.js → CN4T3mPu.js} +1 -1
- package/web/app/immutable/chunks/{5xu6eN4Z.js → COAAEUqs.js} +1 -1
- package/web/app/immutable/chunks/{BiGdiG6Z.js → CP6uC9cs.js} +1 -1
- package/web/app/immutable/chunks/{CFtiaJsb.js → CT1DR1ub.js} +1 -1
- package/web/app/immutable/chunks/{DASiBrIg.js → CU8fY_M-.js} +1 -1
- package/web/app/immutable/chunks/{ByytepOR.js → CXHQfPPq.js} +1 -1
- package/web/app/immutable/chunks/{CL7ZHYqg.js → CY6yMXcg.js} +1 -1
- package/web/app/immutable/chunks/{FRR_nxmc.js → CYkq1Sp7.js} +1 -1
- package/web/app/immutable/chunks/{CztIXNWc.js → Cd3YgLQX.js} +1 -1
- package/web/app/immutable/chunks/{BRRF7Md4.js → CdaU-PJY.js} +1 -1
- package/web/app/immutable/chunks/{CcxCR0t4.js → CeRXl9-a.js} +4 -4
- package/web/app/immutable/chunks/{D_4kRlvm.js → CeyWhdyo.js} +3 -3
- package/web/app/immutable/chunks/{DGR5PXqy.js → CgfPG4f5.js} +1 -1
- package/web/app/immutable/chunks/{DMvzpJTu.js → ChbSsiLP.js} +1 -1
- package/web/app/immutable/chunks/{B9NJITfb.js → ChsjUXyy.js} +1 -1
- package/web/app/immutable/chunks/{DWFswrSL.js → CjVluV7J.js} +1 -1
- package/web/app/immutable/chunks/{DnURDD89.js → ClRyc1RP.js} +3 -3
- package/web/app/immutable/chunks/{CBavoRbP.js → CpggW3GS.js} +1 -1
- package/web/app/immutable/chunks/{wY2249Ev.js → CpkJczBg.js} +1 -1
- package/web/app/immutable/chunks/{CLII-C57.js → CszQUuHS.js} +1 -1
- package/web/app/immutable/chunks/{C_KorY3-.js → Cvu5TPZ8.js} +1 -1
- package/web/app/immutable/chunks/{DpeKTeH0.js → Cw8_SJ4E.js} +1 -1
- package/web/app/immutable/chunks/{CfCVG4Rx.js → Cz2wArhm.js} +1 -1
- package/web/app/immutable/chunks/{DItMEnLb.js → D1bYGUz7.js} +1 -1
- package/web/app/immutable/chunks/{Do-rG8en.js → D4xidzA_.js} +1 -1
- package/web/app/immutable/chunks/{BH8UijQb.js → D5caROAF.js} +4 -4
- package/web/app/immutable/chunks/{C9GkUc94.js → D5xVaXHm.js} +1 -1
- package/web/app/immutable/chunks/{D5zI85k6.js → D7DlvngK.js} +1 -1
- package/web/app/immutable/chunks/{DgHJcjPY.js → D9uTgrXZ.js} +1 -1
- package/web/app/immutable/chunks/{DOdPMDnB.js → DBfX4Zz1.js} +1 -1
- package/web/app/immutable/chunks/{C4Sy5w4s.js → DDZsOuFy.js} +1 -1
- package/web/app/immutable/chunks/{DhP0_QuO.js → DGsSBTnE.js} +1 -1
- package/web/app/immutable/chunks/{CgsTiBK2.js → DH97ZRMJ.js} +2 -2
- package/web/app/immutable/chunks/{BsfvLYaY.js → DKEI0MVx.js} +1 -1
- package/web/app/immutable/chunks/{C4yj51Vt.js → DKushSGX.js} +1 -1
- package/web/app/immutable/chunks/{CRT5yBYQ.js → DLNiSKjY.js} +1 -1
- package/web/app/immutable/chunks/{BaqP50r9.js → DP1oZD4h.js} +1 -1
- package/web/app/immutable/chunks/{-Wss3p71.js → DU4vrWyh.js} +13 -13
- package/web/app/immutable/chunks/{2txgxj9r.js → DX_XAJ78.js} +2 -2
- package/web/app/immutable/chunks/{BBJQ4-nf.js → DXlnaAqr.js} +1 -1
- package/web/app/immutable/chunks/{CVS0TTpd.js → DXxcUvjl.js} +1 -1
- package/web/app/immutable/chunks/{CbJ0LpjU.js → D_kqKAPb.js} +1 -1
- package/web/app/immutable/chunks/{iMaMvcYZ.js → DcVQUcOT.js} +1 -1
- package/web/app/immutable/chunks/{DnuHjHFq.js → Df0tkK9d.js} +1 -1
- package/web/app/immutable/chunks/{D57UIjlo.js → DfaT6T2d.js} +1 -1
- package/web/app/immutable/chunks/{CB1h-wDc.js → DgHQu-vA.js} +1 -1
- package/web/app/immutable/chunks/{B2jkYe3V.js → Dlr9TJoI.js} +1 -1
- package/web/app/immutable/chunks/{DuWApQdO.js → DlzMT6wV.js} +1 -1
- package/web/app/immutable/chunks/{Ctn4iaf0.js → Dm-G_mI5.js} +1 -1
- package/web/app/immutable/chunks/{DPmIsnKt.js → DmRVnIPJ.js} +1 -1
- package/web/app/immutable/chunks/{DE1M1ef4.js → Dpx4iP0s.js} +1 -1
- package/web/app/immutable/chunks/{i6OXlSBf.js → Drd1b60V.js} +1 -1
- package/web/app/immutable/chunks/{CbGMjgt3.js → DuXKOgBL.js} +1 -1
- package/web/app/immutable/chunks/{CUWIRmNB.js → DwHA7V2D.js} +1 -1
- package/web/app/immutable/chunks/{lW75E5gc.js → Dzs4VSAo.js} +1 -1
- package/web/app/immutable/chunks/{Cg-C81DM.js → Erflp_L7.js} +1 -1
- package/web/app/immutable/chunks/{BrXTXdts.js → H8SQAotj.js} +3 -3
- package/web/app/immutable/chunks/{Dvkoo7QM.js → HW5J3T7a.js} +3 -3
- package/web/app/immutable/chunks/{DrXnULBv.js → JPasKHb8.js} +2 -2
- package/web/app/immutable/chunks/{CWGQdEyp.js → MUcwQb8t.js} +2 -2
- package/web/app/immutable/chunks/{D5Ys3IYT.js → P555Pw2w.js} +2 -2
- package/web/app/immutable/chunks/{50tAdUJR.js → Q4J_06hE.js} +1 -1
- package/web/app/immutable/chunks/{TArFmpEa.js → Qq8kw_LR.js} +1 -1
- package/web/app/immutable/chunks/{W3kZhUkG.js → S_Knf_qw.js} +1 -1
- package/web/app/immutable/chunks/{B6vL_HfU.js → UEAQx6Yh.js} +2 -2
- package/web/app/immutable/chunks/{DFlCKbS0.js → Uqxgj6Y3.js} +1 -1
- package/web/app/immutable/chunks/{D43gBypv.js → XnLS-7bS.js} +1 -1
- package/web/app/immutable/chunks/{B-SBCaz1.js → YloBm2cw.js} +1 -1
- package/web/app/immutable/chunks/{8530J6R1.js → _xgByTRL.js} +1 -1
- package/web/app/immutable/chunks/{BTW7La6X.js → aUozHpqP.js} +1 -1
- package/web/app/immutable/chunks/{loKq3Zo5.js → aci0ifiz.js} +1 -1
- package/web/app/immutable/chunks/{DIZUkYZL.js → euj4yvIS.js} +1 -1
- package/web/app/immutable/chunks/{CaYNEsBV.js → hyWBwv6O.js} +3 -3
- package/web/app/immutable/chunks/{CLtpiLYb.js → nTzhI5F1.js} +1 -1
- package/web/app/immutable/chunks/{C79aLQt9.js → ofygnKUk.js} +1 -1
- package/web/app/immutable/chunks/{B-JWrZED.js → vtO9QTmA.js} +1 -1
- package/web/app/immutable/entry/{app.CkDtO1q-.js → app.BdrQALQh.js} +2 -2
- package/web/app/immutable/entry/start.BqlnF3U7.js +1 -0
- package/web/app/immutable/nodes/{0.DvPi8w3E.js → 0.DBZauBI2.js} +1 -1
- package/web/app/immutable/nodes/{1.C2bqEog8.js → 1.CPgNb4Lf.js} +1 -1
- package/web/app/immutable/nodes/{10.CP4ExDBx.js → 10.DZuMROM9.js} +4 -4
- package/web/app/immutable/nodes/{11.Bho5JmtI.js → 11.DPsQWzO9.js} +1 -1
- package/web/app/immutable/nodes/{15.DtNQM8td.js → 15.BThkGFQN.js} +1 -1
- package/web/app/immutable/nodes/{19.BLmPxWGI.js → 19.CnfYy9JE.js} +2 -2
- package/web/app/immutable/nodes/{2.Dda6sH4i.js → 2.BU41VxwM.js} +4 -4
- package/web/app/immutable/nodes/{3.BDe_dAcT.js → 3.BlGAsrV5.js} +1 -1
- package/web/app/immutable/nodes/{4.C28j9ioo.js → 4.C9rwZlbu.js} +1 -1
- package/web/app/immutable/nodes/{5.CE6HGShw.js → 5.B9pXjqPK.js} +1 -1
- package/web/app/immutable/nodes/{6.Dz-oxHb7.js → 6.5nx1seqd.js} +1 -1
- package/web/app/immutable/nodes/{7.y6iKMGgi.js → 7.DaUM6jFq.js} +1 -1
- package/web/app/immutable/nodes/{8.i_Gce-pE.js → 8.BHoZX-hs.js} +1 -1
- package/web/app/immutable/nodes/{9.Dc1bO94U.js → 9.E1SwTSp3.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.BS0qtVof.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as k1}from"./
|
|
1
|
+
import{g as k1}from"./vtO9QTmA.js";import{g as E1}from"./DcVQUcOT.js";import{s as C1}from"./BHM1cyPv.js";import{b as k,a$ as t1,ay as oe,X as Ce,a1 as S1,aP as x1,bh as Gt,a_ as T1,aZ as D1,b0 as _1,V as v1,U as F1,Y as V1,z as I1,ax as s1,J as i1,as as L1,$ as Rt,aW as Ot,r as B1,N as M1,am as y1,aU as w1,ab as N1,x as R1,aT as O1,p as P1}from"./BpY_21Cw.js";import{c as G1}from"./euj4yvIS.js";import{aR as U1}from"./ChbSsiLP.js";var tt={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},j1=new Set([tt.SHAPE_UNSUPPORTED,tt.SHAPE_REMOVED,tt.CONTAINMENT_VIOLATION]);new Set(Object.values(tt).filter(s=>!j1.has(s)));var z1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),W1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),K1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),$e="roundedRect";function et(s){return s&&(z1.get(s)??s)}k(et,"resolveShapeAlias");function r1(s,i){for(const n of s)if(!n.isGroup){if((!n.shape||n.shape==="squareRect"||n.shape==="rect")&&(n.shape=$e),W1.has(n.shape)){const r=`shape "${n.shape}" was removed in v0.8.1, using "${$e}"`;i?.emitError?i.emitError("SHAPE_REMOVED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e;continue}if(!K1.has(n.shape)){const r=`shape "${n.shape}" is not supported, using "${$e}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e}}}k(r1,"normaliseNodeShapes");var Lt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),a1=Lt.size,o1=k(s=>`af-kind-${s}`,"kindClass"),H1=[...Lt.keys()],u1=k(s=>Math.max(1,s-a1),"containerSlotCount"),l1=k((s,i)=>{const n=a1+s%u1(i);return i>0?n%i:n},"containerSlot");function c1(s,i,n){const r=Ce().themeVariables?.borderColorArray,u=Array.isArray(r)?r.length:0;let l=n.size;for(const c of s??[]){if(c.isGroup||c.shape==="collapsedGroup"){const h=n.get(String(c.id))??l++;c.colorIndex=l1(h,u);continue}const a=i(String(c.id));a&&Lt.has(a)&&(c.cssClasses=`${c.cssClasses??""} ${o1(a)}`.replace(/\s+/g," ").trim())}}k(c1,"assignColorSlots");var n1="agentflow-",Pt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Y1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),q1={flow:"flowGroup"};function It(s){if(Array.isArray(s))return s.map(n=>It(n));if(s===null||typeof s!="object")return s;const i={};for(const n of Object.keys(s))n==="__proto__"||n==="constructor"||n==="prototype"||(i[n]=It(s[n]));return i}k(It,"stripPrototypeKeys");function d1(s){let i=!1,n=!1,r=0,u;const l=[];for(const c of s.split(`
|
|
2
2
|
`)){if(u!==void 0){const p=c.length-c.trimStart().length;if(c.trim()===""||p>u){l.push(c);continue}u=void 0}let a=-1;for(let p=0;p<c.length;p++){const A=c[p];if(n)A==="\\"?p++:A==='"'&&(n=!1);else if(i)A==="'"&&(i=!1);else if(A==='"')n=!0;else if(A==="'")i=!0;else if(A==="#"&&(p===0||c[p-1]===" "||c[p-1]===" ")){a=p;break}else A==="["||A==="{"?r++:(A==="]"||A==="}")&&(r=Math.max(0,r-1))}if(i||n||r>0){l.push(c);continue}const h=a>=0?c.slice(0,a):c,g=a>=0?c.slice(a):"";if(/:\s*[>|][\d+-]*\s*$/.test(h)){u=c.length-c.trimStart().length,l.push(c);continue}l.push(h.replace(/,([\t ]*)$/,"$1")+g)}return l.join(`
|
|
3
3
|
`)}k(d1,"stripLineTrailingCommas");var Ze,X1=(Ze=class{constructor(){this.vertexCounter=0,this.config=Ce(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=T1,this.setAccDescription=D1,this.setDiagramTitle=_1,this.getAccTitle=v1,this.getAccDescription=F1,this.getDiagramTitle=V1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return I1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,r,u,l,c,a={},h,g){if(!i||i.trim().length===0)return;let p;if(h!==void 0){let m;h.includes(`
|
|
4
4
|
`)?m=h+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./3SdAC2_C.js";import{p as r}from"./
|
|
1
|
+
import"./3SdAC2_C.js";import{p as r}from"./B6aNgl-u.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as C}from"./
|
|
1
|
+
import{D as C}from"./ChbSsiLP.js";import{t as re,bo as y,bw as se,b as ae,bm as I}from"./Dv_tIgjy.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as W,b_ as R,W as E,bn as le,bV as q,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./3SdAC2_C.js";import{i as de}from"./D7nvPiBp.js";import{k as me}from"./D6gLzTDC.js";import{s as D}from"./DLx1kqr5.js";import{a as ue}from"./BpY_21Cw.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,m=t[e];if(m===void 0)return{complete:!1};if(m==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(m==="{"||m==="["){const r=m==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:u})=>u)),g=n.filter(u=>u.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:u})=>u)),_=a.filter(u=>u.group===void 0||v.has(u.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),m=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,m,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),m=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!m.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,m))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),m=q(null),r=q(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(m,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(m,null):o&&k(m,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(m):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},u=Se(),A=G(u);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);W(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);me(w,()=>b(r),S=>{ue(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return W(u),R(()=>{D(u,"aria-busy",a()),D(u,"data-diagram-streaming",a())}),E(t,u),le(_)}export{_e as S,Oe as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./
|
|
1
|
+
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./BpY_21Cw.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as bt,bo as x,bw as wt,bq as Rt,b as It,bs as g}from"./Dv_tIgjy.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as E,bV as M,aA as F}from"./3SdAC2_C.js";import{b as vt}from"./Dn334wJv.js";import{Jv as l,eJ as Ut,eK as At,t4 as Bt,on as xt,oo as Ft,K3 as Tt,Ki as _t,K8 as Dt,os as T}from"./CWhRK5Rp.js";import{t as Lt}from"./C-BsEdGZ.js";import{g as Wt}from"./DWGXN6Nr.js";import{dH as Gt,bO as Nt,bQ as Et,bN as Mt,bS as Vt,dd as Ht,m as Kt}from"./BqA-3o9l.js";import{C as zt}from"./
|
|
1
|
+
import{t as bt,bo as x,bw as wt,bq as Rt,b as It,bs as g}from"./Dv_tIgjy.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as E,bV as M,aA as F}from"./3SdAC2_C.js";import{b as vt}from"./Dn334wJv.js";import{Jv as l,eJ as Ut,eK as At,t4 as Bt,on as xt,oo as Ft,K3 as Tt,Ki as _t,K8 as Dt,os as T}from"./CWhRK5Rp.js";import{t as Lt}from"./C-BsEdGZ.js";import{g as Wt}from"./DWGXN6Nr.js";import{dH as Gt,bO as Nt,bQ as Et,bN as Mt,bS as Vt,dd as Ht,m as Kt}from"./BqA-3o9l.js";import{C as zt}from"./CP6uC9cs.js";import{V as qt}from"./BEk-bvEu.js";import{bT as Jt,bN as Ot,b8 as Qt}from"./ChbSsiLP.js";import{i as _,n as V}from"./H2jLkRRS.js";import{af as jt}from"./CeyWhdyo.js";function Xt(D,$){if(new.target)return bt({component:Xt,...D});Pt($,!0);const H=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),K=()=>g(nt,"$ftCommits$",c),z=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),q=()=>g(tt,"$foldUnchanged",c),J=()=>g(Z,"$lineWrapping",c),O=()=>g(et,"$diffSideBySide",c),Q=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,X]=Rt(),Y=o=>{qt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{E(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return q()},onToggleFold:()=>l.dispatch(Dt()),get wrapEnabled(){return J()},onToggleWrap:()=>l.dispatch(_t()),get splitEnabled(){return O()},onToggleSplit:()=>l.dispatch(Tt())})},Z=Jt(),tt=Ot(),et=Qt();let P=x($,"tab",7),m=x($,"workspaceId",7),C=x($,"isActive",7);const L=Wt(),p=Lt(()=>m()),ot=Gt(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(p),b=s(()=>H().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Nt(p),nt=Et(p),it=Mt(p),rt=Vt(p),dt=s(()=>K()||[]),lt=Ht(p),f=s(()=>z()[t(n)]??Kt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(Bt(o,i,t(b)?.registeredCommitSha,100))});let w=M(!0),R=M(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&_(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&_(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&_(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,B=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:B,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=V(o),e=V(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!L||!C()||L.registerActions({display:Y})});const N=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(xt(o,N)),()=>l.dispatch(Ft(o,N))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):Q()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),B=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="staged");G(d.map(u=>u.relativePath||u.file))});vt(zt(D,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(B)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>E(R,d,!0),()=>t(R))}var $t=kt(ft);return X(),$t}export{Xt as default};
|