feat(status): unify --daemon status (short/-v/--json), fold in stats#528
Merged
Conversation
…] [--json]` Consolidate the daemon read-only surfaces on the new `uffs-statusfmt` styling and fold the former `--daemon stats` into `--daemon status -v`. - `--daemon status` (short): health glyph, version, uptime, drives, query rate. - `--daemon status -v` (long): adds Build (commit + elevation / broker mode), Live update (USN journal loop liveness), Memory (heap / mimalloc / RSS), Paths (data / socket / logs), Performance (the folded-in stats), and the full per-drive tier + memory breakdown. Surfaces the new StatusResponse fields (git_sha, elevated, reading_via_broker, live_update, paths). - `--daemon status --json`: machine-readable superset (status + drives + stats). - `--daemon stats` removed; the parser returns a one-line redirect to `status -v` / `status --json`. Elevation gate + dispatch updated. TTY/NO_COLOR-aware colour via `uffs-statusfmt::Palette`; piped output stays plain, so the live-Windows validation harnesses keep scraping the same labels (the Performance section keeps `Total records:`, `Queries served:`, `Avg query time:`, `Agg cache:`). Those harnesses + the two CLI test definitions are updated to invoke `status -v` instead of the removed `stats` (11-rpc.toml also picks up taplo's no-align normalization). Verified: host clippy + xwin (Windows) clippy `--all-targets -D warnings`, rustdoc `-Dwarnings --document-private-items`, fmt, taplo — all green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
deep-soft
pushed a commit
to deep-soft/UltraFastFileSearch-Rust
that referenced
this pull request
Jul 5, 2026
…tatus` (skyllc-ai#531) The status rewrite (skyllc-ai#528, skyllc-ai#529) restyled the output and folded `--daemon stats` into `--daemon status -v`. Update the user manual to match: - daemon.md: replace the old `Daemon PID:` / `Daemon Performance Stats` example blocks with the new short / `-v` long / `--json` examples; note the `stats` fold + redirect; add the `status -v` and `status --json` command rows. - cli-overview.md: add `status -v` / `status --json`; document `--status` `-v` / `--json` and mention the Access Broker section. - troubleshooting.md: point diagnostics at `status -v` and `--status --json`. Docs-only. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
deep-soft
pushed a commit
to deep-soft/UltraFastFileSearch-Rust
that referenced
this pull request
Jul 5, 2026
…i#532) The status rewrite (skyllc-ai#528, skyllc-ai#529) restyled the human output, so the CLI validation harness's text-scraping of `--daemon status` was stale (it looked for `Daemon PID:`, `Ready`, `Total records:` labels that no longer print in that shape). Point the CLI target at `--daemon status --json` and parse the structured payload instead. - cli-validation.rs RPC.1/2/4: parse the `--json` wrapper `{running, status, drives, stats}` — pid + lifecycle state (RPC.1), the tier-aware drives array (RPC.2, Parked/Cold may report 0 records), and the folded-in performance counters under `stats` (RPC.4). No more string scraping, so the checks are stable across cosmetic output changes. - 11-rpc.toml RPC.1/2/4 + 01-general.toml T169: invoke `status --json` and assert JSON keys (`"running"`, `"pid"`, `"drives"`, `"total_records"`, ...). api-validation.rs already validates the raw JSON-RPC responses, so its RPC.1-4 validators needed no change. Verified cli-validation.rs compiles clean (`cargo check` on the rust-script package); it runs live-on-Windows only, so end-to-end execution is unverified here. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Phase (B) of the
--statusrefactor. Consolidates the daemon read-only surfaces onto the newuffs-statusfmtstyling (from #527) and folds--daemon statsinto--daemon status -v.--daemon status— one command, three detail levels-v/--verbose(long): addselevated,reading_via_broker)live_update.active_loops)paths)stats(startup, records, queries, agg-cache)--json: machine-readable superset (status+drives+stats) for scripts/dashboards.Surfaces the operator fields added to
StatusResponsein #527 (git_sha,elevated,reading_via_broker,live_update,paths).--daemon statsremovedThe parser now returns a one-line redirect to
status -v/status --json(chosen over a silent alias per "no history to worry about"). Elevation gate + dispatch updated.Colour
TTY/
NO_COLOR-aware viauffs-statusfmt::Palette. Piped/redirected output stays plain — so the live-Windows benchmark/validation harnesses keep scraping the same field labels (Total records:,Queries served:,Avg query time:,Agg cache:). Those harnesses + the two CLI test definitions are updated to invokestatus -v(11-rpc.tomlalso picks up taplo's no-align normalization).Verification
All local gates green before push (host + xwin Windows clippy
--all-targets -D warnings, rustdoc-Dwarnings --document-private-items, fmt, taplo) — full 14-gate pre-push passed (147s).Follow-ups
uffs --statusonuffs-statusfmt(+-v/--json).