Replace forever-on heartbeat billing with a finite lease system:
callers request a window of Sprite time and renew as needed; on
expiry the heartbeat session stops and the Sprite auto-pauses.
- SpriteLeaseStore (server/sprite-lease-store.ts): refcounted
leases with TTL clamping ([60s, 8h], default 15min) persisted
to sprite-leases.json
- SpriteHostKeepalive reimplemented on leases; legacy
keepalive-hosts manifest seeds one final window then clears
- Provider: session.open acquires, session.prompt renews,
session.close releases
- sprite_* tools and RPCs acquire/renew/release via
sprites.lease.acquire/renew/release/list
- destroy/archive release leases before deleting Sprites
- Settings: defaultLeaseMinutes (1-480, default 30), schema v2
- Add SpriteHostKeepalive (server/sprite-keepalive.ts) maintaining a
lightweight heartbeat session per enabled Sprite host so Fly Sprites
does not auto-pause and drop the Paseo relay connection
- Wire keepalive into agent hooks, RPC handlers, and host
connect/launch paths via onHostReady/onHostRemoved hooks
- Reconcile every 30s against ~/.paseo/hosts.json enabled hosts with
backoff reconnect; persist desired set to plugin-data
- Add keepSpriteHostsAwake setting (default true) with settings UI
toggle and live subscription
- Add SpriteJobManager and job RPCs (start/get/list) for connect,
launch, create, and sync operations
- Time-box status RPC with 5s remote timeout and lazy remote fetching
- Cache remote sprites, raw token, and host/agent lists to avoid
redundant API calls
- Harden sprite host exec timeouts, JSON parsing, and npm install
with --no-audit --no-fund
- UI: poll active jobs with phase updates in workers screen
- Reduce token exchange and OpenBao request timeout to 8s