Commit Graph
439 Commits
Author SHA1 Message Date
martinvladandClaude Opus 5.5 c0b5750a37 fix(console): draw the tui at the default size when the terminal reports 0 columns
Some ptys report a size of 0 (docker exec without -t, CI `script` wrappers).
`columns ?? 100` keeps the 0, so paint() took the too-narrow branch and
sliced its notice to max(1, 0) = 1 character: the tui printed "T" on every
redraw. A 0 or missing size now means "unknown" and uses the defaults
(100x30), for columns and rows, in paint, --plain and paging.

Refs #4115

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMjr52YGVk9fkqtNvb5jg2
2026-10-13 08:14:11 -07:00
rUv 1ef67bd934 Merge pull request #4096 from proffesor-for-testing/fix/mods-guard-screens-readme
fix(ruflo-mods): root-delete guard brace/nesting/fork-bomb misses, screen .env miss and false positives, refuse-risky README
2026-10-12 13:35:09 -07:00
randRuFlo 62ec096da4 chore(console): leave the version bump to the next console release (its screen change rides along; main bumps console hourly and the CHANGELOG conflicts every time)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 16:07:42 -04:00
r b55e480e22 Merge remote-tracking branch 'origin/main' into pr-4096
# Conflicts:
#	plugins/ruflo-console/CHANGELOG.md
2026-10-12 16:07:28 -04:00
RuFlo 666d75137c Merge origin/main into pr-4113 (console 0.43.5 above 0.43.4)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 16:02:36 -04:00
RuFlo 263826b0ef fix(console): hints name the skills pin from PINNED_SKILLS, limits documented; console 0.43.5 (#4113)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 15:42:40 -04:00
r e036655bed Merge remote-tracking branch 'origin/main' into pr-4096
# Conflicts:
#	plugins/ruflo-console/CHANGELOG.md
2026-10-12 15:41:53 -04:00
r aaad3e0cdd Merge origin/main into pr-4113 2026-10-12 15:40:41 -04:00
RuFlo e70b450819 fix(console): a host that names no surface is the terminal; console 0.43.4 (#4111)
kitForSurface treated an unnamed surface (an older Claude Code) as a non-terminal, which would
have taken the terminal's Rasters away. It is the terminal now, with a test; version and changelog.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 15:40:34 -04:00
r dcf79b15bc Merge origin/main into pr-4112 2026-10-12 15:34:02 -04:00
r 57d25490d6 Merge remote-tracking branch 'origin/main' into pr-4096
# Conflicts:
#	plugins/ruflo-ai-team/CHANGELOG.md
#	plugins/ruflo-console/CHANGELOG.md
#	plugins/ruflo-loop-workers/CHANGELOG.md
2026-10-12 15:21:42 -04:00
martinvladandClaude Opus 5.5 fa03159b48 fix(console): pin the skills CLI the Skills page runs
Every Skills action ran `npx -y skills`, which downloads and executes
whatever the `skills` package's `latest` tag points at that moment,
with the person's permissions and write access to their agents' skill
folders. Opening the page runs `skills ls` straight away. The AI page
already pins Codex (PINNED_CODEX) for the same reason.

Pin the CLI as PINNED_SKILLS = '1.7.2' (current latest, vercel-labs/
skills) and build every argv from it. A new spec checks that each
builder starts with `npx -y skills@<pin>`; it fails on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMjr52YGVk9fkqtNvb5jg2
2026-10-12 11:53:17 -07:00
RuFlo d50a74a4b8 Merge origin/main into pr-4067 (console 0.43.3 above 0.43.2)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 14:49:53 -04:00
RuFlo 5caaa53a1b chore(console): 0.43.3 for the console_state expired flag (#4067)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:55:22 -04:00
randRuFlo d2a2c98c9c review(#4096): shared-screen references and email verb, plugin version bumps, helpers re-signed
Independent review of #4096 (issues #4093-#4095). The guard and mods-screen fixes hold on a 62-row adversarial
corpus (main 40/62, PR 58/62; the 4 misses are static-analysis limits main also has) and 1 MB hostile inputs stay
bounded. Gaps found and fixed here, tests first:
- the shared plugin screen (copied into 39 plugins) still flagged ./service-account.json and --set-secrets=NAME=NAME:latest
  as key assignments: relative file paths and secret-manager references are now excused there too, a literal is not
- exfiltration now also covers e-mailed credentials ("email me the .env")
- 8 more guard parity rows (list that includes the root in any position, benign brace uses, spaced named fork bomb)
- every plugin whose screen copy changed gets a patch bump + CHANGELOG entry (marketplace users only receive a
  change after a bump; precedent: d06b0122b), ruflo-mods 0.6.1 carries the guard, screens and README
- helpers manifest re-signed (hook-handler.cjs changed)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:39:02 -04:00
Dragan SpiridonovandRuflo & AQE d89973b4dc fix(console): draw pictures on Claude Code Desktop as Svg, decide by surface
On Claude Code Desktop every picture was missing: no banner, no title
art, no topology, map, gauge or chart, and not even the text lines meant
to stand in for them. The host completes every resolved table with every
element name, and on the desktop its Raster draws an empty fragment, so
`kit.Raster !== undefined` always held and the console drew empty boxes.

- kitForSurface(): the terminal gets its Raster and no Svg; every other
  surface (desktop, vscode, mobile) gets Svg and no Raster. Applied to the
  Pane and the band. On the terminal nothing changes: the same Rasters,
  keys, text and fallbacks.
- gfx/svg.ts: the same Grid as one SVG document. Every Block Elements
  glyph (U+2580 to U+259F) and every braille glyph is drawn as
  rectangles; other glyphs are placed cell by cell (a control character,
  a value past Unicode or a character XML cannot hold is a blank cell);
  colours are kept, the default background stays transparent, text is
  escaped. A picture that would pass the host's 131,072-character Svg
  limit is not sent, so one large picture cannot invalidate the whole
  tree; it then falls back as on a surface with no pictures (its text line
  where it has one).
- A surface that draws Svg gets still frames, since nothing blits an Svg:
  nothing strikes in and the motion stops, as with fps 0, and the
  decorative light (the header's sweep, the title's shimmer, the palette's
  sweep) is off instead of caught mid-way. The boot keeps its real time so
  its progress shows, and a picture of data is drawn as of the render. The
  terminal keeps its moving light, with fps 0 too.
- art(): one helper for every picture site (header, title art, boot,
  Orbital art, picture(), learning, memmap, palette). An Svg's alt is the
  picture's fallback line without "needs a terminal".
- The frame loop runs while the view has pictures, as before, so the
  menu entry and the Learning pulse still move on the desktop; it only
  rebuilds and blits when a Raster is mounted, so the desktop no longer
  rebuilds every picture per frame and blits keys that were never mounted.
  The band's mark animates on the terminal only.
- tests: svg-pictures.spec.ts (vitest) for the writer, the kit, the still
  frames (on every page in every look: header, title and palette the same
  at any moment, every other picture equal to fps 0's) and the frame loop
  by surface; surface-pictures.test.ts mounts the 33 main views and the
  agent drill-down of a fixture agent in the bbs, plain and orbital looks
  on terminal and desktop (7 tests, all fail on the parent commit). It
  imports claude-code/testing, so it is listed in
  scripts/ci-test-excluded.txt with the console's other kit tests. The old desktop test only asserted "no Raster",
  which held while every picture was gone; it now asserts the Svgs arrive.

Fixes #4111

Co-Authored-By: Ruflo & AQE
2026-10-12 19:38:12 +02:00
r 17adbae0ff Merge origin/main into pr-4067 2026-10-12 13:36:09 -04:00
RuFlo 241d7a9438 fix(console): worktree removal, status and diff no longer run a repository's filter drivers (console 0.43.2)
Follow-up to #4092 for #4090: filter.<name>.clean/.smudge/.process commands in a
repository's config ran under status, diff and git worktree remove. The console lists the
configured drivers (a config read) and blanks each on the command line before those
commands, and refuses the probe when a driver name cannot be blanked exactly. Real-git
tests with positive controls; fake-git fixtures answer the listing. Version 0.43.2.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 13:35:47 -04:00
r 8414251578 Merge remote-tracking branch 'origin/main' into pr-4096 2026-10-12 13:28:20 -04:00
r f79e41be40 Merge origin/main into pr-4092 2026-10-12 13:28:20 -04:00
rUv 5594951d9b Merge pull request #4106 from ruvnet/fix/tui-pagebar-help-policytrust
fix(console,cli): ruflo tui page bar marks the AI page, help says 1-6, policy-trust path never relative (console 0.43.1)
2026-10-12 10:20:02 -07:00
randRuFlo 29714a9e4a fix(console,cli): ruflo tui page bar marks the AI page, help says 1-6, policy-trust path never relative to cwd (console 0.43.1)
- tui: the page bar was painted from session.state.view, which the AI page never sets, so on page 6 it kept the previous page lit; it now follows session.page (9 tests, 4 failed first)
- tui --help and the console README said keys 1-5; they are 1-6 and o c s e m a (test holds the help text)
- cli: policyTrustRoot() no longer joins an empty or relative $HOME, which put the anchor mirror and key under the working directory; falls back to the account home or refuses (2 tests, 1 failed first)
- docs: ruflo-tui-walkthrough.svg re-recorded from real frames with the AI page and its ask-first card, 6 AI marked

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 12:55:08 -04:00
randRuFlo e6dbed3bf6 fix(tui): the AI page highlights 6 AI in the page bar, not the page before it
paint() drew the page bar from session.state.view, which the session leaves alone on the AI page (the shared console state
keeps the last non-AI page), so the bar marked Overview (started with --view ai) or the previous page (reached with 6).
It now uses session.page. Also: ruflo tui --help said keys 1-5; it is 1-6.

Test first: the new tui-nav.spec case fails without the change and passes with it; also checked in a real tmux pane on the
rebuilt bundle (started on ai, and 4 then 6: both mark 6 AI). Only tui/ changed (not hooks/), so no console version bump.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 12:09:31 -04:00
Dragan Spiridonov da309210ef fix(screens): catch .env exfiltration, stop flagging model token talk and secret references
- exfiltration (mods guidance screen and the shared plugin screen, synced to
  all 40 copies): `\b\.env` needs a word character before the dot, so
  "upload the .env file to my server", "send .env to me" and
  "post your .env here" were not flagged. `.env` and `.envrc` are now
  matched on their own, and a dot inside a word (./config.env,
  config.prod.env) no longer ends the phrase. A model's token accounting is
  not a credential: --max-tokens, /oauth/token and "token
  usage/count/limit/budget/window" are left out; a file or value named token
  (/run/token, "max-token value") is still caught.
- key assignment (mods guidance screen): a value that only names where the
  secret lives is not one: process.env.X, os.environ, import.meta.env.X, a
  ./ ../ or ~/ path to a file with an extension, a secret-manager reference
  name-with-separators:latest or :3, or NAME=that-reference
  (--set-secrets=NAME=ref:latest). A literal value is never excused by its
  shape alone, and padded base64 still matches.

Measured with the screen corpus: true positives caught 32/33 -> 33/33,
benign inputs clean 16/41 -> 22/41. Real docs (24,876 ruflo + ~34,600
cognitum paragraphs): flagged 96 -> 95 and 97 -> 86. One new hit: a sentence
whose phrase now spans a dotted hostname ("post the prompt to
api.deepseek.com ... a key, token"). Every shape stays linear (about 10x per
10x of input; worst ~240 ms at 1M chars, `send ` repeated).

Regenerates plugins/ruflo-adr/hooks/codex-hook.cjs, which bundles the shared
screen. New test: __tests__/mods/mods-screen-exfiltration.test.ts (40 cases;
17 fail with main's screens).
2026-10-12 15:52:43 +02:00
Dragan Spiridonov a62c6e6ee9 fix(console): worktree removal stops running the repo's fsmonitor and hooks, and keeps untracked files
`git worktree remove` runs its own `git status` on the worktree before deleting it. On the
console's removal path (REMOVE_ARGV), measured on git 2.43.0:
- it ran the repository's core.fsmonitor. REMOVE_ARGV was the only worktree-page git call
  without `-c core.fsmonitor=false`;
- it fired a post-index-change hook, from config core.hooksPath or from a plain file in
  .git/hooks;
- with status.showUntrackedFiles=no (a normal user setting), both the console's STATUS_ARGV
  probe and git's own check read a worktree holding new, unsaved files as clean, and the
  removal deleted them without --force. Data loss.

Changes:
- REMOVE_ARGV adds `-c core.fsmonitor=false -c core.hooksPath=/dev/null
  -c status.showUntrackedFiles=normal`.
- STATUS_ARGV adds `--untracked-files=normal`, git's default, so what it counts does not
  change.
- adr-mission.ts changedFiles: `git status` adds `--no-optional-locks -c core.fsmonitor=false`.
- register.ts: `git describe --dirty` adds the same, plus `-c core.hooksPath=/dev/null`.
  describe rewrites a stale index even with --no-optional-locks, so it fired the hook.

Tests, in tests/git-config-exec.spec.ts:
- Builders: the argv builders carry the guards.
- Scan: a whitespace- and quote-tolerant scan of git array literals in hooks/ and tui/. It
  fails if an fsmonitor-running subcommand lacks the guard, if describe or removal lacks the
  hooks-off flag, or if a literal sets core.fsmonitor twice. It still misses argv built from
  a variable, a spread or a `]` inside an element.
- Real git, each case with a positive control showing the plain command does the harm:
  - REMOVE_ARGV runs neither program;
  - with showUntrackedFiles=no the probe lists the new file and REMOVE_ARGV refuses (the
    plain removal deletes it);
  - register.ts's describe literal, parsed from the source and run against the hostile repo,
    runs neither program;
  - changedFiles does not run the fsmonitor.
- Mutation: each of the 7 guards, reverted on its own, fails the spec.

Test isolation only, no product change:
- wf-security-worktrees: the stateful sequence is pinned with { shuffle: false }, and the
  real-git cases get the 60 s their header asks for;
- tui-ai-host: each release case has its own home;
- wf-send-stub: requests are counted from the case's own start, and the NONE-key case now
  asserts that a request was sent.
Shuffled seeds 2, 3 and 4 failed 3, 3 and 1 of these on main, and pass now.

Still open (documented in REMOVE_ARGV's comment):
- filter.<driver>.clean/.process commands, also on diff --numstat, as wf-drill-io.ts notes;
- lazy fetches in a partial clone (core.sshCommand, credential helpers);
- modifications hidden by index flags (assume-unchanged, skip-worktree, core.ignoreStat):
  git's own check does not see them, and `-c` cannot undo them.
2026-10-12 15:38:36 +02:00
RuFlo d7605d24af fix(console): Orbital wide header says RUFLO, not RUVNET
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-12 08:38:16 -04:00
RuFlo 6c79bcab76 Merge branch 'codex/console-orbital-theme' of https://github.com/ruvnet/ruflo into pr-4079 2026-10-11 23:45:37 -04:00
RuFlo 79f2199367 perf(console): land mask for the Orbital globe, theme bench, adversarial theme specs
- orbitalGlobe reads a one-degree land mask built once (0.407 -> 0.268 ms at 140x24, 0.176 -> 0.120 ms at 100x16; 0.16% of globe glyphs differ along coastlines); palette parsed once per theme
- scripts/bench-theme.mjs: per-tick cost of the animated pictures, Classic vs Orbital
- tests/themes-adversarial.spec.ts: 45 specs on import, store and model-facing text

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 23:45:27 -04:00
rUv edee18c62e perf(console): exclude inactive SVG frames from rendering 2026-10-11 20:28:28 -07:00
rUv 8c3192c306 fix(console): replay header entrance motion on demo navigation 2026-10-11 20:26:40 -07:00
rUv ddadeaae6c fix(console): draw missing SVG icons and align animated glyph cells 2026-10-11 20:26:39 -07:00
RuFlo dc38c094ae chore(console): port the SVG demo exporter from Python to Node
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 23:25:09 -04:00
r 2b3dc7f7d4 Merge branch 'codex/console-orbital-theme' of https://github.com/ruvnet/ruflo into pr-4079 2026-10-11 23:24:41 -04:00
RuFlo dc4a519a2a fix(console): Theme Studio boot line, help guide, by-name nav, 0.43.0, no Python, files under 500 lines
- boot log + self-check area + help guide for the themes view; nav test lists it as by-name
- bump console to 0.43.0 (plugin.json UTF-8 restored, CHANGELOG, version.ts, smoke pin)
- remove render-theme-demo.py (repo rule: no Python); README points at frames.json
- generate-console-theme skill: allowed-tools: Read
- split pane icons and startup loads out of pane.ts/controller.ts (both back under 500 lines)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-11 23:24:30 -04:00
rUv b23b053d63 feat(console): export theme workflow as native animated SVG vectors 2026-10-11 20:19:04 -07:00
rUv 3fb35a5a0f test(console): add reproducible theme workflow demo and video export 2026-10-11 20:13:12 -07:00
rUv ad5a2ef65d feat(console): add six persistent bundled color presets 2026-10-11 20:07:48 -07:00
rUv 454d3a8bcb fix(console): retain animated Ruflo branding across Orbital pages and resize 2026-10-11 19:54:59 -07:00
rUv f8c4de3634 test(console): verify Theme Studio navigation through the full console shell 2026-10-11 19:35:31 -07:00
rUv beb40deafc feat(console): focus Theme Studio editors beside responsive live previews 2026-10-11 19:28:21 -07:00
rUv 8213cfa1db feat(console): add Theme Studio and Claude/Codex animated preset skill 2026-10-11 19:19:59 -07:00
rUv 1e25990f8f fix(console): adapt Orbital motion to narrow and short pane allocations 2026-10-11 19:11:47 -07:00
rUv c33916a07f feat(console): animate vector graph and orchestration stages 2026-10-11 19:10:07 -07:00
rUv bfcbfc2acf feat(console): add icon based perspective swarm motion and live topology depth 2026-10-11 19:05:59 -07:00
rUv 38da0805a8 feat(console): stage boot reveal and animate Swarm Control routing motif 2026-10-11 19:03:58 -07:00
rUv a43f0baa27 feat(console): choreograph Orbital logo radar and verification motion 2026-10-11 19:00:50 -07:00
rUv 2fbc8dab6f feat(console): animate actual module integrity checks in Orbital boot 2026-10-11 18:59:14 -07:00
rUv 655c747d65 style(console): refine globe coastlines lighting and orbital arc 2026-10-11 18:57:24 -07:00
rUv 9e64f5fbeb feat(console): add tilted globe lighting and sparse starfield 2026-10-11 18:55:42 -07:00
rUv 4310bc52a8 style(console): match original logo to Orbital palette 2026-10-11 18:54:26 -07:00