@ggui-ai/ui-gen 0.15.0 → 0.17.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/adapters/generation-dispatch.d.ts +24 -4
- package/dist/adapters/generation-dispatch.js +5188 -3920
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +33 -26
- package/dist/adapters/index.js.map +1 -1
- package/dist/advanced/index.d.ts +22 -13
- package/dist/advanced/index.js +4889 -3561
- package/dist/advanced/index.js.map +1 -1
- package/dist/blueprint-validator.js +8 -12
- package/dist/blueprint-validator.js.map +1 -1
- package/dist/boilerplate.d.ts +19 -1
- package/dist/boilerplate.js +671 -254
- package/dist/boilerplate.js.map +1 -1
- package/dist/check/index.d.ts +17 -3
- package/dist/check/index.js +34 -25
- package/dist/check/index.js.map +1 -1
- package/dist/compose.js +1 -1
- package/dist/compose.js.map +1 -1
- package/dist/create-ui-generator-C8Ki9Wz1.d.ts +189 -0
- package/dist/design-mode-DLufhrNp.d.ts +61 -0
- package/dist/{dispatch-BuZfTh9r.d.ts → dispatch-D2htzi9h.d.ts} +4 -1
- package/dist/evaluation/axis-checks/index.d.ts +4 -3
- package/dist/evaluation/axis-checks/index.js +300 -14
- package/dist/evaluation/axis-checks/index.js.map +1 -1
- package/dist/evaluation/axis-checks/registry.d.ts +2 -1
- package/dist/evaluation/axis-checks/registry.js +253 -1
- package/dist/evaluation/axis-checks/registry.js.map +1 -1
- package/dist/evaluation/index.d.ts +297 -5
- package/dist/evaluation/index.js +4515 -120
- package/dist/evaluation/index.js.map +1 -1
- package/dist/fragments/index.js +1 -1
- package/dist/fragments/index.js.map +1 -1
- package/dist/{generate-BTfvELgl.d.ts → generate-9IeNT4ZY.d.ts} +10 -1
- package/dist/harness/check/runtime-render/index.d.ts +3 -1
- package/dist/harness/check/runtime-render/index.js +8 -12
- package/dist/harness/check/runtime-render/index.js.map +1 -1
- package/dist/harness/index.d.ts +3 -1
- package/dist/harness/index.js +913 -441
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/llm-trace-sink.d.ts +3 -3
- package/dist/harness/llm-trace-sink.js.map +1 -1
- package/dist/harness/prompts.d.ts +2 -1
- package/dist/harness/prompts.js +6 -3
- package/dist/harness/prompts.js.map +1 -1
- package/dist/harness/result-types.d.ts +17 -5
- package/dist/harness/result-types.js.map +1 -1
- package/dist/harness/runtime.d.ts +28 -3
- package/dist/harness/runtime.js +702 -274
- package/dist/harness/runtime.js.map +1 -1
- package/dist/harness/types-public.d.ts +39 -1
- package/dist/harness/types-public.js +913 -441
- package/dist/harness/types-public.js.map +1 -1
- package/dist/harness/validator-trace-sink.d.ts +2 -1
- package/dist/index.d.ts +32 -6
- package/dist/index.js +4899 -3560
- package/dist/index.js.map +1 -1
- package/dist/patch.d.ts +3 -1
- package/dist/{prompts-BVhtH3M1.d.ts → prompts-YU9piOgs.d.ts} +21 -45
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js.map +1 -1
- package/dist/styling-profile-CxfvV48g.d.ts +35 -0
- 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-public-CkNWEov9.d.ts → types-public-DVSssdc-.d.ts} +85 -5
- package/dist/validation/index.d.ts +1 -1
- package/dist/validation/index.js +4 -4
- package/dist/validation/index.js.map +1 -1
- package/dist/workflows.d.ts +3 -1
- package/package.json +12 -12
- package/src/adapters/generation-dispatch.ts +62 -4
- package/src/adapters/provider-router.ts +7 -6
- package/src/adapters/tools.ts +5 -5
- package/src/advanced/generator.ts +11 -10
- package/src/advanced/index.ts +5 -4
- package/src/boilerplate/free-design-prompt.ts +336 -0
- package/src/boilerplate/generate.ts +10 -1
- package/src/boilerplate/hard-sections.ts +257 -0
- package/src/boilerplate/render.ts +32 -8
- package/src/boilerplate/styling-profile.ts +166 -0
- package/src/boilerplate/system-prompt.ts +101 -237
- package/src/boilerplate/templates/base-free.tsx.tmpl +24 -0
- package/src/check/run-tier0.ts +82 -20
- package/src/coding-agent/tools.ts +8 -2
- package/src/contract-context.ts +43 -14
- package/src/create-harness.ts +15 -0
- package/src/create-ui-generator.ts +112 -27
- package/src/design-mode.ts +192 -0
- package/src/design-system-docs.ts +24 -17
- package/src/effort.ts +48 -0
- package/src/evaluation/axis-checks/checks/grid.ts +148 -0
- package/src/evaluation/axis-checks/checks/universal.ts +244 -0
- package/src/evaluation/axis-checks/dispatch.ts +82 -13
- package/src/evaluation/axis-checks/extras.ts +5 -0
- package/src/evaluation/axis-checks/helpers.ts +12 -0
- package/src/evaluation/axis-checks/registry.ts +2 -0
- package/src/evaluation/cost-tracker.ts +2 -3
- package/src/evaluation/design-identity.ts +96 -0
- package/src/evaluation/index.ts +63 -2
- package/src/evaluation/llm-evaluator.ts +89 -21
- package/src/evaluation/theme-css.ts +14 -0
- package/src/evaluation/types-public.ts +137 -8
- package/src/evaluation/visual-evaluator.ts +759 -54
- package/src/fragments/render.ts +1 -1
- package/src/harness/check/runtime-render/prepare-mockup.ts +18 -11
- package/src/harness/coding/dupe-break.ts +0 -0
- package/src/harness/coding/init-session.ts +2 -0
- package/src/harness/coding/run-coding-turn.ts +9 -14
- package/src/harness/coding/run-eval-round.ts +46 -5
- package/src/harness/llm-trace-sink.ts +3 -3
- package/src/harness/result-types.ts +15 -3
- package/src/harness/runtime.ts +28 -0
- package/src/harness/types-public.ts +38 -0
- package/src/index.ts +28 -0
- package/src/internal/extract-call-signatures.ts +2 -2
- package/src/pin-fixtures.ts +98 -0
- package/src/providers/bedrock.ts +4 -4
- package/src/run-check.ts +11 -10
- package/src/tools/get-primitives-ts.ts +1 -1
- package/src/tools.ts +2 -1
- package/src/validation/allowed-imports.ts +8 -2
- package/src/validation/primitives.ts +1 -1
- package/dist/create-ui-generator-D6TKuv9V.d.ts +0 -106
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { EvaluationConfig } from '../evaluation/types.js';
|
|
2
2
|
import { ModelRoles, GenerationResult } from '../harness/result-types.js';
|
|
3
|
-
import { ProviderName, ToolDefinition
|
|
4
|
-
import { Q as QualityConfig } from '../types-public-
|
|
3
|
+
import { ProviderName, ToolDefinition } from './types.js';
|
|
4
|
+
import { Q as QualityConfig } from '../types-public-DVSssdc-.js';
|
|
5
5
|
import { A as AgentConfig } from '../llm-router-D7fjBhtr.js';
|
|
6
6
|
import { DataContract, JsonObject, GadgetDescriptor } from '@ggui-ai/protocol';
|
|
7
|
-
import {
|
|
7
|
+
import { C as CanvasClass, D as DesignMode } from '../design-mode-DLufhrNp.js';
|
|
8
|
+
import { G as GenerationProfileInput } from '../styling-profile-CxfvV48g.js';
|
|
9
|
+
import { R as RenderingContext } from '../prompts-YU9piOgs.js';
|
|
8
10
|
import 'zod';
|
|
9
11
|
import '../axes-CzLEMDeB.js';
|
|
10
12
|
import '../types-BOvHNG7K.js';
|
|
@@ -47,6 +49,13 @@ interface GenerationDispatchParams {
|
|
|
47
49
|
width: number;
|
|
48
50
|
height: number;
|
|
49
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* Per-canvas judging — see `VisualEvalConfig.canvases`. When set, the
|
|
54
|
+
* eval round screenshots + judges once per class and the harness
|
|
55
|
+
* stamps `EvalResult.visual` with the PNG-free summary. Unset =
|
|
56
|
+
* today's single screenshot at `viewport`.
|
|
57
|
+
*/
|
|
58
|
+
canvases?: readonly CanvasClass[];
|
|
50
59
|
};
|
|
51
60
|
/** Quality config controlling eval tiers and improvement behavior */
|
|
52
61
|
qualityConfig?: QualityConfig;
|
|
@@ -117,11 +126,22 @@ interface GenerationDispatchParams {
|
|
|
117
126
|
* a no-op.
|
|
118
127
|
*/
|
|
119
128
|
onRetry?: AgentConfig["onRetry"];
|
|
129
|
+
/**
|
|
130
|
+
* Which triad to materialise — see `CreateHarnessInput.designMode`.
|
|
131
|
+
* Reaches the system prompt, the boilerplate, the tier-0 gate, the
|
|
132
|
+
* axis checks and the evaluator criteria through the harness. Absent
|
|
133
|
+
* means `constrained` (byte-identical to the pre-`designMode` path).
|
|
134
|
+
*/
|
|
135
|
+
designMode?: DesignMode;
|
|
136
|
+
/** Rendering canvas class for the `free` prompt — see `CreateHarnessInput.canvas`. */
|
|
137
|
+
canvas?: CanvasClass;
|
|
138
|
+
/** The app's generation profile (#991). */
|
|
139
|
+
profile?: GenerationProfileInput;
|
|
120
140
|
}
|
|
121
141
|
/**
|
|
122
142
|
* Dispatch to the closure-based harness pipeline. Single-implementation,
|
|
123
143
|
* provider-agnostic.
|
|
124
144
|
*/
|
|
125
|
-
declare function dispatchGeneration(params: GenerationDispatchParams): Promise<
|
|
145
|
+
declare function dispatchGeneration(params: GenerationDispatchParams): Promise<GenerationResult>;
|
|
126
146
|
|
|
127
147
|
export { type GenerationDispatchParams, dispatchGeneration };
|