@eddyskywalker/dsh-chatgpt-subscription 0.80.1 → 0.80.3
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 +15 -0
- package/lib/client.js +1 -2
- package/lib/client.js.map +1 -1
- package/lib/index.js +223 -56
- package/lib/types/client/relayone/RelayOneComposerQuota.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/antigravity-acp/acp-client.d.ts +7 -0
- package/lib/types/host/antigravity-acp/acp-client.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/binary.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/login.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/process-temp.d.ts +11 -0
- package/lib/types/host/antigravity-acp/process-temp.d.ts.map +1 -0
- package/lib/types/host/relayone/mapper-openai.d.ts +1 -1
- package/lib/types/host/relayone/mapper-openai.d.ts.map +1 -1
- package/lib/types/host/relayone/model-catalog.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import os, { homedir, platform, userInfo } from "node:os";
|
|
|
15
15
|
import { constants, createCipheriv, createDecipheriv, createHash, createHmac, publicEncrypt, randomBytes, randomUUID } from "node:crypto";
|
|
16
16
|
import { isDeepStrictEqual } from "node:util";
|
|
17
17
|
import { execFileSync, spawn } from "node:child_process";
|
|
18
|
-
import fs$1, { appendFileSync, constants as constants$1, copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, utimesSync, writeFileSync } from "node:fs";
|
|
18
|
+
import fs$1, { appendFileSync, constants as constants$1, copyFileSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, rmdirSync, statSync, utimesSync, writeFileSync } from "node:fs";
|
|
19
19
|
import http, { createServer } from "node:http";
|
|
20
20
|
import { WebError } from "@deepseek-ai/dsh-web";
|
|
21
21
|
import { lookup } from "node:dns/promises";
|
|
@@ -832,7 +832,7 @@ const ROUTE_PREFIX$5 = "/api/dsh-chatgpt-subscription";
|
|
|
832
832
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
833
833
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
834
834
|
*/
|
|
835
|
-
const PLUGIN_VERSION = "0.80.
|
|
835
|
+
const PLUGIN_VERSION = "0.80.3";
|
|
836
836
|
const CODEX_CHATGPT_PROVIDER_ID = "codex-chatgpt";
|
|
837
837
|
const CODEX_API_BASE = "https://chatgpt.com/backend-api/codex";
|
|
838
838
|
const CODEX_RESPONSES_URL = `${CODEX_API_BASE}/responses`;
|
|
@@ -24917,6 +24917,46 @@ function imageBlockToInline$2(block, images) {
|
|
|
24917
24917
|
} : void 0;
|
|
24918
24918
|
}
|
|
24919
24919
|
//#endregion
|
|
24920
|
+
//#region src/host/antigravity-acp/process-temp.ts
|
|
24921
|
+
/**
|
|
24922
|
+
* Per-process temporary storage for the official Antigravity executable.
|
|
24923
|
+
*
|
|
24924
|
+
* The standalone Windows server is a PyInstaller onefile: it unpacks a large
|
|
24925
|
+
* `_MEI` tree beneath TMP/TEMP and removes that tree itself during a graceful
|
|
24926
|
+
* exit. Keeping every launch under DSH's own cache prevents a killed or polled
|
|
24927
|
+
* process from writing into the user's system TEMP. Cleanup here is deliberately
|
|
24928
|
+
* non-recursive: only the empty run directory owned by this module is removed.
|
|
24929
|
+
*/
|
|
24930
|
+
/** Create one launch's temporary directory beneath DSH's ACP process cache. */
|
|
24931
|
+
function createAcpProcessTemp(tempRoot) {
|
|
24932
|
+
const root = tempRoot ?? path.join(dshHomeDir(), "cache", "antigravity-acp", "process-tmp");
|
|
24933
|
+
mkdirSync(root, { recursive: true });
|
|
24934
|
+
const directory = mkdtempSync(path.join(root, "run-"));
|
|
24935
|
+
return {
|
|
24936
|
+
directory,
|
|
24937
|
+
environment: isolatedTempEnvironment(directory),
|
|
24938
|
+
release: () => {
|
|
24939
|
+
try {
|
|
24940
|
+
rmdirSync(directory);
|
|
24941
|
+
} catch {}
|
|
24942
|
+
}
|
|
24943
|
+
};
|
|
24944
|
+
}
|
|
24945
|
+
/** Redirect every PyInstaller-supported temp variable to this launch's directory. */
|
|
24946
|
+
function isolatedTempEnvironment(directory) {
|
|
24947
|
+
const environment = {};
|
|
24948
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
24949
|
+
if (value === void 0) continue;
|
|
24950
|
+
if (/key|token|secret|password|credential/i.test(key)) continue;
|
|
24951
|
+
if (/^(?:tmp|temp|tmpdir)$/i.test(key)) continue;
|
|
24952
|
+
environment[key] = value;
|
|
24953
|
+
}
|
|
24954
|
+
environment.TMP = directory;
|
|
24955
|
+
environment.TEMP = directory;
|
|
24956
|
+
environment.TMPDIR = directory;
|
|
24957
|
+
return environment;
|
|
24958
|
+
}
|
|
24959
|
+
//#endregion
|
|
24920
24960
|
//#region src/host/antigravity-acp/acp-client.ts
|
|
24921
24961
|
/**
|
|
24922
24962
|
* Minimal ACP v1 client over stdio JSON-RPC.
|
|
@@ -24968,24 +25008,33 @@ var AcpClient = class {
|
|
|
24968
25008
|
handlers;
|
|
24969
25009
|
disposeEofGraceMs;
|
|
24970
25010
|
disposeGraceMs;
|
|
25011
|
+
temp;
|
|
24971
25012
|
exitDetail;
|
|
24972
25013
|
constructor(options, handlers = {}) {
|
|
24973
25014
|
this.handlers = handlers;
|
|
24974
|
-
this.disposeEofGraceMs = options.disposeEofGraceMs ??
|
|
24975
|
-
this.disposeGraceMs = options.disposeGraceMs ??
|
|
24976
|
-
this.
|
|
24977
|
-
|
|
24978
|
-
|
|
24979
|
-
|
|
24980
|
-
|
|
24981
|
-
|
|
24982
|
-
|
|
24983
|
-
|
|
24984
|
-
|
|
24985
|
-
|
|
24986
|
-
|
|
24987
|
-
|
|
24988
|
-
|
|
25015
|
+
this.disposeEofGraceMs = options.disposeEofGraceMs ?? 6e4;
|
|
25016
|
+
this.disposeGraceMs = options.disposeGraceMs ?? 1e4;
|
|
25017
|
+
this.temp = createAcpProcessTemp(options.tempRoot);
|
|
25018
|
+
let child;
|
|
25019
|
+
try {
|
|
25020
|
+
child = spawn(options.command, [...options.args ?? []], {
|
|
25021
|
+
cwd: options.cwd,
|
|
25022
|
+
stdio: [
|
|
25023
|
+
"pipe",
|
|
25024
|
+
"pipe",
|
|
25025
|
+
"pipe"
|
|
25026
|
+
],
|
|
25027
|
+
env: {
|
|
25028
|
+
...this.temp.environment,
|
|
25029
|
+
...options.env
|
|
25030
|
+
},
|
|
25031
|
+
windowsHide: true
|
|
25032
|
+
});
|
|
25033
|
+
} catch (error) {
|
|
25034
|
+
this.temp.release();
|
|
25035
|
+
throw error;
|
|
25036
|
+
}
|
|
25037
|
+
this.child = child;
|
|
24989
25038
|
this.child.stdout.on("data", (chunk) => {
|
|
24990
25039
|
this.handlers.onActivity?.();
|
|
24991
25040
|
this.consume(this.decoder.write(chunk));
|
|
@@ -24996,7 +25045,10 @@ var AcpClient = class {
|
|
|
24996
25045
|
this.child.stderr.on("data", (chunk) => {
|
|
24997
25046
|
this.stderrTail = (this.stderrTail + chunk.toString("utf8")).slice(-2048);
|
|
24998
25047
|
});
|
|
24999
|
-
this.child.on("error", (error) =>
|
|
25048
|
+
this.child.on("error", (error) => {
|
|
25049
|
+
this.temp.release();
|
|
25050
|
+
this.failAll(error);
|
|
25051
|
+
});
|
|
25000
25052
|
this.child.on("exit", (code, signal) => {
|
|
25001
25053
|
this.exitDetail = {
|
|
25002
25054
|
code,
|
|
@@ -25004,6 +25056,7 @@ var AcpClient = class {
|
|
|
25004
25056
|
...this.stderrTail === "" ? {} : { stderrTail: redactStderr(this.stderrTail) }
|
|
25005
25057
|
};
|
|
25006
25058
|
this.closed = true;
|
|
25059
|
+
this.temp.release();
|
|
25007
25060
|
this.failAll(new AcpError(`Antigravity ACP process exited (code ${code ?? "null"}, signal ${signal ?? "none"})`));
|
|
25008
25061
|
this.handlers.onExit?.(this.exitDetail);
|
|
25009
25062
|
});
|
|
@@ -25220,21 +25273,6 @@ function settlesWithin(promise, budgetMs) {
|
|
|
25220
25273
|
});
|
|
25221
25274
|
});
|
|
25222
25275
|
}
|
|
25223
|
-
/**
|
|
25224
|
-
* A copy of this process's environment without credentials.
|
|
25225
|
-
*
|
|
25226
|
-
* The agent authenticates itself and must not inherit a provider key from the
|
|
25227
|
-
* host's own environment; the caller may still layer explicit entries on top.
|
|
25228
|
-
*/
|
|
25229
|
-
function scrubbedEnvironment() {
|
|
25230
|
-
const env = {};
|
|
25231
|
-
for (const [key, value] of Object.entries(process.env)) {
|
|
25232
|
-
if (value === void 0) continue;
|
|
25233
|
-
if (/key|token|secret|password|credential/i.test(key)) continue;
|
|
25234
|
-
env[key] = value;
|
|
25235
|
-
}
|
|
25236
|
-
return env;
|
|
25237
|
-
}
|
|
25238
25276
|
function redactStderr(text) {
|
|
25239
25277
|
return text.replace(/([A-Za-z0-9_\-]{24,})/g, "[redacted]").slice(-2048);
|
|
25240
25278
|
}
|
|
@@ -28075,18 +28113,26 @@ async function exists(candidate) {
|
|
|
28075
28113
|
/** Read `agy --version`, or undefined when the executable does not answer. */
|
|
28076
28114
|
async function readCliVersion(command) {
|
|
28077
28115
|
const { execFile } = await import("node:child_process");
|
|
28116
|
+
const temp = createAcpProcessTemp();
|
|
28078
28117
|
return new Promise((resolve) => {
|
|
28079
|
-
|
|
28080
|
-
|
|
28081
|
-
|
|
28082
|
-
|
|
28083
|
-
|
|
28084
|
-
|
|
28085
|
-
|
|
28086
|
-
|
|
28087
|
-
|
|
28088
|
-
|
|
28089
|
-
|
|
28118
|
+
try {
|
|
28119
|
+
execFile(command, ["--version"], {
|
|
28120
|
+
timeout: 1e4,
|
|
28121
|
+
windowsHide: true,
|
|
28122
|
+
env: temp.environment
|
|
28123
|
+
}, (error, stdout) => {
|
|
28124
|
+
temp.release();
|
|
28125
|
+
if (error !== null) {
|
|
28126
|
+
resolve(void 0);
|
|
28127
|
+
return;
|
|
28128
|
+
}
|
|
28129
|
+
const text = stdout.trim().split(/\r?\n/)[0]?.trim();
|
|
28130
|
+
resolve(text === void 0 || text === "" ? void 0 : text);
|
|
28131
|
+
});
|
|
28132
|
+
} catch {
|
|
28133
|
+
temp.release();
|
|
28134
|
+
resolve(void 0);
|
|
28135
|
+
}
|
|
28090
28136
|
});
|
|
28091
28137
|
}
|
|
28092
28138
|
/**
|
|
@@ -28239,6 +28285,7 @@ async function startProtocolLogin(client, methodId) {
|
|
|
28239
28285
|
}
|
|
28240
28286
|
}
|
|
28241
28287
|
function startTerminalLogin(launch) {
|
|
28288
|
+
const temp = createAcpProcessTemp();
|
|
28242
28289
|
let child;
|
|
28243
28290
|
try {
|
|
28244
28291
|
child = spawn(launch.command, [...launch.args, "--login"], {
|
|
@@ -28248,14 +28295,18 @@ function startTerminalLogin(launch) {
|
|
|
28248
28295
|
"ignore",
|
|
28249
28296
|
"pipe"
|
|
28250
28297
|
],
|
|
28298
|
+
env: temp.environment,
|
|
28251
28299
|
windowsHide: true
|
|
28252
28300
|
});
|
|
28253
28301
|
} catch (error) {
|
|
28302
|
+
temp.release();
|
|
28254
28303
|
return Promise.resolve({
|
|
28255
28304
|
started: false,
|
|
28256
28305
|
error: error instanceof Error ? error.message : String(error)
|
|
28257
28306
|
});
|
|
28258
28307
|
}
|
|
28308
|
+
child.once("error", () => temp.release());
|
|
28309
|
+
child.once("exit", () => temp.release());
|
|
28259
28310
|
return watchLauncher(child);
|
|
28260
28311
|
}
|
|
28261
28312
|
/**
|
|
@@ -28289,7 +28340,6 @@ function watchLauncher(child) {
|
|
|
28289
28340
|
windowTimer.unref?.();
|
|
28290
28341
|
const detachTimer = setTimeout(() => {
|
|
28291
28342
|
child.stderr?.removeAllListeners("data");
|
|
28292
|
-
child.removeAllListeners();
|
|
28293
28343
|
}, LOGIN_LAUNCH_BUDGET_MS);
|
|
28294
28344
|
detachTimer.unref?.();
|
|
28295
28345
|
child.once("error", (error) => settle(failed(error.message)));
|
|
@@ -107664,6 +107714,22 @@ const ADAPTIVE_REASONING = [
|
|
|
107664
107714
|
"max"
|
|
107665
107715
|
];
|
|
107666
107716
|
const DISABLEABLE_ADAPTIVE_REASONING = ["none", ...ADAPTIVE_REASONING];
|
|
107717
|
+
const LOW_HIGH_MAX_REASONING = [
|
|
107718
|
+
"low",
|
|
107719
|
+
"high",
|
|
107720
|
+
"max"
|
|
107721
|
+
];
|
|
107722
|
+
const DEEPSEEK_REASONING = ["none", ...LOW_HIGH_MAX_REASONING];
|
|
107723
|
+
const QWEN_REASONING = [
|
|
107724
|
+
"low",
|
|
107725
|
+
"high",
|
|
107726
|
+
"xhigh"
|
|
107727
|
+
];
|
|
107728
|
+
const SWE_REASONING = [
|
|
107729
|
+
"medium",
|
|
107730
|
+
"high",
|
|
107731
|
+
"max"
|
|
107732
|
+
];
|
|
107667
107733
|
/**
|
|
107668
107734
|
* Public Messages capabilities, not the Claude Code subscription's OAuth/betas.
|
|
107669
107735
|
* https://platform.claude.com/docs/en/build-with-claude/thinking#when-thinking-turns-on
|
|
@@ -107697,33 +107763,124 @@ function relayOneClaudeAdaptiveThinking(id) {
|
|
|
107697
107763
|
allowsTemperatureWhenOff: false
|
|
107698
107764
|
};
|
|
107699
107765
|
}
|
|
107766
|
+
/**
|
|
107767
|
+
* RelayOne passes requests through to the vendor, so model facts follow the
|
|
107768
|
+
* vendor's public contract rather than a subscription line's lower plan cap.
|
|
107769
|
+
* Sources include the Claude/Gemini model tables, Alibaba's Qwen4-Max guide,
|
|
107770
|
+
* Step's Step-5 reasoning guide, and the sibling official-client registries in
|
|
107771
|
+
* kimi-code, minimax-code, glm-coding-plan and qianwen-token-plan.
|
|
107772
|
+
* SWE-2 has no published standalone API window/output limit; keep the local
|
|
107773
|
+
* conservative budget while exposing Cognition's documented effort ladder.
|
|
107774
|
+
*/
|
|
107700
107775
|
function modelFacts(id, protocol) {
|
|
107701
107776
|
const normalized = id.toLowerCase();
|
|
107702
|
-
|
|
107777
|
+
const model = normalized.slice(normalized.lastIndexOf("/") + 1);
|
|
107778
|
+
if (/^(gpt-|o[134](?:-|$)|codex)/.test(model)) return {
|
|
107703
107779
|
contextWindow: 272e3,
|
|
107704
107780
|
maxOutputTokens: 128e3,
|
|
107705
107781
|
supportsImages: true,
|
|
107706
107782
|
reasoningEfforts: RELAYONE_REASONING_EFFORTS
|
|
107707
107783
|
};
|
|
107708
|
-
if (
|
|
107709
|
-
|
|
107784
|
+
if (model.startsWith("claude-")) {
|
|
107785
|
+
const reasoningEfforts = (protocol === "anthropic" ? relayOneClaudeAdaptiveThinking(model) : void 0)?.efforts ?? DEFAULT_REASONING;
|
|
107786
|
+
if (/^claude-(?:(?:opus|sonnet)-5(?:-5)?|haiku-5-5|(?:fable|mythos)-5(?:-[12])?)$/.test(model)) return {
|
|
107787
|
+
contextWindow: 1e6,
|
|
107788
|
+
maxOutputTokens: 128e3,
|
|
107789
|
+
supportsImages: true,
|
|
107790
|
+
reasoningEfforts
|
|
107791
|
+
};
|
|
107792
|
+
if (/^claude-haiku-4-5(?:-\d{8})?$/.test(model)) return {
|
|
107793
|
+
contextWindow: 2e5,
|
|
107794
|
+
maxOutputTokens: 64e3,
|
|
107795
|
+
supportsImages: true,
|
|
107796
|
+
reasoningEfforts
|
|
107797
|
+
};
|
|
107798
|
+
return {
|
|
107799
|
+
contextWindow: 2e5,
|
|
107800
|
+
maxOutputTokens: 32768,
|
|
107801
|
+
supportsImages: true,
|
|
107802
|
+
reasoningEfforts
|
|
107803
|
+
};
|
|
107804
|
+
}
|
|
107805
|
+
if (/^gemini-4-(?:argon|carbon|hydrogen)$/.test(model)) return {
|
|
107806
|
+
contextWindow: 1048576,
|
|
107807
|
+
maxOutputTokens: 65536,
|
|
107808
|
+
supportsImages: true,
|
|
107809
|
+
reasoningEfforts: DEFAULT_REASONING
|
|
107810
|
+
};
|
|
107811
|
+
if (model === "gemini-3.8-flash") return {
|
|
107812
|
+
contextWindow: 1e6,
|
|
107813
|
+
maxOutputTokens: 65536,
|
|
107814
|
+
supportsImages: true,
|
|
107815
|
+
reasoningEfforts: DEFAULT_REASONING
|
|
107816
|
+
};
|
|
107817
|
+
if (model === "minimax-m3.1-flash") return {
|
|
107818
|
+
contextWindow: 1e6,
|
|
107819
|
+
maxOutputTokens: 128e3,
|
|
107820
|
+
supportsImages: true,
|
|
107821
|
+
reasoningEfforts: ADAPTIVE_REASONING
|
|
107822
|
+
};
|
|
107823
|
+
if (model === "kimi-k3.1-pro") return {
|
|
107824
|
+
contextWindow: 1048576,
|
|
107710
107825
|
maxOutputTokens: 32768,
|
|
107711
107826
|
supportsImages: true,
|
|
107712
|
-
reasoningEfforts:
|
|
107827
|
+
reasoningEfforts: LOW_HIGH_MAX_REASONING
|
|
107828
|
+
};
|
|
107829
|
+
if (model === "qwen4-max") return {
|
|
107830
|
+
contextWindow: 1e6,
|
|
107831
|
+
maxOutputTokens: 262144,
|
|
107832
|
+
supportsImages: true,
|
|
107833
|
+
reasoningEfforts: QWEN_REASONING
|
|
107834
|
+
};
|
|
107835
|
+
if (model === "qwen-3.8-flash" || model === "qwen3.8-flash") return {
|
|
107836
|
+
contextWindow: 1e6,
|
|
107837
|
+
maxOutputTokens: 131072,
|
|
107838
|
+
supportsImages: true,
|
|
107839
|
+
reasoningEfforts: QWEN_REASONING
|
|
107713
107840
|
};
|
|
107714
|
-
if (
|
|
107841
|
+
if (model === "deepseek-v4.1-flash" || model === "deepseek-v4.1-flash-1017") return {
|
|
107842
|
+
contextWindow: 1e6,
|
|
107843
|
+
maxOutputTokens: 393216,
|
|
107844
|
+
supportsImages: true,
|
|
107845
|
+
reasoningEfforts: DEEPSEEK_REASONING
|
|
107846
|
+
};
|
|
107847
|
+
if (model === "deepseek-v4-pro") return {
|
|
107848
|
+
contextWindow: 1e6,
|
|
107849
|
+
maxOutputTokens: 393216,
|
|
107850
|
+
supportsImages: false,
|
|
107851
|
+
reasoningEfforts: DEEPSEEK_REASONING
|
|
107852
|
+
};
|
|
107853
|
+
if (model === "glm-5.3-flash") return {
|
|
107854
|
+
contextWindow: 1048576,
|
|
107855
|
+
maxOutputTokens: 128e3,
|
|
107856
|
+
supportsImages: true,
|
|
107857
|
+
reasoningEfforts: LOW_HIGH_MAX_REASONING
|
|
107858
|
+
};
|
|
107859
|
+
if (model === "step-5-preview") return {
|
|
107860
|
+
contextWindow: 1e6,
|
|
107861
|
+
maxOutputTokens: 64e3,
|
|
107862
|
+
supportsImages: true,
|
|
107863
|
+
reasoningEfforts: DEFAULT_REASONING
|
|
107864
|
+
};
|
|
107865
|
+
if (model === "swe-2" || model === "swe-2-flash") return {
|
|
107866
|
+
contextWindow: 128e3,
|
|
107867
|
+
maxOutputTokens: 8192,
|
|
107868
|
+
supportsImages: false,
|
|
107869
|
+
reasoningEfforts: SWE_REASONING
|
|
107870
|
+
};
|
|
107871
|
+
if (model.includes("gemini") || model.includes("banana")) return {
|
|
107715
107872
|
contextWindow: 1e6,
|
|
107716
107873
|
maxOutputTokens: 32768,
|
|
107717
107874
|
supportsImages: true,
|
|
107718
107875
|
reasoningEfforts: DEFAULT_REASONING
|
|
107719
107876
|
};
|
|
107720
|
-
if (
|
|
107877
|
+
if (model.includes("qwen") || model.includes("deepseek") || model.includes("kimi")) return {
|
|
107721
107878
|
contextWindow: 256e3,
|
|
107722
107879
|
maxOutputTokens: 32768,
|
|
107723
107880
|
supportsImages: true,
|
|
107724
107881
|
reasoningEfforts: DEFAULT_REASONING
|
|
107725
107882
|
};
|
|
107726
|
-
if (
|
|
107883
|
+
if (model.includes("glm") || model.includes("minimax") || model.includes("step")) return {
|
|
107727
107884
|
contextWindow: 2e5,
|
|
107728
107885
|
maxOutputTokens: 16384,
|
|
107729
107886
|
supportsImages: false,
|
|
@@ -108497,6 +108654,11 @@ function chatContent(message, images, accepted) {
|
|
|
108497
108654
|
});
|
|
108498
108655
|
return parts;
|
|
108499
108656
|
}
|
|
108657
|
+
function relayOneChatUsesMaxCompletionTokens(entry) {
|
|
108658
|
+
const normalized = entry.id.toLowerCase();
|
|
108659
|
+
const model = normalized.slice(normalized.lastIndexOf("/") + 1);
|
|
108660
|
+
return isRelayOneOpenAIModel(entry.id, entry.vendor) || model.startsWith("kimi-") || model.startsWith("qwen");
|
|
108661
|
+
}
|
|
108500
108662
|
function buildRelayOneChatRequest(options, images, entry, settings) {
|
|
108501
108663
|
const messages = [];
|
|
108502
108664
|
const system = relayOneGptSystemText(options, entry);
|
|
@@ -108558,20 +108720,25 @@ function buildRelayOneChatRequest(options, images, entry, settings) {
|
|
|
108558
108720
|
}
|
|
108559
108721
|
}));
|
|
108560
108722
|
const effort = relayOneEffort(options, settings.defaultReasoningEffort, entry.reasoningEfforts);
|
|
108723
|
+
const normalized = entry.id.toLowerCase();
|
|
108724
|
+
const model = normalized.slice(normalized.lastIndexOf("/") + 1);
|
|
108725
|
+
const glm = model.startsWith("glm-");
|
|
108726
|
+
const deepSeekThinkingOff = effort === "none" && model.startsWith("deepseek");
|
|
108561
108727
|
return {
|
|
108562
108728
|
model: options.model,
|
|
108563
108729
|
messages,
|
|
108564
108730
|
stream: true,
|
|
108565
|
-
stream_options: { include_usage: true },
|
|
108566
|
-
...options.maxTokens === void 0 ? {} : { max_completion_tokens: options.maxTokens },
|
|
108731
|
+
...glm ? {} : { stream_options: { include_usage: true } },
|
|
108732
|
+
...options.maxTokens === void 0 ? {} : relayOneChatUsesMaxCompletionTokens(entry) ? { max_completion_tokens: options.maxTokens } : { max_tokens: options.maxTokens },
|
|
108567
108733
|
...options.temperature === void 0 ? {} : { temperature: options.temperature },
|
|
108568
108734
|
...options.stop !== void 0 && options.stop.length > 0 ? { stop: options.stop } : {},
|
|
108569
108735
|
...tools.length > 0 ? {
|
|
108570
108736
|
tools,
|
|
108571
108737
|
tool_choice: "auto",
|
|
108572
|
-
parallel_tool_calls: true
|
|
108738
|
+
...glm ? {} : { parallel_tool_calls: true }
|
|
108573
108739
|
} : {},
|
|
108574
|
-
...effort === void 0 ? {} : { reasoning_effort: effort }
|
|
108740
|
+
...effort === void 0 || deepSeekThinkingOff ? {} : { reasoning_effort: effort },
|
|
108741
|
+
...deepSeekThinkingOff ? { thinking: { type: "disabled" } } : {}
|
|
108575
108742
|
};
|
|
108576
108743
|
}
|
|
108577
108744
|
function createRelayOneChatStreamState() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelayOneComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/relayone/RelayOneComposerQuota.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AACjG,OAAO,EAAkC,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAE1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAE9C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GAAG,WAAW,CAAC,OAAO,WAAW,CAAC,GAAG;IACxF,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC7C,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AACD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,EAAE,MAAM,GAAE,CAAC,GAAG,EAAE,MAAM,OAAO,EAAE,KAAK,MAAuB,GAAG,kBAAkB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"RelayOneComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/relayone/RelayOneComposerQuota.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AACjG,OAAO,EAAkC,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAE1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAE9C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GAAG,WAAW,CAAC,OAAO,WAAW,CAAC,GAAG;IACxF,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC7C,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AACD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,EAAE,MAAM,GAAE,CAAC,GAAG,EAAE,MAAM,OAAO,EAAE,KAAK,MAAuB,GAAG,kBAAkB,GAAG,IAAI,CAiB/J;AACD,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAI3G"}
|
package/lib/types/compat.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
|
|
|
76
76
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
77
77
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
78
78
|
*/
|
|
79
|
-
export declare const PLUGIN_VERSION: "0.80.
|
|
79
|
+
export declare const PLUGIN_VERSION: "0.80.3";
|
|
80
80
|
export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
|
|
81
81
|
export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
|
|
82
82
|
export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
|
|
@@ -44,6 +44,8 @@ export interface AcpSpawnOptions {
|
|
|
44
44
|
cwd: string;
|
|
45
45
|
/** Extra environment entries layered over a scrubbed copy of this process's environment. */
|
|
46
46
|
env?: Readonly<Record<string, string>>;
|
|
47
|
+
/** Parent for this process's private temporary directory; defaults to DSH's ACP cache. */
|
|
48
|
+
tempRoot?: string;
|
|
47
49
|
/** Grace after stdin EOF before the process is killed. */
|
|
48
50
|
disposeEofGraceMs?: number;
|
|
49
51
|
/** Grace between the kill signal and a forced termination. */
|
|
@@ -74,6 +76,10 @@ export declare class AcpError extends Error {
|
|
|
74
76
|
readonly code: number | undefined;
|
|
75
77
|
constructor(message: string, code?: number);
|
|
76
78
|
}
|
|
79
|
+
/** PyInstaller onefile needs time to unpack and to remove its own `_MEI` directory after stdin EOF. */
|
|
80
|
+
export declare const ACP_DISPOSE_EOF_GRACE_MS = 60000;
|
|
81
|
+
/** A second, shorter bound applies only after the graceful EOF window has elapsed. */
|
|
82
|
+
export declare const ACP_DISPOSE_KILL_GRACE_MS = 10000;
|
|
77
83
|
/**
|
|
78
84
|
* One live ACP connection.
|
|
79
85
|
*
|
|
@@ -92,6 +98,7 @@ export declare class AcpClient {
|
|
|
92
98
|
private handlers;
|
|
93
99
|
private readonly disposeEofGraceMs;
|
|
94
100
|
private readonly disposeGraceMs;
|
|
101
|
+
private readonly temp;
|
|
95
102
|
private exitDetail;
|
|
96
103
|
constructor(options: AcpSpawnOptions, handlers?: AcpClientHandlers);
|
|
97
104
|
/** Whether the underlying process is still running. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acp-client.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/acp-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"acp-client.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/acp-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,+BAA+B;AAC/B,MAAM,MAAM,YAAY,GAAG,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,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;IAIzC,gDAAgD;IAChD,IAAI,IAAI,IAAI,aAAa,GAAG,SAAS,CAEpC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAiChF,oDAAoD;IACpD,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;IAK7C;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAwB9B,OAAO,CAAC,KAAK;IAQb,OAAO,CAAC,OAAO;IAsBf,OAAO,CAAC,QAAQ;YA0BF,mBAAmB;IAsBjC,OAAO,CAAC,OAAO;CAKhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/binary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/binary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAUH,6FAA6F;AAC7F,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAA;IACf,mBAAmB;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,UAAU,CAAA;AAEzC,uEAAuE;AACvE,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAqC1E,CAAA;AAED,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB,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AI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAgCrH;AAkCD;;;;;;;;;GASG;AACH,wBAAsB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiC/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AAEtF,4EAA4E;AAC5E,eAAO,MAAM,sBAAsB,QAAS,CAAA;AAE5C;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,OAAQ,CAAA;AAK5C,iCAAiC;AACjC,eAAO,MAAM,oBAAoB,QAAS,CAAA;AAE1C,wCAAwC;AACxC,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAA;IAChB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,UAAU,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAuB7E;AAkGD;;;;;;;;;;GAUG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4BvG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface AcpProcessTemp {
|
|
2
|
+
/** Private directory passed through TMP, TEMP and TMPDIR. */
|
|
3
|
+
directory: string;
|
|
4
|
+
/** Credential-scrubbed environment containing the isolated temp overrides. */
|
|
5
|
+
environment: NodeJS.ProcessEnv;
|
|
6
|
+
/** Remove the run directory only when it is empty; never remove its contents. */
|
|
7
|
+
release(): void;
|
|
8
|
+
}
|
|
9
|
+
/** Create one launch's temporary directory beneath DSH's ACP process cache. */
|
|
10
|
+
export declare function createAcpProcessTemp(tempRoot?: string): AcpProcessTemp;
|
|
11
|
+
//# sourceMappingURL=process-temp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-temp.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/process-temp.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAA;IACjB,8EAA8E;IAC9E,WAAW,EAAE,MAAM,CAAC,UAAU,CAAA;IAC9B,iFAAiF;IACjF,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,cAAc,CAgBtE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GenerateOptions, OutboundContentBlock, StreamChunk, TokenUsage } from '../common/llm-compat.ts';
|
|
2
2
|
import type { ResolvedRequestImages } from '../common/request-images.ts';
|
|
3
|
-
import type
|
|
3
|
+
import { type RelayOneModelEntry } from './model-catalog.ts';
|
|
4
4
|
import type { RelayOneSettings } from './token-store.ts';
|
|
5
5
|
/** Standard OpenAI Responses request; no Codex subscription-only headers or Lite items. */
|
|
6
6
|
export declare function buildRelayOneResponsesRequest(options: GenerateOptions, images: ResolvedRequestImages, entry: RelayOneModelEntry, settings: RelayOneSettings): Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapper-openai.d.ts","sourceRoot":"","sources":["../../../../src/host/relayone/mapper-openai.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAW,oBAAoB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAItH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAExE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"mapper-openai.d.ts","sourceRoot":"","sources":["../../../../src/host/relayone/mapper-openai.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAW,oBAAoB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAItH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAExE,OAAO,EAAyB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAwExD,2FAA2F;AAC3F,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,qBAAqB,EAC7B,KAAK,EAAE,kBAAkB,EACzB,QAAQ,EAAE,gBAAgB,GACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0DzB;AA4BD,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,qBAAqB,EAC7B,KAAK,EAAE,kBAAkB,EACzB,QAAQ,EAAE,gBAAgB,GACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkDzB;AAED,UAAU,QAAQ;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAC9E,UAAU,WAAW;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,M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