Skip to content

feat(agents-desktop): bundle Electric CLI#4440

Merged
samwillis merged 3 commits into
mainfrom
agents-desktop-cli-bundle
Jun 1, 2026
Merged

feat(agents-desktop): bundle Electric CLI#4440
samwillis merged 3 commits into
mainfrom
agents-desktop-cli-bundle

Conversation

@samwillis
Copy link
Copy Markdown
Contributor

@samwillis samwillis commented May 29, 2026

Summary

  • Bundle a desktop-specific electric-ax CLI artifact into Electric Agents Desktop and run it via Electron's Node runtime.
  • Add managed electric command detection/install/uninstall IPC plus onboarding and Settings surfaces for CLI status.
  • Add a patch changeset for electric-ax, @electric-ax/agents-desktop, and @electric-ax/agents-server-ui.

Stack

Screenshots

image image

Test plan

  • PATH="$HOME/.asdf/shims:$HOME/.asdf/bin:$PATH" pnpm --filter @electric-ax/agents-desktop typecheck
  • PATH="$HOME/.asdf/shims:$HOME/.asdf/bin:$PATH" pnpm --filter @electric-ax/agents-server-ui typecheck
  • PATH="$HOME/.asdf/shims:$HOME/.asdf/bin:$PATH" pnpm --filter electric-ax build && PATH="$HOME/.asdf/shims:$HOME/.asdf/bin:$PATH" pnpm --filter electric-ax exec node dist/index.js --version
  • PATH="$HOME/.asdf/shims:$HOME/.asdf/bin:$PATH" pnpm --filter @electric-ax/agents-desktop build

Made with Cursor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

Electric Agents Desktop Builds

Build artifacts for commit 7716d72.

Platform Status Artifact
macOS Apple Silicon Passed DMG
macOS Intel Passed DMG
Windows x64 Passed Installer
Linux x64 Passed AppImage / deb

Workflow run

@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

❌ Patch coverage is 2.29008% with 128 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.26%. Comparing base (7001f8f) to head (7716d72).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../src/components/settings/pages/CommandLinePage.tsx 0.00% 75 Missing ⚠️
...gents-server-ui/src/components/OnboardingModal.tsx 0.00% 41 Missing ⚠️
...ages/agents-server-ui/src/lib/server-connection.ts 0.00% 6 Missing ⚠️
...r-ui/src/components/settings/pages/GeneralPage.tsx 0.00% 3 Missing ⚠️
packages/agents-server-ui/src/router.tsx 0.00% 2 Missing ⚠️
packages/electric-ax/src/version.ts 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4440       +/-   ##
===========================================
+ Coverage   34.26%   59.26%   +24.99%     
===========================================
  Files         189      313      +124     
  Lines       14425    32658    +18233     
  Branches     4929     9028     +4099     
===========================================
+ Hits         4943    19354    +14411     
- Misses       9468    13286     +3818     
- Partials       14       18        +4     
Flag Coverage Δ
packages/agents 70.37% <ø> (?)
packages/agents-mcp 77.54% <ø> (?)
packages/agents-mobile 85.41% <ø> (ø)
packages/agents-runtime 81.82% <ø> (?)
packages/agents-server 75.14% <ø> (ø)
packages/agents-server-ui 5.58% <0.00%> (-0.09%) ⬇️
packages/electric-ax 46.42% <75.00%> (?)
packages/experimental 87.73% <ø> (?)
packages/react-hooks 86.48% <ø> (?)
packages/start 82.83% <ø> (?)
packages/typescript-client 94.39% <ø> (?)
packages/y-electric 56.05% <ø> (?)
typescript 59.26% <2.29%> (+24.99%) ⬆️
unit-tests 59.26% <2.29%> (+24.99%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

},
getCli() {
ctx.services.cli ??= createCliController()
return ctx.services.cli
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to repeat, we could simplify to:

return (ctx.services.cli ??= createCliController())

Base automatically changed from samwillis/auto-start to main June 1, 2026 12:00
samwillis and others added 3 commits June 1, 2026 14:07
Package the Electric CLI with the desktop app and surface managed install status in onboarding and settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
Declare the CLI workspace as a desktop dev dependency so filtered desktop CI installs include its build tooling.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the exploratory plan document from the PR while leaving the local copy untracked.

Co-authored-by: Cursor <cursoragent@cursor.com>
@samwillis samwillis force-pushed the agents-desktop-cli-bundle branch from 2ec98e8 to 7716d72 Compare June 1, 2026 12:07
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

Electric Agents Mobile Build

Android preview build for commit 7716d72.

Platform Profile Status Build
Android preview Passed EAS build

Workflow run

@samwillis samwillis merged commit 0a15a47 into main Jun 1, 2026
69 checks passed
@samwillis samwillis deleted the agents-desktop-cli-bundle branch June 1, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants