Crate terraphim_update

Crate terraphim_update 

Source
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§

TerraphimUpdater
Updater client for Terraphim AI binaries
UpdateAvailableInfo
Information about an available update (for callback)
UpdaterConfig
Configuration for the updater

Enums§

UpdateStatus
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)