@eddyskywalker/dsh-chatgpt-subscription 0.44.0 → 0.45.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.
- package/CHANGELOG.md +13 -0
- package/lib/client.js +13 -0
- package/lib/client.js.map +1 -1
- package/lib/index.js +2100 -10
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/cache-warmup/budget.d.ts +64 -0
- package/lib/types/host/cache-warmup/budget.d.ts.map +1 -0
- package/lib/types/host/cache-warmup/contracts.d.ts +267 -0
- package/lib/types/host/cache-warmup/contracts.d.ts.map +1 -0
- package/lib/types/host/cache-warmup/index.d.ts +21 -0
- package/lib/types/host/cache-warmup/index.d.ts.map +1 -0
- package/lib/types/host/cache-warmup/install.d.ts +130 -0
- package/lib/types/host/cache-warmup/install.d.ts.map +1 -0
- package/lib/types/host/cache-warmup/logging.d.ts +120 -0
- package/lib/types/host/cache-warmup/logging.d.ts.map +1 -0
- package/lib/types/host/cache-warmup/projection.d.ts +29 -0
- package/lib/types/host/cache-warmup/projection.d.ts.map +1 -0
- package/lib/types/host/cache-warmup/result-tool.d.ts +87 -0
- package/lib/types/host/cache-warmup/result-tool.d.ts.map +1 -0
- package/lib/types/host/cache-warmup/settings.d.ts +73 -0
- package/lib/types/host/cache-warmup/settings.d.ts.map +1 -0
- package/lib/types/host/cache-warmup/store.d.ts +108 -0
- package/lib/types/host/cache-warmup/store.d.ts.map +1 -0
- package/lib/types/host/cache-warmup/usage.d.ts +86 -0
- package/lib/types/host/cache-warmup/usage.d.ts.map +1 -0
- package/lib/types/host/kimi-code/adapter.d.ts.map +1 -1
- package/lib/types/index.d.ts +11 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/model-catalog.d.ts +12 -1
- package/lib/types/shared/model-catalog.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.45.0 - 2026-10-28
|
|
6
|
+
|
|
7
|
+
- **[kimi-code] 新增 `cache-warmup` 子包:稳定前缀下快速预热、保守结果投影与原文引用**
|
|
8
|
+
- **实现**:新增 `src/host/cache-warmup/`,提供内容寻址原文存储、UTF-8/结构化分页、完整失败集与日志投影、预热预算、真实 Kimi 用量观测、`cache_warmup_result` 精确补读、设置开关及脱敏结构化日志;`cacheWarmup` 默认开启且只影响新结果。
|
|
9
|
+
- **保护**:不改 promptCacheKey、replay、动态工具 in-history 或漂移保护;旧历史永不回写,原始 `value` 保留,`stable`/`first-request` 不再被误判为漂移,真实 drift 仍立即收回预算。
|
|
10
|
+
- **准确性**:源码、契约、完整或被截断的 JSON、混合证据与未知大文本保持原样;只有可完整提取的日志/结构化结果生成 preview,完整失败集装不下时回退原文。
|
|
11
|
+
- **验证**:六份相关测试 104 passed / 1 skipped;全量 Vitest 309 files / 5093 tests passed(9 skipped);typecheck、build、pack dry-run、npm ci dry-run 全过。真实 110 条工具结果重放仅 1 条测试日志被投影。
|
|
12
|
+
- **真实 Kimi**:k3.1-pro 第二次请求命中率 97.66%(达到 97% 目标,但仅一次达标,未满足连续两次),第三次 95.52%,控制器保持保守预算;三次额度内未证明进入稳态,详见 `docs/cache-warmup.md`。
|
|
13
|
+
|
|
14
|
+
- **[codex-chatgpt] 随包兜底目录补齐 GPT 6.1 Terra (#76)**
|
|
15
|
+
- 新增 `gpt-6.1-terra` / `6.1 Terra` 并默认可见,沿用 GPT-6 的上下文、输出预留、图像输入和推理能力;实时 `/backend-api/codex/models` 发现链路保持不变。
|
|
16
|
+
- 补齐适配器目录、GPT-6 能力与设置页渲染回归覆盖;PR #77。
|
|
17
|
+
|
|
5
18
|
## 0.44.0 - 2026-10-27
|
|
6
19
|
|
|
7
20
|
- **[packaging] 「进展更新」拆成独立组件:同包第二行,可在插件管理页单独关闭**
|
package/lib/client.js
CHANGED
|
@@ -743,6 +743,18 @@ window.__ModuleLoader__.load({
|
|
|
743
743
|
supportsOutputVerbosity: true,
|
|
744
744
|
defaultOutputVerbosity: "low"
|
|
745
745
|
},
|
|
746
|
+
{
|
|
747
|
+
id: "gpt-6.1-terra",
|
|
748
|
+
name: "6.1 Terra",
|
|
749
|
+
contextWindow: GPT_6_DEFAULT_CONTEXT_WINDOW,
|
|
750
|
+
inputModalities: ["text", "image"],
|
|
751
|
+
defaultReasoningEffort: "medium",
|
|
752
|
+
reasoningProfile: "gpt-6",
|
|
753
|
+
supportsReasoningSummary: true,
|
|
754
|
+
maxTokens: GPT_6_MAX_TOKENS,
|
|
755
|
+
supportsOutputVerbosity: true,
|
|
756
|
+
defaultOutputVerbosity: "low"
|
|
757
|
+
},
|
|
746
758
|
{
|
|
747
759
|
id: "gpt-6-sol",
|
|
748
760
|
name: "6 Sol",
|
|
@@ -834,6 +846,7 @@ window.__ModuleLoader__.load({
|
|
|
834
846
|
const DEFAULT_VISIBLE_CODEX_MODEL_IDS = [
|
|
835
847
|
"gpt-6-astra",
|
|
836
848
|
"gpt-6.1-sol",
|
|
849
|
+
"gpt-6.1-terra",
|
|
837
850
|
"gpt-6-sol",
|
|
838
851
|
"gpt-6-luna",
|
|
839
852
|
"gpt-5.6-sol",
|