dsh-agy 0.4.2 → 0.4.4
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/README.md +5 -1
- package/lib/{accounts-D605JE2i.mjs → accounts-DW-BL9c3.mjs} +5 -5
- package/lib/{accounts-D605JE2i.mjs.map → accounts-DW-BL9c3.mjs.map} +1 -1
- package/lib/{catalog-BgdDVJEB.mjs → catalog-BRHHLLd5.mjs} +13 -3
- package/lib/{catalog-BgdDVJEB.mjs.map → catalog-BRHHLLd5.mjs.map} +1 -1
- package/lib/cli/index.mjs +2 -2
- package/lib/client.js +1457 -151
- package/lib/index.mjs +2 -2
- package/lib/{models-B6bD7zPi.mjs → models-CjB0rXtI.mjs} +2 -2
- package/lib/{models-B6bD7zPi.mjs.map → models-CjB0rXtI.mjs.map} +1 -1
- package/lib/parse-38V1zT1B.mjs +270 -0
- package/lib/parse-38V1zT1B.mjs.map +1 -0
- package/lib/{plugin-common-kSBwIaFi.mjs → plugin-common-CKTYXxSc.mjs} +8 -7
- package/lib/plugin-common-CKTYXxSc.mjs.map +1 -0
- package/lib/{translate-YhGDUuVa.mjs → translate-BR1kuCaz.mjs} +58 -3
- package/lib/{translate-YhGDUuVa.mjs.map → translate-BR1kuCaz.mjs.map} +1 -1
- package/lib/web/plugin.mjs +98 -4
- package/lib/web/plugin.mjs.map +1 -1
- package/package.json +5 -2
- package/lib/parse-Bs4rPkHA.mjs +0 -190
- package/lib/parse-Bs4rPkHA.mjs.map +0 -1
- package/lib/plugin-common-kSBwIaFi.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -24,6 +24,10 @@ fingerprinting, and both CLI and web management.
|
|
|
24
24
|
calls, fingerprint and proxy management), models (per-model visibility), usage
|
|
25
25
|
(cumulative token and request statistics), and credentials (import/export).
|
|
26
26
|
No separate page: the surface only exists where DSH Settings does.
|
|
27
|
+
- **Quota badge in the session header**: the tightest of the active account's
|
|
28
|
+
tracked windows (5-hour vs weekly) as a single figure, with the per-window
|
|
29
|
+
breakdown and reset walls on hover. It reads the same grouped quota windows the
|
|
30
|
+
Settings section shows, so the header and the panel cannot disagree.
|
|
27
31
|
- **Model visibility toggles**: hide individual models from the DSH model
|
|
28
32
|
selector. Blacklist semantics — only models you switch off are hidden, so
|
|
29
33
|
models the server adds later stay visible.
|
|
@@ -233,7 +237,7 @@ counter.
|
|
|
233
237
|
|
|
234
238
|
| Env | Effect |
|
|
235
239
|
|---|---|
|
|
236
|
-
| `DSH_AGY_DISABLE=1` | Kill switch: the plugin registers nothing (provider + Settings section + OAuth callback) and the CLI refuses to run. |
|
|
240
|
+
| `DSH_AGY_DISABLE=1` | Kill switch: the plugin registers nothing (provider + Settings section + header quota badge + OAuth callback) and the CLI refuses to run. |
|
|
237
241
|
| `DSH_AGY_FINGERPRINT_MODE=stable` | One fixed client identity per account — no per-request header randomization, no fingerprint regeneration (OMP-style fixed-client posture). Default `dynamic` keeps per-request randomization. |
|
|
238
242
|
| `DSH_AGY_HEALTH_INTERVAL_MS=<ms>` | Background batch health probe inside the harness (refresh + userinfo on the configured interval); off by default. |
|
|
239
243
|
| `AGY_CLIENT_ID` / `AGY_CLIENT_SECRET` | BYO OAuth app escape hatch: override the embedded public Antigravity client credentials. |
|
|
@@ -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-CjB0rXtI.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);
|
|
@@ -2590,9 +2590,9 @@ var AgySessionManager = class AgySessionManager {
|
|
|
2590
2590
|
};
|
|
2591
2591
|
try {
|
|
2592
2592
|
const account = session.account.email ?? session.account.id;
|
|
2593
|
-
const { toAgyRequestBody } = await import("./translate-
|
|
2593
|
+
const { toAgyRequestBody } = await import("./translate-BR1kuCaz.mjs").then((n) => n.n);
|
|
2594
2594
|
const { fetchAgyFirstOk } = await import("./constants-CmA9wXNe.mjs").then((n) => n.f);
|
|
2595
|
-
const { parseAgySse } = await import("./parse-
|
|
2595
|
+
const { parseAgySse } = await import("./parse-38V1zT1B.mjs").then((n) => n.r);
|
|
2596
2596
|
const requestId = generateAntigravityRequestId();
|
|
2597
2597
|
const body = toAgyRequestBody({
|
|
2598
2598
|
provider: "agy",
|
|
@@ -3031,6 +3031,6 @@ var JsonAccountStore = class {
|
|
|
3031
3031
|
}
|
|
3032
3032
|
};
|
|
3033
3033
|
//#endregion
|
|
3034
|
-
export { isSessionAccumulationOverflow as S,
|
|
3034
|
+
export { isSessionAccumulationOverflow as C, describeFetchError as S, persistMasterKey as _, generateFingerprint as a, classifyFetchError as b, resolveAntigravityVersionBounded as c, agyDataFile as d, migrateToAgyDir as f, loadMasterKey as g, deriveKey as h, isAgyDisabled as i, clearExpiredState as l, createAesGcmCodec as m, maskProxyUrl as n, recordFingerprintVersion as o, MASTER_KEY_REF as p, AgySessionManager as r, resolveAntigravityVersion as s, JsonAccountStore as t, pickProbeProxyUrl as u, resolveDshHome as v, classifyHttpError as x, resolveMasterKeyCodec as y };
|
|
3035
3035
|
|
|
3036
|
-
//# sourceMappingURL=accounts-
|
|
3036
|
+
//# sourceMappingURL=accounts-DW-BL9c3.mjs.map
|