From c7a0f3950d24673b2ad4d459949f2dc5bd9f3d80 Mon Sep 17 00:00:00 2001 From: Serhii Vasylenko Date: Thu, 21 May 2026 03:14:36 +0300 Subject: [PATCH] Fix source layout description in CLAUDE.md: remove filesystem from infra adapters list The filesystem access for bear-add-file (readAttachmentFile) is implemented inline in src/tools/note-tools.ts, not as a separate adapter in src/infra/. The only external system adapters in src/infra/ are SQLite (database.ts) and the Bear URL scheme (bear-urls.ts). --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1f763b9..e1faea2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -21,7 +21,7 @@ MCP server for Bear Notes, distributed through two channels: ## Source Layout -`src/` is layered as **infra → operations → tools**. Adapters to external systems (SQLite, filesystem, Bear URL scheme) live in `infra/`; pure business logic in `operations/`; MCP tool registrations and handlers in `tools/`. Dependencies flow downward only — `tools/` may import from `operations/` and `infra/`, `operations/` from `infra/`, never the reverse. Tests are co-located with their source files using the `.test.ts` suffix. Use `find src -type f` for the current file list; the rules above are what's load-bearing. +`src/` is layered as **infra → operations → tools**. Adapters to external systems (SQLite, Bear URL scheme) live in `infra/`; pure business logic in `operations/`; MCP tool registrations and handlers in `tools/`. Dependencies flow downward only — `tools/` may import from `operations/` and `infra/`, `operations/` from `infra/`, never the reverse. Tests are co-located with their source files using the `.test.ts` suffix. Use `find src -type f` for the current file list; the rules above are what's load-bearing. ## Additional technical context