@ggui-ai/ui-gen 0.24.0 → 0.26.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.
- package/README.md +2 -2
- package/dist/{adapter-Du7P_5Fx.d.ts → adapter-BJwn74rx.d.ts} +49 -1
- package/dist/adapters/generation-dispatch.d.ts +32 -7
- package/dist/adapters/generation-dispatch.js +1997 -216
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +29 -6
- package/dist/adapters/index.js.map +1 -1
- package/dist/advanced/index.d.ts +15 -12
- package/dist/advanced/index.js +2013 -270
- package/dist/advanced/index.js.map +1 -1
- package/dist/{axes-CzLEMDeB.d.ts → axes-CKVCzR_x.d.ts} +1 -1
- package/dist/bank-Ctdp3FUA.d.ts +118 -0
- package/dist/blueprint-validator.js +416 -92
- package/dist/blueprint-validator.js.map +1 -1
- package/dist/boilerplate.d.ts +2 -2
- package/dist/boilerplate.js +34 -15
- package/dist/boilerplate.js.map +1 -1
- package/dist/check/index.d.ts +13 -5
- package/dist/check/index.js +56 -3
- package/dist/check/index.js.map +1 -1
- package/dist/classifier/index.d.ts +2 -2
- package/dist/compose.d.ts +2 -2
- package/dist/{create-ui-generator-GIhzx08x.d.ts → create-ui-generator-N4gRXpcL.d.ts} +11 -4
- package/dist/{design-mode-DLufhrNp.d.ts → design-mode-DGWN_Gkm.d.ts} +1 -1
- package/dist/{dispatch-BnAH56p4.d.ts → dispatch-BUoXRj_r.d.ts} +6 -4
- package/dist/evaluation/axis-checks/index.d.ts +7 -6
- package/dist/evaluation/axis-checks/index.js +90 -2
- package/dist/evaluation/axis-checks/index.js.map +1 -1
- package/dist/evaluation/axis-checks/registry.d.ts +6 -5
- package/dist/evaluation/axis-checks/registry.js +88 -1
- package/dist/evaluation/axis-checks/registry.js.map +1 -1
- package/dist/evaluation/index.d.ts +189 -344
- package/dist/evaluation/index.js +1272 -59
- package/dist/evaluation/index.js.map +1 -1
- package/dist/evaluation/types.d.ts +26 -1
- package/dist/evaluation/types.js.map +1 -1
- package/dist/fragments/index.d.ts +3 -3
- package/dist/{generate-9IeNT4ZY.d.ts → generate-tSO_shQ0.d.ts} +1 -1
- package/dist/harness/check/runtime-render/index.d.ts +7 -7
- package/dist/harness/check/runtime-render/index.js +416 -92
- package/dist/harness/check/runtime-render/index.js.map +1 -1
- package/dist/harness/check/runtime-render/render-check-worker.js +393 -88
- package/dist/harness/check/runtime-render/render-check-worker.js.map +1 -1
- package/dist/harness/index.d.ts +5 -6
- package/dist/harness/index.js +69 -20
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/prompts.d.ts +2 -2
- package/dist/harness/prompts.js +10 -1
- package/dist/harness/prompts.js.map +1 -1
- package/dist/harness/result-types.d.ts +19 -5
- package/dist/harness/result-types.js.map +1 -1
- package/dist/harness/runtime.d.ts +21 -7
- package/dist/harness/runtime.js +36 -17
- package/dist/harness/runtime.js.map +1 -1
- package/dist/harness/types-public.d.ts +6 -4
- package/dist/harness/types-public.js +43 -18
- package/dist/harness/types-public.js.map +1 -1
- package/dist/harness/validator-trace-sink.d.ts +6 -5
- package/dist/hash.d.ts +1 -1
- package/dist/index.d.ts +64 -13
- package/dist/index.js +2023 -270
- package/dist/index.js.map +1 -1
- package/dist/patch.d.ts +5 -5
- package/dist/policy.d.ts +1 -1
- package/dist/{prompts-YU9piOgs.d.ts → prompts-BhNUuRoZ.d.ts} +1 -1
- package/dist/tools/get-primitives-ts.d.ts +1 -1
- package/dist/tools/get-primitives-ts.js +1 -1
- package/dist/tools/get-primitives-ts.js.map +1 -1
- package/dist/tools/render-check-worker.js +8 -1
- package/dist/tools/render-check-worker.js.map +1 -1
- package/dist/{types-BOvHNG7K.d.ts → types-Dh1s4K9j.d.ts} +1 -1
- package/dist/types-public-B7wn4ce5.d.ts +959 -0
- package/dist/validation/index.d.ts +1 -1
- package/dist/validation/index.js +1 -1
- package/dist/validation/index.js.map +1 -1
- package/dist/visual-evaluator-C9L-o6ap.d.ts +639 -0
- package/dist/workflows.d.ts +5 -5
- package/package.json +12 -12
- package/src/adapters/generation-dispatch.ts +38 -2
- package/src/adapters/tools.ts +2 -1
- package/src/boilerplate/free-design-prompt.ts +4 -4
- package/src/boilerplate/generate.ts +26 -1
- package/src/boilerplate/hard-sections.ts +14 -14
- package/src/boilerplate/system-prompt.ts +1 -1
- package/src/boilerplate/templates/layouts/chat-mobile.tsx.tmpl +3 -1
- package/src/boilerplate/templates/layouts/chat-universal.tsx.tmpl +3 -1
- package/src/boilerplate/templates/layouts/fullscreen-desktop.tsx.tmpl +3 -1
- package/src/boilerplate/templates/layouts/fullscreen-universal.tsx.tmpl +3 -1
- package/src/check/index.ts +1 -0
- package/src/check/run-tier0.ts +6 -3
- package/src/check/sample-props.ts +63 -0
- package/src/coding-agent/tools.ts +4 -1
- package/src/contract-context.ts +1 -1
- package/src/create-harness.ts +3 -3
- package/src/create-ui-generator.ts +20 -1
- package/src/evaluation/__fixtures__/png.ts +100 -0
- package/src/evaluation/axis-checks/checks/state-merge.ts +1 -1
- package/src/evaluation/axis-checks/checks/universal.ts +111 -0
- package/src/evaluation/axis-checks/dispatch.ts +4 -1
- package/src/evaluation/cost-tracker.ts +54 -6
- package/src/evaluation/criteria/bank.ts +85 -0
- package/src/evaluation/criteria/context.ts +52 -0
- package/src/evaluation/criteria/edge-probe.ts +286 -0
- package/src/evaluation/criteria/edge.ts +202 -0
- package/src/evaluation/criteria/resolve.ts +207 -0
- package/src/evaluation/criteria/select.ts +79 -0
- package/src/evaluation/index.ts +27 -0
- package/src/evaluation/ink-extent.ts +200 -0
- package/src/evaluation/judge-spend.ts +48 -0
- package/src/evaluation/theme-css.ts +12 -5
- package/src/evaluation/types-public.ts +221 -3
- package/src/evaluation/types.ts +19 -0
- package/src/evaluation/visual-evaluator.ts +853 -51
- package/src/harness/check/runtime-render/adapter.ts +18 -0
- package/src/harness/check/runtime-render/probe-pending.ts +111 -0
- package/src/harness/check/runtime-render/render-check-host.ts +10 -6
- package/src/harness/check/runtime-render/render-check-worker.ts +6 -3
- package/src/harness/check/runtime-render/render-check.ts +417 -133
- package/src/harness/check/runtime-render/walk.ts +200 -0
- package/src/harness/coding/assemble-result.ts +2 -0
- package/src/harness/coding/generate-task-runner.ts +30 -0
- package/src/harness/coding/init-session.ts +5 -3
- package/src/harness/coding/run-coding-turn.ts +12 -4
- package/src/harness/coding/run-eval-round.ts +82 -3
- package/src/harness/in-loop-evaluation.ts +39 -0
- package/src/harness/llm-router.ts +58 -1
- package/src/harness/result-types.ts +9 -0
- package/src/harness/runtime.ts +14 -0
- package/src/harness/types-public.ts +10 -1
- package/src/harness-tool-names.ts +38 -0
- package/src/index.ts +17 -0
- package/src/internal/verdict-line.ts +33 -0
- package/src/run-check.ts +2 -0
- package/src/taught-tokens.ts +32 -0
- package/src/tools/get-primitives-ts.ts +1 -1
- package/src/tools/get-wire.ts +1 -1
- package/src/tools/render-check-worker.ts +2 -1
- package/src/tools/render-check.ts +8 -67
- package/src/tools.ts +11 -1
- package/src/validation/primitives.ts +1 -1
- package/dist/llm-router-DwwUK1bz.d.ts +0 -265
- package/dist/types-public-Bk6d1WLN.d.ts +0 -451
|
@@ -37,4 +37,4 @@ interface Classification {
|
|
|
37
37
|
riskTier: RiskTier;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export type { AxisVector as A, Classification as C, FetchShape as F, LayoutShape as L, RiskTier as R,
|
|
40
|
+
export type { AxisVector as A, Classification as C, FetchShape as F, LayoutShape as L, RiskTier as R, StateShape as S, ToolingShape as T, WriteShape as W, RenderShape as a, StreamEventKind as b, AxisSource as c, RealtimeShape as d, WriteTrigger as e, AxisProvenance as f };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The visual criteria bank — ggui#1436 (step 1 of the founder's visual-assessment steer).
|
|
5
|
+
*
|
|
6
|
+
* The bank is DATA, never code (#1437 authors it; #1060's bar-and-judge policy): a versioned set of
|
|
7
|
+
* criteria the judge, an instrument or a person answers off the frame, split as the founder ruled —
|
|
8
|
+
* `severity` is importance, `evaluation` the method, `status` the method's readiness (the only source
|
|
9
|
+
* of an `n/a`), `scope` where a row applies ({} = every card; {kind} / {canvas} / {preset} = one). The
|
|
10
|
+
* general rows are `criteria`; a preset's own expression is a `recipes` row carrying `scope.preset`.
|
|
11
|
+
* This module is the ONE loader: a malformed bank refuses at launch with the offending path named,
|
|
12
|
+
* never mid-run. Fields the loader does not read (`examples`, `fields`, `groups`, `seed`) are page
|
|
13
|
+
* matter and are dropped here; an additive field tomorrow does not break today's loader.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/** Where a row applies; every key named must match the card's context. */
|
|
17
|
+
declare const criteriaScopeSchema: z.ZodObject<{
|
|
18
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
19
|
+
canvas: z.ZodOptional<z.ZodString>;
|
|
20
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const bankRowSchema: z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
group: z.ZodOptional<z.ZodString>;
|
|
25
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
26
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
27
|
+
canvas: z.ZodOptional<z.ZodString>;
|
|
28
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
severity: z.ZodEnum<{
|
|
31
|
+
must: "must";
|
|
32
|
+
should: "should";
|
|
33
|
+
}>;
|
|
34
|
+
evaluation: z.ZodEnum<{
|
|
35
|
+
judge: "judge";
|
|
36
|
+
instrument: "instrument";
|
|
37
|
+
human: "human";
|
|
38
|
+
}>;
|
|
39
|
+
status: z.ZodEnum<{
|
|
40
|
+
live: "live";
|
|
41
|
+
reference: "reference";
|
|
42
|
+
planned: "planned";
|
|
43
|
+
manual: "manual";
|
|
44
|
+
}>;
|
|
45
|
+
text: z.ZodString;
|
|
46
|
+
evidence: z.ZodString;
|
|
47
|
+
fix: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
declare const criteriaBankSchema: z.ZodObject<{
|
|
50
|
+
version: z.ZodString;
|
|
51
|
+
applies: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
kind: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
canvases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
group: z.ZodOptional<z.ZodString>;
|
|
58
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
59
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
60
|
+
canvas: z.ZodOptional<z.ZodString>;
|
|
61
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
severity: z.ZodEnum<{
|
|
64
|
+
must: "must";
|
|
65
|
+
should: "should";
|
|
66
|
+
}>;
|
|
67
|
+
evaluation: z.ZodEnum<{
|
|
68
|
+
judge: "judge";
|
|
69
|
+
instrument: "instrument";
|
|
70
|
+
human: "human";
|
|
71
|
+
}>;
|
|
72
|
+
status: z.ZodEnum<{
|
|
73
|
+
live: "live";
|
|
74
|
+
reference: "reference";
|
|
75
|
+
planned: "planned";
|
|
76
|
+
manual: "manual";
|
|
77
|
+
}>;
|
|
78
|
+
text: z.ZodString;
|
|
79
|
+
evidence: z.ZodString;
|
|
80
|
+
fix: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
recipes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
group: z.ZodOptional<z.ZodString>;
|
|
85
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
86
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
87
|
+
canvas: z.ZodOptional<z.ZodString>;
|
|
88
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
severity: z.ZodEnum<{
|
|
91
|
+
must: "must";
|
|
92
|
+
should: "should";
|
|
93
|
+
}>;
|
|
94
|
+
evaluation: z.ZodEnum<{
|
|
95
|
+
judge: "judge";
|
|
96
|
+
instrument: "instrument";
|
|
97
|
+
human: "human";
|
|
98
|
+
}>;
|
|
99
|
+
status: z.ZodEnum<{
|
|
100
|
+
live: "live";
|
|
101
|
+
reference: "reference";
|
|
102
|
+
planned: "planned";
|
|
103
|
+
manual: "manual";
|
|
104
|
+
}>;
|
|
105
|
+
text: z.ZodString;
|
|
106
|
+
evidence: z.ZodString;
|
|
107
|
+
fix: z.ZodOptional<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
type CriteriaBank = z.infer<typeof criteriaBankSchema>;
|
|
111
|
+
type BankRow = z.infer<typeof bankRowSchema>;
|
|
112
|
+
type CriteriaScope = z.infer<typeof criteriaScopeSchema>;
|
|
113
|
+
/** Every row of the bank — the general criteria, then the recipes. */
|
|
114
|
+
declare function bankRows(bank: CriteriaBank): readonly BankRow[];
|
|
115
|
+
/** The one door for bank data: refuses loudly, naming the path, before anything is judged. */
|
|
116
|
+
declare function parseCriteriaBank(raw: unknown): CriteriaBank;
|
|
117
|
+
|
|
118
|
+
export { type BankRow as B, type CriteriaBank as C, type CriteriaScope as a, bankRows as b, criteriaBankSchema as c, parseCriteriaBank as p };
|