@thehammer/template-verification 0.1.0 → 0.1.2

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
@@ -7,6 +7,7 @@
7
7
  * A rendered object node carries a `__meta` MAP keyed by leaf field name; each
8
8
  * entry is a {@link DataPointMeta} describing that one field's verification state.
9
9
  */
10
+ import type { PreviewFile } from "@thehammer/danx-ui";
10
11
  /** Status bucket derived from the integer 1-5 confidence (orthogonal to discrepancy). */
11
12
  export type VerificationStatus = "high" | "medium" | "low" | "unverifiable";
12
13
  /** The winning candidate key for a resolved data point, or `none` when no candidate exists. */
@@ -30,6 +31,13 @@ export interface VerificationSource {
30
31
  page?: number;
31
32
  file_url?: string;
32
33
  file_name?: string;
34
+ /**
35
+ * The resolved StoredFile behind `stored_file_id`, danx-ui `PreviewFile`-shaped
36
+ * (id/name/size/mime/url/thumb?). Present when the host resolved it (gpt-manager's
37
+ * `TemplateDataResource::sourceFilePayload`); null/absent when the source has no
38
+ * linked file. This is what the modal renders a real thumbnail/preview from.
39
+ */
40
+ file?: PreviewFile | null;
33
41
  }
34
42
  /** The extracted (pipeline) candidate — carries provenance: confidence, reasoning, citation. */
35
43
  export interface ExtractedCandidate {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thehammer/template-verification",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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",
@@ -37,10 +37,12 @@
37
37
  "vue": "^3.4.0"
38
38
  },
39
39
  "devDependencies": {
40
+ "@tailwindcss/vite": "^4.0.0",
40
41
  "@thehammer/danx-ui": "^0.8.16",
41
42
  "@vitejs/plugin-vue": "^5.0.0",
42
43
  "@vue/test-utils": "^2.4.6",
43
44
  "happy-dom": "^20.3.9",
45
+ "tailwindcss": "^4.0.0",
44
46
  "typescript": "~5.4.0",
45
47
  "vite": "^5.4.0",
46
48
  "vitest": "^2.1.0",