mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-15 20:10:42 +00:00
12 lines
448 B
TypeScript
12 lines
448 B
TypeScript
import { createNonExitingRuntime, type RuntimeEnv } from "../../runtime.js";
|
|
import { normalizeStringEntries } from "../../shared/string-normalization.js";
|
|
import type { MonitorIMessageOpts } from "./types.js";
|
|
|
|
export function resolveRuntime(opts: MonitorIMessageOpts): RuntimeEnv {
|
|
return opts.runtime ?? createNonExitingRuntime();
|
|
}
|
|
|
|
export function normalizeAllowList(list?: Array<string | number>) {
|
|
return normalizeStringEntries(list);
|
|
}
|