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

1.1 KiB
Raw Permalink Blame History

🚀 超シンプルテスト手順

1 hook-server起動まだなら

cd /mnt/c/git/nyash-project/nyash/tools/codex-tmux-driver
HOOK_SERVER_PORT=8770 node hook-server.js

2 Claude Codeから送信テスト

方法A: ワンライナー(一番簡単)

require('ws').connect('ws://localhost:8770').on('open', function() { this.send(JSON.stringify({ source: 'claude-test', type: 'inject-input', data: 'テスト成功!' })); this.close(); });

方法B: 分かりやすい版

const ws = require('ws');
const client = new ws('ws://localhost:8770');
client.on('open', () => {
  client.send(JSON.stringify({
    source: 'claude',
    type: 'inject-input',
    data: 'Hello! WebSocketテスト成功'
  }));
  client.close();
});

3 確認方法

hook-serverのターミナルに以下が表示されれば成功

[inject-input] Hello! WebSocketテスト成功
🔄 Relaying inject-input from hook client

🎯 成功したら

同じ方法でCodexからも送信できます sourceを'codex'に変えるだけ!