Files
hakorune/tools/codex-tmux-driver/test-wrapper-safe.sh
Moe Charm 4e1b595796 AI協調開発研究ドキュメントの完成と Phase 10.9-β 進捗
【AI協調開発研究】
- AI二重化モデルの学術論文draft完成(workshop_paper_draft.md)
- 「隠れた危機」分析とbirthの原則哲学化
- TyEnv「唯一の真実」協調会話を保存・研究資料に統合
- papers管理構造の整備(wip/under-review/published分離)

【Phase 10.9-β HostCall進捗】
- JitConfigBox: relax_numeric フラグ追加(i64→f64コアーション制御)
- HostcallRegistryBox: 署名検証・白黒リスト・コアーション対応
- JitHostcallRegistryBox: Nyash側レジストリ操作API
- Lower統合: env直読 → jit::config::current() 参照に統一
- 数値緩和設定: NYASH_JIT_HOSTCALL_RELAX_NUMERIC/Config.set_flag

【検証サンプル拡充】
- math.sin/cos/abs/min/max 関数スタイル(examples/jit_math_function_style_*.nyash)
- 境界ケース: 署名不一致・コアーション許可・mutating拒否サンプル
- E2E実証: String.length→allow, Array.push→fallback, math関数の署名一致観測

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-28 12:09:09 +09:00

39 lines
1.0 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 安全にラッパーをテストするスクリプト
echo "🧪 Codex Wrapper Safe Test"
echo ""
# 1. バイナリ確認
echo "1⃣ Checking Codex binary..."
REAL_CODEX=/home/tomoaki/.volta/bin/codex
if [ -f "$REAL_CODEX" ]; then
echo "✅ Found: $REAL_CODEX"
$REAL_CODEX --version
else
echo "❌ Not found: $REAL_CODEX"
exit 1
fi
echo ""
echo "2⃣ Testing wrapper (hook disabled)..."
export CODEX_REAL_BIN=$REAL_CODEX
export CODEX_HOOK_ENABLE=false
cd $(dirname "$0")
node codex-hook-wrapper.js --version
echo ""
echo "3⃣ Testing wrapper (hook enabled, port 8770)..."
export CODEX_HOOK_ENABLE=true
export CODEX_HOOK_SERVER=ws://localhost:8770
export CODEX_LOG_FILE=/tmp/codex-test.log
echo "Will try to connect to $CODEX_HOOK_SERVER"
node codex-hook-wrapper.js --version
echo ""
echo "✅ Wrapper test complete!"
echo ""
echo "To use with real Codex:"
echo " export CODEX_REAL_BIN=$REAL_CODEX"
echo " export CODEX_HOOK_SERVER=ws://localhost:8770"
echo " node codex-hook-wrapper.js exec --ask-for-approval never"