@intent-hq/web 2.365.0 → 2.365.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/{CjiwXj-g.js → -FvGxaYP.js} +1 -1
- package/web/app/immutable/chunks/{BMEAT0TF.js → 0B7Q8v9n.js} +1 -1
- package/web/app/immutable/chunks/{CWCmwtaT.js → 0xS-75mY.js} +1 -1
- package/web/app/immutable/chunks/{3iolIAwd.js → 4AWS92de.js} +3 -3
- package/web/app/immutable/chunks/{gJi9ouj3.js → 4b6Kq3tJ.js} +3 -3
- package/web/app/immutable/chunks/{BgHKj8Lf.js → 5udn86t0.js} +1 -1
- package/web/app/immutable/chunks/{CgA5s6JR.js → 6RNYeQft.js} +1 -1
- package/web/app/immutable/chunks/{CIC9r-Zq.js → A75uzxLd.js} +3 -3
- package/web/app/immutable/chunks/{BFkQvJyF.js → A8wPsq0F.js} +53 -53
- package/web/app/immutable/chunks/{BUy9CatA.js → APmstwP5.js} +1 -1
- package/web/app/immutable/chunks/{DDNqIPXh.js → B02VOKO8.js} +2 -2
- package/web/app/immutable/chunks/{dKRsJqbo.js → B1T1jKgP.js} +6 -6
- package/web/app/immutable/chunks/{DHAPKUqz.js → B3jO_63a.js} +1 -1
- package/web/app/immutable/chunks/{yMXDdQ7F.js → BD3MwpxF.js} +1 -1
- package/web/app/immutable/chunks/{dBMqs1mm.js → BKHIBTx4.js} +1 -1
- package/web/app/immutable/chunks/{QYEePElC.js → BKqUtwx6.js} +1 -1
- package/web/app/immutable/chunks/{B1l2h1VV.js → BLCoN16l.js} +1 -1
- package/web/app/immutable/chunks/{gUJFvDs2.js → BM1emzRr.js} +1 -1
- package/web/app/immutable/chunks/{CeRV_3CI.js → BOrmWowX.js} +1 -1
- package/web/app/immutable/chunks/{CD3cbtxN.js → BPIybOms.js} +1 -1
- package/web/app/immutable/chunks/{AmpZgI9R.js → BPN-Likg.js} +3 -3
- package/web/app/immutable/chunks/{uF8K2sx6.js → BUEceROh.js} +2 -2
- package/web/app/immutable/chunks/{BMF25BiQ.js → BUIAIc_O.js} +1 -1
- package/web/app/immutable/chunks/{DKStgIlw.js → BVA6rkcP.js} +4 -4
- package/web/app/immutable/chunks/{C28RWNJE.js → BWAoi_nX.js} +1 -1
- package/web/app/immutable/chunks/{m1-2SLgl.js → BYi1LHpB.js} +1 -1
- package/web/app/immutable/chunks/{hixmrZA0.js → B_Uo3LjB.js} +1 -1
- package/web/app/immutable/chunks/{DjTyBeFU.js → BaxK9vhI.js} +2 -2
- package/web/app/immutable/chunks/{CEYa9Irz.js → Be1tqvyn.js} +1 -1
- package/web/app/immutable/chunks/{CwXJrsy1.js → BfHLmKhD.js} +1 -1
- package/web/app/immutable/chunks/{BxXmN8C1.js → Bg-aqKXt.js} +1 -1
- package/web/app/immutable/chunks/{QCPAD84f.js → BhHzQHSV.js} +1 -1
- package/web/app/immutable/chunks/{D-Hopyp-.js → BmU3aeP8.js} +2 -2
- package/web/app/immutable/chunks/{Cpusesk4.js → Bmz09DkI.js} +1 -1
- package/web/app/immutable/chunks/{CaKEpkEv.js → BnS7ei63.js} +1 -1
- package/web/app/immutable/chunks/{D7fo-Wvo.js → BpKci5Ku.js} +1 -1
- package/web/app/immutable/chunks/{BlabsmnJ.js → BrX0TI9y.js} +1 -1
- package/web/app/immutable/chunks/{BbYFq4aB.js → BsgHSD6W.js} +1 -1
- package/web/app/immutable/chunks/{CV1py53p.js → BtaMiCr5.js} +1 -1
- package/web/app/immutable/chunks/{8MGpSl9b.js → BzM8Has0.js} +1 -1
- package/web/app/immutable/chunks/{DsYmD-ep.js → C-EEgOSK.js} +1 -1
- package/web/app/immutable/chunks/{CPGFEajT.js → C0F_kzVt.js} +1 -1
- package/web/app/immutable/chunks/{CljA4gfU.js → C1ECYssJ.js} +2 -2
- package/web/app/immutable/chunks/{PaT7b0Ds.js → C8-U6LK9.js} +1 -1
- package/web/app/immutable/chunks/{CaTC3kvL.js → CDPobNmb.js} +3 -3
- package/web/app/immutable/chunks/{fOYvCKuw.js → CERdQBT2.js} +1 -1
- package/web/app/immutable/chunks/{73PNfJCO.js → CFijJviB.js} +1 -1
- package/web/app/immutable/chunks/{CQu1wzu3.js → CGPgsggz.js} +1 -1
- package/web/app/immutable/chunks/{dQbwSHlB.js → CPKJQkDY.js} +2 -2
- package/web/app/immutable/chunks/{BAsugYkE.js → CUYd8b-6.js} +1 -1
- package/web/app/immutable/chunks/{vYueGi3n.js → CXE0KbZs.js} +1 -1
- package/web/app/immutable/chunks/{BLDqdw1F.js → C_tq5OHb.js} +1 -1
- package/web/app/immutable/chunks/{Dg4cj9vl.js → Ca7II05m.js} +1 -1
- package/web/app/immutable/chunks/{D_gzP-ys.js → Cdbgk8ir.js} +1 -1
- package/web/app/immutable/chunks/{BihkJsqe.js → CeYui3s1.js} +1 -1
- package/web/app/immutable/chunks/{DAY_WHtU.js → CeZwJHvf.js} +1 -1
- package/web/app/immutable/chunks/{OZbo8xoU.js → Ceoti51u.js} +1 -1
- package/web/app/immutable/chunks/{BEIa0MMb.js → CfPrltta.js} +1 -1
- package/web/app/immutable/chunks/{XwaoL8Lm.js → Ci48jbGC.js} +1 -1
- package/web/app/immutable/chunks/{C282LNKB.js → ClE0toNS.js} +1 -1
- package/web/app/immutable/chunks/{KB4bFLwz.js → ClMmMgCD.js} +1 -1
- package/web/app/immutable/chunks/{GsEct_hW.js → Cr0fLwOu.js} +1 -1
- package/web/app/immutable/chunks/{CIOP6AMl.js → CrB6tgeT.js} +3 -3
- package/web/app/immutable/chunks/{pURqtRkT.js → Csa04qXu.js} +1 -1
- package/web/app/immutable/chunks/{DCCz1NNc.js → Cz8U_BhG.js} +1 -1
- package/web/app/immutable/chunks/{CKMgAIkO.js → D-sc8KNL.js} +1 -1
- package/web/app/immutable/chunks/{C1LaBjf2.js → D0FyWJCg.js} +1 -1
- package/web/app/immutable/chunks/{DGAOkf5G.js → D0j9kjWE.js} +1 -1
- package/web/app/immutable/chunks/{CBsdGtQV.js → D3c3sLpX.js} +1 -1
- package/web/app/immutable/chunks/{Q0b4mMUd.js → D6_50bPj.js} +1 -1
- package/web/app/immutable/chunks/{-ugFrjBP.js → D8-xFBX8.js} +1 -1
- package/web/app/immutable/chunks/{DU5U6sZ4.js → DE35PYUh.js} +1 -1
- package/web/app/immutable/chunks/{DbH_6hIt.js → DFrOZp-X.js} +1 -1
- package/web/app/immutable/chunks/{J5tyH4KI.js → DJUIc5At.js} +1 -1
- package/web/app/immutable/chunks/{BHUUHkBu.js → DKe2FlOB.js} +1 -1
- package/web/app/immutable/chunks/{D03heroa.js → DMhvq8HB.js} +1 -1
- package/web/app/immutable/chunks/{CC3KUVRg.js → DN-C1UIq.js} +2 -2
- package/web/app/immutable/chunks/{BnCNqKRU.js → DNv_RGW3.js} +1 -1
- package/web/app/immutable/chunks/{DFWsNv-9.js → DPCNtTZq.js} +1 -1
- package/web/app/immutable/chunks/{DXBo-ieH.js → DPUp3KYX.js} +1 -1
- package/web/app/immutable/chunks/{CXZX0Jyy.js → DQDmfNyd.js} +1 -1
- package/web/app/immutable/chunks/{D5YE7F3s.js → DQWu85Mb.js} +2 -2
- package/web/app/immutable/chunks/{2t2LgMaE.js → DR3YuSFV.js} +1 -1
- package/web/app/immutable/chunks/{D6tHef4X.js → DRUI_xnx.js} +1 -1
- package/web/app/immutable/chunks/{CgL7BKGj.js → DT9dG-TY.js} +1 -1
- package/web/app/immutable/chunks/{B4hoYjE1.js → DUrytYjS.js} +1 -1
- package/web/app/immutable/chunks/{D51stRIp.js → D_AmMnb5.js} +1 -1
- package/web/app/immutable/chunks/{CKLHmnzS.js → DaUgBLNw.js} +1 -1
- package/web/app/immutable/chunks/{DD4D50zt.js → DcT7aUbr.js} +3 -3
- package/web/app/immutable/chunks/{FdmBXH7-.js → DdFkN_Uh.js} +3 -3
- package/web/app/immutable/chunks/{DUwMZIs5.js → DdUNQfBj.js} +1 -1
- package/web/app/immutable/chunks/{-ogTTEVR.js → DeOcwvAg.js} +1 -1
- package/web/app/immutable/chunks/{DUhz2O6j.js → DgQR8hwI.js} +2 -2
- package/web/app/immutable/chunks/{CVOMPYj7.js → DjZBBD78.js} +1 -1
- package/web/app/immutable/chunks/{C7gK0hjH.js → DoUhQNMs.js} +1 -1
- package/web/app/immutable/chunks/{DyIdFHWg.js → Dq9wWY8h.js} +4 -4
- package/web/app/immutable/chunks/{BN40Pz7Q.js → DqXlwkEw.js} +1 -1
- package/web/app/immutable/chunks/{BosDWqqJ.js → DqYxGkQL.js} +1 -1
- package/web/app/immutable/chunks/{chQKQ42P.js → Ds2frkR2.js} +1 -1
- package/web/app/immutable/chunks/{uYiY7g1G.js → DsYzG-3M.js} +1 -1
- package/web/app/immutable/chunks/{Cm1ymPOr.js → Du3d0ZG1.js} +1 -1
- package/web/app/immutable/chunks/{DMwhpJPa.js → DuGiQV5V.js} +1 -1
- package/web/app/immutable/chunks/{CIuVMN6u.js → Dv8Emx47.js} +1 -1
- package/web/app/immutable/chunks/{COopnGAi.js → Dwj6kdDc.js} +1 -1
- package/web/app/immutable/chunks/{C4vS05Jk.js → Dyv3Jj2a.js} +1 -1
- package/web/app/immutable/chunks/{VmEbWn47.js → DzJIX3GL.js} +1 -1
- package/web/app/immutable/chunks/{DgHGLFU5.js → DzNGKDWB.js} +3 -3
- package/web/app/immutable/chunks/{C_mcjZaG.js → Dzx9X-9k.js} +1 -1
- package/web/app/immutable/chunks/{Daw9x1so.js → HmoNvWUs.js} +1 -1
- package/web/app/immutable/chunks/{Doch7eZJ.js → OUquJguY.js} +1 -1
- package/web/app/immutable/chunks/{BuiibPQ0.js → Pn_zpYMA.js} +2 -2
- package/web/app/immutable/chunks/{BUGywCIT.js → Rm2Ltxr1.js} +1 -1
- package/web/app/immutable/chunks/{D8O2ptyi.js → RpqMTdHp.js} +1 -1
- package/web/app/immutable/chunks/{B4Gw4u41.js → UMoQbEGi.js} +1 -1
- package/web/app/immutable/chunks/{CrjrDD4B.js → Uc65kQcs.js} +1 -1
- package/web/app/immutable/chunks/{D-HlUjN8.js → WHU-VgW2.js} +1 -1
- package/web/app/immutable/chunks/{DcF7bBOi.js → bpjEJ3Vs.js} +1 -1
- package/web/app/immutable/chunks/{IOZQYi_N.js → cEbJGV0n.js} +1 -1
- package/web/app/immutable/chunks/{CRAXdXhx.js → fMSSCdyW.js} +1 -1
- package/web/app/immutable/chunks/{BACGkWpW.js → pW4P-CQP.js} +1 -1
- package/web/app/immutable/chunks/{BBV9e85e.js → qz4jsx2y.js} +1 -1
- package/web/app/immutable/chunks/{SfwE5ZCh.js → tZdyA4Cc.js} +1 -1
- package/web/app/immutable/chunks/{B_bCRHRO.js → tg0ajfyX.js} +1 -1
- package/web/app/immutable/entry/{app.jyFRb7mj.js → app.B_j4c4ni.js} +2 -2
- package/web/app/immutable/entry/start.CShKopZ1.js +1 -0
- package/web/app/immutable/nodes/{0.CMRnckcg.js → 0.pKLAp1FZ.js} +1 -1
- package/web/app/immutable/nodes/{1.DA5kZHG8.js → 1.V5hFULBJ.js} +1 -1
- package/web/app/immutable/nodes/{10.CMlavsC2.js → 10.DTk6oKYi.js} +4 -4
- package/web/app/immutable/nodes/{11.HWYVN_5u.js → 11.BuHoaGEB.js} +1 -1
- package/web/app/immutable/nodes/{15.gWMczKN8.js → 15.CdCP66mF.js} +1 -1
- package/web/app/immutable/nodes/{19.tLEj2iwM.js → 19.BgOZ-pEt.js} +2 -2
- package/web/app/immutable/nodes/{2.B0ukOd9w.js → 2.DW28_r0R.js} +4 -4
- package/web/app/immutable/nodes/{3.DjzGGcqZ.js → 3.Dk7zPLK1.js} +1 -1
- package/web/app/immutable/nodes/{4.BU55NPd2.js → 4.Bz5UF4_5.js} +1 -1
- package/web/app/immutable/nodes/{5.DwlV2hhR.js → 5.B1xW3m_S.js} +1 -1
- package/web/app/immutable/nodes/{6.Cu59QBVh.js → 6.DSxB0Tsx.js} +1 -1
- package/web/app/immutable/nodes/{7.CxjNtSrB.js → 7.DLMT-3--.js} +1 -1
- package/web/app/immutable/nodes/{8.CxVOKV5c.js → 8.I5kk_EaM.js} +1 -1
- package/web/app/immutable/nodes/{9.BBKdDnSL.js → 9.B05AownH.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.CzSqdTuj.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as c,_ as p}from"./DUPdECze.js";import{m as k}from"./BDjmUG9E.js";import"./CJxGDkBm.js";import"./DYGZj8tM.js";import"./NvPqoUzX.js";import{Q as A}from"./DeOvWG_V.js";import"./ChTqQfQN.js";import"./CtnMBSuA.js";import{i as L,I$ as d,vs as g,vu as v}from"./Dou_hoaA.js";import{a9 as R}from"./R5qsERXh.js";import{selectCurrentWorkspaceTabId as P}from"./Bu_2dHSO.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&I(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&I(a[0])&&I(a[2])&&I(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!I(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function I(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return k.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CUYd8b-6.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BeAfjfr4.js","/app/immutable/chunks/DUPdECze.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/Dou_hoaA.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CxNkcb8W.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/NvPqoUzX.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/gsFx6FSh.js","/app/immutable/chunks/DeOvWG_V.js","/app/immutable/chunks/BophAjr8.js","/app/immutable/chunks/DYGZj8tM.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Cu2deF-X.js","/app/immutable/chunks/CQpwPlmg.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B2F1R5gp.js","/app/immutable/chunks/R5qsERXh.js","/app/immutable/chunks/DWlZtz5u.js","/app/immutable/chunks/DKOGfBeL.js","/app/immutable/chunks/BxPVGrtc.js","/app/immutable/chunks/CDDY7bU6.js","/app/immutable/chunks/Dc_PiRux.js","/app/immutable/chunks/CzTFPES1.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B02VOKO8.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DqYxGkQL.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as c,_ as p}from"./DUPdECze.js";import{m as k}from"./BDjmUG9E.js";import"./CJxGDkBm.js";import"./DYGZj8tM.js";import"./NvPqoUzX.js";import{Q as A}from"./DeOvWG_V.js";import"./ChTqQfQN.js";import"./CtnMBSuA.js";import{i as L,I$ as d,vs as g,vu as v}from"./Dou_hoaA.js";import{a9 as R}from"./R5qsERXh.js";import{selectCurrentWorkspaceTabId as P}from"./Bu_2dHSO.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&I(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&I(a[0])&&I(a[2])&&I(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!I(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function I(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return k.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./CUYd8b-6.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:k.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?k.error(c.ui_linkHandler_notFound_title(),{description:n.message}):k.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Q(e,r){return R(e,r)}function Z(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./BeAfjfr4.js").then(o=>o.o);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./DqYxGkQL.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./DqYxGkQL.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./DqYxGkQL.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./DeOvWG_V.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,Z as createIntentLinkClickHandler,Q as generateNoteLink,T as handleIntentLink,W as parseIntentLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,aW as o}from"./
|
|
1
|
+
import{b as a,aW as o}from"./BVA6rkcP.js";var g=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g};
|
|
@@ -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"./BVA6rkcP.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{J as h}from"./
|
|
1
|
+
import{J as h}from"./DJUIc5At.js";import{c as v}from"./ChTqQfQN.js";import{O as d}from"./DeOvWG_V.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};
|