@thehammer/template-verification 0.2.20 → 0.2.22

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/dist/types.d.ts CHANGED
@@ -8,12 +8,16 @@
8
8
  * entry is a {@link DataPointMeta} describing that one field's verification state.
9
9
  */
10
10
  /**
11
- * Status bucket derived from the integer 1-5 confidence (orthogonal to discrepancy),
12
- * plus 'failed' (SG-189) — a distinct extraction/citation-correction OUTCOME, not a
13
- * confidence bucket. 'failed' is resolved from the extracted candidate's `state`
14
- * field, never from bucketing a confidence integer.
11
+ * What a machine value's confidence mark shows: one of the five levels of the
12
+ * operator's scale (SG-843 — the SAME five the Demand Desk draws, from the same
13
+ * `@danxbot/ui` source), `"unrated"` when no rating was recorded, or `"failed"`
14
+ * (SG-189) — a distinct extraction/citation-correction OUTCOME, not a level,
15
+ * resolved from the extracted candidate's `state` and never from its confidence.
16
+ *
17
+ * Replaced the three buckets high/medium/low (SG-901): a 4 and a 5 were
18
+ * identical in the letter while the screen beside it drew them differently.
15
19
  */
16
- export type VerificationStatus = "high" | "medium" | "low" | "unverifiable" | "failed";
20
+ export type ConfidenceState = 1 | 2 | 3 | 4 | 5 | "unrated" | "failed";
17
21
  /** The winning candidate key for a resolved data point, or `none` when no candidate exists. */
18
22
  export type ResolvedSource = "override" | "extracted" | "claim" | "none";
19
23
  /** The basis a user picked when saving an override. */
@@ -139,12 +143,21 @@ export interface Correction {
139
143
  /**
140
144
  * The extracted (pipeline) candidate — carries provenance: confidence, reasoning, citation.
141
145
  *
142
- * SG-392: the host's BASE render (`data.__meta`) ships only `value`/`confidence`/
146
+ * SG-392: the host's BASE render (`data.__meta`) ships only `value`/`source`/`confidence`/
143
147
  * `state` plus the two `_count` integers below (`sources`/`history` are `undefined`
144
- * there) — `reasoning` and `verbatim` (SG-325) ship in both light and full mode, being
145
- * short per-field strings rather than per-attempt arrays. NOTHING IN THIS LIBRARY FILLS
146
- * `sources`/`history` IN ANY
147
- * MORE. They used to be lazy-fetched by the in-letter Inspector dialog, which is
148
+ * there).
149
+ *
150
+ * SG-851: `reasoning` and `verbatim` are `undefined` on the base render too. An earlier
151
+ * revision of this paragraph said they ship in both light and full mode "being short
152
+ * per-field strings rather than per-attempt arrays" — that was true when written and stopped
153
+ * being true when the host measured them at 17% of a real 1.4 MB tree and moved them onto the
154
+ * same on-demand fetch `sources`/`history` already used. Neither key is retired: the host
155
+ * serves both from `data-point-sources` for the single field whose detail is open. Both are
156
+ * declared optional below, so a consumer that reads them off a base-render candidate gets
157
+ * `undefined` rather than a type error — this library reads NEITHER, and any consumer that
158
+ * wants them must fetch that field's detail, exactly as it already must for its citations.
159
+ *
160
+ * NOTHING IN THIS LIBRARY FILLS `sources`/`history` ANY MORE. They used to be lazy-fetched by the in-letter Inspector dialog, which is
148
161
  * deleted; the embedding app reads a data point's full detail against its own
149
162
  * session instead. A real production render was shipping every field's
150
163
  * full retry history — each carrying its own `sources[]`, each source carrying two
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thehammer/template-verification",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
4
4
  "description": "Read-write verification overlay for rendered template apps — per-data-point confidence, discrepancy, 3-source resolution (override > extracted > claim), inline edit, and a recursive comparison page. Consumes the host's __meta sidecar; fetches nothing.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,6 +39,7 @@
39
39
  "vue": "^3.4.0"
40
40
  },
41
41
  "devDependencies": {
42
+ "@danxbot/ui": "^7.2.0",
42
43
  "@tailwindcss/vite": "^4.0.0",
43
44
  "@thehammer/danx-ui": "0.8.20",
44
45
  "@vitejs/plugin-vue": "^5.0.0",