feat(coding-runtime): add managed Pi extension host

This commit is contained in:
2026-08-23 09:39:12 +08:00
parent 47159b3cbd
commit 3861c3286a
22 changed files with 1673 additions and 16 deletions

View File

@@ -52,6 +52,10 @@ class FakeWorker implements PiConversationWorker {
return { type: 'response' as const, id: 'fake', success: true };
}
async send(command: PiRpcCommand): Promise<void> {
this.requests.push(command);
}
subscribe(listener: (event: PiRpcEvent) => void): () => void {
this.eventListeners.add(listener);
return () => this.eventListeners.delete(listener);