@wacry/codeks-bridge 0.0.24 → 0.0.25

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.
@@ -6,9 +6,7 @@
6
6
  "path": "codex-rs/models-manager/models.json",
7
7
  "model": "gpt-6-sol"
8
8
  },
9
- "adjustments": [
10
- "按用户选择将 shell_type 从 shell_command 统一为 unified_exec;当前 codeks 将旧名称解析为相同类型,不改变工具行为。"
11
- ],
9
+ "adjustments": [],
12
10
  "adapter": "gpt-responses",
13
11
  "model": {
14
12
  "slug": "gpt-6-sol",
@@ -74,7 +72,7 @@
74
72
  "description": "Maximum reasoning with automatic task delegation"
75
73
  }
76
74
  ],
77
- "shell_type": "unified_exec",
75
+ "shell_type": "shell_command",
78
76
  "visibility": "list",
79
77
  "minimal_client_version": "0.155.0",
80
78
  "supported_in_api": true,
@@ -6,9 +6,7 @@
6
6
  "path": "codex-rs/models-manager/models.json",
7
7
  "model": "gpt-6.1-sol"
8
8
  },
9
- "adjustments": [
10
- "按用户选择将 shell_type 从 shell_command 统一为 unified_exec;当前 codeks 将旧名称解析为相同类型,不改变工具行为。"
11
- ],
9
+ "adjustments": [],
12
10
  "adapter": "gpt-responses",
13
11
  "model": {
14
12
  "slug": "gpt-6.1-sol",
@@ -74,7 +72,7 @@
74
72
  "description": "Maximum reasoning with automatic task delegation"
75
73
  }
76
74
  ],
77
- "shell_type": "unified_exec",
75
+ "shell_type": "shell_command",
78
76
  "visibility": "list",
79
77
  "minimal_client_version": "0.153.0",
80
78
  "supported_in_api": true,
@@ -6,10 +6,7 @@
6
6
  "path": "codex-rs/models-manager/models.json",
7
7
  "model": "gpt-6.1-terra"
8
8
  },
9
- "adjustments": [
10
- "按用户选择将默认 context_window 从上游的 500000 调整为 272000;max_context_window 保留 872000,其他窗口与压缩默认值跟随源码条目。",
11
- "按用户选择将 shell_type 从 shell_command 统一为 unified_exec;当前 codeks 将旧名称解析为相同类型,不改变工具行为。"
12
- ],
9
+ "adjustments": [],
13
10
  "adapter": "gpt-responses",
14
11
  "model": {
15
12
  "slug": "gpt-6.1-terra",
@@ -41,7 +38,7 @@
41
38
  "requires_sandboxed_review": false,
42
39
  "auto_review_model_override": null,
43
40
  "model_specialty": null,
44
- "context_window": 272000,
41
+ "context_window": 500000,
45
42
  "max_context_window": 872000,
46
43
  "auto_compact_token_limit": null,
47
44
  "comp_hash": "3000",
@@ -75,7 +72,7 @@
75
72
  "effort": "ultra"
76
73
  }
77
74
  ],
78
- "shell_type": "unified_exec",
75
+ "shell_type": "shell_command",
79
76
  "visibility": "list",
80
77
  "minimal_client_version": "0.153.0",
81
78
  "supported_in_api": true,
@@ -6,9 +6,7 @@
6
6
  "path": "codex-rs/models-manager/models.json",
7
7
  "model": "gpt-daybreak-blue-latest"
8
8
  },
9
- "adjustments": [
10
- "按用户选择将 shell_type 从 shell_command 统一为 unified_exec;当前 codeks 将旧名称解析为相同类型,不改变工具行为。"
11
- ],
9
+ "adjustments": [],
12
10
  "adapter": "gpt-responses",
13
11
  "model": {
14
12
  "slug": "gpt-daybreak-blue-latest",
@@ -71,7 +69,7 @@
71
69
  "description": "Maximum reasoning with automatic task delegation"
72
70
  }
73
71
  ],
74
- "shell_type": "unified_exec",
72
+ "shell_type": "shell_command",
75
73
  "visibility": "hide",
76
74
  "minimal_client_version": "0.142.2",
77
75
  "supported_in_api": true,
@@ -6,9 +6,7 @@
6
6
  "path": "codex-rs/models-manager/models.json",
7
7
  "model": "gpt-daybreak-red-latest"
8
8
  },
9
- "adjustments": [
10
- "按用户选择将 shell_type 从 shell_command 统一为 unified_exec;当前 codeks 将旧名称解析为相同类型,不改变工具行为。"
11
- ],
9
+ "adjustments": [],
12
10
  "adapter": "gpt-responses",
13
11
  "model": {
14
12
  "slug": "gpt-daybreak-red-latest",
@@ -71,7 +69,7 @@
71
69
  "description": "Maximum reasoning with automatic task delegation"
72
70
  }
73
71
  ],
74
- "shell_type": "unified_exec",
72
+ "shell_type": "shell_command",
75
73
  "visibility": "hide",
76
74
  "minimal_client_version": "0.142.2",
77
75
  "supported_in_api": true,
@@ -20,7 +20,7 @@
20
20
  }
21
21
  ```
22
22
 
23
- 目录的默认及最大上下文窗口为 `1000000`。输出预算使用上游默认值;请求中的 `max_output_tokens` 或模型配置可指定预算,请求值优先,并转为 `max_tokens`;原生 options 仍可覆盖。上游的输出预算包含 thinking 与可见输出;达到上限返回失败,不执行不完整工具调用。`base_url` 可包含 `/v1` 等前缀。[官方参数范围](https://api-docs.deepseek.com/api/create-chat-completion/)
23
+ 目录的默认上下文窗口为 `400000`,作为与其他第三方条目一致的工作预算;最大上下文窗口为 `1000000`。输出预算使用上游默认值;请求中的 `max_output_tokens` 或模型配置可指定预算,请求值优先,并转为 `max_tokens`;原生 options 仍可覆盖。上游的输出预算包含 thinking 与可见输出;达到上限返回失败,不执行不完整工具调用。`base_url` 可包含 `/v1` 等前缀。[官方参数范围](https://api-docs.deepseek.com/api/create-chat-completion/)
24
24
 
25
25
  ## Reasoning 与参数
26
26
 
@@ -33,7 +33,7 @@
33
33
 
34
34
  `reasoning.summary` 为 `auto`、`concise` 或 `detailed` 时请求 `includeThoughts: true`,将上游标记 `thought: true` 的文本作为可见摘要。缺省或 `none` 不展示摘要;这不等于关闭 thinking,也不应丢失签名。目录沿用 Sol 的摘要默认值 `none`,可在 codeks 中设置 `model_reasoning_summary = "auto"`。
35
35
 
36
- 默认工作窗口为 `272000`;两个条目的最大窗口为 `1048576`。Flash 的官方限制是输入 token 上限,Argon 则是输入与输出共用的窗口,不能把后者理解成可以在 1M 输入之后再输出 1M。官方标准输出上限为 `65536` token;Argon 的更长输出需要另一种后台 long decode 路径。本 adapter 不设置额外默认输出预算或压缩阈值。显式预算从请求或模型配置取得,再接受原生 options 覆盖。[Flash 规格](https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash)、[Argon 规格](https://ai.google.dev/gemini-api/docs/models/gemini-4-argon)
36
+ 默认工作窗口为 `400000`,作为与其他第三方条目一致的工作预算;两个条目的最大窗口为 `1048576`。Flash 的官方限制是输入 token 上限,Argon 则是输入与输出共用的窗口,不能把后者理解成可以在 1M 输入之后再输出 1M。官方标准输出上限为 `65536` token;Argon 的更长输出需要另一种后台 long decode 路径。本 adapter 不设置额外默认输出预算或压缩阈值。显式预算从请求或模型配置取得,再接受原生 options 覆盖。[Flash 规格](https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash)、[Argon 规格](https://ai.google.dev/gemini-api/docs/models/gemini-4-argon)
37
37
 
38
38
  ## 消息、工具与图片
39
39
 
package/docs/config.md CHANGED
@@ -168,7 +168,7 @@ token 临近过期时自动续期并写回原文件;HTTP 401 可触发一次
168
168
  }
169
169
  ```
170
170
 
171
- 不设置窗口时,原条目的两个窗口字段各自保留。多数 GPT 条目为 `context_window: 272000`、`max_context_window: 872000`;GPT-5.5 的两个字段均为 `272000`,Daybreak Red 均为 `372000`。Opus 5.5、Sonnet 5.5 和 Haiku 5.5 为 `context_window: 400000`、`max_context_window: 1000000`;DeepSeek Flash 的两个字段均为 `1000000`。压缩阈值沿用模板的 `auto_compact_token_limit: null`,由客户端按窗口计算。Claude Messages 必须提供 `max_tokens`,对应目录外层默认预算为 `128000`;GPT 和 DeepSeek 使用请求、模型配置或上游提供的默认值。原生 options 也可调整预算,实际限制由部署端点裁决。
171
+ 不设置窗口时,原条目的两个窗口字段各自保留。多数 GPT 条目为 `context_window: 272000`、`max_context_window: 872000`;GPT-6.1 Terra 为 `500000` / `872000`,GPT-5.5 的两个字段均为 `272000`,Daybreak Red 均为 `372000`。Claude、DeepSeek 和 Gemini 默认 `context_window: 400000`,作为统一工作预算;`max_context_window` 保留各自能力上限,Claude 和 DeepSeek 为 `1000000`,Gemini 为 `1048576`。压缩阈值沿用模板的 `auto_compact_token_limit: null`,由客户端按窗口计算。Claude Messages 必须提供 `max_tokens`,对应目录外层默认预算为 `128000`;GPT、DeepSeek 和 Gemini 使用请求、模型配置或上游提供的默认值。原生 options 也可调整预算,实际限制由部署端点裁决。
172
172
 
173
173
  请求先由 adapter 转换,再浅层合并 `upstream.options`、`model.options`;后者优先,嵌套对象整体替换。例如模型 `options.output_config` 会替换推导值和上游同名对象。由此可以显式调整 thinking budget、原生 effort 或端点专有字段。
174
174
 
@@ -217,7 +217,7 @@ token 临近过期时自动续期并写回原文件;HTTP 401 可触发一次
217
217
  }
218
218
  ```
219
219
 
220
- `effort_map` 的键是 codeks 可选档位,值是发给上游的原生值。提供映射时完整替换目录条目的默认映射;`default_effort` 必须出现在映射中。未指定默认档位时,保留映射中仍存在的条目默认值,否则选映射第一项。Sonnet 的 `between_tools` 模式可通过显式 options 选择,含义和配置见 [Messages](backends-anthropic.md)。
220
+ `effort_map` 的键是 codeks 可选档位,值是发给上游的原生值。第三方目录的档位说明参考 GPT-6.1 Sol 同名档位对速度、推理深度和自动分工的描述,与原生参数映射分别维护。提供映射时完整替换目录条目的默认映射;`default_effort` 必须出现在映射中。未指定默认档位时,保留映射中仍存在的条目默认值,否则选映射第一项。Sonnet 的 `between_tools` 模式可通过显式 options 选择,含义和配置见 [Messages](backends-anthropic.md)。
221
221
 
222
222
  请求没有 effort 时使用配置默认值;有映射则转换,未列出的显式 effort 直接透传,交给上游判断。catalog 与实际请求使用同一份配置;通过原生 `options` 再覆盖 thinking/effort 时,应同时调整这里的展示设置。
223
223
 
package/docs/design.md CHANGED
@@ -32,7 +32,9 @@ Lite 仍调用 `/responses` 并返回 Responses SSE。完整工具 schema 位于
32
32
 
33
33
  ## 有限目录与显式精调
34
34
 
35
- 项目只支持明确列出的模型。`catalog/` 保存每个模型的完整条目及来源;GPT 分别使用 Codex 源码中各自的版本,保留提示词、默认 effort、摘要、窗口和工具元数据的差异,所有 GPT 统一使用 `shell_type: "unified_exec"`;旧 shell 名称的等价转换、GPT-5.5 的 Lite 调整及用户指定的窗口调整均记录在各条目的 `adjustments`。源码尚未收录的 GPT-Reserve 使用取得并审阅的订阅目录快照,记录端点、取得日期与客户端版本;具体来源与公开信息处理见[模型目录](../catalog/README.md)。Claude、DeepSeek 与 Gemini 从 GPT-6.1 Sol 模板开始,只替换底层模型身份(如 `You are Codex, an agent based on Claude.`),保留 Codex 代理角色及 `As Codex` 人格说明;参数和确有差异的能力逐项精调,记录在条目的 `adjustments`。摘要默认值继续使用模板的 `none`,是否展示由客户端配置决定,不为第三方模型强制打开。
35
+ 项目只支持明确列出的模型。`catalog/` 保存每个模型的完整条目及来源;GPT 分别使用 Codex 源码中各自的版本,优先保留提示词、默认 effort、摘要、窗口和工具元数据的差异,包括源码的 `shell_type: "shell_command"`。GPT-5.5 的 Lite 调整、审查专用及订阅条目的明确例外记录在各自的 `adjustments`。源码尚未收录的 GPT-Reserve 使用取得并审阅的订阅目录快照,记录端点、取得日期与客户端版本;具体来源与公开信息处理见[模型目录](../catalog/README.md)。
36
+
37
+ Claude、DeepSeek 与 Gemini 从 GPT-6.1 Sol 模板开始,`shell_type` 沿用 `shell_command`,默认窗口统一为 `400000` 的工作预算,最大窗口保留各自能力上限。提示词只替换底层模型身份(如 `You are Codex, an agent based on Claude model.`),保留 Codex 代理角色及 `As Codex` 人格说明。reasoning 档位说明参考源码 Sol 同名档位的含义,原生 effort 映射独立维护;参数和确有差异的能力逐项精调,记录在条目的 `adjustments`。摘要默认值继续使用模板的 `none`,是否展示由客户端配置决定,不为第三方模型强制打开。
36
38
 
37
39
  导入脚本只生成独立候选文件,供人或 Agent 对比审阅。运行时使用已提交的完整条目,不自动导入、不猜测未知模型,也不从 ChatGPT 订阅获取目录。这样更新仍有工具辅助,同时提示词和能力变化可审查、可追踪。来源及更新步骤见[模型目录](../catalog/README.md)。
38
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wacry/codeks-bridge",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Configurable local Responses API bridge for codeks with GPT, Claude Messages, DeepSeek Chat, and native Gemini adapters.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "David Zhang",