@eddyskywalker/dsh-chatgpt-subscription 0.81.2 → 0.82.0

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 (36) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/client.js +735 -377
  3. package/lib/client.js.map +1 -1
  4. package/lib/index.js +720 -54
  5. package/lib/types/client/CodexComposerQuota.d.ts.map +1 -1
  6. package/lib/types/client/common/ComposerQuotaBadge.d.ts +25 -4
  7. package/lib/types/client/common/ComposerQuotaBadge.d.ts.map +1 -1
  8. package/lib/types/client/compact-after-turn/CompactAfterTurnToggle.d.ts +24 -0
  9. package/lib/types/client/compact-after-turn/CompactAfterTurnToggle.d.ts.map +1 -0
  10. package/lib/types/client/compact-after-turn/locales.d.ts +34 -0
  11. package/lib/types/client/compact-after-turn/locales.d.ts.map +1 -0
  12. package/lib/types/client/compact-after-turn/styles.d.ts +2 -0
  13. package/lib/types/client/compact-after-turn/styles.d.ts.map +1 -0
  14. package/lib/types/client/index.d.ts +2 -0
  15. package/lib/types/client/index.d.ts.map +1 -1
  16. package/lib/types/client/kimi-code/styles.d.ts.map +1 -1
  17. package/lib/types/client/locales-ru/compact-after-turn.d.ts +3 -0
  18. package/lib/types/client/locales-ru/compact-after-turn.d.ts.map +1 -0
  19. package/lib/types/client/locales-ru/index.d.ts.map +1 -1
  20. package/lib/types/client/opendesign/styles.d.ts.map +1 -1
  21. package/lib/types/client/styles.d.ts.map +1 -1
  22. package/lib/types/compat.d.ts +1 -1
  23. package/lib/types/host/aws-quick/adapter.d.ts +5 -0
  24. package/lib/types/host/aws-quick/adapter.d.ts.map +1 -1
  25. package/lib/types/host/aws-quick/client.d.ts +9 -0
  26. package/lib/types/host/aws-quick/client.d.ts.map +1 -1
  27. package/lib/types/host/aws-quick/markup.d.ts +42 -0
  28. package/lib/types/host/aws-quick/markup.d.ts.map +1 -0
  29. package/lib/types/host/aws-quick/protocol.d.ts +20 -1
  30. package/lib/types/host/aws-quick/protocol.d.ts.map +1 -1
  31. package/lib/types/host/compact-after-turn/index.d.ts +126 -0
  32. package/lib/types/host/compact-after-turn/index.d.ts.map +1 -0
  33. package/lib/types/index.d.ts.map +1 -1
  34. package/lib/types/shared/compact-after-turn.d.ts +45 -0
  35. package/lib/types/shared/compact-after-turn.d.ts.map +1 -0
  36. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.82.0 - 2026-11-22
6
+
7
+ - **[compact-after-turn] 模型菜单新增「本轮结束后压缩」一次性开关**:开启后,这一轮对话结束、agent 空闲时,通过 `compaction.compactNow` 压缩一次上下文,压缩结束后开关自动关闭。手动停止的那一轮不触发,开关保留到下一轮结束;压缩进行中开关锁定,其余时候可随时开关。需要 DSH 0.2.2-rc.2 及以上(提供 `conversation.input.model.options` 插槽),更旧的版本不显示该开关。
8
+
9
+ - **[client] 重新设计输入框额度胶囊**:所有线路共用一个 `QuotaCapsule` 组件,Codex 不再单独维护一份样式。胶囊最左边显示健康度:已知剩余比例的线路(Codex、OpenDesign)显示迷你环形进度,其余线路显示带光晕的状态点,按绿 / 琥珀 / 红区分;告急时胶囊带浅红底色。刷新时保留原数字、只让左侧指示闪烁,不再换成「…」导致宽度跳动;可点击刷新的胶囊支持键盘聚焦,按 Enter / Space 刷新。
10
+
11
+ - **[aws-quick] 转换 Quick 提问卡片、计划上下文与工具授权**:流式识别 Quick `<decision>` / `<decisions>` 标记并投影为 DSH `ask_user_question`,回答以 Quick 原生 `<decision_response>` 回到同一线程;无提问工具时降级为编号选项文本;剥离 `<sources>` 内部引用。Quick `permission_request` / `approval_requested` 不再无人应答:DSH 目录内工具按官方 `tool_approval`(ALLOW_ONCE)放行、实际执行仍走 DSH 权限,目录外工具回 `permission_denied`。工具续传时一并送达 DSH 在工具后追加的计划模式提示等上下文,客户端提示改为引导使用 DSH 提问与计划工具。
12
+
13
+ ## 0.81.3 - 2026-11-22
14
+
15
+ - **[aws-quick] 降低 Quick 安全机制误判**:DSH 系统/开发者上下文不再混入用户消息,而是通过官方 `custom_prompt` 传递;工具路由改为中性、权限兼容的表述,不修改 Quick 的 guardrail。
16
+
17
+ - **[aws-quick] 修复 Smart high 工具后长思考被误判超时**:Quick 流式空闲预算从 120 秒延长至 10 分钟;WebSocket 传输、连接关闭、上游错误和不可读事件改为明确分类,并由现有限额重试策略处理可恢复故障,不再统一落入 `UNKNOWN`。
18
+
5
19
  ## 0.81.2 - 2026-11-22
6
20
 
7
21
  - **[aws-quick] 修复慢速 CI 的 MCP 测试竞态**:工具桥测试等待真实 WSS/MCP 匹配条件,不再依赖固定 50ms;不改变生产执行协议。