From 1cf21427c48be69201f37f8b7f866a22c56c452f Mon Sep 17 00:00:00 2001 From: carlos-alm Date: Sun, 16 Aug 2026 18:49:49 -0600 Subject: [PATCH 1/2] docs: correct stale tsup build-tool references (#2422) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CLAUDE.md's Architecture section and CONTRIBUTING.md's Code Style section both claimed the build uses tsup, but tsup was removed — package.json's build script is plain tsc, tsup isn't in devDependencies, and there's no tsup.config.* anywhere in the repo. This isn't just a stale word: with tsc and no bundling, every import in src/ survives into dist/ as a real module resolution, so a package used by even one code path must be a dependencies entry, never demoted to devDependencies on the assumption a bundler would have inlined it. An agent trusting the old claim could reasonably propose exactly that, producing a dist/ that crashes on import for users. Made this consequence explicit in CLAUDE.md so the dependency-classification rule is unambiguous. --- CLAUDE.md | 2 +- CONTRIBUTING.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 06698432c..b2ae53888 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -93,7 +93,7 @@ npm run release:dry-run # Preview what release would do without writing **Pipeline:** Source files → tree-sitter parse → extract symbols → resolve imports → SQLite DB → query/search -Source is TypeScript in `src/`, compiled via `tsup`. The Rust native engine lives in `crates/codegraph-core/`. +Source is TypeScript in `src/`, compiled via plain `tsc` (no bundler) — every `import` in `src/` survives into `dist/` as a real module resolution, so a package used by even one code path must be a `dependencies` entry, never a `devDependency` on the assumption a bundler would have inlined it. The Rust native engine lives in `crates/codegraph-core/`. | Path | Role | |------|------| diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 89af2738f..7ceb74828 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -355,7 +355,7 @@ Use [GitHub Issues](https://github.com/optave/ops-codegraph-tool/issues) with: ## Code Style -- Source is TypeScript (`src/`), compiled via `tsc`/`tsup`; run `npm run typecheck` to type-check without emitting +- Source is TypeScript (`src/`), compiled via plain `tsc` (no bundler); run `npm run typecheck` to type-check without emitting - [Biome](https://biomejs.dev/) is used for linting and formatting (config in `biome.json`, scoped to `src/` and `tests/`) - Run `npm run lint` to check and `npm run lint:fix` to auto-fix - The pre-commit hook runs the linter automatically From 5c6ed8472f37ce87e347ccce8ff2a4ea1630fb36 Mon Sep 17 00:00:00 2001 From: carlos-alm Date: Sun, 16 Aug 2026 18:53:15 -0600 Subject: [PATCH 2/2] docs: qualify the dependency-classification guidance (#2422 review) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Greptile review on PR #2547: the previous wording ("every import... must be a dependencies entry") overstated the build contract — it excludes type-only imports (elided by tsc) and the repo's existing pattern of deliberately optional, lazy-loaded packages (@huggingface/transformers/@modelcontextprotocol/sdk, already documented below in Key design decisions). Left uncorrected, a contributor could read it as license to promote a type-only or intentionally-optional package into a required runtime dependency. --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index b2ae53888..6bc846c03 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -93,7 +93,7 @@ npm run release:dry-run # Preview what release would do without writing **Pipeline:** Source files → tree-sitter parse → extract symbols → resolve imports → SQLite DB → query/search -Source is TypeScript in `src/`, compiled via plain `tsc` (no bundler) — every `import` in `src/` survives into `dist/` as a real module resolution, so a package used by even one code path must be a `dependencies` entry, never a `devDependency` on the assumption a bundler would have inlined it. The Rust native engine lives in `crates/codegraph-core/`. +Source is TypeScript in `src/`, compiled via plain `tsc` (no bundler) — a runtime (non-type-only) `import` in `src/` survives into `dist/` as a real module resolution, so a package a non-type-only, non-lazy-loaded code path depends on must be a `dependencies` entry, never demoted to `devDependencies` on the assumption a bundler would have inlined it (type-only imports are elided by `tsc`; some packages are deliberately kept optional and lazy-loaded instead — see `@huggingface/transformers`/`@modelcontextprotocol/sdk` below). The Rust native engine lives in `crates/codegraph-core/`. | Path | Role | |------|------|