@yawlabs/ctxlint 0.1.0 → 0.1.1

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.
package/dist/index.js CHANGED
@@ -1,4 +1,10 @@
1
1
  #!/usr/bin/env node
2
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
3
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
4
+ }) : x)(function(x) {
5
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
+ throw Error('Dynamic require of "' + x + '" is not supported');
7
+ });
2
8
 
3
9
  // src/index.ts
4
10
  import { Command } from "commander";
@@ -1007,7 +1013,19 @@ function formatIssue(issue) {
1007
1013
 
1008
1014
  // src/index.ts
1009
1015
  import * as path7 from "path";
1010
- var VERSION = "0.1.0";
1016
+
1017
+ // src/version.ts
1018
+ function loadVersion() {
1019
+ if (true) return "0.1.1";
1020
+ const fs5 = __require("fs");
1021
+ const path8 = __require("path");
1022
+ const pkgPath = path8.resolve(__dirname, "../package.json");
1023
+ const pkg = JSON.parse(fs5.readFileSync(pkgPath, "utf-8"));
1024
+ return pkg.version;
1025
+ }
1026
+ var VERSION = loadVersion();
1027
+
1028
+ // src/index.ts
1011
1029
  var ALL_CHECKS = ["paths", "commands", "staleness", "tokens", "redundancy"];
1012
1030
  var program = new Command();
1013
1031
  program.name("ctxlint").description(
@@ -1,3 +1,10 @@
1
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
+ }) : x)(function(x) {
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
5
+ throw Error('Dynamic require of "' + x + '" is not supported');
6
+ });
7
+
1
8
  // src/mcp/server.ts
2
9
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
10
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -904,7 +911,19 @@ function escapeRegex(str) {
904
911
 
905
912
  // src/mcp/server.ts
906
913
  import * as path7 from "path";
907
- var VERSION = "0.1.0";
914
+
915
+ // src/version.ts
916
+ function loadVersion() {
917
+ if (true) return "0.1.1";
918
+ const fs5 = __require("fs");
919
+ const path8 = __require("path");
920
+ const pkgPath = path8.resolve(__dirname, "../package.json");
921
+ const pkg = JSON.parse(fs5.readFileSync(pkgPath, "utf-8"));
922
+ return pkg.version;
923
+ }
924
+ var VERSION = loadVersion();
925
+
926
+ // src/mcp/server.ts
908
927
  var ALL_CHECKS = ["paths", "commands", "staleness", "tokens", "redundancy"];
909
928
  var server = new McpServer({
910
929
  name: "ctxlint",
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@yawlabs/ctxlint",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Lint your AI agent context files (CLAUDE.md, AGENTS.md, etc.) against your actual codebase",
5
5
  "bin": {
6
- "ctxlint": "./dist/index.js"
6
+ "ctxlint": "dist/index.js"
7
7
  },
8
8
  "type": "module",
9
9
  "scripts": {
@@ -34,7 +34,7 @@
34
34
  "license": "MIT",
35
35
  "repository": {
36
36
  "type": "git",
37
- "url": "https://github.com/yawlabs/ctxlint"
37
+ "url": "git+https://github.com/yawlabs/ctxlint.git"
38
38
  },
39
39
  "homepage": "https://github.com/yawlabs/ctxlint",
40
40
  "author": "Yaw Labs <contact@yaw.sh>",
@@ -69,4 +69,4 @@
69
69
  "esbuild"
70
70
  ]
71
71
  }
72
- }
72
+ }