mirror of
https://github.com/langgenius/dify.git
synced 2026-03-29 09:59:59 +08:00
- Added DIFY_CLI_ROOT constant for the root directory of Dify CLI. - Updated DIFY_CLI_PATH and DIFY_CLI_CONFIG_PATH to use absolute paths. - Modified app asset initialization to create directories under DIFY_CLI_ROOT. - Enhanced Docker and E2B environment file handling to use workspace paths.
14 lines
467 B
Python
14 lines
467 B
Python
from typing import Final
|
|
|
|
# Dify CLI (absolute path - hidden in /tmp, not in sandbox workdir)
|
|
DIFY_CLI_ROOT: Final[str] = "/tmp/.dify"
|
|
DIFY_CLI_PATH: Final[str] = "/tmp/.dify/bin/dify"
|
|
|
|
DIFY_CLI_PATH_PATTERN: Final[str] = "dify-cli-{os}-{arch}"
|
|
|
|
DIFY_CLI_CONFIG_PATH: Final[str] = "/tmp/.dify/.dify_cli.json"
|
|
|
|
# App Assets (relative path - stays in sandbox workdir)
|
|
APP_ASSETS_PATH: Final[str] = "assets"
|
|
APP_ASSETS_ZIP_PATH: Final[str] = "/tmp/.dify/tmp/assets.zip"
|