Everything edition #
Develop this monorepo's live checkout plugins using the Nix launcher. Open Everything edition in the sidebar or Settings → Plugins. It identifies the supplying checkout and daemon, checks configured/runtime source paths, shows recent errors and bounded logs, compares the running daemon with the Mac's installed bundle, and offers explicit individual/all reload and full restart.
# From the monorepo root; first installation reconciles the new plugin.
nix run ./experimental/paseo-everything-edition#restart
The launcher manages the .paseo-dev daemon home and .paseo-dev/desktop profile.
Each checkout has its own identity, listener and sources. Desktop connects to its
checkout automatically. Closing Desktop leaves its daemon running. A path match
identifies a source directory, not proof that the process has loaded your latest
edits: use Reload. Source-isolation smoke checks create their own temporary
diagnostic plugin; it is not installed in normal checkout instances.
Adding/removing manifests or changing configured sources needs reconciliation via
Restart. Valid source drift permits restart; invalid/duplicate/escaped manifests
fail before the live daemon is stopped. Everything edition has no dependency on
Tailscale; network connectivity and proxy UI remain that plugin's responsibility.
Compatibility and extension points #
Minimum Paseo 0.13.0, exercised with the installed macOS 0.13.0 bundle. No upper cap is imposed in advance of a known incompatibility. This keeps recovery UI available across compatible app updates, but future breaking releases still need testing. Both the client and daemon enforce the manifest independently.
The implementation uses the public addScreen, addSidebarHeaderItem,
addSettingsScreen, useRpc, and typed server.handle APIs. Contribution setup
is synchronous; status is gathered on demand, avoiding a startup/CLI dependency
cycle. Client state uses React only. No public durable device-local storage was
verified, so remount recovery queries the host's current/recent operation index.
No plugin-rendered UI is assumed to survive host disconnection or self-reload.
Public bundled CLI commands, always with explicit --home, provide daemon
status/identity/version, plugin listing/logs/reload, and active-session inspection
(agent ls). The installed version comes from a fresh CLI --version query;
server status coalesces simultaneous clients and caches snapshots for five
seconds. Visible screens poll every ten seconds and show observation time and
errors; no status subprocess starts during plugin registration. Client version
and a reliable loaded-source fingerprint are unavailable and are labeled so.
The displayed Desktop profile belongs to the Mac launcher, including on iPhone.
No public drain/admission fence was verified. Restart explicitly acknowledges possible interruption, displays observed active work and checks it again before stop. New work may begin between that check and shutdown. This is not a guaranteed idle-only mode. Native updater/quit behavior is unchanged.
Preflight uses the selected app's Electron Node runtime plus its bundled public
semver and esbuild libraries to check manifest version ranges, entry presence,
source syntax and relative imports before stopping. The app packaging paths are
an adapter to the selected Mac bundle; missing tooling fails before shutdown.
This is not Paseo's full runtime compiler: host-module availability, runtime
boundary enforcement and plugin startup side effects are checked on real startup.
The target version is rechecked immediately before stop. A failed managed plugin
leaves daemon metadata ready if the daemon is reachable, with the operation failed
and plugin errors independently visible.
Metadata and operation protocol #
launcher.json schema 1 records canonical root/home/app/profile, managed IDs,
helper path/protocol, generation, state, expected daemon identity, and supervisor
PID/birth time. Legacy launcher-owned homes migrate on normal launch. Unknown
versions and copied/unowned homes disable mutation. A ready daemon is validated
against live identity and supervisor birth time; stable server ID alone is
insufficient. Generations persist on reuse and change on full stop/start.
Initializing records tolerate an identity not yet assigned. Metadata contains no
credentials. Python and the server decoder share a contract test fixture.
Nix packages paseo-checkout-helper separately from action wrappers. The helper
entry accepts bridge with bounded JSON on stdin, or run-operation ID TOKEN.
RPC callers choose only reload/restart, managed IDs, the expected generation, and
an explicit interruption acknowledgment. They cannot supply executables, homes,
checkout paths, shell commands or daemon selectors. If the helper store path was
collected, the screen becomes read-only: run the normal Nix launcher to refresh it.
No permanent service or Nix GC root is created.
One home-wide admission reservation serializes GUI and terminal mutations. Normalized UUIDs identify requests; the same normalized payload/ID returns its existing record, while changed payloads conflict. A different overlapping request is busy. A short admission lock is released before spawn, waits, CLI calls and the long launcher lock. A detached helper acknowledges durable acceptance, then revalidates ownership, sources, launch generation and its reservation before claiming mutation. Reload-all attempts independent targets and reloads Everything edition last. Full restart preserves identity, saved sessions, profile and port, and never opens a Mac window. No automatic mutation retry occurs.
Records progress through reserved, accepted, running and succeeded/failed/interrupted. A lost response or acknowledgment does not release a live helper's reservation. Abandoned operations use process birth time (Darwin libproc, not PID alone) and become interrupted, with an explicitly ambiguous outcome. Revoked late helpers cannot act. Locks, CLI calls and acknowledgments have bounded waits. Results and per-target errors survive serving-plugin teardown and are recovered on remount, even when completion happened before the new UI loaded.
The home retains 50 completed records and up to 256 KiB per operation log under
.paseo-dev/operations/, plus active work. Idempotency is limited to retained
records. An unavailable/pruned ID does not prove that the request never ran;
never automatically resubmit it. A new action requires a new explicit click.
Status and logs return selected fields only; recent plugin logs are capped at
100 entries and 2,000 characters per entry. Terminal operations also appear in
history; some have records but no diagnostic output/log file.
Launcher configuration reconciliation happens after daemon shutdown under its mutation lock. First-port persistence uses the bundled CLI's field edit instead of rewriting an earlier full-config snapshot. This preserves edits made by plugins during startup. Paseo 0.13's config CLI does not expose a cross-process writer lock: unrelated simultaneous direct edits (including separate config CLIs) can still race its read/replace step. Atomic rename is not a transaction against those writers. Avoid simultaneous external config editing during startup or reconciliation; adding global coordination needs Paseo support or cooperation from every writer.
Recovery #
The screen shows the recovery command and log directory before restart. The host may unmount it while offline; Paseo's native connection UI then owns the outage. After reconnect, inspect the durable result rather than assuming that reconnect means success. A phone cannot read Mac files while its daemon is down. On the Mac, run from the supplying checkout:
nix run ./experimental/paseo-everything-edition#status
nix run ./experimental/paseo-everything-edition#restart -- --no-open
nix run ./experimental/paseo-everything-edition#logs -- everything-edition
Inspect .paseo-dev/operations/<request-id>.json and its .log when startup
fails. Terminal recovery remains available when this plugin is incompatible,
disabled, absent or broken. The plugin cannot bootstrap a stopped hosting daemon.
Verification #
nix flake check ./experimental/paseo-everything-edition covers fake-app lifecycle
and real detached helper processes, ownership/generation checks, concurrent
admission, duplicate payloads, abandoned/late helpers, lost acknowledgment,
source reconciliation, preflight failure, partial plugin startup, history recovery,
client operation-state recovery, bridge coalescing, metadata decoding, and existing
Tailscale lifecycle regressions.
Real installed 0.13.0 checks used an isolated temporary checkout with Tailscale absent. Both entries compiled; the client bundle registered screen/sidebar/settings; typed status worked; reload-all replaced its own server, published an edited test-only diagnostic marker, and persisted success; full restart reconnected with the same identity and port and exposed its durable result. No existing user daemon was restarted by these checks.
Interactive Desktop layout and physical iPhone reconnect/controls remain unverified in this execution environment, which has no GUI/device automation. Verify the sidebar and Settings entry, narrow layout, recent logs, version warning, explicit restart choice, native offline UI and recovered operation result on each client before treating those interactive checks as complete.
Task views #
Overview identifies the checkout and daemon, shows instance details without a collapse control, and groups restart impact, confirmation, and terminal recovery. Plugins contains source checks and individual/all reload actions. Recent logs open inside their plugin entry, with loading/error states and Close in the panel. Activity contains operation results, request IDs, and Mac log locations.
An operation banner links to progress from every view. Switching views cancels an unsubmitted restart confirmation but retains accepted requests. Status errors keep cached observations visible and disable changes until ownership is verified. Closing/reopening logs discards late replies from their previous opening.
The client uses themed React Native controls and the existing host sidebar kit; no new optional host UI API or minimum version is required. The settings surface has the same task views. Unsaved state lasts within a mounted surface, independently from another screen/settings instance; durable receipts survive plugin reload.
See the mounted Desktop check for reproducible view, draft, confirmation, log, and narrow-layout checks. Physical iPhone keyboard, text scaling, scrolling, reconnect, and native-navigation acceptance remain pending; a Desktop viewport does not establish native iOS behavior.