openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
23 lines (22 loc) • 812 B
JavaScript
import { i as formatErrorMessage } from "./errors-BXgSefBE.js";
import { i as resolveSessionStoreTargets } from "./targets-BrMDn2yj.js";
import "./sessions-D6zZvoxX.js";
//#region src/commands/session-store-targets.ts
/**
* Session store target resolution wrapper for CLI commands.
*
* The config helper throws on invalid agent/store combinations; this module
* converts those errors into command output and exit codes.
*/
/** Resolves session store targets or exits the current command on validation errors. */
function resolveSessionStoreTargetsOrExit(params) {
try {
return resolveSessionStoreTargets(params.cfg, params.opts);
} catch (error) {
params.runtime.error(formatErrorMessage(error));
params.runtime.exit(1);
return null;
}
}
//#endregion
export { resolveSessionStoreTargetsOrExit as t };