ctxloom-pro 1.0.11 → 1.0.13

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.
@@ -11326,7 +11326,7 @@ async function startDashboard(options) {
11326
11326
  });
11327
11327
  } catch {
11328
11328
  }
11329
- const clientDist = path35.join(__dirname2, "../dist/dashboard/client");
11329
+ const clientDist = path35.join(__dirname2, "../dashboard/client");
11330
11330
  app.use(express.static(clientDist));
11331
11331
  app.get("*", (_req, res) => {
11332
11332
  res.sendFile(path35.join(clientDist, "index.html"));
@@ -8268,8 +8268,8 @@ async function startTrial(email, opts = {}) {
8268
8268
  // packages/core/src/license/telemetry.ts
8269
8269
  var TELEMETRY_DISABLED = process.env["CTXLOOM_NO_TELEMETRY"] === "1" || process.env["DO_NOT_TRACK"] === "1";
8270
8270
  var POSTHOG_HOST = "https://eu.i.posthog.com";
8271
- var POSTHOG_KEY = process.env["POSTHOG_API_KEY"] ?? (true ? "phc_CiDkmFLcZ2K6uCpcoSUQLmFrnnUvsyXGhSxopX5TVKE6" : "");
8272
- var SENTRY_DSN = process.env["SENTRY_DSN"] ?? (true ? "https://81c94a0f04a8e242dee493ac1e17f733@o4508531702497280.ingest.de.sentry.io/4511256875368528" : "");
8271
+ var POSTHOG_KEY = process.env["POSTHOG_API_KEY"] ?? (true ? "" : "");
8272
+ var SENTRY_DSN = process.env["SENTRY_DSN"] ?? (true ? "" : "");
8273
8273
  function track(event, distinctId, props = {}) {
8274
8274
  if (TELEMETRY_DISABLED || !POSTHOG_KEY) return;
8275
8275
  void sendPostHog(event, distinctId, props);
@@ -8420,4 +8420,4 @@ export {
8420
8420
  track,
8421
8421
  captureError
8422
8422
  };
8423
- //# sourceMappingURL=chunk-6GFE4SNN.js.map
8423
+ //# sourceMappingURL=chunk-7D275UON.js.map
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  startTrial,
35
35
  track,
36
36
  writeCODEOWNERS
37
- } from "./chunk-6GFE4SNN.js";
37
+ } from "./chunk-7D275UON.js";
38
38
  import {
39
39
  VectorStore
40
40
  } from "./chunk-NEHYSE2Y.js";
@@ -512,6 +512,12 @@ try {
512
512
  } catch {
513
513
  }
514
514
  var args = process.argv.slice(2);
515
+ var ctxloomVersion = "1.0.13".length > 0 ? "1.0.13" : "dev";
516
+ if (args.includes("--version") || args.includes("-v")) {
517
+ process.stdout.write(`ctxloom ${ctxloomVersion}
518
+ `);
519
+ process.exit(0);
520
+ }
515
521
  var command = args.includes("--help") || args.includes("-h") ? "--help" : args.find((a) => !a.startsWith("-"));
516
522
  function hasFlag(flag) {
517
523
  return args.includes(flag);
@@ -579,7 +585,7 @@ async function checkLicense() {
579
585
  if (command !== void 0 && LICENSE_GATE_BYPASS_COMMANDS.has(command)) return;
580
586
  const ciKey = process.env["CTXLOOM_LICENSE_KEY"];
581
587
  if (ciKey) {
582
- const { ApiClient } = await import("./src-JNWHMTLY.js");
588
+ const { ApiClient } = await import("./src-WB7EQTRV.js");
583
589
  const client = new ApiClient(process.env["CTXLOOM_API_BASE"]);
584
590
  try {
585
591
  const result = await client.validate(ciKey, "ci-ephemeral");
@@ -1100,7 +1106,7 @@ Suggested reviewers for ${files.length} file(s):`);
1100
1106
  process.stderr.write("[ctxloom] --limit must be a non-negative integer (0 for unlimited)\n");
1101
1107
  process.exit(2);
1102
1108
  }
1103
- const { loadRulesConfig, RulesChecker, formatText, formatJson, RulesConfigError } = await import("./src-JNWHMTLY.js");
1109
+ const { loadRulesConfig, RulesChecker, formatText, formatJson, RulesConfigError } = await import("./src-WB7EQTRV.js");
1104
1110
  let config;
1105
1111
  try {
1106
1112
  config = await loadRulesConfig(root);
@@ -1124,7 +1130,7 @@ Suggested reviewers for ${files.length} file(s):`);
1124
1130
  }
1125
1131
  let graph;
1126
1132
  if (useSnapshot) {
1127
- const { DependencyGraph: DG } = await import("./src-JNWHMTLY.js");
1133
+ const { DependencyGraph: DG } = await import("./src-WB7EQTRV.js");
1128
1134
  graph = new DG();
1129
1135
  const loaded = await graph.loadSnapshotOnly(root);
1130
1136
  if (!loaded) {
@@ -1133,7 +1139,7 @@ Suggested reviewers for ${files.length} file(s):`);
1133
1139
  }
1134
1140
  } else {
1135
1141
  process.stderr.write("[ctxloom] Building dependency graph...\n");
1136
- const { ASTParser: ASTParser2, DependencyGraph: DependencyGraph2 } = await import("./src-JNWHMTLY.js");
1142
+ const { ASTParser: ASTParser2, DependencyGraph: DependencyGraph2 } = await import("./src-WB7EQTRV.js");
1137
1143
  let parser;
1138
1144
  try {
1139
1145
  parser = new ASTParser2();
@@ -1188,6 +1194,7 @@ Usage:
1188
1194
  ctxloom rules check --json Output violations as JSON
1189
1195
  ctxloom rules check --use-snapshot Fast mode: use existing graph snapshot
1190
1196
  ctxloom rules check --limit=N Show first N violations (default 50, 0=unlimited)
1197
+ ctxloom --version Print installed version and exit
1191
1198
  ctxloom --help Show this help
1192
1199
 
1193
1200
  Flags (for MCP server mode):
@@ -69,7 +69,7 @@ import {
69
69
  startTrial,
70
70
  track,
71
71
  writeCODEOWNERS
72
- } from "./chunk-6GFE4SNN.js";
72
+ } from "./chunk-7D275UON.js";
73
73
  import {
74
74
  VectorStore
75
75
  } from "./chunk-NEHYSE2Y.js";
@@ -160,4 +160,4 @@ export {
160
160
  track,
161
161
  writeCODEOWNERS
162
162
  };
163
- //# sourceMappingURL=src-JNWHMTLY.js.map
163
+ //# sourceMappingURL=src-WB7EQTRV.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctxloom-pro",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
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",
@@ -27,12 +27,17 @@
27
27
  "LICENSE"
28
28
  ],
29
29
  "scripts": {
30
+ "clean:src": "node scripts/clean-stale-src-artifacts.mjs",
31
+ "prebuild": "npm run clean:src",
30
32
  "build": "tsup && npm run -w @ctxloom/dashboard build",
33
+ "prebuild:cli": "npm run clean:src",
31
34
  "build:cli": "tsup",
32
35
  "build:dashboard": "npm run -w @ctxloom/dashboard build",
33
- "prepublishOnly": "tsup && npm run -w @ctxloom/dashboard build",
36
+ "prepublishOnly": "tsup && npm run -w @ctxloom/dashboard build && node scripts/publish-smoke-test.mjs",
37
+ "smoke:publish": "node scripts/publish-smoke-test.mjs",
34
38
  "start": "node dist/index.js",
35
39
  "dev": "tsx src/index.ts",
40
+ "pretest": "npm run clean:src",
36
41
  "test": "vitest run",
37
42
  "lint": "tsc --noEmit",
38
43
  "postinstall": "node dist/setup/postinstall.js || true",