mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 13:32:23 +00:00
* Refactor import statement in store configuration for clarity - Combined the import of `configureStore` and `Middleware` from '@reduxjs/toolkit' into a single line for improved readability. * Add invite codes feature with onboarding step and dedicated page Implement frontend for the invite codes system: users get 5 invite codes to share, can redeem codes for free credits, and new users are prompted during onboarding (step 1) to enter an invite code. - Add invite types, API service, and Redux slice - Add InviteCodeStep as first onboarding step (skip-able) - Add /invites page with redeem input and code list with copy buttons - Add "Invite Friends" nav item to sidebar - Update UserReferral interface to match backend PR #418 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Update reqwest dependency to enable HTTP/2 support and switch to rustls TLS in network requests - Modified Cargo.toml to include the "http2" feature for reqwest. - Updated network request implementations in bridge and ops_net modules to use rustls TLS instead of native TLS for improved security and compatibility. * Update event loop to handle async tool calls and improve message processing - Introduced a `PendingToolCall` struct to manage in-flight async tool calls. - Enhanced the event loop to check for completion of async tool calls and handle timeouts. - Updated message handling to support async tool execution, allowing the event loop to process other messages concurrently. - Refactored `handle_tool_call` to differentiate between synchronous and asynchronous tool results. - Modified JavaScript fetch functions to use async/await for improved readability and performance. * Enhance skill instance with initial ping verification and job driving - Added an immediate ping to verify the connection health during skill execution, logging the result or any errors encountered. - Updated the event loop to drive jobs asynchronously after the initial ping check. - Removed unnecessary logging statements from the network operations for cleaner output. * Update subproject commit reference in skills directory --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
104 lines
3.5 KiB
TOML
104 lines
3.5 KiB
TOML
[package]
|
|
name = "AlphaHuman"
|
|
version = "0.30.0"
|
|
description = "AlphaHuman - AI-powered Super Assistant"
|
|
authors = ["AlphaHuman"]
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
# The `_lib` suffix may seem redundant but it is necessary
|
|
# to make the lib name unique and wouldn't conflict with the bin name.
|
|
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
|
name = "tauri_app_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
# Tauri core and plugins
|
|
tauri = { version = "2", features = ["tray-icon", "macos-private-api"] }
|
|
tauri-plugin-opener = "2"
|
|
tauri-plugin-deep-link = "2.0.0"
|
|
tauri-plugin-os = "2"
|
|
# tauri-plugin-autostart moved to desktop-only target section
|
|
# tauri-plugin-notification moved to desktop-only target section
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
# HTTP client: rustls for cross-platform TLS (Android), native-tls for desktop skill HTTP
|
|
# (some APIs/CDNs use TLS configs that rustls can't negotiate — native-tls uses OS TLS stack)
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "blocking", "rustls-tls", "native-tls", "stream", "http2"] }
|
|
|
|
# Async runtime
|
|
tokio = { version = "1", features = ["full", "sync"] }
|
|
|
|
# keyring moved to desktop-only target section (not supported on Android/iOS)
|
|
|
|
# Concurrency utilities
|
|
once_cell = "1.19"
|
|
parking_lot = "0.12"
|
|
|
|
# Logging
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
|
|
# AI module dependencies
|
|
base64 = "0.22"
|
|
aes-gcm = "0.10"
|
|
argon2 = "0.5"
|
|
rand = "0.8"
|
|
dirs = "5"
|
|
sha2 = "0.10"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
|
|
# V8 JavaScript runtime moved to desktop-only (not available on Android/iOS)
|
|
|
|
# WebSocket client for TDLib connections
|
|
tokio-tungstenite = { version = "0.24", features = ["rustls-tls-webpki-roots"] }
|
|
|
|
# HTTP streaming support for fetch polyfill
|
|
futures = "0.3"
|
|
|
|
# Embedded SQLite for skill databases
|
|
rusqlite = { version = "0.31", features = ["bundled"] }
|
|
|
|
# Date/time utilities
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# Cron expression parsing for scheduled skill tasks
|
|
cron = "0.12"
|
|
|
|
# Stream/Sink utilities for WebSocket and HTTP streaming
|
|
futures-util = "0.3"
|
|
|
|
# Android uses a simpler approach - no persistent Socket.io (use web socket from frontend)
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
# Android logging (routes Rust `log` crate to logcat)
|
|
android_logger = "0.14"
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
keyring = "3"
|
|
tauri-plugin-autostart = "2"
|
|
tauri-plugin-notification = "2"
|
|
|
|
# QuickJS JavaScript runtime (via quickjs-rs)
|
|
# Only available on desktop - prebuilt binaries don't exist for Android/iOS
|
|
rquickjs = { version = "0.11", features = ["futures", "macro", "loader", "parallel"] }
|
|
|
|
# TDLib Rust bindings (desktop only - downloads prebuilt TDLib for linking)
|
|
# On macOS, the bundled dylib is replaced with a source-built version (see build.rs)
|
|
# to ensure macOS 10.15 deployment target compatibility.
|
|
tdlib-rs = { version = "1.2", features = ["download-tdlib"] }
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.build-dependencies]
|
|
# TDLib build configuration (download-tdlib for all desktop platforms)
|
|
tdlib-rs = { version = "1.2", features = ["download-tdlib"] }
|
|
|
|
[features]
|
|
# This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!!
|
|
custom-protocol = ["tauri/custom-protocol"]
|