tower-studio 0.2.7 → 0.2.9

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 (247) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +3 -3
  3. package/.next/standalone/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  5. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -1
  12. package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +47 -47
  13. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  16. package/.next/standalone/.next/server/app/_not-found.rsc +14 -14
  17. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
  18. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  19. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +9 -9
  20. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  21. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  22. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/.next/standalone/.next/server/app/api/adapters/test/route.js +3 -2
  24. package/.next/standalone/.next/server/app/api/adapters/test/route.js.nft.json +1 -1
  25. package/.next/standalone/.next/server/app/api/browse-fs/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/git/route.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/api/internal/assistant/sessions/route.js +1 -1
  28. package/.next/standalone/.next/server/app/api/internal/terminal/[taskId]/start/route.js +1 -1
  29. package/.next/standalone/.next/server/app/index.html +1 -1
  30. package/.next/standalone/.next/server/app/index.rsc +14 -14
  31. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  32. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +14 -14
  33. package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +4 -4
  34. package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +9 -9
  35. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  36. package/.next/standalone/.next/server/app/missions/page/react-loadable-manifest.json +1 -1
  37. package/.next/standalone/.next/server/app/missions/page/server-reference-manifest.json +75 -75
  38. package/.next/standalone/.next/server/app/missions/page.js +5 -5
  39. package/.next/standalone/.next/server/app/missions/page.js.nft.json +1 -1
  40. package/.next/standalone/.next/server/app/missions/page_client-reference-manifest.js +1 -1
  41. package/.next/standalone/.next/server/app/onboarding/page/react-loadable-manifest.json +1 -1
  42. package/.next/standalone/.next/server/app/onboarding/page/server-reference-manifest.json +47 -47
  43. package/.next/standalone/.next/server/app/onboarding/page.js.nft.json +1 -1
  44. package/.next/standalone/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  45. package/.next/standalone/.next/server/app/onboarding.html +1 -1
  46. package/.next/standalone/.next/server/app/onboarding.rsc +16 -16
  47. package/.next/standalone/.next/server/app/onboarding.segments/_full.segment.rsc +16 -16
  48. package/.next/standalone/.next/server/app/onboarding.segments/_head.segment.rsc +4 -4
  49. package/.next/standalone/.next/server/app/onboarding.segments/_index.segment.rsc +9 -9
  50. package/.next/standalone/.next/server/app/onboarding.segments/_tree.segment.rsc +1 -1
  51. package/.next/standalone/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  52. package/.next/standalone/.next/server/app/onboarding.segments/onboarding.segment.rsc +3 -3
  53. package/.next/standalone/.next/server/app/page/react-loadable-manifest.json +1 -1
  54. package/.next/standalone/.next/server/app/page/server-reference-manifest.json +47 -47
  55. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  56. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  57. package/.next/standalone/.next/server/app/settings/page/react-loadable-manifest.json +1 -1
  58. package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +60 -60
  59. package/.next/standalone/.next/server/app/settings/page.js +3 -3
  60. package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
  61. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  62. package/.next/standalone/.next/server/app/settings.html +1 -1
  63. package/.next/standalone/.next/server/app/settings.rsc +16 -16
  64. package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +16 -16
  65. package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  66. package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +9 -9
  67. package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  68. package/.next/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  69. package/.next/standalone/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  70. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/archive/page/react-loadable-manifest.json +1 -1
  71. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/archive/page/server-reference-manifest.json +98 -98
  72. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/archive/page.js.nft.json +1 -1
  73. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/archive/page_client-reference-manifest.js +1 -1
  74. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/assets/page/react-loadable-manifest.json +1 -1
  75. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/assets/page/server-reference-manifest.json +88 -88
  76. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/assets/page.js.nft.json +1 -1
  77. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/assets/page_client-reference-manifest.js +1 -1
  78. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/notes/page/react-loadable-manifest.json +1 -1
  79. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/notes/page/server-reference-manifest.json +81 -81
  80. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/notes/page.js.nft.json +1 -1
  81. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/notes/page_client-reference-manifest.js +1 -1
  82. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/page/react-loadable-manifest.json +1 -1
  83. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/page/server-reference-manifest.json +76 -76
  84. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/page.js +3 -3
  85. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/page.js.nft.json +1 -1
  86. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/page_client-reference-manifest.js +1 -1
  87. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/react-loadable-manifest.json +1 -1
  88. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/server-reference-manifest.json +47 -47
  89. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page.js.nft.json +1 -1
  90. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page_client-reference-manifest.js +1 -1
  91. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/versions/page/react-loadable-manifest.json +1 -1
  92. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/versions/page/server-reference-manifest.json +84 -84
  93. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/versions/page.js.nft.json +1 -1
  94. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/versions/page_client-reference-manifest.js +1 -1
  95. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/react-loadable-manifest.json +2 -2
  96. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/server-reference-manifest.json +90 -90
  97. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js +5 -5
  98. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js.nft.json +1 -1
  99. package/.next/standalone/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page_client-reference-manifest.js +1 -1
  100. package/.next/standalone/.next/server/app/workspaces/page/react-loadable-manifest.json +1 -1
  101. package/.next/standalone/.next/server/app/workspaces/page/server-reference-manifest.json +67 -67
  102. package/.next/standalone/.next/server/app/workspaces/page.js.nft.json +1 -1
  103. package/.next/standalone/.next/server/app/workspaces/page_client-reference-manifest.js +1 -1
  104. package/.next/standalone/.next/server/chunks/0se9_next_dist_esm_build_templates_app-route_0h5yr8p.js +1 -1
  105. package/.next/standalone/.next/server/chunks/0se9_next_dist_esm_build_templates_app-route_0hrprmi.js +1 -1
  106. package/.next/standalone/.next/server/chunks/[root-of-the-server]__028ucbo._.js +1 -1
  107. package/.next/standalone/.next/server/chunks/[root-of-the-server]__03gi3ue._.js +1 -1
  108. package/.next/standalone/.next/server/chunks/[root-of-the-server]__07f7~6u._.js +1 -1
  109. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0_90467._.js +3 -0
  110. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d~z6xs._.js +2 -2
  111. package/.next/standalone/.next/server/chunks/_0_w835g._.js +4 -0
  112. package/.next/standalone/.next/server/chunks/src_0bkvm8c._.js +1 -1
  113. package/.next/standalone/.next/server/chunks/src_lib_0ba0ntr._.js +1 -1
  114. package/.next/standalone/.next/server/chunks/src_lib_ai_0q-~me1._.js +1 -1
  115. package/.next/standalone/.next/server/chunks/src_lib_ai_0xx6y51._.js +1 -1
  116. package/.next/standalone/.next/server/chunks/src_lib_ai_providers_index_ts_0.y.3vp._.js +1 -1
  117. package/.next/standalone/.next/server/chunks/ssr/0iu._[workspaceId]_projects_[projectId]_versions_version-timeline-client_tsx_07o_kyi._.js +1 -1
  118. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0.ukame._.js +1 -1
  119. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__006_qh0._.js +1 -1
  120. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01j8ix6._.js +1 -1
  121. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02px.0y._.js +1 -1
  122. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__03ebsif._.js +3 -3
  123. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ca_ueb._.js +1 -1
  124. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0dsdplu._.js +1 -1
  125. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0l43.5g._.js +1 -1
  126. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0n.cuy2._.js +1 -1
  127. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0nbj.ml._.js +1 -1
  128. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ojv-d0._.js +3 -0
  129. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0pm2~fu._.js +1 -1
  130. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ps55l6._.js +1 -1
  131. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ribsk4._.js +1 -1
  132. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0rjue04._.js +1 -1
  133. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0souuv~._.js +3 -0
  134. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0tc6uh2._.js +1 -1
  135. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0v2eslh._.js +1 -1
  136. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0vwc25l._.js +3 -0
  137. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0wjg_.n._.js +1 -1
  138. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0wlmzzq._.js +1 -1
  139. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0wvyks.._.js +1 -1
  140. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0u4gc4b._.js → [root-of-the-server]__0z7q-_5._.js} +2 -2
  141. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0zbmoit._.js +1 -1
  142. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0~03tpv._.js +3 -0
  143. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0~a-emb._.js +1 -1
  144. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0zujp5l._.js → [root-of-the-server]__10o9il8._.js} +2 -2
  145. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__13vdw4w._.js +3 -0
  146. package/.next/standalone/.next/server/chunks/ssr/{_0ysygps._.js → _0-fpxu8._.js} +2 -2
  147. package/.next/standalone/.next/server/chunks/ssr/{_0pd0.8f._.js → _03zmko4._.js} +2 -2
  148. package/.next/standalone/.next/server/chunks/ssr/_04b71ua._.js +1 -1
  149. package/.next/standalone/.next/server/chunks/ssr/{_0ysyq9g._.js → _0568hf5._.js} +2 -2
  150. package/.next/standalone/.next/server/chunks/ssr/_05h.8a~._.js +1 -1
  151. package/.next/standalone/.next/server/chunks/ssr/_07k_7zo._.js +7 -0
  152. package/.next/standalone/.next/server/chunks/ssr/{_0c-jnbs._.js → _0999z~z._.js} +2 -2
  153. package/.next/standalone/.next/server/chunks/ssr/_0_l8.dg._.js +1 -1
  154. package/.next/standalone/.next/server/chunks/ssr/_0cj9a7y._.js +1 -1
  155. package/.next/standalone/.next/server/chunks/ssr/_0ds6nk2._.js +1 -1
  156. package/.next/standalone/.next/server/chunks/ssr/_0gkxdta._.js +7 -0
  157. package/.next/standalone/.next/server/chunks/ssr/_0i4__mf._.js +1 -1
  158. package/.next/standalone/.next/server/chunks/ssr/_0ihq._v._.js +1 -1
  159. package/.next/standalone/.next/server/chunks/ssr/{_0f6u19w._.js → _0jxhs~u._.js} +2 -2
  160. package/.next/standalone/.next/server/chunks/ssr/{_0b0.-sj._.js → _0r8ftmo._.js} +2 -2
  161. package/.next/standalone/.next/server/chunks/ssr/_0r9w-k8._.js +1 -1
  162. package/.next/standalone/.next/server/chunks/ssr/_0rbctq7._.js +1 -1
  163. package/.next/standalone/.next/server/chunks/ssr/_0rt8hus._.js +1 -1
  164. package/.next/standalone/.next/server/chunks/ssr/{_0bw-tx8._.js → _0zcog8w._.js} +2 -2
  165. package/.next/standalone/.next/server/chunks/ssr/_0~80adm._.js +3 -3
  166. package/.next/standalone/.next/server/chunks/ssr/{_0fob8fc._.js → _11uabrg._.js} +2 -2
  167. package/.next/standalone/.next/server/chunks/ssr/_13b~3az._.js +7 -0
  168. package/.next/standalone/.next/server/chunks/ssr/src_0eufeyj._.js +3 -0
  169. package/.next/standalone/.next/server/chunks/ssr/src_13jha60._.js +1 -1
  170. package/.next/standalone/.next/server/chunks/ssr/src_actions_agent-actions_ts_0~wc.sy._.js +1 -1
  171. package/.next/standalone/.next/server/chunks/ssr/src_actions_file-actions_ts_0gcvqwm._.js +1 -1
  172. package/.next/standalone/.next/server/chunks/ssr/src_app_missions_missions-client_tsx_11429lj._.js +1 -1
  173. package/.next/standalone/.next/server/chunks/ssr/src_app_onboarding_page_tsx_0xf7hpz._.js +1 -1
  174. package/.next/standalone/.next/server/chunks/ssr/src_app_settings_page_tsx_0h9v7dr._.js +1 -1
  175. package/.next/standalone/.next/server/chunks/ssr/src_app_workspaces_[workspaceId]_assets_assets-page-client_tsx_0wyzpam._.js +1 -1
  176. package/.next/standalone/.next/server/chunks/ssr/src_app_workspaces_[workspaceId]_board-page-client_tsx_0gips66._.js +1 -1
  177. package/.next/standalone/.next/server/chunks/ssr/src_app_workspaces_[workspaceId]_tasks_[taskId]_task-page-client_tsx_02t7blt._.js +1 -1
  178. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  179. package/.next/standalone/.next/server/pages/404.html +1 -1
  180. package/.next/standalone/.next/server/pages/500.html +1 -1
  181. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  182. package/.next/standalone/.next/server/server-reference-manifest.json +317 -317
  183. package/.next/standalone/.next/static/chunks/{0v~pz9e87t99b.js → 0-9-c__gfaxpa.js} +1 -1
  184. package/.next/standalone/.next/static/chunks/{05-ui_o~3irq_.js → 04djo-eed_8rf.js} +2 -2
  185. package/.next/standalone/.next/static/chunks/{0r1mkt5qs~s6m.js → 05fy_a4boi~ym.js} +1 -1
  186. package/.next/standalone/.next/static/chunks/05mg~bkdmeovq.js +1 -0
  187. package/.next/standalone/.next/static/chunks/08o3st.fn2~6x.js +1 -0
  188. package/.next/standalone/.next/static/chunks/{08~e63d2q~cam.js → 0d5wyd0-zzb94.js} +1 -1
  189. package/.next/standalone/.next/static/chunks/{00j0mdc41wa44.js → 0e6c~o_iuvycp.js} +1 -1
  190. package/.next/standalone/.next/static/chunks/{0i55dediewjp5.js → 0h3jzfwt-f9o7.js} +1 -1
  191. package/.next/standalone/.next/static/chunks/0igfu0uxcf238.js +1 -0
  192. package/.next/standalone/.next/static/chunks/{0l3mmc866npw4.js → 0jd4uhx~x74ox.js} +2 -2
  193. package/.next/standalone/.next/static/chunks/{0bw4ahlj4~l~g.js → 0obdotk~5x07o.js} +1 -1
  194. package/.next/standalone/.next/static/chunks/0o~dk86gtjq-..js +1 -0
  195. package/.next/standalone/.next/static/chunks/{0ft77ybyq903..js → 0p_vnqgdse218.js} +1 -1
  196. package/.next/standalone/.next/static/chunks/{0~27mkhc9s5k2.js → 0sbpshsch~ak2.js} +2 -2
  197. package/.next/standalone/.next/static/chunks/{00.52653v5c~c.js → 0t.7i1ltlf~rt.js} +1 -1
  198. package/.next/standalone/.next/static/chunks/0v--ko.s9zeij.js +1 -0
  199. package/.next/standalone/.next/static/chunks/{02edbrlq~2uyx.js → 0v-8_9de2o32z.js} +1 -1
  200. package/.next/standalone/.next/static/chunks/{05hls.3r4bz.0.js → 0x~sbju1g3fjh.js} +1 -1
  201. package/.next/standalone/.next/static/chunks/{0fxm-wv..y_a_.js → 0y1m4k4hrzl33.js} +2 -2
  202. package/.next/standalone/.next/static/chunks/0ztm6whl93nyg.js +1 -0
  203. package/.next/standalone/.next/static/chunks/136efy8zbqp13.js +1 -0
  204. package/.next/standalone/package.json +1 -2
  205. package/dist/mcp-server.cjs +34 -28
  206. package/package.json +1 -2
  207. package/scripts/post-tool-hook.js +24 -39
  208. package/scripts/session-start-hook.js +21 -19
  209. package/scripts/stop-hook.js +21 -19
  210. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0wbndoc._.js +0 -4
  211. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__04pq37d._.js +0 -3
  212. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__07_b6c.._.js +0 -3
  213. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__09kc.q_._.js +0 -3
  214. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0jo1r7k._.js +0 -3
  215. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0o8k4pc._.js +0 -3
  216. package/.next/standalone/.next/server/chunks/ssr/_02v3fjp._.js +0 -7
  217. package/.next/standalone/.next/server/chunks/ssr/_07~0_w6._.js +0 -7
  218. package/.next/standalone/.next/server/chunks/ssr/_08w-r6e._.js +0 -7
  219. package/.next/standalone/.next/server/chunks/ssr/src_095o8x6._.js +0 -3
  220. package/.next/standalone/.next/static/chunks/0nno5if2x1mvs.js +0 -1
  221. package/.next/standalone/.next/static/chunks/0q-u-hhre1uyw.js +0 -1
  222. package/.next/standalone/.next/static/chunks/0qazzw-pr_sv7.js +0 -1
  223. package/.next/standalone/.next/static/chunks/0w3jww1m3k77x.js +0 -1
  224. package/.next/standalone/.next/static/chunks/0z01g02xstbqe.js +0 -1
  225. package/.next/standalone/.next/static/chunks/117qu902jput3.js +0 -1
  226. package/.next/standalone/.next/static/chunks/142w-q8.7m3kl.js +0 -1
  227. package/src/mcp/db.ts +0 -11
  228. package/src/mcp/index.ts +0 -15
  229. package/src/mcp/server.ts +0 -52
  230. package/src/mcp/tools/__tests__/label-tools.test.ts +0 -140
  231. package/src/mcp/tools/__tests__/project-tools.test.ts +0 -182
  232. package/src/mcp/tools/__tests__/report-tools.test.ts +0 -212
  233. package/src/mcp/tools/__tests__/task-tools.test.ts +0 -418
  234. package/src/mcp/tools/__tests__/terminal-tools.test.ts +0 -318
  235. package/src/mcp/tools/__tests__/workspace-tools.test.ts +0 -146
  236. package/src/mcp/tools/knowledge-tools.ts +0 -100
  237. package/src/mcp/tools/label-tools.ts +0 -70
  238. package/src/mcp/tools/note-asset-tools.ts +0 -271
  239. package/src/mcp/tools/project-tools.ts +0 -79
  240. package/src/mcp/tools/report-tools.ts +0 -220
  241. package/src/mcp/tools/search-tools.ts +0 -32
  242. package/src/mcp/tools/task-tools.ts +0 -272
  243. package/src/mcp/tools/terminal-tools.ts +0 -154
  244. package/src/mcp/tools/workspace-tools.ts +0 -73
  245. /package/.next/standalone/.next/static/{om3SyUw4eAwMA0KLhpSGh → 7iWXcI7IK1tpJQ-itTcOk}/_buildManifest.js +0 -0
  246. /package/.next/standalone/.next/static/{om3SyUw4eAwMA0KLhpSGh → 7iWXcI7IK1tpJQ-itTcOk}/_clientMiddlewareManifest.js +0 -0
  247. /package/.next/standalone/.next/static/{om3SyUw4eAwMA0KLhpSGh → 7iWXcI7IK1tpJQ-itTcOk}/_ssgManifest.js +0 -0
@@ -1,140 +0,0 @@
1
- import { vi, describe, it, expect, beforeEach } from "vitest";
2
-
3
- // Mock db before any imports
4
- vi.mock("../../db", () => ({
5
- db: {
6
- label: {
7
- findMany: vi.fn(),
8
- create: vi.fn(),
9
- delete: vi.fn(),
10
- },
11
- taskLabel: {
12
- deleteMany: vi.fn(),
13
- createMany: vi.fn(),
14
- },
15
- $transaction: vi.fn(),
16
- },
17
- }));
18
-
19
- import { db } from "../../db";
20
- import { labelTools } from "../label-tools";
21
-
22
- const mockDb = db as {
23
- label: {
24
- findMany: ReturnType<typeof vi.fn>;
25
- create: ReturnType<typeof vi.fn>;
26
- delete: ReturnType<typeof vi.fn>;
27
- };
28
- taskLabel: {
29
- deleteMany: ReturnType<typeof vi.fn>;
30
- createMany: ReturnType<typeof vi.fn>;
31
- };
32
- $transaction: ReturnType<typeof vi.fn>;
33
- };
34
-
35
- describe("label-tools", () => {
36
- beforeEach(() => {
37
- vi.clearAllMocks();
38
- });
39
-
40
- describe("list_labels", () => {
41
- it("calls db.label.findMany with OR condition for builtin and workspace-specific labels", async () => {
42
- const mockLabels = [
43
- { id: "l1", name: "Bug", color: "#ff0000", isBuiltin: true },
44
- { id: "l2", name: "Custom", color: "#00ff00", isBuiltin: false, workspaceId: "ws1" },
45
- ];
46
- mockDb.label.findMany.mockResolvedValue(mockLabels);
47
-
48
- const result = await labelTools.list_labels.handler({ workspaceId: "ws1" });
49
-
50
- expect(mockDb.label.findMany).toHaveBeenCalledOnce();
51
- const callArgs = mockDb.label.findMany.mock.calls[0][0];
52
- expect(callArgs.where.OR).toEqual(
53
- expect.arrayContaining([{ isBuiltin: true }, { workspaceId: "ws1" }])
54
- );
55
- expect(result).toEqual(mockLabels);
56
- });
57
- });
58
-
59
- describe("create_label", () => {
60
- it("calls db.label.create with name, color, and workspaceId", async () => {
61
- const mockLabel = { id: "l1", name: "Feature", color: "#0000ff", workspaceId: "ws1" };
62
- mockDb.label.create.mockResolvedValue(mockLabel);
63
-
64
- const result = await labelTools.create_label.handler({
65
- workspaceId: "ws1",
66
- name: "Feature",
67
- color: "#0000ff",
68
- });
69
-
70
- expect(mockDb.label.create).toHaveBeenCalledWith({
71
- data: { name: "Feature", color: "#0000ff", workspaceId: "ws1" },
72
- });
73
- expect(result).toEqual(mockLabel);
74
- });
75
- });
76
-
77
- describe("delete_label", () => {
78
- it("calls db.label.delete and returns { deleted: true }", async () => {
79
- mockDb.label.delete.mockResolvedValue({ id: "l1" });
80
-
81
- const result = await labelTools.delete_label.handler({ labelId: "l1" });
82
-
83
- expect(mockDb.label.delete).toHaveBeenCalledWith({ where: { id: "l1" } });
84
- expect(result).toEqual({ deleted: true });
85
- });
86
- });
87
-
88
- describe("set_task_labels", () => {
89
- it("calls tx.taskLabel.deleteMany then tx.taskLabel.createMany in transaction for non-empty labelIds", async () => {
90
- const mockTx = {
91
- taskLabel: {
92
- deleteMany: vi.fn().mockResolvedValue({}),
93
- createMany: vi.fn().mockResolvedValue({}),
94
- },
95
- };
96
- mockDb.$transaction.mockImplementation(
97
- async (fn: (tx: typeof mockTx) => Promise<void>) => fn(mockTx)
98
- );
99
-
100
- const result = await labelTools.set_task_labels.handler({
101
- taskId: "task1",
102
- labelIds: ["l1", "l2"],
103
- });
104
-
105
- expect(mockTx.taskLabel.deleteMany).toHaveBeenCalledWith({
106
- where: { taskId: "task1" },
107
- });
108
- expect(mockTx.taskLabel.createMany).toHaveBeenCalledWith({
109
- data: [
110
- { taskId: "task1", labelId: "l1" },
111
- { taskId: "task1", labelId: "l2" },
112
- ],
113
- });
114
- expect(result).toEqual({ taskId: "task1", labelIds: ["l1", "l2"] });
115
- });
116
-
117
- it("calls tx.taskLabel.deleteMany but NOT createMany for empty labelIds", async () => {
118
- const mockTx = {
119
- taskLabel: {
120
- deleteMany: vi.fn().mockResolvedValue({}),
121
- createMany: vi.fn().mockResolvedValue({}),
122
- },
123
- };
124
- mockDb.$transaction.mockImplementation(
125
- async (fn: (tx: typeof mockTx) => Promise<void>) => fn(mockTx)
126
- );
127
-
128
- const result = await labelTools.set_task_labels.handler({
129
- taskId: "task1",
130
- labelIds: [],
131
- });
132
-
133
- expect(mockTx.taskLabel.deleteMany).toHaveBeenCalledWith({
134
- where: { taskId: "task1" },
135
- });
136
- expect(mockTx.taskLabel.createMany).not.toHaveBeenCalled();
137
- expect(result).toEqual({ taskId: "task1", labelIds: [] });
138
- });
139
- });
140
- });
@@ -1,182 +0,0 @@
1
- // @vitest-environment node
2
- import { vi, describe, it, expect, beforeEach } from "vitest";
3
-
4
- // Mock db BEFORE imports
5
- vi.mock("../../db", () => ({
6
- db: {
7
- project: {
8
- findMany: vi.fn(),
9
- create: vi.fn(),
10
- update: vi.fn(),
11
- delete: vi.fn(),
12
- },
13
- },
14
- }));
15
-
16
- import { db } from "../../db";
17
- import { projectTools } from "../project-tools";
18
-
19
- const mockDb = db as {
20
- project: {
21
- findMany: ReturnType<typeof vi.fn>;
22
- create: ReturnType<typeof vi.fn>;
23
- update: ReturnType<typeof vi.fn>;
24
- delete: ReturnType<typeof vi.fn>;
25
- };
26
- };
27
-
28
- describe("project-tools", () => {
29
- beforeEach(() => {
30
- vi.clearAllMocks();
31
- });
32
-
33
- // ─── list_projects ──────────────────────────────────────────────────────
34
-
35
- describe("list_projects", () => {
36
- it("returns projects with taskCount and repositoryCount derived from array lengths", async () => {
37
- const mockProjects = [
38
- {
39
- id: "proj1",
40
- name: "Project Alpha",
41
- workspaceId: "ws1",
42
- tasks: [{ id: "t1" }, { id: "t2" }, { id: "t3" }],
43
- repositories: [{ id: "r1" }],
44
- updatedAt: new Date("2026-04-20"),
45
- },
46
- {
47
- id: "proj2",
48
- name: "Project Beta",
49
- workspaceId: "ws1",
50
- tasks: [],
51
- repositories: [],
52
- updatedAt: new Date("2026-04-19"),
53
- },
54
- ];
55
- mockDb.project.findMany.mockResolvedValue(mockProjects);
56
-
57
- const result = await projectTools.list_projects.handler({ workspaceId: "ws1" });
58
-
59
- expect(mockDb.project.findMany).toHaveBeenCalledWith(
60
- expect.objectContaining({
61
- where: { workspaceId: "ws1" },
62
- })
63
- );
64
- expect(result).toHaveLength(2);
65
- // tasks and repositories arrays should not appear in output
66
- expect(result[0]).not.toHaveProperty("tasks");
67
- expect(result[0]).not.toHaveProperty("repositories");
68
- // counts derived from array lengths
69
- expect(result[0].taskCount).toBe(3);
70
- expect(result[0].repositoryCount).toBe(1);
71
- expect(result[1].taskCount).toBe(0);
72
- expect(result[1].repositoryCount).toBe(0);
73
- });
74
- });
75
-
76
- // ─── create_project ──────────────────────────────────────────────────────
77
-
78
- describe("create_project", () => {
79
- it("sets type to GIT when gitUrl is provided", async () => {
80
- const createdProject = {
81
- id: "proj1",
82
- name: "Git Project",
83
- type: "GIT",
84
- gitUrl: "https://github.com/org/repo",
85
- workspaceId: "ws1",
86
- };
87
- mockDb.project.create.mockResolvedValue(createdProject);
88
-
89
- const result = await projectTools.create_project.handler({
90
- workspaceId: "ws1",
91
- name: "Git Project",
92
- gitUrl: "https://github.com/org/repo",
93
- });
94
-
95
- expect(mockDb.project.create).toHaveBeenCalledWith({
96
- data: expect.objectContaining({
97
- type: "GIT",
98
- gitUrl: "https://github.com/org/repo",
99
- }),
100
- });
101
- expect(result.type).toBe("GIT");
102
- });
103
-
104
- it("sets type to NORMAL when gitUrl is absent", async () => {
105
- const createdProject = {
106
- id: "proj2",
107
- name: "Normal Project",
108
- type: "NORMAL",
109
- workspaceId: "ws1",
110
- };
111
- mockDb.project.create.mockResolvedValue(createdProject);
112
-
113
- const result = await projectTools.create_project.handler({
114
- workspaceId: "ws1",
115
- name: "Normal Project",
116
- });
117
-
118
- expect(mockDb.project.create).toHaveBeenCalledWith({
119
- data: expect.objectContaining({
120
- type: "NORMAL",
121
- }),
122
- });
123
- // Ensure type is NORMAL not GIT — caller cannot override this
124
- expect(result.type).toBe("NORMAL");
125
- });
126
-
127
- it("passes alias to db.project.create when provided", async () => {
128
- const createdProject = { id: "proj3", name: "Aliased Project", alias: "myproj", type: "NORMAL", workspaceId: "ws1" };
129
- mockDb.project.create.mockResolvedValue(createdProject);
130
-
131
- await projectTools.create_project.handler({
132
- workspaceId: "ws1",
133
- name: "Aliased Project",
134
- alias: "myproj",
135
- });
136
-
137
- expect(mockDb.project.create).toHaveBeenCalledWith({
138
- data: expect.objectContaining({
139
- alias: "myproj",
140
- type: "NORMAL",
141
- }),
142
- });
143
- });
144
- });
145
-
146
- // ─── update_project ──────────────────────────────────────────────────────
147
-
148
- describe("update_project", () => {
149
- it("excludes projectId from update data and spreads remaining fields", async () => {
150
- const updatedProject = { id: "proj1", name: "New Name", localPath: "/new/path" };
151
- mockDb.project.update.mockResolvedValue(updatedProject);
152
-
153
- const result = await projectTools.update_project.handler({
154
- projectId: "proj1",
155
- name: "New Name",
156
- localPath: "/new/path",
157
- });
158
-
159
- expect(mockDb.project.update).toHaveBeenCalledWith({
160
- where: { id: "proj1" },
161
- data: { name: "New Name", localPath: "/new/path" },
162
- });
163
- // projectId must not appear in the data
164
- const updateCall = mockDb.project.update.mock.calls[0][0];
165
- expect(updateCall.data).not.toHaveProperty("projectId");
166
- expect(result).toEqual(updatedProject);
167
- });
168
- });
169
-
170
- // ─── delete_project ──────────────────────────────────────────────────────
171
-
172
- describe("delete_project", () => {
173
- it("deletes project and returns confirmation with projectId", async () => {
174
- mockDb.project.delete.mockResolvedValue({ id: "proj1" });
175
-
176
- const result = await projectTools.delete_project.handler({ projectId: "proj1" });
177
-
178
- expect(mockDb.project.delete).toHaveBeenCalledWith({ where: { id: "proj1" } });
179
- expect(result).toEqual({ deleted: true, projectId: "proj1" });
180
- });
181
- });
182
- });
@@ -1,212 +0,0 @@
1
- import { describe, it, expect, vi, beforeEach } from "vitest";
2
-
3
- vi.mock("../../db", () => ({
4
- db: {
5
- task: { findMany: vi.fn() },
6
- projectNote: { findMany: vi.fn() },
7
- },
8
- }));
9
-
10
- import { db } from "../../db";
11
- import { reportTools } from "../report-tools";
12
-
13
- const mockDb = db as {
14
- task: { findMany: ReturnType<typeof vi.fn> };
15
- projectNote: { findMany: ReturnType<typeof vi.fn> };
16
- };
17
-
18
- /** Build a minimal task object matching the daily_summary include clause */
19
- function makeSummaryTask(overrides: {
20
- id?: string;
21
- title?: string;
22
- status?: string;
23
- priority?: string;
24
- updatedAt?: Date;
25
- project?: object;
26
- messages?: { content: string; createdAt: Date }[];
27
- executions?: { startedAt?: Date; status?: string; summary?: string | null }[];
28
- }) {
29
- const now = new Date("2026-01-15T10:00:00Z");
30
- const ws = { id: "ws1", name: "Workspace 1" };
31
- const proj = { id: "p1", name: "Project 1", alias: null, workspace: ws };
32
-
33
- return {
34
- id: overrides.id ?? "task1",
35
- title: overrides.title ?? "Test task",
36
- status: overrides.status ?? "TODO",
37
- priority: overrides.priority ?? "MEDIUM",
38
- updatedAt: overrides.updatedAt ?? now,
39
- createdAt: now,
40
- project: overrides.project ?? proj,
41
- messages: overrides.messages ?? [],
42
- executions: overrides.executions ?? [],
43
- labels: [],
44
- };
45
- }
46
-
47
- /** Build a minimal task object matching the daily_todo include clause */
48
- function makeTodoTask(overrides: {
49
- id?: string;
50
- title?: string;
51
- status?: string;
52
- priority?: string;
53
- updatedAt?: Date;
54
- project?: object;
55
- labels?: { label: { name: string } }[];
56
- executions?: { sessionId?: string | null }[];
57
- }) {
58
- const now = new Date("2026-01-15T10:00:00Z");
59
- const ws = { id: "ws1", name: "Workspace 1" };
60
- const proj = { id: "p1", name: "Project 1", alias: null, workspace: ws };
61
-
62
- return {
63
- id: overrides.id ?? "task1",
64
- title: overrides.title ?? "Test task",
65
- status: overrides.status ?? "TODO",
66
- priority: overrides.priority ?? "MEDIUM",
67
- updatedAt: overrides.updatedAt ?? now,
68
- createdAt: now,
69
- project: overrides.project ?? proj,
70
- labels: overrides.labels ?? [],
71
- executions: overrides.executions ?? [],
72
- };
73
- }
74
-
75
- describe("report-tools (MCP)", () => {
76
- beforeEach(() => {
77
- vi.clearAllMocks();
78
- mockDb.projectNote.findMany.mockResolvedValue([]);
79
- });
80
-
81
- // ── daily_summary ─────────────────────────────────────────────────────────
82
-
83
- describe("daily_summary", () => {
84
- it("with date param: uses date range [00:00, next day 00:00) and groups DONE/IN_PROGRESS tasks", async () => {
85
- const doneTask = makeSummaryTask({ id: "t1", status: "DONE", title: "Done task" });
86
- const inProgressTask = makeSummaryTask({ id: "t2", status: "IN_PROGRESS", title: "WIP task" });
87
- mockDb.task.findMany.mockResolvedValue([doneTask, inProgressTask]);
88
-
89
- const result = await reportTools.daily_summary.handler({ date: "2026-01-15" });
90
-
91
- // Verify date range filter passed to findMany
92
- const callArgs = mockDb.task.findMany.mock.calls[0][0];
93
- const orClauses = callArgs.where.OR;
94
- const updatedAtClause = orClauses.find((c: Record<string, unknown>) => "updatedAt" in c);
95
- expect(updatedAtClause).toBeDefined();
96
- const gte = updatedAtClause.updatedAt.gte as Date;
97
- const lt = updatedAtClause.updatedAt.lt as Date;
98
- expect(gte.getHours()).toBe(0);
99
- expect(gte.getMinutes()).toBe(0);
100
- const diffMs = lt.getTime() - gte.getTime();
101
- expect(diffMs).toBe(24 * 60 * 60 * 1000);
102
-
103
- // Verify grouping
104
- expect(result.workspaces).toHaveLength(1);
105
- const ws = result.workspaces[0];
106
- expect(ws.projects).toHaveLength(1);
107
- const proj = ws.projects[0];
108
- expect(proj.completed).toHaveLength(1);
109
- expect(proj.completed[0].id).toBe("t1");
110
- expect(proj.inProgress).toHaveLength(1);
111
- expect(proj.inProgress[0].id).toBe("t2");
112
- expect(result.stats.totalCompleted).toBe(1);
113
- expect(result.stats.totalInProgress).toBe(1);
114
- });
115
-
116
- it("without date param: defaults to today (passes Date objects to findMany)", async () => {
117
- mockDb.task.findMany.mockResolvedValue([]);
118
-
119
- const before = new Date();
120
- before.setHours(0, 0, 0, 0);
121
- await reportTools.daily_summary.handler({});
122
- const after = new Date();
123
- after.setHours(0, 0, 0, 0);
124
-
125
- const callArgs = mockDb.task.findMany.mock.calls[0][0];
126
- const orClauses = callArgs.where.OR;
127
- const updatedAtClause = orClauses.find((c: Record<string, unknown>) => "updatedAt" in c);
128
- const gte = updatedAtClause.updatedAt.gte as Date;
129
- // gte should be today's midnight (between before and after)
130
- expect(gte.getTime()).toBeGreaterThanOrEqual(before.getTime());
131
- expect(gte.getTime()).toBeLessThanOrEqual(after.getTime());
132
- });
133
-
134
- it("CANCELLED tasks are excluded from completed and inProgress", async () => {
135
- const cancelledTask = makeSummaryTask({ id: "t1", status: "CANCELLED" });
136
- mockDb.task.findMany.mockResolvedValue([cancelledTask]);
137
-
138
- const result = await reportTools.daily_summary.handler({});
139
-
140
- expect(result.stats.totalCompleted).toBe(0);
141
- expect(result.stats.totalInProgress).toBe(0);
142
- });
143
-
144
- it("empty result: returns empty workspaces array with zero stats", async () => {
145
- mockDb.task.findMany.mockResolvedValue([]);
146
-
147
- const result = await reportTools.daily_summary.handler({});
148
-
149
- expect(result.workspaces).toHaveLength(0);
150
- expect(result.stats.totalCompleted).toBe(0);
151
- expect(result.stats.totalInProgress).toBe(0);
152
- expect(result.stats.totalActive).toBe(0);
153
- });
154
- });
155
-
156
- // ── daily_todo ────────────────────────────────────────────────────────────
157
-
158
- describe("daily_todo", () => {
159
- it("default call: status filter is [TODO, IN_PROGRESS, IN_REVIEW]", async () => {
160
- mockDb.task.findMany.mockResolvedValue([]);
161
-
162
- await reportTools.daily_todo.handler({});
163
-
164
- const where = mockDb.task.findMany.mock.calls[0][0].where;
165
- expect(where.status).toEqual({ in: ["TODO", "IN_PROGRESS", "IN_REVIEW"] });
166
- });
167
-
168
- it("with workspaceId: where clause includes project.workspaceId", async () => {
169
- mockDb.task.findMany.mockResolvedValue([]);
170
-
171
- await reportTools.daily_todo.handler({ workspaceId: "ws1" });
172
-
173
- const where = mockDb.task.findMany.mock.calls[0][0].where;
174
- expect(where.project).toEqual({ workspaceId: "ws1" });
175
- });
176
-
177
- it("with projectId: where clause includes projectId", async () => {
178
- mockDb.task.findMany.mockResolvedValue([]);
179
-
180
- await reportTools.daily_todo.handler({ projectId: "p1" });
181
-
182
- const where = mockDb.task.findMany.mock.calls[0][0].where;
183
- expect(where.projectId).toBe("p1");
184
- });
185
-
186
- it("with priority filter: where clause includes priority.in", async () => {
187
- mockDb.task.findMany.mockResolvedValue([]);
188
-
189
- await reportTools.daily_todo.handler({ priority: ["CRITICAL", "HIGH"] });
190
-
191
- const where = mockDb.task.findMany.mock.calls[0][0].where;
192
- expect(where.priority).toEqual({ in: ["CRITICAL", "HIGH"] });
193
- });
194
-
195
- it("stats computation: byStatus and byPriority match returned tasks", async () => {
196
- const t1 = makeTodoTask({ id: "t1", status: "TODO", priority: "CRITICAL" });
197
- const t2 = makeTodoTask({ id: "t2", status: "IN_PROGRESS", priority: "HIGH" });
198
- const t3 = makeTodoTask({ id: "t3", status: "IN_REVIEW", priority: "CRITICAL" });
199
- mockDb.task.findMany.mockResolvedValue([t1, t2, t3]);
200
-
201
- const result = await reportTools.daily_todo.handler({});
202
-
203
- expect(result.stats.total).toBe(3);
204
- expect(result.stats.byStatus.TODO).toBe(1);
205
- expect(result.stats.byStatus.IN_PROGRESS).toBe(1);
206
- expect(result.stats.byStatus.IN_REVIEW).toBe(1);
207
- expect(result.stats.byPriority.CRITICAL).toBe(2);
208
- expect(result.stats.byPriority.HIGH).toBe(1);
209
- expect(result.stats.byPriority.MEDIUM).toBe(0);
210
- });
211
- });
212
- });