@evalguardai/cli 1.9.0 → 2.0.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 (2) hide show
  1. package/dist/index.cjs +2 -4
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -125609,7 +125609,6 @@ function scaffoldTemplate(configPath, templateName, template, isLocal) {
125609
125609
  // src/commands/eval-local.ts
125610
125610
  var fs4 = __toESM(require("fs"));
125611
125611
  var path4 = __toESM(require("path"));
125612
- var import_meta = {};
125613
125612
  function registerEvalLocal(program3) {
125614
125613
  program3.command("eval:local").description("Run evaluation locally (no API key needed)").argument("[file]", "Path to eval config JSON/YAML file (default: evalguard.yaml)").option("--model <model>", "Override model").option("--provider <provider>", "Override provider (openai, anthropic, etc.)").option("--output <format>", "Output format: json, csv, html, or file path").option("--verbose", "Show detailed output per test case", false).action(async (fileArg, opts) => {
125615
125614
  const core = await Promise.resolve().then(() => (init_src(), src_exports));
@@ -125639,7 +125638,7 @@ function registerEvalLocal(program3) {
125639
125638
  if (filePath.endsWith(".yaml") || filePath.endsWith(".yml")) {
125640
125639
  try {
125641
125640
  const { createRequire: createRequire2 } = await import("module");
125642
- const jsYaml = createRequire2(import_meta.url || __filename)("yaml");
125641
+ const jsYaml = createRequire2(__filename)("yaml");
125643
125642
  const parsed = jsYaml.parse(raw);
125644
125643
  config = {
125645
125644
  name: parsed.description || parsed.name || path4.basename(filePath, path4.extname(filePath)),
@@ -128440,8 +128439,7 @@ function registerModelScan(program3) {
128440
128439
  }
128441
128440
 
128442
128441
  // src/index.ts
128443
- var import_meta2 = {};
128444
- var require2 = (0, import_module.createRequire)(import_meta2.url);
128442
+ var require2 = (0, import_module.createRequire)(typeof __filename !== "undefined" ? __filename : new URL(".", "file:///").href);
128445
128443
  var pkg = require2("../package.json");
128446
128444
  var CONFIG_DIR2 = path18.join(os7.homedir(), ".evalguard");
128447
128445
  var CONFIG_FILE2 = path18.join(CONFIG_DIR2, "config.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evalguardai/cli",
3
- "version": "1.9.0",
3
+ "version": "2.0.0",
4
4
  "description": "EvalGuard CLI - Run LLM evaluations and security scans from the command line",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.cjs",