@ggui-ai/ui-gen 0.25.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-Cg_rkpGq.d.ts → adapter-BJwn74rx.d.ts} +49 -1
- package/dist/adapters/generation-dispatch.d.ts +8 -5
- package/dist/adapters/generation-dispatch.js +1118 -193
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +27 -6
- package/dist/adapters/index.js.map +1 -1
- package/dist/advanced/index.d.ts +10 -9
- package/dist/advanced/index.js +1126 -202
- package/dist/advanced/index.js.map +1 -1
- 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 +10 -3
- package/dist/boilerplate.js.map +1 -1
- package/dist/check/index.d.ts +3 -2
- package/dist/check/index.js +9 -2
- package/dist/check/index.js.map +1 -1
- package/dist/{create-ui-generator-DFnnArrv.d.ts → create-ui-generator-N4gRXpcL.d.ts} +3 -4
- package/dist/{design-mode-DLufhrNp.d.ts → design-mode-DGWN_Gkm.d.ts} +1 -1
- package/dist/{dispatch-CStl9eAw.d.ts → dispatch-BUoXRj_r.d.ts} +2 -2
- package/dist/evaluation/axis-checks/index.d.ts +5 -4
- package/dist/evaluation/axis-checks/index.js.map +1 -1
- package/dist/evaluation/axis-checks/registry.d.ts +4 -3
- package/dist/evaluation/index.d.ts +107 -539
- package/dist/evaluation/index.js +552 -55
- package/dist/evaluation/index.js.map +1 -1
- package/dist/evaluation/types.d.ts +17 -0
- package/dist/evaluation/types.js.map +1 -1
- package/dist/{generate-9IeNT4ZY.d.ts → generate-tSO_shQ0.d.ts} +1 -1
- package/dist/harness/check/runtime-render/index.d.ts +5 -5
- 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 +4 -5
- package/dist/harness/index.js +36 -5
- 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 +17 -3
- package/dist/harness/result-types.js.map +1 -1
- package/dist/harness/runtime.d.ts +14 -6
- package/dist/harness/runtime.js +11 -4
- package/dist/harness/runtime.js.map +1 -1
- package/dist/harness/types-public.d.ts +4 -2
- package/dist/harness/types-public.js +10 -3
- package/dist/harness/types-public.js.map +1 -1
- package/dist/harness/validator-trace-sink.d.ts +4 -3
- package/dist/index.d.ts +46 -11
- package/dist/index.js +1128 -200
- package/dist/index.js.map +1 -1
- package/dist/patch.d.ts +3 -3
- package/dist/{prompts-YU9piOgs.d.ts → prompts-BhNUuRoZ.d.ts} +1 -1
- package/dist/tools/render-check-worker.js +8 -1
- package/dist/tools/render-check-worker.js.map +1 -1
- package/dist/{types-public-BJTLpzWn.d.ts → types-public-B7wn4ce5.d.ts} +384 -3
- 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 +3 -3
- package/package.json +12 -12
- package/src/adapters/generation-dispatch.ts +2 -0
- package/src/boilerplate/free-design-prompt.ts +3 -3
- package/src/boilerplate/hard-sections.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/run-tier0.ts +6 -3
- package/src/contract-context.ts +1 -1
- package/src/evaluation/cost-tracker.ts +54 -6
- package/src/evaluation/criteria/edge-probe.ts +286 -0
- package/src/evaluation/criteria/edge.ts +202 -0
- package/src/evaluation/criteria/resolve.ts +55 -7
- package/src/evaluation/index.ts +5 -1
- package/src/evaluation/judge-spend.ts +48 -0
- package/src/evaluation/types-public.ts +91 -0
- package/src/evaluation/types.ts +10 -0
- package/src/evaluation/visual-evaluator.ts +236 -40
- 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 +27 -0
- package/src/harness/coding/init-session.ts +5 -3
- package/src/harness/coding/run-coding-turn.ts +5 -1
- package/src/harness/coding/run-eval-round.ts +63 -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 +9 -0
- package/src/harness/types-public.ts +10 -1
- package/src/index.ts +5 -0
- package/src/internal/verdict-line.ts +33 -0
- package/src/taught-tokens.ts +32 -0
- package/src/tools/render-check-worker.ts +2 -1
- package/src/tools/render-check.ts +8 -7
- package/src/validation/primitives.ts +1 -1
- package/dist/llm-router-nfO7wPec.d.ts +0 -267
- package/dist/{bank-CT4eEkta.d.ts → bank-Ctdp3FUA.d.ts} +3 -3
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { C as Classification } from '../axes-CKVCzR_x.js';
|
|
2
|
-
import { E as EvalIssue } from '../types-public-
|
|
3
|
-
import '@ggui-ai/mcp-server-core';
|
|
4
|
-
import '../design-mode-DLufhrNp.js';
|
|
2
|
+
import { E as EvalIssue } from '../types-public-B7wn4ce5.js';
|
|
5
3
|
import '@ggui-ai/protocol';
|
|
4
|
+
import '../llm.js';
|
|
5
|
+
import '@ggui-ai/mcp-server-core';
|
|
6
|
+
import '../design-mode-DGWN_Gkm.js';
|
|
6
7
|
import '../types-Dh1s4K9j.js';
|
|
7
8
|
|
|
8
9
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
export { C as CreateUiGeneratorOptions, c as createUiGenerator, e as extractComponentCode } from './create-ui-generator-
|
|
2
|
-
export { R as RuntimeRenderProbeConfig } from './adapter-
|
|
3
|
-
|
|
1
|
+
export { C as CreateUiGeneratorOptions, c as createUiGenerator, e as extractComponentCode } from './create-ui-generator-N4gRXpcL.js';
|
|
2
|
+
export { R as RuntimeRenderProbeConfig } from './adapter-BJwn74rx.js';
|
|
3
|
+
import { Q as QualityConfig } from './types-public-B7wn4ce5.js';
|
|
4
|
+
export { P as ProviderRetryInfo } from './types-public-B7wn4ce5.js';
|
|
4
5
|
export { GenerationResult, SameExchangeBreak } from './harness/result-types.js';
|
|
5
6
|
import { GeneratorBuild, UiGenerator } from '@ggui-ai/mcp-server-core';
|
|
6
|
-
import { D as DesignMode } from './design-mode-
|
|
7
|
-
export {
|
|
7
|
+
import { D as DesignMode } from './design-mode-DGWN_Gkm.js';
|
|
8
|
+
export { b as CANVAS_BREAKPOINTS, c as CANVAS_CLASSES, d as CANVAS_DESCRIPTORS, e as CANVAS_VIEWPORTS, C as CanvasClass, f as CanvasDescriptor, g as CanvasDisplayMode, a as CanvasViewport, h as DEFAULT_DESIGN_MODE, i as DESIGN_MODES, j as canvasDisplayModeForShell, k as canvasForRendering, l as canvasForViewportWidth, m as describeCanvas } from './design-mode-DGWN_Gkm.js';
|
|
8
9
|
export { CreateInMemoryGeneratorRegistryOptions, createInMemoryGeneratorRegistry } from '@ggui-ai/mcp-server-core/in-memory';
|
|
9
|
-
export { R as RenderingContext, b as buildContractsContext, a as buildRenderingContext, c as buildVarianceContext, d as canvasForRenderingContext, i as injectContracts, e as injectRenderingContext, f as injectVariance } from './prompts-
|
|
10
|
+
export { R as RenderingContext, b as buildContractsContext, a as buildRenderingContext, c as buildVarianceContext, d as canvasForRenderingContext, i as injectContracts, e as injectRenderingContext, f as injectVariance } from './prompts-BhNUuRoZ.js';
|
|
10
11
|
import { LLMToolDef } from './llm.js';
|
|
11
12
|
import Anthropic from '@anthropic-ai/sdk';
|
|
12
13
|
export { A as AESTHETIC_BRIEF_MAX_CHARS, G as GenerationProfileInput } from './styling-profile-CxfvV48g.js';
|
|
13
14
|
export { VisualEvalAgentSpec } from './adapters/generation-dispatch.js';
|
|
14
15
|
import { AppGenerationProfileEffort, ModelTier } from '@ggui-ai/protocol';
|
|
15
16
|
import './harness/runtime.js';
|
|
16
|
-
import './
|
|
17
|
+
import './bank-Ctdp3FUA.js';
|
|
18
|
+
import 'zod';
|
|
19
|
+
import './generate-tSO_shQ0.js';
|
|
17
20
|
import './axes-CKVCzR_x.js';
|
|
18
21
|
import './types-Dh1s4K9j.js';
|
|
19
|
-
import './bank-CT4eEkta.js';
|
|
20
|
-
import 'zod';
|
|
21
|
-
import './generate-9IeNT4ZY.js';
|
|
22
22
|
import '@ggui-ai/gadgets';
|
|
23
23
|
import './evaluation/types.js';
|
|
24
24
|
import './harness/types-public.js';
|
|
25
25
|
import './policy.js';
|
|
26
26
|
import './adapters/types.js';
|
|
27
|
+
import './visual-evaluator-C9L-o6ap.js';
|
|
28
|
+
import 'puppeteer-core';
|
|
27
29
|
|
|
28
30
|
/**
|
|
29
31
|
* ui-gen's precise {@link GeneratorBuild}: the core port's generic shape with
|
|
@@ -46,6 +48,39 @@ interface UiGenBuild extends GeneratorBuild {
|
|
|
46
48
|
*/
|
|
47
49
|
declare function generatorBuild(designMode: DesignMode): UiGenBuild;
|
|
48
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Which in-loop evaluation legs a generation runs (ggui#1513).
|
|
53
|
+
*
|
|
54
|
+
* The harness gates its evaluation rounds on this, and nothing else does:
|
|
55
|
+
* the text evaluator runs when `evaluation.enabled`, and the visual judge
|
|
56
|
+
* runs when `visualEvaluation.enabled` or when a quality config asks for it
|
|
57
|
+
* (`qualityConfig.visualEval`). A host that needs to know whether a
|
|
58
|
+
* generation's token counts (`GenerationMetadata`) can include evaluation
|
|
59
|
+
* calls reads it here, with the options it configured the generator with,
|
|
60
|
+
* instead of keeping its own copy of the rule.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/** The switches that turn an in-loop evaluation leg on. */
|
|
64
|
+
interface InLoopEvaluationSwitches {
|
|
65
|
+
readonly evaluation?: {
|
|
66
|
+
readonly enabled: boolean;
|
|
67
|
+
};
|
|
68
|
+
readonly visualEvaluation?: {
|
|
69
|
+
readonly enabled: boolean;
|
|
70
|
+
};
|
|
71
|
+
readonly qualityConfig?: Pick<QualityConfig, "visualEval">;
|
|
72
|
+
}
|
|
73
|
+
/** The in-loop evaluation legs these options turn on. */
|
|
74
|
+
declare function inLoopEvaluation(options: InLoopEvaluationSwitches): {
|
|
75
|
+
readonly text: boolean;
|
|
76
|
+
readonly visual: boolean;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* True when these options turn either leg on: a generation built with them
|
|
80
|
+
* can spend tokens on evaluation calls as well as on its coding turns.
|
|
81
|
+
*/
|
|
82
|
+
declare function runsInLoopEvaluation(options: InLoopEvaluationSwitches): boolean;
|
|
83
|
+
|
|
49
84
|
/**
|
|
50
85
|
* Compile raw JSX/TSX component code emitted by `createUiGenerator` into
|
|
51
86
|
* plain ESM that the browser's `ReactComponentRenderer` can mount.
|
|
@@ -203,4 +238,4 @@ declare const EFFORT_DIALS: Readonly<Record<AppGenerationProfileEffort, EffortDi
|
|
|
203
238
|
/** The dials for a named level; `undefined` when no level is named (the deployment's options stand). */
|
|
204
239
|
declare function effortDials(effort: AppGenerationProfileEffort | undefined): EffortDials | undefined;
|
|
205
240
|
|
|
206
|
-
export { CLAUDE_CODE_LOGIN_CREDENTIAL, CompileComponentCodeError, DesignMode, EFFORT_DIALS, EFFORT_TABLE_VERSION, type EffortDials, HARNESS_CODING_TOOLS, HARNESS_SCOPED_TOOLS, type UiGenBuild, compileComponentCode, createAnthropicClient, effortDials, generatorBuild, harnessToolEntry, harnessToolNames, withBrowserCompile };
|
|
241
|
+
export { CLAUDE_CODE_LOGIN_CREDENTIAL, CompileComponentCodeError, DesignMode, EFFORT_DIALS, EFFORT_TABLE_VERSION, type EffortDials, HARNESS_CODING_TOOLS, HARNESS_SCOPED_TOOLS, type InLoopEvaluationSwitches, type UiGenBuild, compileComponentCode, createAnthropicClient, effortDials, generatorBuild, harnessToolEntry, harnessToolNames, inLoopEvaluation, runsInLoopEvaluation, withBrowserCompile };
|