Skip to content

Commit fb7815d

Browse files
fix: cli improvements (embed --db, DB locking, prerelease check, build logging)
- Add missing --db flag to `embed` command, passing customDbPath to buildEmbeddings - Add busy_timeout pragma (5s) and advisory lockfile to openDb/closeDb for concurrent access safety - Suppress update-check notifications for prerelease/dev versions (contains '-') - Log changed/removed file names at debug level during incremental builds Impact: 1 functions changed, 0 affected
1 parent 3dae2f0 commit fb7815d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/builder.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,8 @@ export async function buildGraph(rootDir, opts = {}) {
442442
);
443443
} else {
444444
info(`Incremental: ${parseChanges.length} changed, ${removed.length} removed`);
445-
if (parseChanges.length > 0) debug(`Changed files: ${parseChanges.map((c) => c.relPath).join(', ')}`);
445+
if (parseChanges.length > 0)
446+
debug(`Changed files: ${parseChanges.map((c) => c.relPath).join(', ')}`);
446447
if (removed.length > 0) debug(`Removed files: ${removed.join(', ')}`);
447448
// Remove embeddings/metrics/edges/nodes for changed and removed files
448449
// Embeddings must be deleted BEFORE nodes (we need node IDs to find them)

0 commit comments

Comments
 (0)