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 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