@yawlabs/ctxlint 0.9.7 → 0.9.8

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -34617,9 +34617,14 @@ function extractPathReferences(lines, sections) {
34617
34617
  if (/^[A-Z][\w.-]*\/[A-Z][\w.-]*$/.test(value) && !value.includes(".")) {
34618
34618
  continue;
34619
34619
  }
34620
+ let cleanValue = value;
34621
+ while (/[.,;:]$/.test(cleanValue) && cleanValue.includes("/")) {
34622
+ cleanValue = cleanValue.slice(0, -1);
34623
+ }
34624
+ if (!cleanValue.includes("/")) continue;
34620
34625
  const column = match.index + match[0].length - match[1].length + 1;
34621
34626
  paths.push({
34622
- value,
34627
+ value: cleanValue,
34623
34628
  line: i2 + 1,
34624
34629
  // 1-indexed
34625
34630
  column,
@@ -43837,7 +43842,7 @@ import { readFileSync as readFileSync4 } from "node:fs";
43837
43842
  import { resolve as resolve8, dirname as dirname3 } from "node:path";
43838
43843
  import { fileURLToPath } from "node:url";
43839
43844
  function loadVersion() {
43840
- if (true) return "0.9.7";
43845
+ if (true) return "0.9.8";
43841
43846
  const __dir = dirname3(fileURLToPath(import.meta.url));
43842
43847
  const pkgPath = resolve8(__dir, "../package.json");
43843
43848
  const pkg = JSON.parse(readFileSync4(pkgPath, "utf-8"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/ctxlint",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "Lint your AI agent context files, MCP server configs, and session data against your actual codebase",
5
5
  "bin": {
6
6
  "ctxlint": "dist/index.js"