kontexta 5.2.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/bundle/standalone/CHANGELOG.md +33 -0
  2. package/bundle/standalone/apps/web/.next/BUILD_ID +1 -1
  3. package/bundle/standalone/apps/web/.next/app-build-manifest.json +54 -54
  4. package/bundle/standalone/apps/web/.next/app-path-routes-manifest.json +14 -14
  5. package/bundle/standalone/apps/web/.next/build-manifest.json +2 -2
  6. package/bundle/standalone/apps/web/.next/prerender-manifest.json +3 -3
  7. package/bundle/standalone/apps/web/.next/required-server-files.json +1 -0
  8. package/bundle/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  9. package/bundle/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/bundle/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  11. package/bundle/standalone/apps/web/.next/server/app/_not-found.rsc +4 -4
  12. package/bundle/standalone/apps/web/.next/server/app/api/about/route.js.nft.json +1 -1
  13. package/bundle/standalone/apps/web/.next/server/app/api/about/route_client-reference-manifest.js +1 -1
  14. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route.js.nft.json +1 -1
  15. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/hooks/route_client-reference-manifest.js +1 -1
  16. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route.js.nft.json +1 -1
  17. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/mcp/route_client-reference-manifest.js +1 -1
  18. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route.js.nft.json +1 -1
  19. package/bundle/standalone/apps/web/.next/server/app/api/agents/[id]/route_client-reference-manifest.js +1 -1
  20. package/bundle/standalone/apps/web/.next/server/app/api/agents/route.js.nft.json +1 -1
  21. package/bundle/standalone/apps/web/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
  22. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  23. package/bundle/standalone/apps/web/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  24. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  25. package/bundle/standalone/apps/web/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  26. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route.js.nft.json +1 -1
  27. package/bundle/standalone/apps/web/.next/server/app/api/auth/setup/route_client-reference-manifest.js +1 -1
  28. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  29. package/bundle/standalone/apps/web/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  30. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route.js.nft.json +1 -1
  31. package/bundle/standalone/apps/web/.next/server/app/api/auth/token/route_client-reference-manifest.js +1 -1
  32. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route.js.nft.json +1 -1
  33. package/bundle/standalone/apps/web/.next/server/app/api/calendar/conflicts/route_client-reference-manifest.js +1 -1
  34. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route.js.nft.json +1 -1
  35. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/[id]/route_client-reference-manifest.js +1 -1
  36. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route.js.nft.json +1 -1
  37. package/bundle/standalone/apps/web/.next/server/app/api/calendar/entities/route_client-reference-manifest.js +1 -1
  38. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route.js.nft.json +1 -1
  39. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/[id]/route_client-reference-manifest.js +1 -1
  40. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route.js.nft.json +1 -1
  41. package/bundle/standalone/apps/web/.next/server/app/api/calendar/events/route_client-reference-manifest.js +1 -1
  42. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route.js.nft.json +1 -1
  43. package/bundle/standalone/apps/web/.next/server/app/api/calendar/ics/route_client-reference-manifest.js +1 -1
  44. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route.js.nft.json +1 -1
  45. package/bundle/standalone/apps/web/.next/server/app/api/calendar/links/route_client-reference-manifest.js +1 -1
  46. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route.js.nft.json +1 -1
  47. package/bundle/standalone/apps/web/.next/server/app/api/calendar/settings/route_client-reference-manifest.js +1 -1
  48. package/bundle/standalone/apps/web/.next/server/app/api/clip/route.js.nft.json +1 -1
  49. package/bundle/standalone/apps/web/.next/server/app/api/clip/route_client-reference-manifest.js +1 -1
  50. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route.js.nft.json +1 -1
  51. package/bundle/standalone/apps/web/.next/server/app/api/docker-config/route_client-reference-manifest.js +1 -1
  52. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route.js.nft.json +1 -1
  53. package/bundle/standalone/apps/web/.next/server/app/api/export/zip/route_client-reference-manifest.js +1 -1
  54. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route.js.nft.json +1 -1
  55. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/backlinks/route_client-reference-manifest.js +1 -1
  56. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route.js.nft.json +1 -1
  57. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/download/route_client-reference-manifest.js +1 -1
  58. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route.js.nft.json +1 -1
  59. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-html/route_client-reference-manifest.js +1 -1
  60. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route.js.nft.json +1 -1
  61. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/export-pdf/route_client-reference-manifest.js +1 -1
  62. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route.js.nft.json +1 -1
  63. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/restore/route_client-reference-manifest.js +1 -1
  64. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route.js.nft.json +1 -1
  65. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/history/route_client-reference-manifest.js +1 -1
  66. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route.js.nft.json +1 -1
  67. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/move/route_client-reference-manifest.js +1 -1
  68. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route.js.nft.json +1 -1
  69. package/bundle/standalone/apps/web/.next/server/app/api/files/[id]/route_client-reference-manifest.js +1 -1
  70. package/bundle/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -1
  71. package/bundle/standalone/apps/web/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
  72. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route.js.nft.json +1 -1
  73. package/bundle/standalone/apps/web/.next/server/app/api/files/upload/route_client-reference-manifest.js +1 -1
  74. package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js +1 -1
  75. package/bundle/standalone/apps/web/.next/server/app/api/folders/route.js.nft.json +1 -1
  76. package/bundle/standalone/apps/web/.next/server/app/api/folders/route_client-reference-manifest.js +1 -1
  77. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route.js.nft.json +1 -1
  78. package/bundle/standalone/apps/web/.next/server/app/api/git/remote/route_client-reference-manifest.js +1 -1
  79. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route.js.nft.json +1 -1
  80. package/bundle/standalone/apps/web/.next/server/app/api/git/sync-all/route_client-reference-manifest.js +1 -1
  81. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route.js.nft.json +1 -1
  82. package/bundle/standalone/apps/web/.next/server/app/api/hands/test-pattern/route_client-reference-manifest.js +1 -1
  83. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route.js.nft.json +1 -1
  84. package/bundle/standalone/apps/web/.next/server/app/api/hands/validate/route_client-reference-manifest.js +1 -1
  85. package/bundle/standalone/apps/web/.next/server/app/api/health/route.js.nft.json +1 -1
  86. package/bundle/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  87. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js +1 -1
  88. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route.js.nft.json +1 -1
  89. package/bundle/standalone/apps/web/.next/server/app/api/install-snippets/route_client-reference-manifest.js +1 -1
  90. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js +1 -1
  91. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route.js.nft.json +1 -1
  92. package/bundle/standalone/apps/web/.next/server/app/api/mcp-tools/route_client-reference-manifest.js +1 -1
  93. package/bundle/standalone/apps/web/.next/server/app/api/profile/route.js.nft.json +1 -1
  94. package/bundle/standalone/apps/web/.next/server/app/api/profile/route_client-reference-manifest.js +1 -1
  95. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route.js.nft.json +1 -1
  96. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/hands-config/route_client-reference-manifest.js +1 -1
  97. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route.js.nft.json +1 -1
  98. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-config/route_client-reference-manifest.js +1 -1
  99. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route.js.nft.json +1 -1
  100. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/journal-status/route_client-reference-manifest.js +1 -1
  101. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route.js.nft.json +1 -1
  102. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/onboard/route_client-reference-manifest.js +1 -1
  103. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route.js.nft.json +1 -1
  104. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/refresh/route_client-reference-manifest.js +1 -1
  105. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  106. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -1
  107. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route.js.nft.json +1 -1
  108. package/bundle/standalone/apps/web/.next/server/app/api/projects/[id]/sync/route_client-reference-manifest.js +1 -1
  109. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route.js.nft.json +1 -1
  110. package/bundle/standalone/apps/web/.next/server/app/api/projects/onboard/route_client-reference-manifest.js +1 -1
  111. package/bundle/standalone/apps/web/.next/server/app/api/projects/route.js.nft.json +1 -1
  112. package/bundle/standalone/apps/web/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  113. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route.js.nft.json +1 -1
  114. package/bundle/standalone/apps/web/.next/server/app/api/publish/html/route_client-reference-manifest.js +1 -1
  115. package/bundle/standalone/apps/web/.next/server/app/api/publish/route.js.nft.json +1 -1
  116. package/bundle/standalone/apps/web/.next/server/app/api/publish/route_client-reference-manifest.js +1 -1
  117. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route.js.nft.json +1 -1
  118. package/bundle/standalone/apps/web/.next/server/app/api/refresh/route_client-reference-manifest.js +1 -1
  119. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route.js.nft.json +1 -1
  120. package/bundle/standalone/apps/web/.next/server/app/api/reindex/route_client-reference-manifest.js +1 -1
  121. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route.js.nft.json +1 -1
  122. package/bundle/standalone/apps/web/.next/server/app/api/reports/resources/[name]/route_client-reference-manifest.js +1 -1
  123. package/bundle/standalone/apps/web/.next/server/app/api/search/route.js.nft.json +1 -1
  124. package/bundle/standalone/apps/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  125. package/bundle/standalone/apps/web/.next/server/app/api/tags/route.js.nft.json +1 -1
  126. package/bundle/standalone/apps/web/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  127. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route.js.nft.json +1 -1
  128. package/bundle/standalone/apps/web/.next/server/app/api/version-check/route_client-reference-manifest.js +1 -1
  129. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route.js.nft.json +1 -1
  130. package/bundle/standalone/apps/web/.next/server/app/api/welcome/route_client-reference-manifest.js +1 -1
  131. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route.js.nft.json +1 -1
  132. package/bundle/standalone/apps/web/.next/server/app/api/ws-config/route_client-reference-manifest.js +1 -1
  133. package/bundle/standalone/apps/web/.next/server/app/apple-icon.png/route.js.nft.json +1 -1
  134. package/bundle/standalone/apps/web/.next/server/app/calendar/page.js.nft.json +1 -1
  135. package/bundle/standalone/apps/web/.next/server/app/calendar/page_client-reference-manifest.js +1 -1
  136. package/bundle/standalone/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  137. package/bundle/standalone/apps/web/.next/server/app/icon.png/route.js.nft.json +1 -1
  138. package/bundle/standalone/apps/web/.next/server/app/login/page.js.nft.json +1 -1
  139. package/bundle/standalone/apps/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
  140. package/bundle/standalone/apps/web/.next/server/app/page.js +4 -4
  141. package/bundle/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
  142. package/bundle/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  143. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page.js.nft.json +1 -1
  144. package/bundle/standalone/apps/web/.next/server/app/preview/motifs/page_client-reference-manifest.js +1 -1
  145. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.html +2 -2
  146. package/bundle/standalone/apps/web/.next/server/app/preview/motifs.rsc +4 -4
  147. package/bundle/standalone/apps/web/.next/server/app-paths-manifest.json +14 -14
  148. package/bundle/standalone/apps/web/.next/server/chunks/3668.js +2 -2
  149. package/bundle/standalone/apps/web/.next/server/pages/404.html +1 -1
  150. package/bundle/standalone/apps/web/.next/server/pages/500.html +1 -1
  151. package/bundle/standalone/apps/web/.next/server/pages/_app.js.nft.json +1 -1
  152. package/bundle/standalone/apps/web/.next/server/pages/_document.js.nft.json +1 -1
  153. package/bundle/standalone/apps/web/.next/server/pages/_error.js.nft.json +1 -1
  154. package/bundle/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  155. package/bundle/standalone/apps/web/.next/static/chunks/app/{layout-da10917c290d5da7.js → layout-b3fc3a7cf96952bd.js} +1 -1
  156. package/bundle/standalone/apps/web/.next/static/chunks/app/page-f2e6293531d0db55.js +1 -0
  157. package/bundle/standalone/apps/web/.next/static/css/{d6e83b3f51ebdda3.css → c9d10f1f97d629ff.css} +1 -1
  158. package/bundle/standalone/apps/web/package.json +6 -5
  159. package/bundle/standalone/apps/web/server.js +1 -1
  160. package/bundle/standalone/apps/web/src/lib/mcp-tools.json +103 -95
  161. package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-block.md +28 -185
  162. package/bundle/standalone/node_modules/kontexta-mcp/dist/agent-rules/rules-reference.md +207 -0
  163. package/bundle/standalone/node_modules/kontexta-mcp/dist/calendar-tools.js +12 -12
  164. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/formatter.js +1 -1
  165. package/bundle/standalone/node_modules/kontexta-mcp/dist/hands/schema-doc.js +1 -1
  166. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js +196 -68
  167. package/bundle/standalone/node_modules/kontexta-mcp/dist/index.js.map +1 -1
  168. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-capture.js +3 -3
  169. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-commit-upgrades-tool.js +1 -1
  170. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-housekeep-tool.js +1 -1
  171. package/bundle/standalone/node_modules/kontexta-mcp/dist/journal-tools.js +2 -2
  172. package/bundle/standalone/node_modules/kontexta-mcp/dist/repo-write-guard.js +1 -1
  173. package/bundle/standalone/node_modules/kontexta-mcp/package.json +4 -2
  174. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts +5 -0
  175. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.d.ts.map +1 -1
  176. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js +84 -25
  177. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/index.js.map +1 -1
  178. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-block.md +28 -185
  179. package/bundle/standalone/node_modules/kxta-core/dist/agent-rules/rules-reference.md +207 -0
  180. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts +25 -1
  181. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.d.ts.map +1 -1
  182. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js +159 -32
  183. package/bundle/standalone/node_modules/kxta-core/dist/bundle/index.js.map +1 -1
  184. package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.d.ts +71 -0
  185. package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.d.ts.map +1 -0
  186. package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.js +192 -0
  187. package/bundle/standalone/node_modules/kxta-core/dist/decision/engine.js.map +1 -0
  188. package/bundle/standalone/node_modules/kxta-core/dist/decision/index.d.ts +9 -0
  189. package/bundle/standalone/node_modules/kxta-core/dist/decision/index.d.ts.map +1 -0
  190. package/bundle/standalone/node_modules/kxta-core/dist/decision/index.js +10 -0
  191. package/bundle/standalone/node_modules/kxta-core/dist/decision/index.js.map +1 -0
  192. package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.d.ts +20 -0
  193. package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.d.ts.map +1 -0
  194. package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.js +124 -0
  195. package/bundle/standalone/node_modules/kxta-core/dist/decision/intent-router.js.map +1 -0
  196. package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.d.ts +20 -0
  197. package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.d.ts.map +1 -0
  198. package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.js +28 -0
  199. package/bundle/standalone/node_modules/kxta-core/dist/decision/pruning.js.map +1 -0
  200. package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.d.ts +30 -0
  201. package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.d.ts.map +1 -0
  202. package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.js +57 -0
  203. package/bundle/standalone/node_modules/kxta-core/dist/decision/sufficiency.js.map +1 -0
  204. package/bundle/standalone/node_modules/kxta-core/dist/decision/types.d.ts +42 -0
  205. package/bundle/standalone/node_modules/kxta-core/dist/decision/types.d.ts.map +1 -0
  206. package/bundle/standalone/node_modules/kxta-core/dist/decision/types.js +7 -0
  207. package/bundle/standalone/node_modules/kxta-core/dist/decision/types.js.map +1 -0
  208. package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts +3 -1
  209. package/bundle/standalone/node_modules/kxta-core/dist/files/index.d.ts.map +1 -1
  210. package/bundle/standalone/node_modules/kxta-core/dist/files/index.js +10 -1
  211. package/bundle/standalone/node_modules/kxta-core/dist/files/index.js.map +1 -1
  212. package/bundle/standalone/node_modules/kxta-core/dist/hooks/alerts.js +2 -2
  213. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts +4 -1
  214. package/bundle/standalone/node_modules/kxta-core/dist/index.d.ts.map +1 -1
  215. package/bundle/standalone/node_modules/kxta-core/dist/index.js +4 -1
  216. package/bundle/standalone/node_modules/kxta-core/dist/index.js.map +1 -1
  217. package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.d.ts +3 -0
  218. package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.d.ts.map +1 -0
  219. package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.js +27 -0
  220. package/bundle/standalone/node_modules/kxta-core/dist/inference/bundled.js.map +1 -0
  221. package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.d.ts +41 -0
  222. package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.d.ts.map +1 -0
  223. package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.js +140 -0
  224. package/bundle/standalone/node_modules/kxta-core/dist/inference/cache-manager.js.map +1 -0
  225. package/bundle/standalone/node_modules/kxta-core/dist/inference/index.d.ts +14 -0
  226. package/bundle/standalone/node_modules/kxta-core/dist/inference/index.d.ts.map +1 -0
  227. package/bundle/standalone/node_modules/kxta-core/dist/inference/index.js +15 -0
  228. package/bundle/standalone/node_modules/kxta-core/dist/inference/index.js.map +1 -0
  229. package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.d.ts +132 -0
  230. package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.d.ts.map +1 -0
  231. package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.js +311 -0
  232. package/bundle/standalone/node_modules/kxta-core/dist/inference/runtime.js.map +1 -0
  233. package/bundle/standalone/node_modules/kxta-core/dist/inference/types.d.ts +53 -0
  234. package/bundle/standalone/node_modules/kxta-core/dist/inference/types.d.ts.map +1 -0
  235. package/bundle/standalone/node_modules/kxta-core/dist/inference/types.js +6 -0
  236. package/bundle/standalone/node_modules/kxta-core/dist/inference/types.js.map +1 -0
  237. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js +18 -5
  238. package/bundle/standalone/node_modules/kxta-core/dist/journal/distill.js.map +1 -1
  239. package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.d.ts +31 -0
  240. package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.d.ts.map +1 -0
  241. package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.js +94 -0
  242. package/bundle/standalone/node_modules/kxta-core/dist/journal/event-triage.js.map +1 -0
  243. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js +2 -2
  244. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/refactor.js.map +1 -1
  245. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.d.ts.map +1 -1
  246. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js +5 -0
  247. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tagging-pass.js.map +1 -1
  248. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.d.ts.map +1 -1
  249. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js +30 -5
  250. package/bundle/standalone/node_modules/kxta-core/dist/journal/patterns/tool-classes.js.map +1 -1
  251. package/bundle/standalone/node_modules/kxta-core/dist/journal/strict-mode.js +2 -2
  252. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts +34 -0
  253. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.d.ts.map +1 -1
  254. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js +251 -6
  255. package/bundle/standalone/node_modules/kxta-core/dist/journal/topic-detector.js.map +1 -1
  256. package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts +1 -0
  257. package/bundle/standalone/node_modules/kxta-core/dist/journal/types.d.ts.map +1 -1
  258. package/bundle/standalone/node_modules/kxta-core/dist/mcp-install/tools.generated.js +58 -58
  259. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.d.ts.map +1 -1
  260. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js +10 -1
  261. package/bundle/standalone/node_modules/kxta-core/dist/metadata/index.js.map +1 -1
  262. package/bundle/standalone/node_modules/kxta-core/dist/project-map/index.js +1 -1
  263. package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.d.ts +29 -0
  264. package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.d.ts.map +1 -0
  265. package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.js +68 -0
  266. package/bundle/standalone/node_modules/kxta-core/dist/rerank/arbitrator.js.map +1 -0
  267. package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.d.ts +57 -0
  268. package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.d.ts.map +1 -0
  269. package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.js +199 -0
  270. package/bundle/standalone/node_modules/kxta-core/dist/rerank/engine.js.map +1 -0
  271. package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.d.ts +7 -0
  272. package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.d.ts.map +1 -0
  273. package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.js +8 -0
  274. package/bundle/standalone/node_modules/kxta-core/dist/rerank/index.js.map +1 -0
  275. package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.d.ts +50 -0
  276. package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.d.ts.map +1 -0
  277. package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.js +2 -0
  278. package/bundle/standalone/node_modules/kxta-core/dist/rerank/types.js.map +1 -0
  279. package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts +5 -0
  280. package/bundle/standalone/node_modules/kxta-core/dist/types.d.ts.map +1 -1
  281. package/bundle/standalone/node_modules/kxta-core/dist/util/paths.js +1 -1
  282. package/bundle/standalone/node_modules/kxta-core/package.json +4 -2
  283. package/bundle/standalone/node_modules/kxta-publish/package.json +3 -3
  284. package/bundle/standalone/package.json +3 -2
  285. package/package.json +5 -3
  286. package/bundle/standalone/apps/web/.next/static/chunks/app/page-df34c386b7c150bb.js +0 -1
  287. /package/bundle/standalone/apps/web/.next/static/{yyj-uK2RH8Rffeq9wVzjU → olhhWqI4356zOu5Kz_S1K}/_buildManifest.js +0 -0
  288. /package/bundle/standalone/apps/web/.next/static/{yyj-uK2RH8Rffeq9wVzjU → olhhWqI4356zOu5Kz_S1K}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.js","sourceRoot":"","sources":["../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AAC,CAAC;gBAC3E,CAAC,CAAC;aACH,CAAC,CAAC;QACL,CAAC;gBAAS,CAAC;YACT,IAAI,KAAK;gBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IAED;;OAEG;IACH,SAAS;QACP,MAAM,WAAW,GAAG,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClE,OAAO;YACL,MAAM,EAAE,WAAW,EAAE,MAAM,IAAI,KAAK;YACpC,KAAK,EAAE,IAAI,CAAC,OAAO;YACnB,SAAS,EAAE,WAAW,EAAE,QAAQ,IAAI,gBAAgB,EAAE;YACtD,MAAM,EAAE,WAAW,EAAE,MAAM,IAAI,gBAAgB,CAAC,YAAY,EAAE;SAC/D,CAAC;IACJ,CAAC;CACF;AAED,4BAA4B;AAC5B,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC;AAE/C;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAa,EACb,UAA6B,EAC7B,IAA6B;IAE7B,OAAO,YAAY,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;AACtD,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Re-export all rerank modules for convenient imports.
3
+ */
4
+ export * from "./types.js";
5
+ export * from "./engine.js";
6
+ export { arbitrateCandidates } from "./arbitrator.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rerank/index.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,8 @@
1
+ // packages/core/src/rerank/index.ts
2
+ /**
3
+ * Re-export all rerank modules for convenient imports.
4
+ */
5
+ export * from "./types.js";
6
+ export * from "./engine.js";
7
+ export { arbitrateCandidates } from "./arbitrator.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rerank/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC;;GAEG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { ContentClass } from "../types.js";
2
+ export interface RerankCandidate {
3
+ id: number;
4
+ title: string;
5
+ path: string;
6
+ content: string;
7
+ content_class: ContentClass | null;
8
+ /** Owning project (null for Knowledge Base files). */
9
+ project_id?: number | null;
10
+ bm25_rank?: number;
11
+ }
12
+ export interface ScoredCandidate extends RerankCandidate {
13
+ raw_score: number;
14
+ sigmoid_score: number;
15
+ final_score: number;
16
+ }
17
+ export interface RerankOptions {
18
+ /**
19
+ * Hugging Face model identifier for quantized ONNX cross-encoder.
20
+ * Default: "Xenova/ms-marco-MiniLM-L-6-v2"
21
+ */
22
+ model?: string;
23
+ /**
24
+ * Maximum candidate pool size retrieved from BM25 to score.
25
+ * Default: 30
26
+ */
27
+ candidate_limit?: number;
28
+ /**
29
+ * Additive authority boost for dictionary items on the [0, 1] scale.
30
+ * Default: 0.08
31
+ */
32
+ dictionary_boost?: number;
33
+ /**
34
+ * Reranking operation hard timeout in milliseconds.
35
+ * Default: 300
36
+ */
37
+ timeout_ms?: number;
38
+ /**
39
+ * Maximum token length per document passage for cross-attention.
40
+ * Default: 512
41
+ */
42
+ max_length?: number;
43
+ }
44
+ export interface RerankEngineStatus {
45
+ loaded: boolean;
46
+ model: string;
47
+ cache_dir: string;
48
+ device: string;
49
+ }
50
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/rerank/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,YAAY,GAAG,IAAI,CAAC;IACnC,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/rerank/types.ts"],"names":[],"mappings":""}
@@ -71,5 +71,10 @@ export interface SearchFilters {
71
71
  * more than 50 files.
72
72
  */
73
73
  limit?: number;
74
+ /**
75
+ * When true, skip dictionary-first reordering and return raw BM25 order.
76
+ * Useful for feeding an unbiased candidate pool to the cross-encoder reranker.
77
+ */
78
+ raw_bm25_order?: boolean;
74
79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EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,aAAa,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACpC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
@@ -182,7 +182,7 @@ export function ensureDataDir() {
182
182
  // Scaffold an empty profile.md at the KB root on fresh installs. Without
183
183
  // this, the only way to get one was via the web UI's PUT /api/profile
184
184
  // (which writes here directly) — CLI/MCP-only users had no discoverable
185
- // path to a working profile, and files.create can't reach KB root itself
185
+ // path to a working profile, and files_create can't reach KB root itself
186
186
  // (kind-based routing always nests under knowledge/dictionary or notes).
187
187
  const profilePath = path.join(dataDir, profileRelPath());
188
188
  if (!fs.existsSync(profilePath)) {
@@ -1,23 +1,25 @@
1
1
  {
2
2
  "name": "kxta-core",
3
- "version": "5.2.0",
3
+ "version": "6.0.0",
4
4
  "description": "Core context and command engines for Kontexta",
5
5
  "private": true,
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
9
  "dependencies": {
10
+ "@huggingface/transformers": "^4.3.0",
10
11
  "@mozilla/readability": "^0.6.0",
11
12
  "better-sqlite3": "^12.10.0",
12
13
  "chokidar": "^4.0.0",
13
14
  "dompurify": "^3.4.14",
14
15
  "glob": "^11.0.0",
15
16
  "jsdom": "^29.1.1",
17
+ "kontexta-reranker-model": "^1.0.0",
16
18
  "simple-git": "^3.27.0",
17
19
  "smol-toml": "^1.9.0",
18
20
  "turndown": "^7.2.4",
19
21
  "undici": "^7.0.0",
20
22
  "yaml": "^2.9.1"
21
23
  },
22
- "rulesVersion": "3.1.0"
24
+ "rulesVersion": "3.2.0"
23
25
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kxta-publish",
3
- "version": "5.2.0",
3
+ "version": "6.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,10 +20,10 @@
20
20
  "html-to-pdfmake": "^2.5.33",
21
21
  "js-yaml": "^4.1.0",
22
22
  "jsdom": "^29.1.1",
23
- "kxta-core": "5.2.0",
23
+ "kxta-core": "6.0.0",
24
24
  "markdown-it": "^14.1.0",
25
25
  "pdfmake": "^0.3.11",
26
26
  "puppeteer-core": "^25.10.0"
27
27
  },
28
- "rulesVersion": "3.1.0"
28
+ "rulesVersion": "3.2.0"
29
29
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kontexta",
3
- "version": "5.2.0",
4
- "rulesVersion": "3.1.0",
3
+ "version": "6.0.0",
4
+ "rulesVersion": "3.2.0",
5
5
  "type": "module",
6
6
  "author": "Safiyu",
7
7
  "private": true,
@@ -19,6 +19,7 @@
19
19
  "lint": "turbo lint"
20
20
  },
21
21
  "devDependencies": {
22
+ "@huggingface/transformers": "^4.3.0",
22
23
  "re2": "1.24.1",
23
24
  "turbo": "^2.5.0",
24
25
  "typescript": "^5.7.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kontexta",
3
- "version": "5.2.0",
3
+ "version": "6.0.0",
4
4
  "description": "One-click local dashboard + MCP server for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -36,6 +36,7 @@
36
36
  "prepublishOnly": "pnpm run build && pnpm run pack:bundle"
37
37
  },
38
38
  "dependencies": {
39
+ "@huggingface/transformers": "^4.3.0",
39
40
  "@modelcontextprotocol/sdk": "^1.12.0",
40
41
  "@mozilla/readability": "^0.6.0",
41
42
  "@puppeteer/browsers": "^3.2.2",
@@ -59,6 +60,7 @@
59
60
  "html-to-pdfmake": "^2.5.33",
60
61
  "js-yaml": "^4.1.0",
61
62
  "jsdom": "^29.1.1",
63
+ "kontexta-reranker-model": "^1.0.0",
62
64
  "lucide-react": "^1.21.0",
63
65
  "markdown-it": "^14.1.0",
64
66
  "mermaid": "^11",
@@ -75,8 +77,8 @@
75
77
  "remark-parse": "^11.0.0",
76
78
  "remark-stringify": "^11.0.0",
77
79
  "simple-git": "^3.27.0",
78
- "sonner": "^2.0.7",
79
80
  "smol-toml": "^1.9.0",
81
+ "sonner": "^2.0.7",
80
82
  "strip-markdown": "^6.0.0",
81
83
  "turndown": "^7.2.4",
82
84
  "undici": "^7.0.0",
@@ -91,5 +93,5 @@
91
93
  "typescript": "^5.7.0",
92
94
  "vitest": "^2.1.0"
93
95
  },
94
- "rulesVersion": "3.1.0"
96
+ "rulesVersion": "3.2.0"
95
97
  }