Expand description
Shared auto-update functionality for Terraphim AI binaries
This crate provides a unified interface for self-updating Terraphim AI CLI tools using GitHub Releases as a distribution channel.
Modules§
- config
- Configuration types for automatic update functionality
- downloader
- Download functionality with retry logic and exponential backoff
- notification
- Notification and user prompt system for updates
- platform
- Platform-specific paths and utilities
- rollback
- Backup and rollback functionality for safe updates
- scheduler
- Tokio-based update scheduler
- signature
- Signature verification for downloaded updates
- state
- State persistence for update history
Structs§
- Terraphim
Updater - Updater client for Terraphim AI binaries
- Update
Available Info - Information about an available update (for callback)
- Updater
Config - Configuration for the updater
Enums§
- Update
Status - Represents the status of an update operation
Functions§
- backup_
binary - Backup the current binary with a version suffix
- check_
for_ updates - Convenience function to create an updater and check for updates
- check_
for_ updates_ auto - Check for updates automatically using self_update backend
- check_
for_ updates_ startup - Check for updates on application startup
- rollback
- Rollback to a previous version from backup
- start_
update_ scheduler - Start the update scheduler
- update_
binary - Convenience function to create an updater and install updates
- update_
binary_ silent - Convenience function with progress disabled (useful for automated environments)