@rallycry/conveyor-agent 5.0.1 → 5.0.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;
|
|
@@ -4042,4 +4042,4 @@ export {
|
|
|
4042
4042
|
ProjectRunner,
|
|
4043
4043
|
FileCache
|
|
4044
4044
|
};
|
|
4045
|
-
//# sourceMappingURL=chunk-
|
|
4045
|
+
//# sourceMappingURL=chunk-7BQDIIDG.js.map
|