mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
15 lines
329 B
TypeScript
15 lines
329 B
TypeScript
export type RuntimeEnv = {
|
|
log: typeof console.log;
|
|
error: typeof console.error;
|
|
exit: (code: number) => never;
|
|
};
|
|
|
|
export const defaultRuntime: RuntimeEnv = {
|
|
log: console.log,
|
|
error: console.error,
|
|
exit: (code) => {
|
|
process.exit(code);
|
|
throw new Error("unreachable"); // satisfies tests when mocked
|
|
},
|
|
};
|