Skip to content

Conversation

@colecrouter
Copy link
Contributor

@colecrouter colecrouter commented Oct 22, 2025

  • Restructure existing MCP components into the vault-core package
  • Migrate the Reddit adapter
  • Introduce new features including:
    • Vault system
    • Standard schema validation support
    • Standard utils library.
  • Removed outdated architecture
  • Implemented core tests and migration scripts for adapters.
  • Fully featured demo site apps/vault-demo using SvelteKit remote functions
    • Note-taking app
    • Import Reddit GDPR data
    • Link Reddit entities (subreddits, posts, users, etc.) to your notes.

There's a lot here, so I recommend reading the spec or the readme.

Disclaimer: this serves as a minimal viable product for the vault-core package. This is not representative of the final architecture or feature set.

Edit: There's a lot going on here, and I realize that some documentation might've slipped through the cracks. Depending on how much of this code gets merged/reused, I will rewrite most of the docs with the present in mind. In the meantime, if anyone notices any inconsistencies or has any questions, please let me know.

@colecrouter colecrouter force-pushed the new-adapter-architecture branch 2 times, most recently from 3952ae3 to 78d8581 Compare October 22, 2025 22:00
@colecrouter colecrouter changed the title adapter-architecture-v1 vault-architecture-v1 Oct 22, 2025
@rupokghosh
Copy link
Member

HUGE

@Leftium
Copy link
Member

Leftium commented Oct 25, 2025

I'm getting a runtime import error: Pre-transform error: Cannot find module '@repo/vault-core'

Steps to reproduce:

  1. gh pr checkout 912 (check out this PR branch)
  2. bun install
  3. cd apps/vault-demo/ && bun dev
  4. open http://localhost:5173
  5. Hover over any link or try to navigate to link

Based on docs in this README

  • Note: links to docs in this PR description are also broken
  • Easiest way to find these files is to go to "files changed" tab and filter for .md
image


```
bun install
bun run dev -w apps/vault-demo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work in this repo. Should be bun run dev --filter=vault-demo

@Leftium
Copy link
Member

Leftium commented Oct 28, 2025

Got my reddit data and tried to run the other demo app, but that has import problems, as well:

image

@colecrouter colecrouter force-pushed the new-adapter-architecture branch from 78d8581 to e15d721 Compare October 29, 2025 16:26
@colecrouter
Copy link
Contributor Author

Thanks @Leftium, there were some transient dependencies. I updated Bun for bun install --linker isolated and I was able to spot all of the missing packages.

I just tested vault-demo and demo-mcp again, so I'm hoping all is good now.

@colecrouter colecrouter marked this pull request as ready for review November 16, 2025 19:21
# Conflicts:
#	bun.lock
#	packages/vault-core/src/adapters/reddit/src/config.ts
#	packages/vault-core/src/adapters/reddit/src/index.ts
#	packages/vault-core/src/adapters/reddit/src/upsert.ts
#	packages/vault-core/src/core/adapter.ts
Resolved merge conflicts from merging main into new-adapter-architecture branch.

Changes:
- Fixed @repo/shared import to use .js extension for ESM compatibility
- Updated reddit adapter index.ts to export from ./adapter
- Accepted main's changes for config.ts (underscore prefix on unused var)
- Kept HEAD's adapter.ts type definitions, removed test code
- Removed deleted upsert.ts file
- Formatted adapter.ts and db.ts with prettier

The API package has pre-existing drizzle-orm version issues that are unrelated to this PR.
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.

4 participants