UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

29 lines (28 loc) • 1.43 kB
import { t as warnPluginSdkDeprecation } from "./sdk-deprecation-D5N9acnu.mjs"; import { c as readExecApprovalsSnapshot, l as readExecApprovalsSnapshotAsync, r as loadExecApprovals } from "./exec-approvals-store-BUZ9uOWF.mjs"; import "./exec-approvals-rOfoWejC.mjs"; //#region src/plugin-sdk/exec-approvals-runtime.ts /** @deprecated Await loadExecApprovalsReadOnlyAsync; final compatibility day: 2026-12-31. Removal in the first January 2027 stable release. */ function loadExecApprovalsDeprecated() { warnPluginSdkDeprecation({ family: "exec-approvals-sync-read", method: "loadExecApprovals", replacement: "loadExecApprovalsReadOnlyAsync" }); return loadExecApprovals(); } /** @deprecated Await readExecApprovalsSnapshotAsync; final compatibility day: 2026-12-31. Removal in the first January 2027 stable release. */ function readExecApprovalsSnapshotDeprecated() { warnPluginSdkDeprecation({ family: "exec-approvals-sync-read", method: "readExecApprovalsSnapshot", replacement: "readExecApprovalsSnapshotAsync" }); return readExecApprovalsSnapshot(); } /** SDK snapshots remain caller-owned; internal and ReadOnly readers share frozen policy. */ async function readExecApprovalsSnapshotForPlugin(e) { return structuredClone(await readExecApprovalsSnapshotAsync(e)); } //#endregion export { readExecApprovalsSnapshotDeprecated as n, readExecApprovalsSnapshotForPlugin as r, loadExecApprovalsDeprecated as t };