ctxloom-pro 1.2.5 → 1.2.7

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.
@@ -211,4 +211,4 @@ export {
211
211
  collectFiles,
212
212
  indexDirectory
213
213
  };
214
- //# sourceMappingURL=chunk-NMXQC5CG.js.map
214
+ //# sourceMappingURL=chunk-UVR65QBJ.js.map
@@ -3,7 +3,7 @@ import {
3
3
  collectFiles,
4
4
  generateEmbedding,
5
5
  indexDirectory
6
- } from "./chunk-NMXQC5CG.js";
6
+ } from "./chunk-UVR65QBJ.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-5LMEYY4M.js.map
14
+ //# sourceMappingURL=embedder-R4KCXSGO.js.map
package/dist/index.js CHANGED
@@ -41,20 +41,22 @@ import {
41
41
  resolveProjectRoot,
42
42
  resolveViaGitHubApi,
43
43
  scoreReviewers,
44
+ shouldEmitFirstReviewRun,
45
+ shouldEmitInstallCompleted,
44
46
  shouldShowTelemetryNotice,
45
47
  startTrial,
46
48
  track,
47
49
  validateDefaultRoot,
48
50
  wrapWithIndexingEnvelope,
49
51
  writeCODEOWNERS
50
- } from "./chunk-6S3ZF2YS.js";
52
+ } from "./chunk-RY3JAC2Q.js";
51
53
  import {
52
54
  VectorStore
53
55
  } from "./chunk-DVI2RWJR.js";
54
56
  import {
55
57
  generateEmbedding,
56
58
  indexDirectory
57
- } from "./chunk-NMXQC5CG.js";
59
+ } from "./chunk-UVR65QBJ.js";
58
60
  import {
59
61
  logger
60
62
  } from "./chunk-TYDMSHV7.js";
@@ -1016,7 +1018,7 @@ try {
1016
1018
  } catch {
1017
1019
  }
1018
1020
  var args = process.argv.slice(2);
1019
- var ctxloomVersion = "1.2.5".length > 0 ? "1.2.5" : "dev";
1021
+ var ctxloomVersion = "1.2.7".length > 0 ? "1.2.7" : "dev";
1020
1022
  if (args.includes("--version") || args.includes("-v")) {
1021
1023
  process.stdout.write(`ctxloom ${ctxloomVersion}
1022
1024
  `);
@@ -1089,7 +1091,7 @@ async function checkLicense() {
1089
1091
  if (command !== void 0 && LICENSE_GATE_BYPASS_COMMANDS.has(command)) return;
1090
1092
  const ciKey = process.env["CTXLOOM_LICENSE_KEY"];
1091
1093
  if (ciKey) {
1092
- const { ApiClient } = await import("./src-JZWAESJU.js");
1094
+ const { ApiClient } = await import("./src-3ZB6BHFW.js");
1093
1095
  const client = new ApiClient(process.env["CTXLOOM_API_BASE"]);
1094
1096
  try {
1095
1097
  const result = await client.validate(ciKey, "ci-ephemeral");
@@ -1313,6 +1315,9 @@ ${style.dim("\u2500".repeat(60))}
1313
1315
  }
1314
1316
  async function main() {
1315
1317
  maybePrintTelemetryNotice();
1318
+ if (command !== void 0 && shouldEmitInstallCompleted()) {
1319
+ track("install_completed", { command });
1320
+ }
1316
1321
  await checkLicense();
1317
1322
  switch (command) {
1318
1323
  case "trial": {
@@ -1491,7 +1496,7 @@ async function main() {
1491
1496
  process.exit(1);
1492
1497
  }
1493
1498
  if (alias !== void 0) {
1494
- const { validateAlias } = await import("./src-JZWAESJU.js");
1499
+ const { validateAlias } = await import("./src-3ZB6BHFW.js");
1495
1500
  const v = validateAlias(alias);
1496
1501
  if (!v.ok) {
1497
1502
  console.error(`[ctxloom] Invalid alias: ${v.reason}`);
@@ -1597,6 +1602,9 @@ async function main() {
1597
1602
  console.error("[ctxloom] No files specified and no staged changes found.");
1598
1603
  process.exit(1);
1599
1604
  }
1605
+ if (shouldEmitFirstReviewRun(root)) {
1606
+ track("first_review_run", { source: "cli", fileCount: files.length });
1607
+ }
1600
1608
  const config = await loadReviewConfig(root);
1601
1609
  if (excludeFlags.length > 0) {
1602
1610
  config.exclude = [...config.exclude, ...excludeFlags];
@@ -1735,7 +1743,7 @@ Suggested reviewers for ${files.length} file(s):`);
1735
1743
  process.stderr.write("[ctxloom] --limit must be a non-negative integer (0 for unlimited)\n");
1736
1744
  process.exit(2);
1737
1745
  }
1738
- const { loadRulesConfig, RulesChecker, formatText, formatJson, RulesConfigError } = await import("./src-JZWAESJU.js");
1746
+ const { loadRulesConfig, RulesChecker, formatText, formatJson, RulesConfigError } = await import("./src-3ZB6BHFW.js");
1739
1747
  let config;
1740
1748
  try {
1741
1749
  config = await loadRulesConfig(root);
@@ -1759,7 +1767,7 @@ Suggested reviewers for ${files.length} file(s):`);
1759
1767
  }
1760
1768
  let graph;
1761
1769
  if (useSnapshot) {
1762
- const { DependencyGraph: DG } = await import("./src-JZWAESJU.js");
1770
+ const { DependencyGraph: DG } = await import("./src-3ZB6BHFW.js");
1763
1771
  graph = new DG();
1764
1772
  const loaded = await graph.loadSnapshotOnly(root);
1765
1773
  if (!loaded) {
@@ -1768,7 +1776,7 @@ Suggested reviewers for ${files.length} file(s):`);
1768
1776
  }
1769
1777
  } else {
1770
1778
  process.stderr.write("[ctxloom] Building dependency graph...\n");
1771
- const { ASTParser: ASTParser2, DependencyGraph: DependencyGraph2 } = await import("./src-JZWAESJU.js");
1779
+ const { ASTParser: ASTParser2, DependencyGraph: DependencyGraph2 } = await import("./src-3ZB6BHFW.js");
1772
1780
  let parser;
1773
1781
  try {
1774
1782
  parser = new ASTParser2();
@@ -94,6 +94,8 @@ import {
94
94
  scoreAll,
95
95
  scoreFromBreakdown,
96
96
  scoreReviewers,
97
+ shouldEmitFirstReviewRun,
98
+ shouldEmitInstallCompleted,
97
99
  shouldShowTelemetryNotice,
98
100
  startTrial,
99
101
  track,
@@ -101,7 +103,7 @@ import {
101
103
  validateDefaultRoot,
102
104
  wrapWithIndexingEnvelope,
103
105
  writeCODEOWNERS
104
- } from "./chunk-6S3ZF2YS.js";
106
+ } from "./chunk-RY3JAC2Q.js";
105
107
  import {
106
108
  VectorStore
107
109
  } from "./chunk-DVI2RWJR.js";
@@ -110,7 +112,7 @@ import {
110
112
  collectFiles,
111
113
  generateEmbedding,
112
114
  indexDirectory
113
- } from "./chunk-NMXQC5CG.js";
115
+ } from "./chunk-UVR65QBJ.js";
114
116
  import {
115
117
  logger
116
118
  } from "./chunk-TYDMSHV7.js";
@@ -216,6 +218,8 @@ export {
216
218
  scoreAll,
217
219
  scoreFromBreakdown,
218
220
  scoreReviewers,
221
+ shouldEmitFirstReviewRun,
222
+ shouldEmitInstallCompleted,
219
223
  shouldShowTelemetryNotice,
220
224
  startTrial,
221
225
  track,
@@ -224,4 +228,4 @@ export {
224
228
  wrapWithIndexingEnvelope,
225
229
  writeCODEOWNERS
226
230
  };
227
- //# sourceMappingURL=src-JZWAESJU.js.map
231
+ //# sourceMappingURL=src-3ZB6BHFW.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-DVI2RWJR.js";
4
4
  import {
5
5
  generateEmbedding
6
- } from "../chunk-NMXQC5CG.js";
6
+ } from "../chunk-UVR65QBJ.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.2.5",
3
+ "version": "1.2.7",
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",