openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
16 lines (15 loc) • 615 B
JavaScript
import { n as explainShellCommand } from "./extract-CX0M_WKo.mjs";
import { t as formatCommandSpans } from "./format-B36Ju1QI.mjs";
//#region src/agents/bash-tools.exec-approval-request.runtime.ts
/**
* Lazy runtime for exec approval command highlighting.
* Kept separate so importing approval request code does not load the command
* explainer until command spans are explicitly requested.
*/
async function resolveExecApprovalCommandSpans(e) {
const t = await explainShellCommand(e);
const n = formatCommandSpans(t);
return n.length > 0 ? n : void 0;
}
//#endregion
export { resolveExecApprovalCommandSpans };