mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 13:18:36 +00:00
* feat(signal): support reaction approvals * fix(signal): harden approval reaction bindings * fix(signal): quiet native approval prompt flow * test(prompts): refresh direct channel snapshots * fix(signal): suppress duplicate exec approval prompts * revert(reply): keep direct inbound metadata * docs: add signal approval changelog * test(prompts): restore direct channel snapshots * fix(signal): allow defaultTo approval reactions
14 lines
508 B
TypeScript
14 lines
508 B
TypeScript
import type { PluginRuntime } from "openclaw/plugin-sdk/core";
|
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
|
|
const {
|
|
setRuntime: setSignalRuntime,
|
|
getRuntime: getSignalRuntime,
|
|
tryGetRuntime: getOptionalSignalRuntime,
|
|
clearRuntime: clearSignalRuntime,
|
|
} = createPluginRuntimeStore<PluginRuntime>({
|
|
pluginId: "signal",
|
|
errorMessage: "Signal runtime not initialized",
|
|
});
|
|
export { clearSignalRuntime, getOptionalSignalRuntime, getSignalRuntime, setSignalRuntime };
|