Files
hakorune/tools/codex-tmux-driver/test-bidirectional.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

69 lines
2.0 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# test-bidirectional.sh - 双方向通信テストスクリプト
echo "🚀 双方向通信テストを開始します..."
# Step 1: hook-serverが起動しているか確認
if ! lsof -i:8770 > /dev/null 2>&1; then
echo "⚠️ hook-serverが起動していません。別ターミナルで以下を実行してください"
echo " HOOK_SERVER_PORT=8770 node hook-server.js"
exit 1
fi
echo "✅ hook-serverが起動しています"
# Step 2: Codexセッションが存在するか確認
if ! tmux has-session -t codex-safe 2>/dev/null; then
echo "⚠️ Codexセッションが見つかりません。以下を実行してください"
echo " ./tmux-launch-only.sh"
exit 1
fi
echo "✅ Codexセッションが存在します"
# Step 3: 双方向通信の指示をCodexに送る
echo "📤 Codexに双方向通信の使い方を送信..."
node -e "
const WebSocket = require('ws');
const ws = new WebSocket('ws://localhost:8770');
ws.on('open', () => {
const message = {
source: 'claude',
type: 'inject-input',
data: \`双方向通信テスト!
以下のコードを実行して、私Claudeに返信してください
\\\`\\\`\\\`javascript
const WebSocket = require('ws');
const ws = new WebSocket('ws://localhost:8770');
ws.on('open', () => {
ws.send(JSON.stringify({
source: 'codex',
type: 'inject-input',
data: '[Codex→Claude] 双方向通信成功hook-serverを通じてClaudeに届きました'
}));
ws.close();
});
\\\`\\\`\\\`
\`
};
ws.send(JSON.stringify(message));
console.log('✅ Sent bidirectional test to Codex');
ws.close();
});
ws.on('error', (err) => {
console.error('❌ Error:', err.message);
process.exit(1);
});
"
echo ""
echo "📡 Codexからの返信を待っています..."
echo " もしCodexが返信コードを実行したら、hook-serverのログに表示されます。"
echo ""
echo "💡 ヒント: hook-serverのターミナルを確認してください"