@@ -10,23 +10,23 @@ docker build -t "${IMAGE_NAME}:temp" "${SCRIPT_DIR}" --no-cache
1010
1111echo " Extracting tool versions..."
1212
13+ # Extract Claude Code version
14+ CLAUDE_VERSION=$( docker run --rm " ${IMAGE_NAME} :temp" bash -c " npm list -g @anthropic-ai/claude-code --depth=0 2>/dev/null | grep @anthropic-ai/claude-code | sed 's/.*@anthropic-ai\/claude-code@//' | sed 's/ .*//' || echo 'unknown'" )
15+ echo " Claude: ${CLAUDE_VERSION} "
16+
1317# Extract OpenAI Codex version
1418CODEX_VERSION=$( docker run --rm " ${IMAGE_NAME} :temp" bash -c " npm list -g @openai/codex --depth=0 2>/dev/null | grep @openai/codex | sed 's/.*@openai\/codex@//' | sed 's/ .*//' || echo 'unknown'" )
1519echo " Codex: ${CODEX_VERSION} "
1620
17- # Extract Claude Code version
18- CLAUDE_VERSION=$( docker run --rm " ${IMAGE_NAME} :temp" bash -c " npm list -g @anthropic-ai/claude-code --depth=0 2>/dev/null | grep @anthropic-ai/claude-code | sed 's/.*@anthropic-ai\/claude-code@//' | sed 's/ .*//' || echo 'unknown'" )
19- echo " Claude Code: ${CLAUDE_VERSION} "
20-
2121# Extract GitHub Copilot version
2222COPILOT_VERSION=$( docker run --rm " ${IMAGE_NAME} :temp" bash -c " npm list -g @github/copilot --depth=0 2>/dev/null | grep @github/copilot | sed 's/.*@github\/copilot@//' | sed 's/ .*//' || echo 'unknown'" )
2323echo " Copilot: ${COPILOT_VERSION} "
2424
2525# Clean up temporary image
2626docker rmi " ${IMAGE_NAME} :temp" > /dev/null 2>&1 || true
2727
28- # Generate combined tag
29- TAG=" codex -${CODEX_VERSION} _claude -${CLAUDE_VERSION } _copilot-${COPILOT_VERSION} "
28+ # Generate combined tag (alphabetically sorted: claude, codex, copilot)
29+ TAG=" claude -${CLAUDE_VERSION} _codex -${CODEX_VERSION } _copilot-${COPILOT_VERSION} "
3030
3131echo " "
3232echo " Generated tag: ${TAG} "
@@ -39,3 +39,13 @@ export TAG=${TAG}
3939EOF
4040
4141echo " config.sh updated with TAG=${TAG} "
42+
43+ # Create git tag
44+ GIT_TAG=" ai-cli-${TAG} "
45+ echo " "
46+ echo " Creating git tag: ${GIT_TAG} "
47+ git tag " ${GIT_TAG} " 2> /dev/null && echo " Git tag created: ${GIT_TAG} " || echo " Git tag already exists: ${GIT_TAG} "
48+
49+ echo " "
50+ echo " To push to remote, run:"
51+ echo " git push origin ${GIT_TAG} "
0 commit comments