feat: add async Sprite job manager with progress polling
- 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
This commit is contained in:
1 parent
32c02cb3cd
commit
36d88ef168
8 files changed
+1142
-186
No files matched your search
@@ -6,7 +6,7 @@ import { SpritesClient } from "@fly/sprites";
|
||||
|
||||
const DEFAULT_BASE_URL = "https://api.sprites.dev";
|
||||
const FLY_GRAPHQL_URL = "https://api.fly.io/graphql";
|
||||
const REQUEST_TIMEOUT_MS = 15_000;
|
||||
const REQUEST_TIMEOUT_MS = 8_000;
|
||||
|
||||
interface PersistedSpritesTokenCache {
|
||||
keyHash: string;
|
||||
|
||||
Reference in new issue
Block a user