@forwardimpact/libeval 0.1.58 → 0.1.60
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/package.json
CHANGED
|
@@ -58,9 +58,9 @@ function parseRunOptions(values) {
|
|
|
58
58
|
family,
|
|
59
59
|
runs,
|
|
60
60
|
output: resolve(output),
|
|
61
|
-
agentModel: values["agent-model"]
|
|
62
|
-
supervisorModel: values["lead-model"]
|
|
63
|
-
judgeModel: values["judge-model"]
|
|
61
|
+
agentModel: values["agent-model"] || BENCHMARK_AGENT_MODEL,
|
|
62
|
+
supervisorModel: values["lead-model"] || LEAD_MODEL,
|
|
63
|
+
judgeModel: values["judge-model"] || LEAD_MODEL,
|
|
64
64
|
profiles: {
|
|
65
65
|
agent: values["agent-profile"] ?? null,
|
|
66
66
|
judge: values["judge-profile"] ?? null,
|
package/src/commands/discuss.js
CHANGED
|
@@ -53,8 +53,8 @@ export function parseDiscussOptions(values, runtime) {
|
|
|
53
53
|
taskAmend,
|
|
54
54
|
agentConfigs,
|
|
55
55
|
leadProfile: values["lead-profile"] ?? undefined,
|
|
56
|
-
leadModel: values["lead-model"]
|
|
57
|
-
agentModel: values["agent-model"]
|
|
56
|
+
leadModel: values["lead-model"] || LEAD_MODEL,
|
|
57
|
+
agentModel: values["agent-model"] || AGENT_MODEL,
|
|
58
58
|
maxTurns,
|
|
59
59
|
maxLeadTurns,
|
|
60
60
|
outputPath: values.output,
|
|
@@ -51,8 +51,8 @@ export function parseFacilitateOptions(values, runtime) {
|
|
|
51
51
|
taskAmend,
|
|
52
52
|
agentConfigs,
|
|
53
53
|
facilitatorCwd: resolve(values["facilitator-cwd"] ?? "."),
|
|
54
|
-
agentModel: values["agent-model"]
|
|
55
|
-
facilitatorModel: values["lead-model"]
|
|
54
|
+
agentModel: values["agent-model"] || AGENT_MODEL,
|
|
55
|
+
facilitatorModel: values["lead-model"] || LEAD_MODEL,
|
|
56
56
|
maxTurns,
|
|
57
57
|
outputPath: values.output,
|
|
58
58
|
facilitatorProfile: values["lead-profile"] ?? undefined,
|
package/src/commands/run.js
CHANGED
|
@@ -27,7 +27,7 @@ function parseRunOptions(values, runtime) {
|
|
|
27
27
|
taskContent,
|
|
28
28
|
taskAmend,
|
|
29
29
|
cwd: resolve(values.cwd ?? "."),
|
|
30
|
-
agentModel: values["agent-model"]
|
|
30
|
+
agentModel: values["agent-model"] || AGENT_MODEL,
|
|
31
31
|
maxTurns: maxTurnsRaw === "0" ? 0 : parseInt(maxTurnsRaw, 10),
|
|
32
32
|
outputPath: values.output,
|
|
33
33
|
agentProfile: values["agent-profile"] ?? undefined,
|
|
@@ -31,8 +31,8 @@ export async function parseSuperviseOptions(values, runtime) {
|
|
|
31
31
|
taskAmend,
|
|
32
32
|
supervisorCwd: resolve(values["supervisor-cwd"] ?? "."),
|
|
33
33
|
agentCwd,
|
|
34
|
-
agentModel: values["agent-model"]
|
|
35
|
-
supervisorModel: values["lead-model"]
|
|
34
|
+
agentModel: values["agent-model"] || AGENT_MODEL,
|
|
35
|
+
supervisorModel: values["lead-model"] || LEAD_MODEL,
|
|
36
36
|
maxTurns: (() => {
|
|
37
37
|
const raw = values["max-turns"] ?? "200";
|
|
38
38
|
return raw === "0" ? 0 : parseInt(raw, 10);
|
package/src/redaction.js
CHANGED
|
@@ -36,6 +36,16 @@ export const DEFAULT_PATTERNS = Object.freeze([
|
|
|
36
36
|
{ kind: "gh-installation", regex: /\bghs_[A-Za-z0-9]{36}\b/g },
|
|
37
37
|
{ kind: "gh-oauth", regex: /\bgho_[A-Za-z0-9]{36}\b/g },
|
|
38
38
|
{ kind: "gh-fine-grained", regex: /\bgithub_pat_[A-Za-z0-9_]{82}\b/g },
|
|
39
|
+
// git persists HTTP basic-auth credentials base64-encoded in
|
|
40
|
+
// `http.<url>.extraheader` as `AUTHORIZATION: basic <b64>` where the
|
|
41
|
+
// plaintext is `x-access-token:<token>` (actions/checkout form) — a shape
|
|
42
|
+
// the raw-byte layers above cannot see. The plaintext prefix is 15 bytes
|
|
43
|
+
// — five whole base64 triplets — so every encoding starts with the same
|
|
44
|
+
// 20 chars no matter which token follows.
|
|
45
|
+
{
|
|
46
|
+
kind: "gh-b64-basic-credential",
|
|
47
|
+
regex: /\beC1hY2Nlc3MtdG9rZW46[A-Za-z0-9+/]{8,}={0,2}/g,
|
|
48
|
+
},
|
|
39
49
|
]);
|
|
40
50
|
|
|
41
51
|
const ENV_PLACEHOLDER = (name) => `[REDACTED:env:${name}]`;
|