vigiles 12.1.0 → 12.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.
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { type AuditScore } from "./audit-score.js";
15
15
  import { type Recommendation } from "./optimize.js";
16
+ import type { LedgerSummary } from "./observe.js";
16
17
  import type { AdoptabilityResult } from "./adoptability.js";
17
18
  import type { ScanReport, MarketplaceInfo } from "./scan.js";
18
19
  import type { PluginScore } from "./leaderboard.js";
@@ -95,10 +96,20 @@ export interface AuditReport {
95
96
  * at least one adoptable surface. Additive/optional — schema version unchanged.
96
97
  */
97
98
  readonly adoptable?: Adoptable;
99
+ /**
100
+ * The flight-recorder summary — what the harness actually DID in real sessions
101
+ * (hook/agent decisions, counts, recent denials), read off `.vigiles/runs.jsonl`.
102
+ * Present only when the local ledger has records. Additive/optional — schema
103
+ * version unchanged. The CLI reads + summarizes the ledger and passes it in, so
104
+ * the pure builder stays fs-free.
105
+ */
106
+ readonly observations?: LedgerSummary;
98
107
  }
99
108
  export interface BuildAuditReportOptions {
100
109
  readonly harness: string;
101
110
  readonly vigilesVersion: string;
111
+ /** The flight-recorder summary from the local ledger (omit when empty). */
112
+ readonly observations?: LedgerSummary;
102
113
  /**
103
114
  * The repo-relative paths of surfaces that exist but have no `.spec.ts` yet,
104
115
  * computed by the CLI's layout-aware `discoverAdoptableSurfaces` (so the pure
@@ -70,6 +70,7 @@ function buildAuditReport(report, opts) {
70
70
  untested: report.untested,
71
71
  },
72
72
  ...(adoptable ? { adoptable } : {}),
73
+ ...(opts.observations ? { observations: opts.observations } : {}),
73
74
  };
74
75
  }
75
76
  /** Assemble the versioned {@link LeaderboardReport} — pure, no clock. */