【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>
35 lines
887 B
JavaScript
35 lines
887 B
JavaScript
#!/usr/bin/env node
|
|
// send-to-other.js - 他のCodexセッションにメッセージ送信
|
|
|
|
const WebSocket = require('ws');
|
|
|
|
const message = process.argv[2];
|
|
const to = process.argv[3];
|
|
const from = process.argv[4] || 'unknown';
|
|
|
|
if (!message || !to) {
|
|
console.log('使い方: node send-to-other.js "メッセージ" 送信先 [送信元名]');
|
|
console.log('例: node send-to-other.js "こんにちは" codex2 codex1');
|
|
process.exit(1);
|
|
}
|
|
|
|
const ws = new WebSocket('ws://localhost:8770');
|
|
ws.on('open', () => {
|
|
console.log(`📤 ${from} → ${to}: "${message}"`);
|
|
ws.send(JSON.stringify({
|
|
type: 'inject-input',
|
|
data: message,
|
|
source: from,
|
|
target: to
|
|
}));
|
|
setTimeout(() => {
|
|
console.log('✅ Message sent!');
|
|
ws.close();
|
|
process.exit(0);
|
|
}, 500);
|
|
});
|
|
|
|
ws.on('error', (e) => {
|
|
console.error('❌ Error:', e.message);
|
|
process.exit(1);
|
|
}); |