Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/graph-reader-profiles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain": patch
---

Core's two graph readers, behind `brain graph` and the supported `./queries` graph reads, now share one internal reader with an explicit CLI profile and UI profile (#1354). Both keep their former results, defaults, caps, ordering and errors. No `--json` shape, query result or export changes.
2 changes: 1 addition & 1 deletion docs/decisions/index-query-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ alone does not excuse changing the documented results or error behavior.

Two packages currently own graph SQL. UI-server opens a short-lived read-only
connection (`openBrainDb`, `packages/ui-server/src/db/brain-db.ts:75-97`), interprets graph availability ([pre-migration `getGraphMeta`](https://github.com/schlessera/brain-kit/blob/33af7e2972873286144dbcc93c232c904e3ced47/packages/ui-server/src/graph/reader.ts#L437-L471)) and walks raw links for
interactive neighborhoods ([pre-migration `getNeighborhood`](https://github.com/schlessera/brain-kit/blob/33af7e2972873286144dbcc93c232c904e3ced47/packages/ui-server/src/graph/reader.ts#L525-L540)). Core has its own cluster query (`getClusterGraph`, `packages/core/src/lib/graph/queries.ts:181-204`).
interactive neighborhoods ([pre-migration `getNeighborhood`](https://github.com/schlessera/brain-kit/blob/33af7e2972873286144dbcc93c232c904e3ced47/packages/ui-server/src/graph/reader.ts#L525-L540)). Core has its own cluster query (`getClusterGraph`, `packages/core/src/lib/graph/queries.ts:142-159`).
Their defaults and responses differ. A wrapper around one existing helper is
not automatically a behavior-preserving replacement for the other.

Expand Down
2 changes: 1 addition & 1 deletion docs/plans/index-query-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ resolved; direction affects an explicit root, not precomputed default distances.
Preserve existing maintenance ordering, unresolved link text and stale cutoff.

Core CLI graph helpers have different defaults, fields and cap behavior
(`getClusterGraph`, `packages/core/src/lib/graph/queries.ts:181-204`). They may share private mechanics, but their public CLI `--json`
(`getClusterGraph`, `packages/core/src/lib/graph/queries.ts:142-159`). They may share private mechanics, but their public CLI `--json`
shapes/defaults remain unchanged. Pi and MCP link walking default to depth 1/both.
Pi and the supported link-walk query clamp depth to 1..4; core MCP's own cap is 5.
It is a different result from the drawn graph: unresolved text is preserved and cycle/deduplication behavior
Expand Down
Loading
Loading