ctxloom-pro 1.0.25 → 1.0.27

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.
@@ -82,17 +82,24 @@ import fs3 from "fs";
82
82
  import path3 from "path";
83
83
  function collectFiles(dir, results = []) {
84
84
  const IGNORED_DIRS = /* @__PURE__ */ new Set([
85
+ // Build artifacts + dependency caches
85
86
  "node_modules",
86
- ".git",
87
87
  "dist",
88
88
  "build",
89
- ".ctxloom",
89
+ "out",
90
+ "target",
90
91
  "coverage",
92
+ ".cache",
93
+ ".turbo",
91
94
  ".next",
92
95
  ".nuxt",
93
- "out",
94
- ".cache",
95
- ".turbo"
96
+ // Version control + ctxloom state
97
+ ".git",
98
+ ".ctxloom",
99
+ // Other tools' working state (often contains duplicated source)
100
+ ".claude",
101
+ ".code-review-graph",
102
+ ".vscode-test"
96
103
  ]);
97
104
  const SUPPORTED_EXTENSIONS = /* @__PURE__ */ new Set([
98
105
  ".ts",
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  collectFiles,
6
6
  generateEmbedding
7
- } from "./chunk-TVQ7CBWU.js";
7
+ } from "./chunk-NYBVAPM3.js";
8
8
  import {
9
9
  logger
10
10
  } from "./chunk-TYDMSHV7.js";
@@ -6583,7 +6583,7 @@ function registerFullTextSearchTool(registry, ctx) {
6583
6583
  const { query, mode, case_sensitive, limit, context_lines } = Schema22.parse(args);
6584
6584
  if (mode === "semantic") {
6585
6585
  try {
6586
- const { generateEmbedding: generateEmbedding2 } = await import("./embedder-VHOY4L6L.js");
6586
+ const { generateEmbedding: generateEmbedding2 } = await import("./embedder-ZGEKFHHK.js");
6587
6587
  const store = await ctx.getStore();
6588
6588
  const embedding = await generateEmbedding2(query);
6589
6589
  const results = await store.search(embedding, limit);
@@ -6620,7 +6620,7 @@ function registerFullTextSearchTool(registry, ctx) {
6620
6620
  let merged = keywordResults.slice(0, limit);
6621
6621
  if (mode === "hybrid") {
6622
6622
  try {
6623
- const { generateEmbedding: generateEmbedding2 } = await import("./embedder-VHOY4L6L.js");
6623
+ const { generateEmbedding: generateEmbedding2 } = await import("./embedder-ZGEKFHHK.js");
6624
6624
  const store = await ctx.getStore();
6625
6625
  const embedding = await generateEmbedding2(query);
6626
6626
  const vectorResults = await store.search(embedding, Math.ceil(limit / 2));
@@ -8741,4 +8741,4 @@ export {
8741
8741
  track,
8742
8742
  captureError
8743
8743
  };
8744
- //# sourceMappingURL=chunk-O4TQWLH6.js.map
8744
+ //# sourceMappingURL=chunk-GI354NTO.js.map
@@ -63,17 +63,24 @@ async function generateEmbedding(text) {
63
63
  }
64
64
  function collectFiles(dir, results = []) {
65
65
  const IGNORED_DIRS = /* @__PURE__ */ new Set([
66
+ // Build artifacts + dependency caches
66
67
  "node_modules",
67
- ".git",
68
68
  "dist",
69
69
  "build",
70
- ".ctxloom",
70
+ "out",
71
+ "target",
71
72
  "coverage",
73
+ ".cache",
74
+ ".turbo",
72
75
  ".next",
73
76
  ".nuxt",
74
- "out",
75
- ".cache",
76
- ".turbo"
77
+ // Version control + ctxloom state
78
+ ".git",
79
+ ".ctxloom",
80
+ // Other tools' working state (often contains duplicated source)
81
+ ".claude",
82
+ ".code-review-graph",
83
+ ".vscode-test"
77
84
  ]);
78
85
  const SUPPORTED_EXTENSIONS = /* @__PURE__ */ new Set([
79
86
  ".ts",
@@ -173,4 +180,4 @@ export {
173
180
  collectFiles,
174
181
  indexDirectory
175
182
  };
176
- //# sourceMappingURL=chunk-TVQ7CBWU.js.map
183
+ //# sourceMappingURL=chunk-NYBVAPM3.js.map
@@ -3,7 +3,7 @@ import {
3
3
  collectFiles,
4
4
  generateEmbedding,
5
5
  indexDirectory
6
- } from "./chunk-TVQ7CBWU.js";
6
+ } from "./chunk-NYBVAPM3.js";
7
7
  import "./chunk-TYDMSHV7.js";
8
8
  export {
9
9
  EMBEDDING_DIMENSION,
@@ -11,4 +11,4 @@ export {
11
11
  generateEmbedding,
12
12
  indexDirectory
13
13
  };
14
- //# sourceMappingURL=embedder-VHOY4L6L.js.map
14
+ //# sourceMappingURL=embedder-ZGEKFHHK.js.map
package/dist/index.js CHANGED
@@ -34,14 +34,14 @@ import {
34
34
  startTrial,
35
35
  track,
36
36
  writeCODEOWNERS
37
- } from "./chunk-O4TQWLH6.js";
37
+ } from "./chunk-GI354NTO.js";
38
38
  import {
39
39
  VectorStore
40
40
  } from "./chunk-NEHYSE2Y.js";
41
41
  import {
42
42
  generateEmbedding,
43
43
  indexDirectory
44
- } from "./chunk-TVQ7CBWU.js";
44
+ } from "./chunk-NYBVAPM3.js";
45
45
  import {
46
46
  logger
47
47
  } from "./chunk-TYDMSHV7.js";
@@ -613,7 +613,7 @@ try {
613
613
  } catch {
614
614
  }
615
615
  var args = process.argv.slice(2);
616
- var ctxloomVersion = "1.0.25".length > 0 ? "1.0.25" : "dev";
616
+ var ctxloomVersion = "1.0.27".length > 0 ? "1.0.27" : "dev";
617
617
  if (args.includes("--version") || args.includes("-v")) {
618
618
  process.stdout.write(`ctxloom ${ctxloomVersion}
619
619
  `);
@@ -686,7 +686,7 @@ async function checkLicense() {
686
686
  if (command !== void 0 && LICENSE_GATE_BYPASS_COMMANDS.has(command)) return;
687
687
  const ciKey = process.env["CTXLOOM_LICENSE_KEY"];
688
688
  if (ciKey) {
689
- const { ApiClient } = await import("./src-BYFMDHDZ.js");
689
+ const { ApiClient } = await import("./src-BRXQZ22F.js");
690
690
  const client = new ApiClient(process.env["CTXLOOM_API_BASE"]);
691
691
  try {
692
692
  const result = await client.validate(ciKey, "ci-ephemeral");
@@ -924,11 +924,12 @@ async function main() {
924
924
  `);
925
925
  const indexStart = Date.now();
926
926
  const result = await indexDirectory(root, (file, i, total) => {
927
+ if (!isTTY) return;
927
928
  const trimmed = file.length > 60 ? "\u2026" + file.slice(-59) : file;
928
929
  process.stdout.write(`\r ${style.dim(`[${i}/${total}]`)} ${style.dim(trimmed)}\x1B[K`);
929
930
  });
930
931
  const indexMs = Date.now() - indexStart;
931
- process.stdout.write("\r\x1B[K");
932
+ if (isTTY) process.stdout.write("\r\x1B[K");
932
933
  const errLabel = result.errors === 0 ? style.dim("0 errors") : style.warn(`${result.errors} error${result.errors === 1 ? "" : "s"}`);
933
934
  process.stdout.write(` ${success(`Indexed ${style.bold(String(result.indexed))} files`)} ${style.dim("\xB7")} ${errLabel} ${style.dim(`\xB7 ${(indexMs / 1e3).toFixed(1)}s`)}
934
935
 
@@ -1247,7 +1248,7 @@ Suggested reviewers for ${files.length} file(s):`);
1247
1248
  process.stderr.write("[ctxloom] --limit must be a non-negative integer (0 for unlimited)\n");
1248
1249
  process.exit(2);
1249
1250
  }
1250
- const { loadRulesConfig, RulesChecker, formatText, formatJson, RulesConfigError } = await import("./src-BYFMDHDZ.js");
1251
+ const { loadRulesConfig, RulesChecker, formatText, formatJson, RulesConfigError } = await import("./src-BRXQZ22F.js");
1251
1252
  let config;
1252
1253
  try {
1253
1254
  config = await loadRulesConfig(root);
@@ -1271,7 +1272,7 @@ Suggested reviewers for ${files.length} file(s):`);
1271
1272
  }
1272
1273
  let graph;
1273
1274
  if (useSnapshot) {
1274
- const { DependencyGraph: DG } = await import("./src-BYFMDHDZ.js");
1275
+ const { DependencyGraph: DG } = await import("./src-BRXQZ22F.js");
1275
1276
  graph = new DG();
1276
1277
  const loaded = await graph.loadSnapshotOnly(root);
1277
1278
  if (!loaded) {
@@ -1280,7 +1281,7 @@ Suggested reviewers for ${files.length} file(s):`);
1280
1281
  }
1281
1282
  } else {
1282
1283
  process.stderr.write("[ctxloom] Building dependency graph...\n");
1283
- const { ASTParser: ASTParser2, DependencyGraph: DependencyGraph2 } = await import("./src-BYFMDHDZ.js");
1284
+ const { ASTParser: ASTParser2, DependencyGraph: DependencyGraph2 } = await import("./src-BRXQZ22F.js");
1284
1285
  let parser;
1285
1286
  try {
1286
1287
  parser = new ASTParser2();
@@ -80,7 +80,7 @@ import {
80
80
  startTrial,
81
81
  track,
82
82
  writeCODEOWNERS
83
- } from "./chunk-O4TQWLH6.js";
83
+ } from "./chunk-GI354NTO.js";
84
84
  import {
85
85
  VectorStore
86
86
  } from "./chunk-NEHYSE2Y.js";
@@ -89,7 +89,7 @@ import {
89
89
  collectFiles,
90
90
  generateEmbedding,
91
91
  indexDirectory
92
- } from "./chunk-TVQ7CBWU.js";
92
+ } from "./chunk-NYBVAPM3.js";
93
93
  import {
94
94
  logger
95
95
  } from "./chunk-TYDMSHV7.js";
@@ -182,4 +182,4 @@ export {
182
182
  track,
183
183
  writeCODEOWNERS
184
184
  };
185
- //# sourceMappingURL=src-BYFMDHDZ.js.map
185
+ //# sourceMappingURL=src-BRXQZ22F.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-NEHYSE2Y.js";
4
4
  import {
5
5
  generateEmbedding
6
- } from "../chunk-TVQ7CBWU.js";
6
+ } from "../chunk-NYBVAPM3.js";
7
7
  import "../chunk-TYDMSHV7.js";
8
8
 
9
9
  // packages/core/src/workers/indexerWorker.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctxloom-pro",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
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",