agentstudio 0.2.3 → 0.2.4

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 (81) hide show
  1. package/package.json +1 -1
  2. package/public/assets/{AgentsPage-DgoZNP6l.js → AgentsPage-rLPOC44M.js} +1 -1
  3. package/public/assets/{Button-BHiMThm4.js → Button-CfU7z0eT.js} +1 -1
  4. package/public/assets/{ChatPage-LoTJrT43.js → ChatPage-Cl0wXezZ.js} +88 -88
  5. package/public/assets/{CommandsPage-CwEoyASk.js → CommandsPage-BgFvm2GI.js} +1 -1
  6. package/public/assets/{DashboardPage-BSi_T1tY.js → DashboardPage-BoonTnMH.js} +1 -1
  7. package/public/assets/{FileBrowser-Df-zwNDa.js → FileBrowser-BiAm3yrg.js} +1 -1
  8. package/public/assets/{GeneralSettingsPage-DcGmAzci.js → GeneralSettingsPage-BDayH81k.js} +1 -1
  9. package/public/assets/{LandingPage-DPKvTTja.js → LandingPage-DqS5qWgL.js} +1 -1
  10. package/public/assets/{LoginPage-BPJUgLru.js → LoginPage-C87yR34d.js} +1 -1
  11. package/public/assets/{McpAdminSettingsPage-CZZS-pa0.js → McpAdminSettingsPage-DIJs6UrH.js} +1 -1
  12. package/public/assets/{McpPage-CPF7txxc.js → McpPage-Dc4U_68i.js} +1 -1
  13. package/public/assets/{MemorySettingsPage-YenW4l-g.js → MemorySettingsPage-TErKrnR2.js} +1 -1
  14. package/public/assets/{PluginsPage-zlAB63Im.js → PluginsPage-DmCoLCdj.js} +1 -1
  15. package/public/assets/{ProjectSelector-Bq0NQ_bV.js → ProjectSelector-CFrsNw4L.js} +1 -1
  16. package/public/assets/{ProjectsPage-BMBRp4RN.js → ProjectsPage-DjumWKPo.js} +1 -1
  17. package/public/assets/{ScheduledTasksPage-B_hOD6AS.js → ScheduledTasksPage-CsFL7MD9.js} +1 -1
  18. package/public/assets/{SettingsLayout-CY9Siffq.js → SettingsLayout-D18ZK4TY.js} +1 -1
  19. package/public/assets/{SkillsPage-X-LMnwZd.js → SkillsPage-DxIdnjRM.js} +1 -1
  20. package/public/assets/{SubagentsPage-DIG_rKjQ.js → SubagentsPage-DWCgPFzI.js} +1 -1
  21. package/public/assets/{SystemInfoPage-CWgKWnQg.js → SystemInfoPage-C_kd76VQ.js} +1 -1
  22. package/public/assets/{TelemetrySettingsPage-BLnMagRZ.js → TelemetrySettingsPage-recK8TS7.js} +1 -1
  23. package/public/assets/{ToastTestPage-CQ0nobQd.js → ToastTestPage-DYwSASe6.js} +1 -1
  24. package/public/assets/{VersionSettingsPage-BxjDPWm0.js → VersionSettingsPage-DC_PL1Lo.js} +1 -1
  25. package/public/assets/{_basePickBy-D_S4EWYL.js → _basePickBy-DtI5oYel.js} +1 -1
  26. package/public/assets/{_baseUniq-BmQef9o6.js → _baseUniq-kP1SFZPO.js} +1 -1
  27. package/public/assets/{arc-DzCTkvPU.js → arc-cZ3PN_u0.js} +1 -1
  28. package/public/assets/{architectureDiagram-VXUJARFQ-8nWlVbiO.js → architectureDiagram-VXUJARFQ-BRn1b9Ct.js} +1 -1
  29. package/public/assets/{blockDiagram-VD42YOAC-DbHo3vzo.js → blockDiagram-VD42YOAC-B6Fmf92Z.js} +1 -1
  30. package/public/assets/{c4Diagram-YG6GDRKO-DqFGiZ7Y.js → c4Diagram-YG6GDRKO-BdApn9Kl.js} +1 -1
  31. package/public/assets/channel-CIc09SLj.js +1 -0
  32. package/public/assets/{chunk-4BX2VUAB-KZtUHSw3.js → chunk-4BX2VUAB-CFByNt-E.js} +1 -1
  33. package/public/assets/{chunk-55IACEB6-DTotxzVH.js → chunk-55IACEB6-DOcPvMrL.js} +1 -1
  34. package/public/assets/{chunk-B4BG7PRW-CkjDO6x_.js → chunk-B4BG7PRW-CYQhDwZH.js} +1 -1
  35. package/public/assets/{chunk-DI55MBZ5-ZN0hc9BQ.js → chunk-DI55MBZ5-fO-G4DQE.js} +1 -1
  36. package/public/assets/{chunk-FMBD7UC4--jXmtjeY.js → chunk-FMBD7UC4-CvFCkBe9.js} +1 -1
  37. package/public/assets/{chunk-QN33PNHL-D-FiWiLB.js → chunk-QN33PNHL-C4dfuLJX.js} +1 -1
  38. package/public/assets/{chunk-QZHKN3VN-BRs4hln6.js → chunk-QZHKN3VN-BHcbArKX.js} +1 -1
  39. package/public/assets/{chunk-TZMSLE5B-BUZTflc7.js → chunk-TZMSLE5B-NAHq3aeT.js} +1 -1
  40. package/public/assets/{classDiagram-2ON5EDUG-7Lo3C-C9.js → classDiagram-2ON5EDUG-BX8bS8-I.js} +1 -1
  41. package/public/assets/{classDiagram-v2-WZHVMYZB-7Lo3C-C9.js → classDiagram-v2-WZHVMYZB-BX8bS8-I.js} +1 -1
  42. package/public/assets/clone-CPcgYjA1.js +1 -0
  43. package/public/assets/{cose-bilkent-S5V4N54A-s2WN1XmV.js → cose-bilkent-S5V4N54A-C06C9ZJa.js} +1 -1
  44. package/public/assets/{dagre-6UL2VRFP-CxaKwQyB.js → dagre-6UL2VRFP-DCPyTNLq.js} +1 -1
  45. package/public/assets/{diagram-PSM6KHXK-SU1hlbjn.js → diagram-PSM6KHXK-D_EHe21D.js} +1 -1
  46. package/public/assets/{diagram-QEK2KX5R-hcM85tep.js → diagram-QEK2KX5R-BlulhQOc.js} +1 -1
  47. package/public/assets/{diagram-S2PKOQOG-BOmtKWhQ.js → diagram-S2PKOQOG-DeNVHhsT.js} +1 -1
  48. package/public/assets/{erDiagram-Q2GNP2WA-CsTay3Qr.js → erDiagram-Q2GNP2WA-Bnz9kE57.js} +1 -1
  49. package/public/assets/{flowDiagram-NV44I4VS-QLwVU4W3.js → flowDiagram-NV44I4VS-CFn031Y3.js} +1 -1
  50. package/public/assets/{ganttDiagram-LVOFAZNH-CEJd76u6.js → ganttDiagram-LVOFAZNH-BSduoCu_.js} +1 -1
  51. package/public/assets/{gitGraphDiagram-NY62KEGX-Cr7KuVc8.js → gitGraphDiagram-NY62KEGX-Bjbb7yAS.js} +1 -1
  52. package/public/assets/{graph-B12xs1JB.js → graph-D2RBy8e5.js} +1 -1
  53. package/public/assets/{index-BFYHztzB.js → index-BLjehayc.js} +2 -2
  54. package/public/assets/{infoDiagram-F6ZHWCRC-B6PyESp0.js → infoDiagram-F6ZHWCRC-BfeoDjKc.js} +1 -1
  55. package/public/assets/{journeyDiagram-XKPGCS4Q-DSlyGZSv.js → journeyDiagram-XKPGCS4Q-8tSVYPVe.js} +1 -1
  56. package/public/assets/{kanban-definition-3W4ZIXB7-DbDLw__g.js → kanban-definition-3W4ZIXB7-DwrpLyOH.js} +1 -1
  57. package/public/assets/{layout-OtboCb25.js → layout-B6w-fMcI.js} +1 -1
  58. package/public/assets/{linear-Bg3HtxIB.js → linear-ClbokBhh.js} +1 -1
  59. package/public/assets/{mindmap-definition-VGOIOE7T-DZ4bp0qm.js → mindmap-definition-VGOIOE7T-BurOGP_m.js} +1 -1
  60. package/public/assets/{pieDiagram-ADFJNKIX-Am2n8jc0.js → pieDiagram-ADFJNKIX-MUQTeIhp.js} +1 -1
  61. package/public/assets/{quadrantDiagram-AYHSOK5B-DPm8iQzH.js → quadrantDiagram-AYHSOK5B-COgCGFdz.js} +1 -1
  62. package/public/assets/{requirementDiagram-UZGBJVZJ-hVW5YE3R.js → requirementDiagram-UZGBJVZJ-DlYkINPo.js} +1 -1
  63. package/public/assets/{sankeyDiagram-TZEHDZUN-DX8gGHoq.js → sankeyDiagram-TZEHDZUN-oj7WNP67.js} +1 -1
  64. package/public/assets/{sequenceDiagram-WL72ISMW-Brl8T0m9.js → sequenceDiagram-WL72ISMW-TUi1zhlp.js} +1 -1
  65. package/public/assets/{stateDiagram-FKZM4ZOC-CxrXSnfX.js → stateDiagram-FKZM4ZOC-B7tNjdp0.js} +1 -1
  66. package/public/assets/{stateDiagram-v2-4FDKWEC3-BJfGHaLv.js → stateDiagram-v2-4FDKWEC3-9TkkItno.js} +1 -1
  67. package/public/assets/{table-D-FJ6K6j.js → table-Br8ioTXr.js} +1 -1
  68. package/public/assets/{timeline-definition-IT6M3QCI-CO6fKxuR.js → timeline-definition-IT6M3QCI-CSSGR7Wj.js} +1 -1
  69. package/public/assets/{treemap-KMMF4GRG-BsoblFM5.js → treemap-KMMF4GRG-BAb3Fz4w.js} +1 -1
  70. package/public/assets/{xychartDiagram-PRI3JC2R-B6g-H_PO.js → xychartDiagram-PRI3JC2R-Cd2BfyOw.js} +1 -1
  71. package/public/index.html +1 -1
  72. package/services/__tests__/projectMetadataStorage.test.d.ts +5 -0
  73. package/services/__tests__/projectMetadataStorage.test.d.ts.map +1 -0
  74. package/services/__tests__/projectMetadataStorage.test.js +154 -0
  75. package/services/__tests__/projectMetadataStorage.test.js.map +1 -0
  76. package/services/projectMetadataStorage.d.ts +7 -1
  77. package/services/projectMetadataStorage.d.ts.map +1 -1
  78. package/services/projectMetadataStorage.js +79 -25
  79. package/services/projectMetadataStorage.js.map +1 -1
  80. package/public/assets/channel-DlGw39mX.js +0 -1
  81. package/public/assets/clone-180En6VP.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentstudio",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "AgentStudio - AI-powered agent workspace with Claude integration. One command to start your AI agent studio.",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -1,4 +1,4 @@
1
- import{j as e}from"./data-structures-C0h9Oap1.js";import{r as o}from"./monaco-editor-DHKm5-VF.js";import{T as ae,a as re,b as W,c as E,d as te,e as A}from"./table-D-FJ6K6j.js";import{u as le,d as ne,e as oe,f as de}from"./useAgents-BlQGwXjx.js";import{u as ie}from"./agents-D9dWnZr0.js";import{P as ce}from"./ProjectSelector-Bq0NQ_bV.js";import{U as xe}from"./UnifiedToolSelector-Bw-E7HW4.js";import{b as me,a as $}from"./index-BFYHztzB.js";import{T as K}from"./ToolsList-C9LELdNX.js";import{u as ue}from"./tools-zTM46-tZ.js";import{g as ge,v as he,ag as z,J as Y,y as H,r as pe,ab as be,E as ye,a8 as fe,a3 as je,X as ve}from"./ui-components-BsYwJvCF.js";import"./syntax-highlighting-CnREyncB.js";import"./FileBrowser-Df-zwNDa.js";const Ne=({value:t,onChange:u,disabled:i=!1})=>{const[h,b]=o.useState(typeof t=="string"?"custom":"preset"),v=n=>{b(n),u(n==="custom"?"":{type:"preset",preset:"claude_code"})},N=n=>{u({type:"preset",preset:t?.preset||"claude_code",append:n})},y=n=>{u(n)};return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"提示词类型:"}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx("button",{type:"button",onClick:()=>v("custom"),disabled:i,className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${h==="custom"?"bg-blue-600 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"} ${i?"opacity-50 cursor-not-allowed":""}`,children:"自定义"}),e.jsx("button",{type:"button",onClick:()=>v("preset"),disabled:i,className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${h==="preset"?"bg-blue-600 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"} ${i?"opacity-50 cursor-not-allowed":""}`,children:"预设"})]})]}),h==="custom"&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"系统提示词"}),e.jsx("textarea",{value:typeof t=="string"?t:"",onChange:n=>y(n.target.value),disabled:i,rows:8,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 font-mono text-sm dark:bg-gray-700 dark:text-white",placeholder:"输入助手的系统提示词..."})]}),h==="preset"&&e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"预设类型"}),e.jsx("div",{className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-700 text-sm dark:text-white",children:"Claude Code 预设 (使用 Claude Code SDK 的默认提示词)"}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"所有预设都基于 Claude Code SDK 的默认提示词,通过追加内容来定制不同用途"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"追加提示词 (可选)"}),e.jsx("textarea",{value:t?.append||"",onChange:n=>N(n.target.value),disabled:i,rows:4,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 font-mono text-sm dark:bg-gray-700 dark:text-white",placeholder:"在预设提示词后追加自定义内容..."}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"这段内容将追加到 Claude Code 默认提示词的后面"})]})]})]})},Ue=()=>{const{t}=ue("pages"),{isMobile:u}=me(),{data:i,isLoading:h}=le(),b=ne(),v=oe(),N=de(),y=ie(),[n,f]=o.useState(null),[a,d]=o.useState({}),[c,k]=o.useState(!1),[J,w]=o.useState(!1),[R,x]=o.useState(null),[T,S]=o.useState(null),[p,X]=o.useState(""),[I,U]=o.useState(!1),[C,D]=o.useState([]),[j,P]=o.useState([]),[B,M]=o.useState(!1),[L,O]=o.useState({}),q=i?.agents||[],F=q.filter(s=>s.name.toLowerCase().includes(p.toLowerCase())||s.description.toLowerCase().includes(p.toLowerCase())),Z=s=>{if(T){const r=new URLSearchParams;r.set("project",s);const l=`/chat/${T.id}?${r.toString()}`;window.open(l,"_blank")}w(!1),S(null)},V=async s=>{try{await b.mutateAsync({agentId:s.id,data:{enabled:!s.enabled}}),y.invalidateQueries({queryKey:["agents"]})}catch(r){console.error("Failed to toggle agent:",r),$(t("agents.errors.toggleFailed"))}},G=s=>{f(s),d(s),k(!1);const r=s.allowedTools?.filter(g=>g.enabled).map(g=>g.name)||[],l=r.filter(g=>!g.startsWith("mcp__")),m=r.filter(g=>g.startsWith("mcp__"));D(l),P(m),M(m.length>0)},_=()=>{const s=q.find(m=>m.id==="general-chat"),r={id:`agent-${Date.now()}`,name:"",description:"",version:"1.0.0",systemPrompt:s?.systemPrompt||`You are a general-purpose AI assistant. You can help with:
1
+ import{j as e}from"./data-structures-C0h9Oap1.js";import{r as o}from"./monaco-editor-DHKm5-VF.js";import{T as ae,a as re,b as W,c as E,d as te,e as A}from"./table-Br8ioTXr.js";import{u as le,d as ne,e as oe,f as de}from"./useAgents-BlQGwXjx.js";import{u as ie}from"./agents-D9dWnZr0.js";import{P as ce}from"./ProjectSelector-CFrsNw4L.js";import{U as xe}from"./UnifiedToolSelector-Bw-E7HW4.js";import{b as me,a as $}from"./index-BLjehayc.js";import{T as K}from"./ToolsList-C9LELdNX.js";import{u as ue}from"./tools-zTM46-tZ.js";import{g as ge,v as he,ag as z,J as Y,y as H,r as pe,ab as be,E as ye,a8 as fe,a3 as je,X as ve}from"./ui-components-BsYwJvCF.js";import"./syntax-highlighting-CnREyncB.js";import"./FileBrowser-BiAm3yrg.js";const Ne=({value:t,onChange:u,disabled:i=!1})=>{const[h,b]=o.useState(typeof t=="string"?"custom":"preset"),v=n=>{b(n),u(n==="custom"?"":{type:"preset",preset:"claude_code"})},N=n=>{u({type:"preset",preset:t?.preset||"claude_code",append:n})},y=n=>{u(n)};return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"提示词类型:"}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx("button",{type:"button",onClick:()=>v("custom"),disabled:i,className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${h==="custom"?"bg-blue-600 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"} ${i?"opacity-50 cursor-not-allowed":""}`,children:"自定义"}),e.jsx("button",{type:"button",onClick:()=>v("preset"),disabled:i,className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${h==="preset"?"bg-blue-600 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"} ${i?"opacity-50 cursor-not-allowed":""}`,children:"预设"})]})]}),h==="custom"&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"系统提示词"}),e.jsx("textarea",{value:typeof t=="string"?t:"",onChange:n=>y(n.target.value),disabled:i,rows:8,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 font-mono text-sm dark:bg-gray-700 dark:text-white",placeholder:"输入助手的系统提示词..."})]}),h==="preset"&&e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"预设类型"}),e.jsx("div",{className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-700 text-sm dark:text-white",children:"Claude Code 预设 (使用 Claude Code SDK 的默认提示词)"}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"所有预设都基于 Claude Code SDK 的默认提示词,通过追加内容来定制不同用途"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"追加提示词 (可选)"}),e.jsx("textarea",{value:t?.append||"",onChange:n=>N(n.target.value),disabled:i,rows:4,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 font-mono text-sm dark:bg-gray-700 dark:text-white",placeholder:"在预设提示词后追加自定义内容..."}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"这段内容将追加到 Claude Code 默认提示词的后面"})]})]})]})},Ue=()=>{const{t}=ue("pages"),{isMobile:u}=me(),{data:i,isLoading:h}=le(),b=ne(),v=oe(),N=de(),y=ie(),[n,f]=o.useState(null),[a,d]=o.useState({}),[c,k]=o.useState(!1),[J,w]=o.useState(!1),[R,x]=o.useState(null),[T,S]=o.useState(null),[p,X]=o.useState(""),[I,U]=o.useState(!1),[C,D]=o.useState([]),[j,P]=o.useState([]),[B,M]=o.useState(!1),[L,O]=o.useState({}),q=i?.agents||[],F=q.filter(s=>s.name.toLowerCase().includes(p.toLowerCase())||s.description.toLowerCase().includes(p.toLowerCase())),Z=s=>{if(T){const r=new URLSearchParams;r.set("project",s);const l=`/chat/${T.id}?${r.toString()}`;window.open(l,"_blank")}w(!1),S(null)},V=async s=>{try{await b.mutateAsync({agentId:s.id,data:{enabled:!s.enabled}}),y.invalidateQueries({queryKey:["agents"]})}catch(r){console.error("Failed to toggle agent:",r),$(t("agents.errors.toggleFailed"))}},G=s=>{f(s),d(s),k(!1);const r=s.allowedTools?.filter(g=>g.enabled).map(g=>g.name)||[],l=r.filter(g=>!g.startsWith("mcp__")),m=r.filter(g=>g.startsWith("mcp__"));D(l),P(m),M(m.length>0)},_=()=>{const s=q.find(m=>m.id==="general-chat"),r={id:`agent-${Date.now()}`,name:"",description:"",version:"1.0.0",systemPrompt:s?.systemPrompt||`You are a general-purpose AI assistant. You can help with:
2
2
  - General questions and conversations
3
3
  - Problem-solving and brainstorming
4
4
  - Information and explanations
@@ -1 +1 @@
1
- import{j as s}from"./data-structures-C0h9Oap1.js";import{W as d}from"./monaco-editor-DHKm5-VF.js";import{t as i,h as u}from"./index-BFYHztzB.js";function c(...o){return i(u(o))}const f=d.forwardRef(({className:o,variant:e="default",size:r="default",...t},n)=>s.jsx("button",{className:c("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{"bg-primary text-primary-foreground hover:bg-primary/90":e==="default","bg-destructive text-destructive-foreground hover:bg-destructive/90":e==="destructive","border border-input bg-background hover:bg-accent hover:text-accent-foreground":e==="outline","bg-secondary text-secondary-foreground hover:bg-secondary/80":e==="secondary","hover:bg-accent hover:text-accent-foreground":e==="ghost"},{"h-10 px-4 py-2":r==="default","h-9 rounded-md px-3":r==="sm","h-11 rounded-md px-8":r==="lg","h-10 w-10":r==="icon"},o),ref:n,...t}));f.displayName="Button";export{f as B,c};
1
+ import{j as s}from"./data-structures-C0h9Oap1.js";import{W as d}from"./monaco-editor-DHKm5-VF.js";import{t as i,h as u}from"./index-BLjehayc.js";function c(...o){return i(u(o))}const f=d.forwardRef(({className:o,variant:e="default",size:r="default",...t},n)=>s.jsx("button",{className:c("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{"bg-primary text-primary-foreground hover:bg-primary/90":e==="default","bg-destructive text-destructive-foreground hover:bg-destructive/90":e==="destructive","border border-input bg-background hover:bg-accent hover:text-accent-foreground":e==="outline","bg-secondary text-secondary-foreground hover:bg-secondary/80":e==="secondary","hover:bg-accent hover:text-accent-foreground":e==="ghost"},{"h-10 px-4 py-2":r==="default","h-9 rounded-md px-3":r==="sm","h-11 rounded-md px-8":r==="lg","h-10 w-10":r==="icon"},o),ref:n,...t}));f.displayName="Button";export{f as B,c};