mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 13:32:23 +00:00
* feat(core): add in-process mistral.rs local AI runtime (qwen3.5-1b) * style: apply pre-push formatting for local-ai changes * feat: add Local Model panel and navigation support - Introduced a new Local Model panel for managing local AI runtime, including status monitoring and download options. - Updated settings navigation to include 'local-model' route. - Enhanced AIPanel and Home components to integrate local model management features. - Improved error handling in Tauri commands for local AI operations. - Updated subproject reference in skills. * fix: enhance error handling in local model management - Improved error handling mechanisms in the Local Model panel to provide clearer feedback during AI runtime operations. - Updated relevant components to ensure consistent error reporting and user notifications. - Refactored code to streamline error management processes across local model features. * feat(local-ai): improve local runtime bootstrap, status UX, and qwen defaults * feat(core): introduce CoreRunMode for process management - Added CoreRunMode enum to support in-process and child process execution modes. - Updated CoreProcessHandle to manage tasks and child processes based on the selected run mode. - Enhanced process spawning logic to differentiate between in-process server and dedicated core binary execution. - Improved error handling for process readiness checks in both run modes. * refactor: clean up unused imports and streamline runtime module exports - Removed unused HashMap import from runtime.rs to enhance code clarity. - Updated runtime module exports to only include necessary components, simplifying the interface for consumers. - Changed variable name in llm_generator.rs for clarity without altering functionality. * refactor: streamline runtime module exports by consolidating imports
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Build the .app bundle for E2E tests with the mock server URL baked in.
|
|
#
|
|
# This does a cargo clean first to ensure the frontend assets are re-embedded
|
|
# (Cargo's incremental build won't detect changes to dist/).
|
|
#
|
|
set -euo pipefail
|
|
|
|
# Source Cargo environment
|
|
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
|
|
|
export VITE_BACKEND_URL="http://127.0.0.1:${E2E_MOCK_PORT:-18473}"
|
|
|
|
echo "Building E2E app bundle with VITE_BACKEND_URL=$VITE_BACKEND_URL"
|
|
|
|
if [ -z "${E2E_SKIP_CARGO_CLEAN:-}" ]; then
|
|
cargo clean --manifest-path src-tauri/Cargo.toml
|
|
else
|
|
echo "Skipping cargo clean (E2E_SKIP_CARGO_CLEAN is set)."
|
|
fi
|
|
|
|
if [ -f .env ]; then
|
|
# shellcheck source=/dev/null
|
|
source scripts/load-dotenv.sh
|
|
else
|
|
echo "No .env file — skipping load-dotenv (optional for CI)."
|
|
fi
|
|
|
|
export VITE_BACKEND_URL="http://127.0.0.1:${E2E_MOCK_PORT:-18473}"
|
|
|
|
# Stage rust-core sidecar for bundle.externalBin (see src-tauri/tauri.conf.json).
|
|
node scripts/stage-core-sidecar.mjs
|
|
|
|
# Use npx so CI does not require a global Tauri CLI
|
|
npx tauri build --bundles app --debug
|
|
|
|
echo "E2E build complete."
|