Repository navigation
v0.6.0 — remote templates + cce template subcommand
cce v0.6.0 — 远端模板 + cce template / remote templates + cce template
模板不再随 npm 包发布,而是从 GitHub 实时获取并本地缓存——你总能拿到最新的,改模板也不用发版。新增 cce template 子命令集中管理来源、缓存与离线。
Templates are no longer bundled in the npm package — they're fetched live from GitHub (jsDelivr, with a GitHub raw fallback) and cached locally, so you always get the latest without a release. A new cce template subcommand manages the source, cache, and offline mode.
新增 / New
cce template(别名tpl)/ (aliastpl)cce template # 状态总览 / status: url, offline, cache count + age cce template ls # 列出模板(= 旧的 cce add --list)/ list templates cce template show <名> # 看某模板的 env + 待填项 / show a template's env + fields cce template refresh # 立刻重新下载(忽略 TTL/离线)/ re-download now cce template url <url> # 设内网镜像(设了就不走默认源)/ set a mirror URL cce template url --none # 清除,回到默认源 / clear, back to defaults cce template offline on # 离线:永不联网、只用缓存 / offline: cache only, no network
变化 / Changes
cce add --templates <path>→cce add --from <path|url>:一次性指定模板来源,自动判断本地路径还是 URL。cce add --list移除,改用cce template ls。/--templatesrenamed to--from(path or URL, auto-detected);--listremoved in favor ofcce template ls.- 默认模板从远端获取 + 24h 缓存:首次
cce add下载到~/.claude/cce/templates.remote.json,24 小时内复用。下载失败会打印链接和应保存的路径,方便在有网设备上手动下载。/ Default templates fetched remotely with a 24h cache; on failure cce prints the URL + the path to drop a manual download. - 内网 / 离线支持:
cce template url <镜像>指向内网镜像,或cce template offline on+ 手放缓存文件。/ Intranet via a mirror URL, or offline mode + a hand-placed cache file. - 统一缓存文件
cache.json:所有机器态(更新检查 + 模板元数据)合并到一个文件;旧的update-check.json弃用。/ All machine state unified intocache.json; oldupdate-check.jsondeprecated.
升级 / Upgrade
cce update 或 / or npm i -g @xiaofuzhou/cce@latest
Full changelog: v0.5.0...v0.6.0