mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Merge remote-tracking branch 'origin/main' into loop/console-mods-reader
This commit is contained in:
commit
1e403afb7d
9 files changed
+12
-28
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ruflo-mods",
|
||||
"description": "ruflo as a Claude Code mod (function hooks, ADR-404): in-process prompt routing, edit learning signals, tighten-only tool checks from ruflo policy, the cost-tracker budget ladder, a mod trust gate for newly installed mods, and the $.ruflo noun other mods compose their status with. Opt-in and removable: the classic hook-handler hooks stay the default and take every event back whenever the mod is not loaded.",
|
||||
"version": "0.3.4",
|
||||
"version": "0.3.5",
|
||||
"author": {
|
||||
"name": "ruvnet",
|
||||
"url": "https://github.com/ruvnet"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Pure text screening for the AgentDB mod (ADR-445). Two jobs: find secrets (so none is stored) and find prompt-injection phrasing (so
|
||||
* retrieved memory cannot instruct the model). Findings are NAMES only: the matched text is never returned, logged or counted by value.
|
||||
* Pure text screening for the guidance and delivery features. Two jobs: find secrets (so none is stored or sent) and find prompt-injection phrasing (so
|
||||
* screened text cannot instruct the model). Findings are NAMES only: the matched text is never returned, logged or counted by value.
|
||||
*/
|
||||
|
||||
const SECRETS: readonly (readonly [string, RegExp])[] = [
|
||||
@@ -39,12 +39,3 @@ export function scan(text: string): Findings {
|
||||
const bounded = bare(text)
|
||||
return { secrets: names(SECRETS, bounded), injection: names(INJECTION, bounded) }
|
||||
}
|
||||
|
||||
export const hasSecret = (text: string) => names(SECRETS, bare(text)).length > 0
|
||||
|
||||
|
||||
/** Makes stored text safe to show: no control or bidi characters, whitespace collapsed, at most `max` characters. */
|
||||
export function tidy(text: string, max: number): string {
|
||||
const flat = text.replace(INVISIBLE, '').replace(/\s+/g, ' ').trim()
|
||||
return flat.length > max ? `${flat.slice(0, Math.max(0, max - 1))}…` : flat
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Structural + security smoke for ruflo-mods v0.3.4 (ADR-404, ADR-447).
|
||||
# Structural + security smoke for ruflo-mods v0.3.5 (ADR-404, ADR-447).
|
||||
# Static only: CI has no Claude Code, so the hooks module's behaviour is held
|
||||
# by v3/@claude-flow/cli/__tests__/mods/*.test.ts and, where function hooks are
|
||||
# on, by `claude plugin test plugins/ruflo-mods`.
|
||||
@@ -12,9 +12,9 @@ ok() { printf "PASS\n"; PASS=$((PASS+1)); }
|
||||
bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }
|
||||
HOOKS="$ROOT/hooks"
|
||||
|
||||
step "1. plugin.json declares ruflo-mods 0.3.4"
|
||||
step "1. plugin.json declares ruflo-mods 0.3.5"
|
||||
grep -q '"name": "ruflo-mods"' "$ROOT/.claude-plugin/plugin.json" \
|
||||
&& grep -q '"version": "0.3.4"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
|
||||
&& grep -q '"version": "0.3.5"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
|
||||
|
||||
step "2. hooks.json names exactly one module and no classic hook commands"
|
||||
grep -q '"modules": \["./register.ts"\]' "$HOOKS/hooks.json" && ! grep -q '"command"' "$HOOKS/hooks.json" \
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ruflo-ruos",
|
||||
"description": "Run ruflo swarm agents on your own ruOS cloud desktops via the tenant-authenticated fleet MCP or per-tenant SSH; optional and removable (ADR-405)",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"author": {
|
||||
"name": "ruvnet",
|
||||
"url": "https://github.com/ruvnet"
|
||||
|
||||
@@ -228,12 +228,6 @@ export function buildProbe(n) {
|
||||
return seal(`if command -v claude >/dev/null ; then ${say(n, 'RUNNER_OK')} ; else ${say(n, 'RUNNER_MISSING')} ; fi`);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} stdout
|
||||
* @param {string} n
|
||||
*/
|
||||
export const parseProbe = (stdout, n) => marker(n, 'RUNNER_OK').test(stdout);
|
||||
|
||||
/**
|
||||
* @typedef {object} PollResult
|
||||
* @property {number|null} exitCode null while running
|
||||
|
||||
@@ -9,9 +9,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 is valid and declares 0.1.0"
|
||||
step "1. plugin.json is valid and declares 0.1.1"
|
||||
v=$(node -e 'const p=require(process.argv[1]);if(p.name!=="ruflo-ruos")process.exit(1);console.log(p.version)' "$ROOT/.claude-plugin/plugin.json" 2>/dev/null)
|
||||
[[ "$v" == "0.1.0" ]] && ok || bad "got '$v'"
|
||||
[[ "$v" == "0.1.1" ]] && ok || bad "got '$v'"
|
||||
|
||||
step "2. commands, skill and agent present with frontmatter"
|
||||
miss=""
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ruflo-swarm",
|
||||
"description": "Agent teams, swarm coordination, Monitor streams, and worktree isolation — wraps 4 swarm_* + 8 agent_* MCP tools (12 total) plus 6 topologies (hierarchical / mesh / hierarchical-mesh / ring / star / adaptive). With Claude Code function hooks on (early access), a live swarm pane: agent tiles lit by reads and writes, topology, task and claims board, cost, router pick and hive-mind votes, with buttons that act through the ruflo CLI",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"author": {
|
||||
"name": "ruvnet",
|
||||
"url": "https://github.com/ruvnet"
|
||||
|
||||
@@ -5,7 +5,6 @@ import type { Activity } from './model/members'
|
||||
import { routeFromStore, type RoutePick } from './reader/parse'
|
||||
import type { Snapshot } from './reader/snapshot'
|
||||
|
||||
export const PLUGIN_NAME = 'ruflo-swarm'
|
||||
export const PANE_ID = 'ruflo-swarm'
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.2 with new keywords"
|
||||
step "1. plugin.json declares 0.3.3 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.2" ]]; then bad "expected 0.3.1, got '$v'"; else
|
||||
if [[ "$v" != "0.3.3" ]]; then bad "expected 0.3.3, got '$v'"; else
|
||||
miss=""
|
||||
for k in mcp topologies worktree-isolation monitor-stream; do
|
||||
grep -q "\"$k\"" "$ROOT/.claude-plugin/plugin.json" || miss="$miss $k"
|
||||
|
||||
Reference in new issue
Block a user