agentstudio 0.1.18 → 0.1.20

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 (602) hide show
  1. package/README.md +26 -505
  2. package/bin/agentstudio.js +305 -0
  3. package/bin/agentstudio.js.map +1 -0
  4. package/bin/serviceManager.d.ts +16 -0
  5. package/bin/serviceManager.d.ts.map +1 -0
  6. package/bin/serviceManager.js +434 -0
  7. package/bin/serviceManager.js.map +1 -0
  8. package/config/index.d.ts +74 -0
  9. package/config/index.d.ts.map +1 -0
  10. package/config/index.js +166 -0
  11. package/config/index.js.map +1 -0
  12. package/config/paths.d.ts +81 -0
  13. package/config/paths.d.ts.map +1 -0
  14. package/config/paths.js +98 -0
  15. package/config/paths.js.map +1 -0
  16. package/index.d.ts +4 -0
  17. package/index.d.ts.map +1 -0
  18. package/index.js +364 -0
  19. package/index.js.map +1 -0
  20. package/jobs/taskTimeoutMonitor.d.ts +25 -0
  21. package/jobs/taskTimeoutMonitor.d.ts.map +1 -0
  22. package/jobs/taskTimeoutMonitor.js +94 -0
  23. package/jobs/taskTimeoutMonitor.js.map +1 -0
  24. package/middleware/a2aAuth.d.ts +38 -0
  25. package/middleware/a2aAuth.d.ts.map +1 -0
  26. package/middleware/a2aAuth.js +134 -0
  27. package/middleware/a2aAuth.js.map +1 -0
  28. package/{backend/dist/middleware → middleware}/auth.d.ts +3 -1
  29. package/middleware/auth.d.ts.map +1 -0
  30. package/middleware/auth.js +35 -0
  31. package/middleware/auth.js.map +1 -0
  32. package/middleware/httpsOnly.d.ts +38 -0
  33. package/middleware/httpsOnly.d.ts.map +1 -0
  34. package/middleware/httpsOnly.js +105 -0
  35. package/middleware/httpsOnly.js.map +1 -0
  36. package/middleware/rateLimiting.d.ts +37 -0
  37. package/middleware/rateLimiting.d.ts.map +1 -0
  38. package/middleware/rateLimiting.js +118 -0
  39. package/middleware/rateLimiting.js.map +1 -0
  40. package/package.json +43 -38
  41. package/public/assets/AgentsPage-CKTz2ND6.js +10 -0
  42. package/public/assets/Button-Dg6ni5Yl.js +1 -0
  43. package/public/assets/ChatPage-DkO3kzY2.js +442 -0
  44. package/public/assets/CommandForm-CIfw9mVj.js +7 -0
  45. package/public/assets/CommandsPage-BgN0E41K.js +1 -0
  46. package/public/assets/DashboardPage-Duu6pBON.js +15 -0
  47. package/public/assets/FileBrowser-Bnm7ZyGT.js +6 -0
  48. package/public/assets/FileExplorer-Dy8ZFDtK.js +1 -0
  49. package/public/assets/GeneralSettingsPage-BJTiwSqP.js +1 -0
  50. package/public/assets/LandingPage-CCqtSDce.js +1 -0
  51. package/public/assets/LoginPage-DCI_RABC.js +16 -0
  52. package/public/assets/McpPage-Dj4bE6a2.js +40 -0
  53. package/public/assets/MemorySettingsPage-v7kI6DEB.js +1 -0
  54. package/public/assets/PluginsPage-CQ08px0h.js +1 -0
  55. package/public/assets/ProjectSelector-DKkhmVGz.js +1 -0
  56. package/public/assets/ProjectsPage-6nGz1v6U.js +21 -0
  57. package/public/assets/ScheduledTasksPage-Dv8qPeLY.js +1 -0
  58. package/public/assets/SettingsLayout-stXQCl6u.js +1 -0
  59. package/public/assets/SkillsPage-DlQPlwG5.js +18 -0
  60. package/{backend/dist/frontend/assets/SubagentForm-DXtTTIKg.js → public/assets/SubagentForm-iYJ0l9vh.js} +2 -2
  61. package/public/assets/SubagentsPage-ksh-LWAC.js +1 -0
  62. package/{backend/dist/frontend/assets/ToastTestPage-DT4wuN5C.js → public/assets/ToastTestPage-pxyInZeD.js} +1 -1
  63. package/public/assets/ToolsList-CWZLcBx2.js +1 -0
  64. package/public/assets/UnifiedToolSelector-A2UIt1Xn.js +1 -0
  65. package/public/assets/VersionSettingsPage-ClLBqAIC.js +5 -0
  66. package/public/assets/_basePickBy-Ce1_TuBk.js +1 -0
  67. package/public/assets/_baseUniq-Dt6C4BgZ.js +1 -0
  68. package/public/assets/agents-C4aCwcCz.js +1 -0
  69. package/public/assets/arc-c63c3GDw.js +1 -0
  70. package/public/assets/architectureDiagram-VXUJARFQ-rnurJGX4.js +36 -0
  71. package/public/assets/blockDiagram-VD42YOAC-CM33sjhb.js +122 -0
  72. package/public/assets/c4Diagram-YG6GDRKO-B1tJjciL.js +10 -0
  73. package/public/assets/channel-6fK1csbi.js +1 -0
  74. package/public/assets/chunk-4BX2VUAB-vbzk_8Ta.js +1 -0
  75. package/public/assets/chunk-55IACEB6-CNXjTgeK.js +1 -0
  76. package/public/assets/chunk-B4BG7PRW-CykotMKj.js +165 -0
  77. package/public/assets/chunk-DI55MBZ5-DbZodDrP.js +220 -0
  78. package/public/assets/chunk-FMBD7UC4-u0h-4JXb.js +15 -0
  79. package/public/assets/chunk-QN33PNHL-B7VLbRpC.js +1 -0
  80. package/public/assets/chunk-QZHKN3VN-DfcZEdwM.js +1 -0
  81. package/public/assets/chunk-TZMSLE5B-BP4O9iGm.js +1 -0
  82. package/public/assets/classDiagram-2ON5EDUG-PrDkNsdA.js +1 -0
  83. package/public/assets/classDiagram-v2-WZHVMYZB-PrDkNsdA.js +1 -0
  84. package/public/assets/clone-CXX9AxT7.js +1 -0
  85. package/public/assets/cose-bilkent-S5V4N54A-CSV8iDOr.js +1 -0
  86. package/public/assets/cytoscape.esm-DtBltrT8.js +331 -0
  87. package/public/assets/dagre-6UL2VRFP-S5vHkFwY.js +4 -0
  88. package/{backend/dist/frontend/assets/data-structures-DLJedtzx.js → public/assets/data-structures-C0h9Oap1.js} +1 -1
  89. package/public/assets/defaultLocale-C4B-KCzX.js +1 -0
  90. package/public/assets/diagram-PSM6KHXK-Bl4NbJsm.js +24 -0
  91. package/public/assets/diagram-QEK2KX5R-D-6ipdkt.js +43 -0
  92. package/public/assets/diagram-S2PKOQOG-DBuN3kfb.js +24 -0
  93. package/public/assets/erDiagram-Q2GNP2WA-DEhlyUw1.js +60 -0
  94. package/public/assets/flowDiagram-NV44I4VS-PsSk5-Xf.js +162 -0
  95. package/public/assets/ganttDiagram-LVOFAZNH-PfD-vtKp.js +267 -0
  96. package/public/assets/gitGraphDiagram-NY62KEGX-CUq51Mt1.js +65 -0
  97. package/public/assets/graph-Bc5M3bvZ.js +1 -0
  98. package/public/assets/index-ImPzdvfG.js +293 -0
  99. package/public/assets/index-TEVaBQiv.css +1 -0
  100. package/public/assets/infoDiagram-F6ZHWCRC-BTR1hJCm.js +2 -0
  101. package/public/assets/init-Gi6I4Gst.js +1 -0
  102. package/public/assets/journeyDiagram-XKPGCS4Q-CTyau8Sh.js +139 -0
  103. package/public/assets/kanban-definition-3W4ZIXB7-2R3dHQq1.js +89 -0
  104. package/public/assets/katex-qrhCpa0F.js +261 -0
  105. package/public/assets/layout-BCktuL_6.js +1 -0
  106. package/public/assets/linear-lHuinZOC.js +1 -0
  107. package/public/assets/mindmap-definition-VGOIOE7T-Dl8qR3zk.js +68 -0
  108. package/public/assets/monaco-editor-DHKm5-VF.js +19 -0
  109. package/public/assets/ordinal-Cboi1Yqb.js +1 -0
  110. package/public/assets/pieDiagram-ADFJNKIX-Bqcukh_c.js +30 -0
  111. package/public/assets/quadrantDiagram-AYHSOK5B-C_uML1JV.js +7 -0
  112. package/public/assets/requirementDiagram-UZGBJVZJ-QUbH9ShO.js +64 -0
  113. package/public/assets/sankeyDiagram-TZEHDZUN-CEomXpQ1.js +10 -0
  114. package/public/assets/sequenceDiagram-WL72ISMW-DNsDMjTd.js +145 -0
  115. package/public/assets/stateDiagram-FKZM4ZOC-BA_Narwp.js +1 -0
  116. package/public/assets/stateDiagram-v2-4FDKWEC3-Cy5am68v.js +1 -0
  117. package/{backend/dist/frontend/assets/syntax-highlighting-YWvMU4Hm.js → public/assets/syntax-highlighting-CnREyncB.js} +5 -5
  118. package/public/assets/tabManager-CkNKjP4G.js +30 -0
  119. package/{backend/dist/frontend/assets/table-D6q1rytw.js → public/assets/table-CSWCaVuS.js} +1 -1
  120. package/public/assets/timeline-definition-IT6M3QCI-DeEgHBeI.js +61 -0
  121. package/public/assets/tools-C7xmF_rB.js +1 -0
  122. package/public/assets/treemap-KMMF4GRG-5HQSTjk6.js +128 -0
  123. package/{backend/dist/frontend/assets/ui-components-Cw21Epuw.js → public/assets/ui-components-BNdpaz32.js} +221 -96
  124. package/public/assets/useAgents-C9aEFOWD.js +2 -0
  125. package/public/assets/useClaudeVersions-CcFqpR2o.js +1 -0
  126. package/public/assets/useCommands-BadxYHf2.js +1 -0
  127. package/public/assets/useProjects-Dgk7ldPq.js +1 -0
  128. package/public/assets/xychartDiagram-PRI3JC2R-C7BNHmgo.js +7 -0
  129. package/{backend/dist/frontend → public}/index.html +8 -8
  130. package/routes/__tests__/a2a.integration.test.d.ts +11 -0
  131. package/routes/__tests__/a2a.integration.test.d.ts.map +1 -0
  132. package/routes/__tests__/a2a.integration.test.js +314 -0
  133. package/routes/__tests__/a2a.integration.test.js.map +1 -0
  134. package/routes/__tests__/a2a.test.d.ts +6 -0
  135. package/routes/__tests__/a2a.test.d.ts.map +1 -0
  136. package/routes/__tests__/a2a.test.js +622 -0
  137. package/routes/__tests__/a2a.test.js.map +1 -0
  138. package/routes/__tests__/agents.test.d.ts +6 -0
  139. package/routes/__tests__/agents.test.d.ts.map +1 -0
  140. package/routes/__tests__/agents.test.js +315 -0
  141. package/routes/__tests__/agents.test.js.map +1 -0
  142. package/routes/__tests__/sessions.test.d.ts +7 -0
  143. package/routes/__tests__/sessions.test.d.ts.map +1 -0
  144. package/routes/__tests__/sessions.test.js +330 -0
  145. package/routes/__tests__/sessions.test.js.map +1 -0
  146. package/routes/a2a.d.ts +18 -0
  147. package/routes/a2a.d.ts.map +1 -0
  148. package/routes/a2a.js +649 -0
  149. package/routes/a2a.js.map +1 -0
  150. package/routes/a2a.streaming.test.d.ts +2 -0
  151. package/routes/a2a.streaming.test.d.ts.map +1 -0
  152. package/routes/a2a.streaming.test.js +167 -0
  153. package/routes/a2a.streaming.test.js.map +1 -0
  154. package/routes/a2aManagement.d.ts +21 -0
  155. package/routes/a2aManagement.d.ts.map +1 -0
  156. package/routes/a2aManagement.js +466 -0
  157. package/routes/a2aManagement.js.map +1 -0
  158. package/{backend/dist/routes → routes}/agents.d.ts.map +1 -1
  159. package/routes/agents.js +997 -0
  160. package/routes/agents.js.map +1 -0
  161. package/{backend/dist/routes → routes}/auth.d.ts.map +1 -1
  162. package/routes/auth.js +135 -0
  163. package/routes/auth.js.map +1 -0
  164. package/{backend/dist/routes → routes}/commands.d.ts.map +1 -1
  165. package/{backend/dist/routes → routes}/commands.js +115 -31
  166. package/routes/commands.js.map +1 -0
  167. package/routes/config.d.ts +4 -0
  168. package/routes/config.d.ts.map +1 -0
  169. package/routes/config.js +211 -0
  170. package/routes/config.js.map +1 -0
  171. package/{backend/dist/routes → routes}/files.d.ts.map +1 -1
  172. package/{backend/dist/routes → routes}/files.js +103 -43
  173. package/routes/files.js.map +1 -0
  174. package/{backend/dist/routes → routes}/mcp.d.ts.map +1 -1
  175. package/{backend/dist/routes → routes}/mcp.js +175 -88
  176. package/routes/mcp.js.map +1 -0
  177. package/routes/media.d.ts.map +1 -0
  178. package/{backend/dist/routes → routes}/media.js +52 -42
  179. package/routes/media.js.map +1 -0
  180. package/routes/mediaAuth.d.ts +8 -0
  181. package/routes/mediaAuth.d.ts.map +1 -0
  182. package/routes/mediaAuth.js +136 -0
  183. package/routes/mediaAuth.js.map +1 -0
  184. package/routes/plugins.d.ts +4 -0
  185. package/routes/plugins.d.ts.map +1 -0
  186. package/routes/plugins.js +339 -0
  187. package/routes/plugins.js.map +1 -0
  188. package/{backend/dist/routes → routes}/projects.d.ts.map +1 -1
  189. package/routes/projects.js +884 -0
  190. package/routes/projects.js.map +1 -0
  191. package/routes/scheduledTasks.d.ts +9 -0
  192. package/routes/scheduledTasks.d.ts.map +1 -0
  193. package/routes/scheduledTasks.js +320 -0
  194. package/routes/scheduledTasks.js.map +1 -0
  195. package/{backend/dist/routes → routes}/sessions.d.ts.map +1 -1
  196. package/{backend/dist/routes → routes}/sessions.js +258 -39
  197. package/routes/sessions.js.map +1 -0
  198. package/{backend/dist/routes → routes}/settings.d.ts.map +1 -1
  199. package/{backend/dist/routes → routes}/settings.js +82 -241
  200. package/routes/settings.js.map +1 -0
  201. package/routes/skills.d.ts +4 -0
  202. package/routes/skills.d.ts.map +1 -0
  203. package/routes/skills.js +272 -0
  204. package/routes/skills.js.map +1 -0
  205. package/routes/slack.d.ts +10 -0
  206. package/routes/slack.d.ts.map +1 -0
  207. package/routes/slack.js +189 -0
  208. package/routes/slack.js.map +1 -0
  209. package/{backend/dist/routes → routes}/slides.d.ts.map +1 -1
  210. package/{backend/dist/routes → routes}/slides.js +29 -27
  211. package/routes/slides.js.map +1 -0
  212. package/{backend/dist/routes → routes}/subagents.js +27 -22
  213. package/routes/subagents.js.map +1 -0
  214. package/schemas/a2a.d.ts +858 -0
  215. package/schemas/a2a.d.ts.map +1 -0
  216. package/schemas/a2a.js +300 -0
  217. package/schemas/a2a.js.map +1 -0
  218. package/scripts/postinstall.js +10 -0
  219. package/services/__tests__/pluginInstaller.test.d.ts +5 -0
  220. package/services/__tests__/pluginInstaller.test.d.ts.map +1 -0
  221. package/services/__tests__/pluginInstaller.test.js +290 -0
  222. package/services/__tests__/pluginInstaller.test.js.map +1 -0
  223. package/services/__tests__/pluginParser.test.d.ts +5 -0
  224. package/services/__tests__/pluginParser.test.d.ts.map +1 -0
  225. package/services/__tests__/pluginParser.test.js +272 -0
  226. package/services/__tests__/pluginParser.test.js.map +1 -0
  227. package/services/__tests__/pluginPaths.test.d.ts +5 -0
  228. package/services/__tests__/pluginPaths.test.d.ts.map +1 -0
  229. package/services/__tests__/pluginPaths.test.js +221 -0
  230. package/services/__tests__/pluginPaths.test.js.map +1 -0
  231. package/services/__tests__/pluginScanner.test.d.ts +5 -0
  232. package/services/__tests__/pluginScanner.test.d.ts.map +1 -0
  233. package/services/__tests__/pluginScanner.test.js +272 -0
  234. package/services/__tests__/pluginScanner.test.js.map +1 -0
  235. package/services/__tests__/pluginSymlink.test.d.ts +5 -0
  236. package/services/__tests__/pluginSymlink.test.d.ts.map +1 -0
  237. package/services/__tests__/pluginSymlink.test.js +318 -0
  238. package/services/__tests__/pluginSymlink.test.js.map +1 -0
  239. package/services/__tests__/slackAIService.test.d.ts +5 -0
  240. package/services/__tests__/slackAIService.test.d.ts.map +1 -0
  241. package/services/__tests__/slackAIService.test.js +477 -0
  242. package/services/__tests__/slackAIService.test.js.map +1 -0
  243. package/services/__tests__/slackThreadMapper.test.d.ts +5 -0
  244. package/services/__tests__/slackThreadMapper.test.d.ts.map +1 -0
  245. package/services/__tests__/slackThreadMapper.test.js +194 -0
  246. package/services/__tests__/slackThreadMapper.test.js.map +1 -0
  247. package/services/a2a/__tests__/a2aClientTool.integration.test.d.ts +6 -0
  248. package/services/a2a/__tests__/a2aClientTool.integration.test.d.ts.map +1 -0
  249. package/services/a2a/__tests__/a2aClientTool.integration.test.js +264 -0
  250. package/services/a2a/__tests__/a2aClientTool.integration.test.js.map +1 -0
  251. package/services/a2a/__tests__/a2aClientTool.test.d.ts +6 -0
  252. package/services/a2a/__tests__/a2aClientTool.test.d.ts.map +1 -0
  253. package/services/a2a/__tests__/a2aClientTool.test.js +418 -0
  254. package/services/a2a/__tests__/a2aClientTool.test.js.map +1 -0
  255. package/services/a2a/__tests__/a2aConfigService.test.d.ts +6 -0
  256. package/services/a2a/__tests__/a2aConfigService.test.d.ts.map +1 -0
  257. package/services/a2a/__tests__/a2aConfigService.test.js +431 -0
  258. package/services/a2a/__tests__/a2aConfigService.test.js.map +1 -0
  259. package/services/a2a/__tests__/a2aConfigServicePath.test.d.ts +2 -0
  260. package/services/a2a/__tests__/a2aConfigServicePath.test.d.ts.map +1 -0
  261. package/services/a2a/__tests__/a2aConfigServicePath.test.js +49 -0
  262. package/services/a2a/__tests__/a2aConfigServicePath.test.js.map +1 -0
  263. package/services/a2a/__tests__/a2aSdkMcp.test.d.ts +10 -0
  264. package/services/a2a/__tests__/a2aSdkMcp.test.d.ts.map +1 -0
  265. package/services/a2a/__tests__/a2aSdkMcp.test.js +239 -0
  266. package/services/a2a/__tests__/a2aSdkMcp.test.js.map +1 -0
  267. package/services/a2a/__tests__/agentCardService.test.d.ts +6 -0
  268. package/services/a2a/__tests__/agentCardService.test.d.ts.map +1 -0
  269. package/services/a2a/__tests__/agentCardService.test.js +292 -0
  270. package/services/a2a/__tests__/agentCardService.test.js.map +1 -0
  271. package/services/a2a/__tests__/apiKeyService.test.d.ts +6 -0
  272. package/services/a2a/__tests__/apiKeyService.test.d.ts.map +1 -0
  273. package/services/a2a/__tests__/apiKeyService.test.js +284 -0
  274. package/services/a2a/__tests__/apiKeyService.test.js.map +1 -0
  275. package/services/a2a/__tests__/buildQueryOptionsIntegration.test.d.ts +2 -0
  276. package/services/a2a/__tests__/buildQueryOptionsIntegration.test.d.ts.map +1 -0
  277. package/services/a2a/__tests__/buildQueryOptionsIntegration.test.js +70 -0
  278. package/services/a2a/__tests__/buildQueryOptionsIntegration.test.js.map +1 -0
  279. package/services/a2a/__tests__/dynamic_config_verification.test.d.ts +2 -0
  280. package/services/a2a/__tests__/dynamic_config_verification.test.d.ts.map +1 -0
  281. package/services/a2a/__tests__/dynamic_config_verification.test.js +67 -0
  282. package/services/a2a/__tests__/dynamic_config_verification.test.js.map +1 -0
  283. package/services/a2a/__tests__/integrateA2AMcpServer.test.d.ts +2 -0
  284. package/services/a2a/__tests__/integrateA2AMcpServer.test.d.ts.map +1 -0
  285. package/services/a2a/__tests__/integrateA2AMcpServer.test.js +112 -0
  286. package/services/a2a/__tests__/integrateA2AMcpServer.test.js.map +1 -0
  287. package/services/a2a/__tests__/taskManager.integration.test.d.ts +7 -0
  288. package/services/a2a/__tests__/taskManager.integration.test.d.ts.map +1 -0
  289. package/services/a2a/__tests__/taskManager.integration.test.js +346 -0
  290. package/services/a2a/__tests__/taskManager.integration.test.js.map +1 -0
  291. package/services/a2a/__tests__/taskManager.test.d.ts +7 -0
  292. package/services/a2a/__tests__/taskManager.test.d.ts.map +1 -0
  293. package/services/a2a/__tests__/taskManager.test.js +423 -0
  294. package/services/a2a/__tests__/taskManager.test.js.map +1 -0
  295. package/services/a2a/a2aClientTool.d.ts +73 -0
  296. package/services/a2a/a2aClientTool.d.ts.map +1 -0
  297. package/services/a2a/a2aClientTool.js +572 -0
  298. package/services/a2a/a2aClientTool.js.map +1 -0
  299. package/services/a2a/a2aConfigService.d.ts +50 -0
  300. package/services/a2a/a2aConfigService.d.ts.map +1 -0
  301. package/services/a2a/a2aConfigService.js +186 -0
  302. package/services/a2a/a2aConfigService.js.map +1 -0
  303. package/services/a2a/a2aHistoryService.d.ts +32 -0
  304. package/services/a2a/a2aHistoryService.d.ts.map +1 -0
  305. package/services/a2a/a2aHistoryService.js +108 -0
  306. package/services/a2a/a2aHistoryService.js.map +1 -0
  307. package/services/a2a/a2aIntegration.d.ts +9 -0
  308. package/services/a2a/a2aIntegration.d.ts.map +1 -0
  309. package/services/a2a/a2aIntegration.js +41 -0
  310. package/services/a2a/a2aIntegration.js.map +1 -0
  311. package/services/a2a/a2aQueryService.d.ts +71 -0
  312. package/services/a2a/a2aQueryService.d.ts.map +1 -0
  313. package/services/a2a/a2aQueryService.js +166 -0
  314. package/services/a2a/a2aQueryService.js.map +1 -0
  315. package/services/a2a/a2aSdkMcp.d.ts +51 -0
  316. package/services/a2a/a2aSdkMcp.d.ts.map +1 -0
  317. package/services/a2a/a2aSdkMcp.js +185 -0
  318. package/services/a2a/a2aSdkMcp.js.map +1 -0
  319. package/services/a2a/a2aStreamEvents.d.ts +94 -0
  320. package/services/a2a/a2aStreamEvents.d.ts.map +1 -0
  321. package/services/a2a/a2aStreamEvents.js +92 -0
  322. package/services/a2a/a2aStreamEvents.js.map +1 -0
  323. package/services/a2a/agentCardService.d.ts +34 -0
  324. package/services/a2a/agentCardService.d.ts.map +1 -0
  325. package/services/a2a/agentCardService.js +228 -0
  326. package/services/a2a/agentCardService.js.map +1 -0
  327. package/services/a2a/agentMappingService.d.ts +53 -0
  328. package/services/a2a/agentMappingService.d.ts.map +1 -0
  329. package/services/a2a/agentMappingService.js +185 -0
  330. package/services/a2a/agentMappingService.js.map +1 -0
  331. package/services/a2a/apiKeyService.d.ts +101 -0
  332. package/services/a2a/apiKeyService.d.ts.map +1 -0
  333. package/services/a2a/apiKeyService.js +314 -0
  334. package/services/a2a/apiKeyService.js.map +1 -0
  335. package/services/a2a/taskCleanup.d.ts +30 -0
  336. package/services/a2a/taskCleanup.d.ts.map +1 -0
  337. package/services/a2a/taskCleanup.js +184 -0
  338. package/services/a2a/taskCleanup.js.map +1 -0
  339. package/services/a2a/taskManager.d.ts +86 -0
  340. package/services/a2a/taskManager.d.ts.map +1 -0
  341. package/services/a2a/taskManager.js +263 -0
  342. package/services/a2a/taskManager.js.map +1 -0
  343. package/services/agentStorage.d.ts +27 -0
  344. package/services/agentStorage.d.ts.map +1 -0
  345. package/services/agentStorage.js +487 -0
  346. package/services/agentStorage.js.map +1 -0
  347. package/services/askUserQuestion/askUserQuestionIntegration.d.ts +24 -0
  348. package/services/askUserQuestion/askUserQuestionIntegration.d.ts.map +1 -0
  349. package/services/askUserQuestion/askUserQuestionIntegration.js +52 -0
  350. package/services/askUserQuestion/askUserQuestionIntegration.js.map +1 -0
  351. package/services/askUserQuestion/askUserQuestionMcp.d.ts +103 -0
  352. package/services/askUserQuestion/askUserQuestionMcp.d.ts.map +1 -0
  353. package/services/askUserQuestion/askUserQuestionMcp.js +129 -0
  354. package/services/askUserQuestion/askUserQuestionMcp.js.map +1 -0
  355. package/services/askUserQuestion/index.d.ts +13 -0
  356. package/services/askUserQuestion/index.d.ts.map +1 -0
  357. package/services/askUserQuestion/index.js +35 -0
  358. package/services/askUserQuestion/index.js.map +1 -0
  359. package/services/askUserQuestion/init.d.ts +17 -0
  360. package/services/askUserQuestion/init.d.ts.map +1 -0
  361. package/services/askUserQuestion/init.js +47 -0
  362. package/services/askUserQuestion/init.js.map +1 -0
  363. package/services/askUserQuestion/notificationChannel.d.ts +97 -0
  364. package/services/askUserQuestion/notificationChannel.d.ts.map +1 -0
  365. package/services/askUserQuestion/notificationChannel.js +147 -0
  366. package/services/askUserQuestion/notificationChannel.js.map +1 -0
  367. package/services/askUserQuestion/slackNotificationChannel.d.ts +35 -0
  368. package/services/askUserQuestion/slackNotificationChannel.d.ts.map +1 -0
  369. package/services/askUserQuestion/slackNotificationChannel.js +129 -0
  370. package/services/askUserQuestion/slackNotificationChannel.js.map +1 -0
  371. package/services/askUserQuestion/sseNotificationChannel.d.ts +36 -0
  372. package/services/askUserQuestion/sseNotificationChannel.d.ts.map +1 -0
  373. package/services/askUserQuestion/sseNotificationChannel.js +88 -0
  374. package/services/askUserQuestion/sseNotificationChannel.js.map +1 -0
  375. package/services/askUserQuestion/userInputRegistry.d.ts +107 -0
  376. package/services/askUserQuestion/userInputRegistry.d.ts.map +1 -0
  377. package/services/askUserQuestion/userInputRegistry.js +253 -0
  378. package/services/askUserQuestion/userInputRegistry.js.map +1 -0
  379. package/{backend/dist/services → services}/claudeSession.d.ts +20 -5
  380. package/services/claudeSession.d.ts.map +1 -0
  381. package/{backend/dist/services → services}/claudeSession.js +123 -41
  382. package/services/claudeSession.js.map +1 -0
  383. package/services/claudeVersionStorage.d.ts +20 -0
  384. package/services/claudeVersionStorage.d.ts.map +1 -0
  385. package/services/claudeVersionStorage.js +331 -0
  386. package/services/claudeVersionStorage.js.map +1 -0
  387. package/{backend/dist/services → services}/messageQueue.d.ts.map +1 -1
  388. package/{backend/dist/services → services}/messageQueue.js +16 -3
  389. package/services/messageQueue.js.map +1 -0
  390. package/services/pluginInstaller.d.ts +58 -0
  391. package/services/pluginInstaller.d.ts.map +1 -0
  392. package/services/pluginInstaller.js +321 -0
  393. package/services/pluginInstaller.js.map +1 -0
  394. package/services/pluginParser.d.ts +45 -0
  395. package/services/pluginParser.d.ts.map +1 -0
  396. package/services/pluginParser.js +437 -0
  397. package/services/pluginParser.js.map +1 -0
  398. package/services/pluginPaths.d.ts +80 -0
  399. package/services/pluginPaths.d.ts.map +1 -0
  400. package/services/pluginPaths.js +274 -0
  401. package/services/pluginPaths.js.map +1 -0
  402. package/services/pluginScanner.d.ts +36 -0
  403. package/services/pluginScanner.d.ts.map +1 -0
  404. package/services/pluginScanner.js +251 -0
  405. package/services/pluginScanner.js.map +1 -0
  406. package/services/pluginSymlink.d.ts +54 -0
  407. package/services/pluginSymlink.d.ts.map +1 -0
  408. package/services/pluginSymlink.js +223 -0
  409. package/services/pluginSymlink.js.map +1 -0
  410. package/services/projectMetadataStorage.d.ts +114 -0
  411. package/services/projectMetadataStorage.d.ts.map +1 -0
  412. package/services/projectMetadataStorage.js +711 -0
  413. package/services/projectMetadataStorage.js.map +1 -0
  414. package/services/scheduledTaskStorage.d.ts +52 -0
  415. package/services/scheduledTaskStorage.d.ts.map +1 -0
  416. package/services/scheduledTaskStorage.js +285 -0
  417. package/services/scheduledTaskStorage.js.map +1 -0
  418. package/services/schedulerService.d.ts +81 -0
  419. package/services/schedulerService.d.ts.map +1 -0
  420. package/services/schedulerService.js +743 -0
  421. package/services/schedulerService.js.map +1 -0
  422. package/{backend/dist/services → services}/sessionManager.d.ts +6 -4
  423. package/services/sessionManager.d.ts.map +1 -0
  424. package/{backend/dist/services → services}/sessionManager.js +77 -16
  425. package/services/sessionManager.js.map +1 -0
  426. package/services/skillStorage.d.ts +60 -0
  427. package/services/skillStorage.d.ts.map +1 -0
  428. package/services/skillStorage.js +398 -0
  429. package/services/skillStorage.js.map +1 -0
  430. package/services/slackAIService.d.ts +81 -0
  431. package/services/slackAIService.d.ts.map +1 -0
  432. package/services/slackAIService.js +1091 -0
  433. package/services/slackAIService.js.map +1 -0
  434. package/services/slackClient.d.ts +46 -0
  435. package/services/slackClient.d.ts.map +1 -0
  436. package/services/slackClient.js +85 -0
  437. package/services/slackClient.js.map +1 -0
  438. package/services/slackSessionLock.d.ts +79 -0
  439. package/services/slackSessionLock.d.ts.map +1 -0
  440. package/services/slackSessionLock.js +353 -0
  441. package/services/slackSessionLock.js.map +1 -0
  442. package/services/slackThreadMapper.d.ts +57 -0
  443. package/services/slackThreadMapper.d.ts.map +1 -0
  444. package/services/slackThreadMapper.js +140 -0
  445. package/services/slackThreadMapper.js.map +1 -0
  446. package/types/a2a.d.ts +275 -0
  447. package/types/a2a.d.ts.map +1 -0
  448. package/types/a2a.js +23 -0
  449. package/types/a2a.js.map +1 -0
  450. package/types/agents.d.ts +95 -0
  451. package/types/agents.d.ts.map +1 -0
  452. package/types/agents.js +46 -0
  453. package/types/agents.js.map +1 -0
  454. package/types/claude-history.d.ts +62 -0
  455. package/types/claude-history.d.ts.map +1 -0
  456. package/types/claude-history.js +4 -0
  457. package/types/claude-history.js.map +1 -0
  458. package/types/claude-versions.d.ts +36 -0
  459. package/types/claude-versions.d.ts.map +1 -0
  460. package/types/claude-versions.js +3 -0
  461. package/types/claude-versions.js.map +1 -0
  462. package/types/commands.d.ts +50 -0
  463. package/types/commands.d.ts.map +1 -0
  464. package/types/commands.js +23 -0
  465. package/types/commands.js.map +1 -0
  466. package/types/plugins.d.ts +144 -0
  467. package/types/plugins.d.ts.map +1 -0
  468. package/types/plugins.js +8 -0
  469. package/types/plugins.js.map +1 -0
  470. package/types/projects.d.ts +42 -0
  471. package/types/projects.d.ts.map +1 -0
  472. package/types/projects.js +4 -0
  473. package/types/projects.js.map +1 -0
  474. package/types/scheduledTasks.d.ts +164 -0
  475. package/types/scheduledTasks.d.ts.map +1 -0
  476. package/types/scheduledTasks.js +17 -0
  477. package/types/scheduledTasks.js.map +1 -0
  478. package/types/skills.d.ts +91 -0
  479. package/types/skills.d.ts.map +1 -0
  480. package/types/skills.js +6 -0
  481. package/types/skills.js.map +1 -0
  482. package/types/slack.d.ts +97 -0
  483. package/types/slack.d.ts.map +1 -0
  484. package/types/slack.js +8 -0
  485. package/types/slack.js.map +1 -0
  486. package/types/streaming.d.ts +12 -0
  487. package/types/streaming.d.ts.map +1 -0
  488. package/types/streaming.js +8 -0
  489. package/types/streaming.js.map +1 -0
  490. package/types/subagents.d.ts +26 -0
  491. package/types/subagents.d.ts.map +1 -0
  492. package/types/subagents.js +3 -0
  493. package/types/subagents.js.map +1 -0
  494. package/utils/__tests__/claudeUtils.test.d.ts +5 -0
  495. package/utils/__tests__/claudeUtils.test.d.ts.map +1 -0
  496. package/utils/__tests__/claudeUtils.test.js +282 -0
  497. package/utils/__tests__/claudeUtils.test.js.map +1 -0
  498. package/utils/__tests__/sessionUtils.test.d.ts +5 -0
  499. package/utils/__tests__/sessionUtils.test.d.ts.map +1 -0
  500. package/utils/__tests__/sessionUtils.test.js +295 -0
  501. package/utils/__tests__/sessionUtils.test.js.map +1 -0
  502. package/utils/agentCardCache.d.ts +93 -0
  503. package/utils/agentCardCache.d.ts.map +1 -0
  504. package/utils/agentCardCache.js +212 -0
  505. package/utils/agentCardCache.js.map +1 -0
  506. package/utils/claudeUtils.d.ts +54 -0
  507. package/utils/claudeUtils.d.ts.map +1 -0
  508. package/utils/claudeUtils.js +387 -0
  509. package/utils/claudeUtils.js.map +1 -0
  510. package/utils/fileUtils.d.ts +2 -0
  511. package/utils/fileUtils.d.ts.map +1 -0
  512. package/utils/fileUtils.js +11 -0
  513. package/utils/fileUtils.js.map +1 -0
  514. package/utils/jwt.d.ts +30 -0
  515. package/utils/jwt.d.ts.map +1 -0
  516. package/utils/jwt.js +95 -0
  517. package/utils/jwt.js.map +1 -0
  518. package/utils/sessionUtils.d.ts +64 -0
  519. package/utils/sessionUtils.d.ts.map +1 -0
  520. package/utils/sessionUtils.js +266 -0
  521. package/utils/sessionUtils.js.map +1 -0
  522. package/README.zh-CN.md +0 -525
  523. package/backend/dist/bin/agentstudio.js +0 -120
  524. package/backend/dist/bin/agentstudio.js.map +0 -1
  525. package/backend/dist/frontend/assets/AgentsPage-Dqb_aqAA.js +0 -1
  526. package/backend/dist/frontend/assets/ChatPage-L8Paywyc.js +0 -91
  527. package/backend/dist/frontend/assets/CommandForm-DLl7EIMS.js +0 -7
  528. package/backend/dist/frontend/assets/CommandsPage-Bzavq0Ec.js +0 -1
  529. package/backend/dist/frontend/assets/DashboardPage-B3o4AYFT.js +0 -15
  530. package/backend/dist/frontend/assets/FileBrowser-DL3ayaqb.js +0 -1
  531. package/backend/dist/frontend/assets/GeneralSettingsPage-CBN_de-V.js +0 -1
  532. package/backend/dist/frontend/assets/LandingPage-Dl4ioKos.js +0 -1
  533. package/backend/dist/frontend/assets/LoginPage-4QqRdiSi.js +0 -12
  534. package/backend/dist/frontend/assets/McpPage-CY3tYiqj.js +0 -39
  535. package/backend/dist/frontend/assets/MemorySettingsPage-DGxrok5K.js +0 -1
  536. package/backend/dist/frontend/assets/ProjectSelector-hgmGYVFh.js +0 -1
  537. package/backend/dist/frontend/assets/ProjectsPage-D399IM0c.js +0 -14
  538. package/backend/dist/frontend/assets/SettingsLayout-CL_K-lzJ.js +0 -1
  539. package/backend/dist/frontend/assets/SubagentsPage-Chbhj8p2.js +0 -1
  540. package/backend/dist/frontend/assets/UnifiedToolSelector-CsM9qBvs.js +0 -1
  541. package/backend/dist/frontend/assets/VersionSettingsPage-74Q-LVgA.js +0 -5
  542. package/backend/dist/frontend/assets/agents-ClAzIJTw.js +0 -1
  543. package/backend/dist/frontend/assets/authFetch-BATQyPG5.js +0 -1
  544. package/backend/dist/frontend/assets/index-B9YHa7XT.css +0 -1
  545. package/backend/dist/frontend/assets/index-B_CTNvca.js +0 -268
  546. package/backend/dist/frontend/assets/monaco-editor-C7Z4sOhS.js +0 -19
  547. package/backend/dist/frontend/assets/tabManager-DV8urRBM.js +0 -30
  548. package/backend/dist/frontend/assets/tools-C4EPanYi.js +0 -1
  549. package/backend/dist/frontend/assets/useAgents-DwnOE1_k.js +0 -2
  550. package/backend/dist/frontend/assets/useClaudeVersions-CQdGnCqv.js +0 -1
  551. package/backend/dist/frontend/assets/useCommands-CCVaurbt.js +0 -1
  552. package/backend/dist/index.d.ts +0 -3
  553. package/backend/dist/index.d.ts.map +0 -1
  554. package/backend/dist/index.js +0 -157
  555. package/backend/dist/index.js.map +0 -1
  556. package/backend/dist/middleware/auth.d.ts.map +0 -1
  557. package/backend/dist/middleware/auth.js +0 -21
  558. package/backend/dist/middleware/auth.js.map +0 -1
  559. package/backend/dist/routes/agents.js +0 -803
  560. package/backend/dist/routes/agents.js.map +0 -1
  561. package/backend/dist/routes/auth.js +0 -60
  562. package/backend/dist/routes/auth.js.map +0 -1
  563. package/backend/dist/routes/commands.js.map +0 -1
  564. package/backend/dist/routes/files.js.map +0 -1
  565. package/backend/dist/routes/mcp.js.map +0 -1
  566. package/backend/dist/routes/media.d.ts.map +0 -1
  567. package/backend/dist/routes/media.js.map +0 -1
  568. package/backend/dist/routes/projects.js +0 -528
  569. package/backend/dist/routes/projects.js.map +0 -1
  570. package/backend/dist/routes/sessions.js.map +0 -1
  571. package/backend/dist/routes/settings.js.map +0 -1
  572. package/backend/dist/routes/slides.js.map +0 -1
  573. package/backend/dist/routes/subagents.js.map +0 -1
  574. package/backend/dist/services/claudeSession.d.ts.map +0 -1
  575. package/backend/dist/services/claudeSession.js.map +0 -1
  576. package/backend/dist/services/messageQueue.js.map +0 -1
  577. package/backend/dist/services/sessionManager.d.ts.map +0 -1
  578. package/backend/dist/services/sessionManager.js.map +0 -1
  579. package/backend/dist/utils/jwt.d.ts +0 -15
  580. package/backend/dist/utils/jwt.d.ts.map +0 -1
  581. package/backend/dist/utils/jwt.js +0 -28
  582. package/backend/dist/utils/jwt.js.map +0 -1
  583. /package/{backend/dist/bin → bin}/agentstudio.d.ts +0 -0
  584. /package/{backend/dist/bin → bin}/agentstudio.d.ts.map +0 -0
  585. /package/{backend/dist/frontend → public}/assets/ChatPage-BvQmXfcP.css +0 -0
  586. /package/{backend/dist/frontend → public}/assets/agents-DwCY2K8p.css +0 -0
  587. /package/{backend/dist/frontend → public}/assets/dateFormat-CXa8VnEC.js +0 -0
  588. /package/{backend/dist/frontend → public}/cc-studio.png +0 -0
  589. /package/{backend/dist/frontend → public}/vite.svg +0 -0
  590. /package/{backend/dist/routes → routes}/agents.d.ts +0 -0
  591. /package/{backend/dist/routes → routes}/auth.d.ts +0 -0
  592. /package/{backend/dist/routes → routes}/commands.d.ts +0 -0
  593. /package/{backend/dist/routes → routes}/files.d.ts +0 -0
  594. /package/{backend/dist/routes → routes}/mcp.d.ts +0 -0
  595. /package/{backend/dist/routes → routes}/media.d.ts +0 -0
  596. /package/{backend/dist/routes → routes}/projects.d.ts +0 -0
  597. /package/{backend/dist/routes → routes}/sessions.d.ts +0 -0
  598. /package/{backend/dist/routes → routes}/settings.d.ts +0 -0
  599. /package/{backend/dist/routes → routes}/slides.d.ts +0 -0
  600. /package/{backend/dist/routes → routes}/subagents.d.ts +0 -0
  601. /package/{backend/dist/routes → routes}/subagents.d.ts.map +0 -0
  602. /package/{backend/dist/services → services}/messageQueue.d.ts +0 -0
package/README.md CHANGED
@@ -1,527 +1,48 @@
1
1
  # AgentStudio
2
2
 
3
- <div align="center">
3
+ AI-powered agent workspace with Claude integration.
4
4
 
5
- ![AgentStudio](./frontend/public/cc-studio.png)
6
-
7
- **A Claude Code-powered Personal Agent Workspace Platform**
8
-
9
- [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
10
- [![GitHub stars](https://img.shields.io/github/stars/git-men/agentstudio.svg)](https://github.com/git-men/agentstudio/stargazers)
11
- [![GitHub issues](https://img.shields.io/github/issues/git-men/agentstudio.svg)](https://github.com/git-men/agentstudio/issues)
12
-
13
- [English](README.md) | [中文](README.zh-CN.md)
14
-
15
- </div>
16
-
17
- ---
18
-
19
- ## English
20
-
21
- ### Overview
22
-
23
- AgentStudio is a modern, web-based personal agent workspace platform built on top of Claude Code SDK. It extends Claude Code's capabilities with a professional web interface, making AI-powered development accessible to everyone.
24
-
25
- ### ✨ Key Features
26
-
27
- #### 🎨 **Modern Web Interface**
28
- - Professional, intuitive web UI designed for both developers and general users
29
- - Real-time streaming responses for immediate feedback
30
- - Split-panel layout with chat interface and live preview
31
- - Responsive design optimized for desktop and mobile
32
-
33
- #### 🤖 **Multi-LLM Support**
34
- - **Claude Integration**: Built on Claude Code SDK with full API support
35
- - **Multiple Providers**: Support for OpenAI, GLM, DeepSeek, and other popular LLMs
36
- - **Flexible Configuration**: Easy switching between different AI models
37
- - **Streaming Input**: Real-time response streaming for better user experience
38
-
39
- #### 🛠️ **Advanced Agent System**
40
- - **Built-in Agents**: PPT Editor, Code Assistant, Document Writer
41
- - **Custom Agents**: Create and configure your own specialized agents
42
- - **Subagents**: User-defined AI agents with custom system prompts
43
- - **Agent Marketplace**: Extensible agent development framework
44
- - **Message-level Tool Customization**: Fine-grained control over agent capabilities
45
-
46
- #### 📁 **Integrated File Management**
47
- - **Built-in File Browser**: Navigate and manage project files seamlessly
48
- - **File Content Viewer**: Preview and edit files directly in the interface
49
- - **Project-aware Operations**: Context-sensitive file operations
50
- - **Version Control Integration**: Git-aware file management
51
-
52
- #### 🎯 **Specialized Tools**
53
- - **Slide Agent**: Create and edit presentations with AI assistance
54
- - **Code Explorer**: Navigate codebases with intelligent search
55
- - **Document Outline**: Structured document editing and management
56
- - **Image Upload**: Support for visual content analysis
57
- - **Tool Renderer**: Dynamic visualization of tool usage and results
58
-
59
- #### 🔧 **Developer-Friendly**
60
- - **TypeScript Throughout**: Full type safety for better development experience
61
- - **Modern Stack**: React 18, Vite, TailwindCSS, Zustand
62
- - **Testing Suite**: Comprehensive test coverage with Vitest
63
- - **Hot Reload**: Fast development with instant code updates
64
-
65
- #### 🌐 **Deployment Ready**
66
- - **Local Development**: Easy setup for development environments
67
- - **One-Click Installation**: Simplified deployment for end users
68
- - **Production Builds**: Optimized builds for performance
69
- - **Cross-Platform**: Support for Linux, macOS, and Windows
70
-
71
- ### 🚀 Quick Start
72
-
73
- #### 🐳 Docker Deployment (Recommended for Quick Testing)
74
-
75
- **One-Command Setup:**
5
+ ## Quick Start
76
6
 
77
7
  ```bash
78
- # Build and run with docker-compose
79
- docker build -t agentstudio:latest .
80
- docker-compose up -d
81
- ```
82
-
83
- Then open http://localhost in your browser.
8
+ # Install globally
9
+ npm install -g agentstudio
84
10
 
85
- **What you get:**
86
- - ✅ **All-in-One Container**: Frontend + Backend in a single container
87
- - ✅ **Data Persistence**: Automatic data backup via Docker volumes
88
- - ✅ **Zero Configuration**: Works out of the box
89
- - ✅ **Easy Updates**: Simple rebuild and restart
11
+ # Start the server
12
+ agentstudio start
90
13
 
91
- 📖 **Full Documentation:**
92
- - [Docker Deployment Guide](DOCKER.md) - Detailed setup and configuration
93
- - [Quick Start Guide](QUICKSTART.md) - Step-by-step tutorial with examples
94
-
95
- ---
96
-
97
- #### For End Users (One-Click Installation)
98
-
99
- **🐧 Linux & 🍎 macOS - User Installation (Recommended - No sudo required)**
100
-
101
- ```bash
102
- # Install Agent Studio backend in user space
103
- curl -fsSL https://raw.githubusercontent.com/git-men/agentstudio/main/scripts/remote-install.sh | bash
104
- ```
105
-
106
- The installer will:
107
- - ✅ **Auto-detect and install Node.js 18+** (via system package manager or NVM)
108
- - ✅ **Auto-install pnpm** for faster package management (optional)
109
- - ✅ **Handle all dependencies** automatically
110
- - ✅ **Support all major Linux distributions** (Ubuntu, CentOS, Fedora, Arch, etc.)
111
- - ✅ **Work with both root and regular users**
112
-
113
- The installer will ask if you want to start the backend immediately. If you choose not to start now, you can start it later:
114
-
115
- ```bash
116
- # Start the backend
117
- ~/.agent-studio/start.sh
118
-
119
- # Stop the backend
120
- ~/.agent-studio/stop.sh
121
- ```
122
-
123
- **🪟 Windows - PowerShell Installation**
124
-
125
- ```powershell
126
- # Run as Administrator in PowerShell
127
- PowerShell -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/git-men/agentstudio/main/scripts/windows-install.ps1'))"
128
- ```
129
-
130
- The Windows installer will:
131
- - ✅ **Auto-install Node.js** (via Chocolatey, winget, or direct download)
132
- - ✅ **Auto-install Git** if not available
133
- - ✅ **Handle all dependencies** automatically
134
- - ✅ **Create start/stop batch scripts**
135
-
136
- **Windows Alternative - Simple Batch Script**
137
- If you already have Node.js and Git installed:
138
-
139
- ```batch
140
- # Download and run the simple installer
141
- curl -o windows-install-simple.bat https://raw.githubusercontent.com/git-men/agentstudio/main/scripts/windows-install-simple.bat
142
- windows-install-simple.bat
14
+ # Or specify a port
15
+ agentstudio start --port 8080
143
16
  ```
144
17
 
145
- **Access the application:**
146
- 1. Open your browser and visit: **https://agentstudio-frontend.vercel.app/**
147
- 2. In the web interface, go to **Settings → API Configuration**
148
- 3. Enter your backend URL: `http://localhost:4936`
149
- 4. Click "Test Connection" to verify
18
+ ## Commands
150
19
 
151
- **Option 2: System Service Installation (Requires sudo)**
20
+ - `agentstudio start` - Start the full server (frontend + backend)
21
+ - `agentstudio start --api-only` - Start API server only (for CDN frontend mode)
22
+ - `agentstudio start --port <port>` - Specify server port (default: 4936)
23
+ - `agentstudio upgrade` - Upgrade to the latest version
24
+ - `agentstudio --version` - Show version
25
+ - `agentstudio --help` - Show help
152
26
 
153
- For production deployments with automatic startup on boot:
27
+ ## Environment Variables
154
28
 
155
- ```bash
156
- # Install as system service with auto-start
157
- curl -fsSL https://raw.githubusercontent.com/git-men/agentstudio/main/scripts/remote-install.sh | sudo bash
158
- ```
159
-
160
- After installation, manage the service:
161
- ```bash
162
- agent-studio start # Start the service
163
- agent-studio stop # Stop the service
164
- agent-studio restart # Restart the service
165
- agent-studio status # Check service status
166
- agent-studio logs # View logs
167
- agent-studio config # Edit configuration
168
- ```
169
-
170
- Then access the web interface at **https://agentstudio-frontend.vercel.app/** and configure the backend URL in Settings.
171
-
172
- #### For Developers (Development Setup)
173
-
174
- **Prerequisites:**
175
- - Node.js 18+
176
- - pnpm (recommended) or npm
177
- - Git
178
-
179
- **Installation:**
180
- ```bash
181
- # Clone the repository
182
- git clone https://github.com/git-men/agentstudio.git
183
- cd agentstudio
184
-
185
- # Install dependencies
186
- pnpm install
187
-
188
- # Start development servers (both frontend and backend)
189
- pnpm run dev
190
-
191
- # Or start them separately
192
- pnpm run dev:frontend # Frontend only (port 3000)
193
- pnpm run dev:backend # Backend only (port 4936)
194
- ```
195
-
196
- **Build for production:**
197
- ```bash
198
- pnpm run build
199
- pnpm start
200
- ```
201
-
202
- ### 📁 Project Structure
203
-
204
- ```
205
- agentstudio/
206
- ├── frontend/ # React frontend application
207
- │ ├── src/
208
- │ │ ├── components/ # Reusable UI components
209
- │ │ ├── pages/ # Page components
210
- │ │ ├── agents/ # Agent-specific components
211
- │ │ ├── hooks/ # React hooks and data fetching
212
- │ │ └── stores/ # State management (Zustand)
213
- │ └── public/ # Static assets
214
- ├── backend/ # Node.js backend server
215
- │ ├── src/
216
- │ │ ├── routes/ # API endpoints
217
- │ │ ├── services/ # Business logic
218
- │ │ └── index.ts # Server entry point
219
- │ └── dist/ # Built backend code
220
- ├── shared/ # Shared types and utilities
221
- └── scripts/ # Installation and deployment scripts
222
- ```
223
-
224
- ### ⚙️ Configuration
225
-
226
- #### Environment Variables
227
-
228
- **For Development:**
229
- Create a `.env` file in the `backend/` directory:
29
+ Create a `.env` file in your working directory:
230
30
 
231
31
  ```env
232
- # AI Provider Configuration (choose one or more)
233
- ANTHROPIC_API_KEY=your_anthropic_api_key_here
234
- OPENAI_API_KEY=your_openai_api_key_here
235
-
236
- # Server Configuration
237
- PORT=4936
238
- NODE_ENV=development
239
-
240
- # File System
241
- SLIDES_DIR=../slides
242
-
243
- # CORS Configuration (for production)
244
- CORS_ORIGINS=https://your-frontend-domain.com
245
- ```
246
-
247
- **For System Service Installation:**
248
- Edit the configuration file at `/etc/agent-studio/config.env`:
249
-
250
- ```bash
251
- # Edit configuration
252
- agent-studio config
253
- ```
32
+ # Required: AI API Key
33
+ ANTHROPIC_API_KEY=your_api_key_here
254
34
 
255
- Configuration options:
256
- ```env
257
- # Server configuration
258
- NODE_ENV=production
35
+ # Optional: Custom port
259
36
  PORT=4936
260
- SLIDES_DIR=/opt/slides
261
-
262
- # Optional: AI provider keys (configure if needed)
263
- # ANTHROPIC_API_KEY=your_anthropic_api_key_here
264
- # OPENAI_API_KEY=your_openai_api_key_here
265
-
266
- # Optional: CORS configuration for custom frontends
267
- # CORS_ORIGINS=https://your-frontend.vercel.app,https://custom-domain.com
268
- ```
269
-
270
- #### API Configuration
271
-
272
- The frontend is hosted at **https://agentstudio-frontend.vercel.app/** and can connect to different backend instances:
273
-
274
- **For Local Backend:**
275
- 1. Open **Settings → API Configuration** in the web interface
276
- 2. Enter: `http://localhost:4936` (or your custom port)
277
- 3. Click "Test Connection" to verify
278
-
279
- **For Remote Backend:**
280
- 1. Deploy your backend to a server with a public IP or domain
281
- 2. Configure the backend URL in Settings (e.g., `https://your-backend.com`)
282
- 3. Ensure CORS is properly configured in your backend's `.env` file
283
-
284
- ### 📋 Service Management
285
37
 
286
- #### System Service Commands (when installed with sudo)
287
-
288
- ```bash
289
- # Basic service operations
290
- agent-studio start # Start the service
291
- agent-studio stop # Stop the service
292
- agent-studio restart # Restart the service
293
- agent-studio status # Check service status
294
-
295
- # Monitoring and logs
296
- agent-studio logs # View real-time logs
297
- agent-studio health # Check service health
298
-
299
- # Configuration
300
- agent-studio config # Edit configuration file
301
-
302
- # Service details
303
- agent-studio uninstall # Remove the service
38
+ # Optional: Data directory
39
+ DATA_DIR=~/.agentstudio
304
40
  ```
305
41
 
306
- #### Service Details
307
-
308
- **Installation Directories:**
309
-
310
- For user installation (no sudo):
311
- - Application: `~/.agent-studio`
312
- - Configuration: `~/.agent-studio-config/config.env`
313
- - Logs: `~/.agent-studio-logs/`
314
- - Slides: `~/slides`
315
- - Start script: `~/.agent-studio/start.sh`
316
- - Stop script: `~/.agent-studio/stop.sh`
317
-
318
- For system service installation (with sudo):
319
- - Application: `~/.agent-studio`
320
- - Configuration: `~/.agent-studio-config/config.env`
321
- - Logs: `~/.agent-studio-logs/`
322
- - Slides: `~/slides`
323
-
324
- **Log Files:**
325
- - Output log: `/var/log/agent-studio/output.log`
326
- - Error log: `/var/log/agent-studio/error.log`
327
- - Log rotation: Daily (30 days retention)
328
-
329
- **Service Integration:**
330
- - Linux: systemd service (`/etc/systemd/system/agent-studio.service`)
331
- - macOS: launchd service (`/Library/LaunchDaemons/com.agent-studio.backend.plist`)
332
- - Auto-start on boot enabled by default
333
-
334
- ### 🔧 Troubleshooting
335
-
336
- #### Installation Issues
337
-
338
- **Node.js Installation Problems:**
339
- The installer automatically handles Node.js installation, but if you encounter issues:
340
-
341
- ```bash
342
- # For Linux/macOS - Manual Node.js installation via NVM
343
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
344
- source ~/.bashrc
345
- nvm install --lts
346
- nvm use --lts
347
-
348
- # For Windows - Download from official website
349
- # Visit: https://nodejs.org/
350
- ```
351
-
352
- **Ubuntu/Debian Specific Issues:**
353
- - **Root User Detection**: Fixed in latest installer - now properly supports both root and regular users
354
- - **TTY Issues**: Installer sets `CI=true` to handle non-interactive environments
355
- - **Build Failures**: Installer automatically retries with dev dependencies
356
-
357
- **Windows Installation Issues:**
358
- - **PowerShell Execution Policy**: Run `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`
359
- - **Missing Dependencies**: Installer will prompt to install Node.js, Git, and other requirements
360
- - **Permission Issues**: Run PowerShell as Administrator for system-wide installations
361
-
362
- #### Service Won't Start
363
-
364
- **For User Installation:**
365
- ```bash
366
- # Check if backend is running
367
- curl http://localhost:4936/api/health
368
-
369
- # View logs
370
- cat ~/.agent-studio-logs/output.log
371
- cat ~/.agent-studio-logs/error.log
372
-
373
- # Restart backend
374
- ~/.agent-studio/stop.sh
375
- ~/.agent-studio/start.sh
376
- ```
377
-
378
- **For System Service Installation:**
379
- ```bash
380
- # Check service status
381
- agent-studio status
382
-
383
- # View logs for errors
384
- agent-studio logs
385
-
386
- # Verify configuration
387
- agent-studio config
388
-
389
- # Check if port is available
390
- lsof -i :4936
391
- ```
392
-
393
- #### Common Issues
394
-
395
- **Permission Errors (User Installation):**
396
- ```bash
397
- # Fix script permissions
398
- chmod +x ~/.agent-studio/start.sh
399
- chmod +x ~/.agent-studio/stop.sh
400
-
401
- # Fix directory permissions
402
- chmod -R 755 ~/.agent-studio
403
- ```
404
-
405
- **Permission Errors (System Service):**
406
- ```bash
407
- sudo chown -R agent-studio:agent-studio /opt/agent-studio
408
- sudo chown -R agent-studio:agent-studio /var/log/agent-studio
409
- ```
410
-
411
- **Port Already in Use:**
412
- ```bash
413
- # Find process using the port
414
- lsof -i :4936
415
-
416
- # Kill the process (replace PID with actual process ID)
417
- kill -9 <PID>
418
-
419
- # Or change port in configuration
420
- # Edit ~/.agent-studio-config/config.env and change PORT=8080
421
- ```
422
-
423
- **Build Failures:**
424
- The installer now automatically handles build failures by:
425
- 1. Installing dev dependencies
426
- 2. Retrying the build
427
- 3. Falling back to development mode if build still fails
428
-
429
- **Health Check:**
430
- ```bash
431
- # For user installation
432
- curl http://localhost:4936/api/health
433
-
434
- # For system service
435
- agent-studio health
436
- ```
437
-
438
- **Windows Specific Issues:**
439
- ```batch
440
- REM Check if Node.js is available
441
- node --version
442
-
443
- REM Check if backend is running
444
- curl http://localhost:4936/api/health
445
-
446
- REM Start backend manually
447
- cd %USERPROFILE%\.agent-studio
448
- start.bat
449
-
450
- REM Stop backend
451
- stop.bat
452
- ```
453
-
454
- ### 📦 Updates
455
-
456
- To update an existing installation:
457
-
458
- ```bash
459
- # Stop the service
460
- agent-studio stop
461
-
462
- # Update the code
463
- cd /opt/agent-studio
464
- git pull
465
- pnpm install
466
- pnpm run build:backend
467
-
468
- # Start the service
469
- agent-studio start
470
- ```
471
-
472
- ### 🧪 Testing
473
-
474
- ```bash
475
- # Run all tests
476
- pnpm test
477
-
478
- # Run frontend tests only
479
- cd frontend && pnpm test
480
-
481
- # Run tests with coverage
482
- cd frontend && pnpm run test:coverage
483
-
484
- # Run tests with UI
485
- cd frontend && pnpm run test:ui
486
- ```
487
-
488
- ### 🛡️ Security
489
-
490
- - **API Key Protection**: Environment-based API key management
491
- - **CORS Configuration**: Configurable cross-origin policies
492
- - **Input Validation**: Comprehensive input sanitization
493
- - **Secure File Operations**: Sandboxed file system access
494
-
495
- ### 🤝 Contributing
496
-
497
- We welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details.
498
-
499
- 1. Fork the repository
500
- 2. Create a feature branch (`git checkout -b feature/amazing-feature`)
501
- 3. Commit your changes (`git commit -m 'Add amazing feature'`)
502
- 4. Push to the branch (`git push origin feature/amazing-feature`)
503
- 5. Open a Pull Request
504
-
505
- ### 📄 License
506
-
507
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
508
-
509
- ### 🙏 Acknowledgments
510
-
511
- - Built on top of [Claude Code SDK](https://claude.ai/code)
512
- - Inspired by modern development workflows
513
- - Community feedback and contributions
514
-
515
-
516
- ## Links
517
-
518
- | link | type | service | description |
519
- |:---|:---|:---|:---|
520
- | **[ctok.ai](https://ctok.ai/)** | 🤝 community | <small>✅ Claude Code<br>✅ Codex CLI</small> | Claude Code / Codex CLI carpool service. |
521
-
42
+ ## Documentation
522
43
 
523
- ## 中文文档
44
+ For full documentation, visit: https://github.com/okguitar/agentstudio
524
45
 
525
- 请查看 [README.zh-CN.md](README.zh-CN.md) 获取中文文档。
46
+ ## License
526
47
 
527
- ---
48
+ MIT