@zookanalytics/agent-env 0.1.1 → 0.1.3
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.
- package/bin/agent-env.js +0 -0
- package/config/baseline/devcontainer.json +6 -1
- package/config/baseline/init-host.sh +15 -0
- package/config/baseline/post-create.sh +0 -4
- package/dist/cli.js +967 -77
- package/package.json +20 -14
- package/config/baseline/git-config +0 -11
package/bin/agent-env.js
CHANGED
|
File without changes
|
|
@@ -7,8 +7,13 @@
|
|
|
7
7
|
"containerUser": "node",
|
|
8
8
|
"initializeCommand": "bash .devcontainer/init-host.sh",
|
|
9
9
|
"mounts": [
|
|
10
|
-
"source=${localEnv:HOME}/.claude,target=/home/node/.claude,type=bind,readonly"
|
|
10
|
+
"source=${localEnv:HOME}/.claude,target=/home/node/.claude,type=bind,readonly",
|
|
11
|
+
"source=${localEnv:HOME}/.gitconfig,target=/home/node/.gitconfig,type=bind,readonly",
|
|
12
|
+
"source=/run/host-services/ssh-auth.sock,target=/run/host-services/ssh-auth.sock,type=bind"
|
|
11
13
|
],
|
|
14
|
+
"containerEnv": {
|
|
15
|
+
"SSH_AUTH_SOCK": "/run/host-services/ssh-auth.sock"
|
|
16
|
+
},
|
|
12
17
|
"features": {
|
|
13
18
|
"ghcr.io/devcontainers/features/git:1": {},
|
|
14
19
|
"ghcr.io/devcontainers/features/git-lfs:1": {}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
set -euo pipefail
|
|
6
6
|
|
|
7
7
|
CLAUDE_DIR="$HOME/.claude"
|
|
8
|
+
GITCONFIG="$HOME/.gitconfig"
|
|
9
|
+
SSH_SOCKET="/run/host-services/ssh-auth.sock"
|
|
8
10
|
|
|
9
11
|
# Ensure ~/.claude directory exists (mounted read-only into container)
|
|
10
12
|
if [ ! -d "$CLAUDE_DIR" ]; then
|
|
@@ -12,4 +14,17 @@ if [ ! -d "$CLAUDE_DIR" ]; then
|
|
|
12
14
|
mkdir -p "$CLAUDE_DIR"
|
|
13
15
|
fi
|
|
14
16
|
|
|
17
|
+
# Ensure ~/.gitconfig exists (mounted read-only into container)
|
|
18
|
+
if [ ! -f "$GITCONFIG" ]; then
|
|
19
|
+
echo "agent-env: Creating $GITCONFIG (mount source)"
|
|
20
|
+
touch "$GITCONFIG"
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
# Verify SSH agent socket exists (provided by Docker Desktop / OrbStack on macOS)
|
|
24
|
+
if [ ! -S "$SSH_SOCKET" ]; then
|
|
25
|
+
echo "agent-env: Warning: SSH agent socket not found at $SSH_SOCKET"
|
|
26
|
+
echo "agent-env: SSH operations (git clone/push) may not work inside the container."
|
|
27
|
+
echo "agent-env: Ensure Docker Desktop or OrbStack is running on macOS."
|
|
28
|
+
fi
|
|
29
|
+
|
|
15
30
|
echo "agent-env: Host initialization complete"
|
|
@@ -6,10 +6,6 @@ set -euo pipefail
|
|
|
6
6
|
|
|
7
7
|
echo "=== agent-env: post-create initialization ==="
|
|
8
8
|
|
|
9
|
-
# Include agent-env git config for SSH-based signing
|
|
10
|
-
cp .devcontainer/git-config /home/node/.devcontainer-git-config 2>/dev/null || true
|
|
11
|
-
git config --global include.path /home/node/.devcontainer-git-config
|
|
12
|
-
|
|
13
9
|
# Verify tool installation
|
|
14
10
|
echo "--- Tool verification ---"
|
|
15
11
|
echo "Node.js: $(node --version)"
|