evals 1.0.1 → 1.0.2
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/package.json +2 -2
- package/src/index.js +16 -0
package/package.json
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.2",
|
|
8
8
|
"description": "Umbrage Evals CLI",
|
|
9
9
|
"bin": {
|
|
10
|
-
"
|
|
10
|
+
"evals": "./src/index.js"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "bun build --target=node ./src/index.js --outfile=dist/index.js"
|
package/src/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { program } = require('commander');
|
|
3
|
+
const fetchEvals = require('./fetchEvals');
|
|
4
|
+
const runEvals = require('./runEvals');
|
|
5
|
+
|
|
6
|
+
program
|
|
7
|
+
.command('fetch-evals')
|
|
8
|
+
.description('Fetch the latest evals for the project')
|
|
9
|
+
.action(fetchEvals);
|
|
10
|
+
|
|
11
|
+
program
|
|
12
|
+
.command('run-evals')
|
|
13
|
+
.description('Run evals in the current directory and log results')
|
|
14
|
+
.action(runEvals);
|
|
15
|
+
|
|
16
|
+
program.parse(process.argv);
|