* refactor: remove mobile platform support and update documentation - Updated CONTRIBUTING.md and SECURITY.md to reflect the removal of Android and iOS support, focusing on desktop platforms only. - Modified AGENTS.md and MEMORY.md to clarify the platform capabilities of OpenHuman as a desktop application. - Adjusted various Rust files to eliminate references to mobile platforms, including socket management and platform detection logic. - Removed mobile-specific code from SkillsGrid and Skills components, ensuring the application is tailored for desktop usage. - Deleted unused iOS and Android assets and configurations from the Tauri project structure. * chore: remove zeroclaw mentions and mobile support paths
4.8 KiB
Contributing to OpenHuman
Thank you for your interest in contributing. This document explains how to get set up, follow our workflow, and submit changes.
Table of Contents
- Code of Conduct
- Getting Started
- Development Setup
- Git Workflow
- Making Changes
- Submitting Changes
- Project Conventions
Code of Conduct
This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code.
Getting Started
- Read the README and ARCHITECTURE for context.
- Check open issues and discussions for ideas and to avoid duplicate work.
- For security issues, see SECURITY.md — do not report vulnerabilities in public issues.
Development Setup
Prerequisites
- Node.js (LTS) and Yarn
- Rust (for Tauri and the Rust backend)
- Platform-specific tools for the desktop targets you care about
Clone and Install
git clone https://github.com/YOUR_USERNAME/openhuman.git
cd openhuman
yarn install
Use your own fork in place of YOUR_USERNAME when cloning.
Run the App
- Web only:
yarn dev(Vite dev server, typically port 1420) - Desktop (Tauri):
yarn tauri devoryarn dev:appfor enhanced debugging
See the main README and project docs for more commands (e.g., yarn skills:build, yarn skills:watch).
Environment
Copy or create a .env from the documented template and set VITE_BACKEND_URL, VITE_TELEGRAM_*, and other VITE_* variables as needed. Do not commit secrets.
Git Workflow
- Fork the openhuman repository and work in your fork.
- Base branch: All pull requests must target the
developbranch (notmain). - No direct pushes to the organization repo; all changes come in via pull requests from forks.
Branch Naming
Use short, descriptive branches, e.g.:
fix/telegram-reconnectfeat/settings-dark-modedocs/contributing-update
Making Changes
- Create a branch from
develop:git checkout develop && git pull origin develop && git checkout -b fix/your-change - Make your changes. Keep commits focused and messages clear (e.g., “Fix socket reconnect on network drop”).
- Follow our project conventions and run checks before pushing.
Running Checks
- TypeScript:
yarn compile(ortsc --noEmit) - Lint:
yarn lint(ESLint); fix auto-fixable issues withyarn lint:fix - Format:
yarn format:check; format withyarn format(Prettier) - Tests:
yarn test(unit),yarn test:rust(Rust),yarn test:e2e(E2E when applicable)
Pre-commit/pre-push hooks (Husky) run formatting and linting; fix any failures before submitting.
Submitting Changes
- Push your branch to your fork:
git push origin fix/your-change - Open a pull request against
developin the openhuman repository. - Fill in the PR template (if present): describe what changed, why, and how to test.
- Link any related issues (e.g., “Fixes #123”).
- Address review feedback and keep the PR up to date with
develop(rebase or merge as the project prefers).
Maintainers will review and may request changes. Once approved, your PR will be merged into develop.
Project Conventions
- State: Use Redux (and Redux Persist where needed). Avoid
localStorage/sessionStoragefor app or feature state; remove existing usage when touching related code. - Imports: Use static
import/import typeat the top of the file. No dynamicimport()for app code; use try/catch around Tauri API calls in non-Tauri environments instead. - Code style: ESLint and Prettier are authoritative. Use type-only imports where appropriate and consolidate imports from the same module.
- Telegram IDs: Use the
big-integerlibrary; do not rely on native JavaScript numbers for Telegram IDs. - Tauri: Commands are in Rust under
src-tauri; frontend usesinvoke()from@tauri-apps/api/core. Handle missingwindow.__TAURI__where the app can run outside Tauri. - Socket events: Behavior exists in both the TypeScript frontend and the Rust backend. Any new socket event or protocol change must be implemented in both places.
- Skills: Follow the V8 runtime and skill manifest rules; respect platform compatibility and the documented bridge/API surface.
For more detail on architecture, patterns, and platform notes, see the project’s internal documentation (e.g., CLAUDE.md or equivalent contributor docs).
Thank you for contributing to OpenHuman.