Skip to content

fix(sources): config-first sources, doc cleanup, audio skill#48

Merged
jb-thery merged 5 commits into
developfrom
feature/improve-text-tokenization
Jul 3, 2026
Merged

fix(sources): config-first sources, doc cleanup, audio skill#48
jb-thery merged 5 commits into
developfrom
feature/improve-text-tokenization

Conversation

@jb-thery

@jb-thery jb-thery commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

Three logical changes on one branch: the intent-driven audio-summary skill, a sources.txt → config.json migration fix, and dead-doc cleanup.

Changes

  • feat(audio-summary): rewrite the audio-summary skill for intent-driven, memorable narration (8-step spine + listening-style.md + narration-templates.md references).
  • chore: untrack dist/ build output from the git index (the gitignore rule was added but git rm --cached was missing, so 128 dist files stayed tracked).
  • fix(sources): ragmir sources add/list now read and write the sources array in .ragmir/config.json instead of the legacy sources.txt. The legacy file is still read (read-only, merged) for backward compatibility but never created or written. Removes dead SOURCES_FILE_HEADER.
  • docs: remove dead kb references (SECURITY-HARDENING.md, SECURITY.md, CHANGELOG.md) and sync the sources.txt guidance in README/AGENTS.md/cli-reference.md with the new config-first behavior. Add a Mermaid diagram for the rawDir + sources + legacy merge flow.

Checklist

  • pnpm lint clean
  • pnpm check clean
  • pnpm test — 151/151
  • pnpm smoke green (CLI + MCP 8 tools)
  • commitlint clean on all commits

jb-thery added 4 commits July 4, 2026 03:09
…tion

Replace the generic narration guidance with a deliberate, technique-based
pipeline that produces spoken summaries a listener can follow and retain,
instead of basic summaries read aloud.

The TTS rendering pipeline is untouched; all changes target the narration
script quality upstream.

SKILL.md is restructured into an 8-step spine (capture intent, verify KB,
search, choose format, write for listening, anchor memorability, render,
report). Two reference files are added next to SKILL.md and bundled
automatically: listening-style.md (pacing, TTS punctuation, anti-patterns)
and narration-templates.md (skeletons per format, signposting and
active-recall catalogues).
The previous chore added packages/*/dist/ to .gitignore but did not run
git rm --cached, so 128 dist files (ragmir-core + ragmir-tts) inherited
from the rebrand commit stayed tracked. .gitignore does not untrack
already-tracked files retroactively.

Untrack them now so the index matches the gitignore policy. The files stay
on disk (rebuilt locally with pnpm build) and are no longer version
controlled, consistent with the dist-as-build-output decision.
ragmir sources add/list now read and write the sources array of
.ragmir/config.json instead of the legacy .ragmir/sources.txt file. This
matches the config-first direction: ragmir init already stopped creating
sources.txt, but sources add still wrote to it, leaving projects with an
empty config sources array and all entries stranded in the legacy file.

- addSourceEntries writes into config.json sources, preserving other fields.
- listSourceEntries reads from config.json and merges a legacy sources.txt
  read-only when present, so existing projects keep working.
- Never create or write sources.txt anymore.
- Remove the now-unused SOURCES_FILE_HEADER from defaults.ts.
Clean up documentation that still presented the legacy kb binary and .kb/
paths as current, and sync the sources guidance with the new config-first
behavior.

- SECURITY-HARDENING.md: .kb/ to .ragmir/, kb destroy-index to ragmir
  destroy-index, .kb/config.json to .ragmir/config.json.
- SECURITY.md: data boundary now favors .ragmir/, keeps .kb/ as legacy.
- CHANGELOG.md: rewrite historical kb command names to ragmir with a legacy
  note; KB_INCLUDE_EXTENSIONS to RAGMIR_INCLUDE_EXTENSIONS.
- README.md: sources.txt legacy note now matches sources.ts. Add a Mermaid
  diagram for the rawDir plus sources plus legacy merge flow.
- AGENTS.md and docs/cli-reference.md: sources add/list target config.json.
@jb-thery jb-thery force-pushed the feature/improve-text-tokenization branch from f01719f to 8d6a668 Compare July 3, 2026 20:11
dist/ is now gitignored build output, so ragmir-core can no longer rely on
a committed ragmir-tts/dist to resolve the @jcode.labs/ragmir-tts import
during typecheck and tests. In CI the check step runs before build, so the
tts dist does not exist yet and tsc --noEmit fails with 'Cannot find module'.

Make the core check and test scripts build ragmir-tts first, so the tts
dist exists before core resolves it. This mirrors how pnpm build already
orders tts before core.
@jb-thery jb-thery merged commit 4629e4b into develop Jul 3, 2026
7 checks passed
@jb-thery jb-thery deleted the feature/improve-text-tokenization branch July 3, 2026 20:15
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant