@wix/evalforge-evaluator 0.216.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.mjs CHANGED
@@ -8844,11 +8844,6 @@ async function executeWithClaudeCode(skills, scenario, options) {
8844
8844
  "[SDK-ERROR] hasAiGatewayHeaders:",
8845
8845
  !!options.aiGatewayHeaders
8846
8846
  );
8847
- console.error("[SDK-ERROR] Environment info:");
8848
- console.error("[SDK-ERROR] NODE_ENV:", process.env.NODE_ENV);
8849
- console.error("[SDK-ERROR] HOME:", process.env.HOME);
8850
- console.error("[SDK-ERROR] USER:", process.env.USER);
8851
- console.error("[SDK-ERROR] SHELL:", process.env.SHELL);
8852
8847
  console.error("[SDK-ERROR] ==========================================");
8853
8848
  const errObj = sdkError;
8854
8849
  const sdkSpecificInfo = {};
@@ -12727,35 +12722,13 @@ async function runEvaluation(projectId2, evalRunId2) {
12727
12722
  currentPhase: ExecutionPhase.CONFIG,
12728
12723
  currentContext: { projectId: projectId2, evalRunId: evalRunId2 }
12729
12724
  };
12730
- console.error(
12731
- "[DEBUG-H1] runEvaluation entry",
12732
- JSON.stringify({ projectId: projectId2, evalRunId: evalRunId2, timestamp: Date.now() })
12733
- );
12734
12725
  state.currentPhase = ExecutionPhase.CONFIG;
12735
12726
  state.currentContext = { projectId: projectId2, evalRunId: evalRunId2 };
12736
12727
  let config;
12737
12728
  try {
12738
12729
  config = loadConfig();
12739
12730
  state.config = config;
12740
- console.error(
12741
- "[DEBUG-H1] loadConfig SUCCESS",
12742
- JSON.stringify({
12743
- serverUrl: config.serverUrl,
12744
- apiPrefix: config.apiPrefix || "(none)",
12745
- aiGatewayUrl: config.aiGatewayUrl,
12746
- hasHeaders: Object.keys(config.aiGatewayHeaders).length > 0,
12747
- timestamp: Date.now()
12748
- })
12749
- );
12750
12731
  } catch (configErr) {
12751
- console.error(
12752
- "[DEBUG-H1] loadConfig FAILED",
12753
- JSON.stringify({
12754
- error: configErr instanceof Error ? configErr.message : String(configErr),
12755
- stack: configErr instanceof Error ? configErr.stack : void 0,
12756
- timestamp: Date.now()
12757
- })
12758
- );
12759
12732
  throw new Error(
12760
12733
  `[${ExecutionPhase.CONFIG}] ${configErr instanceof Error ? configErr.message : String(configErr)}`
12761
12734
  );
@@ -12784,33 +12757,11 @@ async function runEvaluation(projectId2, evalRunId2) {
12784
12757
  }
12785
12758
  state.currentPhase = ExecutionPhase.FETCH_EVAL_RUN;
12786
12759
  state.currentContext = { projectId: projectId2, evalRunId: evalRunId2, serverUrl: config.serverUrl };
12787
- console.error(
12788
- "[DEBUG-H2] fetchEvaluationData START",
12789
- JSON.stringify({ serverUrl: config.serverUrl, timestamp: Date.now() })
12790
- );
12791
12760
  let evalData;
12792
12761
  try {
12793
12762
  evalData = await fetchEvaluationData(api, projectId2, evalRunId2);
12794
- console.error(
12795
- "[DEBUG-H2] fetchEvaluationData SUCCESS",
12796
- JSON.stringify({
12797
- scenarioItemCount: evalData.scenarioItems.length,
12798
- scenarios: evalData.scenarioItems.map((s) => s.scenario.name),
12799
- skillsCount: evalData.skills.length,
12800
- hasAgent: !!evalData.agent,
12801
- timestamp: Date.now()
12802
- })
12803
- );
12804
12763
  } catch (fetchErr) {
12805
12764
  const errorMsg = fetchErr instanceof Error ? fetchErr.message : String(fetchErr);
12806
- console.error(
12807
- "[DEBUG-H2] fetchEvaluationData FAILED",
12808
- JSON.stringify({
12809
- error: errorMsg,
12810
- stack: fetchErr instanceof Error ? fetchErr.stack : void 0,
12811
- timestamp: Date.now()
12812
- })
12813
- );
12814
12765
  throw new Error(
12815
12766
  `[${ExecutionPhase.FETCH_EVAL_RUN}] Failed to fetch evaluation data: ${errorMsg}`
12816
12767
  );