dsh-agy 0.4.1 → 0.4.2
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/lib/{accounts-BjdDqUq1.mjs → accounts-D605JE2i.mjs} +7 -7
- package/lib/{accounts-BjdDqUq1.mjs.map → accounts-D605JE2i.mjs.map} +1 -1
- package/lib/cli/index.mjs +6 -6
- package/lib/client.js +23 -20
- package/lib/{constants-BpyRirvk.mjs → constants-CmA9wXNe.mjs} +3 -3
- package/lib/{constants-BpyRirvk.mjs.map → constants-CmA9wXNe.mjs.map} +1 -1
- package/lib/{exchange-LzEyxve1.mjs → exchange-C-tndv7j.mjs} +3 -3
- package/lib/{exchange-LzEyxve1.mjs.map → exchange-C-tndv7j.mjs.map} +1 -1
- package/lib/{import-CotRHNDk.mjs → import-SxPDjH3u.mjs} +4 -4
- package/lib/{import-CotRHNDk.mjs.map → import-SxPDjH3u.mjs.map} +1 -1
- package/lib/index.mjs +2 -2
- package/lib/{models-Qn0-sh6X.mjs → models-B6bD7zPi.mjs} +3 -3
- package/lib/{models-Qn0-sh6X.mjs.map → models-B6bD7zPi.mjs.map} +1 -1
- package/lib/{plugin-common-B7OSfnyl.mjs → plugin-common-kSBwIaFi.mjs} +5 -5
- package/lib/{plugin-common-B7OSfnyl.mjs.map → plugin-common-kSBwIaFi.mjs.map} +1 -1
- package/lib/{proxy-DfaL73mL.mjs → proxy-BbuQX5U9.mjs} +28 -8
- package/lib/proxy-BbuQX5U9.mjs.map +1 -0
- package/lib/{quota-summary-adID82I2.mjs → quota-summary-DEA3P3Zh.mjs} +3 -3
- package/lib/{quota-summary-adID82I2.mjs.map → quota-summary-DEA3P3Zh.mjs.map} +1 -1
- package/lib/web/plugin.mjs +7 -7
- package/package.json +1 -4
- package/lib/proxy-DfaL73mL.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as setResolvedAgyVersion, a as AGY_PLATFORM_ENUM, b as QUOTA_WINDOWS, d as antigravityUserAgent, g as resolveAgyClientCredentials, l as OAUTH_TOKEN_URL, p as currentAgyVersion, t as AGY_CLIENT_ID, v as AgyAuthError, x as isProxyRouted, y as AgyPoolBlockedError } from "./constants-
|
|
2
|
-
import { a as probeFetch, l as redactCredentials, o as proxiedFetch, r as isProxyUnreachableError, t as accountFetch } from "./proxy-
|
|
1
|
+
import { _ as setResolvedAgyVersion, a as AGY_PLATFORM_ENUM, b as QUOTA_WINDOWS, d as antigravityUserAgent, g as resolveAgyClientCredentials, l as OAUTH_TOKEN_URL, p as currentAgyVersion, t as AGY_CLIENT_ID, v as AgyAuthError, x as isProxyRouted, y as AgyPoolBlockedError } from "./constants-CmA9wXNe.mjs";
|
|
2
|
+
import { a as probeFetch, l as redactCredentials, o as proxiedFetch, r as isProxyUnreachableError, t as accountFetch } from "./proxy-BbuQX5U9.mjs";
|
|
3
3
|
import { i as generateAntigravityRequestId, r as deriveAntigravitySessionId } from "./identity-Ci8EGc1F.mjs";
|
|
4
4
|
import { i as parseRefreshParts, n as calculateTokenExpiry, r as formatRefreshParts, t as accessTokenExpired } from "./auth-DPPVFwio.mjs";
|
|
5
5
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -2107,7 +2107,7 @@ var AgySessionManager = class AgySessionManager {
|
|
|
2107
2107
|
try {
|
|
2108
2108
|
const auth = await this.accessTokenFor(account);
|
|
2109
2109
|
if (!auth) return [];
|
|
2110
|
-
const { fetchQuotaSummary } = await import("./quota-summary-
|
|
2110
|
+
const { fetchQuotaSummary } = await import("./quota-summary-DEA3P3Zh.mjs");
|
|
2111
2111
|
const routed = accountFetch({ proxyUrl: account.proxy });
|
|
2112
2112
|
const bounded = (input, init) => {
|
|
2113
2113
|
const timeout = AbortSignal.timeout(AgySessionManager.QUOTA_FETCH_TIMEOUT_MS);
|
|
@@ -2245,7 +2245,7 @@ var AgySessionManager = class AgySessionManager {
|
|
|
2245
2245
|
try {
|
|
2246
2246
|
const auth = await this.accessTokenFor(account);
|
|
2247
2247
|
if (!auth) return null;
|
|
2248
|
-
const { fetchAvailableModels } = await import("./models-
|
|
2248
|
+
const { fetchAvailableModels } = await import("./models-B6bD7zPi.mjs").then((n) => n.r);
|
|
2249
2249
|
const routed = accountFetch({ proxyUrl: account.proxy });
|
|
2250
2250
|
const bounded = (input, init) => {
|
|
2251
2251
|
const timeout = AbortSignal.timeout(AgySessionManager.QUOTA_FETCH_TIMEOUT_MS);
|
|
@@ -2427,7 +2427,7 @@ var AgySessionManager = class AgySessionManager {
|
|
|
2427
2427
|
}
|
|
2428
2428
|
const key = this.accountKey(picked.account);
|
|
2429
2429
|
if (!picked.account.projectId && !this.projectRetryFailed.has(key)) try {
|
|
2430
|
-
const { loadCodeAssist } = await import("./exchange-
|
|
2430
|
+
const { loadCodeAssist } = await import("./exchange-C-tndv7j.mjs").then((n) => n.n);
|
|
2431
2431
|
const { projectId } = await loadCodeAssist(auth.access, { proxyUrl: picked.account.proxy });
|
|
2432
2432
|
if (projectId) {
|
|
2433
2433
|
await this.store.mutate((s) => {
|
|
@@ -2591,7 +2591,7 @@ var AgySessionManager = class AgySessionManager {
|
|
|
2591
2591
|
try {
|
|
2592
2592
|
const account = session.account.email ?? session.account.id;
|
|
2593
2593
|
const { toAgyRequestBody } = await import("./translate-YhGDUuVa.mjs").then((n) => n.n);
|
|
2594
|
-
const { fetchAgyFirstOk } = await import("./constants-
|
|
2594
|
+
const { fetchAgyFirstOk } = await import("./constants-CmA9wXNe.mjs").then((n) => n.f);
|
|
2595
2595
|
const { parseAgySse } = await import("./parse-Bs4rPkHA.mjs").then((n) => n.n);
|
|
2596
2596
|
const requestId = generateAntigravityRequestId();
|
|
2597
2597
|
const body = toAgyRequestBody({
|
|
@@ -3033,4 +3033,4 @@ var JsonAccountStore = class {
|
|
|
3033
3033
|
//#endregion
|
|
3034
3034
|
export { isSessionAccumulationOverflow as S, resolveDshHome as _, generateFingerprint as a, classifyHttpError as b, resolveAntigravityVersionBounded as c, migrateToAgyDir as d, MASTER_KEY_REF as f, persistMasterKey as g, loadMasterKey as h, isAgyDisabled as i, clearExpiredState as l, deriveKey as m, maskProxyUrl as n, recordFingerprintVersion as o, createAesGcmCodec as p, AgySessionManager as r, resolveAntigravityVersion as s, JsonAccountStore as t, pickProbeProxyUrl as u, resolveMasterKeyCodec as v, describeFetchError as x, classifyFetchError as y };
|
|
3035
3035
|
|
|
3036
|
-
//# sourceMappingURL=accounts-
|
|
3036
|
+
//# sourceMappingURL=accounts-D605JE2i.mjs.map
|