kontexta 5.1.3 → 6.0.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 (543) hide show
  1. package/bundle/standalone/CHANGELOG.md +51 -0
  2. package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
  3. package/bundle/standalone/apps/web/.next/app-build-manifest.json +99 -92
  4. package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +13 -12
  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/required-server-files.json +1 -0
  8. package/bundle/standalone/apps/web/.next/routes-manifest.json +8 -0
  9. package/bundle/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  10. package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  12. package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +4 -4
  13. package/bundle/standalone/apps/web/.next/server/app/api/about/route.js.nft.json +1 -1
  14. package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
  15. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route.js +1 -1
  16. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route.js.nft.json +1 -1
  17. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route_client-reference-manifest.js +1 -1
  18. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route.js +1 -0
  19. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route.js.nft.json +1 -0
  20. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route_client-reference-manifest.js +1 -0
  21. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route.js +1 -1
  22. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route.js.nft.json +1 -1
  23. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route_client-reference-manifest.js +1 -1
  24. package/bundle/standalone/apps/web/.next/server/app/api/agents/route.js +1 -1
  25. package/bundle/standalone/apps/web/.next/server/app/api/agents/route.js.nft.json +1 -1
  26. package/bundle/standalone/apps/web/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
  27. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  28. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  29. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  30. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  31. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js.nft.json +1 -1
  32. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
  33. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  34. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  35. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js.nft.json +1 -1
  36. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
  37. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js.nft.json +1 -1
  38. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
  39. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js.nft.json +1 -1
  40. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
  41. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js.nft.json +1 -1
  42. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
  43. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js.nft.json +1 -1
  44. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
  45. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js.nft.json +1 -1
  46. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
  47. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js.nft.json +1 -1
  48. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
  49. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js.nft.json +1 -1
  50. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
  51. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js.nft.json +1 -1
  52. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
  53. package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js.nft.json +1 -1
  54. package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
  55. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js.nft.json +1 -1
  56. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
  57. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js.nft.json +1 -1
  58. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
  59. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route.js.nft.json +1 -1
  60. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
  61. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js.nft.json +1 -1
  62. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
  63. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route.js.nft.json +1 -1
  64. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
  65. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js.nft.json +1 -1
  66. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
  67. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js.nft.json +1 -1
  68. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
  69. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js.nft.json +1 -1
  70. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
  71. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js.nft.json +1 -1
  72. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
  73. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js.nft.json +1 -1
  74. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
  75. package/bundle/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -1
  76. package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
  77. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js.nft.json +1 -1
  78. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
  79. package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js +1 -1
  80. package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js.nft.json +1 -1
  81. package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
  82. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js.nft.json +1 -1
  83. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
  84. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js +1 -1
  85. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js.nft.json +1 -1
  86. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
  87. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js.nft.json +1 -1
  88. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
  89. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js.nft.json +1 -1
  90. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
  91. package/bundle/standalone/apps/web/.next/server/app/api/health/route.js.nft.json +1 -1
  92. package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  93. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js +9 -9
  94. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js.nft.json +1 -1
  95. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
  96. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
  97. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js.nft.json +1 -1
  98. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
  99. package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js.nft.json +1 -1
  100. package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.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.nft.json +1 -1
  104. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
  105. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js.nft.json +1 -1
  106. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
  107. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js.nft.json +1 -1
  108. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
  109. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js.nft.json +1 -1
  110. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
  111. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  112. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
  113. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js.nft.json +1 -1
  114. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
  115. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -1
  116. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
  117. package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -1
  118. package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  119. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -1
  120. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
  121. package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -1
  122. package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
  123. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js.nft.json +1 -1
  124. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
  125. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js.nft.json +1 -1
  126. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
  127. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route.js.nft.json +1 -1
  128. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
  129. package/bundle/standalone/apps/web/.next/server/app/api/search/route.js.nft.json +1 -1
  130. package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  131. package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js.nft.json +1 -1
  132. package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  133. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route.js.nft.json +1 -1
  134. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
  135. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route.js.nft.json +1 -1
  136. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
  137. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route.js.nft.json +1 -1
  138. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
  139. package/bundle/standalone/apps/web/.next/server/app/apple-icon.png/route.js.nft.json +1 -1
  140. package/bundle/standalone/apps/web/.next/server/app/calendar/page.js +1 -1
  141. package/bundle/standalone/apps/web/.next/server/app/calendar/page.js.nft.json +1 -1
  142. package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
  143. package/bundle/standalone/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  144. package/bundle/standalone/apps/web/.next/server/app/icon.png/route.js.nft.json +1 -1
  145. package/bundle/standalone/apps/web/.next/server/app/login/page.js.nft.json +1 -1
  146. package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
  147. package/bundle/standalone/apps/web/.next/server/app/page.js +4 -4
  148. package/bundle/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
  149. package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  150. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page.js.nft.json +1 -1
  151. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
  152. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
  153. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +4 -4
  154. package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +13 -12
  155. package/bundle/standalone/apps/web/.next/server/chunks/3668.js +2 -2
  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/{layout-da10917c290d5da7.js → layout-b3fc3a7cf96952bd.js} +1 -1
  223. package/bundle/standalone/apps/web/.next/static/chunks/app/page-f2e6293531d0db55.js +1 -0
  224. package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-e920054b7eb00274.js +1 -0
  225. package/bundle/standalone/apps/web/.next/static/css/{c2dc6e054d3457fa.css → c9d10f1f97d629ff.css} +2 -2
  226. package/bundle/standalone/apps/web/package.json +6 -5
  227. package/bundle/standalone/apps/web/server.js +1 -1
  228. package/bundle/standalone/apps/web/src/lib/mcp-tools.json +126 -118
  229. package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +28 -185
  230. package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-reference.md +207 -0
  231. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +20 -20
  232. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -1
  233. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.d.ts +3 -0
  234. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.d.ts.map +1 -0
  235. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.js +166 -0
  236. package/bundle/standalone/node_modules/kontexta-mcp/dist/connect-cli.js.map +1 -0
  237. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js +1 -1
  238. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js.map +1 -1
  239. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js +1 -1
  240. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js +1 -1
  241. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js.map +1 -1
  242. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js +2 -2
  243. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js.map +1 -1
  244. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +26 -26
  245. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks/emit.mjs +39 -2
  246. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js +1 -1
  247. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-block.js.map +1 -1
  248. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js +2 -2
  249. package/bundle/standalone/node_modules/kontexta-mcp/dist/hooks-cli.js.map +1 -1
  250. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +240 -94
  251. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
  252. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +8 -8
  253. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js.map +1 -1
  254. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js +1 -1
  255. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js +1 -1
  256. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +2 -2
  257. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/011-journal-files-in-kb.sql +2 -0
  258. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/012-agents-mcp.sql +6 -0
  259. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js +1 -1
  260. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js.map +1 -1
  261. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.d.ts +7 -0
  262. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.d.ts.map +1 -0
  263. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.js +13 -0
  264. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.js.map +1 -0
  265. package/bundle/standalone/node_modules/kontexta-mcp/package.json +5 -2
  266. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts +5 -0
  267. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts.map +1 -1
  268. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +84 -25
  269. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js.map +1 -1
  270. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +28 -185
  271. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-reference.md +207 -0
  272. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts +25 -1
  273. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts.map +1 -1
  274. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js +159 -32
  275. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js.map +1 -1
  276. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/011-journal-files-in-kb.sql +2 -0
  277. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/012-agents-mcp.sql +6 -0
  278. package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.d.ts +71 -0
  279. package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.d.ts.map +1 -0
  280. package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.js +192 -0
  281. package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.js.map +1 -0
  282. package/bundle/standalone/node_modules/kxta-core/dist/decision/index.d.ts +9 -0
  283. package/bundle/standalone/node_modules/kxta-core/dist/decision/index.d.ts.map +1 -0
  284. package/bundle/standalone/node_modules/kxta-core/dist/decision/index.js +10 -0
  285. package/bundle/standalone/node_modules/kxta-core/dist/decision/index.js.map +1 -0
  286. package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.d.ts +20 -0
  287. package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.d.ts.map +1 -0
  288. package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.js +124 -0
  289. package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.js.map +1 -0
  290. package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.d.ts +20 -0
  291. package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.d.ts.map +1 -0
  292. package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.js +28 -0
  293. package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.js.map +1 -0
  294. package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.d.ts +30 -0
  295. package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.d.ts.map +1 -0
  296. package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.js +57 -0
  297. package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.js.map +1 -0
  298. package/bundle/standalone/node_modules/kxta-core/dist/decision/types.d.ts +42 -0
  299. package/bundle/standalone/node_modules/kxta-core/dist/decision/types.d.ts.map +1 -0
  300. package/bundle/standalone/node_modules/kxta-core/dist/decision/types.js +7 -0
  301. package/bundle/standalone/node_modules/kxta-core/dist/decision/types.js.map +1 -0
  302. package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts +3 -1
  303. package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts.map +1 -1
  304. package/bundle/standalone/node_modules/kxta-core/dist/files/index.js +10 -1
  305. package/bundle/standalone/node_modules/kxta-core/dist/files/index.js.map +1 -1
  306. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts +19 -2
  307. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.d.ts.map +1 -1
  308. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js +15 -15
  309. package/bundle/standalone/node_modules/kxta-core/dist/hooks/agents.js.map +1 -1
  310. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts +2 -0
  311. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.d.ts.map +1 -1
  312. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js +5 -5
  313. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js.map +1 -1
  314. package/bundle/standalone/node_modules/kxta-core/dist/hooks/emit.mjs +39 -2
  315. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts +2 -2
  316. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.d.ts.map +1 -1
  317. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js +1 -1
  318. package/bundle/standalone/node_modules/kxta-core/dist/hooks/index.js.map +1 -1
  319. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.d.ts +3 -0
  320. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.d.ts.map +1 -0
  321. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.js +75 -0
  322. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/antigravity.js.map +1 -0
  323. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js +1 -1
  324. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/codex.js.map +1 -1
  325. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.d.ts.map +1 -1
  326. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js +4 -3
  327. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/copilot.js.map +1 -1
  328. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.d.ts.map +1 -1
  329. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js +0 -1
  330. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/gemini.js.map +1 -1
  331. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.d.ts +3 -0
  332. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.d.ts.map +1 -0
  333. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.js +107 -0
  334. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/hermes.js.map +1 -0
  335. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.d.ts.map +1 -1
  336. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js +4 -0
  337. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/index.js.map +1 -1
  338. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts +2 -0
  339. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.d.ts.map +1 -1
  340. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js +27 -13
  341. package/bundle/standalone/node_modules/kxta-core/dist/hooks/installers/json-config.js.map +1 -1
  342. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts +11 -0
  343. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.d.ts.map +1 -1
  344. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js +29 -3
  345. package/bundle/standalone/node_modules/kxta-core/dist/hooks/registry.js.map +1 -1
  346. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts +5 -1
  347. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts.map +1 -1
  348. package/bundle/standalone/node_modules/kxta-core/dist/index.js +5 -1
  349. package/bundle/standalone/node_modules/kxta-core/dist/index.js.map +1 -1
  350. package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.d.ts +3 -0
  351. package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.d.ts.map +1 -0
  352. package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.js +27 -0
  353. package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.js.map +1 -0
  354. package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.d.ts +41 -0
  355. package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.d.ts.map +1 -0
  356. package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.js +140 -0
  357. package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.js.map +1 -0
  358. package/bundle/standalone/node_modules/kxta-core/dist/inference/index.d.ts +14 -0
  359. package/bundle/standalone/node_modules/kxta-core/dist/inference/index.d.ts.map +1 -0
  360. package/bundle/standalone/node_modules/kxta-core/dist/inference/index.js +15 -0
  361. package/bundle/standalone/node_modules/kxta-core/dist/inference/index.js.map +1 -0
  362. package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.d.ts +132 -0
  363. package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.d.ts.map +1 -0
  364. package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.js +311 -0
  365. package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.js.map +1 -0
  366. package/bundle/standalone/node_modules/kxta-core/dist/inference/types.d.ts +53 -0
  367. package/bundle/standalone/node_modules/kxta-core/dist/inference/types.d.ts.map +1 -0
  368. package/bundle/standalone/node_modules/kxta-core/dist/inference/types.js +6 -0
  369. package/bundle/standalone/node_modules/kxta-core/dist/inference/types.js.map +1 -0
  370. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js +26 -10
  371. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js.map +1 -1
  372. package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.d.ts +31 -0
  373. package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.d.ts.map +1 -0
  374. package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.js +94 -0
  375. package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.js.map +1 -0
  376. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js +2 -2
  377. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js.map +1 -1
  378. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.d.ts.map +1 -1
  379. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js +5 -0
  380. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js.map +1 -1
  381. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.d.ts.map +1 -1
  382. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js +30 -5
  383. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js.map +1 -1
  384. package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +2 -2
  385. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts +34 -0
  386. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts.map +1 -1
  387. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js +251 -6
  388. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js.map +1 -1
  389. package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts +1 -0
  390. package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts.map +1 -1
  391. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.d.ts +8 -0
  392. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.d.ts.map +1 -0
  393. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.js +8 -0
  394. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/alerts.js.map +1 -0
  395. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.d.ts +31 -0
  396. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.d.ts.map +1 -0
  397. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.js +55 -0
  398. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/entry.js.map +1 -0
  399. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.d.ts +10 -0
  400. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.d.ts.map +1 -0
  401. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.js +7 -0
  402. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/index.js.map +1 -0
  403. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.d.ts +46 -0
  404. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.d.ts.map +1 -0
  405. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.js +113 -0
  406. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/install.js.map +1 -0
  407. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.d.ts +3 -0
  408. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.d.ts.map +1 -0
  409. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.js +115 -0
  410. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/claude-code.js.map +1 -0
  411. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.d.ts +3 -0
  412. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.d.ts.map +1 -0
  413. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.js +76 -0
  414. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/codex.js.map +1 -0
  415. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.d.ts +3 -0
  416. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.d.ts.map +1 -0
  417. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.js +64 -0
  418. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/continue.js.map +1 -0
  419. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.d.ts +3 -0
  420. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.d.ts.map +1 -0
  421. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.js +90 -0
  422. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/hermes.js.map +1 -0
  423. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.d.ts +3 -0
  424. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.d.ts.map +1 -0
  425. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.js +17 -0
  426. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/index.js.map +1 -0
  427. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts +31 -0
  428. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.d.ts.map +1 -0
  429. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.js +136 -0
  430. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/installers/json-servers.js.map +1 -0
  431. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.d.ts +5 -0
  432. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.d.ts.map +1 -0
  433. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.js +19 -0
  434. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/rules.js.map +1 -0
  435. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.d.ts +5 -0
  436. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.d.ts.map +1 -0
  437. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.js +62 -0
  438. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.js.map +1 -0
  439. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.d.ts +55 -0
  440. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.d.ts.map +1 -0
  441. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.js +2 -0
  442. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/types.js.map +1 -0
  443. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.d.ts +3 -0
  444. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.d.ts.map +1 -0
  445. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.js +25 -0
  446. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/write.js.map +1 -0
  447. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.d.ts +5 -0
  448. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.d.ts.map +1 -0
  449. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.js +17 -0
  450. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/yaml-config.js.map +1 -0
  451. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.d.ts.map +1 -1
  452. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js +12 -1
  453. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js.map +1 -1
  454. package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.js +1 -1
  455. package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.d.ts +29 -0
  456. package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.d.ts.map +1 -0
  457. package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.js +68 -0
  458. package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.js.map +1 -0
  459. package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.d.ts +57 -0
  460. package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.d.ts.map +1 -0
  461. package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.js +199 -0
  462. package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.js.map +1 -0
  463. package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.d.ts +7 -0
  464. package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.d.ts.map +1 -0
  465. package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.js +8 -0
  466. package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.js.map +1 -0
  467. package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.d.ts +50 -0
  468. package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.d.ts.map +1 -0
  469. package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.js +2 -0
  470. package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.js.map +1 -0
  471. package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts +5 -0
  472. package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts.map +1 -1
  473. package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js +1 -1
  474. package/bundle/standalone/node_modules/kxta-core/package.json +7 -3
  475. package/bundle/standalone/node_modules/kxta-publish/package.json +3 -3
  476. package/bundle/standalone/package.json +3 -2
  477. package/dist/connect-AL5DTU3K.js +22 -0
  478. package/dist/index.js +7 -1
  479. package/dist/{start-RJVUJT4B.js → start-GP4ERBBP.js} +7 -0
  480. package/package.json +6 -2
  481. package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-0cc6597bb67aea3b.js +0 -1
  482. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/hooks/route-0cc6597bb67aea3b.js +0 -1
  483. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/[id]/route-0cc6597bb67aea3b.js +0 -1
  484. package/bundle/standalone/apps/web/.next/static/chunks/app/api/agents/route-0cc6597bb67aea3b.js +0 -1
  485. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-0cc6597bb67aea3b.js +0 -1
  486. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-0cc6597bb67aea3b.js +0 -1
  487. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-0cc6597bb67aea3b.js +0 -1
  488. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-0cc6597bb67aea3b.js +0 -1
  489. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-0cc6597bb67aea3b.js +0 -1
  490. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-0cc6597bb67aea3b.js +0 -1
  491. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-0cc6597bb67aea3b.js +0 -1
  492. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-0cc6597bb67aea3b.js +0 -1
  493. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-0cc6597bb67aea3b.js +0 -1
  494. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-0cc6597bb67aea3b.js +0 -1
  495. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-0cc6597bb67aea3b.js +0 -1
  496. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-0cc6597bb67aea3b.js +0 -1
  497. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-0cc6597bb67aea3b.js +0 -1
  498. package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-0cc6597bb67aea3b.js +0 -1
  499. package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-0cc6597bb67aea3b.js +0 -1
  500. package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-0cc6597bb67aea3b.js +0 -1
  501. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/backlinks/route-0cc6597bb67aea3b.js +0 -1
  502. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-0cc6597bb67aea3b.js +0 -1
  503. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-html/route-0cc6597bb67aea3b.js +0 -1
  504. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-0cc6597bb67aea3b.js +0 -1
  505. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-0cc6597bb67aea3b.js +0 -1
  506. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-0cc6597bb67aea3b.js +0 -1
  507. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-0cc6597bb67aea3b.js +0 -1
  508. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-0cc6597bb67aea3b.js +0 -1
  509. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-0cc6597bb67aea3b.js +0 -1
  510. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-0cc6597bb67aea3b.js +0 -1
  511. package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-0cc6597bb67aea3b.js +0 -1
  512. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-0cc6597bb67aea3b.js +0 -1
  513. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-0cc6597bb67aea3b.js +0 -1
  514. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-0cc6597bb67aea3b.js +0 -1
  515. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-0cc6597bb67aea3b.js +0 -1
  516. package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-0cc6597bb67aea3b.js +0 -1
  517. package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-0cc6597bb67aea3b.js +0 -1
  518. package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-0cc6597bb67aea3b.js +0 -1
  519. package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-0cc6597bb67aea3b.js +0 -1
  520. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-0cc6597bb67aea3b.js +0 -1
  521. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-0cc6597bb67aea3b.js +0 -1
  522. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-0cc6597bb67aea3b.js +0 -1
  523. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-0cc6597bb67aea3b.js +0 -1
  524. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-0cc6597bb67aea3b.js +0 -1
  525. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-0cc6597bb67aea3b.js +0 -1
  526. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-0cc6597bb67aea3b.js +0 -1
  527. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-0cc6597bb67aea3b.js +0 -1
  528. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-0cc6597bb67aea3b.js +0 -1
  529. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-0cc6597bb67aea3b.js +0 -1
  530. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-0cc6597bb67aea3b.js +0 -1
  531. package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-0cc6597bb67aea3b.js +0 -1
  532. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-0cc6597bb67aea3b.js +0 -1
  533. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reports/resources/[name]/route-0cc6597bb67aea3b.js +0 -1
  534. package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-0cc6597bb67aea3b.js +0 -1
  535. package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-0cc6597bb67aea3b.js +0 -1
  536. package/bundle/standalone/apps/web/.next/static/chunks/app/api/version-check/route-0cc6597bb67aea3b.js +0 -1
  537. package/bundle/standalone/apps/web/.next/static/chunks/app/api/welcome/route-0cc6597bb67aea3b.js +0 -1
  538. package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-0cc6597bb67aea3b.js +0 -1
  539. package/bundle/standalone/apps/web/.next/static/chunks/app/calendar/page-f9542f9f518f9257.js +0 -1
  540. package/bundle/standalone/apps/web/.next/static/chunks/app/page-19695d4fd9fa5c0a.js +0 -1
  541. package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-0cc6597bb67aea3b.js +0 -1
  542. /package/bundle/standalone/apps/web/.next/static/{KgyobLEcr42ig4jXUMcNO → olhhWqI4356zOu5Kz_S1K}/_buildManifest.js +0 -0
  543. /package/bundle/standalone/apps/web/.next/static/{KgyobLEcr42ig4jXUMcNO → olhhWqI4356zOu5Kz_S1K}/_ssgManifest.js +0 -0
@@ -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,IAAI,EAAE;IAC3E,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE;IAC7E,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,oBAAoB,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE;IACtF,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE;IACzE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE;IAC9E,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE;IACvE,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE;IACvE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc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E,IAAI,EAAE;IACjH,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE;IAC1G,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE;IACpG,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE;IAC/F,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,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;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,MAAM,CAG/G;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,IAAI,CAAA;CAAE,GAAG,UAAU,CA+BrI"}
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;AAGtG,eAAO,MAAM,kBAAkB,GAAI,GAAG,MAAM,KAAG,OAA8C,CAAC;AAE9F,eAAO,MAAM,EAAE,GAAI,GAAG,MAAM,KAAG,MAAyC,CAAC;AAEzE,wBAAgB,oBAAoB,CAAC,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,MAAM,CAG/G;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,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}`;
@@ -24,11 +24,11 @@ export function buildHooksBlock(o) {
24
24
  lines.push(`Kontexta can capture your conversation and shell commands for ${names}. The container cannot edit files on your machine, so run the docker command from the dashboard's Configure → AGENTS tab (or hooks.alerts[].docker_command) on the host.`);
25
25
  }
26
26
  else {
27
- // admin.onboard_agent only accepts agents that have a rules-file scaffold; the rest must use the CLI.
27
+ // admin_onboard_agent only accepts agents that have a rules-file scaffold; the rest must use the CLI.
28
28
  const viaTool = missing.filter((a) => agentMeta(a.agent)?.onboardable);
29
29
  const cliOnly = missing.filter((a) => !agentMeta(a.agent)?.onboardable);
30
30
  const install = viaTool.length > 0
31
- ? `After the user agrees, call admin.onboard_agent with hooks:true, confirm:true and target_agent set to one of (${viaTool.map((a) => a.agent).join(" | ")}), or run \`kontexta hooks install --agent <id>\`.`
31
+ ? `After the user agrees, call admin_onboard_agent with hooks:true, confirm:true and target_agent set to one of (${viaTool.map((a) => a.agent).join(" | ")}), or run \`kontexta hooks install --agent <id>\`.`
32
32
  : "After the user agrees, run `kontexta hooks install --agent <id>`.";
33
33
  const cli = cliOnly.length > 0
34
34
  ? ` For ${cliOnly.map((a) => a.name).join(", ")}, run ${cliOnly.map((a) => `\`kontexta hooks install --agent ${a.agent}\``).join(" / ")} (onboarding does not cover ${cliOnly.length > 1 ? "them" : "it"}).`
@@ -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,S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AC,IAAI,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,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,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5H,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtD,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;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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AG,UAAU,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAAE,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,C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AAC,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,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"}
@@ -0,0 +1,107 @@
1
+ import { existsSync, readFileSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { Document, isMap, isSeq, isScalar, parseDocument } from "yaml";
4
+ import { emitCommand, isOwned, writeTextConfig } from "./json-config.js";
5
+ // Hermes shell hooks live in the profile's config.yaml under `hooks:`; each (event, command) pair is approved by the user on first use.
6
+ const EVENTS = [
7
+ { name: "pre_llm_call" },
8
+ { name: "post_llm_call" },
9
+ { name: "post_tool_call", matcher: "terminal" },
10
+ { name: "subagent_stop" },
11
+ ];
12
+ const configPath = (ctx) => join(ctx.home, ".hermes", "config.yaml");
13
+ function load(path) {
14
+ const text = existsSync(path) ? readFileSync(path, "utf8") : "";
15
+ if (text.trim() === "")
16
+ return new Document({});
17
+ const doc = parseDocument(text);
18
+ if (doc.errors.length > 0)
19
+ throw new Error(`${path} is not valid YAML (${doc.errors[0].message.split("\n")[0]}); refusing to overwrite it`);
20
+ if (!isMap(doc.contents))
21
+ throw new Error(`${path} top level is not a mapping; refusing to overwrite it`);
22
+ return doc;
23
+ }
24
+ function hooksMap(doc, path, create) {
25
+ const existing = doc.get("hooks", true);
26
+ if (existing === undefined || (isScalar(existing) && existing.value === null)) {
27
+ if (!create)
28
+ return null;
29
+ const created = doc.createNode({});
30
+ doc.set("hooks", created);
31
+ return created;
32
+ }
33
+ if (!isMap(existing))
34
+ throw new Error(`${path} has a "hooks" key that is not a mapping; refusing to change it`);
35
+ return existing;
36
+ }
37
+ const isOwnedItem = (item) => isMap(item) && isOwned(item.get("command"));
38
+ // Drop every list item that runs our emitter; emptied events and an emptied hooks block are removed.
39
+ function stripOwned(doc, path) {
40
+ const hooks = hooksMap(doc, path, false);
41
+ if (!hooks)
42
+ return;
43
+ for (const pair of [...hooks.items]) {
44
+ const key = isScalar(pair.key) ? String(pair.key.value) : "";
45
+ if (key === "outbound" || !isSeq(pair.value))
46
+ continue;
47
+ const seq = pair.value;
48
+ if (!seq.items.some(isOwnedItem))
49
+ continue;
50
+ seq.items = seq.items.filter((item) => !isOwnedItem(item));
51
+ if (seq.items.length === 0)
52
+ hooks.delete(key);
53
+ }
54
+ if (hooks.items.length === 0)
55
+ doc.delete("hooks");
56
+ }
57
+ export const hermesInstaller = {
58
+ id: "hermes",
59
+ configPath,
60
+ install(ctx) {
61
+ const path = configPath(ctx);
62
+ const doc = load(path);
63
+ stripOwned(doc, path);
64
+ const hooks = hooksMap(doc, path, true);
65
+ for (const e of EVENTS) {
66
+ const item = {};
67
+ if (e.matcher)
68
+ item.matcher = e.matcher;
69
+ item.command = emitCommand(ctx, "hermes");
70
+ item.timeout = 5;
71
+ const seq = hooks.get(e.name, true);
72
+ if (seq === undefined)
73
+ hooks.set(e.name, doc.createNode([item]));
74
+ else if (isSeq(seq))
75
+ seq.add(doc.createNode(item));
76
+ else
77
+ throw new Error(`${path} has a hooks.${e.name} that is not a list; refusing to change it`);
78
+ }
79
+ const changed = writeTextConfig(path, doc.toString({ lineWidth: 0 }), ctx.dryRun);
80
+ return {
81
+ agent: "hermes", path, changed,
82
+ notes: ["Hermes asks you to approve each new hook on first use: approve the kontexta hooks when prompted, or run `hermes hooks list` to check. Gateway and other non-interactive runs need `--accept-hooks`, HERMES_ACCEPT_HOOKS=1 or `hooks_auto_accept: true`.", "Only the default profile's config.yaml is changed."],
83
+ };
84
+ },
85
+ uninstall(ctx) {
86
+ const path = configPath(ctx);
87
+ if (!existsSync(path))
88
+ return { agent: "hermes", path, changed: false, notes: [] };
89
+ const doc = load(path);
90
+ stripOwned(doc, path);
91
+ return { agent: "hermes", path, changed: writeTextConfig(path, doc.toString({ lineWidth: 0 }), ctx.dryRun), notes: [] };
92
+ },
93
+ status(ctx) {
94
+ const path = configPath(ctx);
95
+ const notes = [];
96
+ let installed = false;
97
+ try {
98
+ const hooks = hooksMap(load(path), path, false);
99
+ installed = !!hooks && EVENTS.every((e) => { const seq = hooks.get(e.name, true); return isSeq(seq) && seq.items.some(isOwnedItem); });
100
+ }
101
+ catch (e) {
102
+ notes.push(e.message);
103
+ }
104
+ return { agent: "hermes", path, installed, notes };
105
+ },
106
+ };
107
+ //# sourceMappingURL=hermes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hermes.js","sourceRoot":"","sources":["../../../src/hooks/installers/hermes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC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AAI,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,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;YAChD,SAAS,GAAG,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzI,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YAAC,KAAK,CAAC,IAAI,CAAE,CAAW,CAAC,OAAO,CAAC,CAAC;QAAC,CAAC;QACjD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IACrD,CAAC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAS5C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAShD,CAAC;AACF,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAW5C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAWhD,CAAC;AACF,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -5,6 +5,8 @@ import { cursorInstaller, windsurfInstaller } from "./flat.js";
5
5
  import { copilotInstaller } from "./copilot.js";
6
6
  import { clineInstaller } from "./cline.js";
7
7
  import { opencodeInstaller } from "./opencode.js";
8
+ import { antigravityInstaller } from "./antigravity.js";
9
+ import { hermesInstaller } from "./hermes.js";
8
10
  export const INSTALLERS = {
9
11
  "claude-code": claudeCodeInstaller,
10
12
  gemini: geminiInstaller,
@@ -14,6 +16,8 @@ export const INSTALLERS = {
14
16
  windsurf: windsurfInstaller,
15
17
  cline: clineInstaller,
16
18
  opencode: opencodeInstaller,
19
+ antigravity: antigravityInstaller,
20
+ hermes: hermesInstaller,
17
21
  };
18
22
  export { MalformedConfigError, emitCommand, isOwned } from "./json-config.js";
19
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/installers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,CAAC,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B,CAAC"}
@@ -7,7 +7,9 @@ export declare class MalformedConfigError extends Error {
7
7
  export declare const hostDirOf: (ctx: InstallCtx) => string;
8
8
  export declare const nodeCmdOf: (ctx: InstallCtx) => string;
9
9
  export declare function emitCommand(ctx: InstallCtx, agent: string, event?: string): string;
10
+ export declare function psEmitCommand(ctx: InstallCtx, agent: string, event?: string): string;
10
11
  export declare function isOwned(command: unknown): boolean;
11
12
  export declare function readJsonConfig(path: string): Record<string, unknown>;
13
+ export declare function writeTextConfig(path: string, next: string, dryRun?: boolean): boolean;
12
14
  export declare function writeJsonConfig(path: string, value: unknown, dryRun?: boolean): boolean;
13
15
  //# sourceMappingURL=json-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-config.d.ts","sourceRoot":"","sources":["../../../src/hooks/installers/json-config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAE3C,qBAAa,oBAAqB,SAAQ,KAAK;IAC1B,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAGhD;AAID,eAAO,MAAM,SAAS,GAAI,KAAK,UAAU,KAAG,MAAwC,CAAC;AAGrF,eAAO,MAAM,SAAS,GAAI,KAAK,UAAU,KAAG,MAAsE,CAAC;AAEnH,wBAAgB,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAMlF;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAWpE;AAWD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAQ,GAAG,OAAO,CA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