@gabrywu/knowledge-bank 0.1.2-alpha.252 → 0.1.2-alpha.312

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 (725) hide show
  1. package/README.md +84 -0
  2. package/dist/claude-marketplace/.claude-plugin/marketplace.json +2 -2
  3. package/dist/claude-marketplace/core/.claude-plugin/plugin.json +1 -1
  4. package/dist/claude-marketplace/core/hooks/hooks.json +72 -0
  5. package/dist/claude-marketplace/core/skills/knowledge.add/SKILL.md +65 -0
  6. package/dist/claude-marketplace/core/skills/knowledge.collect/SKILL.md +112 -32
  7. package/dist/claude-marketplace/core/skills/knowledge.delete/SKILL.md +68 -0
  8. package/dist/claude-marketplace/core/skills/knowledge.detect/SKILL.md +147 -0
  9. package/dist/claude-marketplace/core/skills/knowledge.enhance/SKILL.md +87 -38
  10. package/dist/claude-marketplace/core/skills/knowledge.import/SKILL.md +93 -0
  11. package/dist/claude-marketplace/core/skills/knowledge.init/SKILL.md +113 -0
  12. package/dist/claude-marketplace/core/skills/knowledge.merge/SKILL.md +319 -0
  13. package/dist/claude-marketplace/core/skills/knowledge.save/SKILL.md +179 -0
  14. package/dist/claude-marketplace/core/skills/knowledge.status/SKILL.md +86 -0
  15. package/dist/claude-marketplace/core/skills/knowledge.update/SKILL.md +161 -0
  16. package/dist/cli.js +5 -5
  17. package/dist/mcp-server.js +3 -3
  18. package/dist/web/public/css/style.css +243 -41
  19. package/dist/web/public/js/main.js +264 -31
  20. package/dist/web/views/layout.ejs +9 -5
  21. package/dist/web/views/partials/row-details.ejs +32 -1
  22. package/dist/web/views/table.ejs +154 -6
  23. package/node_modules/@modelcontextprotocol/sdk/README.md +1 -0
  24. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts +12 -0
  25. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map +1 -1
  26. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +6 -3
  27. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map +1 -1
  28. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts +79 -1
  29. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map +1 -1
  30. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +93 -16
  31. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map +1 -1
  32. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js +3 -15
  33. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js.map +1 -1
  34. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js +1 -17
  35. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js.map +1 -1
  36. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js +62 -23
  37. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js.map +1 -1
  38. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js +273 -244
  39. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js.map +1 -1
  40. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js +31 -27
  41. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js.map +1 -1
  42. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.d.ts +12 -0
  43. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.d.ts.map +1 -0
  44. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.js +49 -0
  45. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.js.map +1 -0
  46. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js +89 -0
  47. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js.map +1 -1
  48. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js +58 -53
  49. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js.map +1 -1
  50. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +33 -21
  51. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -1
  52. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts +88 -1
  53. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts.map +1 -1
  54. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js +157 -0
  55. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js.map +1 -1
  56. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts.map +1 -1
  57. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js +8 -1
  58. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js.map +1 -1
  59. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +1 -0
  60. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +1 -1
  61. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +29 -3
  62. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +1 -1
  63. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map +1 -1
  64. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +13 -0
  65. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map +1 -1
  66. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts +4 -0
  67. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts.map +1 -1
  68. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts +12 -0
  69. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map +1 -1
  70. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +6 -3
  71. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map +1 -1
  72. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts +79 -1
  73. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map +1 -1
  74. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +92 -16
  75. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map +1 -1
  76. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js +3 -15
  77. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js.map +1 -1
  78. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js +1 -17
  79. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js.map +1 -1
  80. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js +62 -23
  81. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js.map +1 -1
  82. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js +273 -244
  83. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js.map +1 -1
  84. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js +31 -27
  85. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js.map +1 -1
  86. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.d.ts +12 -0
  87. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.d.ts.map +1 -0
  88. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.js +47 -0
  89. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.js.map +1 -0
  90. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js +89 -0
  91. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js.map +1 -1
  92. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js +58 -53
  93. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js.map +1 -1
  94. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +33 -21
  95. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -1
  96. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts +88 -1
  97. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts.map +1 -1
  98. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +157 -0
  99. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map +1 -1
  100. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts.map +1 -1
  101. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js +8 -1
  102. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js.map +1 -1
  103. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +1 -0
  104. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +1 -1
  105. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +29 -3
  106. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +1 -1
  107. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map +1 -1
  108. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +13 -0
  109. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +1 -1
  110. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts +4 -0
  111. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map +1 -1
  112. package/node_modules/@modelcontextprotocol/sdk/package.json +16 -6
  113. package/node_modules/express-rate-limit/dist/index.cjs +334 -198
  114. package/node_modules/express-rate-limit/dist/index.d.cts +74 -20
  115. package/node_modules/express-rate-limit/dist/index.d.mts +74 -20
  116. package/node_modules/express-rate-limit/dist/index.d.ts +74 -20
  117. package/node_modules/express-rate-limit/dist/index.mjs +330 -195
  118. package/node_modules/express-rate-limit/package.json +32 -53
  119. package/node_modules/express-rate-limit/readme.md +5 -1
  120. package/node_modules/hono/LICENSE +21 -0
  121. package/node_modules/hono/README.md +85 -0
  122. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +366 -0
  123. package/node_modules/hono/dist/adapter/aws-lambda/index.js +7 -0
  124. package/node_modules/hono/dist/adapter/aws-lambda/types.js +0 -0
  125. package/node_modules/hono/dist/adapter/bun/conninfo.js +27 -0
  126. package/node_modules/hono/dist/adapter/bun/index.js +14 -0
  127. package/node_modules/hono/dist/adapter/bun/serve-static.js +30 -0
  128. package/node_modules/hono/dist/adapter/bun/server.js +5 -0
  129. package/node_modules/hono/dist/adapter/bun/ssg.js +17 -0
  130. package/node_modules/hono/dist/adapter/bun/websocket.js +71 -0
  131. package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +67 -0
  132. package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +7 -0
  133. package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +9 -0
  134. package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +9 -0
  135. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +8 -0
  136. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +22 -0
  137. package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +35 -0
  138. package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +41 -0
  139. package/node_modules/hono/dist/adapter/deno/conninfo.js +14 -0
  140. package/node_modules/hono/dist/adapter/deno/deno.d.js +0 -0
  141. package/node_modules/hono/dist/adapter/deno/index.js +12 -0
  142. package/node_modules/hono/dist/adapter/deno/serve-static.js +40 -0
  143. package/node_modules/hono/dist/adapter/deno/ssg.js +18 -0
  144. package/node_modules/hono/dist/adapter/deno/websocket.js +28 -0
  145. package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +9 -0
  146. package/node_modules/hono/dist/adapter/lambda-edge/handler.js +79 -0
  147. package/node_modules/hono/dist/adapter/lambda-edge/index.js +7 -0
  148. package/node_modules/hono/dist/adapter/netlify/handler.js +9 -0
  149. package/node_modules/hono/dist/adapter/netlify/index.js +2 -0
  150. package/node_modules/hono/dist/adapter/netlify/mod.js +5 -0
  151. package/node_modules/hono/dist/adapter/service-worker/handler.js +20 -0
  152. package/node_modules/hono/dist/adapter/service-worker/index.js +11 -0
  153. package/node_modules/hono/dist/adapter/service-worker/types.js +0 -0
  154. package/node_modules/hono/dist/adapter/vercel/conninfo.js +10 -0
  155. package/node_modules/hono/dist/adapter/vercel/handler.js +7 -0
  156. package/node_modules/hono/dist/adapter/vercel/index.js +7 -0
  157. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +398 -0
  158. package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +32 -0
  159. package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +16 -0
  160. package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +50 -0
  161. package/node_modules/hono/dist/cjs/adapter/bun/index.js +43 -0
  162. package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +53 -0
  163. package/node_modules/hono/dist/cjs/adapter/bun/server.js +28 -0
  164. package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +41 -0
  165. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +97 -0
  166. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +92 -0
  167. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +32 -0
  168. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +32 -0
  169. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +34 -0
  170. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +31 -0
  171. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +45 -0
  172. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +58 -0
  173. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +64 -0
  174. package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +37 -0
  175. package/node_modules/hono/dist/cjs/adapter/deno/deno.d.js +1 -0
  176. package/node_modules/hono/dist/cjs/adapter/deno/index.js +39 -0
  177. package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +63 -0
  178. package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +42 -0
  179. package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +51 -0
  180. package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +32 -0
  181. package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +114 -0
  182. package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +31 -0
  183. package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +32 -0
  184. package/node_modules/hono/dist/cjs/adapter/netlify/index.js +22 -0
  185. package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +28 -0
  186. package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +43 -0
  187. package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +35 -0
  188. package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +16 -0
  189. package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +33 -0
  190. package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +30 -0
  191. package/node_modules/hono/dist/cjs/adapter/vercel/index.js +31 -0
  192. package/node_modules/hono/dist/cjs/client/client.js +190 -0
  193. package/node_modules/hono/dist/cjs/client/fetch-result-please.js +86 -0
  194. package/node_modules/hono/dist/cjs/client/index.js +33 -0
  195. package/node_modules/hono/dist/cjs/client/types.js +16 -0
  196. package/node_modules/hono/dist/cjs/client/utils.js +106 -0
  197. package/node_modules/hono/dist/cjs/compose.js +69 -0
  198. package/node_modules/hono/dist/cjs/context.js +435 -0
  199. package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +44 -0
  200. package/node_modules/hono/dist/cjs/helper/accepts/index.js +28 -0
  201. package/node_modules/hono/dist/cjs/helper/adapter/index.js +82 -0
  202. package/node_modules/hono/dist/cjs/helper/conninfo/index.js +16 -0
  203. package/node_modules/hono/dist/cjs/helper/conninfo/types.js +16 -0
  204. package/node_modules/hono/dist/cjs/helper/cookie/index.js +131 -0
  205. package/node_modules/hono/dist/cjs/helper/css/common.js +223 -0
  206. package/node_modules/hono/dist/cjs/helper/css/index.js +143 -0
  207. package/node_modules/hono/dist/cjs/helper/dev/index.js +80 -0
  208. package/node_modules/hono/dist/cjs/helper/factory/index.js +55 -0
  209. package/node_modules/hono/dist/cjs/helper/html/index.js +65 -0
  210. package/node_modules/hono/dist/cjs/helper/proxy/index.js +112 -0
  211. package/node_modules/hono/dist/cjs/helper/route/index.js +72 -0
  212. package/node_modules/hono/dist/cjs/helper/ssg/index.js +39 -0
  213. package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +74 -0
  214. package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +326 -0
  215. package/node_modules/hono/dist/cjs/helper/ssg/utils.js +85 -0
  216. package/node_modules/hono/dist/cjs/helper/streaming/index.js +36 -0
  217. package/node_modules/hono/dist/cjs/helper/streaming/sse.js +86 -0
  218. package/node_modules/hono/dist/cjs/helper/streaming/stream.js +57 -0
  219. package/node_modules/hono/dist/cjs/helper/streaming/text.js +35 -0
  220. package/node_modules/hono/dist/cjs/helper/streaming/utils.js +36 -0
  221. package/node_modules/hono/dist/cjs/helper/testing/index.js +34 -0
  222. package/node_modules/hono/dist/cjs/helper/websocket/index.js +82 -0
  223. package/node_modules/hono/dist/cjs/hono-base.js +401 -0
  224. package/node_modules/hono/dist/cjs/hono.js +44 -0
  225. package/node_modules/hono/dist/cjs/http-exception.js +58 -0
  226. package/node_modules/hono/dist/cjs/index.js +28 -0
  227. package/node_modules/hono/dist/cjs/jsx/base.js +375 -0
  228. package/node_modules/hono/dist/cjs/jsx/children.js +45 -0
  229. package/node_modules/hono/dist/cjs/jsx/components.js +176 -0
  230. package/node_modules/hono/dist/cjs/jsx/constants.js +43 -0
  231. package/node_modules/hono/dist/cjs/jsx/context.js +61 -0
  232. package/node_modules/hono/dist/cjs/jsx/dom/client.js +77 -0
  233. package/node_modules/hono/dist/cjs/jsx/dom/components.js +56 -0
  234. package/node_modules/hono/dist/cjs/jsx/dom/context.js +72 -0
  235. package/node_modules/hono/dist/cjs/jsx/dom/css.js +162 -0
  236. package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +75 -0
  237. package/node_modules/hono/dist/cjs/jsx/dom/index.js +182 -0
  238. package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +369 -0
  239. package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +53 -0
  240. package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +33 -0
  241. package/node_modules/hono/dist/cjs/jsx/dom/render.js +622 -0
  242. package/node_modules/hono/dist/cjs/jsx/dom/server.js +68 -0
  243. package/node_modules/hono/dist/cjs/jsx/dom/utils.js +33 -0
  244. package/node_modules/hono/dist/cjs/jsx/hooks/index.js +371 -0
  245. package/node_modules/hono/dist/cjs/jsx/index.js +139 -0
  246. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +40 -0
  247. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +183 -0
  248. package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +16 -0
  249. package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +42 -0
  250. package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +69 -0
  251. package/node_modules/hono/dist/cjs/jsx/streaming.js +168 -0
  252. package/node_modules/hono/dist/cjs/jsx/types.js +16 -0
  253. package/node_modules/hono/dist/cjs/jsx/utils.js +51 -0
  254. package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +83 -0
  255. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +106 -0
  256. package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +85 -0
  257. package/node_modules/hono/dist/cjs/middleware/cache/index.js +102 -0
  258. package/node_modules/hono/dist/cjs/middleware/combine/index.js +102 -0
  259. package/node_modules/hono/dist/cjs/middleware/compress/index.js +62 -0
  260. package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +48 -0
  261. package/node_modules/hono/dist/cjs/middleware/cors/index.js +110 -0
  262. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +78 -0
  263. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +56 -0
  264. package/node_modules/hono/dist/cjs/middleware/etag/index.js +96 -0
  265. package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +125 -0
  266. package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +82 -0
  267. package/node_modules/hono/dist/cjs/middleware/jwk/index.js +28 -0
  268. package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +135 -0
  269. package/node_modules/hono/dist/cjs/middleware/jwt/index.js +39 -0
  270. package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +141 -0
  271. package/node_modules/hono/dist/cjs/middleware/language/index.js +36 -0
  272. package/node_modules/hono/dist/cjs/middleware/language/language.js +211 -0
  273. package/node_modules/hono/dist/cjs/middleware/logger/index.js +73 -0
  274. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +105 -0
  275. package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +33 -0
  276. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +38 -0
  277. package/node_modules/hono/dist/cjs/middleware/request-id/index.js +28 -0
  278. package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +44 -0
  279. package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +30 -0
  280. package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +16 -0
  281. package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +190 -0
  282. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +99 -0
  283. package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +41 -0
  284. package/node_modules/hono/dist/cjs/middleware/timeout/index.js +48 -0
  285. package/node_modules/hono/dist/cjs/middleware/timing/index.js +36 -0
  286. package/node_modules/hono/dist/cjs/middleware/timing/timing.js +129 -0
  287. package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +49 -0
  288. package/node_modules/hono/dist/cjs/package.json +3 -0
  289. package/node_modules/hono/dist/cjs/preset/quick.js +39 -0
  290. package/node_modules/hono/dist/cjs/preset/tiny.js +35 -0
  291. package/node_modules/hono/dist/cjs/request/constants.js +28 -0
  292. package/node_modules/hono/dist/cjs/request.js +325 -0
  293. package/node_modules/hono/dist/cjs/router/linear-router/index.js +28 -0
  294. package/node_modules/hono/dist/cjs/router/linear-router/router.js +141 -0
  295. package/node_modules/hono/dist/cjs/router/pattern-router/index.js +28 -0
  296. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +71 -0
  297. package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +35 -0
  298. package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +49 -0
  299. package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +135 -0
  300. package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +167 -0
  301. package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +209 -0
  302. package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +82 -0
  303. package/node_modules/hono/dist/cjs/router/smart-router/index.js +28 -0
  304. package/node_modules/hono/dist/cjs/router/smart-router/router.js +81 -0
  305. package/node_modules/hono/dist/cjs/router/trie-router/index.js +28 -0
  306. package/node_modules/hono/dist/cjs/router/trie-router/node.js +185 -0
  307. package/node_modules/hono/dist/cjs/router/trie-router/router.js +49 -0
  308. package/node_modules/hono/dist/cjs/router.js +41 -0
  309. package/node_modules/hono/dist/cjs/types.js +29 -0
  310. package/node_modules/hono/dist/cjs/utils/accept.js +86 -0
  311. package/node_modules/hono/dist/cjs/utils/basic-auth.js +46 -0
  312. package/node_modules/hono/dist/cjs/utils/body.js +95 -0
  313. package/node_modules/hono/dist/cjs/utils/buffer.js +76 -0
  314. package/node_modules/hono/dist/cjs/utils/color.js +49 -0
  315. package/node_modules/hono/dist/cjs/utils/compress.js +28 -0
  316. package/node_modules/hono/dist/cjs/utils/concurrent.js +62 -0
  317. package/node_modules/hono/dist/cjs/utils/constants.js +28 -0
  318. package/node_modules/hono/dist/cjs/utils/cookie.js +173 -0
  319. package/node_modules/hono/dist/cjs/utils/crypto.js +70 -0
  320. package/node_modules/hono/dist/cjs/utils/encode.js +55 -0
  321. package/node_modules/hono/dist/cjs/utils/filepath.js +59 -0
  322. package/node_modules/hono/dist/cjs/utils/handler.js +37 -0
  323. package/node_modules/hono/dist/cjs/utils/headers.js +16 -0
  324. package/node_modules/hono/dist/cjs/utils/html.js +151 -0
  325. package/node_modules/hono/dist/cjs/utils/http-status.js +16 -0
  326. package/node_modules/hono/dist/cjs/utils/ipaddr.js +129 -0
  327. package/node_modules/hono/dist/cjs/utils/jwt/index.js +29 -0
  328. package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +43 -0
  329. package/node_modules/hono/dist/cjs/utils/jwt/jws.js +216 -0
  330. package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +210 -0
  331. package/node_modules/hono/dist/cjs/utils/jwt/types.js +162 -0
  332. package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +31 -0
  333. package/node_modules/hono/dist/cjs/utils/mime.js +109 -0
  334. package/node_modules/hono/dist/cjs/utils/stream.js +102 -0
  335. package/node_modules/hono/dist/cjs/utils/types.js +16 -0
  336. package/node_modules/hono/dist/cjs/utils/url.js +253 -0
  337. package/node_modules/hono/dist/cjs/validator/index.js +28 -0
  338. package/node_modules/hono/dist/cjs/validator/utils.js +16 -0
  339. package/node_modules/hono/dist/cjs/validator/validator.js +109 -0
  340. package/node_modules/hono/dist/client/client.js +174 -0
  341. package/node_modules/hono/dist/client/fetch-result-please.js +62 -0
  342. package/node_modules/hono/dist/client/index.js +8 -0
  343. package/node_modules/hono/dist/client/types.js +0 -0
  344. package/node_modules/hono/dist/client/utils.js +76 -0
  345. package/node_modules/hono/dist/compose.js +46 -0
  346. package/node_modules/hono/dist/context.js +411 -0
  347. package/node_modules/hono/dist/helper/accepts/accepts.js +20 -0
  348. package/node_modules/hono/dist/helper/accepts/index.js +5 -0
  349. package/node_modules/hono/dist/helper/adapter/index.js +56 -0
  350. package/node_modules/hono/dist/helper/conninfo/index.js +0 -0
  351. package/node_modules/hono/dist/helper/conninfo/types.js +0 -0
  352. package/node_modules/hono/dist/helper/cookie/index.js +102 -0
  353. package/node_modules/hono/dist/helper/css/common.js +185 -0
  354. package/node_modules/hono/dist/helper/css/index.js +125 -0
  355. package/node_modules/hono/dist/helper/dev/index.js +55 -0
  356. package/node_modules/hono/dist/helper/factory/index.js +30 -0
  357. package/node_modules/hono/dist/helper/html/index.js +41 -0
  358. package/node_modules/hono/dist/helper/proxy/index.js +89 -0
  359. package/node_modules/hono/dist/helper/route/index.js +46 -0
  360. package/node_modules/hono/dist/helper/ssg/index.js +16 -0
  361. package/node_modules/hono/dist/helper/ssg/middleware.js +45 -0
  362. package/node_modules/hono/dist/helper/ssg/ssg.js +295 -0
  363. package/node_modules/hono/dist/helper/ssg/utils.js +59 -0
  364. package/node_modules/hono/dist/helper/streaming/index.js +10 -0
  365. package/node_modules/hono/dist/helper/streaming/sse.js +62 -0
  366. package/node_modules/hono/dist/helper/streaming/stream.js +34 -0
  367. package/node_modules/hono/dist/helper/streaming/text.js +12 -0
  368. package/node_modules/hono/dist/helper/streaming/utils.js +13 -0
  369. package/node_modules/hono/dist/helper/testing/index.js +11 -0
  370. package/node_modules/hono/dist/helper/websocket/index.js +57 -0
  371. package/node_modules/hono/dist/hono-base.js +378 -0
  372. package/node_modules/hono/dist/hono.js +21 -0
  373. package/node_modules/hono/dist/http-exception.js +35 -0
  374. package/node_modules/hono/dist/index.js +5 -0
  375. package/node_modules/hono/dist/jsx/base.js +331 -0
  376. package/node_modules/hono/dist/jsx/children.js +21 -0
  377. package/node_modules/hono/dist/jsx/components.js +152 -0
  378. package/node_modules/hono/dist/jsx/constants.js +15 -0
  379. package/node_modules/hono/dist/jsx/context.js +36 -0
  380. package/node_modules/hono/dist/jsx/dom/client.js +53 -0
  381. package/node_modules/hono/dist/jsx/dom/components.js +32 -0
  382. package/node_modules/hono/dist/jsx/dom/context.js +48 -0
  383. package/node_modules/hono/dist/jsx/dom/css.js +143 -0
  384. package/node_modules/hono/dist/jsx/dom/hooks/index.js +48 -0
  385. package/node_modules/hono/dist/jsx/dom/index.js +142 -0
  386. package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +337 -0
  387. package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +19 -0
  388. package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +8 -0
  389. package/node_modules/hono/dist/jsx/dom/render.js +597 -0
  390. package/node_modules/hono/dist/jsx/dom/server.js +33 -0
  391. package/node_modules/hono/dist/jsx/dom/utils.js +10 -0
  392. package/node_modules/hono/dist/jsx/hooks/index.js +328 -0
  393. package/node_modules/hono/dist/jsx/index.js +103 -0
  394. package/node_modules/hono/dist/jsx/intrinsic-element/common.js +15 -0
  395. package/node_modules/hono/dist/jsx/intrinsic-element/components.js +153 -0
  396. package/node_modules/hono/dist/jsx/intrinsic-elements.js +0 -0
  397. package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +18 -0
  398. package/node_modules/hono/dist/jsx/jsx-runtime.js +41 -0
  399. package/node_modules/hono/dist/jsx/streaming.js +143 -0
  400. package/node_modules/hono/dist/jsx/types.js +0 -0
  401. package/node_modules/hono/dist/jsx/utils.js +27 -0
  402. package/node_modules/hono/dist/middleware/basic-auth/index.js +60 -0
  403. package/node_modules/hono/dist/middleware/bearer-auth/index.js +83 -0
  404. package/node_modules/hono/dist/middleware/body-limit/index.js +62 -0
  405. package/node_modules/hono/dist/middleware/cache/index.js +79 -0
  406. package/node_modules/hono/dist/middleware/combine/index.js +77 -0
  407. package/node_modules/hono/dist/middleware/compress/index.js +39 -0
  408. package/node_modules/hono/dist/middleware/context-storage/index.js +23 -0
  409. package/node_modules/hono/dist/middleware/cors/index.js +87 -0
  410. package/node_modules/hono/dist/middleware/csrf/index.js +55 -0
  411. package/node_modules/hono/dist/middleware/etag/digest.js +33 -0
  412. package/node_modules/hono/dist/middleware/etag/index.js +72 -0
  413. package/node_modules/hono/dist/middleware/ip-restriction/index.js +107 -0
  414. package/node_modules/hono/dist/middleware/jsx-renderer/index.js +57 -0
  415. package/node_modules/hono/dist/middleware/jwk/index.js +5 -0
  416. package/node_modules/hono/dist/middleware/jwk/jwk.js +112 -0
  417. package/node_modules/hono/dist/middleware/jwt/index.js +11 -0
  418. package/node_modules/hono/dist/middleware/jwt/jwt.js +114 -0
  419. package/node_modules/hono/dist/middleware/language/index.js +15 -0
  420. package/node_modules/hono/dist/middleware/language/language.js +179 -0
  421. package/node_modules/hono/dist/middleware/logger/index.js +44 -0
  422. package/node_modules/hono/dist/middleware/method-override/index.js +82 -0
  423. package/node_modules/hono/dist/middleware/powered-by/index.js +10 -0
  424. package/node_modules/hono/dist/middleware/pretty-json/index.js +15 -0
  425. package/node_modules/hono/dist/middleware/request-id/index.js +5 -0
  426. package/node_modules/hono/dist/middleware/request-id/request-id.js +21 -0
  427. package/node_modules/hono/dist/middleware/secure-headers/index.js +6 -0
  428. package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +0 -0
  429. package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +166 -0
  430. package/node_modules/hono/dist/middleware/serve-static/index.js +76 -0
  431. package/node_modules/hono/dist/middleware/serve-static/path.js +18 -0
  432. package/node_modules/hono/dist/middleware/timeout/index.js +25 -0
  433. package/node_modules/hono/dist/middleware/timing/index.js +9 -0
  434. package/node_modules/hono/dist/middleware/timing/timing.js +102 -0
  435. package/node_modules/hono/dist/middleware/trailing-slash/index.js +25 -0
  436. package/node_modules/hono/dist/preset/quick.js +16 -0
  437. package/node_modules/hono/dist/preset/tiny.js +12 -0
  438. package/node_modules/hono/dist/request/constants.js +5 -0
  439. package/node_modules/hono/dist/request.js +301 -0
  440. package/node_modules/hono/dist/router/linear-router/index.js +5 -0
  441. package/node_modules/hono/dist/router/linear-router/router.js +118 -0
  442. package/node_modules/hono/dist/router/pattern-router/index.js +5 -0
  443. package/node_modules/hono/dist/router/pattern-router/router.js +48 -0
  444. package/node_modules/hono/dist/router/reg-exp-router/index.js +9 -0
  445. package/node_modules/hono/dist/router/reg-exp-router/matcher.js +25 -0
  446. package/node_modules/hono/dist/router/reg-exp-router/node.js +111 -0
  447. package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +142 -0
  448. package/node_modules/hono/dist/router/reg-exp-router/router.js +190 -0
  449. package/node_modules/hono/dist/router/reg-exp-router/trie.js +59 -0
  450. package/node_modules/hono/dist/router/smart-router/index.js +5 -0
  451. package/node_modules/hono/dist/router/smart-router/router.js +58 -0
  452. package/node_modules/hono/dist/router/trie-router/index.js +5 -0
  453. package/node_modules/hono/dist/router/trie-router/node.js +162 -0
  454. package/node_modules/hono/dist/router/trie-router/router.js +26 -0
  455. package/node_modules/hono/dist/router.js +14 -0
  456. package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +184 -0
  457. package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +7 -0
  458. package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +144 -0
  459. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +7 -0
  460. package/node_modules/hono/dist/types/adapter/bun/index.d.ts +9 -0
  461. package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +3 -0
  462. package/node_modules/hono/dist/types/adapter/bun/server.d.ts +24 -0
  463. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +13 -0
  464. package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +39 -0
  465. package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +33 -0
  466. package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +6 -0
  467. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +2 -0
  468. package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +7 -0
  469. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +4 -0
  470. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +16 -0
  471. package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +5 -0
  472. package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +2 -0
  473. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +7 -0
  474. package/node_modules/hono/dist/types/adapter/deno/index.d.ts +8 -0
  475. package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +3 -0
  476. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +13 -0
  477. package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +2 -0
  478. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +2 -0
  479. package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +87 -0
  480. package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +7 -0
  481. package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +2 -0
  482. package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +5 -0
  483. package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +1 -0
  484. package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +16 -0
  485. package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +28 -0
  486. package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +12 -0
  487. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +2 -0
  488. package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +2 -0
  489. package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +6 -0
  490. package/node_modules/hono/dist/types/client/client.d.ts +4 -0
  491. package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +35 -0
  492. package/node_modules/hono/dist/types/client/index.d.ts +7 -0
  493. package/node_modules/hono/dist/types/client/types.d.ts +168 -0
  494. package/node_modules/hono/dist/types/client/utils.d.ts +18 -0
  495. package/node_modules/hono/dist/types/compose.d.ts +14 -0
  496. package/node_modules/hono/dist/types/context.d.ts +451 -0
  497. package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +30 -0
  498. package/node_modules/hono/dist/types/helper/accepts/index.d.ts +5 -0
  499. package/node_modules/hono/dist/types/helper/adapter/index.d.ts +12 -0
  500. package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +5 -0
  501. package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +36 -0
  502. package/node_modules/hono/dist/types/helper/cookie/index.d.ts +24 -0
  503. package/node_modules/hono/dist/types/helper/css/common.d.ts +42 -0
  504. package/node_modules/hono/dist/types/helper/css/index.d.ts +73 -0
  505. package/node_modules/hono/dist/types/helper/dev/index.d.ts +20 -0
  506. package/node_modules/hono/dist/types/helper/factory/index.d.ts +82 -0
  507. package/node_modules/hono/dist/types/helper/html/index.d.ts +8 -0
  508. package/node_modules/hono/dist/types/helper/proxy/index.d.ts +72 -0
  509. package/node_modules/hono/dist/types/helper/route/index.d.ts +75 -0
  510. package/node_modules/hono/dist/types/helper/ssg/index.d.ts +6 -0
  511. package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +44 -0
  512. package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +99 -0
  513. package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +15 -0
  514. package/node_modules/hono/dist/types/helper/streaming/index.d.ts +8 -0
  515. package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +13 -0
  516. package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +3 -0
  517. package/node_modules/hono/dist/types/helper/streaming/text.d.ts +3 -0
  518. package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +1 -0
  519. package/node_modules/hono/dist/types/helper/testing/index.d.ts +12 -0
  520. package/node_modules/hono/dist/types/helper/websocket/index.d.ts +69 -0
  521. package/node_modules/hono/dist/types/hono-base.d.ts +220 -0
  522. package/node_modules/hono/dist/types/hono.d.ts +19 -0
  523. package/node_modules/hono/dist/types/http-exception.d.ts +59 -0
  524. package/node_modules/hono/dist/types/index.d.ts +36 -0
  525. package/node_modules/hono/dist/types/jsx/base.d.ts +58 -0
  526. package/node_modules/hono/dist/types/jsx/children.d.ts +9 -0
  527. package/node_modules/hono/dist/types/jsx/components.d.ts +15 -0
  528. package/node_modules/hono/dist/types/jsx/constants.d.ts +6 -0
  529. package/node_modules/hono/dist/types/jsx/context.d.ts +12 -0
  530. package/node_modules/hono/dist/types/jsx/dom/client.d.ts +31 -0
  531. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +10 -0
  532. package/node_modules/hono/dist/types/jsx/dom/context.d.ts +3 -0
  533. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +77 -0
  534. package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +39 -0
  535. package/node_modules/hono/dist/types/jsx/dom/index.d.ts +88 -0
  536. package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +16 -0
  537. package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +8 -0
  538. package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +7 -0
  539. package/node_modules/hono/dist/types/jsx/dom/render.d.ts +73 -0
  540. package/node_modules/hono/dist/types/jsx/dom/server.d.ts +106 -0
  541. package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +1 -0
  542. package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +45 -0
  543. package/node_modules/hono/dist/types/jsx/index.d.ts +75 -0
  544. package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +3 -0
  545. package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +13 -0
  546. package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +722 -0
  547. package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +8 -0
  548. package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +12 -0
  549. package/node_modules/hono/dist/types/jsx/streaming.d.ts +36 -0
  550. package/node_modules/hono/dist/types/jsx/types.d.ts +35 -0
  551. package/node_modules/hono/dist/types/jsx/utils.d.ts +2 -0
  552. package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +56 -0
  553. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +91 -0
  554. package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +45 -0
  555. package/node_modules/hono/dist/types/middleware/cache/index.d.ts +41 -0
  556. package/node_modules/hono/dist/types/middleware/combine/index.d.ts +85 -0
  557. package/node_modules/hono/dist/types/middleware/compress/index.d.ts +29 -0
  558. package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +40 -0
  559. package/node_modules/hono/dist/types/middleware/cors/index.d.ts +55 -0
  560. package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +78 -0
  561. package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +1 -0
  562. package/node_modules/hono/dist/types/middleware/etag/index.d.ts +42 -0
  563. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +31 -0
  564. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +77 -0
  565. package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +1 -0
  566. package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +54 -0
  567. package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +8 -0
  568. package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +67 -0
  569. package/node_modules/hono/dist/types/middleware/language/index.d.ts +7 -0
  570. package/node_modules/hono/dist/types/middleware/language/language.d.ts +102 -0
  571. package/node_modules/hono/dist/types/middleware/logger/index.d.ts +24 -0
  572. package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +48 -0
  573. package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +29 -0
  574. package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +42 -0
  575. package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +7 -0
  576. package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +37 -0
  577. package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +8 -0
  578. package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +14 -0
  579. package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +109 -0
  580. package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +31 -0
  581. package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +5 -0
  582. package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +31 -0
  583. package/node_modules/hono/dist/types/middleware/timing/index.d.ts +7 -0
  584. package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +129 -0
  585. package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +37 -0
  586. package/node_modules/hono/dist/types/package.json +3 -0
  587. package/node_modules/hono/dist/types/preset/quick.d.ts +10 -0
  588. package/node_modules/hono/dist/types/preset/tiny.d.ts +10 -0
  589. package/node_modules/hono/dist/types/request/constants.d.ts +1 -0
  590. package/node_modules/hono/dist/types/request.d.ts +313 -0
  591. package/node_modules/hono/dist/types/router/linear-router/index.d.ts +5 -0
  592. package/node_modules/hono/dist/types/router/linear-router/router.d.ts +7 -0
  593. package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +5 -0
  594. package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +7 -0
  595. package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +6 -0
  596. package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +7 -0
  597. package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +10 -0
  598. package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +17 -0
  599. package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +11 -0
  600. package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +7 -0
  601. package/node_modules/hono/dist/types/router/smart-router/index.d.ts +5 -0
  602. package/node_modules/hono/dist/types/router/smart-router/router.d.ts +11 -0
  603. package/node_modules/hono/dist/types/router/trie-router/index.d.ts +5 -0
  604. package/node_modules/hono/dist/types/router/trie-router/node.d.ts +7 -0
  605. package/node_modules/hono/dist/types/router/trie-router/router.d.ts +8 -0
  606. package/node_modules/hono/dist/types/router.d.ts +97 -0
  607. package/node_modules/hono/dist/types/types.d.ts +573 -0
  608. package/node_modules/hono/dist/types/utils/accept.d.ts +11 -0
  609. package/node_modules/hono/dist/types/utils/basic-auth.d.ts +5 -0
  610. package/node_modules/hono/dist/types/utils/body.d.ts +79 -0
  611. package/node_modules/hono/dist/types/utils/buffer.d.ts +8 -0
  612. package/node_modules/hono/dist/types/utils/color.d.ts +21 -0
  613. package/node_modules/hono/dist/types/utils/compress.d.ts +8 -0
  614. package/node_modules/hono/dist/types/utils/concurrent.d.ts +11 -0
  615. package/node_modules/hono/dist/types/utils/constants.d.ts +4 -0
  616. package/node_modules/hono/dist/types/utils/cookie.d.ts +40 -0
  617. package/node_modules/hono/dist/types/utils/crypto.d.ts +15 -0
  618. package/node_modules/hono/dist/types/utils/encode.d.ts +8 -0
  619. package/node_modules/hono/dist/types/utils/filepath.d.ts +12 -0
  620. package/node_modules/hono/dist/types/utils/handler.d.ts +6 -0
  621. package/node_modules/hono/dist/types/utils/headers.d.ts +8 -0
  622. package/node_modules/hono/dist/types/utils/html.d.ts +44 -0
  623. package/node_modules/hono/dist/types/utils/http-status.d.ts +32 -0
  624. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +40 -0
  625. package/node_modules/hono/dist/types/utils/jwt/index.d.ts +18 -0
  626. package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +23 -0
  627. package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +12 -0
  628. package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +43 -0
  629. package/node_modules/hono/dist/types/utils/jwt/types.d.ts +86 -0
  630. package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +6 -0
  631. package/node_modules/hono/dist/types/utils/mime.d.ts +70 -0
  632. package/node_modules/hono/dist/types/utils/stream.d.ts +31 -0
  633. package/node_modules/hono/dist/types/utils/types.d.ts +74 -0
  634. package/node_modules/hono/dist/types/utils/url.d.ts +29 -0
  635. package/node_modules/hono/dist/types/validator/index.d.ts +7 -0
  636. package/node_modules/hono/dist/types/validator/utils.d.ts +29 -0
  637. package/node_modules/hono/dist/types/validator/validator.d.ts +16 -0
  638. package/node_modules/hono/dist/types.js +6 -0
  639. package/node_modules/hono/dist/utils/accept.js +63 -0
  640. package/node_modules/hono/dist/utils/basic-auth.js +23 -0
  641. package/node_modules/hono/dist/utils/body.js +72 -0
  642. package/node_modules/hono/dist/utils/buffer.js +50 -0
  643. package/node_modules/hono/dist/utils/color.js +25 -0
  644. package/node_modules/hono/dist/utils/compress.js +5 -0
  645. package/node_modules/hono/dist/utils/concurrent.js +39 -0
  646. package/node_modules/hono/dist/utils/constants.js +5 -0
  647. package/node_modules/hono/dist/utils/cookie.js +147 -0
  648. package/node_modules/hono/dist/utils/crypto.js +44 -0
  649. package/node_modules/hono/dist/utils/encode.js +29 -0
  650. package/node_modules/hono/dist/utils/filepath.js +35 -0
  651. package/node_modules/hono/dist/utils/handler.js +13 -0
  652. package/node_modules/hono/dist/utils/headers.js +0 -0
  653. package/node_modules/hono/dist/utils/html.js +123 -0
  654. package/node_modules/hono/dist/utils/http-status.js +0 -0
  655. package/node_modules/hono/dist/utils/ipaddr.js +101 -0
  656. package/node_modules/hono/dist/utils/jwt/index.js +6 -0
  657. package/node_modules/hono/dist/utils/jwt/jwa.js +20 -0
  658. package/node_modules/hono/dist/utils/jwt/jws.js +192 -0
  659. package/node_modules/hono/dist/utils/jwt/jwt.js +197 -0
  660. package/node_modules/hono/dist/utils/jwt/types.js +124 -0
  661. package/node_modules/hono/dist/utils/jwt/utf8.js +7 -0
  662. package/node_modules/hono/dist/utils/mime.js +84 -0
  663. package/node_modules/hono/dist/utils/stream.js +79 -0
  664. package/node_modules/hono/dist/utils/types.js +0 -0
  665. package/node_modules/hono/dist/utils/url.js +219 -0
  666. package/node_modules/hono/dist/validator/index.js +5 -0
  667. package/node_modules/hono/dist/validator/utils.js +0 -0
  668. package/node_modules/hono/dist/validator/validator.js +86 -0
  669. package/node_modules/hono/package.json +691 -0
  670. package/node_modules/ip-address/LICENSE +19 -0
  671. package/node_modules/ip-address/README.md +105 -0
  672. package/node_modules/ip-address/dist/address-error.d.ts +5 -0
  673. package/node_modules/ip-address/dist/address-error.d.ts.map +1 -0
  674. package/node_modules/ip-address/dist/address-error.js +12 -0
  675. package/node_modules/ip-address/dist/address-error.js.map +1 -0
  676. package/node_modules/ip-address/dist/common.d.ts +15 -0
  677. package/node_modules/ip-address/dist/common.d.ts.map +1 -0
  678. package/node_modules/ip-address/dist/common.js +46 -0
  679. package/node_modules/ip-address/dist/common.js.map +1 -0
  680. package/node_modules/ip-address/dist/ip-address.d.ts +8 -0
  681. package/node_modules/ip-address/dist/ip-address.d.ts.map +1 -0
  682. package/node_modules/ip-address/dist/ip-address.js +35 -0
  683. package/node_modules/ip-address/dist/ip-address.js.map +1 -0
  684. package/node_modules/ip-address/dist/ipv4.d.ts +193 -0
  685. package/node_modules/ip-address/dist/ipv4.d.ts.map +1 -0
  686. package/node_modules/ip-address/dist/ipv4.js +327 -0
  687. package/node_modules/ip-address/dist/ipv4.js.map +1 -0
  688. package/node_modules/ip-address/dist/ipv6.d.ts +428 -0
  689. package/node_modules/ip-address/dist/ipv6.d.ts.map +1 -0
  690. package/node_modules/ip-address/dist/ipv6.js +1003 -0
  691. package/node_modules/ip-address/dist/ipv6.js.map +1 -0
  692. package/node_modules/ip-address/dist/v4/constants.d.ts +5 -0
  693. package/node_modules/ip-address/dist/v4/constants.d.ts.map +1 -0
  694. package/node_modules/ip-address/dist/v4/constants.js +8 -0
  695. package/node_modules/ip-address/dist/v4/constants.js.map +1 -0
  696. package/node_modules/ip-address/dist/v6/constants.d.ts +45 -0
  697. package/node_modules/ip-address/dist/v6/constants.d.ts.map +1 -0
  698. package/node_modules/ip-address/dist/v6/constants.js +76 -0
  699. package/node_modules/ip-address/dist/v6/constants.js.map +1 -0
  700. package/node_modules/ip-address/dist/v6/helpers.d.ts +18 -0
  701. package/node_modules/ip-address/dist/v6/helpers.d.ts.map +1 -0
  702. package/node_modules/ip-address/dist/v6/helpers.js +45 -0
  703. package/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
  704. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +6 -0
  705. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +1 -0
  706. package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
  707. package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
  708. package/node_modules/ip-address/package.json +78 -0
  709. package/node_modules/ip-address/src/address-error.ts +11 -0
  710. package/node_modules/ip-address/src/common.ts +55 -0
  711. package/node_modules/ip-address/src/ip-address.ts +7 -0
  712. package/node_modules/ip-address/src/ipv4.ts +356 -0
  713. package/node_modules/ip-address/src/ipv6.ts +1212 -0
  714. package/node_modules/ip-address/src/v4/constants.ts +7 -0
  715. package/node_modules/ip-address/src/v6/constants.ts +79 -0
  716. package/node_modules/ip-address/src/v6/helpers.ts +48 -0
  717. package/node_modules/ip-address/src/v6/regular-expressions.ts +94 -0
  718. package/package.json +6 -7
  719. package/dist/claude-marketplace/core/skills/knowledge.add/skill.md +0 -47
  720. package/dist/claude-marketplace/core/skills/knowledge.delete/skill.md +0 -22
  721. package/dist/claude-marketplace/core/skills/knowledge.import/skill.md +0 -34
  722. package/dist/claude-marketplace/core/skills/knowledge.init/skill.md +0 -37
  723. package/dist/claude-marketplace/core/skills/knowledge.save/skill.md +0 -39
  724. package/dist/claude-marketplace/core/skills/knowledge.status/skill.md +0 -19
  725. package/dist/claude-marketplace/core/skills/knowledge.update/skill.md +0 -34
package/README.md CHANGED
@@ -12,6 +12,57 @@ Knowledge Bank is a lightweight Claude Code plugin that transforms your developm
12
12
  - 🏗️ **Intelligent organization** using multi-dimensional classification
13
13
  - ⚡ **Zero-friction integration** with your existing Claude Code workflow
14
14
 
15
+ ## Design Philosophy
16
+
17
+ Knowledge Bank is built on a fundamental principle: **knowledge should be deeply integrated into the entire software development lifecycle**, not treated as a separate documentation burden.
18
+
19
+ ### 🔄 **Lifecycle-Integrated Knowledge Management**
20
+
21
+ **Throughout Every Development Phase:**
22
+ - **Design Phase**: Capture architectural decisions and design patterns
23
+ - **Development Phase**: Record code patterns, implementation insights, and technical decisions
24
+ - **Code Review Phase**: Document review findings, best practices, and improvement patterns
25
+ - **Testing Phase**: Store testing strategies, edge cases, and quality insights
26
+ - **Deployment Phase**: Record deployment patterns, configuration knowledge, and operational insights
27
+ - **Maintenance Phase**: Capture troubleshooting knowledge, performance optimizations, and evolution patterns
28
+
29
+ ### 🔗 **Code-Bound Knowledge Strategy**
30
+
31
+ **Knowledge-Code Coupling**: By binding knowledge collection and retrieval directly to your code workflow, we ensure:
32
+
33
+ - **High Knowledge Density**: Every captured insight is contextually relevant and immediately actionable
34
+ - **Automatic Freshness**: Knowledge stays current as it's updated alongside code changes
35
+ - **Zero Maintenance Overhead**: No separate documentation process to maintain
36
+ - **Contextual Relevance**: Knowledge appears exactly when and where you need it
37
+
38
+ ### 🤖 **LLM-Native Knowledge Design**
39
+
40
+ **Implicit Information for AI Consumption**: Knowledge Bank recognizes that modern development increasingly involves AI assistance. Our knowledge format is optimized for:
41
+
42
+ **LLM-Optimized Storage**:
43
+ - Structured data formats that AI models can efficiently process
44
+ - Rich metadata and classification for intelligent retrieval
45
+ - Contextual relationships that help AI understand relevance
46
+ - Pattern recognition data that enables proactive suggestions
47
+
48
+ **Human-Extractable Insights**:
49
+ - While knowledge is stored for AI consumption, humans can extract valuable insights through:
50
+ - **Web Dashboard**: Browse and search through accumulated knowledge
51
+ - **Pattern Recognition**: Identify recurring themes and solutions across projects
52
+ - **Knowledge Synthesis**: Derive high-level principles from detailed implementation knowledge
53
+ - **Learning Acceleration**: Understand team knowledge and best practices through accumulated insights
54
+
55
+ ### 🎯 **Value-Driven Knowledge Capture**
56
+
57
+ **Maximizing Knowledge ROI**: By focusing on usage frequency and value density:
58
+
59
+ - **Contextual Triggering**: Knowledge is captured and surfaced based on actual development context
60
+ - **Relevance Scoring**: Only valuable, applicable knowledge reaches the developer
61
+ - **Automatic Organization**: AI-driven classification ensures knowledge remains findable and useful
62
+ - **Continuous Refinement**: Knowledge quality improves through usage patterns and feedback loops
63
+
64
+ This philosophy transforms knowledge from a documentation burden into an intelligent development accelerator that grows more valuable with every coding session.
65
+
15
66
  ## Installation
16
67
 
17
68
  ### Prerequisites
@@ -96,6 +147,39 @@ The web interface provides comprehensive access to your knowledge database:
96
147
 
97
148
  The web interface transforms your local knowledge database into an accessible, browsable resource that helps you leverage your accumulated development experience effectively.
98
149
 
150
+ ## How it Works
151
+
152
+ Knowledge Bank integrates seamlessly with Claude Code to automatically capture, organize, and retrieve development knowledge through a simple three-step process:
153
+
154
+ ### 📥 **Knowledge Capture**
155
+ - **Automatic Collection**: Uses Claude Code's hook system to capture development insights during your coding sessions
156
+ - **Smart Classification**: Organizes knowledge by type (code patterns, architecture, configurations, pitfalls, etc.)
157
+ - **Context Awareness**: Associates knowledge with specific projects, files, and development activities
158
+
159
+ ### 🗄️ **Knowledge Storage**
160
+ - **Local Database**: Stores all knowledge in a local SQLite database for privacy and speed
161
+ - **Rich Organization**: Categorizes knowledge by scope, source, and development lifecycle stage
162
+ - **Full-Text Search**: Enables fast searching across all stored knowledge items
163
+
164
+ ### 🔍 **Knowledge Retrieval**
165
+ - **Intelligent Search**: Finds relevant knowledge based on your current development context
166
+ - **Multiple Interfaces**: Access through Claude Code (via MCP), web dashboard, or command line
167
+ - **Context Injection**: Automatically surfaces relevant insights when you need them
168
+
169
+ ### 🔧 **Integration Points**
170
+
171
+ **Claude Code Integration**
172
+ - Hooks into Claude Code's session lifecycle for automatic knowledge capture
173
+ - Provides MCP server for real-time knowledge search and retrieval
174
+ - Works transparently without disrupting your development workflow
175
+
176
+ **Web Dashboard**
177
+ - Browse and explore your knowledge database through a user-friendly interface
178
+ - Advanced search and filtering capabilities
179
+ - Session history and hook event tracking
180
+
181
+ The system transforms your development sessions into a continuously growing, searchable knowledge base that enhances productivity and preserves valuable insights for future reference.
182
+
99
183
  ## License
100
184
 
101
185
  This project is licensed under the ISC License - see the [LICENSE](LICENSE) file for details.
@@ -9,7 +9,7 @@
9
9
  "name": "core",
10
10
  "source": "./core",
11
11
  "description": "Core plugins for knowledge bank",
12
- "version": "0.1.2-alpha.252",
12
+ "version": "0.1.2-alpha.312",
13
13
  "author": {
14
14
  "name": "garbywu",
15
15
  "email": "gabrywu@apache.org"
@@ -18,6 +18,6 @@
18
18
  ],
19
19
  "metadata": {
20
20
  "description": "A marketplace for knowledge bank plugins by gabrywu",
21
- "version": "0.1.2-alpha.252"
21
+ "version": "0.1.2-alpha.312"
22
22
  }
23
23
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core",
3
3
  "description": "Core plugins for knowledge bank",
4
- "version": "0.1.2-alpha.252",
4
+ "version": "0.1.2-alpha.312",
5
5
  "author": {
6
6
  "name": "garbywu",
7
7
  "email": "gabrywu@apache.org"
@@ -102,6 +102,78 @@
102
102
  }
103
103
  ]
104
104
  }
105
+ ],
106
+ "SubagentStart": [
107
+ {
108
+ "hooks": [
109
+ {
110
+ "type": "command",
111
+ "command": "npx knowledge-bank subagent-start"
112
+ }
113
+ ]
114
+ }
115
+ ],
116
+ "PostToolUseFailure": [
117
+ {
118
+ "matcher": "*",
119
+ "hooks": [
120
+ {
121
+ "type": "command",
122
+ "command": "npx knowledge-bank post-tool-use-failure"
123
+ }
124
+ ]
125
+ }
126
+ ],
127
+ "TeammateIdle": [
128
+ {
129
+ "hooks": [
130
+ {
131
+ "type": "command",
132
+ "command": "npx knowledge-bank teammate-idle"
133
+ }
134
+ ]
135
+ }
136
+ ],
137
+ "TaskCompleted": [
138
+ {
139
+ "hooks": [
140
+ {
141
+ "type": "command",
142
+ "command": "npx knowledge-bank task-completed"
143
+ }
144
+ ]
145
+ }
146
+ ],
147
+ "ConfigChange": [
148
+ {
149
+ "matcher": "*",
150
+ "hooks": [
151
+ {
152
+ "type": "command",
153
+ "command": "npx knowledge-bank config-change"
154
+ }
155
+ ]
156
+ }
157
+ ],
158
+ "WorktreeCreate": [
159
+ {
160
+ "hooks": [
161
+ {
162
+ "type": "command",
163
+ "command": "npx knowledge-bank worktree-create"
164
+ }
165
+ ]
166
+ }
167
+ ],
168
+ "WorktreeRemove": [
169
+ {
170
+ "hooks": [
171
+ {
172
+ "type": "command",
173
+ "command": "npx knowledge-bank worktree-remove"
174
+ }
175
+ ]
176
+ }
105
177
  ]
106
178
  }
107
179
  }
@@ -0,0 +1,65 @@
1
+ ---
2
+ name: knowledge.add
3
+ description: Create new knowledge items with intelligent content generation from user instructions. Use when users say 'document this', 'add to knowledge base', 'remember this for later', 'save this insight', 'capture this solution', or 'make a note of this'. Also trigger when users complete complex troubleshooting, discover useful patterns, make architectural decisions, find implementation insights worth capturing, or encounter solutions to tricky problems, even if they don't explicitly mention 'knowledge' or 'documentation'. Automatically validates quality, generates comprehensive content, and includes relevant code examples and file references.
4
+ disable-model-invocation: false # Allows the skill to call Claude for content generation
5
+ user-invocable: true # Makes this skill available to users via /knowledge-add
6
+ allowed-tools: knowledge_create, knowledge_search, knowledge_list, Write, Read, Bash, Skill # MCP tools and system access for knowledge operations
7
+ ---
8
+
9
+ # Knowledge Addition
10
+
11
+ Add a new knowledge item to the knowledge base with automatic content generation from user instruction. This skill uses the `knowledge-bank-management` MCP server to interact with the knowledge base.
12
+
13
+ **System Environment Variables:**
14
+ - CLAUDE_SESSION_ID=!`echo $CLAUDE_SESSION_ID`
15
+ - CLAUDE_SESSION_SOURCE=!`echo $CLAUDE_SESSION_SOURCE`
16
+ - CLAUDE_SESSION_MODE=!`echo $CLAUDE_SESSION_MODE`
17
+ - CLAUDE_SESSION_REPOSITORYID=!`echo $CLAUDE_SESSION_REPOSITORYID`
18
+ - CLAUDE_SESSION_CWD=!`echo $CLAUDE_SESSION_CWD`
19
+
20
+ ## Knowledge Detection Integration
21
+
22
+ **IMPORTANT:** Use the `knowledge.detect` skill to analyze whether the user instruction contains detectable knowledge points before proceeding with knowledge creation. This ensures alignment with established knowledge standards and prevents creation of low-value entries.
23
+
24
+ To use knowledge detection:
25
+ 1. Call `knowledge.detect` with the user instruction as input
26
+ 2. If knowledge points are detected, proceed with creation using the detected categories and structure
27
+ 3. If no knowledge points are detected, inform the user and provide guidance on knowledge-worthy content
28
+
29
+ ## Workflow
30
+
31
+ 1. **Instruction Analysis**: Analyze the user's instruction (`$ARGUMENTS`) to understand the core knowledge to be captured.
32
+ 2. **Context Discovery**: Search the codebase for relevant files, implementation details, and examples related to the instruction.
33
+ 3. **Knowledge Generation**: Generate comprehensive knowledge content based on the analysis:
34
+ - **Title**: A clear, descriptive title.
35
+ - **Type**: One of `architecture`, `code_pattern`, `pitfall`, `tool_usage`, `api_usage`, `exploration`.
36
+ - **Summary**: A concise one-sentence description.
37
+ - **Content**: Detailed explanation, implementation details, and code examples.
38
+ - **Files**: Relevant file paths.
39
+ - **Tags**: Searchable keywords.
40
+ 4. **Knowledge Creation**:
41
+ - Write the generated knowledge data to a temporary JSON file in the !`npx knowledge-bank config -t` directory.
42
+ - Use the `knowledge_create` MCP tool with the `from` parameter (filename only) and current session ID.
43
+ 5. **Confirmation**: Report success and provide the details of the created knowledge item.
44
+
45
+ ## Content Generation Guidelines
46
+
47
+ Use the knowledge detection results from `knowledge.detect` to guide content generation, ensuring adherence to established knowledge categories, quality standards, and structure requirements.
48
+
49
+ ## Examples
50
+
51
+ **Example 1:**
52
+ Input: "Document how we handle error logging in this project"
53
+ Output: Creates a `code_pattern` knowledge item titled "Error Logging Pattern with Winston" including:
54
+ - Analysis of `src/utils/logger.ts` implementation
55
+ - Code examples for error handling patterns
56
+ - File references to relevant logging modules
57
+ - Tagged with 'logging', 'winston', 'error-handling'
58
+
59
+ **Example 2:**
60
+ Input: "Remember this authentication middleware approach we just implemented"
61
+ Output: Creates an `architecture` knowledge item titled "JWT Authentication Middleware Pattern" including:
62
+ - Explanation of middleware chain implementation
63
+ - Code examples from `src/middleware/auth.ts`
64
+ - Security considerations and best practices
65
+ - Integration points with user sessions
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: knowledge.collect
3
- description: Intelligent knowledge management with CRUD operations and lifecycle management
4
- disable-model-invocation: false
5
- user-invocable: true
6
- allowed-tools: knowledge_create, knowledge_get, knowledge_update, knowledge_delete, knowledge_list, knowledge_search, knowledge_update_status, knowledge_stats, Write, Read, Bash
7
- context: fork
8
- agent: general-purpose
3
+ description: Automatically capture and process knowledge from completed development sessions with intelligent deduplication and quality control. Use proactively after task completion when users finish debugging, complete features, solve complex problems, or wrap up development sessions. Also trigger when users say 'save this session', 'capture what we learned', 'collect insights', or when significant technical work concludes with valuable discoveries, successful problem resolution, or architectural decisions that should be preserved for future reference.
4
+ disable-model-invocation: false # Enables automated knowledge detection and processing
5
+ user-invocable: true # Available for explicit collection requests
6
+ allowed-tools: knowledge_create, knowledge_get, knowledge_update, knowledge_delete, knowledge_list, knowledge_search, knowledge_update_status, knowledge_stats, Write, Read, Bash, Skill # Full MCP suite for comprehensive knowledge management
7
+ context: fork # Executes in isolated context to avoid interference with main session
8
+ agent: general-purpose # Uses general-purpose agent for broad analytical capabilities
9
9
  ---
10
10
 
11
11
  # Knowledge Collection & Management
@@ -13,11 +13,12 @@ agent: general-purpose
13
13
  Intelligent knowledge lifecycle management system that processes detected knowledge items through create/update/delete operations with smart deduplication and quality control.
14
14
 
15
15
  **Important:** You have access to the `knowledge-bank-management` MCP server which provides all necessary tools for knowledge management operations. Use these MCP tools to interact with the knowledge bank instead of CLI commands.
16
- **System Environment Variables:**
16
+ **System Environment Variables:**
17
17
  - CLAUDE_SESSION_ID=!`echo $CLAUDE_SESSION_ID`
18
18
  - CLAUDE_SESSION_SOURCE=!`echo $CLAUDE_SESSION_SOURCE`
19
19
  - CLAUDE_SESSION_MODE=!`echo $CLAUDE_SESSION_MODE`
20
20
  - CLAUDE_SESSION_REPOSITORYID=!`echo $CLAUDE_SESSION_REPOSITORYID`
21
+ - CLAUDE_SESSION_CWD=!`echo $CLAUDE_SESSION_CWD`
21
22
 
22
23
  ## File Parameter Configuration
23
24
 
@@ -25,14 +26,14 @@ The MCP tools support file operations through `to` and `from` parameters:
25
26
  - **Filename Only**: Both `to` and `from` parameters accept only filenames (e.g., `knowledge-data.json`)
26
27
  - **Path Resolution**: The MCP tools automatically resolve the complete file paths and return them in responses
27
28
 
28
- ## Knowledge Definition Standards
29
+ ## Knowledge Detection Integration
29
30
 
30
- **IMPORTANT:** Refer to KNOWLEDGE-DEFINITION.md for:
31
- - Knowledge categories and types
32
- - Detection criteria and quality standards
33
- - Core knowledge elements and qualification criteria
31
+ **IMPORTANT:** Use the `knowledge.detect` skill to analyze the current conversation session for detectable knowledge points before proceeding with collection operations. This ensures only valuable, well-structured knowledge is captured and prevents low-quality entries.
34
32
 
35
- This reference document is essential for understanding what constitutes valuable knowledge and how to properly categorize and structure knowledge items.
33
+ To use knowledge detection:
34
+ 1. Call `knowledge.detect` with the conversation content as input
35
+ 2. Use the detection results to guide collection, categorization, and prioritization
36
+ 3. If no significant knowledge is detected, skip collection and provide feedback to the user
36
37
 
37
38
  # Knowledge Management Workflow
38
39
 
@@ -48,44 +49,123 @@ $ARGUMENTS
48
49
 
49
50
  ## Knowledge Detection Criteria
50
51
 
51
- Apply the detailed criteria, definitions, and categories from the Knowledge Definition Standards above to identify valuable knowledge items.
52
+ Use the `knowledge.detect` skill results to identify valuable knowledge items based on established detection criteria and quality standards.
52
53
 
53
54
  ## Knowledge Output Format
54
55
 
55
56
  When valuable knowledge is detected, output it in this structured format:
56
57
 
57
- ### Output Template
58
+ ### Output Format
58
59
 
60
+ ALWAYS use this exact template:
61
+
62
+ When Knowledge is Collected:
59
63
  ```
60
- 🧠 KNOWLEDGE DETECTED
64
+ 🧠 KNOWLEDGE COLLECTED
65
+
66
+ **Total Processed:** [X] items
67
+ **Created:** [Y] new items
68
+ **Updated:** [Z] existing items
61
69
 
62
- Title: [Clear, descriptive title]
63
- Type: [architecture|code_pattern|pitfall|tool_usage|api_usage|exploration]
64
- Summary: [One-sentence description of the insight]
70
+ 1. **[Knowledge Title]**
71
+ Type: [knowledge_type]
72
+ Action: [Created|Updated|Merged]
73
+ Files: [Relevant file paths]
65
74
 
66
- Files: [Comma-separated list of relevant file paths]
67
- Tags: [Searchable keywords for future reference]
75
+ [Additional collected items...]
68
76
  ```
69
77
 
70
- ### No Knowledge Found Output
78
+ When No Valuable Knowledge is Found:
79
+ ```
80
+ 📝 NO SIGNIFICANT KNOWLEDGE DETECTED
71
81
 
72
- When no valuable knowledge is detected:
82
+ **Reason:** [Brief explanation - e.g., "Routine operations without project-specific insights"]
83
+ ```
84
+
85
+ ## Examples
73
86
 
87
+ **Example 1:**
88
+ Input: "Collect knowledge from our React debugging session"
89
+ Output:
90
+ ```
91
+ 🧠 KNOWLEDGE COLLECTED
92
+
93
+ **Total Processed:** 3 items
94
+ **Created:** 2 new items
95
+ **Updated:** 1 existing items
96
+
97
+ 1. **React useState Re-rendering Debug Pattern**
98
+ Type: pitfall
99
+ Action: Created
100
+ Files: src/components/UserProfile.tsx, src/hooks/useUserData.ts
101
+
102
+ 2. **useMemo Performance Optimization**
103
+ Type: code_pattern
104
+ Action: Updated
105
+ Files: src/components/UserProfile.tsx
106
+ ```
107
+
108
+ **Example 2:**
109
+ Input: "Process the configuration file updates we just made"
110
+ Output:
74
111
  ```
75
112
  📝 NO SIGNIFICANT KNOWLEDGE DETECTED
76
113
 
77
- Reason: [Brief explanation - e.g., "Routine operations without project-specific insights"]
114
+ **Reason:** Standard configuration updates without novel patterns or complex problem-solving insights
78
115
  ```
79
116
 
80
117
  ## 2. Duplicate Detection & Conflict Resolution
81
118
 
82
- Before creating new knowledge, search for existing similar items using the `knowledge_search` tool from the `knowledge-bank-management` MCP server. Use the `to` parameter to save search results to a file for analysis. Note: The `to` parameter only contains the filename (e.g., `{knowledge title}.json`), not the full path. The MCP tool will return the complete file path after saving.
119
+ **IMPORTANT CHANGE**: MCP search now returns only essential fields (id, title, summary, knowledge_type, status, source_file) for performance optimization.
120
+
121
+ ### New Duplicate Detection Workflow:
122
+
123
+ #### Step 1: Search for Essential Fields
124
+ Use `knowledge_search` to get potential duplicates:
125
+ **IMPORTANT**: The `knowledge_search` tool now requires a `cwd` parameter. The `cwd` value must be taken from !`echo $CLAUDE_SESSION_CWD`:
126
+
127
+
128
+ ```
129
+ knowledge_search({
130
+ query: ["extracted", "keywords", "from", "new", "knowledge"],
131
+ cwd: "!`echo $CLAUDE_SESSION_CWD`",
132
+ to: "duplicate-search.json"
133
+ })
134
+ ```
135
+
136
+ #### Step 2: Analyze Similarity and Calculate Relevance
137
+ After reading the search results file, you MUST analyze each existing knowledge item's similarity to the new knowledge:
138
+
139
+ **Similarity Scoring Criteria:**
140
+ - **Title Similarity (40% weight)**: Exact word matches and semantic similarity
141
+ - **Knowledge Type Match (30% weight)**: Same knowledge_type indicates potential duplication
142
+ - **Source File Overlap (20% weight)**: Same or related source files
143
+ - **Summary Similarity (10% weight)**: Conceptual overlap in descriptions
144
+
145
+ **Similarity Algorithm:**
146
+ 1. Extract keywords from new knowledge (lowercase, remove stopwords)
147
+ 2. For each existing knowledge item, calculate similarity score (0.0 to 1.0)
148
+ 3. Filter items with similarity > 0.6 (high similarity threshold for duplicates)
149
+ 4. Sort by similarity score descending
150
+
151
+ #### Step 3: Retrieve Full Content for High-Similarity Items Only
152
+ Only for high-similarity items (score > 0.6), use `knowledge_get` to retrieve full content:
153
+ ```
154
+ knowledge_get({
155
+ id: similarId,
156
+ to: "existing-{id}.md"
157
+ })
158
+ ```
159
+
160
+ #### Step 4: Decision Logic Based on Similarity
161
+ - **SIMILARITY > 0.8**: Very likely duplicate - Update existing knowledge
162
+ - **SIMILARITY 0.6-0.8**: Possible duplicate - Merge insights into existing knowledge
163
+ - **SIMILARITY < 0.6**: Unique insight - Create new knowledge item
83
164
 
84
- **Decision Logic:**
85
- - **EXACT MATCH**: Update existing knowledge
86
- - **SIMILAR CONTENT**: Merge insights into existing knowledge
87
- - **UNIQUE INSIGHT**: Create new knowledge item
88
- - **OUTDATED INFO**: Remove obsolete knowledge
165
+ **Critical Requirements:**
166
+ - NEVER call `knowledge_get` for low-similarity items (score ≤ 0.6)
167
+ - Limit duplicate detection to maximum 3 knowledge retrievals
168
+ - Always explain similarity reasoning before making decisions
89
169
 
90
170
  ## 3. Execution via File Passing
91
171
 
@@ -118,7 +198,7 @@ To ensure reliability and handle large content, always use file-based operations
118
198
  # Workflow Examples
119
199
 
120
200
  ## Create New Knowledge
121
- 1. Use `knowledge_search` with the `to` parameter (filename only, e.g., `search-results.json`) to check for duplicates and save results to the !`npx knowledge-bank config -t` directory.
201
+ 1. Use `knowledge_search` with the `cwd: !`echo $CLAUDE_SESSION_CWD`` and `to` parameter (filename only, e.g., `search-results.json`) to check for duplicates and save results to the !`npx knowledge-bank config -t` directory.
122
202
  2. If no duplicates found:
123
203
  - Write new knowledge data to a local JSON file in !`npx knowledge-bank config -t`.
124
204
  - Use `knowledge_create` with the `from` parameter (filename only, e.g., `new-knowledge.json`) and `session_id`,which is ${CLAUDE_SESSION_ID}, and `repository_id`, which is !`echo $CLAUDE_SESSION_REPOSITORYID`.
@@ -138,7 +218,7 @@ To ensure reliability and handle large content, always use file-based operations
138
218
  3. Use `knowledge_update_status` to promote to verified
139
219
 
140
220
  ## Search and Retrieve
141
- 1. Use `knowledge_search` with relevant terms
221
+ 1. Use `knowledge_search` with `cwd: !`echo $CLAUDE_SESSION_CWD`` and relevant terms
142
222
  2. Use `knowledge_get` to retrieve full details
143
223
  3. Use returned knowledge to enhance current context
144
224
 
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: knowledge.delete
3
+ description: Safely remove specific knowledge items from the knowledge base with verification and confirmation. Use when users say 'delete knowledge item', 'remove this knowledge', 'clean up outdated entries', or specify knowledge IDs for removal. Also trigger for maintenance operations when cleaning up duplicate entries after merges, removing obsolete information that no longer applies, deleting low-quality or incorrectly categorized knowledge items, or when users explicitly request removal of specific knowledge entries by ID or description.
4
+ disable-model-invocation: false # Enables content analysis for verification before deletion
5
+ user-invocable: true # Available for explicit deletion requests
6
+ allowed-tools: knowledge_delete, knowledge_get, knowledge_search, Write, Read, Bash # MCP tools for safe deletion operations with verification
7
+ context: fork # Isolated execution for safe deletion operations
8
+ agent: general-purpose # Handles verification and confirmation workflows
9
+ ---
10
+
11
+ # Knowledge Deletion
12
+
13
+ Remove a specific knowledge item from the knowledge base using its ID.
14
+
15
+ **System Environment Variables:**
16
+ - CLAUDE_SESSION_ID=!`echo $CLAUDE_SESSION_ID`
17
+ - CLAUDE_SESSION_SOURCE=!`echo $CLAUDE_SESSION_SOURCE`
18
+ - CLAUDE_SESSION_MODE=!`echo $CLAUDE_SESSION_MODE`
19
+ - CLAUDE_SESSION_REPOSITORYID=!`echo $CLAUDE_SESSION_REPOSITORYID`
20
+ - CLAUDE_SESSION_CWD=!`echo $CLAUDE_SESSION_CWD`
21
+
22
+ ## Workflow
23
+
24
+ 1. **Identification**: Identify the knowledge item to delete using the ID provided in `$ARGUMENTS`. If the ID is not clear, use `knowledge_search` with cwd: !`echo $CLAUDE_SESSION_CWD` to find it.
25
+ 2. **Verification**: Use the `knowledge_get` tool to retrieve the details of the item to ensure it exists and to show the user what will be deleted.
26
+ 3. **Execution**: Use the `knowledge_delete` MCP tool with the specified ID.
27
+ 4. **Reporting**: Confirm successful deletion or report any errors.
28
+
29
+ ⚠️ **Warning**: Deletion is permanent and cannot be undone.
30
+
31
+ ## Output Format
32
+
33
+ ALWAYS use this exact template:
34
+
35
+ ```
36
+ 🗑️ KNOWLEDGE DELETION COMPLETED
37
+
38
+ **Deleted Item:**
39
+ - ID: [X]
40
+ - Title: [Title]
41
+ - Type: [knowledge_type]
42
+ - Status: [status]
43
+
44
+ **Confirmation:** Knowledge item successfully removed from database
45
+ **Impact:** [Brief description of what was removed]
46
+ ```
47
+
48
+ ## Examples
49
+
50
+ **Example 1:**
51
+ Input: "Delete knowledge item 42"
52
+ Output:
53
+ ```
54
+ 🗑️ KNOWLEDGE DELETION COMPLETED
55
+
56
+ **Deleted Item:**
57
+ - ID: 42
58
+ - Title: Outdated React Class Component Pattern
59
+ - Type: code_pattern
60
+ - Status: draft
61
+
62
+ **Confirmation:** Knowledge item successfully removed from database
63
+ **Impact:** Removed deprecated React pattern that's no longer recommended
64
+ ```
65
+
66
+ **Example 2:**
67
+ Input: "Remove duplicate authentication knowledge"
68
+ Output: [First searches for and identifies the duplicate, then shows deletion confirmation]