@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
|
@@ -4,7 +4,7 @@ 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-mM_-1Yk3.js';
|
|
8
8
|
import '../../../design-mode-DLufhrNp.js';
|
|
9
9
|
import '../../../types-BOvHNG7K.js';
|
|
10
10
|
import '../../../llm.js';
|
package/dist/harness/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { computeHarnessId, computeHarnessName, hashClassification } from '../has
|
|
|
10
10
|
import '@ggui-ai/protocol';
|
|
11
11
|
import '../styling-profile-CxfvV48g.js';
|
|
12
12
|
import '../axes-CzLEMDeB.js';
|
|
13
|
-
import '../types-public-
|
|
13
|
+
import '../types-public-mM_-1Yk3.js';
|
|
14
14
|
import '../design-mode-DLufhrNp.js';
|
|
15
15
|
import '../types-BOvHNG7K.js';
|
|
16
16
|
import '../llm.js';
|
package/dist/harness/index.js
CHANGED
|
@@ -3228,17 +3228,42 @@ function createAnthropicClient(rawKey) {
|
|
|
3228
3228
|
}
|
|
3229
3229
|
|
|
3230
3230
|
// src/adapters/claude/claude-code-login.ts
|
|
3231
|
-
var
|
|
3232
|
-
"
|
|
3233
|
-
"
|
|
3234
|
-
"
|
|
3235
|
-
"
|
|
3231
|
+
var LOGIN_CHILD_ENV_NAMES = [
|
|
3232
|
+
"PATH",
|
|
3233
|
+
"HOME",
|
|
3234
|
+
"USER",
|
|
3235
|
+
"LOGNAME",
|
|
3236
|
+
"SHELL",
|
|
3237
|
+
"TMPDIR",
|
|
3238
|
+
"TMP",
|
|
3239
|
+
"TEMP",
|
|
3240
|
+
"TERM",
|
|
3241
|
+
"TZ",
|
|
3242
|
+
"LANG",
|
|
3243
|
+
"CLAUDE_CONFIG_DIR",
|
|
3244
|
+
"CLAUDE_CODE_OAUTH_TOKEN",
|
|
3245
|
+
"XDG_CONFIG_HOME",
|
|
3246
|
+
"XDG_DATA_HOME",
|
|
3247
|
+
"XDG_CACHE_HOME",
|
|
3248
|
+
"XDG_STATE_HOME",
|
|
3249
|
+
"XDG_RUNTIME_DIR",
|
|
3250
|
+
"HTTPS_PROXY",
|
|
3251
|
+
"https_proxy",
|
|
3252
|
+
"HTTP_PROXY",
|
|
3253
|
+
"http_proxy",
|
|
3254
|
+
"NO_PROXY",
|
|
3255
|
+
"no_proxy",
|
|
3256
|
+
"ALL_PROXY",
|
|
3257
|
+
"all_proxy",
|
|
3258
|
+
"NODE_EXTRA_CA_CERTS",
|
|
3259
|
+
"SSL_CERT_FILE",
|
|
3260
|
+
"SSL_CERT_DIR"
|
|
3236
3261
|
];
|
|
3237
|
-
|
|
3262
|
+
var LOGIN_CHILD_ENV = new Set(LOGIN_CHILD_ENV_NAMES);
|
|
3263
|
+
function loginChildEnv(env) {
|
|
3238
3264
|
const out = {};
|
|
3239
|
-
const drop = new Set(PROVIDER_KEY_ENV_NAMES);
|
|
3240
3265
|
for (const [k, v] of Object.entries(env)) {
|
|
3241
|
-
if (v !== void 0 &&
|
|
3266
|
+
if (v !== void 0 && (LOGIN_CHILD_ENV.has(k) || k.startsWith("LC_"))) out[k] = v;
|
|
3242
3267
|
}
|
|
3243
3268
|
return out;
|
|
3244
3269
|
}
|
|
@@ -3400,7 +3425,7 @@ function buildLoginQueryOptions(params) {
|
|
|
3400
3425
|
systemPrompt: params.systemPrompt,
|
|
3401
3426
|
maxTurns: 1,
|
|
3402
3427
|
thinking: { type: "disabled" },
|
|
3403
|
-
env:
|
|
3428
|
+
env: loginChildEnv(params.env ?? process.env),
|
|
3404
3429
|
...claudeCodeLoginQueryOptions(),
|
|
3405
3430
|
...params.tools !== void 0 ? {
|
|
3406
3431
|
mcpServers: { [MCP_SERVER_NAME]: params.tools.server },
|