ctxloom-pro 1.0.4

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-IHXVD5SO.js";
4
+ export {
5
+ logger
6
+ };
7
+ //# sourceMappingURL=logger-2FVN3AGZ.js.map
@@ -0,0 +1,15 @@
1
+ import {
2
+ RulesChecker,
3
+ RulesConfigError,
4
+ formatJson,
5
+ formatText,
6
+ loadRulesConfig
7
+ } from "./chunk-PSLPRDPL.js";
8
+ export {
9
+ RulesChecker,
10
+ RulesConfigError,
11
+ formatJson,
12
+ formatText,
13
+ loadRulesConfig
14
+ };
15
+ //# sourceMappingURL=rules-OMDOX7IJ.js.map
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ detectInstalledClients
4
+ } from "../chunk-II2DPYRJ.js";
5
+
6
+ // src/setup/postinstall.ts
7
+ var C = {
8
+ reset: "\x1B[0m",
9
+ bold: "\x1B[1m",
10
+ dim: "\x1B[2m",
11
+ green: "\x1B[32m",
12
+ cyan: "\x1B[36m",
13
+ yellow: "\x1B[33m"
14
+ };
15
+ var CI_ENV_VARS = ["CI", "CONTINUOUS_INTEGRATION", "GITHUB_ACTIONS", "JENKINS_URL", "TF_BUILD"];
16
+ var isCI = CI_ENV_VARS.some((v) => process.env[v]);
17
+ if (isCI) {
18
+ process.exit(0);
19
+ }
20
+ var isInteractive = process.stdin.isTTY;
21
+ console.log("");
22
+ console.log(` ${C.cyan}${C.bold}ctxloom${C.reset} ${C.dim}installed successfully!${C.reset}`);
23
+ var detected = detectInstalledClients();
24
+ var unconfigured = detected.filter((d) => !d.alreadyConfigured);
25
+ if (unconfigured.length > 0) {
26
+ console.log("");
27
+ console.log(` ${C.green}\u2713${C.reset} Detected ${C.bold}${unconfigured.length}${C.reset} MCP-compatible tool${unconfigured.length > 1 ? "s" : ""} that ${unconfigured.length > 1 ? "need" : "needs"} configuration:`);
28
+ for (const d of unconfigured) {
29
+ console.log(` ${C.green}\u2022${C.reset} ${d.client.name}`);
30
+ }
31
+ console.log("");
32
+ console.log(` Run ${C.cyan}ctxloom setup${C.reset} to configure ${unconfigured.length > 1 ? "them" : "it"} now.`);
33
+ } else if (detected.length > 0) {
34
+ console.log(` ${C.green}\u2713${C.reset} All detected MCP tools are already configured.`);
35
+ } else {
36
+ console.log(` ${C.dim}No MCP-compatible AI tools detected.${C.reset}`);
37
+ }
38
+ console.log("");
39
+ console.log(` Quick start: ${C.cyan}ctxloom index${C.reset} ${C.dim}# Index your project${C.reset}`);
40
+ console.log(` Setup: ${C.cyan}ctxloom setup${C.reset} ${C.dim}# Configure AI tools${C.reset}`);
41
+ console.log("");
42
+ //# sourceMappingURL=postinstall.js.map
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,29 @@
1
+ import {
2
+ VectorStore
3
+ } from "../chunk-XNKTZGDX.js";
4
+ import {
5
+ generateEmbedding
6
+ } from "../chunk-ZYDVY7VZ.js";
7
+ import "../chunk-IHXVD5SO.js";
8
+
9
+ // src/workers/indexerWorker.ts
10
+ import { parentPort, workerData } from "worker_threads";
11
+ import path from "path";
12
+ async function run() {
13
+ const { filePath, content, root, dbPath } = workerData;
14
+ try {
15
+ const relPath = path.relative(root, filePath);
16
+ const store = new VectorStore(dbPath);
17
+ await store.init();
18
+ const embedding = await generateEmbedding(content.slice(0, 4096));
19
+ await store.upsert(relPath, embedding, content.slice(0, 512));
20
+ parentPort?.postMessage({ status: "success", path: relPath });
21
+ } catch (err) {
22
+ parentPort?.postMessage({
23
+ status: "error",
24
+ error: err instanceof Error ? err.message : String(err)
25
+ });
26
+ }
27
+ }
28
+ run();
29
+ //# sourceMappingURL=indexerWorker.js.map
package/package.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "ctxloom-pro",
3
+ "version": "1.0.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
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": "./dist/index.js",
10
+ "./lib": "./dist/lib/index.js"
11
+ },
12
+ "workspaces": [
13
+ "apps/*"
14
+ ],
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "bin": {
19
+ "ctxloom": "dist/index.js"
20
+ },
21
+ "files": [
22
+ "dist/**/*",
23
+ "!dist/**/*.map",
24
+ "LICENSE"
25
+ ],
26
+ "scripts": {
27
+ "build": "tsup",
28
+ "prepublishOnly": "tsup",
29
+ "start": "node dist/index.js",
30
+ "dev": "tsx src/index.ts",
31
+ "test": "vitest run",
32
+ "lint": "tsc --noEmit",
33
+ "postinstall": "node dist/setup/postinstall.js || true",
34
+ "bench:repos": "tsx benchmarks/benchmark-public-repos.ts"
35
+ },
36
+ "keywords": [
37
+ "mcp",
38
+ "model-context-protocol",
39
+ "code-context",
40
+ "code-review",
41
+ "blast-radius",
42
+ "architecture",
43
+ "dependency-graph",
44
+ "call-graph",
45
+ "community-detection",
46
+ "wiki-generation",
47
+ "tree-sitter",
48
+ "ast",
49
+ "monorepo",
50
+ "semantic-search",
51
+ "skeletonization",
52
+ "vector-search",
53
+ "local-first",
54
+ "typescript",
55
+ "python",
56
+ "rust",
57
+ "golang",
58
+ "java"
59
+ ],
60
+ "license": "AGPL-3.0",
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "https://github.com/kodiii/ctxloom"
64
+ },
65
+ "homepage": "https://github.com/kodiii/ctxloom/blob/main/README.md",
66
+ "bugs": {
67
+ "url": "https://github.com/kodiii/ctxloom/issues"
68
+ },
69
+ "author": "Codzign",
70
+ "dependencies": {
71
+ "@huggingface/transformers": "^3.0.0",
72
+ "@lancedb/lancedb": "^0.27.0",
73
+ "@modelcontextprotocol/sdk": "^1.12.0",
74
+ "chokidar": "^4.0.0",
75
+ "graphology": "^0.26.0",
76
+ "graphology-communities-louvain": "^2.0.2",
77
+ "js-yaml": "^4.1.1",
78
+ "picomatch": "^4.0.4",
79
+ "simple-git": "^3.36.0",
80
+ "tree-sitter-typescript": "^0.23.2",
81
+ "web-tree-sitter": "^0.25.0",
82
+ "zod": "^3.23.0"
83
+ },
84
+ "devDependencies": {
85
+ "@types/js-yaml": "^4.0.9",
86
+ "@types/node": "^22.0.0",
87
+ "@types/picomatch": "^4.0.3",
88
+ "@vitest/coverage-v8": "^3.2.4",
89
+ "apache-arrow": "^18.1.0",
90
+ "tsup": "^8.0.0",
91
+ "tsx": "^4.0.0",
92
+ "typescript": "^5.7.0",
93
+ "vitest": "^3.0.0"
94
+ },
95
+ "engines": {
96
+ "node": ">=20.0.0"
97
+ }
98
+ }