@optave/codegraph 2.4.0 → 2.5.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.
- package/README.md +64 -10
- package/package.json +15 -5
- package/src/builder.js +183 -22
- package/src/cli.js +239 -5
- package/src/cochange.js +8 -8
- package/src/communities.js +303 -0
- package/src/complexity.js +2056 -0
- package/src/config.js +20 -1
- package/src/db.js +111 -1
- package/src/embedder.js +49 -12
- package/src/export.js +25 -1
- package/src/flow.js +361 -0
- package/src/index.js +32 -2
- package/src/manifesto.js +442 -0
- package/src/mcp.js +244 -5
- package/src/paginate.js +70 -0
- package/src/parser.js +21 -5
- package/src/queries.js +396 -7
- package/src/structure.js +88 -24
- package/src/update-check.js +1 -0
- package/src/watcher.js +2 -2
package/src/update-check.js
CHANGED
|
@@ -109,6 +109,7 @@ export async function checkForUpdates(currentVersion, options = {}) {
|
|
|
109
109
|
if (process.env.CI) return null;
|
|
110
110
|
if (process.env.NO_UPDATE_CHECK) return null;
|
|
111
111
|
if (!process.stderr.isTTY) return null;
|
|
112
|
+
if (currentVersion.includes('-')) return null;
|
|
112
113
|
|
|
113
114
|
const cachePath = options.cachePath || CACHE_PATH;
|
|
114
115
|
const fetchFn = options._fetchLatest || fetchLatestVersion;
|
package/src/watcher.js
CHANGED
|
@@ -2,7 +2,7 @@ import fs from 'node:fs';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { readFileSafe } from './builder.js';
|
|
4
4
|
import { EXTENSIONS, IGNORE_DIRS, normalizePath } from './constants.js';
|
|
5
|
-
import { initSchema, openDb } from './db.js';
|
|
5
|
+
import { closeDb, initSchema, openDb } from './db.js';
|
|
6
6
|
import { appendJournalEntries } from './journal.js';
|
|
7
7
|
import { info, warn } from './logger.js';
|
|
8
8
|
import { createParseTreeCache, getActiveEngine, parseFileIncremental } from './parser.js';
|
|
@@ -261,7 +261,7 @@ export async function watchProject(rootDir, opts = {}) {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
if (cache) cache.clear();
|
|
264
|
-
db
|
|
264
|
+
closeDb(db);
|
|
265
265
|
process.exit(0);
|
|
266
266
|
});
|
|
267
267
|
}
|