@ggui-ai/ui-gen 0.19.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.
- package/dist/adapters/base.d.ts +7 -0
- package/dist/adapters/base.js +1 -0
- package/dist/adapters/base.js.map +1 -1
- package/dist/adapters/generation-dispatch.d.ts +17 -3
- package/dist/adapters/generation-dispatch.js +992 -3468
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +70 -13
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/types.d.ts +1 -1
- package/dist/adapters/types.js.map +1 -1
- package/dist/advanced/index.d.ts +4 -4
- package/dist/advanced/index.js +1060 -3520
- package/dist/advanced/index.js.map +1 -1
- package/dist/blueprint-validator.js +13 -3
- package/dist/blueprint-validator.js.map +1 -1
- package/dist/boilerplate.js +2 -2
- package/dist/boilerplate.js.map +1 -1
- package/dist/check/index.d.ts +1 -1
- package/dist/check/index.js.map +1 -1
- package/dist/{create-ui-generator-CxPvudbs.d.ts → create-ui-generator-D7kOXNjJ.d.ts} +2 -2
- package/dist/{dispatch-N8wdNOX-.d.ts → dispatch-DGvhmARp.d.ts} +1 -1
- package/dist/evaluation/axis-checks/index.d.ts +3 -3
- package/dist/evaluation/axis-checks/index.js +46 -0
- package/dist/evaluation/axis-checks/index.js.map +1 -1
- package/dist/evaluation/axis-checks/registry.d.ts +1 -1
- package/dist/evaluation/axis-checks/registry.js +46 -0
- package/dist/evaluation/axis-checks/registry.js.map +1 -1
- package/dist/evaluation/index.d.ts +38 -6
- package/dist/evaluation/index.js +682 -3357
- package/dist/evaluation/index.js.map +1 -1
- package/dist/harness/check/runtime-render/index.d.ts +2 -2
- package/dist/harness/check/runtime-render/index.js +13 -3
- package/dist/harness/check/runtime-render/index.js.map +1 -1
- package/dist/harness/check/runtime-render/render-check-worker.js +8 -3
- package/dist/harness/check/runtime-render/render-check-worker.js.map +1 -1
- package/dist/harness/index.d.ts +2 -2
- package/dist/harness/index.js +562 -30
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/llm-trace-sink.d.ts +7 -1
- package/dist/harness/llm-trace-sink.js.map +1 -1
- package/dist/harness/result-types.d.ts +1 -1
- package/dist/harness/runtime.d.ts +11 -2
- package/dist/harness/runtime.js +3 -3
- package/dist/harness/runtime.js.map +1 -1
- package/dist/harness/types-public.d.ts +1 -1
- package/dist/harness/types-public.js +2 -2
- package/dist/harness/types-public.js.map +1 -1
- package/dist/harness/validator-trace-sink.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1060 -3520
- package/dist/index.js.map +1 -1
- package/dist/{llm-router-D7fjBhtr.d.ts → llm-router-DwwUK1bz.d.ts} +16 -3
- package/dist/patch.d.ts +1 -1
- package/dist/providers/index.js +5 -4
- package/dist/providers/index.js.map +1 -1
- package/dist/{render-check-WfOVO9kU.d.ts → render-check-C0CqVceF.d.ts} +17 -0
- package/dist/{types-public-DKR_h70H.d.ts → types-public-CzYqZclY.d.ts} +44 -1
- 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 +1 -1
- package/package.json +16 -12
- package/src/adapters/base.ts +8 -0
- package/src/adapters/claude/claude-code-login.ts +73 -0
- package/src/adapters/claude/sdk.ts +8 -1
- package/src/adapters/generation-dispatch.ts +19 -2
- package/src/adapters/openai/raw.ts +11 -5
- package/src/adapters/openai/sdk.ts +8 -5
- package/src/adapters/openai/tokens.ts +67 -0
- package/src/adapters/provider-router.ts +28 -0
- package/src/adapters/types.ts +1 -1
- package/src/boilerplate/generate.ts +19 -4
- package/src/boilerplate/hard-sections.ts +1 -1
- package/src/create-ui-generator.ts +19 -10
- package/src/evaluation/axis-checks/checks/universal.ts +92 -0
- package/src/evaluation/design-identity.ts +16 -5
- package/src/evaluation/types-public.ts +42 -0
- package/src/evaluation/visual-evaluator.ts +231 -24
- package/src/harness/check/runtime-render/adapter.ts +9 -0
- package/src/harness/check/runtime-render/render-check.ts +37 -1
- package/src/harness/claude-code-login-query.ts +528 -0
- package/src/harness/coding/assemble-result.ts +10 -1
- package/src/harness/coding/run-eval-round.ts +179 -34
- package/src/harness/enforced-coding.ts +20 -0
- package/src/harness/llm-router.ts +390 -55
- package/src/harness/llm-trace-sink.ts +7 -1
- package/src/harness/runtime.ts +6 -0
- package/src/providers/openai.ts +31 -19
- package/src/validation/primitives.ts +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { R as RenderCheckIssue, a as RenderCheckResult, r as runRenderCheck } from '../../../render-check-
|
|
1
|
+
export { R as RenderCheckIssue, a as RenderCheckResult, r as runRenderCheck } from '../../../render-check-C0CqVceF.js';
|
|
2
2
|
import { WireConfig } from '@ggui-ai/wire';
|
|
3
3
|
import { JsonObject, DataContract } from '@ggui-ai/protocol';
|
|
4
4
|
import { RuntimeRenderCheck } from '../../types-public.js';
|
|
5
5
|
import '../../../styling-profile-CxfvV48g.js';
|
|
6
6
|
import '../../../axes-CzLEMDeB.js';
|
|
7
|
-
import '../../../types-public-
|
|
7
|
+
import '../../../types-public-CzYqZclY.js';
|
|
8
8
|
import '../../../design-mode-DLufhrNp.js';
|
|
9
9
|
import '../../../types-BOvHNG7K.js';
|
|
10
10
|
import '../../../llm.js';
|
|
@@ -4,6 +4,7 @@ import { fileURLToPath, pathToFileURL } from 'url';
|
|
|
4
4
|
import { runSandboxed } from '@ggui-ai/sandbox';
|
|
5
5
|
import { listContractGadgets, HOOK_NAME_RE } from '@ggui-ai/protocol';
|
|
6
6
|
import ts from 'typescript';
|
|
7
|
+
import { primeInputs } from '@ggui-ai/ui-visual-tester/prime-inputs';
|
|
7
8
|
|
|
8
9
|
var __defProp = Object.defineProperty;
|
|
9
10
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -666,8 +667,6 @@ function editableSurface(el) {
|
|
|
666
667
|
function parentLink(node) {
|
|
667
668
|
return node;
|
|
668
669
|
}
|
|
669
|
-
|
|
670
|
-
// src/harness/check/runtime-render/render-check.ts
|
|
671
670
|
async function runRenderCheck(input) {
|
|
672
671
|
const g = hostGlobals();
|
|
673
672
|
if ("window" in g && "document" in g) {
|
|
@@ -846,6 +845,12 @@ async function runRenderCheckInProcess(input) {
|
|
|
846
845
|
let actionsChecked = 0;
|
|
847
846
|
let streamsChecked = 0;
|
|
848
847
|
try {
|
|
848
|
+
let inputPriming;
|
|
849
|
+
try {
|
|
850
|
+
inputPriming = { primed: primeInputs(renderResult.container) };
|
|
851
|
+
} catch (err) {
|
|
852
|
+
inputPriming = { error: err instanceof Error ? err.message : String(err) };
|
|
853
|
+
}
|
|
849
854
|
if (input.contract?.actionSpec) {
|
|
850
855
|
const actionSpec = input.contract.actionSpec;
|
|
851
856
|
for (const [name, entry] of Object.entries(actionSpec)) {
|
|
@@ -863,7 +868,7 @@ async function runRenderCheckInProcess(input) {
|
|
|
863
868
|
probe,
|
|
864
869
|
user
|
|
865
870
|
});
|
|
866
|
-
if (issue) issues.push(issue);
|
|
871
|
+
if (issue) issues.push({ ...issue, diagnostics: { ...issue.diagnostics, inputPriming } });
|
|
867
872
|
}
|
|
868
873
|
}
|
|
869
874
|
if (input.contract?.actionSpec) {
|
|
@@ -1792,6 +1797,11 @@ function toEvalIssue(issue) {
|
|
|
1792
1797
|
if (diag?.actionsFiredFromClicks?.length) {
|
|
1793
1798
|
diagParts.push(`other actions fired from clicks: ${diag.actionsFiredFromClicks.join(", ")}`);
|
|
1794
1799
|
}
|
|
1800
|
+
if (diag?.inputPriming) {
|
|
1801
|
+
diagParts.push(
|
|
1802
|
+
"primed" in diag.inputPriming ? `input priming: ${diag.inputPriming.primed} control(s) filled before the click` : `input priming failed: ${diag.inputPriming.error}`
|
|
1803
|
+
);
|
|
1804
|
+
}
|
|
1795
1805
|
const diagSuffix = diagParts.length ? ` [observed: ${diagParts.join("; ")}]` : "";
|
|
1796
1806
|
switch (issue.check) {
|
|
1797
1807
|
case "render-no-throw":
|