devs-common 2.0.7__tar.gz → 2.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {devs_common-2.0.7 → devs_common-2.0.8}/PKG-INFO +1 -1
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/config.py +18 -1
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common.egg-info/PKG-INFO +1 -1
- {devs_common-2.0.7 → devs_common-2.0.8}/pyproject.toml +1 -1
- {devs_common-2.0.7 → devs_common-2.0.8}/LICENSE +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/README.md +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/__init__.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/core/__init__.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/core/container.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/core/project.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/core/workspace.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/devs_config.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/exceptions.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/Dockerfile +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/devcontainer.json +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/copy-ssh.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/post-create-wrapper.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/python-venv-integration.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/screenshot-webapp.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/setup-workspace.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/start-tunnel.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/tunnel-status.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/webapp-screenshot.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/sudo-scripts/init-firewall.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/sudo-scripts/setup-devs-env.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/sudo-scripts/setup-vscode-cache.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/sudo-scripts/start-services.sh +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/vscode-settings-reference.md +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/utils/__init__.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/utils/config_hash.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/utils/console.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/utils/devcontainer.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/utils/devcontainer_template.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/utils/docker_client.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/utils/file_utils.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/utils/git_utils.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common/utils/repo_cache.py +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common.egg-info/SOURCES.txt +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common.egg-info/dependency_links.txt +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common.egg-info/requires.txt +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/devs_common.egg-info/top_level.txt +0 -0
- {devs_common-2.0.7 → devs_common-2.0.8}/setup.cfg +0 -0
|
@@ -9,11 +9,25 @@ from abc import ABC, abstractmethod
|
|
|
9
9
|
class BaseConfig(ABC):
|
|
10
10
|
"""Base configuration class for devs ecosystem packages."""
|
|
11
11
|
|
|
12
|
+
# Default directories shared across CLI and webhook
|
|
13
|
+
CLAUDE_CONFIG_DIR = Path.home() / ".devs" / "claudeconfig"
|
|
14
|
+
CODEX_CONFIG_DIR = Path.home() / ".devs" / "codexconfig"
|
|
15
|
+
VSCODE_CLI_DIR = Path.home() / ".devs" / "vscode-cli"
|
|
16
|
+
|
|
12
17
|
def __init__(self) -> None:
|
|
13
18
|
"""Initialize base configuration."""
|
|
14
19
|
self._workspaces_dir: Optional[Path] = None
|
|
15
20
|
self._bridge_dir: Optional[Path] = None
|
|
16
21
|
self._project_prefix: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
claude_config_env = os.getenv("DEVS_CLAUDE_CONFIG_DIR")
|
|
24
|
+
self.claude_config_dir = Path(claude_config_env) if claude_config_env else self.CLAUDE_CONFIG_DIR
|
|
25
|
+
|
|
26
|
+
codex_config_env = os.getenv("DEVS_CODEX_CONFIG_DIR")
|
|
27
|
+
self.codex_config_dir = Path(codex_config_env) if codex_config_env else self.CODEX_CONFIG_DIR
|
|
28
|
+
|
|
29
|
+
vscode_cli_env = os.getenv("DEVS_VSCODE_CLI_DIR")
|
|
30
|
+
self.vscode_cli_dir = Path(vscode_cli_env) if vscode_cli_env else self.VSCODE_CLI_DIR
|
|
17
31
|
|
|
18
32
|
@property
|
|
19
33
|
def workspaces_dir(self) -> Path:
|
|
@@ -87,4 +101,7 @@ class BaseConfig(ABC):
|
|
|
87
101
|
def ensure_directories(self) -> None:
|
|
88
102
|
"""Ensure required directories exist."""
|
|
89
103
|
self.workspaces_dir.mkdir(parents=True, exist_ok=True)
|
|
90
|
-
self.bridge_dir.mkdir(parents=True, exist_ok=True)
|
|
104
|
+
self.bridge_dir.mkdir(parents=True, exist_ok=True)
|
|
105
|
+
self.claude_config_dir.mkdir(parents=True, exist_ok=True)
|
|
106
|
+
self.codex_config_dir.mkdir(parents=True, exist_ok=True)
|
|
107
|
+
self.vscode_cli_dir.mkdir(parents=True, exist_ok=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/post-create-wrapper.sh
RENAMED
|
File without changes
|
{devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/scripts/python-venv-integration.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/sudo-scripts/setup-devs-env.sh
RENAMED
|
File without changes
|
{devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/sudo-scripts/setup-vscode-cache.sh
RENAMED
|
File without changes
|
{devs_common-2.0.7 → devs_common-2.0.8}/devs_common/templates/sudo-scripts/start-services.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|