Skip to content

v0.4.0

Choose a tag to compare

@heyhuynhgiabuu heyhuynhgiabuu released this 18 Apr 16:45
· 35 commits to main since this release

pi-pretty v0.4.0

Summary

This release makes bundled FFF search the primary product direction for pi-pretty.

pi-pretty now owns the built-in find / grep experience directly via @ff-labs/fff-node, includes multi_grep, and documents the bundled workflow end-to-end.

What changed

  • Bundled @ff-labs/fff-node as a normal dependency instead of an optional coexistence path.
  • Restored bundled FFF-backed behavior for:
    • find
    • grep
    • multi_grep
    • /fff-health
    • /fff-rescan
  • Kept the pi-pretty-specific FFF data directory:
    • ~/.pi/agent/pi-pretty/fff/
  • Updated README to document:
    • bundled FFF ownership
    • install/use flow
    • multi_grep examples
    • FFF maintenance commands
    • the requirement not to co-load pi-fff
  • Tightened FFF/runtime typing:
    • typed CursorStore and fffFormatGrepText() against @ff-labs/fff-node
    • replaced remaining src/index.ts explicit any usage in tool wrappers with SDK/FFF-backed types
    • typed find, grep, and multi_grep params/results/render paths against Pi tool inputs and FFF result interfaces
    • removed several dead imports/constants and a non-null assertion in renderer code

Files

  • src/index.ts
  • src/fff-helpers.ts
  • test/fff-integration.test.ts
  • test/image-rendering.test.ts
  • README.md
  • package.json
  • package-lock.json

Verification

  • npm run typecheck
  • npm test ✅ (47 tests)
  • npm run lint -- --max-diagnostics=120
  • rg "\\bany\\b" src/index.ts src/fff-helpers.ts ✅ no matches

Upgrade notes

  • Use only pi-pretty for bundled FFF mode:
pi install npm:@heyhuynhgiabuu/pi-pretty
  • Do not also load pi-fff in the same Pi setup.
  • To inspect or refresh the bundled index inside Pi, use:
/fff-health
/fff-rescan