devs-common 2.0.1__tar.gz → 2.0.3__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.1 → devs_common-2.0.3}/PKG-INFO +1 -1
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/core/container.py +14 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/Dockerfile +2 -2
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common.egg-info/PKG-INFO +1 -1
- {devs_common-2.0.1 → devs_common-2.0.3}/pyproject.toml +1 -1
- {devs_common-2.0.1 → devs_common-2.0.3}/LICENSE +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/README.md +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/__init__.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/config.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/core/__init__.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/core/project.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/core/workspace.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/devs_config.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/exceptions.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/devcontainer.json +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/scripts/copy-ssh.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/scripts/post-create-wrapper.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/scripts/python-venv-integration.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/scripts/screenshot-webapp.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/scripts/setup-workspace.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/scripts/start-tunnel.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/scripts/tunnel-status.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/scripts/webapp-screenshot.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/sudo-scripts/init-firewall.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/sudo-scripts/setup-devs-env.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/sudo-scripts/setup-vscode-cache.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/sudo-scripts/start-services.sh +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/vscode-settings-reference.md +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/utils/__init__.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/utils/config_hash.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/utils/console.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/utils/devcontainer.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/utils/devcontainer_template.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/utils/docker_client.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/utils/file_utils.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common/utils/git_utils.py +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common.egg-info/SOURCES.txt +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common.egg-info/dependency_links.txt +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common.egg-info/requires.txt +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/devs_common.egg-info/top_level.txt +0 -0
- {devs_common-2.0.1 → devs_common-2.0.3}/setup.cfg +0 -0
|
@@ -844,11 +844,25 @@ class ContainerManager:
|
|
|
844
844
|
|
|
845
845
|
# Create a tunnel name from the container's devcontainer name
|
|
846
846
|
# This will be the name that appears in VS Code Remote Explorer
|
|
847
|
+
# VS Code tunnel names have a 20 character limit
|
|
847
848
|
project_prefix = self.config.project_prefix if self.config else "dev"
|
|
848
849
|
tunnel_name = f"{project_prefix}-{self.project.info.name}-{dev_name}"
|
|
849
850
|
# Sanitize: tunnel names can only contain alphanumeric, dash, underscore
|
|
850
851
|
tunnel_name = tunnel_name.replace(".", "-").replace("_", "-")
|
|
851
852
|
|
|
853
|
+
# Truncate to 20 chars if needed (VS Code tunnel limit)
|
|
854
|
+
if len(tunnel_name) > 20:
|
|
855
|
+
# Keep the dev name suffix, shorten the project part
|
|
856
|
+
suffix = f"-{dev_name}"
|
|
857
|
+
prefix_budget = 20 - len(suffix)
|
|
858
|
+
if prefix_budget >= 3:
|
|
859
|
+
project_part = f"{project_prefix}-{self.project.info.name}"
|
|
860
|
+
project_part = project_part[:prefix_budget].rstrip("-")
|
|
861
|
+
tunnel_name = f"{project_part}{suffix}"
|
|
862
|
+
else:
|
|
863
|
+
# Dev name itself is very long, just truncate the whole thing
|
|
864
|
+
tunnel_name = tunnel_name[:20]
|
|
865
|
+
|
|
852
866
|
console.print(f"[bold cyan]Starting VS Code tunnel for: {dev_name}[/bold cyan]")
|
|
853
867
|
console.print(f" Container: {container_name}")
|
|
854
868
|
console.print(f" Tunnel name: {tunnel_name}")
|
|
@@ -122,8 +122,9 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/
|
|
|
122
122
|
# Install Claude CLI and OpenAI Codex CLI
|
|
123
123
|
RUN npm install -g @anthropic-ai/claude-code @openai/codex
|
|
124
124
|
|
|
125
|
-
# Install VS Code CLI for tunnel support
|
|
125
|
+
# Install VS Code CLI for tunnel support (needs root for /usr/local/bin)
|
|
126
126
|
# Using the standalone CLI which supports the 'tunnel' command
|
|
127
|
+
USER root
|
|
127
128
|
RUN ARCH=$(dpkg --print-architecture) && \
|
|
128
129
|
if [ "$ARCH" = "amd64" ]; then \
|
|
129
130
|
curl -fSL 'https://update.code.visualstudio.com/latest/cli-linux-x64/stable' -o /tmp/vscode-cli.tar.gz; \
|
|
@@ -135,7 +136,6 @@ RUN ARCH=$(dpkg --print-architecture) && \
|
|
|
135
136
|
chmod +x /usr/local/bin/code
|
|
136
137
|
|
|
137
138
|
# Set up environment variables and aliases for Claude and Codex
|
|
138
|
-
USER root
|
|
139
139
|
RUN for shell_rc in /home/node/.zshrc /home/node/.bashrc; do \
|
|
140
140
|
echo "export CLAUDE_CONFIG_DIR=\"/home/node/claudeconfig\"" >> "$shell_rc" && \
|
|
141
141
|
echo "export CODEX_CONFIG_HOME=\"/home/node/codexconfig\"" >> "$shell_rc" && \
|
|
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.1 → devs_common-2.0.3}/devs_common/templates/scripts/post-create-wrapper.sh
RENAMED
|
File without changes
|
{devs_common-2.0.1 → devs_common-2.0.3}/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.1 → devs_common-2.0.3}/devs_common/templates/sudo-scripts/setup-devs-env.sh
RENAMED
|
File without changes
|
{devs_common-2.0.1 → devs_common-2.0.3}/devs_common/templates/sudo-scripts/setup-vscode-cache.sh
RENAMED
|
File without changes
|
{devs_common-2.0.1 → devs_common-2.0.3}/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
|