mirror of
https://github.com/langgenius/dify.git
synced 2026-02-24 02:01:55 -05:00
- Add AppAssetsInitializer to load published app assets into sandbox - Refactor VMFactory.create() to VMBuilder with builder pattern - Extract SandboxInitializer base class and DifyCliInitializer - Simplify SandboxLayer constructor (remove options/environments params) - Fix circular import in sandbox module by removing eager SandboxBashTool export - Update SandboxProviderService to return VMBuilder instead of VirtualEnvironment
12 lines
294 B
Python
12 lines
294 B
Python
from typing import Final
|
|
|
|
DIFY_CLI_PATH: Final[str] = ".dify/bin/dify"
|
|
|
|
DIFY_CLI_PATH_PATTERN: Final[str] = "dify-cli-{os}-{arch}"
|
|
|
|
DIFY_CLI_CONFIG_PATH: Final[str] = ".dify_cli.json"
|
|
|
|
# App Assets
|
|
APP_ASSETS_PATH: Final[str] = "assets"
|
|
APP_ASSETS_ZIP_PATH: Final[str] = ".dify/tmp/assets.zip"
|