kontexta 5.1.2 → 5.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 (439) hide show
  1. package/bundle/standalone/CHANGELOG.md +27 -0
  2. package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
  3. package/bundle/standalone/apps/web/.next/app-build-manifest.json +106 -99
  4. package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +17 -16
  5. package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
  6. package/bundle/standalone/apps/web/.next/prerender-manifest.json +25 -25
  7. package/bundle/standalone/apps/web/.next/routes-manifest.json +8 -0
  8. package/bundle/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  9. package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  11. package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +2 -2
  12. package/bundle/standalone/apps/web/.next/server/app/api/about/route.js.nft.json +1 -1
  13. package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
  14. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route.js +1 -1
  15. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route.js.nft.json +1 -1
  16. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route_client-reference-manifest.js +1 -1
  17. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route.js +1 -0
  18. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route.js.nft.json +1 -0
  19. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route_client-reference-manifest.js +1 -0
  20. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route.js +1 -1
  21. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route.js.nft.json +1 -1
  22. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route_client-reference-manifest.js +1 -1
  23. package/bundle/standalone/apps/web/.next/server/app/api/agents/route.js +1 -1
  24. package/bundle/standalone/apps/web/.next/server/app/api/agents/route.js.nft.json +1 -1
  25. package/bundle/standalone/apps/web/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
  26. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  27. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  28. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  29. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  30. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js.nft.json +1 -1
  31. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
  32. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  33. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  34. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js.nft.json +1 -1
  35. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
  36. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js.nft.json +1 -1
  37. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
  38. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js.nft.json +1 -1
  39. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
  40. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js.nft.json +1 -1
  41. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
  42. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js.nft.json +1 -1
  43. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
  44. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js.nft.json +1 -1
  45. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
  46. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js.nft.json +1 -1
  47. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
  48. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js.nft.json +1 -1
  49. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
  50. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js.nft.json +1 -1
  51. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
  52. package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js.nft.json +1 -1
  53. package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
  54. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js.nft.json +1 -1
  55. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
  56. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js.nft.json +1 -1
  57. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
  58. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route.js.nft.json +1 -1
  59. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
  60. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js.nft.json +1 -1
  61. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
  62. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route.js.nft.json +1 -1
  63. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
  64. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js.nft.json +1 -1
  65. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
  66. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js.nft.json +1 -1
  67. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
  68. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js.nft.json +1 -1
  69. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
  70. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js.nft.json +1 -1
  71. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
  72. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js.nft.json +1 -1
  73. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
  74. package/bundle/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -1
  75. package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
  76. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js.nft.json +1 -1
  77. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
  78. package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js +1 -1
  79. package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js.nft.json +1 -1
  80. package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
  81. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js.nft.json +1 -1
  82. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
  83. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js +1 -1
  84. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js.nft.json +1 -1
  85. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
  86. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js.nft.json +1 -1
  87. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
  88. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js.nft.json +1 -1
  89. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
  90. package/bundle/standalone/apps/web/.next/server/app/api/health/route.js.nft.json +1 -1
  91. package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  92. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js +9 -9
  93. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js.nft.json +1 -1
  94. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
  95. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
  96. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js.nft.json +1 -1
  97. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
  98. package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js.nft.json +1 -1
  99. package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -1
  100. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js +1 -1
  101. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js.nft.json +1 -1
  102. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
  103. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js +1 -1
  104. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js.nft.json +1 -1
  105. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
  106. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js.nft.json +1 -1
  107. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
  108. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js.nft.json +1 -1
  109. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
  110. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js.nft.json +1 -1
  111. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
  112. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  113. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
  114. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js.nft.json +1 -1
  115. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
  116. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -1
  117. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
  118. package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -1
  119. package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  120. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -1
  121. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
  122. package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -1
  123. package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
  124. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js.nft.json +1 -1
  125. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
  126. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js.nft.json +1 -1
  127. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
  128. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route.js.nft.json +1 -1
  129. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
  130. package/bundle/standalone/apps/web/.next/server/app/api/search/route.js.nft.json +1 -1
  131. package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  132. package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js.nft.json +1 -1
  133. package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  134. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route.js.nft.json +1 -1
  135. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
  136. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route.js.nft.json +1 -1
  137. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
  138. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route.js.nft.json +1 -1
  139. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
  140. package/bundle/standalone/apps/web/.next/server/app/apple-icon.png/route.js.nft.json +1 -1
  141. package/bundle/standalone/apps/web/.next/server/app/calendar/page.js +1 -1
  142. package/bundle/standalone/apps/web/.next/server/app/calendar/page.js.nft.json +1 -1
  143. package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
  144. package/bundle/standalone/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  145. package/bundle/standalone/apps/web/.next/server/app/icon.png/route.js.nft.json +1 -1
  146. package/bundle/standalone/apps/web/.next/server/app/login/page.js.nft.json +1 -1
  147. package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
  148. package/bundle/standalone/apps/web/.next/server/app/page.js +4 -4
  149. package/bundle/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
  150. package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  151. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page.js.nft.json +1 -1
  152. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
  153. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
  154. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +2 -2
  155. package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +17 -16
  156. package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -1
  157. package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -1
  158. package/bundle/standalone/apps/web/.next/server/pages/_app.js.nft.json +1 -1
  159. package/bundle/standalone/apps/web/.next/server/pages/_document.js.nft.json +1 -1
  160. package/bundle/standalone/apps/web/.next/server/pages/_error.js.nft.json +1 -1
  161. package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  162. package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-e920054b7eb00274.js +1 -0
  163. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/hooks/route-e920054b7eb00274.js +1 -0
  164. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/mcp/route-e920054b7eb00274.js +1 -0
  165. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/route-e920054b7eb00274.js +1 -0
  166. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/route-e920054b7eb00274.js +1 -0
  167. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-e920054b7eb00274.js +1 -0
  168. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-e920054b7eb00274.js +1 -0
  169. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-e920054b7eb00274.js +1 -0
  170. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-e920054b7eb00274.js +1 -0
  171. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-e920054b7eb00274.js +1 -0
  172. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-e920054b7eb00274.js +1 -0
  173. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-e920054b7eb00274.js +1 -0
  174. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-e920054b7eb00274.js +1 -0
  175. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-e920054b7eb00274.js +1 -0
  176. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-e920054b7eb00274.js +1 -0
  177. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-e920054b7eb00274.js +1 -0
  178. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-e920054b7eb00274.js +1 -0
  179. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-e920054b7eb00274.js +1 -0
  180. package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-e920054b7eb00274.js +1 -0
  181. package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-e920054b7eb00274.js +1 -0
  182. package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-e920054b7eb00274.js +1 -0
  183. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/backlinks/route-e920054b7eb00274.js +1 -0
  184. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-e920054b7eb00274.js +1 -0
  185. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-html/route-e920054b7eb00274.js +1 -0
  186. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-e920054b7eb00274.js +1 -0
  187. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-e920054b7eb00274.js +1 -0
  188. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-e920054b7eb00274.js +1 -0
  189. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-e920054b7eb00274.js +1 -0
  190. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-e920054b7eb00274.js +1 -0
  191. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-e920054b7eb00274.js +1 -0
  192. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-e920054b7eb00274.js +1 -0
  193. package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-e920054b7eb00274.js +1 -0
  194. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-e920054b7eb00274.js +1 -0
  195. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-e920054b7eb00274.js +1 -0
  196. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-e920054b7eb00274.js +1 -0
  197. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-e920054b7eb00274.js +1 -0
  198. package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-e920054b7eb00274.js +1 -0
  199. package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-e920054b7eb00274.js +1 -0
  200. package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-e920054b7eb00274.js +1 -0
  201. package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-e920054b7eb00274.js +1 -0
  202. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-e920054b7eb00274.js +1 -0
  203. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-e920054b7eb00274.js +1 -0
  204. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-e920054b7eb00274.js +1 -0
  205. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-e920054b7eb00274.js +1 -0
  206. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-e920054b7eb00274.js +1 -0
  207. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-e920054b7eb00274.js +1 -0
  208. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-e920054b7eb00274.js +1 -0
  209. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-e920054b7eb00274.js +1 -0
  210. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-e920054b7eb00274.js +1 -0
  211. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-e920054b7eb00274.js +1 -0
  212. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-e920054b7eb00274.js +1 -0
  213. package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-e920054b7eb00274.js +1 -0
  214. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-e920054b7eb00274.js +1 -0
  215. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reports/resources/[name]/route-e920054b7eb00274.js +1 -0
  216. package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-e920054b7eb00274.js +1 -0
  217. package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-e920054b7eb00274.js +1 -0
  218. package/bundle/standalone/apps/web/.next/static/chunks/app/api/version-check/route-e920054b7eb00274.js +1 -0
  219. package/bundle/standalone/apps/web/.next/static/chunks/app/api/welcome/route-e920054b7eb00274.js +1 -0
  220. package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-e920054b7eb00274.js +1 -0
  221. package/bundle/standalone/apps/web/.next/static/chunks/app/calendar/page-7d520da68bac245d.js +1 -0
  222. package/bundle/standalone/apps/web/.next/static/chunks/app/page-df34c386b7c150bb.js +1 -0
  223. package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-e920054b7eb00274.js +1 -0
  224. package/bundle/standalone/apps/web/.next/static/css/d6e83b3f51ebdda3.css +3 -0
  225. package/bundle/standalone/apps/web/package.json +4 -4
  226. package/bundle/standalone/apps/web/src/lib/mcp-tools.json +50 -50
  227. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +16 -16
  228. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
  229. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.d.ts +3 -0
  230. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.d.ts.map +1 -0
  231. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.js +166 -0
  232. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.js.map +1 -0
  233. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js +1 -1
  234. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js.map +1 -1
  235. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js +1 -1
  236. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js.map +1 -1
  237. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js +2 -2
  238. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js.map +1 -1
  239. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +26 -26
  240. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks/emit.mjs +39 -2
  241. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js +1 -1
  242. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js.map +1 -1
  243. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js +2 -2
  244. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js.map +1 -1
  245. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +78 -60
  246. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
  247. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +6 -6
  248. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js.map +1 -1
  249. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/011-journal-files-in-kb.sql +2 -0
  250. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/012-agents-mcp.sql +6 -0
  251. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js +1 -1
  252. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js.map +1 -1
  253. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.d.ts +7 -0
  254. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.d.ts.map +1 -0
  255. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.js +13 -0
  256. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.js.map +1 -0
  257. package/bundle/standalone/node_modules/kontexta-mcp/package.json +2 -1
  258. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/011-journal-files-in-kb.sql +2 -0
  259. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/012-agents-mcp.sql +6 -0
  260. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts +19 -2
  261. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts.map +1 -1
  262. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js +15 -15
  263. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js.map +1 -1
  264. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts +2 -0
  265. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts.map +1 -1
  266. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js +3 -3
  267. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js.map +1 -1
  268. package/bundle/standalone/node_modules/kxta-core/dist/hooks/emit.mjs +39 -2
  269. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts +2 -2
  270. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts.map +1 -1
  271. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js +1 -1
  272. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js.map +1 -1
  273. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.d.ts +3 -0
  274. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.d.ts.map +1 -0
  275. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.js +75 -0
  276. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.js.map +1 -0
  277. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js +1 -1
  278. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js.map +1 -1
  279. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.d.ts.map +1 -1
  280. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js +4 -3
  281. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js.map +1 -1
  282. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.d.ts.map +1 -1
  283. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js +0 -1
  284. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js.map +1 -1
  285. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.d.ts +3 -0
  286. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.d.ts.map +1 -0
  287. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.js +107 -0
  288. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.js.map +1 -0
  289. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.d.ts.map +1 -1
  290. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js +4 -0
  291. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js.map +1 -1
  292. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts +2 -0
  293. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts.map +1 -1
  294. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js +27 -13
  295. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js.map +1 -1
  296. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts +11 -0
  297. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts.map +1 -1
  298. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js +29 -3
  299. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js.map +1 -1
  300. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts +1 -0
  301. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts.map +1 -1
  302. package/bundle/standalone/node_modules/kxta-core/dist/index.js +1 -0
  303. package/bundle/standalone/node_modules/kxta-core/dist/index.js.map +1 -1
  304. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js +8 -5
  305. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js.map +1 -1
  306. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.d.ts +8 -0
  307. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.d.ts.map +1 -0
  308. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.js +8 -0
  309. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.js.map +1 -0
  310. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.d.ts +31 -0
  311. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.d.ts.map +1 -0
  312. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.js +55 -0
  313. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.js.map +1 -0
  314. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.d.ts +10 -0
  315. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.d.ts.map +1 -0
  316. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.js +7 -0
  317. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.js.map +1 -0
  318. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.d.ts +46 -0
  319. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.d.ts.map +1 -0
  320. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.js +113 -0
  321. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.js.map +1 -0
  322. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.d.ts +3 -0
  323. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.d.ts.map +1 -0
  324. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.js +115 -0
  325. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.js.map +1 -0
  326. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.d.ts +3 -0
  327. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.d.ts.map +1 -0
  328. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.js +76 -0
  329. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.js.map +1 -0
  330. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.d.ts +3 -0
  331. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.d.ts.map +1 -0
  332. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.js +64 -0
  333. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.js.map +1 -0
  334. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.d.ts +3 -0
  335. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.d.ts.map +1 -0
  336. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.js +90 -0
  337. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.js.map +1 -0
  338. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.d.ts +3 -0
  339. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.d.ts.map +1 -0
  340. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.js +17 -0
  341. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.js.map +1 -0
  342. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts +31 -0
  343. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts.map +1 -0
  344. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.js +136 -0
  345. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.js.map +1 -0
  346. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.d.ts +5 -0
  347. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.d.ts.map +1 -0
  348. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.js +19 -0
  349. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.js.map +1 -0
  350. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.d.ts +5 -0
  351. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.d.ts.map +1 -0
  352. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.js +62 -0
  353. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.js.map +1 -0
  354. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.d.ts +55 -0
  355. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.d.ts.map +1 -0
  356. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.js +2 -0
  357. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.js.map +1 -0
  358. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.d.ts +3 -0
  359. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.d.ts.map +1 -0
  360. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.js +25 -0
  361. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.js.map +1 -0
  362. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.d.ts +5 -0
  363. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.d.ts.map +1 -0
  364. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.js +17 -0
  365. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.js.map +1 -0
  366. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.d.ts.map +1 -1
  367. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js +2 -0
  368. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js.map +1 -1
  369. package/bundle/standalone/node_modules/kxta-core/package.json +4 -2
  370. package/bundle/standalone/node_modules/kxta-publish/package.json +2 -2
  371. package/bundle/standalone/package.json +1 -1
  372. package/dist/connect-AL5DTU3K.js +22 -0
  373. package/dist/index.js +7 -1
  374. package/dist/{start-RJVUJT4B.js → start-GP4ERBBP.js} +7 -0
  375. package/package.json +3 -1
  376. package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-0cc6597bb67aea3b.js +0 -1
  377. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/hooks/route-0cc6597bb67aea3b.js +0 -1
  378. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/route-0cc6597bb67aea3b.js +0 -1
  379. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/route-0cc6597bb67aea3b.js +0 -1
  380. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-0cc6597bb67aea3b.js +0 -1
  381. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-0cc6597bb67aea3b.js +0 -1
  382. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-0cc6597bb67aea3b.js +0 -1
  383. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-0cc6597bb67aea3b.js +0 -1
  384. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-0cc6597bb67aea3b.js +0 -1
  385. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-0cc6597bb67aea3b.js +0 -1
  386. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-0cc6597bb67aea3b.js +0 -1
  387. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-0cc6597bb67aea3b.js +0 -1
  388. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-0cc6597bb67aea3b.js +0 -1
  389. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-0cc6597bb67aea3b.js +0 -1
  390. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-0cc6597bb67aea3b.js +0 -1
  391. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-0cc6597bb67aea3b.js +0 -1
  392. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-0cc6597bb67aea3b.js +0 -1
  393. package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-0cc6597bb67aea3b.js +0 -1
  394. package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-0cc6597bb67aea3b.js +0 -1
  395. package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-0cc6597bb67aea3b.js +0 -1
  396. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/backlinks/route-0cc6597bb67aea3b.js +0 -1
  397. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-0cc6597bb67aea3b.js +0 -1
  398. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-html/route-0cc6597bb67aea3b.js +0 -1
  399. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-0cc6597bb67aea3b.js +0 -1
  400. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-0cc6597bb67aea3b.js +0 -1
  401. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-0cc6597bb67aea3b.js +0 -1
  402. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-0cc6597bb67aea3b.js +0 -1
  403. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-0cc6597bb67aea3b.js +0 -1
  404. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-0cc6597bb67aea3b.js +0 -1
  405. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-0cc6597bb67aea3b.js +0 -1
  406. package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-0cc6597bb67aea3b.js +0 -1
  407. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-0cc6597bb67aea3b.js +0 -1
  408. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-0cc6597bb67aea3b.js +0 -1
  409. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-0cc6597bb67aea3b.js +0 -1
  410. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-0cc6597bb67aea3b.js +0 -1
  411. package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-0cc6597bb67aea3b.js +0 -1
  412. package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-0cc6597bb67aea3b.js +0 -1
  413. package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-0cc6597bb67aea3b.js +0 -1
  414. package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-0cc6597bb67aea3b.js +0 -1
  415. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-0cc6597bb67aea3b.js +0 -1
  416. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-0cc6597bb67aea3b.js +0 -1
  417. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-0cc6597bb67aea3b.js +0 -1
  418. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-0cc6597bb67aea3b.js +0 -1
  419. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-0cc6597bb67aea3b.js +0 -1
  420. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-0cc6597bb67aea3b.js +0 -1
  421. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-0cc6597bb67aea3b.js +0 -1
  422. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-0cc6597bb67aea3b.js +0 -1
  423. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-0cc6597bb67aea3b.js +0 -1
  424. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-0cc6597bb67aea3b.js +0 -1
  425. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-0cc6597bb67aea3b.js +0 -1
  426. package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-0cc6597bb67aea3b.js +0 -1
  427. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-0cc6597bb67aea3b.js +0 -1
  428. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reports/resources/[name]/route-0cc6597bb67aea3b.js +0 -1
  429. package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-0cc6597bb67aea3b.js +0 -1
  430. package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-0cc6597bb67aea3b.js +0 -1
  431. package/bundle/standalone/apps/web/.next/static/chunks/app/api/version-check/route-0cc6597bb67aea3b.js +0 -1
  432. package/bundle/standalone/apps/web/.next/static/chunks/app/api/welcome/route-0cc6597bb67aea3b.js +0 -1
  433. package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-0cc6597bb67aea3b.js +0 -1
  434. package/bundle/standalone/apps/web/.next/static/chunks/app/calendar/page-f9542f9f518f9257.js +0 -1
  435. package/bundle/standalone/apps/web/.next/static/chunks/app/page-148a56b7835db3ad.js +0 -1
  436. package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-0cc6597bb67aea3b.js +0 -1
  437. package/bundle/standalone/apps/web/.next/static/css/2a877eb79d3a5e67.css +0 -3
  438. /package/bundle/standalone/apps/web/.next/static/{GlvRnH8JCRX6mG_R4LxoZ → yyj-uK2RH8Rffeq9wVzjU}/_buildManifest.js +0 -0
  439. /package/bundle/standalone/apps/web/.next/static/{GlvRnH8JCRX6mG_R4LxoZ → yyj-uK2RH8Rffeq9wVzjU}/_ssgManifest.js +0 -0
@@ -0,0 +1,55 @@
1
+ import { createHash } from "node:crypto";
2
+ import { existsSync } from "node:fs";
3
+ import { dirname, join } from "node:path";
4
+ function absoluteNpx(nodeCmd) {
5
+ const npx = join(dirname(nodeCmd), process.platform === "win32" ? "npx.cmd" : "npx");
6
+ return existsSync(npx) ? npx : "npx";
7
+ }
8
+ export function buildServerEntry(o) {
9
+ const node = o.nodeCmd ?? process.execPath;
10
+ if (o.installMode === "docker") {
11
+ if (!o.hostDataDir)
12
+ throw new Error("docker install needs the host data folder (--host-data-dir)");
13
+ return { command: "docker", args: ["run", "--rm", "-i", "-v", `${o.hostDataDir}:/app/data`, `safiyu/kontexta:${o.version}`, "mcp"] };
14
+ }
15
+ const env = !o.isDefaultDir || o.forceEnv ? { KONTEXTA_DATA_DIR: o.dataDir } : undefined;
16
+ if (o.installMode === "npm") {
17
+ const entry = { command: o.absolute ? absoluteNpx(node) : "npx", args: o.hasLocalCliMcp ? ["-y", "kontexta", "mcp"] : ["-y", "kontexta-mcp"] };
18
+ if (env)
19
+ entry.env = env;
20
+ return entry;
21
+ }
22
+ if (!o.sourceEntrypoint)
23
+ throw new Error("source install needs the MCP entrypoint path");
24
+ const entry = { command: o.absolute ? node : "node", args: [o.sourceEntrypoint] };
25
+ if (env)
26
+ entry.env = env;
27
+ return entry;
28
+ }
29
+ // We manage the command, args and KONTEXTA_DATA_DIR only; other env keys and fields belong to the user.
30
+ const dataDirOf = (env) => (env && typeof env === "object" && typeof env.KONTEXTA_DATA_DIR === "string" ? (env.KONTEXTA_DATA_DIR) : "");
31
+ export function entryHashOf(entry) {
32
+ return createHash("sha1").update(JSON.stringify({ c: entry.command, a: entry.args, d: dataDirOf(entry.env) })).digest("hex").slice(0, 8);
33
+ }
34
+ // "<entry hash>.<approval+tools hash>": reconcile can tell a user-edited entry (entry part differs from disk) from a stale one (policy or desired entry changed).
35
+ export function entrySignature(entry, approval, tools) {
36
+ const policy = createHash("sha1").update(JSON.stringify({ approval, tools: approval === "prompt" ? [] : [...tools].sort() })).digest("hex").slice(0, 8);
37
+ return `${entryHashOf(entry)}.${policy}`;
38
+ }
39
+ export const entryHashOfSignature = (signature) => signature.split(".")[0];
40
+ // Normalises whatever a config file holds into a ServerEntry (extra keys dropped), or undefined when it is not an entry.
41
+ export function toServerEntry(existing) {
42
+ if (!existing || typeof existing !== "object" || Array.isArray(existing))
43
+ return undefined;
44
+ const e = existing;
45
+ if (typeof e.command !== "string")
46
+ return undefined;
47
+ const dir = dataDirOf(e.env);
48
+ return { command: e.command, args: Array.isArray(e.args) ? e.args.map(String) : [], ...(dir ? { env: { KONTEXTA_DATA_DIR: dir } } : {}) };
49
+ }
50
+ // Whether an existing config entry already equals the desired one (user-added env keys and extra fields are ignored).
51
+ export function sameEntry(existing, entry) {
52
+ const e = toServerEntry(existing);
53
+ return !!e && entryHashOf(e) === entryHashOf(entry);
54
+ }
55
+ //# sourceMappingURL=entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../src/mcp-install/entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,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;AACtH,MAAM,UAAU,SAAS,CAAC,QAAiB,EAAE,KAAkB;IAC7D,MAAM,CAAC,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAO,CAAC,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,KAAK,CAAC,CAAC;AACtD,CAAC"}
@@ -0,0 +1,10 @@
1
+ export { buildServerEntry, entrySignature, sameEntry } from "./entry.js";
2
+ export type { ServerEntry, ServerEntryOpts } from "./entry.js";
3
+ export { MCP_INSTALLERS } from "./installers/index.js";
4
+ export { installMcp, uninstallMcp, mcpStatus, reconcileMcp } from "./install.js";
5
+ export type { McpOpts, McpOutcome, McpStatusRow } from "./install.js";
6
+ export { KXTA_TOOLS } from "./tools.generated.js";
7
+ export { approvedTools } from "./rules.js";
8
+ export type { McpTool, McpCtx, Runner, RunResult } from "./types.js";
9
+ export { dockerConnectCommand } from "./alerts.js";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp-install/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACzE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjF,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { buildServerEntry, entrySignature, sameEntry } from "./entry.js";
2
+ export { MCP_INSTALLERS } from "./installers/index.js";
3
+ export { installMcp, uninstallMcp, mcpStatus, reconcileMcp } from "./install.js";
4
+ export { KXTA_TOOLS } from "./tools.generated.js";
5
+ export { approvedTools } from "./rules.js";
6
+ export { dockerConnectCommand } from "./alerts.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mcp-install/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,46 @@
1
+ import type { InstallMode } from "../hooks/install-mode.js";
2
+ import { type AgentRow, type McpApproval } from "../hooks/registry.js";
3
+ import type { McpTool, Runner } from "./types.js";
4
+ export interface McpOpts {
5
+ home?: string;
6
+ dataDir: string;
7
+ /** Docker only: the host folder behind /app/data (required in docker mode). */
8
+ hostDataDir?: string;
9
+ installMode: InstallMode;
10
+ version: string;
11
+ sourceEntrypoint?: string;
12
+ hasLocalCliMcp?: boolean;
13
+ nodeCmd?: string;
14
+ dryRun?: boolean;
15
+ /** false = never touch the database (docker one-liner runs). */
16
+ registry?: boolean;
17
+ /** One level for every agent, or a level per agent id. */
18
+ approval?: McpApproval | Record<string, McpApproval>;
19
+ tools?: readonly McpTool[];
20
+ run?: Runner;
21
+ platform?: NodeJS.Platform;
22
+ env?: NodeJS.ProcessEnv;
23
+ }
24
+ export interface McpOutcome {
25
+ agent: string;
26
+ ok: boolean;
27
+ changed: boolean;
28
+ path: string;
29
+ approval: McpApproval;
30
+ notes: string[];
31
+ error?: string;
32
+ }
33
+ export interface McpStatusRow extends AgentRow {
34
+ config_path: string | null;
35
+ installed: boolean;
36
+ current: boolean;
37
+ stale: boolean;
38
+ /** True when this agent can carry a config-file allowlist for safe/all. */
39
+ approval_supported: boolean;
40
+ notes: string[];
41
+ }
42
+ export declare function installMcp(ids: string[], o: McpOpts): McpOutcome[];
43
+ export declare function uninstallMcp(ids: string[], o: McpOpts): McpOutcome[];
44
+ export declare function mcpStatus(o: McpOpts): McpStatusRow[];
45
+ export declare function reconcileMcp(o: McpOpts): McpOutcome[];
46
+ //# sourceMappingURL=install.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/mcp-install/install.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAoD,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKzH,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAA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hooks/agents.js";
4
+ import { listAgents, markMcpInstalled, markMcpUninstalled } from "../hooks/registry.js";
5
+ import { defaultDataDir } from "../util/paths.js";
6
+ import { buildServerEntry, entryHashOf, entryHashOfSignature, entrySignature } from "./entry.js";
7
+ import { MCP_INSTALLERS } from "./installers/index.js";
8
+ import { KXTA_TOOLS } from "./tools.generated.js";
9
+ const toolsOf = (o) => o.tools ?? KXTA_TOOLS;
10
+ const requested = (o, id) => (typeof o.approval === "string" ? o.approval : o.approval?.[id] ?? "prompt");
11
+ function entryFor(id, o) {
12
+ const hints = MCP_INSTALLERS[id].entryHints;
13
+ return buildServerEntry({
14
+ installMode: o.installMode, version: o.version, dataDir: o.dataDir, hostDataDir: o.hostDataDir,
15
+ isDefaultDir: resolve(o.dataDir) === resolve(defaultDataDir()),
16
+ sourceEntrypoint: o.sourceEntrypoint, hasLocalCliMcp: o.hasLocalCliMcp, nodeCmd: o.nodeCmd, ...hints,
17
+ });
18
+ }
19
+ function ctxFor(id, o, approval, previous) {
20
+ return { home: o.home ?? homedir(), entry: entryFor(id, o), approval, previousApproval: previous, tools: toolsOf(o), version: o.version, dryRun: o.dryRun, platform: o.platform, env: o.env, run: o.run };
21
+ }
22
+ function guard(id) {
23
+ if (!isAgentId(id))
24
+ return `unknown agent: ${id}`;
25
+ if (!agentMeta(id).mcpInstallable || !MCP_INSTALLERS[id])
26
+ return `${id} is not supported yet by the MCP installer; use the INSTALL tab snippet`;
27
+ return null;
28
+ }
29
+ const previousOf = (id, o) => (o.registry === false ? "prompt" : listAgents().find((r) => r.id === id)?.mcp_approval ?? "prompt");
30
+ export function installMcp(ids, o) {
31
+ return ids.map((id) => {
32
+ const err = guard(id);
33
+ if (err)
34
+ return { agent: id, ok: false, changed: false, path: "", approval: "prompt", notes: [], error: err };
35
+ const inst = MCP_INSTALLERS[id];
36
+ const wanted = requested(o, id);
37
+ const applied = inst.supportsApproval ? wanted : "prompt";
38
+ const extra = wanted !== "prompt" && !inst.supportsApproval ? [`${agentMeta(id).name} has no config-file allowlist; approve kxta tools in the app itself.`] : [];
39
+ try {
40
+ const ctx = ctxFor(id, o, applied, previousOf(id, o));
41
+ const r = inst.install(ctx);
42
+ if (o.registry !== false && !o.dryRun)
43
+ markMcpInstalled(id, entrySignature(ctx.entry, applied, toolsOf(o).map((t) => t.name)), applied);
44
+ return { agent: id, ok: true, changed: r.changed, path: r.path, approval: applied, notes: [...r.notes, ...extra] };
45
+ }
46
+ catch (e) {
47
+ return { agent: id, ok: false, changed: false, path: "", approval: applied, notes: extra, error: e instanceof Error ? e.message : String(e) };
48
+ }
49
+ });
50
+ }
51
+ export function uninstallMcp(ids, o) {
52
+ return ids.map((id) => {
53
+ const err = guard(id);
54
+ if (err)
55
+ return { agent: id, ok: false, changed: false, path: "", approval: "prompt", notes: [], error: err };
56
+ try {
57
+ const r = MCP_INSTALLERS[id].uninstall(ctxFor(id, o, "prompt", previousOf(id, o)));
58
+ if (o.registry !== false && !o.dryRun)
59
+ markMcpUninstalled(id);
60
+ return { agent: id, ok: true, changed: r.changed, path: r.path, approval: "prompt", notes: r.notes };
61
+ }
62
+ catch (e) {
63
+ return { agent: id, ok: false, changed: false, path: "", approval: "prompt", notes: [], error: e instanceof Error ? e.message : String(e) };
64
+ }
65
+ });
66
+ }
67
+ export function mcpStatus(o) {
68
+ return listAgents().map((row) => {
69
+ const inst = MCP_INSTALLERS[row.id];
70
+ if (!row.mcp_supported || !inst)
71
+ return { ...row, config_path: null, installed: false, current: false, stale: false, approval_supported: false, notes: [] };
72
+ try {
73
+ const ctx = ctxFor(row.id, o, row.mcp_approval, row.mcp_approval);
74
+ const s = inst.status(ctx);
75
+ const sig = entrySignature(ctx.entry, row.mcp_approval, toolsOf(o).map((t) => t.name));
76
+ return { ...row, config_path: s.path || null, installed: s.installed, current: s.current, stale: row.mcp_installed && row.mcp_version !== sig, approval_supported: inst.supportsApproval, notes: s.notes };
77
+ }
78
+ catch (e) {
79
+ return { ...row, config_path: null, installed: false, current: false, stale: false, approval_supported: inst.supportsApproval, notes: [e.message] };
80
+ }
81
+ });
82
+ }
83
+ // Refreshes registrations we made (entry or tool list changed). It never creates one, never rewrites an entry the user edited after our install, and never re-adds one the user removed (the registry is corrected instead). Containers cannot edit host files, so docker mode never reconciles.
84
+ export function reconcileMcp(o) {
85
+ if (o.installMode === "docker")
86
+ return [];
87
+ const due = {};
88
+ for (const r of listAgents()) {
89
+ if (!r.enabled || !r.mcp_supported || !r.mcp_installed || !MCP_INSTALLERS[r.id])
90
+ continue;
91
+ let desired;
92
+ let onDisk;
93
+ try {
94
+ desired = entrySignature(entryFor(r.id, o), r.mcp_approval, toolsOf(o).map((t) => t.name));
95
+ onDisk = MCP_INSTALLERS[r.id].status(ctxFor(r.id, o, r.mcp_approval, r.mcp_approval));
96
+ }
97
+ catch {
98
+ continue;
99
+ }
100
+ if (!onDisk.installed) {
101
+ if (!o.dryRun && o.registry !== false)
102
+ markMcpUninstalled(r.id);
103
+ continue;
104
+ }
105
+ if (onDisk.entry && entryHashOf(onDisk.entry) !== entryHashOfSignature(r.mcp_version ?? ""))
106
+ continue;
107
+ if (r.mcp_version !== desired)
108
+ due[r.id] = r.mcp_approval;
109
+ }
110
+ const ids = Object.keys(due);
111
+ return ids.length === 0 ? [] : installMcp(ids, { ...o, approval: due });
112
+ }
113
+ //# sourceMappingURL=install.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.js","sourceRoot":"","sources":["../../src/mcp-install/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,EAAmC,MAAM,sBAAsB,CAAC;AACzH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAg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AC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;QACxF,CAAC;QAAC,MAAM,CAAC;YAAC,SAAS;QAAC,CAAC;QACrB,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YAAC,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,QAAQ,KAAK,KAAK;gBAAE,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YAAC,SAAS;QAAC,CAAC;QACrG,IAAI,MAAM,CAAC,KAAK,IAAI,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,oBAAoB,CAAC,CAAC,CAAC,WAAW,IAAI,EAAE,CAAC;YAAE,SAAS;QACtG,IAAI,CAAC,CAAC,WAAW,KAAK,OAAO;YAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5D,CAAC;IACD,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7B,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;AAC1E,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpInstaller } from "../types.js";
2
+ export declare const claudeCodeMcpInstaller: McpInstaller;
3
+ //# sourceMappingURL=claude-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/claude-code.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAU,YAAY,EAAgC,MAAM,aAAa,CAAC;AAmDtF,eAAO,MAAM,sBAAsB,EAAE,YA6CpC,CAAC"}
@@ -0,0 +1,115 @@
1
+ import { spawnSync } from "node:child_process";
2
+ import { existsSync, readFileSync } from "node:fs";
3
+ import { join } from "node:path";
4
+ import { readJsonConfig } from "../../hooks/installers/json-config.js";
5
+ import { writeJsonWithBackup } from "../write.js";
6
+ import { sameEntry, toServerEntry } from "../entry.js";
7
+ import { applyConfigApproval, SERVER_KEY } from "./json-servers.js";
8
+ const defaultRun = (cmd, args) => {
9
+ const r = spawnSync(cmd, args, { encoding: "utf8", timeout: 20_000 });
10
+ return { status: r.status, stdout: r.stdout ?? "", stderr: r.stderr ?? "", error: r.error };
11
+ };
12
+ // Claude Code names tools mcp__<server>__<tool> with punctuation turned into underscores.
13
+ const APPROVAL = {
14
+ isOurs: (r) => /^mcp__kxta(__|$)/.test(r),
15
+ rule: (tool) => `mcp__${SERVER_KEY}__${tool.replace(/[^A-Za-z0-9_]/g, "_")}`,
16
+ wildcard: `mcp__${SERVER_KEY}`,
17
+ };
18
+ const dotClaude = (ctx) => join(ctx.home, ".claude.json");
19
+ const settingsPath = (ctx) => join(ctx.home, ".claude", "settings.json");
20
+ const addArgs = (entry) => ["mcp", "add", SERVER_KEY, "-s", "user", ...Object.entries(entry.env ?? {}).flatMap(([k, v]) => ["-e", `${k}=${v}`]), "--", entry.command, ...entry.args];
21
+ const shellQuote = (s) => (/^[A-Za-z0-9_@%+=:,./-]+$/.test(s) ? s : `"${s.replace(/(["\\$`])/g, "\\$1")}"`);
22
+ const manual = (entry) => ["claude", ...addArgs(entry)].map(shellQuote).join(" ");
23
+ // Read-only peek at the user-scope entry; the claude CLI stays the only writer of ~/.claude.json.
24
+ function currentEntry(ctx) {
25
+ const p = dotClaude(ctx);
26
+ if (!existsSync(p))
27
+ return undefined;
28
+ try {
29
+ const servers = JSON.parse(readFileSync(p, "utf8"))?.mcpServers;
30
+ return servers && typeof servers === "object" ? servers[SERVER_KEY] : undefined;
31
+ }
32
+ catch {
33
+ return undefined;
34
+ }
35
+ }
36
+ // `claude mcp add` without -s user registers for one project only (kept under projects.<path>); report those so the dashboard does not claim "not connected".
37
+ function projectScopes(ctx) {
38
+ const p = dotClaude(ctx);
39
+ if (!existsSync(p))
40
+ return [];
41
+ try {
42
+ const projects = JSON.parse(readFileSync(p, "utf8"))?.projects;
43
+ if (!projects || typeof projects !== "object")
44
+ return [];
45
+ return Object.entries(projects).filter(([, v]) => v?.mcpServers && v.mcpServers[SERVER_KEY] !== undefined).map(([k]) => k);
46
+ }
47
+ catch {
48
+ return [];
49
+ }
50
+ }
51
+ function applyRules(ctx, approval, previous) {
52
+ const path = settingsPath(ctx);
53
+ if (approval === "prompt" && previous === "prompt")
54
+ return false;
55
+ if (!existsSync(path) && approval === "prompt")
56
+ return false;
57
+ const cfg = readJsonConfig(path);
58
+ const next = applyConfigApproval(cfg, APPROVAL, { ...ctx, approval, previousApproval: previous }, path);
59
+ return next === cfg ? false : writeJsonWithBackup(path, next, ctx.dryRun);
60
+ }
61
+ export const claudeCodeMcpInstaller = {
62
+ id: "claude-code",
63
+ entryHints: {},
64
+ supportsApproval: true,
65
+ configPath: dotClaude,
66
+ install(ctx) {
67
+ const run = ctx.run ?? defaultRun;
68
+ const path = dotClaude(ctx);
69
+ const current = sameEntry(currentEntry(ctx), ctx.entry);
70
+ let changed = false;
71
+ if (!current) {
72
+ changed = true;
73
+ if (!ctx.dryRun) {
74
+ const probe = run("claude", ["--version"]);
75
+ if (probe.error || probe.status !== 0)
76
+ throw new Error(`claude CLI not found on PATH; run this yourself:\n ${manual(ctx.entry)}`);
77
+ if (currentEntry(ctx) !== undefined)
78
+ run("claude", ["mcp", "remove", SERVER_KEY, "-s", "user"]);
79
+ const r = run("claude", addArgs(ctx.entry));
80
+ if (r.error || r.status !== 0)
81
+ throw new Error(`claude mcp add failed: ${(r.stderr || r.error?.message || "unknown error").trim()}`);
82
+ if (!sameEntry(currentEntry(ctx), ctx.entry))
83
+ throw new Error("claude mcp add ran but ~/.claude.json does not show the kxta server; check `claude mcp list`");
84
+ }
85
+ }
86
+ if (applyRules(ctx, ctx.approval, ctx.previousApproval))
87
+ changed = true;
88
+ return { agent: "claude-code", path, changed, notes: ["Restart Claude Code sessions to pick up the kxta server."] };
89
+ },
90
+ uninstall(ctx) {
91
+ const run = ctx.run ?? defaultRun;
92
+ let changed = false;
93
+ if (currentEntry(ctx) !== undefined) {
94
+ changed = true;
95
+ if (!ctx.dryRun) {
96
+ const probe = run("claude", ["--version"]);
97
+ if (probe.error || probe.status !== 0)
98
+ throw new Error(`claude CLI not found on PATH; run this yourself:\n claude mcp remove ${SERVER_KEY} -s user`);
99
+ const r = run("claude", ["mcp", "remove", SERVER_KEY, "-s", "user"]);
100
+ if (r.error || r.status !== 0)
101
+ throw new Error(`claude mcp remove failed: ${(r.stderr || r.error?.message || "unknown error").trim()}`);
102
+ }
103
+ }
104
+ if (applyRules(ctx, "prompt", ctx.previousApproval))
105
+ changed = true;
106
+ return { agent: "claude-code", path: dotClaude(ctx), changed, notes: [] };
107
+ },
108
+ status(ctx) {
109
+ const existing = currentEntry(ctx);
110
+ const scopes = projectScopes(ctx);
111
+ const notes = existing === undefined && scopes.length > 0 ? [`kxta is registered only for ${scopes.length} project${scopes.length > 1 ? "s" : ""} (${scopes.slice(0, 2).join(", ")}${scopes.length > 2 ? ", ..." : ""}); Connect adds it for every project.`] : [];
112
+ return { agent: "claude-code", path: dotClaude(ctx), installed: existing !== undefined || scopes.length > 0, current: sameEntry(existing, ctx.entry), entry: toServerEntry(existing), notes };
113
+ },
114
+ };
115
+ //# sourceMappingURL=claude-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude-code.js","sourceRoot":"","sources":["../../../src/mcp-install/installers/claude-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,mBA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../types.js";
2
+ export declare const codexMcpInstaller: McpInstaller;
3
+ //# sourceMappingURL=codex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/codex.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAU,YAAY,EAAgC,MAAM,aAAa,CAAC;AAyBtF,eAAO,MAAM,iBAAiB,EAAE,YAuC/B,CAAC"}
@@ -0,0 +1,76 @@
1
+ import { spawnSync } from "node:child_process";
2
+ import { existsSync, readFileSync } from "node:fs";
3
+ import { join } from "node:path";
4
+ import { parse } from "smol-toml";
5
+ import { sameEntry, toServerEntry } from "../entry.js";
6
+ import { SERVER_KEY } from "./json-servers.js";
7
+ const defaultRun = (cmd, args) => {
8
+ const r = spawnSync(cmd, args, { encoding: "utf8", timeout: 20_000 });
9
+ return { status: r.status, stdout: r.stdout ?? "", stderr: r.stderr ?? "", error: r.error };
10
+ };
11
+ // Codex keeps MCP servers in config.toml ([mcp_servers.<name>]); `codex mcp add` is the only writer so the TOML is never edited here.
12
+ const configToml = (ctx) => join((ctx.env ?? process.env).CODEX_HOME || join(ctx.home, ".codex"), "config.toml");
13
+ const addArgs = (entry) => ["mcp", "add", SERVER_KEY, ...Object.entries(entry.env ?? {}).flatMap(([k, v]) => ["--env", `${k}=${v}`]), "--", entry.command, ...entry.args];
14
+ const shellQuote = (s) => (/^[A-Za-z0-9_@%+=:,./-]+$/.test(s) ? s : `"${s.replace(/(["\\$`])/g, "\\$1")}"`);
15
+ const manual = (entry) => ["codex", ...addArgs(entry)].map(shellQuote).join(" ");
16
+ function currentEntry(ctx) {
17
+ const p = configToml(ctx);
18
+ if (!existsSync(p))
19
+ return undefined;
20
+ try {
21
+ const servers = parse(readFileSync(p, "utf8")).mcp_servers;
22
+ return servers && typeof servers === "object" ? servers[SERVER_KEY] : undefined;
23
+ }
24
+ catch {
25
+ return undefined;
26
+ }
27
+ }
28
+ const missing = (what) => new Error(`codex CLI not found on PATH; run this yourself:\n ${what}`);
29
+ export const codexMcpInstaller = {
30
+ id: "codex",
31
+ entryHints: {},
32
+ supportsApproval: false,
33
+ configPath: configToml,
34
+ install(ctx) {
35
+ const run = ctx.run ?? defaultRun;
36
+ const path = configToml(ctx);
37
+ const current = sameEntry(currentEntry(ctx), ctx.entry);
38
+ let changed = false;
39
+ if (!current) {
40
+ changed = true;
41
+ if (!ctx.dryRun) {
42
+ const probe = run("codex", ["--version"]);
43
+ if (probe.error || probe.status !== 0)
44
+ throw missing(manual(ctx.entry));
45
+ if (currentEntry(ctx) !== undefined)
46
+ run("codex", ["mcp", "remove", SERVER_KEY]);
47
+ const r = run("codex", addArgs(ctx.entry));
48
+ if (r.error || r.status !== 0)
49
+ throw new Error(`codex mcp add failed: ${(r.stderr || r.error?.message || "unknown error").trim()}`);
50
+ if (!sameEntry(currentEntry(ctx), ctx.entry))
51
+ throw new Error("codex mcp add ran but config.toml does not show the kxta server; check `codex mcp list`");
52
+ }
53
+ }
54
+ return { agent: "codex", path, changed, notes: ["Restart Codex to pick up the kxta server."] };
55
+ },
56
+ uninstall(ctx) {
57
+ const run = ctx.run ?? defaultRun;
58
+ const path = configToml(ctx);
59
+ if (currentEntry(ctx) === undefined)
60
+ return { agent: "codex", path, changed: false, notes: [] };
61
+ if (!ctx.dryRun) {
62
+ const probe = run("codex", ["--version"]);
63
+ if (probe.error || probe.status !== 0)
64
+ throw missing(`codex mcp remove ${SERVER_KEY}`);
65
+ const r = run("codex", ["mcp", "remove", SERVER_KEY]);
66
+ if (r.error || r.status !== 0)
67
+ throw new Error(`codex mcp remove failed: ${(r.stderr || r.error?.message || "unknown error").trim()}`);
68
+ }
69
+ return { agent: "codex", path, changed: true, notes: [] };
70
+ },
71
+ status(ctx) {
72
+ const existing = currentEntry(ctx);
73
+ return { agent: "codex", path: configToml(ctx), installed: existing !== undefined, current: sameEntry(existing, ctx.entry), entry: toServerEntry(existing), notes: [] };
74
+ },
75
+ };
76
+ //# sourceMappingURL=cod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GAAG,CAAC,CAAC;QACnC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,KAAK,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAC1K,CAAC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpInstaller } from "../types.js";
2
+ export declare const continueMcpInstaller: McpInstaller;
3
+ //# sourceMappingURL=continue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"continue.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/continue.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAU,YAAY,EAAwB,MAAM,aAAa,CAAC;AA0B9E,eAAO,MAAM,oBAAoB,EAAE,YA0BlC,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { parse, stringify } from "yaml";
4
+ import { writeTextWithBackup } from "../write.js";
5
+ import { sameEntry, toServerEntry } from "../entry.js";
6
+ import { SERVER_KEY } from "./json-servers.js";
7
+ // We own this whole file, so there is no merge: it is written fresh and removed on uninstall.
8
+ const OWNER = "kontexta";
9
+ const dir = (ctx) => join(ctx.home, ".continue");
10
+ const file = (ctx) => join(dir(ctx), "mcpServers", "kontexta.yaml");
11
+ function read(path) {
12
+ if (!existsSync(path))
13
+ return { doc: null, ours: false };
14
+ try {
15
+ const text = readFileSync(path, "utf8");
16
+ if (text.trim() === "")
17
+ return { doc: null, ours: true };
18
+ const doc = parse(text);
19
+ return { doc, ours: !!doc && typeof doc === "object" && doc.name === OWNER };
20
+ }
21
+ catch {
22
+ return { doc: null, ours: false };
23
+ }
24
+ }
25
+ const serverOf = (doc) => (Array.isArray(doc?.mcpServers) ? doc.mcpServers.find((s) => s?.name === SERVER_KEY) : undefined);
26
+ function render(entry, version) {
27
+ const server = { name: SERVER_KEY, command: entry.command, args: entry.args };
28
+ if (entry.env)
29
+ server.env = entry.env;
30
+ return stringify({ name: OWNER, version, schema: "v1", mcpServers: [server] }, { lineWidth: 0 });
31
+ }
32
+ export const continueMcpInstaller = {
33
+ id: "continue",
34
+ entryHints: {},
35
+ supportsApproval: false,
36
+ configPath: file,
37
+ install(ctx) {
38
+ const path = file(ctx);
39
+ if (!existsSync(dir(ctx)))
40
+ throw new Error(`Continue config folder not found (${dir(ctx)}); open Continue once, or add the server by hand from the INSTALL tab`);
41
+ const existing = read(path);
42
+ if (existsSync(path) && !existing.ours)
43
+ throw new Error(`${path} exists but was not created by kontexta; refusing to overwrite it`);
44
+ if (!ctx.dryRun)
45
+ mkdirSync(join(dir(ctx), "mcpServers"), { recursive: true });
46
+ return { agent: "continue", path, changed: writeTextWithBackup(path, render(ctx.entry, ctx.version), ctx.dryRun), notes: ["MCP tools only appear in Continue's Agent Mode."] };
47
+ },
48
+ uninstall(ctx) {
49
+ const path = file(ctx);
50
+ const existing = read(path);
51
+ if (!existing.ours)
52
+ return { agent: "continue", path, changed: false, notes: [] };
53
+ if (!ctx.dryRun)
54
+ rmSync(path, { force: true });
55
+ return { agent: "continue", path, changed: true, notes: [] };
56
+ },
57
+ status(ctx) {
58
+ const path = file(ctx);
59
+ const { doc, ours } = read(path);
60
+ const server = ours ? serverOf(doc) : undefined;
61
+ return { agent: "continue", path, installed: server !== undefined, current: sameEntry(server, ctx.entry), entry: toServerEntry(server), notes: [] };
62
+ },
63
+ };
64
+ //# sourceMappingURL=continue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"continue.js","sourceRoot":"","sources":["../../../src/mcp-install/installers/continue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtE,OAA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EAAE,SAAS,EAAE,MAAM,KAAK,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACtJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpInstaller } from "../types.js";
2
+ export declare const hermesMcpInstaller: McpInstaller;
3
+ //# sourceMappingURL=hermes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hermes.d.ts","sourceRoot":"","sources":["../../../src/mcp-install/installers/hermes.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAU,YAAY,EAAwB,MAAM,aAAa,CAAC;AAmB9E,eAAO,MAAM,kBAAkB,EAAE,YAuDhC,CAAC"}