@yawlabs/ctxlint 0.9.12 → 0.9.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.
@@ -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.13 --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.13";
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,11 @@ 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(
44794
+ ALL_SESSION_CHECKS
44795
+ );
44792
44796
  server = new McpServer({
44793
44797
  name: "ctxlint",
44794
44798
  version: VERSION
@@ -44798,7 +44802,7 @@ var init_server3 = __esm({
44798
44802
  "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
44803
  {
44800
44804
  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.")
44805
+ checks: external_exports3.array(contextCheckEnum).optional().describe("Which context-file checks to run. Defaults to all.")
44802
44806
  },
44803
44807
  {
44804
44808
  readOnlyHint: true,
@@ -44922,7 +44926,7 @@ var init_server3 = __esm({
44922
44926
  "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
44927
  {
44924
44928
  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.")
44929
+ checks: external_exports3.array(contextCheckEnum).optional().describe("Which context-file checks to run before fixing. Defaults to all.")
44926
44930
  },
44927
44931
  {
44928
44932
  // ctxlint_fix writes to disk via applyFixes() → fs.writeFileSync, so it
@@ -44974,7 +44978,7 @@ var init_server3 = __esm({
44974
44978
  "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
44979
  {
44976
44980
  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)."),
44981
+ checks: external_exports3.array(mcpCheckEnum).optional().describe("Specific MCP checks to run (default: all mcp-* checks)."),
44978
44982
  includeGlobal: external_exports3.boolean().optional().describe("Also scan global/user-level MCP configs.")
44979
44983
  },
44980
44984
  {
@@ -45012,7 +45016,7 @@ var init_server3 = __esm({
45012
45016
  "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
45017
  {
45014
45018
  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).")
45019
+ checks: external_exports3.array(sessionCheckEnum).optional().describe("Specific session checks to run (default: all session-* checks).")
45016
45020
  },
45017
45021
  {
45018
45022
  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.13",
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"