@eddyskywalker/dsh-chatgpt-subscription 0.80.0 → 0.80.2

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/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.0";
835
+ const PLUGIN_VERSION = "0.80.2";
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`;
@@ -9940,6 +9940,7 @@ function toolRemovalNotice(names) {
9940
9940
  const list = names.map((name) => `"${name}"`).join(", ");
9941
9941
  return names.length === 1 ? `[The tool ${list} is no longer available. Do not call it again: any call will fail.]` : `[The tools ${list} are no longer available. Do not call them again: any call will fail.]`;
9942
9942
  }
9943
+ const CODEX_BASE_INSTRUCTIONS_KIND = "model.base_instructions";
9943
9944
  /**
9944
9945
  * The base instructions as a developer message.
9945
9946
  *
@@ -9958,7 +9959,7 @@ function developerMessageItem(text, idNamespace, useResponsesLite) {
9958
9959
  text
9959
9960
  }],
9960
9961
  internal_chat_message_metadata_passthrough: {
9961
- content_item_kinds: ["model.base_instructions"],
9962
+ content_item_kinds: [CODEX_BASE_INSTRUCTIONS_KIND],
9962
9963
  ...useResponsesLite ? { content_item_metadata: [{ provenance: {
9963
9964
  type: "harness",
9964
9965
  hook: false
@@ -10645,9 +10646,22 @@ const REASONING_TRUNCATED_NOTICE = "\n\n[Reasoning summary truncated to keep the
10645
10646
  const MAX_TRACKED_TURN_STATES = 200;
10646
10647
  const codexPrefixRequests = new PrefixRequestCoordinator();
10647
10648
  function codexColdGroupKey(payload, credentials) {
10648
- const instructions = typeof payload.instructions === "string" ? payload.instructions : "";
10649
- if (instructions === "") return void 0;
10650
- const digest = createHash("sha256").update(instructions).update("\0").update(JSON.stringify(Array.isArray(payload.tools) ? payload.tools : [])).digest("hex");
10649
+ const input = Array.isArray(payload.input) ? payload.input : [];
10650
+ const head = record$4(input[0]);
10651
+ const liteTools = head?.type === "additional_tools" ? head.tools : void 0;
10652
+ const instructions = liteTools === void 0 ? head : record$4(input[1]);
10653
+ const kinds = record$4(instructions?.internal_chat_message_metadata_passthrough)?.content_item_kinds;
10654
+ if (instructions?.role !== "developer" || !Array.isArray(kinds) || !kinds.includes("model.base_instructions")) return void 0;
10655
+ const digest = createHash("sha256").update(JSON.stringify([
10656
+ instructions.content,
10657
+ liteTools,
10658
+ payload.tools,
10659
+ payload.tool_choice,
10660
+ payload.parallel_tool_calls,
10661
+ payload.reasoning,
10662
+ payload.text,
10663
+ payload.service_tier
10664
+ ])).digest("hex");
10651
10665
  return `${String(payload.model ?? "")}:${digest}:${authOwnerKey(credentials)}`;
10652
10666
  }
10653
10667
  var ResponsesClient = class {
@@ -24343,6 +24357,7 @@ const MAX_VIDEO_MESSAGE_BODY_BYTES = 64 * 1024 * 1024;
24343
24357
  */
24344
24358
  const MAX_REQUEST_VIDEO_BYTES$1 = 48 * 1024 * 1024;
24345
24359
  const OMITTED_IMAGE_TEXT$1 = "[image omitted to keep the request within its size limit; older images are omitted first. If this image is still needed, read its file again when a path is available; otherwise ask the user to attach it again.]";
24360
+ const STICKY_OMITTED_IMAGE_TEXT = "[image omitted to keep the request within its size limit. The same image will stay omitted in this conversation. If it is needed, use a smaller or cropped copy.]";
24346
24361
  /** Media types both upstream wires accept as inline base64. */
24347
24362
  const SUPPORTED_IMAGE_MEDIA_TYPES$3 = /* @__PURE__ */ new Set([
24348
24363
  "image/png",
@@ -24613,7 +24628,7 @@ function requestImageKey(block, images) {
24613
24628
  * included: a screenshot inside a tool result reaches the wire, so an
24614
24629
  * occurrence the budget cannot see is an occurrence it cannot budget for.
24615
24630
  */
24616
- function collectImageOccurrences(options, images) {
24631
+ function collectImageOccurrences(options, images, maxImageBytes = Number.POSITIVE_INFINITY) {
24617
24632
  const occurrences = [];
24618
24633
  const walk = (content) => {
24619
24634
  if (!Array.isArray(content)) return;
@@ -24621,8 +24636,9 @@ function collectImageOccurrences(options, images) {
24621
24636
  if (!isRecord$63(block)) continue;
24622
24637
  if (block.type === "image") {
24623
24638
  const bytes = requestImagePayloadLength(block, images);
24639
+ if (bytes === void 0 || bytes > maxImageBytes) continue;
24624
24640
  const key = requestImageKey(block, images);
24625
- if (bytes !== void 0 && key !== void 0) occurrences.push({
24641
+ if (key !== void 0) occurrences.push({
24626
24642
  key,
24627
24643
  bytes
24628
24644
  });
@@ -24696,7 +24712,7 @@ function replaceDroppedRequestImages(options, droppedKeys, images) {
24696
24712
  count += 1;
24697
24713
  return {
24698
24714
  type: "text",
24699
- text: OMITTED_IMAGE_TEXT$1
24715
+ text: STICKY_OMITTED_IMAGE_TEXT
24700
24716
  };
24701
24717
  }
24702
24718
  if (block.type === "tool-result" && Array.isArray(block.content)) {
@@ -24758,11 +24774,13 @@ function replaceDroppedRequestImages(options, droppedKeys, images) {
24758
24774
  * @param inlineExcludedKeys - identities whose actual wire form is a hosted
24759
24775
  * reference rather than inline bytes. They stay in request order with a zero
24760
24776
  * byte weight; only genuinely inline images consume this budget.
24777
+ * @param maxImageBytes - per-image limit when the mapper independently replaces
24778
+ * larger images with placeholders. Those images do not consume the total budget.
24761
24779
  */
24762
- function offloadRequestImagesWithStickyBudget(options, maxBytes = MAX_REQUEST_IMAGE_BYTES$1, lowBytes = Math.max(1, Math.floor(maxBytes / 2)), images, priorDroppedKeys, inlineExcludedKeys) {
24780
+ function offloadRequestImagesWithStickyBudget(options, maxBytes = MAX_REQUEST_IMAGE_BYTES$1, lowBytes = Math.max(1, Math.floor(maxBytes / 2)), images, priorDroppedKeys, inlineExcludedKeys, maxImageBytes = Number.POSITIVE_INFINITY) {
24763
24781
  const allDroppedKeys = new Set(priorDroppedKeys ?? []);
24764
24782
  const pending = /* @__PURE__ */ new Map();
24765
- for (const occurrence of collectImageOccurrences(options, images)) {
24783
+ for (const occurrence of collectImageOccurrences(options, images, maxImageBytes)) {
24766
24784
  if (allDroppedKeys.has(occurrence.key)) continue;
24767
24785
  const bytes = inlineExcludedKeys?.has(occurrence.key) ? 0 : occurrence.bytes;
24768
24786
  pending.set(occurrence.key, (pending.get(occurrence.key) ?? 0) + bytes);
@@ -24899,6 +24917,46 @@ function imageBlockToInline$2(block, images) {
24899
24917
  } : void 0;
24900
24918
  }
24901
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
24902
24960
  //#region src/host/antigravity-acp/acp-client.ts
24903
24961
  /**
24904
24962
  * Minimal ACP v1 client over stdio JSON-RPC.
@@ -24950,24 +25008,33 @@ var AcpClient = class {
24950
25008
  handlers;
24951
25009
  disposeEofGraceMs;
24952
25010
  disposeGraceMs;
25011
+ temp;
24953
25012
  exitDetail;
24954
25013
  constructor(options, handlers = {}) {
24955
25014
  this.handlers = handlers;
24956
- this.disposeEofGraceMs = options.disposeEofGraceMs ?? 6e3;
24957
- this.disposeGraceMs = options.disposeGraceMs ?? 3e3;
24958
- this.child = spawn(options.command, [...options.args ?? []], {
24959
- cwd: options.cwd,
24960
- stdio: [
24961
- "pipe",
24962
- "pipe",
24963
- "pipe"
24964
- ],
24965
- env: {
24966
- ...scrubbedEnvironment(),
24967
- ...options.env
24968
- },
24969
- windowsHide: true
24970
- });
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;
24971
25038
  this.child.stdout.on("data", (chunk) => {
24972
25039
  this.handlers.onActivity?.();
24973
25040
  this.consume(this.decoder.write(chunk));
@@ -24978,7 +25045,10 @@ var AcpClient = class {
24978
25045
  this.child.stderr.on("data", (chunk) => {
24979
25046
  this.stderrTail = (this.stderrTail + chunk.toString("utf8")).slice(-2048);
24980
25047
  });
24981
- this.child.on("error", (error) => this.failAll(error));
25048
+ this.child.on("error", (error) => {
25049
+ this.temp.release();
25050
+ this.failAll(error);
25051
+ });
24982
25052
  this.child.on("exit", (code, signal) => {
24983
25053
  this.exitDetail = {
24984
25054
  code,
@@ -24986,6 +25056,7 @@ var AcpClient = class {
24986
25056
  ...this.stderrTail === "" ? {} : { stderrTail: redactStderr(this.stderrTail) }
24987
25057
  };
24988
25058
  this.closed = true;
25059
+ this.temp.release();
24989
25060
  this.failAll(new AcpError(`Antigravity ACP process exited (code ${code ?? "null"}, signal ${signal ?? "none"})`));
24990
25061
  this.handlers.onExit?.(this.exitDetail);
24991
25062
  });
@@ -25202,21 +25273,6 @@ function settlesWithin(promise, budgetMs) {
25202
25273
  });
25203
25274
  });
25204
25275
  }
25205
- /**
25206
- * A copy of this process's environment without credentials.
25207
- *
25208
- * The agent authenticates itself and must not inherit a provider key from the
25209
- * host's own environment; the caller may still layer explicit entries on top.
25210
- */
25211
- function scrubbedEnvironment() {
25212
- const env = {};
25213
- for (const [key, value] of Object.entries(process.env)) {
25214
- if (value === void 0) continue;
25215
- if (/key|token|secret|password|credential/i.test(key)) continue;
25216
- env[key] = value;
25217
- }
25218
- return env;
25219
- }
25220
25276
  function redactStderr(text) {
25221
25277
  return text.replace(/([A-Za-z0-9_\-]{24,})/g, "[redacted]").slice(-2048);
25222
25278
  }
@@ -28057,18 +28113,26 @@ async function exists(candidate) {
28057
28113
  /** Read `agy --version`, or undefined when the executable does not answer. */
28058
28114
  async function readCliVersion(command) {
28059
28115
  const { execFile } = await import("node:child_process");
28116
+ const temp = createAcpProcessTemp();
28060
28117
  return new Promise((resolve) => {
28061
- execFile(command, ["--version"], {
28062
- timeout: 1e4,
28063
- windowsHide: true
28064
- }, (error, stdout) => {
28065
- if (error !== null) {
28066
- resolve(void 0);
28067
- return;
28068
- }
28069
- const text = stdout.trim().split(/\r?\n/)[0]?.trim();
28070
- resolve(text === void 0 || text === "" ? void 0 : text);
28071
- });
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
+ }
28072
28136
  });
28073
28137
  }
28074
28138
  /**
@@ -28221,6 +28285,7 @@ async function startProtocolLogin(client, methodId) {
28221
28285
  }
28222
28286
  }
28223
28287
  function startTerminalLogin(launch) {
28288
+ const temp = createAcpProcessTemp();
28224
28289
  let child;
28225
28290
  try {
28226
28291
  child = spawn(launch.command, [...launch.args, "--login"], {
@@ -28230,14 +28295,18 @@ function startTerminalLogin(launch) {
28230
28295
  "ignore",
28231
28296
  "pipe"
28232
28297
  ],
28298
+ env: temp.environment,
28233
28299
  windowsHide: true
28234
28300
  });
28235
28301
  } catch (error) {
28302
+ temp.release();
28236
28303
  return Promise.resolve({
28237
28304
  started: false,
28238
28305
  error: error instanceof Error ? error.message : String(error)
28239
28306
  });
28240
28307
  }
28308
+ child.once("error", () => temp.release());
28309
+ child.once("exit", () => temp.release());
28241
28310
  return watchLauncher(child);
28242
28311
  }
28243
28312
  /**
@@ -28271,7 +28340,6 @@ function watchLauncher(child) {
28271
28340
  windowTimer.unref?.();
28272
28341
  const detachTimer = setTimeout(() => {
28273
28342
  child.stderr?.removeAllListeners("data");
28274
- child.removeAllListeners();
28275
28343
  }, LOGIN_LAUNCH_BUDGET_MS);
28276
28344
  detachTimer.unref?.();
28277
28345
  child.once("error", (error) => settle(failed(error.message)));
@@ -55553,6 +55621,26 @@ const NO_RESOLVED_IMAGES$1 = /* @__PURE__ */ new Map();
55553
55621
  * still catching the runaway case locally rather than as a 413.
55554
55622
  */
55555
55623
  const MAX_REQUEST_IMAGE_BYTES = 8 * 1024 * 1024;
55624
+ /**
55625
+ * Base64 image payload ONE image may carry.
55626
+ *
55627
+ * A SEPARATE budget from {@link MAX_REQUEST_IMAGE_BYTES}, and enforced by a
55628
+ * separate pass. The two answer different questions: the per-image ceiling
55629
+ * asks whether THIS picture is acceptable to the endpoint, while the
55630
+ * per-request ceiling asks whether the conversation is still a reasonable
55631
+ * size. A single budget cannot answer both — one image can be over the
55632
+ * per-image ceiling while the request as a whole is small, and that request
55633
+ * is refused by the endpoint however small it is.
55634
+ *
55635
+ * 5 MB of base64 is the per-image figure the vendor publishes for the
55636
+ * narrower platforms, and it is the figure this line already targeted
55637
+ * indirectly: the request-version byte target below
55638
+ * ({@link REQUEST_IMAGE_VERSION_MAX_BYTES}) produces a payload of about
55639
+ * 4.7 MB of base64, which is under it. What was missing was the check
55640
+ * itself — an image that fitted the edge limit but not the byte limit was
55641
+ * sent as stored.
55642
+ */
55643
+ const MAX_SINGLE_REQUEST_IMAGE_BYTES = 5 * 1024 * 1024;
55556
55644
  const OMITTED_IMAGE_TEXT = "[image omitted to keep the request within its size limit; older images are omitted first. If this image is still needed, read its file again when a path is available; otherwise ask the user to attach it again.]";
55557
55645
  /** Media types this wire accepts as inline base64. Transcribed from the API docs. */
55558
55646
  const SUPPORTED_IMAGE_MEDIA_TYPES$1 = /* @__PURE__ */ new Set([
@@ -58386,7 +58474,7 @@ function assertClaudeCliVersionMeetsFloor(modelId, catalog = FALLBACK_MODELS) {
58386
58474
  throw new LlmError$1("Claude(订阅) will not serve " + modelId + " to a client reporting version " + effective + ": upstream requires " + floor + " or newer for this model, and a lower claim is refused with claude_code_version_too_old. This was caught locally, before the request was sent. Raise the reported version with the DSH_CLAUDE_CLI_VERSION environment variable, or with a setClaudeCliVersion pin, then retry. The stored sign-in is still valid — this is not a credential problem and signing in again will not change it.", "PROVIDER_ERROR");
58387
58475
  }
58388
58476
  const claudePrefixRequests = new PrefixRequestCoordinator();
58389
- const claudeStickyImages = new StickyImageBudgetStore("claude");
58477
+ const claudeStickyImages = new StickyImageBudgetStore(`claude-${MAX_REQUEST_IMAGE_BYTES}-${MAX_SINGLE_REQUEST_IMAGE_BYTES}`);
58390
58478
  /**
58391
58479
  * The immutable id of the account a token came from, presented as the two-method
58392
58480
  * store oauth.ts wants. See module note 3.
@@ -58665,7 +58753,7 @@ var ClaudeAdapter = class ClaudeAdapter extends LlmAdapter {
58665
58753
  const normalized = withStaticPrefixOrdering("claude", normalizeGenerateOptions(options), this.options.promptCache);
58666
58754
  const images = await resolveRequestImages(normalized, this.options.attachments, signal);
58667
58755
  const stickyImages = new Map([...images].map(([id, image]) => [id, image.kind === "oversized" ? { kind: "unavailable" } : image]));
58668
- const sticky = promptCachePolicyOf("claude", this.options.promptCache).stickyImages ? offloadRequestImagesWithStickyBudget(normalized, MAX_REQUEST_IMAGE_BYTES$1, Math.max(1, Math.floor(MAX_REQUEST_IMAGE_BYTES$1 / 2)), stickyImages, claudeStickyImages.priorDroppedKeys(normalized.sessionId)) : void 0;
58756
+ const sticky = promptCachePolicyOf("claude", this.options.promptCache).stickyImages ? offloadRequestImagesWithStickyBudget(normalized, MAX_REQUEST_IMAGE_BYTES, MAX_SINGLE_REQUEST_IMAGE_BYTES, stickyImages, claudeStickyImages.priorDroppedKeys(normalized.sessionId), void 0, MAX_SINGLE_REQUEST_IMAGE_BYTES) : void 0;
58669
58757
  const requestOptions = sticky?.options ?? offloadOldestRequestImages(normalized, images);
58670
58758
  if (sticky !== void 0 && sticky.newlyDroppedKeys.length > 0) claudeStickyImages.record(normalized.sessionId, sticky.allDroppedKeys);
58671
58759
  const toolNames = claudeToolNames(requestOptions.tools);
@@ -107620,7 +107708,46 @@ const DEFAULT_REASONING = [
107620
107708
  "medium",
107621
107709
  "high"
107622
107710
  ];
107623
- function modelFacts(id) {
107711
+ const ADAPTIVE_REASONING = [
107712
+ ...DEFAULT_REASONING,
107713
+ "xhigh",
107714
+ "max"
107715
+ ];
107716
+ const DISABLEABLE_ADAPTIVE_REASONING = ["none", ...ADAPTIVE_REASONING];
107717
+ /**
107718
+ * Public Messages capabilities, not the Claude Code subscription's OAuth/betas.
107719
+ * https://platform.claude.com/docs/en/build-with-claude/thinking#when-thinking-turns-on
107720
+ * https://platform.claude.com/docs/en/build-with-claude/effort#effort-levels
107721
+ */
107722
+ function relayOneClaudeAdaptiveThinking(id) {
107723
+ const model = id.toLowerCase().replace(/-\d{8}$/, "");
107724
+ if (/^claude-(?:opus|sonnet)-4-6$/.test(model)) return {
107725
+ efforts: [...DEFAULT_REASONING, "max"],
107726
+ enabledByDefault: false,
107727
+ allowsTemperatureWhenOff: true
107728
+ };
107729
+ if (/^claude-opus-4-[78]$/.test(model)) return {
107730
+ efforts: ADAPTIVE_REASONING,
107731
+ enabledByDefault: false,
107732
+ allowsTemperatureWhenOff: false
107733
+ };
107734
+ if (/^claude-(?:(?:opus|sonnet)-5|haiku-5-5)$/.test(model)) return {
107735
+ efforts: DISABLEABLE_ADAPTIVE_REASONING,
107736
+ enabledByDefault: true,
107737
+ allowsTemperatureWhenOff: false
107738
+ };
107739
+ if (/^claude-(?:(?:opus|sonnet)-5-5|(?:fable|mythos)-5(?:-[12])?)$/.test(model)) return {
107740
+ efforts: ADAPTIVE_REASONING,
107741
+ enabledByDefault: true,
107742
+ allowsTemperatureWhenOff: false
107743
+ };
107744
+ if (model === "claude-mythos-preview") return {
107745
+ efforts: [...DEFAULT_REASONING, "max"],
107746
+ enabledByDefault: true,
107747
+ allowsTemperatureWhenOff: false
107748
+ };
107749
+ }
107750
+ function modelFacts(id, protocol) {
107624
107751
  const normalized = id.toLowerCase();
107625
107752
  if (/^(gpt-|o[134](?:-|$)|codex)/.test(normalized)) return {
107626
107753
  contextWindow: 272e3,
@@ -107632,7 +107759,7 @@ function modelFacts(id) {
107632
107759
  contextWindow: 2e5,
107633
107760
  maxOutputTokens: 32768,
107634
107761
  supportsImages: true,
107635
- reasoningEfforts: DEFAULT_REASONING
107762
+ reasoningEfforts: (protocol === "anthropic" ? relayOneClaudeAdaptiveThinking(normalized) : void 0)?.efforts ?? DEFAULT_REASONING
107636
107763
  };
107637
107764
  if (normalized.includes("gemini") || normalized.includes("banana")) return {
107638
107765
  contextWindow: 1e6,
@@ -107700,7 +107827,7 @@ function mergeRelayOneCatalog(listingPayload, pricingPayload) {
107700
107827
  vendor,
107701
107828
  description: row?.description ?? null,
107702
107829
  parameterSchema: row?.parameterSchema ?? null,
107703
- ...modelFacts(model.id)
107830
+ ...modelFacts(model.id, protocol)
107704
107831
  }];
107705
107832
  });
107706
107833
  }
@@ -107802,7 +107929,7 @@ function parsePersistedRelayOneModelEntries(value) {
107802
107929
  protocol,
107803
107930
  vendor: text(raw.vendor),
107804
107931
  description: text(raw.description),
107805
- ...modelFacts(id),
107932
+ ...modelFacts(id, protocol),
107806
107933
  parameterSchema: isRecord$1(raw.parameterSchema) ? structuredClone(raw.parameterSchema) : null
107807
107934
  };
107808
107935
  result.push(entry);
@@ -108216,11 +108343,14 @@ function relayOneTextOf(content) {
108216
108343
  function relayOneToolResult(message) {
108217
108344
  return message.content.find((block) => block.type === "tool-result");
108218
108345
  }
108346
+ function relayOneInstructionText(message) {
108347
+ return relayOneTextOf(message.content.filter((block) => block.type !== "tool-addition" && block.type !== "tool-removal")).trim();
108348
+ }
108219
108349
  function relayOneSystemText(options) {
108220
108350
  const parts = [typeof options.system === "string" ? options.system.trim() : ""];
108221
108351
  for (const message of options.messages) {
108222
108352
  if (message.role !== "system" && message.role !== "developer") continue;
108223
- const text = relayOneTextOf(message.content.filter((block) => block.type !== "tool-addition" && block.type !== "tool-removal")).trim();
108353
+ const text = relayOneInstructionText(message);
108224
108354
  if (text !== "") parts.push(text);
108225
108355
  }
108226
108356
  return parts.filter(Boolean).join("\n\n");
@@ -108259,10 +108389,38 @@ function relayOneEffort(options, configured, supported) {
108259
108389
  }
108260
108390
  //#endregion
108261
108391
  //#region src/host/relayone/mapper-openai.ts
108392
+ function relayOneGptGuidance(base, options, entry) {
108393
+ if (!/^gpt-/i.test(entry.id) || !options.tools?.length) return base;
108394
+ return appendGptEngineeringGuidance(base, options.tools) + "\n\nAfter a batch of related tool results gives you a meaningful finding or completes a stage, send one short, user-visible assistant text update before the next batch of tool calls, then continue working in the same turn. Say what the results established, not just what you intend to do. Put the update in assistant text, not hidden reasoning or a tool argument. Skip routine batches with nothing new to report, and do not repeat an update already delivered through progress_update. Leave the full recap for the final answer.";
108395
+ }
108262
108396
  function relayOneGptSystemText(options, entry) {
108263
- const system = relayOneSystemText(options);
108264
- if (!/^gpt-/i.test(entry.id)) return system;
108265
- return appendGptEngineeringGuidance(system, options.tools);
108397
+ return relayOneGptGuidance(relayOneSystemText(options), options, entry);
108398
+ }
108399
+ function usesCacheableDeveloperPrefix(id) {
108400
+ const version = /^gpt-(\d+)(?:\.(\d+))?(?:-|$)/i.exec(id);
108401
+ const major = Number(version?.[1]);
108402
+ return major > 6 || major === 6 && Number(version?.[2] ?? 0) >= 2;
108403
+ }
108404
+ function relayOneResponsesInstructions(options, entry) {
108405
+ if (!usesCacheableDeveloperPrefix(entry.id)) return {
108406
+ base: "",
108407
+ current: relayOneGptSystemText(options, entry)
108408
+ };
108409
+ const base = [options.system?.trim() ?? ""];
108410
+ const current = [];
108411
+ let pastPrefix = false;
108412
+ for (const message of options.messages) {
108413
+ if (message.role !== "system" && message.role !== "developer") {
108414
+ pastPrefix = true;
108415
+ continue;
108416
+ }
108417
+ const text = relayOneInstructionText(message);
108418
+ if (text !== "") (pastPrefix ? current : base).push(text);
108419
+ }
108420
+ return {
108421
+ base: relayOneGptGuidance(base.filter(Boolean).join("\n\n"), options, entry),
108422
+ current: current.join("\n\n")
108423
+ };
108266
108424
  }
108267
108425
  function responseMessageContent(message, images, accepted) {
108268
108426
  const parts = [];
@@ -108286,7 +108444,15 @@ function responseMessageContent(message, images, accepted) {
108286
108444
  function buildRelayOneResponsesRequest(options, images, entry, settings) {
108287
108445
  const input = [];
108288
108446
  const knownCalls = /* @__PURE__ */ new Set();
108289
- const instructions = relayOneGptSystemText(options, entry);
108447
+ const { base, current } = relayOneResponsesInstructions(options, entry);
108448
+ if (base !== "") input.push({
108449
+ type: "message",
108450
+ role: "developer",
108451
+ content: [{
108452
+ type: "input_text",
108453
+ text: base
108454
+ }]
108455
+ });
108290
108456
  for (const message of options.messages) {
108291
108457
  if (message.role === "system" || message.role === "developer") continue;
108292
108458
  const toolResult = relayOneToolResult(message);
@@ -108307,22 +108473,29 @@ function buildRelayOneResponsesRequest(options, images, entry, settings) {
108307
108473
  });
108308
108474
  continue;
108309
108475
  }
108310
- if (message.role === "assistant") {
108311
- const replay = relayOneReplayOutputItems(message);
108312
- if (replay !== null) {
108313
- input.push(...replay);
108314
- for (const item of replay) if (item.type === "function_call" && typeof item.call_id === "string") knownCalls.add(item.call_id);
108315
- continue;
108316
- }
108317
- }
108476
+ const replay = message.role === "assistant" ? relayOneReplayOutputItems(message) : null;
108318
108477
  const content = responseMessageContent(message, images, entry.supportsImages);
108319
- if (content.length > 0) input.push({
108478
+ const hasReplayText = replay?.some((item) => item.type === "message" && Array.isArray(item.content) && item.content.some((part) => {
108479
+ if (!isRelayOneRecord(part)) return false;
108480
+ const text = part.type === "output_text" ? relayOneString(part.text) : part.type === "refusal" ? relayOneString(part.refusal) : void 0;
108481
+ return Boolean(text?.trim());
108482
+ }));
108483
+ if (replay !== null) {
108484
+ const firstCall = replay.findIndex((item) => item.type === "function_call");
108485
+ if (!hasReplayText && content.length > 0) replay.splice(firstCall === -1 ? replay.length : firstCall, 0, {
108486
+ role: "assistant",
108487
+ content
108488
+ });
108489
+ input.push(...replay);
108490
+ for (const item of replay) if (item.type === "function_call" && typeof item.call_id === "string") knownCalls.add(item.call_id);
108491
+ } else if (content.length > 0) input.push({
108320
108492
  role: message.role,
108321
108493
  content
108322
108494
  });
108323
108495
  if (message.role === "assistant") for (const block of message.content) {
108324
108496
  if (block.type !== "tool-call") continue;
108325
108497
  const callId = String(block.id);
108498
+ if (knownCalls.has(callId)) continue;
108326
108499
  knownCalls.add(callId);
108327
108500
  input.push({
108328
108501
  type: "function_call",
@@ -108343,7 +108516,7 @@ function buildRelayOneResponsesRequest(options, images, entry, settings) {
108343
108516
  return {
108344
108517
  model: options.model,
108345
108518
  stream: true,
108346
- ...instructions === "" ? {} : { instructions },
108519
+ ...current === "" ? {} : { instructions: current },
108347
108520
  input,
108348
108521
  ...tools.length > 0 ? {
108349
108522
  tools,
@@ -108745,17 +108918,28 @@ function buildRelayOneAnthropicRequest(options, images, entry, settings) {
108745
108918
  description: tool.description,
108746
108919
  input_schema: stripMetaSchema$1(tool.parameters)
108747
108920
  }));
108748
- const effort = relayOneEffort(options, settings.defaultReasoningEffort, entry.reasoningEfforts);
108749
- const budget = effort === void 0 ? 0 : {
108921
+ const adaptive = relayOneClaudeAdaptiveThinking(entry.id);
108922
+ const effort = relayOneEffort(options, settings.defaultReasoningEffort, adaptive?.efforts ?? entry.reasoningEfforts);
108923
+ const enabled = effort !== "none" && (effort !== void 0 || adaptive?.enabledByDefault === true);
108924
+ const budget = adaptive === void 0 && enabled && effort !== void 0 ? {
108750
108925
  minimal: 2048,
108751
108926
  low: 4096,
108752
108927
  medium: 8192,
108753
108928
  high: 16384,
108754
108929
  xhigh: 24576,
108755
108930
  max: 32768
108756
- }[effort] ?? 8192;
108931
+ }[effort] ?? 8192 : 0;
108757
108932
  const baseMax = options.maxTokens ?? Math.min(entry.maxOutputTokens, 16384);
108758
108933
  const maxTokens = Math.max(1024, Math.min(entry.maxOutputTokens, budget > 0 ? Math.max(baseMax, budget + 4096) : baseMax));
108934
+ const thinking = adaptive !== void 0 ? effort === "none" ? { type: "disabled" } : enabled ? {
108935
+ type: "adaptive",
108936
+ display: "summarized"
108937
+ } : void 0 : budget > 0 && maxTokens > budget ? {
108938
+ type: "enabled",
108939
+ budget_tokens: budget
108940
+ } : void 0;
108941
+ const outputConfig = adaptive !== void 0 && effort !== void 0 && effort !== "none" ? { effort } : void 0;
108942
+ const allowTemperature = !enabled && (adaptive?.allowsTemperatureWhenOff ?? true);
108759
108943
  const system = relayOneSystemText(options);
108760
108944
  return {
108761
108945
  model: options.model,
@@ -108767,11 +108951,9 @@ function buildRelayOneAnthropicRequest(options, images, entry, settings) {
108767
108951
  tools,
108768
108952
  tool_choice: { type: "auto" }
108769
108953
  } : {},
108770
- ...budget > 0 && maxTokens > budget ? { thinking: {
108771
- type: "enabled",
108772
- budget_tokens: budget
108773
- } } : {},
108774
- ...options.temperature === void 0 || budget > 0 ? {} : { temperature: options.temperature },
108954
+ ...thinking === void 0 ? {} : { thinking },
108955
+ ...outputConfig === void 0 ? {} : { output_config: outputConfig },
108956
+ ...options.temperature === void 0 || !allowTemperature ? {} : { temperature: options.temperature },
108775
108957
  ...options.stop !== void 0 && options.stop.length > 0 ? { stop_sequences: options.stop } : {}
108776
108958
  };
108777
108959
  }
@@ -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.0";
79
+ export declare const PLUGIN_VERSION: "0.80.2";
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;AAKH,+BAA+B;AAC/B,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AAEjC,2EAA2E;AAC3E,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,EAAE,CAAC,EA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