ctxmedic 0.2.2 → 0.2.4

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/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  [![CI](https://github.com/ponomarenko/ctxmedic/actions/workflows/ci.yml/badge.svg)](https://github.com/ponomarenko/ctxmedic/actions/workflows/ci.yml)
6
6
  [![node](https://img.shields.io/node/v/ctxmedic)](https://www.npmjs.com/package/ctxmedic)
7
7
  [![license](https://img.shields.io/badge/license-FSL--1.1--MIT-blue)](https://github.com/ponomarenko/ctxmedic/blob/main/LICENSE)
8
+ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/ponomarenko/ctxmedic/badge)](https://scorecard.dev/viewer/?uri=github.com/ponomarenko/ctxmedic)
8
9
 
9
10
  > The context medic for your AI coding setup: a linter, auto-fixer and
10
11
  > token-cost analyzer for `CLAUDE.md`, `AGENTS.md`, Cursor rules, skills and MCP configs.
@@ -75,7 +76,7 @@ jobs:
75
76
  with:
76
77
  fail-on: critical # or "warning" to fail on 🟡 too
77
78
  # path: . # project folder
78
- # version: 0.1.0 # ctxmedic version from npm (default: latest)
79
+ # version: 0.1.0 # ctxmedic version from npm (default: the one released with this Action ref)
79
80
  ```
80
81
 
81
82
  Nothing leaves the runner: no telemetry, no network calls besides installing the
package/dist/index.js CHANGED
@@ -380,7 +380,7 @@ var PATTERNS = [
380
380
  ["Google API key", /\bAIza[0-9A-Za-z_-]{35}\b/g],
381
381
  ["Stripe key", /\b(?:sk|rk)_live_[A-Za-z0-9]{20,}/g]
382
382
  ];
383
- var GENERIC = /["']?([A-Za-z0-9_-]*(?:api[_-]?key|token|secret|password|passwd))["']?\s*[:=]\s*["']([^"'\s$]{16,})["']/gi;
383
+ var GENERIC = /(?<![A-Za-z0-9_-])["']?([A-Za-z0-9_-]*(?:api[_-]?key|token|secret|password|passwd))["']?\s*[:=]\s*["']([^"'\s$]{16,})["']/gi;
384
384
  var mask = (s) => s.length <= 8 ? "****" : `${s.slice(0, 6)}\u2026${s.slice(-2)} (${s.length} chars)`;
385
385
  function entropy(s) {
386
386
  const freq = /* @__PURE__ */ new Map();
@@ -1517,7 +1517,7 @@ var harnesses = [
1517
1517
  ];
1518
1518
 
1519
1519
  // ../clinical/src/engine.ts
1520
- var VERSION = true ? "0.2.2" : "0.0.0-dev";
1520
+ var VERSION = true ? "0.2.4" : "0.0.0-dev";
1521
1521
  var TRIAGE = { critical: "resuscitation", warning: "therapy", info: "preventive" };
1522
1522
  var ORDER = ["resuscitation", "therapy", "preventive"];
1523
1523
  var human = (k) => k.replace(/([A-Z])/g, " $1").replace(/^./, (c) => c.toUpperCase());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctxmedic",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "The context medic for your AI coding setup: checkup, treat, savings for Claude Code, Cursor, Windsurf, Codex CLI, OpenCode, Cline and Copilot.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-MIT",