kontexta 5.1.3 → 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 (436) hide show
  1. package/bundle/standalone/CHANGELOG.md +18 -0
  2. package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
  3. package/bundle/standalone/apps/web/.next/app-build-manifest.json +91 -84
  4. package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +11 -10
  5. package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
  6. package/bundle/standalone/apps/web/.next/prerender-manifest.json +3 -3
  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.nft.json +1 -1
  101. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
  102. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js.nft.json +1 -1
  103. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
  104. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js.nft.json +1 -1
  105. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
  106. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js.nft.json +1 -1
  107. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
  108. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js.nft.json +1 -1
  109. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
  110. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  111. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
  112. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js.nft.json +1 -1
  113. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
  114. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -1
  115. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
  116. package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -1
  117. package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  118. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -1
  119. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
  120. package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -1
  121. package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
  122. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js.nft.json +1 -1
  123. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
  124. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js.nft.json +1 -1
  125. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
  126. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route.js.nft.json +1 -1
  127. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
  128. package/bundle/standalone/apps/web/.next/server/app/api/search/route.js.nft.json +1 -1
  129. package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  130. package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js.nft.json +1 -1
  131. package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  132. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route.js.nft.json +1 -1
  133. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
  134. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route.js.nft.json +1 -1
  135. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
  136. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route.js.nft.json +1 -1
  137. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
  138. package/bundle/standalone/apps/web/.next/server/app/apple-icon.png/route.js.nft.json +1 -1
  139. package/bundle/standalone/apps/web/.next/server/app/calendar/page.js +1 -1
  140. package/bundle/standalone/apps/web/.next/server/app/calendar/page.js.nft.json +1 -1
  141. package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
  142. package/bundle/standalone/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  143. package/bundle/standalone/apps/web/.next/server/app/icon.png/route.js.nft.json +1 -1
  144. package/bundle/standalone/apps/web/.next/server/app/login/page.js.nft.json +1 -1
  145. package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
  146. package/bundle/standalone/apps/web/.next/server/app/page.js +4 -4
  147. package/bundle/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
  148. package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  149. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page.js.nft.json +1 -1
  150. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
  151. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
  152. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +2 -2
  153. package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +11 -10
  154. package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -1
  155. package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -1
  156. package/bundle/standalone/apps/web/.next/server/pages/_app.js.nft.json +1 -1
  157. package/bundle/standalone/apps/web/.next/server/pages/_document.js.nft.json +1 -1
  158. package/bundle/standalone/apps/web/.next/server/pages/_error.js.nft.json +1 -1
  159. package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  160. package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-e920054b7eb00274.js +1 -0
  161. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/hooks/route-e920054b7eb00274.js +1 -0
  162. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/mcp/route-e920054b7eb00274.js +1 -0
  163. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/route-e920054b7eb00274.js +1 -0
  164. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/route-e920054b7eb00274.js +1 -0
  165. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-e920054b7eb00274.js +1 -0
  166. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-e920054b7eb00274.js +1 -0
  167. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-e920054b7eb00274.js +1 -0
  168. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-e920054b7eb00274.js +1 -0
  169. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-e920054b7eb00274.js +1 -0
  170. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-e920054b7eb00274.js +1 -0
  171. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-e920054b7eb00274.js +1 -0
  172. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-e920054b7eb00274.js +1 -0
  173. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-e920054b7eb00274.js +1 -0
  174. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-e920054b7eb00274.js +1 -0
  175. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-e920054b7eb00274.js +1 -0
  176. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-e920054b7eb00274.js +1 -0
  177. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-e920054b7eb00274.js +1 -0
  178. package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-e920054b7eb00274.js +1 -0
  179. package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-e920054b7eb00274.js +1 -0
  180. package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-e920054b7eb00274.js +1 -0
  181. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/backlinks/route-e920054b7eb00274.js +1 -0
  182. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-e920054b7eb00274.js +1 -0
  183. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-html/route-e920054b7eb00274.js +1 -0
  184. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-e920054b7eb00274.js +1 -0
  185. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-e920054b7eb00274.js +1 -0
  186. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-e920054b7eb00274.js +1 -0
  187. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-e920054b7eb00274.js +1 -0
  188. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-e920054b7eb00274.js +1 -0
  189. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-e920054b7eb00274.js +1 -0
  190. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-e920054b7eb00274.js +1 -0
  191. package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-e920054b7eb00274.js +1 -0
  192. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-e920054b7eb00274.js +1 -0
  193. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-e920054b7eb00274.js +1 -0
  194. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-e920054b7eb00274.js +1 -0
  195. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-e920054b7eb00274.js +1 -0
  196. package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-e920054b7eb00274.js +1 -0
  197. package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-e920054b7eb00274.js +1 -0
  198. package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-e920054b7eb00274.js +1 -0
  199. package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-e920054b7eb00274.js +1 -0
  200. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-e920054b7eb00274.js +1 -0
  201. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-e920054b7eb00274.js +1 -0
  202. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-e920054b7eb00274.js +1 -0
  203. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-e920054b7eb00274.js +1 -0
  204. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-e920054b7eb00274.js +1 -0
  205. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-e920054b7eb00274.js +1 -0
  206. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-e920054b7eb00274.js +1 -0
  207. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-e920054b7eb00274.js +1 -0
  208. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-e920054b7eb00274.js +1 -0
  209. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-e920054b7eb00274.js +1 -0
  210. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-e920054b7eb00274.js +1 -0
  211. package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-e920054b7eb00274.js +1 -0
  212. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-e920054b7eb00274.js +1 -0
  213. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reports/resources/[name]/route-e920054b7eb00274.js +1 -0
  214. package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-e920054b7eb00274.js +1 -0
  215. package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-e920054b7eb00274.js +1 -0
  216. package/bundle/standalone/apps/web/.next/static/chunks/app/api/version-check/route-e920054b7eb00274.js +1 -0
  217. package/bundle/standalone/apps/web/.next/static/chunks/app/api/welcome/route-e920054b7eb00274.js +1 -0
  218. package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-e920054b7eb00274.js +1 -0
  219. package/bundle/standalone/apps/web/.next/static/chunks/app/calendar/page-7d520da68bac245d.js +1 -0
  220. package/bundle/standalone/apps/web/.next/static/chunks/app/page-df34c386b7c150bb.js +1 -0
  221. package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-e920054b7eb00274.js +1 -0
  222. package/bundle/standalone/apps/web/.next/static/css/{c2dc6e054d3457fa.css → d6e83b3f51ebdda3.css} +1 -1
  223. package/bundle/standalone/apps/web/package.json +4 -4
  224. package/bundle/standalone/apps/web/src/lib/mcp-tools.json +50 -50
  225. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +16 -16
  226. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
  227. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.d.ts +3 -0
  228. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.d.ts.map +1 -0
  229. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.js +166 -0
  230. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.js.map +1 -0
  231. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js +1 -1
  232. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js.map +1 -1
  233. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js +1 -1
  234. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js.map +1 -1
  235. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js +2 -2
  236. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js.map +1 -1
  237. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +26 -26
  238. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks/emit.mjs +39 -2
  239. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js +1 -1
  240. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js.map +1 -1
  241. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js +2 -2
  242. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js.map +1 -1
  243. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +78 -60
  244. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
  245. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +6 -6
  246. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js.map +1 -1
  247. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/011-journal-files-in-kb.sql +2 -0
  248. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/012-agents-mcp.sql +6 -0
  249. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js +1 -1
  250. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js.map +1 -1
  251. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.d.ts +7 -0
  252. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.d.ts.map +1 -0
  253. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.js +13 -0
  254. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.js.map +1 -0
  255. package/bundle/standalone/node_modules/kontexta-mcp/package.json +2 -1
  256. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/011-journal-files-in-kb.sql +2 -0
  257. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/012-agents-mcp.sql +6 -0
  258. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts +19 -2
  259. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts.map +1 -1
  260. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js +15 -15
  261. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js.map +1 -1
  262. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts +2 -0
  263. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts.map +1 -1
  264. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js +3 -3
  265. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js.map +1 -1
  266. package/bundle/standalone/node_modules/kxta-core/dist/hooks/emit.mjs +39 -2
  267. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts +2 -2
  268. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts.map +1 -1
  269. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js +1 -1
  270. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js.map +1 -1
  271. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.d.ts +3 -0
  272. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.d.ts.map +1 -0
  273. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.js +75 -0
  274. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.js.map +1 -0
  275. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js +1 -1
  276. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js.map +1 -1
  277. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.d.ts.map +1 -1
  278. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js +4 -3
  279. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js.map +1 -1
  280. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.d.ts.map +1 -1
  281. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js +0 -1
  282. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js.map +1 -1
  283. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.d.ts +3 -0
  284. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.d.ts.map +1 -0
  285. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.js +107 -0
  286. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.js.map +1 -0
  287. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.d.ts.map +1 -1
  288. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js +4 -0
  289. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js.map +1 -1
  290. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts +2 -0
  291. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts.map +1 -1
  292. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js +27 -13
  293. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js.map +1 -1
  294. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts +11 -0
  295. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts.map +1 -1
  296. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js +29 -3
  297. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js.map +1 -1
  298. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts +1 -0
  299. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts.map +1 -1
  300. package/bundle/standalone/node_modules/kxta-core/dist/index.js +1 -0
  301. package/bundle/standalone/node_modules/kxta-core/dist/index.js.map +1 -1
  302. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js +8 -5
  303. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js.map +1 -1
  304. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.d.ts +8 -0
  305. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.d.ts.map +1 -0
  306. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.js +8 -0
  307. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.js.map +1 -0
  308. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.d.ts +31 -0
  309. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.d.ts.map +1 -0
  310. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.js +55 -0
  311. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.js.map +1 -0
  312. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.d.ts +10 -0
  313. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.d.ts.map +1 -0
  314. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.js +7 -0
  315. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.js.map +1 -0
  316. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.d.ts +46 -0
  317. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.d.ts.map +1 -0
  318. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.js +113 -0
  319. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.js.map +1 -0
  320. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.d.ts +3 -0
  321. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.d.ts.map +1 -0
  322. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.js +115 -0
  323. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.js.map +1 -0
  324. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.d.ts +3 -0
  325. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.d.ts.map +1 -0
  326. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.js +76 -0
  327. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.js.map +1 -0
  328. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.d.ts +3 -0
  329. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.d.ts.map +1 -0
  330. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.js +64 -0
  331. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.js.map +1 -0
  332. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.d.ts +3 -0
  333. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.d.ts.map +1 -0
  334. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.js +90 -0
  335. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.js.map +1 -0
  336. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.d.ts +3 -0
  337. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.d.ts.map +1 -0
  338. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.js +17 -0
  339. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.js.map +1 -0
  340. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts +31 -0
  341. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts.map +1 -0
  342. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.js +136 -0
  343. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.js.map +1 -0
  344. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.d.ts +5 -0
  345. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.d.ts.map +1 -0
  346. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.js +19 -0
  347. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.js.map +1 -0
  348. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.d.ts +5 -0
  349. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.d.ts.map +1 -0
  350. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.js +62 -0
  351. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.js.map +1 -0
  352. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.d.ts +55 -0
  353. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.d.ts.map +1 -0
  354. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.js +2 -0
  355. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.js.map +1 -0
  356. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.d.ts +3 -0
  357. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.d.ts.map +1 -0
  358. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.js +25 -0
  359. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.js.map +1 -0
  360. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.d.ts +5 -0
  361. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.d.ts.map +1 -0
  362. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.js +17 -0
  363. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.js.map +1 -0
  364. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.d.ts.map +1 -1
  365. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js +2 -0
  366. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js.map +1 -1
  367. package/bundle/standalone/node_modules/kxta-core/package.json +4 -2
  368. package/bundle/standalone/node_modules/kxta-publish/package.json +2 -2
  369. package/bundle/standalone/package.json +1 -1
  370. package/dist/connect-AL5DTU3K.js +22 -0
  371. package/dist/index.js +7 -1
  372. package/dist/{start-RJVUJT4B.js → start-GP4ERBBP.js} +7 -0
  373. package/package.json +3 -1
  374. package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-0cc6597bb67aea3b.js +0 -1
  375. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/hooks/route-0cc6597bb67aea3b.js +0 -1
  376. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/route-0cc6597bb67aea3b.js +0 -1
  377. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/route-0cc6597bb67aea3b.js +0 -1
  378. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-0cc6597bb67aea3b.js +0 -1
  379. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-0cc6597bb67aea3b.js +0 -1
  380. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-0cc6597bb67aea3b.js +0 -1
  381. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-0cc6597bb67aea3b.js +0 -1
  382. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-0cc6597bb67aea3b.js +0 -1
  383. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-0cc6597bb67aea3b.js +0 -1
  384. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-0cc6597bb67aea3b.js +0 -1
  385. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-0cc6597bb67aea3b.js +0 -1
  386. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-0cc6597bb67aea3b.js +0 -1
  387. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-0cc6597bb67aea3b.js +0 -1
  388. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-0cc6597bb67aea3b.js +0 -1
  389. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-0cc6597bb67aea3b.js +0 -1
  390. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-0cc6597bb67aea3b.js +0 -1
  391. package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-0cc6597bb67aea3b.js +0 -1
  392. package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-0cc6597bb67aea3b.js +0 -1
  393. package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-0cc6597bb67aea3b.js +0 -1
  394. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/backlinks/route-0cc6597bb67aea3b.js +0 -1
  395. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-0cc6597bb67aea3b.js +0 -1
  396. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-html/route-0cc6597bb67aea3b.js +0 -1
  397. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-0cc6597bb67aea3b.js +0 -1
  398. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-0cc6597bb67aea3b.js +0 -1
  399. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-0cc6597bb67aea3b.js +0 -1
  400. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-0cc6597bb67aea3b.js +0 -1
  401. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-0cc6597bb67aea3b.js +0 -1
  402. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-0cc6597bb67aea3b.js +0 -1
  403. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-0cc6597bb67aea3b.js +0 -1
  404. package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-0cc6597bb67aea3b.js +0 -1
  405. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-0cc6597bb67aea3b.js +0 -1
  406. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-0cc6597bb67aea3b.js +0 -1
  407. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-0cc6597bb67aea3b.js +0 -1
  408. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-0cc6597bb67aea3b.js +0 -1
  409. package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-0cc6597bb67aea3b.js +0 -1
  410. package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-0cc6597bb67aea3b.js +0 -1
  411. package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-0cc6597bb67aea3b.js +0 -1
  412. package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-0cc6597bb67aea3b.js +0 -1
  413. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-0cc6597bb67aea3b.js +0 -1
  414. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-0cc6597bb67aea3b.js +0 -1
  415. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-0cc6597bb67aea3b.js +0 -1
  416. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-0cc6597bb67aea3b.js +0 -1
  417. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-0cc6597bb67aea3b.js +0 -1
  418. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-0cc6597bb67aea3b.js +0 -1
  419. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-0cc6597bb67aea3b.js +0 -1
  420. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-0cc6597bb67aea3b.js +0 -1
  421. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-0cc6597bb67aea3b.js +0 -1
  422. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-0cc6597bb67aea3b.js +0 -1
  423. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-0cc6597bb67aea3b.js +0 -1
  424. package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-0cc6597bb67aea3b.js +0 -1
  425. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-0cc6597bb67aea3b.js +0 -1
  426. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reports/resources/[name]/route-0cc6597bb67aea3b.js +0 -1
  427. package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-0cc6597bb67aea3b.js +0 -1
  428. package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-0cc6597bb67aea3b.js +0 -1
  429. package/bundle/standalone/apps/web/.next/static/chunks/app/api/version-check/route-0cc6597bb67aea3b.js +0 -1
  430. package/bundle/standalone/apps/web/.next/static/chunks/app/api/welcome/route-0cc6597bb67aea3b.js +0 -1
  431. package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-0cc6597bb67aea3b.js +0 -1
  432. package/bundle/standalone/apps/web/.next/static/chunks/app/calendar/page-f9542f9f518f9257.js +0 -1
  433. package/bundle/standalone/apps/web/.next/static/chunks/app/page-19695d4fd9fa5c0a.js +0 -1
  434. package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-0cc6597bb67aea3b.js +0 -1
  435. /package/bundle/standalone/apps/web/.next/static/{KgyobLEcr42ig4jXUMcNO → yyj-uK2RH8Rffeq9wVzjU}/_buildManifest.js +0 -0
  436. /package/bundle/standalone/apps/web/.next/static/{KgyobLEcr42ig4jXUMcNO → yyj-uK2RH8Rffeq9wVzjU}/_ssgManifest.js +0 -0
@@ -0,0 +1,13 @@
1
+ // Anything written through kxta lands in the knowledge base; agents may still write repo files with their own tools.
2
+ const WHY = "Nothing created through kxta is written into a project repo: use destination 'knowledge' (the knowledge base) instead.";
3
+ export function refuseProjectDestination(destination) {
4
+ return destination === "project" ? `destination 'project' is not allowed. ${WHY}` : null;
5
+ }
6
+ // Project files are indexed as 'reference' storage; files.update/move on them would write into the repo.
7
+ export function refuseRepoFile(file) {
8
+ return file.storage_type === "reference" && file.project_id ? `This file lives in a project repo and cannot be changed through kxta. ${WHY}` : null;
9
+ }
10
+ export function refuseProjectFolder(projectId) {
11
+ return projectId ? `Folders cannot be created in a project repo through kxta. ${WHY}` : null;
12
+ }
13
+ //# sourceMappingURL=repo-write-guard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repo-write-guard.js","sourceRoot":"","sources":["../src/repo-write-guard.ts"],"names":[],"mappings":"AAAA,qHAAqH;AACrH,MAAM,GAAG,GAAG,wHAAwH,CAAC;AAErI,MAAM,UAAU,wBAAwB,CAAC,WAAmB;IAC1D,OAAO,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,yCAAyC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3F,CAAC;AAED,yGAAyG;AACzG,MAAM,UAAU,cAAc,CAAC,IAAyD;IACtF,OAAO,IAAI,CAAC,YAAY,KAAK,WAAW,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,yEAAyE,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACtJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,SAAoC;IACtE,OAAO,SAAS,CAAC,CAAC,CAAC,6DAA6D,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/F,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kontexta-mcp",
3
- "version": "5.1.3",
3
+ "version": "5.2.0",
4
4
  "description": "The local Brain and Hands for AI coding agents (MCP Server)",
5
5
  "keywords": [
6
6
  "mcp",
@@ -61,6 +61,7 @@
61
61
  "simple-git": "^3.27.0",
62
62
  "turndown": "^7.2.4",
63
63
  "undici": "^7.0.0",
64
+ "yaml": "^2.9.1",
64
65
  "zod": "^3.24.0"
65
66
  },
66
67
  "rulesVersion": "3.1.0"
@@ -0,0 +1,2 @@
1
+ -- Journal task files belong to the knowledge base; journal_meta.project_id still records the owning project.
2
+ UPDATE files SET project_id = NULL WHERE id IN (SELECT file_id FROM journal_meta) AND project_id IS NOT NULL;
@@ -0,0 +1,6 @@
1
+ -- MCP registration state per agent, next to the hook columns.
2
+ ALTER TABLE agents ADD COLUMN mcp_supported INTEGER NOT NULL DEFAULT 0;
3
+ ALTER TABLE agents ADD COLUMN mcp_installed INTEGER NOT NULL DEFAULT 0;
4
+ ALTER TABLE agents ADD COLUMN mcp_version TEXT;
5
+ ALTER TABLE agents ADD COLUMN mcp_installed_at TEXT;
6
+ ALTER TABLE agents ADD COLUMN mcp_approval TEXT NOT NULL DEFAULT 'prompt';
@@ -3,82 +3,99 @@ export interface AgentMeta {
3
3
  name: string;
4
4
  hooksSupported: boolean;
5
5
  onboardable: boolean;
6
+ /** True when `kontexta connect` can write this agent's MCP config (Phase 1 set). */
7
+ mcpInstallable: boolean;
6
8
  }
7
9
  export declare const AGENTS: readonly [{
8
10
  readonly id: "claude-code";
9
11
  readonly name: "Claude Code";
10
12
  readonly hooksSupported: true;
11
13
  readonly onboardable: true;
14
+ readonly mcpInstallable: true;
12
15
  }, {
13
16
  readonly id: "codex";
14
17
  readonly name: "Codex CLI";
15
18
  readonly hooksSupported: true;
16
19
  readonly onboardable: true;
20
+ readonly mcpInstallable: true;
17
21
  }, {
18
22
  readonly id: "gemini";
19
23
  readonly name: "Gemini CLI";
20
24
  readonly hooksSupported: true;
21
25
  readonly onboardable: true;
26
+ readonly mcpInstallable: true;
22
27
  }, {
23
28
  readonly id: "copilot";
24
29
  readonly name: "GitHub Copilot CLI";
25
30
  readonly hooksSupported: true;
26
31
  readonly onboardable: true;
32
+ readonly mcpInstallable: true;
27
33
  }, {
28
34
  readonly id: "cursor";
29
35
  readonly name: "Cursor";
30
36
  readonly hooksSupported: true;
31
37
  readonly onboardable: true;
38
+ readonly mcpInstallable: true;
32
39
  }, {
33
40
  readonly id: "windsurf";
34
41
  readonly name: "Windsurf";
35
42
  readonly hooksSupported: true;
36
43
  readonly onboardable: false;
44
+ readonly mcpInstallable: false;
37
45
  }, {
38
46
  readonly id: "kiro";
39
47
  readonly name: "Kiro";
40
48
  readonly hooksSupported: false;
41
49
  readonly onboardable: false;
50
+ readonly mcpInstallable: false;
42
51
  }, {
43
52
  readonly id: "cline";
44
53
  readonly name: "Cline";
45
54
  readonly hooksSupported: true;
46
55
  readonly onboardable: true;
56
+ readonly mcpInstallable: true;
47
57
  }, {
48
58
  readonly id: "opencode";
49
59
  readonly name: "OpenCode";
50
60
  readonly hooksSupported: true;
51
61
  readonly onboardable: false;
62
+ readonly mcpInstallable: false;
52
63
  }, {
53
64
  readonly id: "claude-desktop";
54
65
  readonly name: "Claude Desktop";
55
66
  readonly hooksSupported: false;
56
67
  readonly onboardable: false;
68
+ readonly mcpInstallable: true;
57
69
  }, {
58
70
  readonly id: "antigravity";
59
71
  readonly name: "Antigravity";
60
- readonly hooksSupported: false;
72
+ readonly hooksSupported: true;
61
73
  readonly onboardable: true;
74
+ readonly mcpInstallable: false;
62
75
  }, {
63
76
  readonly id: "continue";
64
77
  readonly name: "Continue";
65
78
  readonly hooksSupported: false;
66
79
  readonly onboardable: true;
80
+ readonly mcpInstallable: true;
67
81
  }, {
68
82
  readonly id: "aider";
69
83
  readonly name: "Aider";
70
84
  readonly hooksSupported: false;
71
85
  readonly onboardable: true;
86
+ readonly mcpInstallable: false;
72
87
  }, {
73
88
  readonly id: "hermes";
74
89
  readonly name: "Hermes";
75
- readonly hooksSupported: false;
90
+ readonly hooksSupported: true;
76
91
  readonly onboardable: false;
92
+ readonly mcpInstallable: true;
77
93
  }, {
78
94
  readonly id: "generic";
79
95
  readonly name: "Generic";
80
96
  readonly hooksSupported: false;
81
97
  readonly onboardable: true;
98
+ readonly mcpInstallable: false;
82
99
  }];
83
100
  export type AgentId = (typeof AGENTS)[number]["id"];
84
101
  export declare function isAgentId(x: string): x is AgentId;
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/hooks/agents.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBwF,CAAC;AAE5G,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAEpD,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,IAAI,OAAO,CAEjD;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAE3D"}
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/hooks/agents.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,oFAAoF;IACpF,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBiH,CAAC;AAErI,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAEpD,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,IAAI,OAAO,CAEjD;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAE3D"}
@@ -1,19 +1,19 @@
1
1
  export const AGENTS = [
2
- { id: "claude-code", name: "Claude Code", hooksSupported: true, onboardable: true },
3
- { id: "codex", name: "Codex CLI", hooksSupported: true, onboardable: true },
4
- { id: "gemini", name: "Gemini CLI", hooksSupported: true, onboardable: true },
5
- { id: "copilot", name: "GitHub Copilot CLI", hooksSupported: true, onboardable: true },
6
- { id: "cursor", name: "Cursor", hooksSupported: true, onboardable: true },
7
- { id: "windsurf", name: "Windsurf", hooksSupported: true, onboardable: false },
8
- { id: "kiro", name: "Kiro", hooksSupported: false, onboardable: false },
9
- { id: "cline", name: "Cline", hooksSupported: true, onboardable: true },
10
- { id: "opencode", name: "OpenCode", hooksSupported: true, onboardable: false },
11
- { id: "claude-desktop", name: "Claude Desktop", hooksSupported: false, onboardable: false },
12
- { id: "antigravity", name: "Antigravity", hooksSupported: false, onboardable: true },
13
- { id: "continue", name: "Continue", hooksSupported: false, onboardable: true },
14
- { id: "aider", name: "Aider", hooksSupported: false, onboardable: true },
15
- { id: "hermes", name: "Hermes", hooksSupported: false, onboardable: false },
16
- { id: "generic", name: "Generic", hooksSupported: false, onboardable: true },
2
+ { id: "claude-code", name: "Claude Code", hooksSupported: true, onboardable: true, mcpInstallable: true },
3
+ { id: "codex", name: "Codex CLI", hooksSupported: true, onboardable: true, mcpInstallable: true },
4
+ { id: "gemini", name: "Gemini CLI", hooksSupported: true, onboardable: true, mcpInstallable: true },
5
+ { id: "copilot", name: "GitHub Copilot CLI", hooksSupported: true, onboardable: true, mcpInstallable: true },
6
+ { id: "cursor", name: "Cursor", hooksSupported: true, onboardable: true, mcpInstallable: true },
7
+ { id: "windsurf", name: "Windsurf", hooksSupported: true, onboardable: false, mcpInstallable: false },
8
+ { id: "kiro", name: "Kiro", hooksSupported: false, onboardable: false, mcpInstallable: false },
9
+ { id: "cline", name: "Cline", hooksSupported: true, onboardable: true, mcpInstallable: true },
10
+ { id: "opencode", name: "OpenCode", hooksSupported: true, onboardable: false, mcpInstallable: false },
11
+ { id: "claude-desktop", name: "Claude Desktop", hooksSupported: false, onboardable: false, mcpInstallable: true },
12
+ { id: "antigravity", name: "Antigravity", hooksSupported: true, onboardable: true, mcpInstallable: false },
13
+ { id: "continue", name: "Continue", hooksSupported: false, onboardable: true, mcpInstallable: true },
14
+ { id: "aider", name: "Aider", hooksSupported: false, onboardable: true, mcpInstallable: false },
15
+ { id: "hermes", name: "Hermes", hooksSupported: true, onboardable: false, mcpInstallable: true },
16
+ { id: "generic", name: "Generic", hooksSupported: false, onboardable: true, mcpInstallable: false },
17
17
  ];
18
18
  export function isAgentId(x) {
19
19
  return AGENTS.some((a) => a.id === x);
@@ -1 +1 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/hooks/agents.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE;IACnF,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,IA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E,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE;IAChG,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE;CAC+B,CAAC;AAIrI,MAAM,UAAU,SAAS,CAAC,CAAS;IACjC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,EAAU;IAClC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAA0B,CAAC;AAClE,CAAC"}
@@ -11,6 +11,8 @@ export interface HooksBlock {
11
11
  alerts: HooksAlert[];
12
12
  prompt: string | null;
13
13
  }
14
+ export declare const isAbsoluteHostPath: (p: string) => boolean;
15
+ export declare const dq: (s: string) => string;
14
16
  export declare function dockerInstallCommand(o: {
15
17
  agent: string;
16
18
  version: string;
@@ -1 +1 @@
1
- {"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../src/hooks/alerts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,UAAU;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE;AACpI,MAAM,WAAW,UAAU;IAAG,YAAY,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,UAAU,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE;AAOtG,wBAAgB,oBAAoB,CAAC,CAAC,EAAE;I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AAE,MAAM,GAAG,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,IAAI,CAAA;CAAE,GAAG,UAAU,CA+BrI"}
@@ -1,9 +1,9 @@
1
1
  import { alerts as registryAlerts } from "./registry.js";
2
2
  import { agentMeta } from "./agents.js";
3
3
  // A relative host path (compose's ./kontexta-data default) can't be resolved from inside the container, so it is treated as unknown.
4
- const isAbsoluteHostPath = (p) => /^(\/|[A-Za-z]:[\\/]|\\\\)/.test(p);
4
+ export const isAbsoluteHostPath = (p) => /^(\/|[A-Za-z]:[\\/]|\\\\)/.test(p);
5
5
  // Escape for use inside double quotes in a POSIX shell.
6
- const dq = (s) => s.replace(/(["\\$`])/g, "\\$1");
6
+ export const dq = (s) => s.replace(/(["\\$`])/g, "\\$1");
7
7
  export function dockerInstallCommand(o) {
8
8
  const dir = o.hostDataDir && isAbsoluteHostPath(o.hostDataDir) ? dq(o.hostDataDir) : "<DATA_DIR>";
9
9
  return `docker run --rm -v "$HOME":/host -v "${dir}":/app/data safiyu/kontexta:${o.version} hooks install --home /host --host-data-dir "${dir}" --no-db --agent ${o.agent}`;
@@ -37,7 +37,7 @@ export function buildHooksBlock(o) {
37
37
  }
38
38
  }
39
39
  if (silent.length > 0) {
40
- lines.push(`Hooks for ${silent.map((a) => a.name).join(", ")} are installed but no events have arrived in over a week — run \`kontexta hooks status\` to check.`);
40
+ lines.push(`Hooks for ${silent.map((a) => a.name).join(", ")} are installed but no events have arrived in over a week. Run \`kontexta hooks status\` to check.`);
41
41
  }
42
42
  return { install_mode: o.installMode, alerts, prompt: lines.join(" ") };
43
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../src/hooks/alerts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,qIAAqI;AACrI,MAAM,kBAAkB,GAAG,CAAC,CA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E,CAAC,oCAAoC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,+BAA+B,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI;gBAC5M,CAAC,CAAC,EAAE,CAAC;YACP,KAAK,CAAC,IAAI,CAAC,iEAAiE,KAAK,8BAA8B,OAAO,GAAG,GAAG,EAAE,CAAC,CAAC;QAClI,CAAC;IACH,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,mGAAmG,CAAC,CAAC;IACnK,CAAC;IACD,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAC1E,CAAC"}
@@ -214,7 +214,8 @@ function adaptGemini(p) {
214
214
  }
215
215
  }
216
216
 
217
- const CODEX_SHELL_TOOLS = new Set(["shell", "local_shell", "exec_command", "bash", "container.exec"]);
217
+ // Codex reports shell and unified-exec calls to hooks as the canonical tool name "Bash"; the older raw names stay for older builds.
218
+ const CODEX_SHELL_TOOLS = new Set(["bash", "shell", "local_shell", "exec_command", "container.exec"]);
218
219
  function adaptCodex(p) {
219
220
  const sid = p.session_id ?? p.turn_id;
220
221
  switch (p.hook_event_name) {
@@ -222,7 +223,7 @@ function adaptCodex(p) {
222
223
  case "Stop": return str(p.last_assistant_message) ? [{ event: "agent_reply", text: p.last_assistant_message, sid }] : [];
223
224
  case "SubagentStop": return str(p.last_assistant_message) ? [{ event: "agent_reply", text: p.last_assistant_message, sid, subagent: true }] : [];
224
225
  case "PostToolUse": {
225
- const c = CODEX_SHELL_TOOLS.has(p.tool_name) ? commandString(p.tool_input?.command ?? p.tool_input?.cmd) : null;
226
+ const c = CODEX_SHELL_TOOLS.has(String(p.tool_name).toLowerCase()) ? commandString(p.tool_input?.command ?? p.tool_input?.cmd) : null;
226
227
  return c ? [{ event: "shell", command: c, sid }] : [];
227
228
  }
228
229
  default: return [];
@@ -302,7 +303,42 @@ function adaptOpenCode(p) {
302
303
  return [];
303
304
  }
304
305
 
306
+ // Antigravity payloads carry no prompt or reply text (only transcriptPath), so only shell commands and questions are captured.
307
+ function adaptAntigravity(p) {
308
+ const sid = p.conversationId;
309
+ const tc = p.toolCall;
310
+ if (!tc || typeof tc !== "object") return [];
311
+ if (tc.name === "run_command") return str(tc.args?.CommandLine) ? [{ event: "shell", command: tc.args.CommandLine, sid }] : [];
312
+ if (tc.name === "ask_question" && Array.isArray(tc.args?.questions)) {
313
+ const questions = tc.args.questions.filter((q) => str(q?.question)).map((q) => ({ question: q.question }));
314
+ return questions.length ? [{ event: "agent_question", questions, sid }] : [];
315
+ }
316
+ return [];
317
+ }
318
+
319
+ // Hermes shell hooks name the event in the payload; user_message is a string, or content parts on a multimodal turn.
320
+ function hermesText(v) {
321
+ if (str(v)) return v;
322
+ if (!Array.isArray(v)) return null;
323
+ const t = v.filter((part) => part?.type === "text" && str(part.text)).map((part) => part.text).join("\n");
324
+ return t || null;
325
+ }
326
+
327
+ function adaptHermes(p) {
328
+ const x = p.extra && typeof p.extra === "object" ? p.extra : {};
329
+ const sid = p.session_id;
330
+ switch (p.hook_event_name) {
331
+ case "pre_llm_call": { const t = hermesText(x.user_message); return t ? [{ event: "user_prompt", text: t, sid }] : []; }
332
+ case "post_llm_call": return str(x.assistant_response) ? [{ event: "agent_reply", text: x.assistant_response, sid }] : [];
333
+ case "post_tool_call": { const c = p.tool_name === "terminal" ? commandString(p.tool_input?.command) : null; return c ? [{ event: "shell", command: c, sid }] : []; }
334
+ case "subagent_stop": return str(x.child_summary) ? [{ event: "agent_reply", text: x.child_summary, sid, subagent: true }] : [];
335
+ default: return [];
336
+ }
337
+ }
338
+
305
339
  export const ADAPTERS = {
340
+ hermes: adaptHermes,
341
+ antigravity: adaptAntigravity,
306
342
  "claude-code": adaptClaudeCode,
307
343
  gemini: adaptGemini,
308
344
  codex: adaptCodex,
@@ -381,6 +417,7 @@ export async function run(argv = process.argv.slice(2), env = process.env) {
381
417
  : str(payload.tool_info?.cwd) ? payload.tool_info.cwd
382
418
  : Array.isArray(payload.workspace_roots) && str(payload.workspace_roots[0]) ? payload.workspace_roots[0]
383
419
  : Array.isArray(payload.workspaceRoots) && str(payload.workspaceRoots[0]) ? payload.workspaceRoots[0]
420
+ : Array.isArray(payload.workspacePaths) && str(payload.workspacePaths[0]) ? payload.workspacePaths[0]
384
421
  : process.cwd();
385
422
  const git = gitBranch(cwd);
386
423
  const ctx = { ts: new Date().toISOString(), agent, cwd, branch: git?.branch, caps: readCaps(dataDir) };
@@ -1,7 +1,7 @@
1
1
  export { AGENTS, agentMeta, isAgentId } from "./agents.js";
2
2
  export type { AgentId, AgentMeta } from "./agents.js";
3
- export { syncAgentRows, listAgents, setEnabled, markInstalled, markUninstalled, markVerified, alerts } from "./registry.js";
4
- export type { AgentRow } from "./registry.js";
3
+ export { syncAgentRows, listAgents, setEnabled, markInstalled, markUninstalled, markVerified, alerts, markMcpInstalled, markMcpUninstalled, setMcpApproval, mcpAlerts, MCP_APPROVALS } from "./registry.js";
4
+ export type { AgentRow, McpApproval } from "./registry.js";
5
5
  export { EMITTER_VERSION, emitterVersionOf, emitterSourcePath, stagedEmitterPath, stageEmitter, emitterVersionOnDisk, syncProjectsSidecar, pruneHookState, } from "./stage.js";
6
6
  export { installHooks, uninstallHooks, hooksStatus, reconcile } from "./install.js";
7
7
  export type { HooksOpts, AgentHookOutcome, HookStatusRow } from "./install.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,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AAa,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5M,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EACL,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,cAAc,GACjJ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpF,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACtF,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACpE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export { AGENTS, agentMeta, isAgentId } from "./agents.js";
2
- export { syncAgentRows, listAgents, setEnabled, markInstalled, markUninstalled, markVerified, alerts } from "./registry.js";
2
+ export { syncAgentRows, listAgents, setEnabled, markInstalled, markUninstalled, markVerified, alerts, markMcpInstalled, markMcpUninstalled, setMcpApproval, mcpAlerts, MCP_APPROVALS } from "./registry.js";
3
3
  export { EMITTER_VERSION, emitterVersionOf, emitterSourcePath, stagedEmitterPath, stageEmitter, emitterVersionOnDisk, syncProjectsSidecar, pruneHookState, } from "./stage.js";
4
4
  export { installHooks, uninstallHooks, hooksStatus, reconcile } from "./install.js";
5
5
  export { INSTALLERS, MalformedConfigError, emitCommand } from "./installers/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5H,OAAO,EACL,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,cAAc,GACjJ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE5M,OAAO,EACL,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,cAAc,GACjJ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Installer } from "./types.js";
2
+ export declare const antigravityInstaller: Installer;
3
+ //# sourceMappingURL=antigravity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"antigravity.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/antigravity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAC;AA+BxD,eAAO,MAAM,oBAAoB,EAAE,SAmClC,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { existsSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { emitCommand, isOwned, readJsonConfig, writeJsonConfig } from "./json-config.js";
4
+ // Antigravity keeps hooks as named entries ({ name: { Event: [...] } }) in ~/.gemini/config/hooks.json; ours is one namespaced entry.
5
+ const ENTRY = "kontexta-journal";
6
+ const configPath = (ctx) => join(ctx.home, ".gemini", "config", "hooks.json");
7
+ const asEntry = (v) => (v && typeof v === "object" && !Array.isArray(v) ? v : null);
8
+ const isOurs = (entry) => Object.values(entry).some((groups) => Array.isArray(groups) && groups.some((g) => (g?.hooks ?? []).some((h) => isOwned(h?.command))));
9
+ // Drop any handler that runs our emitter; an entry left with no events is removed.
10
+ function stripOwned(cfg) {
11
+ const out = {};
12
+ for (const [name, raw] of Object.entries(cfg)) {
13
+ const entry = asEntry(raw);
14
+ if (!entry || !isOurs(entry)) {
15
+ out[name] = raw;
16
+ continue;
17
+ }
18
+ const kept = {};
19
+ for (const [k, v] of Object.entries(entry)) {
20
+ if (!Array.isArray(v)) {
21
+ kept[k] = v;
22
+ continue;
23
+ }
24
+ const groups = v.map((g) => ({ ...g, hooks: (g?.hooks ?? []).filter((h) => !isOwned(h?.command)) })).filter((g) => g.hooks.length > 0);
25
+ if (groups.length > 0)
26
+ kept[k] = groups;
27
+ }
28
+ if (Object.values(kept).some(Array.isArray))
29
+ out[name] = kept;
30
+ }
31
+ return out;
32
+ }
33
+ export const antigravityInstaller = {
34
+ id: "antigravity",
35
+ configPath,
36
+ install(ctx) {
37
+ const path = configPath(ctx);
38
+ const cfg = readJsonConfig(path);
39
+ const previous = asEntry(cfg[ENTRY]);
40
+ const disabled = previous && isOurs(previous) && previous.enabled === false;
41
+ const next = stripOwned(cfg);
42
+ if (ENTRY in next)
43
+ throw new Error(`${path} already has a non-kontexta "${ENTRY}" entry; rename it and retry`);
44
+ const entry = {
45
+ PostToolUse: [{ matcher: "run_command|ask_question", hooks: [{ type: "command", command: emitCommand(ctx, "antigravity"), timeout: 5 }] }],
46
+ };
47
+ if (disabled)
48
+ entry.enabled = false;
49
+ next[ENTRY] = entry;
50
+ const changed = writeJsonConfig(path, next, ctx.dryRun);
51
+ return { agent: "antigravity", path, changed, notes: ["Antigravity hook payloads carry no prompt or reply text, so only shell commands and questions are captured."] };
52
+ },
53
+ uninstall(ctx) {
54
+ const path = configPath(ctx);
55
+ if (!existsSync(path))
56
+ return { agent: "antigravity", path, changed: false, notes: [] };
57
+ const cfg = readJsonConfig(path);
58
+ const changed = writeJsonConfig(path, stripOwned(cfg), ctx.dryRun);
59
+ return { agent: "antigravity", path, changed, notes: [] };
60
+ },
61
+ status(ctx) {
62
+ const path = configPath(ctx);
63
+ const notes = [];
64
+ let installed = false;
65
+ try {
66
+ const entry = asEntry(readJsonConfig(path)[ENTRY]);
67
+ installed = !!entry && isOurs(entry);
68
+ }
69
+ catch (e) {
70
+ notes.push(e.message);
71
+ }
72
+ return { agent: "antigravity", path, installed, notes };
73
+ },
74
+ };
75
+ //# sourceMappingURL=antigravity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"antigravity.js","sourceRoot":"","sources":["../../../src/hooks/installers/antigravity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEzF,sIAAsI;AACtI,MAAM,KAAK,GAAG,kBAAkB,CAAC;AAMjC,MAAM,UAAU,GAAG,CAAC,GAAe,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AAC1F,MAAM,OAAO,GAAG,CAAC,CAAU,EAAgB,EAAE,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACtH,MAAM,MAAM,GAAG,CAAC,KAAY,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAK,MAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAEpL,mFAAmF;AACnF,SAAS,UAAU,CAAC,GAA4B;IAC9C,MAAM,GAAG,GAA4B,EAAE,CAAC;IACxC,KAAK,MAAM,CA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AE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;QACxF,MAAM,GAAG,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;QACjC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QACnE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,GAAG;QACR,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;QAC7B,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACnD,SAAS,GAAG,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YAAC,KAAK,CAAC,IAAI,CAAE,CAAW,CAAC,OAAO,CAAC,CAAC;QAAC,CAAC;QACjD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IAC1D,CAAC;CACF,CAAC"}
@@ -6,7 +6,7 @@ export const codexInstaller = groupedInstaller({
6
6
  { name: "UserPromptSubmit" },
7
7
  { name: "Stop" },
8
8
  { name: "SubagentStop" },
9
- { name: "PostToolUse", matcher: "shell|local_shell|exec_command" },
9
+ { name: "PostToolUse", matcher: "Bash|shell|local_shell|exec_command" },
10
10
  ],
11
11
  notes: [
12
12
  "Codex only runs hooks you have trusted: open Codex and run /hooks to review and trust the kontexta hooks (trust is tied to the hook's content, so re-trust after reinstalling or moving node).",
@@ -1 +1 @@
1
- {"version":3,"file":"codex.js","sourceRoot":"","sources":["../../../src/hooks/installers/codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;IAC7C,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;IACjC,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,cAAc,EAAE;QACxB,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,gCAAgC,EAAE;KACnE;IACD,KAAK,EAAE;QACL,gMAAgM;QAChM,+FAA+F;KAChG;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"codex.js","sourceRoot":"","sources":["../../../src/hooks/installers/codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;IAC7C,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;IACjC,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,cAAc,EAAE;QACxB,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,qCAAqC,EAAE;KACxE;IACD,KAAK,EAAE;QACL,gMAAgM;QAChM,+FAA+F;KAChG;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/copilot.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAC;AAQxD,eAAO,MAAM,gBAAgB,EAAE,SAyB9B,CAAC"}
1
+ {"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/copilot.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAC;AAQxD,eAAO,MAAM,gBAAgB,EAAE,SA0B9B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { join } from "node:path";
2
2
  import { existsSync, unlinkSync } from "node:fs";
3
- import { emitCommand, isOwned, readJsonConfig, writeJsonConfig } from "./json-config.js";
3
+ import { emitCommand, psEmitCommand, isOwned, readJsonConfig, writeJsonConfig } from "./json-config.js";
4
4
  const EVENTS = ["userPromptSubmitted", "subagentStop", "postToolUse"];
5
5
  // Copilot reads $COPILOT_HOME/hooks when set; a container host install can't see the host's environment, so it always uses <home>/.copilot.
6
6
  const baseDir = (ctx) => (!ctx.hostDataDir && process.env.COPILOT_HOME ? process.env.COPILOT_HOME : join(ctx.home, ".copilot"));
@@ -11,8 +11,9 @@ export const copilotInstaller = {
11
11
  install(ctx) {
12
12
  const path = configPath(ctx);
13
13
  const hooks = {};
14
+ // Only the documented per-OS keys: Copilot runs the one for the current OS, and a generic `command` alongside could make it run twice.
14
15
  for (const ev of EVENTS)
15
- hooks[ev] = [{ type: "command", command: emitCommand(ctx, "copilot", ev), timeoutSec: 5 }];
16
+ hooks[ev] = [{ type: "command", bash: emitCommand(ctx, "copilot", ev), powershell: psEmitCommand(ctx, "copilot", ev), timeoutSec: 5 }];
16
17
  const changed = writeJsonConfig(path, { version: 1, hooks }, ctx.dryRun);
17
18
  return { agent: "copilot", path, changed, notes: ["Copilot main-agent replies are not exposed to hooks yet (agentStop carries only a transcript path); subagent replies, prompts and shell commands are captured."] };
18
19
  },
@@ -30,7 +31,7 @@ export const copilotInstaller = {
30
31
  const notes = [];
31
32
  try {
32
33
  const hooks = readJsonConfig(path).hooks;
33
- installed = EVENTS.every((ev) => (hooks?.[ev] ?? []).some((h) => isOwned(h?.command) || isOwned(h?.bash)));
34
+ installed = EVENTS.every((ev) => (hooks?.[ev] ?? []).some((h) => isOwned(h?.command) || isOwned(h?.bash) || isOwned(h?.powershell)));
34
35
  }
35
36
  catch (e) {
36
37
  notes.push(e.message);
@@ -1 +1 @@
1
- {"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../../src/hooks/installers/copilot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEzF,MAAM,MAAM,GAAG,CAAC,qBAAqB,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;AACtE,4IAA4I;AAC5I,MAAM,OAAO,GAAG,CAAC,GAAe,EAAU,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;AACpJ,MAAM,UAAU,GAAG,CAAC,GAAe,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;AAErF,MAAM,CAAC,MAAM,gBAAgB,GAAc;IACzC,EAAE,EAAE,SAAS;IACb,UAAU;IACV,OAAO,CAAC,GAAG;QACT,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;QAC7B,MAAM,KAAK,GAA4B,EAAE,CAAC;QAC1C,KAAK,MAAM,EAAE,IAAI,MAAM;YAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,GAAG,EAAE,SAAS,EA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AC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;QACvI,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YAAC,KAAK,CAAC,IAAI,CAAE,CAAW,CAAC,OAAO,CAAC,CAAC;QAAC,CAAC;QACjD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IACtD,CAAC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/gemini.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,gCAS1B,CAAC"}
1
+ {"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/gemini.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,gCAQ1B,CAAC"}
@@ -7,6 +7,5 @@ export const geminiInstaller = groupedInstaller({
7
7
  { name: "AfterAgent" },
8
8
  { name: "AfterTool", matcher: "run_shell_command" },
9
9
  ],
10
- notes: ["Gemini parses hook stdout as JSON; the emitter prints nothing, so no action needed."],
11
10
  });
12
11
  //# sourceMappingURL=gemini.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gemini.js","sourceRoot":"","sources":["../../../src/hooks/installers/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC;IAC9C,EAAE,EAAE,QAAQ;IACZ,OAAO,EAAE,CAAC,SAAS,EAAE,eAAe,CAAC;IACrC,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,aAAa,EAAE;QACvB,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,mBAAmB,EAAE;KACpD;IACD,KAAK,EAAE,CAAC,qFAAqF,CAAC;CAC/F,CAAC,CAAC"}
1
+ {"version":3,"file":"gemini.js","sourceRoot":"","sources":["../../../src/hooks/installers/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC;IAC9C,EAAE,EAAE,QAAQ;IACZ,OAAO,EAAE,CAAC,SAAS,EAAE,eAAe,CAAC;IACrC,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,aAAa,EAAE;QACvB,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,mBAAmB,EAAE;KACpD;CACF,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Installer } from "./types.js";
2
+ export declare const hermesInstaller: Installer;
3
+ //# sourceMappingURL=hermes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hermes.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/hermes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAC;AAmDxD,eAAO,MAAM,eAAe,EAAE,SAyC7B,CAAC"}