@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.
- package/README.md +84 -0
- package/dist/claude-marketplace/.claude-plugin/marketplace.json +2 -2
- package/dist/claude-marketplace/core/.claude-plugin/plugin.json +1 -1
- package/dist/claude-marketplace/core/hooks/hooks.json +72 -0
- package/dist/claude-marketplace/core/skills/knowledge.add/SKILL.md +65 -0
- package/dist/claude-marketplace/core/skills/knowledge.collect/SKILL.md +112 -32
- package/dist/claude-marketplace/core/skills/knowledge.delete/SKILL.md +68 -0
- package/dist/claude-marketplace/core/skills/knowledge.detect/SKILL.md +147 -0
- package/dist/claude-marketplace/core/skills/knowledge.enhance/SKILL.md +87 -38
- package/dist/claude-marketplace/core/skills/knowledge.import/SKILL.md +93 -0
- package/dist/claude-marketplace/core/skills/knowledge.init/SKILL.md +113 -0
- package/dist/claude-marketplace/core/skills/knowledge.merge/SKILL.md +319 -0
- package/dist/claude-marketplace/core/skills/knowledge.save/SKILL.md +179 -0
- package/dist/claude-marketplace/core/skills/knowledge.status/SKILL.md +86 -0
- package/dist/claude-marketplace/core/skills/knowledge.update/SKILL.md +161 -0
- package/dist/cli.js +5 -5
- package/dist/mcp-server.js +3 -3
- package/dist/web/public/css/style.css +243 -41
- package/dist/web/public/js/main.js +264 -31
- package/dist/web/views/layout.ejs +9 -5
- package/dist/web/views/partials/row-details.ejs +32 -1
- package/dist/web/views/table.ejs +154 -6
- package/node_modules/@modelcontextprotocol/sdk/README.md +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +6 -3
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts +79 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +93 -16
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js +3 -15
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js +1 -17
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js +62 -23
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js +273 -244
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js +31 -27
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.js +49 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js +89 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js +58 -53
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +33 -21
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts +88 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js +157 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js +8 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +29 -3
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts +4 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +6 -3
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts +79 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +92 -16
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js +3 -15
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js +1 -17
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js +62 -23
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js +273 -244
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js +31 -27
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.js +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js +89 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js +58 -53
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +33 -21
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts +88 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +157 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js +8 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +29 -3
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts +4 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/package.json +16 -6
- package/node_modules/express-rate-limit/dist/index.cjs +334 -198
- package/node_modules/express-rate-limit/dist/index.d.cts +74 -20
- package/node_modules/express-rate-limit/dist/index.d.mts +74 -20
- package/node_modules/express-rate-limit/dist/index.d.ts +74 -20
- package/node_modules/express-rate-limit/dist/index.mjs +330 -195
- package/node_modules/express-rate-limit/package.json +32 -53
- package/node_modules/express-rate-limit/readme.md +5 -1
- package/node_modules/hono/LICENSE +21 -0
- package/node_modules/hono/README.md +85 -0
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +366 -0
- package/node_modules/hono/dist/adapter/aws-lambda/index.js +7 -0
- package/node_modules/hono/dist/adapter/aws-lambda/types.js +0 -0
- package/node_modules/hono/dist/adapter/bun/conninfo.js +27 -0
- package/node_modules/hono/dist/adapter/bun/index.js +14 -0
- package/node_modules/hono/dist/adapter/bun/serve-static.js +30 -0
- package/node_modules/hono/dist/adapter/bun/server.js +5 -0
- package/node_modules/hono/dist/adapter/bun/ssg.js +17 -0
- package/node_modules/hono/dist/adapter/bun/websocket.js +71 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +67 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +7 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +8 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +22 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +35 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +41 -0
- package/node_modules/hono/dist/adapter/deno/conninfo.js +14 -0
- package/node_modules/hono/dist/adapter/deno/deno.d.js +0 -0
- package/node_modules/hono/dist/adapter/deno/index.js +12 -0
- package/node_modules/hono/dist/adapter/deno/serve-static.js +40 -0
- package/node_modules/hono/dist/adapter/deno/ssg.js +18 -0
- package/node_modules/hono/dist/adapter/deno/websocket.js +28 -0
- package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/lambda-edge/handler.js +79 -0
- package/node_modules/hono/dist/adapter/lambda-edge/index.js +7 -0
- package/node_modules/hono/dist/adapter/netlify/handler.js +9 -0
- package/node_modules/hono/dist/adapter/netlify/index.js +2 -0
- package/node_modules/hono/dist/adapter/netlify/mod.js +5 -0
- package/node_modules/hono/dist/adapter/service-worker/handler.js +20 -0
- package/node_modules/hono/dist/adapter/service-worker/index.js +11 -0
- package/node_modules/hono/dist/adapter/service-worker/types.js +0 -0
- package/node_modules/hono/dist/adapter/vercel/conninfo.js +10 -0
- package/node_modules/hono/dist/adapter/vercel/handler.js +7 -0
- package/node_modules/hono/dist/adapter/vercel/index.js +7 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +398 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +32 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +16 -0
- package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +50 -0
- package/node_modules/hono/dist/cjs/adapter/bun/index.js +43 -0
- package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +53 -0
- package/node_modules/hono/dist/cjs/adapter/bun/server.js +28 -0
- package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +41 -0
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +97 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +92 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +32 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +32 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +34 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +45 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +58 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +64 -0
- package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +37 -0
- package/node_modules/hono/dist/cjs/adapter/deno/deno.d.js +1 -0
- package/node_modules/hono/dist/cjs/adapter/deno/index.js +39 -0
- package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +63 -0
- package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +42 -0
- package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +51 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +32 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +114 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +32 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/index.js +22 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +28 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +43 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +35 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +16 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +33 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +30 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/index.js +31 -0
- package/node_modules/hono/dist/cjs/client/client.js +190 -0
- package/node_modules/hono/dist/cjs/client/fetch-result-please.js +86 -0
- package/node_modules/hono/dist/cjs/client/index.js +33 -0
- package/node_modules/hono/dist/cjs/client/types.js +16 -0
- package/node_modules/hono/dist/cjs/client/utils.js +106 -0
- package/node_modules/hono/dist/cjs/compose.js +69 -0
- package/node_modules/hono/dist/cjs/context.js +435 -0
- package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +44 -0
- package/node_modules/hono/dist/cjs/helper/accepts/index.js +28 -0
- package/node_modules/hono/dist/cjs/helper/adapter/index.js +82 -0
- package/node_modules/hono/dist/cjs/helper/conninfo/index.js +16 -0
- package/node_modules/hono/dist/cjs/helper/conninfo/types.js +16 -0
- package/node_modules/hono/dist/cjs/helper/cookie/index.js +131 -0
- package/node_modules/hono/dist/cjs/helper/css/common.js +223 -0
- package/node_modules/hono/dist/cjs/helper/css/index.js +143 -0
- package/node_modules/hono/dist/cjs/helper/dev/index.js +80 -0
- package/node_modules/hono/dist/cjs/helper/factory/index.js +55 -0
- package/node_modules/hono/dist/cjs/helper/html/index.js +65 -0
- package/node_modules/hono/dist/cjs/helper/proxy/index.js +112 -0
- package/node_modules/hono/dist/cjs/helper/route/index.js +72 -0
- package/node_modules/hono/dist/cjs/helper/ssg/index.js +39 -0
- package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +74 -0
- package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +326 -0
- package/node_modules/hono/dist/cjs/helper/ssg/utils.js +85 -0
- package/node_modules/hono/dist/cjs/helper/streaming/index.js +36 -0
- package/node_modules/hono/dist/cjs/helper/streaming/sse.js +86 -0
- package/node_modules/hono/dist/cjs/helper/streaming/stream.js +57 -0
- package/node_modules/hono/dist/cjs/helper/streaming/text.js +35 -0
- package/node_modules/hono/dist/cjs/helper/streaming/utils.js +36 -0
- package/node_modules/hono/dist/cjs/helper/testing/index.js +34 -0
- package/node_modules/hono/dist/cjs/helper/websocket/index.js +82 -0
- package/node_modules/hono/dist/cjs/hono-base.js +401 -0
- package/node_modules/hono/dist/cjs/hono.js +44 -0
- package/node_modules/hono/dist/cjs/http-exception.js +58 -0
- package/node_modules/hono/dist/cjs/index.js +28 -0
- package/node_modules/hono/dist/cjs/jsx/base.js +375 -0
- package/node_modules/hono/dist/cjs/jsx/children.js +45 -0
- package/node_modules/hono/dist/cjs/jsx/components.js +176 -0
- package/node_modules/hono/dist/cjs/jsx/constants.js +43 -0
- package/node_modules/hono/dist/cjs/jsx/context.js +61 -0
- package/node_modules/hono/dist/cjs/jsx/dom/client.js +77 -0
- package/node_modules/hono/dist/cjs/jsx/dom/components.js +56 -0
- package/node_modules/hono/dist/cjs/jsx/dom/context.js +72 -0
- package/node_modules/hono/dist/cjs/jsx/dom/css.js +162 -0
- package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +75 -0
- package/node_modules/hono/dist/cjs/jsx/dom/index.js +182 -0
- package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +369 -0
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +53 -0
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +33 -0
- package/node_modules/hono/dist/cjs/jsx/dom/render.js +622 -0
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +68 -0
- package/node_modules/hono/dist/cjs/jsx/dom/utils.js +33 -0
- package/node_modules/hono/dist/cjs/jsx/hooks/index.js +371 -0
- package/node_modules/hono/dist/cjs/jsx/index.js +139 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +40 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +183 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +16 -0
- package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +42 -0
- package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +69 -0
- package/node_modules/hono/dist/cjs/jsx/streaming.js +168 -0
- package/node_modules/hono/dist/cjs/jsx/types.js +16 -0
- package/node_modules/hono/dist/cjs/jsx/utils.js +51 -0
- package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +83 -0
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +106 -0
- package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +85 -0
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +102 -0
- package/node_modules/hono/dist/cjs/middleware/combine/index.js +102 -0
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +62 -0
- package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +48 -0
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +110 -0
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +78 -0
- package/node_modules/hono/dist/cjs/middleware/etag/digest.js +56 -0
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +96 -0
- package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +125 -0
- package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +82 -0
- package/node_modules/hono/dist/cjs/middleware/jwk/index.js +28 -0
- package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +135 -0
- package/node_modules/hono/dist/cjs/middleware/jwt/index.js +39 -0
- package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +141 -0
- package/node_modules/hono/dist/cjs/middleware/language/index.js +36 -0
- package/node_modules/hono/dist/cjs/middleware/language/language.js +211 -0
- package/node_modules/hono/dist/cjs/middleware/logger/index.js +73 -0
- package/node_modules/hono/dist/cjs/middleware/method-override/index.js +105 -0
- package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +33 -0
- package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +38 -0
- package/node_modules/hono/dist/cjs/middleware/request-id/index.js +28 -0
- package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +44 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +30 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +16 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +190 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +99 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +41 -0
- package/node_modules/hono/dist/cjs/middleware/timeout/index.js +48 -0
- package/node_modules/hono/dist/cjs/middleware/timing/index.js +36 -0
- package/node_modules/hono/dist/cjs/middleware/timing/timing.js +129 -0
- package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +49 -0
- package/node_modules/hono/dist/cjs/package.json +3 -0
- package/node_modules/hono/dist/cjs/preset/quick.js +39 -0
- package/node_modules/hono/dist/cjs/preset/tiny.js +35 -0
- package/node_modules/hono/dist/cjs/request/constants.js +28 -0
- package/node_modules/hono/dist/cjs/request.js +325 -0
- package/node_modules/hono/dist/cjs/router/linear-router/index.js +28 -0
- package/node_modules/hono/dist/cjs/router/linear-router/router.js +141 -0
- package/node_modules/hono/dist/cjs/router/pattern-router/index.js +28 -0
- package/node_modules/hono/dist/cjs/router/pattern-router/router.js +71 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +35 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +49 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +135 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +167 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +209 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +82 -0
- package/node_modules/hono/dist/cjs/router/smart-router/index.js +28 -0
- package/node_modules/hono/dist/cjs/router/smart-router/router.js +81 -0
- package/node_modules/hono/dist/cjs/router/trie-router/index.js +28 -0
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +185 -0
- package/node_modules/hono/dist/cjs/router/trie-router/router.js +49 -0
- package/node_modules/hono/dist/cjs/router.js +41 -0
- package/node_modules/hono/dist/cjs/types.js +29 -0
- package/node_modules/hono/dist/cjs/utils/accept.js +86 -0
- package/node_modules/hono/dist/cjs/utils/basic-auth.js +46 -0
- package/node_modules/hono/dist/cjs/utils/body.js +95 -0
- package/node_modules/hono/dist/cjs/utils/buffer.js +76 -0
- package/node_modules/hono/dist/cjs/utils/color.js +49 -0
- package/node_modules/hono/dist/cjs/utils/compress.js +28 -0
- package/node_modules/hono/dist/cjs/utils/concurrent.js +62 -0
- package/node_modules/hono/dist/cjs/utils/constants.js +28 -0
- package/node_modules/hono/dist/cjs/utils/cookie.js +173 -0
- package/node_modules/hono/dist/cjs/utils/crypto.js +70 -0
- package/node_modules/hono/dist/cjs/utils/encode.js +55 -0
- package/node_modules/hono/dist/cjs/utils/filepath.js +59 -0
- package/node_modules/hono/dist/cjs/utils/handler.js +37 -0
- package/node_modules/hono/dist/cjs/utils/headers.js +16 -0
- package/node_modules/hono/dist/cjs/utils/html.js +151 -0
- package/node_modules/hono/dist/cjs/utils/http-status.js +16 -0
- package/node_modules/hono/dist/cjs/utils/ipaddr.js +129 -0
- package/node_modules/hono/dist/cjs/utils/jwt/index.js +29 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +43 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jws.js +216 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +210 -0
- package/node_modules/hono/dist/cjs/utils/jwt/types.js +162 -0
- package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +31 -0
- package/node_modules/hono/dist/cjs/utils/mime.js +109 -0
- package/node_modules/hono/dist/cjs/utils/stream.js +102 -0
- package/node_modules/hono/dist/cjs/utils/types.js +16 -0
- package/node_modules/hono/dist/cjs/utils/url.js +253 -0
- package/node_modules/hono/dist/cjs/validator/index.js +28 -0
- package/node_modules/hono/dist/cjs/validator/utils.js +16 -0
- package/node_modules/hono/dist/cjs/validator/validator.js +109 -0
- package/node_modules/hono/dist/client/client.js +174 -0
- package/node_modules/hono/dist/client/fetch-result-please.js +62 -0
- package/node_modules/hono/dist/client/index.js +8 -0
- package/node_modules/hono/dist/client/types.js +0 -0
- package/node_modules/hono/dist/client/utils.js +76 -0
- package/node_modules/hono/dist/compose.js +46 -0
- package/node_modules/hono/dist/context.js +411 -0
- package/node_modules/hono/dist/helper/accepts/accepts.js +20 -0
- package/node_modules/hono/dist/helper/accepts/index.js +5 -0
- package/node_modules/hono/dist/helper/adapter/index.js +56 -0
- package/node_modules/hono/dist/helper/conninfo/index.js +0 -0
- package/node_modules/hono/dist/helper/conninfo/types.js +0 -0
- package/node_modules/hono/dist/helper/cookie/index.js +102 -0
- package/node_modules/hono/dist/helper/css/common.js +185 -0
- package/node_modules/hono/dist/helper/css/index.js +125 -0
- package/node_modules/hono/dist/helper/dev/index.js +55 -0
- package/node_modules/hono/dist/helper/factory/index.js +30 -0
- package/node_modules/hono/dist/helper/html/index.js +41 -0
- package/node_modules/hono/dist/helper/proxy/index.js +89 -0
- package/node_modules/hono/dist/helper/route/index.js +46 -0
- package/node_modules/hono/dist/helper/ssg/index.js +16 -0
- package/node_modules/hono/dist/helper/ssg/middleware.js +45 -0
- package/node_modules/hono/dist/helper/ssg/ssg.js +295 -0
- package/node_modules/hono/dist/helper/ssg/utils.js +59 -0
- package/node_modules/hono/dist/helper/streaming/index.js +10 -0
- package/node_modules/hono/dist/helper/streaming/sse.js +62 -0
- package/node_modules/hono/dist/helper/streaming/stream.js +34 -0
- package/node_modules/hono/dist/helper/streaming/text.js +12 -0
- package/node_modules/hono/dist/helper/streaming/utils.js +13 -0
- package/node_modules/hono/dist/helper/testing/index.js +11 -0
- package/node_modules/hono/dist/helper/websocket/index.js +57 -0
- package/node_modules/hono/dist/hono-base.js +378 -0
- package/node_modules/hono/dist/hono.js +21 -0
- package/node_modules/hono/dist/http-exception.js +35 -0
- package/node_modules/hono/dist/index.js +5 -0
- package/node_modules/hono/dist/jsx/base.js +331 -0
- package/node_modules/hono/dist/jsx/children.js +21 -0
- package/node_modules/hono/dist/jsx/components.js +152 -0
- package/node_modules/hono/dist/jsx/constants.js +15 -0
- package/node_modules/hono/dist/jsx/context.js +36 -0
- package/node_modules/hono/dist/jsx/dom/client.js +53 -0
- package/node_modules/hono/dist/jsx/dom/components.js +32 -0
- package/node_modules/hono/dist/jsx/dom/context.js +48 -0
- package/node_modules/hono/dist/jsx/dom/css.js +143 -0
- package/node_modules/hono/dist/jsx/dom/hooks/index.js +48 -0
- package/node_modules/hono/dist/jsx/dom/index.js +142 -0
- package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +337 -0
- package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +19 -0
- package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +8 -0
- package/node_modules/hono/dist/jsx/dom/render.js +597 -0
- package/node_modules/hono/dist/jsx/dom/server.js +33 -0
- package/node_modules/hono/dist/jsx/dom/utils.js +10 -0
- package/node_modules/hono/dist/jsx/hooks/index.js +328 -0
- package/node_modules/hono/dist/jsx/index.js +103 -0
- package/node_modules/hono/dist/jsx/intrinsic-element/common.js +15 -0
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +153 -0
- package/node_modules/hono/dist/jsx/intrinsic-elements.js +0 -0
- package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +18 -0
- package/node_modules/hono/dist/jsx/jsx-runtime.js +41 -0
- package/node_modules/hono/dist/jsx/streaming.js +143 -0
- package/node_modules/hono/dist/jsx/types.js +0 -0
- package/node_modules/hono/dist/jsx/utils.js +27 -0
- package/node_modules/hono/dist/middleware/basic-auth/index.js +60 -0
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +83 -0
- package/node_modules/hono/dist/middleware/body-limit/index.js +62 -0
- package/node_modules/hono/dist/middleware/cache/index.js +79 -0
- package/node_modules/hono/dist/middleware/combine/index.js +77 -0
- package/node_modules/hono/dist/middleware/compress/index.js +39 -0
- package/node_modules/hono/dist/middleware/context-storage/index.js +23 -0
- package/node_modules/hono/dist/middleware/cors/index.js +87 -0
- package/node_modules/hono/dist/middleware/csrf/index.js +55 -0
- package/node_modules/hono/dist/middleware/etag/digest.js +33 -0
- package/node_modules/hono/dist/middleware/etag/index.js +72 -0
- package/node_modules/hono/dist/middleware/ip-restriction/index.js +107 -0
- package/node_modules/hono/dist/middleware/jsx-renderer/index.js +57 -0
- package/node_modules/hono/dist/middleware/jwk/index.js +5 -0
- package/node_modules/hono/dist/middleware/jwk/jwk.js +112 -0
- package/node_modules/hono/dist/middleware/jwt/index.js +11 -0
- package/node_modules/hono/dist/middleware/jwt/jwt.js +114 -0
- package/node_modules/hono/dist/middleware/language/index.js +15 -0
- package/node_modules/hono/dist/middleware/language/language.js +179 -0
- package/node_modules/hono/dist/middleware/logger/index.js +44 -0
- package/node_modules/hono/dist/middleware/method-override/index.js +82 -0
- package/node_modules/hono/dist/middleware/powered-by/index.js +10 -0
- package/node_modules/hono/dist/middleware/pretty-json/index.js +15 -0
- package/node_modules/hono/dist/middleware/request-id/index.js +5 -0
- package/node_modules/hono/dist/middleware/request-id/request-id.js +21 -0
- package/node_modules/hono/dist/middleware/secure-headers/index.js +6 -0
- package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +0 -0
- package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +166 -0
- package/node_modules/hono/dist/middleware/serve-static/index.js +76 -0
- package/node_modules/hono/dist/middleware/serve-static/path.js +18 -0
- package/node_modules/hono/dist/middleware/timeout/index.js +25 -0
- package/node_modules/hono/dist/middleware/timing/index.js +9 -0
- package/node_modules/hono/dist/middleware/timing/timing.js +102 -0
- package/node_modules/hono/dist/middleware/trailing-slash/index.js +25 -0
- package/node_modules/hono/dist/preset/quick.js +16 -0
- package/node_modules/hono/dist/preset/tiny.js +12 -0
- package/node_modules/hono/dist/request/constants.js +5 -0
- package/node_modules/hono/dist/request.js +301 -0
- package/node_modules/hono/dist/router/linear-router/index.js +5 -0
- package/node_modules/hono/dist/router/linear-router/router.js +118 -0
- package/node_modules/hono/dist/router/pattern-router/index.js +5 -0
- package/node_modules/hono/dist/router/pattern-router/router.js +48 -0
- package/node_modules/hono/dist/router/reg-exp-router/index.js +9 -0
- package/node_modules/hono/dist/router/reg-exp-router/matcher.js +25 -0
- package/node_modules/hono/dist/router/reg-exp-router/node.js +111 -0
- package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +142 -0
- package/node_modules/hono/dist/router/reg-exp-router/router.js +190 -0
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +59 -0
- package/node_modules/hono/dist/router/smart-router/index.js +5 -0
- package/node_modules/hono/dist/router/smart-router/router.js +58 -0
- package/node_modules/hono/dist/router/trie-router/index.js +5 -0
- package/node_modules/hono/dist/router/trie-router/node.js +162 -0
- package/node_modules/hono/dist/router/trie-router/router.js +26 -0
- package/node_modules/hono/dist/router.js +14 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +184 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +144 -0
- package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/bun/index.d.ts +9 -0
- package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +3 -0
- package/node_modules/hono/dist/types/adapter/bun/server.d.ts +24 -0
- package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +13 -0
- package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +39 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +33 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +6 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +4 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +16 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +5 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/deno/index.d.ts +8 -0
- package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +3 -0
- package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +13 -0
- package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +87 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +5 -0
- package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +1 -0
- package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +16 -0
- package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +28 -0
- package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +12 -0
- package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +6 -0
- package/node_modules/hono/dist/types/client/client.d.ts +4 -0
- package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +35 -0
- package/node_modules/hono/dist/types/client/index.d.ts +7 -0
- package/node_modules/hono/dist/types/client/types.d.ts +168 -0
- package/node_modules/hono/dist/types/client/utils.d.ts +18 -0
- package/node_modules/hono/dist/types/compose.d.ts +14 -0
- package/node_modules/hono/dist/types/context.d.ts +451 -0
- package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +30 -0
- package/node_modules/hono/dist/types/helper/accepts/index.d.ts +5 -0
- package/node_modules/hono/dist/types/helper/adapter/index.d.ts +12 -0
- package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +5 -0
- package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +36 -0
- package/node_modules/hono/dist/types/helper/cookie/index.d.ts +24 -0
- package/node_modules/hono/dist/types/helper/css/common.d.ts +42 -0
- package/node_modules/hono/dist/types/helper/css/index.d.ts +73 -0
- package/node_modules/hono/dist/types/helper/dev/index.d.ts +20 -0
- package/node_modules/hono/dist/types/helper/factory/index.d.ts +82 -0
- package/node_modules/hono/dist/types/helper/html/index.d.ts +8 -0
- package/node_modules/hono/dist/types/helper/proxy/index.d.ts +72 -0
- package/node_modules/hono/dist/types/helper/route/index.d.ts +75 -0
- package/node_modules/hono/dist/types/helper/ssg/index.d.ts +6 -0
- package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +44 -0
- package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +99 -0
- package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +15 -0
- package/node_modules/hono/dist/types/helper/streaming/index.d.ts +8 -0
- package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +13 -0
- package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +3 -0
- package/node_modules/hono/dist/types/helper/streaming/text.d.ts +3 -0
- package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +1 -0
- package/node_modules/hono/dist/types/helper/testing/index.d.ts +12 -0
- package/node_modules/hono/dist/types/helper/websocket/index.d.ts +69 -0
- package/node_modules/hono/dist/types/hono-base.d.ts +220 -0
- package/node_modules/hono/dist/types/hono.d.ts +19 -0
- package/node_modules/hono/dist/types/http-exception.d.ts +59 -0
- package/node_modules/hono/dist/types/index.d.ts +36 -0
- package/node_modules/hono/dist/types/jsx/base.d.ts +58 -0
- package/node_modules/hono/dist/types/jsx/children.d.ts +9 -0
- package/node_modules/hono/dist/types/jsx/components.d.ts +15 -0
- package/node_modules/hono/dist/types/jsx/constants.d.ts +6 -0
- package/node_modules/hono/dist/types/jsx/context.d.ts +12 -0
- package/node_modules/hono/dist/types/jsx/dom/client.d.ts +31 -0
- package/node_modules/hono/dist/types/jsx/dom/components.d.ts +10 -0
- package/node_modules/hono/dist/types/jsx/dom/context.d.ts +3 -0
- package/node_modules/hono/dist/types/jsx/dom/css.d.ts +77 -0
- package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +39 -0
- package/node_modules/hono/dist/types/jsx/dom/index.d.ts +88 -0
- package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +16 -0
- package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +8 -0
- package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +7 -0
- package/node_modules/hono/dist/types/jsx/dom/render.d.ts +73 -0
- package/node_modules/hono/dist/types/jsx/dom/server.d.ts +106 -0
- package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +1 -0
- package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +45 -0
- package/node_modules/hono/dist/types/jsx/index.d.ts +75 -0
- package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +3 -0
- package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +13 -0
- package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +722 -0
- package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +8 -0
- package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +12 -0
- package/node_modules/hono/dist/types/jsx/streaming.d.ts +36 -0
- package/node_modules/hono/dist/types/jsx/types.d.ts +35 -0
- package/node_modules/hono/dist/types/jsx/utils.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +56 -0
- package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +91 -0
- package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +45 -0
- package/node_modules/hono/dist/types/middleware/cache/index.d.ts +41 -0
- package/node_modules/hono/dist/types/middleware/combine/index.d.ts +85 -0
- package/node_modules/hono/dist/types/middleware/compress/index.d.ts +29 -0
- package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +40 -0
- package/node_modules/hono/dist/types/middleware/cors/index.d.ts +55 -0
- package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +78 -0
- package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +1 -0
- package/node_modules/hono/dist/types/middleware/etag/index.d.ts +42 -0
- package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +31 -0
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +77 -0
- package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +1 -0
- package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +54 -0
- package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +8 -0
- package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +67 -0
- package/node_modules/hono/dist/types/middleware/language/index.d.ts +7 -0
- package/node_modules/hono/dist/types/middleware/language/language.d.ts +102 -0
- package/node_modules/hono/dist/types/middleware/logger/index.d.ts +24 -0
- package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +48 -0
- package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +29 -0
- package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +42 -0
- package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +7 -0
- package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +37 -0
- package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +8 -0
- package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +14 -0
- package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +109 -0
- package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +31 -0
- package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +5 -0
- package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +31 -0
- package/node_modules/hono/dist/types/middleware/timing/index.d.ts +7 -0
- package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +129 -0
- package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +37 -0
- package/node_modules/hono/dist/types/package.json +3 -0
- package/node_modules/hono/dist/types/preset/quick.d.ts +10 -0
- package/node_modules/hono/dist/types/preset/tiny.d.ts +10 -0
- package/node_modules/hono/dist/types/request/constants.d.ts +1 -0
- package/node_modules/hono/dist/types/request.d.ts +313 -0
- package/node_modules/hono/dist/types/router/linear-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/linear-router/router.d.ts +7 -0
- package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +7 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +6 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +7 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +10 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +17 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +11 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +7 -0
- package/node_modules/hono/dist/types/router/smart-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/smart-router/router.d.ts +11 -0
- package/node_modules/hono/dist/types/router/trie-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/trie-router/node.d.ts +7 -0
- package/node_modules/hono/dist/types/router/trie-router/router.d.ts +8 -0
- package/node_modules/hono/dist/types/router.d.ts +97 -0
- package/node_modules/hono/dist/types/types.d.ts +573 -0
- package/node_modules/hono/dist/types/utils/accept.d.ts +11 -0
- package/node_modules/hono/dist/types/utils/basic-auth.d.ts +5 -0
- package/node_modules/hono/dist/types/utils/body.d.ts +79 -0
- package/node_modules/hono/dist/types/utils/buffer.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/color.d.ts +21 -0
- package/node_modules/hono/dist/types/utils/compress.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/concurrent.d.ts +11 -0
- package/node_modules/hono/dist/types/utils/constants.d.ts +4 -0
- package/node_modules/hono/dist/types/utils/cookie.d.ts +40 -0
- package/node_modules/hono/dist/types/utils/crypto.d.ts +15 -0
- package/node_modules/hono/dist/types/utils/encode.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/filepath.d.ts +12 -0
- package/node_modules/hono/dist/types/utils/handler.d.ts +6 -0
- package/node_modules/hono/dist/types/utils/headers.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/html.d.ts +44 -0
- package/node_modules/hono/dist/types/utils/http-status.d.ts +32 -0
- package/node_modules/hono/dist/types/utils/ipaddr.d.ts +40 -0
- package/node_modules/hono/dist/types/utils/jwt/index.d.ts +18 -0
- package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +23 -0
- package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +12 -0
- package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +43 -0
- package/node_modules/hono/dist/types/utils/jwt/types.d.ts +86 -0
- package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +6 -0
- package/node_modules/hono/dist/types/utils/mime.d.ts +70 -0
- package/node_modules/hono/dist/types/utils/stream.d.ts +31 -0
- package/node_modules/hono/dist/types/utils/types.d.ts +74 -0
- package/node_modules/hono/dist/types/utils/url.d.ts +29 -0
- package/node_modules/hono/dist/types/validator/index.d.ts +7 -0
- package/node_modules/hono/dist/types/validator/utils.d.ts +29 -0
- package/node_modules/hono/dist/types/validator/validator.d.ts +16 -0
- package/node_modules/hono/dist/types.js +6 -0
- package/node_modules/hono/dist/utils/accept.js +63 -0
- package/node_modules/hono/dist/utils/basic-auth.js +23 -0
- package/node_modules/hono/dist/utils/body.js +72 -0
- package/node_modules/hono/dist/utils/buffer.js +50 -0
- package/node_modules/hono/dist/utils/color.js +25 -0
- package/node_modules/hono/dist/utils/compress.js +5 -0
- package/node_modules/hono/dist/utils/concurrent.js +39 -0
- package/node_modules/hono/dist/utils/constants.js +5 -0
- package/node_modules/hono/dist/utils/cookie.js +147 -0
- package/node_modules/hono/dist/utils/crypto.js +44 -0
- package/node_modules/hono/dist/utils/encode.js +29 -0
- package/node_modules/hono/dist/utils/filepath.js +35 -0
- package/node_modules/hono/dist/utils/handler.js +13 -0
- package/node_modules/hono/dist/utils/headers.js +0 -0
- package/node_modules/hono/dist/utils/html.js +123 -0
- package/node_modules/hono/dist/utils/http-status.js +0 -0
- package/node_modules/hono/dist/utils/ipaddr.js +101 -0
- package/node_modules/hono/dist/utils/jwt/index.js +6 -0
- package/node_modules/hono/dist/utils/jwt/jwa.js +20 -0
- package/node_modules/hono/dist/utils/jwt/jws.js +192 -0
- package/node_modules/hono/dist/utils/jwt/jwt.js +197 -0
- package/node_modules/hono/dist/utils/jwt/types.js +124 -0
- package/node_modules/hono/dist/utils/jwt/utf8.js +7 -0
- package/node_modules/hono/dist/utils/mime.js +84 -0
- package/node_modules/hono/dist/utils/stream.js +79 -0
- package/node_modules/hono/dist/utils/types.js +0 -0
- package/node_modules/hono/dist/utils/url.js +219 -0
- package/node_modules/hono/dist/validator/index.js +5 -0
- package/node_modules/hono/dist/validator/utils.js +0 -0
- package/node_modules/hono/dist/validator/validator.js +86 -0
- package/node_modules/hono/package.json +691 -0
- package/node_modules/ip-address/LICENSE +19 -0
- package/node_modules/ip-address/README.md +105 -0
- package/node_modules/ip-address/dist/address-error.d.ts +5 -0
- package/node_modules/ip-address/dist/address-error.d.ts.map +1 -0
- package/node_modules/ip-address/dist/address-error.js +12 -0
- package/node_modules/ip-address/dist/address-error.js.map +1 -0
- package/node_modules/ip-address/dist/common.d.ts +15 -0
- package/node_modules/ip-address/dist/common.d.ts.map +1 -0
- package/node_modules/ip-address/dist/common.js +46 -0
- package/node_modules/ip-address/dist/common.js.map +1 -0
- package/node_modules/ip-address/dist/ip-address.d.ts +8 -0
- package/node_modules/ip-address/dist/ip-address.d.ts.map +1 -0
- package/node_modules/ip-address/dist/ip-address.js +35 -0
- package/node_modules/ip-address/dist/ip-address.js.map +1 -0
- package/node_modules/ip-address/dist/ipv4.d.ts +193 -0
- package/node_modules/ip-address/dist/ipv4.d.ts.map +1 -0
- package/node_modules/ip-address/dist/ipv4.js +327 -0
- package/node_modules/ip-address/dist/ipv4.js.map +1 -0
- package/node_modules/ip-address/dist/ipv6.d.ts +428 -0
- package/node_modules/ip-address/dist/ipv6.d.ts.map +1 -0
- package/node_modules/ip-address/dist/ipv6.js +1003 -0
- package/node_modules/ip-address/dist/ipv6.js.map +1 -0
- package/node_modules/ip-address/dist/v4/constants.d.ts +5 -0
- package/node_modules/ip-address/dist/v4/constants.d.ts.map +1 -0
- package/node_modules/ip-address/dist/v4/constants.js +8 -0
- package/node_modules/ip-address/dist/v4/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/constants.d.ts +45 -0
- package/node_modules/ip-address/dist/v6/constants.d.ts.map +1 -0
- package/node_modules/ip-address/dist/v6/constants.js +76 -0
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/helpers.d.ts +18 -0
- package/node_modules/ip-address/dist/v6/helpers.d.ts.map +1 -0
- package/node_modules/ip-address/dist/v6/helpers.js +45 -0
- package/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +6 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +1 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
- package/node_modules/ip-address/package.json +78 -0
- package/node_modules/ip-address/src/address-error.ts +11 -0
- package/node_modules/ip-address/src/common.ts +55 -0
- package/node_modules/ip-address/src/ip-address.ts +7 -0
- package/node_modules/ip-address/src/ipv4.ts +356 -0
- package/node_modules/ip-address/src/ipv6.ts +1212 -0
- package/node_modules/ip-address/src/v4/constants.ts +7 -0
- package/node_modules/ip-address/src/v6/constants.ts +79 -0
- package/node_modules/ip-address/src/v6/helpers.ts +48 -0
- package/node_modules/ip-address/src/v6/regular-expressions.ts +94 -0
- package/package.json +6 -7
- package/dist/claude-marketplace/core/skills/knowledge.add/skill.md +0 -47
- package/dist/claude-marketplace/core/skills/knowledge.delete/skill.md +0 -22
- package/dist/claude-marketplace/core/skills/knowledge.import/skill.md +0 -34
- package/dist/claude-marketplace/core/skills/knowledge.init/skill.md +0 -37
- package/dist/claude-marketplace/core/skills/knowledge.save/skill.md +0 -39
- package/dist/claude-marketplace/core/skills/knowledge.status/skill.md +0 -19
- 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.
|
|
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.
|
|
21
|
+
"version": "0.1.2-alpha.312"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -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:
|
|
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
|
|
29
|
+
## Knowledge Detection Integration
|
|
29
30
|
|
|
30
|
-
**IMPORTANT:**
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
58
|
+
### Output Format
|
|
58
59
|
|
|
60
|
+
ALWAYS use this exact template:
|
|
61
|
+
|
|
62
|
+
When Knowledge is Collected:
|
|
59
63
|
```
|
|
60
|
-
🧠 KNOWLEDGE
|
|
64
|
+
🧠 KNOWLEDGE COLLECTED
|
|
65
|
+
|
|
66
|
+
**Total Processed:** [X] items
|
|
67
|
+
**Created:** [Y] new items
|
|
68
|
+
**Updated:** [Z] existing items
|
|
61
69
|
|
|
62
|
-
|
|
63
|
-
Type: [
|
|
64
|
-
|
|
70
|
+
1. **[Knowledge Title]**
|
|
71
|
+
Type: [knowledge_type]
|
|
72
|
+
Action: [Created|Updated|Merged]
|
|
73
|
+
Files: [Relevant file paths]
|
|
65
74
|
|
|
66
|
-
|
|
67
|
-
Tags: [Searchable keywords for future reference]
|
|
75
|
+
[Additional collected items...]
|
|
68
76
|
```
|
|
69
77
|
|
|
70
|
-
|
|
78
|
+
When No Valuable Knowledge is Found:
|
|
79
|
+
```
|
|
80
|
+
📝 NO SIGNIFICANT KNOWLEDGE DETECTED
|
|
71
81
|
|
|
72
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
**
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
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]
|