fix: stabilize daemon service lifecycle and align Agent Status UI (#6)

* Update Welcome page to integrate OAuth provider and adjust branding

- Added OAuthProviderButton to the Welcome component for Google authentication.
- Updated the branding from AlphaHuman to OpenHuman in the FeaturesStep component.
- Removed unnecessary Lottie animation from the Onboarding page for a cleaner layout.
- Changed the backend URL to point to the new API endpoint for TinyHumans.

* Refactor routing and sidebar components for improved clarity

- Commented out the Mnemonic route and related logic in AppRoutes for future consideration.
- Updated MiniSidebar to comment out the Invite Friends section.
- Removed unused navigation logic and upgrade call-to-action from the Home page.
- Adjusted Onboarding navigation to redirect to Home instead of Mnemonic.

* Comment out unused settings menu items for future consideration in SettingsHome component

* Add core process and RPC functionality for Alphahuman

- Introduced new binaries: `alphahuman-core` and `alphahuman-cli` for core process management and command-line interaction.
- Implemented `CoreProcessHandle` for managing the lifecycle of the core process.
- Added `core_rpc` module for handling RPC requests and responses.
- Created `core_server` module to manage core server logic and routing.
- Updated `alphahuman` commands to utilize the new RPC structure for health checks, security policies, and configuration management.
- Refactored existing code to streamline interactions with the core process and improve overall architecture.

* Update dependencies and enhance CLI functionality

- Added `clap` for command-line argument parsing in the `alphahuman-cli`.
- Updated `Cargo.lock` and `Cargo.toml` to include `clap` and its features.
- Refactored `alphahuman-cli` to utilize structured command handling with subcommands.
- Improved core process management and logging in `core_process.rs`.
- Enhanced routing and error handling in `core_server.rs` with new root and not found handlers.
- Updated various commands in `alphahuman.rs` to ensure core process is running before executing RPC calls.

* Enhance service management and CLI functionality

- Added new functions for daemon program arguments and command line construction in the service module.
- Updated macOS and Linux installation functions to dynamically generate program arguments and command lines.
- Introduced a new `Reinstall` command in the CLI for easier service management.
- Refactored service command handling to utilize local service functions for improved clarity and maintainability.

* Refactor daemon references to agent in components and hooks

- Updated terminology from "Daemon" to "Agent" in MiniSidebar, DaemonHealthPanel, and TauriCommandsPanel for consistency.
- Modified useDaemonHealth hook to probe agent status and handle agent lifecycle management.
- Introduced new agent server status interface and function in Tauri commands for improved status checking.
- Adjusted related comments and error handling to reflect the changes in terminology.

* Refactor Home component and enhance macOS service management

- Updated Home component to navigate to in-app conversations instead of opening a Telegram bot link.
- Improved macOS service management by implementing modern lifecycle commands and adding compatibility fallbacks for service control.
- Introduced new utility functions for handling macOS GUI domain and service targets.

* Refactor Home component to enhance navigation

- Removed SkillsGrid component and replaced it with a button that navigates to the Skills page.
- Improved layout with additional margin for better spacing in the Home component.
This commit is contained in:
Steven Enamakel
2026-03-24 21:04:19 -07:00
committed by GitHub
parent 248921606e
commit 37318bc73d
25 changed files with 2033 additions and 696 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
export const BACKEND_URL = import.meta.env.VITE_BACKEND_URL || 'https://api.alphahuman.xyz';
export const BACKEND_URL = import.meta.env.VITE_BACKEND_URL || 'https://api.tinyhumans.ai';
export const TELEGRAM_BOT_USERNAME =
import.meta.env.VITE_TELEGRAM_BOT_USERNAME || 'alphahumanx_bot';
+2 -2
View File
@@ -46,7 +46,7 @@ const handleAuthDeepLink = async (parsed: URL) => {
return;
}
console.log('[DeepLink] Received auth token');
console.log('[DeepLink] Received auth token', token);
try {
await invoke('show_window');
@@ -271,7 +271,7 @@ const handleDeepLinkUrls = async (urls: string[] | null | undefined) => {
try {
const parsed = new URL(url);
if (parsed.protocol !== 'alphahuman:') {
if (parsed.protocol !== 'alphahuman:' && parsed.protocol !== 'openhuman:') {
return;
}
+12
View File
@@ -287,6 +287,11 @@ export interface ServiceStatus {
details?: string | null;
}
export interface AgentServerStatus {
running: boolean;
url: string;
}
export interface ConfigSnapshot {
config: Record<string, unknown>;
workspace_dir: string;
@@ -564,6 +569,13 @@ export async function alphahumanServiceUninstall(): Promise<CommandResponse<Serv
return await invoke('alphahuman_service_uninstall');
}
export async function alphahumanAgentServerStatus(): Promise<CommandResponse<AgentServerStatus>> {
if (!isTauri()) {
throw new Error('Not running in Tauri');
}
return await invoke('alphahuman_agent_server_status');
}
export async function runtimeListSkills(): Promise<SkillSnapshot[]> {
if (!isTauri()) {
throw new Error('Not running in Tauri');