@rallycry/conveyor-agent 5.0.2 → 5.1.2

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.
@@ -2846,7 +2846,7 @@ function pushSetupLog(setupLog, line) {
2846
2846
  setupLog.splice(0, setupLog.length - MAX_SETUP_LOG_LINES);
2847
2847
  }
2848
2848
  }
2849
- async function executeSetupConfig(config, runnerConfig, connection, setupLog, effectiveAgentMode) {
2849
+ async function executeSetupConfig(config, runnerConfig, connection, setupLog) {
2850
2850
  let deferredStartConfig = null;
2851
2851
  if (config.setupCommand) {
2852
2852
  pushSetupLog(setupLog, `$ ${config.setupCommand}`);
@@ -2859,15 +2859,10 @@ async function executeSetupConfig(config, runnerConfig, connection, setupLog, ef
2859
2859
  pushSetupLog(setupLog, "(exit 0)");
2860
2860
  }
2861
2861
  if (config.startCommand) {
2862
- if (effectiveAgentMode === "auto") {
2863
- deferredStartConfig = config;
2864
- pushSetupLog(setupLog, `[conveyor] startCommand deferred (auto mode)`);
2865
- } else {
2866
- pushSetupLog(setupLog, `$ ${config.startCommand} & (background)`);
2867
- runStartCommand(config.startCommand, runnerConfig.workspaceDir, (stream, data) => {
2868
- connection.sendEvent({ type: "start_command_output", stream, data });
2869
- });
2870
- }
2862
+ pushSetupLog(setupLog, `$ ${config.startCommand} & (background)`);
2863
+ runStartCommand(config.startCommand, runnerConfig.workspaceDir, (stream, data) => {
2864
+ connection.sendEvent({ type: "start_command_output", stream, data });
2865
+ });
2871
2866
  }
2872
2867
  return deferredStartConfig;
2873
2868
  }
@@ -2904,7 +2899,7 @@ ${message}`);
2904
2899
  return false;
2905
2900
  }
2906
2901
  }
2907
- async function runSetupSafe(runnerConfig, connection, callbacks, setupLog, effectiveAgentMode, setState) {
2902
+ async function runSetupSafe(runnerConfig, connection, callbacks, setupLog, _effectiveAgentMode, setState) {
2908
2903
  await setState("setup");
2909
2904
  const ports = await loadForwardPorts(runnerConfig.workspaceDir);
2910
2905
  if (ports.length > 0 && process.env.CODESPACE_NAME) {
@@ -2962,8 +2957,7 @@ ${message}`
2962
2957
  config,
2963
2958
  runnerConfig,
2964
2959
  connection,
2965
- setupLog,
2966
- effectiveAgentMode
2960
+ setupLog
2967
2961
  );
2968
2962
  const setupEvent = {
2969
2963
  type: "setup_complete",
@@ -4042,4 +4036,4 @@ export {
4042
4036
  ProjectRunner,
4043
4037
  FileCache
4044
4038
  };
4045
- //# sourceMappingURL=chunk-7BQDIIDG.js.map
4039
+ //# sourceMappingURL=chunk-4SXL45ZH.js.map