create-claude-workspace 1.1.21 → 1.1.22

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.
@@ -24,12 +24,18 @@ fi
24
24
  chown claude:claude /home/claude
25
25
  chown -R claude:claude /home/claude/.claude 2>/dev/null || true
26
26
 
27
- # Git platform auth — configure gh/glab from env vars if set
27
+ # Git platform auth — configure gh/glab + git credentials from env vars if set
28
28
  if [[ -n "${GH_TOKEN:-}" ]]; then
29
29
  echo "GH_TOKEN detected — GitHub CLI authenticated."
30
+ git config --global credential.helper store
31
+ echo "https://oauth2:${GH_TOKEN}@github.com" > /home/claude/.git-credentials
32
+ chown claude:claude /home/claude/.git-credentials
30
33
  fi
31
34
  if [[ -n "${GITLAB_TOKEN:-}" ]]; then
32
35
  echo "GITLAB_TOKEN detected — GitLab CLI authenticated."
36
+ git config --global credential.helper store
37
+ echo "https://oauth2:${GITLAB_TOKEN}@gitlab.com" >> /home/claude/.git-credentials
38
+ chown claude:claude /home/claude/.git-credentials
33
39
  fi
34
40
 
35
41
  # Auth pre-check — fail fast if no credentials available
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-workspace",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "Scaffold a project with Claude Code agents for autonomous AI-driven development",
5
5
  "type": "module",
6
6
  "bin": {