valent-pipeline 0.1.15 → 0.1.16

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.15",
3
+ "version": "0.1.16",
4
4
  "description": "v3 multi-agent AI pipeline for software development lifecycle",
5
5
  "type": "module",
6
6
  "bin": {
@@ -74,9 +74,29 @@ export async function init(options = {}) {
74
74
  console.log(' Created knowledge/correction-directives.yaml');
75
75
  }
76
76
 
77
- // 7. Initialize SQLite DB if sqlite mode
77
+ // 7. Install SQLite dependencies inside .valent-pipeline/
78
78
  if (config.knowledge?.mode === 'sqlite') {
79
- console.log(' SQLite knowledge mode selected. Run "valent-pipeline db init" to create the database.');
79
+ const vpPkgPath = join(pipelineDest, 'package.json');
80
+ if (!fileExists(vpPkgPath)) {
81
+ writeFileSafe(vpPkgPath, JSON.stringify({
82
+ "name": "valent-pipeline-runtime",
83
+ "private": true,
84
+ "description": "Runtime dependencies for valent-pipeline scripts. Do not edit.",
85
+ "dependencies": {
86
+ "better-sqlite3": "^11.0.0",
87
+ "sqlite-vec": "^0.1.0"
88
+ }
89
+ }, null, 2) + '\n');
90
+ }
91
+ console.log(' Installing SQLite dependencies in .valent-pipeline/...');
92
+ const { execSync } = await import('child_process');
93
+ try {
94
+ execSync('npm install --production', { cwd: pipelineDest, stdio: 'pipe' });
95
+ console.log(' Installed better-sqlite3 + sqlite-vec');
96
+ } catch (err) {
97
+ console.warn(' Warning: Failed to install SQLite dependencies. Run "cd .valent-pipeline && npm install" manually.');
98
+ }
99
+ console.log(' Run "valent-pipeline db init" to create the database.');
80
100
  }
81
101
 
82
102
  // 8. Configure Claude settings for agent teams