mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 15:03:57 +00:00
efd0780269e61925f43c00d7378cb22e2daeefe1
59
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
f4801726f3 |
Fix async tool calls not fetching data in QuickJS runtime (#102)
* Implement data synchronization feature in SkillManagementPanel - Added a new `handleSync` function to trigger manual synchronization for skills, enhancing user control over data updates. - Integrated skill state management to track synchronization progress, errors, and completion status. - Updated the UI to display synchronization status, including progress indicators and error messages, improving user feedback during sync operations. - Enhanced the SkillManager and SkillRuntime classes to support the new sync functionality, ensuring proper handling of sync requests and lifecycle hooks. Updated subproject commit reference in the skills directory. * Implement Conversations UI with two-panel thread layout and resizable sidebar Add full Conversations feature: thread types, API service, Redux slice, and a two-panel page with a draggable resize handle. Uncomment Conversations nav item in MiniSidebar and enable prefix-based active state matching. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add Intelligence page and integrate intelligence stats hook - Introduced a new Intelligence page with a skill management interface, allowing users to view and manage skills. - Implemented the `useIntelligenceStats` hook to fetch and display session statistics, memory files, and entity counts. - Enhanced the SkillsGrid component to utilize shared skill icons and status displays, improving UI consistency. - Added functionality for skill synchronization and management, including action buttons for skill setup and syncing. - Updated the Conversations page to support sending messages with optimistic UI updates, enhancing user experience. This commit lays the groundwork for a more interactive and informative intelligence management feature. * Update subproject commit reference in skills directory and enhance fetch handling in bootstrap.js - Updated the subproject commit reference in the skills directory to the latest version. - Modified the fetch implementation in bootstrap.js to ensure options are sent as a JSON string and to parse the JSON response, improving data handling and error management. * Update subproject commit reference in skills directory and comment out Conversations nav item in MiniSidebar - Updated the subproject commit reference in the skills directory to the latest version. - Commented out the Conversations navigation item in MiniSidebar for future implementation. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|
|
4a8c3265a9 |
Refactor API documentation and improve code formatting
- Simplified JSON formatting in `.mcp.json` for better readability. - Updated API reference documentation for team management endpoints to use consistent JSON formatting. - Enhanced code readability in various components by standardizing formatting and removing unnecessary line breaks. - Improved user interface elements in TeamInvitesPanel and TeamManagementPanel for better clarity and consistency. |
||
|
|
e23b3643bd |
Add invite codes feature (#94)
* 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> |
||
|
|
561da4a0b4 |
feat: Implement complete team management system with role-based access control (#92)
* chore: bump version to 0.34.0 [skip ci] * chore: bump version to 0.35.0 [skip ci] * feat: add .mcp.json for MCP server configuration - Introduced `.mcp.json` with server details for managing MCP integrations - Defines `readme` server with HTTP type and URL endpoint configuration * chore: bump version to 0.36.0 [skip ci] * feat: implement complete team management flow with role-based access control - Add comprehensive team management system with proper role handling - Create TeamManagementPanel for team-specific management hub - Fix role case sensitivity issues (API returns lowercase, UI expects uppercase) - Implement proper team context routing for members and invites panels - Add teams API reference documentation for development reference - Update navigation hooks to support team management routing - Apply consistent max-w-md width constraints across all team panels - Support team switching, creation, joining, and leaving functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: resolve role dropdown case sensitivity issue in TeamMembersPanel - Fix dropdown showing incorrect default role due to case mismatch - API returns lowercase roles ("admin", "member") but UI expects uppercase - Normalize member.role to uppercase in dropdown value and badge display - Ensures dropdown correctly shows actual member role instead of defaulting to first option 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: correct navigation flow from team management members/invites back to team management - Fix route detection to prioritize team management paths over regular team paths - Ensure back button from /team/manage/{id}/members goes to /team/manage/{id} instead of /team - Ensure back button from /team/manage/{id}/invites goes to /team/manage/{id} instead of /team - Replace unreliable document.referrer with proper URL path pattern matching - Add proper hierarchical navigation for team management flow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: add loading states for team members and invites pages - Add separate loading states (isLoadingMembers, isLoadingInvites) to team slice - Display spinner with "Loading members..." message while fetching team members - Display spinner with "Loading invites..." message while fetching team invites - Hide member count and show loading UI during fetch operations - Improve user experience by providing visual feedback during API calls - Ensure proper loading state management in Redux reducers 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * improve: enhance loading UX for team members and invites - Show existing data during refresh instead of hiding everything - Add subtle "Refreshing members..." indicator when data exists - Add subtle "Refreshing invites..." indicator when data exists - Only show full loading screen when no existing data (first load) - Use amber color for refresh indicators to distinguish from main loading - Maintain member/invite count visibility during refresh operations - Significantly better user experience with non-blocking refresh states 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: implement complete team edit and delete functionality - Add Team Settings button with modal to edit team name using updateTeam() API - Add Delete Team button with confirmation modal using deleteTeam() API - Prevent deletion of personal teams (safety check) - Include proper error handling with user-friendly messages - Add loading states for update/delete operations - Modal overlays with proper styling and responsive design - Navigate back to teams list after successful deletion - Refresh teams data after successful name update - Complete the remaining team management API integrations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: add confirmation modals for all critical team management actions - Add confirmation modal for removing team members with impact explanation - Add confirmation modal for changing member roles with permission details - Add confirmation modal for revoking invite codes with validation info - Include specific warnings for admin role changes (granting/removing admin rights) - Display invite codes in confirmation modal for clarity - Maintain loading states during confirmation flow - Enhance user safety by preventing accidental critical actions - Follow consistent modal design patterns across all confirmations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: add visual indicators for used/expired invite codes - Add status detection for expired and used up invites - Implement visual styling with reduced opacity for inactive invites - Add status badges (Expired/Used Up) next to invite codes - Disable copy button for inactive invites with visual feedback - Restrict revoke button to active invites only - Improve invite code styling based on status 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: add confirmation modal for leaving teams - Add confirmation modal for team leave action matching other critical actions - Update handleLeaveTeam to show confirmation instead of immediate action - Add new confirmLeaveTeam function for actual leave operation - Include loading states and proper error handling in leave button - Show warning about losing access and needing new invite to rejoin 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Steven Enamakel <31011319+senamakel@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
4be6693599 |
Fix OAuth credential lifecycle and JWT token sync for skills (#82)
* Refactor BillingPanel to use updated user usage structure - Changed the usage data source in BillingPanel from activeTeam to user, aligning with the new IUserUsage interface. - Updated the display of token usage percentage and progress bar to reflect the new usage metrics (spentThisCycleUsd and cycleBudgetUsd). - Cleaned up commented-out code and improved layout for better readability and user experience. * Update OAuth credential handling in SkillManager and related state management - Introduced `setSkillOAuthCredential` action to manage OAuth credentials in the Redux store. - Enhanced `SkillManager` to persist and restore OAuth credentials during skill setup and disconnection. - Updated `SkillState` interface to include `oauthCredential` for better state management. - Refactored related components to ensure seamless integration of OAuth handling. - Updated subproject commit reference in the skills directory. * Update connection indicator messages and enhance OAuth credential handling - Changed the default description in the ConnectionIndicator component to refer to "Your device" instead of "Your browser." - Removed hardcoded connection indicator in GetStartedStep to use the updated description. - Improved OAuth credential management by restoring persisted credentials on startup and ensuring they are cleared from the store when revoked. - Updated HTTP client configuration to use native TLS for better compatibility across platforms. - Cleaned up Cargo.lock and Cargo.toml by removing unused dependencies and ensuring proper feature flags for reqwest. * Enhance OAuth credential management in QjsSkillInstance - Removed redundant comment regarding OAuth credential restoration. - Implemented lazy-loading of persisted OAuth credentials before tool calls. - Cleared OAuth credentials from memory upon skill stop and marked as disconnected in the store. - Updated comments for clarity on credential handling during OAuth operations. * Refactor JWT token retrieval to use session token method - Updated the JWT token retrieval in multiple functions to utilize the new `get_session_token` method from `__ops`, enhancing security and consistency in token management. - Added the `get_session_token` function to the operations core for improved session handling. * update bootstrap * Add middleware to sync JWT token with Rust SESSION_SERVICE - Introduced `syncTokenToRust` middleware to synchronize the JWT token with the Rust SESSION_SERVICE whenever the `setToken` action is dispatched or the auth state is rehydrated. - Enhanced the `get_session_token` function in Rust to log the retrieved token for better debugging and monitoring. - Updated Redux store configuration to include the new middleware, improving token management and security. * update skills * Update subproject commit reference in skills directory to indicate a dirty state * Remove unused ConnectionIndicator import from GetStartedStep component |
||
|
|
27b5c2800e |
Add user-facing error handling with opt-in reporting (#81)
* chore: add CI secrets management and local testing script - Added ci-secrets.example.json to provide a template for CI secrets configuration. - Introduced test-ci-local.sh script to facilitate local testing of the package-and-publish workflow using act. - Updated .gitignore to exclude the actual ci-secrets.json file containing sensitive tokens. * Add user-facing error handling system with opt-in reporting Intercept all errors (React, global JS, skill runtime) and show non-blocking notifications that let users inspect the exact sanitized payload before choosing to report or dismiss. Errors are no longer auto-sent to Sentry. - Add error report queue (errorReportQueue.ts) with subscribe/notify pattern - Add ErrorReportNotification rendered in isolated React root (survives crashes) - Add ErrorFallbackScreen for catastrophic React boundary errors - Wire Sentry beforeSend to queue errors instead of auto-sending - Add skill runtime error capture via runtime:skill-status-changed listener Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove conflicting Telegram API fields from ci-secrets.example.json * Strip sensitive fields from exception before queuing for user review Sanitize stacktrace frames to remove local variables (vars), source code context lines (context_line, pre_context, post_context), and mechanism.data. Only safe location metadata (filename, function, lineno, colno, in_app) is retained in the sanitized event shown to the user. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Compute analyticsEnabled on each render instead of caching with useMemo The Report button now reflects the current analytics setting immediately when the user toggles it in Settings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Refactor components for improved readability and consistency - Adjusted formatting in ErrorFallbackScreen and ErrorReportNotification components for better JSX structure. - Removed unnecessary line breaks in Home component for cleaner layout. - Streamlined error handling logic in SkillProvider for clarity. - Enhanced errorReportQueue with consistent object formatting for better maintainability. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|
|
5717b9993e |
Remove local LLM, route AI to cloud backend (#78)
* Remove ModelProvider and related components to streamline application architecture - Deleted the ModelProvider component and its associated hooks and state management, simplifying the application structure. - Removed ModelDownloadProgress component from Home and Welcome pages, eliminating unnecessary model download handling. - Updated App component to remove ModelProvider wrapping, ensuring a cleaner provider hierarchy. - Adjusted Redux store configuration by removing model-related state management, enhancing overall performance and maintainability. * Update subproject commit and refactor Model Bridge API to route requests to cloud backend - Updated the subproject commit reference in the skills directory. - Refactored the Model Bridge API to replace local inference methods with cloud-based requests for text generation and summarization, enhancing functionality and scalability. * Update skills submodule with prettier formatting fixes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|
|
83cfa95378 |
Add left mini sidebar with page-based settings (#79)
* Add MiniSidebar component and update routing for Conversations and Agents pages - Introduced a new MiniSidebar component for navigation, enhancing user experience. - Updated App component to include MiniSidebar and adjusted layout for better responsiveness. - Added new routes for Conversations and Agents pages, ensuring they are protected routes. - Refactored Settings route to render as a page instead of a modal, streamlining settings management. - Removed obsolete SettingsModal and SettingsLayout components to clean up the codebase. * Update layout and styles in Settings components for improved user experience - Updated the `MiniSidebar` component to enhance navigation with adjusted z-index and background styles. - Refactored `SettingsHome` and `SettingsHeader` components to improve layout and responsiveness. - Added max-width constraints to various elements for better alignment and presentation. - Cleaned up commented-out code in `MiniSidebar` for clarity. - Updated subproject commit reference in the skills directory. |
||
|
|
ab9e7b7a0f |
Refactor code for improved readability and functionality
- Simplified error handling in `useModelStatus` and `ModelProvider` by consolidating dispatch calls. - Streamlined greeting array initialization in `Welcome` component for better readability. - Enhanced `SkillProvider` to listen for skill state changes and dispatch updates accordingly. - Updated Rust backend to sync published state and emit events for skill state changes. - Introduced a `dirty` flag in `SkillState` to track modifications for efficient state management. |
||
|
|
aeb9626db1 |
Update .gitignore, refactor UI components, and enhance model download logic
- Added CLAUDE.local.md to .gitignore to prevent local configuration files from being tracked. - Refactored the App component layout for improved responsiveness and user experience. - Updated ModelDownloadProgress to include a new `isDownloaded` state for better visibility of download status. - Simplified SettingsHome by commenting out unused functions and improving the organization of settings options. - Adjusted PrivacyPanel to ensure analytics settings are correctly evaluated. - Modified various page components to use `min-h-full` for consistent height management across the application. |
||
|
|
14b330a17d |
Integrate ModelProvider for enhanced model management and state synchronization
- Introduced a new `ModelProvider` component to manage model download and status synchronization with the Rust backend. - Updated the `useModelStatus` hook to utilize Redux for state management, improving error handling and download control. - Refactored the `App` component to include `ModelProvider`, ensuring proper context for model-related operations. - Simplified the `Welcome` component by removing auto-trigger logic for model downloads, relying on the new provider for state management. - Added a new `modelSlice` to the Redux store to handle model status and actions, enhancing overall state management. |
||
|
|
e70b3d1ab9 |
Enhance model download functionality and UI feedback
- Added a new `downloaded` status to the `ModelStatus` interface to track if the model file has been downloaded. - Implemented `startDownload` function in the `useModelStatus` hook to initiate model downloads without loading into memory. - Updated the `Welcome` component to automatically trigger model downloads on desktop and provide visual feedback on download progress. - Enhanced the Tauri backend with a new `model_start_download` command to support the download process. - Improved the model status management to reflect the current download state and handle errors effectively. |
||
|
|
3fb5e1dd11 |
feat: local model support and SocketManager WebSocket transport (#36)
* chore: add simulation function for deep link testing in development - Introduced a simulation function for deep links in the development environment to facilitate testing. - The function allows developers to simulate deep link URLs without affecting production behavior. * feat: implement QuickJS skill runtime integration - Added a new QuickJS skill runtime engine to manage skill execution within the application. - Introduced commands for skill management, including discovery, starting, stopping, and querying skill states. - Implemented a SQLite database bridge for each skill to handle data storage. - Enhanced the application structure with new modules for runtime management, skill instances, and manifest parsing. - Updated dependencies in Cargo.toml and Cargo.lock to support new features. * refactor: improve code readability and formatting in DownloadScreen and deviceDetection - Enhanced the button className formatting in DownloadScreen for better readability. - Reformatted the fetchLatestRelease and parseReleaseAssetsByArchitecture functions in deviceDetection for improved clarity and maintainability. - Utilized multiline formatting for complex conditions to enhance code structure. * feat: integrate Rust-native Socket.io client for persistent connections - Implemented a SocketManager in Rust to handle Socket.io connections, ensuring persistence across app backgrounding. - Updated SocketProvider to connect/disconnect using Rust-native methods in Tauri mode. - Enhanced Tauri event listeners for socket state changes and server events. - Refactored socket handling logic to differentiate between web and Tauri modes, improving maintainability and clarity. - Added new commands for connecting, disconnecting, and emitting events through the Rust socket. * refactor: remove Telegram login commands and related functionality - Deleted the startTelegramLogin and startTelegramLoginWithUrl functions from the Tauri commands. - Removed associated references in the Rust command module and utility file. - This cleanup simplifies the codebase by eliminating unused Telegram login features. * feat: add cron scheduling functionality for skills - Introduced a new CronScheduler to manage scheduled tasks for skills, allowing for cron expression parsing and execution. - Added a cron bridge to expose scheduling methods to skill contexts, enabling skills to register, unregister, and list cron schedules. - Updated the RuntimeEngine to initialize and manage the cron scheduler, ensuring it runs in the background. - Enhanced skill instances to support cron scheduling through a new BridgeDeps structure. - Updated dependencies in Cargo.toml and Cargo.lock to include the cron crate. * feat: add Android support and enhance dependencies - Introduced Android-specific build and run commands in package.json for Tauri. - Updated Cargo.toml to include OpenSSL for Android and adjusted reqwest for cross-platform TLS support. - Added new mobile capabilities configuration for Android and iOS. - Implemented a foreground service in the Android app to maintain the Rust backend process. - Added various Android resources including layouts, icons, and notification handling. - Updated Cargo.lock with new dependencies for improved functionality. * chore: update .gitignore and AndroidManifest.xml for deep link support - Added .kotlin and .cargo to .gitignore to exclude Kotlin and Cargo build artifacts. - Updated AndroidManifest.xml with comments for the deep link plugin, clarifying its auto-generated nature. * feat: enhance store configuration for development testing - Added functionality to auto-inject a JWT token from environment variables during development. - Implemented automatic onboarding for users once their profile is fetched, improving the testing experience. * feat: enhance socket connection handling and add Android logging support - Updated the Rust socket connection command to accept an optional URL parameter, allowing for dynamic backend URL configuration. - Integrated Android logging capabilities using the android_logger crate, ensuring logs are properly routed to logcat. - Improved error handling in the SocketManager to log connection errors and successful connections for better debugging. * feat: implement notification permission handling and enhance foreground service in Android - Added runtime permission request for POST_NOTIFICATIONS in MainActivity to comply with API 33+ requirements. - Updated RuntimeService to specify foreground service type for API 34+ compatibility. - Improved logging levels in the Rust backend for better debugging and monitoring of socket connections and skill discovery. * feat: integrate QuickJS skill management and service - Added QuickJS skill hooks for retrieving and managing QuickJS skills from Redux. - Implemented a QuickJS service to handle skill lifecycle, preferences, and IPC calls with the Rust backend. - Enhanced the skills state in Redux to include QuickJS skills, enabling better management and state tracking. - Updated the store configuration to persist QuickJS skills state across sessions. - Introduced new commands in the Rust backend for enabling/disabling skills and managing preferences. - Improved the SkillProvider to initialize the QuickJS service during app startup. * refactor: transition skill management to QuickJS runtime - Removed legacy skill catalog and loading logic, replacing it with QuickJS runtime integration for skill discovery and management. - Updated SkillProvider to utilize QuickJS for skill registration and lifecycle management. - Simplified skill data handling by directly invoking the Rust backend for skill operations. - Enhanced error handling and logging for skill loading processes. - Cleaned up unused interfaces and functions related to previous skill management methods. * refactor: remove unused skill commands and plugins - Deleted the skills command module and related functions to streamline the codebase. - Removed dependencies on the tauri-plugin-shell and other unused plugins from Cargo.toml and Cargo.lock. - Updated the authentication module by removing the exchange_token function and its associated structures. - Simplified the capabilities configuration by eliminating shell-related permissions. - Enhanced the runtime engine to support new JSON-RPC commands for skill data management. * feat: expose whitelisted environment values to skills - Added `platform.env(key)` function to retrieve whitelisted environment values for skills. - Implemented `get_skill_env` function to provide access to `BACKEND_URL` and `PLATFORM`. - Updated `get_backend_url` to check for `VITE_BACKEND_URL` before falling back to `BACKEND_URL`. - Enhanced the QuickJS runtime to support the new environment functionality. * feat: fix skills enable/disable flow, setup pipeline, and status derivation - Add SkillSetup struct to Rust manifest and include setup field in discovery response so the frontend knows which skills need setup - Map setup field in SkillProvider discoverSkills() - Fix SkillsGrid to use real hasSetup from manifest instead of hardcoding false - Add contextual Enable/Setup/Configure/Retry buttons in management modal - Add status indicator dots to compact skill table rows - Fix deriveConnectionStatus to return "connected" for ready skills with completed setup that don't push host state (e.g. cron-based skills) - Add select option renderer in SkillManagementPanel for non-boolean options - Add dotenvy crate to load .env file at Rust startup so env vars like VITE_BACKEND_URL are available to the runtime engine and skills Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat: add platform support for skills and enhance manifest handling - Introduced platform filtering for skills in the SkillManifest, allowing skills to specify supported platforms. - Updated QuickJSManifest and runtime engine to handle platform checks, ensuring skills are only loaded on compatible platforms. - Added new build and watch commands for skills in package.json to streamline development. - Enhanced the Rust backend to log unsupported skills based on platform restrictions. * feat: update skills submodule with TypeScript pipeline and test harness Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat: transition from QuickJS to V8 runtime for skill management - Replaced QuickJS with V8 (via deno_core) for improved JavaScript execution and WASM support. - Updated skill management logic to utilize the new V8 runtime, including changes to the RuntimeEngine and skill instance handling. - Enhanced manifest handling to support the new runtime and added platform compatibility checks. - Introduced new dependencies and updated Cargo.toml to reflect changes in the skill execution environment. - Refactored related modules and commands to align with the V8 integration, ensuring a seamless transition for skill operations. * refactor: clean up dead code in IdbStorage and enhance ops module - Removed unused `#[allow(dead_code)]` annotations from the IdbStorage struct and its methods to improve code clarity. - Introduced new timer and WebSocket state management structures in the ops module, laying groundwork for future enhancements. - Added timer and WebSocket operation functions, including `op_timer_start`, `op_timer_cancel`, and WebSocket connection handling, to support asynchronous operations. * feat: implement high-level TDLib service with V8 integration - Introduced a new `TdlibV8Service` to manage TDLib client instances using the V8 runtime. - Added a `MockTdClient` for development and testing, simulating TDLib responses for various queries. - Enhanced the bootstrap script to initialize and manage TDLib clients, including methods for sending queries and retrieving authentication states. - Updated the `mod.rs` file to include the new service module and improved documentation for clarity. - Refactored existing code to support the new TDLib integration, ensuring a seamless experience for skill management. * refactor: update V8 runtime integration and platform handling - Updated the V8 runtime integration to ensure it is only available on desktop platforms, with appropriate error handling for mobile. - Refactored the `SocketManager` and command implementations to conditionally include desktop-only features, enhancing clarity and maintainability. - Cleaned up the `Cargo.toml` to reflect the changes in V8 runtime availability and added relevant documentation. - Removed dead code related to mobile platform handling in the TDLib integration, ensuring a streamlined codebase. * chore: update skills submodule to latest commit - Updated the skills submodule to the latest commit (19a18e8), ensuring alignment with recent changes and improvements in the codebase. * refactor: transition from QuickJS to V8 runtime for skill management - Updated the skills submodule to the latest commit, reflecting the transition from QuickJS to V8 for improved JavaScript execution. - Refactored skill management logic to utilize the V8 runtime, including changes to the RuntimeEngine and skill instance handling. - Enhanced manifest handling to support the new runtime and updated platform compatibility checks. - Removed dead code related to QuickJS, ensuring a streamlined codebase. - Updated comments and documentation to reflect the changes in runtime integration. * feat: enhance logging and update timer operations in V8 integration - Added logging for skill discovery and manifest processing in the V8 runtime, improving traceability during skill management. - Updated timer operation functions to use new prefixed names (`op_ah_timer_start` and `op_ah_timer_cancel`) to avoid conflicts with deno_core built-ins. - Implemented a mechanism to load .env files from various locations, ensuring environment variables are available for configuration. - Enhanced the `get_backend_url` function to include debug logging for better visibility of the backend URL resolution process. * chore: update skills submodule to latest commit and enhance logging - Updated the skills submodule to the latest commit (54c40a1), ensuring alignment with recent changes. - Added console logging for skill manifests during discovery in the SkillsGrid component to improve debugging and traceability. * refactor: clean up and format code in DownloadScreen and SkillsGrid components - Improved code readability by formatting multi-line statements in the DownloadScreen and SkillsGrid components. - Removed unnecessary type imports in DownloadScreen for clarity. - Enhanced the structure of the SkillsGrid component by adjusting the layout of JSX elements for better maintainability. - Updated socketService to ensure consistent import order and improved logging in TauriSocket utility functions. * chore: update development script in package.json - Replaced the existing setup-python-sidecar script with a new dev:app script to streamline the development process for Tauri applications, enabling better debugging with RUST_BACKTRACE and RUST_LOG settings. * refactor: update load method to accept additional parameters - Modified the load method in SkillRuntime to accept an optional additionalParams argument, enhancing flexibility for skill loading. - Ensured compatibility by using a fallback to an empty object when additionalParams is not provided. * refactor: improve JSX structure in SkillsGrid component - Enhanced the formatting of the connection status indicator in the SkillsGrid component for better readability. - Adjusted the indentation and spacing to maintain consistent code style and improve maintainability. * Refactor invoke_handler to consolidate command registration across platforms - Simplified the command registration process by merging desktop and mobile command handlers into a single `invoke_handler` call. - Improved code readability and maintainability by reducing duplication in command definitions. - Ensured that window commands remain desktop-only while maintaining common functionality for all platforms. * updated icon * Update skills submodule to latest commit and remove redundant logging statements in V8 engine skill discovery * Update skills submodule to reflect dirty state * feat: expose BACKEND_URL environment variable for skills - Added "BACKEND_URL" to the list of whitelisted environment variables accessible to skills, allowing for broader usage without the "VITE_" prefix. * Enhance V8 runtime with async event loop and timer management - Implemented an async event loop in the V8 skill instance to handle timers and messages efficiently. - Introduced a new TimerState structure for managing scheduled timers, allowing for better integration with the V8 event loop. - Updated the dotenv loading mechanism to check for environment variables in the current and parent directories. - Enhanced logging for timer operations and skill management processes to improve traceability. * Update skills submodule to latest commit and expose additional environment variables for skills - Updated the skills submodule to commit 3793fdc, ensuring alignment with recent changes. - Added "TELEGRAM_API_ID" and "TELEGRAM_API_HASH" to the list of whitelisted environment variables, allowing skills to access these without the "VITE_" prefix. * Integrate TDLib support for Telegram skill - Added TDLib commands for creating, sending, receiving, and destroying clients, enabling Telegram functionality. - Implemented a TdLibManager for managing TDLib client lifecycle and asynchronous operations on desktop platforms. - Introduced JNI bridge for Android to facilitate TDLib interactions. - Updated Cargo.toml and Cargo.lock to include tdlib-rs and related dependencies. - Enhanced the V8 runtime to support TDLib operations, ensuring compatibility across platforms. * Enhance TDLib manager with update queue and async polling - Introduced an update queue and notification channel in ClientState for managing TDLib updates. - Implemented a separate polling task for TDLib updates to improve responsiveness and prevent blocking the main event loop. - Updated lifecycle function handling in the V8 runtime to avoid waiting for the event loop, allowing for long-running async operations. - Improved error handling and logging for better traceability during TDLib operations. * Enhance documentation and improve code formatting - Updated CLAUDE.md to include new core commands and runtime management features for the Rust backend, as well as Android support and platform-specific details. - Refactored SettingsHeader component in SettingsHeader.tsx for improved readability by consolidating props and cleaning up JSX formatting. - Enhanced SkillProvider.tsx with better logging for skill loading errors, improving traceability in the development process. * Integrate local LLM inference support and update dependencies - Added local LLM inference capabilities for desktop and Android platforms, excluding iOS. - Introduced new model commands for checking availability, generating text, and summarizing content. - Updated Cargo.toml and Cargo.lock to include necessary dependencies such as `llama-cpp-2` and `encoding_rs`. - Enhanced the V8 runtime and JavaScript API to support model operations, improving the overall functionality of the application. * Enhance SocketManager with WebSocket transport type - Added support for WebSocket transport type in SocketManager for improved connection handling. - Updated connection configuration to utilize WebSocketUpgrade, enhancing real-time communication capabilities. * style: fix Prettier formatting in ModelDownloadProgress * chore: update skills submodule to latest commit --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> |
||
|
|
58969667d9 |
fix: add ESLint and Prettier configuration (#15)
* ran prettier * Refactor ESLint configuration to use ES module syntax and enhance TypeScript support - Converted CommonJS `require` statements to ES module `import` syntax for better compatibility with modern JavaScript. - Added new paths to ignore in ESLint configuration to exclude additional directories. - Updated TypeScript file patterns to be more specific, improving linting accuracy. - Adjusted React hooks rules to allow certain patterns, enhancing flexibility in component design. These changes improve the maintainability and clarity of the ESLint configuration, aligning it with current best practices. * Refactor ESLint configuration to use ES module syntax and enhance TypeScript support - Converted CommonJS `require` statements to ES module `import` syntax for better compatibility with modern JavaScript. - Added new paths to ignore in ESLint configuration to exclude additional directories. - Updated TypeScript file patterns to be more specific, improving linting accuracy. - Introduced new React hooks rules and adjusted existing rules for better adherence to best practices. - Made minor adjustments to import statements across various files for consistency and clarity. These changes improve the overall linting setup and ensure better code quality across the project. * Refactor import statements across multiple files for consistency - Updated import statements to use TypeScript's `type` syntax for type imports, enhancing clarity and consistency across the codebase. - Consolidated imports from the same module into single statements, improving readability and maintainability. These changes streamline the code structure and align with best practices for TypeScript imports. * Refactor import statements in memory manager for improved clarity - Updated import statements to consolidate type imports and enhance readability. - Removed redundant imports, streamlining the code structure in the memory manager file. These changes align with best practices for TypeScript imports and improve maintainability. * Add Husky for pre-commit and pre-push hooks - Introduced Husky to manage Git hooks, enhancing the development workflow. - Added pre-commit and pre-push scripts to enforce code formatting and linting checks before commits and pushes. - Updated package.json to include Husky as a dependency and added a prepare script for setup. These changes improve code quality and ensure adherence to formatting and linting standards during the development process. * Refactor import statements for improved clarity and consistency - Updated import statements across multiple files to consolidate type imports and enhance readability. - Adjusted the order of imports for better organization and alignment with best practices in TypeScript. These changes streamline the code structure and improve maintainability throughout the project. * ran formatter * Refactor import statements and improve code formatting across multiple files - Consolidated and reordered import statements for better clarity and consistency in `SkillsGrid.tsx`, `SkillProvider.tsx`, and `index.ts`. - Enhanced readability by adjusting formatting and removing redundant lines. - These changes align with best practices for TypeScript imports and improve overall maintainability of the codebase. * Refactor and optimize code in multiple components - Removed redundant properties from the `STATUS_DISPLAY` object in `SkillsGrid.tsx` to streamline status handling. - Consolidated import statements in `SettingsModal.tsx` for improved organization. - Simplified state management and error handling in `BillingPanel.tsx`, enhancing performance and readability. - Added `REHYDRATE` import to `index.ts` for better state persistence management. These changes improve code clarity, maintainability, and align with best practices in TypeScript development. * Consolidate import statements in SettingsModal.tsx for improved organization * Add Prettier and ESLint checks to typecheck workflow - Integrated a Prettier formatting check to ensure code style consistency. - Added an ESLint step to enforce code quality and catch potential issues. - These enhancements improve the development workflow by automating formatting and linting checks during the typecheck process. * Add activeSkillDescription state to ConnectionsPanel and ConnectStep - Introduced activeSkillDescription state in both ConnectionsPanel and ConnectStep components to store and manage skill descriptions. - Updated the SkillSetupModal to accept skillDescription as a prop, enhancing the modal's functionality and data handling. These changes improve the user experience by providing more detailed information about skills during the connection setup process. * Enhance pre-push hook to include TypeScript compile check - Added a TypeScript compile check to the pre-push script, ensuring that code compiles successfully before pushing. - Updated error handling to include compile errors alongside formatting and linting issues, providing clearer feedback to developers. These changes improve the reliability of the codebase by preventing non-compiling code from being pushed. * Update GitHub workflows for pull request handling and publishing logic - Modified the package-and-publish workflow to support pull request events, ensuring proper handling of branches. - Adjusted the SHOULD_PUBLISH environment variable to differentiate between pull requests and main branch events. - Updated the pr-protection workflow to focus solely on the main branch, removing references to the master branch. These changes enhance the CI/CD process by refining branch handling and improving clarity in workflow conditions. |
||
|
|
cd9ebcd927 |
Feat/skills advanced (#12)
* Update skills submodule and enhance skill management interface - Updated the skills submodule to the latest commit, ensuring alignment with project dependencies. - Refactored the SkillSetupModal to conditionally render either the SkillSetupWizard or SkillManagementPanel based on the skill's setup status, improving user experience. - Introduced the SkillManagementPanel component to manage connected skills, allowing users to view connection status and configurable options. - Enhanced the package-and-publish workflow by updating the release name for better clarity. These changes improve the overall functionality and maintainability of the skill management system. * Remove skills catalog JSON and refactor skills loading mechanism - Deleted the `skills-catalog.json` file from the public directory, as it is no longer needed. - Updated the `SkillsGrid` component to load the skills catalog directly from the local skills directory via Rust, improving the skills management process. - Enhanced the `SkillProvider` to discover skills from the local directory and sync from GitHub if no local skills are found, streamlining the skill lifecycle management. These changes improve the overall efficiency and maintainability of the skill management system. * Update skills submodule and enhance skill management features - Updated the skills submodule to the latest commit, ensuring alignment with project dependencies. - Modified the `ConnectionIndicator` component's description for clarity. - Refactored the `SkillsGrid` component to improve type definitions and streamline skill processing, including the addition of a `hasSetup` property for better skill management. - Enhanced the `SkillManagementPanel` to conditionally render the "Re-run Setup" button based on the presence of setup hooks. - Updated the `SkillSetupModal` to handle skills without setup hooks more effectively. - Implemented a background update check in the `SkillProvider` to ensure skills are kept up to date with the latest changes from GitHub. These changes improve the overall functionality and maintainability of the skill management system. * Enhance skill management interface and update dependencies - Added new CSS styles for the skills table, improving layout and user experience. - Updated the SkillsGrid component to utilize new props and improve type definitions. - Enhanced the SkillSetupModal to include skill descriptions for better context. - Updated the Home component to include a call-to-action for upgrading to premium plans. - Added new entries to .gitignore for mypy and ruff caches to streamline development. These changes improve the overall functionality and maintainability of the skill management system. |
||
|
|
e2833f27e0 |
Adopt supermemory patterns into AI memory system (#11)
* Add submodule for skills and initialize skills repository - Created a new .gitmodules file to include the skills submodule. - Initialized the skills submodule with a commit reference, linking to the skills repository on GitHub. This update integrates the skills component into the project, enhancing the AI system's capabilities. * Implement subscription billing UI with Stripe and Coinbase integration Replace the placeholder BillingPanel with a working subscription billing interface. Users can view their current plan and token usage, upgrade via Stripe (card) or Coinbase (crypto, annual-only), and manage subscriptions through Stripe's Customer Portal. Adds billing API service and types. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add unified skill system with core type definitions and management features - Introduced a comprehensive skill system that includes lifecycle management, tool definitions, state management, entity extensions, and intelligence rules. - Implemented a skill state manager using Zustand for managing skill-specific state. - Created an entity extension registry for registering new entity and relation types. - Developed an intelligence engine for evaluating rules and executing actions based on events. - Established a unified tool registry to streamline tool management across various integrations. This update enhances the AI system's capabilities by providing a robust framework for skill management and interaction. * Add billing helpers and refactor BillingPanel for improved plan management - Introduced a new `billingHelpers.ts` file containing plan metadata, utility functions for plan management, and pricing calculations. - Refactored `BillingPanel` to utilize the new billing helpers, streamlining the display of plan information and pricing. - Added unit tests for billing helpers to ensure functionality and correctness of plan-related operations. This update enhances the billing system's structure and maintainability, providing a clearer separation of concerns for plan management. * Enhance skill management system with new features and integrations - Added path aliases in `tsconfig.json` for improved module resolution. - Updated `vite.config.ts` to include skill types path for better integration. - Integrated `SkillsProvider` into the application to manage skill lifecycle, including registration and activation of virtual skills like Telegram, bulk operations, and reminders. - Implemented a unified skill system with a new orchestrator for managing skill states and tool definitions. - Enhanced bundled skill loading mechanism to utilize a unified skill system, improving the overall architecture and maintainability. This update strengthens the skill management framework, enabling better organization and functionality within the AI system. * Adopt supermemory patterns into AI memory system Port 5 patterns from claude-supermemory reference implementation to fill gaps in the existing memory pipeline: 1. Tool observation compression — compress verbose tool outputs before compaction summarization and memory flush, saving tokens and signal 2. Categorized memory context — render memory as structured XML with profile facts, recent context, and search results with dedup 3. Relative timestamps — surface updated_at from FTS chunks and display human-readable relative times in search results 4. Memory deduplication on write — filter duplicate facts before appending to memory files during flush 5. Auto-capture on session end — lightweight memory flush for short sessions that never trigger compaction Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Refactor TelegramMCPServer to delegate entirely to unified tool registry The server was still maintaining its own tool map with 80+ handler entries and legacy fallback paths. Now it delegates all tool listing and execution to skillOrchestrator.toolRegistry, matching the architecture established in the skills system. Updated tests to mock the unified registry instead of individual tool handlers. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Consolidate skill system and migrate Telegram state to Zustand Remove legacy skill implementations (src/lib/ai/skills/, src/lib/mcp/skills/) and consolidate everything into the unified skill orchestrator at src/lib/skills/. Add runtime skill subprocess support with stdio JSON-RPC transport for Python/Node/Deno skills. Key changes: - Delete old SkillRegistry, installer, loader, runner, frontmatter parser - Delete MCP skills layer (bulk.ts, reminders.ts, index.ts) and move skill definitions to src/lib/skills/definitions/ - Add RuntimeHost and StdioTransport for subprocess-based skills - Add shell plugin (tauri-plugin-shell) with scoped permissions for python3, node, deno, npx executables - Extend orchestrator with runtime skill lifecycle (spawn, load, activate, tick, deactivate, shutdown) and reverse RPC handling - Add overrideTier parameter to enforceRateLimit for unified registry - Decouple prompt system from old SkillEntry type - Remove old SkillRegistry from AIProvider - Migrate Telegram state functions from Redux dispatch to Zustand store - Add Telegram Zustand store, selectors, actions, migration utilities - Add hello-python example skill Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Migrate Telegram state from Redux to Zustand Replace the Redux telegram slice with a Zustand store using immer middleware. All 49 reducers ported as store methods, 5 thunks converted to standalone async functions, and 30+ selectors migrated to Zustand hooks and plain functions. Updates all consumers: services, API helpers, tool adapters, and UI components. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Refactor skill management and remove Telegram components - Updated TODO.md to include integration of the payments flow. - Refactored App.tsx to remove unused TelegramProvider and SkillsProvider, streamlining the component structure. - Deleted obsolete test fixtures related to Telegram state and skills, including mcpContext.ts, rootState.ts, telegramState.ts, and TelegramConnection components. - Removed legacy skill loading and entity extension files, consolidating the skill system into a unified orchestrator. - Updated documentation to reflect changes in skill management and structure. This commit enhances the overall architecture by eliminating deprecated components and improving the skill management framework. * Update skills submodule to latest commit 22e42c9, ensuring alignment with the current project structure and dependencies. * Integrate Python skills system with JSON-RPC IPC and interactive setup UI Wire the Python skills runtime into the Tauri frontend via the shell plugin, communicating over JSON-RPC 2.0 stdin/stdout. Replace "Coming Soon" Telegram entries in onboarding and settings with a live setup wizard that drives the skill's multi-step authentication flow. - Phase 0: Create skill.py SkillDefinition for Telegram, update __main__.py to use SkillServer (MCP preserved via --mcp flag) - Phase 1: Add skills lib (types, transport, runtime, manager, paths), Redux skillsSlice with persistence, setup UI components (SetupFormRenderer, SkillSetupWizard, SkillSetupModal) - Phase 2: Add SkillProvider to provider chain, Rust skill data I/O commands - Phase 3: Tool bridge for AI registry integration in AIProvider Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Update skill management and billing helpers - Updated skills submodule to the latest commit, ensuring alignment with project dependencies. - Refactored SkillSetupWizard to ensure the skill is running before starting the setup flow, improving user experience. - Adjusted billingHelpers test to import PlanTier from the correct path, enhancing type safety. - Modified embedQuery method in NullEmbeddingProvider to accept a parameter, improving method signature clarity. These changes enhance the overall functionality and maintainability of the skill management and billing systems. * Enhance deep link handling and skill setup error management - Added a note in CLAUDE.md regarding the requirement to run the .app for deep link testing on macOS. - Introduced a simulation feature for deep links in development mode within desktopDeepLinkListener.ts. - Updated SkillSetupWizard to throw descriptive errors if a skill fails to start, improving error handling and user feedback. These changes improve the development experience and robustness of the skill setup process. * Add Python sidecar setup script and update dependencies - Introduced a new script `setup-python-sidecar.mjs` to symlink the system Python to the Tauri runtime for local development. - Updated the `package.json` to include a new npm script for setting up the Python sidecar. - Changed the version specification for `@tauri-apps/plugin-shell` from `^2` to `~2` for more controlled updates. - Updated the `tauri.conf.json` to include the new Python sidecar in the external binaries list. - Updated the skills submodule to the latest commit for alignment with project dependencies. These changes enhance the development workflow for Python skills integration and improve dependency management. * Update skills submodule to latest commit and modify TODO.md - Updated the skills submodule to the latest commit for better alignment with project dependencies. - Added a note in TODO.md to skip the connect account page and redirect to the home page during the payment flow integration. These changes ensure the project remains up-to-date and clarify the next steps for the payment flow implementation. * Refactor Python sidecar integration and enhance skill runtime management - Updated `setup-python-sidecar.mjs` to symlink system Python to `src-tauri/runtime-skill-python-<target>` for local development. - Introduced new commands in Rust for retrieving the current working directory and virtual environment site-packages for Python skills. - Modified `SkillTransport` to support spawning skills using the sidecar for bundled runtimes, improving the execution flow. - Updated `tauri.conf.json` to reflect changes in external binaries and added documentation for the Python sidecar setup. - Adjusted skill management to ensure proper error handling and logging during skill execution. These changes streamline the development process for Python skills and enhance the overall robustness of the skill management system. * Enhance skill connection indicators and logging - Added a new `TelegramConnectionIndicator` component to display real-time connection status for the Telegram skill. - Integrated `useSkillConnectionStatus` hook across various components to provide unified connection status for skills. - Updated `ConnectionsPanel` and `ConnectStep` to utilize the new connection status logic, improving user feedback during skill setup. - Enhanced logging in `SocketService` and `SocketProvider` for better debugging and error tracking. - Introduced utility functions for sanitizing sensitive data before logging, ensuring security during error handling. These changes improve the user experience by providing clear connection statuses and enhance the robustness of the logging system. * Remove console logging from SocketProvider for cleaner code - Eliminated console log statements related to socket connection and disconnection events, as well as error handling, to streamline the codebase. - This change enhances the maintainability of the SocketProvider component by reducing unnecessary logging clutter. * Enhance SocketService with MCP transport and tool management - Introduced `SocketIOMCPTransportImpl` for handling client-server MCP requests, improving communication efficiency. - Updated the `mcp:listTools` event to aggregate tools from all ready skills, providing a comprehensive tool list in response to requests. - Enhanced the `mcp:toolCall` event to validate tool name formats and handle tool calls asynchronously, improving error handling and logging. - Added a method to retrieve the MCP transport instance, enhancing the SocketService's functionality. These changes improve the robustness and usability of the SocketService in managing MCP interactions. * Remove logger service and replace with debug package in SocketService - Deleted the custom logger implementation in favor of using the `debug` package for logging in the SocketService. - Updated the SocketService to enable logging based on the development environment, improving debugging capabilities. These changes streamline the logging process and enhance the maintainability of the codebase. * Add SkillsGrid component to enhance skill management interface - Introduced a new SkillsGrid component to display a grid of skills with connection statuses and setup options. - Implemented skill icons and status badges for better visual representation of skill states. - Integrated skills catalog loading functionality to dynamically fetch and display available skills. - Updated Home component to include the SkillsGrid, improving user interaction with skills. These changes enhance the user experience by providing a clear and interactive skills management interface. * Update skills submodule and add skills catalog JSON - Updated the skills submodule to the latest commit for improved functionality. - Introduced a new `skills-catalog.json` file containing detailed descriptions and configurations for various skills, enhancing the skills management system. - Enhanced the `SkillsGrid` component to validate skill names, ensuring they do not contain underscores, which are reserved for tool namespacing. These changes improve the robustness of the skills management interface and ensure better adherence to naming conventions. * Update skills submodule and modify tool name formatting in SocketService - Updated the skills submodule to the latest commit for improved functionality. - Changed the tool name formatting in SocketService to use double underscores instead of single underscores, enhancing clarity in tool identification. These changes ensure better alignment with naming conventions and improve the overall functionality of the skills management system. * Add DownloadScreen component and update Welcome page - Introduced a new DownloadScreen component to provide users with platform-specific download options for the application. - Updated the Welcome page to conditionally display the DownloadScreen for web users while showing the Telegram login button for Tauri users. - Modified the greeting text and adjusted layout for improved user experience. These changes enhance the onboarding process by offering clear download options based on the user's platform. * Enhance AppRoutes and Welcome component for web detection - Added logic in AppRoutes to determine if the application is running on the web or Tauri, using the `isTauri` utility. - Updated the Welcome component to accept a prop indicating the platform, allowing for tailored rendering based on the environment. - This change improves the onboarding experience by providing a more context-aware interface for users depending on their platform. * Refactor SkillsGrid and Home components for improved clarity - Removed unused Telegram and Gmail connection indicators from the Home component to streamline the interface. - Simplified the SkillCard function in SkillsGrid by renaming the description parameter for better clarity. - These changes enhance code readability and maintainability by eliminating unnecessary components and improving parameter naming. --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> |
||
|
|
af39ee40f4 |
Add Sentry integration for error reporting and user analytics consent
- Introduced Sentry for error tracking, initialized in the application to capture errors while respecting user privacy. - Added a new analytics service to manage user consent for data collection, ensuring only non-personal data is sent to Sentry. - Updated Redux state to track user analytics preferences and modified onboarding steps to include analytics consent. - Enhanced the PrivacyPanel component to allow users to toggle analytics sharing. - Removed the AnalyticsStep from onboarding as its functionality is now integrated into the PrivacyPanel. This update improves error reporting capabilities while prioritizing user privacy and consent. |
||
|
|
a67cecd009 |
Enhance onboarding flow with conditional routing
- Introduced OnboardingRoute component to conditionally navigate users based on onboarding status. - Updated AppRoutes to utilize OnboardingRoute, redirecting users to the home page if onboarding is complete. - Removed direct Telegram link from GetStartedStep to streamline onboarding process and improve user experience. This update improves the onboarding experience by ensuring users are only shown the onboarding page when necessary. |
||
|
|
520bfdb74c |
Fix/telegram login (#4)
* Add UserProvider to App component and enhance user data fetching logic - Integrated UserProvider into the App component to manage user state. - Updated UserProvider to fetch current user data on token availability and handle token expiration by clearing the token on fetch failure. - Improved user data fetching logic for better error handling and user experience. * Enhance Telegram connection handling and error management - Added logic to handle Telegram account mismatch, providing user feedback and resetting connection state. - Improved user verification during authentication to ensure the logged-in account matches the Telegram account. - Refactored connection status checks and error handling for better user experience. - Introduced a method to clear session and disconnect when account mismatch occurs. - Updated polling mechanism for authentication status to ensure timely updates. This update improves the robustness of the Telegram connection process and enhances user feedback during authentication failures. * ran prettier * Refactor socket and auth state management for user-specific handling - Updated socket state management to support multiple users by introducing user-specific selectors and actions. - Refactored connection status handling in the socket service to dispatch user-specific status updates. - Enhanced onboarding state management to track completion per user, allowing for more granular control. - Introduced new selectors for socket and auth states to improve readability and maintainability. - Updated relevant components to utilize the new user-specific state management. This update improves the application's ability to handle multiple users and enhances the overall user experience during onboarding and socket connections. * Enhance MTProto client session management and introduce user-specific session handling - Updated the MTProtoService to manage sessions per user by storing session data under a user-specific key. - Modified the initialize method to accept a userId parameter, allowing for user-specific session initialization and management. - Improved session loading and saving logic to ensure proper handling of user sessions. - Added a utility function to generate session keys based on userId for better maintainability. This update enhances the application's ability to handle multiple user sessions effectively. * Refactor Telegram state management for user-specific handling - Introduced user-specific state management in the Telegram store, allowing for better handling of multiple users. - Updated selectors to retrieve state based on the current user, improving data encapsulation and reducing global state dependencies. - Enhanced reducers and thunks to ensure actions are dispatched with user context, maintaining user-specific data integrity. - Modified persistence configuration to store Telegram state scoped by user, ensuring isolated state management. This update significantly improves the application's ability to manage multiple user sessions effectively and enhances overall user experience. * Enhance MTProtoService connection handling with user-specific initialization - Updated the checkConnection method to accept an optional userId parameter, allowing for user-specific connection initialization. - Modified the connection logic to ensure proper initialization only occurs when a userId is provided, improving session management. - Refactored related thunks to use a consistent naming convention for userId parameters, enhancing code clarity. This update improves the handling of user sessions in the MTProtoService, aligning with recent enhancements in user-specific state management. * Refactor Telegram connection handling for user-specific management - Updated the TelegramConnectionModal to utilize user-specific identifiers for connection status and authentication processes, enhancing session management. - Refactored related components and selectors to ensure userId is consistently passed and utilized, improving clarity and maintainability. - Enhanced the ConnectionsPanel and ConnectStep to check for saved sessions based on userId, allowing for better handling of multiple user connections. This update significantly improves the application's ability to manage user-specific Telegram connections and enhances the overall user experience. * Refactor Telegram connection logic to simplify session management - Removed unnecessary userId checks and localStorage interactions from ConnectionsPanel and ConnectStep components, streamlining the connection status determination. - Updated MTProtoService to manage session data through Redux instead of localStorage, enhancing consistency and maintainability. - Improved session loading and saving logic to focus solely on Redux state, ensuring better integration with user-specific session handling. This update enhances the clarity and efficiency of the Telegram connection management process, aligning with recent improvements in user-specific state management. * Update CLAUDE.md to clarify localStorage usage and emphasize Redux for state management - Revised documentation to discourage the use of localStorage and sessionStorage for app state, advocating for Redux and Redux Persist instead. - Added guidelines for removing existing localStorage usage and migrating relevant data to Redux. - Updated service layer documentation to reflect changes in session management, specifying that session data is now stored in Redux rather than localStorage. - Enhanced clarity on deep link handling and the prevention of infinite reload loops. This update aligns with recent improvements in user-specific state management and reinforces best practices for state handling. * Enhance onboarding process with error handling and API integration - Updated the Onboarding component to include an API call for marking onboarding as complete, with error handling to provide user feedback. - Refactored the GetStartedStep component to support asynchronous completion handling, including loading state and error messages. - Introduced a new onboardingComplete method in the userApi service to facilitate the onboarding completion process. This update improves the user experience during onboarding by ensuring proper error management and feedback. * Enhance TelegramConnectionModal with socket connection management and improved initialization flow - Integrated socket connection handling in the TelegramConnectionModal to ensure the socket is connected when the modal opens, enhancing real-time features. - Refactored the initialization logic to streamline the connection process, including user verification and error handling. - Introduced a reference to track the QR code flow state, preventing multiple initiations and improving user experience during authentication. This update improves the reliability of the Telegram connection process and enhances user feedback during the onboarding experience. * Refactor Telegram connection checks for improved logic consistency - Updated the ConnectionsPanel and ConnectStep components to refine the logic for determining if a Telegram connection is established, ensuring that both session string and authentication status are required for a valid connection. - Simplified className definitions in the UI components for better readability and maintainability. This update enhances the clarity of connection status checks and improves the overall user experience during the onboarding process. * Refactor Telegram authentication flow and improve error handling - Simplified the TelegramLoginButton component by removing complex authentication logic and replacing it with a direct link to the Telegram bot for login. - Enhanced the Login page to consume a login token from the URL, providing better error handling and user feedback during the authentication process. - Introduced a new API service for consuming login tokens, ensuring secure retrieval of JWT tokens from the backend. This update streamlines the authentication experience and improves error management, enhancing overall user experience during login. |
||
|
|
7b7f4a6cbf |
Fix code quality issues and remove unused imports
- Remove unused imports: useAppDispatch and clearToken from Home.tsx - Remove unused dispatch variable from Home component - Resolve TypeScript compilation errors - Maintain existing functionality and code patterns 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|
|
b6303bd235 |
Reorganize settings menu with delete all data and logout options
- Add "Delete All Data" option to settings modal with proper dangerous styling - Logout option already existed in settings modal - Remove "Delete All Data" and "Logout" buttons from home page - Update home page to have only Settings button with clean styling - Increase modal height from 600px to 800px for better spacing - All account management actions now centralized in settings modal 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|
|
f30781468b |
Move "View Encryption Key" option from Home page to Settings menu
- Add "View Encryption Key" menu item to SettingsHome between Advanced and Billing - Include key icon and description matching original Home page implementation - Remove "View Encryption Key" button from Home page action buttons list - Remove handleViewEncryptionKey function from Home component - Improve organization by grouping security options in settings menu - Clean up Home page layout with fewer action items 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|
|
7e2636fbca |
Remove all focus styling and outlines completely
- Remove all browser focus outlines globally with outline: none !important - Remove all custom focus rings and box shadows from components - Update global CSS to suppress all focus styling including box-shadow: none - Remove focus ring styles from Home page action buttons - Remove focus ring styles from SettingsMenuItem components - Clean interaction with no visible focus styling on any elements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|
|
46b715e6db |
Fix settings modal styling and navigation issues
Settings Modal Styling Fixes: - Convert from light theme to dark glass morphism design - Update modal container to use fixed height (600px) and glass styling - Apply dark theme to menu items matching Home page action buttons - Update profile header with dark background and proper typography - Fix menu item spacing and borders with proper first/last item handling Focus Management Fixes: - Add focus:outline-none to settings modal container to remove unwanted blue outline - Preventively fix same issue in TelegramConnectionModal - Maintain accessibility while removing browser default focus styling Navigation Update: - Change settings button to navigate to /settings instead of /settings/connections - Provides better UX by showing main settings menu first 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|
|
ed8b7f50c6 |
Update Home page button label from 'Manage Connections' to 'Settings'
- Change button label to 'Settings' for clarity since it opens the full settings modal - Update description to reflect comprehensive settings options available - Better represents the actual functionality of opening the settings modal system 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|
|
60054d8a38 |
Implement comprehensive settings modal system with URL routing
- Add complete settings modal infrastructure with clean white design - Implement user profile section with Redux integration for user data - Create settings menu with Connections, Messaging, Privacy, Profile, Advanced, Billing, Logout - Add connections management panel reusing onboarding components - Integrate with existing TelegramConnectionModal for connection setup - Add URL-based routing for /settings and /settings/connections paths - Update Home.tsx to open settings modal from "Manage Connections" button - Include proper animations, accessibility, and mobile responsive design - Follow pixel-perfect design specifications with 520px modal width - Maintain TypeScript safety and existing code patterns throughout Features: • Modal overlay system with backdrop blur and center positioning • Settings navigation with smooth panel transitions (200ms entry, 250ms slides) • Connection status display from Redux state with Connect/Disconnect actions • Profile display with avatar, user name, and email from user slice • Logout functionality integrated with auth slice clearToken action • Mobile-first responsive design with full-screen behavior on small screens • Accessibility features: focus management, ARIA labels, ESC key support 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|
|
bd1d240738 |
Update onboarding steps and connection logic in ConnectStep component
- Changed the initial step in Onboarding from 4 to 1 to reflect the correct starting point. - Enhanced ConnectStep by adding session management and connection checks for Telegram. - Introduced a helper function to determine if a saved session exists in localStorage. - Updated the connection options to disable buttons for already connected accounts and added visual feedback for connected status. These changes improve the onboarding experience and ensure better handling of account connections. |
||
|
|
ccf876b635 |
Refactor TelegramConnectionModal and update ConnectStep imports
- Cleaned up whitespace in TelegramConnectionModal for improved code readability. - Updated import paths in ConnectStep to align with the new asset structure, ensuring consistency across components. - Enhanced the structure of reducers in the Telegram state management to improve clarity and maintainability. These changes streamline the codebase and enhance the overall organization of the Telegram integration within the application. |
||
|
|
8fcac9db07 |
Add GmailIcon component and update GmailConnectionIndicator
- Introduced a new GmailIcon component for better visual representation of Gmail connectivity. - Replaced inline SVG in GmailConnectionIndicator with the new GmailIcon component, improving code maintainability and readability. - Updated import paths for GoogleIcon in ConnectStep to reflect the new asset structure. These changes enhance the user interface by providing a dedicated icon for Gmail and streamline the codebase for easier future updates. |
||
|
|
e714556808 |
Add new icons and components for enhanced user interface
- Introduced several SVG icons including Binance, MetaMask, Google, Notion, Telegram, and Wallet, enriching the visual assets available for the application. - Created new React components for ExchangeIcon, GoogleIcon, and WalletIcon, providing reusable icon components with customizable class names. - Added GmailConnectionIndicator component to display Gmail connection status, improving user feedback on connectivity. - Updated Home component to integrate GmailConnectionIndicator alongside existing TelegramConnectionIndicator, enhancing the user experience with real-time connection indicators. These changes improve the application's visual appeal and user interaction by providing clear indicators and a variety of icons for different functionalities. |
||
|
|
5d76837dff |
Add Telegram connection indicator and integrate into Home component
- Introduced TelegramConnectionIndicator component to display real-time connection status to Telegram, enhancing user feedback. - Integrated TelegramConnectionIndicator into the Home component, providing users with immediate visibility of their Telegram connection status. - Updated App component to include TelegramProvider, ensuring proper context for the new connection indicator. These changes improve the user experience by providing clear indications of Telegram connectivity within the application. |
||
|
|
23d3956323 |
Refactor Telegram authentication flow and improve error handling
- Enhanced the TelegramConnectionModal to provide better management of the 2FA password input process, including timeout handling and improved error messaging. - Updated MTProtoService to ensure proper handling of SESSION_PASSWORD_NEEDED errors, allowing the password callback to manage authentication flow more effectively. - Added logging for password resolution and authentication status checks to improve visibility during the connection process. These changes enhance the reliability and user experience of the Telegram authentication process, ensuring smoother transitions and clearer feedback during authentication steps. |
||
|
|
06356b81f4 |
Refactor App component and enhance user data handling
- Removed UserProvider from the App component, simplifying the structure and relying on the useUser hook for user data management. - Updated Home component to utilize the useUser hook for fetching user information, improving user experience by displaying the user's first name. - Refactored Redux store configuration to conditionally include redux-logger in development mode, enhancing debugging capabilities. - Introduced IS_DEV constant in the config utility to streamline environment checks. These changes improve the application's architecture by enhancing user data management and refining the development experience. |
||
|
|
e05b1a2587 |
Enhance onboarding process with Redux state management
- Integrated Redux state management into the Onboarding component by dispatching the setOnboarded action upon completion. - Updated authSlice to include isOnboarded state, allowing for tracking of onboarding status. - Modified the Redux store configuration to persist the onboarding status alongside the token, improving user experience and state consistency. These changes streamline the onboarding process and enhance state management for user authentication. |
||
|
|
4323c4812c |
Integrate Redux for state management and refactor authentication flow
- Added Redux Toolkit for managing authentication state, replacing Zustand for token handling. - Implemented authSlice for token management, including setting and clearing tokens with localStorage synchronization. - Refactored components (Login, Home, TelegramLoginButton) to utilize Redux for token management, enhancing state consistency. - Updated App component to include Redux Provider and PersistGate for state persistence. - Removed Zustand-based authStore and socketStore, streamlining the state management approach. These changes improve the application's architecture by centralizing state management with Redux, enhancing maintainability and scalability. |
||
|
|
c58d5fd625 |
Refactor Login component to handle JWT token from URL and streamline authentication flow
- Replaced phone number input handling with JWT token retrieval from URL query parameters. - Implemented useEffect to store the token in Zustand auth store and navigate to onboarding after successful login. - Removed unused phone number input and Telegram authentication logic for a cleaner interface. - Added loading animation to indicate login processing. These changes enhance the login experience by simplifying the authentication process and improving user feedback during login. |
||
|
|
781439842b |
Implement Zustand for authentication state management and update components
- Introduced Zustand for managing authentication state, including token storage and user session handling. - Updated TelegramLoginButton and Home components to utilize the new auth store for setting and clearing tokens. - Enhanced the desktop deep link listener to store session tokens in the Zustand store, ensuring consistent state management. - Refactored localStorage interactions for session tokens to improve backward compatibility. These changes streamline the authentication process and improve state management across the application. |
||
|
|
0023795e13 |
Add TelegramLoginButton component and integrate into Welcome page
- Introduced a new TelegramLoginButton component to handle user authentication via Telegram. - Replaced the previous Telegram login button implementation in the Welcome component with the new TelegramLoginButton for improved modularity and code clarity. - Updated configuration to include TELEGRAM_BOT_ID for seamless integration with the Telegram authentication flow. These changes enhance the user experience by providing a dedicated component for Telegram login, streamlining the authentication process. |
||
|
|
0fb7c7ea9d | Remove unused navigation logic from Welcome component to streamline code. This change simplifies the component by eliminating the useNavigate hook, aligning with recent updates to the authentication flow. | ||
|
|
db1b37404e |
Refactor Welcome and Onboarding components to enhance user authentication flow and introduce AnalyticsStep
- Updated the Welcome component to handle Telegram login via a direct URL opening instead of navigation. - Removed the handleBack function from the Onboarding component to simplify navigation logic. - Added a new AnalyticsStep component to allow users to choose their data sharing preferences during onboarding. These changes aim to streamline the authentication process and improve user engagement with privacy options. |
||
|
|
f0d64e8e97 |
Update ConnectionIndicator description and refactor Home component styles for improved user experience
- Modified the description in the ConnectionIndicator component for clearer messaging. - Refactored button styles in the Home component to enhance visual consistency and user interaction. - Removed the AnalyticsStep component to streamline the onboarding process. These changes aim to improve user clarity and engagement throughout the application. |
||
|
|
334673e59a |
Add Lottie animations to onboarding steps and integrate LottieAnimation component
- Introduced a new LottieAnimation component to handle Lottie animations in the onboarding flow. - Updated the Onboarding component to include Lottie animations for each step, enhancing visual engagement. - Added multiple Lottie animation files to the public/lottie directory for use in onboarding steps. - Adjusted the ConnectStep and GetStartedStep components to improve messaging and user experience. These changes aim to create a more dynamic and engaging onboarding experience for users, utilizing animations to illustrate key steps in the process. |
||
|
|
1500ca7a28 |
Add Telegram connection modal and integrate into onboarding flow
- Introduced a new TelegramConnectionModal component to facilitate user login via QR code and two-factor authentication. - Updated ConnectStep to manage the modal's visibility and handle completion of the Telegram connection process. - Enhanced user experience by providing clear steps for connecting to Telegram during onboarding. These changes aim to streamline the onboarding process by offering a seamless connection experience for Telegram users. |
||
|
|
c3c47a3878 |
Update ConnectStep styles and messaging for enhanced clarity and user reassurance
- Changed background color and border styles for improved visual consistency. - Updated messaging to emphasize that all data is stored privately and encrypted, enhancing user trust in the application. These changes aim to strengthen user confidence during the onboarding process by clearly communicating privacy measures. |
||
|
|
cb0cf66649 |
Refactor URL opening logic and update imports for improved modularity
- Moved the openUrl function to a new utility file for better organization and reusability across components. - Updated import paths in Home and GetStartedStep components to reflect the new location of the openUrl function. - Simplified error handling in the handleStartCooking function by removing unnecessary try-catch block. These changes enhance code maintainability and streamline the process of opening URLs in the application. |
||
|
|
0929a3681d |
Update title and add ConnectionIndicator component for enhanced user feedback
- Changed the title in index.html to "AlphaHuman" for better branding. - Introduced a new ConnectionIndicator component to provide real-time connection status updates in Home and GetStartedStep pages. - Updated Home and GetStartedStep components to include the ConnectionIndicator, improving user awareness of their connection status and enhancing the onboarding experience. |
||
|
|
f8f5e314d7 |
Update Tailwind configuration and enhance onboarding steps for clarity and engagement
- Optimized primary color definitions in tailwind.config.js for better visibility on dark backgrounds. - Updated text in the Welcome, Connect, Features, Get Started, and Privacy steps to improve clarity and user engagement. - Adjusted button labels to create a more inviting and action-oriented experience for users. These changes aim to enhance the overall onboarding experience, ensuring users have a clear understanding of the application while maintaining a visually appealing design. |
||
|
|
5350737b3d |
Refactor onboarding steps and update styles for improved user engagement
- Adjusted button styles and text in the FeaturesStep and PrivacyStep components to enhance clarity and user experience. - Updated titles and descriptions across onboarding steps to better communicate the features and privacy measures of AlphaHuman. - Modified button text to create a more engaging call-to-action for users. These changes aim to streamline the onboarding process, making it more intuitive and appealing while emphasizing the application's key features and privacy commitments. |
||
|
|
d7989ee6df |
Update onboarding flow to include new FeaturesStep and adjust step sequence
- Added a new FeaturesStep component to showcase key features of AlphaHuman. - Updated the Onboarding component to include the new FeaturesStep, increasing total steps from 4 to 5. - Rearranged the sequence of steps to enhance user engagement and clarity. - Improved messaging in the ConnectStep and GetStartedStep for better user understanding. These changes aim to provide a more comprehensive onboarding experience, highlighting the features of the application while ensuring a smooth transition through the steps. |
||
|
|
f8afb1eeab |
Enhance ConnectStep component with new connection options and improved user experience
- Introduced new connection options for Google, Notion, Telegram, Web3 Wallet, and Crypto Trading Exchanges. - Implemented a 'coming soon' feature to disable buttons for options not yet available. - Updated messaging to clarify the importance of connecting accounts for a personalized experience. - Added new icons for Binance, Google, Notion, Telegram, and Metamask to enhance visual appeal. These changes aim to provide users with a clearer and more engaging onboarding experience while connecting their accounts. |