agentic-kdd 3.5.5 → 3.5.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": "agentic-kdd",
3
- "version": "3.5.5",
3
+ "version": "3.5.6",
4
4
  "description": "Autonomous development pipeline — aa: · ag: · audit: · AST graph · Harness · Specs · Impact analysis · Decision trail · Metrics · MCP server. Works with Cursor and Claude Code.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/init.js CHANGED
@@ -229,7 +229,7 @@ async function init() {
229
229
  const pkg = fs.readJsonSync(pkgPath, { throws: false }) || {};
230
230
  if (!pkg.scripts) pkg.scripts = {};
231
231
  if (!pkg.scripts['dev:kdd']) {
232
- pkg.scripts['dev:kdd'] = 'node .agentic/grafo/watch-errors.cjs';
232
+ pkg.scripts['dev:kdd'] = 'npm run dev 2>&1 | node .agentic/grafo/watch-errors.cjs';
233
233
  fs.writeJsonSync(pkgPath, pkg, { spaces: 2 });
234
234
  console.log(chalk.green(' ✓ Script dev:kdd agregado al package.json'));
235
235
  }
package/tdd-gate.cjs CHANGED
@@ -360,6 +360,14 @@ function runSelfHealingLoop(opts) {
360
360
  const contractGuardPath = require('path').join(__dirname, 'contract-guard.cjs');
361
361
  const cg = require(contractGuardPath);
362
362
  const dbPath = require('path').join(projectRoot || process.cwd(), '.agentic/memoria.db');
363
+ // Add project node_modules to require path so better-sqlite3 can be found
364
+ const projNodeModules = require('path').join(projectRoot || process.cwd(), 'node_modules');
365
+ if (!require.resolve.paths('better-sqlite3').includes(projNodeModules)) {
366
+ require('module').Module._nodeModulePaths(projNodeModules).forEach(p => {
367
+ if (!require.resolve.paths('').includes(p)) require.resolve.paths('').push(p);
368
+ });
369
+ module.paths.unshift(projNodeModules);
370
+ }
363
371
  const DB = (() => {
364
372
  try { return new (require('better-sqlite3'))(dbPath); } catch { return null; }
365
373
  })();