@ggui-ai/ui-gen 0.21.0 → 0.22.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.d.ts +1 -1
- package/dist/adapters/generation-dispatch.js +198 -59
- 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/advanced/index.d.ts +2 -2
- package/dist/advanced/index.js +381 -58
- package/dist/advanced/index.js.map +1 -1
- 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-D7kOXNjJ.d.ts → create-ui-generator-BEkzEtNz.d.ts} +1 -1
- package/dist/{dispatch-DGvhmARp.d.ts → dispatch-DJNpQ7DI.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 +3 -3
- package/dist/evaluation/index.js +37 -20
- package/dist/evaluation/index.js.map +1 -1
- package/dist/harness/check/runtime-render/index.d.ts +1 -1
- package/dist/harness/index.d.ts +1 -1
- package/dist/harness/index.js +34 -9
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/prompts.js +1 -1
- package/dist/harness/prompts.js.map +1 -1
- package/dist/harness/result-types.d.ts +15 -2
- package/dist/harness/result-types.js.map +1 -1
- package/dist/harness/runtime.d.ts +1 -1
- package/dist/harness/runtime.js.map +1 -1
- package/dist/harness/types-public.d.ts +1 -1
- package/dist/harness/types-public.js.map +1 -1
- package/dist/harness/validator-trace-sink.d.ts +1 -1
- package/dist/index.d.ts +22 -6
- package/dist/index.js +381 -58
- package/dist/index.js.map +1 -1
- package/dist/patch.d.ts +1 -1
- package/dist/{types-public-CzYqZclY.d.ts → types-public-mM_-1Yk3.d.ts} +16 -1
- package/dist/workflows.d.ts +1 -1
- package/package.json +12 -12
- package/src/adapters/claude/claude-code-login.ts +62 -7
- package/src/adapters/claude/sdk.ts +6 -5
- package/src/boilerplate/templates/layouts/chat-mobile.tsx.tmpl +7 -3
- package/src/boilerplate/templates/layouts/chat-universal.tsx.tmpl +7 -3
- package/src/contract-context.ts +1 -1
- package/src/create-ui-generator.ts +30 -0
- package/src/evaluation/index.ts +1 -0
- package/src/evaluation/llm-evaluator.ts +40 -13
- package/src/evaluation/types-public.ts +16 -0
- package/src/evaluation/visual-evaluator.ts +9 -6
- package/src/generator-build.ts +158 -0
- package/src/harness/claude-code-login-query.ts +5 -4
- package/src/harness/coding/assemble-result.ts +8 -1
- package/src/harness/coding/generate-task-runner.ts +75 -36
- package/src/harness/coding/run-coding-turn.ts +9 -0
- package/src/harness/coding/run-eval-round.ts +160 -5
- package/src/harness/result-types.ts +14 -0
- package/src/index.ts +2 -1
package/dist/adapters/index.js
CHANGED
|
@@ -529,26 +529,51 @@ var init_tool_bridge2 = __esm({
|
|
|
529
529
|
});
|
|
530
530
|
|
|
531
531
|
// src/adapters/claude/claude-code-login.ts
|
|
532
|
-
function
|
|
532
|
+
function loginChildEnv(env) {
|
|
533
533
|
const out = {};
|
|
534
|
-
const drop = new Set(PROVIDER_KEY_ENV_NAMES);
|
|
535
534
|
for (const [k, v] of Object.entries(env)) {
|
|
536
|
-
if (v !== void 0 &&
|
|
535
|
+
if (v !== void 0 && (LOGIN_CHILD_ENV.has(k) || k.startsWith("LC_"))) out[k] = v;
|
|
537
536
|
}
|
|
538
537
|
return out;
|
|
539
538
|
}
|
|
540
539
|
function claudeCodeLoginQueryOptions() {
|
|
541
540
|
return { tools: [], settingSources: [] };
|
|
542
541
|
}
|
|
543
|
-
var
|
|
542
|
+
var LOGIN_CHILD_ENV_NAMES, LOGIN_CHILD_ENV;
|
|
544
543
|
var init_claude_code_login = __esm({
|
|
545
544
|
"src/adapters/claude/claude-code-login.ts"() {
|
|
546
|
-
|
|
547
|
-
"
|
|
548
|
-
"
|
|
549
|
-
"
|
|
550
|
-
"
|
|
545
|
+
LOGIN_CHILD_ENV_NAMES = [
|
|
546
|
+
"PATH",
|
|
547
|
+
"HOME",
|
|
548
|
+
"USER",
|
|
549
|
+
"LOGNAME",
|
|
550
|
+
"SHELL",
|
|
551
|
+
"TMPDIR",
|
|
552
|
+
"TMP",
|
|
553
|
+
"TEMP",
|
|
554
|
+
"TERM",
|
|
555
|
+
"TZ",
|
|
556
|
+
"LANG",
|
|
557
|
+
"CLAUDE_CONFIG_DIR",
|
|
558
|
+
"CLAUDE_CODE_OAUTH_TOKEN",
|
|
559
|
+
"XDG_CONFIG_HOME",
|
|
560
|
+
"XDG_DATA_HOME",
|
|
561
|
+
"XDG_CACHE_HOME",
|
|
562
|
+
"XDG_STATE_HOME",
|
|
563
|
+
"XDG_RUNTIME_DIR",
|
|
564
|
+
"HTTPS_PROXY",
|
|
565
|
+
"https_proxy",
|
|
566
|
+
"HTTP_PROXY",
|
|
567
|
+
"http_proxy",
|
|
568
|
+
"NO_PROXY",
|
|
569
|
+
"no_proxy",
|
|
570
|
+
"ALL_PROXY",
|
|
571
|
+
"all_proxy",
|
|
572
|
+
"NODE_EXTRA_CA_CERTS",
|
|
573
|
+
"SSL_CERT_FILE",
|
|
574
|
+
"SSL_CERT_DIR"
|
|
551
575
|
];
|
|
576
|
+
LOGIN_CHILD_ENV = new Set(LOGIN_CHILD_ENV_NAMES);
|
|
552
577
|
}
|
|
553
578
|
});
|
|
554
579
|
|
|
@@ -597,7 +622,7 @@ var init_sdk = __esm({
|
|
|
597
622
|
const cfg = this.sdkConfig;
|
|
598
623
|
const { query } = await import('@anthropic-ai/claude-agent-sdk');
|
|
599
624
|
const login = cfg.claudeCodeLogin === true;
|
|
600
|
-
const env = login ?
|
|
625
|
+
const env = login ? loginChildEnv(buildEnv(cfg.env)) : buildEnv(cfg.env);
|
|
601
626
|
const artifacts = createArtifacts();
|
|
602
627
|
const onProgress = cfg.onProgress;
|
|
603
628
|
let mcpServers = cfg.mcpServers;
|