@eddyskywalker/dsh-chatgpt-subscription 0.2.4 → 0.2.7

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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - 修复 Antigravity 工具调用:原样回传 Google 工具 ID,兼容旧会话保存的原始 ID;转换工具参数 Schema,过滤 `propertyNames` 等不支持字段并处理嵌套结构。
6
+ - 修复 Gemini 3.7 / 3.8 的旧 `off` / `none` 思考配置,使用最低支持档位 `LOW` 并关闭思考摘要;400 请求错误直接保留原始详情,不再被模型降级错误覆盖。
5
7
  - Codex 订阅供应商新增 `gpt-6-astra`(6 Astra),支持文本、图片、工具调用和 `low` 至 `max` 思考档位,默认 `medium`;旧会话的 `none` / `minimal` 转为 `low`。
6
8
  - 新增 Astra 上下文设置:默认 272K,订阅侧最高 872K,界面与服务端统一校验;保留已有模型选择与上下文配置。
7
9
 
package/lib/index.js CHANGED
@@ -3080,7 +3080,7 @@ function field(value, name) {
3080
3080
  const candidate = value[name];
3081
3081
  return typeof candidate === "string" && candidate !== "" ? candidate : null;
3082
3082
  }
3083
- function isRecord$1(value) {
3083
+ function isRecord$2(value) {
3084
3084
  return typeof value === "object" && value !== null && !Array.isArray(value);
3085
3085
  }
3086
3086
  function readPreferencesUpdate(value, current) {
@@ -3110,7 +3110,7 @@ function readPreferencesUpdate(value, current) {
3110
3110
  patch.searchProvider = value.searchProvider;
3111
3111
  }
3112
3112
  if ("contextWindowOverrides" in value) {
3113
- if (!isRecord$1(value.contextWindowOverrides)) throw new PreferenceError("contextWindowOverrides must be an object.");
3113
+ if (!isRecord$2(value.contextWindowOverrides)) throw new PreferenceError("contextWindowOverrides must be an object.");
3114
3114
  const overrides = {};
3115
3115
  for (const [model, contextWindow] of Object.entries(value.contextWindowOverrides)) {
3116
3116
  if (!isConfigurableContextModelId(model)) throw new PreferenceError("This model does not support a configurable context window.");
@@ -4696,6 +4696,91 @@ async function loginAndSave(store, signal, onUrl, fetchFn = fetch) {
4696
4696
  }
4697
4697
  }
4698
4698
  //#endregion
4699
+ //#region src/host/antigravity/tool-schema.ts
4700
+ const schemaFields = /* @__PURE__ */ new Set([
4701
+ "type",
4702
+ "format",
4703
+ "title",
4704
+ "description",
4705
+ "nullable",
4706
+ "enum",
4707
+ "default",
4708
+ "example",
4709
+ "minimum",
4710
+ "maximum",
4711
+ "minItems",
4712
+ "maxItems",
4713
+ "minLength",
4714
+ "maxLength",
4715
+ "minProperties",
4716
+ "maxProperties",
4717
+ "pattern",
4718
+ "required",
4719
+ "propertyOrdering"
4720
+ ]);
4721
+ function isRecord$1(value) {
4722
+ return typeof value === "object" && value !== null && !Array.isArray(value);
4723
+ }
4724
+ function mergeSchemas(left, right) {
4725
+ const merged = {
4726
+ ...left,
4727
+ ...right
4728
+ };
4729
+ if (isRecord$1(left.properties) && isRecord$1(right.properties)) merged.properties = {
4730
+ ...left.properties,
4731
+ ...right.properties
4732
+ };
4733
+ if (Array.isArray(left.required) && Array.isArray(right.required)) merged.required = [.../* @__PURE__ */ new Set([...left.required, ...right.required])];
4734
+ return merged;
4735
+ }
4736
+ function toAntigravityToolSchema(schema) {
4737
+ if (!isRecord$1(schema)) return schema;
4738
+ const root = schema;
4739
+ function resolveReference(reference) {
4740
+ let target = root;
4741
+ if (reference !== "#" && !reference.startsWith("#/")) throw new LlmError(`Antigravity tool schema requires a local reference: ${reference}`, "PROVIDER_ERROR");
4742
+ const path = reference === "#" ? [] : reference.slice(2).split("/");
4743
+ for (const segment of path) {
4744
+ const key = segment.replace(/~1/g, "/").replace(/~0/g, "~");
4745
+ target = isRecord$1(target) && Object.hasOwn(target, key) ? target[key] : void 0;
4746
+ }
4747
+ if (!isRecord$1(target)) throw new LlmError(`Antigravity tool schema reference was not found: ${reference}`, "PROVIDER_ERROR");
4748
+ return target;
4749
+ }
4750
+ function convert(node, references) {
4751
+ if (!isRecord$1(node)) return {};
4752
+ let inherited = {};
4753
+ if (typeof node.$ref === "string") {
4754
+ if (references.has(node.$ref)) throw new LlmError(`Antigravity tool schema contains a recursive reference: ${node.$ref}`, "PROVIDER_ERROR");
4755
+ inherited = convert(resolveReference(node.$ref), /* @__PURE__ */ new Set([...references, node.$ref]));
4756
+ }
4757
+ if (Array.isArray(node.allOf)) for (const branch of node.allOf) inherited = mergeSchemas(inherited, convert(branch, references));
4758
+ const out = {};
4759
+ for (const [key, value] of Object.entries(node)) if (schemaFields.has(key)) out[key] = value;
4760
+ if (isRecord$1(node.properties)) out.properties = Object.fromEntries(Object.entries(node.properties).map(([name, child]) => [name, convert(child, references)]));
4761
+ if (isRecord$1(node.items)) out.items = convert(node.items, references);
4762
+ const alternatives = Array.isArray(node.anyOf) ? node.anyOf : node.oneOf;
4763
+ if (Array.isArray(alternatives)) out.anyOf = alternatives.map((child) => convert(child, references));
4764
+ if (Array.isArray(node.type)) {
4765
+ const types = node.type.filter((type) => typeof type === "string" && type !== "null");
4766
+ delete out.type;
4767
+ if (types.length === 1) out.type = types[0];
4768
+ else if (types.length > 1) out.anyOf = types.map((type) => ({ type }));
4769
+ if (node.type.includes("null")) out.nullable = true;
4770
+ }
4771
+ if (Object.hasOwn(node, "const") && !Object.hasOwn(node, "enum")) {
4772
+ if (node.const === null) out.nullable = true;
4773
+ else if ([
4774
+ "string",
4775
+ "number",
4776
+ "boolean"
4777
+ ].includes(typeof node.const)) out.enum = [String(node.const)];
4778
+ } else if (Array.isArray(node.enum)) out.enum = node.enum.map((value) => String(value));
4779
+ return mergeSchemas(inherited, out);
4780
+ }
4781
+ return convert(root, /* @__PURE__ */ new Set());
4782
+ }
4783
+ //#endregion
4699
4784
  //#region src/host/antigravity/mapper.ts
4700
4785
  let toolCallCounter = 0;
4701
4786
  function sanitizeText(text) {
@@ -4787,7 +4872,7 @@ function replayPart(part) {
4787
4872
  if (typeof copy.text === "string") copy.text = sanitizeText(copy.text);
4788
4873
  return copy;
4789
4874
  }
4790
- function assistantParts(message, model, runtimeModel, toolNames) {
4875
+ function assistantParts(message, model, runtimeModel, toolCalls) {
4791
4876
  const parts = [];
4792
4877
  if (!Array.isArray(message.content)) return parts;
4793
4878
  for (let index = 0; index < message.content.length; index++) {
@@ -4815,14 +4900,18 @@ function assistantParts(message, model, runtimeModel, toolNames) {
4815
4900
  } else if (block.type === "tool-call") {
4816
4901
  const toolId = String(block.id || "");
4817
4902
  const toolName = String(block.name || "");
4818
- toolNames.set(toolId, toolName);
4819
4903
  const originalCall = originalParts.find((part) => isRecord(part.functionCall));
4904
+ const wireId = asString((isRecord(originalCall?.functionCall) ? originalCall.functionCall : void 0)?.id) || (toolCallIdNeeded(model.id, runtimeModel) ? sanitizeToolCallId(toolId, toolName) : originalCall ? void 0 : toolId || void 0);
4905
+ toolCalls.set(toolId, {
4906
+ name: toolName,
4907
+ id: wireId
4908
+ });
4820
4909
  const effectiveSignature = thoughtSignature(originalCall) || thoughtSignature(replay) || thoughtSignature(block) || (originalCall ? void 0 : "skip_thought_signature_validator");
4821
4910
  parts.push({
4822
4911
  functionCall: {
4823
4912
  name: toolName,
4824
4913
  args: parseArguments(block.arguments),
4825
- ...toolCallIdNeeded(model.id, runtimeModel) ? { id: sanitizeToolCallId(toolId, toolName) } : {}
4914
+ ...wireId ? { id: wireId } : {}
4826
4915
  },
4827
4916
  ...effectiveSignature ? { thoughtSignature: effectiveSignature } : {}
4828
4917
  });
@@ -4831,14 +4920,16 @@ function assistantParts(message, model, runtimeModel, toolNames) {
4831
4920
  }
4832
4921
  return parts;
4833
4922
  }
4834
- function pushToolResult(contents, result, toolNames, model, runtimeModel) {
4923
+ function pushToolResult(contents, result, toolCalls, model, runtimeModel) {
4835
4924
  const toolCallId = String(result.toolCallId || "");
4836
- const toolName = toolNames.get(toolCallId) || "unknown";
4925
+ const call = toolCalls.get(toolCallId);
4926
+ const toolName = call?.name || "unknown";
4927
+ const wireId = call?.id || (toolCallIdNeeded(model.id, runtimeModel) ? sanitizeToolCallId(toolCallId, toolName) : void 0);
4837
4928
  const responseText = toolResultText(result.content) || (result.isError ? "Tool failed" : "");
4838
4929
  const part = { functionResponse: {
4839
4930
  name: toolName,
4840
4931
  response: result.isError ? { error: responseText } : { output: responseText },
4841
- ...toolCallIdNeeded(model.id, runtimeModel) ? { id: sanitizeToolCallId(toolCallId, toolName) } : {}
4932
+ ...wireId ? { id: wireId } : {}
4842
4933
  } };
4843
4934
  const last = contents[contents.length - 1];
4844
4935
  if (last?.role === GEMINI_ROLE.user && last.parts.some((entry) => "functionResponse" in entry)) last.parts.push(part);
@@ -4849,11 +4940,11 @@ function pushToolResult(contents, result, toolNames, model, runtimeModel) {
4849
4940
  }
4850
4941
  function convertMessages(options, model, runtimeModel) {
4851
4942
  const contents = [];
4852
- const toolNames = /* @__PURE__ */ new Map();
4943
+ const toolCalls = /* @__PURE__ */ new Map();
4853
4944
  for (const message of options.messages) {
4854
4945
  const role = message.role || (message.source?.kind === "model" ? "assistant" : "user");
4855
4946
  if (role === "assistant" || message.source?.kind === "model") {
4856
- const parts = assistantParts(message, model, runtimeModel, toolNames);
4947
+ const parts = assistantParts(message, model, runtimeModel, toolCalls);
4857
4948
  if (parts.length) contents.push({
4858
4949
  role: GEMINI_ROLE.model,
4859
4950
  parts
@@ -4873,25 +4964,12 @@ function convertMessages(options, model, runtimeModel) {
4873
4964
  role: GEMINI_ROLE.user,
4874
4965
  parts: userParts
4875
4966
  });
4876
- for (const b of content) if (isRecord(b) && b.type === "tool-result") pushToolResult(contents, b, toolNames, model, runtimeModel);
4967
+ for (const b of content) if (isRecord(b) && b.type === "tool-result") pushToolResult(contents, b, toolCalls, model, runtimeModel);
4877
4968
  }
4878
4969
  return contents;
4879
4970
  }
4880
4971
  function stripMetaSchema(schema) {
4881
- if (!schema || typeof schema !== "object" || Array.isArray(schema)) return schema;
4882
- const omit = /* @__PURE__ */ new Set([
4883
- "$schema",
4884
- "$id",
4885
- "$anchor",
4886
- "$dynamicAnchor",
4887
- "$vocabulary",
4888
- "$comment",
4889
- "$defs",
4890
- "definitions"
4891
- ]);
4892
- const out = {};
4893
- for (const [k, v] of Object.entries(schema)) if (!omit.has(k)) out[k] = stripMetaSchema(v);
4894
- return out;
4972
+ return toAntigravityToolSchema(schema);
4895
4973
  }
4896
4974
  function convertTools(tools) {
4897
4975
  if (!tools || tools.length === 0) return void 0;
@@ -4934,10 +5012,9 @@ function buildRequest(options, model, projectId, runtimeModel, effort) {
4934
5012
  const isGeminiAgent = runtimeModel === "gemini-pro-agent" || runtimeModel === "gemini-3-flash-agent";
4935
5013
  if (isTiered) {
4936
5014
  const selected = (effort || "medium").toLowerCase();
4937
- const isOff = selected === "off" || selected === "none";
4938
5015
  generationConfig.thinkingConfig = {
4939
- thinkingLevel: isOff ? "MINIMAL" : selected === "high" || selected === "xhigh" ? "HIGH" : selected === "medium" ? "MEDIUM" : "LOW",
4940
- includeThoughts: !isOff
5016
+ thinkingLevel: selected === "high" || selected === "xhigh" ? "HIGH" : selected === "medium" ? "MEDIUM" : "LOW",
5017
+ includeThoughts: !(selected === "off" || selected === "none")
4941
5018
  };
4942
5019
  } else if (isSuffixed || isGemini3 || isGeminiAgent) {
4943
5020
  const selected = (effort || "medium").toLowerCase();
@@ -5102,7 +5179,7 @@ function processStreamLine(line, state) {
5102
5179
  out.push(...closeCurrentBlock(state));
5103
5180
  const fc = part.functionCall;
5104
5181
  const toolName = asString(fc.name) || "";
5105
- const toolId = sanitizeToolCallId(asString(fc.id) || "", toolName);
5182
+ const toolId = asString(fc.id) || sanitizeToolCallId("", toolName);
5106
5183
  const argsText = JSON.stringify(isRecord(fc.args) ? fc.args : {});
5107
5184
  const index = state.blocks.length;
5108
5185
  const block = {
@@ -5285,12 +5362,12 @@ var AntigravityAdapter = class extends LlmAdapter {
5285
5362
  body,
5286
5363
  signal
5287
5364
  });
5288
- if (response.ok) break;
5365
+ if (response.ok || response.status === 400) break;
5289
5366
  if (response.status === 404) break;
5290
5367
  } catch (err) {
5291
5368
  if (signal.aborted) throw new LlmError("Antigravity request aborted", "ABORTED", { cause: err });
5292
5369
  }
5293
- if (response && response.ok) break;
5370
+ if (response && (response.ok || response.status === 400)) break;
5294
5371
  }
5295
5372
  if (!response || !response.ok) {
5296
5373
  const status = response?.status ?? 500;
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAGV,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAA;AAU7B,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,KAAK,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAM/G,qBAAa,kBAAmB,SAAQ,UAAU;IAE9C,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAHP,KAAK,sBAA4B,EACjC,aAAa,yBAA+B,EAC5C,WAAW,CAAC,EAAE,0BAA0B,YAAA,EACxC,OAAO,GAAE;QAAE,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;KAAO;IAK3D,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe;IAIzC,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC;IAkB/D,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAqCpG,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBA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W/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"}
@@ -0,0 +1,2 @@
1
+ export declare function toAntigravityToolSchema(schema: unknown): unknown;
2
+ //# sourceMappingURL=tool-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-schema.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/tool-schema.ts"],"names":[],"mappings":"AAyBA,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAiEhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eddyskywalker/dsh-chatgpt-subscription",
3
- "version": "0.2.4",
3
+ "version": "0.2.7",
4
4
  "description": "DSH provider plugin for Codex access through a ChatGPT subscription.",
5
5
  "author": {
6
6
  "name": "eddyskywalker",
@@ -125,7 +125,7 @@
125
125
  "build": "tsc -b && tsdown",
126
126
  "prepack": "npm run build",
127
127
  "test": "vitest run",
128
- "typecheck": "tsc -b --pretty false"
128
+ "typecheck": "tsc -b --pretty false && tsc -p test/tsconfig.json --pretty false"
129
129
  },
130
130
  "dependencies": {
131
131
  "mermaid": "^11.17.2",