@intent-hq/web 2.361.1 → 2.361.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{iDIfJ3iV.js → -7du9lfn.js} +1 -1
- package/web/app/immutable/chunks/{ByIgBfs_.js → 0_7FQkiC.js} +1 -1
- package/web/app/immutable/chunks/{BAyBEEFm.js → 1EW4b83o.js} +1 -1
- package/web/app/immutable/chunks/{B9t82so5.js → 2wJjyVNk.js} +2 -2
- package/web/app/immutable/chunks/{B_tHbtUI.js → 52-_4pXR.js} +1 -1
- package/web/app/immutable/chunks/{i9Ai-esv.js → 5NiJCy7J.js} +1 -1
- package/web/app/immutable/chunks/{BTpJekrR.js → 5u3dQlae.js} +1 -1
- package/web/app/immutable/chunks/{CEX--Xsn.js → 6d4Jv8Hz.js} +2 -2
- package/web/app/immutable/chunks/{j9e5aB7O.js → 7tcI69cn.js} +1 -1
- package/web/app/immutable/chunks/{BTYFFiiL.js → 8HLudOb-.js} +1 -1
- package/web/app/immutable/chunks/{ye2FbJ5D.js → 96DwTK9j.js} +2 -2
- package/web/app/immutable/chunks/{BIbN5V8o.js → As8lK70V.js} +1 -1
- package/web/app/immutable/chunks/{QNDivBsM.js → AxCVH26S.js} +1 -1
- package/web/app/immutable/chunks/{DxOUk2oJ.js → B07OdpUU.js} +3 -3
- package/web/app/immutable/chunks/{C7Y9ew7Z.js → B0JbhmMb.js} +1 -1
- package/web/app/immutable/chunks/{D6d4xhu_.js → B1Tr5BPZ.js} +1 -1
- package/web/app/immutable/chunks/{CigwWVbR.js → B2ns9OTA.js} +1 -1
- package/web/app/immutable/chunks/{WJw0rC-g.js → B4kCZd9W.js} +1 -1
- package/web/app/immutable/chunks/{BTl8ihCX.js → B5Pg9_MZ.js} +1 -1
- package/web/app/immutable/chunks/{_iJcPN5_.js → B9pYL5w0.js} +1 -1
- package/web/app/immutable/chunks/{q3oLC86w.js → B9tRD7MQ.js} +1 -1
- package/web/app/immutable/chunks/{DU2T1Vdb.js → BAgFsuQz.js} +1 -1
- package/web/app/immutable/chunks/{DMHNxEyN.js → BD9wTbmm.js} +1 -1
- package/web/app/immutable/chunks/{BdcgINI4.js → BG4tBRsm.js} +1 -1
- package/web/app/immutable/chunks/{BzTKzuhn.js → BGOuxFsr.js} +1 -1
- package/web/app/immutable/chunks/{CbvpJoHZ.js → BKHUH54N.js} +1 -1
- package/web/app/immutable/chunks/{Bmmvebpd.js → BKw6wLyE.js} +1 -1
- package/web/app/immutable/chunks/{DKAPPU9s.js → BLFlTVjy.js} +4 -4
- package/web/app/immutable/chunks/{i-66Uv-K.js → BMYcVUUM.js} +1 -1
- package/web/app/immutable/chunks/{8C8OyL-H.js → BOSMtVmb.js} +1 -1
- package/web/app/immutable/chunks/{CVFwlr2Z.js → BPG9IRUj.js} +1 -1
- package/web/app/immutable/chunks/{DHQj_UCz.js → BPRz9VyT.js} +1 -1
- package/web/app/immutable/chunks/{Dxv3G1Mb.js → BSM5O6JV.js} +1 -1
- package/web/app/immutable/chunks/{LbgKUbsl.js → BTR14c-t.js} +3 -3
- package/web/app/immutable/chunks/{C9vs7bl5.js → BWUH3HmG.js} +1 -1
- package/web/app/immutable/chunks/{CIDE3x9D.js → BZp1yALL.js} +1 -1
- package/web/app/immutable/chunks/{NAsYJxQg.js → BbIMIfqX.js} +1 -1
- package/web/app/immutable/chunks/BbV7MtxC.js +1 -0
- package/web/app/immutable/chunks/{wuYAM5lX.js → BeLtysng.js} +1 -1
- package/web/app/immutable/chunks/{DGzlSz-8.js → Bgk8kfr8.js} +1 -1
- package/web/app/immutable/chunks/Bhx5E4sN.js +2 -0
- package/web/app/immutable/chunks/{CD3p1vYG.js → Big1YQpq.js} +1 -1
- package/web/app/immutable/chunks/{DjcKhQp4.js → Bl0Adq86.js} +1 -1
- package/web/app/immutable/chunks/{Dg9xZYld.js → Bl2aLOn5.js} +1 -1
- package/web/app/immutable/chunks/{CzEsFefN.js → BskEvHZa.js} +1 -1
- package/web/app/immutable/chunks/{BShQ2LRb.js → Bt_RDNlI.js} +1 -1
- package/web/app/immutable/chunks/{D478BUHq.js → Bx_nP_MK.js} +1 -1
- package/web/app/immutable/chunks/{BVV3fM7W.js → Bya2sQrR.js} +1 -1
- package/web/app/immutable/chunks/{BqUUWX71.js → Byj6QL5F.js} +1 -1
- package/web/app/immutable/chunks/{BYx2Y144.js → C-Qm3bfA.js} +1 -1
- package/web/app/immutable/chunks/{BrQ0wqQy.js → C1wjuTFV.js} +1 -1
- package/web/app/immutable/chunks/{CU9Jo2EB.js → C3L3GwMq.js} +1 -1
- package/web/app/immutable/chunks/{DzGon3k8.js → C4qqiNcA.js} +1 -1
- package/web/app/immutable/chunks/{C_RGTtXj.js → C5cRG0yV.js} +3 -3
- package/web/app/immutable/chunks/{B1ScYY03.js → C9otdzZM.js} +4 -4
- package/web/app/immutable/chunks/{Ccaz1_yi.js → CGINFMqT.js} +1 -1
- package/web/app/immutable/chunks/{DUCIVWu4.js → CJHViisg.js} +3 -3
- package/web/app/immutable/chunks/{g5Oev8-0.js → CNUg0Cs8.js} +1 -1
- package/web/app/immutable/chunks/{CubYUWh2.js → CO15VKbw.js} +1 -1
- package/web/app/immutable/chunks/{BrYKR-SG.js → CVOsommd.js} +2 -2
- package/web/app/immutable/chunks/{CM4RKAei.js → C_z20mJT.js} +1 -1
- package/web/app/immutable/chunks/{Oa6WXH6c.js → Cb4s3Dt_.js} +3 -3
- package/web/app/immutable/chunks/{Cnly_zgc.js → CgS1Dv_8.js} +1 -1
- package/web/app/immutable/chunks/{Cn2kUD4R.js → Ch9oF0ek.js} +1 -1
- package/web/app/immutable/chunks/{D39Rrj4Y.js → CjorBqRt.js} +1 -1
- package/web/app/immutable/chunks/{C1d-f55y.js → CkVsI2Jc.js} +1 -1
- package/web/app/immutable/chunks/{CD6wiERl.js → CmVyGqNV.js} +2 -2
- package/web/app/immutable/chunks/{ZWDSGAzi.js → CpBPE3-0.js} +1 -1
- package/web/app/immutable/chunks/{DxNx74qV.js → CpHAR9_T.js} +1 -1
- package/web/app/immutable/chunks/{DlZbnYcc.js → CpY-WDD9.js} +1 -1
- package/web/app/immutable/chunks/{m2KtwqZj.js → Cq0xvhw9.js} +3 -3
- package/web/app/immutable/chunks/{BTli9eoV.js → Cq8fk3CH.js} +1 -1
- package/web/app/immutable/chunks/{BSQOiuf7.js → CrLichOk.js} +1 -1
- package/web/app/immutable/chunks/CsqD9xz6.js +2 -0
- package/web/app/immutable/chunks/{CuHcMIuh.js → CssvkQD7.js} +1 -1
- package/web/app/immutable/chunks/{p1enVnf-.js → CuoerPJp.js} +3 -3
- package/web/app/immutable/chunks/{BCKdYbDN.js → CvH6beJr.js} +1 -1
- package/web/app/immutable/chunks/{CtoSWfC3.js → CyQJi5fM.js} +1 -1
- package/web/app/immutable/chunks/{CDfNySzn.js → CytLF-ur.js} +6 -6
- package/web/app/immutable/chunks/{DSEn8hom.js → D00mCTUs.js} +1 -1
- package/web/app/immutable/chunks/{fUWZZKuh.js → D0VMf2Fp.js} +3 -3
- package/web/app/immutable/chunks/{BAL5XTLB.js → D0g6v2_u.js} +1 -1
- package/web/app/immutable/chunks/{IF38I4hJ.js → D1FSU9Gk.js} +1 -1
- package/web/app/immutable/chunks/{DP_4YjFn.js → D1Vat_ZV.js} +1 -1
- package/web/app/immutable/chunks/{C0w-ozGP.js → D3rVaYU0.js} +1 -1
- package/web/app/immutable/chunks/{CNrMRWtA.js → D4LnecGU.js} +2 -2
- package/web/app/immutable/chunks/{CfrI0flQ.js → D5kZvSPC.js} +1 -1
- package/web/app/immutable/chunks/{CGa_N4XN.js → D9H2UCuG.js} +1 -1
- package/web/app/immutable/chunks/{DhFCUcs_.js → DAwOD17b.js} +1 -1
- package/web/app/immutable/chunks/{DW6bFMyN.js → DC3pczce.js} +1 -1
- package/web/app/immutable/chunks/{9JxkPVF4.js → DD4-FHBp.js} +1 -1
- package/web/app/immutable/chunks/{LOqiMc_U.js → DHBQy6St.js} +1 -1
- package/web/app/immutable/chunks/{CGyzoULR.js → DHbwKi-E.js} +2 -2
- package/web/app/immutable/chunks/{CK1KGIDF.js → DQTzZEWU.js} +2 -2
- package/web/app/immutable/chunks/{Bx9jZIih.js → DVlYg0SZ.js} +3 -3
- package/web/app/immutable/chunks/{BPvTHi1E.js → DWWTsFh-.js} +1 -1
- package/web/app/immutable/chunks/{PRiKArA2.js → DXcrfgZH.js} +1 -1
- package/web/app/immutable/chunks/{CwzEnqS-.js → Db7PzaF_.js} +1 -1
- package/web/app/immutable/chunks/{BJ3gWX43.js → DjKDfA1m.js} +2 -2
- package/web/app/immutable/chunks/{jbEf1eyu.js → DkNdI_Wp.js} +1 -1
- package/web/app/immutable/chunks/{CWv2hgO9.js → DkgfeEA0.js} +1 -1
- package/web/app/immutable/chunks/{BpOARSV2.js → DlBKZ9jQ.js} +2 -2
- package/web/app/immutable/chunks/{Mq-KWmnJ.js → Ds8ezw9K.js} +1 -1
- package/web/app/immutable/chunks/{BSEFatJl.js → DsCJG1hb.js} +1 -1
- package/web/app/immutable/chunks/{Dr8wZpId.js → Dtqu7Pxg.js} +1 -1
- package/web/app/immutable/chunks/{LWmvlIUb.js → DuTju9rc.js} +1 -1
- package/web/app/immutable/chunks/{DJ5x8cvc.js → DvCS4TTw.js} +1 -1
- package/web/app/immutable/chunks/{HzX2dyQQ.js → DyIRpoZq.js} +1 -1
- package/web/app/immutable/chunks/{HtczSd2T.js → DzmdzUVi.js} +1 -1
- package/web/app/immutable/chunks/{DB-v9jra.js → MzfVdJbX.js} +1 -1
- package/web/app/immutable/chunks/{CY0JcuWq.js → OiHDtgNp.js} +1 -1
- package/web/app/immutable/chunks/{D_duQWml.js → QWfAA7k-.js} +1 -1
- package/web/app/immutable/chunks/{Bh3GosDM.js → TaZ6zGN1.js} +1 -1
- package/web/app/immutable/chunks/{CTRz9TAp.js → Tqm9-f9l.js} +1 -1
- package/web/app/immutable/chunks/{BffM0X9l.js → Vfi0Dmt8.js} +1 -1
- package/web/app/immutable/chunks/{DPVE_K_W.js → W67SWYQh.js} +1 -1
- package/web/app/immutable/chunks/{D3110at5.js → YhYmjxML.js} +1 -1
- package/web/app/immutable/chunks/{BCReWepB.js → aCDFJfWo.js} +1 -1
- package/web/app/immutable/chunks/{DtIte6Mn.js → aokikQw5.js} +47 -47
- package/web/app/immutable/chunks/{Dg8d6CfG.js → buVzC4lf.js} +1 -1
- package/web/app/immutable/chunks/{DfPFNZRA.js → c1DCm8IK.js} +1 -1
- package/web/app/immutable/chunks/{DnxaSjad.js → cU6Fqv3g.js} +1 -1
- package/web/app/immutable/chunks/{ChdfugfS.js → dGnsWF4N.js} +1 -1
- package/web/app/immutable/chunks/{DYUOfSUt.js → ivBdCvd6.js} +1 -1
- package/web/app/immutable/chunks/{DDJJ0r24.js → kbpbXlKS.js} +1 -1
- package/web/app/immutable/chunks/{Pyx0yui4.js → lZNvj_WH.js} +1 -1
- package/web/app/immutable/chunks/{Dd5fSdFI.js → rUCEwUE_.js} +1 -1
- package/web/app/immutable/chunks/{BM1o8cfq.js → t94_2IkW.js} +1 -1
- package/web/app/immutable/chunks/{DgcVHfLT.js → tSlfPnTD.js} +1 -1
- package/web/app/immutable/chunks/y2YthUTc.js +1 -0
- package/web/app/immutable/chunks/{DL8IL3dP.js → yTlZ1Sih.js} +1 -1
- package/web/app/immutable/entry/{app.0rhGzEA-.js → app.CYYj7JvH.js} +2 -2
- package/web/app/immutable/entry/start.BH_-Ros5.js +1 -0
- package/web/app/immutable/nodes/{0.7iTMX8MP.js → 0.vJoG8nTo.js} +1 -1
- package/web/app/immutable/nodes/{1.BwagR4s9.js → 1.Di6AbyQm.js} +1 -1
- package/web/app/immutable/nodes/{10.DuZeAxuV.js → 10.BkazfxT8.js} +16 -16
- package/web/app/immutable/nodes/{11.D7qyNhVk.js → 11.Ck_7PTgk.js} +4 -4
- package/web/app/immutable/nodes/{15.De8ZpDZ1.js → 15.DWwqZzAg.js} +1 -1
- package/web/app/immutable/nodes/{19.Df09vK0B.js → 19.CjDPuA-n.js} +2 -2
- package/web/app/immutable/nodes/{2.Dlt4LRYB.js → 2.B7bl9OWL.js} +4 -4
- package/web/app/immutable/nodes/{3.PjliZTHk.js → 3.CY1Mye6q.js} +1 -1
- package/web/app/immutable/nodes/{4.OFyddHWG.js → 4.sNrk6dxf.js} +1 -1
- package/web/app/immutable/nodes/{5.C7naJyKP.js → 5.BrOibHKo.js} +1 -1
- package/web/app/immutable/nodes/{6.k4q9sApB.js → 6.BVYLHxv3.js} +1 -1
- package/web/app/immutable/nodes/{7.C4plvmUt.js → 7.BZ0ZLzU_.js} +1 -1
- package/web/app/immutable/nodes/{8.tv1szX_U.js → 8.BNlg4qDc.js} +1 -1
- package/web/app/immutable/nodes/{9.gOkUPoOT.js → 9.C8X38wWW.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/Ct4BiqZH.js +0 -2
- package/web/app/immutable/chunks/D9WrKwE8.js +0 -1
- package/web/app/immutable/chunks/DbaZdUr0.js +0 -1
- package/web/app/immutable/chunks/tm_HKw3E.js +0 -2
- package/web/app/immutable/entry/start.piZarN4f.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as k1}from"./
|
|
1
|
+
import{g as k1}from"./kbpbXlKS.js";import{g as E1}from"./CgS1Dv_8.js";import{s as C1}from"./DHBQy6St.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"./C9otdzZM.js";import{c as G1}from"./dGnsWF4N.js";import{aR as U1}from"./B0JbhmMb.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{a as S}from"./BdWqymET.js";import{aE as l}from"./CJxGDkBm.js";import{g as c}from"./
|
|
1
|
+
import{a as S}from"./BdWqymET.js";import{aE as l}from"./CJxGDkBm.js";import{g as c}from"./CytLF-ur.js";import{p as g}from"./B5Pg9_MZ.js";import{d as I}from"./B0Z-1lwJ.js";import{dD as f}from"./BEyxbMng.js";import{B_ as u,i as y,IX as o,gZ as A,vp as m,vq as N,vs as b}from"./BkzMrEqG.js";import{g as D,n as h}from"./CAYSf4zc.js";import{S as W,a as R,n as _}from"./96DwTK9j.js";import{n as E,o as v}from"./D1FSU9Gk.js";const k="intent:onboarding-skip:v1";function P(e){return u.getItem(h(k,e))==="1"}function re(e){P(e)||u.setItem(h(k,e),"1")}function O(e){return e.connections?.hasReceivedList===!0&&P(D(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(f.select(e),a,O(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function $(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function C(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=l(g),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=l(g).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function B(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function M(){r.info("[closeDrawer] Closing drawer");const a=l(g).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function G(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function H(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await _(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(W);if(e&&e!=="/"&&!R(e))return e;const a=w();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await E(e)}function w(e){return f.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function Y(){const e=w();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function q(e){const a=w(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:M,findSourcePanelId:C,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:q,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:Y,navigateToNote:p,navigateToSettings:H,navigateToSpec:B,navigateToTask:G,navigateToTerminal:$},Symbol.toStringTag,{value:"Module"}));export{U as a,Y as b,p as c,H as d,G as e,C as f,d as g,ie as h,O as i,z as n,re as r,se as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as T,bo as r,bw as W,bq as S,b as $,bs as x}from"./AeC4KVgG.js";import{bs as B,cd as C,ca as q,a7 as u,ay as f,W as k,bn as D,aA as o}from"./CJxGDkBm.js";import{i as H}from"./k2awEenT.js";import{k as L}from"./HftJbvyF.js";import{a as X}from"./
|
|
1
|
+
import{t as T,bo as r,bw as W,bq as S,b as $,bs as x}from"./AeC4KVgG.js";import{bs as B,cd as C,ca as q,a7 as u,ay as f,W as k,bn as D,aA as o}from"./CJxGDkBm.js";import{i as H}from"./k2awEenT.js";import{k as L}from"./HftJbvyF.js";import{a as X}from"./0_7FQkiC.js";import{ds as j}from"./BEyxbMng.js";import{IX as z,gS as E}from"./BkzMrEqG.js";function F(i,t){if(new.target)return T({component:F,...i});B(t,!0);const d=()=>x(g,"$workspace$",b),[b,w]=S();let c=r(t,"tab",7),a=r(t,"workspaceId",7),n=r(t,"layoutId",7),p=r(t,"isActive",7);const m=C(a());q(()=>m.set(a()));const g=j(m);var v={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return a()},set workspaceId(e){a(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:W,$on:(e,s)=>$(t,e,s)},l=u(),_=f(l);{var y=e=>{var s=u(),A=f(s);L(A,a,h=>{X(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>z.dispatch(E(n()??a(),c().id))})}),k(e,s)};H(_,e=>{p()&&d()&&e(y)})}k(i,l);var I=D(v);return w(),I}export{F as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./
|
|
1
|
+
import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./C9otdzZM.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
|
|
2
2
|
`),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=_(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${i};
|