valent-pipeline 0.1.5 → 0.1.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valent-pipeline",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "v3 multi-agent AI pipeline for software development lifecycle",
5
5
  "type": "module",
6
6
  "bin": {
@@ -137,9 +137,11 @@ As a {role} I want {capability} so that {benefit}.
137
137
 
138
138
  ## Step 7: Initialize Knowledge Base
139
139
 
140
- Scan the repo to build the curated knowledge files that the Knowledge Agent uses at runtime. Write these to `knowledge/curated/`:
140
+ Scan the repo to build the curated knowledge files that the Knowledge Agent uses at runtime. Write these to `knowledge/curated/`.
141
141
 
142
- ### `project-context.md`
142
+ **Use haiku subagents in parallel** to scan the repo efficiently. Launch up to 3 agents simultaneously, each responsible for one knowledge file:
143
+
144
+ **Agent 1 → `project-context.md`:**
143
145
  Scan the repo and generate:
144
146
  - Project name and purpose (from README, package.json, or ask the user)
145
147
  - Directory layout (top-level structure)
@@ -148,7 +150,7 @@ Scan the repo and generate:
148
150
  - Existing API endpoints (from route files if present)
149
151
  - Environment setup (from docker-compose, Dockerfile, .env.example if present)
150
152
 
151
- ### `code-conventions.md`
153
+ **Agent 2 → `code-conventions.md`:**
152
154
  Scan existing source code and extract:
153
155
  - Import patterns (ESM vs CJS, path aliases)
154
156
  - Naming conventions (camelCase, snake_case, file naming)
@@ -157,14 +159,16 @@ Scan existing source code and extract:
157
159
  - Error handling patterns
158
160
  - Any linting config (.eslintrc, .prettierrc, biome.json)
159
161
 
160
- ### `api-reference.md` (if API endpoints exist)
162
+ **Agent 3 → `api-reference.md`** (only if API endpoints exist):
161
163
  Scan route files and generate:
162
164
  - Method, path, request/response shapes
163
165
  - Validation rules
164
166
  - Auth requirements
165
167
  - Status codes
166
168
 
167
- If the repo is empty or brand new (no source code yet), create minimal placeholder files noting "No existing code detected Knowledge Agent will update these as stories ship."
169
+ All three agents run in parallel using `model: "haiku"` to minimize cost. Collect their outputs and write the files.
170
+
171
+ If the repo is empty or brand new (no source code yet), skip the subagents and create minimal placeholder files noting "No existing code detected — Knowledge Agent will update these as stories ship."
168
172
 
169
173
  ## Step 8: Report
170
174
 
@@ -79,7 +79,20 @@ export async function init(options = {}) {
79
79
  console.log(' SQLite knowledge mode selected. Run "valent-pipeline db init" to create the database.');
80
80
  }
81
81
 
82
- // 8. Update .gitignore
82
+ // 8. Configure Claude settings for agent teams
83
+ const claudeSettingsPath = join(projectRoot, '.claude', 'settings.json');
84
+ let claudeSettings = {};
85
+ if (fileExists(claudeSettingsPath)) {
86
+ try {
87
+ claudeSettings = JSON.parse(readFile(claudeSettingsPath));
88
+ } catch { /* start fresh if parse fails */ }
89
+ }
90
+ if (!claudeSettings.env) claudeSettings.env = {};
91
+ claudeSettings.env.CLAUDE_CODE_ENABLE_EXPERIMENTAL_AGENT_TEAMS = '1';
92
+ writeFileSafe(claudeSettingsPath, JSON.stringify(claudeSettings, null, 2) + '\n');
93
+ console.log(' Configured .claude/settings.json (agent teams enabled)');
94
+
95
+ // 9. Update .gitignore
83
96
  appendToGitignore(projectRoot, 'v3/pipeline.db');
84
97
  appendToGitignore(projectRoot, 'v3/pipeline.db-*');
85
98
  appendToGitignore(projectRoot, 'v3/chromadb-data/');