You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(deps): remove unused desktop and mobile declarations - #30182
Orca installs a few packages that its applications and build tools never use. Remove those declarations while keeping speech recognition, development refresh, mobile networking, and the shadcn development CLI working the same way.
What Changed
Remove the unused desktop sherpa-onnx WASM wrapper and direct react-refresh dependency. Speech already loads the five explicitly declared platform packages; Vite's React plugin serves its own refresh runtime.
Remove the unused Squirrel Windows installer declaration; Orca uses NSIS. Electron-builder still retains Squirrel through an optional peer, so this does not claim to remove that transitive tree.
Remove mobile's unused Zustand dependency and move its ws declaration to development dependencies, where its mock server, probes, and tests use it. The mobile application uses the platform WebSocket API.
Drop the obsolete WASM wrapper build permission. Keep the native speech packages, shadcn CLI, and existing security overrides. Both locks retain all other resolved versions: two root package records and one mobile package record disappear.
Why
Every unnecessary package adds a publisher and artifact to trust. Removing proven unused declarations is smaller and safer than replacing working implementations or adding resolution overrides. User-visible features and hot refresh behavior remain unchanged.
Linked Issue
Maintainer-requested follow-up to the dependency supply-chain audit; no separate issue.
Visual Proof
N/A — dependency declarations only; no product UI or interaction changes. A temporary hidden Electron renderer exercised the actual web Vite configuration before and after removal: button state survived a component edit, a deliberate syntax error showed Vite's error overlay, and fixing it recovered without navigation. The post-removal document marker and time origin stayed identical throughout. The /@react-refresh response was byte-for-byte identical before removal and after a fresh server start (SHA-256 61710aeaa24340cc21c9a0c64e258420c5dfc8dcc2b99322cc70813c1c5d32ea). Temporary probe files were removed.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Validation performed on macOS; no application code changes require new unit tests. Existing speech, parser, React commit-hook, packaging, and mobile tests cover the retained behavior. Native Windows/Linux installers and device builds remain CI coverage.
pnpm tc — passed for root Node, CLI, and renderer projects.
pnpm build:desktop:assets — passed (WSL guest, CLI, Electron, projected web client, and verified mobile web bundle).
pnpm test config/scripts/electron-builder-speech-config.test.mjs — passed.
pnpm run check:code-quality:changed, manifest formatting, git diff --check — passed.
Root and mobile pnpm install --frozen-lockfile --ignore-scripts — passed after cleanup.
After CI exposed the historical-release parser dependency, restored it. release-checkout.unit.test.ts passes all 11 tests. The complete cross-version wire suite passes all 46 files / 232 tests with ORCA_DISABLE_SHARED_RELEASE_CACHE=1 (the cache behavior CI uses). Earlier cold-cache runs hit checkout-preparation timeouts; both affected files then passed all 18 tests alone, and the full suite passed after checkout preparation completed.
Mobile pnpm typecheck — passed. Raw typecheck:tests retains the existing 535 diagnostics; the failing-file set exactly matches tests-typecheck-baseline.txt (no added or stale entries).
Mobile standalone pnpm exec expo export --platform web --output-dir /tmp/orca-unused-mobile-export — passed.
Mobile pnpm test — 1,037 files and 10,803 tests passed; two files and six tests skipped.
Mobile pnpm check:tests-typecheck — passed: 1,035 tests included, four deliberately excluded, 119 grandfathered failing files; no baseline growth.
Review
Self-reviewed dependency references, implicit build-tool consumers, platform speech loading, and lockfile package records. Kept @streamparser/[email protected] as a development dependency because the cross-version harness executes the v1.4.221 dense parser that imports it; the existing compatibility test now documents this indirect dependency. Kept the electron-winstaller: false install policy because its package remains reachable through electron-builder's peer tree. Retained implicit type packages, Expo's development client, React Native worklets, and oxlint's type-aware checker.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Desktop, SSH-host, folder workspace, and mobile execution paths are unchanged. Existing mobile Metro/Expo refresh dependencies remain present.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 5e8bcf75-acf0-4bab-ba1a-22b07a9c0a97
📥 Commits
Reviewing files that changed from the base of the PR and between 68808db and 266de9d.
⛔ Files ignored due to path filters: 2
mobile/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 3
mobile/package.json
package.json
pnpm-workspace.yaml
💤 Files with no reviewable changes: 2
pnpm-workspace.yaml
package.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
📝 Walkthrough
The root manifest removes sherpa-onnx and three devDependencies. Platform-specific sherpa-onnx optional dependencies remain. The workspace configuration removes sherpa-onnx from allowBuilds. The mobile manifest removes ws and zustand from runtime dependencies and adds ws to devDependencies.
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to 266de
No confirmed issue from the dependency cleanup remains to block merging after normal checks.
Pre-merge checks: 5
Check name
Status
Explanation
Docstring Coverage
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title clearly and concisely identifies the dependency cleanup across desktop and mobile packages.
Description check
The description is complete and follows the repository template. It explains the change, rationale, testing, compatibility considerations, visual proof status, review notes, and checklist completion.
Full details: Docstring Coverage
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Orca installs a few packages that its applications and build tools never use. Remove those declarations while keeping speech recognition, development refresh, mobile networking, and the shadcn development CLI working the same way.
What Changed
sherpa-onnxWASM wrapper and directreact-refreshdependency. Speech already loads the five explicitly declared platform packages; Vite's React plugin serves its own refresh runtime.wsdeclaration to development dependencies, where its mock server, probes, and tests use it. The mobile application uses the platform WebSocket API.Why
Every unnecessary package adds a publisher and artifact to trust. Removing proven unused declarations is smaller and safer than replacing working implementations or adding resolution overrides. User-visible features and hot refresh behavior remain unchanged.
Linked Issue
Maintainer-requested follow-up to the dependency supply-chain audit; no separate issue.
Visual Proof
N/A — dependency declarations only; no product UI or interaction changes. A temporary hidden Electron renderer exercised the actual web Vite configuration before and after removal: button state survived a component edit, a deliberate syntax error showed Vite's error overlay, and fixing it recovered without navigation. The post-removal document marker and time origin stayed identical throughout. The
/@react-refreshresponse was byte-for-byte identical before removal and after a fresh server start (SHA-25661710aeaa24340cc21c9a0c64e258420c5dfc8dcc2b99322cc70813c1c5d32ea). Temporary probe files were removed.Testing
Validation performed on macOS; no application code changes require new unit tests. Existing speech, parser, React commit-hook, packaging, and mobile tests cover the retained behavior. Native Windows/Linux installers and device builds remain CI coverage.
pnpm tc— passed for root Node, CLI, and renderer projects.pnpm build:desktop:assets— passed (WSL guest, CLI, Electron, projected web client, and verified mobile web bundle).pnpm test src/main/speech src/shared/json-token-reader.test.ts src/shared/ripgrep-dense-match-json.test.ts src/renderer/src/lib/react-commit-cascade-observer.test.ts— 18 files / 132 tests passed.pnpm test config/scripts/electron-builder-speech-config.test.mjs— passed.pnpm run check:code-quality:changed, manifest formatting,git diff --check— passed.pnpm install --frozen-lockfile --ignore-scripts— passed after cleanup.release-checkout.unit.test.tspasses all 11 tests. The complete cross-version wire suite passes all 46 files / 232 tests withORCA_DISABLE_SHARED_RELEASE_CACHE=1(the cache behavior CI uses). Earlier cold-cache runs hit checkout-preparation timeouts; both affected files then passed all 18 tests alone, and the full suite passed after checkout preparation completed.pnpm typecheck— passed. Rawtypecheck:testsretains the existing 535 diagnostics; the failing-file set exactly matchestests-typecheck-baseline.txt(no added or stale entries).pnpm exec expo export --platform web --output-dir /tmp/orca-unused-mobile-export— passed.pnpm test— 1,037 files and 10,803 tests passed; two files and six tests skipped.pnpm check:tests-typecheck— passed: 1,035 tests included, four deliberately excluded, 119 grandfathered failing files; no baseline growth.Review
Self-reviewed dependency references, implicit build-tool consumers, platform speech loading, and lockfile package records. Kept
@streamparser/[email protected]as a development dependency because the cross-version harness executes the v1.4.221 dense parser that imports it; the existing compatibility test now documents this indirect dependency. Kept theelectron-winstaller: falseinstall policy because its package remains reachable through electron-builder's peer tree. Retained implicit type packages, Expo's development client, React Native worklets, and oxlint's type-aware checker.Agent skill upstream boundary
Notes
Desktop, SSH-host, folder workspace, and mobile execution paths are unchanged. Existing mobile Metro/Expo refresh dependencies remain present.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)