Files
wehub-resource-sync 426e9eeabd
Benchmark Bridge Tests / benchmark (bunx @biomejs/biome check packages/lifeops-bench/src, benchmark-lint) (push) Waiting to run
Benchmark Bridge Tests / benchmark (bunx vitest run --config packages/lifeops-bench/vitest.config.ts --root packages/lifeops-bench --passWithNoTests, benchmark-tests) (push) Waiting to run
Build Agent Image / build-and-push (push) Waiting to run
Chat shell gestures / Chat shell gesture + parity e2e (push) Waiting to run
ci / test (push) Waiting to run
ci / lint-and-format (push) Waiting to run
ci / build (push) Waiting to run
ci / dev-startup (push) Waiting to run
Cloud Gateway Discord / Test (push) Waiting to run
Cloud Gateway Webhook / Test (push) Waiting to run
Cloud Tests / lint-and-types (push) Waiting to run
Cloud Tests / unit-tests (push) Waiting to run
Cloud Tests / integration-tests (push) Waiting to run
Cloud Tests / e2e-tests (push) Blocked by required conditions
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Apps Worker (Product 2) / Determine environment (push) Waiting to run
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Blocked by required conditions
Deploy Eliza Provisioning Worker / Determine environment (push) Waiting to run
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Blocked by required conditions
Dev Smoke / Classify changed paths (push) Waiting to run
Dev Smoke / bun run dev onboarding chat (push) Blocked by required conditions
Dev Smoke / Vite HMR dependency-level smoke (push) Blocked by required conditions
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Waiting to run
gitleaks / gitleaks (push) Waiting to run
Markdown Links / Relative Markdown Links (push) Waiting to run
Publish @elizaos/example-code / check_npm (push) Waiting to run
Publish @elizaos/example-code / publish_npm (push) Blocked by required conditions
Publish @elizaos/plugin-elizacloud / verify_version (push) Waiting to run
Publish @elizaos/plugin-elizacloud / publish_npm (push) Blocked by required conditions
Quality (Extended) / Homepage Build (PR smoke) (push) Waiting to run
Quality (Extended) / Comment-only diff guard (push) Waiting to run
Quality (Extended) / Format + Type Safety Ratchet (push) Waiting to run
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Waiting to run
Quality (Extended) / Develop Gate (lint) (push) Waiting to run
Sandbox Live Smoke / Sandbox live smoke (push) Waiting to run
Snap Build & Test / Build Snap (amd64) (push) Waiting to run
Snap Build & Test / Build Snap (arm64) (push) Waiting to run
supply-chain / sbom (push) Waiting to run
supply-chain / vulnerability-scan (push) Waiting to run
Build, Push & Deploy to Phala Cloud / build-and-push (push) Waiting to run
Test Packaging / Validate Packaging Configs (push) Waiting to run
Test Packaging / PyPI on Python ${{ matrix.python }} (push) Waiting to run
Test Packaging / Pack & Test JS Tarballs (push) Waiting to run
Test Packaging / elizaos CLI global-install smoke (node + bun) (push) Waiting to run
UI Fixture E2E / ui-fixture-e2e (push) Waiting to run
UI Fixture E2E / fixture-e2e (push) Waiting to run
UI Story Gate / story-gate (push) Waiting to run
vault-ci / test (macos-latest) (push) Waiting to run
vault-ci / test (ubuntu-latest) (push) Waiting to run
vault-ci / test (windows-latest) (push) Waiting to run
vault-ci / app-core wiring tests (push) Waiting to run
verify-patches / verify patches/CHECKSUMS.sha256 (push) Waiting to run
Voice Benchmark Smoke / voice-emotion fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voiceagentbench fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench-quality unit smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench TypeScript unit (no audio) (push) Waiting to run
Voice Benchmark Smoke / voice bench smoke summary (push) Blocked by required conditions
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Waiting to run
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Waiting to run
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Waiting to run
Test Packaging / Build & Test PyPI Package (push) Waiting to run
Voice Workbench / headless workbench (mocked backends) (push) Has been cancelled
Voice Workbench / real acoustic lane (nightly, provisioned only) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:43:05 +08:00
..

elizaOS USB Installer

Electrobun-targeted microapp for preparing bootable elizaOS USB installers.

This package has two modes:

  • Default mode is safe review/demo mode. Raw USB writes are disabled unless the backend process is started with ELIZAOS_USB_ENABLE_RAW_WRITE=1.
  • Live-write mode uses platform backends for Linux, macOS, and Windows. Treat this as destructive and hardware-dependent. It must be tested on the target platform and real removable media before release.

The renderer never opens raw disks. It talks to the local backend contract; disk enumeration, privileged writes, and platform subprocesses stay server-side.

Scope

  • Lists removable drive candidates through UsbInstallerBackend.
  • Presents selectable elizaOS image metadata with channel, architecture, build id, published date, URL, SHA-256 checksum, expected size, minimum USB size, and optional release/signature links.
  • Builds a server-side write plan and returns an opaque planId.
  • Rebuilds and revalidates the plan server-side immediately before executing a write.
  • Requires explicit data-loss acknowledgement and target-drive identity confirmation in the UI.
  • Blocks live writes unless the selected image has a non-placeholder SHA-256 checksum.
  • Binds the local backend to 127.0.0.1 and only allows localhost browser origins from the known app/dev ports or ELIZAOS_USB_ALLOWED_ORIGINS.

Current Live-Write Guardrails

  • ELIZAOS_USB_ENABLE_RAW_WRITE=1 is required for non-dry-run planning and execution.
  • /execute accepts only a server-generated planId; renderer-supplied disk paths, image URLs, or full write plans are ignored.
  • The backend re-enumerates the selected drive before execution and rejects the write if the device path or size changed since planning.
  • Stored live-write plans expire after five minutes by default (ELIZAOS_USB_PLAN_TTL_MS) and must be regenerated before execution.
  • Shared write safety blocks dry-run execution, missing acknowledgement, non-safe-removable drives, undersized drives, and placeholder checksums.

Commands

bun run --cwd packages/os/usb-installer dev
bun run --cwd packages/os/usb-installer build
bun run --cwd packages/os/usb-installer test
bun run --cwd packages/os/usb-installer typecheck
bun run --cwd packages/os/usb-installer lint
bun run --cwd packages/os/usb-installer test:e2e

Run the guarded Linux virtual block-device write proof:

bun run --cwd packages/os/usb-installer test:linux-virtual-usb

That test requires Linux, passwordless sudo -n, and the kernel scsi_debug module. It creates a disposable 64 MiB removable block device with model ELIZAUSBTEST, writes a trusted 4 MiB image through the same local server/Linux backend flow, reads the first 4 MiB back, verifies SHA-256, and unloads the module. It refuses to run if scsi_debug is already loaded. CI runs this proof only on Linux runners that provide the scsi_debug module.

Run the local app:

bun run --cwd packages/os/usb-installer start

Enable live writes only when deliberately testing removable media:

ELIZAOS_USB_ENABLE_RAW_WRITE=1 bun run --cwd packages/os/usb-installer start

Backend Contract

src/backend/types.ts is the load-bearing boundary between the renderer and privileged platform operations:

  • listRemovableDrives() returns drive candidates with safe-removable, blocked-system, or unknown safety classifications.
  • listImages() returns trusted elizaOS image metadata after manifest validation. Invalid URLs, checksums, unsupported channels/architectures, missing build metadata, and impossible minimum USB sizes are rejected.
  • createWritePlan() returns the resolve, checksum, write, verify, and complete steps. HTTP-backed plans include a server-generated planId.
  • executeWritePlan() is destructive. The HTTP backend sends only planId; direct platform backends require callers to pass a plan that satisfies the shared write-safety.ts guards.

Platform Notes

macOS:

  • Enumerates disks with diskutil list -plist and diskutil info -plist.
  • Derives whole raw disks as /dev/rdiskN and rejects partition paths.
  • Uses osascript ... with administrator privileges for the current prototype write path. A signed helper is still the preferred production boundary.

Linux:

  • Enumerates block devices with lsblk --json --bytes.
  • Blocks removable disks that are mounted as the current root/live-boot media, so an elizaOS/Tails live USB cannot overwrite itself.
  • Unmounts mounted child partitions before writing.
  • Writes through pkexec, cached/allowed sudo, kdesu, or doas plus dd.

Windows:

  • Enumerates disks through PowerShell Get-Disk/Get-Partition.
  • Blocks boot/system/internal-looking disks.
  • Uses UAC-elevated diskpart and dd.exe or a native PowerShell streaming fallback. A signed elevated helper is still required before calling Windows production-grade.

Release Gaps

This package is code-ready only after tests/build pass. It is USB-proven only after a final ISO is written to a real removable drive and boot-tested.

The Linux virtual block-device E2E is stronger than a unit test because it uses real lsblk, sudo, dd, sync, and a kernel block device. It still is not a substitute for physical USB flash and boot validation.

Remaining production hardening:

  • Replace GitHub release scraping/placeholder checksums with a signed official elizaOS image manifest.
  • Add cancel/abort support for downloads and active writes.
  • Add signed privileged helpers for macOS/Windows and stronger Linux helper policy.
  • Add readback verification beyond sync/eject/status completion.
  • Add packaged-app launch smoke tests and platform hardware/VM write evidence.