🌊 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(ruflo-console): entryFor no longer returns another project's install record (#4496) (#4497)
rUved2dd638bd6f
diff --git a/plugins/ruflo-console/.claude-plugin/plugin.json b/plugins/ruflo-console/.claude-plugin/plugin.jsonindex 0875d7d2b9..8c3ace2acb 100644--- a/plugins/ruflo-console/.claude-plugin/plugin.json+++ b/plugins/ruflo-console/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-console","description": "ruflo's cockpit inside Claude Code and the one /ruflo command for every ruflo mod (function hooks, early access). Views: overview with health alerts, swarm topology graph, claims flow with TTL rings, federation map, plugin health matrix, learning curve and pipeline, MetaHarness radar and audit trend, memory, cost gauge, agent timeline, approvals queue, event stream, a main menu, an x.ruv.io federation board, an AI terminal (codex, claude or both in remembered sessions, streamed), Skills (npx skills), a Hive-Mind view, a MetaHarness lab, agent drill-down; a command palette for confirm-gated actions through the ruflo CLI; a band above the prompt. Reads ruflo's files and the CLI's local JSON; anything not measured reads n/a. The one network call it makes by itself is a daily read of the published plugin.json at github.com/ruvnet/ruflo to offer an update (Settings \u2192 Updates: ask, auto, or off); it installs only through Claude Code's own claude plugin update, and never a new major version without asking.",- "version": "0.49.2",+ "version": "0.49.3","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-console/CHANGELOG.md b/plugins/ruflo-console/CHANGELOG.mdindex 70f004ddfe..bdd994df0d 100644--- a/plugins/ruflo-console/CHANGELOG.md+++ b/plugins/ruflo-console/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; older versions: `git log -- plugins/ruflo-console`.+## 0.49.3 — 2026-10-25+- fix: the install record for a plugin installed more than once no longer comes from another project (#4496). With no record for this folder and no user-scope record the console now reports "not installed here" instead of showing the first record's version and install folder, and among records that apply the one with the longest `projectPath` wins, so a record for the exact project beats one for a parent folder.+## 0.49.2 — 2026-10-25- fix: Windows autopilot path guards and binary-planting hardening (#4491). Matches extended namespaces (`\\?\`), device paths (`\\.\`), drive-relative paths (`C:foo`), and UNC forward-slash shares; denies envelope edits under backslashes; rejects root drive envelope paths and `.bat`/`.cmd` targets; hardens against NTFS alternate data streams and parent traversals; and resolves `powershell.exe` and `where.exe` explicitly from System32.diff --git a/plugins/ruflo-console/hooks/data/facts.ts b/plugins/ruflo-console/hooks/data/facts.tsindex 7308367b59..1a64b5d36a 100644--- a/plugins/ruflo-console/hooks/data/facts.ts+++ b/plugins/ruflo-console/hooks/data/facts.ts@@ -162,14 +162,22 @@ export type Installed = { id: string; name: string; marketplace: string; version/*** The install record that applies to a session in `cwd`: a project or local one whose `projectPath` is `cwd` or holds it (Windows paths compare- * ignoring case and separator style), else the user-scope one, else the first. A plugin installed for several projects has one record each; taking- * the first showed another project's version and install folder.+ * ignoring case and separator style; the longest `projectPath` wins, so a record for the exact project beats one for a parent folder), else the+ * user-scope one. A plugin installed for several projects has one record each; a record for another project never describes this one, so with+ * none applying the result is null ("not installed here"). Without a `cwd` there is no project to judge and the first record stands in.*/function entryFor(entries: unknown, cwd: string | undefined): Record<string, unknown> | null {- const list = (Array.isArray(entries) ? entries : [entries]).flatMap(entry => recordOf(entry) ?? [])- const applies = (entry: Record<string, unknown>): boolean => cwd !== undefined && typeof entry.projectPath === 'string' && insideOrSame(entry.projectPath, cwd)+ const list: Record<string, unknown>[] = (Array.isArray(entries) ? entries : [entries]).flatMap(entry => recordOf(entry) ?? [])- return list.find(entry => (entry.scope === 'project' || entry.scope === 'local') && applies(entry)) ?? list.find(entry => entry.scope === 'user') ?? list[0] ?? null+ if (cwd === undefined) {+ return list.find(entry => entry.scope === 'user') ?? list[0] ?? null+ }++ const rootOf = (entry: Record<string, unknown>): string => (typeof entry.projectPath === 'string' && insideOrSame(entry.projectPath, cwd) ? entry.projectPath : '')+ const here = list.filter(entry => (entry.scope === 'project' || entry.scope === 'local') && rootOf(entry) !== '')+ const nearest = here.reduce<Record<string, unknown> | null>((best, entry) => (best === null || rootOf(entry).length > rootOf(best).length ? entry : best), null)++ return nearest ?? list.find(entry => entry.scope === 'user') ?? null}/** `~/.claude/plugins/installed_plugins.json` (version 2): every installed plugin, `name@marketplace`. `cwd` picks the record of a plugin installed more than once. */diff --git a/plugins/ruflo-console/hooks/version.ts b/plugins/ruflo-console/hooks/version.tsindex 8d3814115c..b8407cd205 100644--- a/plugins/ruflo-console/hooks/version.ts+++ b/plugins/ruflo-console/hooks/version.ts@@ -2,4 +2,4 @@* The console's version, shown on the header so a person can tell which build is running. Kept equal to the plugin's manifest* (`.claude-plugin/plugin.json`); tests/version.spec.ts fails if the two drift.*/-export const CONSOLE_VERSION = '0.49.2'+export const CONSOLE_VERSION = '0.49.3'diff --git a/plugins/ruflo-console/scripts/smoke.sh b/plugins/ruflo-console/scripts/smoke.shindex 752b3c2b2b..6a451563e5 100755--- a/plugins/ruflo-console/scripts/smoke.sh+++ b/plugins/ruflo-console/scripts/smoke.sh@@ -11,9 +11,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 ruflo-console 0.49.2"+step "1. plugin.json declares ruflo-console 0.49.3"grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \- && grep -q '"version": "0.49.2"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"+ && grep -q '"version": "0.49.3"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"step "2. hooks.json names exactly one module and no classic hook commands"grep -q '"modules": \["./register.ts"\]' "$HOOKS/hooks.json" && ! grep -q '"command"' "$HOOKS/hooks.json" \diff --git a/plugins/ruflo-console/tests/windows-path-guards.spec.ts b/plugins/ruflo-console/tests/windows-path-guards.spec.tsindex 3741a52581..39779e1949 100644--- a/plugins/ruflo-console/tests/windows-path-guards.spec.ts+++ b/plugins/ruflo-console/tests/windows-path-guards.spec.ts@@ -91,9 +91,24 @@ describe('which install record applies to a session', () => {expect(versionFor()).toBe('0.47.0')})- it('falls back to the first record when there is no user record, as before', () => {- expect(versionFor('C:\\Users\\x\\git\\elsewhere', 'ruflo-swarm@ruflo')).toBe('0.3.7')+ it("is no record, not another project's, when none applies and there is no user record (#4496)", () => {+ expect(versionFor('C:\\Users\\x\\git\\elsewhere', 'ruflo-swarm@ruflo')).toBeUndefined()+ expect(versionFor('C:\\Users\\x\\git\\other', 'ruflo-swarm@ruflo')).toBe('0.3.7')+ })++ it('without a folder to judge by, takes the user record, else the first', () => {expect(parseInstalled(JSON.stringify({ plugins: { 'a@b': { version: '1.0.0', scope: 'user' } } }))?.[0]?.version).toBe('1.0.0')+ expect(versionFor(undefined, 'ruflo-swarm@ruflo')).toBe('0.3.7')+ })++ it('prefers the record for the exact project over one for a parent folder, in any file order (#4496)', () => {+ const parent = record('0.40.0', 'project', 'C:\\Users\\x\\git')+ const exact = record('0.46.0', 'local', 'C:\\Users\\x\\git\\proj')+ for (const order of [[parent, exact], [exact, parent]]) {+ const text = JSON.stringify({ plugins: { 'a@b': order } })+ expect(parseInstalled(text, 'C:\\Users\\x\\git\\proj\\sub')?.[0]?.version).toBe('0.46.0')+ expect(parseInstalled(text, 'C:\\Users\\x\\git\\sibling')?.[0]?.version).toBe('0.40.0')+ }})it('the updater applies the same rule: a session in a subfolder of the project updates the project install', () => {