teamix-evo 0.19.2 → 0.20.1

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.
package/README.md CHANGED
@@ -20,7 +20,7 @@ packages/cli/
20
20
  │ ├── commands/
21
21
  │ │ ├── tokens/ # tokens init <variant> / list / list-variants
22
22
  │ │ │ │ # / update(stub) / uninstall
23
- │ │ ├── skills/ # source-mirror 模型见 ADR 0013
23
+ │ │ ├── skills/ # npm-source direct-mirror 模型见 ADR 0048
24
24
  │ │ │ │ # add / list / update / sync / doctor / uninstall
25
25
  │ │ └── ui/ # init / add / list
26
26
  │ ├── core/ # 业务编排层(programmatic API,subpath 导出)
@@ -35,6 +35,7 @@ packages/cli/
35
35
  │ │ ├── IdeAdapter.ts # IDE 适配接口
36
36
  │ │ ├── QoderAdapter.ts # Qoder 适配
37
37
  │ │ ├── ClaudeAdapter.ts # Claude Code 适配
38
+ │ │ ├── CodexAdapter.ts # Codex / ChatGPT 适配(.agents/skills)
38
39
  │ │ └── index.ts # detectIde / ALL_IDE_KINDS
39
40
  │ ├── utils/
40
41
  │ │ ├── fs.ts # 原子写入、备份
@@ -112,7 +113,7 @@ export const myCommand = new Command('my-cmd')
112
113
 
113
114
  ### 5. IDE 适配
114
115
 
115
- 当前支持 Qoder 与 Claude Code(`QoderAdapter` / `ClaudeAdapter`),`detectIde()` 自动判断。扩展新 IDE:
116
+ 当前支持 Qoder、Claude Code Codex / ChatGPT(`QoderAdapter` / `ClaudeAdapter` / `CodexAdapter`),`detectIde()` 自动判断。扩展新 IDE:
116
117
 
117
118
  1. 在 `src/ide/` 下新建 `XxxAdapter.ts`,实现 `IdeAdapter` 接口
118
119
  2. 在 `src/ide/index.ts` 的 `detectIde()` 中添加检测逻辑
@@ -134,8 +135,8 @@ pnpm --filter teamix-evo test:watch
134
135
  - `tokens-init-skills-link.test.ts` — tokens init ↔ skills auto-install 联动
135
136
  - `installer.test.ts` — UI 资源安装(frozen / regenerable)
136
137
  - `ui-installer.test.ts` — UI 装机引擎(依赖图 / alias 转换)
137
- - `skills-installer.test.ts` — skills 装机(source-mirror)
138
- - `skills-sync-doctor.test.ts` — source mirror 漂移检测
138
+ - `skills-installer.test.ts` — skills 从 npm 包渲染到 IDE mirror
139
+ - `skills-sync-doctor.test.ts` — IDE mirror 缺失 / 漂移检测
139
140
  - `updater.test.ts` — 三策略更新逻辑(ADR 0003)
140
141
  - `state.test.ts` — `.teamix-evo/` 状态读写
141
142
  - `template.test.ts` — Handlebars 渲染
@@ -190,9 +191,9 @@ TEAMIX_DEBUG=1 teamix-evo tokens init opentrek
190
191
  | `teamix-evo skills add <name...>` | 增量装指定 skill(`<name...>` 必填) |
191
192
  | `teamix-evo skills list` | 列出所有 skill 的安装状态 |
192
193
  | `teamix-evo skills update [name...] [--dry-run]` | 升级 skills(双闸 + version 短路 — ADR 0035) |
193
- | `teamix-evo skills sync [name...]` | → IDE 镜像(漂移恢复用) |
194
- | `teamix-evo skills doctor` | 检测源/镜像漂移(ADR 0013) |
195
- | `teamix-evo skills uninstall` | 卸载 skills(源 + 镜像 + lock) |
194
+ | `teamix-evo skills sync [name...]` | npm → IDE 镜像(漂移恢复;`--ide` 持久重配全部 skill) |
195
+ | `teamix-evo skills doctor` | 检测 IDE 镜像缺失 / 漂移(ADR 0048) |
196
+ | `teamix-evo skills uninstall` | 卸载已知 IDE 镜像 + lock 记录 |
196
197
  | `teamix-evo ui init` | 初始化 ui 配置(aliases / iconLibrary / tsx / rsc) |
197
198
  | `teamix-evo ui add <id...>` | 安装指定 ui 组件源码 |
198
199
  | `teamix-evo ui list [--installed]` | 列出可用/已安装 ui 组件 |
@@ -210,16 +211,22 @@ TEAMIX_DEBUG=1 teamix-evo tokens init opentrek
210
211
 
211
212
  ### 全局装 skill(`--scope global`)
212
213
 
213
- `skills init` 与 `skills add` 都支持 `--scope global` 装到 IDE 全局(`~/.qoder/skills/` + `~/.claude/skills/`)。当 cwd 不是 Teamix Evo 项目时,工具会自动把元数据写到 `~/.teamix-evo-global/`,不污染当前目录。
214
+ `skills init` 与 `skills add` 都支持 `--scope global` 装到 IDE 全局(`~/.qoder/skills/` + `~/.claude/skills/` + `~/.agents/skills/`)。当 cwd 不是 Teamix Evo 项目时,工具会自动把元数据写到 `~/.teamix-evo-global/`,不污染当前目录。
214
215
 
215
216
  ```bash
216
217
  # Onboarding 推荐:全局装 manage skill
217
- npx teamix-evo@latest skills add teamix-evo-manage --scope global --ide claude,qoder -y
218
+ npx teamix-evo@latest skills add teamix-evo-manage --scope global --ide qoder,claude,codex -y
218
219
 
219
220
  # 后续维护(update / uninstall 等)需 cd 到全局元数据根
220
221
  cd ~/.teamix-evo-global && npx teamix-evo skills update
221
222
  ```
222
223
 
224
+ 已有项目新增 Codex mirror(同时持久更新 config + lock):
225
+
226
+ ```bash
227
+ npx teamix-evo@latest skills sync --ide qoder,claude,codex
228
+ ```
229
+
223
230
  ## 关键约定
224
231
 
225
232
  - 使用 `process.exitCode = 1` 而非 `process.exit(1)`,确保异步操作完成
@@ -6,7 +6,7 @@ interface RunTokensInitOptions {
6
6
  projectRoot: string;
7
7
  /** Tokens variant id (e.g. `"opentrek"`, `"uni-manager"`). */
8
8
  variant: string;
9
- /** IDE identifier written into config.json (e.g. `"qoder"`, `"claude"`). */
9
+ /** IDE identifier written into config.json (e.g. `"qoder"`, `"claude"`, `"codex"`). */
10
10
  ide: string;
11
11
  /** Override the tokens package name (defaults to `"@teamix-evo/tokens"`). */
12
12
  packageName?: string;
@@ -842,7 +842,7 @@ declare function installResources(options: InstallOptions): Promise<InstallResul
842
842
  /**
843
843
  * Skills installer — renders upstream skill sources from the npm package
844
844
  * and writes directly to IDE mirror paths (`.qoder/skills/<id>/`,
845
- * `.claude/skills/<id>/`).
845
+ * `.claude/skills/<id>/`, `.agents/skills/<id>/`).
846
846
  */
847
847
  interface SkillInstallOptions {
848
848
  /** Project root directory */