From d4ed0985b0fe22182e0c001a95eaceb971915c05 Mon Sep 17 00:00:00 2001 From: autoantohaki Date: Wed, 21 Oct 2026 17:15:09 -0300 Subject: [PATCH] chore: run the privacy check as part of verify --- README.md | 16 ++++++++-------- docs/testing.md | 2 ++ package.json | 3 ++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 56cb2db..1cad183 100644 --- a/README.md +++ b/README.md @@ -77,14 +77,14 @@ Set `MCP_CONFIG_PATH` to its path. Tools from every configured server become ava ## Commands -| Command | Purpose | -| ------------------------------ | --------------------------------------------------- | -| `npm run dev -- --input "..."` | Run one prompt with source files | -| `npm run dev -- --serve` | Start the development HTTP API | -| `npm run build` | Compile the production package | -| `npm test` | Run tests once | -| `npm run test:coverage` | Run tests and enforce coverage gates | -| `npm run verify` | Run formatting, linting, types, coverage, and build | +| Command | Purpose | +| ------------------------------ | ---------------------------------------------------------------------- | +| `npm run dev -- --input "..."` | Run one prompt with source files | +| `npm run dev -- --serve` | Start the development HTTP API | +| `npm run build` | Compile the production package | +| `npm test` | Run tests once | +| `npm run test:coverage` | Run tests and enforce coverage gates | +| `npm run verify` | Run the privacy check, formatting, linting, types, coverage, and build | ## Documentation diff --git a/docs/testing.md b/docs/testing.md index 9ebe325..4df6704 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -7,3 +7,5 @@ The HTTP tests use loopback ports and close every listener after the case. Run t ```bash npm run verify ``` + +The gate starts with `npm run privacy`, which fails if any tracked file contains a home-directory path, a private key, or an inline API key assignment. diff --git a/package.json b/package.json index 01e1f16..5c1f497 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,12 @@ "format": "prettier --check .", "format:write": "prettier --write .", "lint": "eslint .", + "privacy": "node scripts/privacy-check.mjs", "start": "node dist/cli.js", "test": "vitest run", "test:coverage": "vitest run --coverage", "test:watch": "vitest", - "verify": "npm run format && npm run lint && npm run check && npm run test:coverage && npm run build" + "verify": "npm run privacy && npm run format && npm run lint && npm run check && npm run test:coverage && npm run build" }, "dependencies": { "@langchain/core": "1.2.12",