@ggui-ai/ui-gen 0.14.0 → 0.16.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 +21 -4
- package/dist/adapters/generation-dispatch.js +915 -351
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +28 -23
- package/dist/adapters/index.js.map +1 -1
- package/dist/advanced/index.d.ts +17 -12
- package/dist/advanced/index.js +968 -375
- package/dist/advanced/index.js.map +1 -1
- package/dist/boilerplate.d.ts +16 -1
- package/dist/boilerplate.js +579 -245
- package/dist/boilerplate.js.map +1 -1
- package/dist/check/index.d.ts +17 -3
- package/dist/check/index.js +34 -26
- package/dist/check/index.js.map +1 -1
- package/dist/{create-ui-generator-D6TKuv9V.d.ts → create-ui-generator-CCIeQaEe.d.ts} +77 -10
- package/dist/design-mode-BHEE7flj.d.ts +67 -0
- package/dist/{dispatch-BuZfTh9r.d.ts → dispatch-BA5dJcg-.d.ts} +4 -1
- package/dist/evaluation/axis-checks/index.d.ts +4 -3
- package/dist/evaluation/axis-checks/index.js +3 -1
- 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 +1 -0
- package/dist/evaluation/axis-checks/registry.js.map +1 -1
- package/dist/evaluation/index.d.ts +143 -3
- package/dist/evaluation/index.js +3866 -92
- package/dist/evaluation/index.js.map +1 -1
- package/dist/{generate-BTfvELgl.d.ts → generate-8L_bc2iP.d.ts} +10 -1
- package/dist/harness/check/runtime-render/index.d.ts +2 -1
- package/dist/harness/index.d.ts +2 -1
- package/dist/harness/index.js +589 -248
- 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 +3 -0
- 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 +19 -3
- package/dist/harness/runtime.js +602 -261
- package/dist/harness/runtime.js.map +1 -1
- package/dist/harness/types-public.d.ts +28 -1
- package/dist/harness/types-public.js +589 -248
- package/dist/harness/types-public.js.map +1 -1
- package/dist/harness/validator-trace-sink.d.ts +2 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.js +975 -373
- package/dist/index.js.map +1 -1
- package/dist/patch.d.ts +2 -1
- package/dist/{prompts-BVhtH3M1.d.ts → prompts-k6m6reqe.d.ts} +11 -1
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js.map +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-public-CkNWEov9.d.ts → types-public-D24JLJgl.d.ts} +49 -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 +2 -1
- package/package.json +12 -12
- package/src/adapters/generation-dispatch.ts +57 -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 +329 -0
- package/src/boilerplate/generate.ts +10 -1
- package/src/boilerplate/hard-sections.ts +242 -0
- package/src/boilerplate/render.ts +32 -8
- package/src/boilerplate/system-prompt.ts +81 -229
- package/src/boilerplate/templates/base-free.tsx.tmpl +24 -0
- package/src/check/run-tier0.ts +80 -20
- package/src/check/type-checker.ts +12 -2
- package/src/coding-agent/tools.ts +8 -2
- package/src/contract-context.ts +28 -0
- package/src/create-harness.ts +11 -0
- package/src/create-ui-generator.ts +71 -25
- package/src/design-mode.ts +182 -0
- package/src/design-system-docs.ts +17 -13
- package/src/evaluation/axis-checks/dispatch.ts +4 -0
- package/src/evaluation/axis-checks/extras.ts +5 -0
- package/src/evaluation/cost-tracker.ts +2 -3
- package/src/evaluation/index.ts +46 -2
- package/src/evaluation/llm-evaluator.ts +77 -21
- package/src/evaluation/types-public.ts +103 -8
- package/src/evaluation/visual-evaluator.ts +301 -29
- package/src/harness/coding/dupe-break.ts +0 -0
- package/src/harness/coding/init-session.ts +1 -0
- package/src/harness/coding/run-coding-turn.ts +3 -0
- package/src/harness/coding/run-eval-round.ts +15 -2
- package/src/harness/llm-trace-sink.ts +3 -3
- package/src/harness/result-types.ts +15 -3
- package/src/harness/runtime.ts +18 -0
- package/src/harness/types-public.ts +27 -0
- package/src/index.ts +26 -0
- package/src/internal/extract-call-signatures.ts +2 -2
- package/src/providers/bedrock.ts +4 -4
- package/src/run-check.ts +1 -0
- package/src/tools/get-primitives-ts.ts +1 -1
- package/src/validation/allowed-imports.ts +8 -2
- package/src/validation/primitives.ts +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
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-D24JLJgl.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-BHEE7flj.js';
|
|
8
|
+
import { R as RenderingContext } from '../prompts-k6m6reqe.js';
|
|
8
9
|
import 'zod';
|
|
9
10
|
import '../axes-CzLEMDeB.js';
|
|
10
11
|
import '../types-BOvHNG7K.js';
|
|
@@ -47,6 +48,13 @@ interface GenerationDispatchParams {
|
|
|
47
48
|
width: number;
|
|
48
49
|
height: number;
|
|
49
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Per-canvas judging — see `VisualEvalConfig.canvases`. When set, the
|
|
53
|
+
* eval round screenshots + judges once per class and the harness
|
|
54
|
+
* stamps `EvalResult.visual` with the PNG-free summary. Unset =
|
|
55
|
+
* today's single screenshot at `viewport`.
|
|
56
|
+
*/
|
|
57
|
+
canvases?: readonly CanvasClass[];
|
|
50
58
|
};
|
|
51
59
|
/** Quality config controlling eval tiers and improvement behavior */
|
|
52
60
|
qualityConfig?: QualityConfig;
|
|
@@ -117,11 +125,20 @@ interface GenerationDispatchParams {
|
|
|
117
125
|
* a no-op.
|
|
118
126
|
*/
|
|
119
127
|
onRetry?: AgentConfig["onRetry"];
|
|
128
|
+
/**
|
|
129
|
+
* Which triad to materialise — see `CreateHarnessInput.designMode`.
|
|
130
|
+
* Reaches the system prompt, the boilerplate, the tier-0 gate, the
|
|
131
|
+
* axis checks and the evaluator criteria through the harness. Absent
|
|
132
|
+
* means `constrained` (byte-identical to the pre-`designMode` path).
|
|
133
|
+
*/
|
|
134
|
+
designMode?: DesignMode;
|
|
135
|
+
/** Rendering canvas class for the `free` prompt — see `CreateHarnessInput.canvas`. */
|
|
136
|
+
canvas?: CanvasClass;
|
|
120
137
|
}
|
|
121
138
|
/**
|
|
122
139
|
* Dispatch to the closure-based harness pipeline. Single-implementation,
|
|
123
140
|
* provider-agnostic.
|
|
124
141
|
*/
|
|
125
|
-
declare function dispatchGeneration(params: GenerationDispatchParams): Promise<
|
|
142
|
+
declare function dispatchGeneration(params: GenerationDispatchParams): Promise<GenerationResult>;
|
|
126
143
|
|
|
127
144
|
export { type GenerationDispatchParams, dispatchGeneration };
|