Skip to content

feat(agent-compose): upload Dify files to agent workspaces - #66

Merged
kingfs merged 13 commits into
mainfrom
feat/agent-compose-workspace-files
Sep 1, 2026
Merged

feat(agent-compose): upload Dify files to agent workspaces#66
kingfs merged 13 commits into
mainfrom
feat/agent-compose-workspace-files

Conversation

@kingfs

@kingfs kingfs commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add optional files and workspace_id inputs to both agent-compose workflow and strategy plugins
  • upload Dify SDK File contents to request-isolated agent-compose workspace paths
  • include uploaded workspace paths in the agent prompt
  • enforce sanitized filenames and 50 MiB per-file / 100 MiB per-request limits
  • document the workspace upload configuration in English and Chinese

User impact

Dify users can attach documents to either integration and make those files available inside the selected agent workspace. Existing file-free workflows remain backward compatible. Because the current agent-compose project response does not provide a reliable agent-to-workspace ID mapping, users should explicitly configure workspace_id when files are supplied.

Testing

  • task check for agent_compose_workflow (28 passed, 83.67% coverage)
  • task check for agent_compose_strategy (32 passed, 84.81% coverage)
  • task build (validation and tests pass; final packaging could not run because the local dify plugin CLI is not installed)
  • Documentation and changelog updated where applicable
  • No secrets, internal addresses, private dependencies, or generated packages

@kingfs
kingfs merged commit c824317 into main Sep 1, 2026
10 checks passed
@kingfs
kingfs deleted the feat/agent-compose-workspace-files branch September 1, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant