@eddyskywalker/dsh-chatgpt-subscription 0.2.11 → 0.2.14
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 +21 -0
- package/lib/client.js +9 -11
- package/lib/client.js.map +1 -1
- package/lib/index.js +85 -52
- package/lib/types/client/antigravity/AntigravityComposerQuota.d.ts.map +1 -1
- package/lib/types/client/antigravity/AntigravitySection.d.ts.map +1 -1
- package/lib/types/client/antigravity/locales.d.ts +12 -0
- package/lib/types/client/antigravity/locales.d.ts.map +1 -1
- package/lib/types/host/antigravity/adapter.d.ts.map +1 -1
- package/lib/types/host/antigravity/client.d.ts.map +1 -1
- package/lib/types/host/antigravity/types.d.ts +0 -1
- package/lib/types/host/antigravity/types.d.ts.map +1 -1
- package/lib/types/host/model-catalog.d.ts.map +1 -1
- package/lib/types/host/proxy-manager.d.ts +9 -1
- package/lib/types/host/proxy-manager.d.ts.map +1 -1
- package/lib/types/host/responses-mapper.d.ts.map +1 -1
- package/package.json +29 -29
package/lib/index.js
CHANGED
|
@@ -7,13 +7,13 @@ import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
|
7
7
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
8
8
|
import http, { createServer } from "node:http";
|
|
9
9
|
import { execSync, spawn } from "node:child_process";
|
|
10
|
+
import fs, { constants } from "node:fs";
|
|
11
|
+
import path, { dirname, join } from "node:path";
|
|
12
|
+
import os, { homedir } from "node:os";
|
|
10
13
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
11
14
|
import * as SettingsModule from "@deepseek-ai/dsh-settings";
|
|
12
15
|
import z from "@deepseek-ai/schemastery";
|
|
13
|
-
import fs, { constants } from "node:fs";
|
|
14
16
|
import fsPromises, { chmod, lstat, mkdir, open, rename, stat, unlink } from "node:fs/promises";
|
|
15
|
-
import os, { homedir } from "node:os";
|
|
16
|
-
import path, { dirname, join } from "node:path";
|
|
17
17
|
import { isDeepStrictEqual } from "node:util";
|
|
18
18
|
import { URL as URL$1, URLSearchParams as URLSearchParams$1 } from "node:url";
|
|
19
19
|
//#region src/compat.ts
|
|
@@ -1242,10 +1242,19 @@ function parseMacOsScutilProxy(stdout) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
return null;
|
|
1244
1244
|
}
|
|
1245
|
-
function parseEnvProxy(env = process.env) {
|
|
1245
|
+
function parseEnvProxy(env = process.env, options = {}) {
|
|
1246
1246
|
const proxy = env.HTTPS_PROXY || env.https_proxy || env.HTTP_PROXY || env.http_proxy || env.ALL_PROXY || env.all_proxy;
|
|
1247
|
-
if (
|
|
1248
|
-
|
|
1247
|
+
if (proxy && proxy.trim()) return normalizeProxyUrl(proxy);
|
|
1248
|
+
if (options.envFile === null) return null;
|
|
1249
|
+
try {
|
|
1250
|
+
const dshHome = env.DSH_HOME || path.join(os.homedir(), ".dsh");
|
|
1251
|
+
const envFile = options.envFile ?? path.join(dshHome, ".env");
|
|
1252
|
+
if (fs.existsSync(envFile)) {
|
|
1253
|
+
const match = fs.readFileSync(envFile, "utf8").match(/^(?:export\s+)?(?:HTTPS_PROXY|https_proxy|HTTP_PROXY|http_proxy|ALL_PROXY|all_proxy)\s*=\s*["']?([^"'\r\n]+)["']?/m);
|
|
1254
|
+
if (match && match[1]?.trim()) return normalizeProxyUrl(match[1].trim());
|
|
1255
|
+
}
|
|
1256
|
+
} catch {}
|
|
1257
|
+
return null;
|
|
1249
1258
|
}
|
|
1250
1259
|
function detectSystemProxy(platform = process.platform, env = process.env) {
|
|
1251
1260
|
try {
|
|
@@ -1647,7 +1656,7 @@ async function buildResponsesPayload(options, attachments, localRawImages = {},
|
|
|
1647
1656
|
const normalizeCallId = createCallIdNormalizer();
|
|
1648
1657
|
const instructionParts = [
|
|
1649
1658
|
options.system?.trim(),
|
|
1650
|
-
|
|
1659
|
+
latestSystemPrompt(options.messages),
|
|
1651
1660
|
progressExplanationInstruction(options.tools),
|
|
1652
1661
|
sandboxToolInstruction(options.tools, sandboxRetryTools),
|
|
1653
1662
|
commandToolInstruction(options.tools),
|
|
@@ -1862,6 +1871,20 @@ function runCodeErrorOutput(output) {
|
|
|
1862
1871
|
function isRunCodeParserError(output) {
|
|
1863
1872
|
return /(?:Legacy octal escape is not permitted in strict mode|Unexpected token|Invalid or unexpected token|Unterminated template|Expected ['"]?\}['"]?)/i.test(output);
|
|
1864
1873
|
}
|
|
1874
|
+
/**
|
|
1875
|
+
* The effective system prompt of a loop-built request. DSH keeps an earlier
|
|
1876
|
+
* `system` node as cached history whenever the rendered prompt changes, so only
|
|
1877
|
+
* the newest non-empty node is the complete prompt; concatenating every node
|
|
1878
|
+
* would resend superseded instructions.
|
|
1879
|
+
*/
|
|
1880
|
+
function latestSystemPrompt(messages) {
|
|
1881
|
+
for (let index = messages.length - 1; index >= 0; index -= 1) {
|
|
1882
|
+
const message = messages[index];
|
|
1883
|
+
if (message === void 0 || message.role !== "system") continue;
|
|
1884
|
+
const text = blocksToText(message.content).trim();
|
|
1885
|
+
if (text) return text;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1865
1888
|
async function mapContent(message, attachments, signal, localRawImages, localImageStats, resolveLocalRawImages) {
|
|
1866
1889
|
const result = [];
|
|
1867
1890
|
for (const block of message.content) if (block.type === "text") if (message.role === "user") result.push(...await mapUserText(block.text, attachments, signal, localRawImages, localImageStats, resolveLocalRawImages));
|
|
@@ -4206,11 +4229,13 @@ var FileModelSettingsStore = class {
|
|
|
4206
4229
|
};
|
|
4207
4230
|
let cachedQuota;
|
|
4208
4231
|
let quotaFetchInFlight = null;
|
|
4232
|
+
/** Bumped by every cache clear so an in-flight fetch cannot publish stale state. */
|
|
4233
|
+
let quotaCacheEpoch = 0;
|
|
4209
4234
|
const PLATFORM = process.platform === "darwin" ? "MACOS" : process.platform === "win32" ? "WINDOWS" : "LINUX";
|
|
4210
4235
|
function defaultUserAgent() {
|
|
4211
4236
|
const version = process.env.DSH_ANTIGRAVITY_VERSION || "2.8.0";
|
|
4212
4237
|
const cl = process.env.DSH_ANTIGRAVITY_CL || "963137146";
|
|
4213
|
-
return `antigravity/hub/${version} (aidev_client; os_type=${process.env.DSH_ANTIGRAVITY_OS || "darwin"}; arch=${process.env.DSH_ANTIGRAVITY_ARCH || "
|
|
4238
|
+
return `antigravity/hub/${version} (aidev_client; os_type=${process.env.DSH_ANTIGRAVITY_OS || (process.platform === "darwin" ? "darwin" : process.platform === "win32" ? "windows" : "linux")}; arch=${process.env.DSH_ANTIGRAVITY_ARCH || (process.arch === "x64" ? "amd64" : process.arch)}; cl=${cl})`;
|
|
4214
4239
|
}
|
|
4215
4240
|
function antigravityHeaders(token) {
|
|
4216
4241
|
return {
|
|
@@ -4290,6 +4315,7 @@ async function onboardUser(token, fetchFn = fetch, signal) {
|
|
|
4290
4315
|
tierId: FREE_TIER_ID,
|
|
4291
4316
|
metadata: { ideType: "ANTIGRAVITY" }
|
|
4292
4317
|
});
|
|
4318
|
+
let lastError;
|
|
4293
4319
|
for (const endpoint of endpointCandidates()) try {
|
|
4294
4320
|
const remainingTime = Math.max(1e3, deadline - Date.now());
|
|
4295
4321
|
const timeoutSignal = AbortSignal.timeout(remainingTime);
|
|
@@ -4334,8 +4360,10 @@ async function onboardUser(token, fetchFn = fetch, signal) {
|
|
|
4334
4360
|
operation = await pollResp.json();
|
|
4335
4361
|
}
|
|
4336
4362
|
} catch (err) {
|
|
4363
|
+
lastError = err;
|
|
4337
4364
|
if (Date.now() >= deadline || signal?.aborted) throw err;
|
|
4338
4365
|
}
|
|
4366
|
+
throw lastError instanceof Error ? lastError : /* @__PURE__ */ new Error("onboardUser failed on every endpoint");
|
|
4339
4367
|
}
|
|
4340
4368
|
async function listCloudAICompanionProjects(token, fetchFn = fetch) {
|
|
4341
4369
|
for (const endpoint of endpointCandidates()) try {
|
|
@@ -4417,57 +4445,62 @@ function parseCatalogModels(data) {
|
|
|
4417
4445
|
async function fetchAccountQuota(store = new FileCredentialStore(), modelSettings, fetchFn = fetch, force = false) {
|
|
4418
4446
|
if (!force && cachedQuota && Date.now() - (cachedQuota.fetchedAt || 0) < 12e4) return cachedQuota;
|
|
4419
4447
|
if (quotaFetchInFlight) return quotaFetchInFlight;
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
} finally {
|
|
4462
|
-
quotaFetchInFlight = null;
|
|
4448
|
+
const epoch = quotaCacheEpoch;
|
|
4449
|
+
const request = (async () => {
|
|
4450
|
+
const { token, projectId: credentialProjectId } = await ensureApiKey(store, fetchFn);
|
|
4451
|
+
const [assistResult, summaryResult] = await Promise.all([postJson("/v1internal:loadCodeAssist", token, { metadata: {
|
|
4452
|
+
ideType: "ANTIGRAVITY",
|
|
4453
|
+
platform: "PLATFORM_UNSPECIFIED",
|
|
4454
|
+
pluginType: "GEMINI"
|
|
4455
|
+
} }, fetchFn).catch(() => null), postJson("/v1internal:retrieveUserQuotaSummary", token, {}, fetchFn).catch(() => null)]);
|
|
4456
|
+
const discoveredProject = assistResult ? extractProjectId(assistResult.data) : void 0;
|
|
4457
|
+
const projectId = credentialProjectId || discoveredProject || "antigravity-default";
|
|
4458
|
+
const modelsData = (await postJson("/v1internal:fetchAvailableModels", token, { project: projectId }, fetchFn).catch(() => null))?.data;
|
|
4459
|
+
const { groups, description } = summaryResult ? parseQuotaSummary(summaryResult.data) : { groups: [] };
|
|
4460
|
+
const catalogModels = modelsData ? parseCatalogModels(modelsData) : [];
|
|
4461
|
+
const assistData = assistResult?.data || {};
|
|
4462
|
+
const currentTier = assistData.currentTier;
|
|
4463
|
+
const paidTier = assistData.paidTier;
|
|
4464
|
+
const planLabel = paidTier?.name || currentTier?.name || void 0;
|
|
4465
|
+
const snapshot = {
|
|
4466
|
+
projectId,
|
|
4467
|
+
endpoint: summaryResult?.endpoint || ENDPOINT_FALLBACKS[0],
|
|
4468
|
+
planLabel,
|
|
4469
|
+
productTier: currentTier,
|
|
4470
|
+
paidTier,
|
|
4471
|
+
groups,
|
|
4472
|
+
groupDescription: description,
|
|
4473
|
+
models: catalogModels.map((m) => ({
|
|
4474
|
+
modelId: m.id,
|
|
4475
|
+
displayName: m.name,
|
|
4476
|
+
description: m.description
|
|
4477
|
+
})),
|
|
4478
|
+
catalogModels,
|
|
4479
|
+
fetchedAt: Date.now()
|
|
4480
|
+
};
|
|
4481
|
+
if (epoch !== quotaCacheEpoch) return snapshot;
|
|
4482
|
+
cachedQuota = snapshot;
|
|
4483
|
+
if (modelSettings && catalogModels.length > 0) {
|
|
4484
|
+
const current = await modelSettings.read();
|
|
4485
|
+
const isFirstTime = current.catalogModels.length === 0 && current.enabledModelIds.length === 0;
|
|
4486
|
+
const catalogIds = new Set(catalogModels.map((m) => m.id));
|
|
4487
|
+
const mergedEnabled = isFirstTime ? catalogModels.map((m) => m.id) : current.enabledModelIds.filter((id) => catalogIds.has(id));
|
|
4488
|
+
await modelSettings.setCatalogModels(catalogModels, { enabledModelIds: mergedEnabled });
|
|
4463
4489
|
}
|
|
4490
|
+
return snapshot;
|
|
4464
4491
|
})();
|
|
4465
|
-
|
|
4492
|
+
quotaFetchInFlight = request;
|
|
4493
|
+
try {
|
|
4494
|
+
return await request;
|
|
4495
|
+
} finally {
|
|
4496
|
+
if (quotaFetchInFlight === request) quotaFetchInFlight = null;
|
|
4497
|
+
}
|
|
4466
4498
|
}
|
|
4467
4499
|
function getCachedQuota() {
|
|
4468
4500
|
return cachedQuota;
|
|
4469
4501
|
}
|
|
4470
4502
|
function clearCachedQuota() {
|
|
4503
|
+
quotaCacheEpoch += 1;
|
|
4471
4504
|
cachedQuota = void 0;
|
|
4472
4505
|
quotaFetchInFlight = null;
|
|
4473
4506
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AntigravityComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/AntigravityComposerQuota.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEjF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAmB7C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GACnD,WAAW,CAAC,OAAO,cAAc,CAAC,GAAG;IACnC,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC7C,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AAqCH,wBAAgB,wBAAwB,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"AntigravityComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/AntigravityComposerQuota.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEjF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAmB7C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GACnD,WAAW,CAAC,OAAO,cAAc,CAAC,GAAG;IACnC,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC7C,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AAqCH,wBAAgB,wBAAwB,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAkF3G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AntigravitySection.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/AntigravitySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAM/D,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAiBD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAuBD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"AntigravitySection.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/AntigravitySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAM/D,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAiBD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAuBD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAgdnG"}
|
|
@@ -37,6 +37,8 @@ export declare const zh: {
|
|
|
37
37
|
quotaDesc: string;
|
|
38
38
|
refreshQuota: string;
|
|
39
39
|
refreshingQuota: string;
|
|
40
|
+
quotaEmpty: string;
|
|
41
|
+
googleValidation: string;
|
|
40
42
|
resetPrefix: string;
|
|
41
43
|
resetUnavailable: string;
|
|
42
44
|
resetNow: string;
|
|
@@ -86,6 +88,8 @@ export declare const en: {
|
|
|
86
88
|
quotaDesc: string;
|
|
87
89
|
refreshQuota: string;
|
|
88
90
|
refreshingQuota: string;
|
|
91
|
+
quotaEmpty: string;
|
|
92
|
+
googleValidation: string;
|
|
89
93
|
resetPrefix: string;
|
|
90
94
|
resetUnavailable: string;
|
|
91
95
|
resetNow: string;
|
|
@@ -136,6 +140,8 @@ export declare const dictionaries: {
|
|
|
136
140
|
quotaDesc: string;
|
|
137
141
|
refreshQuota: string;
|
|
138
142
|
refreshingQuota: string;
|
|
143
|
+
quotaEmpty: string;
|
|
144
|
+
googleValidation: string;
|
|
139
145
|
resetPrefix: string;
|
|
140
146
|
resetUnavailable: string;
|
|
141
147
|
resetNow: string;
|
|
@@ -185,6 +191,8 @@ export declare const dictionaries: {
|
|
|
185
191
|
quotaDesc: string;
|
|
186
192
|
refreshQuota: string;
|
|
187
193
|
refreshingQuota: string;
|
|
194
|
+
quotaEmpty: string;
|
|
195
|
+
googleValidation: string;
|
|
188
196
|
resetPrefix: string;
|
|
189
197
|
resetUnavailable: string;
|
|
190
198
|
resetNow: string;
|
|
@@ -234,6 +242,8 @@ export declare const dictionaries: {
|
|
|
234
242
|
quotaDesc: string;
|
|
235
243
|
refreshQuota: string;
|
|
236
244
|
refreshingQuota: string;
|
|
245
|
+
quotaEmpty: string;
|
|
246
|
+
googleValidation: string;
|
|
237
247
|
resetPrefix: string;
|
|
238
248
|
resetUnavailable: string;
|
|
239
249
|
resetNow: string;
|
|
@@ -283,6 +293,8 @@ export declare const dictionaries: {
|
|
|
283
293
|
quotaDesc: string;
|
|
284
294
|
refreshQuota: string;
|
|
285
295
|
refreshingQuota: string;
|
|
296
|
+
quotaEmpty: string;
|
|
297
|
+
googleValidation: string;
|
|
286
298
|
resetPrefix: string;
|
|
287
299
|
resetUnavailable: string;
|
|
288
300
|
resetNow: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAA;AAE/C,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAA;AAE/C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDd,CAAA;AAED,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDd,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/adapter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OAAO,CAAC,mBAAmB,CAAC;IAO/F,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC;YAwBpD,aAAa;CAwG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/client.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,uCAAuC,CAAA;AAG9C,eAAO,MAAM,8BAA8B,QAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/client.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,uCAAuC,CAAA;AAG9C,eAAO,MAAM,8BAA8B,QAAgB,CAAA;AAQ3D,wBAAgB,gBAAgB,IAAI,MAAM,CAOzC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAaxE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAKjE;AAED,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAI7C;AA+BD,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IAC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AAI,EAAE,OAAO,GAAG;IAChD,MAAM,EAAE,qBAAqB,EAAE,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAyCA;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,uBAAuB,EAAE,CAmB3E;AAED,wBAAsB,iBAAiB,CACrC,KAAK,sBAA4B,EACjC,aAAa,CAAC,EAAE,sBAAsB,EACtC,OAAO,GAAE,OAAO,KAAa,EAC7B,KAAK,UAAQ,GACZ,OAAO,CAAC,uBAAuB,CAAC,CAgFlC;AAED,wBAAgB,cAAc,IAAI,uBAAuB,GAAG,SAAS,CAEpE;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAIvC"}
|
|
@@ -8,7 +8,6 @@ export declare const MODEL_CACHE_TTL_MS: number;
|
|
|
8
8
|
export declare const OAUTH_CALLBACK_TIMEOUT_MS: number;
|
|
9
9
|
export declare const DEFAULT_ENDPOINT = "https://cloudcode-pa.googleapis.com";
|
|
10
10
|
export declare const DAILY_ENDPOINT = "https://daily-cloudcode-pa.googleapis.com";
|
|
11
|
-
export declare const SANDBOX_ENDPOINT = "https://daily-cloudcode-pa.sandbox.googleapis.com";
|
|
12
11
|
export declare const ENDPOINT_FALLBACKS: string[];
|
|
13
12
|
export declare const FREE_TIER_ID = "free-tier";
|
|
14
13
|
export declare const ONBOARD_TIMEOUT_MS = 30000;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,gBAAgB,CAAA;AAC1C,eAAO,MAAM,WAAW,gBAAgB,CAAA;AAExC,eAAO,MAAM,sBAAsB,SAAU,CAAA;AAC7C,eAAO,MAAM,wBAAwB,4BAA4B,CAAA;AACjE,eAAO,MAAM,oBAAoB,OAAQ,CAAA;AACzC,eAAO,MAAM,oBAAoB,QAAiB,CAAA;AAClD,eAAO,MAAM,kBAA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ts","sourceRoot":"","sources":["../../../src/host/model-catalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAG9E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAEnE,eAAO,MAAM,WAAW,iBAA4B,CAAA;AACpD,eAAO,MAAM,aAAa,EAAG,uCAA4B,CAAA;AAEzD,wBAAgB,eAAe,CAAC,WAAW,CAAC,EAAE,2BAA2B,GAAG,YAAY,EAAE,CAQzF;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,2BAA2B,GAAG,oBAAoB,CA8BhH"}
|
|
@@ -3,7 +3,15 @@ export type FetchLike = typeof fetch;
|
|
|
3
3
|
export declare function normalizeProxyUrl(rawUrl: string): string;
|
|
4
4
|
export declare function parseWindowsProxyRegistry(stdout: string): string | null;
|
|
5
5
|
export declare function parseMacOsScutilProxy(stdout: string): string | null;
|
|
6
|
-
export
|
|
6
|
+
export interface ParseEnvProxyOptions {
|
|
7
|
+
/**
|
|
8
|
+
* `$DSH_HOME/.env` consulted after the process environment; `null` disables
|
|
9
|
+
* the file fallback so a caller (or a test) never reads configuration behind
|
|
10
|
+
* the injected environment's back.
|
|
11
|
+
*/
|
|
12
|
+
envFile?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare function parseEnvProxy(env?: Record<string, string | undefined>, options?: ParseEnvProxyOptions): string | null;
|
|
7
15
|
export declare function detectSystemProxy(platform?: NodeJS.Platform, env?: Record<string, string | undefined>): string | null;
|
|
8
16
|
export interface ProxyFetchOptions {
|
|
9
17
|
getPreferences: () => Pick<SubscriptionPreferencesDto, 'proxyMode' | 'customProxyUrl'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-manager.d.ts","sourceRoot":"","sources":["../../../src/host/proxy-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"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,6BAA6B,CAAC,OAAO,EAAE,eAAe,GAAG,GAAG,CAAC,MAAM,CAAC,CAKnF;AAsCD,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC,EAC/F,cAAc,GAAE,oBAAyB,EACzC,eAAe,GAAE,oBAAoB,GAAG,IAAW,EACnD,QAAQ,GAAE,OAAe,EACzB,gBAAgB,GAAE,qBAAqB,GAAG,IAAW,GACpD,OAAO,CAAC,gBAAgB,CAAC,CAqG3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eddyskywalker/dsh-chatgpt-subscription",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "DSH provider plugin for Codex access through a ChatGPT subscription.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "eddyskywalker",
|
|
@@ -61,40 +61,40 @@
|
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
63
63
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
64
|
-
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
65
|
-
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
66
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
67
|
-
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
69
|
-
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
72
|
-
"@deepseek-ai/dsh-client-ui-tool": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
73
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
74
|
-
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
75
|
-
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
76
|
-
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
77
|
-
"@deepseek-ai/dsh-web": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
64
|
+
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-tool": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-web": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
78
78
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
79
79
|
"react": "^18.2.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
83
83
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
84
|
-
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
85
|
-
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
86
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
87
|
-
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
89
|
-
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-tool": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
93
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
94
|
-
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
95
|
-
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
96
|
-
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
97
|
-
"@deepseek-ai/dsh-web": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2",
|
|
84
|
+
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-tool": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-web": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1",
|
|
98
98
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
99
99
|
"@types/node": "^22.20.0",
|
|
100
100
|
"@types/react": "~18.3.1",
|