mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 21:44:38 +00:00
* refactor: remove unused socket, agent tool registry, daemon health, and API service files - Deleted the `useSocket` hook, `AgentToolRegistry`, `DaemonHealthService`, and various API service files including `actionableItemsApi`, `apiKeysApi`, `feedbackApi`, `inferenceApi`, `managedDmApi`, and `settingsApi`. - This cleanup reduces code complexity and improves maintainability by removing obsolete components that are no longer in use. * feat: add knip configuration and commands to package.json - Introduced new scripts for running knip in development and production modes in both package.json files. - Added a knip.json configuration file to specify entry points and project files for dependency analysis. - Updated yarn.lock to include new dependencies related to knip, enhancing the project's dependency management capabilities. This commit improves the project's tooling for managing dependencies and ensures better code quality through automated checks. * refactor: remove unused components and clean up dependencies - Deleted several unused components related to intelligence features, including ActionPanel, InputGroup, SectionCard, and ValidatedField, to streamline the codebase. - Removed mock data and country data files that are no longer in use, enhancing maintainability. - Cleaned up the package.json by removing the @heroicons/react dependency, which is no longer required. - This commit improves the overall project structure and reduces complexity by eliminating obsolete code. * refactor: remove IntelligenceApiService and redefine ConnectedTool interface - Deleted the `IntelligenceApiService` class and its associated backend API methods to streamline the codebase. - Introduced a local definition of the `ConnectedTool` interface in `useIntelligenceApiFallback.ts` for better encapsulation and clarity. - This refactor enhances maintainability by eliminating unused code and consolidating relevant types within the appropriate context. * style: format knip config * chore(dependencies): update OpenHuman to version 0.52.0 in Cargo.lock * feat: implement Daemon Health Service for polling and state management - Introduced the `DaemonHealthService` class to poll the Rust core health snapshot and synchronize the frontend daemon store. - Added methods for setting up a health listener, parsing health snapshots, and updating the daemon store based on health data. - Implemented a timeout mechanism to handle disconnection scenarios, enhancing the reliability of the daemon's health monitoring. - This addition improves the application's ability to maintain an accurate representation of the daemon's health status in real-time. * chore(knip): update entry points in knip configuration - Modified the `entry` field in `knip.json` to include `src/main.tsx` alongside existing test specifications. - This change ensures that the main application file is included in dependency analysis, improving project structure and tooling. * refactor: streamline code and enhance readability across multiple modules - Consolidated multiple `replace` calls into single calls using arrays for improved efficiency in text processing. - Simplified default implementations for several structs, removing redundant code. - Updated query mapping in database interactions to enhance clarity and maintainability. - Improved logging and error handling by refining how state and error messages are processed. - Enhanced the readability of various functions by restructuring conditional checks and simplifying logic. These changes collectively improve code maintainability and performance across the application. * Merge remote-tracking branch 'origin/fix/cleanup' into fix/cleanup * fix: update error handling in bootstrap_after_login function - Changed the error parameter in the inspect_err closure to an underscore to indicate it is unused. - This minor adjustment improves code clarity and adheres to Rust conventions for unused variables.
39 lines
1.3 KiB
JSON
39 lines
1.3 KiB
JSON
{
|
|
"name": "openhuman-repo",
|
|
"private": true,
|
|
"workspaces": [
|
|
"app"
|
|
],
|
|
"resolutions": {
|
|
"@tauri-apps/api": "2.10.1"
|
|
},
|
|
"scripts": {
|
|
"build": "yarn workspace openhuman-app build",
|
|
"compile": "yarn workspace openhuman-app compile",
|
|
"core:stage": "yarn workspace openhuman-app core:stage",
|
|
"dev": "yarn workspace openhuman-app dev",
|
|
"dev:app": "yarn workspace openhuman-app dev:app",
|
|
"format": "yarn workspace openhuman-app format",
|
|
"format:check": "yarn workspace openhuman-app format:check",
|
|
"knip": "yarn workspace openhuman-app knip",
|
|
"knip:production": "yarn workspace openhuman-app knip:production",
|
|
"lint": "yarn workspace openhuman-app lint",
|
|
"lint:fix": "yarn workspace openhuman-app lint:fix",
|
|
"prepare": "husky",
|
|
"postinstall": "husky",
|
|
"tauri": "yarn workspace openhuman-app tauri",
|
|
"test": "yarn workspace openhuman-app test",
|
|
"test:coverage": "yarn workspace openhuman-app test:coverage",
|
|
"test:rust": "yarn workspace openhuman-app test:rust",
|
|
"mock:api": "node scripts/mock-api-server.mjs",
|
|
"rust:check": "yarn workspace openhuman-app rust:check",
|
|
"typecheck": "yarn workspace openhuman-app compile"
|
|
},
|
|
"devDependencies": {
|
|
"husky": "^9.1.7"
|
|
},
|
|
"dependencies": {
|
|
"@tauri-apps/api": "2.10.1"
|
|
}
|
|
}
|