@colbymchenry/codegraph 0.8.0 → 0.9.1
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 +23 -7
- package/npm-shim.js +43 -0
- package/package.json +13 -51
- package/LICENSE +0 -21
- package/dist/bin/codegraph.d.ts +0 -21
- package/dist/bin/codegraph.d.ts.map +0 -1
- package/dist/bin/codegraph.js +0 -1257
- package/dist/bin/codegraph.js.map +0 -1
- package/dist/bin/node-version-check.d.ts +0 -20
- package/dist/bin/node-version-check.d.ts.map +0 -1
- package/dist/bin/node-version-check.js +0 -42
- package/dist/bin/node-version-check.js.map +0 -1
- package/dist/bin/uninstall.d.ts +0 -14
- package/dist/bin/uninstall.d.ts.map +0 -1
- package/dist/bin/uninstall.js +0 -36
- package/dist/bin/uninstall.js.map +0 -1
- package/dist/config.d.ts +0 -51
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -321
- package/dist/config.js.map +0 -1
- package/dist/context/formatter.d.ts +0 -30
- package/dist/context/formatter.d.ts.map +0 -1
- package/dist/context/formatter.js +0 -244
- package/dist/context/formatter.js.map +0 -1
- package/dist/context/index.d.ts +0 -97
- package/dist/context/index.d.ts.map +0 -1
- package/dist/context/index.js +0 -1050
- package/dist/context/index.js.map +0 -1
- package/dist/db/index.d.ts +0 -72
- package/dist/db/index.d.ts.map +0 -1
- package/dist/db/index.js +0 -200
- package/dist/db/index.js.map +0 -1
- package/dist/db/migrations.d.ts +0 -44
- package/dist/db/migrations.d.ts.map +0 -1
- package/dist/db/migrations.js +0 -131
- package/dist/db/migrations.js.map +0 -1
- package/dist/db/queries.d.ts +0 -253
- package/dist/db/queries.d.ts.map +0 -1
- package/dist/db/queries.js +0 -1207
- package/dist/db/queries.js.map +0 -1
- package/dist/db/schema.sql +0 -151
- package/dist/db/sqlite-adapter.d.ts +0 -52
- package/dist/db/sqlite-adapter.d.ts.map +0 -1
- package/dist/db/sqlite-adapter.js +0 -237
- package/dist/db/sqlite-adapter.js.map +0 -1
- package/dist/directory.d.ts +0 -57
- package/dist/directory.d.ts.map +0 -1
- package/dist/directory.js +0 -264
- package/dist/directory.js.map +0 -1
- package/dist/errors.d.ts +0 -136
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -219
- package/dist/errors.js.map +0 -1
- package/dist/extraction/dfm-extractor.d.ts +0 -31
- package/dist/extraction/dfm-extractor.d.ts.map +0 -1
- package/dist/extraction/dfm-extractor.js +0 -151
- package/dist/extraction/dfm-extractor.js.map +0 -1
- package/dist/extraction/grammars.d.ts +0 -78
- package/dist/extraction/grammars.d.ts.map +0 -1
- package/dist/extraction/grammars.js +0 -322
- package/dist/extraction/grammars.js.map +0 -1
- package/dist/extraction/index.d.ts +0 -130
- package/dist/extraction/index.d.ts.map +0 -1
- package/dist/extraction/index.js +0 -1305
- package/dist/extraction/index.js.map +0 -1
- package/dist/extraction/languages/c-cpp.d.ts +0 -4
- package/dist/extraction/languages/c-cpp.d.ts.map +0 -1
- package/dist/extraction/languages/c-cpp.js +0 -126
- package/dist/extraction/languages/c-cpp.js.map +0 -1
- package/dist/extraction/languages/csharp.d.ts +0 -3
- package/dist/extraction/languages/csharp.d.ts.map +0 -1
- package/dist/extraction/languages/csharp.js +0 -72
- package/dist/extraction/languages/csharp.js.map +0 -1
- package/dist/extraction/languages/dart.d.ts +0 -3
- package/dist/extraction/languages/dart.d.ts.map +0 -1
- package/dist/extraction/languages/dart.js +0 -192
- package/dist/extraction/languages/dart.js.map +0 -1
- package/dist/extraction/languages/go.d.ts +0 -3
- package/dist/extraction/languages/go.d.ts.map +0 -1
- package/dist/extraction/languages/go.js +0 -58
- package/dist/extraction/languages/go.js.map +0 -1
- package/dist/extraction/languages/index.d.ts +0 -10
- package/dist/extraction/languages/index.d.ts.map +0 -1
- package/dist/extraction/languages/index.js +0 -45
- package/dist/extraction/languages/index.js.map +0 -1
- package/dist/extraction/languages/java.d.ts +0 -3
- package/dist/extraction/languages/java.d.ts.map +0 -1
- package/dist/extraction/languages/java.js +0 -64
- package/dist/extraction/languages/java.js.map +0 -1
- package/dist/extraction/languages/javascript.d.ts +0 -3
- package/dist/extraction/languages/javascript.d.ts.map +0 -1
- package/dist/extraction/languages/javascript.js +0 -90
- package/dist/extraction/languages/javascript.js.map +0 -1
- package/dist/extraction/languages/kotlin.d.ts +0 -3
- package/dist/extraction/languages/kotlin.d.ts.map +0 -1
- package/dist/extraction/languages/kotlin.js +0 -253
- package/dist/extraction/languages/kotlin.js.map +0 -1
- package/dist/extraction/languages/pascal.d.ts +0 -3
- package/dist/extraction/languages/pascal.d.ts.map +0 -1
- package/dist/extraction/languages/pascal.js +0 -66
- package/dist/extraction/languages/pascal.js.map +0 -1
- package/dist/extraction/languages/php.d.ts +0 -3
- package/dist/extraction/languages/php.d.ts.map +0 -1
- package/dist/extraction/languages/php.js +0 -107
- package/dist/extraction/languages/php.js.map +0 -1
- package/dist/extraction/languages/python.d.ts +0 -3
- package/dist/extraction/languages/python.d.ts.map +0 -1
- package/dist/extraction/languages/python.js +0 -56
- package/dist/extraction/languages/python.js.map +0 -1
- package/dist/extraction/languages/ruby.d.ts +0 -3
- package/dist/extraction/languages/ruby.d.ts.map +0 -1
- package/dist/extraction/languages/ruby.js +0 -114
- package/dist/extraction/languages/ruby.js.map +0 -1
- package/dist/extraction/languages/rust.d.ts +0 -3
- package/dist/extraction/languages/rust.d.ts.map +0 -1
- package/dist/extraction/languages/rust.js +0 -109
- package/dist/extraction/languages/rust.js.map +0 -1
- package/dist/extraction/languages/scala.d.ts +0 -3
- package/dist/extraction/languages/scala.d.ts.map +0 -1
- package/dist/extraction/languages/scala.js +0 -139
- package/dist/extraction/languages/scala.js.map +0 -1
- package/dist/extraction/languages/swift.d.ts +0 -3
- package/dist/extraction/languages/swift.d.ts.map +0 -1
- package/dist/extraction/languages/swift.js +0 -91
- package/dist/extraction/languages/swift.js.map +0 -1
- package/dist/extraction/languages/typescript.d.ts +0 -3
- package/dist/extraction/languages/typescript.d.ts.map +0 -1
- package/dist/extraction/languages/typescript.js +0 -129
- package/dist/extraction/languages/typescript.js.map +0 -1
- package/dist/extraction/liquid-extractor.d.ts +0 -52
- package/dist/extraction/liquid-extractor.d.ts.map +0 -1
- package/dist/extraction/liquid-extractor.js +0 -313
- package/dist/extraction/liquid-extractor.js.map +0 -1
- package/dist/extraction/parse-worker.d.ts +0 -8
- package/dist/extraction/parse-worker.d.ts.map +0 -1
- package/dist/extraction/parse-worker.js +0 -94
- package/dist/extraction/parse-worker.js.map +0 -1
- package/dist/extraction/svelte-extractor.d.ts +0 -56
- package/dist/extraction/svelte-extractor.d.ts.map +0 -1
- package/dist/extraction/svelte-extractor.js +0 -272
- package/dist/extraction/svelte-extractor.js.map +0 -1
- package/dist/extraction/tree-sitter-helpers.d.ts +0 -28
- package/dist/extraction/tree-sitter-helpers.d.ts.map +0 -1
- package/dist/extraction/tree-sitter-helpers.js +0 -103
- package/dist/extraction/tree-sitter-helpers.js.map +0 -1
- package/dist/extraction/tree-sitter-types.d.ts +0 -179
- package/dist/extraction/tree-sitter-types.d.ts.map +0 -1
- package/dist/extraction/tree-sitter-types.js +0 -10
- package/dist/extraction/tree-sitter-types.js.map +0 -1
- package/dist/extraction/tree-sitter.d.ts +0 -233
- package/dist/extraction/tree-sitter.d.ts.map +0 -1
- package/dist/extraction/tree-sitter.js +0 -2393
- package/dist/extraction/tree-sitter.js.map +0 -1
- package/dist/extraction/vue-extractor.d.ts +0 -36
- package/dist/extraction/vue-extractor.d.ts.map +0 -1
- package/dist/extraction/vue-extractor.js +0 -163
- package/dist/extraction/vue-extractor.js.map +0 -1
- package/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
- package/dist/graph/index.d.ts +0 -8
- package/dist/graph/index.d.ts.map +0 -1
- package/dist/graph/index.js +0 -13
- package/dist/graph/index.js.map +0 -1
- package/dist/graph/queries.d.ts +0 -106
- package/dist/graph/queries.d.ts.map +0 -1
- package/dist/graph/queries.js +0 -366
- package/dist/graph/queries.js.map +0 -1
- package/dist/graph/traversal.d.ts +0 -127
- package/dist/graph/traversal.d.ts.map +0 -1
- package/dist/graph/traversal.js +0 -493
- package/dist/graph/traversal.js.map +0 -1
- package/dist/index.d.ts +0 -447
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -825
- package/dist/index.js.map +0 -1
- package/dist/installer/claude-md-template.d.ts +0 -14
- package/dist/installer/claude-md-template.d.ts.map +0 -1
- package/dist/installer/claude-md-template.js +0 -21
- package/dist/installer/claude-md-template.js.map +0 -1
- package/dist/installer/config-writer.d.ts +0 -29
- package/dist/installer/config-writer.d.ts.map +0 -1
- package/dist/installer/config-writer.js +0 -111
- package/dist/installer/config-writer.js.map +0 -1
- package/dist/installer/index.d.ts +0 -65
- package/dist/installer/index.d.ts.map +0 -1
- package/dist/installer/index.js +0 -406
- package/dist/installer/index.js.map +0 -1
- package/dist/installer/instructions-template.d.ts +0 -28
- package/dist/installer/instructions-template.d.ts.map +0 -1
- package/dist/installer/instructions-template.js +0 -64
- package/dist/installer/instructions-template.js.map +0 -1
- package/dist/installer/targets/claude.d.ts +0 -31
- package/dist/installer/targets/claude.d.ts.map +0 -1
- package/dist/installer/targets/claude.js +0 -308
- package/dist/installer/targets/claude.js.map +0 -1
- package/dist/installer/targets/codex.d.ts +0 -18
- package/dist/installer/targets/codex.d.ts.map +0 -1
- package/dist/installer/targets/codex.js +0 -185
- package/dist/installer/targets/codex.js.map +0 -1
- package/dist/installer/targets/cursor.d.ts +0 -35
- package/dist/installer/targets/cursor.d.ts.map +0 -1
- package/dist/installer/targets/cursor.js +0 -229
- package/dist/installer/targets/cursor.js.map +0 -1
- package/dist/installer/targets/opencode.d.ts +0 -30
- package/dist/installer/targets/opencode.d.ts.map +0 -1
- package/dist/installer/targets/opencode.js +0 -235
- package/dist/installer/targets/opencode.js.map +0 -1
- package/dist/installer/targets/registry.d.ts +0 -35
- package/dist/installer/targets/registry.d.ts.map +0 -1
- package/dist/installer/targets/registry.js +0 -83
- package/dist/installer/targets/registry.js.map +0 -1
- package/dist/installer/targets/shared.d.ts +0 -77
- package/dist/installer/targets/shared.d.ts.map +0 -1
- package/dist/installer/targets/shared.js +0 -246
- package/dist/installer/targets/shared.js.map +0 -1
- package/dist/installer/targets/toml.d.ts +0 -52
- package/dist/installer/targets/toml.d.ts.map +0 -1
- package/dist/installer/targets/toml.js +0 -147
- package/dist/installer/targets/toml.js.map +0 -1
- package/dist/installer/targets/types.d.ts +0 -116
- package/dist/installer/targets/types.d.ts.map +0 -1
- package/dist/installer/targets/types.js +0 -16
- package/dist/installer/targets/types.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -94
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -453
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/server-instructions.d.ts +0 -19
- package/dist/mcp/server-instructions.d.ts.map +0 -1
- package/dist/mcp/server-instructions.js +0 -71
- package/dist/mcp/server-instructions.js.map +0 -1
- package/dist/mcp/tools.d.ts +0 -257
- package/dist/mcp/tools.d.ts.map +0 -1
- package/dist/mcp/tools.js +0 -1633
- package/dist/mcp/tools.js.map +0 -1
- package/dist/mcp/transport.d.ts +0 -106
- package/dist/mcp/transport.d.ts.map +0 -1
- package/dist/mcp/transport.js +0 -233
- package/dist/mcp/transport.js.map +0 -1
- package/dist/resolution/frameworks/cargo-workspace.d.ts +0 -18
- package/dist/resolution/frameworks/cargo-workspace.d.ts.map +0 -1
- package/dist/resolution/frameworks/cargo-workspace.js +0 -225
- package/dist/resolution/frameworks/cargo-workspace.js.map +0 -1
- package/dist/resolution/frameworks/csharp.d.ts +0 -8
- package/dist/resolution/frameworks/csharp.d.ts.map +0 -1
- package/dist/resolution/frameworks/csharp.js +0 -213
- package/dist/resolution/frameworks/csharp.js.map +0 -1
- package/dist/resolution/frameworks/express.d.ts +0 -8
- package/dist/resolution/frameworks/express.d.ts.map +0 -1
- package/dist/resolution/frameworks/express.js +0 -225
- package/dist/resolution/frameworks/express.js.map +0 -1
- package/dist/resolution/frameworks/go.d.ts +0 -8
- package/dist/resolution/frameworks/go.d.ts.map +0 -1
- package/dist/resolution/frameworks/go.js +0 -158
- package/dist/resolution/frameworks/go.js.map +0 -1
- package/dist/resolution/frameworks/index.d.ts +0 -42
- package/dist/resolution/frameworks/index.d.ts.map +0 -1
- package/dist/resolution/frameworks/index.js +0 -133
- package/dist/resolution/frameworks/index.js.map +0 -1
- package/dist/resolution/frameworks/java.d.ts +0 -8
- package/dist/resolution/frameworks/java.d.ts.map +0 -1
- package/dist/resolution/frameworks/java.js +0 -177
- package/dist/resolution/frameworks/java.js.map +0 -1
- package/dist/resolution/frameworks/laravel.d.ts +0 -13
- package/dist/resolution/frameworks/laravel.d.ts.map +0 -1
- package/dist/resolution/frameworks/laravel.js +0 -248
- package/dist/resolution/frameworks/laravel.js.map +0 -1
- package/dist/resolution/frameworks/nestjs.d.ts +0 -26
- package/dist/resolution/frameworks/nestjs.d.ts.map +0 -1
- package/dist/resolution/frameworks/nestjs.js +0 -374
- package/dist/resolution/frameworks/nestjs.js.map +0 -1
- package/dist/resolution/frameworks/python.d.ts +0 -10
- package/dist/resolution/frameworks/python.d.ts.map +0 -1
- package/dist/resolution/frameworks/python.js +0 -278
- package/dist/resolution/frameworks/python.js.map +0 -1
- package/dist/resolution/frameworks/react.d.ts +0 -8
- package/dist/resolution/frameworks/react.d.ts.map +0 -1
- package/dist/resolution/frameworks/react.js +0 -272
- package/dist/resolution/frameworks/react.js.map +0 -1
- package/dist/resolution/frameworks/ruby.d.ts +0 -8
- package/dist/resolution/frameworks/ruby.d.ts.map +0 -1
- package/dist/resolution/frameworks/ruby.js +0 -198
- package/dist/resolution/frameworks/ruby.js.map +0 -1
- package/dist/resolution/frameworks/rust.d.ts +0 -8
- package/dist/resolution/frameworks/rust.d.ts.map +0 -1
- package/dist/resolution/frameworks/rust.js +0 -207
- package/dist/resolution/frameworks/rust.js.map +0 -1
- package/dist/resolution/frameworks/svelte.d.ts +0 -9
- package/dist/resolution/frameworks/svelte.d.ts.map +0 -1
- package/dist/resolution/frameworks/svelte.js +0 -249
- package/dist/resolution/frameworks/svelte.js.map +0 -1
- package/dist/resolution/frameworks/swift.d.ts +0 -10
- package/dist/resolution/frameworks/swift.d.ts.map +0 -1
- package/dist/resolution/frameworks/swift.js +0 -376
- package/dist/resolution/frameworks/swift.js.map +0 -1
- package/dist/resolution/frameworks/vue.d.ts +0 -9
- package/dist/resolution/frameworks/vue.d.ts.map +0 -1
- package/dist/resolution/frameworks/vue.js +0 -306
- package/dist/resolution/frameworks/vue.js.map +0 -1
- package/dist/resolution/import-resolver.d.ts +0 -40
- package/dist/resolution/import-resolver.d.ts.map +0 -1
- package/dist/resolution/import-resolver.js +0 -663
- package/dist/resolution/import-resolver.js.map +0 -1
- package/dist/resolution/index.d.ts +0 -106
- package/dist/resolution/index.d.ts.map +0 -1
- package/dist/resolution/index.js +0 -709
- package/dist/resolution/index.js.map +0 -1
- package/dist/resolution/name-matcher.d.ts +0 -32
- package/dist/resolution/name-matcher.d.ts.map +0 -1
- package/dist/resolution/name-matcher.js +0 -384
- package/dist/resolution/name-matcher.js.map +0 -1
- package/dist/resolution/path-aliases.d.ts +0 -68
- package/dist/resolution/path-aliases.d.ts.map +0 -1
- package/dist/resolution/path-aliases.js +0 -238
- package/dist/resolution/path-aliases.js.map +0 -1
- package/dist/resolution/strip-comments.d.ts +0 -27
- package/dist/resolution/strip-comments.d.ts.map +0 -1
- package/dist/resolution/strip-comments.js +0 -441
- package/dist/resolution/strip-comments.js.map +0 -1
- package/dist/resolution/types.d.ts +0 -172
- package/dist/resolution/types.d.ts.map +0 -1
- package/dist/resolution/types.js +0 -8
- package/dist/resolution/types.js.map +0 -1
- package/dist/search/query-parser.d.ts +0 -57
- package/dist/search/query-parser.d.ts.map +0 -1
- package/dist/search/query-parser.js +0 -177
- package/dist/search/query-parser.js.map +0 -1
- package/dist/search/query-utils.d.ts +0 -53
- package/dist/search/query-utils.d.ts.map +0 -1
- package/dist/search/query-utils.js +0 -350
- package/dist/search/query-utils.js.map +0 -1
- package/dist/sync/git-hooks.d.ts +0 -45
- package/dist/sync/git-hooks.d.ts.map +0 -1
- package/dist/sync/git-hooks.js +0 -223
- package/dist/sync/git-hooks.js.map +0 -1
- package/dist/sync/index.d.ts +0 -17
- package/dist/sync/index.d.ts.map +0 -1
- package/dist/sync/index.js +0 -28
- package/dist/sync/index.js.map +0 -1
- package/dist/sync/watch-policy.d.ts +0 -48
- package/dist/sync/watch-policy.d.ts.map +0 -1
- package/dist/sync/watch-policy.js +0 -124
- package/dist/sync/watch-policy.js.map +0 -1
- package/dist/sync/watcher.d.ts +0 -81
- package/dist/sync/watcher.d.ts.map +0 -1
- package/dist/sync/watcher.js +0 -194
- package/dist/sync/watcher.js.map +0 -1
- package/dist/types.d.ts +0 -423
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -256
- package/dist/types.js.map +0 -1
- package/dist/ui/glyphs.d.ts +0 -42
- package/dist/ui/glyphs.d.ts.map +0 -1
- package/dist/ui/glyphs.js +0 -78
- package/dist/ui/glyphs.js.map +0 -1
- package/dist/ui/shimmer-progress.d.ts +0 -11
- package/dist/ui/shimmer-progress.d.ts.map +0 -1
- package/dist/ui/shimmer-progress.js +0 -90
- package/dist/ui/shimmer-progress.js.map +0 -1
- package/dist/ui/shimmer-worker.d.ts +0 -2
- package/dist/ui/shimmer-worker.d.ts.map +0 -1
- package/dist/ui/shimmer-worker.js +0 -118
- package/dist/ui/shimmer-worker.js.map +0 -1
- package/dist/ui/types.d.ts +0 -17
- package/dist/ui/types.d.ts.map +0 -1
- package/dist/ui/types.js +0 -3
- package/dist/ui/types.js.map +0 -1
- package/dist/utils.d.ts +0 -205
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -549
- package/dist/utils.js.map +0 -1
- package/scripts/agent-eval/audit.sh +0 -68
- package/scripts/agent-eval/itrun.sh +0 -107
- package/scripts/agent-eval/parse-run.mjs +0 -45
- package/scripts/agent-eval/parse-session.mjs +0 -93
- package/scripts/agent-eval/run-agent.sh +0 -34
- package/scripts/agent-eval/run-all.sh +0 -67
- package/scripts/extract-release-notes.mjs +0 -130
- package/scripts/local-install.sh +0 -41
- package/scripts/patch-tree-sitter-dart.js +0 -112
- package/scripts/release.sh +0 -68
package/dist/sync/watcher.js
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* File Watcher
|
|
4
|
-
*
|
|
5
|
-
* Watches the project directory for file changes and triggers
|
|
6
|
-
* debounced sync operations to keep the code graph up-to-date.
|
|
7
|
-
*
|
|
8
|
-
* Uses Node.js native fs.watch with recursive mode (macOS FSEvents,
|
|
9
|
-
* Windows ReadDirectoryChangesW, Linux inotify on Node 19+).
|
|
10
|
-
*/
|
|
11
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(o, k2, desc);
|
|
18
|
-
}) : (function(o, m, k, k2) {
|
|
19
|
-
if (k2 === undefined) k2 = k;
|
|
20
|
-
o[k2] = m[k];
|
|
21
|
-
}));
|
|
22
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
-
}) : function(o, v) {
|
|
25
|
-
o["default"] = v;
|
|
26
|
-
});
|
|
27
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
28
|
-
var ownKeys = function(o) {
|
|
29
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
30
|
-
var ar = [];
|
|
31
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
32
|
-
return ar;
|
|
33
|
-
};
|
|
34
|
-
return ownKeys(o);
|
|
35
|
-
};
|
|
36
|
-
return function (mod) {
|
|
37
|
-
if (mod && mod.__esModule) return mod;
|
|
38
|
-
var result = {};
|
|
39
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
40
|
-
__setModuleDefault(result, mod);
|
|
41
|
-
return result;
|
|
42
|
-
};
|
|
43
|
-
})();
|
|
44
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.FileWatcher = void 0;
|
|
46
|
-
const fs = __importStar(require("fs"));
|
|
47
|
-
const extraction_1 = require("../extraction");
|
|
48
|
-
const errors_1 = require("../errors");
|
|
49
|
-
const utils_1 = require("../utils");
|
|
50
|
-
const watch_policy_1 = require("./watch-policy");
|
|
51
|
-
/**
|
|
52
|
-
* FileWatcher monitors a project directory for changes and triggers
|
|
53
|
-
* debounced sync operations via a provided callback.
|
|
54
|
-
*
|
|
55
|
-
* Design goals:
|
|
56
|
-
* - Minimal resource usage (native OS file events, no polling)
|
|
57
|
-
* - Debounced to avoid thrashing on rapid saves
|
|
58
|
-
* - Filters against CodeGraph include/exclude patterns
|
|
59
|
-
* - Ignores .codegraph/ directory changes
|
|
60
|
-
*/
|
|
61
|
-
class FileWatcher {
|
|
62
|
-
watcher = null;
|
|
63
|
-
debounceTimer = null;
|
|
64
|
-
hasChanges = false;
|
|
65
|
-
syncing = false;
|
|
66
|
-
stopped = false;
|
|
67
|
-
projectRoot;
|
|
68
|
-
config;
|
|
69
|
-
debounceMs;
|
|
70
|
-
syncFn;
|
|
71
|
-
onSyncComplete;
|
|
72
|
-
onSyncError;
|
|
73
|
-
constructor(projectRoot, config, syncFn, options = {}) {
|
|
74
|
-
this.projectRoot = projectRoot;
|
|
75
|
-
this.config = config;
|
|
76
|
-
this.syncFn = syncFn;
|
|
77
|
-
this.debounceMs = options.debounceMs ?? 2000;
|
|
78
|
-
this.onSyncComplete = options.onSyncComplete;
|
|
79
|
-
this.onSyncError = options.onSyncError;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Start watching for file changes.
|
|
83
|
-
* Returns true if watching started successfully, false otherwise.
|
|
84
|
-
*/
|
|
85
|
-
start() {
|
|
86
|
-
if (this.watcher)
|
|
87
|
-
return true; // Already watching
|
|
88
|
-
this.stopped = false;
|
|
89
|
-
// Some environments make recursive fs.watch unusable — most notably WSL2
|
|
90
|
-
// /mnt/ drives, where setup blocks long enough to break MCP startup
|
|
91
|
-
// handshakes (issue #199). Skip watching there; callers fall back to
|
|
92
|
-
// manual `codegraph sync` or the git sync hooks.
|
|
93
|
-
const disabledReason = (0, watch_policy_1.watchDisabledReason)(this.projectRoot);
|
|
94
|
-
if (disabledReason) {
|
|
95
|
-
(0, errors_1.logDebug)('File watcher disabled', { reason: disabledReason, projectRoot: this.projectRoot });
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
try {
|
|
99
|
-
this.watcher = fs.watch(this.projectRoot, { recursive: true }, (_eventType, filename) => {
|
|
100
|
-
if (!filename || this.stopped)
|
|
101
|
-
return;
|
|
102
|
-
// Normalize path separators
|
|
103
|
-
const normalized = (0, utils_1.normalizePath)(filename);
|
|
104
|
-
// Ignore .codegraph/ directory changes (our own DB writes)
|
|
105
|
-
if (normalized === '.codegraph' ||
|
|
106
|
-
normalized.startsWith('.codegraph/') ||
|
|
107
|
-
normalized.startsWith('.codegraph\\')) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
// Filter against include/exclude patterns
|
|
111
|
-
if (!(0, extraction_1.shouldIncludeFile)(normalized, this.config)) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
(0, errors_1.logDebug)('File change detected', { file: normalized });
|
|
115
|
-
this.hasChanges = true;
|
|
116
|
-
this.scheduleSync();
|
|
117
|
-
});
|
|
118
|
-
// Handle watcher errors gracefully
|
|
119
|
-
this.watcher.on('error', (err) => {
|
|
120
|
-
(0, errors_1.logWarn)('File watcher error', { error: String(err) });
|
|
121
|
-
// Don't crash — watcher may recover or user can restart
|
|
122
|
-
});
|
|
123
|
-
(0, errors_1.logDebug)('File watcher started', { projectRoot: this.projectRoot, debounceMs: this.debounceMs });
|
|
124
|
-
return true;
|
|
125
|
-
}
|
|
126
|
-
catch (err) {
|
|
127
|
-
// Recursive watch not supported (e.g., Linux < Node 19)
|
|
128
|
-
(0, errors_1.logWarn)('Could not start file watcher — recursive fs.watch not supported on this platform', { error: String(err) });
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Stop watching for file changes.
|
|
134
|
-
*/
|
|
135
|
-
stop() {
|
|
136
|
-
this.stopped = true;
|
|
137
|
-
if (this.debounceTimer) {
|
|
138
|
-
clearTimeout(this.debounceTimer);
|
|
139
|
-
this.debounceTimer = null;
|
|
140
|
-
}
|
|
141
|
-
if (this.watcher) {
|
|
142
|
-
this.watcher.close();
|
|
143
|
-
this.watcher = null;
|
|
144
|
-
}
|
|
145
|
-
this.hasChanges = false;
|
|
146
|
-
(0, errors_1.logDebug)('File watcher stopped');
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Whether the watcher is currently active.
|
|
150
|
-
*/
|
|
151
|
-
isActive() {
|
|
152
|
-
return this.watcher !== null && !this.stopped;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Schedule a debounced sync.
|
|
156
|
-
*/
|
|
157
|
-
scheduleSync() {
|
|
158
|
-
if (this.debounceTimer) {
|
|
159
|
-
clearTimeout(this.debounceTimer);
|
|
160
|
-
}
|
|
161
|
-
this.debounceTimer = setTimeout(() => {
|
|
162
|
-
this.debounceTimer = null;
|
|
163
|
-
this.flush();
|
|
164
|
-
}, this.debounceMs);
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Flush pending changes by running sync.
|
|
168
|
-
*/
|
|
169
|
-
async flush() {
|
|
170
|
-
// If already syncing, the post-sync check will re-trigger
|
|
171
|
-
if (this.syncing || this.stopped)
|
|
172
|
-
return;
|
|
173
|
-
this.hasChanges = false;
|
|
174
|
-
this.syncing = true;
|
|
175
|
-
try {
|
|
176
|
-
const result = await this.syncFn();
|
|
177
|
-
this.onSyncComplete?.(result);
|
|
178
|
-
}
|
|
179
|
-
catch (err) {
|
|
180
|
-
const error = err instanceof Error ? err : new Error(String(err));
|
|
181
|
-
(0, errors_1.logWarn)('Watch sync failed', { error: error.message });
|
|
182
|
-
this.onSyncError?.(error);
|
|
183
|
-
}
|
|
184
|
-
finally {
|
|
185
|
-
this.syncing = false;
|
|
186
|
-
// If new changes arrived during sync, schedule another
|
|
187
|
-
if (this.hasChanges && !this.stopped) {
|
|
188
|
-
this.scheduleSync();
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
exports.FileWatcher = FileWatcher;
|
|
194
|
-
//# sourceMappingURL=watcher.js.map
|
package/dist/sync/watcher.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watcher.js","sourceRoot":"","sources":["../../src/sync/watcher.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAEzB,8CAAkD;AAClD,sCAA8C;AAC9C,oCAAyC;AACzC,iDAAqD;AAwBrD;;;;;;;;;GASG;AACH,MAAa,WAAW;IACd,OAAO,GAAwB,IAAI,CAAC;IACpC,aAAa,GAAyC,IAAI,CAAC;IAC3D,UAAU,GAAG,KAAK,CAAC;IACnB,OAAO,GAAG,KAAK,CAAC;IAChB,OAAO,GAAG,KAAK,CAAC;IAEP,WAAW,CAAS;IACpB,MAAM,CAAkB;IACxB,UAAU,CAAS;IACnB,MAAM,CAA8D;IACp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,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACvD,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YAErB,uDAAuD;YACvD,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBACrC,IAAI,CAAC,YAAY,EAAE,CAAC;YACtB,CAAC;QACH,CAAC;IACH,CAAC;CACF;AA7JD,kCA6JC"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CodeGraph Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* Core types for the semantic knowledge graph system.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Types of nodes in the knowledge graph.
|
|
8
|
-
*
|
|
9
|
-
* Defined as a runtime-iterable `as const` array so the same source
|
|
10
|
-
* of truth backs both the TS type and any runtime validation
|
|
11
|
-
* (e.g. the search query parser).
|
|
12
|
-
*/
|
|
13
|
-
export declare const NODE_KINDS: readonly ["file", "module", "class", "struct", "interface", "trait", "protocol", "function", "method", "property", "field", "variable", "constant", "enum", "enum_member", "type_alias", "namespace", "parameter", "import", "export", "route", "component"];
|
|
14
|
-
export type NodeKind = (typeof NODE_KINDS)[number];
|
|
15
|
-
/**
|
|
16
|
-
* Types of edges (relationships) between nodes
|
|
17
|
-
*/
|
|
18
|
-
export type EdgeKind = 'contains' | 'calls' | 'imports' | 'exports' | 'extends' | 'implements' | 'references' | 'type_of' | 'returns' | 'instantiates' | 'overrides' | 'decorates';
|
|
19
|
-
/**
|
|
20
|
-
* Supported programming languages. See NODE_KINDS for why this is a
|
|
21
|
-
* runtime-iterable const array.
|
|
22
|
-
*/
|
|
23
|
-
export declare const LANGUAGES: readonly ["typescript", "javascript", "tsx", "jsx", "python", "go", "rust", "java", "c", "cpp", "csharp", "php", "ruby", "swift", "kotlin", "dart", "svelte", "vue", "liquid", "pascal", "scala", "unknown"];
|
|
24
|
-
export type Language = (typeof LANGUAGES)[number];
|
|
25
|
-
/**
|
|
26
|
-
* A node in the knowledge graph representing a code symbol
|
|
27
|
-
*/
|
|
28
|
-
export interface Node {
|
|
29
|
-
/** Unique identifier (hash of file path + qualified name) */
|
|
30
|
-
id: string;
|
|
31
|
-
/** Type of code element */
|
|
32
|
-
kind: NodeKind;
|
|
33
|
-
/** Simple name (e.g., "calculateTotal") */
|
|
34
|
-
name: string;
|
|
35
|
-
/** Fully qualified name (e.g., "src/utils.ts::MathHelper.calculateTotal") */
|
|
36
|
-
qualifiedName: string;
|
|
37
|
-
/** File path relative to project root */
|
|
38
|
-
filePath: string;
|
|
39
|
-
/** Programming language */
|
|
40
|
-
language: Language;
|
|
41
|
-
/** Starting line number (1-indexed) */
|
|
42
|
-
startLine: number;
|
|
43
|
-
/** Ending line number (1-indexed) */
|
|
44
|
-
endLine: number;
|
|
45
|
-
/** Starting column (0-indexed) */
|
|
46
|
-
startColumn: number;
|
|
47
|
-
/** Ending column (0-indexed) */
|
|
48
|
-
endColumn: number;
|
|
49
|
-
/** Documentation string if present */
|
|
50
|
-
docstring?: string;
|
|
51
|
-
/** Function/method signature */
|
|
52
|
-
signature?: string;
|
|
53
|
-
/** Visibility modifier */
|
|
54
|
-
visibility?: 'public' | 'private' | 'protected' | 'internal';
|
|
55
|
-
/** Whether symbol is exported */
|
|
56
|
-
isExported?: boolean;
|
|
57
|
-
/** Whether symbol is async */
|
|
58
|
-
isAsync?: boolean;
|
|
59
|
-
/** Whether symbol is static */
|
|
60
|
-
isStatic?: boolean;
|
|
61
|
-
/** Whether symbol is abstract */
|
|
62
|
-
isAbstract?: boolean;
|
|
63
|
-
/** Decorators/annotations applied */
|
|
64
|
-
decorators?: string[];
|
|
65
|
-
/** Generic type parameters */
|
|
66
|
-
typeParameters?: string[];
|
|
67
|
-
/** When the node was last updated */
|
|
68
|
-
updatedAt: number;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* An edge representing a relationship between two nodes
|
|
72
|
-
*/
|
|
73
|
-
export interface Edge {
|
|
74
|
-
/** Source node ID */
|
|
75
|
-
source: string;
|
|
76
|
-
/** Target node ID */
|
|
77
|
-
target: string;
|
|
78
|
-
/** Type of relationship */
|
|
79
|
-
kind: EdgeKind;
|
|
80
|
-
/** Additional context about the relationship */
|
|
81
|
-
metadata?: Record<string, unknown>;
|
|
82
|
-
/** Line number where relationship occurs (e.g., call site) */
|
|
83
|
-
line?: number;
|
|
84
|
-
/** Column number where relationship occurs */
|
|
85
|
-
column?: number;
|
|
86
|
-
/** How this edge was created */
|
|
87
|
-
provenance?: 'tree-sitter' | 'scip' | 'heuristic';
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Metadata about a tracked file
|
|
91
|
-
*/
|
|
92
|
-
export interface FileRecord {
|
|
93
|
-
/** File path relative to project root */
|
|
94
|
-
path: string;
|
|
95
|
-
/** Content hash for change detection */
|
|
96
|
-
contentHash: string;
|
|
97
|
-
/** Detected language */
|
|
98
|
-
language: Language;
|
|
99
|
-
/** File size in bytes */
|
|
100
|
-
size: number;
|
|
101
|
-
/** Last modification timestamp */
|
|
102
|
-
modifiedAt: number;
|
|
103
|
-
/** When last indexed */
|
|
104
|
-
indexedAt: number;
|
|
105
|
-
/** Number of nodes extracted */
|
|
106
|
-
nodeCount: number;
|
|
107
|
-
/** Any extraction errors */
|
|
108
|
-
errors?: ExtractionError[];
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Result from parsing a source file
|
|
112
|
-
*/
|
|
113
|
-
export interface ExtractionResult {
|
|
114
|
-
/** Extracted nodes */
|
|
115
|
-
nodes: Node[];
|
|
116
|
-
/** Extracted edges */
|
|
117
|
-
edges: Edge[];
|
|
118
|
-
/** References that couldn't be resolved yet */
|
|
119
|
-
unresolvedReferences: UnresolvedReference[];
|
|
120
|
-
/** Any errors during extraction */
|
|
121
|
-
errors: ExtractionError[];
|
|
122
|
-
/** Extraction duration in milliseconds */
|
|
123
|
-
durationMs: number;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Error during code extraction
|
|
127
|
-
*/
|
|
128
|
-
export interface ExtractionError {
|
|
129
|
-
/** Error message */
|
|
130
|
-
message: string;
|
|
131
|
-
/** File path where the error occurred */
|
|
132
|
-
filePath?: string;
|
|
133
|
-
/** Line number if available */
|
|
134
|
-
line?: number;
|
|
135
|
-
/** Column number if available */
|
|
136
|
-
column?: number;
|
|
137
|
-
/** Error severity */
|
|
138
|
-
severity: 'error' | 'warning';
|
|
139
|
-
/** Error code for categorization */
|
|
140
|
-
code?: string;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* A reference that couldn't be resolved during extraction
|
|
144
|
-
*/
|
|
145
|
-
export interface UnresolvedReference {
|
|
146
|
-
/** ID of the node containing the reference */
|
|
147
|
-
fromNodeId: string;
|
|
148
|
-
/** Name being referenced */
|
|
149
|
-
referenceName: string;
|
|
150
|
-
/** Type of reference (call, type, import, etc.) */
|
|
151
|
-
referenceKind: EdgeKind;
|
|
152
|
-
/** Location of the reference */
|
|
153
|
-
line: number;
|
|
154
|
-
column: number;
|
|
155
|
-
/** File path where reference occurs (denormalized for performance) */
|
|
156
|
-
filePath?: string;
|
|
157
|
-
/** Language of the source file (denormalized for performance) */
|
|
158
|
-
language?: Language;
|
|
159
|
-
/** Possible qualified names it might resolve to */
|
|
160
|
-
candidates?: string[];
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* A subgraph containing a subset of the knowledge graph
|
|
164
|
-
*/
|
|
165
|
-
export interface Subgraph {
|
|
166
|
-
/** Nodes in this subgraph */
|
|
167
|
-
nodes: Map<string, Node>;
|
|
168
|
-
/** Edges in this subgraph */
|
|
169
|
-
edges: Edge[];
|
|
170
|
-
/** Root node IDs (entry points) */
|
|
171
|
-
roots: string[];
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Options for graph traversal
|
|
175
|
-
*/
|
|
176
|
-
export interface TraversalOptions {
|
|
177
|
-
/** Maximum depth to traverse (default: Infinity) */
|
|
178
|
-
maxDepth?: number;
|
|
179
|
-
/** Edge types to follow (default: all) */
|
|
180
|
-
edgeKinds?: EdgeKind[];
|
|
181
|
-
/** Node types to include (default: all) */
|
|
182
|
-
nodeKinds?: NodeKind[];
|
|
183
|
-
/** Direction of traversal */
|
|
184
|
-
direction?: 'outgoing' | 'incoming' | 'both';
|
|
185
|
-
/** Maximum nodes to return */
|
|
186
|
-
limit?: number;
|
|
187
|
-
/** Whether to include the starting node */
|
|
188
|
-
includeStart?: boolean;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Options for searching the graph
|
|
192
|
-
*/
|
|
193
|
-
export interface SearchOptions {
|
|
194
|
-
/** Node types to search */
|
|
195
|
-
kinds?: NodeKind[];
|
|
196
|
-
/** Languages to include */
|
|
197
|
-
languages?: Language[];
|
|
198
|
-
/** File path patterns to include */
|
|
199
|
-
includePatterns?: string[];
|
|
200
|
-
/** File path patterns to exclude */
|
|
201
|
-
excludePatterns?: string[];
|
|
202
|
-
/** Maximum results to return */
|
|
203
|
-
limit?: number;
|
|
204
|
-
/** Offset for pagination */
|
|
205
|
-
offset?: number;
|
|
206
|
-
/** Whether search is case-sensitive */
|
|
207
|
-
caseSensitive?: boolean;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* A search result with relevance scoring
|
|
211
|
-
*/
|
|
212
|
-
export interface SearchResult {
|
|
213
|
-
/** Matching node */
|
|
214
|
-
node: Node;
|
|
215
|
-
/** Relevance score (0-1) */
|
|
216
|
-
score: number;
|
|
217
|
-
/** Matched text snippets for highlighting */
|
|
218
|
-
highlights?: string[];
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Context information for code understanding
|
|
222
|
-
*/
|
|
223
|
-
export interface Context {
|
|
224
|
-
/** Primary node being examined */
|
|
225
|
-
focal: Node;
|
|
226
|
-
/** Nodes containing the focal node (file, class, etc.) */
|
|
227
|
-
ancestors: Node[];
|
|
228
|
-
/** Nodes directly contained by focal node */
|
|
229
|
-
children: Node[];
|
|
230
|
-
/** Incoming references (who calls/uses this) */
|
|
231
|
-
incomingRefs: Array<{
|
|
232
|
-
node: Node;
|
|
233
|
-
edge: Edge;
|
|
234
|
-
}>;
|
|
235
|
-
/** Outgoing references (what this calls/uses) */
|
|
236
|
-
outgoingRefs: Array<{
|
|
237
|
-
node: Node;
|
|
238
|
-
edge: Edge;
|
|
239
|
-
}>;
|
|
240
|
-
/** Related type information */
|
|
241
|
-
types: Node[];
|
|
242
|
-
/** Relevant imports */
|
|
243
|
-
imports: Node[];
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* A block of code with context
|
|
247
|
-
*/
|
|
248
|
-
export interface CodeBlock {
|
|
249
|
-
/** The code content */
|
|
250
|
-
content: string;
|
|
251
|
-
/** File path */
|
|
252
|
-
filePath: string;
|
|
253
|
-
/** Starting line */
|
|
254
|
-
startLine: number;
|
|
255
|
-
/** Ending line */
|
|
256
|
-
endLine: number;
|
|
257
|
-
/** Language for syntax highlighting */
|
|
258
|
-
language: Language;
|
|
259
|
-
/** Associated node if extracted */
|
|
260
|
-
node?: Node;
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Framework-specific hints for better extraction
|
|
264
|
-
*/
|
|
265
|
-
export interface FrameworkHint {
|
|
266
|
-
/** Framework name (react, express, django, etc.) */
|
|
267
|
-
name: string;
|
|
268
|
-
/** Version constraint if relevant */
|
|
269
|
-
version?: string;
|
|
270
|
-
/** Custom patterns for this framework */
|
|
271
|
-
patterns?: {
|
|
272
|
-
/** Component detection patterns */
|
|
273
|
-
components?: string[];
|
|
274
|
-
/** Route detection patterns */
|
|
275
|
-
routes?: string[];
|
|
276
|
-
/** Model detection patterns */
|
|
277
|
-
models?: string[];
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Configuration for a CodeGraph project
|
|
282
|
-
*/
|
|
283
|
-
export interface CodeGraphConfig {
|
|
284
|
-
/** Schema version for migrations */
|
|
285
|
-
version: number;
|
|
286
|
-
/** Root directory of the project */
|
|
287
|
-
rootDir: string;
|
|
288
|
-
/** Glob patterns for files to include */
|
|
289
|
-
include: string[];
|
|
290
|
-
/** Glob patterns for files to exclude */
|
|
291
|
-
exclude: string[];
|
|
292
|
-
/** Languages to process (auto-detected if empty) */
|
|
293
|
-
languages: Language[];
|
|
294
|
-
/** Framework hints for better extraction */
|
|
295
|
-
frameworks: FrameworkHint[];
|
|
296
|
-
/** Maximum file size to process (in bytes) */
|
|
297
|
-
maxFileSize: number;
|
|
298
|
-
/** Whether to extract docstrings */
|
|
299
|
-
extractDocstrings: boolean;
|
|
300
|
-
/** Whether to track call sites */
|
|
301
|
-
trackCallSites: boolean;
|
|
302
|
-
/** Custom symbol patterns to extract */
|
|
303
|
-
customPatterns?: {
|
|
304
|
-
/** Name for this pattern group */
|
|
305
|
-
name: string;
|
|
306
|
-
/** Regex pattern to match */
|
|
307
|
-
pattern: string;
|
|
308
|
-
/** Node kind to assign */
|
|
309
|
-
kind: NodeKind;
|
|
310
|
-
}[];
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* Default configuration values
|
|
314
|
-
*/
|
|
315
|
-
export declare const DEFAULT_CONFIG: CodeGraphConfig;
|
|
316
|
-
/**
|
|
317
|
-
* Database schema version info
|
|
318
|
-
*/
|
|
319
|
-
export interface SchemaVersion {
|
|
320
|
-
/** Current schema version */
|
|
321
|
-
version: number;
|
|
322
|
-
/** When schema was created/updated */
|
|
323
|
-
appliedAt: number;
|
|
324
|
-
/** Description of this version */
|
|
325
|
-
description?: string;
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Statistics about the knowledge graph
|
|
329
|
-
*/
|
|
330
|
-
export interface GraphStats {
|
|
331
|
-
/** Total number of nodes */
|
|
332
|
-
nodeCount: number;
|
|
333
|
-
/** Total number of edges */
|
|
334
|
-
edgeCount: number;
|
|
335
|
-
/** Number of tracked files */
|
|
336
|
-
fileCount: number;
|
|
337
|
-
/** Node counts by kind */
|
|
338
|
-
nodesByKind: Record<NodeKind, number>;
|
|
339
|
-
/** Edge counts by kind */
|
|
340
|
-
edgesByKind: Record<EdgeKind, number>;
|
|
341
|
-
/** File counts by language */
|
|
342
|
-
filesByLanguage: Record<Language, number>;
|
|
343
|
-
/** Database size in bytes */
|
|
344
|
-
dbSizeBytes: number;
|
|
345
|
-
/** Last update timestamp */
|
|
346
|
-
lastUpdated: number;
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Input for building task context
|
|
350
|
-
*/
|
|
351
|
-
export type TaskInput = string | {
|
|
352
|
-
title: string;
|
|
353
|
-
description?: string;
|
|
354
|
-
};
|
|
355
|
-
/**
|
|
356
|
-
* Options for building task context
|
|
357
|
-
*/
|
|
358
|
-
export interface BuildContextOptions {
|
|
359
|
-
/** Maximum number of nodes to include (default: 50) */
|
|
360
|
-
maxNodes?: number;
|
|
361
|
-
/** Maximum number of code blocks to include (default: 10) */
|
|
362
|
-
maxCodeBlocks?: number;
|
|
363
|
-
/** Maximum characters per code block (default: 2000) */
|
|
364
|
-
maxCodeBlockSize?: number;
|
|
365
|
-
/** Whether to include code blocks (default: true) */
|
|
366
|
-
includeCode?: boolean;
|
|
367
|
-
/** Output format (default: 'markdown') */
|
|
368
|
-
format?: 'markdown' | 'json';
|
|
369
|
-
/** Number of semantic search results (default: 5) */
|
|
370
|
-
searchLimit?: number;
|
|
371
|
-
/** Graph traversal depth from entry points (default: 2) */
|
|
372
|
-
traversalDepth?: number;
|
|
373
|
-
/** Minimum semantic similarity score (default: 0.3) */
|
|
374
|
-
minScore?: number;
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
* Full context for a task, ready for Claude
|
|
378
|
-
*/
|
|
379
|
-
export interface TaskContext {
|
|
380
|
-
/** The original query/task */
|
|
381
|
-
query: string;
|
|
382
|
-
/** Subgraph of relevant nodes and edges */
|
|
383
|
-
subgraph: Subgraph;
|
|
384
|
-
/** Entry point nodes (from semantic search) */
|
|
385
|
-
entryPoints: Node[];
|
|
386
|
-
/** Code blocks extracted from key nodes */
|
|
387
|
-
codeBlocks: CodeBlock[];
|
|
388
|
-
/** Files involved in this context */
|
|
389
|
-
relatedFiles: string[];
|
|
390
|
-
/** Brief summary of the context */
|
|
391
|
-
summary: string;
|
|
392
|
-
/** Statistics about the context */
|
|
393
|
-
stats: {
|
|
394
|
-
/** Number of nodes included */
|
|
395
|
-
nodeCount: number;
|
|
396
|
-
/** Number of edges included */
|
|
397
|
-
edgeCount: number;
|
|
398
|
-
/** Number of files touched */
|
|
399
|
-
fileCount: number;
|
|
400
|
-
/** Number of code blocks included */
|
|
401
|
-
codeBlockCount: number;
|
|
402
|
-
/** Total characters in code blocks */
|
|
403
|
-
totalCodeSize: number;
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* Options for finding relevant context
|
|
408
|
-
*/
|
|
409
|
-
export interface FindRelevantContextOptions {
|
|
410
|
-
/** Number of semantic search results (default: 5) */
|
|
411
|
-
searchLimit?: number;
|
|
412
|
-
/** Graph traversal depth (default: 2) */
|
|
413
|
-
traversalDepth?: number;
|
|
414
|
-
/** Maximum nodes in result (default: 50) */
|
|
415
|
-
maxNodes?: number;
|
|
416
|
-
/** Minimum semantic similarity score (default: 0.3) */
|
|
417
|
-
minScore?: number;
|
|
418
|
-
/** Edge types to follow in traversal */
|
|
419
|
-
edgeKinds?: EdgeKind[];
|
|
420
|
-
/** Node types to include */
|
|
421
|
-
nodeKinds?: NodeKind[];
|
|
422
|
-
}
|
|
423
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;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