@eddyskywalker/dsh-chatgpt-subscription 0.2.12 → 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 -75
- package/lib/client.js.map +1 -1
- package/lib/index.js +73 -94
- 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/client/locales.d.ts +1 -65
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/compat.d.ts +0 -11
- package/lib/types/compat.d.ts.map +1 -1
- package/lib/types/host/antigravity/adapter.d.ts +0 -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/mapper.d.ts +0 -1
- package/lib/types/host/antigravity/mapper.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/preferences.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 +0 -1
- package/lib/types/host/responses-mapper.d.ts.map +1 -1
- package/lib/types/shared/contracts.d.ts +0 -9
- package/lib/types/shared/contracts.d.ts.map +1 -1
- package/lib/types/shared/preferences.d.ts +0 -2
- package/lib/types/shared/preferences.d.ts.map +1 -1
- package/package.json +29 -29
package/lib/index.js
CHANGED
|
@@ -211,7 +211,6 @@ function resolveCodexModel(model, preferences) {
|
|
|
211
211
|
inputModalities: [...entry.inputModalities],
|
|
212
212
|
context: { contextWindow: configuredContextWindow ?? entry.contextWindow },
|
|
213
213
|
defaultMaxTokens: 32768,
|
|
214
|
-
systemPromptUpdate: "in-history",
|
|
215
214
|
reasoning: {
|
|
216
215
|
efforts: efforts.map((effort) => ({
|
|
217
216
|
id: ReasoningEffortId(effort),
|
|
@@ -1243,12 +1242,13 @@ function parseMacOsScutilProxy(stdout) {
|
|
|
1243
1242
|
}
|
|
1244
1243
|
return null;
|
|
1245
1244
|
}
|
|
1246
|
-
function parseEnvProxy(env = process.env) {
|
|
1245
|
+
function parseEnvProxy(env = process.env, options = {}) {
|
|
1247
1246
|
const proxy = env.HTTPS_PROXY || env.https_proxy || env.HTTP_PROXY || env.http_proxy || env.ALL_PROXY || env.all_proxy;
|
|
1248
1247
|
if (proxy && proxy.trim()) return normalizeProxyUrl(proxy);
|
|
1248
|
+
if (options.envFile === null) return null;
|
|
1249
1249
|
try {
|
|
1250
1250
|
const dshHome = env.DSH_HOME || path.join(os.homedir(), ".dsh");
|
|
1251
|
-
const envFile = path.join(dshHome, ".env");
|
|
1251
|
+
const envFile = options.envFile ?? path.join(dshHome, ".env");
|
|
1252
1252
|
if (fs.existsSync(envFile)) {
|
|
1253
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
1254
|
if (match && match[1]?.trim()) return normalizeProxyUrl(match[1].trim());
|
|
@@ -1363,7 +1363,6 @@ const DEFAULT_PREFERENCES = {
|
|
|
1363
1363
|
},
|
|
1364
1364
|
subagentContextWindow: null,
|
|
1365
1365
|
subagentMaxDepth: null,
|
|
1366
|
-
teamModelRules: [],
|
|
1367
1366
|
proxyMode: "auto",
|
|
1368
1367
|
customProxyUrl: null
|
|
1369
1368
|
};
|
|
@@ -1410,13 +1409,6 @@ function registerPreferenceStore(settings) {
|
|
|
1410
1409
|
}).default(DEFAULT_PREFERENCES.contextWindowOverrides),
|
|
1411
1410
|
subagentContextWindow: z.union([z.number().step(1).min(1), z.const(null)]).default(DEFAULT_PREFERENCES.subagentContextWindow),
|
|
1412
1411
|
subagentMaxDepth: z.union([z.number().step(1).min(0).max(3), z.const(null)]).default(DEFAULT_PREFERENCES.subagentMaxDepth),
|
|
1413
|
-
teamModelRules: z.array(z.object({
|
|
1414
|
-
id: z.string(),
|
|
1415
|
-
pattern: z.string(),
|
|
1416
|
-
model: z.string(),
|
|
1417
|
-
reasoningEffort: z.union([z.string(), z.const(null)]).default(null),
|
|
1418
|
-
description: z.union([z.string(), z.const(null)]).default(null)
|
|
1419
|
-
})).default(DEFAULT_PREFERENCES.teamModelRules),
|
|
1420
1412
|
proxyMode: z.union([
|
|
1421
1413
|
z.const("auto"),
|
|
1422
1414
|
z.const("custom"),
|
|
@@ -1459,7 +1451,6 @@ var SettingsPreferenceStore = class {
|
|
|
1459
1451
|
};
|
|
1460
1452
|
if (patch.subagentContextWindow !== void 0) normalized.subagentContextWindow = patch.subagentContextWindow;
|
|
1461
1453
|
if (patch.subagentMaxDepth !== void 0) normalized.subagentMaxDepth = patch.subagentMaxDepth;
|
|
1462
|
-
if (patch.teamModelRules !== void 0) normalized.teamModelRules = Array.isArray(patch.teamModelRules) ? patch.teamModelRules.filter((r) => r && typeof r.pattern === "string" && typeof r.model === "string") : [];
|
|
1463
1454
|
if (patch.proxyMode !== void 0) {
|
|
1464
1455
|
if (!isProxyMode(patch.proxyMode)) throw new PreferenceError("Unsupported proxy mode preference.");
|
|
1465
1456
|
normalized.proxyMode = patch.proxyMode;
|
|
@@ -1665,7 +1656,7 @@ async function buildResponsesPayload(options, attachments, localRawImages = {},
|
|
|
1665
1656
|
const normalizeCallId = createCallIdNormalizer();
|
|
1666
1657
|
const instructionParts = [
|
|
1667
1658
|
options.system?.trim(),
|
|
1668
|
-
|
|
1659
|
+
latestSystemPrompt(options.messages),
|
|
1669
1660
|
progressExplanationInstruction(options.tools),
|
|
1670
1661
|
sandboxToolInstruction(options.tools, sandboxRetryTools),
|
|
1671
1662
|
commandToolInstruction(options.tools),
|
|
@@ -1880,6 +1871,20 @@ function runCodeErrorOutput(output) {
|
|
|
1880
1871
|
function isRunCodeParserError(output) {
|
|
1881
1872
|
return /(?:Legacy octal escape is not permitted in strict mode|Unexpected token|Invalid or unexpected token|Unterminated template|Expected ['"]?\}['"]?)/i.test(output);
|
|
1882
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
|
+
}
|
|
1883
1888
|
async function mapContent(message, attachments, signal, localRawImages, localImageStats, resolveLocalRawImages) {
|
|
1884
1889
|
const result = [];
|
|
1885
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));
|
|
@@ -1893,14 +1898,6 @@ async function mapContent(message, attachments, signal, localRawImages, localIma
|
|
|
1893
1898
|
type: "input_image",
|
|
1894
1899
|
image_url: await imageDataUrl(block.attachment, attachments, signal)
|
|
1895
1900
|
});
|
|
1896
|
-
} else if (block.type === "file") {
|
|
1897
|
-
const file = block.attachment ?? {};
|
|
1898
|
-
const fileText = `[File attachment: ${typeof file.name === "string" ? file.name : typeof file.filename === "string" ? file.filename : "unnamed"}${typeof file.byteSize === "number" ? ` (${file.byteSize} bytes)` : ""}${typeof file.savedPath === "string" ? ` path: ${file.savedPath}` : ""}]`;
|
|
1899
|
-
if (message.role === "user") pushInputText(result, fileText);
|
|
1900
|
-
else result.push({
|
|
1901
|
-
type: "output_text",
|
|
1902
|
-
text: fileText
|
|
1903
|
-
});
|
|
1904
1901
|
}
|
|
1905
1902
|
return result;
|
|
1906
1903
|
}
|
|
@@ -2031,10 +2028,6 @@ function blocksToText(blocks) {
|
|
|
2031
2028
|
return blocks.map((block) => {
|
|
2032
2029
|
if (block.type === "text" || block.type === "reasoning") return block.text;
|
|
2033
2030
|
if (block.type === "image") return `[image: ${block.attachment.name ?? block.attachment.attachmentId}]`;
|
|
2034
|
-
if (block.type === "file") {
|
|
2035
|
-
const file = block.attachment ?? {};
|
|
2036
|
-
return `[file: ${typeof file.name === "string" ? file.name : typeof file.filename === "string" ? file.filename : "unnamed"}${typeof file.byteSize === "number" ? ` (${file.byteSize} bytes)` : ""}${typeof file.savedPath === "string" ? ` path: ${file.savedPath}` : ""}]`;
|
|
2037
|
-
}
|
|
2038
2031
|
if (block.type === "tool-result") return blocksToText(block.content);
|
|
2039
2032
|
return "";
|
|
2040
2033
|
}).filter(Boolean).join("\n");
|
|
@@ -3160,19 +3153,6 @@ function readPreferencesUpdate(value, current) {
|
|
|
3160
3153
|
if (value.subagentMaxDepth !== null && (!Number.isSafeInteger(value.subagentMaxDepth) || value.subagentMaxDepth < 0 || value.subagentMaxDepth > 3)) throw new PreferenceError(`subagentMaxDepth must be null or an integer from 0 to 3.`);
|
|
3161
3154
|
patch.subagentMaxDepth = value.subagentMaxDepth;
|
|
3162
3155
|
}
|
|
3163
|
-
if ("teamModelRules" in value) {
|
|
3164
|
-
if (!Array.isArray(value.teamModelRules)) throw new PreferenceError("teamModelRules must be an array.");
|
|
3165
|
-
patch.teamModelRules = value.teamModelRules.map((rule) => {
|
|
3166
|
-
if (!isRecord$2(rule) || typeof rule.pattern !== "string" || typeof rule.model !== "string") throw new PreferenceError("Each teamModelRule must have a string pattern and model.");
|
|
3167
|
-
return {
|
|
3168
|
-
id: typeof rule.id === "string" && rule.id ? rule.id : `rule_${Date.now()}_${Math.random().toString(36).slice(2, 7)}`,
|
|
3169
|
-
pattern: rule.pattern.trim(),
|
|
3170
|
-
model: rule.model.trim(),
|
|
3171
|
-
reasoningEffort: typeof rule.reasoningEffort === "string" ? rule.reasoningEffort : null,
|
|
3172
|
-
description: typeof rule.description === "string" ? rule.description.trim() : void 0
|
|
3173
|
-
};
|
|
3174
|
-
});
|
|
3175
|
-
}
|
|
3176
3156
|
if ("proxyMode" in value) {
|
|
3177
3157
|
if (value.proxyMode !== "auto" && value.proxyMode !== "custom" && value.proxyMode !== "direct") throw new PreferenceError("proxyMode must be auto, custom, or direct.");
|
|
3178
3158
|
patch.proxyMode = value.proxyMode;
|
|
@@ -4249,11 +4229,13 @@ var FileModelSettingsStore = class {
|
|
|
4249
4229
|
};
|
|
4250
4230
|
let cachedQuota;
|
|
4251
4231
|
let quotaFetchInFlight = null;
|
|
4232
|
+
/** Bumped by every cache clear so an in-flight fetch cannot publish stale state. */
|
|
4233
|
+
let quotaCacheEpoch = 0;
|
|
4252
4234
|
const PLATFORM = process.platform === "darwin" ? "MACOS" : process.platform === "win32" ? "WINDOWS" : "LINUX";
|
|
4253
4235
|
function defaultUserAgent() {
|
|
4254
4236
|
const version = process.env.DSH_ANTIGRAVITY_VERSION || "2.8.0";
|
|
4255
4237
|
const cl = process.env.DSH_ANTIGRAVITY_CL || "963137146";
|
|
4256
|
-
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})`;
|
|
4257
4239
|
}
|
|
4258
4240
|
function antigravityHeaders(token) {
|
|
4259
4241
|
return {
|
|
@@ -4333,6 +4315,7 @@ async function onboardUser(token, fetchFn = fetch, signal) {
|
|
|
4333
4315
|
tierId: FREE_TIER_ID,
|
|
4334
4316
|
metadata: { ideType: "ANTIGRAVITY" }
|
|
4335
4317
|
});
|
|
4318
|
+
let lastError;
|
|
4336
4319
|
for (const endpoint of endpointCandidates()) try {
|
|
4337
4320
|
const remainingTime = Math.max(1e3, deadline - Date.now());
|
|
4338
4321
|
const timeoutSignal = AbortSignal.timeout(remainingTime);
|
|
@@ -4377,8 +4360,10 @@ async function onboardUser(token, fetchFn = fetch, signal) {
|
|
|
4377
4360
|
operation = await pollResp.json();
|
|
4378
4361
|
}
|
|
4379
4362
|
} catch (err) {
|
|
4363
|
+
lastError = err;
|
|
4380
4364
|
if (Date.now() >= deadline || signal?.aborted) throw err;
|
|
4381
4365
|
}
|
|
4366
|
+
throw lastError instanceof Error ? lastError : /* @__PURE__ */ new Error("onboardUser failed on every endpoint");
|
|
4382
4367
|
}
|
|
4383
4368
|
async function listCloudAICompanionProjects(token, fetchFn = fetch) {
|
|
4384
4369
|
for (const endpoint of endpointCandidates()) try {
|
|
@@ -4460,57 +4445,62 @@ function parseCatalogModels(data) {
|
|
|
4460
4445
|
async function fetchAccountQuota(store = new FileCredentialStore(), modelSettings, fetchFn = fetch, force = false) {
|
|
4461
4446
|
if (!force && cachedQuota && Date.now() - (cachedQuota.fetchedAt || 0) < 12e4) return cachedQuota;
|
|
4462
4447
|
if (quotaFetchInFlight) return quotaFetchInFlight;
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
} finally {
|
|
4505
|
-
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 });
|
|
4506
4489
|
}
|
|
4490
|
+
return snapshot;
|
|
4507
4491
|
})();
|
|
4508
|
-
|
|
4492
|
+
quotaFetchInFlight = request;
|
|
4493
|
+
try {
|
|
4494
|
+
return await request;
|
|
4495
|
+
} finally {
|
|
4496
|
+
if (quotaFetchInFlight === request) quotaFetchInFlight = null;
|
|
4497
|
+
}
|
|
4509
4498
|
}
|
|
4510
4499
|
function getCachedQuota() {
|
|
4511
4500
|
return cachedQuota;
|
|
4512
4501
|
}
|
|
4513
4502
|
function clearCachedQuota() {
|
|
4503
|
+
quotaCacheEpoch += 1;
|
|
4514
4504
|
cachedQuota = void 0;
|
|
4515
4505
|
quotaFetchInFlight = null;
|
|
4516
4506
|
}
|
|
@@ -4983,12 +4973,6 @@ function contentToUserParts(content) {
|
|
|
4983
4973
|
else if (isRecord(block) && block.type === "image") {
|
|
4984
4974
|
const img = imageBlockToPart(block);
|
|
4985
4975
|
if (img) parts.push(img);
|
|
4986
|
-
} else if (isRecord(block) && block.type === "file") {
|
|
4987
|
-
const file = isRecord(block.attachment) ? block.attachment : block;
|
|
4988
|
-
const name = asString(file.name) || asString(file.filename) || "unnamed";
|
|
4989
|
-
const size = typeof file.byteSize === "number" ? ` (${file.byteSize} bytes)` : "";
|
|
4990
|
-
const savedPath = asString(file.savedPath) ? ` path: ${asString(file.savedPath)}` : "";
|
|
4991
|
-
parts.push({ text: sanitizeText(`[File attachment: ${name}${size}${savedPath}]`) });
|
|
4992
4976
|
}
|
|
4993
4977
|
return parts;
|
|
4994
4978
|
}
|
|
@@ -4997,10 +4981,6 @@ function toolResultText(blocks) {
|
|
|
4997
4981
|
return blocks.map((block) => {
|
|
4998
4982
|
if (!isRecord(block)) return "";
|
|
4999
4983
|
if (block.type === "text" && typeof block.text === "string") return sanitizeText(block.text);
|
|
5000
|
-
if (block.type === "file") {
|
|
5001
|
-
const file = isRecord(block.attachment) ? block.attachment : block;
|
|
5002
|
-
return sanitizeText(`[file: ${asString(file.name) || asString(file.filename) || "unnamed"}${typeof file.byteSize === "number" ? ` (${file.byteSize} bytes)` : ""}]`);
|
|
5003
|
-
}
|
|
5004
4984
|
if (block.type === "tool-result") return toolResultText(block.content);
|
|
5005
4985
|
return "";
|
|
5006
4986
|
}).join("");
|
|
@@ -5469,7 +5449,6 @@ var AntigravityAdapter = class extends LlmAdapter {
|
|
|
5469
5449
|
inputModalities: model.inputModalities,
|
|
5470
5450
|
context: { contextWindow: overrides[model.id] || model.contextWindow },
|
|
5471
5451
|
defaultMaxTokens: model.maxTokens,
|
|
5472
|
-
systemPromptUpdate: "in-history",
|
|
5473
5452
|
...model.reasoningEfforts ? { reasoning: {
|
|
5474
5453
|
efforts: efforts.map((effort) => ({
|
|
5475
5454
|
id: ReasoningEffortId(effort),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AntigravityComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/AntigravityComposerQuota.tsx"],"names":[],"mappings":"A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|
|
@@ -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"}
|
|
@@ -129,38 +129,6 @@ export declare const zh: {
|
|
|
129
129
|
readonly imagePreviewOpenOriginal: "打开原图";
|
|
130
130
|
readonly retry: "重试";
|
|
131
131
|
readonly unknown: "未知";
|
|
132
|
-
readonly teamModelRulesTitle: "智能体团队 (Agent Teams) 混合模型规则";
|
|
133
|
-
readonly teamModelRulesHint: "在 Agent Teams 协同模式下,可根据 Teammate 角色或名称前缀(如 reviewer*、code*、scout)自动匹配不同模型,未匹配项使用默认子代理模型。";
|
|
134
|
-
readonly teamRulePattern: "匹配角色/前缀";
|
|
135
|
-
readonly teamRulePatternPlaceholder: "输入通配符,如 reviewer* 或 audit";
|
|
136
|
-
readonly teamRuleModel: "目标模型";
|
|
137
|
-
readonly teamRuleModelPlaceholder: "输入模型 ID,如 custom:model-id";
|
|
138
|
-
readonly teamRuleEffort: "思考档位";
|
|
139
|
-
readonly teamRuleAdd: "添加团队规则";
|
|
140
|
-
readonly teamRuleDelete: "删除";
|
|
141
|
-
readonly teamRuleEmpty: "暂未配置团队规则,所有 Teammate 将使用全局默认子代理模型。";
|
|
142
|
-
readonly teamRuleQuickPresets: "团队预设模板";
|
|
143
|
-
readonly teamRuleQuickPresetsHint: "一键为常见团队角色快速注入推荐模型与思考深度。";
|
|
144
|
-
readonly presetReviewer: "代码审查员 (review* -> 6 Astra)";
|
|
145
|
-
readonly presetCoder: "实现工程师 (code* -> 5.6 Sol)";
|
|
146
|
-
readonly presetFast: "轻量助理 (scout/test* -> DeepSeek V41 Flash)";
|
|
147
|
-
readonly presetReviewerShort: "审查员";
|
|
148
|
-
readonly presetCoderShort: "工程师";
|
|
149
|
-
readonly presetFastShort: "轻量探索";
|
|
150
|
-
readonly teamRuleAddLabel: "添加规则";
|
|
151
|
-
readonly roleReviewer: "代码审查员 (Reviewer · review*)";
|
|
152
|
-
readonly roleCoder: "实现工程师 (Coder · code*)";
|
|
153
|
-
readonly roleTester: "测试与质量 (Tester · test*)";
|
|
154
|
-
readonly roleScout: "探索调研员 (Scout/Research · scout*)";
|
|
155
|
-
readonly roleArchitect: "架构规划师 (Architect · design*)";
|
|
156
|
-
readonly roleDoc: "文档撰写员 (Documentation · doc*)";
|
|
157
|
-
readonly roleCustom: "自定义角色模式…";
|
|
158
|
-
readonly modelCustom: "自定义模型 ID…";
|
|
159
|
-
readonly effortDefault: "默认思考档位";
|
|
160
|
-
readonly effortLow: "低思考 (low) · 快速响应";
|
|
161
|
-
readonly effortMedium: "中思考 (medium) · 推荐平衡";
|
|
162
|
-
readonly effortHigh: "高思考 (high) · 深度推导";
|
|
163
|
-
readonly effortMax: "极致思考 (max) · 超强推理";
|
|
164
132
|
};
|
|
165
133
|
export declare const en: Record<keyof typeof zh, string>;
|
|
166
134
|
export type LocaleKey = keyof typeof zh;
|
|
@@ -295,39 +263,7 @@ export declare const dictionaries: {
|
|
|
295
263
|
readonly imagePreviewOpenOriginal: "打开原图";
|
|
296
264
|
readonly retry: "重试";
|
|
297
265
|
readonly unknown: "未知";
|
|
298
|
-
readonly teamModelRulesTitle: "智能体团队 (Agent Teams) 混合模型规则";
|
|
299
|
-
readonly teamModelRulesHint: "在 Agent Teams 协同模式下,可根据 Teammate 角色或名称前缀(如 reviewer*、code*、scout)自动匹配不同模型,未匹配项使用默认子代理模型。";
|
|
300
|
-
readonly teamRulePattern: "匹配角色/前缀";
|
|
301
|
-
readonly teamRulePatternPlaceholder: "输入通配符,如 reviewer* 或 audit";
|
|
302
|
-
readonly teamRuleModel: "目标模型";
|
|
303
|
-
readonly teamRuleModelPlaceholder: "输入模型 ID,如 custom:model-id";
|
|
304
|
-
readonly teamRuleEffort: "思考档位";
|
|
305
|
-
readonly teamRuleAdd: "添加团队规则";
|
|
306
|
-
readonly teamRuleDelete: "删除";
|
|
307
|
-
readonly teamRuleEmpty: "暂未配置团队规则,所有 Teammate 将使用全局默认子代理模型。";
|
|
308
|
-
readonly teamRuleQuickPresets: "团队预设模板";
|
|
309
|
-
readonly teamRuleQuickPresetsHint: "一键为常见团队角色快速注入推荐模型与思考深度。";
|
|
310
|
-
readonly presetReviewer: "代码审查员 (review* -> 6 Astra)";
|
|
311
|
-
readonly presetCoder: "实现工程师 (code* -> 5.6 Sol)";
|
|
312
|
-
readonly presetFast: "轻量助理 (scout/test* -> DeepSeek V41 Flash)";
|
|
313
|
-
readonly presetReviewerShort: "审查员";
|
|
314
|
-
readonly presetCoderShort: "工程师";
|
|
315
|
-
readonly presetFastShort: "轻量探索";
|
|
316
|
-
readonly teamRuleAddLabel: "添加规则";
|
|
317
|
-
readonly roleReviewer: "代码审查员 (Reviewer · review*)";
|
|
318
|
-
readonly roleCoder: "实现工程师 (Coder · code*)";
|
|
319
|
-
readonly roleTester: "测试与质量 (Tester · test*)";
|
|
320
|
-
readonly roleScout: "探索调研员 (Scout/Research · scout*)";
|
|
321
|
-
readonly roleArchitect: "架构规划师 (Architect · design*)";
|
|
322
|
-
readonly roleDoc: "文档撰写员 (Documentation · doc*)";
|
|
323
|
-
readonly roleCustom: "自定义角色模式…";
|
|
324
|
-
readonly modelCustom: "自定义模型 ID…";
|
|
325
|
-
readonly effortDefault: "默认思考档位";
|
|
326
|
-
readonly effortLow: "低思考 (low) · 快速响应";
|
|
327
|
-
readonly effortMedium: "中思考 (medium) · 推荐平衡";
|
|
328
|
-
readonly effortHigh: "高思考 (high) · 深度推导";
|
|
329
|
-
readonly effortMax: "极致思考 (max) · 超强推理";
|
|
330
266
|
};
|
|
331
|
-
en: Record<"
|
|
267
|
+
en: Record<"quota" | "account" | "storage" | "stale" | "pending" | "tokens" | "title" | "intro" | "signedOut" | "signedIn" | "plan" | "accountId" | "expires" | "storageWindows" | "storageMacKeychain" | "storageLinuxFile" | "storageMemory" | "storageUnavailable" | "securityWindows" | "securityMacKeychain" | "securityLinuxFile" | "securityMemory" | "securityUnavailable" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "testing" | "latency" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "enhancements" | "fastMode" | "fastModeHint" | "outputVerbosity" | "outputVerbosityHint" | "verbosityLow" | "verbosityMedium" | "verbosityHigh" | "reasoningSummary" | "reasoningSummaryHint" | "summaryAuto" | "summaryConcise" | "summaryDetailed" | "summaryNone" | "searchProvider" | "searchProviderHint" | "searchProviderDsh" | "searchProviderCodex" | "providerDefault" | "subagentEnhancements" | "subagentContextWindow" | "subagentContextWindowHint" | "subagentMaxDepth" | "subagentMaxDepthHint" | "subagentDisabled" | "levels" | "contextWindows" | "contextWindowsHint" | "contextWindow" | "contextWindowInvalid" | "saveContextWindow" | "save" | "quickQuota" | "quickQuotaHint" | "quotaIntro" | "refreshQuota" | "refreshing" | "noQuota" | "quotaSignedOut" | "updated" | "primary" | "secondary" | "limitWindow" | "used" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "image" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown", string>;
|
|
332
268
|
};
|
|
333
269
|
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,EAAG,0BAAmC,CAAA;AAErD,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,EAAG,0BAAmC,CAAA;AAErD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkIL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAkI9C,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,EAAE,CAAA;AACvC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAA"}
|
package/lib/types/compat.d.ts
CHANGED
|
@@ -33,15 +33,4 @@ export declare const QUOTA_CACHE_MS = 60000;
|
|
|
33
33
|
export declare const QUOTA_MIN_UPSTREAM_INTERVAL_MS = 15000;
|
|
34
34
|
export declare const OAUTH_AUTHORIZE_URL: "https://auth.openai.com/oauth/authorize";
|
|
35
35
|
export declare const OAUTH_TOKEN_URL: "https://auth.openai.com/oauth/token";
|
|
36
|
-
declare module '@deepseek-ai/dsh-llm' {
|
|
37
|
-
interface LlmResolvedModelInfo {
|
|
38
|
-
systemPromptUpdate?: 'in-history';
|
|
39
|
-
}
|
|
40
|
-
interface ContentBlockMap {
|
|
41
|
-
file: {
|
|
42
|
-
type: 'file';
|
|
43
|
-
attachment: Record<string, unknown>;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
36
|
//# sourceMappingURL=compat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/compat.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAG,yBAAkC,CAAA;AACtE,eAAO,MAAM,uBAAuB,EAAG,8BAAuC,CAAA;AAC9E,eAAO,MAAM,mBAAmB,EAAG,WAAoB,CAAA;AACvD,eAAO,MAAM,mBAAmB,EAAG,IAAa,CAAA;AAChD,eAAO,MAAM,mBAAmB,EAAG,gBAAyB,CAAA;AAC5D,eAAO,MAAM,kBAAkB,uCAAwF,CAAA;AACvH,eAAO,MAAM,WAAW,EAAG,qCAA8C,CAAA;AACzE,eAAO,MAAM,gBAAgB,EAAG,UAAmB,CAAA;AACnD,eAAO,MAAM,sBAAsB,QAAa,CAAA;AAChD,eAAO,MAAM,uBAAuB,QAAS,CAAA;AAC7C,eAAO,MAA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AAM,WAAW,EAAG,qCAA8C,CAAA;AACzE,eAAO,MAAM,gBAAgB,EAAG,UAAmB,CAAA;AACnD,eAAO,MAAM,sBAAsB,QAAa,CAAA;AAChD,eAAO,MAAM,uBAAuB,QAAS,CAAA;AAC7C,eAAO,MAAM,YAAY,EAAG,+BAAwC,CAAA;AACpE,eAAO,MAAM,cAAc,EAAG,eAAwB,CAAA;AACtD,eAAO,MAAM,yBAAyB,EAAG,eAAwB,CAAA;AAEjE,eAAO,MAAM,cAAc,EAAG,uCAAgD,CAAA;AAC9E,eAAO,MAAM,mBAAmB,mDAAyC,CAAA;AACzE,eAAO,MAAM,0BAA0B,4DAAkD,CAAA;AACzF,eAAO,MAAM,gBAAgB,sDAA4C,CAAA;AACzE,eAAO,MAAM,eAAe,EAAG,4CAAqD,CAAA;AACpF,eAAO,MAAM,uBAAuB,EAAG,+DAAwE,CAAA;AAC/G,eAAO,MAAM,+BAA+B,yEAAgD,CAAA;AAC5F,eAAO,MAAM,gBAAgB,EAAG,UAAmB,CAAA;AACnD,eAAO,MAAM,yBAAyB,EAAG,IAAa,CAAA;AACtD,eAAO,MAAM,qBAAqB,EAAG,sBAA+B,CAAA;AACpE,eAAO,MAAM,iBAAiB,EAAG,aAAsB,CAAA;AACvD,eAAO,MAAM,wBAAwB,EAAG,oBAA6B,CAAA;AACrE,eAAO,MAAM,uBAAuB,EAAG,oBAA6B,CAAA;AACpE,eAAO,MAAM,cAAc,QAAS,CAAA;AACpC,eAAO,MAAM,8BAA8B,QAAS,CAAA;AAEpD,eAAO,MAAM,mBAAmB,2CAAqD,CAAA;AACrF,eAAO,MAAM,eAAe,uCAAiD,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LlmAdapter, ReasoningEffortId, type GenerateOptions, type LlmModelInfo, type LlmProviderInfo, type LlmResolvedModelInfo, type PreparedAdapterCall, type StreamChunk } from '@deepseek-ai/dsh-llm';
|
|
2
2
|
import { FileCredentialStore, FileModelSettingsStore, type AntigravityPreferenceStore } from './token-store.ts';
|
|
3
|
-
import '../../compat.ts';
|
|
4
3
|
export declare function resolveDefaultReasoningEffort(efforts: readonly string[], configuredEffort?: string | null): ReasoningEffortId | undefined;
|
|
5
4
|
export declare class AntigravityAdapter extends LlmAdapter {
|
|
6
5
|
private readonly store;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAA;AAU7B,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,KAAK,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAA;AAU7B,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,KAAK,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAM/G,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAC/B,iBAAiB,GAAG,SAAS,CAc/B;AAED,qBAAa,kBAAmB,SAAQ,UAAU;IAE9C,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAHP,KAAK,sBAA4B,EACjC,aAAa,yBAA+B,EAC5C,WAAW,CAAC,EAAE,0BAA0B,YAAA,EACxC,OAAO,GAAE;QAAE,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;KAAO;IAK3D,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe;IAI/C,mBAAmB,IAAI,SAAS;IAIhC,mBAAmB,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS;IAI7D,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC;IAkB/D,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAwCpG,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,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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
import { type AntigravityModelDef } from './types.ts';
|
|
4
3
|
export declare function sanitizeToolCallId(id: string, fallbackName: string): string;
|
|
5
4
|
export declare function convertMessages(options: GenerateOptions, model: AntigravityModelDef, runtimeModel: string): Array<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,eAAe,EAEpB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,eAAe,EAEpB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAOL,KAAK,mBAAmB,EACzB,MAAM,YAAY,CAAA;AAyBnB,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAI3E;AA+LD,wBAAgB,eAAe,CAC7B,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,mBAAmB,EAC1B,YAAY,EAAE,MAAM,GACnB,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAAE,CAAC,CA2BhE;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAExD;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,GAC9B,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAQ5C;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAI7D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAEhF;AAED,wBAAgB,YAAY,CAC1B,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,mBAAmB,EAC1B,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwFzB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,YAAY,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;KAAE,CAAC,CAAA;IAC9D,YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAChF,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iBAAiB,IAAI,WAAW,CAW/C;AA2CD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,WAAW,EAAE,CA0FjF;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,EAAE,CAmB7D"}
|
|
@@ -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,kBAAkB,QAAiB,CAAA;AAChD,eAAO,MAAM,yBAAyB,QAAgB,CAAA;AAEtD,eAAO,MAAM,gBAAgB,wCAAwC,CAAA;AAErE,eAAO,MAAM,cAAc,8CAA8C,CAAA;AACzE,eAAO,MAAM,
|
|
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,kBAAkB,QAAiB,CAAA;AAChD,eAAO,MAAM,yBAAyB,QAAgB,CAAA;AAEtD,eAAO,MAAM,gBAAgB,wCAAwC,CAAA;AAErE,eAAO,MAAM,cAAc,8CAA8C,CAAA;AACz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AC5B;AAED,eAAO,MAAM,MAAM,EAAE,mBAAmB,EA6FvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-catalog.d.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,
|
|
1
|
+
{"version":3,"file":"model-catalog.d.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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../../src/host/preferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAsB,MAAM,2BAA2B,CAAA;AAerF,OAAO,KAAK,EACV,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,2BAA2B;IAC1C,MAAM,IAAI,0BAA0B,CAAA;IACpC,MAAM,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;IACpF,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,EAAE,IAAI,EAAE,0BAA0B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,CAAA;CAC1H;AAID,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,2BAA2B,
|
|
1
|
+
{"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../../src/host/preferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAsB,MAAM,2BAA2B,CAAA;AAerF,OAAO,KAAK,EACV,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,2BAA2B;IAC1C,MAAM,IAAI,0BAA0B,CAAA;IACpC,MAAM,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;IACpF,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,EAAE,IAAI,EAAE,0BAA0B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,CAAA;CAC1H;AAID,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,2BAA2B,CA0B/F;AAkED,qBAAa,eAAgB,SAAQ,KAAK;gBAC5B,OAAO,EAAE,MAAM;CAG5B"}
|
|
@@ -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":"AAKA,OAAO,KAAK,EAAa,0BAA0B,EAAE,MAAM,wBAAwB,CAAA;AAEnF,MAAM,MAAM,SAAS,GAAG,OAAO,KAAK,CAAA;AAIpC,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAOxD;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAqCvE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAwBnE;AAED,wBAAgB,aAAa,
|
|
1
|
+
{"version":3,"file":"proxy-manager.d.ts","sourceRoot":"","sources":["../../../src/host/proxy-manager.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAa,0BAA0B,EAAE,MAAM,wBAAwB,CAAA;AAEnF,MAAM,MAAM,SAAS,GAAG,OAAO,KAAK,CAAA;AAIpC,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAOxD;AAED,wBAAgB,yBAAyB,CAAC,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,qBAAqB,IAAI,MAAM,GAAG,IAAI;IAgBtC,OAAO,CAAC,gBAAgB;IASxB,WAAW,IAAI,SAAS;IAsBxB,OAAO,IAAI,IAAI;CAMhB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { AttachmentStore } from '@deepseek-ai/dsh-attachment';
|
|
2
2
|
import type { GenerateOptions } from '@deepseek-ai/dsh-llm';
|
|
3
3
|
import type { CodexOutputVerbosity, CodexReasoningSummary } from '../shared/contracts.ts';
|
|
4
|
-
import '../compat.ts';
|
|
5
4
|
export interface ResponsesPayload extends Record<string, unknown> {
|
|
6
5
|
model: string;
|
|
7
6
|
input: Array<Record<string, unknown>>;
|