fix(3561): gate ultraplan runtime on Claude Code markers
This commit is contained in:
@@ -29,7 +29,16 @@ Use /gsd:plan-phase for stable local planning.
|
||||
Check that the session is running inside Claude Code:
|
||||
|
||||
```bash
|
||||
echo "$CLAUDE_CODE_VERSION"
|
||||
if [ "$CLAUDECODE" = "1" ] || [ -n "$CLAUDE_CODE_ENTRYPOINT" ]; then
|
||||
CC_VERSION="$(claude --version 2>/dev/null | awk '{print $1}')"
|
||||
if [ -n "$CC_VERSION" ] && [ "$(printf '%s\n' "2.1.91" "$CC_VERSION" | sort -V | head -n1)" != "2.1.91" ]; then
|
||||
echo ""
|
||||
else
|
||||
echo "claude-code:${CC_VERSION:-unknown}"
|
||||
fi
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
```
|
||||
|
||||
If the output is empty or unset, display the following error and exit:
|
||||
|
||||
Reference in New Issue
Block a user