From acb0e4a1801d66bdd172c4aad5e5b4fcd9d5c638 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste THERY Date: Tue, 14 Jul 2026 19:05:56 +0700 Subject: [PATCH 1/2] fix(core): keep chat and tts truly optional --- AGENTS.md | 1 + CLAUDE.md | 1 + README.md | 2 ++ docs/api-reference.md | 14 +++++++-- docs/cli-reference.md | 6 +++- packages/ragmir-core/README.md | 2 +- packages/ragmir-core/package.json | 16 ++++++++-- packages/ragmir-core/src/cli-options.ts | 14 ++++++--- packages/ragmir-core/src/cli.test.ts | 6 ++++ packages/ragmir-core/src/cli.ts | 37 +++++++++++++++++++++--- packages/ragmir-landing/messages/en.json | 7 ++--- packages/ragmir-landing/messages/fr.json | 11 +++---- pnpm-lock.yaml | 12 ++++---- scripts/semantic-release-verify.mjs | 17 +++++++++++ 14 files changed, 114 insertions(+), 32 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index b7d0fbc..739df2a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -13,6 +13,7 @@ - `packages/ragmir-core` provides `@jcode.labs/ragmir`: the `rgr` CLI, TypeScript library, MCP server, and portable skills. - `packages/ragmir-chat` is the optional local GGUF synthesis add-on used by `rgr chat`. - `packages/ragmir-tts` is the optional local/offline audio add-on used by `rgr audio`. +- Core must install and start without Chat or TTS. Keep both as optional peer integrations and load them only when their command is used. - `packages/ragmir-landing` is a self-contained, telemetry-free Astro site. Keep it static, open-source focused, and free of vendor deployment configuration. - Ragmir Core stays retrieval-first: `local-hash` supports offline retrieval, `transformers` is the explicit semantic option, and local chat remains a separate add-on. - Long-running Node.js processes use one `RagmirClient` per project root and close it during shutdown. Keep the top-level API for one-shot scripts. diff --git a/CLAUDE.md b/CLAUDE.md index df101b8..822bb54 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -17,6 +17,7 @@ Use `pnpm --filter @jcode.labs/ragmir