@thehammer/template-verification 0.2.2 → 0.2.4

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.
@@ -14,6 +14,13 @@ export interface AuditLlmCall {
14
14
  started_at?: string | null;
15
15
  request?: unknown;
16
16
  response?: unknown;
17
+ /**
18
+ * Which pipeline stage this call belongs to (e.g. "Data Extraction Directive") —
19
+ * the TaskOrchestrator name the host resolved this call's TaskWorker back to.
20
+ * Null when the host could not attribute a stage (see gpt-manager's
21
+ * DataPointAuditService for the current Extraction-only attribution scope).
22
+ */
23
+ stage?: string | null;
17
24
  }
18
25
  /**
19
26
  * Lazy-fetch the LLM-call trace for one data point. The anchor's NEAREST object
@@ -1,3 +1,4 @@
1
+ import type { DataPointMeta } from "../types";
1
2
  /** Review-progress summary over a rendered data tree. */
2
3
  export interface VerificationProgress {
3
4
  /** Anchored data points (have a __meta entry) — the reviewable universe. */
@@ -9,6 +10,18 @@ export interface VerificationProgress {
9
10
  /** 0-100 integer percent (100 when total is 0 — nothing to review is "done"). */
10
11
  percent: number;
11
12
  }
13
+ /**
14
+ * One data point's "needs review" predicate — the SAME criteria
15
+ * {@link computeProgress} tallies, exported so a single point can be classified
16
+ * outside a full-tree walk (e.g. {@link ../components/VerifiedField.vue} tags its
17
+ * own rendered DOM node so `VerificationChrome`'s jump-to-next-flagged button can
18
+ * find it via a plain `.tv-needs-review` query, without duplicating this logic).
19
+ *
20
+ * Unverified (no override candidate) AND (disagreeing OR extracted confidence is
21
+ * low (≤2) or absent — which includes a data point with NO extracted candidate
22
+ * at all, e.g. a field never covered by any extraction directive).
23
+ */
24
+ export declare function pointNeedsReview(meta: DataPointMeta): boolean;
12
25
  /**
13
26
  * Compute review progress by walking the data tree ({@link walkDataPoints}).
14
27
  * "Verified" = an override candidate exists (a human explicitly locked a value —