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.
Files changed (66) hide show
  1. package/README.md +3 -2
  2. package/dist/adapter-conformance.js +14 -10
  3. package/dist/adapter.d.ts +3 -1
  4. package/dist/adapters/claude-code/layout.js +3 -0
  5. package/dist/adapters/claude-code/output-style.d.ts +3 -0
  6. package/dist/adapters/claude-code/output-style.js +81 -0
  7. package/dist/adapters/claude-code/replies.d.ts +14 -0
  8. package/dist/adapters/claude-code/replies.js +78 -0
  9. package/dist/adapters/claude-code/runtime.js +70 -0
  10. package/dist/adapters/claude-code/skill-reachability.d.ts +42 -21
  11. package/dist/adapters/claude-code/skill-reachability.js +91 -28
  12. package/dist/audit-report.d.ts +5 -0
  13. package/dist/audit-report.js +29 -20
  14. package/dist/audit-report.template.html +25 -25
  15. package/dist/audit-score.js +2 -2
  16. package/dist/check.d.ts +20 -0
  17. package/dist/check.js +87 -2
  18. package/dist/cli-main.js +249 -30
  19. package/dist/core/adapter.d.ts +7 -0
  20. package/dist/core/config-schema.d.ts +9 -0
  21. package/dist/core/config-schema.js +1 -0
  22. package/dist/core/eval-driver.d.ts +10 -0
  23. package/dist/core/frontmatter-read.d.ts +31 -0
  24. package/dist/core/frontmatter-read.js +4 -2
  25. package/dist/core/harness-driver.d.ts +2 -0
  26. package/dist/core/install-reader.js +15 -0
  27. package/dist/core/layout.d.ts +17 -0
  28. package/dist/core/layout.js +17 -0
  29. package/dist/core/output-style.d.ts +84 -0
  30. package/dist/core/output-style.js +90 -0
  31. package/dist/core/rule-meta.d.ts +1 -1
  32. package/dist/core/rule-meta.js +8 -0
  33. package/dist/core/run-env.d.ts +50 -0
  34. package/dist/core/run-env.js +51 -0
  35. package/dist/core/runtime.d.ts +44 -0
  36. package/dist/core/skill-link-target.d.ts +20 -0
  37. package/dist/core/skill-link-target.js +33 -0
  38. package/dist/core/types.d.ts +2 -0
  39. package/dist/coverage-evidence.d.ts +42 -0
  40. package/dist/coverage-evidence.js +39 -0
  41. package/dist/eval.d.ts +65 -42
  42. package/dist/eval.js +116 -120
  43. package/dist/harness-test.d.ts +65 -1
  44. package/dist/harness-test.js +114 -22
  45. package/dist/optimize.js +1 -5
  46. package/dist/output-style-arms.d.ts +27 -0
  47. package/dist/output-style-arms.js +51 -0
  48. package/dist/plugin-declaration.d.ts +6 -6
  49. package/dist/plugin-declaration.js +6 -6
  50. package/dist/scan-files.js +1 -1
  51. package/dist/scan.d.ts +6 -0
  52. package/dist/scan.js +14 -4
  53. package/dist/score-core.d.ts +3 -0
  54. package/dist/score-core.js +5 -1
  55. package/dist/setup-plan.d.ts +50 -10
  56. package/dist/setup-plan.js +103 -68
  57. package/dist/skill-links.d.ts +183 -0
  58. package/dist/skill-links.js +255 -0
  59. package/dist/test-coverage-files.d.ts +3 -1
  60. package/dist/test-coverage-files.js +20 -6
  61. package/dist/test-coverage.d.ts +18 -1
  62. package/dist/test-coverage.js +101 -15
  63. package/dist/test.d.ts +3 -1
  64. package/dist/test.js +8 -2
  65. package/dist/vigilesrc.schema.json +134 -0
  66. package/package.json +1 -1
@@ -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;
@@ -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
  : {}),