@codragraph/cli 2.0.0 → 2.1.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 +2 -2
- package/dist/_shared/cgdb/schema-constants.d.ts +16 -0
- package/dist/_shared/cgdb/schema-constants.d.ts.map +1 -0
- package/dist/_shared/cgdb/schema-constants.js +67 -0
- package/dist/_shared/cgdb/schema-constants.js.map +1 -0
- package/dist/_shared/index.d.ts +2 -2
- package/dist/_shared/index.js +1 -1
- package/dist/cli/analyze.js +3 -3
- package/dist/cli/graphstore.js +21 -21
- package/dist/cli/index-repo.js +3 -3
- package/dist/cli/wiki.js +3 -3
- package/dist/core/augmentation/engine.js +7 -7
- package/dist/core/cgdb/cgdb-adapter.d.ts +176 -0
- package/dist/core/cgdb/cgdb-adapter.js +1320 -0
- package/dist/core/cgdb/content-read.d.ts +46 -0
- package/dist/core/cgdb/content-read.js +64 -0
- package/dist/core/cgdb/csv-generator.d.ts +29 -0
- package/dist/core/cgdb/csv-generator.js +492 -0
- package/dist/core/cgdb/pool-adapter.d.ts +93 -0
- package/dist/core/cgdb/pool-adapter.js +550 -0
- package/dist/core/cgdb/schema.d.ts +62 -0
- package/dist/core/cgdb/schema.js +502 -0
- package/dist/core/embeddings/embedding-pipeline.js +4 -4
- package/dist/core/graphstore/cgdb-row-source.d.ts +19 -0
- package/dist/core/graphstore/cgdb-row-source.js +141 -0
- package/dist/core/graphstore/index.d.ts +1 -1
- package/dist/core/graphstore/index.js +3 -3
- package/dist/core/group/bridge-db.d.ts +2 -2
- package/dist/core/group/bridge-db.js +18 -18
- package/dist/core/group/bridge-schema.d.ts +4 -4
- package/dist/core/group/bridge-schema.js +4 -4
- package/dist/core/group/cross-impact.js +3 -3
- package/dist/core/group/sync.js +4 -4
- package/dist/core/run-analyze.js +24 -24
- package/dist/core/search/bm25-index.d.ts +3 -3
- package/dist/core/search/bm25-index.js +9 -9
- package/dist/core/search/hybrid-search.js +2 -2
- package/dist/core/wiki/generator.d.ts +2 -2
- package/dist/core/wiki/generator.js +4 -4
- package/dist/core/wiki/graph-queries.d.ts +2 -2
- package/dist/core/wiki/graph-queries.js +5 -5
- package/dist/mcp/core/cgdb-adapter.d.ts +5 -0
- package/dist/mcp/core/cgdb-adapter.js +5 -0
- package/dist/mcp/core/embedder.js +1 -1
- package/dist/mcp/local/local-backend.d.ts +2 -2
- package/dist/mcp/local/local-backend.js +15 -15
- package/dist/mcp/server.js +3 -3
- package/dist/mcp/tools.js +1 -1
- package/dist/server/analyze-worker.js +2 -2
- package/dist/server/api.js +31 -31
- package/dist/storage/repo-manager.d.ts +4 -4
- package/dist/storage/repo-manager.js +5 -5
- package/hooks/claude/codragraph-hook.cjs +4 -4
- package/package.json +3 -3
- package/scripts/build.js +8 -9
- package/vendor/tree-sitter-proto/bindings/node/index.js +3 -3
- package/vendor/tree-sitter-proto/src/node-types.json +1 -1
package/scripts/build.js
CHANGED
|
@@ -17,20 +17,19 @@ import { fileURLToPath } from 'node:url';
|
|
|
17
17
|
|
|
18
18
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
19
19
|
const ROOT = path.resolve(__dirname, '..');
|
|
20
|
-
// Workspace directory names
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
const GRAPHSTORE_ROOT = path.resolve(ROOT, '..', 'codragraph-graphstore');
|
|
20
|
+
// Workspace directory names — packages live under `packages/<short>` on disk
|
|
21
|
+
// and publish as `@codragraph/<short>` on npm.
|
|
22
|
+
const SHARED_ROOT = path.resolve(ROOT, '..', 'shared');
|
|
23
|
+
const GRAPHSTORE_ROOT = path.resolve(ROOT, '..', 'graphstore');
|
|
25
24
|
const DIST = path.join(ROOT, 'dist');
|
|
26
25
|
const SHARED_DEST = path.join(DIST, '_shared');
|
|
27
26
|
|
|
28
|
-
// ── 1. Build codragraph
|
|
29
|
-
console.log('[build] compiling codragraph
|
|
27
|
+
// ── 1. Build @codragraph/shared ──────────────────────────────────────
|
|
28
|
+
console.log('[build] compiling @codragraph/shared…');
|
|
30
29
|
execSync('npx tsc', { cwd: SHARED_ROOT, stdio: 'inherit' });
|
|
31
30
|
|
|
32
|
-
// ── 2. Build codragraph
|
|
33
|
-
//
|
|
31
|
+
// ── 2. Build @codragraph/graphstore ──────────────────────────────────
|
|
32
|
+
// core depends on this for snapshot/branch/diff types. On a
|
|
34
33
|
// fresh checkout (CI, npm ci) the graphstore dist is empty until we
|
|
35
34
|
// build it here, so step 3 would otherwise fail to resolve
|
|
36
35
|
// `@codragraph/graphstore` imports. Skip gracefully if the workspace
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const root = require(
|
|
1
|
+
const root = require('path').join(__dirname, '..', '..');
|
|
2
2
|
|
|
3
|
-
module.exports = require(
|
|
3
|
+
module.exports = require('node-gyp-build')(root);
|
|
4
4
|
|
|
5
5
|
try {
|
|
6
|
-
module.exports.nodeTypeInfo = require(
|
|
6
|
+
module.exports.nodeTypeInfo = require('../../src/node-types.json');
|
|
7
7
|
} catch (_) {}
|