ai-battle 0.1.2 → 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.
Files changed (2) hide show
  1. package/ai-battle.sh +3 -2
  2. package/package.json +1 -1
package/ai-battle.sh CHANGED
@@ -22,8 +22,9 @@ if [ -f ".env" ]; then
22
22
  set +a
23
23
  fi
24
24
 
25
- # ======================== 版本 ========================
26
- VERSION="0.1.0"
25
+ # ======================== 版本(从 package.json 读取) ========================
26
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
27
+ VERSION=$(node -p "require('${SCRIPT_DIR}/package.json').version" 2>/dev/null || echo "0.0.0")
27
28
 
28
29
  # ======================== 颜色 ========================
29
30
  BLUE='\033[1;34m'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-battle",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "让多个 AI Agent 对同一问题进行结构化圆桌讨论",
5
5
  "bin": {
6
6
  "ai-battle": "./ai-battle.sh"