Skip to content

chore: reorganize root and fix session tests#11

Merged
jonathanpeterwu merged 12 commits intomainfrom
chore/root-reorg
Apr 17, 2026
Merged

chore: reorganize root and fix session tests#11
jonathanpeterwu merged 12 commits intomainfrom
chore/root-reorg

Conversation

@jonathanpeterwu
Copy link
Copy Markdown
Collaborator

Summary

  • Move SPEC.md, RELEASE_NOTES.md, tomorrow.md, vision.md to docs/ (consolidating duplicates)
  • Move mcp_review_config.json to config/
  • Remove tracked ephemeral artifacts (.lint-fix-log.json)
  • Add .gitignore entries for agent scratch dirs (.ralph/, .swarm/, .bjarne/, .entire/, .opencode/) and local trees (archive/, site/, voyager/, plugins/)
  • Fix 17 pre-existing session test failures by mocking canonicalStateStore in session-manager.test.ts and session.test.ts

Test plan

  • npm run build passes
  • npm run lint:fast — 0 errors
  • npm run test:run — 135 files, 2165 tests, 0 failures
  • CLI smoke: stackmemory --version returns 1.10.6
  • CI green

StackMemory Bot (CLI) and others added 12 commits April 8, 2026 12:25
This is a merge commit the virtual branches in your workspace.

Due to GitButler managing multiple virtual branches, you cannot switch back and
forth between git branches and virtual branches easily. 

If you switch to another branch, GitButler will need to be reinitialized.
If you commit on this branch, GitButler will throw it away.

Here are the branches that are currently applied:
 - sbc-branch-1 (refs/gitbutler/sbc-branch-1)
   branch head: 2bba656
For more information about what we're doing here, check out our docs:
https://docs.gitbutler.com/features/branch-management/integration-branch
…480)

- Add CrossProjectSearch engine with FTS5/BM25 ranking across N databases
- Project registry (~/.stackmemory/projects.json) with CRUD + auto-discovery
- Read-only SQLite connections for safety, LIKE fallback for non-FTS databases
- 4 MCP tools: sm_cross_search, sm_cross_discover, sm_cross_register, sm_cross_list
- CLI: `stackmemory search --all-projects "query"` for cross-project search
- 17 tests: registry CRUD, multi-db FTS5 search, ranking, LIKE fallback, graceful skip
Consolidate duplicate docs, relocate wandering files, and tighten
.gitignore for agent scratch dirs.

- Move SPEC.md, RELEASE_NOTES.md, tomorrow.md, vision.md to docs/
  (replacing stale docs/ copies with the up-to-date root versions)
- Move mcp_review_config.json to config/
- Untrack .lint-fix-log.json (ephemeral lint artifact)
- Delete stale .tsbuildinfo-* and .lint-errors.log
- Ignore agent scratch dirs (.ralph/, .swarm/, .bjarne/, .entire/,
  .opencode/, .git.backup/) and local trees (archive/, site/,
  voyager/, plugins/)
- Update README.md Vision link to docs/vision.md
Session tests mocked fs/promises but not the canonical-store module.
The canonicalStateStore singleton inherited the mocked fs, causing
pathExists to return true while readFile returned undefined — crashing
JSON.parse. Mock the entire canonical-store module with stubs for
upsertSession, appendEvent, and endSession.
@jonathanpeterwu jonathanpeterwu merged commit 58807d9 into main Apr 17, 2026
3 of 6 checks passed
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