ai-battle 0.1.4 → 0.1.6

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 +2 -1
  2. package/package.json +1 -1
package/ai-battle.sh CHANGED
@@ -203,7 +203,7 @@ check_codex() {
203
203
  local resp errmsg
204
204
  local tmperr
205
205
  tmperr=$(mktemp)
206
- resp=$(codex exec "hello" 2>"$tmperr") && local rc=0 || local rc=$?
206
+ resp=$(codex exec --skip-git-repo-check "hello" 2>"$tmperr") && local rc=0 || local rc=$?
207
207
  errmsg=$(cat "$tmperr" 2>/dev/null)
208
208
  rm -f "$tmperr"
209
209
 
@@ -1815,6 +1815,7 @@ main() {
1815
1815
  case "${1:-}" in
1816
1816
  help|--help|-h) cmd_help; exit 0 ;;
1817
1817
  --version|-v) echo "ai-battle v$VERSION"; exit 0 ;;
1818
+ run) shift ;; # 兼容 ai-battle run ... 的调用方式
1818
1819
  esac
1819
1820
 
1820
1821
  # 默认行为: 启动讨论
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-battle",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "让多个 AI Agent 对同一问题进行结构化圆桌讨论",
5
5
  "bin": {
6
6
  "ai-battle": "./ai-battle.sh"