kontexta 4.3.1

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 (788) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +58 -0
  3. package/bundle/standalone/CHANGELOG.md +382 -0
  4. package/bundle/standalone/apps/web/.next/BUILD_ID +1 -0
  5. package/bundle/standalone/apps/web/.next/app-build-manifest.json +403 -0
  6. package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +60 -0
  7. package/bundle/standalone/apps/web/.next/build-manifest.json +33 -0
  8. package/bundle/standalone/apps/web/.next/package.json +1 -0
  9. package/bundle/standalone/apps/web/.next/prerender-manifest.json +148 -0
  10. package/bundle/standalone/apps/web/.next/react-loadable-manifest.json +300 -0
  11. package/bundle/standalone/apps/web/.next/required-server-files.json +344 -0
  12. package/bundle/standalone/apps/web/.next/routes-manifest.json +210 -0
  13. package/bundle/standalone/apps/web/.next/server/app/_not-found/page.js +2 -0
  14. package/bundle/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -0
  15. package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  16. package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -0
  17. package/bundle/standalone/apps/web/.next/server/app/_not-found.meta +8 -0
  18. package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +22 -0
  19. package/bundle/standalone/apps/web/.next/server/app/api/about/route.js +1 -0
  20. package/bundle/standalone/apps/web/.next/server/app/api/about/route.js.nft.json +1 -0
  21. package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -0
  22. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js +1 -0
  23. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js.nft.json +1 -0
  24. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -0
  25. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route.js +1 -0
  26. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route.js.nft.json +1 -0
  27. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -0
  28. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js +1 -0
  29. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js.nft.json +1 -0
  30. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -0
  31. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js +1 -0
  32. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js.nft.json +1 -0
  33. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -0
  34. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js +1 -0
  35. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js.nft.json +1 -0
  36. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -0
  37. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js +1 -0
  38. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js.nft.json +1 -0
  39. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -0
  40. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js +1 -0
  41. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js.nft.json +1 -0
  42. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -0
  43. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js +1 -0
  44. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js.nft.json +1 -0
  45. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -0
  46. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js +1 -0
  47. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js.nft.json +1 -0
  48. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -0
  49. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js +1 -0
  50. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js.nft.json +1 -0
  51. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -0
  52. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js +1 -0
  53. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js.nft.json +1 -0
  54. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -0
  55. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js +1 -0
  56. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js.nft.json +1 -0
  57. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -0
  58. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js +1 -0
  59. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js.nft.json +1 -0
  60. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -0
  61. package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js +1 -0
  62. package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js.nft.json +1 -0
  63. package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -0
  64. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js +1 -0
  65. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js.nft.json +1 -0
  66. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -0
  67. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js +1 -0
  68. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js.nft.json +1 -0
  69. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -0
  70. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js +1 -0
  71. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js.nft.json +1 -0
  72. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -0
  73. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js +1 -0
  74. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js.nft.json +1 -0
  75. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -0
  76. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js +1 -0
  77. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js.nft.json +1 -0
  78. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -0
  79. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js +1 -0
  80. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js.nft.json +1 -0
  81. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -0
  82. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js +1 -0
  83. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js.nft.json +1 -0
  84. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -0
  85. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js +1 -0
  86. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js.nft.json +1 -0
  87. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -0
  88. package/bundle/standalone/apps/web/.next/server/app/api/files/route.js +1 -0
  89. package/bundle/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -0
  90. package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -0
  91. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js +1 -0
  92. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js.nft.json +1 -0
  93. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -0
  94. package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js +1 -0
  95. package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js.nft.json +1 -0
  96. package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -0
  97. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js +1 -0
  98. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js.nft.json +1 -0
  99. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -0
  100. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js +1 -0
  101. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js.nft.json +1 -0
  102. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -0
  103. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js +1 -0
  104. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js.nft.json +1 -0
  105. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -0
  106. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js +1 -0
  107. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js.nft.json +1 -0
  108. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -0
  109. package/bundle/standalone/apps/web/.next/server/app/api/health/route.js +1 -0
  110. package/bundle/standalone/apps/web/.next/server/app/api/health/route.js.nft.json +1 -0
  111. package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -0
  112. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js +17 -0
  113. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js.nft.json +1 -0
  114. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -0
  115. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -0
  116. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js.nft.json +1 -0
  117. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -0
  118. package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js +1 -0
  119. package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js.nft.json +1 -0
  120. package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -0
  121. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js +1 -0
  122. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js.nft.json +1 -0
  123. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -0
  124. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js +1 -0
  125. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js.nft.json +1 -0
  126. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -0
  127. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js +1 -0
  128. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js.nft.json +1 -0
  129. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -0
  130. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js +1 -0
  131. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js.nft.json +1 -0
  132. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -0
  133. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js +1 -0
  134. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js.nft.json +1 -0
  135. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -0
  136. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js +1 -0
  137. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -0
  138. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -0
  139. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js +1 -0
  140. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js.nft.json +1 -0
  141. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -0
  142. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js +1 -0
  143. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -0
  144. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -0
  145. package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js +1 -0
  146. package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -0
  147. package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -0
  148. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js +1 -0
  149. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -0
  150. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -0
  151. package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js +1 -0
  152. package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -0
  153. package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -0
  154. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js +1 -0
  155. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js.nft.json +1 -0
  156. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -0
  157. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js +1 -0
  158. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js.nft.json +1 -0
  159. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -0
  160. package/bundle/standalone/apps/web/.next/server/app/api/search/route.js +1 -0
  161. package/bundle/standalone/apps/web/.next/server/app/api/search/route.js.nft.json +1 -0
  162. package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -0
  163. package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js +1 -0
  164. package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js.nft.json +1 -0
  165. package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -0
  166. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route.js +1 -0
  167. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route.js.nft.json +1 -0
  168. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -0
  169. package/bundle/standalone/apps/web/.next/server/app/apple-icon.png/route.js +1 -0
  170. package/bundle/standalone/apps/web/.next/server/app/apple-icon.png/route.js.nft.json +1 -0
  171. package/bundle/standalone/apps/web/.next/server/app/apple-icon.png.body +0 -0
  172. package/bundle/standalone/apps/web/.next/server/app/apple-icon.png.meta +1 -0
  173. package/bundle/standalone/apps/web/.next/server/app/calendar/page.js +2 -0
  174. package/bundle/standalone/apps/web/.next/server/app/calendar/page.js.nft.json +1 -0
  175. package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -0
  176. package/bundle/standalone/apps/web/.next/server/app/favicon.ico/route.js +1 -0
  177. package/bundle/standalone/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  178. package/bundle/standalone/apps/web/.next/server/app/favicon.ico.body +0 -0
  179. package/bundle/standalone/apps/web/.next/server/app/favicon.ico.meta +1 -0
  180. package/bundle/standalone/apps/web/.next/server/app/icon.png/route.js +1 -0
  181. package/bundle/standalone/apps/web/.next/server/app/icon.png/route.js.nft.json +1 -0
  182. package/bundle/standalone/apps/web/.next/server/app/icon.png.body +0 -0
  183. package/bundle/standalone/apps/web/.next/server/app/icon.png.meta +1 -0
  184. package/bundle/standalone/apps/web/.next/server/app/login/page.js +2 -0
  185. package/bundle/standalone/apps/web/.next/server/app/login/page.js.nft.json +1 -0
  186. package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -0
  187. package/bundle/standalone/apps/web/.next/server/app/page.js +9 -0
  188. package/bundle/standalone/apps/web/.next/server/app/page.js.nft.json +1 -0
  189. package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -0
  190. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page.js +6 -0
  191. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page.js.nft.json +1 -0
  192. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -0
  193. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +5 -0
  194. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.meta +7 -0
  195. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +29 -0
  196. package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +60 -0
  197. package/bundle/standalone/apps/web/.next/server/chunks/1018.js +115 -0
  198. package/bundle/standalone/apps/web/.next/server/chunks/1096.js +23 -0
  199. package/bundle/standalone/apps/web/.next/server/chunks/1139.js +1 -0
  200. package/bundle/standalone/apps/web/.next/server/chunks/128.js +1 -0
  201. package/bundle/standalone/apps/web/.next/server/chunks/1921.js +1 -0
  202. package/bundle/standalone/apps/web/.next/server/chunks/2034.js +36 -0
  203. package/bundle/standalone/apps/web/.next/server/chunks/2048.js +64 -0
  204. package/bundle/standalone/apps/web/.next/server/chunks/2065.js +1 -0
  205. package/bundle/standalone/apps/web/.next/server/chunks/2144.js +1 -0
  206. package/bundle/standalone/apps/web/.next/server/chunks/2151.js +1 -0
  207. package/bundle/standalone/apps/web/.next/server/chunks/2161.js +153 -0
  208. package/bundle/standalone/apps/web/.next/server/chunks/2450.js +1 -0
  209. package/bundle/standalone/apps/web/.next/server/chunks/246.js +1 -0
  210. package/bundle/standalone/apps/web/.next/server/chunks/260.js +24 -0
  211. package/bundle/standalone/apps/web/.next/server/chunks/269.js +1 -0
  212. package/bundle/standalone/apps/web/.next/server/chunks/2792.js +287 -0
  213. package/bundle/standalone/apps/web/.next/server/chunks/2923.js +22 -0
  214. package/bundle/standalone/apps/web/.next/server/chunks/2944.js +77 -0
  215. package/bundle/standalone/apps/web/.next/server/chunks/3334.js +141 -0
  216. package/bundle/standalone/apps/web/.next/server/chunks/3668.js +9 -0
  217. package/bundle/standalone/apps/web/.next/server/chunks/3758.js +1 -0
  218. package/bundle/standalone/apps/web/.next/server/chunks/3833.js +1 -0
  219. package/bundle/standalone/apps/web/.next/server/chunks/3990.js +2 -0
  220. package/bundle/standalone/apps/web/.next/server/chunks/4274.js +1 -0
  221. package/bundle/standalone/apps/web/.next/server/chunks/4290.js +252 -0
  222. package/bundle/standalone/apps/web/.next/server/chunks/4347.js +1 -0
  223. package/bundle/standalone/apps/web/.next/server/chunks/4550.js +226 -0
  224. package/bundle/standalone/apps/web/.next/server/chunks/4824.js +166 -0
  225. package/bundle/standalone/apps/web/.next/server/chunks/509.js +43 -0
  226. package/bundle/standalone/apps/web/.next/server/chunks/5104.js +215 -0
  227. package/bundle/standalone/apps/web/.next/server/chunks/5186.js +1 -0
  228. package/bundle/standalone/apps/web/.next/server/chunks/5400.js +1 -0
  229. package/bundle/standalone/apps/web/.next/server/chunks/5558.js +80 -0
  230. package/bundle/standalone/apps/web/.next/server/chunks/6496.js +93 -0
  231. package/bundle/standalone/apps/web/.next/server/chunks/6693.js +148 -0
  232. package/bundle/standalone/apps/web/.next/server/chunks/6775.js +1 -0
  233. package/bundle/standalone/apps/web/.next/server/chunks/7020.js +29 -0
  234. package/bundle/standalone/apps/web/.next/server/chunks/7098.js +1 -0
  235. package/bundle/standalone/apps/web/.next/server/chunks/7117.js +1 -0
  236. package/bundle/standalone/apps/web/.next/server/chunks/7204.js +104 -0
  237. package/bundle/standalone/apps/web/.next/server/chunks/7342.js +1 -0
  238. package/bundle/standalone/apps/web/.next/server/chunks/7629.js +80 -0
  239. package/bundle/standalone/apps/web/.next/server/chunks/7784.js +1 -0
  240. package/bundle/standalone/apps/web/.next/server/chunks/8286.js +1 -0
  241. package/bundle/standalone/apps/web/.next/server/chunks/8349.js +1 -0
  242. package/bundle/standalone/apps/web/.next/server/chunks/8620.js +1 -0
  243. package/bundle/standalone/apps/web/.next/server/chunks/8675.js +1 -0
  244. package/bundle/standalone/apps/web/.next/server/chunks/8860.js +24 -0
  245. package/bundle/standalone/apps/web/.next/server/chunks/8896.js +1 -0
  246. package/bundle/standalone/apps/web/.next/server/chunks/8950.js +5 -0
  247. package/bundle/standalone/apps/web/.next/server/chunks/8960.js +79 -0
  248. package/bundle/standalone/apps/web/.next/server/chunks/899.js +2 -0
  249. package/bundle/standalone/apps/web/.next/server/chunks/9069.js +1 -0
  250. package/bundle/standalone/apps/web/.next/server/chunks/9315.js +34 -0
  251. package/bundle/standalone/apps/web/.next/server/chunks/9372.js +1 -0
  252. package/bundle/standalone/apps/web/.next/server/chunks/9555.js +6 -0
  253. package/bundle/standalone/apps/web/.next/server/chunks/9571.js +9 -0
  254. package/bundle/standalone/apps/web/.next/server/chunks/9681.js +1 -0
  255. package/bundle/standalone/apps/web/.next/server/chunks/97.js +90 -0
  256. package/bundle/standalone/apps/web/.next/server/chunks/9797.js +1 -0
  257. package/bundle/standalone/apps/web/.next/server/chunks/989.js +1 -0
  258. package/bundle/standalone/apps/web/.next/server/functions-config-manifest.json +4 -0
  259. package/bundle/standalone/apps/web/.next/server/instrumentation.js +1 -0
  260. package/bundle/standalone/apps/web/.next/server/middleware-build-manifest.js +1 -0
  261. package/bundle/standalone/apps/web/.next/server/middleware-manifest.json +6 -0
  262. package/bundle/standalone/apps/web/.next/server/middleware-react-loadable-manifest.js +1 -0
  263. package/bundle/standalone/apps/web/.next/server/next-font-manifest.js +1 -0
  264. package/bundle/standalone/apps/web/.next/server/next-font-manifest.json +1 -0
  265. package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -0
  266. package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -0
  267. package/bundle/standalone/apps/web/.next/server/pages/_app.js +1 -0
  268. package/bundle/standalone/apps/web/.next/server/pages/_app.js.nft.json +1 -0
  269. package/bundle/standalone/apps/web/.next/server/pages/_document.js +1 -0
  270. package/bundle/standalone/apps/web/.next/server/pages/_document.js.nft.json +1 -0
  271. package/bundle/standalone/apps/web/.next/server/pages/_error.js +19 -0
  272. package/bundle/standalone/apps/web/.next/server/pages/_error.js.nft.json +1 -0
  273. package/bundle/standalone/apps/web/.next/server/pages-manifest.json +6 -0
  274. package/bundle/standalone/apps/web/.next/server/server-reference-manifest.js +1 -0
  275. package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -0
  276. package/bundle/standalone/apps/web/.next/server/webpack-runtime.js +1 -0
  277. package/bundle/standalone/apps/web/.next/static/TwaiLte1NHCp3gRYUc-go/_buildManifest.js +1 -0
  278. package/bundle/standalone/apps/web/.next/static/TwaiLte1NHCp3gRYUc-go/_ssgManifest.js +1 -0
  279. package/bundle/standalone/apps/web/.next/static/chunks/02852184.a3b62691cdc349cf.js +80 -0
  280. package/bundle/standalone/apps/web/.next/static/chunks/1226.49d217dc03a1770f.js +1 -0
  281. package/bundle/standalone/apps/web/.next/static/chunks/1286.8da72129ab3aa8fd.js +77 -0
  282. package/bundle/standalone/apps/web/.next/static/chunks/1403cfaa-33c2b74c127517c2.js +1 -0
  283. package/bundle/standalone/apps/web/.next/static/chunks/171.a4732e77e941b2cd.js +1 -0
  284. package/bundle/standalone/apps/web/.next/static/chunks/1733.3a6dae5cc3785d0b.js +1 -0
  285. package/bundle/standalone/apps/web/.next/static/chunks/2081.313746c212bfc5c9.js +1 -0
  286. package/bundle/standalone/apps/web/.next/static/chunks/2086.0b05a08670aae1db.js +226 -0
  287. package/bundle/standalone/apps/web/.next/static/chunks/2377-956eb9b333193ac6.js +1 -0
  288. package/bundle/standalone/apps/web/.next/static/chunks/3034.e1171cbeeed85923.js +5 -0
  289. package/bundle/standalone/apps/web/.next/static/chunks/3068-293b252158eb9d15.js +1 -0
  290. package/bundle/standalone/apps/web/.next/static/chunks/3297.7664b51ee69c7513.js +23 -0
  291. package/bundle/standalone/apps/web/.next/static/chunks/338.77f45c7810885961.js +115 -0
  292. package/bundle/standalone/apps/web/.next/static/chunks/3471.7790a4192ef84a1a.js +1 -0
  293. package/bundle/standalone/apps/web/.next/static/chunks/3514.14aa56fe189fd052.js +1 -0
  294. package/bundle/standalone/apps/web/.next/static/chunks/3696.5d462babda0c0b9e.js +34 -0
  295. package/bundle/standalone/apps/web/.next/static/chunks/408.82356d1e11e880d9.js +93 -0
  296. package/bundle/standalone/apps/web/.next/static/chunks/46.9922e50f2158e1a9.js +1 -0
  297. package/bundle/standalone/apps/web/.next/static/chunks/4798.d851e8027b2db933.js +287 -0
  298. package/bundle/standalone/apps/web/.next/static/chunks/4908.2fed0b6fbc391b55.js +1 -0
  299. package/bundle/standalone/apps/web/.next/static/chunks/4915.97b9c59991c26fa7.js +1 -0
  300. package/bundle/standalone/apps/web/.next/static/chunks/492.234794e12315e4bb.js +1 -0
  301. package/bundle/standalone/apps/web/.next/static/chunks/4936.c65cdd63440ade70.js +1 -0
  302. package/bundle/standalone/apps/web/.next/static/chunks/5127.e5e917b5cb9c4e52.js +1 -0
  303. package/bundle/standalone/apps/web/.next/static/chunks/5141.93a42ebd1580da60.js +1 -0
  304. package/bundle/standalone/apps/web/.next/static/chunks/5159-7bcf68ab11c1091e.js +1 -0
  305. package/bundle/standalone/apps/web/.next/static/chunks/5514.f969d5c86c590512.js +73 -0
  306. package/bundle/standalone/apps/web/.next/static/chunks/559.c4615787d977bf47.js +1 -0
  307. package/bundle/standalone/apps/web/.next/static/chunks/5667.e0097b2112faa29b.js +1 -0
  308. package/bundle/standalone/apps/web/.next/static/chunks/6367.fd87728718a97771.js +1 -0
  309. package/bundle/standalone/apps/web/.next/static/chunks/6394.c2172a59c01bd0bd.js +1 -0
  310. package/bundle/standalone/apps/web/.next/static/chunks/6396.d288334e13a70139.js +24 -0
  311. package/bundle/standalone/apps/web/.next/static/chunks/6483.88695b22b21b10f1.js +9 -0
  312. package/bundle/standalone/apps/web/.next/static/chunks/6561.176d35e576df3f9d.js +1 -0
  313. package/bundle/standalone/apps/web/.next/static/chunks/6584.87fc375a0510108d.js +104 -0
  314. package/bundle/standalone/apps/web/.next/static/chunks/693.71c8b97896628a66.js +1 -0
  315. package/bundle/standalone/apps/web/.next/static/chunks/6934.45e50410379dc377.js +79 -0
  316. package/bundle/standalone/apps/web/.next/static/chunks/6a2ca82e.c26cb70da3106c1c.js +1 -0
  317. package/bundle/standalone/apps/web/.next/static/chunks/6b5bb80a.c511153adad62faf.js +1 -0
  318. package/bundle/standalone/apps/web/.next/static/chunks/7216.d1b096d2a35967fd.js +1 -0
  319. package/bundle/standalone/apps/web/.next/static/chunks/7342.fcb52cf5f7ce0e17.js +29 -0
  320. package/bundle/standalone/apps/web/.next/static/chunks/7541.43ff810bb14fd5c0.js +43 -0
  321. package/bundle/standalone/apps/web/.next/static/chunks/7563.376c2692778a62b3.js +148 -0
  322. package/bundle/standalone/apps/web/.next/static/chunks/7756.b0dd00e996549a39.js +24 -0
  323. package/bundle/standalone/apps/web/.next/static/chunks/8052.69c066e56bbd5d6c.js +64 -0
  324. package/bundle/standalone/apps/web/.next/static/chunks/8080c6f4.ed360e7424d6fe99.js +62 -0
  325. package/bundle/standalone/apps/web/.next/static/chunks/8280.81c2b0d61e27a576.js +1 -0
  326. package/bundle/standalone/apps/web/.next/static/chunks/8547.5bef8f1afd162429.js +90 -0
  327. package/bundle/standalone/apps/web/.next/static/chunks/8602.0b457ca55bd2c08e.js +141 -0
  328. package/bundle/standalone/apps/web/.next/static/chunks/8794.401ab179d53aa5d5.js +80 -0
  329. package/bundle/standalone/apps/web/.next/static/chunks/9053.c953d758ff5dc6ee.js +1 -0
  330. package/bundle/standalone/apps/web/.next/static/chunks/9122.cf7fd16fc8d7fad0.js +36 -0
  331. package/bundle/standalone/apps/web/.next/static/chunks/9255.78469e88fa06e186.js +1 -0
  332. package/bundle/standalone/apps/web/.next/static/chunks/944.ba7dcdca1c72114a.js +166 -0
  333. package/bundle/standalone/apps/web/.next/static/chunks/9794-16144bed6de4bf26.js +1 -0
  334. package/bundle/standalone/apps/web/.next/static/chunks/9852.e1937ca867a99475.js +215 -0
  335. package/bundle/standalone/apps/web/.next/static/chunks/9981.8fa0bb90a26c66eb.js +1 -0
  336. package/bundle/standalone/apps/web/.next/static/chunks/a118fb18.9c3b4291884abee0.js +119 -0
  337. package/bundle/standalone/apps/web/.next/static/chunks/app/_not-found/page-972b01bf23ed0942.js +1 -0
  338. package/bundle/standalone/apps/web/.next/static/chunks/app/api/about/route-c1d02d72a16497fa.js +1 -0
  339. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/login/route-c1d02d72a16497fa.js +1 -0
  340. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/logout/route-c1d02d72a16497fa.js +1 -0
  341. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/setup/route-c1d02d72a16497fa.js +1 -0
  342. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/status/route-c1d02d72a16497fa.js +1 -0
  343. package/bundle/standalone/apps/web/.next/static/chunks/app/api/auth/token/route-c1d02d72a16497fa.js +1 -0
  344. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/conflicts/route-c1d02d72a16497fa.js +1 -0
  345. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/[id]/route-c1d02d72a16497fa.js +1 -0
  346. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/entities/route-c1d02d72a16497fa.js +1 -0
  347. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/[id]/route-c1d02d72a16497fa.js +1 -0
  348. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/events/route-c1d02d72a16497fa.js +1 -0
  349. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/ics/route-c1d02d72a16497fa.js +1 -0
  350. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/links/route-c1d02d72a16497fa.js +1 -0
  351. package/bundle/standalone/apps/web/.next/static/chunks/app/api/calendar/settings/route-c1d02d72a16497fa.js +1 -0
  352. package/bundle/standalone/apps/web/.next/static/chunks/app/api/clip/route-c1d02d72a16497fa.js +1 -0
  353. package/bundle/standalone/apps/web/.next/static/chunks/app/api/docker-config/route-c1d02d72a16497fa.js +1 -0
  354. package/bundle/standalone/apps/web/.next/static/chunks/app/api/export/zip/route-c1d02d72a16497fa.js +1 -0
  355. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/download/route-c1d02d72a16497fa.js +1 -0
  356. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/export-pdf/route-c1d02d72a16497fa.js +1 -0
  357. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/restore/route-c1d02d72a16497fa.js +1 -0
  358. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/history/route-c1d02d72a16497fa.js +1 -0
  359. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/move/route-c1d02d72a16497fa.js +1 -0
  360. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/[id]/route-c1d02d72a16497fa.js +1 -0
  361. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/route-c1d02d72a16497fa.js +1 -0
  362. package/bundle/standalone/apps/web/.next/static/chunks/app/api/files/upload/route-c1d02d72a16497fa.js +1 -0
  363. package/bundle/standalone/apps/web/.next/static/chunks/app/api/folders/route-c1d02d72a16497fa.js +1 -0
  364. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/remote/route-c1d02d72a16497fa.js +1 -0
  365. package/bundle/standalone/apps/web/.next/static/chunks/app/api/git/sync-all/route-c1d02d72a16497fa.js +1 -0
  366. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/test-pattern/route-c1d02d72a16497fa.js +1 -0
  367. package/bundle/standalone/apps/web/.next/static/chunks/app/api/hands/validate/route-c1d02d72a16497fa.js +1 -0
  368. package/bundle/standalone/apps/web/.next/static/chunks/app/api/health/route-c1d02d72a16497fa.js +1 -0
  369. package/bundle/standalone/apps/web/.next/static/chunks/app/api/install-snippets/route-c1d02d72a16497fa.js +1 -0
  370. package/bundle/standalone/apps/web/.next/static/chunks/app/api/mcp-tools/route-c1d02d72a16497fa.js +1 -0
  371. package/bundle/standalone/apps/web/.next/static/chunks/app/api/profile/route-c1d02d72a16497fa.js +1 -0
  372. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/hands-config/route-c1d02d72a16497fa.js +1 -0
  373. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-config/route-c1d02d72a16497fa.js +1 -0
  374. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/journal-status/route-c1d02d72a16497fa.js +1 -0
  375. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/onboard/route-c1d02d72a16497fa.js +1 -0
  376. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/refresh/route-c1d02d72a16497fa.js +1 -0
  377. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/route-c1d02d72a16497fa.js +1 -0
  378. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/[id]/sync/route-c1d02d72a16497fa.js +1 -0
  379. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/onboard/route-c1d02d72a16497fa.js +1 -0
  380. package/bundle/standalone/apps/web/.next/static/chunks/app/api/projects/route-c1d02d72a16497fa.js +1 -0
  381. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/html/route-c1d02d72a16497fa.js +1 -0
  382. package/bundle/standalone/apps/web/.next/static/chunks/app/api/publish/route-c1d02d72a16497fa.js +1 -0
  383. package/bundle/standalone/apps/web/.next/static/chunks/app/api/refresh/route-c1d02d72a16497fa.js +1 -0
  384. package/bundle/standalone/apps/web/.next/static/chunks/app/api/reindex/route-c1d02d72a16497fa.js +1 -0
  385. package/bundle/standalone/apps/web/.next/static/chunks/app/api/search/route-c1d02d72a16497fa.js +1 -0
  386. package/bundle/standalone/apps/web/.next/static/chunks/app/api/tags/route-c1d02d72a16497fa.js +1 -0
  387. package/bundle/standalone/apps/web/.next/static/chunks/app/api/ws-config/route-c1d02d72a16497fa.js +1 -0
  388. package/bundle/standalone/apps/web/.next/static/chunks/app/calendar/page-180fba7a5e149d79.js +1 -0
  389. package/bundle/standalone/apps/web/.next/static/chunks/app/layout-9a9569fc88cd95d2.js +1 -0
  390. package/bundle/standalone/apps/web/.next/static/chunks/app/login/page-d299785546ea6ab6.js +1 -0
  391. package/bundle/standalone/apps/web/.next/static/chunks/app/page-2b151d30cb29d2e5.js +1 -0
  392. package/bundle/standalone/apps/web/.next/static/chunks/app/preview/motifs/page-c1d02d72a16497fa.js +1 -0
  393. package/bundle/standalone/apps/web/.next/static/chunks/d185f5cd.71b8f43667fbf60d.js +153 -0
  394. package/bundle/standalone/apps/web/.next/static/chunks/framework-d5846a86e24c79c9.js +1 -0
  395. package/bundle/standalone/apps/web/.next/static/chunks/main-0205543fb3b69ad5.js +1 -0
  396. package/bundle/standalone/apps/web/.next/static/chunks/main-app-20d292116f434ff3.js +1 -0
  397. package/bundle/standalone/apps/web/.next/static/chunks/pages/_app-fe81927504f65cde.js +1 -0
  398. package/bundle/standalone/apps/web/.next/static/chunks/pages/_error-2973b69c43483f0b.js +1 -0
  399. package/bundle/standalone/apps/web/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  400. package/bundle/standalone/apps/web/.next/static/chunks/webpack-8818fea786a923fe.js +1 -0
  401. package/bundle/standalone/apps/web/.next/static/css/c00514317f297826.css +3 -0
  402. package/bundle/standalone/apps/web/.next/static/media/0aa834ed78bf6d07-s.woff2 +0 -0
  403. package/bundle/standalone/apps/web/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  404. package/bundle/standalone/apps/web/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  405. package/bundle/standalone/apps/web/.next/static/media/438aa629764e75f3-s.woff2 +0 -0
  406. package/bundle/standalone/apps/web/.next/static/media/4c9affa5bc8f420e-s.p.woff2 +0 -0
  407. package/bundle/standalone/apps/web/.next/static/media/51251f8b9793cdb3-s.woff2 +0 -0
  408. package/bundle/standalone/apps/web/.next/static/media/67957d42bae0796d-s.woff2 +0 -0
  409. package/bundle/standalone/apps/web/.next/static/media/875ae681bfde4580-s.woff2 +0 -0
  410. package/bundle/standalone/apps/web/.next/static/media/886030b0b59bc5a7-s.woff2 +0 -0
  411. package/bundle/standalone/apps/web/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  412. package/bundle/standalone/apps/web/.next/static/media/939c4f875ee75fbb-s.woff2 +0 -0
  413. package/bundle/standalone/apps/web/.next/static/media/9b01607e2f794050-s.p.woff2 +0 -0
  414. package/bundle/standalone/apps/web/.next/static/media/a5ded5fed781d3c1-s.woff2 +0 -0
  415. package/bundle/standalone/apps/web/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  416. package/bundle/standalone/apps/web/.next/static/media/bb3ef058b751a6ad-s.p.woff2 +0 -0
  417. package/bundle/standalone/apps/web/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  418. package/bundle/standalone/apps/web/.next/static/media/cc978ac5ee68c2b6-s.woff2 +0 -0
  419. package/bundle/standalone/apps/web/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  420. package/bundle/standalone/apps/web/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  421. package/bundle/standalone/apps/web/.next/static/media/e857b654a2caa584-s.woff2 +0 -0
  422. package/bundle/standalone/apps/web/.next/static/media/f28ff2d15b1e9bd8-s.woff2 +0 -0
  423. package/bundle/standalone/apps/web/.next/static/media/f911b923c6adde36-s.woff2 +0 -0
  424. package/bundle/standalone/apps/web/package.json +66 -0
  425. package/bundle/standalone/apps/web/public/logo-dark.png +0 -0
  426. package/bundle/standalone/apps/web/public/logo.png +0 -0
  427. package/bundle/standalone/apps/web/server.js +38 -0
  428. package/bundle/standalone/apps/web/src/lib/mcp-tools.json +1941 -0
  429. package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +185 -0
  430. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.d.ts +2 -0
  431. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.d.ts.map +1 -0
  432. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +205 -0
  433. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js.map +1 -0
  434. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/confirm.d.ts +25 -0
  435. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/confirm.d.ts.map +1 -0
  436. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/confirm.js +40 -0
  437. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/confirm.js.map +1 -0
  438. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.d.ts +13 -0
  439. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.d.ts.map +1 -0
  440. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js +250 -0
  441. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/executor.js.map +1 -0
  442. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.d.ts +11 -0
  443. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.d.ts.map +1 -0
  444. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js +39 -0
  445. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js.map +1 -0
  446. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.d.ts +4 -0
  447. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.d.ts.map +1 -0
  448. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js +164 -0
  449. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/loader.js.map +1 -0
  450. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/registry.d.ts +42 -0
  451. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/registry.d.ts.map +1 -0
  452. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/registry.js +143 -0
  453. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/registry.js.map +1 -0
  454. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.d.ts +16 -0
  455. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.d.ts.map +1 -0
  456. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js +86 -0
  457. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/sanitizer.js.map +1 -0
  458. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.d.ts +2 -0
  459. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.d.ts.map +1 -0
  460. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +202 -0
  461. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js.map +1 -0
  462. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/types.d.ts +50 -0
  463. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/types.d.ts.map +1 -0
  464. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/types.js +2 -0
  465. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/types.js.map +1 -0
  466. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.d.ts +3 -0
  467. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.d.ts.map +1 -0
  468. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +2117 -0
  469. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -0
  470. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.d.ts +31 -0
  471. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.d.ts.map +1 -0
  472. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +293 -0
  473. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js.map +1 -0
  474. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.d.ts +2 -0
  475. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.d.ts.map +1 -0
  476. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js +24 -0
  477. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js.map +1 -0
  478. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.d.ts +2 -0
  479. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.d.ts.map +1 -0
  480. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js +24 -0
  481. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js.map +1 -0
  482. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.d.ts +2 -0
  483. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.d.ts.map +1 -0
  484. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +57 -0
  485. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js.map +1 -0
  486. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/001-initial.sql +72 -0
  487. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/002-remote-git.sql +2 -0
  488. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/003-source-path-index.sql +2 -0
  489. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/004-journaling.sql +44 -0
  490. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/005-auth.sql +7 -0
  491. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/006-journal-locks.sql +11 -0
  492. package/bundle/standalone/node_modules/kontexta-mcp/dist/migrations/007-calendar.sql +49 -0
  493. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.d.ts +9 -0
  494. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.d.ts.map +1 -0
  495. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js +25 -0
  496. package/bundle/standalone/node_modules/kontexta-mcp/dist/profile-tool.js.map +1 -0
  497. package/bundle/standalone/node_modules/kontexta-mcp/dist/re2-compat.d.ts +4 -0
  498. package/bundle/standalone/node_modules/kontexta-mcp/dist/re2-compat.d.ts.map +1 -0
  499. package/bundle/standalone/node_modules/kontexta-mcp/dist/re2-compat.js +14 -0
  500. package/bundle/standalone/node_modules/kontexta-mcp/dist/re2-compat.js.map +1 -0
  501. package/bundle/standalone/node_modules/kontexta-mcp/package.json +66 -0
  502. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts +73 -0
  503. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts.map +1 -0
  504. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +436 -0
  505. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js.map +1 -0
  506. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +185 -0
  507. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts +26 -0
  508. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts.map +1 -0
  509. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js +115 -0
  510. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js.map +1 -0
  511. package/bundle/standalone/node_modules/kxta-core/dist/calendar/conflicts.d.ts +32 -0
  512. package/bundle/standalone/node_modules/kxta-core/dist/calendar/conflicts.d.ts.map +1 -0
  513. package/bundle/standalone/node_modules/kxta-core/dist/calendar/conflicts.js +129 -0
  514. package/bundle/standalone/node_modules/kxta-core/dist/calendar/conflicts.js.map +1 -0
  515. package/bundle/standalone/node_modules/kxta-core/dist/calendar/ics.d.ts +16 -0
  516. package/bundle/standalone/node_modules/kxta-core/dist/calendar/ics.d.ts.map +1 -0
  517. package/bundle/standalone/node_modules/kxta-core/dist/calendar/ics.js +73 -0
  518. package/bundle/standalone/node_modules/kxta-core/dist/calendar/ics.js.map +1 -0
  519. package/bundle/standalone/node_modules/kxta-core/dist/calendar/index.d.ts +9 -0
  520. package/bundle/standalone/node_modules/kxta-core/dist/calendar/index.d.ts.map +1 -0
  521. package/bundle/standalone/node_modules/kxta-core/dist/calendar/index.js +7 -0
  522. package/bundle/standalone/node_modules/kxta-core/dist/calendar/index.js.map +1 -0
  523. package/bundle/standalone/node_modules/kxta-core/dist/calendar/repository.d.ts +65 -0
  524. package/bundle/standalone/node_modules/kxta-core/dist/calendar/repository.d.ts.map +1 -0
  525. package/bundle/standalone/node_modules/kxta-core/dist/calendar/repository.js +219 -0
  526. package/bundle/standalone/node_modules/kxta-core/dist/calendar/repository.js.map +1 -0
  527. package/bundle/standalone/node_modules/kxta-core/dist/calendar/types.d.ts +52 -0
  528. package/bundle/standalone/node_modules/kxta-core/dist/calendar/types.d.ts.map +1 -0
  529. package/bundle/standalone/node_modules/kxta-core/dist/calendar/types.js +2 -0
  530. package/bundle/standalone/node_modules/kxta-core/dist/calendar/types.js.map +1 -0
  531. package/bundle/standalone/node_modules/kxta-core/dist/calendar/validate.d.ts +11 -0
  532. package/bundle/standalone/node_modules/kxta-core/dist/calendar/validate.d.ts.map +1 -0
  533. package/bundle/standalone/node_modules/kxta-core/dist/calendar/validate.js +39 -0
  534. package/bundle/standalone/node_modules/kxta-core/dist/calendar/validate.js.map +1 -0
  535. package/bundle/standalone/node_modules/kxta-core/dist/clip/extract.d.ts +26 -0
  536. package/bundle/standalone/node_modules/kxta-core/dist/clip/extract.d.ts.map +1 -0
  537. package/bundle/standalone/node_modules/kxta-core/dist/clip/extract.js +315 -0
  538. package/bundle/standalone/node_modules/kxta-core/dist/clip/extract.js.map +1 -0
  539. package/bundle/standalone/node_modules/kxta-core/dist/clip/frontmatter.d.ts +10 -0
  540. package/bundle/standalone/node_modules/kxta-core/dist/clip/frontmatter.d.ts.map +1 -0
  541. package/bundle/standalone/node_modules/kxta-core/dist/clip/frontmatter.js +53 -0
  542. package/bundle/standalone/node_modules/kxta-core/dist/clip/frontmatter.js.map +1 -0
  543. package/bundle/standalone/node_modules/kxta-core/dist/clip/index.d.ts +12 -0
  544. package/bundle/standalone/node_modules/kxta-core/dist/clip/index.d.ts.map +1 -0
  545. package/bundle/standalone/node_modules/kxta-core/dist/clip/index.js +38 -0
  546. package/bundle/standalone/node_modules/kxta-core/dist/clip/index.js.map +1 -0
  547. package/bundle/standalone/node_modules/kxta-core/dist/compat/env-shim.d.ts +2 -0
  548. package/bundle/standalone/node_modules/kxta-core/dist/compat/env-shim.d.ts.map +1 -0
  549. package/bundle/standalone/node_modules/kxta-core/dist/compat/env-shim.js +26 -0
  550. package/bundle/standalone/node_modules/kxta-core/dist/compat/env-shim.js.map +1 -0
  551. package/bundle/standalone/node_modules/kxta-core/dist/compat/file-migration.d.ts +3 -0
  552. package/bundle/standalone/node_modules/kxta-core/dist/compat/file-migration.d.ts.map +1 -0
  553. package/bundle/standalone/node_modules/kxta-core/dist/compat/file-migration.js +30 -0
  554. package/bundle/standalone/node_modules/kxta-core/dist/compat/file-migration.js.map +1 -0
  555. package/bundle/standalone/node_modules/kxta-core/dist/db/index.d.ts +37 -0
  556. package/bundle/standalone/node_modules/kxta-core/dist/db/index.d.ts.map +1 -0
  557. package/bundle/standalone/node_modules/kxta-core/dist/db/index.js +182 -0
  558. package/bundle/standalone/node_modules/kxta-core/dist/db/index.js.map +1 -0
  559. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/001-initial.sql +72 -0
  560. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/002-remote-git.sql +2 -0
  561. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/003-source-path-index.sql +2 -0
  562. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/004-journaling.sql +44 -0
  563. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/005-auth.sql +7 -0
  564. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/006-journal-locks.sql +11 -0
  565. package/bundle/standalone/node_modules/kxta-core/dist/db/migrations/007-calendar.sql +49 -0
  566. package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts +84 -0
  567. package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts.map +1 -0
  568. package/bundle/standalone/node_modules/kxta-core/dist/files/index.js +631 -0
  569. package/bundle/standalone/node_modules/kxta-core/dist/files/index.js.map +1 -0
  570. package/bundle/standalone/node_modules/kxta-core/dist/files/sections.d.ts +48 -0
  571. package/bundle/standalone/node_modules/kxta-core/dist/files/sections.d.ts.map +1 -0
  572. package/bundle/standalone/node_modules/kxta-core/dist/files/sections.js +112 -0
  573. package/bundle/standalone/node_modules/kxta-core/dist/files/sections.js.map +1 -0
  574. package/bundle/standalone/node_modules/kxta-core/dist/git/index.d.ts +92 -0
  575. package/bundle/standalone/node_modules/kxta-core/dist/git/index.d.ts.map +1 -0
  576. package/bundle/standalone/node_modules/kxta-core/dist/git/index.js +801 -0
  577. package/bundle/standalone/node_modules/kxta-core/dist/git/index.js.map +1 -0
  578. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts +24 -0
  579. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts.map +1 -0
  580. package/bundle/standalone/node_modules/kxta-core/dist/index.js +22 -0
  581. package/bundle/standalone/node_modules/kxta-core/dist/index.js.map +1 -0
  582. package/bundle/standalone/node_modules/kxta-core/dist/journal/cooldown.d.ts +28 -0
  583. package/bundle/standalone/node_modules/kxta-core/dist/journal/cooldown.d.ts.map +1 -0
  584. package/bundle/standalone/node_modules/kxta-core/dist/journal/cooldown.js +61 -0
  585. package/bundle/standalone/node_modules/kxta-core/dist/journal/cooldown.js.map +1 -0
  586. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.d.ts +16 -0
  587. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.d.ts.map +1 -0
  588. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js +311 -0
  589. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js.map +1 -0
  590. package/bundle/standalone/node_modules/kxta-core/dist/journal/engine.d.ts +45 -0
  591. package/bundle/standalone/node_modules/kxta-core/dist/journal/engine.d.ts.map +1 -0
  592. package/bundle/standalone/node_modules/kxta-core/dist/journal/engine.js +198 -0
  593. package/bundle/standalone/node_modules/kxta-core/dist/journal/engine.js.map +1 -0
  594. package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.d.ts +11 -0
  595. package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.d.ts.map +1 -0
  596. package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.js +41 -0
  597. package/bundle/standalone/node_modules/kxta-core/dist/journal/git-watcher.js.map +1 -0
  598. package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.d.ts +16 -0
  599. package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.d.ts.map +1 -0
  600. package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.js +30 -0
  601. package/bundle/standalone/node_modules/kxta-core/dist/journal/high-water.js.map +1 -0
  602. package/bundle/standalone/node_modules/kxta-core/dist/journal/housekeep.d.ts +22 -0
  603. package/bundle/standalone/node_modules/kxta-core/dist/journal/housekeep.d.ts.map +1 -0
  604. package/bundle/standalone/node_modules/kxta-core/dist/journal/housekeep.js +104 -0
  605. package/bundle/standalone/node_modules/kxta-core/dist/journal/housekeep.js.map +1 -0
  606. package/bundle/standalone/node_modules/kxta-core/dist/journal/index.d.ts +27 -0
  607. package/bundle/standalone/node_modules/kxta-core/dist/journal/index.d.ts.map +1 -0
  608. package/bundle/standalone/node_modules/kxta-core/dist/journal/index.js +18 -0
  609. package/bundle/standalone/node_modules/kxta-core/dist/journal/index.js.map +1 -0
  610. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/build-failure-recovery.d.ts +3 -0
  611. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/build-failure-recovery.d.ts.map +1 -0
  612. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/build-failure-recovery.js +31 -0
  613. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/build-failure-recovery.js.map +1 -0
  614. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/error-recovery.d.ts +3 -0
  615. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/error-recovery.d.ts.map +1 -0
  616. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/error-recovery.js +31 -0
  617. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/error-recovery.js.map +1 -0
  618. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.d.ts +3 -0
  619. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.d.ts.map +1 -0
  620. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js +28 -0
  621. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/exploration.js.map +1 -0
  622. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/extra-loader.d.ts +13 -0
  623. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/extra-loader.d.ts.map +1 -0
  624. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/extra-loader.js +45 -0
  625. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/extra-loader.js.map +1 -0
  626. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/feature-development.d.ts +3 -0
  627. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/feature-development.d.ts.map +1 -0
  628. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/feature-development.js +21 -0
  629. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/feature-development.js.map +1 -0
  630. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/incident-response.d.ts +3 -0
  631. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/incident-response.d.ts.map +1 -0
  632. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/incident-response.js +21 -0
  633. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/incident-response.js.map +1 -0
  634. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/index.d.ts +16 -0
  635. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/index.d.ts.map +1 -0
  636. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/index.js +40 -0
  637. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/index.js.map +1 -0
  638. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/pivot.d.ts +3 -0
  639. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/pivot.d.ts.map +1 -0
  640. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/pivot.js +15 -0
  641. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/pivot.js.map +1 -0
  642. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.d.ts +3 -0
  643. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.d.ts.map +1 -0
  644. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js +24 -0
  645. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/read-only-investigation.js.map +1 -0
  646. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.d.ts +3 -0
  647. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.d.ts.map +1 -0
  648. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js +42 -0
  649. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js.map +1 -0
  650. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.d.ts +3 -0
  651. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.d.ts.map +1 -0
  652. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js +22 -0
  653. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js.map +1 -0
  654. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/test-cycle.d.ts +3 -0
  655. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/test-cycle.d.ts.map +1 -0
  656. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/test-cycle.js +23 -0
  657. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/test-cycle.js.map +1 -0
  658. package/bundle/standalone/node_modules/kxta-core/dist/journal/presence.d.ts +2 -0
  659. package/bundle/standalone/node_modules/kxta-core/dist/journal/presence.d.ts.map +1 -0
  660. package/bundle/standalone/node_modules/kxta-core/dist/journal/presence.js +17 -0
  661. package/bundle/standalone/node_modules/kxta-core/dist/journal/presence.js.map +1 -0
  662. package/bundle/standalone/node_modules/kxta-core/dist/journal/redact.d.ts +8 -0
  663. package/bundle/standalone/node_modules/kxta-core/dist/journal/redact.d.ts.map +1 -0
  664. package/bundle/standalone/node_modules/kxta-core/dist/journal/redact.js +40 -0
  665. package/bundle/standalone/node_modules/kxta-core/dist/journal/redact.js.map +1 -0
  666. package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.d.ts +10 -0
  667. package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.d.ts.map +1 -0
  668. package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.js +40 -0
  669. package/bundle/standalone/node_modules/kxta-core/dist/journal/renderer.js.map +1 -0
  670. package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.d.ts +30 -0
  671. package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.d.ts.map +1 -0
  672. package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.js +66 -0
  673. package/bundle/standalone/node_modules/kxta-core/dist/journal/repository.js.map +1 -0
  674. package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.d.ts +9 -0
  675. package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.d.ts.map +1 -0
  676. package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +32 -0
  677. package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js.map +1 -0
  678. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts +4 -0
  679. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts.map +1 -0
  680. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js +71 -0
  681. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js.map +1 -0
  682. package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts +59 -0
  683. package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts.map +1 -0
  684. package/bundle/standalone/node_modules/kxta-core/dist/journal/types.js +3 -0
  685. package/bundle/standalone/node_modules/kxta-core/dist/journal/types.js.map +1 -0
  686. package/bundle/standalone/node_modules/kxta-core/dist/journal/writer.d.ts +16 -0
  687. package/bundle/standalone/node_modules/kxta-core/dist/journal/writer.d.ts.map +1 -0
  688. package/bundle/standalone/node_modules/kxta-core/dist/journal/writer.js +44 -0
  689. package/bundle/standalone/node_modules/kxta-core/dist/journal/writer.js.map +1 -0
  690. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.d.ts +97 -0
  691. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.d.ts.map +1 -0
  692. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js +517 -0
  693. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js.map +1 -0
  694. package/bundle/standalone/node_modules/kxta-core/dist/metadata/settings.d.ts +13 -0
  695. package/bundle/standalone/node_modules/kxta-core/dist/metadata/settings.d.ts.map +1 -0
  696. package/bundle/standalone/node_modules/kxta-core/dist/metadata/settings.js +33 -0
  697. package/bundle/standalone/node_modules/kxta-core/dist/metadata/settings.js.map +1 -0
  698. package/bundle/standalone/node_modules/kxta-core/dist/profile/index.d.ts +23 -0
  699. package/bundle/standalone/node_modules/kxta-core/dist/profile/index.d.ts.map +1 -0
  700. package/bundle/standalone/node_modules/kxta-core/dist/profile/index.js +161 -0
  701. package/bundle/standalone/node_modules/kxta-core/dist/profile/index.js.map +1 -0
  702. package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.d.ts +34 -0
  703. package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.d.ts.map +1 -0
  704. package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.js +157 -0
  705. package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.js.map +1 -0
  706. package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts +69 -0
  707. package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts.map +1 -0
  708. package/bundle/standalone/node_modules/kxta-core/dist/types.js +5 -0
  709. package/bundle/standalone/node_modules/kxta-core/dist/types.js.map +1 -0
  710. package/bundle/standalone/node_modules/kxta-core/dist/util/extensions.d.ts +15 -0
  711. package/bundle/standalone/node_modules/kxta-core/dist/util/extensions.d.ts.map +1 -0
  712. package/bundle/standalone/node_modules/kxta-core/dist/util/extensions.js +26 -0
  713. package/bundle/standalone/node_modules/kxta-core/dist/util/extensions.js.map +1 -0
  714. package/bundle/standalone/node_modules/kxta-core/dist/util/paths.d.ts +31 -0
  715. package/bundle/standalone/node_modules/kxta-core/dist/util/paths.d.ts.map +1 -0
  716. package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js +179 -0
  717. package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js.map +1 -0
  718. package/bundle/standalone/node_modules/kxta-core/dist/util/safety.d.ts +37 -0
  719. package/bundle/standalone/node_modules/kxta-core/dist/util/safety.d.ts.map +1 -0
  720. package/bundle/standalone/node_modules/kxta-core/dist/util/safety.js +156 -0
  721. package/bundle/standalone/node_modules/kxta-core/dist/util/safety.js.map +1 -0
  722. package/bundle/standalone/node_modules/kxta-core/dist/util/tokens.d.ts +3 -0
  723. package/bundle/standalone/node_modules/kxta-core/dist/util/tokens.d.ts.map +1 -0
  724. package/bundle/standalone/node_modules/kxta-core/dist/util/tokens.js +13 -0
  725. package/bundle/standalone/node_modules/kxta-core/dist/util/tokens.js.map +1 -0
  726. package/bundle/standalone/node_modules/kxta-core/dist/watcher/index.d.ts +9 -0
  727. package/bundle/standalone/node_modules/kxta-core/dist/watcher/index.d.ts.map +1 -0
  728. package/bundle/standalone/node_modules/kxta-core/dist/watcher/index.js +214 -0
  729. package/bundle/standalone/node_modules/kxta-core/dist/watcher/index.js.map +1 -0
  730. package/bundle/standalone/node_modules/kxta-core/dist/whats-new/index.d.ts +36 -0
  731. package/bundle/standalone/node_modules/kxta-core/dist/whats-new/index.d.ts.map +1 -0
  732. package/bundle/standalone/node_modules/kxta-core/dist/whats-new/index.js +94 -0
  733. package/bundle/standalone/node_modules/kxta-core/dist/whats-new/index.js.map +1 -0
  734. package/bundle/standalone/node_modules/kxta-core/package.json +20 -0
  735. package/bundle/standalone/node_modules/kxta-publish/dist/cli.d.ts +9 -0
  736. package/bundle/standalone/node_modules/kxta-publish/dist/cli.js +139 -0
  737. package/bundle/standalone/node_modules/kxta-publish/dist/config.d.ts +25 -0
  738. package/bundle/standalone/node_modules/kxta-publish/dist/config.js +62 -0
  739. package/bundle/standalone/node_modules/kxta-publish/dist/index.d.ts +2 -0
  740. package/bundle/standalone/node_modules/kxta-publish/dist/index.js +45 -0
  741. package/bundle/standalone/node_modules/kxta-publish/dist/pipeline.d.ts +14 -0
  742. package/bundle/standalone/node_modules/kxta-publish/dist/pipeline.js +42 -0
  743. package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/endpoints.d.ts +6 -0
  744. package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/endpoints.js +112 -0
  745. package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/glossary.d.ts +2 -0
  746. package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/glossary.js +42 -0
  747. package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/mermaid.d.ts +2 -0
  748. package/bundle/standalone/node_modules/kxta-publish/dist/render/blocks/mermaid.js +17 -0
  749. package/bundle/standalone/node_modules/kxta-publish/dist/render/llms.d.ts +3 -0
  750. package/bundle/standalone/node_modules/kxta-publish/dist/render/llms.js +52 -0
  751. package/bundle/standalone/node_modules/kxta-publish/dist/render/markdown.d.ts +24 -0
  752. package/bundle/standalone/node_modules/kxta-publish/dist/render/markdown.js +87 -0
  753. package/bundle/standalone/node_modules/kxta-publish/dist/render/nav.d.ts +21 -0
  754. package/bundle/standalone/node_modules/kxta-publish/dist/render/nav.js +107 -0
  755. package/bundle/standalone/node_modules/kxta-publish/dist/render/pdf.d.ts +10 -0
  756. package/bundle/standalone/node_modules/kxta-publish/dist/render/pdf.js +70 -0
  757. package/bundle/standalone/node_modules/kxta-publish/dist/seeds/01-overview.md +74 -0
  758. package/bundle/standalone/node_modules/kxta-publish/dist/seeds/02-api.md +169 -0
  759. package/bundle/standalone/node_modules/kxta-publish/dist/seeds/03-improvements.md +90 -0
  760. package/bundle/standalone/node_modules/kxta-publish/dist/seeds/04-glossary.md +55 -0
  761. package/bundle/standalone/node_modules/kxta-publish/dist/seeds/seeds.d.ts +3 -0
  762. package/bundle/standalone/node_modules/kxta-publish/dist/seeds/seeds.js +53 -0
  763. package/bundle/standalone/node_modules/kxta-publish/dist/source/enumerate.d.ts +3 -0
  764. package/bundle/standalone/node_modules/kxta-publish/dist/source/enumerate.js +50 -0
  765. package/bundle/standalone/node_modules/kxta-publish/dist/source/reader.d.ts +20 -0
  766. package/bundle/standalone/node_modules/kxta-publish/dist/source/reader.js +20 -0
  767. package/bundle/standalone/node_modules/kxta-publish/dist/template/api-ref.css +593 -0
  768. package/bundle/standalone/node_modules/kxta-publish/dist/template/app.js +297 -0
  769. package/bundle/standalone/node_modules/kxta-publish/dist/template/brutalist.css +57 -0
  770. package/bundle/standalone/node_modules/kxta-publish/dist/template/flat.css +182 -0
  771. package/bundle/standalone/node_modules/kxta-publish/dist/template/minimal.css +578 -0
  772. package/bundle/standalone/node_modules/kxta-publish/dist/template/ocean.css +179 -0
  773. package/bundle/standalone/node_modules/kxta-publish/dist/template/paper.css +33 -0
  774. package/bundle/standalone/node_modules/kxta-publish/dist/template/shell.d.ts +8 -0
  775. package/bundle/standalone/node_modules/kxta-publish/dist/template/shell.js +181 -0
  776. package/bundle/standalone/node_modules/kxta-publish/dist/template/solarized.css +162 -0
  777. package/bundle/standalone/node_modules/kxta-publish/dist/template/terminal.css +37 -0
  778. package/bundle/standalone/node_modules/kxta-publish/dist/template/theme.css +701 -0
  779. package/bundle/standalone/node_modules/kxta-publish/dist/types.d.ts +97 -0
  780. package/bundle/standalone/node_modules/kxta-publish/dist/types.js +1 -0
  781. package/bundle/standalone/node_modules/kxta-publish/package.json +25 -0
  782. package/bundle/standalone/package.json +26 -0
  783. package/dist/chunk-KQTCKRN2.js +31 -0
  784. package/dist/doctor-W733U3FD.js +46 -0
  785. package/dist/index.js +45 -0
  786. package/dist/mcp-DGMGR3MZ.js +34 -0
  787. package/dist/start-RCW7AKUK.js +121 -0
  788. package/package.json +89 -0
@@ -0,0 +1,250 @@
1
+ import { spawn } from "node:child_process";
2
+ import { resolve as resolvePath, sep } from "node:path";
3
+ import { realpathSync } from "node:fs";
4
+ import { validateParamValue } from "./sanitizer.js";
5
+ const PLACEHOLDER_RE = /\{\{([a-zA-Z_][a-zA-Z0-9_]*)\}\}/g;
6
+ const SAFE_ENV_KEYS = [
7
+ "PATH", "HOME", "USER", "LANG", "TZ",
8
+ // Windows essentials — absent on POSIX (skipped), required on win32:
9
+ // child processes misbehave or fail to start without SYSTEMROOT, and
10
+ // executable resolution needs PATHEXT. All are machine config, not
11
+ // user secrets, so the sandbox posture is unchanged.
12
+ "SYSTEMROOT", "SYSTEMDRIVE", "COMSPEC", "PATHEXT", "TEMP", "TMP", "USERPROFILE",
13
+ ];
14
+ export function resolveArgv(command, params, defs, argSeparator) {
15
+ const resolvedValues = {};
16
+ for (const [name, def] of Object.entries(defs)) {
17
+ let v = params[name];
18
+ if (v === undefined) {
19
+ if (def.required)
20
+ throw new Error(`required param '${name}' missing`);
21
+ v = def.default ?? (def.type === "string" ? "" : def.type === "number" ? 0 : false);
22
+ }
23
+ validateParamValue(v, def);
24
+ resolvedValues[name] = String(v);
25
+ }
26
+ const out = [command[0]];
27
+ let inserted = !argSeparator;
28
+ for (let i = 1; i < command.length; i++) {
29
+ const original = command[i];
30
+ let substituted = false;
31
+ let anyEmptySub = false;
32
+ const replaced = original.replace(PLACEHOLDER_RE, (_m, name) => {
33
+ substituted = true;
34
+ const v = resolvedValues[name] ?? "";
35
+ if (v === "")
36
+ anyEmptySub = true;
37
+ return v;
38
+ });
39
+ // If ANY placeholder in this argv element substituted to empty, drop
40
+ // the whole element. Otherwise `--name={{user}}` with empty `user`
41
+ // would be passed as the literal `--name=`, which downstream tools
42
+ // tend to interpret as "set name to empty string" rather than "no name".
43
+ if (substituted && anyEmptySub)
44
+ continue;
45
+ if (substituted && !inserted) {
46
+ out.push("--");
47
+ inserted = true;
48
+ }
49
+ out.push(replaced);
50
+ }
51
+ return out;
52
+ }
53
+ export async function executeHand(args) {
54
+ const { toolDef, params, projectRoot } = args;
55
+ const argv = resolveArgv(toolDef.command, params, toolDef.params ?? {}, toolDef.argSeparator === true);
56
+ const cwd = resolveCwd(projectRoot, toolDef.workingDir);
57
+ const env = buildEnv(toolDef.env ?? {});
58
+ return runProcess(argv, cwd, env, toolDef.timeout ?? 60000, toolDef.maxOutputBytes ?? 100000);
59
+ }
60
+ export function resolveCwd(projectRoot, workingDir) {
61
+ let rootReal;
62
+ try {
63
+ rootReal = realpathSync(projectRoot);
64
+ }
65
+ catch {
66
+ throw new Error("project root unavailable");
67
+ }
68
+ if (!workingDir)
69
+ return rootReal;
70
+ const target = resolvePath(rootReal, workingDir);
71
+ let real;
72
+ try {
73
+ real = realpathSync(target);
74
+ }
75
+ catch {
76
+ throw new Error(`workingDir does not exist: ${workingDir}`);
77
+ }
78
+ if (real !== rootReal && !real.startsWith(rootReal + sep)) {
79
+ throw new Error(`workingDir resolved outside project root`);
80
+ }
81
+ return real;
82
+ }
83
+ export function buildEnv(toolEnv) {
84
+ const env = {};
85
+ for (const k of SAFE_ENV_KEYS) {
86
+ const v = process.env[k];
87
+ if (v !== undefined)
88
+ env[k] = v;
89
+ }
90
+ for (const [k, v] of Object.entries(toolEnv))
91
+ env[k] = v;
92
+ return env;
93
+ }
94
+ // Track every active child so a SIGINT/SIGTERM on the MCP server can
95
+ // signal its detached process groups before exiting. Without this,
96
+ // `detached: true` kept Hands subprocesses (and their entire group)
97
+ // running orphaned when the parent process exited.
98
+ const _activeChildren = new Set();
99
+ export function killAllActiveChildren(sig = "SIGTERM") {
100
+ for (const pid of _activeChildren)
101
+ killGroup(pid, sig);
102
+ }
103
+ async function runProcess(argv, cwd, env, timeoutMs, maxBytes) {
104
+ const start = Date.now();
105
+ return new Promise((resolve) => {
106
+ let settled = false;
107
+ const child = spawn(argv[0], argv.slice(1), {
108
+ cwd,
109
+ env,
110
+ shell: false,
111
+ detached: process.platform !== "win32",
112
+ stdio: ["ignore", "pipe", "pipe"],
113
+ });
114
+ if (child.pid !== undefined)
115
+ _activeChildren.add(child.pid);
116
+ const stdoutBuf = new RingBuffer(maxBytes);
117
+ const stderrBuf = new RingBuffer(maxBytes);
118
+ child.stdout.on("data", (c) => stdoutBuf.push(c));
119
+ child.stderr.on("data", (c) => stderrBuf.push(c));
120
+ child.stdout.on("error", () => { });
121
+ child.stderr.on("error", () => { });
122
+ let timedOut = false;
123
+ const timer = setTimeout(() => {
124
+ timedOut = true;
125
+ killGroup(child.pid, "SIGTERM");
126
+ setTimeout(() => killGroup(child.pid, "SIGKILL"), 3000);
127
+ }, timeoutMs);
128
+ const finish = (code, _signal) => {
129
+ if (settled)
130
+ return;
131
+ settled = true;
132
+ clearTimeout(timer);
133
+ if (child.pid !== undefined)
134
+ _activeChildren.delete(child.pid);
135
+ const status = timedOut
136
+ ? "timeout"
137
+ : code === 0 ? "success" : "failed";
138
+ resolve({
139
+ status,
140
+ exitCode: code,
141
+ durationMs: Date.now() - start,
142
+ workingDir: cwd,
143
+ stdout: stdoutBuf.read(),
144
+ stderr: stderrBuf.read(),
145
+ resolvedArgv: argv,
146
+ truncated: { stdout: stdoutBuf.dropped, stderr: stderrBuf.dropped },
147
+ });
148
+ };
149
+ child.on("error", (e) => {
150
+ if (settled)
151
+ return;
152
+ settled = true;
153
+ clearTimeout(timer);
154
+ if (child.pid !== undefined)
155
+ _activeChildren.delete(child.pid);
156
+ resolve({
157
+ status: "rejected",
158
+ exitCode: null,
159
+ durationMs: Date.now() - start,
160
+ workingDir: cwd,
161
+ stdout: "",
162
+ stderr: String(e?.message ?? e),
163
+ resolvedArgv: argv,
164
+ rejectionReason: String(e?.message ?? e),
165
+ });
166
+ });
167
+ child.on("exit", finish);
168
+ child.on("close", finish);
169
+ });
170
+ }
171
+ function killGroup(pid, sig) {
172
+ if (!pid)
173
+ return;
174
+ try {
175
+ if (process.platform === "win32")
176
+ process.kill(pid, sig);
177
+ else
178
+ process.kill(-pid, sig);
179
+ }
180
+ catch { /* already gone */ }
181
+ }
182
+ class RingBuffer {
183
+ head = [];
184
+ headBytes = 0;
185
+ tail = [];
186
+ tailBytes = 0;
187
+ headCap;
188
+ tailCap;
189
+ dropped = 0;
190
+ constructor(cap) {
191
+ this.headCap = Math.floor(cap / 2);
192
+ this.tailCap = cap - this.headCap;
193
+ }
194
+ push(c) {
195
+ let remaining = c;
196
+ // Fill head until headCap reached. Once full, head is frozen.
197
+ if (this.headBytes < this.headCap) {
198
+ const need = this.headCap - this.headBytes;
199
+ if (remaining.length <= need) {
200
+ this.head.push(remaining);
201
+ this.headBytes += remaining.length;
202
+ return;
203
+ }
204
+ const fit = remaining.subarray(0, need);
205
+ this.head.push(fit);
206
+ this.headBytes += fit.length;
207
+ remaining = remaining.subarray(need);
208
+ }
209
+ // Append to tail, evicting from tail's front if it overflows.
210
+ this.tail.push(remaining);
211
+ this.tailBytes += remaining.length;
212
+ while (this.tailBytes > this.tailCap && this.tail.length > 0) {
213
+ const front = this.tail[0];
214
+ if (this.tailBytes - front.length >= this.tailCap || this.tail.length === 1 && front.length > this.tailCap) {
215
+ // Drop or trim front entirely
216
+ if (this.tail.length === 1 && front.length > this.tailCap) {
217
+ // Single huge chunk: keep only the last tailCap bytes
218
+ const keep = front.subarray(front.length - this.tailCap);
219
+ this.dropped += front.length - keep.length;
220
+ this.tail = [keep];
221
+ this.tailBytes = keep.length;
222
+ break;
223
+ }
224
+ else {
225
+ this.tail.shift();
226
+ this.tailBytes -= front.length;
227
+ this.dropped += front.length;
228
+ }
229
+ }
230
+ else {
231
+ // Trim partial: front is larger than overflow
232
+ const overflow = this.tailBytes - this.tailCap;
233
+ const trimmed = front.subarray(overflow);
234
+ this.tail[0] = trimmed;
235
+ this.tailBytes -= overflow;
236
+ this.dropped += overflow;
237
+ break;
238
+ }
239
+ }
240
+ }
241
+ read() {
242
+ if (this.dropped === 0) {
243
+ return Buffer.concat([...this.head, ...this.tail]).toString("utf8");
244
+ }
245
+ const headStr = Buffer.concat(this.head).toString("utf8");
246
+ const tailStr = Buffer.concat(this.tail).toString("utf8");
247
+ return `${headStr}\n... [truncated ${this.dropped} bytes] ...\n${tailStr}`;
248
+ }
249
+ }
250
+ //# sourceMappingURL=executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../src/hands/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,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AM,CAAC;gBAC/B,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,8CAA8C;gBAC9C,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC/C,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;gBACzC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;gBACvB,IAAI,CAAC,SAAS,IAAI,QAAQ,CAAC;gBAC3B,IAAI,CAAC,OAAO,IAAI,QAAQ,CAAC;gBACzB,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI;QACF,IAAI,IAAI,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;YACvB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACtE,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC1D,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC1D,OAAO,GAAG,OAAO,oBAAoB,IAAI,CAAC,OAAO,gBAAgB,OAAO,EAAE,CAAC;IAC7E,CAAC;CACF"}
@@ -0,0 +1,11 @@
1
+ import type { ExecResult } from "./types.js";
2
+ export declare function formatExecResult(toolName: string, r: ExecResult): string;
3
+ export interface PendingFormatInput {
4
+ toolName: string;
5
+ projectName: string;
6
+ resolvedArgv: string[];
7
+ workingDir: string;
8
+ token: string;
9
+ }
10
+ export declare function formatPendingConfirm(p: PendingFormatInput): string;
11
+ //# sourceMappingURL=formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../src/hands/formatter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAwBxE;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,kBAAkB,GAAG,MAAM,CAalE"}
@@ -0,0 +1,39 @@
1
+ export function formatExecResult(toolName, r) {
2
+ const statusLine = {
3
+ success: `Success (exit ${r.exitCode})`,
4
+ failed: `Failed (exit ${r.exitCode})`,
5
+ timeout: `Timeout`,
6
+ rejected: `Rejected${r.rejectionReason ? `: ${r.rejectionReason}` : ""}`,
7
+ }[r.status];
8
+ const durSec = (r.durationMs / 1000).toFixed(1);
9
+ const parts = [
10
+ `## Tool: ${toolName}`,
11
+ `**Status:** ${statusLine}`,
12
+ `**Duration:** ${durSec}s`,
13
+ `**Working Directory:** ${r.workingDir}`,
14
+ ``,
15
+ `### stdout`,
16
+ "```",
17
+ r.stdout || "",
18
+ "```",
19
+ ];
20
+ if (r.stderr && r.stderr.length > 0) {
21
+ parts.push(``, `### stderr`, "```", r.stderr, "```");
22
+ }
23
+ return parts.join("\n");
24
+ }
25
+ export function formatPendingConfirm(p) {
26
+ return [
27
+ `This tool requires human approval before running.`,
28
+ ``,
29
+ ` Tool: ${p.toolName}`,
30
+ ` Project: ${p.projectName}`,
31
+ ` Command (resolved):`,
32
+ ...p.resolvedArgv.map((a, i) => ` [${i}] ${a}`),
33
+ ` Working dir: ${p.workingDir}`,
34
+ ``,
35
+ `To approve, call: confirm_hand({ token: "${p.token}" })`,
36
+ `This token expires in 60 seconds.`,
37
+ ].join("\n");
38
+ }
39
+ //# sourceMappingURL=formatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../src/hands/formatter.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,gBAAgB,CAAC,QAAgB,EAAE,CAAa;IAC9D,MAAM,UAAU,GAAI;QAClB,OAAO,EAAE,iBAAiB,CAAC,CAAC,QAAQ,GAAG;QACvC,MAAM,EAAG,gBAAgB,CAAC,CAAC,QAAQ,GAAG;QACtC,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;KAC/D,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAEtB,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,MAAM,KAAK,GAAG;QACZ,YAAY,QAAQ,EAAE;QACtB,eAAe,UAAU,EAAE;QAC3B,iBAAiB,MAAM,GAAG;QAC1B,0BAA0B,CAAC,CAAC,UAAU,EAAE;QACxC,EAAE;QACF,YAAY;QACZ,KAAK;QACL,CAAC,CAAC,MAAM,IAAI,EAAE;QACd,KAAK;KACN,CAAC;IACF,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAUD,MAAM,UAAU,oBAAoB,CAAC,CAAqB;IACxD,OAAO;QACL,mDAAmD;QACnD,EAAE;QACF,cAAc,CAAC,CAAC,QAAQ,EAAE;QAC1B,cAAc,CAAC,CAAC,WAAW,EAAE;QAC7B,uBAAuB;QACvB,GAAG,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAClD,kBAAkB,CAAC,CAAC,UAAU,EAAE;QAChC,EAAE;QACF,4CAA4C,CAAC,CAAC,KAAK,MAAM;QACzD,mCAAmC;KACpC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { LoadResult } from "./types.js";
2
+ export declare function loadProjectConfig(projectRoot: string): LoadResult;
3
+ export declare function validateConfig(parsed: any, projectRoot: string): LoadResult;
4
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/hands/loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,YAAY,CAAC;AAc1D,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAkBjE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,GAAG,UAAU,CAiB3E"}
@@ -0,0 +1,164 @@
1
+ import { readFileSync, existsSync } from "node:fs";
2
+ import { join, isAbsolute, normalize, sep } from "node:path";
3
+ import { compilePattern, isLiteralArgv0 } from "./sanitizer.js";
4
+ const TOOL_NAME_RE = /^[a-z][a-z0-9-]*$/;
5
+ const PARAM_NAME_RE = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
6
+ const FORBIDDEN_ENV = new Set([
7
+ "PATH", "LD_PRELOAD", "LD_LIBRARY_PATH",
8
+ "DYLD_INSERT_LIBRARIES", "DYLD_LIBRARY_PATH", "DYLD_FALLBACK_LIBRARY_PATH",
9
+ ]);
10
+ const PLACEHOLDER_RE = /\{\{([a-zA-Z_][a-zA-Z0-9_]*)\}\}/g;
11
+ const TIMEOUT_MAX = 300000;
12
+ const TIMEOUT_DEFAULT = 60000;
13
+ const OUTPUT_MAX = 1_000_000;
14
+ const OUTPUT_DEFAULT = 100_000;
15
+ export function loadProjectConfig(projectRoot) {
16
+ const file = join(projectRoot, "kontexta.json");
17
+ if (!existsSync(file)) {
18
+ return { found: false, tools: {}, disabled: [], warnings: [], errors: [] };
19
+ }
20
+ let raw;
21
+ try {
22
+ raw = readFileSync(file, "utf8");
23
+ }
24
+ catch (e) {
25
+ return { found: true, tools: {}, disabled: [], warnings: [], errors: [`read failed: ${e.message}`] };
26
+ }
27
+ let parsed;
28
+ try {
29
+ parsed = JSON.parse(raw);
30
+ }
31
+ catch (e) {
32
+ return { found: true, tools: {}, disabled: [], warnings: [], errors: [`JSON parse: ${e.message}`] };
33
+ }
34
+ return validateConfig(parsed, projectRoot);
35
+ }
36
+ export function validateConfig(parsed, projectRoot) {
37
+ const out = { found: true, tools: {}, disabled: [], warnings: [], errors: [] };
38
+ if (!parsed || parsed.version !== "1") {
39
+ out.errors.push(`version must be "1"`);
40
+ return out;
41
+ }
42
+ if (!parsed.tools || typeof parsed.tools !== "object") {
43
+ out.errors.push(`tools must be an object`);
44
+ return out;
45
+ }
46
+ for (const [name, def] of Object.entries(parsed.tools)) {
47
+ const result = validateTool(name, def, projectRoot);
48
+ if (result.warnings)
49
+ out.warnings.push(...result.warnings);
50
+ if (result.kind === "ok")
51
+ out.tools[name] = result.tool;
52
+ else if (result.kind === "disabled")
53
+ out.disabled.push(name);
54
+ }
55
+ return out;
56
+ }
57
+ function validateTool(name, def, projectRoot) {
58
+ const warnings = [];
59
+ const reject = (reason) => {
60
+ warnings.push(`tool '${name}' rejected: ${reason}`);
61
+ return { kind: "rejected", warnings };
62
+ };
63
+ if (!TOOL_NAME_RE.test(name))
64
+ return reject(`tool name '${name}' invalid`);
65
+ if (!def || typeof def !== "object")
66
+ return reject("def must be object");
67
+ if (typeof def.description !== "string" || !def.description)
68
+ return reject("description required");
69
+ if (!Array.isArray(def.command) || def.command.length === 0)
70
+ return reject("command must be non-empty array");
71
+ for (const e of def.command) {
72
+ if (typeof e !== "string")
73
+ return reject("command elements must be strings");
74
+ }
75
+ if (!isLiteralArgv0(def.command[0]))
76
+ return reject("argv[0] must be literal (no {{param}})");
77
+ // Reject relative argv[0] — would resolve against project cwd and run shipped binaries.
78
+ const argv0 = def.command[0];
79
+ if (!isAbsolute(argv0) && (argv0.includes("/") || argv0.includes(sep))) {
80
+ return reject("argv[0] must be absolute or a bare command name (no relative paths)");
81
+ }
82
+ const paramDefs = def.params ?? {};
83
+ for (const pn of Object.keys(paramDefs)) {
84
+ if (!PARAM_NAME_RE.test(pn))
85
+ return reject(`param name '${pn}' invalid`);
86
+ const p = paramDefs[pn];
87
+ if (!p || !["string", "number", "boolean"].includes(p.type))
88
+ return reject(`param '${pn}' bad type`);
89
+ if (p.pattern !== undefined) {
90
+ try {
91
+ compilePattern(p.pattern);
92
+ }
93
+ catch (e) {
94
+ return reject(`param '${pn}' ${e.message}`);
95
+ }
96
+ }
97
+ }
98
+ const usedParams = new Set();
99
+ for (let i = 1; i < def.command.length; i++) {
100
+ const el = def.command[i];
101
+ let m;
102
+ PLACEHOLDER_RE.lastIndex = 0;
103
+ while ((m = PLACEHOLDER_RE.exec(el))) {
104
+ if (!(m[1] in paramDefs))
105
+ return reject(`placeholder {{${m[1]}}} has no param def`);
106
+ usedParams.add(m[1]);
107
+ }
108
+ }
109
+ for (const pn of Object.keys(paramDefs)) {
110
+ if (!usedParams.has(pn))
111
+ warnings.push(`tool '${name}' param '${pn}' is defined but unused in command`);
112
+ }
113
+ if (def.workingDir !== undefined) {
114
+ if (typeof def.workingDir !== "string")
115
+ return reject("workingDir must be string");
116
+ if (isAbsolute(def.workingDir))
117
+ return reject("workingDir must be relative");
118
+ const norm = normalize(def.workingDir);
119
+ if (norm.startsWith("..") || norm.split(sep).includes(".."))
120
+ return reject("workingDir must not contain ..");
121
+ }
122
+ if (def.env !== undefined) {
123
+ if (typeof def.env !== "object" || def.env === null)
124
+ return reject("env must be object");
125
+ for (const [k, v] of Object.entries(def.env)) {
126
+ if (FORBIDDEN_ENV.has(k))
127
+ return reject(`env key '${k}' forbidden`);
128
+ if (typeof v !== "string")
129
+ return reject(`env value for '${k}' must be string`);
130
+ }
131
+ }
132
+ let timeout = typeof def.timeout === "number" ? def.timeout : TIMEOUT_DEFAULT;
133
+ if (timeout > TIMEOUT_MAX)
134
+ timeout = TIMEOUT_MAX;
135
+ if (timeout < 1)
136
+ timeout = TIMEOUT_DEFAULT;
137
+ let maxOutputBytes = typeof def.maxOutputBytes === "number" ? def.maxOutputBytes : OUTPUT_DEFAULT;
138
+ if (maxOutputBytes > OUTPUT_MAX)
139
+ maxOutputBytes = OUTPUT_MAX;
140
+ if (maxOutputBytes < 1)
141
+ maxOutputBytes = OUTPUT_DEFAULT;
142
+ const danger = def.danger ?? "safe";
143
+ if (!["safe", "moderate", "high"].includes(danger))
144
+ return reject(`danger '${danger}' invalid`);
145
+ if (def.disabled === true) {
146
+ warnings.push(`tool '${name}' is disabled`);
147
+ return { kind: "disabled", warnings };
148
+ }
149
+ const tool = {
150
+ description: def.description,
151
+ command: def.command,
152
+ workingDir: def.workingDir,
153
+ timeout,
154
+ danger,
155
+ confirm: def.confirm === true,
156
+ disabled: false,
157
+ argSeparator: def.argSeparator === true,
158
+ maxOutputBytes,
159
+ env: def.env ?? {},
160
+ params: paramDefs,
161
+ };
162
+ return { kind: "ok", tool, warnings };
163
+ }
164
+ //# sourceMappingURL=loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/hands/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAC7D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C1B,QAAQ,CAAC,IAAI,CAAC,SAAS,IAAI,eAAe,CAAC,CAAC;QAC5C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;IACxC,CAAC;IAED,MAAM,IAAI,GAAgB;QACxB,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,OAAO;QACP,MAAM;QACN,OAAO,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI;QAC7B,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,GAAG,CAAC,YAAY,KAAK,IAAI;QACvC,cAAc;QACd,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE;QAClB,MAAM,EAAE,SAAS;KAClB,CAAC;IACF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AACxC,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { ConfirmStore } from "./confirm.js";
3
+ export declare class HandsRegistry {
4
+ private server;
5
+ private byProject;
6
+ private confirmStore;
7
+ private silentNotify;
8
+ constructor(server: McpServer);
9
+ getConfirmStore(): ConfirmStore;
10
+ list(): Array<{
11
+ project: string;
12
+ tool: string;
13
+ full: string;
14
+ danger: string;
15
+ confirm: boolean;
16
+ description: string;
17
+ disabled: false;
18
+ }>;
19
+ registerProject(projectName: string, projectRoot: string): {
20
+ found: boolean;
21
+ registered: number;
22
+ disabled: number;
23
+ warnings: string[];
24
+ };
25
+ unregisterProject(projectName: string): void;
26
+ reloadAll(projects: Array<{
27
+ name: string;
28
+ root: string;
29
+ }>): {
30
+ totalRegistered: number;
31
+ totalDisabled: number;
32
+ perProject: Array<{
33
+ project: string;
34
+ registered: number;
35
+ disabled: number;
36
+ warnings: string[];
37
+ }>;
38
+ };
39
+ private invoke;
40
+ private notifyListChanged;
41
+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