mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 10:57:03 +08:00
fix(claude-code): 升级伪装的 Claude Code 版本到 2.1.284
上游按模型校验 Claude Code 最低版本,claude-opus-5-5 要求 >= 2.1.280, 而 profile 里写死的 2.1.161 会被拒绝(claude_code_version_too_old, 400), 且 Aether 会统一改写 UA,真实 Claude Code 客户端也会受影响。 将 cli_version 升级为 2.1.284,并同步 stainless 包版本 (0.112.1) 与 node 运行时版本 (v26.3.0),保持指纹一致;相关测试断言同步更新。
This commit is contained in:
@@ -252,11 +252,11 @@ mod tests {
|
||||
assert_eq!(built.get("x-app").map(String::as_str), Some("cli"));
|
||||
assert_eq!(
|
||||
built.get("x-stainless-package-version").map(String::as_str),
|
||||
Some("0.94.0")
|
||||
Some("0.112.1")
|
||||
);
|
||||
assert_eq!(
|
||||
built.get("x-stainless-runtime-version").map(String::as_str),
|
||||
Some("v24.3.0")
|
||||
Some("v26.3.0")
|
||||
);
|
||||
assert_eq!(
|
||||
built.get("x-stainless-timeout").map(String::as_str),
|
||||
@@ -264,7 +264,7 @@ mod tests {
|
||||
);
|
||||
assert_eq!(
|
||||
built.get("user-agent").map(String::as_str),
|
||||
Some("claude-cli/2.1.161 (external, cli)")
|
||||
Some("claude-cli/2.1.284 (external, cli)")
|
||||
);
|
||||
assert_eq!(
|
||||
built.get("authorization").map(String::as_str),
|
||||
@@ -367,7 +367,7 @@ mod tests {
|
||||
|
||||
assert_eq!(
|
||||
body["system"][0]["text"],
|
||||
"x-anthropic-billing-header: cc_version=2.1.161.abc; cc_entrypoint=cli;"
|
||||
"x-anthropic-billing-header: cc_version=2.1.284.abc; cc_entrypoint=cli;"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user