tuxevil-rotator 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +1 -0
- package/package.json +2 -2
- package/src/onboarding.ts +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.3.1] - 2026-08-27
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- **Admin token propagation on hosted login**: Propagate the configured admin token to the "Continue With Google" link on the `/login` landing page, preventing a 401 Unauthorized error when navigating to `/auth/antigravity/start` ([#25](https://github.com/tuxevil/tuxevil-rotator/pull/25) by [@CelestialCreator](https://github.com/CelestialCreator)).
|
|
7
|
+
|
|
3
8
|
## [3.3.0] - 2026-08-24
|
|
4
9
|
|
|
5
10
|
### Added
|
package/README.md
CHANGED
|
@@ -339,6 +339,7 @@ To donate an authorized account for testing across supported providers, see [CON
|
|
|
339
339
|
|
|
340
340
|
Thanks to these amazing people who have contributed to the project:
|
|
341
341
|
|
|
342
|
+
- **[@CelestialCreator](https://github.com/CelestialCreator)** (Akshay) — Fixed admin token propagation on the hosted login landing page (`/login` to `/auth/antigravity/start`). ([PR #25](https://github.com/tuxevil/tuxevil-rotator/pull/25))
|
|
342
343
|
- **[@Codder-hermes](https://github.com/Codder-hermes)** — Fixed Claude Code tool-schema requests by stripping the unsupported JSON Schema `propertyNames` keyword for Gemini and Claude-via-Gemini routes, with regression coverage for both compatibility paths. ([PR #19](https://github.com/tuxevil/tuxevil-rotator/pull/19))
|
|
343
344
|
- **[@CyR1en](https://github.com/CyR1en)** (Ethan Bacurio) — Added Gemini 3.6 Flash and Gemini 3.7 Flash model families, shared quota-pool routing, pricing, dashboard support, and regression coverage. ([PR #18](https://github.com/tuxevil/tuxevil-rotator/pull/18), [PR #21](https://github.com/tuxevil/tuxevil-rotator/pull/21))
|
|
344
345
|
- **[@josenicomaia](https://github.com/josenicomaia)** (José Nicodemos Maia Neto) — Modularized the compatibility layer architecture, added multimodal tool response support, fixed streaming pass-through for tool executions, and added PostgreSQL storage and weighted pool quota forecasting. ([PR #8](https://github.com/tuxevil/tuxevil-rotator/pull/8), [PR #9](https://github.com/tuxevil/tuxevil-rotator/pull/9), [PR #11](https://github.com/tuxevil/tuxevil-rotator/pull/11), [PR #13](https://github.com/tuxevil/tuxevil-rotator/pull/13), [PR #14](https://github.com/tuxevil/tuxevil-rotator/pull/14))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tuxevil-rotator",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Multi-provider, multi-account AI proxy rotator with per-model routing, real-time quota tracking, and infringement detection (Google Antigravity, Ollama Cloud)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"type": "git",
|
|
46
46
|
"url": "git+https://github.com/tuxevil/tuxevil-rotator.git"
|
|
47
47
|
},
|
|
48
|
-
"author": "
|
|
48
|
+
"author": "Sebastián Real (tuxevil)",
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"pg": "^8.22.0",
|
|
51
51
|
"tsx": "^4.22.4",
|
package/src/onboarding.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
+
import { getConfiguredAdminToken } from "./admin-auth.js";
|
|
2
3
|
import { addAccountToConfig } from "./account-store.js";
|
|
3
4
|
import { PayloadTooLargeError, readLimitedBody } from "./body-limit.js";
|
|
4
5
|
import {
|
|
@@ -231,11 +232,17 @@ function renderPage(title: string, body: string): string {
|
|
|
231
232
|
export function serveLoginLanding(res: ServerResponse): void {
|
|
232
233
|
const hostedReady = isHostedOAuthConfigured();
|
|
233
234
|
const oauth = hostedReady ? getOAuthClientConfig() : null;
|
|
235
|
+
// The start route is admin-gated, so carry the token through — the page
|
|
236
|
+
// itself is only reachable with a valid token anyway.
|
|
237
|
+
const adminToken = getConfiguredAdminToken();
|
|
238
|
+
const startHref = adminToken
|
|
239
|
+
? `/auth/antigravity/start?token=${encodeURIComponent(adminToken)}`
|
|
240
|
+
: "/auth/antigravity/start";
|
|
234
241
|
const message = hostedReady
|
|
235
242
|
? `<p>This page starts the Antigravity sign-in flow and returns here automatically so the account can be added to this rotator.</p>
|
|
236
243
|
<p class="mono">Configured callback: ${escapeHtml(oauth?.redirectUri)}</p>
|
|
237
244
|
<div class="note">Signing in here grants this server a refresh token for the selected Google account. That allows the rotator to keep using that account until access is revoked.</div>
|
|
238
|
-
<a class="cta" href="
|
|
245
|
+
<a class="cta" href="${startHref}">Continue With Google</a>`
|
|
239
246
|
: `<p>This server is not yet configured for hosted OAuth.</p>
|
|
240
247
|
<p class="mono">Set ANTIGRAVITY_REDIRECT_URI, and usually ANTIGRAVITY_CLIENT_ID plus ANTIGRAVITY_CLIENT_SECRET, to a public callback URL registered with the OAuth client.</p>
|
|
241
248
|
<div class="note error">The current redirect is still loopback-only, so the transparent public callback cannot complete yet.</div>`;
|