Skip to content

v0.9.0 — passthrough args + shared env

Latest

Choose a tag to compare

@zhouxiaofu zhouxiaofu released this 10 Jul 14:00
· 1 commit to main since this release

cce v0.9.0 — 参数透传 + 共享 env · passthrough args + shared env

这次更新让启动参数更贴近 Claude Code 本身:常用会话参数可以直接使用,其他 Claude 参数统一放在 -- 后透传;同时新增根级共享 env,让所有服务商配置共用一层与模型无关的环境变量。

This release makes launch arguments feel native to Claude Code: common session flags work directly, while every other Claude argument goes after --. It also adds a root-level shared env layer for model-independent variables used by every provider config.

新增 / New

  • 标准参数透传 / standard passthrough:cce -- <claude args...> 会把 -- 后的 token 原样追加到 Claude 参数;-o/--only 可丢弃配置中的全局和按 env 默认参数。/ Put Claude arguments after --; add -o/--only to drop configured defaults.
  • 会话快捷参数 / session shortcuts:新增 -c/--continue、-r/--resume [id]、-n/--name <name>,无需再包进参数字符串。/ Common continue, resume, and session-name flags now work directly.
  • 根级共享 env / root shared env:配置根部新增 env,先作为所有命名 env 的公共基底,再由所选 env 逐 key 覆盖。/ A root env now acts as the shared base for every named env, with the selected env overriding per key.

env 合并语义 / env merge semantics

  • CCE 先合并根级 env 与所选 env;null 会规范化为 "",表示显式清空,而不是删除该 key。/ CCE first merges root and selected env values; null becomes "", an explicit clear rather than key deletion.
  • override / merge-cce 下,显式空值会覆盖 settings.json 的同名值。/ Under override / merge-cce, explicit empty values override matching settings.json values.
  • merge-claude 下,冲突仍由 settings.json 胜出。/ Under merge-claude, settings.json still wins conflicts.
  • cce show 会展示合并后的 env、空字符串以及值来自根级还是具体 env。/ cce show displays merged values, explicit empty strings, and their root/per-env source.

变化 / Changes

  • 旧的 -a / -A 已移除;分别改用 -- 和 -o --。命中旧参数时会显示迁移提示。/ Legacy -a / -A are removed; use -- and -o -- instead. Migration hints are printed for old invocations.
  • Bash、Zsh、Fish、PowerShell 补全及中英文帮助、README、使用文档已同步新参数和共享 env。/ Shell completions, bilingual help, READMEs, and usage docs now reflect the new arguments and shared env layer.

示例 / Examples

cce -e kimi -c
cce -e kimi -- --permission-mode default
cce -e kimi -o -- --resume SESSION_ID

升级 / Upgrade

cce update 或 / or npm i -g @xiaofuzhou/cce@latest

Full changelog: v0.8.0...v0.9.0