@ggui-ai/ui-gen 0.26.0 → 0.27.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-BJwn74rx.d.ts → adapter-h4_V69LI.d.ts} +1 -1
- package/dist/adapters/base.d.ts +6 -1
- package/dist/adapters/base.js.map +1 -1
- package/dist/adapters/generation-dispatch.d.ts +2 -2
- package/dist/adapters/generation-dispatch.js +61 -10
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +36 -14
- package/dist/adapters/index.js.map +1 -1
- package/dist/advanced/index.d.ts +4 -4
- package/dist/advanced/index.js +94 -19
- package/dist/advanced/index.js.map +1 -1
- package/dist/boilerplate.js +4 -6
- package/dist/boilerplate.js.map +1 -1
- package/dist/check/index.d.ts +1 -7
- package/dist/check/index.js +50 -4
- package/dist/check/index.js.map +1 -1
- package/dist/{create-ui-generator-N4gRXpcL.d.ts → create-ui-generator-BrZHF0cf.d.ts} +2 -2
- package/dist/{dispatch-BUoXRj_r.d.ts → dispatch-B07TI30d.d.ts} +1 -1
- package/dist/evaluation/axis-checks/index.d.ts +3 -3
- package/dist/evaluation/axis-checks/index.js.map +1 -1
- package/dist/evaluation/axis-checks/registry.d.ts +1 -1
- package/dist/evaluation/index.d.ts +22 -12
- package/dist/evaluation/index.js +36 -10
- package/dist/evaluation/index.js.map +1 -1
- package/dist/evaluation/types.d.ts +1 -1
- package/dist/harness/check/runtime-render/index.d.ts +3 -3
- package/dist/harness/index.d.ts +1 -1
- package/dist/harness/index.js +4 -6
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/prompts.js +1 -4
- package/dist/harness/prompts.js.map +1 -1
- package/dist/harness/result-types.d.ts +2 -2
- package/dist/harness/runtime.d.ts +1 -1
- package/dist/harness/runtime.js +6 -7
- package/dist/harness/runtime.js.map +1 -1
- package/dist/harness/types-public.d.ts +1 -1
- package/dist/harness/types-public.js +4 -6
- package/dist/harness/types-public.js.map +1 -1
- package/dist/harness/validator-trace-sink.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +94 -19
- package/dist/index.js.map +1 -1
- package/dist/patch.d.ts +1 -1
- package/dist/{types-public-B7wn4ce5.d.ts → types-public-h8IMnYuh.d.ts} +4 -0
- package/dist/{visual-evaluator-C9L-o6ap.d.ts → visual-evaluator-C2strxqD.d.ts} +1 -1
- package/dist/workflows.d.ts +1 -1
- package/package.json +12 -12
- package/src/adapters/base.ts +6 -1
- package/src/adapters/claude/message-parser.ts +5 -6
- package/src/adapters/claude/sdk-tool-pins.ts +44 -0
- package/src/adapters/claude/sdk.ts +3 -3
- package/src/adapters/claude/source-capture.ts +20 -0
- package/src/boilerplate/system-prompt.ts +3 -2
- package/src/check/run-tier0.ts +61 -0
- package/src/design-system-docs.ts +2 -1
- package/src/evaluation/criteria/resolve.ts +19 -1
- package/src/evaluation/loop.ts +25 -4
- package/src/evaluation/message-parsing.ts +11 -12
- package/src/evaluation/types-public.ts +4 -0
- package/src/taught-tokens.ts +5 -6
|
@@ -2,8 +2,8 @@ import { JsonObject, DataContract } from '@ggui-ai/protocol';
|
|
|
2
2
|
export { ActionSpec, DataContract, JsonSchema, PropsSpec, StreamSpec } from '@ggui-ai/protocol';
|
|
3
3
|
import { AdapterResult } from '../adapters/types.js';
|
|
4
4
|
import { R as RenderingContext } from '../prompts-BhNUuRoZ.js';
|
|
5
|
-
import { e as EvalResult } from '../types-public-
|
|
6
|
-
import { V as VisualLegTokens } from '../visual-evaluator-
|
|
5
|
+
import { e as EvalResult } from '../types-public-h8IMnYuh.js';
|
|
6
|
+
import { V as VisualLegTokens } from '../visual-evaluator-C2strxqD.js';
|
|
7
7
|
import { D as DesignMode, C as CanvasClass } from '../design-mode-DGWN_Gkm.js';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import '../llm.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GenerationProfileInput } from '../styling-profile-CxfvV48g.js';
|
|
2
|
-
import { Q as QualityConfig, b as AgentConfig } from '../types-public-
|
|
2
|
+
import { Q as QualityConfig, b as AgentConfig } from '../types-public-h8IMnYuh.js';
|
|
3
3
|
import { DataContract, JsonObject, GadgetDescriptor } from '@ggui-ai/protocol';
|
|
4
4
|
import { C as CriteriaBank } from '../bank-Ctdp3FUA.js';
|
|
5
5
|
import { C as CanvasClass, D as DesignMode } from '../design-mode-DGWN_Gkm.js';
|
package/dist/harness/runtime.js
CHANGED
|
@@ -45,6 +45,7 @@ These tokens adapt automatically to any theme (light, dark, branded). **ALWAYS u
|
|
|
45
45
|
| link | var(--ggui-color-link) | Accent TEXT \u2014 eyebrows, taglines, links, labels, inline arrows: the brand's readable ink, derived per mode to clear 4.5:1 on the container and the ground |
|
|
46
46
|
| outline | var(--ggui-color-outline) | Borders, dividers |
|
|
47
47
|
| outlineVariant | var(--ggui-color-outlineVariant) | Subtle borders |
|
|
48
|
+
| controlOutline | var(--ggui-color-controlOutline) | A control's edge \u2014 clears 3:1 on its surface; kit controls draw it themselves |
|
|
48
49
|
|
|
49
50
|
**Usage pattern:**
|
|
50
51
|
- Page/section background \u2192 \`var(--ggui-color-ground)\`
|
|
@@ -169,7 +170,7 @@ Use \`var(--ggui-spacing-N)\` for all padding, gap, and margin values. **Never u
|
|
|
169
170
|
### Color usage guide
|
|
170
171
|
- **Layering roles** (ground, container, elevated, sunken + their on* inks; outline): one kind of AREA each \u2014 use them for every background/text/border decision; they adapt to any theme
|
|
171
172
|
- **primary-50/100**: Section backgrounds, highlight strips, card headers
|
|
172
|
-
- **primary-200/300**:
|
|
173
|
+
- **primary-200/300**: Dividers and section rules \u2014 never a control's border: kit controls draw their own edge (\`controlOutline\` / \`controlAccentOutline\`), so set no inline border on them
|
|
173
174
|
- **primary-500/600**: Filled buttons, CTAs, badges, icon fills, active indicators \u2014 fills and borders, NOT a text color
|
|
174
175
|
- **link**: Accent TEXT \u2014 eyebrows, taglines, links, labels, inline arrows; the brand's readable ink per mode (a bare \`primary-300\u2026600\` as a text color fails tier-0: \`universal.accent_text_ink\`)
|
|
175
176
|
- **primary-700/800/900**: Headings and text on light primary backgrounds
|
|
@@ -1217,10 +1218,7 @@ function buildCodingCriteriaSummary(designMode = "constrained") {
|
|
|
1217
1218
|
}
|
|
1218
1219
|
return lines.join("\n");
|
|
1219
1220
|
}
|
|
1220
|
-
var NOT_YET_TAUGHT_TOKENS = /* @__PURE__ */ new Set([
|
|
1221
|
-
"--ggui-color-controlAccentOutline",
|
|
1222
|
-
"--ggui-color-controlOutline"
|
|
1223
|
-
]);
|
|
1221
|
+
var NOT_YET_TAUGHT_TOKENS = /* @__PURE__ */ new Set([]);
|
|
1224
1222
|
var taughtTokenManifest = consumedTokenManifest.filter(
|
|
1225
1223
|
(token) => !NOT_YET_TAUGHT_TOKENS.has(token)
|
|
1226
1224
|
);
|
|
@@ -2132,13 +2130,14 @@ MANDATORY:
|
|
|
2132
2130
|
2. NEVER use CSS gradients with custom colors. If you need a gradient: \`linear-gradient(to bottom, var(--ggui-color-primary-500), var(--ggui-color-primary-700))\`.
|
|
2133
2131
|
3. NEVER invent your own palette. The system provides primary, neutral, success, warning, error, and info \u2014 use ONLY these.
|
|
2134
2132
|
4. NEVER include literal fallback values in ANY token reference \u2014 colors, spacing, typography, radius, shadows alike. Write \`var(--ggui-spacing-4)\` bare, never \`var(--ggui-spacing-4, 16px)\`; \`var(--ggui-color-primary-600)\` bare, never \`var(--ggui-color-primary-600, #0284c7)\`. The runtime injects every token; a literal fallback paints the wrong value exactly when the operator's theme matters most.
|
|
2133
|
+
5. NEVER set an inline \`border\`, \`borderColor\`, \`borderWidth\` or \`borderStyle\` on a kit control \u2014 \`Button\`, \`Input\`, \`Select\`, \`TextArea\`, \`Checkbox\`, \`RadioGroup\`, \`Toggle\`, \`SearchField\`. The control draws its own boundary, and it clears 3:1 on its surface in every theme: an outline chip is \`<Button variant="outline">\` exactly as it comes (its edge is \`controlAccentOutline\`). Where you draw a control-like edge on your own element, use \`var(--ggui-color-controlOutline)\`. A ramp step such as \`primary-200\` as a control's border is nearly invisible (about 1.1:1).
|
|
2135
2134
|
|
|
2136
2135
|
Token categories:
|
|
2137
2136
|
- Brand fills: \`var(--ggui-color-primary-600)\`, \`var(--ggui-color-primary-50)\`
|
|
2138
2137
|
- Accent text: \`var(--ggui-color-link)\` \u2014 eyebrows, taglines, links, labels; readable per mode (never a bare \`primary-<stop>\` as a text color)
|
|
2139
2138
|
- Text: \`var(--ggui-color-onContainer)\`, \`var(--ggui-color-onSunken)\`
|
|
2140
2139
|
- Backgrounds: \`var(--ggui-color-container)\`, \`var(--ggui-color-sunken)\`
|
|
2141
|
-
- Borders: \`var(--ggui-color-outline)\`
|
|
2140
|
+
- Borders: \`var(--ggui-color-outline)\` \u2014 dividers and the edges of non-interactive boxes; a control's edge is the kit's (rule 5)
|
|
2142
2141
|
- Spacing: \`var(--ggui-spacing-4)\`, \`var(--ggui-spacing-6)\`
|
|
2143
2142
|
- Typography: \`var(--ggui-font-size-sm)\`, \`var(--ggui-font-weight-semibold)\`
|
|
2144
2143
|
- Shadows: \`var(--ggui-shape-shadow-sm)\`, \`var(--ggui-shape-shadow-md)\`, \`var(--ggui-shape-shadow-lg)\`
|
|
@@ -2153,7 +2152,7 @@ Use the FULL primary palette throughout the component \u2014 NOT only on submit
|
|
|
2153
2152
|
| Element | Token | Purpose |
|
|
2154
2153
|
|---------|-------|---------|
|
|
2155
2154
|
| Section headers, hero areas, highlight strips | \`primary-50\` / \`primary-100\` | Subtle branded backgrounds |
|
|
2156
|
-
|
|
|
2155
|
+
| Dividers, section rules, edges of non-interactive boxes | \`primary-200\` / \`primary-300\` | Branded structure \u2014 never a control's border (rule 5) |
|
|
2157
2156
|
| Accent TEXT \u2014 eyebrows, taglines, links, labels, inline arrows | \`link\` (\`var(--ggui-color-link)\`) or \`<Text tone="emphasized">\` | The brand's READABLE ink, derived per mode to clear 4.5:1 \u2014 a bare \`primary-300\u2026600\` as a text color fails tier-0 |
|
|
2158
2157
|
| Icon fills, badges, active indicators | \`primary-500\` / \`primary-600\` | Core accent fill |
|
|
2159
2158
|
| Buttons, CTAs, filled interactive elements | \`primary-600\` / \`primary-700\` | Primary actions |
|