@eddyskywalker/dsh-chatgpt-subscription 0.2.12 → 0.2.15
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 +25 -0
- package/README.md +3 -3
- package/lib/client.js +9 -190
- package/lib/client.js.map +1 -1
- package/lib/index.js +73 -108
- package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
- 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 -79
- 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 -13
- package/lib/types/shared/contracts.d.ts.map +1 -1
- package/lib/types/shared/preferences.d.ts +0 -3
- 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());
|
|
@@ -1361,9 +1361,6 @@ const DEFAULT_PREFERENCES = {
|
|
|
1361
1361
|
"gpt-5.6-terra": 272e3,
|
|
1362
1362
|
"gpt-5.6-luna": 272e3
|
|
1363
1363
|
},
|
|
1364
|
-
subagentContextWindow: null,
|
|
1365
|
-
subagentMaxDepth: null,
|
|
1366
|
-
teamModelRules: [],
|
|
1367
1364
|
proxyMode: "auto",
|
|
1368
1365
|
customProxyUrl: null
|
|
1369
1366
|
};
|
|
@@ -1408,15 +1405,6 @@ function registerPreferenceStore(settings) {
|
|
|
1408
1405
|
"gpt-5.6-terra": z.number().step(1).min(1).max(GPT_56_MAX_CONTEXT_WINDOW).default(DEFAULT_PREFERENCES.contextWindowOverrides["gpt-5.6-terra"]),
|
|
1409
1406
|
"gpt-5.6-luna": z.number().step(1).min(1).max(GPT_56_MAX_CONTEXT_WINDOW).default(DEFAULT_PREFERENCES.contextWindowOverrides["gpt-5.6-luna"])
|
|
1410
1407
|
}).default(DEFAULT_PREFERENCES.contextWindowOverrides),
|
|
1411
|
-
subagentContextWindow: z.union([z.number().step(1).min(1), z.const(null)]).default(DEFAULT_PREFERENCES.subagentContextWindow),
|
|
1412
|
-
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
1408
|
proxyMode: z.union([
|
|
1421
1409
|
z.const("auto"),
|
|
1422
1410
|
z.const("custom"),
|
|
@@ -1457,9 +1445,6 @@ var SettingsPreferenceStore = class {
|
|
|
1457
1445
|
...this.scope.get().contextWindowOverrides,
|
|
1458
1446
|
...patch.contextWindowOverrides
|
|
1459
1447
|
};
|
|
1460
|
-
if (patch.subagentContextWindow !== void 0) normalized.subagentContextWindow = patch.subagentContextWindow;
|
|
1461
|
-
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
1448
|
if (patch.proxyMode !== void 0) {
|
|
1464
1449
|
if (!isProxyMode(patch.proxyMode)) throw new PreferenceError("Unsupported proxy mode preference.");
|
|
1465
1450
|
normalized.proxyMode = patch.proxyMode;
|
|
@@ -1665,7 +1650,7 @@ async function buildResponsesPayload(options, attachments, localRawImages = {},
|
|
|
1665
1650
|
const normalizeCallId = createCallIdNormalizer();
|
|
1666
1651
|
const instructionParts = [
|
|
1667
1652
|
options.system?.trim(),
|
|
1668
|
-
|
|
1653
|
+
latestSystemPrompt(options.messages),
|
|
1669
1654
|
progressExplanationInstruction(options.tools),
|
|
1670
1655
|
sandboxToolInstruction(options.tools, sandboxRetryTools),
|
|
1671
1656
|
commandToolInstruction(options.tools),
|
|
@@ -1880,6 +1865,20 @@ function runCodeErrorOutput(output) {
|
|
|
1880
1865
|
function isRunCodeParserError(output) {
|
|
1881
1866
|
return /(?:Legacy octal escape is not permitted in strict mode|Unexpected token|Invalid or unexpected token|Unterminated template|Expected ['"]?\}['"]?)/i.test(output);
|
|
1882
1867
|
}
|
|
1868
|
+
/**
|
|
1869
|
+
* The effective system prompt of a loop-built request. DSH keeps an earlier
|
|
1870
|
+
* `system` node as cached history whenever the rendered prompt changes, so only
|
|
1871
|
+
* the newest non-empty node is the complete prompt; concatenating every node
|
|
1872
|
+
* would resend superseded instructions.
|
|
1873
|
+
*/
|
|
1874
|
+
function latestSystemPrompt(messages) {
|
|
1875
|
+
for (let index = messages.length - 1; index >= 0; index -= 1) {
|
|
1876
|
+
const message = messages[index];
|
|
1877
|
+
if (message === void 0 || message.role !== "system") continue;
|
|
1878
|
+
const text = blocksToText(message.content).trim();
|
|
1879
|
+
if (text) return text;
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1883
1882
|
async function mapContent(message, attachments, signal, localRawImages, localImageStats, resolveLocalRawImages) {
|
|
1884
1883
|
const result = [];
|
|
1885
1884
|
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 +1892,6 @@ async function mapContent(message, attachments, signal, localRawImages, localIma
|
|
|
1893
1892
|
type: "input_image",
|
|
1894
1893
|
image_url: await imageDataUrl(block.attachment, attachments, signal)
|
|
1895
1894
|
});
|
|
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
1895
|
}
|
|
1905
1896
|
return result;
|
|
1906
1897
|
}
|
|
@@ -2031,10 +2022,6 @@ function blocksToText(blocks) {
|
|
|
2031
2022
|
return blocks.map((block) => {
|
|
2032
2023
|
if (block.type === "text" || block.type === "reasoning") return block.text;
|
|
2033
2024
|
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
2025
|
if (block.type === "tool-result") return blocksToText(block.content);
|
|
2039
2026
|
return "";
|
|
2040
2027
|
}).filter(Boolean).join("\n");
|
|
@@ -3152,27 +3139,6 @@ function readPreferencesUpdate(value, current) {
|
|
|
3152
3139
|
}
|
|
3153
3140
|
patch.contextWindowOverrides = overrides;
|
|
3154
3141
|
}
|
|
3155
|
-
if ("subagentContextWindow" in value) {
|
|
3156
|
-
if (value.subagentContextWindow !== null && (!Number.isSafeInteger(value.subagentContextWindow) || value.subagentContextWindow < 1)) throw new PreferenceError("subagentContextWindow must be null or a positive integer.");
|
|
3157
|
-
patch.subagentContextWindow = value.subagentContextWindow;
|
|
3158
|
-
}
|
|
3159
|
-
if ("subagentMaxDepth" in value) {
|
|
3160
|
-
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
|
-
patch.subagentMaxDepth = value.subagentMaxDepth;
|
|
3162
|
-
}
|
|
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
3142
|
if ("proxyMode" in value) {
|
|
3177
3143
|
if (value.proxyMode !== "auto" && value.proxyMode !== "custom" && value.proxyMode !== "direct") throw new PreferenceError("proxyMode must be auto, custom, or direct.");
|
|
3178
3144
|
patch.proxyMode = value.proxyMode;
|
|
@@ -4249,11 +4215,13 @@ var FileModelSettingsStore = class {
|
|
|
4249
4215
|
};
|
|
4250
4216
|
let cachedQuota;
|
|
4251
4217
|
let quotaFetchInFlight = null;
|
|
4218
|
+
/** Bumped by every cache clear so an in-flight fetch cannot publish stale state. */
|
|
4219
|
+
let quotaCacheEpoch = 0;
|
|
4252
4220
|
const PLATFORM = process.platform === "darwin" ? "MACOS" : process.platform === "win32" ? "WINDOWS" : "LINUX";
|
|
4253
4221
|
function defaultUserAgent() {
|
|
4254
4222
|
const version = process.env.DSH_ANTIGRAVITY_VERSION || "2.8.0";
|
|
4255
4223
|
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 || "
|
|
4224
|
+
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
4225
|
}
|
|
4258
4226
|
function antigravityHeaders(token) {
|
|
4259
4227
|
return {
|
|
@@ -4333,6 +4301,7 @@ async function onboardUser(token, fetchFn = fetch, signal) {
|
|
|
4333
4301
|
tierId: FREE_TIER_ID,
|
|
4334
4302
|
metadata: { ideType: "ANTIGRAVITY" }
|
|
4335
4303
|
});
|
|
4304
|
+
let lastError;
|
|
4336
4305
|
for (const endpoint of endpointCandidates()) try {
|
|
4337
4306
|
const remainingTime = Math.max(1e3, deadline - Date.now());
|
|
4338
4307
|
const timeoutSignal = AbortSignal.timeout(remainingTime);
|
|
@@ -4377,8 +4346,10 @@ async function onboardUser(token, fetchFn = fetch, signal) {
|
|
|
4377
4346
|
operation = await pollResp.json();
|
|
4378
4347
|
}
|
|
4379
4348
|
} catch (err) {
|
|
4349
|
+
lastError = err;
|
|
4380
4350
|
if (Date.now() >= deadline || signal?.aborted) throw err;
|
|
4381
4351
|
}
|
|
4352
|
+
throw lastError instanceof Error ? lastError : /* @__PURE__ */ new Error("onboardUser failed on every endpoint");
|
|
4382
4353
|
}
|
|
4383
4354
|
async function listCloudAICompanionProjects(token, fetchFn = fetch) {
|
|
4384
4355
|
for (const endpoint of endpointCandidates()) try {
|
|
@@ -4460,57 +4431,62 @@ function parseCatalogModels(data) {
|
|
|
4460
4431
|
async function fetchAccountQuota(store = new FileCredentialStore(), modelSettings, fetchFn = fetch, force = false) {
|
|
4461
4432
|
if (!force && cachedQuota && Date.now() - (cachedQuota.fetchedAt || 0) < 12e4) return cachedQuota;
|
|
4462
4433
|
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;
|
|
4434
|
+
const epoch = quotaCacheEpoch;
|
|
4435
|
+
const request = (async () => {
|
|
4436
|
+
const { token, projectId: credentialProjectId } = await ensureApiKey(store, fetchFn);
|
|
4437
|
+
const [assistResult, summaryResult] = await Promise.all([postJson("/v1internal:loadCodeAssist", token, { metadata: {
|
|
4438
|
+
ideType: "ANTIGRAVITY",
|
|
4439
|
+
platform: "PLATFORM_UNSPECIFIED",
|
|
4440
|
+
pluginType: "GEMINI"
|
|
4441
|
+
} }, fetchFn).catch(() => null), postJson("/v1internal:retrieveUserQuotaSummary", token, {}, fetchFn).catch(() => null)]);
|
|
4442
|
+
const discoveredProject = assistResult ? extractProjectId(assistResult.data) : void 0;
|
|
4443
|
+
const projectId = credentialProjectId || discoveredProject || "antigravity-default";
|
|
4444
|
+
const modelsData = (await postJson("/v1internal:fetchAvailableModels", token, { project: projectId }, fetchFn).catch(() => null))?.data;
|
|
4445
|
+
const { groups, description } = summaryResult ? parseQuotaSummary(summaryResult.data) : { groups: [] };
|
|
4446
|
+
const catalogModels = modelsData ? parseCatalogModels(modelsData) : [];
|
|
4447
|
+
const assistData = assistResult?.data || {};
|
|
4448
|
+
const currentTier = assistData.currentTier;
|
|
4449
|
+
const paidTier = assistData.paidTier;
|
|
4450
|
+
const planLabel = paidTier?.name || currentTier?.name || void 0;
|
|
4451
|
+
const snapshot = {
|
|
4452
|
+
projectId,
|
|
4453
|
+
endpoint: summaryResult?.endpoint || ENDPOINT_FALLBACKS[0],
|
|
4454
|
+
planLabel,
|
|
4455
|
+
productTier: currentTier,
|
|
4456
|
+
paidTier,
|
|
4457
|
+
groups,
|
|
4458
|
+
groupDescription: description,
|
|
4459
|
+
models: catalogModels.map((m) => ({
|
|
4460
|
+
modelId: m.id,
|
|
4461
|
+
displayName: m.name,
|
|
4462
|
+
description: m.description
|
|
4463
|
+
})),
|
|
4464
|
+
catalogModels,
|
|
4465
|
+
fetchedAt: Date.now()
|
|
4466
|
+
};
|
|
4467
|
+
if (epoch !== quotaCacheEpoch) return snapshot;
|
|
4468
|
+
cachedQuota = snapshot;
|
|
4469
|
+
if (modelSettings && catalogModels.length > 0) {
|
|
4470
|
+
const current = await modelSettings.read();
|
|
4471
|
+
const isFirstTime = current.catalogModels.length === 0 && current.enabledModelIds.length === 0;
|
|
4472
|
+
const catalogIds = new Set(catalogModels.map((m) => m.id));
|
|
4473
|
+
const mergedEnabled = isFirstTime ? catalogModels.map((m) => m.id) : current.enabledModelIds.filter((id) => catalogIds.has(id));
|
|
4474
|
+
await modelSettings.setCatalogModels(catalogModels, { enabledModelIds: mergedEnabled });
|
|
4506
4475
|
}
|
|
4476
|
+
return snapshot;
|
|
4507
4477
|
})();
|
|
4508
|
-
|
|
4478
|
+
quotaFetchInFlight = request;
|
|
4479
|
+
try {
|
|
4480
|
+
return await request;
|
|
4481
|
+
} finally {
|
|
4482
|
+
if (quotaFetchInFlight === request) quotaFetchInFlight = null;
|
|
4483
|
+
}
|
|
4509
4484
|
}
|
|
4510
4485
|
function getCachedQuota() {
|
|
4511
4486
|
return cachedQuota;
|
|
4512
4487
|
}
|
|
4513
4488
|
function clearCachedQuota() {
|
|
4489
|
+
quotaCacheEpoch += 1;
|
|
4514
4490
|
cachedQuota = void 0;
|
|
4515
4491
|
quotaFetchInFlight = null;
|
|
4516
4492
|
}
|
|
@@ -4983,12 +4959,6 @@ function contentToUserParts(content) {
|
|
|
4983
4959
|
else if (isRecord(block) && block.type === "image") {
|
|
4984
4960
|
const img = imageBlockToPart(block);
|
|
4985
4961
|
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
4962
|
}
|
|
4993
4963
|
return parts;
|
|
4994
4964
|
}
|
|
@@ -4997,10 +4967,6 @@ function toolResultText(blocks) {
|
|
|
4997
4967
|
return blocks.map((block) => {
|
|
4998
4968
|
if (!isRecord(block)) return "";
|
|
4999
4969
|
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
4970
|
if (block.type === "tool-result") return toolResultText(block.content);
|
|
5005
4971
|
return "";
|
|
5006
4972
|
}).join("");
|
|
@@ -5469,7 +5435,6 @@ var AntigravityAdapter = class extends LlmAdapter {
|
|
|
5469
5435
|
inputModalities: model.inputModalities,
|
|
5470
5436
|
context: { contextWindow: overrides[model.id] || model.contextWindow },
|
|
5471
5437
|
defaultMaxTokens: model.maxTokens,
|
|
5472
|
-
systemPromptUpdate: "in-history",
|
|
5473
5438
|
...model.reasoningEfforts ? { reasoning: {
|
|
5474
5439
|
efforts: efforts.map((effort) => ({
|
|
5475
5440
|
id: ReasoningEffortId(effort),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodexSubscriptionSection.d.ts","sourceRoot":"","sources":["../../../src/client/CodexSubscriptionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAyB,oBAAoB,EAAE,eAAe,EAAkB,cAAc,EAA8D,MAAM,wBAAwB,CAAA;AAGtM,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAGjC,KAAK,KAAK,GAAG,YAAY,CAAC,kBAAkB,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,CAAA;AACtE,KAAK,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,IAAI,CAAA;AACzG,KAAK,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA;AAE3B,wBAAgB,wBAAwB,CA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BAAwB,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"}
|
|
@@ -71,13 +71,6 @@ export declare const zh: {
|
|
|
71
71
|
readonly searchProviderDsh: "DSH 默认";
|
|
72
72
|
readonly searchProviderCodex: "ChatGPT(代理隧道)";
|
|
73
73
|
readonly providerDefault: "使用 Provider 默认值";
|
|
74
|
-
readonly subagentEnhancements: "子代理设置";
|
|
75
|
-
readonly subagentContextWindow: "子代理上下文预算";
|
|
76
|
-
readonly subagentContextWindowHint: "限制子代理运行时的最大上下文 Token 数(例如 128K、256K);留空跟随模型主设置。";
|
|
77
|
-
readonly subagentMaxDepth: "子代理最大嵌套深度";
|
|
78
|
-
readonly subagentMaxDepthHint: "限制子代理的递归层级(0–3);0 禁止创建子代理。";
|
|
79
|
-
readonly subagentDisabled: "已禁用";
|
|
80
|
-
readonly levels: "层";
|
|
81
74
|
readonly contextWindows: "模型上下文窗口";
|
|
82
75
|
readonly contextWindowsHint: "默认 272K;6 Astra 最高 872K,GPT-5.6 最高 1M。该值用于 DSH 的压缩与溢出判断,可输入 872K、512K 等容量。";
|
|
83
76
|
readonly contextWindow: "上下文窗口";
|
|
@@ -129,38 +122,6 @@ export declare const zh: {
|
|
|
129
122
|
readonly imagePreviewOpenOriginal: "打开原图";
|
|
130
123
|
readonly retry: "重试";
|
|
131
124
|
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
125
|
};
|
|
165
126
|
export declare const en: Record<keyof typeof zh, string>;
|
|
166
127
|
export type LocaleKey = keyof typeof zh;
|
|
@@ -237,13 +198,6 @@ export declare const dictionaries: {
|
|
|
237
198
|
readonly searchProviderDsh: "DSH 默认";
|
|
238
199
|
readonly searchProviderCodex: "ChatGPT(代理隧道)";
|
|
239
200
|
readonly providerDefault: "使用 Provider 默认值";
|
|
240
|
-
readonly subagentEnhancements: "子代理设置";
|
|
241
|
-
readonly subagentContextWindow: "子代理上下文预算";
|
|
242
|
-
readonly subagentContextWindowHint: "限制子代理运行时的最大上下文 Token 数(例如 128K、256K);留空跟随模型主设置。";
|
|
243
|
-
readonly subagentMaxDepth: "子代理最大嵌套深度";
|
|
244
|
-
readonly subagentMaxDepthHint: "限制子代理的递归层级(0–3);0 禁止创建子代理。";
|
|
245
|
-
readonly subagentDisabled: "已禁用";
|
|
246
|
-
readonly levels: "层";
|
|
247
201
|
readonly contextWindows: "模型上下文窗口";
|
|
248
202
|
readonly contextWindowsHint: "默认 272K;6 Astra 最高 872K,GPT-5.6 最高 1M。该值用于 DSH 的压缩与溢出判断,可输入 872K、512K 等容量。";
|
|
249
203
|
readonly contextWindow: "上下文窗口";
|
|
@@ -295,39 +249,7 @@ export declare const dictionaries: {
|
|
|
295
249
|
readonly imagePreviewOpenOriginal: "打开原图";
|
|
296
250
|
readonly retry: "重试";
|
|
297
251
|
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
252
|
};
|
|
331
|
-
en: Record<"
|
|
253
|
+
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" | "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
254
|
};
|
|
333
255
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2HL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CA2H9C,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,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,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E,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,MAA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AAM,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,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,E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EAC7B,OAAO,GAAE,OAAO,KAAa,GAC5B,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,CAoB9D;AAED,wBAAgB,iBAAiB,CAAC,IAAI,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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type ContentBlock, type GenerateOptions, type StreamChunk } from '@deepseek-ai/dsh-llm';
|
|
2
|
-
import '../../compat.ts';
|
|
3
2
|
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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E;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,MAA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