@colbymchenry/codegraph-win32-arm64 1.5.0 → 1.6.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/lib/dist/bin/codegraph.js +145 -29
- package/lib/dist/bin/codegraph.js.map +1 -1
- package/lib/dist/context/formatter.d.ts +7 -1
- package/lib/dist/context/formatter.d.ts.map +1 -1
- package/lib/dist/context/formatter.js +12 -6
- package/lib/dist/context/formatter.js.map +1 -1
- package/lib/dist/context/index.d.ts +12 -0
- package/lib/dist/context/index.d.ts.map +1 -1
- package/lib/dist/context/index.js +60 -14
- package/lib/dist/context/index.js.map +1 -1
- package/lib/dist/db/index.d.ts +37 -0
- package/lib/dist/db/index.d.ts.map +1 -1
- package/lib/dist/db/index.js +101 -1
- package/lib/dist/db/index.js.map +1 -1
- package/lib/dist/db/migrations.d.ts +1 -1
- package/lib/dist/db/migrations.d.ts.map +1 -1
- package/lib/dist/db/migrations.js +25 -1
- package/lib/dist/db/migrations.js.map +1 -1
- package/lib/dist/db/queries.d.ts +160 -3
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +400 -33
- package/lib/dist/db/queries.js.map +1 -1
- package/lib/dist/db/schema.sql +16 -3
- package/lib/dist/directory.d.ts +29 -0
- package/lib/dist/directory.d.ts.map +1 -1
- package/lib/dist/directory.js +52 -0
- package/lib/dist/directory.js.map +1 -1
- package/lib/dist/extraction/extraction-version.d.ts +1 -1
- package/lib/dist/extraction/extraction-version.js +1 -1
- package/lib/dist/extraction/function-ref.d.ts.map +1 -1
- package/lib/dist/extraction/function-ref.js +6 -0
- package/lib/dist/extraction/function-ref.js.map +1 -1
- package/lib/dist/extraction/generated-detection.d.ts +48 -12
- package/lib/dist/extraction/generated-detection.d.ts.map +1 -1
- package/lib/dist/extraction/generated-detection.js +176 -11
- package/lib/dist/extraction/generated-detection.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +38 -2
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +106 -0
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +284 -53
- package/lib/dist/extraction/index.js.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.js +19 -4
- package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
- package/lib/dist/extraction/languages/erlang.d.ts.map +1 -1
- package/lib/dist/extraction/languages/erlang.js +58 -22
- package/lib/dist/extraction/languages/erlang.js.map +1 -1
- package/lib/dist/extraction/languages/objc.d.ts.map +1 -1
- package/lib/dist/extraction/languages/objc.js +4 -0
- package/lib/dist/extraction/languages/objc.js.map +1 -1
- package/lib/dist/extraction/languages/rust.d.ts +20 -0
- package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
- package/lib/dist/extraction/languages/rust.js +47 -20
- package/lib/dist/extraction/languages/rust.js.map +1 -1
- package/lib/dist/extraction/parse-pool.d.ts +7 -0
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +20 -1
- package/lib/dist/extraction/parse-pool.js.map +1 -1
- package/lib/dist/extraction/tree-sitter-types.d.ts +2 -0
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.d.ts +5 -1
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +106 -50
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- package/lib/dist/graph/queries.d.ts.map +1 -1
- package/lib/dist/graph/queries.js +2 -0
- package/lib/dist/graph/queries.js.map +1 -1
- package/lib/dist/graph/traversal.js +1 -1
- package/lib/dist/graph/traversal.js.map +1 -1
- package/lib/dist/index.d.ts +22 -0
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +117 -1
- package/lib/dist/index.js.map +1 -1
- package/lib/dist/installer/index.d.ts +4 -3
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +8 -6
- package/lib/dist/installer/index.js.map +1 -1
- package/lib/dist/installer/targets/claude.d.ts.map +1 -1
- package/lib/dist/installer/targets/claude.js +37 -5
- package/lib/dist/installer/targets/claude.js.map +1 -1
- package/lib/dist/installer/targets/codex.d.ts +22 -8
- package/lib/dist/installer/targets/codex.d.ts.map +1 -1
- package/lib/dist/installer/targets/codex.js +65 -48
- package/lib/dist/installer/targets/codex.js.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.d.ts +32 -0
- package/lib/dist/installer/targets/copilot-cli.d.ts.map +1 -0
- package/lib/dist/installer/targets/copilot-cli.js +209 -0
- package/lib/dist/installer/targets/copilot-cli.js.map +1 -0
- package/lib/dist/installer/targets/copilot-jetbrains.d.ts +42 -0
- package/lib/dist/installer/targets/copilot-jetbrains.d.ts.map +1 -0
- package/lib/dist/installer/targets/copilot-jetbrains.js +238 -0
- package/lib/dist/installer/targets/copilot-jetbrains.js.map +1 -0
- package/lib/dist/installer/targets/copilot-vscode.d.ts +47 -0
- package/lib/dist/installer/targets/copilot-vscode.d.ts.map +1 -0
- package/lib/dist/installer/targets/copilot-vscode.js +219 -0
- package/lib/dist/installer/targets/copilot-vscode.js.map +1 -0
- package/lib/dist/installer/targets/registry.d.ts.map +1 -1
- package/lib/dist/installer/targets/registry.js +6 -0
- package/lib/dist/installer/targets/registry.js.map +1 -1
- package/lib/dist/installer/targets/toml.d.ts +6 -5
- package/lib/dist/installer/targets/toml.d.ts.map +1 -1
- package/lib/dist/installer/targets/toml.js +99 -20
- package/lib/dist/installer/targets/toml.js.map +1 -1
- package/lib/dist/installer/targets/types.d.ts +5 -5
- package/lib/dist/installer/targets/types.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-manager.d.ts +1 -1
- package/lib/dist/mcp/daemon-manager.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-manager.js +1 -1
- package/lib/dist/mcp/daemon-manager.js.map +1 -1
- package/lib/dist/mcp/daemon-paths.d.ts +6 -0
- package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-paths.js +54 -0
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-registry.d.ts +10 -0
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +51 -3
- package/lib/dist/mcp/daemon-registry.js.map +1 -1
- package/lib/dist/mcp/daemon.d.ts +9 -6
- package/lib/dist/mcp/daemon.d.ts.map +1 -1
- package/lib/dist/mcp/daemon.js +10 -8
- package/lib/dist/mcp/daemon.js.map +1 -1
- package/lib/dist/mcp/engine.d.ts +3 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +45 -3
- package/lib/dist/mcp/engine.js.map +1 -1
- package/lib/dist/mcp/explore-dedup.d.ts +137 -0
- package/lib/dist/mcp/explore-dedup.d.ts.map +1 -0
- package/lib/dist/mcp/explore-dedup.js +236 -0
- package/lib/dist/mcp/explore-dedup.js.map +1 -0
- package/lib/dist/mcp/explore-diagnostics.d.ts +289 -0
- package/lib/dist/mcp/explore-diagnostics.d.ts.map +1 -0
- package/lib/dist/mcp/explore-diagnostics.js +558 -0
- package/lib/dist/mcp/explore-diagnostics.js.map +1 -0
- package/lib/dist/mcp/explore-session-state.d.ts +217 -0
- package/lib/dist/mcp/explore-session-state.d.ts.map +1 -0
- package/lib/dist/mcp/explore-session-state.js +322 -0
- package/lib/dist/mcp/explore-session-state.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +24 -0
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +67 -6
- package/lib/dist/mcp/index.js.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.js +3 -1
- package/lib/dist/mcp/liveness-watchdog.js.map +1 -1
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +6 -1
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/server-instructions.d.ts +2 -2
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
- package/lib/dist/mcp/server-instructions.js +8 -3
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/session.d.ts +16 -0
- package/lib/dist/mcp/session.d.ts.map +1 -1
- package/lib/dist/mcp/session.js +36 -13
- package/lib/dist/mcp/session.js.map +1 -1
- package/lib/dist/mcp/tools.d.ts +276 -10
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +2402 -241
- package/lib/dist/mcp/tools.js.map +1 -1
- package/lib/dist/project-config.d.ts +23 -0
- package/lib/dist/project-config.d.ts.map +1 -1
- package/lib/dist/project-config.js +39 -2
- package/lib/dist/project-config.js.map +1 -1
- package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/c-fnptr-synthesizer.js +21 -19
- package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.js +39 -11
- package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
- package/lib/dist/resolution/frameworks/swift.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/swift.js +11 -1
- package/lib/dist/resolution/frameworks/swift.js.map +1 -1
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +18 -2
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +15 -4
- package/lib/dist/resolution/index.js.map +1 -1
- package/lib/dist/resolution/name-matcher.d.ts +30 -0
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +295 -5
- package/lib/dist/resolution/name-matcher.js.map +1 -1
- package/lib/dist/resolution/path-aliases.d.ts +6 -4
- package/lib/dist/resolution/path-aliases.d.ts.map +1 -1
- package/lib/dist/resolution/path-aliases.js +125 -17
- package/lib/dist/resolution/path-aliases.js.map +1 -1
- package/lib/dist/search/identifier-segments.d.ts +10 -0
- package/lib/dist/search/identifier-segments.d.ts.map +1 -1
- package/lib/dist/search/identifier-segments.js +29 -0
- package/lib/dist/search/identifier-segments.js.map +1 -1
- package/lib/dist/search/query-paths.d.ts +57 -0
- package/lib/dist/search/query-paths.d.ts.map +1 -0
- package/lib/dist/search/query-paths.js +298 -0
- package/lib/dist/search/query-paths.js.map +1 -0
- package/lib/dist/search/query-utils.d.ts +1 -1
- package/lib/dist/search/query-utils.d.ts.map +1 -1
- package/lib/dist/search/query-utils.js +13 -3
- package/lib/dist/search/query-utils.js.map +1 -1
- package/lib/dist/sync/watcher.d.ts +22 -0
- package/lib/dist/sync/watcher.d.ts.map +1 -1
- package/lib/dist/sync/watcher.js +51 -5
- package/lib/dist/sync/watcher.js.map +1 -1
- package/lib/dist/types.d.ts +20 -1
- package/lib/dist/types.d.ts.map +1 -1
- package/lib/dist/types.js +1 -0
- package/lib/dist/types.js.map +1 -1
- package/lib/kernel/codegraph-kernel.node +0 -0
- package/lib/node_modules/.package-lock.json +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
|
@@ -1109,7 +1109,7 @@ async function interfaceOverrideEdges(queries, onYield) {
|
|
|
1109
1109
|
// Concrete-side kinds vary by language: `class` covers Java / Kotlin /
|
|
1110
1110
|
// C# / TS / Swift-classes / Scala-classes; `struct` covers Swift value
|
|
1111
1111
|
// types that conform to protocols. Iterate both.
|
|
1112
|
-
const concreteKinds = ['class', 'struct'];
|
|
1112
|
+
const concreteKinds = ['class', 'struct', 'union'];
|
|
1113
1113
|
for (const kind of concreteKinds) {
|
|
1114
1114
|
for (const cls of queries.iterateNodesByKind(kind)) {
|
|
1115
1115
|
if ((++scanned255 & 63) === 0)
|
|
@@ -1305,7 +1305,11 @@ async function reactJsxChildEdges(ctx, onYield) {
|
|
|
1305
1305
|
const content = ctx.readFile(file);
|
|
1306
1306
|
if (!content || (!content.includes('</') && !content.includes('/>')))
|
|
1307
1307
|
continue; // JSX-file gate
|
|
1308
|
-
|
|
1308
|
+
// File-level language gate, not merely a project-level one: mixed C/JS
|
|
1309
|
+
// monorepos must not interpret `"<Foo/>"` inside C as JSX (#1560).
|
|
1310
|
+
const parents = ctx.getNodesInFile(file).filter((n) => PARENT_KINDS.has(n.kind) && JS_FAMILY.includes(n.language));
|
|
1311
|
+
if (parents.length === 0)
|
|
1312
|
+
continue;
|
|
1309
1313
|
for (const parent of parents) {
|
|
1310
1314
|
const src = sliceLines(content, parent.startLine, parent.endLine);
|
|
1311
1315
|
if (!src || (!src.includes('</') && !src.includes('/>')))
|
|
@@ -3230,6 +3234,10 @@ const ERLANG_BEHAVIOUR_FANOUT_CAP = 24;
|
|
|
3230
3234
|
*/
|
|
3231
3235
|
function erlangArityAt(src, openIdx) {
|
|
3232
3236
|
let depth = 1;
|
|
3237
|
+
// `<<1,2,3>>` binary literals: commas inside are element separators, not
|
|
3238
|
+
// argument separators. Tracked separately from bracket depth because the
|
|
3239
|
+
// single-char `<`/`>` comparison operators must stay inert (#1358).
|
|
3240
|
+
let binDepth = 0;
|
|
3233
3241
|
let commas = 0;
|
|
3234
3242
|
let sawArg = false;
|
|
3235
3243
|
const limit = Math.min(src.length, openIdx + 4000);
|
|
@@ -3252,6 +3260,17 @@ function erlangArityAt(src, openIdx) {
|
|
|
3252
3260
|
sawArg = true;
|
|
3253
3261
|
continue;
|
|
3254
3262
|
}
|
|
3263
|
+
if (ch === '<' && src[i + 1] === '<') {
|
|
3264
|
+
binDepth++;
|
|
3265
|
+
i++;
|
|
3266
|
+
sawArg = true;
|
|
3267
|
+
continue;
|
|
3268
|
+
}
|
|
3269
|
+
if (ch === '>' && src[i + 1] === '>' && binDepth > 0) {
|
|
3270
|
+
binDepth--;
|
|
3271
|
+
i++;
|
|
3272
|
+
continue;
|
|
3273
|
+
}
|
|
3255
3274
|
if (ch === '(' || ch === '[' || ch === '{') {
|
|
3256
3275
|
depth++;
|
|
3257
3276
|
sawArg = true;
|
|
@@ -3263,7 +3282,7 @@ function erlangArityAt(src, openIdx) {
|
|
|
3263
3282
|
return sawArg ? commas + 1 : 0;
|
|
3264
3283
|
continue;
|
|
3265
3284
|
}
|
|
3266
|
-
if (ch === ',' && depth === 1) {
|
|
3285
|
+
if (ch === ',' && depth === 1 && binDepth === 0) {
|
|
3267
3286
|
commas++;
|
|
3268
3287
|
continue;
|
|
3269
3288
|
}
|
|
@@ -3519,12 +3538,18 @@ async function erlangBehaviourDispatchEdges(queries, ctx, onYield) {
|
|
|
3519
3538
|
}
|
|
3520
3539
|
if (declaringBehaviours.size === 0)
|
|
3521
3540
|
return [];
|
|
3522
|
-
// Implementer target lookup, lazy per (behaviour, fn): implementers
|
|
3523
|
-
// from the `implements` edges extraction resolved, and the target is
|
|
3524
|
-
// implementer module's own exported `fn`
|
|
3541
|
+
// Implementer target lookup, lazy per (behaviour, fn, arity): implementers
|
|
3542
|
+
// come from the `implements` edges extraction resolved, and the target is
|
|
3543
|
+
// the implementer module's own exported `fn` node OF THE SITE'S ARITY —
|
|
3544
|
+
// function qualifiedNames carry arity (`mod::fn/2`, #1610), so the arity the
|
|
3545
|
+
// dispatch site used selects among same-named definitions.
|
|
3525
3546
|
const targetCache = new Map();
|
|
3526
|
-
const
|
|
3527
|
-
const
|
|
3547
|
+
const qnArity = (qn) => {
|
|
3548
|
+
const m = /\/(\d{1,3})$/.exec(qn);
|
|
3549
|
+
return m ? Number(m[1]) : -1;
|
|
3550
|
+
};
|
|
3551
|
+
const targetsOf = (behaviour, fn, arity) => {
|
|
3552
|
+
const cacheKey = `${behaviour.id}#${fn}/${arity}`;
|
|
3528
3553
|
let targets = targetCache.get(cacheKey);
|
|
3529
3554
|
if (targets)
|
|
3530
3555
|
return targets;
|
|
@@ -3535,7 +3560,10 @@ async function erlangBehaviourDispatchEdges(queries, ctx, onYield) {
|
|
|
3535
3560
|
continue;
|
|
3536
3561
|
const fnNode = ctx
|
|
3537
3562
|
.getNodesInFile(impl.filePath)
|
|
3538
|
-
.find((n) => n.kind === 'function' &&
|
|
3563
|
+
.find((n) => n.kind === 'function' &&
|
|
3564
|
+
n.name === fn &&
|
|
3565
|
+
qnArity(n.qualifiedName) === arity &&
|
|
3566
|
+
n.isExported !== false);
|
|
3539
3567
|
if (fnNode)
|
|
3540
3568
|
targets.push(fnNode);
|
|
3541
3569
|
}
|
|
@@ -3570,7 +3598,7 @@ async function erlangBehaviourDispatchEdges(queries, ctx, onYield) {
|
|
|
3570
3598
|
if (!behaviours || behaviours.length !== 1)
|
|
3571
3599
|
continue; // unknown or ambiguous
|
|
3572
3600
|
const behaviour = behaviours[0];
|
|
3573
|
-
const targets = targetsOf(behaviour, fn);
|
|
3601
|
+
const targets = targetsOf(behaviour, fn, arity);
|
|
3574
3602
|
if (targets.length === 0 || targets.length > ERLANG_BEHAVIOUR_FANOUT_CAP)
|
|
3575
3603
|
continue;
|
|
3576
3604
|
const line = safe.slice(0, m.index).split('\n').length;
|
|
@@ -3786,7 +3814,7 @@ exports.SYNTH_PASSES = [
|
|
|
3786
3814
|
{ name: 'closureCollEdges', gate: ALWAYS, run: (q, c, y) => closureCollectionEdges(q, c, y) },
|
|
3787
3815
|
{ name: 'emitterEdges', gate: ALWAYS, run: (_q, c, y) => eventEmitterEdges(c, y) },
|
|
3788
3816
|
{ name: 'renderEdges', gate: ALWAYS, run: (q, c, y) => reactRenderEdges(q, c, y) },
|
|
3789
|
-
{ name: 'jsxEdges', gate:
|
|
3817
|
+
{ name: 'jsxEdges', gate: (has) => has(...JS_FAMILY), run: (_q, c, y) => reactJsxChildEdges(c, y) },
|
|
3790
3818
|
{ name: 'vueEdges', gate: (has) => has('vue'), run: (_q, c, y) => vueTemplateEdges(c, y) },
|
|
3791
3819
|
{ name: 'svelteKitEdges', gate: (has) => has('svelte'), run: (_q, c, y) => svelteKitLoadEdges(c, y) },
|
|
3792
3820
|
{ name: 'pascalEdges', gate: ALWAYS, run: (_q, c, y) => pascalFormEdges(c, y) },
|