vigiles 33.1.0 → 33.3.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/README.md +3 -2
- package/dist/adapter-conformance.js +14 -10
- package/dist/adapter.d.ts +3 -1
- package/dist/adapters/claude-code/layout.js +3 -0
- package/dist/adapters/claude-code/output-style.d.ts +3 -0
- package/dist/adapters/claude-code/output-style.js +81 -0
- package/dist/adapters/claude-code/replies.d.ts +14 -0
- package/dist/adapters/claude-code/replies.js +78 -0
- package/dist/adapters/claude-code/runtime.js +70 -0
- package/dist/adapters/claude-code/skill-reachability.d.ts +42 -21
- package/dist/adapters/claude-code/skill-reachability.js +91 -28
- package/dist/audit-report.d.ts +5 -0
- package/dist/audit-report.js +29 -20
- package/dist/audit-report.template.html +25 -25
- package/dist/audit-score.js +2 -2
- package/dist/check.d.ts +20 -0
- package/dist/check.js +87 -2
- package/dist/cli-main.js +249 -30
- package/dist/core/adapter.d.ts +7 -0
- package/dist/core/config-schema.d.ts +9 -0
- package/dist/core/config-schema.js +1 -0
- package/dist/core/eval-driver.d.ts +10 -0
- package/dist/core/frontmatter-read.d.ts +31 -0
- package/dist/core/frontmatter-read.js +4 -2
- package/dist/core/harness-driver.d.ts +2 -0
- package/dist/core/install-reader.js +15 -0
- package/dist/core/layout.d.ts +17 -0
- package/dist/core/layout.js +17 -0
- package/dist/core/output-style.d.ts +84 -0
- package/dist/core/output-style.js +90 -0
- package/dist/core/rule-meta.d.ts +1 -1
- package/dist/core/rule-meta.js +8 -0
- package/dist/core/run-env.d.ts +50 -0
- package/dist/core/run-env.js +51 -0
- package/dist/core/runtime.d.ts +44 -0
- package/dist/core/skill-link-target.d.ts +20 -0
- package/dist/core/skill-link-target.js +33 -0
- package/dist/core/types.d.ts +2 -0
- package/dist/coverage-evidence.d.ts +42 -0
- package/dist/coverage-evidence.js +39 -0
- package/dist/eval.d.ts +65 -42
- package/dist/eval.js +116 -120
- package/dist/harness-test.d.ts +65 -1
- package/dist/harness-test.js +114 -22
- package/dist/optimize.js +1 -5
- package/dist/output-style-arms.d.ts +27 -0
- package/dist/output-style-arms.js +51 -0
- package/dist/plugin-declaration.d.ts +6 -6
- package/dist/plugin-declaration.js +6 -6
- package/dist/scan-files.js +1 -1
- package/dist/scan.d.ts +6 -0
- package/dist/scan.js +14 -4
- package/dist/score-core.d.ts +3 -0
- package/dist/score-core.js +5 -1
- package/dist/setup-plan.d.ts +50 -10
- package/dist/setup-plan.js +103 -68
- package/dist/skill-links.d.ts +183 -0
- package/dist/skill-links.js +255 -0
- package/dist/test-coverage-files.d.ts +3 -1
- package/dist/test-coverage-files.js +20 -6
- package/dist/test-coverage.d.ts +18 -1
- package/dist/test-coverage.js +101 -15
- package/dist/test.d.ts +3 -1
- package/dist/test.js +8 -2
- package/dist/vigilesrc.schema.json +134 -0
- package/package.json +1 -1
package/dist/audit-report.d.ts
CHANGED
|
@@ -55,6 +55,11 @@ export interface AuditInventory {
|
|
|
55
55
|
readonly agents: number;
|
|
56
56
|
readonly hooks: number;
|
|
57
57
|
readonly commands: number;
|
|
58
|
+
/**
|
|
59
|
+
* Output styles found, or `"not-supported"` when the harness has none.
|
|
60
|
+
* Omitted when there are zero, so a report without styles is unchanged.
|
|
61
|
+
*/
|
|
62
|
+
readonly outputStyles?: number | "not-supported";
|
|
58
63
|
readonly mcp: boolean;
|
|
59
64
|
/** Surfaces covered by NEITHER tier — the union count (unchanged). */
|
|
60
65
|
readonly untested: number;
|
package/dist/audit-report.js
CHANGED
|
@@ -46,6 +46,34 @@ function buildAdoptable(surfaces) {
|
|
|
46
46
|
createAllCommand: CREATE_ALL_COMMAND,
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
+
/** What the scanned harness ships, as the report's `inventory`. */
|
|
50
|
+
function inventoryOf(report) {
|
|
51
|
+
return {
|
|
52
|
+
skills: report.skills.length,
|
|
53
|
+
agents: report.agents.length,
|
|
54
|
+
// All hooks, file-backed + inline — matches formatScanReport and the
|
|
55
|
+
// emptiness/scoring count, so a JSON/HTML "What it ships" never reports 0
|
|
56
|
+
// hooks for an inline-hook-only harness.
|
|
57
|
+
hooks: report.hooks.length + report.inlineHooks,
|
|
58
|
+
commands: report.commands,
|
|
59
|
+
...outputStylesField(report.outputStyles),
|
|
60
|
+
mcp: report.mcp,
|
|
61
|
+
untested: report.untested,
|
|
62
|
+
...(report.untestedHarness !== undefined
|
|
63
|
+
? { untestedHarness: report.untestedHarness }
|
|
64
|
+
: {}),
|
|
65
|
+
...(report.unevaluated !== undefined
|
|
66
|
+
? { unevaluated: report.unevaluated }
|
|
67
|
+
: {}),
|
|
68
|
+
...(report.coverageEvidence
|
|
69
|
+
? { coverageEvidence: report.coverageEvidence }
|
|
70
|
+
: {}),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/** The inventory's `outputStyles` entry: present unless there are none to report. */
|
|
74
|
+
function outputStylesField(n) {
|
|
75
|
+
return n === undefined || n === 0 ? {} : { outputStyles: n };
|
|
76
|
+
}
|
|
49
77
|
/**
|
|
50
78
|
* Assemble the versioned {@link AuditReport} from a scan report — pure, no clock.
|
|
51
79
|
* The CLI attaches `meta.generatedAt` when it writes the JSON artifact; the
|
|
@@ -68,26 +96,7 @@ function buildAuditReport(report, opts) {
|
|
|
68
96
|
score,
|
|
69
97
|
verdict,
|
|
70
98
|
recommendations,
|
|
71
|
-
inventory:
|
|
72
|
-
skills: report.skills.length,
|
|
73
|
-
agents: report.agents.length,
|
|
74
|
-
// All hooks, file-backed + inline — matches formatScanReport and the
|
|
75
|
-
// emptiness/scoring count, so a JSON/HTML "What it ships" never reports 0
|
|
76
|
-
// hooks for an inline-hook-only harness.
|
|
77
|
-
hooks: report.hooks.length + report.inlineHooks,
|
|
78
|
-
commands: report.commands,
|
|
79
|
-
mcp: report.mcp,
|
|
80
|
-
untested: report.untested,
|
|
81
|
-
...(report.untestedHarness !== undefined
|
|
82
|
-
? { untestedHarness: report.untestedHarness }
|
|
83
|
-
: {}),
|
|
84
|
-
...(report.unevaluated !== undefined
|
|
85
|
-
? { unevaluated: report.unevaluated }
|
|
86
|
-
: {}),
|
|
87
|
-
...(report.coverageEvidence
|
|
88
|
-
? { coverageEvidence: report.coverageEvidence }
|
|
89
|
-
: {}),
|
|
90
|
-
},
|
|
99
|
+
inventory: inventoryOf(report),
|
|
91
100
|
...(report.danglingRefs.length
|
|
92
101
|
? { brokenReferences: report.danglingRefs }
|
|
93
102
|
: {}),
|