docs: update AGENTS.md + ROADMAP.md for package layering refactor
This commit is contained in:
+10
-4
@@ -12,7 +12,7 @@
|
||||
|------|-------|----------|
|
||||
| **Platform binaries** | 11 | One per (OS × arch × variant). Uniform layout: `bin/` + `package.json` only. Selected at install time by `bin/` shim + `postinstall.mjs`. |
|
||||
| **MCP packages** | 2 | `lsp-tools-mcp` (git submodule), `ast-grep-mcp` |
|
||||
| **Utility** | 1 | `rules-core` |
|
||||
| **Core packages** | 7 | `utils`, `model-core`, `rules-engine` (was `rules-core`), `agents-md-core`, `ast-grep-core`, `comment-checker-core`, `boulder-state` |
|
||||
| **Web** | 1 | `web` |
|
||||
|
||||
## PLATFORM BINARIES (11)
|
||||
@@ -30,11 +30,17 @@ Each contains only a `bin/<binary>` and a `package.json`. Built by [`script/buil
|
||||
| `lsp-tools-mcp/` | Full standalone project (own `.git` submodule, `.github/`, `CHANGELOG.md`, `LICENSE`, `src/`, `test/`, `biome.json`, `vitest.config.ts`) | Serves `lsp_diagnostics`, `lsp_goto_definition`, `lsp_find_references`, `lsp_symbols`, `lsp_prepare_rename`, `lsp_rename`, `lsp_status` tools via stdio MCP. Registered as tier-1 MCP `lsp` in [`src/mcp/`](file:///Users/yeongyu/local-workspaces/omo/src/mcp/). |
|
||||
| `ast-grep-mcp/` | Internal package (`src/`, `dist/`, `tsconfig.json`) | Serves `ast_grep_search` + `ast_grep_replace` tools via stdio MCP. Registered as tier-1 MCP `ast_grep`. |
|
||||
|
||||
## UTILITY
|
||||
## CORE PACKAGES
|
||||
|
||||
| Package | Layout | Purpose |
|
||||
|---------|--------|---------|
|
||||
| `rules-core/` | `src/`, `index.d.ts`, `tsconfig.json` | Shared rules-injector core logic published independently for reuse outside the plugin. |
|
||||
| `utils/` | `src/`, `tsconfig.json` | Shared utilities: deep-merge, snake-case, frontmatter, file-utils, etc. |
|
||||
| `model-core/` | `src/`, `tsconfig.json` | Model resolution pipeline with ProviderCache dependency injection. |
|
||||
| `rules-engine/` | `src/`, `tsconfig.json` | Rule discovery + matching engine (renamed from `rules-core`). |
|
||||
| `agents-md-core/` | `src/`, `tsconfig.json` | AGENTS.md walk-up discovery and injection logic. |
|
||||
| `ast-grep-core/` | `src/`, `tsconfig.json` | ast-grep types, pattern-hints, and runner core with injectable spawn. |
|
||||
| `comment-checker-core/` | `src/`, `tsconfig.json` | apply-patch parser and binary runner with injectable spawn. |
|
||||
| `boulder-state/` | `src/`, `tsconfig.json` | Work tracking state machine with split storage. |
|
||||
|
||||
## WEB
|
||||
|
||||
@@ -53,5 +59,5 @@ Each contains only a `bin/<binary>` and a `package.json`. Built by [`script/buil
|
||||
## ANTI-PATTERNS
|
||||
|
||||
- Never publish a sibling package manually. Use the GitHub Actions workflows.
|
||||
- Never copy code between packages by hand. Either share via `rules-core` (or a new utility package) or accept the duplication and document it.
|
||||
- Never copy code between packages by hand. Either share via a core package or accept the duplication and document it.
|
||||
- Never modify `bin/<binary>` inside a platform package — those are compiled artifacts.
|
||||
|
||||
Reference in New Issue
Block a user