@vantageos/backend-doctor 0.1.6 → 0.1.7
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.
|
@@ -168,8 +168,8 @@ export function scanR20(files) {
|
|
|
168
168
|
// THAT site -> conform; else -> violate. A numeric/exception on a DIFFERENT
|
|
169
169
|
// site does not carry.
|
|
170
170
|
// ---------------------------------------------------------------------------
|
|
171
|
-
const NUMERIC_WINDOW = /windowms\s*:\s*\d
|
|
172
|
-
const NUMERIC_MAX = /maxperwindow\s*:\s*\d
|
|
171
|
+
const NUMERIC_WINDOW = /windowms\s*:\s*\d|(?:^|[^A-Za-z])rate_?window\w*\s*=\s*\d|(\d[\d_]*)\s*(ms|_?000)\b|per\s+(minute|second|hour)/i;
|
|
172
|
+
const NUMERIC_MAX = /maxperwindow\s*:\s*\d|(?:^|[^A-Za-z])rate_?limit\w*\s*=\s*\d|\b\d+\s*(req|requests|per)\b/i;
|
|
173
173
|
const WRITTEN_EXCEPTION = /allow-unbounded|written exception|rate-limit exception/i;
|
|
174
174
|
// A limiter DECLARATION/enforcement, not a mere keyword mention:
|
|
175
175
|
// - `maxPerWindow:` — the per-window MAX key (the definitive throttle signal;
|
|
@@ -180,7 +180,7 @@ const WRITTEN_EXCEPTION = /allow-unbounded|written exception|rate-limit exceptio
|
|
|
180
180
|
// human-readable rejection strings (`"...5 registrations per minute per IP."`)
|
|
181
181
|
// that are not control declarations. It survives only as a WINDOW confirmation
|
|
182
182
|
// inside a site already anchored by a real limiter declaration.
|
|
183
|
-
const RATE_CONTROL_DECL = /maxperwindow\s
|
|
183
|
+
const RATE_CONTROL_DECL = /maxperwindow\s*:|(?:^|[^A-Za-z])rate_?limit\w*\s*=\s*\d/i;
|
|
184
184
|
// A schema table declaration or a validator field is never a control SITE —
|
|
185
185
|
// this is what excludes `credentialsRateLimits: defineTable(...)` and
|
|
186
186
|
// `maxPerWindow: v.number()` from anchoring a site.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vantageos/backend-doctor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "A conformance instrument that measures the VantagePeers backend against the pinned backend standard. The THIRD doctor built ON the @vantageos/mcp-doctor engine — never a third engine. It consumes runDoctor/renderTable and adds only detectors.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli.js",
|