@ggui-ai/ui-gen 0.24.0 → 0.25.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/dist/{adapter-Du7P_5Fx.d.ts → adapter-Cg_rkpGq.d.ts} +1 -1
- package/dist/adapters/generation-dispatch.d.ts +27 -5
- package/dist/adapters/generation-dispatch.js +909 -53
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +3 -1
- package/dist/adapters/index.js.map +1 -1
- package/dist/advanced/index.d.ts +12 -10
- package/dist/advanced/index.js +917 -98
- package/dist/advanced/index.js.map +1 -1
- package/dist/{axes-CzLEMDeB.d.ts → axes-CKVCzR_x.d.ts} +1 -1
- package/dist/bank-CT4eEkta.d.ts +118 -0
- package/dist/boilerplate.js +24 -12
- package/dist/boilerplate.js.map +1 -1
- package/dist/check/index.d.ts +11 -4
- package/dist/check/index.js +47 -1
- 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-DFnnArrv.d.ts} +11 -3
- package/dist/{dispatch-BnAH56p4.d.ts → dispatch-CStl9eAw.d.ts} +5 -3
- package/dist/evaluation/axis-checks/index.d.ts +5 -5
- 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 +3 -3
- 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 +300 -23
- package/dist/evaluation/index.js +746 -30
- package/dist/evaluation/index.js.map +1 -1
- package/dist/evaluation/types.d.ts +9 -1
- package/dist/evaluation/types.js.map +1 -1
- package/dist/fragments/index.d.ts +3 -3
- package/dist/harness/check/runtime-render/index.d.ts +5 -5
- package/dist/harness/index.d.ts +4 -4
- package/dist/harness/index.js +33 -15
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/result-types.d.ts +3 -3
- package/dist/harness/runtime.d.ts +10 -4
- package/dist/harness/runtime.js +26 -14
- package/dist/harness/runtime.js.map +1 -1
- package/dist/harness/types-public.d.ts +3 -3
- package/dist/harness/types-public.js +33 -15
- package/dist/harness/types-public.js.map +1 -1
- package/dist/harness/validator-trace-sink.d.ts +3 -3
- package/dist/hash.d.ts +1 -1
- package/dist/index.d.ts +25 -9
- package/dist/index.js +926 -101
- package/dist/index.js.map +1 -1
- package/dist/{llm-router-DwwUK1bz.d.ts → llm-router-nfO7wPec.d.ts} +3 -1
- package/dist/patch.d.ts +3 -3
- package/dist/policy.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/{types-BOvHNG7K.d.ts → types-Dh1s4K9j.d.ts} +1 -1
- package/dist/{types-public-Bk6d1WLN.d.ts → types-public-BJTLpzWn.d.ts} +134 -7
- 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/workflows.d.ts +3 -3
- package/package.json +12 -12
- package/src/adapters/generation-dispatch.ts +36 -2
- package/src/adapters/tools.ts +2 -1
- package/src/boilerplate/free-design-prompt.ts +1 -1
- package/src/boilerplate/generate.ts +26 -1
- package/src/boilerplate/hard-sections.ts +13 -13
- package/src/boilerplate/system-prompt.ts +1 -1
- package/src/check/index.ts +1 -0
- package/src/check/sample-props.ts +63 -0
- package/src/coding-agent/tools.ts +4 -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/criteria/bank.ts +85 -0
- package/src/evaluation/criteria/context.ts +52 -0
- package/src/evaluation/criteria/resolve.ts +159 -0
- package/src/evaluation/criteria/select.ts +79 -0
- package/src/evaluation/index.ts +23 -0
- package/src/evaluation/ink-extent.ts +200 -0
- package/src/evaluation/theme-css.ts +12 -5
- package/src/evaluation/types-public.ts +130 -3
- package/src/evaluation/types.ts +9 -0
- package/src/evaluation/visual-evaluator.ts +636 -30
- package/src/harness/coding/generate-task-runner.ts +3 -0
- package/src/harness/coding/run-coding-turn.ts +7 -3
- package/src/harness/coding/run-eval-round.ts +19 -0
- package/src/harness/runtime.ts +5 -0
- package/src/harness-tool-names.ts +38 -0
- package/src/index.ts +12 -0
- package/src/run-check.ts +2 -0
- package/src/tools/get-primitives-ts.ts +1 -1
- package/src/tools/get-wire.ts +1 -1
- package/src/tools/render-check.ts +0 -60
- package/src/tools.ts +11 -1
- package/src/validation/primitives.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RuntimeRenderCheck } from './harness/types-public.js';
|
|
2
2
|
import { GenerationRuntimeProbeCheck } from '@ggui-ai/mcp-server-core';
|
|
3
3
|
import { JsonObject, DataContract } from '@ggui-ai/protocol';
|
|
4
|
-
import { P as ProbeHostLoad } from './types-public-
|
|
4
|
+
import { P as ProbeHostLoad } from './types-public-BJTLpzWn.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The subprocess bounds of one isolated check (ggui#1380). They are
|
|
@@ -2,19 +2,31 @@ import { EvaluationConfig } from '../evaluation/types.js';
|
|
|
2
2
|
import { RuntimeRenderCheck } from '../harness/types-public.js';
|
|
3
3
|
import { ModelRoles, GenerationResult } from '../harness/result-types.js';
|
|
4
4
|
import { ProviderName, ToolDefinition } from './types.js';
|
|
5
|
-
import { Q as QualityConfig } from '../types-public-
|
|
6
|
-
import { A as AgentConfig } from '../llm-router-
|
|
5
|
+
import { Q as QualityConfig } from '../types-public-BJTLpzWn.js';
|
|
6
|
+
import { A as AgentConfig, V as VisionProvider } from '../llm-router-nfO7wPec.js';
|
|
7
7
|
import { DataContract, JsonObject, GadgetDescriptor } from '@ggui-ai/protocol';
|
|
8
8
|
import { C as CanvasClass, D as DesignMode } from '../design-mode-DLufhrNp.js';
|
|
9
|
+
import { C as CriteriaBank } from '../bank-CT4eEkta.js';
|
|
9
10
|
import { G as GenerationProfileInput } from '../styling-profile-CxfvV48g.js';
|
|
10
11
|
import { R as RenderingContext } from '../prompts-YU9piOgs.js';
|
|
11
|
-
import '../axes-
|
|
12
|
+
import '../axes-CKVCzR_x.js';
|
|
12
13
|
import '../llm.js';
|
|
13
|
-
import '../types-
|
|
14
|
+
import '../types-Dh1s4K9j.js';
|
|
14
15
|
import '../policy.js';
|
|
15
16
|
import 'zod';
|
|
16
17
|
import '@ggui-ai/mcp-server-core';
|
|
17
18
|
|
|
19
|
+
/**
|
|
20
|
+
* ggui#1250 — the in-loop VISUAL judge as its own agent: a vision provider (typed so an OpenAI judge cannot
|
|
21
|
+
* be written), a model, and — when the caller resolves provider keys itself — that provider's key, which
|
|
22
|
+
* becomes the agent's own `routeOverride`. Never the coding agent's route: where this exists (an OpenAI
|
|
23
|
+
* coding lane), the coding key is another provider's.
|
|
24
|
+
*/
|
|
25
|
+
interface VisualEvalAgentSpec {
|
|
26
|
+
readonly provider: VisionProvider;
|
|
27
|
+
readonly model: string;
|
|
28
|
+
readonly apiKey?: string;
|
|
29
|
+
}
|
|
18
30
|
interface GenerationDispatchParams {
|
|
19
31
|
provider: ProviderName;
|
|
20
32
|
model: string;
|
|
@@ -68,6 +80,9 @@ interface GenerationDispatchParams {
|
|
|
68
80
|
width: number;
|
|
69
81
|
height: number;
|
|
70
82
|
}>>>;
|
|
83
|
+
/** ggui#1436 — see `SingleComponentParams.visualEvaluation.criteriaBank`. */
|
|
84
|
+
criteriaBank?: CriteriaBank;
|
|
85
|
+
criteriaKind?: string;
|
|
71
86
|
};
|
|
72
87
|
/** Quality config controlling eval tiers and improvement behavior */
|
|
73
88
|
qualityConfig?: QualityConfig;
|
|
@@ -149,6 +164,13 @@ interface GenerationDispatchParams {
|
|
|
149
164
|
* existing behavior for callers that don't set it.
|
|
150
165
|
*/
|
|
151
166
|
routeOverride?: AgentConfig["routeOverride"];
|
|
167
|
+
/**
|
|
168
|
+
* ggui#1250 — the in-loop visual judge named as its own agent (see {@link VisualEvalAgentSpec}).
|
|
169
|
+
* Absent (default, every existing caller): today's chain, `visualEval ← evaluation ← coding`, which on
|
|
170
|
+
* a lane without a vision path records the score half as skipped (#1248). Off by default; a measurement
|
|
171
|
+
* knob first, a product knob only by ruling.
|
|
172
|
+
*/
|
|
173
|
+
visualEvalAgent?: VisualEvalAgentSpec;
|
|
152
174
|
/**
|
|
153
175
|
* Retry observer (#489) — see `AgentConfig.onRetry`. Threaded onto
|
|
154
176
|
* the coding + evaluation agent specs so a rate-limited retry inside
|
|
@@ -179,4 +201,4 @@ interface GenerationDispatchParams {
|
|
|
179
201
|
*/
|
|
180
202
|
declare function dispatchGeneration(params: GenerationDispatchParams): Promise<GenerationResult>;
|
|
181
203
|
|
|
182
|
-
export { type GenerationDispatchParams, dispatchGeneration };
|
|
204
|
+
export { type GenerationDispatchParams, type VisualEvalAgentSpec, dispatchGeneration };
|