@wix/evalforge-evaluator 0.215.0 → 0.217.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 CHANGED
@@ -8808,11 +8808,6 @@ async function executeWithClaudeCode(skills, scenario, options) {
8808
8808
  "[SDK-ERROR] hasAiGatewayHeaders:",
8809
8809
  !!options.aiGatewayHeaders
8810
8810
  );
8811
- console.error("[SDK-ERROR] Environment info:");
8812
- console.error("[SDK-ERROR] NODE_ENV:", process.env.NODE_ENV);
8813
- console.error("[SDK-ERROR] HOME:", process.env.HOME);
8814
- console.error("[SDK-ERROR] USER:", process.env.USER);
8815
- console.error("[SDK-ERROR] SHELL:", process.env.SHELL);
8816
8811
  console.error("[SDK-ERROR] ==========================================");
8817
8812
  const errObj = sdkError;
8818
8813
  const sdkSpecificInfo = {};
@@ -12668,35 +12663,13 @@ async function runEvaluation(projectId2, evalRunId2) {
12668
12663
  currentPhase: ExecutionPhase.CONFIG,
12669
12664
  currentContext: { projectId: projectId2, evalRunId: evalRunId2 }
12670
12665
  };
12671
- console.error(
12672
- "[DEBUG-H1] runEvaluation entry",
12673
- JSON.stringify({ projectId: projectId2, evalRunId: evalRunId2, timestamp: Date.now() })
12674
- );
12675
12666
  state.currentPhase = ExecutionPhase.CONFIG;
12676
12667
  state.currentContext = { projectId: projectId2, evalRunId: evalRunId2 };
12677
12668
  let config;
12678
12669
  try {
12679
12670
  config = loadConfig();
12680
12671
  state.config = config;
12681
- console.error(
12682
- "[DEBUG-H1] loadConfig SUCCESS",
12683
- JSON.stringify({
12684
- serverUrl: config.serverUrl,
12685
- apiPrefix: config.apiPrefix || "(none)",
12686
- aiGatewayUrl: config.aiGatewayUrl,
12687
- hasHeaders: Object.keys(config.aiGatewayHeaders).length > 0,
12688
- timestamp: Date.now()
12689
- })
12690
- );
12691
12672
  } catch (configErr) {
12692
- console.error(
12693
- "[DEBUG-H1] loadConfig FAILED",
12694
- JSON.stringify({
12695
- error: configErr instanceof Error ? configErr.message : String(configErr),
12696
- stack: configErr instanceof Error ? configErr.stack : void 0,
12697
- timestamp: Date.now()
12698
- })
12699
- );
12700
12673
  throw new Error(
12701
12674
  `[${ExecutionPhase.CONFIG}] ${configErr instanceof Error ? configErr.message : String(configErr)}`
12702
12675
  );
@@ -12725,33 +12698,11 @@ async function runEvaluation(projectId2, evalRunId2) {
12725
12698
  }
12726
12699
  state.currentPhase = ExecutionPhase.FETCH_EVAL_RUN;
12727
12700
  state.currentContext = { projectId: projectId2, evalRunId: evalRunId2, serverUrl: config.serverUrl };
12728
- console.error(
12729
- "[DEBUG-H2] fetchEvaluationData START",
12730
- JSON.stringify({ serverUrl: config.serverUrl, timestamp: Date.now() })
12731
- );
12732
12701
  let evalData;
12733
12702
  try {
12734
12703
  evalData = await fetchEvaluationData(api, projectId2, evalRunId2);
12735
- console.error(
12736
- "[DEBUG-H2] fetchEvaluationData SUCCESS",
12737
- JSON.stringify({
12738
- scenarioItemCount: evalData.scenarioItems.length,
12739
- scenarios: evalData.scenarioItems.map((s) => s.scenario.name),
12740
- skillsCount: evalData.skills.length,
12741
- hasAgent: !!evalData.agent,
12742
- timestamp: Date.now()
12743
- })
12744
- );
12745
12704
  } catch (fetchErr) {
12746
12705
  const errorMsg = fetchErr instanceof Error ? fetchErr.message : String(fetchErr);
12747
- console.error(
12748
- "[DEBUG-H2] fetchEvaluationData FAILED",
12749
- JSON.stringify({
12750
- error: errorMsg,
12751
- stack: fetchErr instanceof Error ? fetchErr.stack : void 0,
12752
- timestamp: Date.now()
12753
- })
12754
- );
12755
12706
  throw new Error(
12756
12707
  `[${ExecutionPhase.FETCH_EVAL_RUN}] Failed to fetch evaluation data: ${errorMsg}`
12757
12708
  );