valent-pipeline 0.3.1 → 0.3.3
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/package.json +1 -1
- package/src/commands/init.js +25 -9
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -59,12 +59,18 @@ export async function init(options = {}) {
|
|
|
59
59
|
console.log(' Created pipeline-backlog.yaml');
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
// 4. Install skills
|
|
62
|
+
// 4. Install skills (platform-specific paths)
|
|
63
63
|
const skillsSrc = join(PACKAGE_ROOT, 'skills');
|
|
64
|
-
const
|
|
64
|
+
const providers = config.runtime?.providers || [config.runtime?.provider || 'claude-code'];
|
|
65
65
|
if (existsSync(skillsSrc)) {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
if (providers.includes('claude-code')) {
|
|
67
|
+
copyDir(skillsSrc, join(projectRoot, '.claude', 'skills'));
|
|
68
|
+
console.log(' Installed skills to .claude/skills/ (Claude Code)');
|
|
69
|
+
}
|
|
70
|
+
if (providers.includes('codex')) {
|
|
71
|
+
copyDir(skillsSrc, join(projectRoot, '.agents', 'skills'));
|
|
72
|
+
console.log(' Installed skills to .agents/skills/ (Codex)');
|
|
73
|
+
}
|
|
68
74
|
}
|
|
69
75
|
|
|
70
76
|
// 5. Create knowledge directories
|
|
@@ -138,8 +144,6 @@ export async function init(options = {}) {
|
|
|
138
144
|
}
|
|
139
145
|
|
|
140
146
|
// 8. Configure runtime-specific project files
|
|
141
|
-
const providers = config.runtime?.providers || [config.runtime?.provider || 'claude-code'];
|
|
142
|
-
|
|
143
147
|
if (providers.includes('claude-code')) {
|
|
144
148
|
// 8a. Configure Claude Code settings (agent teams)
|
|
145
149
|
const claudeSettingsPath = join(projectRoot, '.claude', 'settings.json');
|
|
@@ -192,9 +196,21 @@ export async function init(options = {}) {
|
|
|
192
196
|
console.log(` Wrote .valent-pipeline/.valent-version (${pkg.version})`);
|
|
193
197
|
|
|
194
198
|
console.log('\nPipeline initialized.\n');
|
|
195
|
-
console.log('
|
|
196
|
-
|
|
197
|
-
|
|
199
|
+
console.log('Get started:\n');
|
|
200
|
+
if (providers.includes('claude-code')) {
|
|
201
|
+
console.log(' Claude Code');
|
|
202
|
+
console.log(' /valent-help — Learn how the pipeline works');
|
|
203
|
+
console.log(' /valent-setup-backlog — Import stories and initialize the knowledge base');
|
|
204
|
+
console.log(' /valent-run-story — Run a story through the pipeline');
|
|
205
|
+
console.log('');
|
|
206
|
+
}
|
|
207
|
+
if (providers.includes('codex')) {
|
|
208
|
+
console.log(' Codex');
|
|
209
|
+
console.log(' $valent-help — Learn how the pipeline works');
|
|
210
|
+
console.log(' $valent-setup-backlog — Import stories and initialize the knowledge base');
|
|
211
|
+
console.log(' $valent-run-story — Run a story through the pipeline');
|
|
212
|
+
console.log('');
|
|
213
|
+
}
|
|
198
214
|
}
|
|
199
215
|
|
|
200
216
|
async function runWizard() {
|