Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline (Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/* packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
24 lines
756 B
TypeScript
24 lines
756 B
TypeScript
import type { AdapterContext, ComputerRef } from "@rakazo/adapter-kit";
|
|
import { FakeSandboxProvider } from "./fake-sandbox.js";
|
|
|
|
/** Managed-provider protocol emulator backed by deterministic local state. */
|
|
export class ManagedSandboxEmulator extends FakeSandboxProvider {
|
|
constructor(
|
|
private readonly emulator: { id: string; kind: ComputerRef["kind"] } = {
|
|
id: "e2b-emulator",
|
|
kind: "e2b",
|
|
},
|
|
) {
|
|
super();
|
|
}
|
|
override describe() {
|
|
return { ...super.describe(), id: this.emulator.id };
|
|
}
|
|
override async provision(
|
|
request: { botId: string; homePath: string },
|
|
context: AdapterContext,
|
|
): Promise<ComputerRef> {
|
|
return { ...(await super.provision(request, context)), kind: this.emulator.kind };
|
|
}
|
|
}
|