mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-05 19:52:54 +00:00
Add a bundled SMS channel backed by Twilio inbound webhooks and outbound text delivery. Includes signed webhook validation, pairing/allowlist access, Messaging Service sender support, chunked plain-text SMS delivery, default target support, docs, config metadata, labeler updates, and focused SMS coverage. Verification: - pnpm exec tsgo -p extensions/sms/tsconfig.json --noEmit - OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=/tmp/openclaw-vitest-sms-land-fix2 node scripts/run-vitest.mjs extensions/sms/src/phone.test.ts extensions/sms/src/accounts.test.ts extensions/sms/src/twilio.test.ts extensions/sms/src/inbound.test.ts extensions/sms/src/gateway.test.ts extensions/sms/src/channel.test.ts extensions/sms/src/send.test.ts extensions/sms/src/webhook.test.ts --reporter=verbose - pnpm config:channels:check - pnpm plugins:inventory:check - git diff --check - .agents/skills/autoreview/scripts/autoreview --mode local - .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main
10 lines
350 B
TypeScript
10 lines
350 B
TypeScript
import { createPluginRuntimeStore, type PluginRuntime } from "openclaw/plugin-sdk/runtime-store";
|
|
|
|
const { setRuntime: setSmsRuntime, getRuntime: getSmsRuntime } =
|
|
createPluginRuntimeStore<PluginRuntime>({
|
|
pluginId: "sms",
|
|
errorMessage: "SMS runtime not initialized - plugin not registered",
|
|
});
|
|
|
|
export { getSmsRuntime, setSmsRuntime };
|