Change RuntimeContext runCommand/runFiles to stream output via callback#153
Conversation
Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
my-code | 2912643 | Commit Preview URL Branch Preview URL |
Feb 02 2026, 10:54 AM |
Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
|
@copilot compileAndRun()の引数のonOutputはReplOutput型をそのまま扱う必要はありません。引数のonOutputと戻り値の両方でメッセージを出力するのは冗長なので、コールバックによる出力に統一したい。ReplOutput型では情報が不足する(ReplOutputのtypeよりCompilerNdJsonのtypeの方が多い)ので、 |
…ssing Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
Changed in commit 4120fae:
The functions no longer accumulate outputs in arrays - they process each output event as it arrives and maintain minimal state to handle multi-line patterns like stack traces. |
Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
…ainability Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
|
@copilot eslintのエラーを修正してください。 app/terminal/tests.ts のテストを修正してください。テストでは出力がリアルタイムに返ってくることはテストする必要はなく、今までの仕様と同様にoutputをarrayなどにまとめて実行が完了してから内容を確認すればよいです。 |
Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
... Fixed in commit e45bf4b:
|
|
testのany[]をなおしたらok |
RuntimeContext Callback Refactoring - Complete ✅
Successfully refactored RuntimeContext to use callbacks for real-time output streaming.
Final Implementation
Core Changes:
Recent Fixes:
foundSignalvariable in cpp.ts (ESLint error fixed)Wandbox API:
CompileOutputEventtype preserves NDJSON informationQuality Metrics:
Test Updates
All tests have been updated to work with the new callback interface:
Ready for production use.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.