@ggui-ai/ui-gen 0.19.0 → 0.20.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/generation-dispatch.js +51 -2
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +35 -10
- 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.js +86 -12
- package/dist/advanced/index.js.map +1 -1
- package/dist/blueprint-validator.js +5 -2
- package/dist/blueprint-validator.js.map +1 -1
- 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.js +46 -0
- package/dist/evaluation/axis-checks/registry.js.map +1 -1
- package/dist/evaluation/index.js +46 -0
- package/dist/evaluation/index.js.map +1 -1
- package/dist/harness/check/runtime-render/index.js +5 -2
- package/dist/harness/check/runtime-render/index.js.map +1 -1
- package/dist/harness/check/runtime-render/render-check-worker.js +5 -2
- package/dist/harness/check/runtime-render/render-check-worker.js.map +1 -1
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/types-public.js.map +1 -1
- package/dist/index.js +86 -12
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/src/adapters/openai/raw.ts +11 -5
- package/src/adapters/openai/sdk.ts +8 -5
- package/src/adapters/openai/tokens.ts +49 -0
- package/src/adapters/types.ts +1 -1
- package/src/evaluation/axis-checks/checks/universal.ts +92 -0
- package/src/harness/check/runtime-render/render-check.ts +15 -0
|
@@ -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,10 @@ async function runRenderCheckInProcess(input) {
|
|
|
846
845
|
let actionsChecked = 0;
|
|
847
846
|
let streamsChecked = 0;
|
|
848
847
|
try {
|
|
848
|
+
try {
|
|
849
|
+
primeInputs(renderResult.container);
|
|
850
|
+
} catch {
|
|
851
|
+
}
|
|
849
852
|
if (input.contract?.actionSpec) {
|
|
850
853
|
const actionSpec = input.contract.actionSpec;
|
|
851
854
|
for (const [name, entry] of Object.entries(actionSpec)) {
|