Merge branch 'feat/agent-v2' of github.com:langgenius/dify into feat/agent-v2

This commit is contained in:
Yanli 盐粒 2026-06-26 00:48:04 +08:00
commit ab4680db47
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)