@rallycry/conveyor-agent 5.0.1 → 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.
|
@@ -2459,7 +2459,7 @@ function buildQueryOptions(host, context) {
|
|
|
2459
2459
|
const mode = host.agentMode;
|
|
2460
2460
|
const isCloud = host.config.mode === "pm";
|
|
2461
2461
|
const isReadOnly = isReadOnlyMode(mode, host.hasExitedPlanMode);
|
|
2462
|
-
const needsCanUseTool =
|
|
2462
|
+
const needsCanUseTool = isReadOnly;
|
|
2463
2463
|
const systemPromptText = buildSystemPrompt(
|
|
2464
2464
|
host.config.mode,
|
|
2465
2465
|
context,
|
|
@@ -2491,7 +2491,7 @@ function buildQueryOptions(host, context) {
|
|
|
2491
2491
|
disallowedTools: buildDisallowedTools(settings, mode, host.hasExitedPlanMode),
|
|
2492
2492
|
enableFileCheckpointing: settings.enableFileCheckpointing
|
|
2493
2493
|
};
|
|
2494
|
-
if (
|
|
2494
|
+
if (isCloud && isReadOnly) {
|
|
2495
2495
|
baseOptions.sandbox = buildSandboxConfig(host);
|
|
2496
2496
|
}
|
|
2497
2497
|
return baseOptions;
|
|
@@ -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
|
|
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
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
}
|
|
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,
|
|
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-
|
|
4039
|
+
//# sourceMappingURL=chunk-4SXL45ZH.js.map
|