mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 13:32:23 +00:00
38 lines
972 B
JavaScript
38 lines
972 B
JavaScript
/**
|
|
* Public surface of the e2e mock backend. Re-exports the lifecycle + state
|
|
* helpers consumed by:
|
|
* - `scripts/mock-api-server.mjs` (CLI runner)
|
|
* - `scripts/test-rust-with-mock.sh` (Rust integration tests)
|
|
* - `app/test/e2e/mock-server.ts` (WDIO specs + Vitest unit setup)
|
|
*
|
|
* The legacy entrypoint at `scripts/mock-api-core.mjs` is a re-export shim
|
|
* over this module so existing import paths keep working.
|
|
*/
|
|
export {
|
|
getMockServerPort,
|
|
startMockServer,
|
|
stopMockServer,
|
|
} from "./server.mjs";
|
|
export {
|
|
DEFAULT_PORT,
|
|
clearSocketEventLog,
|
|
clearRequestLog,
|
|
getSocketEventLog,
|
|
getMockBehavior,
|
|
getMockTelegramSent,
|
|
listMockLlmThreads,
|
|
getRequestLog,
|
|
listSocketSessions,
|
|
pushMockTelegramUpdate,
|
|
resetMockBehavior,
|
|
resetMockLlmThreads,
|
|
resetMockTelegram,
|
|
setMockBehavior,
|
|
setMockBehaviors,
|
|
} from "./state.mjs";
|
|
export {
|
|
disconnectMockSockets,
|
|
emitMockAgentAudioStream,
|
|
emitMockSocketEvent,
|
|
} from "./socket.mjs";
|