carto-md 2.0.3 → 2.0.4
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/cli/init.js +8 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carto-md",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Structural intelligence layer for AI coding tools. Indexes your codebase into SQLite — routes, models, import graph, blast radius, domains — and exposes 16 MCP tools for Kiro, Cursor, and Claude.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"carto": "src/cli/index.js"
|
package/src/cli/init.js
CHANGED
|
@@ -2,8 +2,7 @@ const fs = require('fs');
|
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const { detectFramework } = require('../detector/framework');
|
|
4
4
|
const { parseCartoIgnore } = require('../security/ignore');
|
|
5
|
-
const {
|
|
6
|
-
const { discoverFiles: discoverFilesV2 } = require('../store/sync-v2');
|
|
5
|
+
const { runSyncV2, discoverFiles: discoverFilesV2 } = require('../store/sync-v2');
|
|
7
6
|
|
|
8
7
|
async function run(projectRoot) {
|
|
9
8
|
console.log('[CARTO] Detecting project...');
|
|
@@ -52,9 +51,13 @@ async function run(projectRoot) {
|
|
|
52
51
|
// Install pre-commit hook
|
|
53
52
|
installGitHook(projectRoot);
|
|
54
53
|
|
|
55
|
-
// Run first sync
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
// Run first sync — V2 SQLite-backed indexer.
|
|
55
|
+
// (Previously: V1 runFullSync with empty file lists from resolveConfig — produced
|
|
56
|
+
// a 23ms no-op that left .carto/carto.db missing and AGENTS.md unpopulated.)
|
|
57
|
+
await runSyncV2({
|
|
58
|
+
projectRoot,
|
|
59
|
+
output: path.resolve(projectRoot, config.output || 'AGENTS.md')
|
|
60
|
+
});
|
|
58
61
|
|
|
59
62
|
// Auto-wire MCP config into installed AI tools
|
|
60
63
|
wireIDEs(projectRoot);
|