dev-playbooks-cn 2.1.1 → 2.2.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/CHANGELOG.md +219 -0
- package/README.md +1 -0
- package/bin/devbooks.js +62 -7
- package/package.json +2 -1
- package/scripts/install-skills.sh +13 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [2.2.1] - 2025-01-20
|
|
9
|
+
|
|
10
|
+
### 修复
|
|
11
|
+
- 修复 update 命令的 changelog 显示功能
|
|
12
|
+
- 添加完整的版本变更记录
|
|
13
|
+
- 将 CHANGELOG.md 添加到 npm 发布文件列表
|
|
14
|
+
- 优化 update 命令性能
|
|
15
|
+
- 添加版本检查缓存(10 分钟 TTL)
|
|
16
|
+
- 避免重复网络请求导致的卡顿
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## [2.2.0] - 2025-01-20
|
|
21
|
+
|
|
22
|
+
### 新增
|
|
23
|
+
- 添加 Every Code (`@just-every/code`) 支持
|
|
24
|
+
- 完整 Skills 系统支持
|
|
25
|
+
- Skills 安装目录:`~/.code/skills/` 或 `.code/skills/`(项目级)
|
|
26
|
+
- 使用 `AGENTS.md` 指令文件
|
|
27
|
+
- 安装脚本新增 `--code-only` 和 `--with-code` 选项
|
|
28
|
+
- 版本检查缓存(10 分钟 TTL)加速重复 `update` 命令
|
|
29
|
+
|
|
30
|
+
### 变更
|
|
31
|
+
- 更新 README 工具支持表格
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## [2.1.1] - 2025-01-19
|
|
36
|
+
|
|
37
|
+
### 修复
|
|
38
|
+
- 规范用语修正
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## [2.1.0] - 2025-01-19
|
|
43
|
+
|
|
44
|
+
### Added
|
|
45
|
+
|
|
46
|
+
- **Version Changelog Display**: When running `dev-playbooks-cn update`, the CLI now displays a formatted changelog summary showing all changes between the current version and the latest version
|
|
47
|
+
- ✅ Automatic fetch from GitHub: Retrieves CHANGELOG.md from the repository
|
|
48
|
+
- 📋 Smart parsing: Extracts and displays only relevant version changes
|
|
49
|
+
- 🎨 Colorized output: Highlights different types of changes (features, warnings, etc.)
|
|
50
|
+
- 🔗 Graceful fallback: Shows GitHub release link if network fails
|
|
51
|
+
- 📊 Content limit: Displays first 10 lines per version to avoid information overload
|
|
52
|
+
|
|
53
|
+
### Improved
|
|
54
|
+
|
|
55
|
+
- **User Experience**: Users can now make informed decisions about updates by reviewing what's new before upgrading
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## [2.0.0] - 2026-01-19
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
|
|
63
|
+
#### 🎯 Human-Friendly Document Templates
|
|
64
|
+
|
|
65
|
+
- **结论先行(Bottom Line Up Front)**: Every document (proposal, design, tasks, verification) now has a 30-second executive summary at the top
|
|
66
|
+
- ✅ What will result: List changes in plain language
|
|
67
|
+
- ❌ What won't result: Clearly state what won't change
|
|
68
|
+
- 📝 One-sentence summary: Understandable even for non-technical people
|
|
69
|
+
|
|
70
|
+
- **需求对齐(Alignment Check)**: Proposal phase now includes guided questions to uncover hidden requirements
|
|
71
|
+
- 👤 Role identification: Quick Starter / Platform Builder / Rapid Validator
|
|
72
|
+
- 🎯 Core requirements: Explicit + hidden requirements
|
|
73
|
+
- 💡 Multi-perspective recommendations: Different recommendations based on different roles
|
|
74
|
+
|
|
75
|
+
- **默认批准机制(Default Approval Mechanism)**: Reduce decision fatigue with auto-approval
|
|
76
|
+
- ⏰ User silence = agreement: Auto-approve after timeout
|
|
77
|
+
- 🎛️ Configurable timeout: proposal 48h / design 24h / tasks 24h / verification 12h
|
|
78
|
+
- 🔒 Retain control: Users can reject or customize at any time
|
|
79
|
+
|
|
80
|
+
- **项目级文档(Project-Level Documents)**: Knowledge retention and decision tracking
|
|
81
|
+
- 📋 User Profile (project-profile.md): Record role, requirements, constraints, preferences
|
|
82
|
+
- 📝 Decision Log (decision-log.md): Record all important decisions for retrospection
|
|
83
|
+
|
|
84
|
+
#### New Document Templates
|
|
85
|
+
|
|
86
|
+
- `skills/_shared/references/文档模板-proposal.md` (Chinese)
|
|
87
|
+
- `skills/_shared/references/文档模板-design.md` (Chinese)
|
|
88
|
+
- `skills/_shared/references/文档模板-tasks.md` (Chinese)
|
|
89
|
+
- `skills/_shared/references/文档模板-verification.md` (Chinese)
|
|
90
|
+
- `skills/_shared/references/文档模板-project-profile.md` (Chinese)
|
|
91
|
+
- `skills/_shared/references/文档模板-decision-log.md` (Chinese)
|
|
92
|
+
- `skills/_shared/references/批准配置说明.md` (Chinese)
|
|
93
|
+
- `skills/_shared/references/document-template-proposal.md` (English)
|
|
94
|
+
- `skills/_shared/references/document-template-design.md` (English)
|
|
95
|
+
- `skills/_shared/references/document-template-tasks.md` (English)
|
|
96
|
+
- `skills/_shared/references/document-template-verification.md` (English)
|
|
97
|
+
- `skills/_shared/references/document-template-project-profile.md` (English)
|
|
98
|
+
- `skills/_shared/references/document-template-decision-log.md` (English)
|
|
99
|
+
- `skills/_shared/references/approval-configuration-guide.md` (English)
|
|
100
|
+
|
|
101
|
+
#### Documentation
|
|
102
|
+
|
|
103
|
+
- Added `docs/v2.0.0-修改总结.md`: Comprehensive summary of v2.0.0 changes
|
|
104
|
+
- Updated README.md with v2.0.0 features section (both Chinese and English versions)
|
|
105
|
+
|
|
106
|
+
### Changed
|
|
107
|
+
|
|
108
|
+
- **proposal-author skill**: Updated to use new document templates
|
|
109
|
+
- Now generates documents with "Bottom Line Up Front" section
|
|
110
|
+
- Includes "Alignment Check" to uncover hidden requirements
|
|
111
|
+
- Provides multi-perspective recommendations based on user role
|
|
112
|
+
- References new template files in prompts
|
|
113
|
+
|
|
114
|
+
### Breaking Changes
|
|
115
|
+
|
|
116
|
+
⚠️ **Document Structure Changes**
|
|
117
|
+
|
|
118
|
+
- Existing proposal.md files do not conform to the new structure
|
|
119
|
+
- Migration may be required for existing projects
|
|
120
|
+
- Old format is still supported but not recommended
|
|
121
|
+
|
|
122
|
+
**Mitigation**:
|
|
123
|
+
- Migration script will be provided in future releases
|
|
124
|
+
- Backward compatibility maintained for reading old format
|
|
125
|
+
- New projects will use new format by default
|
|
126
|
+
|
|
127
|
+
⚠️ **Approval Mechanism Changes**
|
|
128
|
+
|
|
129
|
+
- Introduces default approval mechanism which may not fit all team workflows
|
|
130
|
+
- Default strategy is `auto_approve` but can be changed to `require_explicit`
|
|
131
|
+
|
|
132
|
+
**Mitigation**:
|
|
133
|
+
- Configurable approval strategy in `.devbooks/config.yaml`
|
|
134
|
+
- Can disable auto-approval for high-risk projects
|
|
135
|
+
- Timeout values are configurable
|
|
136
|
+
|
|
137
|
+
### Design Philosophy
|
|
138
|
+
|
|
139
|
+
This release is inspired by:
|
|
140
|
+
- Cognitive Load Theory: Minimize extraneous load, maximize germane load
|
|
141
|
+
- Dual Process Theory: Design for both System 1 (fast) and System 2 (slow) thinking
|
|
142
|
+
- Nudge Theory: Use default options to guide better decisions
|
|
143
|
+
- Inverted Pyramid Structure: Put conclusions first, details later
|
|
144
|
+
|
|
145
|
+
**Core Principles**:
|
|
146
|
+
- 🎯 Assume users are non-technical: Use plain language, avoid jargon
|
|
147
|
+
- 🤔 Uncover hidden requirements: Guide users through questions
|
|
148
|
+
- ⏰ Reduce decision fatigue: Default approval with configurable timeout
|
|
149
|
+
- 📋 Knowledge retention: Project-level documents for long-term reference
|
|
150
|
+
|
|
151
|
+
### Upgrade Guide
|
|
152
|
+
|
|
153
|
+
#### For Existing Projects
|
|
154
|
+
|
|
155
|
+
1. Update npm package:
|
|
156
|
+
```bash
|
|
157
|
+
npm install -g dev-playbooks-cn@2.0.0
|
|
158
|
+
# or
|
|
159
|
+
npm install -g dev-playbooks@2.0.0
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
2. (Optional) Migrate existing documents:
|
|
163
|
+
```bash
|
|
164
|
+
# Migration script will be provided in future releases
|
|
165
|
+
devbooks migrate --from 1.x --to 2.0.0
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
3. (Optional) Configure approval mechanism:
|
|
169
|
+
Create `.devbooks/config.yaml`:
|
|
170
|
+
```yaml
|
|
171
|
+
approval:
|
|
172
|
+
default_strategy: auto_approve
|
|
173
|
+
timeout:
|
|
174
|
+
proposal: 48
|
|
175
|
+
design: 24
|
|
176
|
+
tasks: 24
|
|
177
|
+
verification: 12
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
4. (Optional) Create project-level documents:
|
|
181
|
+
```bash
|
|
182
|
+
devbooks init-profile
|
|
183
|
+
devbooks init-decision-log
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
#### For New Projects
|
|
187
|
+
|
|
188
|
+
New projects will automatically use the new document templates. No migration needed.
|
|
189
|
+
|
|
190
|
+
### References
|
|
191
|
+
|
|
192
|
+
- Report: "Protocol 2026: Cognitive Compatibility and Human-Computer Communication Standards in the AI-Native Era"
|
|
193
|
+
- Cognitive Load Theory (CLT)
|
|
194
|
+
- Dual Process Theory
|
|
195
|
+
- Nudge Theory
|
|
196
|
+
- Inverted Pyramid Structure
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## [1.7.4] - 2026-01-18
|
|
201
|
+
|
|
202
|
+
### Changed
|
|
203
|
+
- Various bug fixes and improvements
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## [1.7.0] - 2026-01-15
|
|
208
|
+
|
|
209
|
+
### Added
|
|
210
|
+
- Initial release with 18 skills
|
|
211
|
+
- Support for Claude Code, Codex CLI, and other AI tools
|
|
212
|
+
- Quality gates and role isolation
|
|
213
|
+
- MCP integration support
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
[2.0.0]: https://github.com/Darkbluelr/dev-playbooks-cn/compare/v1.7.4...v2.0.0
|
|
218
|
+
[1.7.4]: https://github.com/Darkbluelr/dev-playbooks-cn/compare/v1.7.0...v1.7.4
|
|
219
|
+
[1.7.0]: https://github.com/Darkbluelr/dev-playbooks-cn/releases/tag/v1.7.0
|
package/README.md
CHANGED
|
@@ -80,6 +80,7 @@ AI 编码助手很强大,但往往**不可预测**:
|
|
|
80
80
|
| **Codex CLI** | 完整 Skills | `AGENTS.md` |
|
|
81
81
|
| **Qoder** | 完整 Skills | `AGENTS.md` |
|
|
82
82
|
| **OpenCode** | 完整 Skills | `AGENTS.md` |
|
|
83
|
+
| **Every Code** | 完整 Skills | `AGENTS.md` |
|
|
83
84
|
| **Cursor** | Rules 系统 | `.cursor/rules/` |
|
|
84
85
|
| **Windsurf** | Rules 系统 | `.windsurf/rules/` |
|
|
85
86
|
| **Gemini CLI** | Rules 系统 | `GEMINI.md` |
|
package/bin/devbooks.js
CHANGED
|
@@ -34,6 +34,10 @@ const __dirname = path.dirname(__filename);
|
|
|
34
34
|
const CLI_COMMAND = 'dev-playbooks-cn';
|
|
35
35
|
const XDG_CONFIG_HOME = process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config');
|
|
36
36
|
|
|
37
|
+
// 版本检查缓存配置
|
|
38
|
+
const VERSION_CACHE_FILE = path.join(os.tmpdir(), `${CLI_COMMAND}-version-cache.json`);
|
|
39
|
+
const VERSION_CACHE_TTL = 10 * 60 * 1000; // 10 分钟缓存
|
|
40
|
+
|
|
37
41
|
// ============================================================================
|
|
38
42
|
// Skills 支持级别定义
|
|
39
43
|
// ============================================================================
|
|
@@ -172,6 +176,19 @@ const AI_TOOLS = [
|
|
|
172
176
|
globalSlashDir: path.join(os.homedir(), '.codex', 'prompts'),
|
|
173
177
|
instructionFile: 'AGENTS.md',
|
|
174
178
|
available: true
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
// === Every Code / just-every/code(完整 Skills 支持)===
|
|
182
|
+
{
|
|
183
|
+
id: 'code',
|
|
184
|
+
name: 'Every Code',
|
|
185
|
+
description: 'Every Code CLI (@just-every/code)',
|
|
186
|
+
skillsSupport: SKILLS_SUPPORT.FULL,
|
|
187
|
+
slashDir: null,
|
|
188
|
+
skillsDir: path.join(os.homedir(), '.code', 'skills'),
|
|
189
|
+
globalSlashDir: null,
|
|
190
|
+
instructionFile: 'AGENTS.md',
|
|
191
|
+
available: true
|
|
175
192
|
}
|
|
176
193
|
];
|
|
177
194
|
|
|
@@ -317,11 +334,32 @@ function getCliVersion() {
|
|
|
317
334
|
}
|
|
318
335
|
|
|
319
336
|
/**
|
|
320
|
-
* 检查 npm
|
|
337
|
+
* 检查 npm 上是否有新版本(带缓存)
|
|
321
338
|
* @returns {Promise<{hasUpdate: boolean, latestVersion: string|null, currentVersion: string}>}
|
|
322
339
|
*/
|
|
323
340
|
async function checkNpmUpdate() {
|
|
324
341
|
const currentVersion = getCliVersion();
|
|
342
|
+
|
|
343
|
+
// 检查缓存
|
|
344
|
+
try {
|
|
345
|
+
if (fs.existsSync(VERSION_CACHE_FILE)) {
|
|
346
|
+
const cache = JSON.parse(fs.readFileSync(VERSION_CACHE_FILE, 'utf-8'));
|
|
347
|
+
const cacheAge = Date.now() - cache.timestamp;
|
|
348
|
+
|
|
349
|
+
// 如果缓存未过期且当前版本匹配缓存的最新版本,跳过网络请求
|
|
350
|
+
if (cacheAge < VERSION_CACHE_TTL && cache.currentVersion === currentVersion) {
|
|
351
|
+
// 如果缓存显示已是最新版本,直接返回
|
|
352
|
+
if (!cache.hasUpdate) {
|
|
353
|
+
return { hasUpdate: false, latestVersion: cache.latestVersion, currentVersion };
|
|
354
|
+
}
|
|
355
|
+
// 如果缓存显示有更新,仍返回缓存结果
|
|
356
|
+
return { hasUpdate: cache.hasUpdate, latestVersion: cache.latestVersion, currentVersion };
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
} catch {
|
|
360
|
+
// 缓存读取失败,继续网络请求
|
|
361
|
+
}
|
|
362
|
+
|
|
325
363
|
try {
|
|
326
364
|
const { execSync } = await import('child_process');
|
|
327
365
|
const latestVersion = execSync(`npm view ${CLI_COMMAND} version`, {
|
|
@@ -330,16 +368,29 @@ async function checkNpmUpdate() {
|
|
|
330
368
|
stdio: ['pipe', 'pipe', 'pipe']
|
|
331
369
|
}).trim();
|
|
332
370
|
|
|
371
|
+
let hasUpdate = false;
|
|
333
372
|
if (latestVersion && latestVersion !== currentVersion) {
|
|
334
373
|
// 简单版本比较(假设语义化版本)
|
|
335
374
|
const current = currentVersion.split('.').map(Number);
|
|
336
375
|
const latest = latestVersion.split('.').map(Number);
|
|
337
|
-
|
|
376
|
+
hasUpdate = latest[0] > current[0] ||
|
|
338
377
|
(latest[0] === current[0] && latest[1] > current[1]) ||
|
|
339
378
|
(latest[0] === current[0] && latest[1] === current[1] && latest[2] > current[2]);
|
|
340
|
-
return { hasUpdate, latestVersion, currentVersion };
|
|
341
379
|
}
|
|
342
|
-
|
|
380
|
+
|
|
381
|
+
// 保存缓存
|
|
382
|
+
try {
|
|
383
|
+
fs.writeFileSync(VERSION_CACHE_FILE, JSON.stringify({
|
|
384
|
+
timestamp: Date.now(),
|
|
385
|
+
currentVersion,
|
|
386
|
+
latestVersion,
|
|
387
|
+
hasUpdate
|
|
388
|
+
}));
|
|
389
|
+
} catch {
|
|
390
|
+
// 缓存写入失败,忽略
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return { hasUpdate, latestVersion, currentVersion };
|
|
343
394
|
} catch {
|
|
344
395
|
// 网络错误或超时,静默忽略
|
|
345
396
|
return { hasUpdate: false, latestVersion: null, currentVersion };
|
|
@@ -643,6 +694,8 @@ function getNpmIgnoreEntries() {
|
|
|
643
694
|
'.opencode/',
|
|
644
695
|
'.continue/',
|
|
645
696
|
'.qoder/',
|
|
697
|
+
'.code/',
|
|
698
|
+
'.codex/',
|
|
646
699
|
'.github/instructions/',
|
|
647
700
|
'.github/copilot-instructions.md',
|
|
648
701
|
'',
|
|
@@ -737,7 +790,7 @@ function printSkillsSupportInfo() {
|
|
|
737
790
|
console.log(chalk.gray('─'.repeat(50)));
|
|
738
791
|
console.log();
|
|
739
792
|
|
|
740
|
-
console.log(chalk.green('★ 完整 Skills') + chalk.gray(' - Claude Code, Codex CLI, OpenCode, Qoder'));
|
|
793
|
+
console.log(chalk.green('★ 完整 Skills') + chalk.gray(' - Claude Code, Codex CLI, OpenCode, Qoder, Every Code'));
|
|
741
794
|
console.log(chalk.gray(' └ 独立的 Skills/Agents 系统,可按需调用,有独立上下文'));
|
|
742
795
|
console.log();
|
|
743
796
|
|
|
@@ -857,6 +910,8 @@ function getSkillsDestDir(tool, scope, projectDir) {
|
|
|
857
910
|
return path.join(projectDir, '.codex', 'skills');
|
|
858
911
|
} else if (tool.id === 'opencode') {
|
|
859
912
|
return path.join(projectDir, '.opencode', 'skill');
|
|
913
|
+
} else if (tool.id === 'code') {
|
|
914
|
+
return path.join(projectDir, '.code', 'skills');
|
|
860
915
|
}
|
|
861
916
|
}
|
|
862
917
|
// 全局安装:使用工具定义的全局目录
|
|
@@ -870,8 +925,8 @@ function installSkills(toolIds, projectDir, scope = INSTALL_SCOPE.GLOBAL, update
|
|
|
870
925
|
const tool = AI_TOOLS.find(t => t.id === toolId);
|
|
871
926
|
if (!tool || tool.skillsSupport !== SKILLS_SUPPORT.FULL) continue;
|
|
872
927
|
|
|
873
|
-
// Claude Code / Codex CLI / OpenCode 支持相同格式的 Skills
|
|
874
|
-
if ((toolId === 'claude' || toolId === 'codex' || toolId === 'opencode') && tool.skillsDir) {
|
|
928
|
+
// Claude Code / Codex CLI / OpenCode / Every Code 支持相同格式的 Skills
|
|
929
|
+
if ((toolId === 'claude' || toolId === 'codex' || toolId === 'opencode' || toolId === 'code') && tool.skillsDir) {
|
|
875
930
|
const skillsSrcDir = path.join(__dirname, '..', 'skills');
|
|
876
931
|
const skillsDestDir = getSkillsDestDir(tool, scope, projectDir);
|
|
877
932
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dev-playbooks-cn",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "AI-driven spec-based development workflow",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"devbooks",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"LICENSE",
|
|
30
|
+
"CHANGELOG.md",
|
|
30
31
|
"bin/",
|
|
31
32
|
"templates/",
|
|
32
33
|
"skills/",
|
|
@@ -4,12 +4,13 @@ set -euo pipefail
|
|
|
4
4
|
usage() {
|
|
5
5
|
cat <<'EOF'
|
|
6
6
|
Usage:
|
|
7
|
-
./scripts/install-skills.sh [--claude-only|--codex-only|--opencode-only] [--with-opencode] [--with-codex-prompts] [--dry-run] [--no-prune]
|
|
7
|
+
./scripts/install-skills.sh [--claude-only|--codex-only|--opencode-only|--code-only] [--with-opencode] [--with-code] [--with-codex-prompts] [--dry-run] [--no-prune]
|
|
8
8
|
|
|
9
9
|
Installs DevBooks skills (skills/devbooks-*) to:
|
|
10
10
|
- Claude Code: ~/.claude/skills/
|
|
11
11
|
- Codex CLI: $CODEX_HOME/skills (default: ~/.codex/skills/)
|
|
12
12
|
- OpenCode: $XDG_CONFIG_HOME/opencode/skill (default: ~/.config/opencode/skill/)
|
|
13
|
+
- Every Code: $CODE_HOME/skills (default: ~/.code/skills/)
|
|
13
14
|
|
|
14
15
|
Optionally installs Codex prompt entrypoints (templates/claude-commands/devbooks/*.md) to:
|
|
15
16
|
- Codex CLI: $CODEX_HOME/prompts (default: ~/.codex/prompts/)
|
|
@@ -22,6 +23,7 @@ EOF
|
|
|
22
23
|
install_claude=true
|
|
23
24
|
install_codex=true
|
|
24
25
|
install_opencode=false
|
|
26
|
+
install_code=false
|
|
25
27
|
install_codex_prompts=false
|
|
26
28
|
dry_run=false
|
|
27
29
|
prune_removed=true
|
|
@@ -29,10 +31,12 @@ prune_removed=true
|
|
|
29
31
|
while [[ $# -gt 0 ]]; do
|
|
30
32
|
case "$1" in
|
|
31
33
|
-h|--help) usage; exit 0 ;;
|
|
32
|
-
--claude-only) install_codex=false ;;
|
|
33
|
-
--codex-only) install_claude=false ;;
|
|
34
|
-
--opencode-only) install_claude=false; install_codex=false; install_opencode=true ;;
|
|
34
|
+
--claude-only) install_codex=false; install_code=false ;;
|
|
35
|
+
--codex-only) install_claude=false; install_code=false ;;
|
|
36
|
+
--opencode-only) install_claude=false; install_codex=false; install_opencode=true; install_code=false ;;
|
|
37
|
+
--code-only) install_claude=false; install_codex=false; install_code=true ;;
|
|
35
38
|
--with-opencode) install_opencode=true ;;
|
|
39
|
+
--with-code) install_code=true ;;
|
|
36
40
|
--with-codex-prompts) install_codex_prompts=true ;;
|
|
37
41
|
--dry-run) dry_run=true ;;
|
|
38
42
|
--no-prune) prune_removed=false ;;
|
|
@@ -229,6 +233,11 @@ if [[ "$install_opencode" == true ]]; then
|
|
|
229
233
|
install_into "${xdg_config_home}/opencode/skill"
|
|
230
234
|
fi
|
|
231
235
|
|
|
236
|
+
if [[ "$install_code" == true ]]; then
|
|
237
|
+
code_home="${CODE_HOME:-${HOME}/.code}"
|
|
238
|
+
install_into "${code_home}/skills"
|
|
239
|
+
fi
|
|
240
|
+
|
|
232
241
|
if [[ "$dry_run" == true ]]; then
|
|
233
242
|
echo "[dry-run] done"
|
|
234
243
|
else
|