Files
ruflo/plugins/ruflo-console/tests/fixtures/vector.ts
T
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

17 lines
1.7 KiB
TypeScript

/**
* What ruvector 0.3.3 prints under a pipe, captured from runs in a throwaway directory (the hooks and rvf text keep the
* CLI's colour codes). The identity outputs carry a made-up key: no real key is in this repository.
*/
export const FAKE_KEY = 'a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90'
export const FAKE_PSEUDONYM = '0f1e2d3c4b5a69788796a5b4c3d2e1f0'
export const VEC_OUT = {
hooksStats: '\u001b[1m\u001b[36m\u001b[39m\u001b[22m\n\u001b[1m\u001b[36m🧠 RuVector Intelligence Stats\u001b[39m\u001b[22m\n\u001b[1m\u001b[36m\u001b[39m\u001b[22m\n \u001b[32m2\u001b[39m Q-learning patterns\n \u001b[32m2\u001b[39m vector memories\n \u001b[32m3\u001b[39m learning trajectories\n \u001b[32m0\u001b[39m error patterns\n\n\u001b[1mSwarm Status:\u001b[22m\n \u001b[36m0\u001b[39m agents registered\n \u001b[36m0\u001b[39m coordination edges\n',
route: '{\n "task": "write tests for login",\n "recommended": "coder",\n "confidence": 0,\n "reasoning": "default for unknown files"\n}\n',
rvfStatus: '\u001b[36mRVF Store Status\u001b[39m\n\u001b[2m totalVectors: 2\u001b[22m\n\u001b[2m totalSegments: 2\u001b[22m\n\u001b[2m epoch: 0\u001b[22m\n\u001b[2m compactionState: idle\u001b[22m\n',
identityShow: JSON.stringify({ pseudonym: FAKE_PSEUDONYM, key_preview: `${FAKE_KEY.slice(0, 8)}...${FAKE_KEY.slice(-8)}`, source: '~/.ruvector/pi-key' }, null, 2),
identityNone: 'No pi key found. Set PI env var or run: ruvector identity generate --save\n',
generated: `${JSON.stringify({ key: FAKE_KEY, pseudonym: FAKE_PSEUDONYM }, null, 2)}\n Key saved to /home/dev/.ruvector/pi-key\n`,
brainMissing: 'Brain commands require @ruvector/pi-brain\n npm install @ruvector/pi-brain\n',
} as const