【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>
32 lines
959 B
JavaScript
32 lines
959 B
JavaScript
#!/usr/bin/env node
|
||
// AI同士の通信テストスクリプト
|
||
|
||
const WebSocket = require('ws');
|
||
const ws = new WebSocket('ws://localhost:8770');
|
||
|
||
ws.on('open', function() {
|
||
console.log('🔌 WebSocketに接続しました');
|
||
|
||
// Claude同士のテストメッセージ
|
||
const message = {
|
||
source: 'claude1', // 送信元を明示
|
||
type: 'inject-input',
|
||
data: `[Claude1→Claude2] 🤖 AI同士の通信テストです!
|
||
|
||
このメッセージが見えたら、次のコマンドで返信してください:
|
||
node -e "console.log('受信確認: Claude1からのメッセージを受け取りました!');"
|
||
|
||
送信時刻: ${new Date().toLocaleString('ja-JP')}`
|
||
};
|
||
|
||
ws.send(JSON.stringify(message));
|
||
console.log('✅ テストメッセージを送信しました');
|
||
console.log('📨 内容:');
|
||
console.log(message.data);
|
||
|
||
ws.close();
|
||
});
|
||
|
||
ws.on('error', (err) => {
|
||
console.error('❌ エラー:', err.message);
|
||
}); |