@intent-hq/web 2.342.7 → 2.342.8
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/{BnitCeat.js → -2bHDplp.js} +1 -1
- package/web/app/immutable/chunks/{CXcj874Z.js → 0tj_yJAd.js} +1 -1
- package/web/app/immutable/chunks/{BKpOvX9G.js → 3_J6fjhO.js} +1 -1
- package/web/app/immutable/chunks/{BYAu4CZw.js → 72kV58Ql.js} +2 -2
- package/web/app/immutable/chunks/{CC5PGmW5.js → 762lAjev.js} +6 -6
- package/web/app/immutable/chunks/{ZuMFBEjQ.js → 8_7J_rxm.js} +1 -1
- package/web/app/immutable/chunks/{D_m2fm5D.js → 8dcwmYMD.js} +1 -1
- package/web/app/immutable/chunks/{Bfo8_CU3.js → B0Eu_1Zr.js} +1 -1
- package/web/app/immutable/chunks/{nwXxUBuS.js → B5QVp6A0.js} +1 -1
- package/web/app/immutable/chunks/{BfzEsPph.js → B6UkjkkG.js} +1 -1
- package/web/app/immutable/chunks/{7fhht5I8.js → B82-1O1e.js} +1 -1
- package/web/app/immutable/chunks/{Dm2ss5_c.js → B87Opa04.js} +1 -1
- package/web/app/immutable/chunks/{DDH0zMMC.js → BAr6DP2S.js} +1 -1
- package/web/app/immutable/chunks/{DMKQGy8l.js → BGKHyW3m.js} +1 -1
- package/web/app/immutable/chunks/{Pm0lnWkx.js → BHOPo_9A.js} +1 -1
- package/web/app/immutable/chunks/{DLbna4Xr.js → BI40CZU_.js} +1 -1
- package/web/app/immutable/chunks/{Cy81Kj9q.js → BKZOB6N7.js} +1 -1
- package/web/app/immutable/chunks/{uRAjPX0f.js → BKrFdF0K.js} +1 -1
- package/web/app/immutable/chunks/{yoNS8YEK.js → BM2TfFMT.js} +1 -1
- package/web/app/immutable/chunks/{Dwp3tM-t.js → BOhFt8_6.js} +1 -1
- package/web/app/immutable/chunks/{wdhpIuGJ.js → BQ-M1wvC.js} +1 -1
- package/web/app/immutable/chunks/{sCpE28HM.js → BTRr_gVO.js} +4 -4
- package/web/app/immutable/chunks/{CFGZklSa.js → BVX8qLeE.js} +1 -1
- package/web/app/immutable/chunks/{BOzoiihY.js → BXtYtFFm.js} +1 -1
- package/web/app/immutable/chunks/{aC4tGXL1.js → BYOZsc06.js} +1 -1
- package/web/app/immutable/chunks/{ph8Nd_I4.js → BYR3hbm1.js} +1 -1
- package/web/app/immutable/chunks/{CO6o0ow_.js → BZRAoPBg.js} +1 -1
- package/web/app/immutable/chunks/{DStb0AX2.js → B_FQfWfg.js} +1 -1
- package/web/app/immutable/chunks/{D4bct-7B.js → B_gooRw3.js} +1 -1
- package/web/app/immutable/chunks/{DaWaPdpr.js → BbiotSng.js} +1 -1
- package/web/app/immutable/chunks/{BrFp3_k_.js → BbpzcJJv.js} +1 -1
- package/web/app/immutable/chunks/{jKsfsjyZ.js → BhR1rUz4.js} +4 -4
- package/web/app/immutable/chunks/{DYoD7wrn.js → Bip3iRY7.js} +4 -4
- package/web/app/immutable/chunks/{XLnbre-3.js → BlJpnECK.js} +3 -3
- package/web/app/immutable/chunks/{B43n18i9.js → BqUo6Ktu.js} +2 -2
- package/web/app/immutable/chunks/{dyXuuMGX.js → Br4sh5Vb.js} +1 -1
- package/web/app/immutable/chunks/{ChXvE919.js → C62uwcSa.js} +1 -1
- package/web/app/immutable/chunks/{CqVlcKvY.js → C6ijr8RP.js} +1 -1
- package/web/app/immutable/chunks/{BQHdX7oS.js → CCguRiXg.js} +1 -1
- package/web/app/immutable/chunks/{x3Z0Jdd-.js → CEQ56sKb.js} +1 -1
- package/web/app/immutable/chunks/{Byoirc2y.js → CEcvV5G3.js} +1 -1
- package/web/app/immutable/chunks/{KTGIW7-i.js → CK9cQMVJ.js} +1 -1
- package/web/app/immutable/chunks/{DSEUYTjc.js → CPNo3Wxe.js} +1 -1
- package/web/app/immutable/chunks/{D6x_Ypsw.js → CSVFP6Jt.js} +1 -1
- package/web/app/immutable/chunks/{2bL-DWF8.js → CUfXGQXK.js} +1 -1
- package/web/app/immutable/chunks/{Bs_ptKn3.js → CVWq5h5S.js} +1 -1
- package/web/app/immutable/chunks/{BsZkUggd.js → CVimJ6Rz.js} +1 -1
- package/web/app/immutable/chunks/{CFA_J9HH.js → CVnjH67L.js} +1 -1
- package/web/app/immutable/chunks/{C-YuekNV.js → CVoHD481.js} +1 -1
- package/web/app/immutable/chunks/{B1tryRmt.js → CYrZeetF.js} +1 -1
- package/web/app/immutable/chunks/{BjGjodbN.js → CZ4naQ1D.js} +1 -1
- package/web/app/immutable/chunks/{3-IHKjlM.js → C_MoDXbz.js} +1 -1
- package/web/app/immutable/chunks/{B2EoBFvF.js → C_YySiHw.js} +1 -1
- package/web/app/immutable/chunks/{Cb_UaPU9.js → CbGy5L3Y.js} +1 -1
- package/web/app/immutable/chunks/{uKWO-p3P.js → CdwWwIxc.js} +1 -1
- package/web/app/immutable/chunks/{Bv3dwTkC.js → CfcPGi-s.js} +3 -3
- package/web/app/immutable/chunks/{DzVW75sP.js → ChCEEi91.js} +2 -2
- package/web/app/immutable/chunks/{Dc6iElDg.js → CiJxgZE6.js} +1 -1
- package/web/app/immutable/chunks/{CyCduoBz.js → Cj0F5ihH.js} +1 -1
- package/web/app/immutable/chunks/{0__pctoR.js → Cn2QoVqR.js} +4 -4
- package/web/app/immutable/chunks/{BN8k_LN_.js → Cnv943xM.js} +1 -1
- package/web/app/immutable/chunks/{BU93jIdu.js → CqAUygYd.js} +1 -1
- package/web/app/immutable/chunks/{DztaK47x.js → CqOHERUX.js} +3 -3
- package/web/app/immutable/chunks/{BvjuBRrU.js → Crf8zlEl.js} +1 -1
- package/web/app/immutable/chunks/{DrZKgclg.js → CsZ8CKOb.js} +1 -1
- package/web/app/immutable/chunks/{KJKVPohZ.js → CwkZa8IK.js} +1 -1
- package/web/app/immutable/chunks/{DndetRc8.js → CxR88OSV.js} +1 -1
- package/web/app/immutable/chunks/{C1gsmzFP.js → D1Ne8i3Y.js} +1 -1
- package/web/app/immutable/chunks/{CVGihEeT.js → D3bgZo3Z.js} +2 -2
- package/web/app/immutable/chunks/{BrVbupVh.js → D6AnRuxJ.js} +1 -1
- package/web/app/immutable/chunks/{weVd7rrQ.js → D8kRzVzM.js} +3 -3
- package/web/app/immutable/chunks/{B7E7WOal.js → DARBmEKl.js} +1 -1
- package/web/app/immutable/chunks/{vmBlHv-D.js → DAy_opbr.js} +1 -1
- package/web/app/immutable/chunks/{B-tJCxfF.js → DBwzp-5d.js} +1 -1
- package/web/app/immutable/chunks/{CtuToPdI.js → DCWQ8q2B.js} +1 -1
- package/web/app/immutable/chunks/{DICqSOP4.js → DE1Y_Mqg.js} +1 -1
- package/web/app/immutable/chunks/{B4bu8I3l.js → DGLoeWwC.js} +1 -1
- package/web/app/immutable/chunks/{DZ1h_h8F.js → DKyOFl-H.js} +1 -1
- package/web/app/immutable/chunks/{Bg8qfflO.js → DODWySkx.js} +1 -1
- package/web/app/immutable/chunks/{81Mgflg6.js → DP9aVWvY.js} +2 -2
- package/web/app/immutable/chunks/{CA9igU-5.js → DPULIKQk.js} +1 -1
- package/web/app/immutable/chunks/{DGtUk2rN.js → DQJZrn_X.js} +1 -1
- package/web/app/immutable/chunks/{BtMkC507.js → DSWsYH8C.js} +1 -1
- package/web/app/immutable/chunks/{DnST-fUG.js → DTQGk7-p.js} +1 -1
- package/web/app/immutable/chunks/{EHIIQoaI.js → DUMC5ag4.js} +1 -1
- package/web/app/immutable/chunks/{BK4fUwIg.js → DUfPBqyv.js} +1 -1
- package/web/app/immutable/chunks/{5BF5QoAt.js → DWfKl2G1.js} +2 -2
- package/web/app/immutable/chunks/{BRvExEEH.js → DZIpsGdM.js} +1 -1
- package/web/app/immutable/chunks/{jNO-OB34.js → D_cxHEqU.js} +12 -12
- package/web/app/immutable/chunks/{mczrSehj.js → Db-yEKas.js} +1 -1
- package/web/app/immutable/chunks/{BUBF8pb7.js → Db9BDdTM.js} +1 -1
- package/web/app/immutable/chunks/{D-bwIL9J.js → DbZTkkyC.js} +1 -1
- package/web/app/immutable/chunks/{C-XuUNtI.js → DbaSDcEd.js} +1 -1
- package/web/app/immutable/chunks/{0uQlOtUt.js → DdjKmyFb.js} +1 -1
- package/web/app/immutable/chunks/{RwDyEmMe.js → DdroO4BP.js} +1 -1
- package/web/app/immutable/chunks/{DlyBQNia.js → Dfs3_YYJ.js} +1 -1
- package/web/app/immutable/chunks/{CkE1XUst.js → DiLL3u8G.js} +1 -1
- package/web/app/immutable/chunks/{DeK9Yn3O.js → DksiAt8J.js} +1 -1
- package/web/app/immutable/chunks/{Cw81XEbl.js → Dm9UWIDS.js} +1 -1
- package/web/app/immutable/chunks/{wiJ30FmU.js → Dnnm3rWT.js} +1 -1
- package/web/app/immutable/chunks/{CNcAWnlk.js → DorrRHA9.js} +1 -1
- package/web/app/immutable/chunks/{CxXJfgTo.js → DqyPPCyO.js} +2 -2
- package/web/app/immutable/chunks/{BsTn55iz.js → DtsUKbfD.js} +1 -1
- package/web/app/immutable/chunks/{yOUGavVw.js → DzBSnte5.js} +1 -1
- package/web/app/immutable/chunks/{B6M0mzGV.js → H1fgmcwF.js} +1 -1
- package/web/app/immutable/chunks/{BRv1ZXfD.js → NAs2sQwc.js} +1 -1
- package/web/app/immutable/chunks/{GMPlwEyF.js → Pvi3xCgN.js} +1 -1
- package/web/app/immutable/chunks/{CpSD2n1c.js → QroQeT1R.js} +1 -1
- package/web/app/immutable/chunks/{dbcXdsxE.js → TpcWfRK3.js} +1 -1
- package/web/app/immutable/chunks/{lEJsx3hZ.js → TudrisM3.js} +1 -1
- package/web/app/immutable/chunks/{CdzjY4ym.js → W4n-ioby.js} +1 -1
- package/web/app/immutable/chunks/{Cf1dxYi1.js → Zz2ufh_s.js} +1 -1
- package/web/app/immutable/chunks/{XOWNhrWJ.js → b6oXDh_T.js} +3 -3
- package/web/app/immutable/chunks/{DzOaHgXZ.js → eHnFo4lI.js} +1 -1
- package/web/app/immutable/chunks/{BvUkJ09o.js → eqoPYRQw.js} +1 -1
- package/web/app/immutable/chunks/{CdfzwZnI.js → h1qD8ry7.js} +1 -1
- package/web/app/immutable/chunks/{BVqUxKN1.js → hC1Rd2xp.js} +1 -1
- package/web/app/immutable/chunks/{B9fp6kqr.js → hPM-hpF1.js} +1 -1
- package/web/app/immutable/chunks/{Bj0GWDrC.js → l0-9ftmB.js} +1 -1
- package/web/app/immutable/chunks/{BOu-FYZd.js → m-4S75UZ.js} +1 -1
- package/web/app/immutable/chunks/{BFKxmV8S.js → ob_UjBCd.js} +2 -2
- package/web/app/immutable/chunks/{D2iF6A-U.js → olZe0-nS.js} +1 -1
- package/web/app/immutable/chunks/{-uz97i1u.js → teiHBTP_.js} +1 -1
- package/web/app/immutable/chunks/{IvT7mBeW.js → zFLt0HSh.js} +1 -1
- package/web/app/immutable/entry/{app.R58o80xF.js → app.PZ5Y9PBf.js} +2 -2
- package/web/app/immutable/entry/start.BY0gUtqa.js +1 -0
- package/web/app/immutable/nodes/{0.ZRuBCk9D.js → 0.NhRN4wpn.js} +1 -1
- package/web/app/immutable/nodes/{1.Dbrbs161.js → 1.rxmnWftv.js} +1 -1
- package/web/app/immutable/nodes/{10.LXIiQtGr.js → 10.B5uqPVYd.js} +1 -1
- package/web/app/immutable/nodes/{14.BWSpr9xw.js → 14.BNz2Qn0-.js} +1 -1
- package/web/app/immutable/nodes/{17.CxskJc_c.js → 17.DmFoGT2O.js} +2 -2
- package/web/app/immutable/nodes/{2.Cq-DTeBS.js → 2.BewlISWX.js} +4 -4
- package/web/app/immutable/nodes/{3.-sm_jIPB.js → 3.Dh75TGTq.js} +1 -1
- package/web/app/immutable/nodes/{4.Ckk9ehoz.js → 4.D_lzUIO2.js} +1 -1
- package/web/app/immutable/nodes/{5.DMX5buaT.js → 5.D-mFbexK.js} +1 -1
- package/web/app/immutable/nodes/{6.Bn75feRA.js → 6.Cgb9LGMD.js} +1 -1
- package/web/app/immutable/nodes/{7.DXLw3Vcp.js → 7.CEKTuRJF.js} +1 -1
- package/web/app/immutable/nodes/{8.Co83gfVy.js → 8.Dwn9d0dT.js} +4 -4
- package/web/app/immutable/nodes/{9.BkOJTqq8.js → 9.JcoFlsdV.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.CE-s8jdK.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Iy as g,ro as b,Ib as S}from"./D5ej8a-y.js";import{V as A,bk as _}from"./CRsmjbca.js";import{bv as k}from"./D3QcPFoL.js";import{bM as y,bI as w}from"./
|
|
1
|
+
import{Iy as g,ro as b,Ib as S}from"./D5ej8a-y.js";import{V as A,bk as _}from"./CRsmjbca.js";import{bv as k}from"./D3QcPFoL.js";import{bM as y,bI as w}from"./hPM-hpF1.js";import{bp as n}from"./DXyyWeag.js";import{t as I}from"./BboIV5H5.js";const z=g.createSelector(e=>e.backgroundAgentSettings.defaultModel),B=g.createSelector(e=>e.backgroundAgentSettings.typeOverrides),G=g.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),W=g.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),j=g.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["plugins","Plugins","App-wide Agent Plugins.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["labs","Labs","Experimental feature switches.","advanced"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function P(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(P).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function F(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const U=g.createSelector(e=>{const t=new Map,i=(s,c)=>{const d=t.get(s)??new Set;d.add(c),t.set(s,d)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),d=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>d&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:d,path:c}):d?n.settings_providers_inUseSource_label({reason:l,source:d}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:I(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
|
|
2
2
|
`)]))});g.createSelector((e,t)=>U.select(e)[t]??null);const O=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],q=O.map(({id:e})=>e);export{q as T,O as a,G as b,j as c,B as d,W as e,U as f,F as i,R as r,z as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as W}from"./
|
|
1
|
+
import{I as W}from"./Db9BDdTM.js";import{p as X}from"./B0Eu_1Zr.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./Cn2QoVqR.js";import{p as te}from"./2gme4FSl.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
|
|
2
2
|
`),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||T.test(c)||V.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=re.repeat(m);o.push(O+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
|
|
3
3
|
`),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new W(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:z},I=de,he=g(n=>{X(n,I);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(C,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;k(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
|
|
4
4
|
`+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,n);return`
|