Releases: terraphim/terraphim-ai
Releases · terraphim/terraphim-ai
v0.2.2 - Replace CLI Command with Knowledge Graph Integration
🎉 New Features
Replace CLI Command
Added intelligent text replacement functionality to the terraphim-tui CLI using knowledge graph thesaurus and Aho-Corasick pattern matching.
Usage:
# Replace npm with bun
terraphim-tui replace "npm"
# Replace with specific role
terraphim-tui replace "yarn install" --role "Engineer"
# Output as markdown links
terraphim-tui replace "pnpm" --format markdownFeatures:
- ✅ Intelligent text replacement using knowledge graph synonyms
- ✅ Aho-Corasick LeftmostLongest matching (longer patterns win)
- ✅ Multiple output formats (PlainText, MarkdownLinks, WikiLinks, HTMLLinks)
- ✅ Package manager migration support (npm/yarn/pnpm → bun)
- ✅ Role-specific thesaurus support
- ✅ Offline mode operation with dynamic thesaurus building
Implementation:
- Added Replace variant to Command enum in terraphim-tui
- Comprehensive test suite with 8 test scenarios
- Documentation updates across @memories.md, @scratchpad.md, @lessons-learned.md
- Knowledge graph integration with docs/src/kg/bun.md
🐛 Bug Fixes
Clippy Warnings Resolution
- Fixed collapsible else-if in terraphim_server/build.rs
- Replaced bool assert_eq! with assert! in test files
- Fixed field reassignment with Default pattern
- Removed needless borrows for generic args
- Replaced len() > 0 with !is_empty() checks
All pre-commit checks passing ✅
📚 Documentation
- CLI implementation patterns documented in @lessons-learned.md
- LeftmostLongest matching strategy explained
- OpenDAL warnings documented (informational only)
- Complete architecture flow diagrams
🔗 Links
- Commit: 0d83dca
- Branch: fix_content
- Files Changed: 12 files (+1844, -14)
v0.2.1: Haystack Core Infrastructure
What's New
🚀 Haystack Core Infrastructure
- Added crate with trait for search integrations
- Implemented proper test functions in TUI extract feature tests
- Fixed clippy warnings across multiple crates
Improvements
- Enhanced test coverage with unit tests for helper functions
- Cleaned up code formatting and linting issues
- Improved error handling patterns
Technical Details
- New trait enables pluggable search backends
- Better separation of concerns between search providers
- Standardized Document type mapping across providers
This release lays the foundation for the upcoming Atlassian integrations.
terraphim_server-v0.1.0
Fixed
- fix some tests
- fix lints
- fix test
Other
- Prefix all crates with
terraphim_for consistency config->terraphim_config- Move types crate to
crates/folder - Use local haystack
- cleanup
- work on scorer
- wip
- Change API endpoint from
articlestodocuments - Fix haystack path
- Make API return proper JSON response even for errors
- Use thesaurus in fixtures
- Better error messages
- Fixes
- Integrate scorer
- Rename
SettingstoDeviceSettings - cleanup
- Introduce
AutomataPathfor easier testing and more idiomatic automata loading - use
Documentandurleverywhere - merge article and document
- Make document body and article id non-optional
- Fix ordering; better logging
- cleanup
- update terraphim service interface
- Move shared logic to
terraphim_service - Fix config tests (#59)
- test setup and run tests sequentially
- work on tests
- integrate thesaurus
- more log messages
- cleanup
- build fixes
- api fixes
- clean up imports
- refactor
- Split up into indexer and kb_builder middleware
load_automata->load_thesaurus- Refactor config and thesaurus handling
- rebase
- cleanup
- Move tests to
testsfolder as they are integration tests - Fix server start
- Two other methods to start axum server before tests - using tokio OnceCell and ctor
- Axum start before test
-
- Move core types into
terraphim_typescrate.
- Move core types into
- messing with Layerfile
- clippy and formatter applied
- clippy and formatter
- clippy and formatter
- Added article cache into global config state
- Readme update
- Load from default config if config doesn't exist
- Improve settings handling
- cargo fmt
- All tests pass and test dataset cloned before test
- POST return empty
- Tests are green
- Takes default settings from CARGO_MANIFEST_DIR
- Embed default config
- Fixed build
- Pin dependencies to versions that are compatible with
http: 0.2.11until all crates have updated - persistance -> persistence
-
- The
server-axumfolder got renamed toterraphim_serverto align with the crate name. The behavior stays the same.
- The
terraphim_types-v0.1.0
Other
- Move types crate to
crates/folder
terraphim_settings-v0.1.0
Other
- Prefix all crates with
terraphim_for consistency
terraphim_service-v0.1.0
Other
- Prefix all crates with
terraphim_for consistency
terraphim_rolegraph-v0.1.0
Fixed
- fix criterion deprecation
Other
- Move types crate to
crates/folder - wip
- cleanup
- Introduce
AutomataPathfor easier testing and more idiomatic automata loading - use
Documentandurleverywhere - merge article and document
- Make document body and article id non-optional
- Extend rank functionality
- plan out scorer
- linting
- Fix ordering; better logging
- cleanup
- Less verbose output
- clippy
- build fixes
- api fixes
- docs
- clippy
- introduce
Idtype - work on indexer and iteration
terraphim_pipeline->terraphim_rolegraph
terraphim_persistence-v0.1.0
Other
- Prefix all crates with
terraphim_for consistency
terraphim_middleware-v0.1.0
Other
- Prefix all crates with
terraphim_for consistency
terraphim_config-v0.1.0
Other
- formatting
- Prefix all crates with
terraphim_for consistency config->terraphim_config