vigiles 41.0.0 → 41.1.0
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/core/rule-proof/kits/eslint.d.ts +30 -0
- package/dist/core/rule-proof/kits/eslint.js +130 -0
- package/dist/core/rule-proof/kits/index.d.ts +7 -0
- package/dist/core/rule-proof/kits/index.js +12 -0
- package/dist/core/rule-proof/kits/ruff.d.ts +28 -0
- package/dist/core/rule-proof/kits/ruff.js +178 -0
- package/dist/core/rule-proof/node-install.d.ts +32 -0
- package/dist/core/rule-proof/node-install.js +117 -0
- package/dist/core/rule-proof/pair.d.ts +11 -0
- package/dist/core/rule-proof/pair.js +61 -0
- package/dist/core/rule-proof/port.d.ts +77 -0
- package/dist/core/rule-proof/port.js +3 -0
- package/dist/core/rule-proof/report.d.ts +11 -0
- package/dist/core/rule-proof/report.js +36 -0
- package/dist/core/rule-proof/run.d.ts +58 -0
- package/dist/core/rule-proof/run.js +260 -0
- package/dist/core/rule-proof/types.d.ts +119 -0
- package/dist/core/rule-proof/types.js +13 -0
- package/dist/entries/rule-proof.d.ts +18 -0
- package/dist/entries/rule-proof.js +23 -0
- package/dist/host/rule-proof.io.d.ts +4 -0
- package/dist/host/rule-proof.io.js +64 -0
- package/package.json +2 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.nodeHost = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The host adapter for rule-proof: the machine's files and processes, behind
|
|
6
|
+
* core's {@link RuleProofHost} port. Effects only — it knows no linter and
|
|
7
|
+
* wires nothing; `src/entries/rule-proof.ts` does that. Not a harness: the
|
|
8
|
+
* linters it runs belong to the repository being measured, not to an agent.
|
|
9
|
+
*/
|
|
10
|
+
const node_child_process_1 = require("node:child_process");
|
|
11
|
+
const node_fs_1 = require("node:fs");
|
|
12
|
+
const node_path_1 = require("node:path");
|
|
13
|
+
const glob_1 = require("glob");
|
|
14
|
+
/** `spawnSync`, its outcomes as {@link ExecResult}. */
|
|
15
|
+
const exec = (command, args, options) => {
|
|
16
|
+
const res = (0, node_child_process_1.spawnSync)(command, args, {
|
|
17
|
+
cwd: options.cwd,
|
|
18
|
+
env: { ...process.env, ...options.env },
|
|
19
|
+
timeout: options.timeoutMs,
|
|
20
|
+
encoding: "utf8",
|
|
21
|
+
maxBuffer: 256 * 1024 * 1024,
|
|
22
|
+
});
|
|
23
|
+
if (res.error !== undefined)
|
|
24
|
+
return /ETIMEDOUT/.test(res.error.message)
|
|
25
|
+
? { kind: "timeout" }
|
|
26
|
+
: { kind: "spawn-error", message: res.error.message };
|
|
27
|
+
if (res.status === null)
|
|
28
|
+
return { kind: "killed", signal: String(res.signal) };
|
|
29
|
+
return {
|
|
30
|
+
kind: "exited",
|
|
31
|
+
code: res.status,
|
|
32
|
+
stdout: res.stdout,
|
|
33
|
+
stderr: res.stderr,
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/** The machine, as the port asks for it. */
|
|
37
|
+
exports.nodeHost = {
|
|
38
|
+
exec,
|
|
39
|
+
read: (path) => {
|
|
40
|
+
try {
|
|
41
|
+
return (0, node_fs_1.readFileSync)(path, "utf8");
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
exists: node_fs_1.existsSync,
|
|
48
|
+
list: (dir) => (0, node_fs_1.readdirSync)(dir),
|
|
49
|
+
write: (path, text) => {
|
|
50
|
+
(0, node_fs_1.mkdirSync)((0, node_path_1.dirname)(path), { recursive: true });
|
|
51
|
+
(0, node_fs_1.writeFileSync)(path, text);
|
|
52
|
+
},
|
|
53
|
+
remove: (path) => {
|
|
54
|
+
(0, node_fs_1.rmSync)(path, { recursive: true, force: true });
|
|
55
|
+
},
|
|
56
|
+
files: (dir, patterns) => (0, glob_1.globSync)([...patterns], {
|
|
57
|
+
cwd: dir,
|
|
58
|
+
dot: true,
|
|
59
|
+
nodir: true,
|
|
60
|
+
posix: true,
|
|
61
|
+
ignore: ["**/node_modules/**", "**/.git/**"],
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=rule-proof.io.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vigiles",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.1.0",
|
|
4
4
|
"description": "Audit, test and measure the harness your AI agent runs on — grade your CLAUDE.md / AGENTS.md, skills, subagents and hooks, run them against a scripted model, and measure whether they actually fire.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"./spec": "./dist/core/spec.js",
|
|
43
43
|
"./eval": "./dist/eval-surface.js",
|
|
44
44
|
"./linting": "./dist/linting.js",
|
|
45
|
+
"./rule-proof": "./dist/entries/rule-proof.js",
|
|
45
46
|
"./hook": "./dist/hook.js",
|
|
46
47
|
"./claude-code": "./dist/claude-code.js",
|
|
47
48
|
"./codex": "./dist/codex.js",
|