oh-my-promptfoo 1.34.1 → 1.34.2-next.200
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 +3 -3
- package/dist/assertions.cjs +1 -1
- package/dist/assertions.js +1 -1
- package/dist/delegate-runner.js +34 -34
- package/dist/delegate-runner.js.map +1 -1
- package/dist/{fs-Cn_6nhFQ.js → fs-C_wVWF_g.js} +2 -2
- package/dist/{fs-Cn_6nhFQ.js.map → fs-C_wVWF_g.js.map} +1 -1
- package/dist/{fs-B8hQjayx.cjs → fs-Cl2Shwrt.cjs} +2 -2
- package/dist/{fs-B8hQjayx.cjs.map → fs-Cl2Shwrt.cjs.map} +1 -1
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +2 -2
- package/package.json +3 -3
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.
|
|
35
|
-
npm install --save-dev @earendil-works/pi-coding-agent@1.5.
|
|
34
|
+
npm install --save-dev @github/copilot-sdk@1.0.34 # only if you use Copilot
|
|
35
|
+
npm install --save-dev @earendil-works/pi-coding-agent@1.5.2 # 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.
|
|
212
|
+
`llm-rubric`. It needs `@github/copilot-sdk@1.0.34` installed and `GH_TOKEN`
|
|
213
213
|
exported, and it does not run on Windows.
|
|
214
214
|
|
|
215
215
|
```yaml
|
package/dist/assertions.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_fs = require("./fs-
|
|
2
|
+
const require_fs = require("./fs-Cl2Shwrt.cjs");
|
|
3
3
|
const require_prompt_cache = require("./prompt-cache-DLxlzfZl.cjs");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let node_url = require("node:url");
|
package/dist/assertions.js
CHANGED
|
@@ -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-
|
|
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-C_wVWF_g.js";
|
|
2
2
|
import { a as addCompletionDetails, c as redact, i as JudgeFailureContext, l as secrets, n as sumPromptCache, o as judgeFailureMessage, r as JudgeAccountingCollector, s as preserveJudgeFailure, t as readPromptCache, u as copilotFailure } from "./prompt-cache-CEzxnn1E.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { basename, dirname, isAbsolute, join, posix, resolve } from "node:path";
|
package/dist/delegate-runner.js
CHANGED
|
@@ -1200,7 +1200,7 @@ const trace = class TraceAPI {
|
|
|
1200
1200
|
this._proxyTracerProvider = new ProxyTracerProvider();
|
|
1201
1201
|
}
|
|
1202
1202
|
}.getInstance();
|
|
1203
|
-
// node_modules/.pnpm/@opentelemetry+context-async-hooks@3.1.
|
|
1203
|
+
// node_modules/.pnpm/@opentelemetry+context-async-hooks@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/context-async-hooks/dist/AsyncLocalStorageContextManager.mjs
|
|
1204
1204
|
const ADD_LISTENER_METHODS = [
|
|
1205
1205
|
"addListener",
|
|
1206
1206
|
"on",
|
|
@@ -1397,12 +1397,12 @@ var AsyncLocalStorageContextManager = class {
|
|
|
1397
1397
|
return new DisposeOnceToken(previousContext, this._asyncLocalStorage);
|
|
1398
1398
|
}
|
|
1399
1399
|
};
|
|
1400
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1400
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/trace/suppress-tracing.mjs
|
|
1401
1401
|
const SUPPRESS_TRACING_KEY = createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");
|
|
1402
1402
|
function isTracingSuppressed(context) {
|
|
1403
1403
|
return context.getValue(SUPPRESS_TRACING_KEY) === true;
|
|
1404
1404
|
}
|
|
1405
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1405
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/common/attributes.mjs
|
|
1406
1406
|
let AddAttributeDecision = /* @__PURE__ */ function(AddAttributeDecision) {
|
|
1407
1407
|
AddAttributeDecision[AddAttributeDecision["DROP_UNDEFINED"] = 0] = "DROP_UNDEFINED";
|
|
1408
1408
|
AddAttributeDecision[AddAttributeDecision["DROP_INVALID"] = 1] = "DROP_INVALID";
|
|
@@ -1625,7 +1625,7 @@ function isValidPrimitiveAttributeValueType(valType) {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
return false;
|
|
1627
1627
|
}
|
|
1628
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1628
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/common/logging-error-handler.mjs
|
|
1629
1629
|
/**
|
|
1630
1630
|
* Returns a function that logs an error using the provided logger, or a
|
|
1631
1631
|
* console logger if one was not provided.
|
|
@@ -1661,7 +1661,7 @@ function flattenException(ex) {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
return result;
|
|
1663
1663
|
}
|
|
1664
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1664
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/common/global-error-handler.mjs
|
|
1665
1665
|
/** The global error handler delegate */
|
|
1666
1666
|
let delegateHandler = loggingErrorHandler();
|
|
1667
1667
|
/**
|
|
@@ -1673,7 +1673,7 @@ function globalErrorHandler(ex) {
|
|
|
1673
1673
|
delegateHandler(ex);
|
|
1674
1674
|
} catch {}
|
|
1675
1675
|
}
|
|
1676
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1676
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/common/time.mjs
|
|
1677
1677
|
const NANOSECOND_DIGITS = 9;
|
|
1678
1678
|
const MILLISECONDS_TO_NANOSECONDS = Math.pow(10, 6);
|
|
1679
1679
|
const SECOND_TO_NANOSECONDS = Math.pow(10, NANOSECOND_DIGITS);
|
|
@@ -1731,7 +1731,7 @@ function addHrTimes(time1, time2) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
return out;
|
|
1733
1733
|
}
|
|
1734
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1734
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/internal/validators.mjs
|
|
1735
1735
|
const VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
|
|
1736
1736
|
const VALID_KEY_REGEX = new RegExp(`^(?:${`[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`}|${`[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`})$`);
|
|
1737
1737
|
const VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
|
@@ -1754,7 +1754,7 @@ function validateKey(key) {
|
|
|
1754
1754
|
function validateValue(value) {
|
|
1755
1755
|
return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);
|
|
1756
1756
|
}
|
|
1757
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1757
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/trace/TraceState.mjs
|
|
1758
1758
|
const MAX_TRACE_STATE_ITEMS = 32;
|
|
1759
1759
|
const MAX_TRACE_STATE_LEN = 512;
|
|
1760
1760
|
const LIST_MEMBERS_SEPARATOR = ",";
|
|
@@ -1844,7 +1844,7 @@ var TraceState = class TraceState {
|
|
|
1844
1844
|
return traceState;
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1847
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/trace/W3CTraceContextPropagator.mjs
|
|
1848
1848
|
const TRACE_PARENT_HEADER = "traceparent";
|
|
1849
1849
|
const TRACE_STATE_HEADER = "tracestate";
|
|
1850
1850
|
const VERSION$2 = "00";
|
|
@@ -1902,9 +1902,9 @@ var W3CTraceContextPropagator = class {
|
|
|
1902
1902
|
return [TRACE_PARENT_HEADER, TRACE_STATE_HEADER];
|
|
1903
1903
|
}
|
|
1904
1904
|
};
|
|
1905
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1906
|
-
const VERSION$1 = "3.1.
|
|
1907
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1905
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/version.mjs
|
|
1906
|
+
const VERSION$1 = "3.1.1";
|
|
1907
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/semconv.mjs
|
|
1908
1908
|
/**
|
|
1909
1909
|
* The name of the runtime of this process.
|
|
1910
1910
|
*
|
|
@@ -1982,7 +1982,7 @@ const ATTR_TELEMETRY_SDK_NAME = "telemetry.sdk.name";
|
|
|
1982
1982
|
* @example 1.2.3
|
|
1983
1983
|
*/
|
|
1984
1984
|
const ATTR_TELEMETRY_SDK_VERSION = "telemetry.sdk.version";
|
|
1985
|
-
// node_modules/.pnpm/@opentelemetry+core@3.1.
|
|
1985
|
+
// node_modules/.pnpm/@opentelemetry+core@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/platform/node/sdk-info.mjs
|
|
1986
1986
|
/** Constants describing the SDK in use */
|
|
1987
1987
|
const SDK_INFO = {
|
|
1988
1988
|
[ATTR_TELEMETRY_SDK_NAME]: "opentelemetry",
|
|
@@ -1990,7 +1990,7 @@ const SDK_INFO = {
|
|
|
1990
1990
|
[ATTR_TELEMETRY_SDK_LANGUAGE]: TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,
|
|
1991
1991
|
[ATTR_TELEMETRY_SDK_VERSION]: VERSION$1
|
|
1992
1992
|
};
|
|
1993
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
1993
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/sampler/AlwaysOffSampler.mjs
|
|
1994
1994
|
/** Sampler that samples no traces. */
|
|
1995
1995
|
var AlwaysOffSampler = class {
|
|
1996
1996
|
shouldSample() {
|
|
@@ -2000,7 +2000,7 @@ var AlwaysOffSampler = class {
|
|
|
2000
2000
|
return "AlwaysOffSampler";
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2003
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/sampler/AlwaysOnSampler.mjs
|
|
2004
2004
|
/** Sampler that samples all traces. */
|
|
2005
2005
|
var AlwaysOnSampler = class {
|
|
2006
2006
|
shouldSample() {
|
|
@@ -2010,7 +2010,7 @@ var AlwaysOnSampler = class {
|
|
|
2010
2010
|
return "AlwaysOnSampler";
|
|
2011
2011
|
}
|
|
2012
2012
|
};
|
|
2013
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2013
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/sampler/ParentBasedSampler.mjs
|
|
2014
2014
|
/**
|
|
2015
2015
|
* A composite sampler that either respects the parent span's sampling decision
|
|
2016
2016
|
* or delegates to `delegateSampler` for root spans.
|
|
@@ -2046,7 +2046,7 @@ var ParentBasedSampler = class {
|
|
|
2046
2046
|
return `ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`;
|
|
2047
2047
|
}
|
|
2048
2048
|
};
|
|
2049
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2049
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/inspect.mjs
|
|
2050
2050
|
/**
|
|
2051
2051
|
* Well-known symbol used by Node.js `util.inspect` (and `console.*`) to
|
|
2052
2052
|
* render an object via a custom representation. Defined as a global Symbol
|
|
@@ -2088,9 +2088,9 @@ function formatInspect(className, payload, depth, options, inspect) {
|
|
|
2088
2088
|
depth: options.depth == null ? options.depth : options.depth - 1
|
|
2089
2089
|
})}`;
|
|
2090
2090
|
}
|
|
2091
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2091
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/enums.mjs
|
|
2092
2092
|
const ExceptionEventName = "exception";
|
|
2093
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2093
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/Span.mjs
|
|
2094
2094
|
/**
|
|
2095
2095
|
* This class represents a span.
|
|
2096
2096
|
*/
|
|
@@ -2345,7 +2345,7 @@ var SpanImpl = class {
|
|
|
2345
2345
|
}, depth, options, inspect);
|
|
2346
2346
|
}
|
|
2347
2347
|
};
|
|
2348
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2348
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/semconv.mjs
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote)
|
|
2351
2351
|
*
|
|
@@ -2372,7 +2372,7 @@ const METRIC_OTEL_SDK_SPAN_LIVE = "otel.sdk.span.live";
|
|
|
2372
2372
|
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
2373
2373
|
*/
|
|
2374
2374
|
const METRIC_OTEL_SDK_SPAN_STARTED = "otel.sdk.span.started";
|
|
2375
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2375
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/TracerMetrics.mjs
|
|
2376
2376
|
/**
|
|
2377
2377
|
* Generates `otel.sdk.span.*` metrics.
|
|
2378
2378
|
* https://opentelemetry.io/docs/specs/semconv/otel/sdk-metrics/#span-metrics
|
|
@@ -2416,9 +2416,9 @@ function samplingDecisionToString(decision) {
|
|
|
2416
2416
|
case 0: return "DROP";
|
|
2417
2417
|
}
|
|
2418
2418
|
}
|
|
2419
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2420
|
-
const VERSION = "3.1.
|
|
2421
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2419
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/version.mjs
|
|
2420
|
+
const VERSION = "3.1.1";
|
|
2421
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/Tracer.mjs
|
|
2422
2422
|
const NO_ATTR_LIMITS = {
|
|
2423
2423
|
attributeCountLimit: Infinity,
|
|
2424
2424
|
attributeValueLengthLimit: Infinity
|
|
@@ -2540,7 +2540,7 @@ var Tracer$1 = class {
|
|
|
2540
2540
|
}, depth, options, inspect);
|
|
2541
2541
|
}
|
|
2542
2542
|
};
|
|
2543
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2543
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/MultiSpanProcessor.mjs
|
|
2544
2544
|
/**
|
|
2545
2545
|
* Implementation of the {@link SpanProcessor} that simply forwards all
|
|
2546
2546
|
* received events to a list of {@link SpanProcessor}s.
|
|
@@ -2581,11 +2581,11 @@ var MultiSpanProcessor = class {
|
|
|
2581
2581
|
});
|
|
2582
2582
|
}
|
|
2583
2583
|
};
|
|
2584
|
-
// node_modules/.pnpm/@opentelemetry+resources@3.1.
|
|
2584
|
+
// node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/utils.mjs
|
|
2585
2585
|
const isPromiseLike = (val) => {
|
|
2586
2586
|
return val !== null && typeof val === "object" && typeof val.then === "function";
|
|
2587
2587
|
};
|
|
2588
|
-
// node_modules/.pnpm/@opentelemetry+resources@3.1.
|
|
2588
|
+
// node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/detectors/platform/node/default-service-name.mjs
|
|
2589
2589
|
let serviceName;
|
|
2590
2590
|
/**
|
|
2591
2591
|
* Returns the default service name for OpenTelemetry resources:
|
|
@@ -2601,7 +2601,7 @@ function defaultServiceName() {
|
|
|
2601
2601
|
}
|
|
2602
2602
|
return serviceName;
|
|
2603
2603
|
}
|
|
2604
|
-
// node_modules/.pnpm/@opentelemetry+resources@3.1.
|
|
2604
|
+
// node_modules/.pnpm/@opentelemetry+resources@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/resources/dist/ResourceImpl.mjs
|
|
2605
2605
|
var ResourceImpl = class ResourceImpl {
|
|
2606
2606
|
_rawAttributes;
|
|
2607
2607
|
_asyncAttributesPending = false;
|
|
@@ -2702,7 +2702,7 @@ function mergeSchemaUrl(old, updating) {
|
|
|
2702
2702
|
if (oldSchemaUrl === updatingSchemaUrl) return oldSchemaUrl;
|
|
2703
2703
|
diag.warn("Schema URL merge conflict: old resource has \"%s\", updating resource has \"%s\". Resulting resource will have undefined Schema URL.", oldSchemaUrl, updatingSchemaUrl);
|
|
2704
2704
|
}
|
|
2705
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2705
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/platform/node/RandomIdGenerator.mjs
|
|
2706
2706
|
const SPAN_ID_BYTES = 8;
|
|
2707
2707
|
const TRACE_ID_BYTES = 16;
|
|
2708
2708
|
var RandomIdGenerator = class {
|
|
@@ -2728,7 +2728,7 @@ function generateId(bytes) {
|
|
|
2728
2728
|
else if (i === bytes - 1) SHARED_BUFFER[bytes - 1] = 1;
|
|
2729
2729
|
return SHARED_BUFFER.toString("hex", 0, bytes);
|
|
2730
2730
|
}
|
|
2731
|
-
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.
|
|
2731
|
+
// node_modules/.pnpm/@opentelemetry+sdk-trace@3.1.1_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/sdk-trace/dist/TracerProvider.mjs
|
|
2732
2732
|
/**
|
|
2733
2733
|
* This class represents a basic tracer provider which platform libraries can extend
|
|
2734
2734
|
*/
|
|
@@ -4207,7 +4207,7 @@ function resolvePeer(basePath, name) {
|
|
|
4207
4207
|
try {
|
|
4208
4208
|
return fileURLToPath(resolve$1(name, pathToFileURL(join(basePath, "__allagents_peer__.mjs")).href));
|
|
4209
4209
|
} catch {
|
|
4210
|
-
throw new Error(`Install ${name}${name === "@github/copilot-sdk" ? "@1.0.
|
|
4210
|
+
throw new Error(`Install ${name}${name === "@github/copilot-sdk" ? "@1.0.34" : name === "@earendil-works/pi-coding-agent" ? "@1.5.2" : "@0.124.1"} in the evaluation project (${basePath})`);
|
|
4211
4211
|
}
|
|
4212
4212
|
}
|
|
4213
4213
|
const MAX_TOOL_ARGUMENT_BYTES = 8192;
|
|
@@ -4709,7 +4709,7 @@ function observedSkillRead(toolName, args, workingDir) {
|
|
|
4709
4709
|
}
|
|
4710
4710
|
}
|
|
4711
4711
|
// packages/oh-my-promptfoo/src/pi-runner.ts
|
|
4712
|
-
const SDK_VERSION = "1.5.
|
|
4712
|
+
const SDK_VERSION = "1.5.2";
|
|
4713
4713
|
/** Supply only staged resources; the default loader also discovers executable extensions. */
|
|
4714
4714
|
async function resourceLoader(sdk, frame, agentDir) {
|
|
4715
4715
|
const skillPaths = [];
|
|
@@ -5346,7 +5346,7 @@ function verifiedSkillLoaderRecord(entry, workingDir) {
|
|
|
5346
5346
|
async function runCopilot(frame, signal) {
|
|
5347
5347
|
const input = copilotInput(frame.prompt, frame.config.inputFormat);
|
|
5348
5348
|
const sdk = await import(pathToFileURL(resolvePeer(frame.basePath, "@github/copilot-sdk")).href);
|
|
5349
|
-
if (typeof sdk.CopilotClient !== "function") throw new Error("Install the supported @github/copilot-sdk@1.0.
|
|
5349
|
+
if (typeof sdk.CopilotClient !== "function") throw new Error("Install the supported @github/copilot-sdk@1.0.34 peer");
|
|
5350
5350
|
const skillDirectories = frame.readOnly ? [] : workspaceSkillDirectories(frame.workingDir);
|
|
5351
5351
|
const allowedRead = frame.readOnly ? await graderReadScope(frame.workingDir, frame.readOnly.sourceRoots) : void 0;
|
|
5352
5352
|
const client = new sdk.CopilotClient({
|
|
@@ -5697,7 +5697,7 @@ async function runCopilot(frame, signal) {
|
|
|
5697
5697
|
metadata: {
|
|
5698
5698
|
...copilotPromptCache && Object.keys(copilotPromptCache).length ? { copilotPromptCache } : {},
|
|
5699
5699
|
copilot: {
|
|
5700
|
-
sdkVersion: "1.0.
|
|
5700
|
+
sdkVersion: "1.0.34",
|
|
5701
5701
|
skillSupport: true,
|
|
5702
5702
|
accounting,
|
|
5703
5703
|
premiumRequestUsage: {
|