mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-06 16:31:08 +00:00
* fix: fly auth token deprecated + org picker + macaroon discharge tokens Three fixes for the fly/ TypeScript provider: 1. `fly auth token` is deprecated — newer flyctl outputs a message, not a token. Now tries `fly tokens create org --expiry 24h` first, with `fly auth token` as fallback. Uses org tokens (not deploy) since spawn needs to create new apps. 2. Token sanitization stripped macaroon discharge tokens at commas (`fm2_[^ ,]*` → `fm2_\S+`). The full composite token `fm2_xxx,fm2_yyy,fo1_zzz` is now preserved. 3. Org picker upgraded from numbered 1/2 input to arrow-key interactive selector with cursor navigation, scroll windowing, and fallback to numbered list when TTY is unavailable. Also fixes: testFlyToken fallback sent `Bearer FlyV1 ...` (double prefix) for macaroon tokens — now dispatches FlyV1 vs Bearer correctly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: never run test/mock.sh locally — opens browser, CI only Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: lab <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agents.ts | ||
| fly.ts | ||
| oauth.ts | ||
| ui.ts | ||