vigiles 2.4.0 → 2.6.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.
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * `vigiles/testing` — Pillar 2 entry point: the **harness-testing** API. Re-exports
19
+ * the three tiers — `runHook` (unit), `runHarnessTest` (deterministic), `runEval`
20
+ * (eval) — plus the runner-agnostic predicates/assertions. Kept deliberately
21
+ * separate from `vigiles/claude-code` so this surface can stay harness-agnostic as
22
+ * more harnesses are added. Granular paths (`vigiles/run-hook`, etc.) still work.
23
+ */
24
+ __exportStar(require("./run-hook.js"), exports);
25
+ __exportStar(require("./harness-test.js"), exports);
26
+ __exportStar(require("./eval.js"), exports);
27
+ __exportStar(require("./harness-assert.js"), exports);
28
+ //# sourceMappingURL=testing.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vigiles",
3
- "version": "2.4.0",
3
+ "version": "2.6.0",
4
4
  "description": "Compile .spec.ts files to instruction files (CLAUDE.md, AGENTS.md) with linter cross-referencing",
5
5
  "bin": {
6
6
  "vigiles": "dist/cli.js"
@@ -9,6 +9,9 @@
9
9
  "types": "./dist/spec.d.ts",
10
10
  "exports": {
11
11
  ".": "./dist/spec.js",
12
+ "./linting": "./dist/linting.js",
13
+ "./testing": "./dist/testing.js",
14
+ "./claude-code": "./dist/claude-code.js",
12
15
  "./spec": "./dist/spec.js",
13
16
  "./compile": "./dist/compile.js",
14
17
  "./linters": "./dist/linters.js",
@@ -40,7 +43,8 @@
40
43
  ],
41
44
  "scripts": {
42
45
  "build": "tsc",
43
- "test": "npm run build && node --test dist/spec.test.js dist/validate.test.js dist/cli.test.js dist/proofs.test.js dist/inline.test.js dist/sidecar.test.js dist/coverage.test.js dist/session.test.js dist/orphans.test.js dist/cedar.test.js dist/doc-refs.test.js dist/frontmatter.test.js dist/skill-pipeline.test.js dist/skill-runtime.test.js dist/skill-driver.test.js dist/skill-test.test.js dist/compile-generator.test.js dist/community-skills.test.js dist/action-gate.test.js dist/symbols.test.js dist/refs.test.js dist/harness-test.test.js dist/eval.test.js dist/run-scripts.test.js dist/plugin-loader.test.js dist/harness-assert.test.js dist/judge.test.js dist/run-hook.test.js dist/mcp.test.js",
46
+ "test": "npm run build && vitest run",
47
+ "coverage": "npm run build && vitest run --coverage",
44
48
  "lint": "eslint src/",
45
49
  "fmt": "prettier --write .",
46
50
  "fmt:check": "prettier --check .",
@@ -48,9 +52,10 @@
48
52
  "test:e2e": "bash test/e2e/run.sh",
49
53
  "test:harness": "npm run build && node dist/cli.js test",
50
54
  "test:eval": "npm run build && node dist/cli.js eval",
51
- "test:vitest": "npm run build && vitest run",
55
+ "test:vitest": "npm run build && vitest run --project runners",
52
56
  "test:jest": "npm run build && jest",
53
- "test:types": "npm run build && tsc --noEmit -p test/types/tsconfig.json"
57
+ "test:types": "npm run build && tsc --noEmit -p test/types/tsconfig.json",
58
+ "demo:plugin": "npm run build && node examples/plugin-test-demo.mjs"
54
59
  },
55
60
  "devDependencies": {
56
61
  "@eslint/js": "^10.0.1",
@@ -59,6 +64,7 @@
59
64
  "@types/node": "^20.19.39",
60
65
  "@typescript-eslint/eslint-plugin": "^8.58.0",
61
66
  "@typescript-eslint/parser": "^8.58.0",
67
+ "@vitest/coverage-v8": "^4.1.8",
62
68
  "eslint": "^10.1.0",
63
69
  "eslint-plugin-sonarjs": "^4.0.2",
64
70
  "globals": "^17.4.0",