@ls-stack/agent-eval 0.2.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/app-CKa9TjXw.mjs +244 -0
- package/dist/apps/web/dist/assets/index-BUz24J7O.css +1 -0
- package/dist/apps/web/dist/assets/index-Dm50Ynbs.js +109 -0
- package/dist/apps/web/dist/favicon.svg +20 -0
- package/dist/apps/web/dist/index.html +34 -0
- package/dist/bin.d.mts +1 -0
- package/dist/bin.mjs +41 -0
- package/dist/cli-CwEFLP0w.mjs +3422 -0
- package/dist/index.d.mts +2043 -0
- package/dist/index.mjs +3 -0
- package/dist/runner-CD5aDJ0C.mjs +15 -0
- package/dist/runner-Ck4X0H3p.mjs +2 -0
- package/dist/src-BDRmaWFu.mjs +2 -0
- package/package.json +71 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
+
<stop offset="0%" stop-color="#22d3ee" />
|
|
5
|
+
<stop offset="100%" stop-color="#0e7490" />
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<rect width="32" height="32" rx="8" ry="8" fill="url(#g)" />
|
|
9
|
+
<text
|
|
10
|
+
x="16"
|
|
11
|
+
y="16"
|
|
12
|
+
text-anchor="middle"
|
|
13
|
+
dominant-baseline="central"
|
|
14
|
+
font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif"
|
|
15
|
+
font-size="15"
|
|
16
|
+
font-weight="700"
|
|
17
|
+
letter-spacing="-0.3"
|
|
18
|
+
fill="#0a0b0d"
|
|
19
|
+
>ae</text>
|
|
20
|
+
</svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta
|
|
6
|
+
name="viewport"
|
|
7
|
+
content="width=device-width, initial-scale=1.0"
|
|
8
|
+
/>
|
|
9
|
+
<link
|
|
10
|
+
rel="icon"
|
|
11
|
+
type="image/svg+xml"
|
|
12
|
+
href="/favicon.svg"
|
|
13
|
+
/>
|
|
14
|
+
<title>Evals</title>
|
|
15
|
+
<link
|
|
16
|
+
rel="preconnect"
|
|
17
|
+
href="https://fonts.googleapis.com"
|
|
18
|
+
/>
|
|
19
|
+
<link
|
|
20
|
+
rel="preconnect"
|
|
21
|
+
href="https://fonts.gstatic.com"
|
|
22
|
+
crossorigin
|
|
23
|
+
/>
|
|
24
|
+
<link
|
|
25
|
+
href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
26
|
+
rel="stylesheet"
|
|
27
|
+
/>
|
|
28
|
+
<script type="module" crossorigin src="/assets/index-Dm50Ynbs.js"></script>
|
|
29
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BUz24J7O.css">
|
|
30
|
+
</head>
|
|
31
|
+
<body>
|
|
32
|
+
<div id="root"></div>
|
|
33
|
+
</body>
|
|
34
|
+
</html>
|
package/dist/bin.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/bin.mjs
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { t as runCli } from "./cli-CwEFLP0w.mjs";
|
|
3
|
+
import { spawn } from "node:child_process";
|
|
4
|
+
//#region src/bin.ts
|
|
5
|
+
const moduleMocksFlag = "--experimental-test-module-mocks";
|
|
6
|
+
function needsModuleMocksFlag() {
|
|
7
|
+
return !process.execArgv.includes(moduleMocksFlag);
|
|
8
|
+
}
|
|
9
|
+
async function reexecWithModuleMocksFlag(argv) {
|
|
10
|
+
const entrypoint = process.argv[1];
|
|
11
|
+
if (!entrypoint) throw new Error("Unable to locate the Agent Evals CLI entrypoint.");
|
|
12
|
+
await new Promise((resolvePromise, rejectPromise) => {
|
|
13
|
+
const child = spawn(process.execPath, [
|
|
14
|
+
moduleMocksFlag,
|
|
15
|
+
...process.execArgv,
|
|
16
|
+
entrypoint,
|
|
17
|
+
...argv
|
|
18
|
+
], {
|
|
19
|
+
env: process.env,
|
|
20
|
+
stdio: "inherit"
|
|
21
|
+
});
|
|
22
|
+
child.once("error", (error) => {
|
|
23
|
+
rejectPromise(error);
|
|
24
|
+
});
|
|
25
|
+
child.once("exit", (code, signal) => {
|
|
26
|
+
if (signal) {
|
|
27
|
+
process.kill(process.pid, signal);
|
|
28
|
+
process.exitCode = 1;
|
|
29
|
+
resolvePromise();
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
process.exitCode = code ?? 1;
|
|
33
|
+
resolvePromise();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const argv = process.argv.slice(2);
|
|
38
|
+
if (needsModuleMocksFlag()) await reexecWithModuleMocksFlag(argv);
|
|
39
|
+
else await runCli(argv);
|
|
40
|
+
//#endregion
|
|
41
|
+
export {};
|