@leostera/evalkit 0.8.0 → 0.10.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +93 -2
  2. package/README.md +5 -4
  3. package/dist/cli.mjs +510 -379
  4. package/dist/dashboard/assets/index-DNR4shrM.js +67 -0
  5. package/dist/dashboard/assets/index-TPYprg75.css +2 -0
  6. package/dist/dashboard/index.html +2 -2
  7. package/dist/{files-C-U0-PWW.mjs → files-DkDQs2JL.mjs} +3 -0
  8. package/dist/{index-db-vbqEGFaU.mjs → index-db-B1FeXzmS.mjs} +333 -51
  9. package/dist/index.d.mts +529 -183
  10. package/dist/index.d.mts.map +1 -1
  11. package/dist/index.mjs +2 -2
  12. package/dist/runner.d.mts +447 -173
  13. package/dist/runner.d.mts.map +1 -1
  14. package/dist/runner.mjs +2 -2
  15. package/dist/share-worker.d.mts +10 -3
  16. package/dist/share-worker.d.mts.map +1 -1
  17. package/dist/share-worker.mjs +6 -3
  18. package/dist/share.d.mts +49 -7
  19. package/dist/share.d.mts.map +1 -1
  20. package/dist/share.mjs +4 -4
  21. package/dist/skills/evalkit/SKILL.md +5 -5
  22. package/dist/skills/evalkit-agents/SKILL.md +5 -3
  23. package/dist/skills/evalkit-datasets/SKILL.md +5 -5
  24. package/dist/skills/evalkit-evals/SKILL.md +5 -5
  25. package/dist/skills/evalkit-judges/SKILL.md +8 -6
  26. package/dist/skills/evalkit-matrices/SKILL.md +2 -2
  27. package/dist/skills/evalkit-results/SKILL.md +6 -6
  28. package/dist/{src-LeGSyDD2.mjs → src-B14fXAGp.mjs} +334 -73
  29. package/dist/{src-CZnDXP1K.mjs → src-Bccv9igQ.mjs} +8 -3
  30. package/dist/{src-mm8L_IxM.mjs → src-BfSQKOJP.mjs} +676 -321
  31. package/dist/upgrade-G-uFPJKg.mjs +111 -0
  32. package/package.json +1 -1
  33. package/dist/dashboard/assets/index-C12IeG2y.css +0 -2
  34. package/dist/dashboard/assets/index-xlVsW6ZR.js +0 -37
@@ -1,5 +1,5 @@
1
- import { n as asyncIndex, r as createShareApp, t as ShareIndexDb } from "./index-db-vbqEGFaU.mjs";
2
- import { mkdir, readFile, readdir, rename, writeFile } from "node:fs/promises";
1
+ import { n as asyncIndex, r as createShareApp, t as ShareIndexDb } from "./index-db-B1FeXzmS.mjs";
2
+ import { mkdir, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
3
3
  import { dirname, join, relative, resolve, sep } from "node:path";
4
4
  //#region ../share/src/fs-files.ts
5
5
  /** Result files in a directory, for `evalkit share serve` and tests. */
@@ -26,6 +26,9 @@ function directoryFiles(root) {
26
26
  await writeFile(temporary, data);
27
27
  await rename(temporary, path);
28
28
  },
29
+ async delete(key) {
30
+ await rm(pathFor(key), { force: true });
31
+ },
29
32
  async *list(prefix) {
30
33
  const trimmed = prefix.replace(/\/+$/, "");
31
34
  const start = trimmed ? pathFor(trimmed) : base;
@@ -127,7 +130,9 @@ async function createDirectoryShareApp(options) {
127
130
  return createShareApp({
128
131
  files: directoryFiles(join(options.dir, "files")),
129
132
  index: await sqliteIndex(join(options.dir, "index.sqlite")),
130
- assets: directoryAssets(options.dashboardRoot)
133
+ assets: directoryAssets(options.dashboardRoot),
134
+ ...options.basePath ? { basePath: options.basePath } : {},
135
+ ...options.repo ? { repo: options.repo } : {}
131
136
  });
132
137
  }
133
138
  //#endregion