@voidh4x0r/slopgate 0.1.17 → 0.1.18

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/CHANGELOG.md CHANGED
@@ -9,6 +9,16 @@ All notable changes to this project are documented here. The format follows [Kee
9
9
  - Go and Rust grammars.
10
10
  - VS Code diagnostics.
11
11
 
12
+ ## [0.1.18] - 2026-11-22
13
+
14
+ ### Changed
15
+ - README “Auditing AI-written code” now states the scope of the medium threshold: `pass` / `...` / `throw not implemented` stubs are covered; a bare `return None` is `low`, while `return []` / `{}` / `""` / `False` and empty classes are not reported because they are indistinguishable from legitimate default returns.
16
+ - `--strict` on a scan/rules/MCP command prints a stderr hint that it only affects `init` and points to `--confidence medium`; behavior is otherwise unchanged.
17
+
18
+ ### Tests
19
+ - 272 tests, including the `--strict` misuse warning.
20
+ - Benchmark unchanged at **29 high-confidence findings across 991,705 lines of CPython, 96.6% labeled precision (28/29), 14/14 seeded defects, 0 high findings on 601 JavaScript files**; `staleLabels: []`, `unlabeledHigh: []`.
21
+
12
22
  ## [0.1.17] - 2026-11-22
13
23
 
14
24
  ### Added
package/README.md CHANGED
@@ -14,7 +14,7 @@ AI writes code that *looks* right. `slopgate` finds the parts that only look rig
14
14
  ```console
15
15
  $ npx @voidh4x0r/slopgate .
16
16
 
17
- slopgate 0.1.17 · 4 files · 39ms
17
+ slopgate 0.1.18 · 4 files · 39ms
18
18
 
19
19
  app.py
20
20
  4:1 error high py/phantom-import `helper` is imported but not declared in any manifest and not present in this repository
@@ -186,6 +186,8 @@ npx @voidh4x0r/slopgate . --confidence medium --fail-on medium
186
186
 
187
187
  `slopgate init --strict` writes this policy into `.slopgate.json` and the generated GitHub Actions workflow. Keep the default `init` for human-maintained repositories.
188
188
 
189
+ **Scope of medium:** the medium threshold covers stubs whose entire body is `pass`, `...` or `throw new Error("not implemented")`. A bare `return None` is reported at `low`; `return []`, `{}`, `""`, `False` and empty classes are **not reported**, because they are indistinguishable from legitimate default return values. Do not expect strict mode to catch those placeholder returns.
190
+
189
191
  ### Use it from a coding agent (MCP)
190
192
 
191
193
  `slopgate` ships a Model Context Protocol server over stdio, so Claude Code, Codex and other MCP clients can check their own diff **before** saying "done".
@@ -224,7 +226,7 @@ jobs:
224
226
  - uses: actions/checkout@v4
225
227
  - uses: actions/setup-node@v4
226
228
  with: { node-version: 22 }
227
- - run: npx --yes @voidh4x0r/slopgate@0.1.17 . --fail-on high
229
+ - run: npx --yes @voidh4x0r/slopgate@0.1.18 . --fail-on high
228
230
  ```
229
231
 
230
232
  For GitHub code scanning, use `--format sarif` and upload with `github/codeql-action/upload-sarif`.
@@ -232,7 +234,7 @@ For GitHub code scanning, use `--format sarif` and upload with `github/codeql-ac
232
234
  For inline pull-request annotations **without** code scanning, use `--format github`, which emits [workflow commands](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions):
233
235
 
234
236
  ```yaml
235
- - run: npx --yes @voidh4x0r/slopgate@0.1.17 . --format github --fail-on high
237
+ - run: npx --yes @voidh4x0r/slopgate@0.1.18 . --format github --fail-on high
236
238
  ```
237
239
 
238
240
  Each finding becomes an `error` / `warning` / `notice` annotation on the exact line, followed by a summary notice.
@@ -317,7 +319,7 @@ Issues and pull requests are welcome. Start with [CONTRIBUTING.md](https://githu
317
319
  git clone https://github.com/VoidH4x0r/slopgate
318
320
  cd slopgate
319
321
  npm install
320
- npm test # 271 tests; the tests themselves make no network or child-process calls
322
+ npm test # 272 tests; the tests themselves make no network or child-process calls
321
323
  npm run typecheck
322
324
  npm run verify # all release gates in one command
323
325
  ```
package/dist/cli.js CHANGED
@@ -485,6 +485,9 @@ export async function main(argv, io = defaultIo()) {
485
485
  io.err(`slopgate: ${error}\n\n${HELP}`);
486
486
  return 2;
487
487
  }
488
+ if (options.strict && options.command !== 'init' && options.command !== 'help' && options.command !== 'version') {
489
+ warn(io, options, '--strict only affects `init`; use `--confidence medium` for scans');
490
+ }
488
491
  try {
489
492
  switch (options.command) {
490
493
  case 'help':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidh4x0r/slopgate",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "The slop gate for AI-written code. Precision-first structural linting for Python and TypeScript.",
5
5
  "type": "module",
6
6
  "license": "MIT",