@wix/evalforge-evaluator 0.114.0 → 0.115.0
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/build/index.js +9 -0
- package/build/index.js.map +3 -3
- package/build/index.mjs +9 -0
- package/build/index.mjs.map +3 -3
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -2149,6 +2149,7 @@ defaultRegistry.register(claudeCodeAdapter);
|
|
|
2149
2149
|
var import_evalforge_types9 = require("@wix/evalforge-types");
|
|
2150
2150
|
|
|
2151
2151
|
// src/run-scenario/agents/opencode/execute.ts
|
|
2152
|
+
var import_os3 = require("os");
|
|
2152
2153
|
var import_evalforge_types8 = require("@wix/evalforge-types");
|
|
2153
2154
|
|
|
2154
2155
|
// src/run-scenario/agents/opencode/write-skills.ts
|
|
@@ -2651,6 +2652,13 @@ function buildConversation2(messages) {
|
|
|
2651
2652
|
|
|
2652
2653
|
// src/run-scenario/agents/opencode/execute.ts
|
|
2653
2654
|
var DEFAULT_MODEL3 = `anthropic/${import_evalforge_types8.ClaudeModel.CLAUDE_4_5_SONNET_1_0}`;
|
|
2655
|
+
function ensureOpenCodeInPath() {
|
|
2656
|
+
const opencodeBin = `${(0, import_os3.homedir)()}/.opencode/bin`;
|
|
2657
|
+
const currentPath = process.env.PATH || "";
|
|
2658
|
+
if (!currentPath.includes(opencodeBin)) {
|
|
2659
|
+
process.env.PATH = `${opencodeBin}:${currentPath}`;
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2654
2662
|
function extractToolAction(toolName, args) {
|
|
2655
2663
|
if (!toolName) return "Using tool...";
|
|
2656
2664
|
const a = args;
|
|
@@ -2806,6 +2814,7 @@ async function executeWithOpenCode(skills, scenario, options) {
|
|
|
2806
2814
|
}
|
|
2807
2815
|
let server;
|
|
2808
2816
|
try {
|
|
2817
|
+
ensureOpenCodeInPath();
|
|
2809
2818
|
console.log("[SDK-DEBUG] Starting OpenCode server...");
|
|
2810
2819
|
server = await createOpencodeServer({
|
|
2811
2820
|
config,
|