@assay-ai/cli 0.3.0-beta

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Assay AI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # @assay-ai/cli
2
+
3
+ Command-line interface for the [Assay](https://github.com/assay-ai/assay) LLM evaluation framework.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @assay-ai/cli
9
+ # or
10
+ pnpm add -g @assay-ai/cli
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ### Initialize a project
16
+
17
+ ```bash
18
+ assay init
19
+ ```
20
+
21
+ Creates an `assay.config.ts` and prints the install command for your detected package manager.
22
+
23
+ ### Run evaluations
24
+
25
+ ```bash
26
+ # Run all *.eval.ts files
27
+ assay run
28
+
29
+ # Run a specific glob pattern
30
+ assay run "tests/**/*.eval.ts"
31
+
32
+ # With a custom reporter
33
+ assay run --reporter verbose
34
+ ```
35
+
36
+ ### List available metrics
37
+
38
+ ```bash
39
+ assay list-metrics
40
+ ```
41
+
42
+ Prints a formatted table of all built-in metrics with their type (LLM / Non-LLM) and required fields.
43
+
44
+ ### Other options
45
+
46
+ ```bash
47
+ assay --version
48
+ assay --help
49
+ ```
package/dist/index.js ADDED
@@ -0,0 +1,271 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/commands/init.ts
4
+ import { existsSync, writeFileSync } from "fs";
5
+ import { join } from "path";
6
+ var CONFIG_TEMPLATE = `import type { AssayConfig } from "@assay-ai/core";
7
+
8
+ const config: AssayConfig = {
9
+ // Provider auto-detect: reads OPENAI_API_KEY or ANTHROPIC_API_KEY from env
10
+ providerName: "openai",
11
+ threshold: 0.5,
12
+ concurrency: 5,
13
+ verbose: true,
14
+ };
15
+
16
+ export default config;
17
+ `;
18
+ function detectPackageManager() {
19
+ const cwd = process.cwd();
20
+ if (existsSync(join(cwd, "pnpm-lock.yaml"))) return "pnpm";
21
+ if (existsSync(join(cwd, "bun.lockb"))) return "bun";
22
+ if (existsSync(join(cwd, "yarn.lock"))) return "yarn";
23
+ if (existsSync(join(cwd, "package-lock.json"))) return "npm";
24
+ return "npm";
25
+ }
26
+ function getInstallCommand(pm) {
27
+ const packages = "@assay-ai/core @assay-ai/vitest vitest";
28
+ switch (pm) {
29
+ case "pnpm":
30
+ return `pnpm add -D ${packages}`;
31
+ case "yarn":
32
+ return `yarn add -D ${packages}`;
33
+ case "bun":
34
+ return `bun add -D ${packages}`;
35
+ default:
36
+ return `npm add -D ${packages}`;
37
+ }
38
+ }
39
+ async function init() {
40
+ const configPath = join(process.cwd(), "assay.config.ts");
41
+ if (existsSync(configPath)) {
42
+ console.log("assay.config.ts already exists, skipping.");
43
+ return;
44
+ }
45
+ writeFileSync(configPath, CONFIG_TEMPLATE, "utf-8");
46
+ console.log("Created assay.config.ts");
47
+ const pm = detectPackageManager();
48
+ const installCmd = getInstallCommand(pm);
49
+ console.log(`
50
+ Detected package manager: ${pm}`);
51
+ console.log(`
52
+ Install dependencies:
53
+ ${installCmd}
54
+ `);
55
+ }
56
+
57
+ // src/commands/list-metrics.ts
58
+ import pc from "picocolors";
59
+ var METRICS = [
60
+ {
61
+ name: "Answer Relevancy",
62
+ type: "LLM",
63
+ requiredFields: ["input", "actualOutput"]
64
+ },
65
+ {
66
+ name: "Faithfulness",
67
+ type: "LLM",
68
+ requiredFields: ["input", "actualOutput", "retrievalContext"]
69
+ },
70
+ {
71
+ name: "Hallucination",
72
+ type: "LLM",
73
+ requiredFields: ["input", "actualOutput", "context"]
74
+ },
75
+ {
76
+ name: "Contextual Precision",
77
+ type: "LLM",
78
+ requiredFields: ["input", "actualOutput", "expectedOutput", "retrievalContext"]
79
+ },
80
+ {
81
+ name: "Contextual Recall",
82
+ type: "LLM",
83
+ requiredFields: ["input", "actualOutput", "expectedOutput", "retrievalContext"]
84
+ },
85
+ {
86
+ name: "Contextual Relevancy",
87
+ type: "LLM",
88
+ requiredFields: ["input", "actualOutput", "retrievalContext"]
89
+ },
90
+ {
91
+ name: "Bias",
92
+ type: "LLM",
93
+ requiredFields: ["input", "actualOutput"]
94
+ },
95
+ {
96
+ name: "Toxicity",
97
+ type: "LLM",
98
+ requiredFields: ["input", "actualOutput"]
99
+ },
100
+ {
101
+ name: "G-Eval",
102
+ type: "LLM",
103
+ requiredFields: ["input"]
104
+ },
105
+ {
106
+ name: "Summarization",
107
+ type: "LLM",
108
+ requiredFields: ["input", "actualOutput"]
109
+ },
110
+ {
111
+ name: "Task Completion",
112
+ type: "LLM",
113
+ requiredFields: ["input", "actualOutput"]
114
+ },
115
+ {
116
+ name: "Goal Accuracy",
117
+ type: "LLM",
118
+ requiredFields: ["input", "actualOutput", "expectedOutput"]
119
+ },
120
+ {
121
+ name: "Conversation Completeness",
122
+ type: "LLM",
123
+ requiredFields: ["input", "actualOutput"]
124
+ },
125
+ {
126
+ name: "Knowledge Retention",
127
+ type: "LLM",
128
+ requiredFields: ["input", "actualOutput"]
129
+ },
130
+ {
131
+ name: "Role Adherence",
132
+ type: "LLM",
133
+ requiredFields: ["input", "actualOutput"]
134
+ },
135
+ {
136
+ name: "Exact Match",
137
+ type: "Non-LLM",
138
+ requiredFields: ["actualOutput", "expectedOutput"]
139
+ },
140
+ {
141
+ name: "JSON Correctness",
142
+ type: "Non-LLM",
143
+ requiredFields: ["actualOutput"]
144
+ },
145
+ {
146
+ name: "Tool Correctness",
147
+ type: "Non-LLM",
148
+ requiredFields: ["toolsCalled", "expectedTools"]
149
+ }
150
+ ];
151
+ function listMetrics() {
152
+ const nameWidth = 30;
153
+ const typeWidth = 10;
154
+ const fieldsWidth = 50;
155
+ const header = [
156
+ pc.bold(pc.cyan("Metric".padEnd(nameWidth))),
157
+ pc.bold(pc.cyan("Type".padEnd(typeWidth))),
158
+ pc.bold(pc.cyan("Required Fields"))
159
+ ].join(" ");
160
+ const separator = "\u2500".repeat(nameWidth + typeWidth + fieldsWidth + 4);
161
+ console.log();
162
+ console.log(pc.bold(" Available Metrics"));
163
+ console.log(` ${separator}`);
164
+ console.log(` ${header}`);
165
+ console.log(` ${separator}`);
166
+ for (const metric of METRICS) {
167
+ const typeColor = metric.type === "LLM" ? pc.yellow : pc.green;
168
+ const row = [
169
+ metric.name.padEnd(nameWidth),
170
+ typeColor(metric.type.padEnd(typeWidth)),
171
+ pc.dim(metric.requiredFields.join(", "))
172
+ ].join(" ");
173
+ console.log(` ${row}`);
174
+ }
175
+ console.log(` ${separator}`);
176
+ console.log();
177
+ console.log(
178
+ ` ${pc.yellow("LLM")} = requires an LLM provider ${pc.green("Non-LLM")} = deterministic, no LLM needed`
179
+ );
180
+ console.log();
181
+ }
182
+
183
+ // src/commands/run.ts
184
+ import { execSync } from "child_process";
185
+ function run(args2) {
186
+ let glob = "**/*.eval.ts";
187
+ let reporter;
188
+ for (let i = 0; i < args2.length; i++) {
189
+ const arg = args2[i];
190
+ if (arg === "--reporter" && i + 1 < args2.length) {
191
+ reporter = args2[i + 1] ?? "";
192
+ i++;
193
+ } else if (arg && !arg.startsWith("--")) {
194
+ glob = arg;
195
+ }
196
+ }
197
+ const reporterFlag = reporter ? ` --reporter ${reporter}` : "";
198
+ const cmd = `npx vitest run "${glob}"${reporterFlag}`;
199
+ console.log(`
200
+ Running evaluations: ${glob}
201
+ `);
202
+ try {
203
+ execSync(cmd, {
204
+ stdio: "inherit",
205
+ cwd: process.cwd()
206
+ });
207
+ } catch {
208
+ process.exit(1);
209
+ }
210
+ }
211
+
212
+ // src/index.ts
213
+ var args = process.argv.slice(2);
214
+ var command = args[0];
215
+ function printVersion() {
216
+ console.log("assay v0.2.1-beta");
217
+ }
218
+ function printHelp() {
219
+ console.log(`
220
+ assay - LLM evaluation framework
221
+
222
+ Usage:
223
+ assay <command> [options]
224
+
225
+ Commands:
226
+ run [glob] Run evaluation files (default: **/*.eval.ts)
227
+ init Initialize a new assay project
228
+ list-metrics List all available metrics
229
+
230
+ Options:
231
+ --version, -v Show version
232
+ --help, -h Show this help message
233
+
234
+ Examples:
235
+ assay run
236
+ assay run "tests/**/*.eval.ts"
237
+ assay run --reporter verbose
238
+ assay init
239
+ assay list-metrics
240
+ `);
241
+ }
242
+ async function main() {
243
+ if (!command || command === "--help" || command === "-h") {
244
+ printHelp();
245
+ process.exit(0);
246
+ }
247
+ if (command === "--version" || command === "-v") {
248
+ printVersion();
249
+ process.exit(0);
250
+ }
251
+ switch (command) {
252
+ case "run":
253
+ run(args.slice(1));
254
+ break;
255
+ case "init":
256
+ await init();
257
+ break;
258
+ case "list-metrics":
259
+ listMetrics();
260
+ break;
261
+ default:
262
+ console.error(`Unknown command: ${command}`);
263
+ printHelp();
264
+ process.exit(1);
265
+ }
266
+ }
267
+ main().catch((err) => {
268
+ console.error(err);
269
+ process.exit(1);
270
+ });
271
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/init.ts","../src/commands/list-metrics.ts","../src/commands/run.ts","../src/index.ts"],"sourcesContent":["import { existsSync, writeFileSync } from \"node:fs\";\nimport { join } from \"node:path\";\n\nconst CONFIG_TEMPLATE = `import type { AssayConfig } from \"@assay-ai/core\";\n\nconst config: AssayConfig = {\n // Provider auto-detect: reads OPENAI_API_KEY or ANTHROPIC_API_KEY from env\n providerName: \"openai\",\n threshold: 0.5,\n concurrency: 5,\n verbose: true,\n};\n\nexport default config;\n`;\n\ntype PackageManager = \"pnpm\" | \"npm\" | \"yarn\" | \"bun\";\n\nfunction detectPackageManager(): PackageManager {\n const cwd = process.cwd();\n\n if (existsSync(join(cwd, \"pnpm-lock.yaml\"))) return \"pnpm\";\n if (existsSync(join(cwd, \"bun.lockb\"))) return \"bun\";\n if (existsSync(join(cwd, \"yarn.lock\"))) return \"yarn\";\n if (existsSync(join(cwd, \"package-lock.json\"))) return \"npm\";\n\n return \"npm\";\n}\n\nfunction getInstallCommand(pm: PackageManager): string {\n const packages = \"@assay-ai/core @assay-ai/vitest vitest\";\n switch (pm) {\n case \"pnpm\":\n return `pnpm add -D ${packages}`;\n case \"yarn\":\n return `yarn add -D ${packages}`;\n case \"bun\":\n return `bun add -D ${packages}`;\n default:\n return `npm add -D ${packages}`;\n }\n}\n\nexport async function init(): Promise<void> {\n const configPath = join(process.cwd(), \"assay.config.ts\");\n\n if (existsSync(configPath)) {\n console.log(\"assay.config.ts already exists, skipping.\");\n return;\n }\n\n writeFileSync(configPath, CONFIG_TEMPLATE, \"utf-8\");\n console.log(\"Created assay.config.ts\");\n\n const pm = detectPackageManager();\n const installCmd = getInstallCommand(pm);\n\n console.log(`\\nDetected package manager: ${pm}`);\n console.log(`\\nInstall dependencies:\\n ${installCmd}\\n`);\n}\n","import pc from \"picocolors\";\n\ninterface MetricInfo {\n name: string;\n type: \"LLM\" | \"Non-LLM\";\n requiredFields: string[];\n}\n\nconst METRICS: MetricInfo[] = [\n {\n name: \"Answer Relevancy\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\"],\n },\n {\n name: \"Faithfulness\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\", \"retrievalContext\"],\n },\n {\n name: \"Hallucination\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\", \"context\"],\n },\n {\n name: \"Contextual Precision\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\", \"expectedOutput\", \"retrievalContext\"],\n },\n {\n name: \"Contextual Recall\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\", \"expectedOutput\", \"retrievalContext\"],\n },\n {\n name: \"Contextual Relevancy\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\", \"retrievalContext\"],\n },\n {\n name: \"Bias\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\"],\n },\n {\n name: \"Toxicity\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\"],\n },\n {\n name: \"G-Eval\",\n type: \"LLM\",\n requiredFields: [\"input\"],\n },\n {\n name: \"Summarization\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\"],\n },\n {\n name: \"Task Completion\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\"],\n },\n {\n name: \"Goal Accuracy\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\", \"expectedOutput\"],\n },\n {\n name: \"Conversation Completeness\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\"],\n },\n {\n name: \"Knowledge Retention\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\"],\n },\n {\n name: \"Role Adherence\",\n type: \"LLM\",\n requiredFields: [\"input\", \"actualOutput\"],\n },\n {\n name: \"Exact Match\",\n type: \"Non-LLM\",\n requiredFields: [\"actualOutput\", \"expectedOutput\"],\n },\n {\n name: \"JSON Correctness\",\n type: \"Non-LLM\",\n requiredFields: [\"actualOutput\"],\n },\n {\n name: \"Tool Correctness\",\n type: \"Non-LLM\",\n requiredFields: [\"toolsCalled\", \"expectedTools\"],\n },\n];\n\nexport function listMetrics(): void {\n const nameWidth = 30;\n const typeWidth = 10;\n const fieldsWidth = 50;\n\n const header = [\n pc.bold(pc.cyan(\"Metric\".padEnd(nameWidth))),\n pc.bold(pc.cyan(\"Type\".padEnd(typeWidth))),\n pc.bold(pc.cyan(\"Required Fields\")),\n ].join(\" \");\n\n const separator = \"\\u2500\".repeat(nameWidth + typeWidth + fieldsWidth + 4);\n\n console.log();\n console.log(pc.bold(\" Available Metrics\"));\n console.log(` ${separator}`);\n console.log(` ${header}`);\n console.log(` ${separator}`);\n\n for (const metric of METRICS) {\n const typeColor = metric.type === \"LLM\" ? pc.yellow : pc.green;\n const row = [\n metric.name.padEnd(nameWidth),\n typeColor(metric.type.padEnd(typeWidth)),\n pc.dim(metric.requiredFields.join(\", \")),\n ].join(\" \");\n\n console.log(` ${row}`);\n }\n\n console.log(` ${separator}`);\n console.log();\n console.log(\n ` ${pc.yellow(\"LLM\")} = requires an LLM provider ${pc.green(\"Non-LLM\")} = deterministic, no LLM needed`,\n );\n console.log();\n}\n","import { execSync } from \"node:child_process\";\n\nexport function run(args: string[]): void {\n let glob = \"**/*.eval.ts\";\n let reporter: string | undefined;\n\n for (let i = 0; i < args.length; i++) {\n const arg = args[i];\n if (arg === \"--reporter\" && i + 1 < args.length) {\n reporter = args[i + 1] ?? \"\";\n i++;\n } else if (arg && !arg.startsWith(\"--\")) {\n glob = arg;\n }\n }\n\n const reporterFlag = reporter ? ` --reporter ${reporter}` : \"\";\n const cmd = `npx vitest run \"${glob}\"${reporterFlag}`;\n\n console.log(`\\nRunning evaluations: ${glob}\\n`);\n\n try {\n execSync(cmd, {\n stdio: \"inherit\",\n cwd: process.cwd(),\n });\n } catch {\n process.exit(1);\n }\n}\n","import { init } from \"./commands/init.js\";\nimport { listMetrics } from \"./commands/list-metrics.js\";\nimport { run } from \"./commands/run.js\";\n\nconst args = process.argv.slice(2);\nconst command = args[0];\n\nfunction printVersion(): void {\n console.log(\"assay v0.2.1-beta\");\n}\n\nfunction printHelp(): void {\n console.log(`\nassay - LLM evaluation framework\n\nUsage:\n assay <command> [options]\n\nCommands:\n run [glob] Run evaluation files (default: **/*.eval.ts)\n init Initialize a new assay project\n list-metrics List all available metrics\n\nOptions:\n --version, -v Show version\n --help, -h Show this help message\n\nExamples:\n assay run\n assay run \"tests/**/*.eval.ts\"\n assay run --reporter verbose\n assay init\n assay list-metrics\n`);\n}\n\nasync function main(): Promise<void> {\n if (!command || command === \"--help\" || command === \"-h\") {\n printHelp();\n process.exit(0);\n }\n\n if (command === \"--version\" || command === \"-v\") {\n printVersion();\n process.exit(0);\n }\n\n switch (command) {\n case \"run\":\n run(args.slice(1));\n break;\n case \"init\":\n await init();\n break;\n case \"list-metrics\":\n listMetrics();\n break;\n default:\n console.error(`Unknown command: ${command}`);\n printHelp();\n process.exit(1);\n }\n}\n\nmain().catch((err) => {\n console.error(err);\n process.exit(1);\n});\n"],"mappings":";;;AAAA,SAAS,YAAY,qBAAqB;AAC1C,SAAS,YAAY;AAErB,IAAM,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAexB,SAAS,uBAAuC;AAC9C,QAAM,MAAM,QAAQ,IAAI;AAExB,MAAI,WAAW,KAAK,KAAK,gBAAgB,CAAC,EAAG,QAAO;AACpD,MAAI,WAAW,KAAK,KAAK,WAAW,CAAC,EAAG,QAAO;AAC/C,MAAI,WAAW,KAAK,KAAK,WAAW,CAAC,EAAG,QAAO;AAC/C,MAAI,WAAW,KAAK,KAAK,mBAAmB,CAAC,EAAG,QAAO;AAEvD,SAAO;AACT;AAEA,SAAS,kBAAkB,IAA4B;AACrD,QAAM,WAAW;AACjB,UAAQ,IAAI;AAAA,IACV,KAAK;AACH,aAAO,eAAe,QAAQ;AAAA,IAChC,KAAK;AACH,aAAO,eAAe,QAAQ;AAAA,IAChC,KAAK;AACH,aAAO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": "CLI for the Assay LLM evaluation framework",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": {
8
+ "assay": "./dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "dependencies": {
14
+ "picocolors": "^1.1.0",
15
+ "@assay-ai/core": "0.3.0-beta"
16
+ },
17
+ "devDependencies": {
18
+ "@types/node": "^22.0.0",
19
+ "tsup": "^8.3.0",
20
+ "typescript": "^5.7.0",
21
+ "@assay-ai/tsconfig": "0.0.0"
22
+ },
23
+ "keywords": [
24
+ "llm",
25
+ "evaluation",
26
+ "testing",
27
+ "ai",
28
+ "cli"
29
+ ],
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/assay-ai/assay",
33
+ "directory": "packages/cli"
34
+ },
35
+ "scripts": {
36
+ "build": "tsup",
37
+ "dev": "tsup --watch",
38
+ "typecheck": "tsc --noEmit",
39
+ "clean": "rm -rf dist .turbo"
40
+ }
41
+ }