agentv 4.15.2-next.1 → 4.15.3

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.
@@ -47,7 +47,7 @@ import {
47
47
  // package.json
48
48
  var package_default = {
49
49
  name: "agentv",
50
- version: "4.15.2-next.1",
50
+ version: "4.15.3",
51
51
  description: "CLI entry point for AgentV",
52
52
  type: "module",
53
53
  repository: {
@@ -127,7 +127,6 @@ async function resolveEvalPaths(evalPaths, cwd) {
127
127
  if (includePatterns.length === 0) {
128
128
  throw new Error("No eval paths provided (only negation patterns found).");
129
129
  }
130
- const unmatched = [];
131
130
  const results = /* @__PURE__ */ new Set();
132
131
  for (const pattern of includePatterns) {
133
132
  const candidatePath = path.isAbsolute(pattern) ? path.normalize(pattern) : path.resolve(cwd, pattern);
@@ -147,12 +146,8 @@ async function resolveEvalPaths(evalPaths, cwd) {
147
146
  followSymbolicLinks: true,
148
147
  ignore: ignorePatterns
149
148
  });
150
- if (dirMatches.length === 0) {
151
- unmatched.push(pattern);
152
- } else {
153
- for (const filePath of dirMatches) {
154
- results.add(path.normalize(filePath));
155
- }
149
+ for (const filePath of dirMatches) {
150
+ results.add(path.normalize(filePath));
156
151
  }
157
152
  continue;
158
153
  }
@@ -169,17 +164,26 @@ async function resolveEvalPaths(evalPaths, cwd) {
169
164
  ignore: ignorePatterns
170
165
  });
171
166
  const yamlMatches = matches.filter((filePath) => /\.(ya?ml|jsonl|json)$/i.test(filePath));
172
- if (yamlMatches.length === 0) {
173
- unmatched.push(pattern);
174
- continue;
175
- }
176
167
  for (const filePath of yamlMatches) {
177
168
  results.add(path.normalize(filePath));
178
169
  }
179
170
  }
180
- if (unmatched.length > 0) {
171
+ if (ignorePatterns.length > 0 && results.size > 0) {
172
+ const ignoredMatches = await fg(ignorePatterns, {
173
+ cwd,
174
+ absolute: true,
175
+ onlyFiles: true,
176
+ unique: true,
177
+ dot: true,
178
+ followSymbolicLinks: true
179
+ });
180
+ for (const filePath of ignoredMatches) {
181
+ results.delete(path.normalize(filePath));
182
+ }
183
+ }
184
+ if (results.size === 0) {
181
185
  throw new Error(
182
- `No eval files matched: ${unmatched.join(
186
+ `No eval files matched any provided paths or globs: ${includePatterns.join(
183
187
  ", "
184
188
  )}. Provide YAML, JSONL, or JSON paths or globs (e.g., "evals/**/*.yaml", "evals/**/*.jsonl", "evals.json").`
185
189
  );
@@ -5866,4 +5870,4 @@ export {
5866
5870
  getCategories,
5867
5871
  filterByCategory
5868
5872
  };
5869
- //# sourceMappingURL=chunk-O4RLSNIR.js.map
5873
+ //# sourceMappingURL=chunk-NXZLEIAG.js.map