@ggui-ai/ui-gen 0.20.0 → 0.21.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.
Files changed (80) hide show
  1. package/dist/adapters/base.d.ts +7 -0
  2. package/dist/adapters/base.js +1 -0
  3. package/dist/adapters/base.js.map +1 -1
  4. package/dist/adapters/generation-dispatch.d.ts +17 -3
  5. package/dist/adapters/generation-dispatch.js +959 -3484
  6. package/dist/adapters/generation-dispatch.js.map +1 -1
  7. package/dist/adapters/index.js +35 -3
  8. package/dist/adapters/index.js.map +1 -1
  9. package/dist/advanced/index.d.ts +4 -4
  10. package/dist/advanced/index.js +1039 -3573
  11. package/dist/advanced/index.js.map +1 -1
  12. package/dist/blueprint-validator.js +10 -3
  13. package/dist/blueprint-validator.js.map +1 -1
  14. package/dist/boilerplate.js +2 -2
  15. package/dist/boilerplate.js.map +1 -1
  16. package/dist/check/index.d.ts +1 -1
  17. package/dist/check/index.js.map +1 -1
  18. package/dist/{create-ui-generator-CxPvudbs.d.ts → create-ui-generator-D7kOXNjJ.d.ts} +2 -2
  19. package/dist/{dispatch-N8wdNOX-.d.ts → dispatch-DGvhmARp.d.ts} +1 -1
  20. package/dist/evaluation/axis-checks/index.d.ts +3 -3
  21. package/dist/evaluation/axis-checks/index.js.map +1 -1
  22. package/dist/evaluation/axis-checks/registry.d.ts +1 -1
  23. package/dist/evaluation/index.d.ts +38 -6
  24. package/dist/evaluation/index.js +649 -3370
  25. package/dist/evaluation/index.js.map +1 -1
  26. package/dist/harness/check/runtime-render/index.d.ts +2 -2
  27. package/dist/harness/check/runtime-render/index.js +10 -3
  28. package/dist/harness/check/runtime-render/index.js.map +1 -1
  29. package/dist/harness/check/runtime-render/render-check-worker.js +5 -3
  30. package/dist/harness/check/runtime-render/render-check-worker.js.map +1 -1
  31. package/dist/harness/index.d.ts +2 -2
  32. package/dist/harness/index.js +562 -30
  33. package/dist/harness/index.js.map +1 -1
  34. package/dist/harness/llm-trace-sink.d.ts +7 -1
  35. package/dist/harness/llm-trace-sink.js.map +1 -1
  36. package/dist/harness/result-types.d.ts +1 -1
  37. package/dist/harness/runtime.d.ts +11 -2
  38. package/dist/harness/runtime.js +3 -3
  39. package/dist/harness/runtime.js.map +1 -1
  40. package/dist/harness/types-public.d.ts +1 -1
  41. package/dist/harness/types-public.js +2 -2
  42. package/dist/harness/types-public.js.map +1 -1
  43. package/dist/harness/validator-trace-sink.d.ts +1 -1
  44. package/dist/index.d.ts +3 -3
  45. package/dist/index.js +1039 -3573
  46. package/dist/index.js.map +1 -1
  47. package/dist/{llm-router-D7fjBhtr.d.ts → llm-router-DwwUK1bz.d.ts} +16 -3
  48. package/dist/patch.d.ts +1 -1
  49. package/dist/providers/index.js +5 -4
  50. package/dist/providers/index.js.map +1 -1
  51. package/dist/{render-check-WfOVO9kU.d.ts → render-check-C0CqVceF.d.ts} +17 -0
  52. package/dist/{types-public-DKR_h70H.d.ts → types-public-CzYqZclY.d.ts} +44 -1
  53. package/dist/validation/index.d.ts +1 -1
  54. package/dist/validation/index.js +1 -1
  55. package/dist/validation/index.js.map +1 -1
  56. package/dist/workflows.d.ts +1 -1
  57. package/package.json +16 -12
  58. package/src/adapters/base.ts +8 -0
  59. package/src/adapters/claude/claude-code-login.ts +73 -0
  60. package/src/adapters/claude/sdk.ts +8 -1
  61. package/src/adapters/generation-dispatch.ts +19 -2
  62. package/src/adapters/openai/tokens.ts +18 -0
  63. package/src/adapters/provider-router.ts +28 -0
  64. package/src/boilerplate/generate.ts +19 -4
  65. package/src/boilerplate/hard-sections.ts +1 -1
  66. package/src/create-ui-generator.ts +19 -10
  67. package/src/evaluation/design-identity.ts +16 -5
  68. package/src/evaluation/types-public.ts +42 -0
  69. package/src/evaluation/visual-evaluator.ts +231 -24
  70. package/src/harness/check/runtime-render/adapter.ts +9 -0
  71. package/src/harness/check/runtime-render/render-check.ts +26 -5
  72. package/src/harness/claude-code-login-query.ts +528 -0
  73. package/src/harness/coding/assemble-result.ts +10 -1
  74. package/src/harness/coding/run-eval-round.ts +179 -34
  75. package/src/harness/enforced-coding.ts +20 -0
  76. package/src/harness/llm-router.ts +390 -55
  77. package/src/harness/llm-trace-sink.ts +7 -1
  78. package/src/harness/runtime.ts +6 -0
  79. package/src/providers/openai.ts +31 -19
  80. package/src/validation/primitives.ts +1 -1
@@ -329,7 +329,7 @@ function generateBoilerplate(_userPrompt, contract, shellType, screen, composedS
329
329
  }
330
330
  const toolNote = tool ? ` (label "${label}", nextStep hint \u2192 ${tool})` : "";
331
331
  actionTypeAliases.push(
332
- `/** Action payload: ${desc || label}${toolNote} */
332
+ `/** Action payload: ${desc || label}${toolNote} \u2014 control copy: "${label}" VERBATIM */
333
333
  type ${typeName} = ${tsType};`
334
334
  );
335
335
  const callSig = tsType === "void" ? "() => void \u2014 fire and forget" : `(data: ${tsType}) => void`;
@@ -961,7 +961,7 @@ Rules:
961
961
  1. All request-specific data \u2192 props with defaults. City names, tickers, user names, dates, counts.
962
962
  2. Layout and styling are universal. Colors, spacing, structure \u2014 these are the reusable part.
963
963
  3. Default values come from the current request \u2014 so the component renders correctly standalone.
964
- 4. Copy comes from the props. NEVER invent display text the contract does not carry \u2014 no eyebrow / kicker / overline (a \`<Text caps>\` label), no helper line, no status text, no tagline. **Do NOT add a caps label above the heading** \u2014 not \`<Text caps>LET'S BEGIN</Text>\`, not \`WELCOME\`, not a section kicker like \`GETTING STARTED\` or \`OVERVIEW\` \u2014 UNLESS a prop supplies that exact text (\`<Text caps>{props.section}</Text>\`). When the request asks for a heading and a line, render the heading and the line and NOTHING above the heading. A heading's fallback is the request's own words, never a slogan of your own. Text the agent cannot change is chatter on every render, and a caps eyebrow you wrote is the most common form of it.
964
+ 4. Copy comes from the props. NEVER invent display text the contract does not carry \u2014 no eyebrow / kicker / overline (a \`<Text caps>\` label), no helper line, no status text, no tagline. **Do NOT add a caps label above the heading** \u2014 not \`<Text caps>LET'S BEGIN</Text>\`, not \`WELCOME\`, not a section kicker like \`GETTING STARTED\` or \`OVERVIEW\` \u2014 UNLESS a prop supplies that exact text (\`<Text caps>{props.section}</Text>\`). When the request asks for a heading and a line, render the heading and the line and NOTHING above the heading. A heading's fallback is the request's own words, never a slogan of your own. Text the agent cannot change is chatter on every render, and a caps eyebrow you wrote is the most common form of it. An action's control shows the contract's \`label\` VERBATIM \u2014 every character, including \`&\`, \`/\`, \`\u2013\` and quotes \u2014 never paraphrased, shortened or re-cased (\`"Confirm & Schedule"\` is not \`"Confirm Schedule"\`).
965
965
  5. Props interface must be typed and exported.`;
966
966
  var TERMINAL_ACTIONS = `## Actions the user means once
967
967