@intent-hq/web 2.383.1 → 2.383.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/{C-O59F9J.js → -wH-MzHg.js} +2 -2
- package/web/app/immutable/chunks/{DME_6OFx.js → 03HQb6Nz.js} +1 -1
- package/web/app/immutable/chunks/{CJVoHxzN.js → 1eGVa7uN.js} +1 -1
- package/web/app/immutable/chunks/{BjRQQ_jq.js → 1pbfqlmC.js} +4 -4
- package/web/app/immutable/chunks/{DPZcepbV.js → 46R-6bwp.js} +1 -1
- package/web/app/immutable/chunks/{BxVnbYG1.js → 4lxKnD4E.js} +1 -1
- package/web/app/immutable/chunks/{BkITif4J.js → 5Ya2tobY.js} +1 -1
- package/web/app/immutable/chunks/{DMlkDPxV.js → B-HvfCLM.js} +1 -1
- package/web/app/immutable/chunks/{CxFOqPFP.js → B54vxPSC.js} +3 -3
- package/web/app/immutable/chunks/{CeHXXIxE.js → B6Ea_mQK.js} +1 -1
- package/web/app/immutable/chunks/{BPzekfWN.js → B73pME8S.js} +1 -1
- package/web/app/immutable/chunks/{CI9sv_EP.js → B8eFCa5E.js} +1 -1
- package/web/app/immutable/chunks/{B6qvxAO7.js → BALrIQ13.js} +1 -1
- package/web/app/immutable/chunks/{CnqJXAKo.js → BBLmHF-x.js} +1 -1
- package/web/app/immutable/chunks/{DUhA4bgN.js → BCEIpZAe.js} +1 -1
- package/web/app/immutable/chunks/{yaHL2zPw.js → BDU9DorN.js} +1 -1
- package/web/app/immutable/chunks/{P-T74LCo.js → BFnrc2L0.js} +3 -3
- package/web/app/immutable/chunks/{Dm7KqEFT.js → BGOOya_A.js} +13 -13
- package/web/app/immutable/chunks/{DPyomP91.js → BI4Gr7El.js} +1 -1
- package/web/app/immutable/chunks/{BY9RbRJy.js → BK3I1582.js} +1 -1
- package/web/app/immutable/chunks/{DjHhZWUX.js → BL78xDnE.js} +1 -1
- package/web/app/immutable/chunks/{Ck2X3Rvg.js → BNsReuZq.js} +1 -1
- package/web/app/immutable/chunks/{B8VxRkn_.js → BPlFpIis.js} +1 -1
- package/web/app/immutable/chunks/{0PdeE_M-.js → BQpH3OoI.js} +1 -1
- package/web/app/immutable/chunks/{BAP-Km9w.js → BTLLdzM2.js} +1 -1
- package/web/app/immutable/chunks/{q6F-1__g.js → BUAZt4k8.js} +1 -1
- package/web/app/immutable/chunks/{azpKokvz.js → BUtMbPHc.js} +1 -1
- package/web/app/immutable/chunks/{TiuNiN7j.js → BVGxYq00.js} +1 -1
- package/web/app/immutable/chunks/{DPzOIlu9.js → BYf4P-Xv.js} +1 -1
- package/web/app/immutable/chunks/{CjpxPpfy.js → BYtUt_7N.js} +1 -1
- package/web/app/immutable/chunks/{DmXAUF0G.js → BaJk_Nxp.js} +1 -1
- package/web/app/immutable/chunks/{oOhxfFIU.js → Bk0JLGzR.js} +1 -1
- package/web/app/immutable/chunks/{CHXhxB4Q.js → Bm_BMJ5S.js} +1 -1
- package/web/app/immutable/chunks/{zHu1d_6X.js → BnOThusB.js} +2 -2
- package/web/app/immutable/chunks/{Zx9hB63s.js → BnaqhxMa.js} +1 -1
- package/web/app/immutable/chunks/{BwtFad5m.js → Bnurq_Pf.js} +2 -2
- package/web/app/immutable/chunks/{DduCxuVq.js → BsLGFv7V.js} +1 -1
- package/web/app/immutable/chunks/{D-YGlaxj.js → BvYSMLN-.js} +1 -1
- package/web/app/immutable/chunks/{Ckb6le-m.js → Bw02Klel.js} +4 -4
- package/web/app/immutable/chunks/{6GlvsI2m.js → BxKrk2Xm.js} +1 -1
- package/web/app/immutable/chunks/{Cofxvpdb.js → C2UQ69-V.js} +1 -1
- package/web/app/immutable/chunks/{469banqV.js → C4oBHTC7.js} +3 -3
- package/web/app/immutable/chunks/{Bq_wOSEp.js → C5E04JHB.js} +1 -1
- package/web/app/immutable/chunks/{BbvEB4jz.js → C5wdJ-5g.js} +1 -1
- package/web/app/immutable/chunks/{7GuT70Sz.js → C68E7oEN.js} +1 -1
- package/web/app/immutable/chunks/{M-TVgx-R.js → C6aFracI.js} +1 -1
- package/web/app/immutable/chunks/{Ddq8SBEz.js → C9nDXeDI.js} +1 -1
- package/web/app/immutable/chunks/{CbO3oDHw.js → CBvXBpaM.js} +1 -1
- package/web/app/immutable/chunks/{Di8eJPr0.js → CCMszM-p.js} +2 -2
- package/web/app/immutable/chunks/{BNkpVy97.js → CCNu9Rxf.js} +1 -1
- package/web/app/immutable/chunks/{BtHTHBJp.js → CCOwocDi.js} +1 -1
- package/web/app/immutable/chunks/{XHPDEELd.js → CCsFilO2.js} +1 -1
- package/web/app/immutable/chunks/{DmaEU7hb.js → CDTDaiWd.js} +1 -1
- package/web/app/immutable/chunks/{CKXQrY3X.js → CERS_x_a.js} +1 -1
- package/web/app/immutable/chunks/{BYP8ebQS.js → CHJf6CKw.js} +1 -1
- package/web/app/immutable/chunks/{BK6a0pzX.js → CKjDn57H.js} +1 -1
- package/web/app/immutable/chunks/{C8JlOzbF.js → CMW1kPYq.js} +1 -1
- package/web/app/immutable/chunks/{BwhjiNjC.js → COs0nq_h.js} +1 -1
- package/web/app/immutable/chunks/{MI7EtNv0.js → CPfM5J_u.js} +1 -1
- package/web/app/immutable/chunks/{bF6PpsOD.js → CRmihGrZ.js} +1 -1
- package/web/app/immutable/chunks/{Div5PXT-.js → CTKRrTvZ.js} +2 -2
- package/web/app/immutable/chunks/{BlRYe00B.js → CU2vyfYu.js} +1 -1
- package/web/app/immutable/chunks/{h06E2ICA.js → CaOXszWh.js} +1 -1
- package/web/app/immutable/chunks/{DqMqjmmT.js → CecaUouy.js} +2 -2
- package/web/app/immutable/chunks/{DOhJfAZG.js → CfqtYdKm.js} +1 -1
- package/web/app/immutable/chunks/{BBws4Cyt.js → Ci6sHn75.js} +1 -1
- package/web/app/immutable/chunks/{CDNvYbvS.js → CjoAn_VO.js} +1 -1
- package/web/app/immutable/chunks/{WVvubfLN.js → CkJj_XU1.js} +2 -2
- package/web/app/immutable/chunks/{CnAbYuPp.js → ClJH5EDU.js} +1 -1
- package/web/app/immutable/chunks/{KH7BHXXb.js → Cq8vwNeW.js} +1 -1
- package/web/app/immutable/chunks/{Dzk9iuw9.js → CqaNT709.js} +3 -3
- package/web/app/immutable/chunks/{DEI5RmgA.js → CtxKEpQR.js} +1 -1
- package/web/app/immutable/chunks/{CDAoSo12.js → Cv4Nh90j.js} +1 -1
- package/web/app/immutable/chunks/{BLyGObAP.js → D3326bvN.js} +3 -3
- package/web/app/immutable/chunks/{nImP7yvb.js → D7OzCs6b.js} +1 -1
- package/web/app/immutable/chunks/{BAzzHP-D.js → D89oEjt1.js} +1 -1
- package/web/app/immutable/chunks/{DlEmrQXN.js → D9PsslUR.js} +2 -2
- package/web/app/immutable/chunks/{CBkpyV7r.js → DBUDGVnq.js} +1 -1
- package/web/app/immutable/chunks/{CiSIqqOJ.js → DF4N7xKD.js} +1 -1
- package/web/app/immutable/chunks/{x63yRqVE.js → DJ7NuUn9.js} +1 -1
- package/web/app/immutable/chunks/{D-dukRlA.js → DKAEb0Nq.js} +1 -1
- package/web/app/immutable/chunks/{CkmRZ_MC.js → DKN2oFQh.js} +1 -1
- package/web/app/immutable/chunks/{DDJ_XVek.js → DMis7v6J.js} +2 -2
- package/web/app/immutable/chunks/{DJs4vEjF.js → DOBbyUSI.js} +1 -1
- package/web/app/immutable/chunks/{Cxf6ur9F.js → DOTkiVAt.js} +1 -1
- package/web/app/immutable/chunks/{DSAj_NCN.js → DPTJGt-4.js} +1 -1
- package/web/app/immutable/chunks/{BFgeFHTs.js → DQK1MQRy.js} +1 -1
- package/web/app/immutable/chunks/{DaaqgDka.js → DRJrqXOC.js} +1 -1
- package/web/app/immutable/chunks/{CEOBX1Pf.js → DTKdf69M.js} +1 -1
- package/web/app/immutable/chunks/{BI3a2AWW.js → DU6GzJo7.js} +1 -1
- package/web/app/immutable/chunks/{BTw9kxtg.js → DUrqr-_9.js} +1 -1
- package/web/app/immutable/chunks/{BXhT5rHA.js → DWKRk5qT.js} +1 -1
- package/web/app/immutable/chunks/{C6Qw0raF.js → DYAwS63B.js} +1 -1
- package/web/app/immutable/chunks/{CrFyLBfi.js → DYw-jZnX.js} +2 -2
- package/web/app/immutable/chunks/{nbomrtth.js → DaA4cwB7.js} +1 -1
- package/web/app/immutable/chunks/{CJO6KBmw.js → DbhHGGnX.js} +1 -1
- package/web/app/immutable/chunks/{BlVYr5cA.js → Dc-K8gB4.js} +1 -1
- package/web/app/immutable/chunks/{D4FXvK9L.js → DgKxSqnb.js} +3 -3
- package/web/app/immutable/chunks/{CaNxJFJ1.js → DhFCW7ui.js} +1 -1
- package/web/app/immutable/chunks/{CGIQkN5K.js → Doz22Fw6.js} +1 -1
- package/web/app/immutable/chunks/{BvbTU4IL.js → DqVxq9qz.js} +1 -1
- package/web/app/immutable/chunks/{BvPbguyx.js → DqnZckLn.js} +1 -1
- package/web/app/immutable/chunks/{KSLBBJRy.js → DtEcb9Kl.js} +1 -1
- package/web/app/immutable/chunks/{C9h2rwKF.js → DynK7LpZ.js} +1 -1
- package/web/app/immutable/chunks/{Dhzl8ugO.js → HnXWs0wn.js} +1 -1
- package/web/app/immutable/chunks/{Fdd73CJo.js → ML4TWB19.js} +1 -1
- package/web/app/immutable/chunks/{H9IjxeQk.js → MpqcTAsG.js} +1 -1
- package/web/app/immutable/chunks/{Rx5mQeGT.js → NV_vO3Eg.js} +4 -4
- package/web/app/immutable/chunks/{DrHfN5GT.js → OKklWV7_.js} +1 -1
- package/web/app/immutable/chunks/{T8d_aLDP.js → SQ1JAgBB.js} +1 -1
- package/web/app/immutable/chunks/{CDCEiDxP.js → TLXVPYri.js} +3 -3
- package/web/app/immutable/chunks/{DOUbieNj.js → TkG8RZHk.js} +1 -1
- package/web/app/immutable/chunks/{Su2XS_Ru.js → VQuhn_Lt.js} +1 -1
- package/web/app/immutable/chunks/{Du_rNq8q.js → YJiBWTwd.js} +1 -1
- package/web/app/immutable/chunks/{MQBseMlG.js → _Yaq9uZY.js} +1 -1
- package/web/app/immutable/chunks/{Djg1-55Y.js → aR25fz44.js} +1 -1
- package/web/app/immutable/chunks/{CL-lzPGU.js → dbsKZB4V.js} +1 -1
- package/web/app/immutable/chunks/{W7maz5hp.js → g9tUAsNS.js} +1 -1
- package/web/app/immutable/chunks/{ByfS7UIX.js → gMS62uii.js} +1 -1
- package/web/app/immutable/chunks/{BCS2G1TZ.js → g_W_KtW7.js} +1 -1
- package/web/app/immutable/chunks/{DsT1iX_Q.js → hSGzq1Th.js} +2 -2
- package/web/app/immutable/chunks/{DwImHc9s.js → kLtCLkab.js} +1 -1
- package/web/app/immutable/chunks/mEP1tNc7.js +10 -0
- package/web/app/immutable/chunks/{BI0hvS48.js → pWMJoQQd.js} +3 -3
- package/web/app/immutable/chunks/{Dsf8OM9-.js → sSkm7u9g.js} +1 -1
- package/web/app/immutable/chunks/{Dr0V5Z_Q.js → t_AdNc5B.js} +1 -1
- package/web/app/immutable/chunks/{D3C3nNLs.js → yOorim_l.js} +1 -1
- package/web/app/immutable/entry/{app.CgYQGiwi.js → app.D9Jtjo9u.js} +2 -2
- package/web/app/immutable/entry/start.CkN6A8cF.js +1 -0
- package/web/app/immutable/nodes/{0.DOOOI3Bo.js → 0.D7G8zYtJ.js} +1 -1
- package/web/app/immutable/nodes/{1.DCbWOuyY.js → 1.CeP6l7to.js} +1 -1
- package/web/app/immutable/nodes/{10.DkhUAhty.js → 10.B0HUYmSO.js} +4 -4
- package/web/app/immutable/nodes/{11.DDwWhO0Z.js → 11.DK72_yYq.js} +1 -1
- package/web/app/immutable/nodes/{15.Dw1bH9Zl.js → 15.u_u2o_gG.js} +1 -1
- package/web/app/immutable/nodes/{19.BDZr-fpl.js → 19.Ckyt7QSw.js} +2 -2
- package/web/app/immutable/nodes/{2.BXcXLNQd.js → 2.B6dSCynl.js} +4 -4
- package/web/app/immutable/nodes/{3.DSd1hRZn.js → 3.BYMfscY7.js} +1 -1
- package/web/app/immutable/nodes/{4.BkWwx_VF.js → 4.BbNp4BGO.js} +1 -1
- package/web/app/immutable/nodes/{5.y9tMc2yb.js → 5.BY-7-cOX.js} +1 -1
- package/web/app/immutable/nodes/{6.BosoYTZK.js → 6.CgyQkAW2.js} +1 -1
- package/web/app/immutable/nodes/{7.BX-dUHAQ.js → 7.573udsYL.js} +1 -1
- package/web/app/immutable/nodes/{8.DUR07SoM.js → 8.CRV-jSmC.js} +1 -1
- package/web/app/immutable/nodes/{9.Cw56XQ1G.js → 9.BWV1lf5B.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/i_QPvq4q.js +0 -10
- package/web/app/immutable/entry/start.C_kFKw1E.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as C}from"./
|
|
1
|
+
import{D as C}from"./CCOwocDi.js";import{t as re,bo as y,bw as se,b as ae,bm as I}from"./C0QTy0Sy.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"./bhKPSdq4.js";import{k as me}from"./-K3ARgq0.js";import{s as D}from"./7UPrdiE9.js";import{a as ue}from"./Bw02Klel.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 +1 @@
|
|
|
1
|
-
import{f as p}from"./C6mS8uZB.js";import{A as s,z as l}from"./
|
|
1
|
+
import{f as p}from"./C6mS8uZB.js";import{A as s,z as l}from"./DU6GzJo7.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./C6aFracI.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Jt}from"./
|
|
1
|
+
import{g as Jt}from"./t_AdNc5B.js";import{g as Zt}from"./BALrIQ13.js";import{s as $t}from"./4lxKnD4E.js";import{b as C,a$ as e1,ay as Z,X as Ae,a1 as t1,aP as s1,bh as at,a_ as i1,aZ as r1,b0 as a1,V as n1,U as u1,Y as o1,z as l1,ax as c1,J as h1,aq as st,as as d1,$ as it,aW as rt,r as p1,a2 as f1,N as g1,am as b1,aU as k1,ab as A1,x as m1,aT as C1,p as S1}from"./Bw02Klel.js";import{c as D1}from"./DKAEb0Nq.js";import{aR as T1}from"./CCOwocDi.js";var E1="flowchart-",y1=["laneRole","laneIndex","drawnExtent"];function Wt(s){if(!s||typeof s!="object")return s;const i={...s};for(const a of y1)Reflect.deleteProperty(i,a);return i}C(Wt,"withoutInternalKeys");var Pe,x1=(Pe=class{constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=i1,this.setAccDescription=r1,this.setDiagramTitle=a1,this.getAccTitle=n1,this.getAccDescription=u1,this.getDiagramTitle=o1,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.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.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l1.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 a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,r,l,g,o={},m){if(!i||i.trim().length===0)return;let d;if(m!==void 0){let f;m.includes(`
|
|
2
2
|
`)?f=m+`
|
|
3
3
|
`:f=`{
|
|
4
4
|
`+m+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as k1}from"./
|
|
1
|
+
import{g as k1}from"./t_AdNc5B.js";import{g as E1}from"./BALrIQ13.js";import{s as C1}from"./4lxKnD4E.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"./Bw02Klel.js";import{c as G1}from"./DKAEb0Nq.js";import{aR as U1}from"./CCOwocDi.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{I as h}from"./
|
|
1
|
+
import{I as h}from"./CCOwocDi.js";import{c as v}from"./ChTqQfQN.js";import{O as d}from"./DCRuihKm.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
|