devs-common 4.0.0__tar.gz → 4.0.1__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.
Files changed (46) hide show
  1. {devs_common-4.0.0 → devs_common-4.0.1}/PKG-INFO +1 -1
  2. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/devcontainer.json +1 -0
  3. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/extensions/devs-bridge-drop.vsix +0 -0
  4. devs_common-4.0.1/devs_common/templates/scripts/install-bridge-drop.sh +30 -0
  5. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/scripts/setup-workspace.sh +4 -13
  6. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common.egg-info/PKG-INFO +1 -1
  7. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common.egg-info/SOURCES.txt +1 -0
  8. {devs_common-4.0.0 → devs_common-4.0.1}/pyproject.toml +1 -1
  9. {devs_common-4.0.0 → devs_common-4.0.1}/LICENSE +0 -0
  10. {devs_common-4.0.0 → devs_common-4.0.1}/README.md +0 -0
  11. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/__init__.py +0 -0
  12. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/config.py +0 -0
  13. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/core/__init__.py +0 -0
  14. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/core/container.py +0 -0
  15. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/core/project.py +0 -0
  16. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/core/workspace.py +0 -0
  17. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/devs_config.py +0 -0
  18. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/exceptions.py +0 -0
  19. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/Dockerfile +0 -0
  20. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/extensions/README.md +0 -0
  21. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/extensions/install.sh +0 -0
  22. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/scripts/copy-ssh.sh +0 -0
  23. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/scripts/post-create-wrapper.sh +0 -0
  24. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/scripts/python-venv-integration.sh +0 -0
  25. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/scripts/screenshot-webapp.sh +0 -0
  26. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/scripts/start-tunnel.sh +0 -0
  27. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/scripts/tunnel-status.sh +0 -0
  28. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/scripts/webapp-screenshot.py +0 -0
  29. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/sudo-scripts/init-firewall.sh +0 -0
  30. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/sudo-scripts/setup-devs-env.sh +0 -0
  31. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/sudo-scripts/setup-vscode-cache.sh +0 -0
  32. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/sudo-scripts/start-services.sh +0 -0
  33. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/templates/vscode-settings-reference.md +0 -0
  34. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/utils/__init__.py +0 -0
  35. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/utils/config_hash.py +0 -0
  36. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/utils/console.py +0 -0
  37. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/utils/devcontainer.py +0 -0
  38. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/utils/devcontainer_template.py +0 -0
  39. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/utils/docker_client.py +0 -0
  40. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/utils/file_utils.py +0 -0
  41. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/utils/git_utils.py +0 -0
  42. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common/utils/repo_cache.py +0 -0
  43. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common.egg-info/dependency_links.txt +0 -0
  44. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common.egg-info/requires.txt +0 -0
  45. {devs_common-4.0.0 → devs_common-4.0.1}/devs_common.egg-info/top_level.txt +0 -0
  46. {devs_common-4.0.0 → devs_common-4.0.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devs-common
3
- Version: 4.0.0
3
+ Version: 4.0.1
4
4
  Summary: Shared utilities for devs package ecosystem
5
5
  Author: Dan Lester
6
6
  License-Expression: MIT
@@ -99,6 +99,7 @@
99
99
  },
100
100
  "workspaceFolder": "/workspaces/${localEnv:WORKSPACE_FOLDER_NAME}",
101
101
  "postCreateCommand": "/usr/local/bin/post-create-wrapper.sh",
102
+ "postAttachCommand": "/usr/local/bin/install-bridge-drop.sh",
102
103
  "forwardPorts": [],
103
104
  "portsAttributes": {
104
105
  "3306": {
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env bash
2
+ # Fetch the latest devs-bridge-drop.vsix from GitHub Releases and install it.
3
+ # Intended to be invoked from devcontainer postAttachCommand — by that point
4
+ # VS Code Server is up and 'code' resolves to the Server-aware shim that
5
+ # installs into ~/.vscode-server/extensions/.
6
+ set -uo pipefail
7
+
8
+ echo "Installing devs-bridge-drop extension..."
9
+
10
+ if ! command -v code >/dev/null 2>&1; then
11
+ echo "⚠️ Skipping devs-bridge-drop install: 'code' CLI not on PATH"
12
+ exit 0
13
+ fi
14
+
15
+ tmp_vsix="/tmp/devs-bridge-drop.vsix"
16
+ vsix_url="https://github.com/ideonate/devs/releases/latest/download/devs-bridge-drop.vsix"
17
+
18
+ if ! curl -fsSL "$vsix_url" -o "$tmp_vsix"; then
19
+ echo "⚠️ Could not download $vsix_url (continuing)"
20
+ exit 0
21
+ fi
22
+
23
+ if code --install-extension "$tmp_vsix" --force; then
24
+ echo "✓ Installed devs-bridge-drop"
25
+ else
26
+ echo "⚠️ 'code --install-extension' failed for devs-bridge-drop (continuing)"
27
+ fi
28
+
29
+ rm -f "$tmp_vsix"
30
+ exit 0
@@ -280,19 +280,10 @@ else
280
280
  echo "No package.json found in root directory"
281
281
  fi
282
282
 
283
- # Install the devs-bridge-drop extension from the latest GitHub release.
284
- # Same one-liner third-party devcontainers can drop into their own
285
- # postAttachCommand — exercising one install path keeps it tested.
286
- if command -v code >/dev/null 2>&1; then
287
- tmp_vsix="/tmp/devs-bridge-drop.vsix"
288
- if curl -fsSL "https://github.com/ideonate/devs/releases/latest/download/devs-bridge-drop.vsix" -o "$tmp_vsix" 2>/dev/null; then
289
- code --install-extension "$tmp_vsix" --force || \
290
- echo "⚠️ Failed to install devs-bridge-drop (continuing)"
291
- rm -f "$tmp_vsix"
292
- else
293
- echo "⚠️ Could not download devs-bridge-drop.vsix (continuing)"
294
- fi
295
- fi
283
+ # Note: devs-bridge-drop is installed by postAttachCommand (install-bridge-drop.sh)
284
+ # rather than here, because the 'code' CLI baked into /usr/local/bin (used for
285
+ # tunnels) doesn't write to the same extensions dir VS Code Server reads from.
286
+ # By postAttachCommand time, VS Code Server's own 'code' shim is on PATH.
296
287
 
297
288
  echo "Workspace setup complete!"
298
289
  echo ""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devs-common
3
- Version: 4.0.0
3
+ Version: 4.0.1
4
4
  Summary: Shared utilities for devs package ecosystem
5
5
  Author: Dan Lester
6
6
  License-Expression: MIT
@@ -21,6 +21,7 @@ devs_common/templates/extensions/README.md
21
21
  devs_common/templates/extensions/devs-bridge-drop.vsix
22
22
  devs_common/templates/extensions/install.sh
23
23
  devs_common/templates/scripts/copy-ssh.sh
24
+ devs_common/templates/scripts/install-bridge-drop.sh
24
25
  devs_common/templates/scripts/post-create-wrapper.sh
25
26
  devs_common/templates/scripts/python-venv-integration.sh
26
27
  devs_common/templates/scripts/screenshot-webapp.sh
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "devs-common"
7
- version = "4.0.0"
7
+ version = "4.0.1"
8
8
  description = "Shared utilities for devs package ecosystem"
9
9
  authors = [
10
10
  {name = "Dan Lester"},
File without changes
File without changes
File without changes