@hasna/evals 0.1.29 → 0.1.30
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/cli/index.js +2 -2
- package/dist/index.js +2 -2
- package/dist/mcp/index.js +3 -3
- package/dist/server/index.js +2 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -8495,14 +8495,14 @@ function defaultDbPath() {
|
|
|
8495
8495
|
const home = homeDir();
|
|
8496
8496
|
const newDir = join3(home, ".hasna", "evals");
|
|
8497
8497
|
const oldDir = join3(home, ".evals");
|
|
8498
|
-
if (existsSync3(oldDir)
|
|
8498
|
+
if (existsSync3(oldDir)) {
|
|
8499
8499
|
mkdirSync(newDir, { recursive: true });
|
|
8500
8500
|
try {
|
|
8501
8501
|
for (const file of readdirSync(oldDir)) {
|
|
8502
8502
|
const oldPath = join3(oldDir, file);
|
|
8503
8503
|
const newPath = join3(newDir, file);
|
|
8504
8504
|
try {
|
|
8505
|
-
if (statSync(oldPath).isFile())
|
|
8505
|
+
if (statSync(oldPath).isFile() && !existsSync3(newPath))
|
|
8506
8506
|
copyFileSync(oldPath, newPath);
|
|
8507
8507
|
} catch {}
|
|
8508
8508
|
}
|
package/dist/index.js
CHANGED
|
@@ -24263,14 +24263,14 @@ function defaultDbPath() {
|
|
|
24263
24263
|
const home = homeDir();
|
|
24264
24264
|
const newDir = join2(home, ".hasna", "evals");
|
|
24265
24265
|
const oldDir = join2(home, ".evals");
|
|
24266
|
-
if (existsSync2(oldDir)
|
|
24266
|
+
if (existsSync2(oldDir)) {
|
|
24267
24267
|
mkdirSync(newDir, { recursive: true });
|
|
24268
24268
|
try {
|
|
24269
24269
|
for (const file of readdirSync(oldDir)) {
|
|
24270
24270
|
const oldPath = join2(oldDir, file);
|
|
24271
24271
|
const newPath = join2(newDir, file);
|
|
24272
24272
|
try {
|
|
24273
|
-
if (statSync(oldPath).isFile())
|
|
24273
|
+
if (statSync(oldPath).isFile() && !existsSync2(newPath))
|
|
24274
24274
|
copyFileSync(oldPath, newPath);
|
|
24275
24275
|
} catch {}
|
|
24276
24276
|
}
|
package/dist/mcp/index.js
CHANGED
|
@@ -10524,14 +10524,14 @@ function defaultDbPath() {
|
|
|
10524
10524
|
const home = homeDir();
|
|
10525
10525
|
const newDir = join2(home, ".hasna", "evals");
|
|
10526
10526
|
const oldDir = join2(home, ".evals");
|
|
10527
|
-
if (existsSync2(oldDir)
|
|
10527
|
+
if (existsSync2(oldDir)) {
|
|
10528
10528
|
mkdirSync(newDir, { recursive: true });
|
|
10529
10529
|
try {
|
|
10530
10530
|
for (const file2 of readdirSync(oldDir)) {
|
|
10531
10531
|
const oldPath = join2(oldDir, file2);
|
|
10532
10532
|
const newPath = join2(newDir, file2);
|
|
10533
10533
|
try {
|
|
10534
|
-
if (statSync(oldPath).isFile())
|
|
10534
|
+
if (statSync(oldPath).isFile() && !existsSync2(newPath))
|
|
10535
10535
|
copyFileSync(oldPath, newPath);
|
|
10536
10536
|
} catch {}
|
|
10537
10537
|
}
|
|
@@ -10628,7 +10628,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
10628
10628
|
// package.json
|
|
10629
10629
|
var package_default = {
|
|
10630
10630
|
name: "@hasna/evals",
|
|
10631
|
-
version: "0.1.
|
|
10631
|
+
version: "0.1.30",
|
|
10632
10632
|
description: "Open source AI evaluation framework \u2014 LLM-as-judge + assertion-based evals for any AI app. CLI + MCP server.",
|
|
10633
10633
|
type: "module",
|
|
10634
10634
|
main: "dist/index.js",
|
package/dist/server/index.js
CHANGED
|
@@ -24155,14 +24155,14 @@ function defaultDbPath() {
|
|
|
24155
24155
|
const home = homeDir();
|
|
24156
24156
|
const newDir = join2(home, ".hasna", "evals");
|
|
24157
24157
|
const oldDir = join2(home, ".evals");
|
|
24158
|
-
if (existsSync2(oldDir)
|
|
24158
|
+
if (existsSync2(oldDir)) {
|
|
24159
24159
|
mkdirSync(newDir, { recursive: true });
|
|
24160
24160
|
try {
|
|
24161
24161
|
for (const file of readdirSync(oldDir)) {
|
|
24162
24162
|
const oldPath = join2(oldDir, file);
|
|
24163
24163
|
const newPath = join2(newDir, file);
|
|
24164
24164
|
try {
|
|
24165
|
-
if (statSync(oldPath).isFile())
|
|
24165
|
+
if (statSync(oldPath).isFile() && !existsSync2(newPath))
|
|
24166
24166
|
copyFileSync(oldPath, newPath);
|
|
24167
24167
|
} catch {}
|
|
24168
24168
|
}
|
package/package.json
CHANGED