@eddyskywalker/dsh-chatgpt-subscription 0.82.1 → 0.82.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/aws-quick-mcp.js +18 -13
  3. package/lib/client.js.map +1 -1
  4. package/lib/{entry-tool-result-pruner-DY67oa5d.js → entry-tool-result-pruner-E_xILd9Z.js} +169 -11
  5. package/lib/index.js +1741 -724
  6. package/lib/tool-result-pruner.js +1 -1
  7. package/lib/types/compat.d.ts +1 -1
  8. package/lib/types/entry-tool-result-pruner.d.ts +3 -1
  9. package/lib/types/entry-tool-result-pruner.d.ts.map +1 -1
  10. package/lib/types/host/antigravity-acp/adapter.d.ts.map +1 -1
  11. package/lib/types/host/aws-quick/adapter.d.ts +37 -0
  12. package/lib/types/host/aws-quick/adapter.d.ts.map +1 -1
  13. package/lib/types/host/aws-quick/execution-broker.d.ts.map +1 -1
  14. package/lib/types/host/aws-quick/tool-bridge.d.ts +28 -0
  15. package/lib/types/host/aws-quick/tool-bridge.d.ts.map +1 -1
  16. package/lib/types/host/cache-warmup/install.d.ts +8 -0
  17. package/lib/types/host/cache-warmup/install.d.ts.map +1 -1
  18. package/lib/types/host/cache-warmup/result-tool.d.ts +2 -0
  19. package/lib/types/host/cache-warmup/result-tool.d.ts.map +1 -1
  20. package/lib/types/host/deepseek-v41-flash/discipline.d.ts +22 -0
  21. package/lib/types/host/deepseek-v41-flash/discipline.d.ts.map +1 -0
  22. package/lib/types/host/deepseek-v41-flash/index.d.ts +70 -0
  23. package/lib/types/host/deepseek-v41-flash/index.d.ts.map +1 -0
  24. package/lib/types/host/deepseek-v41-flash/match.d.ts +54 -0
  25. package/lib/types/host/deepseek-v41-flash/match.d.ts.map +1 -0
  26. package/lib/types/host/deepseek-v41-flash/observation-tagger.d.ts +36 -0
  27. package/lib/types/host/deepseek-v41-flash/observation-tagger.d.ts.map +1 -0
  28. package/lib/types/host/deepseek-v41-flash/state-anchor.d.ts +56 -0
  29. package/lib/types/host/deepseek-v41-flash/state-anchor.d.ts.map +1 -0
  30. package/lib/types/host/ptc-sdk-cache-guard.d.ts +5 -0
  31. package/lib/types/host/ptc-sdk-cache-guard.d.ts.map +1 -1
  32. package/lib/types/host/reasoning-collapse-guard/index.d.ts +4 -0
  33. package/lib/types/host/reasoning-collapse-guard/index.d.ts.map +1 -1
  34. package/lib/types/host/timeline-cache-guard.d.ts +5 -0
  35. package/lib/types/host/timeline-cache-guard.d.ts.map +1 -1
  36. package/lib/types/host/tool-result-pruner-guard.d.ts +5 -0
  37. package/lib/types/host/tool-result-pruner-guard.d.ts.map +1 -1
  38. package/lib/types/index.d.ts +11 -0
  39. package/lib/types/index.d.ts.map +1 -1
  40. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.82.2 - 2026-11-23
6
+
7
+ - **[aws-quick] 修复 Windows 桌面端 MCP stdio 注册了 Electron 可执行文件导致初始化失败**:Quick 连接器改用 `resolveQuickNode()` 启动——纯 Node 宿主沿用 `process.execPath`,Electron 桌面宿主改为使用随附的 `runtime/primary-runtime/dependencies/node`(再退回 PATH 上的 node),都找不到时报清晰错误;不再用 `DeepSeek Harness.exe` 启动 stdio 子进程污染 JSON-RPC 握手。新增 Windows 回归测试 (#126)。
8
+
9
+ - **[aws-quick] 按 Quick 64 KB 单条请求上限预算外发消息**:新增 `budgetQuickRequest()`,发送前按 UTF-8 字节裁剪——保留最新用户输入与工具/客户端授权策略,把超大 system 上下文截断到剩余空间并加标记,会话过大时保留 transcript 尾部;无法压缩时抛出不可重试的 `INVALID_REQUEST`。Quick 的 64 KB 体积拒绝也归为不可重试,不再当作 `SERVER` 反复重试。新增回归测试 (#127)。
10
+
11
+ - **[antigravity-acp] 修复上下文用量虚报**:`readUsage()` 不再把 ACP `session/prompt` 里整段会话累计的 `cachedReadTokens` 当作本轮 `cacheReadTokens` 上报,避免上下文表盘把累计缓存当成当前占用(实测 2 轮即报 94% / 983K,真实约 65K)。`inputTokens` 仍按次保留,真实占用继续走 `usage_update` / `lastOccupancy`。新增回归测试 (#125)。
12
+
5
13
  ## 0.82.1 - 2026-11-23
6
14
 
7
15
  - **[aws-quick] 修复相同参数的并发工具调用串线**:Quick 同时发起两次参数完全相同的工具调用时,MCP 请求不再全部认领到第一个 WSS 调用上;每个待处理调用最多被认领一次,两个结果分别回到各自的调用。新增并发同参调用回归测试。
@@ -20,22 +20,27 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
20
20
  }
21
21
  })) };
22
22
  });
23
+ let forwarding = Promise.resolve();
23
24
  server.setRequestHandler(CallToolRequestSchema, async (request) => {
24
25
  try {
25
- const execution = JSON.parse(await fs.readFile(statePath, "utf8")).execution;
26
- if (!execution?.url || !execution.token) throw new Error("The DSH execution bridge is not ready.");
27
- const response = await fetch(execution.url, {
28
- method: "POST",
29
- headers: {
30
- Authorization: "Bearer " + execution.token,
31
- "Content-Type": "application/json"
32
- },
33
- body: JSON.stringify({
34
- name: request.params.name,
35
- arguments: request.params.arguments ?? {}
36
- }),
37
- signal: AbortSignal.timeout(31e4)
26
+ const accepted = forwarding.then(async () => {
27
+ const execution = JSON.parse(await fs.readFile(statePath, "utf8")).execution;
28
+ if (!execution?.url || !execution.token) throw new Error("The DSH execution bridge is not ready.");
29
+ return fetch(execution.url, {
30
+ method: "POST",
31
+ headers: {
32
+ Authorization: "Bearer " + execution.token,
33
+ "Content-Type": "application/json"
34
+ },
35
+ body: JSON.stringify({
36
+ name: request.params.name,
37
+ arguments: request.params.arguments ?? {}
38
+ }),
39
+ signal: AbortSignal.timeout(31e4)
40
+ });
38
41
  });
42
+ forwarding = accepted.then(() => void 0, () => void 0);
43
+ const response = await accepted;
39
44
  const result = await response.json();
40
45
  if (!response.ok || !Array.isArray(result.content)) throw new Error("The DSH execution bridge returned an invalid result.");
41
46
  return result;