oh-my-promptfoo 1.7.2 → 1.8.0-next.59

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/README.md CHANGED
@@ -134,8 +134,10 @@ Run this configuration with `npx promptfoo eval --config promptfooconfig.yaml` a
134
134
  | `config.delegate.config` | `Provider` | Agent-specific settings, such as model and sandbox mode |
135
135
  | `config.delegate.env` | `Provider` | Explicit credentials passed to the delegated agent |
136
136
  | `config.workspace.sources` | `Provider` | Required array of Git or OCI sources; `[]` creates an empty workspace |
137
+ | `config.workspaceTimeoutMs` | `Provider` | Optional workspace-preparation deadline; falls back to `ALLAGENTS_WORKSPACE_TIMEOUT_MS`, then 120,000 ms |
137
138
  | `config.workingDir` | `Provider` | Optional relative directory inside the prepared workspace; defaults to its root |
138
139
  | `config.fileChanges` | `Provider` | Optional bounded file-change evidence; defaults to `false` |
140
+ | `config.timeoutMs` | `Provider` | Agent-call deadline; independent of preparation and defaults to 900,000 ms |
139
141
  | `config.working_dir` | `CopilotSdkProvider` | Required existing directory |
140
142
  | `config.env`, `config.permissions` | `CopilotSdkProvider` | Explicit Copilot credentials and permissions |
141
143
 
package/dist/cli.js CHANGED
@@ -897,6 +897,17 @@ async function prepareProtectedCopy(source, path2, viewMode = "auto", caseIndex,
897
897
  // packages/workspace-core/src/config.ts
898
898
  init_esm_shims();
899
899
  import { isAbsolute as isAbsolute2, posix } from "path";
900
+ var DEFAULT_LIMITS = {
901
+ maxSources: 8,
902
+ maxDownloadBytes: 268435456,
903
+ maxExtractedBytes: 536870912,
904
+ timeoutMs: 12e4
905
+ };
906
+ var DEFAULT_WORKSPACE_LIMITS = {
907
+ maxSources: DEFAULT_LIMITS.maxSources,
908
+ maxDownloadBytes: DEFAULT_LIMITS.maxDownloadBytes,
909
+ maxExtractedBytes: DEFAULT_LIMITS.maxExtractedBytes
910
+ };
900
911
  function canonicalJson(value) {
901
912
  if (value === null || typeof value === "boolean" || typeof value === "string")
902
913
  return JSON.stringify(value);