feat(KB-616): add ProjectRuntime abstraction for task execution isolation

- Define ProjectRuntime interface with unified task execution contract\n- Implement IPC protocol for host-worker communication (messages, streaming, heartbeats)\n- Add InProcessRuntime for synchronous in-process task execution\n- Add ChildProcessRuntime with isolated worker processes for sandboxed execution\n- Implement ProjectManager to coordinate runtime selection and task lifecycle\n- Update engine exports to expose runtime APIs\n- Add comprehensive tests for all runtime implementations and IPC protocol
This commit is contained in:
gsxdsm
2026-03-31 20:12:28 -07:00
parent 45b5fbbbe8
commit 879a941b9a
15 changed files with 3454 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
---
"@gsxdsm/fusion": minor
---
Add ProjectRuntime abstraction for multi-project support.
New exports:
- ProjectRuntime interface for project engine lifecycle
- InProcessRuntime (default) and ChildProcessRuntime (isolation) implementations
- ProjectManager for orchestrating multiple projects
- IPC protocol for child-process isolation mode
- Global concurrency enforcement across all projects