ctxloom-pro 1.0.4 → 1.0.6

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.
@@ -0,0 +1,7 @@
1
+ import {
2
+ logger
3
+ } from "./chunk-YXMXRVFH.js";
4
+ export {
5
+ logger
6
+ };
7
+ //# sourceMappingURL=logger-SVRJYSFC.js.map
@@ -0,0 +1,163 @@
1
+ import {
2
+ ASTParser,
3
+ ApiClient,
4
+ AuthorResolver,
5
+ CallGraphIndex,
6
+ ChurnIndex,
7
+ CoChangeIndex,
8
+ CommunityDetector,
9
+ DEFAULT_REVIEW_CONFIG,
10
+ DependencyGraph,
11
+ EmailAlreadyUsedError,
12
+ FileWatcher,
13
+ Fingerprint,
14
+ FingerprintAlreadyUsedError,
15
+ GRAMMAR_MANIFEST,
16
+ GitHistoryMiner,
17
+ GitOverlayStore,
18
+ GoModuleResolver,
19
+ GrammarLoader,
20
+ GraphExporter,
21
+ InvalidKeyError,
22
+ LicenseRequiredError,
23
+ LicenseRevokedError,
24
+ LicenseStore,
25
+ NetworkError,
26
+ OwnershipIndex,
27
+ PathValidator,
28
+ RepoRegistry,
29
+ RuleManager,
30
+ RulesChecker,
31
+ RulesConfigError,
32
+ SeatLimitError,
33
+ Skeletonizer,
34
+ ToolRegistry,
35
+ TrialUnavailableError,
36
+ TsConfigPathsResolver,
37
+ WikiGenerator,
38
+ activateLicense,
39
+ buildBlastRadiusXml,
40
+ buildCodeownersBlock,
41
+ captureError,
42
+ createToolRegistry,
43
+ deactivateLicense,
44
+ detectChanges,
45
+ extractImports,
46
+ extractNotebookLanguage,
47
+ extractNotebookPythonSource,
48
+ findGrammar,
49
+ findGrammarByExtension,
50
+ findLargeFunctions,
51
+ formatJson,
52
+ formatText,
53
+ generateCODEOWNERS,
54
+ getImpactRadius,
55
+ getLicenseInfo,
56
+ isActive,
57
+ listNamedSnapshots,
58
+ loadReviewConfig,
59
+ loadRulesConfig,
60
+ loadTrendSeries,
61
+ maybePrintExpiryWarning,
62
+ mergeIntoFile,
63
+ recordTrendSnapshot,
64
+ requireActive,
65
+ resolveImport,
66
+ resolveViaGitHubApi,
67
+ saveNamedSnapshot,
68
+ scoreReviewers,
69
+ startTrial,
70
+ track,
71
+ writeCODEOWNERS
72
+ } from "./chunk-KPNCYRWW.js";
73
+ import {
74
+ VectorStore
75
+ } from "./chunk-NC4L5MCD.js";
76
+ import {
77
+ EMBEDDING_DIMENSION,
78
+ collectFiles,
79
+ generateEmbedding,
80
+ indexDirectory
81
+ } from "./chunk-MZRK5LFU.js";
82
+ import {
83
+ logger
84
+ } from "./chunk-YXMXRVFH.js";
85
+ export {
86
+ ASTParser,
87
+ ApiClient,
88
+ AuthorResolver,
89
+ CallGraphIndex,
90
+ ChurnIndex,
91
+ CoChangeIndex,
92
+ CommunityDetector,
93
+ DEFAULT_REVIEW_CONFIG,
94
+ DependencyGraph,
95
+ EMBEDDING_DIMENSION,
96
+ EmailAlreadyUsedError,
97
+ FileWatcher,
98
+ Fingerprint,
99
+ FingerprintAlreadyUsedError,
100
+ GRAMMAR_MANIFEST,
101
+ GitHistoryMiner,
102
+ GitOverlayStore,
103
+ GoModuleResolver,
104
+ GrammarLoader,
105
+ GraphExporter,
106
+ InvalidKeyError,
107
+ LicenseRequiredError,
108
+ LicenseRevokedError,
109
+ LicenseStore,
110
+ NetworkError,
111
+ OwnershipIndex,
112
+ PathValidator,
113
+ RepoRegistry,
114
+ RuleManager,
115
+ RulesChecker,
116
+ RulesConfigError,
117
+ SeatLimitError,
118
+ Skeletonizer,
119
+ ToolRegistry,
120
+ TrialUnavailableError,
121
+ TsConfigPathsResolver,
122
+ VectorStore,
123
+ WikiGenerator,
124
+ activateLicense,
125
+ buildBlastRadiusXml,
126
+ buildCodeownersBlock,
127
+ captureError,
128
+ collectFiles,
129
+ createToolRegistry,
130
+ deactivateLicense,
131
+ detectChanges,
132
+ extractImports,
133
+ extractNotebookLanguage,
134
+ extractNotebookPythonSource,
135
+ findGrammar,
136
+ findGrammarByExtension,
137
+ findLargeFunctions,
138
+ formatJson,
139
+ formatText,
140
+ generateCODEOWNERS,
141
+ generateEmbedding,
142
+ getImpactRadius,
143
+ getLicenseInfo,
144
+ indexDirectory,
145
+ isActive,
146
+ listNamedSnapshots,
147
+ loadReviewConfig,
148
+ loadRulesConfig,
149
+ loadTrendSeries,
150
+ logger,
151
+ maybePrintExpiryWarning,
152
+ mergeIntoFile,
153
+ recordTrendSnapshot,
154
+ requireActive,
155
+ resolveImport,
156
+ resolveViaGitHubApi,
157
+ saveNamedSnapshot,
158
+ scoreReviewers,
159
+ startTrial,
160
+ track,
161
+ writeCODEOWNERS
162
+ };
163
+ //# sourceMappingURL=src-GYVQEDV5.js.map
@@ -1,19 +1,20 @@
1
1
  import {
2
2
  VectorStore
3
- } from "../chunk-XNKTZGDX.js";
3
+ } from "../chunk-NC4L5MCD.js";
4
4
  import {
5
5
  generateEmbedding
6
- } from "../chunk-ZYDVY7VZ.js";
7
- import "../chunk-IHXVD5SO.js";
6
+ } from "../chunk-MZRK5LFU.js";
7
+ import "../chunk-YXMXRVFH.js";
8
8
 
9
- // src/workers/indexerWorker.ts
9
+ // packages/core/src/workers/indexerWorker.ts
10
10
  import { parentPort, workerData } from "worker_threads";
11
11
  import path from "path";
12
12
  async function run() {
13
13
  const { filePath, content, root, dbPath } = workerData;
14
+ let store = null;
14
15
  try {
15
16
  const relPath = path.relative(root, filePath);
16
- const store = new VectorStore(dbPath);
17
+ store = new VectorStore(dbPath);
17
18
  await store.init();
18
19
  const embedding = await generateEmbedding(content.slice(0, 4096));
19
20
  await store.upsert(relPath, embedding, content.slice(0, 512));
@@ -23,6 +24,8 @@ async function run() {
23
24
  status: "error",
24
25
  error: err instanceof Error ? err.message : String(err)
25
26
  });
27
+ } finally {
28
+ if (store) await store.close();
26
29
  }
27
30
  }
28
31
  run();
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "ctxloom-pro",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "ctxloom — The Universal Code Context Engine. A local-first MCP server providing intelligent code context via hybrid Vector + AST + Graph search with Skeletonization (92% token reduction).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
- ".": "./dist/index.js",
10
- "./lib": "./dist/lib/index.js"
9
+ ".": "./dist/index.js"
11
10
  },
12
11
  "workspaces": [
12
+ "packages/*",
13
13
  "apps/*"
14
14
  ],
15
15
  "publishConfig": {
@@ -31,7 +31,8 @@
31
31
  "test": "vitest run",
32
32
  "lint": "tsc --noEmit",
33
33
  "postinstall": "node dist/setup/postinstall.js || true",
34
- "bench:repos": "tsx benchmarks/benchmark-public-repos.ts"
34
+ "bench:repos": "tsx benchmarks/benchmark-public-repos.ts",
35
+ "e2e:corpus": "node e2e-corpus/run.mjs"
35
36
  },
36
37
  "keywords": [
37
38
  "mcp",
@@ -57,7 +58,7 @@
57
58
  "golang",
58
59
  "java"
59
60
  ],
60
- "license": "AGPL-3.0",
61
+ "license": "SEE LICENSE IN LICENSE",
61
62
  "repository": {
62
63
  "type": "git",
63
64
  "url": "https://github.com/kodiii/ctxloom"
@@ -68,6 +69,7 @@
68
69
  },
69
70
  "author": "Codzign",
70
71
  "dependencies": {
72
+ "@ctxloom/core": "*",
71
73
  "@huggingface/transformers": "^3.0.0",
72
74
  "@lancedb/lancedb": "^0.27.0",
73
75
  "@modelcontextprotocol/sdk": "^1.12.0",
@@ -75,6 +77,7 @@
75
77
  "graphology": "^0.26.0",
76
78
  "graphology-communities-louvain": "^2.0.2",
77
79
  "js-yaml": "^4.1.1",
80
+ "picocolors": "^1.1.1",
78
81
  "picomatch": "^4.0.4",
79
82
  "simple-git": "^3.36.0",
80
83
  "tree-sitter-typescript": "^0.23.2",
@@ -1,8 +0,0 @@
1
- import {
2
- ASTParser
3
- } from "./chunk-5CJIMX6D.js";
4
- import "./chunk-IHXVD5SO.js";
5
- export {
6
- ASTParser
7
- };
8
- //# sourceMappingURL=ASTParser-3QJ637L6.js.map
@@ -1,10 +0,0 @@
1
- import {
2
- DependencyGraph
3
- } from "./chunk-RE2V3FRF.js";
4
- import "./chunk-ZYDVY7VZ.js";
5
- import "./chunk-5CJIMX6D.js";
6
- import "./chunk-IHXVD5SO.js";
7
- export {
8
- DependencyGraph
9
- };
10
- //# sourceMappingURL=DependencyGraph-FGTNORTW.js.map
@@ -1,8 +0,0 @@
1
- import {
2
- VectorStore
3
- } from "./chunk-XNKTZGDX.js";
4
- import "./chunk-IHXVD5SO.js";
5
- export {
6
- VectorStore
7
- };
8
- //# sourceMappingURL=VectorStore-UQNBYPBV.js.map