agentstudio 0.1.22 → 0.1.24

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.
Files changed (95) hide show
  1. package/bin/agentstudio.js +26 -4
  2. package/bin/agentstudio.js.map +1 -1
  3. package/index.d.ts.map +1 -1
  4. package/index.js +19 -9
  5. package/index.js.map +1 -1
  6. package/package.json +1 -1
  7. package/public/assets/{AgentsPage-CtuoPrly.js → AgentsPage-B9LqnzMR.js} +1 -1
  8. package/public/assets/{Button-DtXXTa68.js → Button-CW3rD--S.js} +1 -1
  9. package/public/assets/{ChatPage-Ht-lF7H1.js → ChatPage-BmPDhIa_.js} +4 -4
  10. package/public/assets/{CommandForm-hHwraC0y.js → CommandForm-owyuRt5W.js} +1 -1
  11. package/public/assets/{CommandsPage-DLySuqrX.js → CommandsPage-adcn3ZfZ.js} +1 -1
  12. package/public/assets/{DashboardPage-BuUwTPV6.js → DashboardPage-VO2_kktD.js} +1 -1
  13. package/public/assets/{FileBrowser-CDuDggHj.js → FileBrowser-CaAtXHII.js} +4 -4
  14. package/public/assets/{FileExplorer-D5l2HgDS.js → FileExplorer-EenwcuMv.js} +1 -1
  15. package/public/assets/{GeneralSettingsPage-EODcSgWo.js → GeneralSettingsPage-DRssPHeG.js} +1 -1
  16. package/public/assets/{LandingPage-BAPul_Kj.js → LandingPage-DKOYWSbs.js} +1 -1
  17. package/public/assets/{LoginPage-CQo-eq6b.js → LoginPage-C1OhnLa_.js} +1 -1
  18. package/public/assets/{McpAdminSettingsPage-BlEhZLV9.js → McpAdminSettingsPage-CWO0l7iL.js} +1 -1
  19. package/public/assets/{McpPage-DLMLfSAG.js → McpPage-Bfff_2Ai.js} +1 -1
  20. package/public/assets/{MemorySettingsPage-By_AtsBT.js → MemorySettingsPage-BDWuqEtY.js} +1 -1
  21. package/public/assets/{PluginsPage-1Z4TkAow.js → PluginsPage-9Rmzt3Rm.js} +1 -1
  22. package/public/assets/{ProjectSelector-2mn8IO5d.js → ProjectSelector--9kdPm_M.js} +1 -1
  23. package/public/assets/{ProjectsPage-CWWZuVNb.js → ProjectsPage-YkfU9rAi.js} +1 -1
  24. package/public/assets/{ScheduledTasksPage-BcosBF2P.js → ScheduledTasksPage-Bc9W24zN.js} +1 -1
  25. package/public/assets/SettingsLayout-Dy3trHPB.js +1 -0
  26. package/public/assets/{SkillsPage-zIEnU63B.js → SkillsPage-2UELBXF4.js} +1 -1
  27. package/public/assets/{SubagentForm-DEzelVPW.js → SubagentForm-DPwXuXlv.js} +1 -1
  28. package/public/assets/{SubagentsPage-CS6hYApE.js → SubagentsPage-DnWhOVsV.js} +1 -1
  29. package/public/assets/{ToastTestPage-7Uhhhl-X.js → ToastTestPage-B0RRJmi5.js} +1 -1
  30. package/public/assets/{ToolsList-I7JqIU7m.js → ToolsList-BEI5_57D.js} +1 -1
  31. package/public/assets/{UnifiedToolSelector-Cw1xKmPZ.js → UnifiedToolSelector-CUDMlVoZ.js} +1 -1
  32. package/public/assets/{VersionSettingsPage-7qtAfOC7.js → VersionSettingsPage-CZxXDAAE.js} +1 -1
  33. package/public/assets/{_basePickBy-DQTDhNdw.js → _basePickBy-DI8-gpT1.js} +1 -1
  34. package/public/assets/{_baseUniq-B_gfAzTb.js → _baseUniq-BpU6dVPB.js} +1 -1
  35. package/public/assets/{agents-B3InAIfY.js → agents-D6AHwN6G.js} +1 -1
  36. package/public/assets/{arc-Do_7w4P3.js → arc-Rx6SLR8P.js} +1 -1
  37. package/public/assets/{architectureDiagram-VXUJARFQ-CGxYnv44.js → architectureDiagram-VXUJARFQ-74Xp_5Wk.js} +1 -1
  38. package/public/assets/{blockDiagram-VD42YOAC-DMToAyob.js → blockDiagram-VD42YOAC-C26_2YFA.js} +1 -1
  39. package/public/assets/{c4Diagram-YG6GDRKO-CEukDAnl.js → c4Diagram-YG6GDRKO-rQ7Sg7Wk.js} +1 -1
  40. package/public/assets/channel-BnHE6l2D.js +1 -0
  41. package/public/assets/{chunk-4BX2VUAB-Djex-iWv.js → chunk-4BX2VUAB-C1xC4huD.js} +1 -1
  42. package/public/assets/{chunk-55IACEB6-Dq-JM11t.js → chunk-55IACEB6-DpA-lssp.js} +1 -1
  43. package/public/assets/{chunk-B4BG7PRW-COcDV1Bz.js → chunk-B4BG7PRW-B4FOynej.js} +1 -1
  44. package/public/assets/{chunk-DI55MBZ5-AiToZLMc.js → chunk-DI55MBZ5-BJwVmP1E.js} +1 -1
  45. package/public/assets/{chunk-FMBD7UC4-CIUbRtI8.js → chunk-FMBD7UC4-D96JjPGn.js} +1 -1
  46. package/public/assets/{chunk-QN33PNHL-DWVKAIM5.js → chunk-QN33PNHL-DkswGqpp.js} +1 -1
  47. package/public/assets/{chunk-QZHKN3VN-CH3FeiqK.js → chunk-QZHKN3VN-ABdEDb4K.js} +1 -1
  48. package/public/assets/{chunk-TZMSLE5B-DAEUDEL5.js → chunk-TZMSLE5B-2IIdZBaL.js} +1 -1
  49. package/public/assets/classDiagram-2ON5EDUG-CTS5wt-5.js +1 -0
  50. package/public/assets/classDiagram-v2-WZHVMYZB-CTS5wt-5.js +1 -0
  51. package/public/assets/clone-BAGmJRX5.js +1 -0
  52. package/public/assets/{cose-bilkent-S5V4N54A-CyCeb_x1.js → cose-bilkent-S5V4N54A-BRJzSOA9.js} +1 -1
  53. package/public/assets/{dagre-6UL2VRFP-D2pLZr7B.js → dagre-6UL2VRFP-CyspA2sK.js} +1 -1
  54. package/public/assets/{diagram-PSM6KHXK-D3y-uGlf.js → diagram-PSM6KHXK-D2Be0BvE.js} +1 -1
  55. package/public/assets/{diagram-QEK2KX5R-BWiK1jr7.js → diagram-QEK2KX5R-DBN-iReL.js} +1 -1
  56. package/public/assets/{diagram-S2PKOQOG-Cbs-OyQV.js → diagram-S2PKOQOG-TgieQ_Qa.js} +1 -1
  57. package/public/assets/{erDiagram-Q2GNP2WA-mmj7cEQ3.js → erDiagram-Q2GNP2WA-DGxfS2rl.js} +1 -1
  58. package/public/assets/{flowDiagram-NV44I4VS-C-D2yYgt.js → flowDiagram-NV44I4VS-DfzFZA_E.js} +1 -1
  59. package/public/assets/{ganttDiagram-LVOFAZNH-CjVweKuf.js → ganttDiagram-LVOFAZNH-C070lUxD.js} +1 -1
  60. package/public/assets/{gitGraphDiagram-NY62KEGX-B5Fajpr9.js → gitGraphDiagram-NY62KEGX-Dtx_CAB8.js} +1 -1
  61. package/public/assets/{graph-BkrzwQTG.js → graph-CVxYx3Pf.js} +1 -1
  62. package/public/assets/{index-C8oBHB0h.js → index-VZ8BD_2q.js} +26 -26
  63. package/public/assets/infoDiagram-F6ZHWCRC-wciq3AJm.js +2 -0
  64. package/public/assets/{journeyDiagram-XKPGCS4Q-G0GXThg3.js → journeyDiagram-XKPGCS4Q-Doo7bbK4.js} +1 -1
  65. package/public/assets/{kanban-definition-3W4ZIXB7-CL5GnHw8.js → kanban-definition-3W4ZIXB7-ySUSdsMd.js} +1 -1
  66. package/public/assets/{layout-Dv8_9WGx.js → layout-RBiaQ3BD.js} +1 -1
  67. package/public/assets/{linear-Bo6VfLsh.js → linear-CXm0SnMf.js} +1 -1
  68. package/public/assets/{mindmap-definition-VGOIOE7T-Bs3tu0GR.js → mindmap-definition-VGOIOE7T-DcvFn5_f.js} +1 -1
  69. package/public/assets/{pieDiagram-ADFJNKIX-Cb8bwKps.js → pieDiagram-ADFJNKIX-Ds2zvkRu.js} +1 -1
  70. package/public/assets/{quadrantDiagram-AYHSOK5B-Dbrv0MtL.js → quadrantDiagram-AYHSOK5B-B1Y817H5.js} +1 -1
  71. package/public/assets/{requirementDiagram-UZGBJVZJ-nBiRIqA6.js → requirementDiagram-UZGBJVZJ-NlxZm-hZ.js} +1 -1
  72. package/public/assets/{sankeyDiagram-TZEHDZUN-CxJ9tzJO.js → sankeyDiagram-TZEHDZUN-Bp6uTBx3.js} +1 -1
  73. package/public/assets/{sequenceDiagram-WL72ISMW-Cd7CbJ23.js → sequenceDiagram-WL72ISMW-DYDJBnXk.js} +1 -1
  74. package/public/assets/{stateDiagram-FKZM4ZOC-BUzdDNZC.js → stateDiagram-FKZM4ZOC-DreRcts0.js} +1 -1
  75. package/public/assets/stateDiagram-v2-4FDKWEC3-DVn3R4qq.js +1 -0
  76. package/public/assets/{table-CHBLEjZn.js → table-Cmm9Iyx4.js} +1 -1
  77. package/public/assets/{timeline-definition-IT6M3QCI-DJ3qh1sp.js → timeline-definition-IT6M3QCI-CMqq3WzB.js} +1 -1
  78. package/public/assets/{tools-CUwQTL-8.js → tools-Cwvcr7MC.js} +1 -1
  79. package/public/assets/{treemap-KMMF4GRG-pUUUNNXu.js → treemap-KMMF4GRG-CBKg12Rn.js} +1 -1
  80. package/public/assets/{ui-components-icUM6BEH.js → ui-components-Cpwcs6-O.js} +117 -127
  81. package/public/assets/{useAgents-HXlzUYSz.js → useAgents-BY6mXIRZ.js} +1 -1
  82. package/public/assets/{useClaudeVersions-DQ5Wg6Zy.js → useClaudeVersions-DY1nkpyH.js} +1 -1
  83. package/public/assets/{useCommands-vX47i_1v.js → useCommands-kfKWaceZ.js} +1 -1
  84. package/public/assets/{useProjects-DR0CTJHB.js → useProjects-D0fgMWMU.js} +1 -1
  85. package/public/assets/{useSessions-CanqFxtL.js → useSessions-Do-a2c6a.js} +1 -1
  86. package/public/assets/{xychartDiagram-PRI3JC2R-HeLAL-7k.js → xychartDiagram-PRI3JC2R-DfaBqToH.js} +1 -1
  87. package/public/index.html +4 -4
  88. package/public/assets/CloudflareTunnelPage-BJNk2Ilw.js +0 -1
  89. package/public/assets/SettingsLayout-a2GRHdeo.js +0 -1
  90. package/public/assets/channel-Cr4EWrFf.js +0 -1
  91. package/public/assets/classDiagram-2ON5EDUG-BCYMgV2U.js +0 -1
  92. package/public/assets/classDiagram-v2-WZHVMYZB-BCYMgV2U.js +0 -1
  93. package/public/assets/clone-T66nRwp8.js +0 -1
  94. package/public/assets/infoDiagram-F6ZHWCRC-KYBfowoc.js +0 -2
  95. package/public/assets/stateDiagram-v2-4FDKWEC3-TEx1vYfv.js +0 -1
@@ -1,2 +1,2 @@
1
- import{b as h,c as g,a,A as r}from"./agents-B3InAIfY.js";const D=(s,e)=>h({queryKey:["agents",s,e],queryFn:async()=>{const t=new URL(`${r}/agents`);s!==void 0&&t.searchParams.append("enabled",String(s));const o=await a(t.toString());if(!o.ok)throw new Error("Failed to fetch agents");return o.json()}}),R=s=>h({queryKey:["agent",s],queryFn:async()=>{const e=await a(`${r}/agents/${s}`);if(!e.ok)throw new Error("Failed to fetch agent");return e.json()},enabled:!!s}),U=()=>g({mutationFn:async s=>{const e=await a(`${r}/agents`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!e.ok)throw new Error("Failed to create agent");return e.json()}}),P=()=>g({mutationFn:async({agentId:s,data:e})=>{const t=await a(`${r}/agents/${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Failed to update agent");return t.json()}}),x=()=>g({mutationFn:async s=>{const e=await a(`${r}/agents/${s}`,{method:"DELETE"});if(!e.ok)throw new Error("Failed to delete agent");return e.json()}}),v=(s,e,t)=>h({queryKey:["agent-sessions",s,e,t],queryFn:async()=>{console.log("🔍 [FRONTEND DEBUG] useAgentSessions called:",{agentId:s,searchTerm:e,projectPath:t});const o=new URL(`${r}/sessions/${s}`);e&&e.trim()&&o.searchParams.append("search",e.trim()),t&&o.searchParams.set("projectPath",t),console.log(`🌐 [FRONTEND DEBUG] Fetching sessions from: ${o.toString()}`);const n=await a(o.toString());if(!n.ok)throw console.error(`❌ [FRONTEND DEBUG] Failed to fetch sessions: ${n.status} ${n.statusText}`),new Error("Failed to fetch agent sessions");const i=await n.json();return console.log("📋 [FRONTEND DEBUG] Received sessions data:",{sessionCount:i.sessions?.length||0,sessions:i.sessions?.map((c,l)=>({index:l+1,id:c.id,title:c.title,lastUpdated:c.lastUpdated,messageCount:c.messageCount}))}),i},enabled:!!s}),B=(s,e,t)=>(console.log("🎣 useAgentSessionMessages hook called:",{agentId:s,sessionId:e,projectPath:t,enabled:!!s&&!!e}),h({queryKey:["agent-session-messages",s,e,t],queryFn:async()=>{if(console.log("🎣 Fetching session messages for:",{agentId:s,sessionId:e,projectPath:t}),!e)return{messages:[]};const o=new URL(`${r}/sessions/${s}/${e}/messages`);t&&o.searchParams.set("projectPath",t),console.log("🎣 Fetching from URL:",o.toString());const n=await a(o.toString());if(!n.ok)throw console.error("🎣 Fetch failed:",n.status,n.statusText),new Error("Failed to fetch agent session messages");const i=await n.json();console.log("🎣 Raw API response:",{messageCount:i.messages?.length});const c=i.messages.map(l=>({...l,timestamp:new Date(l.timestamp)}));return console.log("🎣 Converted messages:",{messageCount:c.length}),{...i,messages:c}},enabled:!!s&&!!e})),J=()=>({mutateAsync:async({agentId:s,message:e,images:t,context:o,sessionId:n,projectPath:i,mcpTools:c,permissionMode:l,model:F,claudeVersion:j,envVars:$,channel:b,abortController:S,onMessage:A,onError:T})=>{try{console.log("🚀 Starting SSE request to:",`${r}/agents/chat`);const d={agentId:s,message:e,images:t,context:o,sessionId:n,projectPath:i,mcpTools:c,permissionMode:l,model:F,claudeVersion:j,envVars:$,channel:b||"web"},u=await a(`${r}/agents/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d),signal:S?.signal});if(console.log("🚀 SSE response received:",{status:u.status,statusText:u.statusText,headers:Object.fromEntries(u.headers.entries())}),!u.ok)throw new Error(`Agent chat request failed: ${u.status} ${u.statusText}`);const y=u.body?.getReader(),k=new TextDecoder;let m="";if(!y)throw new Error("No response body");for(console.log("🚀 Starting SSE stream reading...");;){if(S?.signal.aborted)throw y.cancel(),new DOMException("Request aborted","AbortError");const{done:O,value:N}=await y.read();if(O)break;const q=k.decode(N,{stream:!0});m+=q;const E=m.split(`
1
+ import{b as h,c as g,a,A as r}from"./agents-D6AHwN6G.js";const D=(s,e)=>h({queryKey:["agents",s,e],queryFn:async()=>{const t=new URL(`${r}/agents`);s!==void 0&&t.searchParams.append("enabled",String(s));const o=await a(t.toString());if(!o.ok)throw new Error("Failed to fetch agents");return o.json()}}),R=s=>h({queryKey:["agent",s],queryFn:async()=>{const e=await a(`${r}/agents/${s}`);if(!e.ok)throw new Error("Failed to fetch agent");return e.json()},enabled:!!s}),U=()=>g({mutationFn:async s=>{const e=await a(`${r}/agents`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!e.ok)throw new Error("Failed to create agent");return e.json()}}),P=()=>g({mutationFn:async({agentId:s,data:e})=>{const t=await a(`${r}/agents/${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Failed to update agent");return t.json()}}),x=()=>g({mutationFn:async s=>{const e=await a(`${r}/agents/${s}`,{method:"DELETE"});if(!e.ok)throw new Error("Failed to delete agent");return e.json()}}),v=(s,e,t)=>h({queryKey:["agent-sessions",s,e,t],queryFn:async()=>{console.log("🔍 [FRONTEND DEBUG] useAgentSessions called:",{agentId:s,searchTerm:e,projectPath:t});const o=new URL(`${r}/sessions/${s}`);e&&e.trim()&&o.searchParams.append("search",e.trim()),t&&o.searchParams.set("projectPath",t),console.log(`🌐 [FRONTEND DEBUG] Fetching sessions from: ${o.toString()}`);const n=await a(o.toString());if(!n.ok)throw console.error(`❌ [FRONTEND DEBUG] Failed to fetch sessions: ${n.status} ${n.statusText}`),new Error("Failed to fetch agent sessions");const i=await n.json();return console.log("📋 [FRONTEND DEBUG] Received sessions data:",{sessionCount:i.sessions?.length||0,sessions:i.sessions?.map((c,l)=>({index:l+1,id:c.id,title:c.title,lastUpdated:c.lastUpdated,messageCount:c.messageCount}))}),i},enabled:!!s}),B=(s,e,t)=>(console.log("🎣 useAgentSessionMessages hook called:",{agentId:s,sessionId:e,projectPath:t,enabled:!!s&&!!e}),h({queryKey:["agent-session-messages",s,e,t],queryFn:async()=>{if(console.log("🎣 Fetching session messages for:",{agentId:s,sessionId:e,projectPath:t}),!e)return{messages:[]};const o=new URL(`${r}/sessions/${s}/${e}/messages`);t&&o.searchParams.set("projectPath",t),console.log("🎣 Fetching from URL:",o.toString());const n=await a(o.toString());if(!n.ok)throw console.error("🎣 Fetch failed:",n.status,n.statusText),new Error("Failed to fetch agent session messages");const i=await n.json();console.log("🎣 Raw API response:",{messageCount:i.messages?.length});const c=i.messages.map(l=>({...l,timestamp:new Date(l.timestamp)}));return console.log("🎣 Converted messages:",{messageCount:c.length}),{...i,messages:c}},enabled:!!s&&!!e})),J=()=>({mutateAsync:async({agentId:s,message:e,images:t,context:o,sessionId:n,projectPath:i,mcpTools:c,permissionMode:l,model:F,claudeVersion:j,envVars:$,channel:b,abortController:S,onMessage:A,onError:T})=>{try{console.log("🚀 Starting SSE request to:",`${r}/agents/chat`);const d={agentId:s,message:e,images:t,context:o,sessionId:n,projectPath:i,mcpTools:c,permissionMode:l,model:F,claudeVersion:j,envVars:$,channel:b||"web"},u=await a(`${r}/agents/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d),signal:S?.signal});if(console.log("🚀 SSE response received:",{status:u.status,statusText:u.statusText,headers:Object.fromEntries(u.headers.entries())}),!u.ok)throw new Error(`Agent chat request failed: ${u.status} ${u.statusText}`);const y=u.body?.getReader(),k=new TextDecoder;let m="";if(!y)throw new Error("No response body");for(console.log("🚀 Starting SSE stream reading...");;){if(S?.signal.aborted)throw y.cancel(),new DOMException("Request aborted","AbortError");const{done:O,value:N}=await y.read();if(O)break;const q=k.decode(N,{stream:!0});m+=q;const E=m.split(`
2
2
  `);m=E.pop()||"";for(const p of E)if(p.startsWith("data: "))try{const f=p.slice(6),w=JSON.parse(f);console.log("🔄 Parsed SSE event:",{type:w.type,subtype:w.subtype,hasMessage:!!w.message,messageContentBlocks:w.message?.content?.length||0}),A?.(w)}catch(f){console.error("❌ Failed to parse SSE data:",p.substring(0,100)+"...","Error:",f)}else p.trim()&&console.log("🔄 Non-data SSE line:",p)}}catch(d){throw console.error("Agent SSE error:",d),T?.(d),d}}}),M=()=>g({mutationFn:async({agentId:s,projectName:e,parentDirectory:t})=>{const o=await a(`${r}/projects/create`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:s,projectName:e,parentDirectory:t})});if(!o.ok){const n=await o.json();throw new Error(n.error||"Failed to create project")}return o.json()}}),K=()=>g({mutationFn:async({agentId:s,projectPath:e})=>{const t=await a(`${r}/projects/import`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:s,projectPath:e})});if(!t.ok){const o=await t.json();throw new Error(o.error||"Failed to import project")}return t.json()}}),L=s=>h({queryKey:["agent-projects",s],queryFn:async()=>{const e=await a(`${r}/projects/agents/${s}`);if(!e.ok)throw new Error("Failed to fetch agent projects");return e.json()},enabled:!!s}),G=()=>g({mutationFn:async s=>{const e=await a(`${r}/agents/sessions/${s}/interrupt`,{method:"POST"});if(!e.ok){const t=await e.json();throw new Error(t.error||"Failed to interrupt session")}return e.json()}});export{M as a,K as b,L as c,P as d,x as e,U as f,J as g,G as h,v as i,B as j,R as k,D as u};
@@ -1 +1 @@
1
- import{b as c,u as a,c as i,a as o,A as r}from"./agents-B3InAIfY.js";const l=()=>c({queryKey:["claude-versions"],queryFn:async()=>{const e=await o(`${r}/settings/claude-versions`);if(!e.ok)throw new Error("Failed to fetch Claude versions");return e.json()},staleTime:3e4}),y=()=>{const e=a();return i({mutationFn:async n=>{const s=await o(`${r}/settings/claude-versions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!s.ok){const t=await s.json();throw new Error(t.message||"Failed to create Claude version")}return s.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["claude-versions"]})}})},m=()=>{const e=a();return i({mutationFn:async({id:n,data:s})=>{const t=await o(`${r}/settings/claude-versions/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!t.ok){const u=await t.json();throw new Error(u.message||"Failed to update Claude version")}return t.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["claude-versions"]})}})},w=()=>{const e=a();return i({mutationFn:async n=>{const s=await o(`${r}/settings/claude-versions/${n}`,{method:"DELETE"});if(!s.ok){const t=await s.json();throw new Error(t.message||"Failed to delete Claude version")}},onSuccess:()=>{e.invalidateQueries({queryKey:["claude-versions"]})}})},v=()=>{const e=a();return i({mutationFn:async n=>{const s=await o(`${r}/settings/claude-versions/${n}/set-default`,{method:"PUT"});if(!s.ok){const t=await s.json();throw new Error(t.message||"Failed to set default Claude version")}},onSuccess:()=>{e.invalidateQueries({queryKey:["claude-versions"]})}})},C=async e=>{const n=await o(`${r}/settings/claude-versions/${e}/command`);if(!n.ok){const t=await n.json();throw new Error(t.message||"Failed to get Claude version command")}return(await n.json()).command};export{y as a,m as b,w as c,v as d,C as f,l as u};
1
+ import{b as c,u as a,c as i,a as o,A as r}from"./agents-D6AHwN6G.js";const l=()=>c({queryKey:["claude-versions"],queryFn:async()=>{const e=await o(`${r}/settings/claude-versions`);if(!e.ok)throw new Error("Failed to fetch Claude versions");return e.json()},staleTime:3e4}),y=()=>{const e=a();return i({mutationFn:async n=>{const s=await o(`${r}/settings/claude-versions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!s.ok){const t=await s.json();throw new Error(t.message||"Failed to create Claude version")}return s.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["claude-versions"]})}})},m=()=>{const e=a();return i({mutationFn:async({id:n,data:s})=>{const t=await o(`${r}/settings/claude-versions/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!t.ok){const u=await t.json();throw new Error(u.message||"Failed to update Claude version")}return t.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["claude-versions"]})}})},w=()=>{const e=a();return i({mutationFn:async n=>{const s=await o(`${r}/settings/claude-versions/${n}`,{method:"DELETE"});if(!s.ok){const t=await s.json();throw new Error(t.message||"Failed to delete Claude version")}},onSuccess:()=>{e.invalidateQueries({queryKey:["claude-versions"]})}})},v=()=>{const e=a();return i({mutationFn:async n=>{const s=await o(`${r}/settings/claude-versions/${n}/set-default`,{method:"PUT"});if(!s.ok){const t=await s.json();throw new Error(t.message||"Failed to set default Claude version")}},onSuccess:()=>{e.invalidateQueries({queryKey:["claude-versions"]})}})},C=async e=>{const n=await o(`${r}/settings/claude-versions/${e}/command`);if(!n.ok){const t=await n.json();throw new Error(t.message||"Failed to get Claude version command")}return(await n.json()).command};export{y as a,m as b,w as c,v as d,C as f,l as u};
@@ -1 +1 @@
1
- import{b as h,u as p,c as d,a as r,A as s,i as w}from"./agents-B3InAIfY.js";const y=async(e={})=>{try{const o=new URLSearchParams;e.scope&&e.scope!=="all"&&o.append("scope",e.scope),e.namespace&&o.append("namespace",e.namespace),e.search&&o.append("search",e.search);const t=await r(`${s}/commands?${o}`);if(!t.ok)throw new Error("Failed to fetch commands");return t.json()}catch(o){if(w(o))return[];throw o}},f=async e=>{const o=await r(`${s}/commands`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!o.ok){const t=await o.json();throw new Error(t.error||"Failed to create command")}return o.json()},l=async(e,o)=>{const t=await r(`${s}/commands/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!t.ok){const a=await t.json();throw new Error(a.error||"Failed to update command")}return t.json()},C=async e=>{const o=await r(`${s}/commands/${encodeURIComponent(e)}`,{method:"DELETE"});if(!o.ok){const t=await o.json();throw new Error(t.error||"Failed to delete command")}},S=e=>h({queryKey:["commands",e],queryFn:()=>y(e),staleTime:1e3*60*5,retry:!1}),D=()=>{const e=p();return d({mutationFn:f,onSuccess:()=>{e.invalidateQueries({queryKey:["commands"]})}})},U=()=>{const e=p();return d({mutationFn:({id:o,updates:t})=>l(o,t),onSuccess:o=>{e.invalidateQueries({queryKey:["commands"]}),e.setQueryData(["commands",o.id],o)}})},R=()=>{const e=p();return d({mutationFn:C,onSuccess:(o,t)=>{e.invalidateQueries({queryKey:["commands"]}),e.removeQueries({queryKey:["commands",t]})}})},P=async(e,o={})=>{if(!e)return[];let t;if(e.startsWith("/"))t=e;else{const m=await r(`${s}/projects`);if(!m.ok)throw new Error("Failed to fetch project info");const n=(await m.json()).projects.find(u=>u.id===e);if(!n)throw new Error("Project not found");t=n.path}const a=new URLSearchParams;a.append("scope","project"),a.append("projectPath",t),o.namespace&&a.append("namespace",o.namespace),o.search&&a.append("search",o.search);const c=await r(`${s}/commands?${a}`);if(!c.ok)throw new Error("Failed to fetch project commands");return c.json()},k=e=>h({queryKey:["commands","project",e.projectId,e.search],queryFn:()=>P(e.projectId,{search:e.search}),staleTime:1e3*60*5}),E=async(e,o)=>{const t=await r(`${s}/projects`);if(!t.ok)throw new Error("Failed to fetch project info");const c=(await t.json()).projects.find(n=>n.id===e);if(!c)throw new Error("Project not found");const m=new URLSearchParams;m.append("projectPath",c.path);const i=await r(`${s}/commands?${m}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!i.ok){const n=await i.json();throw new Error(n.error||"Failed to create command")}return i.json()},F=async(e,o)=>{const t=await r(`${s}/projects`);if(!t.ok)throw new Error("Failed to fetch project info");const c=(await t.json()).projects.find(j=>j.id===e);if(!c)throw new Error("Project not found");const{id:m,updates:i}=o,n=new URLSearchParams;n.append("projectPath",c.path);const u=await r(`${s}/commands/${encodeURIComponent(m)}?${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!u.ok){const j=await u.json();throw new Error(j.error||"Failed to update command")}return u.json()},$=async(e,o)=>{const t=await r(`${s}/projects`);if(!t.ok)throw new Error("Failed to fetch project info");const c=(await t.json()).projects.find(n=>n.id===e);if(!c)throw new Error("Project not found");const m=new URLSearchParams;m.append("projectPath",c.path);const i=await r(`${s}/commands/${encodeURIComponent(o)}?${m}`,{method:"DELETE"});if(!i.ok){const n=await i.json();throw new Error(n.error||"Failed to delete command")}},Q=e=>{const o=p();return d({mutationFn:t=>E(e,t),onSuccess:()=>{o.invalidateQueries({queryKey:["commands","project",e]})}})},T=e=>{const o=p();return d({mutationFn:t=>F(e,t),onSuccess:t=>{o.invalidateQueries({queryKey:["commands","project",e]}),o.setQueryData(["commands",t.id],t)}})},K=e=>{const o=p();return d({mutationFn:t=>$(e,t),onSuccess:(t,a)=>{o.invalidateQueries({queryKey:["commands","project",e]}),o.removeQueries({queryKey:["commands",a]})}})};export{R as a,Q as b,D as c,T as d,U as e,k as f,K as g,S as u};
1
+ import{b as h,u as p,c as d,a as r,A as s,i as w}from"./agents-D6AHwN6G.js";const y=async(e={})=>{try{const o=new URLSearchParams;e.scope&&e.scope!=="all"&&o.append("scope",e.scope),e.namespace&&o.append("namespace",e.namespace),e.search&&o.append("search",e.search);const t=await r(`${s}/commands?${o}`);if(!t.ok)throw new Error("Failed to fetch commands");return t.json()}catch(o){if(w(o))return[];throw o}},f=async e=>{const o=await r(`${s}/commands`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!o.ok){const t=await o.json();throw new Error(t.error||"Failed to create command")}return o.json()},l=async(e,o)=>{const t=await r(`${s}/commands/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!t.ok){const a=await t.json();throw new Error(a.error||"Failed to update command")}return t.json()},C=async e=>{const o=await r(`${s}/commands/${encodeURIComponent(e)}`,{method:"DELETE"});if(!o.ok){const t=await o.json();throw new Error(t.error||"Failed to delete command")}},S=e=>h({queryKey:["commands",e],queryFn:()=>y(e),staleTime:1e3*60*5,retry:!1}),D=()=>{const e=p();return d({mutationFn:f,onSuccess:()=>{e.invalidateQueries({queryKey:["commands"]})}})},U=()=>{const e=p();return d({mutationFn:({id:o,updates:t})=>l(o,t),onSuccess:o=>{e.invalidateQueries({queryKey:["commands"]}),e.setQueryData(["commands",o.id],o)}})},R=()=>{const e=p();return d({mutationFn:C,onSuccess:(o,t)=>{e.invalidateQueries({queryKey:["commands"]}),e.removeQueries({queryKey:["commands",t]})}})},P=async(e,o={})=>{if(!e)return[];let t;if(e.startsWith("/"))t=e;else{const m=await r(`${s}/projects`);if(!m.ok)throw new Error("Failed to fetch project info");const n=(await m.json()).projects.find(u=>u.id===e);if(!n)throw new Error("Project not found");t=n.path}const a=new URLSearchParams;a.append("scope","project"),a.append("projectPath",t),o.namespace&&a.append("namespace",o.namespace),o.search&&a.append("search",o.search);const c=await r(`${s}/commands?${a}`);if(!c.ok)throw new Error("Failed to fetch project commands");return c.json()},k=e=>h({queryKey:["commands","project",e.projectId,e.search],queryFn:()=>P(e.projectId,{search:e.search}),staleTime:1e3*60*5}),E=async(e,o)=>{const t=await r(`${s}/projects`);if(!t.ok)throw new Error("Failed to fetch project info");const c=(await t.json()).projects.find(n=>n.id===e);if(!c)throw new Error("Project not found");const m=new URLSearchParams;m.append("projectPath",c.path);const i=await r(`${s}/commands?${m}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!i.ok){const n=await i.json();throw new Error(n.error||"Failed to create command")}return i.json()},F=async(e,o)=>{const t=await r(`${s}/projects`);if(!t.ok)throw new Error("Failed to fetch project info");const c=(await t.json()).projects.find(j=>j.id===e);if(!c)throw new Error("Project not found");const{id:m,updates:i}=o,n=new URLSearchParams;n.append("projectPath",c.path);const u=await r(`${s}/commands/${encodeURIComponent(m)}?${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!u.ok){const j=await u.json();throw new Error(j.error||"Failed to update command")}return u.json()},$=async(e,o)=>{const t=await r(`${s}/projects`);if(!t.ok)throw new Error("Failed to fetch project info");const c=(await t.json()).projects.find(n=>n.id===e);if(!c)throw new Error("Project not found");const m=new URLSearchParams;m.append("projectPath",c.path);const i=await r(`${s}/commands/${encodeURIComponent(o)}?${m}`,{method:"DELETE"});if(!i.ok){const n=await i.json();throw new Error(n.error||"Failed to delete command")}},Q=e=>{const o=p();return d({mutationFn:t=>E(e,t),onSuccess:()=>{o.invalidateQueries({queryKey:["commands","project",e]})}})},T=e=>{const o=p();return d({mutationFn:t=>F(e,t),onSuccess:t=>{o.invalidateQueries({queryKey:["commands","project",e]}),o.setQueryData(["commands",t.id],t)}})},K=e=>{const o=p();return d({mutationFn:t=>$(e,t),onSuccess:(t,a)=>{o.invalidateQueries({queryKey:["commands","project",e]}),o.removeQueries({queryKey:["commands",a]})}})};export{R as a,Q as b,D as c,T as d,U as e,k as f,K as g,S as u};
@@ -1 +1 @@
1
- import{b as e,a as t,A as s,i as o}from"./agents-B3InAIfY.js";const a=async()=>{try{const r=await t(`${s}/projects`);if(!r.ok)throw new Error("Failed to fetch projects");return r.json()}catch(r){if(o(r))return{projects:[]};throw r}},n=()=>e({queryKey:["projects"],queryFn:a,staleTime:1e3*60*5,retry:!1});export{n as u};
1
+ import{b as e,a as t,A as s,i as o}from"./agents-D6AHwN6G.js";const a=async()=>{try{const r=await t(`${s}/projects`);if(!r.ok)throw new Error("Failed to fetch projects");return r.json()}catch(r){if(o(r))return{projects:[]};throw r}},n=()=>e({queryKey:["projects"],queryFn:a,staleTime:1e3*60*5,retry:!1});export{n as u};
@@ -1 +1 @@
1
- import{b as t,a as r,A as o,i as n}from"./agents-B3InAIfY.js";const a=async()=>{try{const s=await r(`${o}/agents/sessions`);if(!s.ok)throw new Error("Failed to fetch sessions");return s.json()}catch(s){if(n(s))return{activeSessionCount:0,sessions:[],message:"API service unavailable"};throw s}},c=()=>t({queryKey:["sessions"],queryFn:a,refetchInterval:5e3,retry:(s,e)=>n(e)?!1:s<3,retryDelay:s=>Math.min(1e3*2**s,3e4)}),l=async s=>{if(!(await r(`${o}/agents/sessions/${s}`,{method:"DELETE"})).ok)throw new Error("Failed to close session")},u=async()=>{const s=await r(`${o}/agents/sessions`,{method:"DELETE"});if(!s.ok){const e=await s.json();throw new Error(e.error||"Failed to clear all sessions")}return s.json()};export{l as a,u as c,c as u};
1
+ import{b as t,a as r,A as o,i as n}from"./agents-D6AHwN6G.js";const a=async()=>{try{const s=await r(`${o}/agents/sessions`);if(!s.ok)throw new Error("Failed to fetch sessions");return s.json()}catch(s){if(n(s))return{activeSessionCount:0,sessions:[],message:"API service unavailable"};throw s}},c=()=>t({queryKey:["sessions"],queryFn:a,refetchInterval:5e3,retry:(s,e)=>n(e)?!1:s<3,retryDelay:s=>Math.min(1e3*2**s,3e4)}),l=async s=>{if(!(await r(`${o}/agents/sessions/${s}`,{method:"DELETE"})).ok)throw new Error("Failed to close session")},u=async()=>{const s=await r(`${o}/agents/sessions`,{method:"DELETE"});if(!s.ok){const e=await s.json();throw new Error(e.error||"Failed to clear all sessions")}return s.json()};export{l as a,u as c,c as u};
@@ -1,4 +1,4 @@
1
- import{_ as a,s as gi,g as xi,q as Xt,p as di,a as pi,b as fi,l as Nt,H as mi,e as yi,y as bi,E as St,D as Yt,F as Ai,K as wi,i as Ci,aF as Si,a9 as Wt}from"./ChatPage-Ht-lF7H1.js";import{i as _i}from"./init-Gi6I4Gst.js";import{o as ki}from"./ordinal-Cboi1Yqb.js";import{l as zt}from"./linear-Bo6VfLsh.js";import"./data-structures-C0h9Oap1.js";import"./monaco-editor-DHKm5-VF.js";import"./syntax-highlighting-CnREyncB.js";import"./agents-B3InAIfY.js";import"./tools-CUwQTL-8.js";import"./ui-components-icUM6BEH.js";import"./useAgents-HXlzUYSz.js";import"./useSessions-CanqFxtL.js";import"./index-C8oBHB0h.js";import"./useCommands-vX47i_1v.js";import"./useClaudeVersions-DQ5Wg6Zy.js";import"./FileExplorer-D5l2HgDS.js";import"./UnifiedToolSelector-Cw1xKmPZ.js";import"./FileBrowser-CDuDggHj.js";import"./ProjectSelector-2mn8IO5d.js";import"./defaultLocale-C4B-KCzX.js";function Ri(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function yt(){var e=ki().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,g,m=!1,f=0,k=0,v=.5;delete e.unknown;function C(){var b=t().length,E=n<s,D=E?n:s,P=E?s:n;o=(P-D)/Math.max(1,b-f+k*2),m&&(o=Math.floor(o)),D+=(P-D-o*(b-f))*v,g=o*(1-f),m&&(D=Math.round(D),g=Math.round(g));var I=Ri(b).map(function(y){return D+o*y});return i(E?I.reverse():I)}return e.domain=function(b){return arguments.length?(t(b),C()):t()},e.range=function(b){return arguments.length?([s,n]=b,s=+s,n=+n,C()):[s,n]},e.rangeRound=function(b){return[s,n]=b,s=+s,n=+n,m=!0,C()},e.bandwidth=function(){return g},e.step=function(){return o},e.round=function(b){return arguments.length?(m=!!b,C()):m},e.padding=function(b){return arguments.length?(f=Math.min(1,k=+b),C()):f},e.paddingInner=function(b){return arguments.length?(f=Math.min(1,b),C()):f},e.paddingOuter=function(b){return arguments.length?(k=+b,C()):k},e.align=function(b){return arguments.length?(v=Math.max(0,Math.min(1,b)),C()):v},e.copy=function(){return yt(t(),[s,n]).round(m).paddingInner(f).paddingOuter(k).align(v)},_i.apply(C(),arguments)}var bt=(function(){var e=a(function(F,h,u,x){for(u=u||{},x=F.length;x--;u[F[x]]=h);return u},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],f=[1,25],k=[1,26],v=[1,28],C=[1,29],b=[1,30],E=[1,31],D=[1,32],P=[1,33],I=[1,34],y=[1,35],_=[1,36],c=[1,37],W=[1,43],z=[1,42],U=[1,47],X=[1,50],l=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],S=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],R=[1,64],$={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(h,u,x,d,w,r,at){var p=r.length-1;switch(w){case 5:d.setOrientation(r[p]);break;case 9:d.setDiagramTitle(r[p].text.trim());break;case 12:d.setLineData({text:"",type:"text"},r[p]);break;case 13:d.setLineData(r[p-1],r[p]);break;case 14:d.setBarData({text:"",type:"text"},r[p]);break;case 15:d.setBarData(r[p-1],r[p]);break;case 16:this.$=r[p].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=r[p].trim(),d.setAccDescription(this.$);break;case 19:this.$=r[p-1];break;case 20:this.$=[Number(r[p-2]),...r[p]];break;case 21:this.$=[Number(r[p])];break;case 22:d.setXAxisTitle(r[p]);break;case 23:d.setXAxisTitle(r[p-1]);break;case 24:d.setXAxisTitle({type:"text",text:""});break;case 25:d.setXAxisBand(r[p]);break;case 26:d.setXAxisRangeData(Number(r[p-2]),Number(r[p]));break;case 27:this.$=r[p-1];break;case 28:this.$=[r[p-2],...r[p]];break;case 29:this.$=[r[p]];break;case 30:d.setYAxisTitle(r[p]);break;case 31:d.setYAxisTitle(r[p-1]);break;case 32:d.setYAxisTitle({type:"text",text:""});break;case 33:d.setYAxisRangeData(Number(r[p-2]),Number(r[p]));break;case 37:this.$={text:r[p],type:"text"};break;case 38:this.$={text:r[p],type:"text"};break;case 39:this.$={text:r[p],type:"markdown"};break;case 40:this.$=r[p];break;case 41:this.$=r[p-1]+""+r[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,34]),e(m,[2,35]),e(m,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:g}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:g}),{11:23,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:39,13:38,24:W,27:z,29:40,30:41,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:45,15:44,27:U,33:46,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:49,17:48,24:X,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:52,17:51,24:X,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{20:[1,53]},{22:[1,54]},e(l,[2,18]),{1:[2,2]},e(l,[2,8]),e(l,[2,9]),e(L,[2,37],{40:55,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c}),e(L,[2,38]),e(L,[2,39]),e(S,[2,40]),e(S,[2,42]),e(S,[2,43]),e(S,[2,44]),e(S,[2,45]),e(S,[2,46]),e(S,[2,47]),e(S,[2,48]),e(S,[2,49]),e(S,[2,50]),e(S,[2,51]),e(l,[2,10]),e(l,[2,22],{30:41,29:56,24:W,27:z}),e(l,[2,24]),e(l,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},e(l,[2,11]),e(l,[2,30],{33:60,27:U}),e(l,[2,32]),{31:[1,61]},e(l,[2,12]),{17:62,24:X},{25:63,27:R},e(l,[2,14]),{17:65,24:X},e(l,[2,16]),e(l,[2,17]),e(S,[2,41]),e(l,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(l,[2,31]),{27:[1,69]},e(l,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(l,[2,15]),e(l,[2,26]),e(l,[2,27]),{11:59,32:72,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},e(l,[2,33]),e(l,[2,19]),{25:73,27:R},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(h,u){if(u.recoverable)this.trace(h);else{var x=new Error(h);throw x.hash=u,x}},"parseError"),parse:a(function(h){var u=this,x=[0],d=[],w=[null],r=[],at=this.table,p="",lt=0,It=0,hi=2,Mt=1,li=r.slice.call(arguments,1),T=Object.create(this.lexer),Y={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Y.yy[dt]=this.yy[dt]);T.setInput(h,Y.yy),Y.yy.lexer=T,Y.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var pt=T.yylloc;r.push(pt);var ci=T.options&&T.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ui(V){x.length=x.length-2*V,w.length=w.length-V,r.length=r.length-V}a(ui,"popStack");function Vt(){var V;return V=d.pop()||T.lex()||Mt,typeof V!="number"&&(V instanceof Array&&(d=V,V=d.pop()),V=u.symbols_[V]||V),V}a(Vt,"lex");for(var M,H,B,ft,q={},ct,O,Bt,ut;;){if(H=x[x.length-1],this.defaultActions[H]?B=this.defaultActions[H]:((M===null||typeof M>"u")&&(M=Vt()),B=at[H]&&at[H][M]),typeof B>"u"||!B.length||!B[0]){var mt="";ut=[];for(ct in at[H])this.terminals_[ct]&&ct>hi&&ut.push("'"+this.terminals_[ct]+"'");T.showPosition?mt="Parse error on line "+(lt+1)+`:
1
+ import{_ as a,s as gi,g as xi,q as Xt,p as di,a as pi,b as fi,l as Nt,H as mi,e as yi,y as bi,E as St,D as Yt,F as Ai,K as wi,i as Ci,aF as Si,a9 as Wt}from"./ChatPage-BmPDhIa_.js";import{i as _i}from"./init-Gi6I4Gst.js";import{o as ki}from"./ordinal-Cboi1Yqb.js";import{l as zt}from"./linear-CXm0SnMf.js";import"./data-structures-C0h9Oap1.js";import"./monaco-editor-DHKm5-VF.js";import"./syntax-highlighting-CnREyncB.js";import"./agents-D6AHwN6G.js";import"./tools-Cwvcr7MC.js";import"./ui-components-Cpwcs6-O.js";import"./useAgents-BY6mXIRZ.js";import"./useSessions-Do-a2c6a.js";import"./index-VZ8BD_2q.js";import"./useCommands-kfKWaceZ.js";import"./useClaudeVersions-DY1nkpyH.js";import"./FileExplorer-EenwcuMv.js";import"./UnifiedToolSelector-CUDMlVoZ.js";import"./FileBrowser-CaAtXHII.js";import"./ProjectSelector--9kdPm_M.js";import"./defaultLocale-C4B-KCzX.js";function Ri(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function yt(){var e=ki().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,g,m=!1,f=0,k=0,v=.5;delete e.unknown;function C(){var b=t().length,E=n<s,D=E?n:s,P=E?s:n;o=(P-D)/Math.max(1,b-f+k*2),m&&(o=Math.floor(o)),D+=(P-D-o*(b-f))*v,g=o*(1-f),m&&(D=Math.round(D),g=Math.round(g));var I=Ri(b).map(function(y){return D+o*y});return i(E?I.reverse():I)}return e.domain=function(b){return arguments.length?(t(b),C()):t()},e.range=function(b){return arguments.length?([s,n]=b,s=+s,n=+n,C()):[s,n]},e.rangeRound=function(b){return[s,n]=b,s=+s,n=+n,m=!0,C()},e.bandwidth=function(){return g},e.step=function(){return o},e.round=function(b){return arguments.length?(m=!!b,C()):m},e.padding=function(b){return arguments.length?(f=Math.min(1,k=+b),C()):f},e.paddingInner=function(b){return arguments.length?(f=Math.min(1,b),C()):f},e.paddingOuter=function(b){return arguments.length?(k=+b,C()):k},e.align=function(b){return arguments.length?(v=Math.max(0,Math.min(1,b)),C()):v},e.copy=function(){return yt(t(),[s,n]).round(m).paddingInner(f).paddingOuter(k).align(v)},_i.apply(C(),arguments)}var bt=(function(){var e=a(function(F,h,u,x){for(u=u||{},x=F.length;x--;u[F[x]]=h);return u},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],f=[1,25],k=[1,26],v=[1,28],C=[1,29],b=[1,30],E=[1,31],D=[1,32],P=[1,33],I=[1,34],y=[1,35],_=[1,36],c=[1,37],W=[1,43],z=[1,42],U=[1,47],X=[1,50],l=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],S=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],R=[1,64],$={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(h,u,x,d,w,r,at){var p=r.length-1;switch(w){case 5:d.setOrientation(r[p]);break;case 9:d.setDiagramTitle(r[p].text.trim());break;case 12:d.setLineData({text:"",type:"text"},r[p]);break;case 13:d.setLineData(r[p-1],r[p]);break;case 14:d.setBarData({text:"",type:"text"},r[p]);break;case 15:d.setBarData(r[p-1],r[p]);break;case 16:this.$=r[p].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=r[p].trim(),d.setAccDescription(this.$);break;case 19:this.$=r[p-1];break;case 20:this.$=[Number(r[p-2]),...r[p]];break;case 21:this.$=[Number(r[p])];break;case 22:d.setXAxisTitle(r[p]);break;case 23:d.setXAxisTitle(r[p-1]);break;case 24:d.setXAxisTitle({type:"text",text:""});break;case 25:d.setXAxisBand(r[p]);break;case 26:d.setXAxisRangeData(Number(r[p-2]),Number(r[p]));break;case 27:this.$=r[p-1];break;case 28:this.$=[r[p-2],...r[p]];break;case 29:this.$=[r[p]];break;case 30:d.setYAxisTitle(r[p]);break;case 31:d.setYAxisTitle(r[p-1]);break;case 32:d.setYAxisTitle({type:"text",text:""});break;case 33:d.setYAxisRangeData(Number(r[p-2]),Number(r[p]));break;case 37:this.$={text:r[p],type:"text"};break;case 38:this.$={text:r[p],type:"text"};break;case 39:this.$={text:r[p],type:"markdown"};break;case 40:this.$=r[p];break;case 41:this.$=r[p-1]+""+r[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,34]),e(m,[2,35]),e(m,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:g}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:g}),{11:23,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:39,13:38,24:W,27:z,29:40,30:41,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:45,15:44,27:U,33:46,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:49,17:48,24:X,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:52,17:51,24:X,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{20:[1,53]},{22:[1,54]},e(l,[2,18]),{1:[2,2]},e(l,[2,8]),e(l,[2,9]),e(L,[2,37],{40:55,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c}),e(L,[2,38]),e(L,[2,39]),e(S,[2,40]),e(S,[2,42]),e(S,[2,43]),e(S,[2,44]),e(S,[2,45]),e(S,[2,46]),e(S,[2,47]),e(S,[2,48]),e(S,[2,49]),e(S,[2,50]),e(S,[2,51]),e(l,[2,10]),e(l,[2,22],{30:41,29:56,24:W,27:z}),e(l,[2,24]),e(l,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},e(l,[2,11]),e(l,[2,30],{33:60,27:U}),e(l,[2,32]),{31:[1,61]},e(l,[2,12]),{17:62,24:X},{25:63,27:R},e(l,[2,14]),{17:65,24:X},e(l,[2,16]),e(l,[2,17]),e(S,[2,41]),e(l,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(l,[2,31]),{27:[1,69]},e(l,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(l,[2,15]),e(l,[2,26]),e(l,[2,27]),{11:59,32:72,37:24,38:f,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},e(l,[2,33]),e(l,[2,19]),{25:73,27:R},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(h,u){if(u.recoverable)this.trace(h);else{var x=new Error(h);throw x.hash=u,x}},"parseError"),parse:a(function(h){var u=this,x=[0],d=[],w=[null],r=[],at=this.table,p="",lt=0,It=0,hi=2,Mt=1,li=r.slice.call(arguments,1),T=Object.create(this.lexer),Y={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Y.yy[dt]=this.yy[dt]);T.setInput(h,Y.yy),Y.yy.lexer=T,Y.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var pt=T.yylloc;r.push(pt);var ci=T.options&&T.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ui(V){x.length=x.length-2*V,w.length=w.length-V,r.length=r.length-V}a(ui,"popStack");function Vt(){var V;return V=d.pop()||T.lex()||Mt,typeof V!="number"&&(V instanceof Array&&(d=V,V=d.pop()),V=u.symbols_[V]||V),V}a(Vt,"lex");for(var M,H,B,ft,q={},ct,O,Bt,ut;;){if(H=x[x.length-1],this.defaultActions[H]?B=this.defaultActions[H]:((M===null||typeof M>"u")&&(M=Vt()),B=at[H]&&at[H][M]),typeof B>"u"||!B.length||!B[0]){var mt="";ut=[];for(ct in at[H])this.terminals_[ct]&&ct>hi&&ut.push("'"+this.terminals_[ct]+"'");T.showPosition?mt="Parse error on line "+(lt+1)+`:
2
2
  `+T.showPosition()+`
3
3
  Expecting `+ut.join(", ")+", got '"+(this.terminals_[M]||M)+"'":mt="Parse error on line "+(lt+1)+": Unexpected "+(M==Mt?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(mt,{text:T.match,token:this.terminals_[M]||M,line:T.yylineno,loc:pt,expected:ut})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+M);switch(B[0]){case 1:x.push(M),w.push(T.yytext),r.push(T.yylloc),x.push(B[1]),M=null,It=T.yyleng,p=T.yytext,lt=T.yylineno,pt=T.yylloc;break;case 2:if(O=this.productions_[B[1]][1],q.$=w[w.length-O],q._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},ci&&(q._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),ft=this.performAction.apply(q,[p,It,lt,Y.yy,B[1],w,r].concat(li)),typeof ft<"u")return ft;O&&(x=x.slice(0,-1*O*2),w=w.slice(0,-1*O),r=r.slice(0,-1*O)),x.push(this.productions_[B[1]][0]),w.push(q.$),r.push(q._$),Bt=at[x[x.length-2]][x[x.length-1]],x.push(Bt);break;case 3:return!0}}return!0},"parse")},Et=(function(){var F={EOF:1,parseError:a(function(u,x){if(this.yy.parser)this.yy.parser.parseError(u,x);else throw new Error(u)},"parseError"),setInput:a(function(h,u){return this.yy=u||this.yy||{},this._input=h,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:a(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var u=h.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:a(function(h){var u=h.length,x=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var d=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),x.length-1&&(this.yylineno-=x.length-1);var w=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:x?(x.length===d.length?this.yylloc.first_column:0)+d[d.length-x.length].length-x[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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:a(function(h){this.unput(this.match.slice(h))},"less"),pastInput:a(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var h=this.pastInput(),u=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
package/public/index.html CHANGED
@@ -54,13 +54,13 @@
54
54
  }
55
55
  }
56
56
  </script>
57
- <script type="module" crossorigin src="/assets/index-C8oBHB0h.js"></script>
57
+ <script type="module" crossorigin src="/assets/index-VZ8BD_2q.js"></script>
58
58
  <link rel="modulepreload" crossorigin href="/assets/monaco-editor-DHKm5-VF.js">
59
59
  <link rel="modulepreload" crossorigin href="/assets/syntax-highlighting-CnREyncB.js">
60
60
  <link rel="modulepreload" crossorigin href="/assets/data-structures-C0h9Oap1.js">
61
- <link rel="modulepreload" crossorigin href="/assets/ui-components-icUM6BEH.js">
62
- <link rel="modulepreload" crossorigin href="/assets/tools-CUwQTL-8.js">
63
- <link rel="modulepreload" crossorigin href="/assets/agents-B3InAIfY.js">
61
+ <link rel="modulepreload" crossorigin href="/assets/ui-components-Cpwcs6-O.js">
62
+ <link rel="modulepreload" crossorigin href="/assets/tools-Cwvcr7MC.js">
63
+ <link rel="modulepreload" crossorigin href="/assets/agents-D6AHwN6G.js">
64
64
  <link rel="stylesheet" crossorigin href="/assets/agents-DwCY2K8p.css">
65
65
  <link rel="stylesheet" crossorigin href="/assets/index-C9P0ZrJZ.css">
66
66
  </head>
@@ -1 +0,0 @@
1
- import{j as e}from"./data-structures-C0h9Oap1.js";import{r as a,W as de}from"./monaco-editor-DHKm5-VF.js";import{b as ie}from"./index-C8oBHB0h.js";import{u as ce}from"./tools-CUwQTL-8.js";import{R as z,a2 as O,j as W,a3 as m,a4 as g,a5 as _,T as oe,a6 as o,l as J,a7 as xe,G as ge,z as C,v as ue}from"./ui-components-icUM6BEH.js";import"./syntax-highlighting-CnREyncB.js";import"./agents-B3InAIfY.js";const we=()=>{const{t:r}=ce("pages"),{isMobile:w}=ie(),[l,M]=a.useState(null),[h,S]=a.useState(""),[b,T]=a.useState(""),[E,H]=a.useState(""),[I,K]=a.useState("4936"),[Q,f]=a.useState(!1),[F,A]=a.useState(!1),[D,P]=a.useState(!1),[$,d]=a.useState(null),[U,u]=a.useState(null),[L,R]=a.useState(!1),[V,q]=a.useState(!1),[c,k]=a.useState(null),[x,i]=a.useState("intro"),[B,p]=a.useState(!0);a.useEffect(()=>{j()},[]),a.useEffect(()=>{l&&(l.activeTunnel?(i("done"),p(!1)):l.hasApiToken&&l.hasAccountId?i("create"):i("credentials"))},[l]);const j=async()=>{f(!0),d(null);try{const t=await fetch("/api/cloudflare-tunnel/config",{headers:{Authorization:`Bearer ${localStorage.getItem("jwt")}`}});if(!t.ok)throw new Error("Failed to load configuration");const s=await t.json();M(s)}catch(t){console.error("Error loading config:",t),d(t instanceof Error?t.message:"Failed to load configuration")}finally{f(!1)}},X=async()=>{if(!h||!b){d(r("settings.cloudflare.errors.credentialsRequired"));return}A(!0),d(null),u(null);try{const t=await fetch("/api/cloudflare-tunnel/config",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("jwt")}`},body:JSON.stringify({apiToken:h,accountId:b})});if(!t.ok){const s=await t.json();throw new Error(s.message||"Failed to save credentials")}u(r("settings.cloudflare.credentialsSaved")),await j(),i("create"),S(""),T("")}catch(t){console.error("Error saving credentials:",t),d(t instanceof Error?t.message:"Failed to save credentials")}finally{A(!1)}},Y=async()=>{P(!0),d(null),u(null),k(null);try{const t=await fetch("/api/cloudflare-tunnel/create",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("jwt")}`},body:JSON.stringify({subdomain:E||void 0,localPort:parseInt(I)})});if(!t.ok){const n=await t.json();throw new Error(n.message||"Failed to create tunnel")}const s=await t.json();k(s.tunnel),u(r("settings.cloudflare.tunnelCreated")),i("start"),await j()}catch(t){console.error("Error creating tunnel:",t),d(t instanceof Error?t.message:"Failed to create tunnel")}finally{P(!1)}},Z=async t=>{if(confirm(r("settings.cloudflare.confirmDelete"))){f(!0),d(null);try{const s=await fetch(`/api/cloudflare-tunnel/delete/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${localStorage.getItem("jwt")}`}});if(!s.ok){const n=await s.json();throw new Error(n.message||"Failed to delete tunnel")}u(r("settings.cloudflare.tunnelDeleted")),k(null),i("intro"),p(!0),await j()}catch(s){console.error("Error deleting tunnel:",s),d(s instanceof Error?s.message:"Failed to delete tunnel")}finally{f(!1)}}},N=async(t,s)=>{try{await navigator.clipboard.writeText(t),s==="url"?(R(!0),setTimeout(()=>R(!1),2e3)):(q(!0),setTimeout(()=>q(!1),2e3))}catch(n){console.error("Failed to copy:",n)}},ee=()=>{const t=[{id:"intro",label:r("settings.cloudflare.wizard.steps.intro"),icon:g},{id:"credentials",label:r("settings.cloudflare.wizard.steps.credentials"),icon:O},{id:"create",label:r("settings.cloudflare.wizard.steps.create"),icon:_},{id:"start",label:r("settings.cloudflare.wizard.steps.start"),icon:oe},{id:"done",label:r("settings.cloudflare.wizard.steps.done"),icon:o}],s=t.findIndex(n=>n.id===x);return e.jsx("div",{className:"mb-8",children:e.jsx("div",{className:"flex items-center justify-between",children:t.map((n,v)=>{const ne=n.icon,G=v===s,y=v<s;return e.jsxs(de.Fragment,{children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center ${G?"bg-blue-600 text-white":y?"bg-green-600 text-white":"bg-gray-200 dark:bg-gray-700 text-gray-400"}`,children:y?e.jsx(m,{className:"w-5 h-5"}):e.jsx(ne,{className:"w-5 h-5"})}),e.jsx("span",{className:`mt-2 text-xs ${G||y?"text-gray-900 dark:text-white font-medium":"text-gray-400"}`,children:n.label})]}),v<t.length-1&&e.jsx("div",{className:`flex-1 h-0.5 mx-2 ${y?"bg-green-600":"bg-gray-200 dark:bg-gray-700"}`})]},n.id)})})})},re=()=>e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-6",children:[e.jsxs("h3",{className:"text-lg font-semibold text-blue-900 dark:text-blue-100 mb-4 flex items-center",children:[e.jsx(g,{className:"w-5 h-5 mr-2"}),r("settings.cloudflare.wizard.intro.title")]}),e.jsxs("div",{className:"space-y-3 text-sm text-blue-800 dark:text-blue-200",children:[e.jsx("p",{children:r("settings.cloudflare.wizard.intro.description")}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-2",children:[e.jsx("li",{children:r("settings.cloudflare.wizard.intro.benefit1")}),e.jsx("li",{children:r("settings.cloudflare.wizard.intro.benefit2")}),e.jsx("li",{children:r("settings.cloudflare.wizard.intro.benefit3")}),e.jsx("li",{children:r("settings.cloudflare.wizard.intro.benefit4")})]})]})]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-6",children:[e.jsx("h4",{className:"font-medium text-gray-900 dark:text-white mb-3",children:r("settings.cloudflare.wizard.intro.requirements")}),e.jsxs("div",{className:"space-y-2 text-sm text-gray-600 dark:text-gray-400",children:[e.jsxs("div",{className:"flex items-start",children:[e.jsx(o,{className:"w-4 h-4 text-green-600 mr-2 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:r("settings.cloudflare.wizard.intro.req1")})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx(o,{className:"w-4 h-4 text-green-600 mr-2 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:r("settings.cloudflare.wizard.intro.req2")})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx(o,{className:"w-4 h-4 text-green-600 mr-2 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:r("settings.cloudflare.wizard.intro.req3")})]})]})]}),e.jsxs("button",{onClick:()=>i("credentials"),className:"w-full px-4 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 flex items-center justify-center space-x-2",children:[e.jsx("span",{children:r("settings.cloudflare.wizard.intro.getStarted")}),e.jsx(J,{className:"w-5 h-5"})]})]}),te=()=>e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:e.jsxs("div",{className:"flex items-start",children:[e.jsx(g,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-400 mr-3 mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm text-yellow-800 dark:text-yellow-200",children:[e.jsx("p",{className:"font-medium mb-2",children:r("settings.cloudflare.wizard.credentials.howToGet")}),e.jsxs("ol",{className:"list-decimal list-inside space-y-1 ml-2",children:[e.jsx("li",{children:r("settings.cloudflare.wizard.credentials.step1")}),e.jsx("li",{children:r("settings.cloudflare.wizard.credentials.step2")}),e.jsx("li",{children:r("settings.cloudflare.wizard.credentials.step3")})]}),e.jsxs("a",{href:"https://dash.cloudflare.com/profile/api-tokens",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center mt-3 text-yellow-700 dark:text-yellow-300 hover:underline font-medium",children:[r("settings.cloudflare.wizard.credentials.openDashboard"),e.jsx(xe,{className:"w-4 h-4 ml-1"})]})]})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:r("settings.cloudflare.credentials.apiToken")}),e.jsx("input",{type:"password",value:h,onChange:t=>S(t.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white",placeholder:"Enter Cloudflare API Token"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:r("settings.cloudflare.credentials.accountId")}),e.jsx("input",{type:"text",value:b,onChange:t=>T(t.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white",placeholder:"Enter Cloudflare Account ID"})]}),e.jsx("button",{onClick:X,disabled:F||!h||!b,className:"w-full px-4 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center space-x-2",children:F?e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"w-5 h-5 animate-spin"}),e.jsx("span",{children:r("settings.cloudflare.credentials.saving")})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{children:r("settings.cloudflare.wizard.credentials.saveAndContinue")}),e.jsx(J,{className:"w-5 h-5"})]})})]})]}),se=()=>e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4",children:e.jsxs("div",{className:"flex items-start",children:[e.jsx(g,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("div",{className:"text-sm text-blue-800 dark:text-blue-200",children:e.jsx("p",{children:r("settings.cloudflare.wizard.create.description")})})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:r("settings.cloudflare.tunnel.subdomain")}),e.jsx("input",{type:"text",value:E,onChange:t=>H(t.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white",placeholder:r("settings.cloudflare.tunnel.subdomainPlaceholder")}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:r("settings.cloudflare.tunnel.subdomainHelp")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:r("settings.cloudflare.tunnel.localPort")}),e.jsx("input",{type:"number",value:I,onChange:t=>K(t.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white",placeholder:"4936"})]}),e.jsx("button",{onClick:Y,disabled:D,className:"w-full px-4 py-3 bg-green-600 text-white rounded-lg hover:bg-green-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center space-x-2",children:D?e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"w-5 h-5 animate-spin"}),e.jsx("span",{children:r("settings.cloudflare.tunnel.creating")})]}):e.jsxs(e.Fragment,{children:[e.jsx(_,{className:"w-5 h-5"}),e.jsx("span",{children:r("settings.cloudflare.wizard.create.createButton")})]})})]})]}),ae=()=>c?e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4",children:e.jsxs("div",{className:"flex items-start",children:[e.jsx(o,{className:"w-5 h-5 text-green-600 dark:text-green-400 mr-3 mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm text-green-800 dark:text-green-200",children:[e.jsx("p",{className:"font-medium",children:r("settings.cloudflare.wizard.start.tunnelCreated")}),e.jsx("p",{className:"mt-1",children:r("settings.cloudflare.wizard.start.nextStep")})]})]})}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-6",children:[e.jsx("h4",{className:"font-medium text-gray-900 dark:text-white mb-4",children:r("settings.cloudflare.wizard.start.yourPublicUrl")}),e.jsxs("div",{className:"flex items-center space-x-2 p-3 bg-gray-50 dark:bg-gray-900 rounded border border-gray-200 dark:border-gray-700",children:[e.jsx(ge,{className:"w-5 h-5 text-blue-600 flex-shrink-0"}),e.jsx("a",{href:c.publicUrl,target:"_blank",rel:"noopener noreferrer",className:"flex-1 text-blue-600 dark:text-blue-400 hover:underline font-mono text-sm break-all",children:c.publicUrl}),e.jsx("button",{onClick:()=>N(c.publicUrl,"url"),className:"p-2 hover:bg-gray-200 dark:hover:bg-gray-700 rounded flex-shrink-0",children:L?e.jsx(m,{className:"w-4 h-4 text-green-600"}):e.jsx(C,{className:"w-4 h-4"})})]})]}),e.jsx("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:e.jsxs("div",{className:"flex items-start",children:[e.jsx(W,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-400 mr-3 mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm text-yellow-800 dark:text-yellow-200",children:[e.jsx("p",{className:"font-medium mb-2",children:r("settings.cloudflare.wizard.start.importantNote")}),e.jsx("p",{children:r("settings.cloudflare.wizard.start.needToStartClient")})]})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h4",{className:"font-medium text-gray-900 dark:text-white",children:r("settings.cloudflare.wizard.start.howToStart")}),e.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-lg p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:[r("settings.cloudflare.wizard.start.option1")," (",r("settings.cloudflare.wizard.start.recommended"),")"]}),e.jsx("button",{onClick:()=>N(c.instructions.docker,"command"),className:"text-xs px-2 py-1 bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600 rounded flex items-center space-x-1",children:V?e.jsxs(e.Fragment,{children:[e.jsx(m,{className:"w-3 h-3"}),e.jsx("span",{children:r("settings.cloudflare.wizard.start.copied")})]}):e.jsxs(e.Fragment,{children:[e.jsx(C,{className:"w-3 h-3"}),e.jsx("span",{children:r("settings.cloudflare.wizard.start.copy")})]})})]}),e.jsx("code",{className:"block text-xs bg-white dark:bg-gray-800 p-3 rounded border border-gray-300 dark:border-gray-600 overflow-x-auto",children:c.instructions.docker})]}),e.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-lg p-4",children:[e.jsx("div",{className:"mb-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:r("settings.cloudflare.wizard.start.option2")})}),e.jsxs("div",{className:"space-y-2 text-xs text-gray-600 dark:text-gray-400",children:[e.jsxs("p",{children:["1. ",r("settings.cloudflare.wizard.start.installCloudfared")]}),e.jsx("code",{className:"block bg-white dark:bg-gray-800 p-2 rounded border border-gray-300 dark:border-gray-600",children:"brew install cloudflare/cloudflare/cloudflared"}),e.jsxs("p",{children:["2. ",r("settings.cloudflare.wizard.start.runCommand")]}),e.jsx("code",{className:"block bg-white dark:bg-gray-800 p-2 rounded border border-gray-300 dark:border-gray-600 overflow-x-auto",children:c.instructions.cli})]})]})]}),e.jsxs("button",{onClick:()=>{i("done"),p(!1)},className:"w-full px-4 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 flex items-center justify-center space-x-2",children:[e.jsx(o,{className:"w-5 h-5"}),e.jsx("span",{children:r("settings.cloudflare.wizard.start.finishSetup")})]})]}):null,le=()=>l?.activeTunnel?e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-6 text-center",children:[e.jsx(o,{className:"w-16 h-16 text-green-600 dark:text-green-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-green-900 dark:text-green-100 mb-2",children:r("settings.cloudflare.wizard.done.title")}),e.jsx("p",{className:"text-green-800 dark:text-green-200",children:r("settings.cloudflare.wizard.done.description")})]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h4",{className:"font-medium text-gray-900 dark:text-white",children:r("settings.cloudflare.tunnel.active")}),e.jsxs("button",{onClick:()=>Z(l.activeTunnel.tunnelId),className:"text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 text-sm flex items-center space-x-1",children:[e.jsx(ue,{className:"w-4 h-4"}),e.jsx("span",{children:r("settings.cloudflare.wizard.done.deleteTunnel")})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:[r("settings.cloudflare.tunnel.publicUrl"),":"]}),e.jsxs("div",{className:"flex items-center space-x-2 mt-1 p-2 bg-gray-50 dark:bg-gray-900 rounded",children:[e.jsx("a",{href:l.activeTunnel.publicUrl,target:"_blank",rel:"noopener noreferrer",className:"flex-1 text-blue-600 dark:text-blue-400 hover:underline font-mono text-sm break-all",children:l.activeTunnel.publicUrl}),e.jsx("button",{onClick:()=>N(l.activeTunnel.publicUrl,"url"),className:"p-1 hover:bg-gray-200 dark:hover:bg-gray-700 rounded",children:L?e.jsx(m,{className:"w-4 h-4 text-green-600"}):e.jsx(C,{className:"w-4 h-4"})})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:[r("settings.cloudflare.tunnel.name"),":"]}),e.jsx("p",{className:"font-mono text-gray-900 dark:text-white",children:l.activeTunnel.tunnelName})]}),e.jsxs("div",{children:[e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:[r("settings.cloudflare.tunnel.localPort"),":"]}),e.jsx("p",{className:"font-mono text-gray-900 dark:text-white",children:l.activeTunnel.localPort})]})]}),e.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:[r("settings.cloudflare.tunnel.createdAt"),": ",new Date(l.activeTunnel.createdAt).toLocaleString()]})]})]}),e.jsx("div",{className:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4",children:e.jsxs("div",{className:"flex items-start",children:[e.jsx(g,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 mr-3 mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"text-sm text-blue-800 dark:text-blue-200",children:[e.jsx("p",{className:"font-medium mb-1",children:r("settings.cloudflare.wizard.done.reminder")}),e.jsx("p",{children:r("settings.cloudflare.wizard.done.keepClientRunning")})]})]})})]}):null;return Q&&!l?e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx(z,{className:"w-8 h-8 animate-spin text-blue-500"})}):e.jsxs("div",{className:`${w?"space-y-4":"space-y-6"}`,children:[e.jsxs("div",{children:[e.jsxs("h2",{className:`${w?"text-xl":"text-2xl"} font-bold text-gray-900 dark:text-white mb-2 flex items-center space-x-2`,children:[e.jsx(O,{className:`${w?"w-5 h-5":"w-6 h-6"}`}),e.jsx("span",{children:r("settings.cloudflare.title")})]}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:r("settings.cloudflare.description")})]}),$&&e.jsxs("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 flex items-start space-x-3",children:[e.jsx(W,{className:"w-5 h-5 text-red-500 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm text-red-700 dark:text-red-400",children:$})]}),U&&e.jsxs("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 flex items-start space-x-3",children:[e.jsx(m,{className:"w-5 h-5 text-green-500 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm text-green-700 dark:text-green-400",children:U})]}),B&&e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-6",children:[ee(),x==="intro"&&re(),x==="credentials"&&te(),x==="create"&&se(),x==="start"&&ae(),x==="done"&&le()]}),!B&&l?.activeTunnel&&e.jsxs("button",{onClick:()=>p(!0),className:"text-blue-600 dark:text-blue-400 hover:underline text-sm flex items-center space-x-1",children:[e.jsx(g,{className:"w-4 h-4"}),e.jsx("span",{children:r("settings.cloudflare.wizard.showGuide")})]})]})};export{we as CloudflareTunnelPage};
@@ -1 +0,0 @@
1
- import{j as t}from"./data-structures-C0h9Oap1.js";import{b as i,O as r}from"./index-C8oBHB0h.js";import"./monaco-editor-DHKm5-VF.js";import"./syntax-highlighting-CnREyncB.js";import"./agents-B3InAIfY.js";import"./tools-CUwQTL-8.js";import"./ui-components-icUM6BEH.js";const l=()=>{const{isMobile:o}=i();return t.jsx("div",{className:o?"p-4":"p-8",children:t.jsx("div",{children:t.jsx(r,{})})})};export{l as SettingsLayout};
@@ -1 +0,0 @@
1
- import{U as a,R as n}from"./ChatPage-Ht-lF7H1.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as t,c as i,a as o,C as a}from"./chunk-B4BG7PRW-COcDV1Bz.js";import{_ as m}from"./ChatPage-Ht-lF7H1.js";import"./chunk-FMBD7UC4-CIUbRtI8.js";import"./chunk-55IACEB6-Dq-JM11t.js";import"./chunk-QN33PNHL-DWVKAIM5.js";import"./data-structures-C0h9Oap1.js";import"./monaco-editor-DHKm5-VF.js";import"./syntax-highlighting-CnREyncB.js";import"./agents-B3InAIfY.js";import"./tools-CUwQTL-8.js";import"./ui-components-icUM6BEH.js";import"./useAgents-HXlzUYSz.js";import"./useSessions-CanqFxtL.js";import"./index-C8oBHB0h.js";import"./useCommands-vX47i_1v.js";import"./useClaudeVersions-DQ5Wg6Zy.js";import"./FileExplorer-D5l2HgDS.js";import"./UnifiedToolSelector-Cw1xKmPZ.js";import"./FileBrowser-CDuDggHj.js";import"./ProjectSelector-2mn8IO5d.js";var x={parser:o,get db(){return new a},renderer:i,styles:t,init:m(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{x as diagram};
@@ -1 +0,0 @@
1
- import{s as t,c as i,a as o,C as a}from"./chunk-B4BG7PRW-COcDV1Bz.js";import{_ as m}from"./ChatPage-Ht-lF7H1.js";import"./chunk-FMBD7UC4-CIUbRtI8.js";import"./chunk-55IACEB6-Dq-JM11t.js";import"./chunk-QN33PNHL-DWVKAIM5.js";import"./data-structures-C0h9Oap1.js";import"./monaco-editor-DHKm5-VF.js";import"./syntax-highlighting-CnREyncB.js";import"./agents-B3InAIfY.js";import"./tools-CUwQTL-8.js";import"./ui-components-icUM6BEH.js";import"./useAgents-HXlzUYSz.js";import"./useSessions-CanqFxtL.js";import"./index-C8oBHB0h.js";import"./useCommands-vX47i_1v.js";import"./useClaudeVersions-DQ5Wg6Zy.js";import"./FileExplorer-D5l2HgDS.js";import"./UnifiedToolSelector-Cw1xKmPZ.js";import"./FileBrowser-CDuDggHj.js";import"./ProjectSelector-2mn8IO5d.js";var x={parser:o,get db(){return new a},renderer:i,styles:t,init:m(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{x as diagram};
@@ -1 +0,0 @@
1
- import{b as r}from"./_baseUniq-B_gfAzTb.js";var e=4;function a(o){return r(o,e)}export{a as c};
@@ -1,2 +0,0 @@
1
- import{_ as o,l as e,H as p,e as m,I as s}from"./ChatPage-Ht-lF7H1.js";import{p as n}from"./treemap-KMMF4GRG-pUUUNNXu.js";import"./data-structures-C0h9Oap1.js";import"./monaco-editor-DHKm5-VF.js";import"./syntax-highlighting-CnREyncB.js";import"./agents-B3InAIfY.js";import"./tools-CUwQTL-8.js";import"./ui-components-icUM6BEH.js";import"./useAgents-HXlzUYSz.js";import"./useSessions-CanqFxtL.js";import"./index-C8oBHB0h.js";import"./useCommands-vX47i_1v.js";import"./useClaudeVersions-DQ5Wg6Zy.js";import"./FileExplorer-D5l2HgDS.js";import"./UnifiedToolSelector-Cw1xKmPZ.js";import"./FileBrowser-CDuDggHj.js";import"./ProjectSelector-2mn8IO5d.js";import"./_baseUniq-B_gfAzTb.js";import"./_basePickBy-DQTDhNdw.js";import"./clone-T66nRwp8.js";var g={parse:o(async r=>{const t=await n("info",r);e.debug(t)},"parse")},v={version:s.version+""},d=o(()=>v.version,"getVersion"),c={getVersion:d},l=o((r,t,i)=>{e.debug(`rendering info diagram
2
- `+r);const a=p(t);m(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw"),f={draw:l},T={parser:g,db:c,renderer:f};export{T as diagram};
@@ -1 +0,0 @@
1
- import{s as r,b as e,a as i,S as a}from"./chunk-DI55MBZ5-AiToZLMc.js";import{_ as o}from"./ChatPage-Ht-lF7H1.js";import"./chunk-55IACEB6-Dq-JM11t.js";import"./chunk-QN33PNHL-DWVKAIM5.js";import"./data-structures-C0h9Oap1.js";import"./monaco-editor-DHKm5-VF.js";import"./syntax-highlighting-CnREyncB.js";import"./agents-B3InAIfY.js";import"./tools-CUwQTL-8.js";import"./ui-components-icUM6BEH.js";import"./useAgents-HXlzUYSz.js";import"./useSessions-CanqFxtL.js";import"./index-C8oBHB0h.js";import"./useCommands-vX47i_1v.js";import"./useClaudeVersions-DQ5Wg6Zy.js";import"./FileExplorer-D5l2HgDS.js";import"./UnifiedToolSelector-Cw1xKmPZ.js";import"./FileBrowser-CDuDggHj.js";import"./ProjectSelector-2mn8IO5d.js";var x={parser:i,get db(){return new a(2)},renderer:e,styles:r,init:o(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{x as diagram};