alt-glitch
ef8a985ee3
refactor(environments): migrate Modal + Daytona to unified model — Phase 5+6
ModalEnvironment:
- Create _ModalProcessHandle adapter (async SDK → ProcessHandle protocol)
- Routes async sandbox.exec through thread + OS pipe for stdout
- Remove BaseModalExecutionEnvironment inheritance, use BaseEnvironment
- Remove _start_modal_exec/_poll_modal_exec/_cancel_modal_exec
- Move file sync to _before_execute hook
- Preserve _AsyncWorker, sandbox lifecycle, snapshot management
DaytonaEnvironment:
- Create _DaytonaProcessHandle adapter (blocking SDK → ProcessHandle)
- Preserves shell timeout wrapper (SDK timeout unreliable)
- Add _run_bash with heredoc stdin embedding
- Move file sync to _before_execute hook
- Preserve sandbox lifecycle, persistent resume logic
ManagedModal left unchanged (HTTP-based, keeps modal_common.py dep).
42/42 local tests passing. SDK backends untested (require credentials).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 01:31:41 +00:00
..
2026-04-07 02:35:26 +05:30
2026-04-07 01:31:41 +00:00
2026-03-17 02:33:12 -07:00
2026-03-31 08:48:54 +09:00
2026-03-23 07:43:12 -07:00
2026-04-05 12:31:27 -07:00
2026-04-01 04:18:50 -07:00
2026-04-01 12:03:56 -07:00
2026-04-07 02:35:26 +05:30
2026-03-25 19:47:58 -07:00
2026-03-25 15:02:03 -07:00
2026-04-04 12:57:49 -07:00
2026-04-06 12:42:16 -07:00
2026-04-06 12:42:16 -07:00
2026-04-06 00:08:20 -07:00
2026-04-06 17:17:57 -07:00
2026-04-06 12:42:16 -07:00
2026-04-06 16:49:32 -07:00
2026-04-03 22:40:37 -07:00
2026-03-25 19:47:58 -07:00
2026-03-15 20:21:21 -07:00
2026-03-30 13:28:10 +09:00
2026-02-23 02:11:33 -08:00
2026-04-02 12:40:03 +11:00
2026-04-05 22:08:00 -07:00
2026-04-05 22:08:00 -07:00
2026-04-03 13:10:11 -07:00
2026-03-27 15:28:19 -07:00
2026-03-18 02:55:30 -07:00
2026-03-11 20:02:36 -07:00
2026-04-05 12:46:07 -07:00
2026-03-26 19:38:04 -07:00
2026-03-25 15:02:03 -07:00
2026-03-29 15:52:54 -07:00
2026-03-25 19:47:58 -07:00
2026-04-06 16:49:52 -07:00
2026-03-27 21:27:51 -07:00
2026-04-03 21:14:42 -07:00
2026-03-27 15:28:19 -07:00
2026-04-01 04:19:19 -07:00
2026-03-25 15:54:28 -07:00
2026-04-03 21:14:42 -07:00
2026-04-07 01:31:34 +00:00
2026-03-25 19:47:58 -07:00
2026-03-15 20:21:21 -07:00
2026-03-31 08:48:54 +09:00
2026-04-03 00:50:17 -07:00
2026-04-03 22:42:14 -07:00
2026-03-23 15:40:42 -07:00
2026-03-30 02:59:39 -07:00
2026-03-31 12:13:33 -07:00
2026-04-05 11:16:45 -07:00
2026-03-25 15:54:28 -07:00