π 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
feat(mods): vendor the flag option parser from one origin with the screen sync and drift check (review #2)
ruv21adb5ce286a
diff --git a/plugins/ruflo-adr/.claude-plugin/plugin.json b/plugins/ruflo-adr/.claude-plugin/plugin.jsonindex 7a6da56a43..042d4f3e2d 100644--- a/plugins/ruflo-adr/.claude-plugin/plugin.json+++ b/plugins/ruflo-adr/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-adr","description": "ADR lifecycle management β create, index, reconcile, supersede, check compliance, and link Architecture Decision Records to code via AgentDB hierarchical store + causal edges (supersedes/amends/depends-on/related)",- "version": "0.5.1",+ "version": "0.5.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-adr/hooks/options.ts b/plugins/ruflo-adr/hooks/options.tsindex 7fa90ff366..30d36f3420 100644--- a/plugins/ruflo-adr/hooks/options.ts+++ b/plugins/ruflo-adr/hooks/options.ts@@ -5,8 +5,10 @@ export type ModOptions = {readonly guard: boolean}-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-adr/scripts/smoke.sh b/plugins/ruflo-adr/scripts/smoke.shindex 7608da7b89..5bf4bdc839 100755--- a/plugins/ruflo-adr/scripts/smoke.sh+++ b/plugins/ruflo-adr/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-adr v0.5.1 (ADR-0001, ADR-0002).+# Structural smoke test for ruflo-adr v0.5.2 (ADR-0001, ADR-0002).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -9,10 +9,10 @@ ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }# 1. plugin.json bump + new keywords-step "1. plugin.json declares 0.5.1 with new keywords"+step "1. plugin.json declares 0.5.2 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.5.1" ]]; then- bad "expected 0.5.1, got '$v'"+if [[ "$v" != "0.5.2" ]]; then+ bad "expected 0.5.2, got '$v'"elsemiss=""for k in lifecycle compliance causal-graph mcp; dodiff --git a/plugins/ruflo-agent/.claude-plugin/plugin.json b/plugins/ruflo-agent/.claude-plugin/plugin.jsonindex b9040e0871..df470bb806 100644--- a/plugins/ruflo-agent/.claude-plugin/plugin.json+++ b/plugins/ruflo-agent/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-agent","description": "Agent runtimes for ruflo β local WASM-sandboxed agents (rvagent: 10 wasm_agent_*/wasm_gallery_* MCP tools, built on @ruvector/rvagent-wasm + @ruvector/ruvllm-wasm per ADR-070) plus Anthropic Claude Managed Agents as a cloud backend (managed_agent_* MCP tools per ADR-115). One interface, local-vs-cloud runtimes.",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-agent/hooks/options.ts b/plugins/ruflo-agent/hooks/options.tsindex 7fa90ff366..30d36f3420 100644--- a/plugins/ruflo-agent/hooks/options.ts+++ b/plugins/ruflo-agent/hooks/options.ts@@ -5,8 +5,10 @@ export type ModOptions = {readonly guard: boolean}-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-agent/scripts/smoke.sh b/plugins/ruflo-agent/scripts/smoke.shindex ca3e971c49..bb2b7465b2 100755--- a/plugins/ruflo-agent/scripts/smoke.sh+++ b/plugins/ruflo-agent/scripts/smoke.sh@@ -7,11 +7,11 @@ step() { printf "β %s ... " "$1"; }ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }-step "1. plugin.json is ruflo-agent 0.3.0 with both-runtime keywords"+step "1. plugin.json is ruflo-agent 0.3.1 with both-runtime keywords"P="$ROOT/.claude-plugin/plugin.json"v=$(grep -E '"version"' "$P" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)n=$(grep -E '"name"' "$P" | grep -oE 'ruflo-agent' | head -1)-if [[ "$v" != "0.3.0" ]]; then bad "expected version 0.3.0, got '$v'";+if [[ "$v" != "0.3.1" ]]; then bad "expected version 0.3.1, got '$v'";elif [[ "$n" != "ruflo-agent" ]]; then bad "expected name ruflo-agent";elsemiss=""diff --git a/plugins/ruflo-agentdb/.claude-plugin/plugin.json b/plugins/ruflo-agentdb/.claude-plugin/plugin.jsonindex 8500de9cf2..9997346f70 100644--- a/plugins/ruflo-agentdb/.claude-plugin/plugin.json+++ b/plugins/ruflo-agentdb/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-agentdb","description": "Substrate plugin for Ruflo memory: AgentDB controller bridge (15 agentdb_* MCP tools), RuVector ONNX embeddings (10 embeddings_* tools incl. RaBitQ 32x quantization), and WASM HNSW pattern router (3 ruvllm_hnsw_* tools). As a mod (ADR-445): opt-in safe recall into the prompt, a write guard that keeps secrets out of memory, /agentdb, and a status file the console shows",- "version": "0.4.1",+ "version": "0.4.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-agentdb/README.md b/plugins/ruflo-agentdb/README.mdindex 03808a08b0..ff6a3450a7 100644--- a/plugins/ruflo-agentdb/README.md+++ b/plugins/ruflo-agentdb/README.md@@ -205,7 +205,7 @@ bash plugins/ruflo-agentdb/scripts/smoke.shThe smoke script is the contract. It calls each documented MCP tool, exercises the RaBitQ workflow, and source-inspects the fallback path (no env-var gate exists to force the fallback live).-## As a mod (0.4.1, ADR-445)+## As a mod (0.4.2, ADR-445)A function-hook mod ships beside the skills. Needs a Claude Code with mods (2.1.287+); older builds ignore it.diff --git a/plugins/ruflo-agentdb/hooks/options.ts b/plugins/ruflo-agentdb/hooks/options.tsindex ba1ddf7a66..2122397bbb 100644--- a/plugins/ruflo-agentdb/hooks/options.ts+++ b/plugins/ruflo-agentdb/hooks/options.ts@@ -13,8 +13,10 @@ export type ModOptions = {const SOURCES: readonly Source[] = ['auto', 'agentdb', 'ruvector', 'none']-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGconst clamp = (value: unknown, min: number, max: number, fallback: number) => {const n = typeof value === 'number' ? value : typeof value === 'string' && value.trim() !== '' ? Number(value) : Number.NaNdiff --git a/plugins/ruflo-agentdb/scripts/smoke.sh b/plugins/ruflo-agentdb/scripts/smoke.shindex 42bcc38bbe..1738f6b289 100755--- a/plugins/ruflo-agentdb/scripts/smoke.sh+++ b/plugins/ruflo-agentdb/scripts/smoke.sh@@ -48,10 +48,10 @@ grep -q "## Namespace convention" "$ROOT/README.md" \&& ok || bad "Namespace convention section missing"# 1. Plugin version + new keywords-step "1. plugin.json declares version 0.4.1 with rabitq + namespace-convention keywords"+step "1. plugin.json declares version 0.4.2 with rabitq + namespace-convention keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.4.1" ]]; then- bad "expected 0.4.1, got '$v'"+if [[ "$v" != "0.4.2" ]]; then+ bad "expected 0.4.2, got '$v'"elsemiss=""for k in rabitq quantization namespace-convention controller-bridge; dodiff --git a/plugins/ruflo-agntcy/.claude-plugin/plugin.json b/plugins/ruflo-agntcy/.claude-plugin/plugin.jsonindex b30ec6b6b7..8a300e4258 100644--- a/plugins/ruflo-agntcy/.claude-plugin/plugin.json+++ b/plugins/ruflo-agntcy/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-agntcy","description": "AGNTCY/Outshift Internet-of-Cognition runtime integration for Ruflo β SLIM secure transport for cross-host agent coordination, CASA intent-scoped tool authorization enforcement, optional IOC Layer 9 coordination events, and AGNTCY identity/observability spans (ADR-380). Optional, removable augmentation per ADR-150; degrades gracefully when AGNTCY/SLIM packages are not installed.",- "version": "0.2.0",+ "version": "0.2.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-agntcy/hooks/options.ts b/plugins/ruflo-agntcy/hooks/options.tsindex e841ce5c83..4830d7842f 100644--- a/plugins/ruflo-agntcy/hooks/options.ts+++ b/plugins/ruflo-agntcy/hooks/options.ts@@ -5,8 +5,10 @@ export type ModOptions = {readonly guard: boolean}-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-agntcy/scripts/smoke.sh b/plugins/ruflo-agntcy/scripts/smoke.shindex 1d2feb98db..3fa01bb463 100755--- a/plugins/ruflo-agntcy/scripts/smoke.sh+++ b/plugins/ruflo-agntcy/scripts/smoke.sh@@ -8,9 +8,9 @@ step() { printf "β %s ... " "$1"; }ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }-step "0. plugin.json declares 0.2.0"+step "0. plugin.json declares 0.2.1"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-[[ "$v" == "0.2.0" ]] && ok || bad "expected 0.2.0, got '$v'"+[[ "$v" == "0.2.1" ]] && ok || bad "expected 0.2.1, got '$v'"# M1. The mod (ADR-445 pattern): hooks module registered, files within the 500-line rulestep "M1. mod: hooks.json names register.ts, every hook file is present and under 500 lines"diff --git a/plugins/ruflo-ai-team/.claude-plugin/plugin.json b/plugins/ruflo-ai-team/.claude-plugin/plugin.jsonindex a714f384a5..757d645ca6 100644--- a/plugins/ruflo-ai-team/.claude-plugin/plugin.json+++ b/plugins/ruflo-ai-team/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-ai-team","description": "Give Claude a tenant-isolated AI team that divides work, coordinates progress, recalls approved context, and returns evidence-backed results.",- "version": "0.2.0",+ "version": "0.2.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ai-team/hooks/options.ts b/plugins/ruflo-ai-team/hooks/options.tsindex 7fa90ff366..30d36f3420 100644--- a/plugins/ruflo-ai-team/hooks/options.ts+++ b/plugins/ruflo-ai-team/hooks/options.ts@@ -5,8 +5,10 @@ export type ModOptions = {readonly guard: boolean}-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-aidefence/.claude-plugin/plugin.json b/plugins/ruflo-aidefence/.claude-plugin/plugin.jsonindex df9ea850c0..40d4903334 100644--- a/plugins/ruflo-aidefence/.claude-plugin/plugin.json+++ b/plugins/ruflo-aidefence/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-aidefence","description": "AI safety scanning, PII detection, prompt injection defense, and adaptive threat learning",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-aidefence/hooks/options.ts b/plugins/ruflo-aidefence/hooks/options.tsindex 7fa90ff366..30d36f3420 100644--- a/plugins/ruflo-aidefence/hooks/options.ts+++ b/plugins/ruflo-aidefence/hooks/options.ts@@ -5,8 +5,10 @@ export type ModOptions = {readonly guard: boolean}-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-aidefence/scripts/smoke.sh b/plugins/ruflo-aidefence/scripts/smoke.shindex 92c0c43122..2aaf645cde 100755--- a/plugins/ruflo-aidefence/scripts/smoke.sh+++ b/plugins/ruflo-aidefence/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-aidefence v0.3.0 (ADR-0001).+# Structural smoke test for ruflo-aidefence v0.3.1 (ADR-0001).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -8,10 +8,10 @@ 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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then- bad "expected 0.3.0, got '$v'"+if [[ "$v" != "0.3.1" ]]; then+ bad "expected 0.3.1, got '$v'"elsemiss=""for k in prompt-injection defense-in-depth mcp; dodiff --git a/plugins/ruflo-arena/.claude-plugin/plugin.json b/plugins/ruflo-arena/.claude-plugin/plugin.jsonindex 8534589b03..b224fe0107 100644--- a/plugins/ruflo-arena/.claude-plugin/plugin.json+++ b/plugins/ruflo-arena/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "ruflo-arena",- "version": "0.2.0",+ "version": "0.2.1","description": "Competitive ruliology for Ruflo swarms β arenas, tournaments, and adaptive co-evolution of program strategies (ADR-147/148). Strategies-as-programs compete under payoff games; tournaments produce Wolfram-style competitive arrays; hill-climb and mutual co-evolution discover winners empirically.","author": {"name": "ruvnet",diff --git a/plugins/ruflo-arena/hooks/options.ts b/plugins/ruflo-arena/hooks/options.tsindex e841ce5c83..4830d7842f 100644--- a/plugins/ruflo-arena/hooks/options.ts+++ b/plugins/ruflo-arena/hooks/options.ts@@ -5,8 +5,10 @@ export type ModOptions = {readonly guard: boolean}-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-arena/scripts/smoke.sh b/plugins/ruflo-arena/scripts/smoke.shindex e4520f2ee8..3c71ea29cf 100755--- a/plugins/ruflo-arena/scripts/smoke.sh+++ b/plugins/ruflo-arena/scripts/smoke.sh@@ -8,9 +8,9 @@ step() { printf "β %s ... " "$1"; }ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }-step "0. plugin.json declares 0.2.0"+step "0. plugin.json declares 0.2.1"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-[[ "$v" == "0.2.0" ]] && ok || bad "expected 0.2.0, got '$v'"+[[ "$v" == "0.2.1" ]] && ok || bad "expected 0.2.1, got '$v'"# M1. The mod (ADR-445 pattern): hooks module registered, files within the 500-line rulestep "M1. mod: hooks.json names register.ts, every hook file is present and under 500 lines"diff --git a/plugins/ruflo-autopilot/.claude-plugin/plugin.json b/plugins/ruflo-autopilot/.claude-plugin/plugin.jsonindex 1b12443c95..c163a0e99d 100644--- a/plugins/ruflo-autopilot/.claude-plugin/plugin.json+++ b/plugins/ruflo-autopilot/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-autopilot","description": "Autonomous /loop-driven task completion with learning, prediction, and progress tracking β wraps 10 autopilot_* MCP tools (status/enable/disable/config/reset/log/progress/learn/history/predict)",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-autopilot/hooks/options.ts b/plugins/ruflo-autopilot/hooks/options.tsindex 8bc0c91c95..6a05005968 100644--- a/plugins/ruflo-autopilot/hooks/options.ts+++ b/plugins/ruflo-autopilot/hooks/options.ts@@ -6,8 +6,10 @@ export type ModOptions = {readonly iterationCap: number}-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGconst clamp = (value: unknown, min: number, max: number, fallback: number) => {const n = typeof value === 'number' ? value : typeof value === 'string' && value.trim() !== '' ? Number(value) : Number.NaNdiff --git a/plugins/ruflo-autopilot/scripts/smoke.sh b/plugins/ruflo-autopilot/scripts/smoke.shindex f00bf03173..a6ac91e732 100755--- a/plugins/ruflo-autopilot/scripts/smoke.sh+++ b/plugins/ruflo-autopilot/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-autopilot v0.3.0 (ADR-0001).+# Structural smoke test for ruflo-autopilot v0.3.1 (ADR-0001).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -8,10 +8,10 @@ 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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then- bad "expected 0.3.0, got '$v'"+if [[ "$v" != "0.3.1" ]]; then+ bad "expected 0.3.1, got '$v'"elsemiss=""for k in prediction progress-tracking cache-aware mcp; dodiff --git a/plugins/ruflo-bbs-federation/.claude-plugin/plugin.json b/plugins/ruflo-bbs-federation/.claude-plugin/plugin.jsonindex 73ff0563e9..04887a5d33 100644--- a/plugins/ruflo-bbs-federation/.claude-plugin/plugin.json+++ b/plugins/ruflo-bbs-federation/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-bbs-federation","description": "AgentBBS cross-host agent federation for ruflo (ADR-164). Phase 1 exposes room coordination β federation_bbs_register / federation_bbs_publish / federation_bbs_watch / federation_bbs_human_join. Phase 2 (v3.40.0) adds signed cross-host federation β federation_bbs_identity (persistent Ed25519 node identity), federation_bbs_peer_add (pin a peer by nodeId + public key), federation_bbs_peers (audit/unpin), federation_bbs_serve (read-only pull endpoint), and federation_bbs_sync (pull pinned peers and union-merge what verifies). Every merged envelope is Ed25519-verified against a pinned key; unsigned/misattributed/oversize/over-hop envelopes are dropped and counted. Transport is HTTP pull and works on any network (Tailscale, LAN, VPN, loopback) β no tailnet required. Coordinates work ownership via claim messages (ClaimIssued/Released/Handoff/Ack). agentbbs lives in optionalDependencies; every handler gracefully degrades to {degraded:true} when the package is missing (ADR-150 pattern). As a mod (ADR-445 pattern): a tighten-only tool guard, a local slash command, and a status file the console shows.",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-bbs-federation/hooks/options.ts b/plugins/ruflo-bbs-federation/hooks/options.tsindex 07ab556e48..35c3208ddd 100644--- a/plugins/ruflo-bbs-federation/hooks/options.ts+++ b/plugins/ruflo-bbs-federation/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the safe default (guard on, wildcard bind refused). */export type ModOptions = { readonly guard: boolean; readonly allowWildcardBind: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({guard: flag(options?.guard, true),diff --git a/plugins/ruflo-bbs-federation/scripts/smoke.sh b/plugins/ruflo-bbs-federation/scripts/smoke.shindex 31b44b21f6..07545e2821 100755--- a/plugins/ruflo-bbs-federation/scripts/smoke.sh+++ b/plugins/ruflo-bbs-federation/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-bbs-federation v0.3.1: the plugin manifest and the mod (ADR-445 pattern).+# Structural smoke test for ruflo-bbs-federation v0.3.2: the plugin manifest and the mod (ADR-445 pattern).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -8,10 +8,10 @@ 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 version 0.3.1 and the mod keywords"+step "1. plugin.json declares version 0.3.2 and the mod keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.3.1" ]]; then- bad "expected 0.3.1, got '$v'"+if [[ "$v" != "0.3.2" ]]; then+ bad "expected 0.3.2, got '$v'"elsemiss=""for k in mod function-hooks guard; do grep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"; donediff --git a/plugins/ruflo-browser/.claude-plugin/plugin.json b/plugins/ruflo-browser/.claude-plugin/plugin.jsonindex 9b47172186..59d6069e6c 100644--- a/plugins/ruflo-browser/.claude-plugin/plugin.json+++ b/plugins/ruflo-browser/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-browser","description": "Session-as-skill browser automation: Playwright + RVF cognitive containers + ruvector trajectories + AgentDB selector memory + AIDefence PII/injection gates As a mod (ADR-445 pattern): a tighten-only tool guard, a local slash command, and a status file the console shows.",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-browser/hooks/options.ts b/plugins/ruflo-browser/hooks/options.tsindex a0540bdaf9..0b6fd2e3ac 100644--- a/plugins/ruflo-browser/hooks/options.ts+++ b/plugins/ruflo-browser/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the safe default (guard on, plain http allowed). */export type ModOptions = { readonly guard: boolean; readonly strictUrls: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({guard: flag(options?.guard, true),diff --git a/plugins/ruflo-browser/scripts/smoke.sh b/plugins/ruflo-browser/scripts/smoke.shindex 7d47b7538d..40f5becb79 100755--- a/plugins/ruflo-browser/scripts/smoke.sh+++ b/plugins/ruflo-browser/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-browser plugin v0.3.1.+# Structural smoke test for ruflo-browser plugin v0.3.2.# Verifies the file inventory, frontmatter, ADR cross-references, and# AgentDB-namespace coverage that ADR-0001 contracts. Does NOT exercise# the live MCP browser tools β the full Verification Β§1-Β§7 contract@@ -15,10 +15,10 @@ ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }# 1. plugin.json version + keywords-step "plugin.json declares version 0.3.1 with new keywords"+step "plugin.json declares version 0.3.2 with new keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.3.1" ]]; then- bad "expected 0.3.1, got '$v'"+if [[ "$v" != "0.3.2" ]]; then+ bad "expected 0.3.2, got '$v'"elsemissing=""for kw in rvf replay trajectory agentdb aidefence; dodiff --git a/plugins/ruflo-business-pods/.claude-plugin/plugin.json b/plugins/ruflo-business-pods/.claude-plugin/plugin.jsonindex 3fd2830a77..9e930cbeba 100644--- a/plugins/ruflo-business-pods/.claude-plugin/plugin.json+++ b/plugins/ruflo-business-pods/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-business-pods","description": "ADR-164 Phase 2 β business-domain pod templates for the federated business autopilot. Ships the sales pod template (templates/sales.json) and a single-tick runner (scripts/pod-tick.mjs) that pre-flights templates via business_pod_validate, reserves budget through a file-based stub ledger (atomic SQLite tracker is Phase 3 per ADR-164.1), resolves each agent role against ruflo's agent registry, constructs dry-run prompts, and posts an envelope summary to the room via federation_bbs_publish. Dry-run by default β --live is reserved for Phase 3 Managed-Agent + claude-p wiring. As a mod (ADR-445 pattern): a tighten-only tool guard, a local slash command, and a status file the console shows.",- "version": "0.2.1",+ "version": "0.2.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-business-pods/hooks/options.ts b/plugins/ruflo-business-pods/hooks/options.tsindex 364002c060..862613f0c3 100644--- a/plugins/ruflo-business-pods/hooks/options.ts+++ b/plugins/ruflo-business-pods/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the safe default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag(options?.guard, true) })diff --git a/plugins/ruflo-business-pods/scripts/smoke.sh b/plugins/ruflo-business-pods/scripts/smoke.shindex fb69244203..a055552345 100755--- a/plugins/ruflo-business-pods/scripts/smoke.sh+++ b/plugins/ruflo-business-pods/scripts/smoke.sh@@ -1,8 +1,8 @@#!/usr/bin/env bash-# Structural + functional smoke test for ruflo-business-pods v0.2.1+# Structural + functional smoke test for ruflo-business-pods v0.2.2# (ADR-164 Phase 2). Verifies:#-# 1. plugin.json declares 0.2.1 with the expected adr-164/phase-2 keywords+# 1. plugin.json declares 0.2.2 with the expected adr-164/phase-2 keywords# 2. templates/sales.json exists and validates against the pod-schema# 3. scripts/pod-tick.mjs exists, parses, and is executable# 4. Vitest suite passes (cli/__tests__/business-pod-tools.test.ts)@@ -23,10 +23,10 @@ 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.2.1 with adr-164 + phase-2 keywords"+step "1. plugin.json declares 0.2.2 with adr-164 + phase-2 keywords"v=$(grep -E '"version"' "$PLUGIN/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.2.1" ]]; then- bad "expected 0.2.1, got '$v'"+if [[ "$v" != "0.2.2" ]]; then+ bad "expected 0.2.2, got '$v'"elsemiss=""for k in ruflo pods business sales adr-164 adr-164.1 phase-2 pod-template pod-tick budget-reservation dry-run-default agent-registry-resolution; dodiff --git a/plugins/ruflo-chatgpt-federation/.claude-plugin/plugin.json b/plugins/ruflo-chatgpt-federation/.claude-plugin/plugin.jsonindex 66645d3af2..b6cbbbce0f 100644--- a/plugins/ruflo-chatgpt-federation/.claude-plugin/plugin.json+++ b/plugins/ruflo-chatgpt-federation/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-chatgpt-federation","description": "Dedicated ChatGPT Federation MCP publisher with isolated Nostr signing-key custody, OAuth-scoped publishing, and signed public-channel coordination over the Ruflo relay. As a mod (ADR-445 pattern): a tighten-only tool guard, a local slash command, and a status file the console shows.",- "version": "0.2.1",+ "version": "0.2.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-chatgpt-federation/hooks/options.ts b/plugins/ruflo-chatgpt-federation/hooks/options.tsindex aefb41cf6b..7af053dabc 100644--- a/plugins/ruflo-chatgpt-federation/hooks/options.ts+++ b/plugins/ruflo-chatgpt-federation/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the safe default (guard on, 8 KB payload cap). */export type ModOptions = { readonly guard: boolean; readonly maxPayloadBytes: number }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGconst clamp = (value: unknown, min: number, max: number, fallback: number) => {const n = typeof value === 'number' ? value : typeof value === 'string' && value.trim() !== '' ? Number(value) : Number.NaNdiff --git a/plugins/ruflo-chatgpt-federation/scripts/smoke.sh b/plugins/ruflo-chatgpt-federation/scripts/smoke.shindex 70de9b766a..efdb66bafc 100755--- a/plugins/ruflo-chatgpt-federation/scripts/smoke.sh+++ b/plugins/ruflo-chatgpt-federation/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-chatgpt-federation v0.2.1: the plugin manifest and the mod (ADR-445 pattern).+# Structural smoke test for ruflo-chatgpt-federation v0.2.2: the plugin manifest and the mod (ADR-445 pattern).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -8,10 +8,10 @@ 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 version 0.2.1 and the mod keywords"+step "1. plugin.json declares version 0.2.2 and the mod keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.2.1" ]]; then- bad "expected 0.2.1, got '$v'"+if [[ "$v" != "0.2.2" ]]; then+ bad "expected 0.2.2, got '$v'"elsemiss=""for k in mod function-hooks guard; do grep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"; donediff --git a/plugins/ruflo-daa/.claude-plugin/plugin.json b/plugins/ruflo-daa/.claude-plugin/plugin.jsonindex 3c0e1d7300..183dd72092 100644--- a/plugins/ruflo-daa/.claude-plugin/plugin.json+++ b/plugins/ruflo-daa/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-daa","description": "Dynamic Agentic Architecture β 8 daa_* MCP tools for adaptive agents (create/adapt), cognitive patterns, workflows (create/execute), knowledge sharing, and learning/performance metrics. Feeds the JUDGE phase of the 4-step intelligence pipeline.",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-daa/hooks/options.ts b/plugins/ruflo-daa/hooks/options.tsindex e18352b921..54c25648d4 100644--- a/plugins/ruflo-daa/hooks/options.ts+++ b/plugins/ruflo-daa/hooks/options.ts@@ -3,7 +3,9 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag((options ?? {}).guard, true) })diff --git a/plugins/ruflo-daa/scripts/smoke.sh b/plugins/ruflo-daa/scripts/smoke.shindex ce09acf33c..bba21f8e10 100755--- a/plugins/ruflo-daa/scripts/smoke.sh+++ b/plugins/ruflo-daa/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in cognitive-patterns workflows mcp; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-ddd/.claude-plugin/plugin.json b/plugins/ruflo-ddd/.claude-plugin/plugin.jsonindex 235a7aa761..d89e13f877 100644--- a/plugins/ruflo-ddd/.claude-plugin/plugin.json+++ b/plugins/ruflo-ddd/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-ddd","description": "Domain-Driven Design scaffolding β bounded contexts, aggregate roots, domain events, value objects, repositories, and anti-corruption layers; navigable domain graph stored in AgentDB",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ddd/hooks/options.ts b/plugins/ruflo-ddd/hooks/options.tsindex e18352b921..54c25648d4 100644--- a/plugins/ruflo-ddd/hooks/options.ts+++ b/plugins/ruflo-ddd/hooks/options.ts@@ -3,7 +3,9 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag((options ?? {}).guard, true) })diff --git a/plugins/ruflo-ddd/scripts/smoke.sh b/plugins/ruflo-ddd/scripts/smoke.shindex fef589268f..06cc4521cb 100755--- a/plugins/ruflo-ddd/scripts/smoke.sh+++ b/plugins/ruflo-ddd/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in acl value-objects repositories mcp; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-deepseek-harness/.claude-plugin/plugin.json b/plugins/ruflo-deepseek-harness/.claude-plugin/plugin.jsonindex cf9d917808..8a77e9b1e9 100644--- a/plugins/ruflo-deepseek-harness/.claude-plugin/plugin.json+++ b/plugins/ruflo-deepseek-harness/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-deepseek-harness","description": "DeepSeek model harness for ruflo β agents, commands, scripts, and skills for running and evaluating DeepSeek-backed workflows within the ruflo swarm.",- "version": "0.2.1",+ "version": "0.2.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-deepseek-harness/hooks/options.ts b/plugins/ruflo-deepseek-harness/hooks/options.tsindex e18352b921..54c25648d4 100644--- a/plugins/ruflo-deepseek-harness/hooks/options.ts+++ b/plugins/ruflo-deepseek-harness/hooks/options.ts@@ -3,7 +3,9 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag((options ?? {}).guard, true) })diff --git a/plugins/ruflo-deepseek-harness/scripts/smoke.sh b/plugins/ruflo-deepseek-harness/scripts/smoke.shindex 89dc0697ad..bcdd269298 100755--- a/plugins/ruflo-deepseek-harness/scripts/smoke.sh+++ b/plugins/ruflo-deepseek-harness/scripts/smoke.sh@@ -9,8 +9,8 @@ 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 version 0.2.1"-grep -q '"version": "0.2.1"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "version is not 0.2.1"+step "1. plugin.json declares version 0.2.2"+grep -q '"version": "0.2.2"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "version is not 0.2.2"step "2. scripts, both skills, the command and the agent are present"miss=""diff --git a/plugins/ruflo-docs/.claude-plugin/plugin.json b/plugins/ruflo-docs/.claude-plugin/plugin.jsonindex 226838404a..a055f63e74 100644--- a/plugins/ruflo-docs/.claude-plugin/plugin.json+++ b/plugins/ruflo-docs/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-docs","description": "Documentation generation, API docs (JSDoc/TSDoc/OpenAPI), and drift detection β drives the `document` background worker via hooks_worker-dispatch; uses Haiku model for cost-efficient docs work",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-docs/hooks/options.ts b/plugins/ruflo-docs/hooks/options.tsindex e18352b921..54c25648d4 100644--- a/plugins/ruflo-docs/hooks/options.ts+++ b/plugins/ruflo-docs/hooks/options.ts@@ -3,7 +3,9 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag((options ?? {}).guard, true) })diff --git a/plugins/ruflo-docs/scripts/smoke.sh b/plugins/ruflo-docs/scripts/smoke.shindex 8a2bfad0cc..47bd0d18a3 100755--- a/plugins/ruflo-docs/scripts/smoke.sh+++ b/plugins/ruflo-docs/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in jsdoc openapi mcp; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-federation/.claude-plugin/plugin.json b/plugins/ruflo-federation/.claude-plugin/plugin.jsonindex 6cb4d8284f..442f147f1a 100644--- a/plugins/ruflo-federation/.claude-plugin/plugin.json+++ b/plugins/ruflo-federation/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-federation","description": "Cross-installation agent federation with zero-trust security, peer discovery, consensus-based task routing, and per-call budget circuit breaker (ADR-097)",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-federation/hooks/options.ts b/plugins/ruflo-federation/hooks/options.tsindex e18352b921..54c25648d4 100644--- a/plugins/ruflo-federation/hooks/options.ts+++ b/plugins/ruflo-federation/hooks/options.ts@@ -3,7 +3,9 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag((options ?? {}).guard, true) })diff --git a/plugins/ruflo-federation/scripts/smoke.sh b/plugins/ruflo-federation/scripts/smoke.shindex 73f8d16afa..933995fa36 100755--- a/plugins/ruflo-federation/scripts/smoke.sh+++ b/plugins/ruflo-federation/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp pii-pipeline audit-log; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-goals/.claude-plugin/plugin.json b/plugins/ruflo-goals/.claude-plugin/plugin.jsonindex a7bf098e26..5d434723ed 100644--- a/plugins/ruflo-goals/.claude-plugin/plugin.json+++ b/plugins/ruflo-goals/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-goals","description": "Long-horizon goal planning, deep research orchestration, and adaptive replanning using GOAP algorithms",- "version": "0.4.0",+ "version": "0.4.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-goals/README.md b/plugins/ruflo-goals/README.mdindex 42d8782e4e..69df4d65d4 100644--- a/plugins/ruflo-goals/README.md+++ b/plugins/ruflo-goals/README.md@@ -96,7 +96,7 @@ bash plugins/ruflo-goals/scripts/smoke.sh# Expected: "12 passed, 0 failed"```-## As a mod (0.4.0)+## As a mod (0.4.1)A function-hook mod ships beside the skills (ADR-445 pattern). Needs a Claude Code with mods (2.1.287+); older builds ignore it. No network, no process spawning: it only tightens calls to this plugin's own tools and reads through tools already connected.diff --git a/plugins/ruflo-goals/hooks/options.ts b/plugins/ruflo-goals/hooks/options.tsindex 4940e4dfe8..5135b509d7 100644--- a/plugins/ruflo-goals/hooks/options.ts+++ b/plugins/ruflo-goals/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (both on). */export type ModOptions = { readonly guard: boolean; readonly personal: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-goals/scripts/smoke.sh b/plugins/ruflo-goals/scripts/smoke.shindex 75291f8df1..a912198db0 100755--- a/plugins/ruflo-goals/scripts/smoke.sh+++ b/plugins/ruflo-goals/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.4.0 with new keywords"+step "1. plugin.json declares 0.4.1 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.4.0" ]]; then bad "expected 0.4.0, got '$v'"; else+if [[ "$v" != "0.4.1" ]]; then bad "expected 0.4.1, got '$v'"; elsemiss=""for k in mcp evidence-grading legacy-namespaces; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.jsonindex 118aa95287..8b8cf7683a 100644--- a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json+++ b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-graph-intelligence","description": "RuFlo Graph Intelligence Engine β real-time relationship intelligence with complexity-aware execution. Single-entry personalized PageRank, streaming delta updates, witness-signed reasoning artifacts, federation-distributable PR vectors. Built on [email protected].",- "version": "0.2.0-alpha.1",+ "version": "0.2.0-alpha.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-graph-intelligence/README.md b/plugins/ruflo-graph-intelligence/README.mdindex 34a89f33ba..7a5a30686f 100644--- a/plugins/ruflo-graph-intelligence/README.md+++ b/plugins/ruflo-graph-intelligence/README.md@@ -2,7 +2,7 @@Graph Intelligence Engine for RuFlo: single-entry personalized PageRank, streaming delta updates and witness-signed reasoning artifacts (ADR-123), built on sublinear-time-solver. Library: `npm test`, `npm run build`.-## As a mod (0.2.0-alpha.1)+## As a mod (0.2.0-alpha.2)A function-hook mod ships beside the skills (ADR-445 pattern). Needs a Claude Code with mods (2.1.287+); older builds ignore it. No network, no process spawning: it only tightens calls to this plugin's own tools and reads through tools already connected.diff --git a/plugins/ruflo-graph-intelligence/hooks/options.ts b/plugins/ruflo-graph-intelligence/hooks/options.tsindex 5b0219cf8b..f8cd6c06b3 100644--- a/plugins/ruflo-graph-intelligence/hooks/options.ts+++ b/plugins/ruflo-graph-intelligence/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {return { guard: flag((options ?? {}).guard, true) }diff --git a/plugins/ruflo-intelligence/.claude-plugin/plugin.json b/plugins/ruflo-intelligence/.claude-plugin/plugin.jsonindex f40649815e..763c5e5111 100644--- a/plugins/ruflo-intelligence/.claude-plugin/plugin.json+++ b/plugins/ruflo-intelligence/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-intelligence","description": "User-facing surface for Ruflo's self-learning system: 6 neural_* + 10 hooks_intelligence_* + 6 routing/meta hooks + 3 hooks_model-* + 4 SONA/MicroLoRA tools (29 total). Implements the 4-step pipeline (RETRIEVE β JUDGE β DISTILL β CONSOLIDATE) and IPFS-based cross-project pattern transfer.",- "version": "0.4.0",+ "version": "0.4.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-intelligence/README.md b/plugins/ruflo-intelligence/README.mdindex ca50d27e3b..0ba5ddc3d8 100644--- a/plugins/ruflo-intelligence/README.md+++ b/plugins/ruflo-intelligence/README.md@@ -127,7 +127,7 @@ Configure once via `mcp tool call hooks_intelligence -- '{"mode": "moe", "enable- `intelligence-route` β Route tasks using learned patterns; produces a `hooks_explain` rationale- `intelligence-transfer` β Publish/fetch patterns via IPFS (`hooks_transfer`)-## As a mod (0.4.0)+## As a mod (0.4.1)A function-hook mod ships beside the skills (ADR-445 pattern). Needs a Claude Code with mods (2.1.287+); older builds ignore it. No network, no process spawning: it only tightens calls to this plugin's own tools and reads through tools already connected.diff --git a/plugins/ruflo-intelligence/hooks/options.ts b/plugins/ruflo-intelligence/hooks/options.tsindex d35ece361e..7817af5207 100644--- a/plugins/ruflo-intelligence/hooks/options.ts+++ b/plugins/ruflo-intelligence/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (both on). */export type ModOptions = { readonly guard: boolean; readonly confirmReset: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-intelligence/scripts/smoke.sh b/plugins/ruflo-intelligence/scripts/smoke.shindex 66ca5626ee..92a6eeacd0 100755--- a/plugins/ruflo-intelligence/scripts/smoke.sh+++ b/plugins/ruflo-intelligence/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-intelligence v0.4.0.+# Structural smoke test for ruflo-intelligence v0.4.1.# Per ADR-0001 Β§6 Verification: 13 contract checks + 3 doc invariants.# Offline-safe; no live MCP calls.set -u@@ -27,10 +27,10 @@ grep -qE "IPFS.+pattern|pattern.+IPFS|Pinata" "$ROOT/README.md" \&& ok || bad "README missing IPFS / Pinata transfer docs"# 1. plugin.json bump + new keywords-step "1. plugin.json declares 0.4.0 with new keywords"+step "1. plugin.json declares 0.4.1 with new keywords"v=$(grep -E '"version"[[:space:]]*:' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.4.0" ]]; then- bad "expected 0.4.0, got '$v'"+if [[ "$v" != "0.4.1" ]]; then+ bad "expected 0.4.1, got '$v'"elsemiss=""for k in microlora ewc attention moe pattern-transfer model-routing; dodiff --git a/plugins/ruflo-iot-cognitum/.claude-plugin/plugin.json b/plugins/ruflo-iot-cognitum/.claude-plugin/plugin.jsonindex 16c5f5bfe3..e080441ea0 100644--- a/plugins/ruflo-iot-cognitum/.claude-plugin/plugin.json+++ b/plugins/ruflo-iot-cognitum/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-iot-cognitum","description": "IoT device lifecycle, telemetry anomaly detection, fleet management, and witness chain verification for Cognitum Seed hardware",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-iot-cognitum/README.md b/plugins/ruflo-iot-cognitum/README.mdindex 4743048d09..192f077624 100644--- a/plugins/ruflo-iot-cognitum/README.md+++ b/plugins/ruflo-iot-cognitum/README.md@@ -154,7 +154,7 @@ This plugin owns five AgentDB namespaces, all compliant with the [ruflo-agentdbReserved namespaces (`pattern`, `claude-memories`, `default`) MUST NOT be shadowed.-## As a mod (0.3.0)+## As a mod (0.3.1)A function-hook mod ships beside the skills (ADR-445 pattern). Needs a Claude Code with mods (2.1.287+); older builds ignore it. No network, no process spawning: it only tightens calls to this plugin's own tools and reads through tools already connected.diff --git a/plugins/ruflo-iot-cognitum/hooks/options.ts b/plugins/ruflo-iot-cognitum/hooks/options.tsindex 9e26946f15..21592a6b5e 100644--- a/plugins/ruflo-iot-cognitum/hooks/options.ts+++ b/plugins/ruflo-iot-cognitum/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (both on). */export type ModOptions = { readonly guard: boolean; readonly confirmDestructive: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-iot-cognitum/scripts/smoke.sh b/plugins/ruflo-iot-cognitum/scripts/smoke.shindex ee84657b2d..6f3b42e21c 100755--- a/plugins/ruflo-iot-cognitum/scripts/smoke.sh+++ b/plugins/ruflo-iot-cognitum/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp cognitum-seed 5-tier-trust; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-jujutsu/.claude-plugin/plugin.json b/plugins/ruflo-jujutsu/.claude-plugin/plugin.jsonindex e4fc72b57c..d03e9ff2e1 100644--- a/plugins/ruflo-jujutsu/.claude-plugin/plugin.json+++ b/plugins/ruflo-jujutsu/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-jujutsu","description": "Advanced git workflows with diff analysis, risk scoring, change classification (feature/bugfix/refactor/...), and reviewer recommendations β wraps 6 analyze_* MCP tools (diff, diff-risk, diff-classify, diff-reviewers, file-risk, diff-stats). As a mod (ADR-445): a PR-text and merge/close guard, /jujutsu-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-jujutsu/hooks/options.ts b/plugins/ruflo-jujutsu/hooks/options.tsindex b640883ad7..25017800be 100644--- a/plugins/ruflo-jujutsu/hooks/options.ts+++ b/plugins/ruflo-jujutsu/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on, PR merge and close confirmed). */export type ModOptions = { readonly guard: boolean; readonly confirmPrActions: boolean; readonly extra: Readonly<Record<string, unknown>> }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-jujutsu/scripts/smoke.sh b/plugins/ruflo-jujutsu/scripts/smoke.shindex 5018006722..036f9ddac4 100755--- a/plugins/ruflo-jujutsu/scripts/smoke.sh+++ b/plugins/ruflo-jujutsu/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp change-classification reviewer-recommendation; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-knowledge-graph/.claude-plugin/plugin.json b/plugins/ruflo-knowledge-graph/.claude-plugin/plugin.jsonindex a06b68e998..ab70d622de 100644--- a/plugins/ruflo-knowledge-graph/.claude-plugin/plugin.json+++ b/plugins/ruflo-knowledge-graph/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-knowledge-graph","description": "Knowledge graph construction β entity extraction, relation mapping, and pathfinder graph traversal. As a mod (ADR-445): keeps secrets out of the graph, confirms graph deletes, /kg-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-knowledge-graph/hooks/options.ts b/plugins/ruflo-knowledge-graph/hooks/options.tsindex 7f01e7bf74..a34037ba06 100644--- a/plugins/ruflo-knowledge-graph/hooks/options.ts+++ b/plugins/ruflo-knowledge-graph/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on, graph deletes confirmed). */export type ModOptions = { readonly guard: boolean; readonly confirmDeletes: boolean; readonly extra: Readonly<Record<string, unknown>> }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-knowledge-graph/scripts/smoke.sh b/plugins/ruflo-knowledge-graph/scripts/smoke.shindex 6102ffcc54..c491a50a23 100755--- a/plugins/ruflo-knowledge-graph/scripts/smoke.sh+++ b/plugins/ruflo-knowledge-graph/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp pathfinder-traversal entity-extraction; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-loop-workers/.claude-plugin/plugin.json b/plugins/ruflo-loop-workers/.claude-plugin/plugin.jsonindex 41a1471ce6..8afdaa0f72 100644--- a/plugins/ruflo-loop-workers/.claude-plugin/plugin.json+++ b/plugins/ruflo-loop-workers/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-loop-workers","description": "Cache-aware /loop workers and CronCreate background automation β wraps 5 hooks_worker-* MCP tools (list/dispatch/status/detect/cancel) and exposes 12 background worker triggers (ultralearn, optimize, consolidate, predict, audit, map, preload, deepdive, document, refactor, benchmark, testgaps). As a mod (ADR-445): a per-session dispatch cap, no secrets in worker context, /loop-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-loop-workers/hooks/options.ts b/plugins/ruflo-loop-workers/hooks/options.tsindex 37436bfbb3..0447c0fda0 100644--- a/plugins/ruflo-loop-workers/hooks/options.ts+++ b/plugins/ruflo-loop-workers/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on, 100 dispatches per session). */export type ModOptions = { readonly guard: boolean; readonly maxDispatch: number; readonly extra: Readonly<Record<string, unknown>> }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGconst clamp = (value: unknown, min: number, max: number, fallback: number) => {const n = typeof value === 'number' ? value : typeof value === 'string' && value.trim() !== '' ? Number(value) : Number.NaNdiff --git a/plugins/ruflo-loop-workers/scripts/smoke.sh b/plugins/ruflo-loop-workers/scripts/smoke.shindex e48c3f0beb..889e6b1604 100755--- a/plugins/ruflo-loop-workers/scripts/smoke.sh+++ b/plugins/ruflo-loop-workers/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp background-workers cache-aware schedule-wakeup; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-market-data/.claude-plugin/plugin.json b/plugins/ruflo-market-data/.claude-plugin/plugin.jsonindex 7cdd06daad..f2f679071e 100644--- a/plugins/ruflo-market-data/.claude-plugin/plugin.json+++ b/plugins/ruflo-market-data/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-market-data","description": "Market data ingestion β feed normalization, OHLCV vectorization, and HNSW-indexed pattern matching. As a mod (ADR-445): keeps credentials and credentialed feed URLs out of market memory, /market-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-market-data/hooks/options.ts b/plugins/ruflo-market-data/hooks/options.tsindex ab5b9c8181..d85824c3cd 100644--- a/plugins/ruflo-market-data/hooks/options.ts+++ b/plugins/ruflo-market-data/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean; readonly extra: Readonly<Record<string, unknown>> }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-market-data/scripts/smoke.sh b/plugins/ruflo-market-data/scripts/smoke.shindex a780f560a3..47b8dd4d07 100755--- a/plugins/ruflo-market-data/scripts/smoke.sh+++ b/plugins/ruflo-market-data/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp candlestick-patterns namespace-routing; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-metaharness/.claude-plugin/plugin.json b/plugins/ruflo-metaharness/.claude-plugin/plugin.jsonindex b3e0f95640..47d8893e98 100644--- a/plugins/ruflo-metaharness/.claude-plugin/plugin.json+++ b/plugins/ruflo-metaharness/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-metaharness","description": "MetaHarness integration for ruflo β surfaces score/genome/mint/mcp-scan/threat-model via skills; pairs with @metaharness/router (ADR-148/149) for cost-optimal model routing; honors ADR-150's architectural constraint that MetaHarness remains an optional augmentation, never a required runtime dependency. As a mod (ADR-445): confirms flywheel promotion, keeps secrets out of inputs, /metaharness-mod, and a status file the console shows",- "version": "0.2.1",+ "version": "0.2.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-metaharness/hooks/options.ts b/plugins/ruflo-metaharness/hooks/options.tsindex ab5b9c8181..d85824c3cd 100644--- a/plugins/ruflo-metaharness/hooks/options.ts+++ b/plugins/ruflo-metaharness/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean; readonly extra: Readonly<Record<string, unknown>> }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.shindex bacebdb908..9a45106948 100755--- a/plugins/ruflo-metaharness/scripts/smoke.sh+++ b/plugins/ruflo-metaharness/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural smoke test for ruflo-metaharness v0.2.1 (ADR-150 Phase 1).+# Structural smoke test for ruflo-metaharness v0.2.2 (ADR-150 Phase 1).set -uROOT="$(cd "$(dirname "$0")/.." && pwd)"PASS=0@@ -32,10 +32,10 @@ elsebad "extraction-regex-rot: EXPECTED_TOOLS=$EXPECTED_TOOLS EXPECTED_SUBS=$EXPECTED_SUBS"fi-step "1. plugin.json declares 0.2.1 with adr-150 keywords"+step "1. plugin.json declares 0.2.2 with adr-150 keywords"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.2.1" ]]; then- bad "expected 0.2.1, got '$v'"+if [[ "$v" != "0.2.2" ]]; then+ bad "expected 0.2.2, got '$v'"elsemiss=""for k in ruflo metaharness harness scorecard genome mcp-scan threat-model router adr-150 adr-148 adr-149 optional-dependency graceful-degradation subprocess phase-1-mvp; dodiff --git a/plugins/ruflo-migrations/.claude-plugin/plugin.json b/plugins/ruflo-migrations/.claude-plugin/plugin.jsonindex 97f3f89c33..668e265614 100644--- a/plugins/ruflo-migrations/.claude-plugin/plugin.json+++ b/plugins/ruflo-migrations/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-migrations","description": "Schema migration management β generate, validate, dry-run, and rollback database migrations. As a mod (ADR-445): a tighten-only guard on its tools, /migrations-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-migrations/hooks/options.ts b/plugins/ruflo-migrations/hooks/options.tsindex 4c64eae7f1..0e74f876cc 100644--- a/plugins/ruflo-migrations/hooks/options.ts+++ b/plugins/ruflo-migrations/hooks/options.ts@@ -5,8 +5,10 @@ export type ModOptions = {readonly guard: boolean}+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-migrations/scripts/smoke.sh b/plugins/ruflo-migrations/scripts/smoke.shindex 2a79c97076..4234bc7669 100755--- a/plugins/ruflo-migrations/scripts/smoke.sh+++ b/plugins/ruflo-migrations/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp dry-run up-down-pairs; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-music/.claude-plugin/plugin.json b/plugins/ruflo-music/.claude-plugin/plugin.jsonindex 7750ddb5ad..dc539b40f7 100644--- a/plugins/ruflo-music/.claude-plugin/plugin.json+++ b/plugins/ruflo-music/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-music","description": "AI music generation via Cognitum Music (cogmusic MCP) β compose lyrics/prompts, generate tracks, separate stems, extract MIDI, and master through your own music.cognitum.one account. As a mod (ADR-445): a tighten-only guard on its tools, /music-mod, and a status file the console shows",- "version": "0.2.0",+ "version": "0.2.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-music/hooks/options.ts b/plugins/ruflo-music/hooks/options.tsindex 4c64eae7f1..0e74f876cc 100644--- a/plugins/ruflo-music/hooks/options.ts+++ b/plugins/ruflo-music/hooks/options.ts@@ -5,8 +5,10 @@ export type ModOptions = {readonly guard: boolean}+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-music/scripts/smoke.sh b/plugins/ruflo-music/scripts/smoke.shindex 22f031a863..38150527d6 100755--- a/plugins/ruflo-music/scripts/smoke.sh+++ b/plugins/ruflo-music/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.2.0 with expected keywords"+step "1. plugin.json declares 0.2.1 with expected keywords"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.2.0" ]]; then bad "expected 0.2.0, got '$v'"; else+if [[ "$v" != "0.2.1" ]]; then bad "expected 0.2.1, got '$v'"; elsemiss=""for k in cogmusic cognitum mcp; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-neural-trader/.claude-plugin/plugin.json b/plugins/ruflo-neural-trader/.claude-plugin/plugin.jsonindex 104cd01f9f..576ca0973c 100644--- a/plugins/ruflo-neural-trader/.claude-plugin/plugin.json+++ b/plugins/ruflo-neural-trader/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-neural-trader","description": "Neural trading via npx neural-trader β self-learning strategies, Rust/NAPI backtesting, 112+ MCP tools, swarm coordination, and portfolio optimization. As a mod (ADR-445): a tighten-only guard on its tools, /trader-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-neural-trader/hooks/options.ts b/plugins/ruflo-neural-trader/hooks/options.tsindex a5322b6fe8..96f6f0a144 100644--- a/plugins/ruflo-neural-trader/hooks/options.ts+++ b/plugins/ruflo-neural-trader/hooks/options.ts@@ -6,8 +6,10 @@ export type ModOptions = {readonly liveGuard: boolean}+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-neural-trader/scripts/smoke.sh b/plugins/ruflo-neural-trader/scripts/smoke.shindex be631a5733..a47823d138 100755--- a/plugins/ruflo-neural-trader/scripts/smoke.sh+++ b/plugins/ruflo-neural-trader/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in neural-trader-runtime walk-forward monte-carlo; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-observability/.claude-plugin/plugin.json b/plugins/ruflo-observability/.claude-plugin/plugin.jsonindex 93e16f60b3..2303df6668 100644--- a/plugins/ruflo-observability/.claude-plugin/plugin.json+++ b/plugins/ruflo-observability/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-observability","description": "Structured logging, distributed tracing, and metrics β correlate agent swarm activity with application telemetry. As a mod (ADR-445): a tighten-only guard on its tools, /observe-mod, and a status file the console shows",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-observability/hooks/options.ts b/plugins/ruflo-observability/hooks/options.tsindex 4c64eae7f1..0e74f876cc 100644--- a/plugins/ruflo-observability/hooks/options.ts+++ b/plugins/ruflo-observability/hooks/options.ts@@ -5,8 +5,10 @@ export type ModOptions = {readonly guard: boolean}+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {const o = options ?? {}diff --git a/plugins/ruflo-observability/scripts/smoke.sh b/plugins/ruflo-observability/scripts/smoke.shindex 308302795a..9e69ba60cd 100755--- a/plugins/ruflo-observability/scripts/smoke.sh+++ b/plugins/ruflo-observability/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp distributed-tracing anomaly-detection; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-rag-memory/.claude-plugin/plugin.json b/plugins/ruflo-rag-memory/.claude-plugin/plugin.jsonindex e25f9dcbb5..fc072f409b 100644--- a/plugins/ruflo-rag-memory/.claude-plugin/plugin.json+++ b/plugins/ruflo-rag-memory/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-rag-memory","description": "RuVector memory with HNSW search, AgentDB, and semantic retrieval. As a mod (ADR-445): a write guard that keeps secrets out of memory, /rag-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-rag-memory/hooks/options.ts b/plugins/ruflo-rag-memory/hooks/options.tsindex e18352b921..54c25648d4 100644--- a/plugins/ruflo-rag-memory/hooks/options.ts+++ b/plugins/ruflo-rag-memory/hooks/options.ts@@ -3,7 +3,9 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag((options ?? {}).guard, true) })diff --git a/plugins/ruflo-rag-memory/scripts/smoke.sh b/plugins/ruflo-rag-memory/scripts/smoke.shindex 70f9f9a4d9..12e8913da7 100755--- a/plugins/ruflo-rag-memory/scripts/smoke.sh+++ b/plugins/ruflo-rag-memory/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp claude-memories bridged-memory; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-ruvector/.claude-plugin/plugin.json b/plugins/ruflo-ruvector/.claude-plugin/plugin.jsonindex 750e3234da..c0460e0fbf 100644--- a/plugins/ruflo-ruvector/.claude-plugin/plugin.json+++ b/plugins/ruflo-ruvector/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-ruvector","description": "Self-learning vector database via npx [email protected] β HNSW, adaptive LoRA embeddings, code-graph clustering, hooks routing, brain/SONA, 103 MCP tools. As a mod (ADR-445): a write guard that keeps secrets out of the vector store and shared brain, /ruvector-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ruvector/hooks/options.ts b/plugins/ruflo-ruvector/hooks/options.tsindex e18352b921..54c25648d4 100644--- a/plugins/ruflo-ruvector/hooks/options.ts+++ b/plugins/ruflo-ruvector/hooks/options.ts@@ -3,7 +3,9 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag((options ?? {}).guard, true) })diff --git a/plugins/ruflo-ruvllm/.claude-plugin/plugin.json b/plugins/ruflo-ruvllm/.claude-plugin/plugin.jsonindex 257c7824c8..eceed3c1db 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.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-ruvllm/hooks/options.ts b/plugins/ruflo-ruvllm/hooks/options.tsindex e18352b921..54c25648d4 100644--- a/plugins/ruflo-ruvllm/hooks/options.ts+++ b/plugins/ruflo-ruvllm/hooks/options.ts@@ -3,7 +3,9 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag((options ?? {}).guard, true) })diff --git a/plugins/ruflo-ruvllm/scripts/smoke.sh b/plugins/ruflo-ruvllm/scripts/smoke.shindex 8a15e6e272..10a871d15c 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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, 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-rvf/.claude-plugin/plugin.json b/plugins/ruflo-rvf/.claude-plugin/plugin.jsonindex 18ac33c54c..1ad6ef1da8 100644--- a/plugins/ruflo-rvf/.claude-plugin/plugin.json+++ b/plugins/ruflo-rvf/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-rvf","description": "RVF format for portable agent memory, session persistence, and cross-platform transfer. As a mod (ADR-445): a write guard that keeps secrets out of memory, sessions and transfers, /rvf-mod, and a status file the console shows",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-rvf/hooks/options.ts b/plugins/ruflo-rvf/hooks/options.tsindex e18352b921..54c25648d4 100644--- a/plugins/ruflo-rvf/hooks/options.ts+++ b/plugins/ruflo-rvf/hooks/options.ts@@ -3,7 +3,9 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport const readOptions = (options: PluginOptions | undefined): ModOptions => ({ guard: flag((options ?? {}).guard, true) })diff --git a/plugins/ruflo-rvf/scripts/smoke.sh b/plugins/ruflo-rvf/scripts/smoke.shindex 25412e7d38..6e722edc05 100755--- a/plugins/ruflo-rvf/scripts/smoke.sh+++ b/plugins/ruflo-rvf/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp cognitive-containers lineage-tracking; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-security-audit/.claude-plugin/plugin.json b/plugins/ruflo-security-audit/.claude-plugin/plugin.jsonindex ad6edecbeb..bdd7010fbe 100644--- a/plugins/ruflo-security-audit/.claude-plugin/plugin.json+++ b/plugins/ruflo-security-audit/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-security-audit","description": "Security review, dependency scanning, policy gates, and CVE monitoring",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-security-audit/hooks/options.ts b/plugins/ruflo-security-audit/hooks/options.tsindex a5d4812327..79736f24b5 100644--- a/plugins/ruflo-security-audit/hooks/options.ts+++ b/plugins/ruflo-security-audit/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {return { guard: flag((options ?? {}).guard, true) }diff --git a/plugins/ruflo-security-audit/scripts/smoke.sh b/plugins/ruflo-security-audit/scripts/smoke.shindex e22dd1d8ed..339c42abd8 100755--- a/plugins/ruflo-security-audit/scripts/smoke.sh+++ b/plugins/ruflo-security-audit/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp cve-monitoring policy-gates shell-injection; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-sparc/.claude-plugin/plugin.json b/plugins/ruflo-sparc/.claude-plugin/plugin.jsonindex 29b5c1633c..089e48d3b4 100644--- a/plugins/ruflo-sparc/.claude-plugin/plugin.json+++ b/plugins/ruflo-sparc/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-sparc","description": "SPARC methodology β Specification, Pseudocode, Architecture, Refinement, Completion phases with gate checks",- "version": "0.3.1",+ "version": "0.3.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-sparc/hooks/options.ts b/plugins/ruflo-sparc/hooks/options.tsindex a5d4812327..79736f24b5 100644--- a/plugins/ruflo-sparc/hooks/options.ts+++ b/plugins/ruflo-sparc/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {return { guard: flag((options ?? {}).guard, true) }diff --git a/plugins/ruflo-sparc/scripts/smoke.sh b/plugins/ruflo-sparc/scripts/smoke.shindex d1e2a59182..c8e7991fd1 100755--- a/plugins/ruflo-sparc/scripts/smoke.sh+++ b/plugins/ruflo-sparc/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.1 with new keywords"+step "1. plugin.json declares 0.3.2 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.1" ]]; then bad "expected 0.3.1, got '$v'"; else+if [[ "$v" != "0.3.2" ]]; then bad "expected 0.3.2, got '$v'"; elsemiss=""for k in mcp phase-gates quality-gates; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-testgen/.claude-plugin/plugin.json b/plugins/ruflo-testgen/.claude-plugin/plugin.jsonindex 3793573524..6bae2a9be5 100644--- a/plugins/ruflo-testgen/.claude-plugin/plugin.json+++ b/plugins/ruflo-testgen/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-testgen","description": "Test gap detection, coverage analysis, and automated test generation β drives the testgaps background worker via hooks_worker-dispatch; SPARC Refinement-phase canonical owner",- "version": "0.3.0",+ "version": "0.3.1","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-testgen/hooks/options.ts b/plugins/ruflo-testgen/hooks/options.tsindex a5d4812327..79736f24b5 100644--- a/plugins/ruflo-testgen/hooks/options.ts+++ b/plugins/ruflo-testgen/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {return { guard: flag((options ?? {}).guard, true) }diff --git a/plugins/ruflo-testgen/scripts/smoke.sh b/plugins/ruflo-testgen/scripts/smoke.shindex 470feb06ae..0f5054128f 100755--- a/plugins/ruflo-testgen/scripts/smoke.sh+++ b/plugins/ruflo-testgen/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.0 with new keywords"+step "1. plugin.json declares 0.3.1 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.0" ]]; then bad "expected 0.3.0, got '$v'"; else+if [[ "$v" != "0.3.1" ]]; then bad "expected 0.3.1, got '$v'"; elsemiss=""for k in mcp tdd-london-school coverage-routing; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-workflows/.claude-plugin/plugin.json b/plugins/ruflo-workflows/.claude-plugin/plugin.jsonindex 3541e40183..efd54a57ec 100644--- a/plugins/ruflo-workflows/.claude-plugin/plugin.json+++ b/plugins/ruflo-workflows/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-workflows","description": "Workflow automation across two surfaces: the 10 workflow_* MCP tools (create/run/execute/status/list/pause/resume/cancel/delete/template) with full state-machine lifecycle (created β running β paused β completed/cancelled), and native Claude Code Workflow JS orchestration (.claude/workflows/*.js β agent/parallel/pipeline/phase fan-out). Includes GAIA benchmark component for Princeton HAL leaderboard submissions.",- "version": "0.6.1",+ "version": "0.6.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-workflows/hooks/options.ts b/plugins/ruflo-workflows/hooks/options.tsindex a5d4812327..79736f24b5 100644--- a/plugins/ruflo-workflows/hooks/options.ts+++ b/plugins/ruflo-workflows/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {return { guard: flag((options ?? {}).guard, true) }diff --git a/plugins/ruflo-workflows/scripts/smoke.sh b/plugins/ruflo-workflows/scripts/smoke.shindex c077610f97..20445a4498 100755--- a/plugins/ruflo-workflows/scripts/smoke.sh+++ b/plugins/ruflo-workflows/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.6.1 with lifecycle keywords"+step "1. plugin.json declares 0.6.2 with lifecycle keywords"v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)-if [[ "$v" != "0.6.1" ]]; then bad "expected 0.6.1, got '$v'"; else+if [[ "$v" != "0.6.2" ]]; then bad "expected 0.6.2, got '$v'"; elsemiss=""for k in mcp workflow-templates pause-resume lifecycle; dogrep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"diff --git a/plugins/ruflo-x-gateway/.claude-plugin/plugin.json b/plugins/ruflo-x-gateway/.claude-plugin/plugin.jsonindex 16b4a6d61f..f34b18d74c 100644--- a/plugins/ruflo-x-gateway/.claude-plugin/plugin.json+++ b/plugins/ruflo-x-gateway/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-x-gateway","description": "Coordinate AI-agent swarms through signed federation messages, channels, and work claims. The remote Claude connector exposes a directory-safe Streamable HTTP MCP surface with OAuth-protected publishing and five ruv:// reference resources.",- "version": "0.9.1",+ "version": "0.9.2","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-x-gateway/hooks/options.ts b/plugins/ruflo-x-gateway/hooks/options.tsindex a5d4812327..79736f24b5 100644--- a/plugins/ruflo-x-gateway/hooks/options.ts+++ b/plugins/ruflo-x-gateway/hooks/options.ts@@ -3,8 +3,10 @@ import type { PluginOptions } from 'claude-code'/** The plugin's `userConfig`, validated: a bad value is the default (guard on). */export type ModOptions = { readonly guard: boolean }-const flag = (value: unknown, fallback: boolean) =>+// BEGIN SHARED FLAG (generated by scripts/sync-mod-screen.mjs; edit plugins/ruflo-agentdb/hooks/options.ts)+export const flag = (value: unknown, fallback: boolean) =>value === true || value === 'true' || value === 'on' ? true : value === false || value === 'false' || value === 'off' ? false : fallback+// END SHARED FLAGexport function readOptions(options: PluginOptions | undefined): ModOptions {return { guard: flag((options ?? {}).guard, true) }diff --git a/scripts/__tests__/sync-mod-screen.test.mjs b/scripts/__tests__/sync-mod-screen.test.mjsindex e557a666db..fb65c8ecf8 100644--- a/scripts/__tests__/sync-mod-screen.test.mjs+++ b/scripts/__tests__/sync-mod-screen.test.mjs@@ -10,21 +10,42 @@ const repo = join(__dirname, '..', '..');let root;const run = (...args) => spawnSync('node', [script, '--root', root, ...args], { encoding: 'utf8' });const copy = name => join(root, 'plugins', name, 'hooks', 'screen.ts');+const opts = name => join(root, 'plugins', name, 'hooks', 'options.ts');beforeEach(() => {root = mkdtempSync(join(tmpdir(), 'sync-screen-'));for (const name of ['ruflo-agentdb', 'ruflo-daa', 'ruflo-music']) {mkdirSync(join(root, 'plugins', name, 'hooks'), { recursive: true });cpSync(join(repo, 'plugins', name, 'hooks', 'screen.ts'), copy(name));+ cpSync(join(repo, 'plugins', name, 'hooks', 'options.ts'), opts(name));}});afterEach(() => rmSync(root, { recursive: true, force: true }));describe('sync-mod-screen', () => {+ it('fails --check when the flag helper of a copy drifted, and write mode repairs it', () => {+ writeFileSync(opts('ruflo-daa'), readFileSync(opts('ruflo-daa'), 'utf8').replace("=== 'on'", "=== 'yes'"));+ const bad = run('--check');+ expect(bad.status).toBe(1);+ expect(bad.stderr).toContain('options.ts');+ expect(bad.stderr).toContain('ruflo-daa');+ expect(run().status).toBe(0);+ expect(readFileSync(opts('ruflo-daa'), 'utf8')).toContain("=== 'on'");+ expect(run('--check').status).toBe(0);+ });++ it('fails a copy whose options.ts lost the flag markers', () => {+ writeFileSync(opts('ruflo-music'), 'export {}\n');+ const r = run('--check');+ expect(r.status).toBe(1);+ expect(r.stderr).toContain('BEGIN SHARED FLAG');+ });+it('passes on a tree whose copies match the origin', () => {const r = run('--check');expect(r.status).toBe(0);- expect(r.stdout).toContain('2 copies match');+ expect(r.stdout).toContain('screen.ts: 2 copies match');+ expect(r.stdout).toContain('options.ts: 2 copies match');});it('fails --check when the shared region of a copy drifted, and write mode repairs it', () => {diff --git a/scripts/sync-mod-screen.mjs b/scripts/sync-mod-screen.mjsindex c615bfd292..6b927d260d 100755--- a/scripts/sync-mod-screen.mjs+++ b/scripts/sync-mod-screen.mjs@@ -1,6 +1,6 @@#!/usr/bin/env node-// One source for the mod secret screen (ADR-445). plugins/ruflo-agentdb/hooks/screen.ts is the origin; every other plugins/*/hooks/screen.ts-// carries a copy of the region between the BEGIN and END markers. Anything outside the markers (extra patterns, helpers) stays per plugin.+// One source for the mod secret screen (ADR-445) and the `flag` option parser. plugins/ruflo-agentdb/hooks/{screen,options}.ts are the origins; every other+// plugins/*/hooks copy carries the region between its BEGIN and END markers. Anything outside the markers (extra patterns, helpers) stays per plugin.// node scripts/sync-mod-screen.mjs rewrite the shared region of every copy// node scripts/sync-mod-screen.mjs --check exit 1 when a copy drifted, lacks the markers, or when no copies are found// --root <dir> use <dir>/plugins instead of this repo (tests)@@ -12,17 +12,21 @@ const argRoot = process.argv.indexOf('--root')const ROOT = argRoot > 0 ? process.argv[argRoot + 1] : join(dirname(fileURLToPath(import.meta.url)), '..')const PLUGINS = join(ROOT, 'plugins')const ORIGIN = 'ruflo-agentdb'-const BEGIN = '// BEGIN SHARED SCREEN'-const END = '// END SHARED SCREEN'+// Each kit is one file name plus its marker pair; the screen (ADR-445) and the `flag` option parser are vendored the same way.+const KITS = [+ { file: 'screen.ts', begin: '// BEGIN SHARED SCREEN', end: '// END SHARED SCREEN' },+ // ruflo-mods parses a richer option set of its own and has no flag helper to share.+ { file: 'options.ts', begin: '// BEGIN SHARED FLAG', end: '// END SHARED FLAG', skip: ['ruflo-mods'] },+]// Raw zero-width, bidi and line-separator characters must never sit in a regex literal (they are built from escapes).const RAW_INVISIBLE = new RegExp('[\\u00ad\\u034f\\u061c\\u180b-\\u180e\\u2028\\u2029\\u200b-\\u200f\\u202a-\\u202e\\u2060-\\u206f\\ufe00-\\ufe0f\\ufeff]')/** Split into the text before the begin line, the region (begin line to end line inclusive), and the text after. */-export function split(src) {+export function split(src, begin = KITS[0].begin, end = KITS[0].end) {const lines = src.split('\n')- const b = lines.findIndex(l => l.startsWith(BEGIN))- const e = lines.findIndex((l, i) => i > b && l.trim() === END)- if (b < 0 || e < 0 || lines.slice(b + 1).some(l => l.startsWith(BEGIN))) return undefined+ const b = lines.findIndex(l => l.startsWith(begin))+ const e = lines.findIndex((l, i) => i > b && l.trim() === end)+ if (b < 0 || e < 0 || lines.slice(b + 1).some(l => l.startsWith(begin))) return undefinedreturn { head: lines.slice(0, b).join('\n'), region: lines.slice(b, e + 1).join('\n'), tail: lines.slice(e + 1).join('\n') }}@@ -32,33 +36,34 @@ const fail = msg => {process.exit(1)}-const originPath = join(PLUGINS, ORIGIN, 'hooks', 'screen.ts')-const origin = existsSync(originPath) ? split(readFileSync(originPath, 'utf8')) : undefined-if (!origin) fail(`${originPath} is missing or has no single ${BEGIN} ... ${END} region`)-if (RAW_INVISIBLE.test(origin.region)) fail('the shared region holds a raw zero-width, bidi or line-separator character; build it from escapes')+for (const kit of KITS) {+ const originPath = join(PLUGINS, ORIGIN, 'hooks', kit.file)+ const origin = existsSync(originPath) ? split(readFileSync(originPath, 'utf8'), kit.begin, kit.end) : undefined+ if (!origin) fail(`${originPath} is missing or has no single ${kit.begin} ... ${kit.end} region`)+ if (RAW_INVISIBLE.test(origin.region)) fail('the shared region holds a raw zero-width, bidi or line-separator character; build it from escapes')-const copies = readdirSync(PLUGINS)- .map(name => ({ name, path: join(PLUGINS, name, 'hooks', 'screen.ts') }))- .filter(c => c.name !== ORIGIN && existsSync(c.path))-if (copies.length === 0) fail('found 0 copies of hooks/screen.ts besides the origin; the glob is wrong or the tree moved, so a clean result would mean nothing')+ const copies = readdirSync(PLUGINS)+ .map(name => ({ name, path: join(PLUGINS, name, 'hooks', kit.file) }))+ .filter(c => c.name !== ORIGIN && !kit.skip?.includes(c.name) && existsSync(c.path))+ if (copies.length === 0) fail(`found 0 copies of hooks/${kit.file} besides the origin; the glob is wrong or the tree moved, so a clean result would mean nothing`)-const bad = []-let changed = 0-for (const c of copies) {- const src = readFileSync(c.path, 'utf8')- const parts = split(src)- if (!parts) {- bad.push(`${c.name}: no single ${BEGIN} ... ${END} region`)- continue+ const bad = []+ let changed = 0+ for (const c of copies) {+ const src = readFileSync(c.path, 'utf8')+ const parts = split(src, kit.begin, kit.end)+ if (!parts) {+ bad.push(`${c.name}: no single ${kit.begin} ... ${kit.end} region`)+ continue+ }+ if (parts.region === origin.region) continue+ if (mode === 'check') {+ bad.push(`${c.name}: shared region of ${kit.file} drifted from ${ORIGIN} (run node scripts/sync-mod-screen.mjs)`)+ continue+ }+ writeFileSync(c.path, [parts.head, origin.region, parts.tail].join('\n'))+ changed++}- if (parts.region === origin.region) continue- if (mode === 'check') {- bad.push(`${c.name}: shared region drifted from ${ORIGIN} (run node scripts/sync-mod-screen.mjs)`)- continue- }- writeFileSync(c.path, [parts.head, origin.region, parts.tail].join('\n'))- changed+++ if (bad.length) fail(`${kit.file}: ${bad.length} of ${copies.length} copies\n ${bad.join('\n ')}`)+ console.log(mode === 'check' ? `sync-mod-screen: ${kit.file}: ${copies.length} copies match ${ORIGIN}` : `sync-mod-screen: ${kit.file}: ${copies.length} copies checked, ${changed} rewritten`)}--if (bad.length) fail(`${bad.length} of ${copies.length} copies\n ${bad.join('\n ')}`)-console.log(mode === 'check' ? `sync-mod-screen: ${copies.length} copies match ${ORIGIN}` : `sync-mod-screen: ${copies.length} copies checked, ${changed} rewritten`)