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>
- 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>
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>
README gets a short optional pointer (npx ruflo tui, --plain) and one small animated SVG. docs/USERGUIDE.md gets a
Terminal UI (optional) section: requirements, commands, keys, exit codes, what each page shows, the AI page's ask-first
card and its Codex/OpenRouter rules, the honest limits and a pointer to the Orbital theme. Both SVGs are built from real
frames of ruflo-tui 3.56.7 in a throwaway sample project; scripts/render-tui-svg.mjs rebuilds them (CSS animation only,
no scripts or external references, prefers-reduced-motion shows the first frame).
Co-Authored-By: RuFlo <ruv@ruv.net>
Carries #4031 (rudycelekli) and #4091 (proffesor-for-testing); oversized-tail and permission-safe
recovery per rUv's review and martinvlad's fresh-consumer finding. Adds scripts/smoke-shared-fresh-consumer.mjs
(packed tarball, plain Node) and a CI step for it.
Co-Authored-By: RuFlo <ruv@ruv.net>
Keeps the newer serialized-record index fix (#4030) and the other RVF fixes from #4061.
An oversized length prefix is no longer accepted silently: the bytes are kept and append()
rejects explicitly (opt-in repairOversizedTail truncates). appendRecord() refuses records
replayFile() could never read back. Adds the tail-shape matrix regression tests.
Co-Authored-By: RuFlo <ruv@ruv.net>
Reduce vector replay from 29.6 MB to 3.84 MB through shared glyphs and per-cell animation. Retain 456 frames; verify SMIL timelines and img animation in Chrome.
@claude-flow/shared 3.0.1-3.0.3 declare only sql.js, but the compiled code
imports zod (core/config) and express, cors, helmet and ws (mcp transports).
They sat in devDependencies, so a clean `npm i @claude-flow/shared` cannot load
`.` or `./core` (Cannot find package 'zod') or `./mcp` (Cannot find package
'express'). ruflo users never saw it because @claude-flow/cli declares the same
packages and npm hoists them.
- Move zod, express, cors, helmet and ws to dependencies, with ranges that
overlap what @claude-flow/cli declares so a CLI install can dedupe them.
express is bounded to `^4.22.2 || ^5.0.0` (the patched 4.x floor the repo
overrides to, and the 5.x the workspace runs) instead of an open `>=`.
- Move @types/ws to dependencies: dist/mcp/transport/websocket.d.ts imports
`ws`, so a consumer type-checking with skipLibCheck off hit TS7016.
- Exclude *.test.ts / *.spec.ts / __tests__ from the build, and negate them in
`files` so a stale local dist (composite builds do not clear old outputs)
cannot ship them either. 3.0.3 ships 6 compiled tests that import vitest.
- HttpTransport: read `req.body ?? {}`. Under Express 5 a POST /rpc with no JSON
body left req.body undefined and answered 500 instead of the JSON-RPC 400.
Malformed JSON (body-parser's entity.parse.failed) now answers 400 / -32700
Parse error instead of 500 / -32603 Internal error, under Express 4 and 5.
- Lockfile: only the shared importer block moves; ws 8.19.0 was referenced by
nothing else and is dropped. `pnpm@8.15.0 install --frozen-lockfile` passes.
- Tests: __tests__/package-manifest.test.ts scans src/ with the TypeScript
AST (type-only imports erased, comments/strings ignored) and fails on an
undeclared runtime import, a missing @types/ws, or removed test exclusions;
__tests__/mcp/http-transport-body.test.ts (transport bound to port 0) covers
the bodiless POST and malformed JSON. Every mutant (zod, express, @types/ws,
spec negation, tsconfig exclude, each HTTP fix reverted) is caught.
Verified: npm pack + clean `npm i <tgz>` imports all 9 exports subpaths
(origin/main and registry 3.0.3 fail on 3 of them) and ships no test files;
HTTP /health 200 and a WebSocket connect work under express 5.3.0 and 4.22.3;
a consumer tsc with skipLibCheck off reports 0 errors; shared tests pass; the
CI recursive build and the CLI type-check pass.
Not included: the version bump and the CLI's exact `@claude-flow/shared`
pin, which belong to the release.
`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.
- 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>