@specverse/engines 6.30.5 → 6.32.0

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.
Files changed (29) hide show
  1. package/dist/ai/analyse-runner.d.ts.map +1 -1
  2. package/dist/ai/analyse-runner.js +12 -0
  3. package/dist/ai/analyse-runner.js.map +1 -1
  4. package/dist/ai/behaviours-runner.d.ts.map +1 -1
  5. package/dist/ai/behaviours-runner.js +12 -0
  6. package/dist/ai/behaviours-runner.js.map +1 -1
  7. package/dist/ai/microcall-orchestrator.d.ts +8 -0
  8. package/dist/ai/microcall-orchestrator.d.ts.map +1 -1
  9. package/dist/ai/microcall-orchestrator.js +5 -1
  10. package/dist/ai/microcall-orchestrator.js.map +1 -1
  11. package/dist/ai/processes-to-microcall-context.d.ts +66 -0
  12. package/dist/ai/processes-to-microcall-context.d.ts.map +1 -0
  13. package/dist/ai/processes-to-microcall-context.js +148 -0
  14. package/dist/ai/processes-to-microcall-context.js.map +1 -0
  15. package/dist/ai/skeleton-emitter.d.ts +1 -1
  16. package/dist/ai/skeleton-emitter.d.ts.map +1 -1
  17. package/dist/ai/skeleton-emitter.js +57 -0
  18. package/dist/ai/skeleton-emitter.js.map +1 -1
  19. package/dist/analyse-prepass/adapters/react-views.d.ts +85 -0
  20. package/dist/analyse-prepass/adapters/react-views.d.ts.map +1 -1
  21. package/dist/analyse-prepass/adapters/react-views.js +290 -0
  22. package/dist/analyse-prepass/adapters/react-views.js.map +1 -1
  23. package/dist/analyse-prepass/index.d.ts +18 -0
  24. package/dist/analyse-prepass/index.d.ts.map +1 -1
  25. package/dist/analyse-prepass/index.js +4 -0
  26. package/dist/analyse-prepass/index.js.map +1 -1
  27. package/dist/libs/instance-factories/cli/templates/commander/command-generator.js +10 -3
  28. package/libs/instance-factories/cli/templates/commander/command-generator.ts +10 -3
  29. package/package.json +3 -3
@@ -1335,7 +1335,7 @@ import type { ParserEngine } from '@specverse/types';`,
1335
1335
  },
1336
1336
  'ai.analyse': {
1337
1337
  imports: `import { resolve, basename } from 'path';
1338
- import { existsSync, mkdirSync, cpSync, statSync, readdirSync } from 'fs';`,
1338
+ import { existsSync, mkdirSync, cpSync, rmSync, statSync, readdirSync } from 'fs';`,
1339
1339
  handler: `// Resolve the absolute source dir.
1340
1340
  const userCwd = process.env.SPECVERSE_USER_CWD || process.cwd();
1341
1341
  const sourceAbs = resolve(userCwd, source);
@@ -1381,9 +1381,16 @@ import { existsSync, mkdirSync, cpSync, statSync, readdirSync } from 'fs';`,
1381
1381
  cpSync(sourceAbs, resolve(inDir, basename(sourceAbs)));
1382
1382
  }
1383
1383
  // Always strip noise (handles both fresh-copy and pre-populated cases).
1384
- for (const noise of ['.gitnexus', 'node_modules', '.DS_Store']) {
1384
+ // Engines 6.31.4+: also strip .git/. When source is a real git repo,
1385
+ // gitnexus reads the inherited .git/config upstream-URL and binds
1386
+ // the analyze run to the source-repo identity, ignoring our explicit
1387
+ // --name flag, so cypher --repo run-input-XXX 404s. Stripping .git/
1388
+ // forces gitnexus to register under our chosen name.
1389
+ // (Engines 6.31.4+: use the rmSync ES import — esbuild's ESM bundle
1390
+ // doesn't support require('fs').rmSync, which was silently failing.)
1391
+ for (const noise of ['.gitnexus', '.git', 'node_modules', '.DS_Store']) {
1385
1392
  const p = resolve(inDir, noise);
1386
- try { if (existsSync(p)) require('fs').rmSync(p, { recursive: true, force: true }); } catch {}
1393
+ try { if (existsSync(p)) rmSync(p, { recursive: true, force: true }); } catch {}
1387
1394
  }
1388
1395
 
1389
1396
  console.log(' source: ' + sourceAbs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@specverse/engines",
3
- "version": "6.30.5",
3
+ "version": "6.32.0",
4
4
  "description": "SpecVerse toolchain — parser, inference, realize, generators, AI, registry, bundles",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -61,9 +61,9 @@
61
61
  "@ai-sdk/anthropic": "^3.0.71",
62
62
  "@ai-sdk/openai-compatible": "^2.0.41",
63
63
  "@ai-sdk/provider": "^3.0.8",
64
- "@specverse/assets": "^1.10.2",
64
+ "@specverse/assets": "^1.16.0",
65
65
  "@specverse/engines": "^6.29.3",
66
- "@specverse/entities": "^5.2.2",
66
+ "@specverse/entities": "^5.3.0",
67
67
  "@specverse/runtime": "^5.0.1",
68
68
  "@specverse/types": "^5.1.0",
69
69
  "ai": "^6.0.168",