Skip to content

feat(node): find definitions in the config root's .sctx/ folder - #34

Merged
mindsocket merged 4 commits into
mainfrom
claude/project-thread-atltk9
Nov 14, 2026
Merged

mindsocket merged 4 commits into
mainfrom
claude/project-thread-atltk9

Conversation

@mindsocket

@mindsocket mindsocket commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Requested by Rog · project thread

Depends on structured-context 0.24.0, which includes the .sctx/ layout (mindsocket/structured-context#231).

What

  • Config definitions come from the config root's .sctx/map-views/, and local plugins from .sctx/plugins/, through core's resourceDir. The global config keeps them in its own folder. Breaking: a map-views/ or plugins/ folder beside a local config is no longer found.
  • loadMapViewDefinitions and the export CLI default configDir to resolveConfigPath().root, which also works for .sctx/config.json.
  • The peer range, dev dependency and navigator move to structured-context@^0.24.0.
  • Core removed structured-context/testing, so tree.test.ts and annotations.test.ts use a local tests/builders.ts instead.
  • Docs: docs/definitions.md, README, AGENTS.md.

Checks

bun test (82 pass), bun run typecheck and bun run lint pass. bun run build can't run in my sandbox because a proxy blocks one of its network steps, so please check CI for that.

🤖 Generated with Claude Code

https://claude.ai/code/session_019XphpeYqF5Au42ALp2Cw5m

…folder

Uses structured-context's resourceDir, so map-views/ and plugins/ beside a
config keep working with its deprecation warning, and the global config's
layout is unchanged. The config dir defaults to resolveConfigPath().root,
which is right for .sctx/config.json too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019XphpeYqF5Au42ALp2Cw5m

Copy link
Copy Markdown
Owner Author

CI is red because this PR needs resourceDir and ResolvedConfigPath.root. Those come from mindsocket/structured-context#231, which isn't released yet, so the published structured-context@0.23.0 doesn't have them (TS2305/TS2339 in typecheck). This PR stays a draft until that release. Then the peer range and lockfile get bumped, which should turn CI green.


Generated by Claude Code

Core no longer ships structured-context/testing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019XphpeYqF5Au42ALp2Cw5m
@mindsocket
mindsocket marked this pull request as ready for review November 14, 2026 05:47
@mindsocket
mindsocket merged commit f8f424f into main Nov 14, 2026
1 check passed
@mindsocket
mindsocket deleted the claude/project-thread-atltk9 branch November 14, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants