oh-my-promptfoo 1.31.1 → 1.31.2

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
@@ -31,8 +31,8 @@ Development tests use Promptfoo 0.125.1; native grading smoke also covers
31
31
 
32
32
  ```sh
33
33
  npm install --save-dev --save-exact promptfoo@0.125.1 oh-my-promptfoo
34
- npm install --save-dev @github/copilot-sdk@1.0.28 # only if you use Copilot
35
- npm install --save-dev @earendil-works/pi-coding-agent@1.4.0 # only if you use Pi
34
+ npm install --save-dev @github/copilot-sdk@1.0.30 # only if you use Copilot
35
+ npm install --save-dev @earendil-works/pi-coding-agent@1.5.0 # only if you use Pi
36
36
  ```
37
37
 
38
38
  Add a `promptfooconfig.yaml` next to your `skills` folder:
@@ -209,7 +209,7 @@ Copilot, Pi and read-only graders keep closed option lists. See the
209
209
  `package:oh-my-promptfoo/providers:CopilotModel` sends a prompt
210
210
  straight to a Copilot model: no workspace, tools or
211
211
  agent loop. Use it as an LLM candidate, or as the judge for `llmAssert` and
212
- `llm-rubric`. It needs `@github/copilot-sdk@1.0.28` installed and `GH_TOKEN`
212
+ `llm-rubric`. It needs `@github/copilot-sdk@1.0.30` installed and `GH_TOKEN`
213
213
  exported, and it does not run on Windows.
214
214
 
215
215
  ```yaml
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_fs = require("./fs-Cq23pkYd.cjs");
2
+ const require_fs = require("./fs-BKq2Z3WK.cjs");
3
3
  const require_judge_accounting = require("./judge-accounting-DvBOqpH8.cjs");
4
4
  let node_path = require("node:path");
5
5
  let node_url = require("node:url");
@@ -1,4 +1,4 @@
1
- import { B as validateDelegate, C as judgeName, E as jsonSafe, F as object, G as destination, J as __dirname, M as closed, O as runDelegate, V as validateDelegateConfig, d as hash, j as toolInventory, k as wireContext, w as loadJudge, x as JUDGE_LIST_ERROR } from "./fs-Cs795V-E.js";
1
+ import { B as validateDelegate, C as judgeName, E as jsonSafe, F as object, G as destination, J as __dirname, M as closed, O as runDelegate, V as validateDelegateConfig, d as hash, j as toolInventory, k as wireContext, w as loadJudge, x as JUDGE_LIST_ERROR } from "./fs-D27bgN4F.js";
2
2
  import { a as preserveJudgeFailure, c as copilotFailure, i as judgeFailureMessage, n as JudgeFailureContext, o as redact, r as addCompletionDetails, s as secrets, t as JudgeAccountingCollector } from "./judge-accounting-zaF-67yN.js";
3
3
  import { createRequire } from "node:module";
4
4
  import { dirname, isAbsolute, join, posix, resolve } from "node:path";
@@ -4149,7 +4149,7 @@ function resolvePeer(basePath, name) {
4149
4149
  try {
4150
4150
  return fileURLToPath(resolve$1(name, pathToFileURL(join(basePath, "__allagents_peer__.mjs")).href));
4151
4151
  } catch {
4152
- throw new Error(`Install ${name}${name === "@github/copilot-sdk" ? "@1.0.28" : name === "@earendil-works/pi-coding-agent" ? "@1.4.0" : "@0.124.1"} in the evaluation project (${basePath})`);
4152
+ throw new Error(`Install ${name}${name === "@github/copilot-sdk" ? "@1.0.30" : name === "@earendil-works/pi-coding-agent" ? "@1.5.0" : "@0.124.1"} in the evaluation project (${basePath})`);
4153
4153
  }
4154
4154
  }
4155
4155
  const MAX_TOOL_ARGUMENT_BYTES = 8192;
@@ -4651,7 +4651,7 @@ function observedSkillRead(toolName, args, workingDir) {
4651
4651
  }
4652
4652
  }
4653
4653
  // packages/oh-my-promptfoo/src/pi-runner.ts
4654
- const SDK_VERSION = "1.4.0";
4654
+ const SDK_VERSION = "1.5.0";
4655
4655
  /** Supply only staged resources; the default loader also discovers executable extensions. */
4656
4656
  async function resourceLoader(sdk, frame, agentDir) {
4657
4657
  const skillPaths = [];
@@ -5288,7 +5288,7 @@ function verifiedSkillLoaderRecord(entry, workingDir) {
5288
5288
  async function runCopilot(frame, signal) {
5289
5289
  const input = copilotInput(frame.prompt, frame.config.inputFormat);
5290
5290
  const sdk = await import(pathToFileURL(resolvePeer(frame.basePath, "@github/copilot-sdk")).href);
5291
- if (typeof sdk.CopilotClient !== "function") throw new Error("Install the supported @github/copilot-sdk@1.0.28 peer");
5291
+ if (typeof sdk.CopilotClient !== "function") throw new Error("Install the supported @github/copilot-sdk@1.0.30 peer");
5292
5292
  const skillDirectories = frame.readOnly ? [] : workspaceSkillDirectories(frame.workingDir);
5293
5293
  const allowedRead = frame.readOnly ? await graderReadScope(frame.workingDir, frame.readOnly.sourceRoots) : void 0;
5294
5294
  const client = new sdk.CopilotClient({
@@ -5619,7 +5619,7 @@ async function runCopilot(frame, signal) {
5619
5619
  ...cost === void 0 ? {} : { cost },
5620
5620
  metadata: {
5621
5621
  copilot: {
5622
- sdkVersion: "1.0.28",
5622
+ sdkVersion: "1.0.30",
5623
5623
  skillSupport: true,
5624
5624
  accounting,
5625
5625
  premiumRequestUsage: {