Files
context-mode/package.json
T
Mert KoseogluandClaude Opus 4.6 49e0d7f135 refactor: flatten monorepo to src/ and add adapter pattern for multi-platform hooks
Migrate from 3-package monorepo (shared, session, core) to flat src/ structure.
Add HookAdapter interface with Claude Code adapter implementation for future
multi-platform support (Gemini CLI, OpenCode, Copilot CLI, Cursor per #46).

- Move packages/*/src/ → src/ and src/session/
- Replace @context-mode/* imports with relative paths
- Add src/adapters/types.ts (HookAdapter interface, normalized event types)
- Add src/adapters/claude-code/ (adapter, hooks, config modules)
- Refactor CLI to use adapter pattern instead of hardcoded logic
- Remove packages/, tsconfig.base.json, scripts/fix-imports.mjs
- Simplify to single tsconfig.json (no project references)
- All 492 tests pass

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 01:34:46 +03:00

74 lines
2.1 KiB
JSON

{
"name": "context-mode",
"version": "0.9.23-dev",
"type": "module",
"description": "Claude Code MCP plugin that saves 98% of your context window. Sandboxed code execution, FTS5 knowledge base, and intent-driven search.",
"author": "Mert Koseoğlu",
"license": "Elastic-2.0",
"keywords": [
"mcp",
"model-context-protocol",
"claude",
"claude-code",
"context-window",
"sandbox",
"code-execution",
"fts5",
"bm25"
],
"repository": {
"type": "git",
"url": "https://github.com/mksglu/claude-context-mode"
},
"homepage": "https://github.com/mksglu/claude-context-mode#readme",
"bugs": "https://github.com/mksglu/claude-context-mode/issues",
"bin": {
"context-mode": "./build/cli.js"
},
"files": [
"build",
"hooks",
"server.bundle.mjs",
"skills",
".claude-plugin",
".mcp.json",
"start.mjs",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsc",
"bundle": "esbuild src/server.ts --bundle --platform=node --target=node18 --format=esm --outfile=server.bundle.mjs --external:better-sqlite3 --external:turndown --external:turndown-plugin-gfm --external:@mixmark-io/domino --minify",
"prepublishOnly": "npm run build",
"dev": "npx tsx src/server.ts",
"setup": "npx tsx src/cli.ts setup",
"doctor": "npx tsx src/cli.ts doctor",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"benchmark": "npx tsx tests/benchmark.ts",
"test:use-cases": "npx tsx tests/use-cases.ts",
"test:compare": "npx tsx tests/context-comparison.ts",
"test:ecosystem": "npx tsx tests/ecosystem-benchmark.ts"
},
"dependencies": {
"@clack/prompts": "^1.0.1",
"@mixmark-io/domino": "^2.2.0",
"@modelcontextprotocol/sdk": "^1.26.0",
"better-sqlite3": "^12.6.2",
"picocolors": "^1.1.1",
"turndown": "^7.2.0",
"turndown-plugin-gfm": "^1.0.2",
"zod": "^3.25.0"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.13",
"@types/node": "^22.19.11",
"@types/turndown": "^5.0.5",
"esbuild": "^0.27.3",
"tsx": "^4.21.0",
"typescript": "^5.7.0",
"vitest": "^4.0.18"
}
}