π The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix(cli,ruflo-ruvllm): say how to install @ruvector/ruvllm-wasm when it is missing (#4149)
rdae163aca60a
diff --git a/plugins/ruflo-ruvllm/.claude-plugin/plugin.json b/plugins/ruflo-ruvllm/.claude-plugin/plugin.jsonindex e79db59ef0..b3a82a87de 100644--- a/plugins/ruflo-ruvllm/.claude-plugin/plugin.json+++ b/plugins/ruflo-ruvllm/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-ruvllm","description": "RuVLLM local inference with chat formatting (Claude/GPT/Gemini/Ollama/Cohere), model configuration, MicroLoRA fine-tuning, and SONA real-time adaptation. As a mod (ADR-445): a guard that keeps secrets out of adapters and the pattern router, /ruvllm-mod, and a status file the console shows",- "version": "0.3.5",+ "version": "0.3.6","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ruvllm/CHANGELOG.md b/plugins/ruflo-ruvllm/CHANGELOG.mdindex f57221ad46..be33794e65 100644--- a/plugins/ruflo-ruvllm/CHANGELOG.md+++ b/plugins/ruflo-ruvllm/CHANGELOG.md@@ -2,6 +2,9 @@Newest first. One `## <version> β <date>` heading per version, then `feat:`, `fix:`, `breaking:` and `chore:` bullets (ADR-478). Built from git history; this is the whole history.+## 0.3.6 β 2026-10-14+- fix: document the `@ruvector/ruvllm-wasm` add-on that the WASM-backed `ruvllm_*` tools need (README Requirements, `llm-config` and `chat-format` skills); the CLI now returns an install hint instead of a bare ERR_MODULE_NOT_FOUND (#4149)+## 0.3.5 β 2026-10-12- fix: the shared text screen now catches `.env` and e-mailed credentials, no longer flags a model's token talk (`--max-tokens`, `/oauth/token`, "token usage"), and no longer flags values that only name where a secret lives (`./service-account.json`, `--set-secrets=NAME=NAME:latest`); every rule stays linear (#4094, thanks @proffesor-for-testing)diff --git a/plugins/ruflo-ruvllm/README.md b/plugins/ruflo-ruvllm/README.mdindex 8b27d88bc4..8357830fa3 100644--- a/plugins/ruflo-ruvllm/README.md+++ b/plugins/ruflo-ruvllm/README.md@@ -9,6 +9,15 @@ RuVLLM local inference with chat formatting, model configuration, MicroLoRA fine/plugin install ruflo-ruvllm@ruflo```+## Requirements++The WASM-backed tools (`ruvllm_chat_format`, `ruvllm_microlora_*`, `ruvllm_sona_*`, `ruvllm_hnsw_*`) need `@ruvector/ruvllm-wasm`, which `@claude-flow/cli` does not install. `ruvllm_status` reports `wasm.available: false` plus a `wasm.hint` until it is present:++```bash+npm i -g @ruvector/ruvllm-wasm # global ruflo / @claude-flow/cli install+npm i @ruvector/ruvllm-wasm # project-local install+```+## Features- **Model configuration**: Generate optimal configs for local inferencediff --git a/plugins/ruflo-ruvllm/scripts/smoke.sh b/plugins/ruflo-ruvllm/scripts/smoke.shindex c7520be314..3c550f8abd 100755--- a/plugins/ruflo-ruvllm/scripts/smoke.sh+++ b/plugins/ruflo-ruvllm/scripts/smoke.sh@@ -7,9 +7,9 @@ step() { printf "β %s ... " "$1"; }ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }-step "1. plugin.json declares 0.3.5 with new keywords"+step "1. plugin.json declares 0.3.6 with new keywords"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.3.5" ]]; then bad "expected 0.3.5, got '$v'"; else+if [[ "$v" != "0.3.6" ]]; then bad "expected 0.3.6, got '$v'"; elsemiss=""for k in mcp local-inference chat-templates; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-ruvllm/skills/chat-format/SKILL.md b/plugins/ruflo-ruvllm/skills/chat-format/SKILL.mdindex 5f3239dead..b5004a59a5 100644--- a/plugins/ruflo-ruvllm/skills/chat-format/SKILL.md+++ b/plugins/ruflo-ruvllm/skills/chat-format/SKILL.md@@ -15,7 +15,7 @@ When you need a prompt string in a local model's chat template (for llama.cpp, O## Steps-1. **Format chat** β call `mcp__plugin_ruflo-core_ruflo__ruvllm_chat_format` with `messages` (`[{role, content}]`) and `template`: one of `llama3`, `mistral`, `chatml`, `phi`, `gemma`, or a model id to auto-detect. Both fields are required. It returns the formatted string.+1. **Format chat** β call `mcp__plugin_ruflo-core_ruflo__ruvllm_chat_format` with `messages` (`[{role, content}]`) and `template`: one of `llama3`, `mistral`, `chatml`, `phi`, `gemma`, or a model id to auto-detect. Both fields are required. It returns the formatted string. It needs `@ruvector/ruvllm-wasm` (`npm i -g @ruvector/ruvllm-wasm`); without it the call fails with an install hint.2. **Create a router** (optional) β `ruvllm_hnsw_create` with `dimensions` (for example 384), `maxPatterns`, `efSearch`. The WASM router holds about 11 patterns at most (ruvllm-wasm v2.0.1), so use it for routing between a few named intents, not for document retrieval. For real document search use `memory_search` or the `ruflo-rag-memory` plugin.3. **Add patterns** β `ruvllm_hnsw_add` with `routerId`, a `name`, and an `embedding` whose length equals the router's dimensions (you produce the embedding, for example with `embeddings_generate`).4. **Route a query** β `ruvllm_hnsw_route` with `routerId`, the query `embedding`, and `k` (default 3).diff --git a/plugins/ruflo-ruvllm/skills/llm-config/SKILL.md b/plugins/ruflo-ruvllm/skills/llm-config/SKILL.mdindex f847f8e4f0..3e16d007d1 100644--- a/plugins/ruflo-ruvllm/skills/llm-config/SKILL.md+++ b/plugins/ruflo-ruvllm/skills/llm-config/SKILL.md@@ -15,7 +15,7 @@ When you need to configure local LLM inference, create MicroLoRA adapters for ta## Steps-1. **Check status** β call `mcp__plugin_ruflo-core_ruflo__ruvllm_status` to see current model and adapter state+1. **Check status** β call `mcp__plugin_ruflo-core_ruflo__ruvllm_status` to see current model and adapter state. If `wasm.available` is `false`, install the add-on first (`npm i -g @ruvector/ruvllm-wasm`, or without `-g` in a project) β the MicroLoRA and SONA tools cannot run without it2. **Generate config** β call `mcp__plugin_ruflo-core_ruflo__ruvllm_generate_config` with model parameters3. **Create MicroLoRA** β call `mcp__plugin_ruflo-core_ruflo__ruvllm_microlora_create` with `inputDim`, `outputDim`, `rank` (1-4, default 2) and `alpha`4. **Adapt MicroLoRA** β call `mcp__plugin_ruflo-core_ruflo__ruvllm_microlora_adapt` with `loraId` and a `quality` signal (0.0-1.0), optional `learningRate` and `success`. It takes a feedback score, not a training setdiff --git a/v3/@claude-flow/cli/__tests__/ruvllm-wasm-missing-hint-4149.test.ts b/v3/@claude-flow/cli/__tests__/ruvllm-wasm-missing-hint-4149.test.tsnew file mode 100644index 0000000000..7013de9824--- /dev/null+++ b/v3/@claude-flow/cli/__tests__/ruvllm-wasm-missing-hint-4149.test.ts@@ -0,0 +1,29 @@+/**+ * #4149: with @ruvector/ruvllm-wasm absent (the state of a plain global+ * install) every ruvllm_* tool but ruvllm_status failed with a bare+ * ERR_MODULE_NOT_FOUND. The error and the status must say how to fix it.+ * The package is deliberately not a dependency of this workspace, so these+ * tests run against the real missing-module path with no mocks.+ */+import { describe, it, expect } from 'vitest';+import {+ getRuvllmStatus,+ initRuvllmWasm,+ isRuvllmWasmAvailable,+} from '../src/ruvector/ruvllm-wasm.js';++describe('#4149 missing @ruvector/ruvllm-wasm is actionable', () => {+ it('precondition: the package is not installed here', async () => {+ expect(await isRuvllmWasmAvailable()).toBe(false);+ });++ it('getRuvllmStatus carries an install hint when unavailable', async () => {+ const s = await getRuvllmStatus();+ expect(s.available).toBe(false);+ expect(s.hint).toMatch(/npm i(nstall)? (-g )?@ruvector\/ruvllm-wasm/);+ });++ it('initRuvllmWasm names the package and the install command', async () => {+ await expect(initRuvllmWasm()).rejects.toThrow(/npm i(nstall)? (-g )?@ruvector\/ruvllm-wasm/);+ });+});diff --git a/v3/@claude-flow/cli/src/ruvector/ruvllm-wasm.ts b/v3/@claude-flow/cli/src/ruvector/ruvllm-wasm.tsindex 4b953c7d90..14f91e9ec9 100644--- a/v3/@claude-flow/cli/src/ruvector/ruvllm-wasm.ts+++ b/v3/@claude-flow/cli/src/ruvector/ruvllm-wasm.ts@@ -81,6 +81,19 @@ export interface RuvllmStatus {available: boolean;initialized: boolean;version: string | null;+ /** Present when unavailable: how to install the missing package. */+ hint?: string;+}++/** #4149: the wasm package is an optional add-on, not bundled with the CLI. */+export const RUVLLM_WASM_INSTALL_HINT =+ '@ruvector/ruvllm-wasm is not installed. Install it next to the CLI: ' ++ '"npm i -g @ruvector/ruvllm-wasm" for a global install, or ' ++ '"npm i @ruvector/ruvllm-wasm" in your project.';++function isModuleNotFound(err: unknown): boolean {+ const code = (err as { code?: string } | null)?.code;+ return code === 'ERR_MODULE_NOT_FOUND' || code === 'MODULE_NOT_FOUND';}// ββ WASM Module Detection & Init βββββββββββββββββββββββββββββ@@ -114,6 +127,9 @@ export async function initRuvllmWasm(): Promise<void> {mod.initSync({ module: wasmBytes });_wasmReady = true;} catch (err) {+ if (isModuleNotFound(err)) {+ throw new Error(`Failed to initialize @ruvector/ruvllm-wasm: ${RUVLLM_WASM_INSTALL_HINT}`);+ }throw new Error(`Failed to initialize @ruvector/ruvllm-wasm: ${err}`);}}@@ -124,7 +140,7 @@ export async function initRuvllmWasm(): Promise<void> {export async function getRuvllmStatus(): Promise<RuvllmStatus> {const available = await isRuvllmWasmAvailable();if (!available) {- return { available: false, initialized: false, version: null };+ return { available: false, initialized: false, version: null, hint: RUVLLM_WASM_INSTALL_HINT };}try {const mod = await import('@ruvector/ruvllm-wasm');