Files
Mert Koseoglu 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

18 lines
393 B
JSON

{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "./build",
"rootDir": "./src",
"declaration": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true
},
"include": ["src"]
}