@compr/opscontext-mcp 2.3.0 → 2.3.1
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/dist/rubric.d.ts +3 -45
- package/package.json +1 -1
package/dist/rubric.d.ts
CHANGED
|
@@ -1,45 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* 🔒 LOCKED [RUBRIC-SINGLE-TABLE] — 2026-08-14
|
|
5
|
-
* ⛔ NEVER inline a scoring threshold back into src/agents.ts.
|
|
6
|
-
* WHY: these values are what makes a score gameable — knowing ">50 lines earns the full 10"
|
|
7
|
-
* lets anyone pad a file to a number instead of writing the content. They were scattered
|
|
8
|
-
* as bare literals across ~10 call sites in agents.ts, so they shipped readable in
|
|
9
|
-
* dist/agents.js and could not be obscured without rewriting the whole scorer.
|
|
10
|
-
* FIX: one table, one module. `scripts/obfuscate-rubric.mjs` rewrites dist/rubric.js at build
|
|
11
|
-
* time into an encoded blob, so the published package carries no readable thresholds.
|
|
12
|
-
* Adding a literal back into agents.ts silently re-exposes it — the obfuscator only
|
|
13
|
-
* touches this file.
|
|
14
|
-
*
|
|
15
|
-
* NOTE ON STRENGTH: this stops casual reading, not determined analysis. The surrounding
|
|
16
|
-
* comparison logic still ships, and 2.1.3 remains on npm forever as a plaintext reference.
|
|
17
|
-
* It is a speed bump for score-gaming, deliberately, and must never be described as more.
|
|
18
|
-
* The real protections are the activation gate and BSL-1.1. See CLAUDE.md rules 1-3.
|
|
19
|
-
*/
|
|
20
|
-
export interface Rubric {
|
|
21
|
-
/** copilot-instructions.md line counts for the 10 / 6 point tiers */
|
|
22
|
-
copilotFull: number;
|
|
23
|
-
copilotPartial: number;
|
|
24
|
-
/** README.md line count for the full 8 points */
|
|
25
|
-
readmeFull: number;
|
|
26
|
-
/** SKILLS.md line count for the full 3 points */
|
|
27
|
-
skillsFull: number;
|
|
28
|
-
/** .env.example — documented variables needed for full marks */
|
|
29
|
-
envExampleVars: number;
|
|
30
|
-
/** .gitignore — essential patterns matched for full / partial credit */
|
|
31
|
-
gitignoreFull: number;
|
|
32
|
-
gitignorePartial: number;
|
|
33
|
-
/** Test files present for the 8 / 5 point tiers */
|
|
34
|
-
testsFull: number;
|
|
35
|
-
testsPartial: number;
|
|
36
|
-
/** tsconfig.json byte length below which it is treated as a stub */
|
|
37
|
-
tsconfigSubstantive: number;
|
|
38
|
-
/** Real (non-symlink) agent-pattern files for full credit */
|
|
39
|
-
multiAgentFull: number;
|
|
40
|
-
/** Commits since the agent doc was updated: at or below = current, above `freshnessStale` = stale */
|
|
41
|
-
freshnessGood: number;
|
|
42
|
-
freshnessStale: number;
|
|
43
|
-
}
|
|
44
|
-
export declare const RUBRIC: Rubric;
|
|
45
|
-
//# sourceMappingURL=rubric.d.ts.map
|
|
1
|
+
/*__RUBRIC_ENCODED__*/
|
|
2
|
+
export interface Rubric { [key: string]: number }
|
|
3
|
+
export declare const RUBRIC: Readonly<Rubric>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compr/opscontext-mcp",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "OpsContext for AI Agents — read-only fleet visibility (PM2/nginx/Docker/git/cron) + tamper-evident audit log + policy-as-code hooks. The ops + compliance layer Claude Code can't grow natively.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|