[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-06-25 16:01:21 +00:00 committed by GitHub
parent 52903a6e69
commit 329e35e66a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -348,9 +348,7 @@ class TestAgentAppDriveLayer:
assert names.index(DIFY_SHELL_LAYER_ID) == names.index("execution_context") + 1
assert names.index("drive") == names.index(DIFY_SHELL_LAYER_ID) + 1
def test_drive_layer_injected_with_empty_catalog_and_drive_depends_on_shell(
self, monkeypatch: pytest.MonkeyPatch
):
def test_drive_layer_injected_with_empty_catalog_and_drive_depends_on_shell(self, monkeypatch: pytest.MonkeyPatch):
monkeypatch.setattr(
"core.app.apps.agent_app.runtime_request_builder.dify_config.AGENT_DRIVE_MANIFEST_ENABLED", True
)

View File

@ -171,9 +171,7 @@ class DifyDriveLayer(PlainLayer[DifyDriveDeps, DifyDriveLayerConfig, EmptyRuntim
lines = [
"set -eu",
f"base={shlex.quote(base_path)}",
"dify-agent drive pull "
+ " ".join(shlex.quote(target) for target in pull_targets)
+ ' --to "$base"',
"dify-agent drive pull " + " ".join(shlex.quote(target) for target in pull_targets) + ' --to "$base"',
]
for skill_key in self.config.mentioned_skill_keys:
skill_path = self._shell_local_path(skill_key)