Commit Graph
558 Commits
Author SHA1 Message Date
ruv 8e31945174 feat(ruflo-console): banner says npx ruflo; faster tour loop (0.8.2)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 19:37:23 -04:00
ruv 12f8e7fae1 feat(ruflo-console): 0.8.1 — tour GIF 1/3 Claude + 2/3 cockpit, grey, shows install and /ruflo; RUFLO_CONSOLE_PANEL
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 19:18:47 -04:00
ruv 589e05881f feat(ruflo-console): 1/3 Claude + 2/3 cockpit tour GIF; RUFLO_CONSOLE_COLUMNS; status row above tall views
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:50:31 -04:00
ruv 33eddc912b chore(ruflo-console): 0.8.0 — labs, starts, marketplace install for the mods
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:22:32 -04:00
ruv eebd30db3b Merge branch 'feat/console-integrate' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/bindings.ts
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/hooks/runner.ts
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/common.ts
#	plugins/ruflo-console/hooks/views/pane.ts
#	plugins/ruflo-console/tests/views.test.ts
2026-10-02 18:21:57 -04:00
ruv 5c8745f3c5 fix(ruflo-console): every x.ruv.io row is clickable; results and confirms show above the fold
Pressing a row name or its description now does the row's action (read, ask, or focus its field); the result panel moves to the top of the board and the confirm row above the body of every view, so a click far down a tall view answers where it can be seen.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:19:31 -04:00
ruv 089d2d6fba Merge branch 'feat/console-evolve' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/actions.ts
#	plugins/ruflo-console/hooks/bindings.ts
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/hooks/runner.ts
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/common.ts
#	plugins/ruflo-console/hooks/views/pane.ts
#	plugins/ruflo-console/tests/views.test.ts
2026-10-02 18:15:09 -04:00
ruv 3e2b2def51 Merge branch 'feat/console-vector' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/actions.ts
#	plugins/ruflo-console/hooks/bindings.ts
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/hooks/runner.ts
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/common.ts
#	plugins/ruflo-console/hooks/views/pane.ts
#	plugins/ruflo-console/tests/views.test.ts
2026-10-02 18:13:17 -04:00
ruv c211e32b64 fix(ruflo-console): /ruflo dump evolve (and claude -p) wait for the flywheel file read; evolve reads keep their own cache
dumpOf sets the view without setView, so the Self-Evolution board answered
"not read yet" headless; it now awaits the same read opening the view starts.
The evolve reads use their own ReadCache, so the overview's state-writes count
does not see them as changed files.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:12:07 -04:00
ruv 054af1aba0 Merge branch 'feat/console-automate' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/actions.ts
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/hooks/runner.ts
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/mh-lab.ts
#	plugins/ruflo-console/hooks/views/pane.ts
2026-10-02 18:09:30 -04:00
ruv e8f8f3bfc0 feat(ruflo-console): Self-Evolution view (🧬): the governed loop, ledger, lineage, policy gate and witness
A keyless view that reads ruflo's governed-evolution stack from disk on open
(flywheel-v1 state and receipts, generation bundles, served.json,
harness-active-policy.json, verification/<os>/manifest.md.json) and runs its
checks as buttons and palette ids (evolve-*): flywheel status/receipts/history,
policy status and ruflo verify --manifest run at once ($0, local); policy
evaluate of the promote action asks first and says it appends one decision
receipt. Promotion, evidence-reset and rollback are never entries: the view
shows the promote command and why (ADR-322). Autogenous and rGi are stated as
integrated (the shared ruflo.flywheel-receipt/v1 format) or only linked, with
▸ ask typing a read-only research prompt into the AI terminal.

Shared hunks: ActionSpec.lines (a lab run's own reader, used by the runner),
the confirm row's runs: line wraps instead of clipping long argv.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:09:18 -04:00
ruv 1251fc3ffc Merge branch 'feat/console-skillsplus' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/bindings.ts
#	plugins/ruflo-console/hooks/dispatch.ts
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/common.ts
#	plugins/ruflo-console/tests/views.test.ts
2026-10-02 18:07:52 -04:00
ruv 6a86afb714 Merge branch 'feat/console-hive-art' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/views/hive.ts
2026-10-02 18:06:27 -04:00
ruv 91635f9c6b Merge branch 'feat/console-secure' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/hooks/runner.ts
2026-10-02 18:05:31 -04:00
ruv a79fdd7cd5 fix(ruflo-console): the skills sort toggles back to the order skills.sh gave
Results stay in the CLI's order and are sorted where they are shown (the view and the headless
answer), so 'as found' after 'most installed' is the original order again.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:05:23 -04:00
ruv ef63356990 fix(ruflo-console): confirm rows asserted by argv; typed text takes any punctuation; a new workflow goes to the picked agent
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:05:04 -04:00
ruv 0aa5c83a92 feat(ruflo-console): Vector Lab view for the ruvector toolchain
A keyless view (🧲, reached by name, the tab, or /ruflo vector) that runs
the ruvector CLI as fixed argv: npx --offline -y ruvector@0.3.3, the
version the session's ruvector MCP server runs. None of these tools are in
ruflo's MCP, so each verb was checked against ruvector 0.3.3's --help and
bin/cli.js.

Sections: brain (pi.ruv.io: every call asks; vote/share/transfer/sync push
publish, delete cannot be undone), RVF containers (status/segments/query
run at once; create/ingest/derive/compact ask), SQL / Graph (rvlite is
MCP-only: the query is handed to the AI terminal), decompile (a ./file
runs at once, an npm package asks), workers (npx agentic-flow@alpha: all
ask, dispatch may spend), edge (genesis node: asks; join only prints the
dashboard address), hooks intel (local reads, remember asks), identity
(show redacts the key; generate --save waits until show found no key).
n/a with the reason: rvf_delete, decompile_witness/search, rvlite as argv,
edge dashboard (opens a browser).

Every entry is a vec-* palette id; typed ones take their text after the
id. ActionSpec gains argv (a whole non-ruflo command) and lines (a reader
replacing the MetaHarness one), so the runner runs it and headless
/ruflo run answers with its lines.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:05:03 -04:00
ruv a0d970d62b fix(ruflo-console): the hive strip holds still between writes; halo and byzantine agree
The term timeline ended at the wall clock, so its marks crept left every
frame with no data behind it: the axis now ends at the hive's last write.
A broadcast already there on the first read is old at -Infinity, not at 0,
so the ticker never slides it. The heartbeat halo rests at half light, which
stays pink in 256 colours instead of quantising to the wall's grey. A worker
any open proposal excluded as Byzantine is walled red, matching the count in
the heading. The shield names its rule (f<n/2). A still of the strip joins
the spec's review output.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:04:18 -04:00
ruv 4394677afc Merge branch 'feat/console-memory' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/actions.ts
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/hooks/runner.ts
#	plugins/ruflo-console/hooks/state.ts
2026-10-02 18:03:48 -04:00
ruv a3738e95c8 feat(ruflo-console): skills view uses, previews, targets, maintains, scans and authors skills
- use a search result without installing it: `npx -y skills use <id>` runs on the click and
  its prompt is typed into the claude terminal (cut at 8,000 chars), never sent
- preview: an installed SKILL.md read from disk (bounded) with its frontmatter check; a result's
  repository via `skills add <id> --list` (installs nothing)
- install to: a project/global scope choice and agent checkboxes (`--agent` from a fixed list)
- maintain: update all (`update -p|-g -y`), restore (`experimental_install`), sync
  (`experimental_sync`), each confirm-gated with its argv and network/experimental note
- search: sort by install count; owner:<name> still narrows to `--owner`
- for this project: ▸ scan infers the stack from package.json / Cargo.toml / pyproject.toml /
  go.mod into one-click searches, and lists .claude/skills + .agents/skills with the
  .claude/agents files that name them (local, bounded reads; runs nothing)
- authoring: ▸ write with claude loads a prompt for <name>/SKILL.md; ▸ validate checks its
  frontmatter in pure code
- palette ids skills-find <words>, skills-update, skills-restore, skills-sync; a headless
  skills-find answers with its results (runner awaits read-only runs; dispatch asks skillsAnswer)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:03:14 -04:00
ruv 96343f8f49 feat(ruflo-console): Automation view and Learning Lab
Automation (id automate, keyless): the twelve background workers as cards
with status lights read from .claude-flow/daemon-state.json and a run
button each, daemon status/start/stop; a pending/running/done task kanban
from tasks/store.json with assign/complete/cancel/retry; workflows
(list, templates, create, validate, status, run, pause, resume, cancel,
save as template); autopilot (status, enable, disable, predict, learn,
log, history, reset); sessions (list, current, save, restore, export,
delete); config (list, get, set) with secrets masked as they are parsed
and never set from the console.

Learning Lab (id neural, keyless): learning stats from disk, neural train
per pattern and epochs with a progress sweep and a per-run loss
sparkline, status, patterns, memory analysis, intelligence stats,
quantize, compress, and route / explain / predict fields.

Every action is one fixed argv verified against @claude-flow/cli 3.51.1;
reads run at once into a result panel, writes ask first with their
cost, overwrite or delete on the confirm row; workflow run says it costs
money. Worker cancel reads n/a: the CLI keeps workers in a per-process
map. Shared hunks: ActionSpec.read + one runner line, VIEWS/ViewId/auto
state, BODIES, palette entries and keywords, the MetaHarness result panel
filtered to mh- runs, smoke step 14 runs the new spec.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:02:21 -04:00
ruv 33ce665cda Merge branch 'feat/console-cost' into feat/console-starts
# Conflicts:
#	plugins/ruflo-console/hooks/controller.ts
#	plugins/ruflo-console/hooks/dispatch.ts
#	plugins/ruflo-console/hooks/palette.ts
#	plugins/ruflo-console/tests/fixtures/world.ts
2026-10-02 18:01:39 -04:00
ruv 484cf7b3a8 feat(ruflo-console): Cost can set a budget, shows where spend goes, and projects the burn (codex)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 18:00:29 -04:00
ruv d1efde0af5 fix(ruflo-console): the chambers' text fallback says 1 open proposal
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:59:51 -04:00
ruv 025ddc06ac feat(ruflo-console): the Hive-Mind as a living comb
The hero honeycomb fills the pane: the queen crowned in the centre with a
heartbeat halo (the one decoration), workers ringed by role and lit by
liveness, free cells dim, Byzantine voters walled in red, a ballot dot per
voter on the picked proposal, and scars (✔/✘) for decided proposals. A vote,
join or leave runs a wave from that cell to the queen for 2 s; nothing else
moves. Each open proposal is a hex voting chamber with for/against filling
from opposite sides to their quorum lines. A strip below carries the
fault-tolerance shield (f of n, n/a where the CLI states no bound), the term
timeline, and the pheromone ticker that slides a new broadcast in once. With
no hive, an empty comb with a glowing egg holds the start buttons (palette
ids hive and hive-workers from the starts work).

Hive actions and the data read are unchanged.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:58:17 -04:00
ruv 8ca007ac41 feat(ruflo-console): Dev Tools view for ruflo's integration surface
A keyless view (devtools) with thirteen sections: capability brain, git diff
analysis, GitHub & delivery, agenticow, WASM agents, browser, terminal
sessions, providers, plugin registry, RuVLLM, DAA, managed agents and
maintenance. Every row is one fixed argv checked against the CLI source and
--help (3.51.1); local $0 reads run at once into a result panel, anything that
writes, deletes, reaches the network or may spend asks first with its cost on
the confirm row. Fields are validated before they enter an argv. Every row is
a palette id, so /ruflo run dt-diff HEAD~3 works headless.

What a fixed argv cannot carry is an n/a row with its reason: WASM agent ids
(they die with each mcp exec process), agenticow vector ops, provider keys,
and migrate run --dry-run, which this CLI ignores (the parser camelCases the
flag and migrate.ts reads the kebab key), so it would run the real migration.
cleanup --keep-config is ignored the same way and is not offered.

The runner now treats mcp exec's "isError": true as a failure, and a lab
spec may bring its own output reader (ActionSpec.lines).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:57:54 -04:00
ruv 17a3395a92 feat(ruflo-console): Security & Doctor and Performance views
Two keyless views reached by tab, menu prompt (secure, perf) or /ruflo:
security scans, a paste field for AIDefence, policy status/evaluate,
every doctor check as a status row with component filters, and the
performance verbs with a latency sparkline. Every argv is checked
against the CLI source; $0 local reads run at once, anything that writes
or reaches the network (npm audit, npm view, the aidefence auto-install)
asks first and says so on the confirm row. Results ride the lab panel
through a new optional ActionSpec.lines reader; mcp exec results are
read from the Result JSON only, so pasted text is never echoed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:57:54 -04:00
ruv 1cdd04d39e feat(ruflo-console): Memory Lab — browse, search, store, delete, AgentDB and embeddings as buttons
The Memory view (8) becomes a lab over ruflo's memory surface. Each action is one
fixed argv, checked against commands/memory.ts, mcp-tools/{memory,agentdb,embeddings}-tools.ts
and --help:
- stats, a vector gauge, a bar per namespace (click to filter), a recency
  timeline, and a browse list where each entry has view and delete buttons
- a search field covering memory search, or memory_search_unified with the
  scope toggle
- namespace/key/value fields with store, retrieve and delete
- 33 lab entries across memory, AgentDB, embeddings and maintenance

Reads run at once and fill a result panel. Writes ask first. Deletes ask and
say they cannot be undone. Embedding calls ask first, because they may download
the model. Every entry is a palette id, so `/ruflo run mem-search <q>` answers
headless.

Shared hunks:
- ActionSpec.lines is a lab's own output reader.
- The MetaHarness result panel now shows only mh- results.
- memory stats now exposes unreadStore.
- memory list now keeps the entries it reads.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:57:07 -04:00
ruv 054900a9cb Merge branch 'feat/console-xruv' into feat/console-starts: x.ruv.io board fully functional; smoke counts all four opt-in network probes; board height 50
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:53:43 -04:00
ruv 73f11a1a98 fix(ruflo-console): a board read fills its section on a clean exit, whatever the relay text says; drop the unused XEntry.fills
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:51:55 -04:00
ruv 0de61567fd feat(ruflo-console): the selected tab always names itself; the main menu holds every area, grouped; tabs no longer overflow
- [7: 🔬 METAHARNESS], [🧰 SKILLS], [0: 📟 MAIN MENU]: the current tab spells its name whatever its length (it was only
  names of six characters or fewer).
- Keyless views beyond Hive-Mind and Skills are tabs only while open and are listed in the main menu, so adding views
  does not widen the bar. The menu gains INTELLIGENCE (learn/remember/spend), SAFETY & OPS and Automation entries,
  each shown once its view exists.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:51:23 -04:00
ruv 49452e2eb1 feat(ruflo-console): the x.ruv.io board runs every federation capability itself
The board was a menu that typed `ruflo federation …` into the terminal. Each
capability is now a row with its own button or field, run as one fixed argv
through `mcp exec -t x_federation_*`:

- identity: whether ~/.ruflo/nostr.key exists (never read), the pubkey a
  result names, join with an optional invite code (masked on the confirm row
  and in answers), the agentbbs node identity; unregister is shown as not
  offered, since the gateway has no leave endpoint
- live: registry, roster, work-claims board and the last 20 swarm messages,
  kept live with federationNetwork, else fetched once per click
- channels: list, read, publish as yourself, create, grant, accept
- admin (gateway identity): hub publish and admit ask first and need
  RUFLO_X_ADMIN_TOKEN, of which only "is it set" is kept; invites are minted
  in the terminal, never by the board, since the code is a bearer secret
- a result panel that j/k scroll, and every action as an x-* palette entry,
  so `/ruflo run x-roster` works headless

Reads run at once; joins, publishes, grants, creates and accepts ask first and
say what they send. Channel reads ask until a Nostr key exists, because the CLI
makes one on first use. Claims and sync are two new network probes gated by the
same option.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:49:44 -04:00
ruv a21b524a55 feat(ruflo-console): empty sections start with a button, not a command to copy; a conformance test against the real CLI
- starts.ts: init, daemon, swarm, spawn, hive-mind (raft), hive workers, task, mission, pretrain, federation join, read pub:announce
  and the ruflo mods install are each one fixed argv, asked first and verified on disk. Flags were checked against
  `--help` and run for real in a throwaway project (the task start's invalid type was found that way).
- Overview 'Get going', Swarm, Hive-Mind, Claims (+ task field), Missions (objective field), Learning, Plugins and
  Federation replace their 'run npx ruflo …' hints with start buttons; every start is also a palette id.
- tests/conformance.spec.ts (opt-in: RUFLO_CONFORMANCE=1) collects every action the console can issue and checks each
  subcommand, long flag and MCP tool against the CLI's own declarations.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:45:53 -04:00
ruv eb7771be77 fix(ruflo-console): the terminal field keeps the keys through a run and stays above the fold; tour GIF for 0.7.0
- A run starting or ending adds or drops rows above the field (spinner, last line), and the engine moved the focus
  ring off it, so the next keys left the pane. The ring is put back after the redraw.
- The conversation window reserves the ~34 rows its frame needs, so long output never pushes the field below the
  fold (where the pane drops the keys).
- The confirm row no longer doubles a trailing question mark.
- Tour GIF: neon boot, grouped menu, swarm, Hive-Mind and Skills by mouse, x.ruv.io, the MetaHarness lab, a streamed
  framed terminal turn and a swarm session ask.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:28:49 -04:00
ruv 5b5adeb188 fix(ruflo-console): typing reaches the terminal field after a tab click or a /switch; 0.7.0; ADR-407 final
Found live while recording the tour.
- A pane that opened by itself does not hold the keys, and a mouse click on a tab does not give them, so a person
  who clicked into the terminal typed into Claude's prompt. Opening a typing view (terminal, skills) now takes the
  keys first; Esc still hands them back rather than closing the pane.
- After a command typed in the field (/ruflo /codex /claude /swarm /new /up /down /end) the rows above it change and
  the engine moved the focus ring off it, so the next keys fired hotkeys or left the pane. The ring is put back
  after the redraw.
- ruflo-console 0.7.0; ADR-407 records Skills, Hive-Mind, the MetaHarness lab, the scrollable framed terminal and the
  clickable band as shipped.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 17:23:14 -04:00
ruv 27b60a65b6 Merge branch 'feat/console-metaharness' into feat/console-now
# Conflicts:
#	plugins/ruflo-console/tests/actions.test.ts
#	plugins/ruflo-console/tests/palette.test.ts
2026-10-02 16:43:12 -04:00
ruv 98f373651f fix(ruflo-console): lab notes name the flywheel ledger dir; a headless run that cannot go says why; smoke runs mh-lab.spec
- the flywheel run note names where receipts go (.claude-flow/flywheel-v1, per flywheel-transaction.ts)
- /ruflo run <entry> with nothing to run answers "nothing to do: <why>" instead of the bare label, so a
  claude -p user of mh-learn-run or mh-gepa-analyze gets the command to type
- smoke step 14 also runs tests/mh-lab.spec.ts

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:41:49 -04:00
ruv 096fb99686 fix(ruflo-console): palette and Approvals votes are cast as a registered hive worker
The CLI counts a vote only from a registered worker and exits 0 when it refuses one, so votes cast as
console-operator were silently dropped. Palette and Approvals now vote as the next worker that has not voted,
as the Hive-Mind view does. With no worker left they say why, and nothing runs.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:39:53 -04:00
ruv 7eddfc3e42 feat(ruflo-console): MetaHarness lab — every metaharness verb from the view, reads at once, the rest confirm-gated
The MetaHarness view keeps READINESS, FLYWHEEL and AUDIT TREND and adds a BBS lab: 25 entries in three groups
(inspect: $0 reads that run at once; record: $0 writes that ask; evolve & test: local compute or paid models,
asked with the cost on the confirm row), a RESULT panel with the last run's label, exit, cost note and up to 40
lines (14 in view, j/k scroll, a running indicator), and PROMOTE as a command the person runs: never a button,
never a palette entry (ADR-322: the console proposes and evaluates, it never promotes).

Every argv was checked against commands/metaharness.ts, the plugin scripts and the MCP tool schemas, and every $0
read was sampled on @claude-flow/cli 3.51.1. security-bench is MCP-only (mcp exec -t metaharness_security_bench).
learn --run and gepa --op analyze need a path, so their buttons type the command into the terminal instead.

- mh-lab.ts: the catalog, labSpec, and readers (findings by severity, redblue runs/attacks, gepa render/genome,
  receipts, a flattener for the rest); every lab entry is a palette entry, so /ruflo run mh-genome works headless
- runner: ActionSpec lab/note/timeoutMs (evolve and security-bench outlast 90 s), state.lab, settled()
- dispatch: /ruflo run and /ruflo yes answer a lab run with what it printed
- audit probe: audit-list rows carry key/startedAt/finishedAt; the probe read none of them, so the trend had no
  points from real data; it now keeps each key for audit-trend and similarity
- tests: kit tests for the lab view, an inspect run, a spending ask, promote never run, headless answers, the six
  new confirm-gated argv; mh-lab.spec.ts for the catalog invariants and readers on captured CLI output

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:38:36 -04:00
ruv a379b91c45 Merge branch 'feat/console-hive' into feat/console-now
# Conflicts:
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/menu.ts
#	plugins/ruflo-console/hooks/views/pane.ts
#	plugins/ruflo-console/tests/behaviour.test.ts
2026-10-02 16:38:25 -04:00
ruv f4f5ddce49 Merge branch 'feat/console-skills' into feat/console-now
# Conflicts:
#	plugins/ruflo-console/hooks/state.ts
#	plugins/ruflo-console/hooks/views/common.ts
2026-10-02 16:37:06 -04:00
ruv 9a26876efc fix(ruflo-console): hive vote asks for JSON so a refused vote reads as refused
`hive-mind consensus` exits 0 and prints "Vote recorded (For: undefined…)" when the tool
refuses a vote (unregistered voter, double vote, Byzantine, already decided); only its
--format json output carries the tool's "error" for the runner. The shared-memory key
count no longer counts the broadcasts array it lists separately.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:37:03 -04:00
ruv 5122dcf10f feat(ruflo-console): a scrollable, framed AI terminal and a clickable console
- Terminal:
  - The conversation is a window that scrolls: ▲ older, ▼ newer, ⤓ end by mouse, or /up /down /end from the field.
  - While scrolled up, new output waits below and is counted (⤓ N new).
  - Each turn is framed: ╭─ you → agent, ├─ agent, then a gutter in that agent's colour, closed by ╰─ ✓ 3 s · $0.012.
  - Light markdown: headings bold, bullets as •, fenced code framed and tinted.
  - Long answers wrap at word boundaries.
  - A question can be clicked to put it back in the field.
  - While an agent writes back, a spinner shows; the input sits under its own rule.
- Clickable:
  - Every band part opens the console on its view, with the keys (approvals, swarm, terminal, events, claims, cost).
  - The Wildcat NETWORKS names are links.
  - The main menu's status-bar facts are links.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:36:27 -04:00
ruv aef399f623 feat(ruflo-console): Hive-Mind view — honeycomb, quorum, proposals, vote/propose/broadcast/spawn
A new keyless view (👑, after Swarm) that reads what .claude-flow/hive-mind/state.json
records: the queen and her term, the consensus strategy with the fault tolerance and
quorum it implies (the CLI's own calculateRequiredVotes arithmetic), every worker with
its hive role and liveness (from .claude-flow/agents.json, where hive-mind spawn writes),
open proposals against their bar with raft timeouts and Byzantine voters, decided
history, and the shared-memory broadcasts.

- gfx/hive.ts: a honeycomb of hex cells, the queen's crown centred, workers ringed
  clockwise; walls show each ballot on the picked proposal; one meter per proposal.
  xterm-256 colours only. A cell flashes for 2 s after its vote/join/leave event and is
  otherwise still (byte-identical frames); size depends on model and columns only.
- data/events.ts: one event per new ballot and per join/leave, tagged with the worker.
- Actions, each confirm-gated: vote through `hive-mind consensus` (the only path that
  carries the hive token) as the next registered worker without a ballot; propose,
  broadcast and spawn through `mcp exec` (no token needed). A second raft proposal in
  the same term is refused before it is asked.
- Tabs: a view with key '' gets a Button without a hotkey; viewOf never matches ''.
  The first tab row now runs to the last digit-keyed view, so Hive-Mind sits after Swarm.
- The swarm view's hive section is a short summary with "▸ open hive".

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:34:25 -04:00
ruv d59daa3c4c fix(ruflo-console): skills add checks the listed name without case (the CLI lowercases on install)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:31:23 -04:00
ruv ea0a8d7b4c feat(ruflo-console): Skills view over the npx skills CLI (skills.sh)
A new view, 🧰 Skills, with no hotkey (every digit and letter is taken):
the tab is pressed, and the menu prompt and /ruflo skills reach it by name.

- INSTALLED: `skills ls --json` and `ls -g --json`, read when the view
  opens or on r; one failing scope does not blank the other. Each row has
  ▸ update ▸ remove ▸ edit.
- SEARCH: Enter in the field runs `skills find <query>` (owner:<name>
  becomes --owner); the coloured text is read line by line into
  owner/repo@skill with install counts, each with ▸ add and ▸ add -g.
- CREATE: a name field for `skills init <name>`. Enter asks, and Enter
  again confirms.

Reads run at once, but only when the person acts, because npx and
skills.sh are on the network. Every change is confirm-gated through the
runner (ActionSpec run + shows, so the confirm row prints the exact
argv). After a change, both lists are read again and the result says
whether the change shows in them. ▸ edit loads the AI terminal with a
claude prompt; nothing here writes a file.

Input is validated before it becomes argv: [A-Za-z0-9@/._ -], no leading
-, capped. A new skill name may not hold a slash or start with a dot,
because init joins it onto the project.

viewOf no longer matches '' to the hotkey-less view. The tab bar, /ruflo
help and the palette drop the key where there is none. The narrow-tab
test holds the position, not the total view count.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:29:01 -04:00
ruv e847fc27f3 feat(ruflo-console): the band leads with what is happening now; the main menu in four boxed groups with sub-sections
- Band order:
  - What needs a person.
  - Who is working on what and for how long (▶ coder on <task> 2m).
  - The AI terminal's runs, and the newest event while it is under a minute old.
  - With nothing moving it says idle, how many agents stand ready, and when something last happened.
  - Claims and spend come last; route and pattern totals live in their own views.
- Main menu: SWARM (live/work/watch), INTELLIGENCE (learn/remember/spend), NETWORK & EXTEND (federate/extend),
  TOOLS (run/session).
  - Each group is a bordered ▓▒░ TITLE ░▒▓ box, two per row where the pane is wide enough.
  - Hive-Mind and Skills entries show once those views exist.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:22:19 -04:00
ruv a967f15396 feat(ruflo-console): switch harness from the terminal field (/codex /claude /swarm /ruflo); tour GIF
The field holds the keys, so the pick hotkeys would only type. A slash word in the field switches harness
and drops an ask the previous harness left on screen.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:15:23 -04:00
ruv 02d995102b fix(ruflo-console): every page keeps its banner and title; the terminal field takes the keys (0.6.2)
- The docked pane no longer goes compact. Compact was meant for an inline pane too short for its view, but it also
  fired on the dock, so the taller pages (Swarm, Claims, Plugins, Learning, Terminal, x.ruv.io) lost the banner and
  their block title while the shorter ones kept them. The dock scrolls, so it now always draws the full frame.
  Even a compact inline pane keeps each page's title and description line.
- The Main Menu is back to the banner and the RUFLO BBS title, and the neon sign is the boot's alone. Rows go back to 32.
- The terminal's field takes the keys when the view opens and after a harness pick ($.ui.focus), so typing reaches it
  instead of firing pane hotkeys (w, s, c…). Verified live: "where is the swarm" landed in the field.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:10:22 -04:00
ruv 0379dce1c0 fix(ruflo-console): Enter again runs a pending terminal ask even when the engine emptied the field (0.6.1)
After the first Enter the field is emptied, so the second Enter submitted empty text and read
'type something first' instead of running the confirmed command. An empty Enter on a pending
terminal ask now confirms it. Seen live while recording the console tour.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-02 16:04:00 -04:00