@thehammer/template-verification 0.2.19 → 0.2.21
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 +14 -18
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -139,12 +139,21 @@ export interface Correction {
|
|
|
139
139
|
/**
|
|
140
140
|
* The extracted (pipeline) candidate — carries provenance: confidence, reasoning, citation.
|
|
141
141
|
*
|
|
142
|
-
* SG-392: the host's BASE render (`data.__meta`) ships only `value`/`confidence`/
|
|
142
|
+
* SG-392: the host's BASE render (`data.__meta`) ships only `value`/`source`/`confidence`/
|
|
143
143
|
* `state` plus the two `_count` integers below (`sources`/`history` are `undefined`
|
|
144
|
-
* there)
|
|
145
|
-
*
|
|
146
|
-
* `
|
|
147
|
-
*
|
|
144
|
+
* there).
|
|
145
|
+
*
|
|
146
|
+
* SG-851: `reasoning` and `verbatim` are `undefined` on the base render too. An earlier
|
|
147
|
+
* revision of this paragraph said they ship in both light and full mode "being short
|
|
148
|
+
* per-field strings rather than per-attempt arrays" — that was true when written and stopped
|
|
149
|
+
* being true when the host measured them at 17% of a real 1.4 MB tree and moved them onto the
|
|
150
|
+
* same on-demand fetch `sources`/`history` already used. Neither key is retired: the host
|
|
151
|
+
* serves both from `data-point-sources` for the single field whose detail is open. Both are
|
|
152
|
+
* declared optional below, so a consumer that reads them off a base-render candidate gets
|
|
153
|
+
* `undefined` rather than a type error — this library reads NEITHER, and any consumer that
|
|
154
|
+
* wants them must fetch that field's detail, exactly as it already must for its citations.
|
|
155
|
+
*
|
|
156
|
+
* NOTHING IN THIS LIBRARY FILLS `sources`/`history` ANY MORE. They used to be lazy-fetched by the in-letter Inspector dialog, which is
|
|
148
157
|
* deleted; the embedding app reads a data point's full detail against its own
|
|
149
158
|
* session instead. A real production render was shipping every field's
|
|
150
159
|
* full retry history — each carrying its own `sources[]`, each source carrying two
|
|
@@ -196,19 +205,6 @@ export interface ExtractedCandidate {
|
|
|
196
205
|
history?: VerificationHistoryEntry[];
|
|
197
206
|
/** Cheap `history?.length` equivalent — present even when `history` itself is not (SG-392). */
|
|
198
207
|
history_count?: number;
|
|
199
|
-
/**
|
|
200
|
-
* Non-null when this candidate's value was reconciled from a genuine SOURCE-DOCUMENT
|
|
201
|
-
* conflict (SG-217). Shipped in BOTH light and full mode — unlike reasoning/sources/
|
|
202
|
-
* history above, it is a handful of short strings, not a per-attempt array, so it carries
|
|
203
|
-
* none of the SG-392 payload-size risk and `hasDiscrepancy()` needs it in light mode too.
|
|
204
|
-
*/
|
|
205
|
-
source_discrepancy?: SourceDiscrepancy | null;
|
|
206
|
-
/**
|
|
207
|
-
* Non-null when this candidate's value was NORMALISED/typo-fixed by the block dedupe
|
|
208
|
-
* (SG-406) — a DIFFERENT fact from `source_discrepancy` above, never folded into
|
|
209
|
-
* `discrepancy`. Shipped in BOTH light and full mode, same argument as `source_discrepancy`.
|
|
210
|
-
*/
|
|
211
|
-
correction?: Correction | null;
|
|
212
208
|
}
|
|
213
209
|
/**
|
|
214
210
|
* One recorded attempt in a field's extraction history (SG-190). Mirrors the extracted
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thehammer/template-verification",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
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",
|