Skip to content

refactor: move memory.ts + ollama.ts to smriti/src, sync upstream v1.1.6#1

Open
ashu17706 wants to merge 6 commits intomainfrom
refactor/move-memory-ollama-to-smriti
Open

refactor: move memory.ts + ollama.ts to smriti/src, sync upstream v1.1.6#1
ashu17706 wants to merge 6 commits intomainfrom
refactor/move-memory-ollama-to-smriti

Conversation

@ashu17706
Copy link
Copy Markdown

Summary

  • Remove smriti additions from qmd/src/: memory.ts, ollama.ts, and memory.test.ts moved out of the QMD fork into smriti/src/. This makes qmd/ pure upstream code — no smriti-specific files live here anymore.
  • Sync upstream tobi/qmd to v1.1.6: Merged 105+ upstream commits (clean, no conflicts since our additions were already removed).

Why

The previous approach added smriti-specific modules (memory.ts, ollama.ts) directly into the QMD fork, making upstream syncs painful. Now:

  • qmd/ = pure upstream clone, synced with git merge upstream/main
  • smriti/src/qmd-internals.ts = thin adapter (the only file touching ../qmd/src/* internals)
  • smriti/src/memory.ts + smriti/src/ollama.ts = smriti-owned implementations

Future upstream syncs: cd qmd && git merge upstream/main — no conflicts ever.

Changes

  • qmd/src/memory.ts — deleted (moved to smriti/src/memory.ts)
  • qmd/src/ollama.ts — deleted (moved to smriti/src/ollama.ts)
  • qmd/src/memory.test.ts — deleted (tests live in smriti/test/)
  • bun.lock — regenerated after upstream merge (new deps: picomatch, yaml, zod, better-sqlite3, vitest)

Ashutosh Tripathi and others added 6 commits February 10, 2026 15:12
Add memory.ts (conversation storage, search, embedding, recall) and
ollama.ts (LLM client for summarization and synthesis) to enable
Smriti to import QMD as a proper package dependency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These modules are Smriti-specific additions (conversation memory layer
and Ollama client) that don't belong in the QMD source tree.

Moving them to smriti/src/ means:
- qmd/ submodule stays as pure upstream code
- Upstream syncs are conflict-free (no smriti code in qmd/src/)
- A thin adapter (smriti/src/qmd-internals.ts) is the sole coupling point
@ashu17706 ashu17706 force-pushed the main branch 2 times, most recently from 64991bd to d58fedf Compare May 3, 2026 17:00
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.

1 participant