Skip to content

Releases: terraphim/terraphim-ai

v0.2.2 - Replace CLI Command with Knowledge Graph Integration

06 Oct 19:59

Choose a tag to compare

🎉 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 markdown

Features:

  • ✅ 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

22 Sep 07:35

Choose a tag to compare

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

01 May 08:40

Choose a tag to compare

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 articles to documents
  • Fix haystack path
  • Make API return proper JSON response even for errors
  • Use thesaurus in fixtures
  • Better error messages
  • Fixes
  • Integrate scorer
  • Rename Settings to DeviceSettings
  • cleanup
  • Introduce AutomataPath for easier testing and more idiomatic automata loading
  • use Document and url everywhere
  • 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 tests folder 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_types crate.
  • 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 withhttp: 0.2.11 until all crates have updated
  • persistance -> persistence
    • The server-axum folder got renamed to terraphim_server to align with the crate name. The behavior stays the same.

terraphim_types-v0.1.0

30 Apr 17:43

Choose a tag to compare

Other

  • Move types crate to crates/ folder

terraphim_settings-v0.1.0

30 Apr 17:55

Choose a tag to compare

Other

  • Prefix all crates with terraphim_ for consistency

terraphim_service-v0.1.0

30 Apr 18:21

Choose a tag to compare

Other

  • Prefix all crates with terraphim_ for consistency

terraphim_rolegraph-v0.1.0

30 Apr 17:58

Choose a tag to compare

Fixed

  • fix criterion deprecation

Other

  • Move types crate to crates/ folder
  • wip
  • cleanup
  • Introduce AutomataPath for easier testing and more idiomatic automata loading
  • use Document and url everywhere
  • 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 Id type
  • work on indexer and iteration
  • terraphim_pipeline -> terraphim_rolegraph

terraphim_persistence-v0.1.0

30 Apr 17:56

Choose a tag to compare

Other

  • Prefix all crates with terraphim_ for consistency

terraphim_middleware-v0.1.0

30 Apr 18:20

Choose a tag to compare

Other

  • Prefix all crates with terraphim_ for consistency

terraphim_config-v0.1.0

30 Apr 17:59

Choose a tag to compare

Other

  • formatting
  • Prefix all crates with terraphim_ for consistency
  • config -> terraphim_config