upfynai-code 3.0.4 → 3.2.0

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 (258) hide show
  1. package/README.md +69 -92
  2. package/bin/cli.js +191 -0
  3. package/dist/client/assets/AppContent-M14Au3SB.js +542 -0
  4. package/{client/dist/assets/BrowserPanel-0TLEl-IC.js → dist/client/assets/BrowserPanel-TFKm2NDJ.js} +2 -2
  5. package/dist/client/assets/DashboardPanel-C88HjsCh.js +1 -0
  6. package/dist/client/assets/FileTree-DvO1xnDE.js +1 -0
  7. package/{client/dist/assets/GitPanel-C_xFM-N2.js → dist/client/assets/GitPanel-D-slVlyy.js} +2 -2
  8. package/dist/client/assets/LoginModal-Chi4SYcr.js +21 -0
  9. package/{client/dist/assets/MarkdownPreview-CESjI261.js → dist/client/assets/MarkdownPreview-CuIix2u9.js} +1 -1
  10. package/dist/client/assets/MermaidBlock-Dq9uFv82.js +2 -0
  11. package/dist/client/assets/Onboarding-QYXx24dX.js +1 -0
  12. package/{client/dist/assets/PreviewPanel-CqCa92Tf.js → dist/client/assets/PreviewPanel-Dd8q-jo0.js} +1 -1
  13. package/dist/client/assets/SetupForm-CrspaUva.js +1 -0
  14. package/dist/client/assets/WorkflowsPanel-DIlYAdhB.js +1 -0
  15. package/dist/client/assets/index-CnNNzw9A.css +1 -0
  16. package/{client/dist/assets/index-HaY-3pK1.js → dist/client/assets/index-rUkK9FDP.js} +26 -26
  17. package/{client/dist/assets/vendor-codemirror-D2ALgpaX.js → dist/client/assets/vendor-codemirror-jc6nyJQg.js} +1 -1
  18. package/{client/dist/assets/vendor-diff-DNQpbhrT.js → dist/client/assets/vendor-diff-THJmAcEI.js} +1 -1
  19. package/{client/dist/assets/vendor-icons-GyYE35HP.js → dist/client/assets/vendor-icons-CfjIpdrD.js} +145 -155
  20. package/{client/dist/assets/vendor-markdown-CimbIo6Y.js → dist/client/assets/vendor-markdown-Cdm6NEGf.js} +1 -1
  21. package/dist/client/assets/vendor-mermaid-DTPaBx-U.js +2559 -0
  22. package/{client/dist/assets/vendor-react-96lCPsRK.js → dist/client/assets/vendor-react-wFkb6mSf.js} +1 -1
  23. package/{client/dist/assets/vendor-syntax-LS_Nt30I.js → dist/client/assets/vendor-syntax-C_UZR7tc.js} +1 -1
  24. package/dist/client/favicon.png +0 -0
  25. package/dist/client/icons/icon-128x128.png +0 -0
  26. package/dist/client/icons/icon-144x144.png +0 -0
  27. package/dist/client/icons/icon-152x152.png +0 -0
  28. package/dist/client/icons/icon-192x192.png +0 -0
  29. package/dist/client/icons/icon-384x384.png +0 -0
  30. package/dist/client/icons/icon-512x512.png +0 -0
  31. package/dist/client/icons/icon-72x72.png +0 -0
  32. package/dist/client/icons/icon-96x96.png +0 -0
  33. package/{client/dist → dist/client}/index.html +37 -36
  34. package/dist/client/logo-128.png +0 -0
  35. package/dist/client/logo-256.png +0 -0
  36. package/dist/client/logo-32.png +0 -0
  37. package/dist/client/logo-512.png +0 -0
  38. package/dist/client/logo-64.png +0 -0
  39. package/dist/client/logo.png +0 -0
  40. package/{client/dist → dist/client}/manifest.json +12 -12
  41. package/{client/dist → dist/client}/mcp-docs.html +1 -1
  42. package/{client/dist → dist/client}/sw.js +2 -2
  43. package/package.json +56 -105
  44. package/scripts/postinstall.js +9 -0
  45. package/scripts/prepublish.js +77 -0
  46. package/src/animation.js +228 -0
  47. package/src/auth.js +142 -0
  48. package/src/config.js +40 -0
  49. package/src/connect.js +416 -0
  50. package/src/launch.js +81 -0
  51. package/src/mcp.js +57 -0
  52. package/src/permissions.js +140 -0
  53. package/src/persistent-shell.js +261 -0
  54. package/src/server.js +54 -0
  55. package/client/dist/assets/AppContent-CwrTP6TW.js +0 -545
  56. package/client/dist/assets/CanvasFullScreen-D1GWQsGL.js +0 -1
  57. package/client/dist/assets/CanvasWorkspace-D7ORj358.js +0 -163
  58. package/client/dist/assets/DashboardPanel-BV7ybUDe.js +0 -1
  59. package/client/dist/assets/FileTree-5qfhBqdE.js +0 -1
  60. package/client/dist/assets/LoginModal-CImJHRjX.js +0 -13
  61. package/client/dist/assets/MermaidBlock-BFM21cwe.js +0 -2
  62. package/client/dist/assets/Onboarding-B3cteLu2.js +0 -1
  63. package/client/dist/assets/SetupForm-P6dsYgHO.js +0 -1
  64. package/client/dist/assets/WorkflowsPanel-CBoN80kc.js +0 -1
  65. package/client/dist/assets/index-46kkVu2i.css +0 -1
  66. package/client/dist/assets/pdf-CE_K4jFx.js +0 -12
  67. package/client/dist/assets/vendor-canvas-BZV40eAE.css +0 -1
  68. package/client/dist/assets/vendor-canvas-DvHJ_Pn2.js +0 -49
  69. package/client/dist/assets/vendor-mermaid-DucWyDEe.js +0 -2556
  70. package/client/dist/favicon.png +0 -0
  71. package/client/dist/icons/icon-128x128.png +0 -0
  72. package/client/dist/icons/icon-144x144.png +0 -0
  73. package/client/dist/icons/icon-152x152.png +0 -0
  74. package/client/dist/icons/icon-192x192.png +0 -0
  75. package/client/dist/icons/icon-384x384.png +0 -0
  76. package/client/dist/icons/icon-512x512.png +0 -0
  77. package/client/dist/icons/icon-72x72.png +0 -0
  78. package/client/dist/icons/icon-96x96.png +0 -0
  79. package/client/dist/logo-128.png +0 -0
  80. package/client/dist/logo-256.png +0 -0
  81. package/client/dist/logo-32.png +0 -0
  82. package/client/dist/logo-512.png +0 -0
  83. package/client/dist/logo-64.png +0 -0
  84. package/commands/upfynai-connect.md +0 -59
  85. package/commands/upfynai-disconnect.md +0 -31
  86. package/commands/upfynai-doctor.md +0 -99
  87. package/commands/upfynai-export.md +0 -49
  88. package/commands/upfynai-local.md +0 -82
  89. package/commands/upfynai-status.md +0 -75
  90. package/commands/upfynai-stop.md +0 -49
  91. package/commands/upfynai-uninstall.md +0 -58
  92. package/commands/upfynai.md +0 -69
  93. package/scripts/build-client.js +0 -17
  94. package/scripts/fix-node-pty.js +0 -67
  95. package/scripts/install-commands.js +0 -78
  96. package/server/agent-loop.js +0 -242
  97. package/server/auto-compact.js +0 -99
  98. package/server/browser.js +0 -131
  99. package/server/claude-sdk.js +0 -797
  100. package/server/cli-ui.js +0 -798
  101. package/server/cli.js +0 -751
  102. package/server/constants/config.js +0 -31
  103. package/server/cursor-cli.js +0 -270
  104. package/server/database/auth.db +0 -0
  105. package/server/database/db.js +0 -1547
  106. package/server/database/init.sql +0 -70
  107. package/server/index.js +0 -3813
  108. package/server/load-env.js +0 -26
  109. package/server/mcp-server.js +0 -621
  110. package/server/middleware/auth.js +0 -184
  111. package/server/middleware/relayHelpers.js +0 -44
  112. package/server/middleware/sandboxRouter.js +0 -174
  113. package/server/openai-codex.js +0 -403
  114. package/server/openrouter.js +0 -137
  115. package/server/projects.js +0 -1807
  116. package/server/provider-factory.js +0 -174
  117. package/server/relay-client.js +0 -390
  118. package/server/routes/agent.js +0 -1234
  119. package/server/routes/auth.js +0 -559
  120. package/server/routes/browser.js +0 -419
  121. package/server/routes/canvas.js +0 -53
  122. package/server/routes/cli-auth.js +0 -263
  123. package/server/routes/codex.js +0 -396
  124. package/server/routes/commands.js +0 -707
  125. package/server/routes/composio.js +0 -176
  126. package/server/routes/cursor.js +0 -770
  127. package/server/routes/dashboard.js +0 -295
  128. package/server/routes/git.js +0 -1208
  129. package/server/routes/keys.js +0 -34
  130. package/server/routes/mcp-utils.js +0 -48
  131. package/server/routes/mcp.js +0 -661
  132. package/server/routes/payments.js +0 -227
  133. package/server/routes/projects.js +0 -754
  134. package/server/routes/sessions.js +0 -146
  135. package/server/routes/settings.js +0 -261
  136. package/server/routes/taskmaster.js +0 -1928
  137. package/server/routes/user.js +0 -106
  138. package/server/routes/vapi-chat.js +0 -624
  139. package/server/routes/voice.js +0 -235
  140. package/server/routes/webhooks.js +0 -166
  141. package/server/routes/workflows.js +0 -312
  142. package/server/sandbox.js +0 -120
  143. package/server/services/browser-ai.js +0 -154
  144. package/server/services/composio.js +0 -204
  145. package/server/services/sessionRegistry.js +0 -139
  146. package/server/services/whisperService.js +0 -84
  147. package/server/services/workflowScheduler.js +0 -211
  148. package/server/tests/relay-flow.test.js +0 -570
  149. package/server/tests/sessions.test.js +0 -259
  150. package/server/utils/commandParser.js +0 -303
  151. package/server/utils/email.js +0 -66
  152. package/server/utils/gitConfig.js +0 -24
  153. package/server/utils/mcp-detector.js +0 -198
  154. package/server/utils/taskmaster-websocket.js +0 -129
  155. package/shared/integrationCatalog.d.ts +0 -12
  156. package/shared/integrationCatalog.js +0 -172
  157. package/shared/modelConstants.js +0 -96
  158. /package/{shared → dist}/agents/claude.js +0 -0
  159. /package/{shared → dist}/agents/codex.js +0 -0
  160. /package/{shared → dist}/agents/cursor.js +0 -0
  161. /package/{shared → dist}/agents/detect.js +0 -0
  162. /package/{shared → dist}/agents/exec.js +0 -0
  163. /package/{shared → dist}/agents/files.js +0 -0
  164. /package/{shared → dist}/agents/git.js +0 -0
  165. /package/{shared → dist}/agents/gitagent.js +0 -0
  166. /package/{shared → dist}/agents/index.js +0 -0
  167. /package/{shared → dist}/agents/shell.js +0 -0
  168. /package/{shared → dist}/agents/utils.js +0 -0
  169. /package/{client/dist → dist/client}/api-docs.html +0 -0
  170. /package/{client/dist → dist/client}/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  171. /package/{client/dist → dist/client}/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  172. /package/{client/dist → dist/client}/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  173. /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  174. /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  175. /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  176. /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  177. /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  178. /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  179. /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  180. /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  181. /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  182. /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  183. /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  184. /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  185. /package/{client/dist → dist/client}/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  186. /package/{client/dist → dist/client}/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  187. /package/{client/dist → dist/client}/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  188. /package/{client/dist → dist/client}/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  189. /package/{client/dist → dist/client}/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  190. /package/{client/dist → dist/client}/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  191. /package/{client/dist → dist/client}/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  192. /package/{client/dist → dist/client}/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  193. /package/{client/dist → dist/client}/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  194. /package/{client/dist → dist/client}/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  195. /package/{client/dist → dist/client}/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  196. /package/{client/dist → dist/client}/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  197. /package/{client/dist → dist/client}/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  198. /package/{client/dist → dist/client}/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  199. /package/{client/dist → dist/client}/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  200. /package/{client/dist → dist/client}/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  201. /package/{client/dist → dist/client}/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  202. /package/{client/dist → dist/client}/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  203. /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  204. /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  205. /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  206. /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  207. /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  208. /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  209. /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  210. /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  211. /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  212. /package/{client/dist → dist/client}/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  213. /package/{client/dist → dist/client}/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  214. /package/{client/dist → dist/client}/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  215. /package/{client/dist → dist/client}/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  216. /package/{client/dist → dist/client}/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  217. /package/{client/dist → dist/client}/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  218. /package/{client/dist → dist/client}/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  219. /package/{client/dist → dist/client}/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  220. /package/{client/dist → dist/client}/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  221. /package/{client/dist → dist/client}/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  222. /package/{client/dist → dist/client}/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  223. /package/{client/dist → dist/client}/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  224. /package/{client/dist → dist/client}/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  225. /package/{client/dist → dist/client}/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  226. /package/{client/dist → dist/client}/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  227. /package/{client/dist → dist/client}/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  228. /package/{client/dist → dist/client}/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  229. /package/{client/dist → dist/client}/assets/vendor-i18n-DCFGyhQR.js +0 -0
  230. /package/{client/dist → dist/client}/assets/vendor-xterm-CZq1hqo1.js +0 -0
  231. /package/{client/dist → dist/client}/assets/vendor-xterm-qxJ8_QYu.css +0 -0
  232. /package/{client/dist → dist/client}/clear-cache.html +0 -0
  233. /package/{client/dist → dist/client}/convert-icons.md +0 -0
  234. /package/{client/dist → dist/client}/favicon.svg +0 -0
  235. /package/{client/dist → dist/client}/generate-icons.js +0 -0
  236. /package/{client/dist → dist/client}/icons/claude-ai-icon.svg +0 -0
  237. /package/{client/dist → dist/client}/icons/codex-white.svg +0 -0
  238. /package/{client/dist → dist/client}/icons/codex.svg +0 -0
  239. /package/{client/dist → dist/client}/icons/cursor-white.svg +0 -0
  240. /package/{client/dist → dist/client}/icons/cursor.svg +0 -0
  241. /package/{client/dist → dist/client}/icons/icon-128x128.svg +0 -0
  242. /package/{client/dist → dist/client}/icons/icon-144x144.svg +0 -0
  243. /package/{client/dist → dist/client}/icons/icon-152x152.svg +0 -0
  244. /package/{client/dist → dist/client}/icons/icon-192x192.svg +0 -0
  245. /package/{client/dist → dist/client}/icons/icon-384x384.svg +0 -0
  246. /package/{client/dist → dist/client}/icons/icon-512x512.svg +0 -0
  247. /package/{client/dist → dist/client}/icons/icon-72x72.svg +0 -0
  248. /package/{client/dist → dist/client}/icons/icon-96x96.svg +0 -0
  249. /package/{client/dist → dist/client}/icons/icon-template.svg +0 -0
  250. /package/{client/dist → dist/client}/logo.svg +0 -0
  251. /package/{client/dist → dist/client}/offline.html +0 -0
  252. /package/{client/dist → dist/client}/screenshots/cli-selection.png +0 -0
  253. /package/{client/dist → dist/client}/screenshots/desktop-main.png +0 -0
  254. /package/{client/dist → dist/client}/screenshots/mobile-chat.png +0 -0
  255. /package/{client/dist → dist/client}/screenshots/tools-modal.png +0 -0
  256. /package/{shared → dist}/gitagent/index.js +0 -0
  257. /package/{shared → dist}/gitagent/parser.js +0 -0
  258. /package/{shared → dist}/gitagent/prompt-builder.js +0 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,59 +0,0 @@
1
- ---
2
- description: Connect this Claude Code CLI session to Upfyn-Code web UI
3
- ---
4
-
5
- # Upfyn-Code — Connect CLI to Web UI
6
-
7
- You are the Upfyn-Code assistant. The user wants to connect their current Claude Code CLI session to the Upfyn-Code web UI.
8
-
9
- ## What to do
10
-
11
- 1. First check if there's a saved config with relay credentials:
12
- ```
13
- cat ~/.upfynai/config.json 2>/dev/null || echo "NO_CONFIG"
14
- ```
15
-
16
- 2. **If config exists with `server` and `relayKey`** — connect to hosted server:
17
- - Read the server URL and relay key from the config
18
- - Run the relay connection:
19
- ```
20
- npx upfynai-code connect --server <server_from_config> --key <relayKey_from_config>
21
- ```
22
- - This bridges the local machine to the hosted web UI at https://cli.upfyn.com
23
-
24
- 3. **If no config** — try connecting to local server:
25
- - Check if the local server is running:
26
- ```
27
- curl -s http://localhost:3001/health 2>/dev/null || echo "NOT_RUNNING"
28
- ```
29
- - If not running, tell the user:
30
- ```
31
- Local server is not running and no hosted config found.
32
-
33
- Option A: Connect to hosted server:
34
- uc connect --key upfyn_your_token
35
-
36
- Option B: Start local server first:
37
- uc start
38
- Then run /upfynai-connect again
39
- ```
40
-
41
- 4. Display connection confirmation:
42
- ```
43
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
44
- OK Connected to Upfyn-Code!
45
-
46
- Project: [current directory]
47
- Server: [server URL]
48
- Session: synced -- canvas will show your conversation
49
-
50
- Your Claude Code session is now visible in the web UI.
51
- Tool calls, responses, and permissions appear as canvas nodes.
52
-
53
- Use /upfynai-disconnect to unlink this session
54
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
55
- ```
56
-
57
- If the user provided a custom URL or token as arguments, use those instead of the config values.
58
-
59
- $ARGUMENTS
@@ -1,31 +0,0 @@
1
- ---
2
- description: Disconnect this CLI session from Upfyn-Code web UI
3
- ---
4
-
5
- # Upfyn-Code — Disconnect from Web UI
6
-
7
- You are the Upfyn-Code assistant. The user wants to disconnect their Claude Code CLI session from the Upfyn-Code web UI.
8
-
9
- ## What to do
10
-
11
- 1. Check if the server is running:
12
- ```
13
- curl -s http://localhost:3001/health 2>/dev/null || echo "NOT_RUNNING"
14
- ```
15
-
16
- 2. If running, notify the UI that this session is disconnecting. The server will handle cleanup.
17
-
18
- 3. Display confirmation:
19
- ```
20
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
21
- 🔌 Disconnected from Upfyn-Code
22
-
23
- Your CLI session is no longer synced to the web UI.
24
- The server is still running at http://localhost:3001
25
-
26
- Use /upfynai-connect to reconnect
27
- Use /upfynai-stop to shut down the server
28
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
29
- ```
30
-
31
- $ARGUMENTS
@@ -1,99 +0,0 @@
1
- ---
2
- description: Run Upfyn-Code diagnostics — check installation, server, connection, and project config
3
- ---
4
-
5
- # Upfyn-Code — Doctor (Diagnostics)
6
-
7
- You are the Upfyn-Code assistant. Run a full diagnostic check and report the results.
8
-
9
- ## Checks to perform
10
-
11
- Run each check and report with ✅ (pass), ⚠️ (warning), or ❌ (fail):
12
-
13
- 1. **Package installed**: Check if `upfynai-code` is installed globally
14
- ```
15
- npm list -g upfynai-code --depth=0 2>/dev/null
16
- ```
17
-
18
- 2. **Server running**: Check health endpoint
19
- ```
20
- curl -s http://localhost:3001/health 2>/dev/null
21
- ```
22
-
23
- 3. **Claude Code CLI**: Verify `claude` CLI is available
24
- ```
25
- which claude 2>/dev/null || where claude 2>/dev/null
26
- ```
27
-
28
- 4. **Node.js version**: Check node version (needs 18+)
29
- ```
30
- node --version
31
- ```
32
-
33
- 5. **Project .claude directory**: Check if current project has `.claude/` folder
34
- ```
35
- ls -la .claude/ 2>/dev/null || echo "NO_CLAUDE_DIR"
36
- ```
37
-
38
- 6. **Project CLAUDE.md**: Check if project has CLAUDE.md instructions
39
- ```
40
- ls CLAUDE.md 2>/dev/null || echo "NO_CLAUDE_MD"
41
- ```
42
-
43
- 7. **User commands directory**: Check `~/.claude/commands/` exists
44
- ```
45
- ls ~/.claude/commands/ 2>/dev/null || echo "NO_COMMANDS_DIR"
46
- ```
47
-
48
- 8. **Upfyn-Code commands installed**: Check if upfynai slash commands are in `~/.claude/commands/`
49
- ```
50
- ls ~/.claude/commands/upfynai*.md 2>/dev/null || echo "NOT_INSTALLED"
51
- ```
52
-
53
- 9. **Database**: Check if auth.db exists
54
- ```
55
- ls ~/.claude/upfynai-code/auth.db 2>/dev/null || echo "NO_DB"
56
- ```
57
-
58
- 10. **Port availability**: Check if port 3001 is in use
59
- ```
60
- lsof -i :3001 2>/dev/null || netstat -an | grep 3001 2>/dev/null || echo "PORT_FREE"
61
- ```
62
-
63
- 11. **MCP servers**: Check if any MCP servers are configured in `.claude/`
64
- ```
65
- cat .claude/mcp.json 2>/dev/null || echo "NO_MCP"
66
- ```
67
-
68
- 12. **Settings**: Check Claude settings
69
- ```
70
- cat ~/.claude/settings.json 2>/dev/null || echo "NO_SETTINGS"
71
- ```
72
-
73
- ## Output format
74
-
75
- ```
76
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
77
- Upfyn-Code Doctor — Diagnostics Report
78
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
79
-
80
- [✅/❌] Package installed: [version or NOT FOUND]
81
- [✅/❌] Server running: [status]
82
- [✅/❌] Claude CLI: [path]
83
- [✅/❌] Node.js: [version]
84
- [✅/⚠️] Project .claude/: [found/missing]
85
- [✅/⚠️] CLAUDE.md: [found/missing]
86
- [✅/❌] Commands directory: [path]
87
- [✅/⚠️] Upfyn-Code commands: [installed/missing]
88
- [✅/⚠️] Database: [path/missing]
89
- [✅/⚠️] Port 3001: [in use/free]
90
- [✅/⚠️] MCP servers: [count or none]
91
- [✅/⚠️] Settings: [found/missing]
92
-
93
- Summary: X passed, Y warnings, Z failed
94
-
95
- [If any failures, suggest fixes]
96
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
97
- ```
98
-
99
- $ARGUMENTS
@@ -1,49 +0,0 @@
1
- ---
2
- description: Export current session or canvas data to file
3
- ---
4
-
5
- # Upfyn-Code — Export Session/Canvas
6
-
7
- You are the Upfyn-Code assistant. The user wants to export their session or canvas data.
8
-
9
- ## What to do
10
-
11
- ### Determine export type from arguments
12
- - `$ARGUMENTS` may contain: `session`, `canvas`, `all`, or a file path
13
-
14
- ### Option 1: Export session conversation
15
- 1. Read the current session's conversation from Claude Code's session files:
16
- ```
17
- ls ~/.claude/projects/*/sessions/ 2>/dev/null
18
- ```
19
- 2. Find the active session's JSONL file
20
- 3. Parse and format the conversation into readable markdown
21
- 4. Save to the specified path or default `./upfynai-export-[timestamp].md`
22
-
23
- ### Option 2: Export canvas state
24
- 1. If the server is running, fetch canvas state from the API:
25
- ```
26
- curl -s http://localhost:3001/api/canvas-state 2>/dev/null
27
- ```
28
- 2. Format the canvas nodes as a structured JSON or markdown document
29
- 3. Include: node types, connections, tool calls, responses, timestamps
30
-
31
- ### Option 3: Export all (default)
32
- Export both session conversation and canvas state.
33
-
34
- ### Output format
35
- ```
36
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
37
- 📤 Upfyn-Code Export
38
-
39
- Type: [session/canvas/all]
40
- File: [output path]
41
- Nodes: [count]
42
- Messages: [count]
43
- Size: [file size]
44
-
45
- Export saved successfully!
46
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
47
- ```
48
-
49
- $ARGUMENTS
@@ -1,82 +0,0 @@
1
- ---
2
- description: Install Upfyn-Code locally for this project — sets up .claude integration, commands, and config
3
- ---
4
-
5
- # Upfyn-Code — Local Installation
6
-
7
- You are the Upfyn-Code assistant. The user wants to install Upfyn-Code locally for the current project. This sets up the full integration between this project's Claude Code CLI and the web UI.
8
-
9
- ## What to do
10
-
11
- ### Step 1: Install the npm package globally (if not already)
12
- ```
13
- npm list -g upfynai-code --depth=0 2>/dev/null || npm install -g upfynai-code
14
- ```
15
-
16
- ### Step 2: Create user-level commands directory
17
- ```
18
- mkdir -p ~/.claude/commands
19
- ```
20
-
21
- ### Step 3: Copy all Upfyn-Code slash commands to user commands
22
- Copy the following command files from the upfynai-code package into `~/.claude/commands/`:
23
- - `upfynai.md`
24
- - `upfynai-connect.md`
25
- - `upfynai-disconnect.md`
26
- - `upfynai-doctor.md`
27
- - `upfynai-local.md`
28
- - `upfynai-uninstall.md`
29
- - `upfynai-export.md`
30
- - `upfynai-status.md`
31
- - `upfynai-stop.md`
32
-
33
- Find the package location:
34
- ```
35
- npm root -g
36
- ```
37
- Then copy from `[global_modules]/upfynai-code/commands/` to `~/.claude/commands/`.
38
-
39
- ### Step 4: Set up project .claude directory
40
- ```
41
- mkdir -p .claude/commands
42
- ```
43
-
44
- ### Step 5: Read existing project configuration
45
- If `.claude/` directory already exists, read and preserve:
46
- - `CLAUDE.md` — project instructions
47
- - `.claude/settings.json` — project settings
48
- - `.claude/mcp.json` — MCP server config
49
- - `.claude/commands/` — project-level custom commands
50
-
51
- Report what was found to the user.
52
-
53
- ### Step 6: Create/update project CLAUDE.md with Upfyn-Code context
54
- If CLAUDE.md exists, append an Upfyn-Code section. If not, mention that the user can create one.
55
- Do NOT overwrite existing CLAUDE.md content.
56
-
57
- ### Step 7: Display completion
58
- ```
59
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
60
- ✅ Upfyn-Code installed locally!
61
-
62
- 📁 Project: [current directory]
63
- 📂 .claude/ directory: [found/created]
64
- 📄 CLAUDE.md: [found/created note]
65
- 🔧 MCP servers: [count found]
66
- ⚡ Slash commands installed to ~/.claude/commands/
67
-
68
- Available commands:
69
- /upfynai — Start the web UI server
70
- /upfynai-connect — Connect this session to web UI
71
- /upfynai-disconnect — Disconnect from web UI
72
- /upfynai-status — Show connection status
73
- /upfynai-doctor — Run diagnostics
74
- /upfynai-export — Export session/canvas data
75
- /upfynai-stop — Stop the web UI server
76
- /upfynai-uninstall — Remove Upfyn-Code
77
-
78
- Next step: Run /upfynai to start the web UI
79
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
80
- ```
81
-
82
- $ARGUMENTS
@@ -1,75 +0,0 @@
1
- ---
2
- description: Show Upfyn-Code connection status — server, sessions, project info
3
- ---
4
-
5
- # Upfyn-Code — Status
6
-
7
- You are the Upfyn-Code assistant. Show the current status of the Upfyn-Code system.
8
-
9
- ## What to do
10
-
11
- Gather and display all of the following:
12
-
13
- 1. **Server status**: Check if the server is running
14
- ```
15
- curl -s http://localhost:3001/health 2>/dev/null || echo "NOT_RUNNING"
16
- ```
17
-
18
- 2. **Current project**: Show `pwd` and whether it has `.claude/` directory
19
- ```
20
- pwd
21
- ls -d .claude 2>/dev/null || echo "NO_CLAUDE_DIR"
22
- ```
23
-
24
- 3. **Project CLAUDE.md**: Check for project instructions
25
- ```
26
- test -f CLAUDE.md && echo "FOUND" || echo "NOT_FOUND"
27
- ```
28
-
29
- 4. **Project .claude/settings.json**: Check project settings
30
- ```
31
- cat .claude/settings.json 2>/dev/null || echo "NO_SETTINGS"
32
- ```
33
-
34
- 5. **MCP servers**: Check configured MCP servers
35
- ```
36
- cat .claude/mcp.json 2>/dev/null || echo "NO_MCP"
37
- ```
38
-
39
- 6. **Active sessions**: If server is running, get session count
40
- ```
41
- curl -s http://localhost:3001/api/projects 2>/dev/null
42
- ```
43
-
44
- 7. **Installed version**:
45
- ```
46
- npm list -g upfynai-code --depth=0 2>/dev/null
47
- ```
48
-
49
- 8. **Slash commands**: Check which upfynai commands are installed
50
- ```
51
- ls ~/.claude/commands/upfynai*.md 2>/dev/null
52
- ```
53
-
54
- ## Output format
55
- ```
56
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
57
- Upfyn-Code — Status
58
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
59
-
60
- Server: [🟢 Running at http://localhost:3001 / 🔴 Not running]
61
- Version: [x.y.z]
62
- Project: [current directory name]
63
- .claude/: [✅ Found / ⚠️ Not found]
64
- CLAUDE.md: [✅ Found / ⚠️ Not found]
65
- MCP servers: [count or none]
66
- Settings: [found/default]
67
- Sessions: [count active]
68
- Commands: [count installed] / 9 total
69
-
70
- [If server running, show URL]
71
- [If not running, suggest /upfynai to start]
72
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
73
- ```
74
-
75
- $ARGUMENTS
@@ -1,49 +0,0 @@
1
- ---
2
- description: Stop the Upfyn-Code web UI server
3
- ---
4
-
5
- # Upfyn-Code — Stop Server
6
-
7
- You are the Upfyn-Code assistant. The user wants to stop the Upfyn-Code web UI server.
8
-
9
- ## What to do
10
-
11
- 1. Check if the server is running:
12
- ```
13
- curl -s http://localhost:3001/health 2>/dev/null || echo "NOT_RUNNING"
14
- ```
15
-
16
- 2. If not running, tell the user:
17
- ```
18
- Server is not running. Nothing to stop.
19
- ```
20
-
21
- 3. If running, find and stop the process:
22
-
23
- On macOS/Linux:
24
- ```
25
- lsof -ti :3001 | xargs kill 2>/dev/null
26
- ```
27
-
28
- On Windows:
29
- ```
30
- netstat -ano | findstr :3001
31
- ```
32
- Then kill the PID.
33
-
34
- 4. Verify it stopped:
35
- ```
36
- curl -s http://localhost:3001/health 2>/dev/null || echo "STOPPED"
37
- ```
38
-
39
- 5. Display confirmation:
40
- ```
41
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
42
- ⏹️ Upfyn-Code server stopped
43
-
44
- Port 3001 is now free.
45
- Run /upfynai to start again.
46
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
47
- ```
48
-
49
- $ARGUMENTS
@@ -1,58 +0,0 @@
1
- ---
2
- description: Remove Upfyn-Code — uninstalls commands, cleans up config
3
- ---
4
-
5
- # Upfyn-Code — Uninstall
6
-
7
- You are the Upfyn-Code assistant. The user wants to uninstall Upfyn-Code.
8
-
9
- ## What to do
10
-
11
- ### Step 1: Stop the server if running
12
- ```
13
- curl -s http://localhost:3001/health 2>/dev/null && echo "SERVER_RUNNING"
14
- ```
15
- If running, ask the user if they want to stop it first.
16
-
17
- ### Step 2: Remove slash commands from ~/.claude/commands/
18
- ```
19
- rm -f ~/.claude/commands/upfynai.md
20
- rm -f ~/.claude/commands/upfynai-connect.md
21
- rm -f ~/.claude/commands/upfynai-disconnect.md
22
- rm -f ~/.claude/commands/upfynai-doctor.md
23
- rm -f ~/.claude/commands/upfynai-local.md
24
- rm -f ~/.claude/commands/upfynai-uninstall.md
25
- rm -f ~/.claude/commands/upfynai-export.md
26
- rm -f ~/.claude/commands/upfynai-status.md
27
- rm -f ~/.claude/commands/upfynai-stop.md
28
- ```
29
-
30
- ### Step 3: Ask about global package
31
- Ask the user: "Do you also want to uninstall the global npm package?"
32
-
33
- If yes:
34
- ```
35
- npm uninstall -g upfynai-code
36
- ```
37
-
38
- ### Step 4: Ask about database
39
- Ask the user: "Do you want to remove the database (session history will be lost)?"
40
-
41
- If yes, remove the database file.
42
-
43
- ### Step 5: Display completion
44
- ```
45
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
46
- 🗑️ Upfyn-Code uninstalled
47
-
48
- Removed:
49
- ✅ Slash commands from ~/.claude/commands/
50
- [✅/⏭️] Global npm package
51
- [✅/⏭️] Database
52
-
53
- Your .claude/ project files were NOT modified.
54
- Your CLAUDE.md was NOT modified.
55
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
56
- ```
57
-
58
- $ARGUMENTS
@@ -1,69 +0,0 @@
1
- ---
2
- description: Start Upfyn-Code web UI server and get connection URL
3
- ---
4
-
5
- # Upfyn-Code — Start UI Server
6
-
7
- You are the Upfyn-Code assistant. The user wants to start or connect to the Upfyn-Code web UI.
8
-
9
- ## What to do
10
-
11
- 1. First check if there's a saved hosted config:
12
- ```
13
- cat ~/.upfynai/config.json 2>/dev/null || echo "NO_CONFIG"
14
- ```
15
-
16
- 2. **If config has `server` and `relayKey`** — connect to hosted server directly:
17
- ```
18
- npx upfynai-code connect --server <server_from_config> --key <relayKey_from_config>
19
- ```
20
- Then display:
21
- ```
22
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
23
- Upfyn-Code — Connected to hosted server!
24
-
25
- Web UI: https://cli.upfyn.com
26
- Project: [current working directory]
27
- Session: synced
28
-
29
- Use /upfynai-disconnect to unlink
30
- Use /upfynai-status to check connection
31
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
32
- ```
33
-
34
- 3. **If no hosted config** — start local server:
35
- - Check if `upfynai-code` is installed:
36
- ```
37
- npm list -g upfynai-code --depth=0 2>/dev/null || echo "NOT_INSTALLED"
38
- ```
39
- - If NOT installed, tell the user:
40
- ```
41
- Upfyn-Code is not installed globally. Install it with:
42
- npm install -g upfynai-code
43
- ```
44
- - If installed, check if already running:
45
- ```
46
- curl -s http://localhost:3001/health 2>/dev/null || echo "NOT_RUNNING"
47
- ```
48
- - If NOT running, start it:
49
- ```
50
- upfynai-code start &
51
- ```
52
- - Display:
53
- ```
54
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
55
- Upfyn-Code is running!
56
-
57
- Open in browser: http://localhost:3001
58
- Project: [current working directory]
59
- WebSocket: ws://localhost:3001/ws
60
-
61
- Use /upfynai-connect to link this CLI session
62
- Use /upfynai-disconnect to unlink
63
- Use /upfynai-doctor to run diagnostics
64
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
65
- ```
66
-
67
- 4. If the user provided arguments like `--port 8080`, pass them to the start command.
68
-
69
- $ARGUMENTS
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Build the client (frontend) from the backend directory.
4
- * Uses Vite API directly to avoid npx resolution issues.
5
- */
6
- import path from 'path';
7
- import { fileURLToPath } from 'url';
8
-
9
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
10
- const clientDir = path.join(__dirname, '..', 'client');
11
-
12
- // Change cwd so Vite/Tailwind resolve configs from client/
13
- process.chdir(clientDir);
14
- console.log(`Building client from: ${clientDir}`);
15
-
16
- const { build } = await import('vite');
17
- await build();