github Hiro-Chiba/fileview v2.7.0
v2.7.0 - One-shot CLI helpers for AI workflows

latest releases: v3.0.0, v2.8.4, v2.8.3...
5 months ago

Three small non-interactive flags that let AI agents and shell scripts talk to fileview without spinning up the TUI or the MCP server.

Added

  • fv --tokens <path> prints a cl100k_base token estimate for the file to stdout and exits. Useful for budgeting context before assembling a prompt. Falls back to the chars / 4 heuristic when the ai feature is off.
  • fv --snapshot-create <name> captures a working-tree manifest (path / size / mtime, dotfiles skipped) to .fileview/snapshots/<name>.json. fv --snapshot-diff <name> then prints + added, - removed, and M modified lines for every change since the snapshot. Lets a long-running agent answer "what have I touched since this session started" without committing intermediate state.
  • fv --watch <path> [--watch-timeout-secs N] blocks until the path is modified externally, prints the changed paths, and exits. Exit code 0 on change, 1 on timeout. Drains the initial filesystem-event burst (notably macOS FSEvents replays) before waiting so a freshly created file does not register as an immediate "change".

Internal

  • New modules integrate::snapshot and integrate::watch.
  • 21 new tests across unit (src/integrate/) and e2e (tests/e2e/).

What's Changed

  • Add --tokens <path> CLI for one-shot token estimates (#204)
  • Add --snapshot-create / --snapshot-diff for ad-hoc working-tree diffs (#205)
  • Add --watch <path> for block-until-changed detection (#206)
  • Release 2.7.0: document the new flags (#207)

Full Changelog: v2.6.0...v2.7.0

Don't miss a new fileview release

NewReleases is sending notifications on new releases.