Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
fix: remove depth/cap from trace header; normalize paths in patch-builder
Joseph Mikhail034c5f84ef0f
diff --git a/core-ingestion/dist/patch-builder.js b/core-ingestion/dist/patch-builder.jsindex d23e94d4..7e72642c 100644--- a/core-ingestion/dist/patch-builder.js+++ b/core-ingestion/dist/patch-builder.js@@ -13,11 +13,14 @@ function deterministicId(input) {hash.slice(20, 32),].join('-');}+function normalizePath(filePath) {+ return filePath.replace(/\\/g, '/').toLowerCase();+}function nodeId(filePath, name) {- return deterministicId(`${filePath}:${name}`);+ return deterministicId(`${normalizePath(filePath)}:${name}`);}function edgeId(filePath, src, dst, predicate) {- return deterministicId(`${filePath}:${src}:${dst}:${predicate}`);+ return deterministicId(`${normalizePath(filePath)}:${src}:${dst}:${predicate}`);}// ---------------------------------------------------------------------------// Source type from file extension@@ -37,7 +40,7 @@ export function extractorName() {export const PREVIOUS_EXTRACTORS = ['tree-sitter/1.11', 'tree-sitter/1.10', 'tree-sitter/1.9', 'tree-sitter/1.8', 'tree-sitter/1.7', 'tree-sitter/1.6', 'tree-sitter/1.5', 'tree-sitter/1.4', 'tree-sitter/1.3', 'tree-sitter/1.2', 'tree-sitter/1.1'];/** Compute a patchId for a (filePath, sourceHash, extractorVersion) triple. */function computePatchId(filePath, sourceHash, extractor) {- return deterministicId(`${filePath}:${sourceHash}:${extractor}`);+ return deterministicId(`${normalizePath(filePath)}:${sourceHash}:${extractor}`);}/** Compute the legacy patchId (pre-1.1 scheme, no extractor suffix). */function legacyPatchId(filePath, sourceHash) {diff --git a/core-ingestion/src/patch-builder.ts b/core-ingestion/src/patch-builder.tsindex 5cc1b426..c49ca36b 100644--- a/core-ingestion/src/patch-builder.ts+++ b/core-ingestion/src/patch-builder.ts@@ -18,12 +18,16 @@ function deterministicId(input: string): string {].join('-');}+function normalizePath(filePath: string): string {+ return filePath.replace(/\\/g, '/').toLowerCase();+}+function nodeId(filePath: string, name: string): string {- return deterministicId(`${filePath}:${name}`);+ return deterministicId(`${normalizePath(filePath)}:${name}`);}function edgeId(filePath: string, src: string, dst: string, predicate: string): string {- return deterministicId(`${filePath}:${src}:${dst}:${predicate}`);+ return deterministicId(`${normalizePath(filePath)}:${src}:${dst}:${predicate}`);}// ---------------------------------------------------------------------------@@ -46,7 +50,7 @@ export const PREVIOUS_EXTRACTORS = ['tree-sitter/1.11', 'tree-sitter/1.10', 'tre/** Compute a patchId for a (filePath, sourceHash, extractorVersion) triple. */function computePatchId(filePath: string, sourceHash: string, extractor: string): string {- return deterministicId(`${filePath}:${sourceHash}:${extractor}`);+ return deterministicId(`${normalizePath(filePath)}:${sourceHash}:${extractor}`);}/** Compute the legacy patchId (pre-1.1 scheme, no extractor suffix). */diff --git a/ix-cli/src/cli/commands/depends.ts b/ix-cli/src/cli/commands/depends.tsindex 9de5afac..8bb17aff 100644--- a/ix-cli/src/cli/commands/depends.ts+++ b/ix-cli/src/cli/commands/depends.ts@@ -227,7 +227,7 @@ export function registerDependsCommand(program: Command): void {return;}- console.log(chalk.bold(`Dependents of ${target.name}:`));+ console.log(chalk.bold(`Dependents`));const rootLine = ` ${chalk.cyan((target.kind ?? "").padEnd(10))} ${chalk.bold(target.name)}`;console.log(rootLine);diff --git a/ix-cli/src/cli/commands/trace.ts b/ix-cli/src/cli/commands/trace.tsindex 9ce483a4..2beadb34 100644--- a/ix-cli/src/cli/commands/trace.ts+++ b/ix-cli/src/cli/commands/trace.ts@@ -485,8 +485,6 @@ export function registerTraceCommand(program: Command): void {console.log(chalk.bold("\nTrace"));printKV("Direction", cap(direction));printKV("Kind ", cap(relKind));- printKV("Depth ", String(maxDepth));- if (isFinite(maxNodes)) printKV("Cap ", String(maxNodes));if (tree.length === 0) {const relDir = doUpstream ? "upstream" : "downstream";