@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,9 +1,9 @@
|
|
|
1
|
-
import { C as Classification } from '../axes-
|
|
2
|
-
import { E as EvalIssue } from '../types-public-
|
|
1
|
+
import { C as Classification } from '../axes-CKVCzR_x.js';
|
|
2
|
+
import { E as EvalIssue } from '../types-public-BJTLpzWn.js';
|
|
3
3
|
import '@ggui-ai/mcp-server-core';
|
|
4
4
|
import '../design-mode-DLufhrNp.js';
|
|
5
5
|
import '@ggui-ai/protocol';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-Dh1s4K9j.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Live validator-tier trace sink — devtools introspection of every
|
package/dist/hash.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
export { C as CreateUiGeneratorOptions, c as createUiGenerator, e as extractComponentCode } from './create-ui-generator-
|
|
2
|
-
export { R as RuntimeRenderProbeConfig } from './adapter-
|
|
3
|
-
export { P as ProviderRetryInfo } from './llm-router-
|
|
1
|
+
export { C as CreateUiGeneratorOptions, c as createUiGenerator, e as extractComponentCode } from './create-ui-generator-DFnnArrv.js';
|
|
2
|
+
export { R as RuntimeRenderProbeConfig } from './adapter-Cg_rkpGq.js';
|
|
3
|
+
export { P as ProviderRetryInfo } from './llm-router-nfO7wPec.js';
|
|
4
4
|
export { GenerationResult, SameExchangeBreak } from './harness/result-types.js';
|
|
5
5
|
import { GeneratorBuild, UiGenerator } from '@ggui-ai/mcp-server-core';
|
|
6
6
|
import { D as DesignMode } from './design-mode-DLufhrNp.js';
|
|
7
7
|
export { a as CANVAS_BREAKPOINTS, b as CANVAS_CLASSES, c as CANVAS_DESCRIPTORS, d as CANVAS_VIEWPORTS, C as CanvasClass, e as CanvasDescriptor, f as CanvasDisplayMode, g 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-DLufhrNp.js';
|
|
8
8
|
export { CreateInMemoryGeneratorRegistryOptions, createInMemoryGeneratorRegistry } from '@ggui-ai/mcp-server-core/in-memory';
|
|
9
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-YU9piOgs.js';
|
|
10
|
+
import { LLMToolDef } from './llm.js';
|
|
10
11
|
import Anthropic from '@anthropic-ai/sdk';
|
|
11
12
|
export { A as AESTHETIC_BRIEF_MAX_CHARS, G as GenerationProfileInput } from './styling-profile-CxfvV48g.js';
|
|
13
|
+
export { VisualEvalAgentSpec } from './adapters/generation-dispatch.js';
|
|
12
14
|
import { AppGenerationProfileEffort, ModelTier } from '@ggui-ai/protocol';
|
|
13
15
|
import './harness/runtime.js';
|
|
14
|
-
import './types-public-
|
|
15
|
-
import './axes-
|
|
16
|
-
import './types-
|
|
16
|
+
import './types-public-BJTLpzWn.js';
|
|
17
|
+
import './axes-CKVCzR_x.js';
|
|
18
|
+
import './types-Dh1s4K9j.js';
|
|
19
|
+
import './bank-CT4eEkta.js';
|
|
20
|
+
import 'zod';
|
|
17
21
|
import './generate-9IeNT4ZY.js';
|
|
18
|
-
import './llm.js';
|
|
19
22
|
import '@ggui-ai/gadgets';
|
|
20
23
|
import './evaluation/types.js';
|
|
21
24
|
import './harness/types-public.js';
|
|
22
25
|
import './policy.js';
|
|
23
26
|
import './adapters/types.js';
|
|
24
|
-
import 'zod';
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
29
|
* ui-gen's precise {@link GeneratorBuild}: the core port's generic shape with
|
|
@@ -37,6 +39,12 @@ interface UiGenBuild extends GeneratorBuild {
|
|
|
37
39
|
readonly boilerplateTemplateSha256: string;
|
|
38
40
|
};
|
|
39
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* The build identity for `designMode`, computed once per process per design
|
|
44
|
+
* mode and pitfalls env gate (the only env the templates read), so a changed
|
|
45
|
+
* gate is never answered from a stale memo.
|
|
46
|
+
*/
|
|
47
|
+
declare function generatorBuild(designMode: DesignMode): UiGenBuild;
|
|
40
48
|
|
|
41
49
|
/**
|
|
42
50
|
* Compile raw JSX/TSX component code emitted by `createUiGenerator` into
|
|
@@ -124,6 +132,14 @@ declare function compileComponentCode(source: string): Promise<string>;
|
|
|
124
132
|
*/
|
|
125
133
|
declare function withBrowserCompile(generator: UiGenerator): UiGenerator;
|
|
126
134
|
|
|
135
|
+
/** The coding tools every harness declares (`what.codingTools`). */
|
|
136
|
+
declare const HARNESS_CODING_TOOLS: readonly LLMToolDef[];
|
|
137
|
+
/** The scoped fallback the runtime promotes into `codingTools` on a duplicate-fingerprint escape. */
|
|
138
|
+
declare const HARNESS_SCOPED_TOOLS: readonly LLMToolDef[];
|
|
139
|
+
/** One tool's entry: `<name>@<first 8 hex of sha256(JSON.stringify(def))>`. */
|
|
140
|
+
declare function harnessToolEntry(def: LLMToolDef): string;
|
|
141
|
+
declare function harnessToolNames(designMode: DesignMode): string[];
|
|
142
|
+
|
|
127
143
|
/**
|
|
128
144
|
* Construct an Anthropic SDK client from a raw API key string.
|
|
129
145
|
*
|
|
@@ -187,4 +203,4 @@ declare const EFFORT_DIALS: Readonly<Record<AppGenerationProfileEffort, EffortDi
|
|
|
187
203
|
/** The dials for a named level; `undefined` when no level is named (the deployment's options stand). */
|
|
188
204
|
declare function effortDials(effort: AppGenerationProfileEffort | undefined): EffortDials | undefined;
|
|
189
205
|
|
|
190
|
-
export { CLAUDE_CODE_LOGIN_CREDENTIAL, CompileComponentCodeError, DesignMode, EFFORT_DIALS, EFFORT_TABLE_VERSION, type EffortDials, type UiGenBuild, compileComponentCode, createAnthropicClient, effortDials, withBrowserCompile };
|
|
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 };
|