【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>
36 lines
984 B
JavaScript
36 lines
984 B
JavaScript
#!/usr/bin/env node
|
|
// tmux経由でメッセージを注入するヘルパー
|
|
|
|
const { exec } = require('child_process');
|
|
|
|
// コマンドライン引数から対象セッションとメッセージを取得
|
|
const args = process.argv.slice(2);
|
|
if (args.length < 2) {
|
|
console.error('Usage: node tmux-inject-helper.js <session-name> <message>');
|
|
process.exit(1);
|
|
}
|
|
|
|
const [sessionName, message] = args;
|
|
|
|
// tmux send-keysコマンドを実行
|
|
// C-mはEnterキー
|
|
const command = `tmux send-keys -t ${sessionName} '${message.replace(/'/g, "'\\''")}'`;
|
|
console.log(`Executing: ${command}`);
|
|
|
|
exec(command, (error, stdout, stderr) => {
|
|
if (error) {
|
|
console.error(`Error: ${error.message}`);
|
|
process.exit(1);
|
|
}
|
|
if (stderr) {
|
|
console.error(`stderr: ${stderr}`);
|
|
}
|
|
console.log('Message sent successfully!');
|
|
|
|
// Enterキーを送信
|
|
exec(`tmux send-keys -t ${sessionName} C-m`, (err) => {
|
|
if (!err) {
|
|
console.log('Enter key sent!');
|
|
}
|
|
});
|
|
}); |