@yawlabs/ctxlint 0.9.12 → 0.9.14

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.
@@ -4,7 +4,7 @@
4
4
  # Version-pinned so a checkout at `rev: vX.Y.Z` runs exactly that release
5
5
  # of ctxlint — matches the pinning done by `ctxlint init`. release.sh keeps
6
6
  # this in sync with package.json on each bump.
7
- entry: npx @yawlabs/ctxlint@0.9.12 --strict
7
+ entry: npx @yawlabs/ctxlint@0.9.14 --strict
8
8
  language: node
9
9
  always_run: true
10
10
  pass_filenames: false
package/dist/index.js CHANGED
@@ -43060,6 +43060,7 @@ import { createInterface } from "node:readline";
43060
43060
  import { dirname as dirname2, join as join5, resolve as resolve4 } from "node:path";
43061
43061
  import { existsSync } from "node:fs";
43062
43062
  function detectProviders() {
43063
+ if (!home) return [];
43063
43064
  return AGENT_DIRS.filter((a) => existsSync(a.dir)).map((a) => a.provider);
43064
43065
  }
43065
43066
  async function parseJsonlFiltered(filePath, filter) {
@@ -43853,7 +43854,7 @@ import { readFileSync as readFileSync4 } from "node:fs";
43853
43854
  import { resolve as resolve8, dirname as dirname3 } from "node:path";
43854
43855
  import { fileURLToPath } from "node:url";
43855
43856
  function loadVersion() {
43856
- if (true) return "0.9.12";
43857
+ if (true) return "0.9.14";
43857
43858
  const __dir = dirname3(fileURLToPath(import.meta.url));
43858
43859
  const pkgPath = resolve8(__dir, "../package.json");
43859
43860
  const pkg = JSON.parse(readFileSync4(pkgPath, "utf-8"));
@@ -44770,7 +44771,7 @@ var init_fixer = __esm({
44770
44771
  // src/mcp/server.ts
44771
44772
  var server_exports = {};
44772
44773
  import * as path9 from "node:path";
44773
- var allCheckNames, checkEnum, server, transport;
44774
+ var contextCheckEnum, mcpCheckEnum, sessionCheckEnum, server, transport;
44774
44775
  var init_server3 = __esm({
44775
44776
  async "src/mcp/server.ts"() {
44776
44777
  "use strict";
@@ -44787,8 +44788,9 @@ var init_server3 = __esm({
44787
44788
  init_git();
44788
44789
  init_paths();
44789
44790
  init_version2();
44790
- allCheckNames = [...ALL_CHECKS, ...ALL_MCP_CHECKS, ...ALL_SESSION_CHECKS];
44791
- checkEnum = external_exports3.enum(allCheckNames);
44791
+ contextCheckEnum = external_exports3.enum(ALL_CHECKS);
44792
+ mcpCheckEnum = external_exports3.enum(ALL_MCP_CHECKS);
44793
+ sessionCheckEnum = external_exports3.enum(ALL_SESSION_CHECKS);
44792
44794
  server = new McpServer({
44793
44795
  name: "ctxlint",
44794
44796
  version: VERSION
@@ -44798,7 +44800,7 @@ var init_server3 = __esm({
44798
44800
  "Audit AI agent context files (CLAUDE.md, AGENTS.md, etc.) in the project. Checks for stale references, invalid commands, redundant content, contradictions, frontmatter issues, and token waste. Use ctxlint_mcp_audit for MCP configs or ctxlint_session_audit for session checks.",
44799
44801
  {
44800
44802
  projectPath: external_exports3.string().optional().describe("Path to the project root. Defaults to current working directory."),
44801
- checks: external_exports3.array(checkEnum).optional().describe("Which checks to run. Defaults to all.")
44803
+ checks: external_exports3.array(contextCheckEnum).optional().describe("Which context-file checks to run. Defaults to all.")
44802
44804
  },
44803
44805
  {
44804
44806
  readOnlyHint: true,
@@ -44922,7 +44924,7 @@ var init_server3 = __esm({
44922
44924
  "Run the linter with --fix mode to auto-correct broken file paths in context files using git history and fuzzy matching. Returns a summary of what was fixed.",
44923
44925
  {
44924
44926
  projectPath: external_exports3.string().optional().describe("Path to the project root. Defaults to current working directory."),
44925
- checks: external_exports3.array(checkEnum).optional().describe("Which checks to run before fixing. Defaults to all.")
44927
+ checks: external_exports3.array(contextCheckEnum).optional().describe("Which context-file checks to run before fixing. Defaults to all.")
44926
44928
  },
44927
44929
  {
44928
44930
  // ctxlint_fix writes to disk via applyFixes() → fs.writeFileSync, so it
@@ -44974,7 +44976,7 @@ var init_server3 = __esm({
44974
44976
  "Lint MCP server configuration files in a project. Checks for schema errors, hardcoded secrets, deprecated transports, wrong env var syntax, URL issues, and cross-client inconsistencies.",
44975
44977
  {
44976
44978
  projectPath: external_exports3.string().optional().describe("Path to the project root. Defaults to current working directory."),
44977
- checks: external_exports3.array(checkEnum).optional().describe("Specific MCP checks to run (default: all mcp-* checks)."),
44979
+ checks: external_exports3.array(mcpCheckEnum).optional().describe("Specific MCP checks to run (default: all mcp-* checks)."),
44978
44980
  includeGlobal: external_exports3.boolean().optional().describe("Also scan global/user-level MCP configs.")
44979
44981
  },
44980
44982
  {
@@ -45012,7 +45014,7 @@ var init_server3 = __esm({
45012
45014
  "Audit AI agent session data for cross-project consistency. Checks for missing GitHub secrets, diverged config files, missing workflows, stale memory entries, and duplicate memories across sibling repositories.",
45013
45015
  {
45014
45016
  projectPath: external_exports3.string().optional().describe("Path to the project root. Defaults to current working directory."),
45015
- checks: external_exports3.array(checkEnum).optional().describe("Specific session checks to run (default: all session-* checks).")
45017
+ checks: external_exports3.array(sessionCheckEnum).optional().describe("Specific session checks to run (default: all session-* checks).")
45016
45018
  },
45017
45019
  {
45018
45020
  readOnlyHint: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/ctxlint",
3
- "version": "0.9.12",
3
+ "version": "0.9.14",
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"