add-coder 0.3.19 → 0.3.20
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 +7 -3
- package/dist/index.js +380 -128
- package/package.json +3 -3
- package/templates/.add-coder-src-hash.json +13 -11
- package/templates/adapters/qoder/sync-policy.json +1 -1
- package/templates/core/DEPENDENCIES.md +91 -0
- package/templates/core/scripts/mcp-server/resources/add-coder-version.ts +4 -3
- package/templates/core/scripts/mcp-server/shared/fs.ts +9 -4
- package/templates/core/scripts/mcp-server/shared/prisma.ts +10 -0
- package/templates/core/scripts/mcp-server/shared/run-command.ts +57 -0
- package/templates/core/scripts/mcp-server/tools/gateway/check_dps.ts +4 -1
- package/templates/core/scripts/mcp-server/tools/gateway/check_rahs.ts +4 -5
- package/templates/core/scripts/mcp-server/tools/gateway/check_spec_sync.ts +4 -5
- package/templates/core/scripts/mcp-server/tools/gateway/helpers.ts +7 -0
- package/templates/core/templates/01-/346/236/266/346/236/204//343/200/212ADD/345/274/200/345/217/221/345/267/245/344/275/234/350/267/257/345/276/204/344/270/216/346/226/207/346/241/243/345/215/217/345/220/214/350/247/204/350/214/203/343/200/213.md +1 -1
- package/templates/core/vocabulary/add-governance-vocabulary.md +1 -1
package/README.md
CHANGED
|
@@ -103,6 +103,8 @@ published 2 weeks ago by wujixmm <wujixmm@gmail.com>
|
|
|
103
103
|
npx add-coder init
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
+
> 💾 **embedding 模型预下载**(v0.3.20+):`add-coder init` 自动预下载 DPS 评分用的 embedding 模型(约 90MB,`--skip-model` 跳过);`add-coder sync` 缓存缺失时提示、`--model` 触发下载;独立命令 `add-coder model:download`(`--force` 强制重下)。缓存于 `~/.cache/huggingface/hub/`(多仓库共享,仅需一次下载,首次 DPS 调用也会自动下载)。
|
|
107
|
+
|
|
106
108
|
---
|
|
107
109
|
|
|
108
110
|
## 这不是模板工具,这是架构差异
|
|
@@ -261,7 +263,7 @@ npx add-coder init
|
|
|
261
263
|
|
|
262
264
|
| 命令 | 说明 |
|
|
263
265
|
|------|------|
|
|
264
|
-
| `init` | 初始化 ADD 模板,支持 `--adapter claude\|qoder\|vscode\|auto` |
|
|
266
|
+
| `init` | 初始化 ADD 模板,支持 `--adapter claude\|qoder\|vscode\|trae\|codex\|auto` |
|
|
265
267
|
| `sync` | 增量同步缺失文件 |
|
|
266
268
|
| `status` | 检查模板完整性 |
|
|
267
269
|
|
|
@@ -281,7 +283,7 @@ npx add-coder init
|
|
|
281
283
|
|
|
282
284
|
| 选项 | 说明 |
|
|
283
285
|
|------|------|
|
|
284
|
-
| `--adapter <type>` | 目标 IDE:claude / qoder / vscode / auto
|
|
286
|
+
| `--adapter <type>` | 目标 IDE:claude / qoder / vscode / trae / codex / auto(自动检测,默认) |
|
|
285
287
|
| `--config <path>` | 指定配置文件 |
|
|
286
288
|
| `--yes` | 跳过交互,只创建新文件 |
|
|
287
289
|
| `--force` | 覆盖已有文件 |
|
|
@@ -295,6 +297,8 @@ npx add-coder init
|
|
|
295
297
|
| `.claude/` | Claude Code 适配(hooks、settings.json) |
|
|
296
298
|
| `.qoder/` | Qoder 适配(hooks、settings.json、mcp.json) |
|
|
297
299
|
| `.vscode/` | VS Code 适配(settings.json、tasks.json) |
|
|
300
|
+
| `.trae/` | Trae 适配(hooks.json、settings.json) |
|
|
301
|
+
| `.codex/` | Codex 适配(hooks.json、settings.json) |
|
|
298
302
|
|
|
299
303
|
## MCP 审计工具链
|
|
300
304
|
|
|
@@ -588,7 +592,7 @@ npx add-coder init
|
|
|
588
592
|
|
|
589
593
|
| Command | Description |
|
|
590
594
|
|---------|-------------|
|
|
591
|
-
| `init` | Initialize ADD templates, supports `--adapter claude\|qoder\|vscode\|auto` |
|
|
595
|
+
| `init` | Initialize ADD templates, supports `--adapter claude\|qoder\|vscode\|trae\|codex\|auto` |
|
|
592
596
|
| `sync` | Incrementally sync missing files |
|
|
593
597
|
| `status` | Check template integrity |
|
|
594
598
|
|