Repository navigation
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/--onlyto 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 rootenvnow 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;nullbecomes"", an explicit clear rather than key deletion. override/merge-cce下,显式空值会覆盖settings.json的同名值。/ Underoverride/merge-cce, explicit empty values override matchingsettings.jsonvalues.merge-claude下,冲突仍由settings.json胜出。/ Undermerge-claude,settings.jsonstill wins conflicts.cce show会展示合并后的 env、空字符串以及值来自根级还是具体 env。/cce showdisplays merged values, explicit empty strings, and their root/per-env source.
变化 / Changes
- 旧的
-a/-A已移除;分别改用--和-o --。命中旧参数时会显示迁移提示。/ Legacy-a/-Aare 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