@openclaw/sms 2026.10.10-beta.5 → 2026.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.setup/{media-BIjSnGTm.mjs → media-CXXQruyp.mjs} +3 -4
- package/dist/.setup/{runtime-BBlPgBIF.mjs → runtime-A8rnEOmw.mjs} +1 -2
- package/dist/.setup/{secret-contract-B2P_lFGm.mjs → secret-contract-BTxRnkG1.mjs} +1 -2
- package/dist/.setup/{twilio-BvmfwtSb.mjs → twilio-DlIKNs5E.mjs} +5 -10
- package/dist/.source-module-urls/795a0e3f2ca7aa49f58abd6277a5075ff6437cd84711eea7629da8f4ff8f2b43.json +1 -1
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +15 -24
- package/dist/configured-state.js +1 -2
- package/dist/index.js +1 -2
- package/dist/secret-contract-api.js +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getSmsRuntime } from "./runtime-
|
|
2
|
-
import { h as assertSmsCredentialOwnerAvailable, n as TWILIO_MMS_MAX_BYTES } from "./twilio-
|
|
1
|
+
import { t as getSmsRuntime } from "./runtime-A8rnEOmw.mjs";
|
|
2
|
+
import { h as assertSmsCredentialOwnerAvailable, n as TWILIO_MMS_MAX_BYTES } from "./twilio-DlIKNs5E.mjs";
|
|
3
3
|
import { collectErrorGraphCandidates } from "openclaw/plugin-sdk/error-runtime";
|
|
4
4
|
import { resolveExpiresAtMsFromDurationMs } from "openclaw/plugin-sdk/number-runtime";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
@@ -9,7 +9,7 @@ import { extensionForMime } from "openclaw/plugin-sdk/media-mime";
|
|
|
9
9
|
import { MediaFetchError, unlinkIfExists } from "openclaw/plugin-sdk/media-runtime";
|
|
10
10
|
import { createHostedOutboundMediaStore, resolveHostedOutboundMediaRequest, resolveOutboundMediaAccess } from "openclaw/plugin-sdk/outbound-media";
|
|
11
11
|
import { isTransientNetworkError } from "openclaw/plugin-sdk/retry-runtime";
|
|
12
|
-
|
|
12
|
+
// extensions/sms/src/media.ts
|
|
13
13
|
const TWILIO_API_HOSTNAME = "api.twilio.com";
|
|
14
14
|
const TWILIO_MEDIA_PATH_RE = /^\/2010-04-01\/Accounts\/([^/]+)\/Messages\/([^/]+)\/Media\/(ME[0-9a-fA-F]{32})$/u;
|
|
15
15
|
const TWILIO_MEDIA_TOTAL_TIMEOUT_MS = 6e4;
|
|
@@ -367,5 +367,4 @@ async function tryHandleHostedSmsMediaRequest(req, res, accountId = "default") {
|
|
|
367
367
|
res.end(body);
|
|
368
368
|
return true;
|
|
369
369
|
}
|
|
370
|
-
//#endregion
|
|
371
370
|
export { materializeSmsInboundMedia, prepareHostedSmsMedia, tryHandleHostedSmsMediaRequest };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
2
|
-
|
|
2
|
+
// extensions/sms/src/runtime.ts
|
|
3
3
|
const { setRuntime: setSmsRuntime, getRuntime: getSmsRuntime } = createPluginRuntimeStore({
|
|
4
4
|
pluginId: "sms",
|
|
5
5
|
errorMessage: "SMS runtime not initialized - plugin not registered"
|
|
6
6
|
});
|
|
7
|
-
//#endregion
|
|
8
7
|
export { setSmsRuntime as n, getSmsRuntime as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { collectConditionalChannelFieldAssignments, createChannelSecretContract, hasOwnProperty } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
|
|
2
|
-
|
|
2
|
+
// extensions/sms/src/secret-contract.ts
|
|
3
3
|
const DEFAULT_ACCOUNT_ID = "default";
|
|
4
4
|
function hasTopLevelSmsAccount(channel) {
|
|
5
5
|
return [
|
|
@@ -38,5 +38,4 @@ const channelSecrets = createChannelSecretContract({
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
|
|
41
|
-
//#endregion
|
|
42
41
|
export { collectRuntimeConfigAssignments as n, secretTargetRegistryEntries as r, channelSecrets as t };
|
|
@@ -17,7 +17,7 @@ import { safeParseJson } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
|
17
17
|
import { readRequestBodyWithLimit } from "openclaw/plugin-sdk/webhook-ingress";
|
|
18
18
|
import { assertSecretOwnerAvailable } from "openclaw/plugin-sdk/channel-secret-owner-runtime";
|
|
19
19
|
import { getRuntimeConfigSnapshot } from "openclaw/plugin-sdk/runtime-config-snapshot";
|
|
20
|
-
|
|
20
|
+
// extensions/sms/src/phone.ts
|
|
21
21
|
function normalizeSmsPhoneNumber(raw) {
|
|
22
22
|
const trimmed = raw.trim().replace(/^(?:sms|twilio-sms):/i, "").trim();
|
|
23
23
|
if (!trimmed) return "";
|
|
@@ -31,8 +31,7 @@ function normalizeSmsAllowFrom(raw) {
|
|
|
31
31
|
if (raw.trim() === "*") return "*";
|
|
32
32
|
return normalizeSmsPhoneNumber(raw);
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
//#region extensions/sms/src/public-webhook-url.ts
|
|
34
|
+
// extensions/sms/src/public-webhook-url.ts
|
|
36
35
|
const SMS_STATUS_CALLBACK_MAX_LENGTH = 4e3;
|
|
37
36
|
const SMS_STATUS_CALLBACK_READ_TIMEOUT_MS = 5e3;
|
|
38
37
|
const TWILIO_READ_TIMEOUT_MIN_MS = 100;
|
|
@@ -98,8 +97,7 @@ function resolveTwilioStatusCallbackUrl(publicWebhookUrl) {
|
|
|
98
97
|
if (callbackUrl.length > SMS_STATUS_CALLBACK_MAX_LENGTH) return "";
|
|
99
98
|
return callbackUrl;
|
|
100
99
|
}
|
|
101
|
-
|
|
102
|
-
//#region extensions/sms/src/accounts.ts
|
|
100
|
+
// extensions/sms/src/accounts.ts
|
|
103
101
|
const CHANNEL_ID = "sms";
|
|
104
102
|
const DEFAULT_WEBHOOK_PATH = "/webhooks/sms";
|
|
105
103
|
const DEFAULT_TEXT_CHUNK_LIMIT = 1500;
|
|
@@ -200,8 +198,7 @@ function inspectSmsAccount(cfg, accountId) {
|
|
|
200
198
|
function isSmsAccountConfigured(account) {
|
|
201
199
|
return Boolean(account.accountSid && account.authToken && (account.fromNumber || account.messagingServiceSid));
|
|
202
200
|
}
|
|
203
|
-
|
|
204
|
-
//#region extensions/sms/src/credential-availability.ts
|
|
201
|
+
// extensions/sms/src/credential-availability.ts
|
|
205
202
|
function assertSmsCredentialOwnerAvailable(account) {
|
|
206
203
|
assertSecretOwnerAvailable("account", `sms:${account.accountId}`);
|
|
207
204
|
const runtimeConfig = getRuntimeConfigSnapshot();
|
|
@@ -209,8 +206,7 @@ function assertSmsCredentialOwnerAvailable(account) {
|
|
|
209
206
|
const current = resolveSmsAccount(runtimeConfig, account.accountId);
|
|
210
207
|
if (current.accountSid !== account.accountSid || current.authToken !== account.authToken) throw new Error(`SMS credentials changed for ${account.accountId}; retry the operation.`);
|
|
211
208
|
}
|
|
212
|
-
|
|
213
|
-
//#region extensions/sms/src/twilio.ts
|
|
209
|
+
// extensions/sms/src/twilio.ts
|
|
214
210
|
const TWILIO_ACCOUNTS_URL = "https://api.twilio.com/2010-04-01/Accounts";
|
|
215
211
|
const TWILIO_MESSAGING_URL = "https://messaging.twilio.com/v1";
|
|
216
212
|
const TWILIO_API_HOSTNAME = "api.twilio.com";
|
|
@@ -554,5 +550,4 @@ async function sendSmsViaTwilio(params) {
|
|
|
554
550
|
...payload.status?.trim() ? { status: payload.status.trim() } : {}
|
|
555
551
|
};
|
|
556
552
|
}
|
|
557
|
-
//#endregion
|
|
558
553
|
export { normalizeSmsAllowFrom as C, looksLikeSmsPhoneNumber as S, isSmsAccountConfigured as _, listTwilioIncomingPhoneNumbers as a, resolveSmsAccount as b, resolveTwilioInboundSender as c, respondTwiml as d, retrieveTwilioMessagingService as f, inspectSmsAccount as g, assertSmsCredentialOwnerAvailable as h, buildTwilioInboundMessage as i, resolveTwilioMessageSid as l, verifyTwilioSignature as m, TWILIO_MMS_MAX_BYTES as n, listTwilioMessages as o, sendSmsViaTwilio as p, TWIML_CONTENT_TYPE as r, readTwilioWebhookForm as s, TWILIO_MESSAGE_BODY_MAX_LENGTH as t, resolveTwilioWebhookSignatureUrl as u, listSmsAccountIds as v, normalizeSmsPhoneNumber as w, resolveTwilioStatusCallbackUrl as x, resolveDefaultSmsAccountId as y };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"api.js","source":"extensions/sms/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/sms/channel-plugin-api.ts"},{"output":"configured-state.js","source":"extensions/sms/configured-state.ts"},{"output":"index.js","source":"extensions/sms/index.ts"},{"output":"secret-contract-api.js","source":"extensions/sms/secret-contract-api.ts"}],"chunks":[{"output":".setup/media-
|
|
1
|
+
{"version":3,"entries":[{"output":"api.js","source":"extensions/sms/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/sms/channel-plugin-api.ts"},{"output":"configured-state.js","source":"extensions/sms/configured-state.ts"},{"output":"index.js","source":"extensions/sms/index.ts"},{"output":"secret-contract-api.js","source":"extensions/sms/secret-contract-api.ts"}],"chunks":[{"output":".setup/media-CXXQruyp.mjs","sha256":"8ef17805a277197707eed65514124585804d2d020394575ad9d391a16d050692","facadeSource":"extensions/sms/src/media.ts","sources":["extensions/sms/src/media.ts"]},{"output":".setup/runtime-A8rnEOmw.mjs","sha256":"c5421ac4c7b4a75bc7ecbc7c36ec291ca5fea32a88a3ee73d827805382709472","facadeSource":null,"sources":["extensions/sms/src/runtime.ts"]},{"output":".setup/secret-contract-BTxRnkG1.mjs","sha256":"41e6a81aa4b92fa9cc308365fd1b39f027966a6405817436e05ece5a86101289","facadeSource":null,"sources":["extensions/sms/src/secret-contract.ts"]},{"output":".setup/twilio-DlIKNs5E.mjs","sha256":"3ac0a1820c8576fe5d2f84834792d5d60b63ff24ecc5ee9440388930f1783bd6","facadeSource":null,"sources":["extensions/sms/src/accounts.ts","extensions/sms/src/credential-availability.ts","extensions/sms/src/phone.ts","extensions/sms/src/public-webhook-url.ts","extensions/sms/src/twilio.ts"]},{"output":"api.js","sha256":"0af2cd7c6d77163e5a4b5db6d0a330cee812d376309fc5100549c96cfb418095","facadeSource":"extensions/sms/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"fec2e5eaa5321b478a86991b80e54b3f91ee5da82400e9bb35212ab69a326132","facadeSource":"extensions/sms/channel-plugin-api.ts","sources":["extensions/sms/src/channel.ts","extensions/sms/src/config-schema.ts","extensions/sms/src/delivery-observations.ts","extensions/sms/src/gateway.ts","extensions/sms/src/inbound.ts","extensions/sms/src/ingress-spool.ts","extensions/sms/src/send.ts","extensions/sms/src/status.ts","extensions/sms/src/webhook.ts"]},{"output":"configured-state.js","sha256":"e994ab7f874fa87b8fe6ebf177c463524d6eb38b18ce39c81782317ba58d0e33","facadeSource":"extensions/sms/configured-state.ts","sources":["extensions/sms/configured-state.ts"]},{"output":"index.js","sha256":"409b8e41876eb5f13f405dae29989f6208bc6dd05a3a3edca4c045694ed03f08","facadeSource":"extensions/sms/index.ts","sources":["extensions/sms/index.ts"]},{"output":"secret-contract-api.js","sha256":"52f719be12576c4abb7161253c960de8b5001fc164f5e69f7228e57c29a5aed2","facadeSource":"extensions/sms/secret-contract-api.ts","sources":[]}],"unrenderedSources":["extensions/sms/api.ts","extensions/sms/channel-plugin-api.ts","extensions/sms/secret-contract-api.ts"]}
|
package/dist/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as getSmsRuntime, n as setSmsRuntime } from "./.setup/runtime-
|
|
1
|
+
export { t as getSmsRuntime, n as setSmsRuntime } from "./.setup/runtime-A8rnEOmw.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as getSmsRuntime } from "./.setup/runtime-
|
|
2
|
-
import { C as normalizeSmsAllowFrom, S as looksLikeSmsPhoneNumber, _ as isSmsAccountConfigured, a as listTwilioIncomingPhoneNumbers, b as resolveSmsAccount, c as resolveTwilioInboundSender, d as respondTwiml, f as retrieveTwilioMessagingService, g as inspectSmsAccount, h as assertSmsCredentialOwnerAvailable, i as buildTwilioInboundMessage, l as resolveTwilioMessageSid, m as verifyTwilioSignature, o as listTwilioMessages, p as sendSmsViaTwilio, r as TWIML_CONTENT_TYPE, s as readTwilioWebhookForm, t as TWILIO_MESSAGE_BODY_MAX_LENGTH, u as resolveTwilioWebhookSignatureUrl, v as listSmsAccountIds, w as normalizeSmsPhoneNumber, x as resolveTwilioStatusCallbackUrl, y as resolveDefaultSmsAccountId } from "./.setup/twilio-
|
|
3
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-
|
|
1
|
+
import { t as getSmsRuntime } from "./.setup/runtime-A8rnEOmw.mjs";
|
|
2
|
+
import { C as normalizeSmsAllowFrom, S as looksLikeSmsPhoneNumber, _ as isSmsAccountConfigured, a as listTwilioIncomingPhoneNumbers, b as resolveSmsAccount, c as resolveTwilioInboundSender, d as respondTwiml, f as retrieveTwilioMessagingService, g as inspectSmsAccount, h as assertSmsCredentialOwnerAvailable, i as buildTwilioInboundMessage, l as resolveTwilioMessageSid, m as verifyTwilioSignature, o as listTwilioMessages, p as sendSmsViaTwilio, r as TWIML_CONTENT_TYPE, s as readTwilioWebhookForm, t as TWILIO_MESSAGE_BODY_MAX_LENGTH, u as resolveTwilioWebhookSignatureUrl, v as listSmsAccountIds, w as normalizeSmsPhoneNumber, x as resolveTwilioStatusCallbackUrl, y as resolveDefaultSmsAccountId } from "./.setup/twilio-DlIKNs5E.mjs";
|
|
3
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-BTxRnkG1.mjs";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
import { createHybridChannelConfigAdapter, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
6
6
|
import { buildChannelOutboundSessionRoute, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
@@ -23,7 +23,7 @@ import { channelBlockedPatch, channelReadyPatch, channelStoppedPatch } from "ope
|
|
|
23
23
|
import { createWebhookInFlightLimiter, runDetachedWebhookWork, sendHttpRequestRejection } from "openclaw/plugin-sdk/webhook-request-guards";
|
|
24
24
|
import { createChannelPairingChallengeIssuer } from "openclaw/plugin-sdk/channel-pairing";
|
|
25
25
|
import { createChannelPartialDeliveryError } from "openclaw/plugin-sdk/channel-inbound";
|
|
26
|
-
|
|
26
|
+
// extensions/sms/src/config-schema.ts
|
|
27
27
|
const SecretInputSchema = buildSecretInputSchema();
|
|
28
28
|
const SmsAccountConfigSchema = z.object({
|
|
29
29
|
name: z.string().optional(),
|
|
@@ -106,8 +106,7 @@ const SmsChannelConfigSchema = buildChannelConfigSchema(SmsConfigSchema, { uiHin
|
|
|
106
106
|
help: "Maximum characters per outbound SMS chunk before OpenClaw splits long replies."
|
|
107
107
|
}
|
|
108
108
|
} });
|
|
109
|
-
|
|
110
|
-
//#region extensions/sms/src/delivery-observations.ts
|
|
109
|
+
// extensions/sms/src/delivery-observations.ts
|
|
111
110
|
const DELIVERY_NAMESPACE = "twilio-delivery-observations-v1";
|
|
112
111
|
const DELIVERY_RETENTION_MS = 2592e6;
|
|
113
112
|
const DELIVERY_MAX_MESSAGES = 5e3;
|
|
@@ -313,8 +312,7 @@ async function listRecentSmsDeliveryRecords(account, limit = 1, store = openDeli
|
|
|
313
312
|
const accountSidHash = hashAccountSid(account.accountSid);
|
|
314
313
|
return (await store.entries()).map((entry) => entry.value).filter((record) => record.accountId === account.accountId && record.accountSidHash === accountSidHash).toSorted((left, right) => right.lastObservedAt - left.lastObservedAt).slice(0, limit);
|
|
315
314
|
}
|
|
316
|
-
|
|
317
|
-
//#region extensions/sms/src/send.ts
|
|
315
|
+
// extensions/sms/src/send.ts
|
|
318
316
|
const SMS_ASSISTANT_TRANSCRIPT_ROLE_PREFIX = "[assistant-authored transcript] ";
|
|
319
317
|
function createSmsMessageReceipt(params) {
|
|
320
318
|
const receipt = createMessageReceiptFromOutboundResults({
|
|
@@ -446,7 +444,7 @@ async function prepareSmsMediaAttempt(params) {
|
|
|
446
444
|
});
|
|
447
445
|
let hostedMedia;
|
|
448
446
|
try {
|
|
449
|
-
const { prepareHostedSmsMedia } = await import("./.setup/media-
|
|
447
|
+
const { prepareHostedSmsMedia } = await import("./.setup/media-CXXQruyp.mjs");
|
|
450
448
|
assertSmsCredentialOwnerAvailable(params.account);
|
|
451
449
|
const prepared = await prepareHostedSmsMedia({
|
|
452
450
|
account: params.account,
|
|
@@ -476,8 +474,7 @@ async function sendPreparedSmsMediaAttempt(params) {
|
|
|
476
474
|
mediaUrls: [params.attempt.hostedMediaUrl]
|
|
477
475
|
}, ...params.attempt.remainingChunks.map((text) => ({ text }))], "media");
|
|
478
476
|
}
|
|
479
|
-
|
|
480
|
-
//#region extensions/sms/src/inbound.ts
|
|
477
|
+
// extensions/sms/src/inbound.ts
|
|
481
478
|
const CHANNEL_ID$2 = "sms";
|
|
482
479
|
async function authorizeSmsSender(params) {
|
|
483
480
|
const commandRequested = params.channelRuntime.commands.shouldComputeCommandAuthorized(params.rawBody, params.cfg);
|
|
@@ -557,7 +554,7 @@ async function dispatchSmsInboundEvent(params) {
|
|
|
557
554
|
params.log?.warn?.(`SMS sender ${from} is not authorized`);
|
|
558
555
|
return;
|
|
559
556
|
}
|
|
560
|
-
const materialized = params.msg.media.length > 0 || (params.msg.unavailableMediaCount ?? 0) > 0 ? await (await import("./.setup/media-
|
|
557
|
+
const materialized = params.msg.media.length > 0 || (params.msg.unavailableMediaCount ?? 0) > 0 ? await (await import("./.setup/media-CXXQruyp.mjs")).materializeSmsInboundMedia({
|
|
561
558
|
account: params.account,
|
|
562
559
|
msg: params.msg,
|
|
563
560
|
mediaRuntime: params.channelRuntime,
|
|
@@ -712,8 +709,7 @@ async function dispatchSmsInboundEvent(params) {
|
|
|
712
709
|
if (adoptionState === "pending" || adoptionState === "abandoned") await materialized.cleanup();
|
|
713
710
|
}
|
|
714
711
|
}
|
|
715
|
-
|
|
716
|
-
//#region extensions/sms/src/ingress-spool.ts
|
|
712
|
+
// extensions/sms/src/ingress-spool.ts
|
|
717
713
|
const SMS_INGRESS_PAYLOAD_VERSION = 1;
|
|
718
714
|
const SMS_INGRESS_DRAIN_INTERVAL_MS = 500;
|
|
719
715
|
var SmsIngressPermanentError = class extends Error {};
|
|
@@ -815,8 +811,7 @@ function createSmsIngressSpool(params) {
|
|
|
815
811
|
stop: monitor.stop
|
|
816
812
|
};
|
|
817
813
|
}
|
|
818
|
-
|
|
819
|
-
//#region extensions/sms/src/webhook.ts
|
|
814
|
+
// extensions/sms/src/webhook.ts
|
|
820
815
|
const INVALID_REQUEST_MAX_REQUESTS = 300;
|
|
821
816
|
const PRE_AUTH_MAX_IN_FLIGHT = 64;
|
|
822
817
|
const INBOUND_DISPATCH_MAX_REQUESTS = 30;
|
|
@@ -995,8 +990,7 @@ function createSmsWebhookHandler(params) {
|
|
|
995
990
|
return true;
|
|
996
991
|
};
|
|
997
992
|
}
|
|
998
|
-
|
|
999
|
-
//#region extensions/sms/src/gateway.ts
|
|
993
|
+
// extensions/sms/src/gateway.ts
|
|
1000
994
|
const CHANNEL_ID$1 = "sms";
|
|
1001
995
|
const activeRoutePaths = /* @__PURE__ */ new Map();
|
|
1002
996
|
const pendingRouteStops = /* @__PURE__ */ new Map();
|
|
@@ -1060,7 +1054,7 @@ async function registerSmsWebhookRoute(params) {
|
|
|
1060
1054
|
throwOnFailure: true,
|
|
1061
1055
|
log: (msg) => params.log?.info?.(msg),
|
|
1062
1056
|
handler: async (req, res) => {
|
|
1063
|
-
const { tryHandleHostedSmsMediaRequest } = await import("./.setup/media-
|
|
1057
|
+
const { tryHandleHostedSmsMediaRequest } = await import("./.setup/media-CXXQruyp.mjs");
|
|
1064
1058
|
if (await tryHandleHostedSmsMediaRequest(req, res, params.account.accountId)) return true;
|
|
1065
1059
|
return await webhookHandler(req, res);
|
|
1066
1060
|
}
|
|
@@ -1120,8 +1114,7 @@ async function startSmsGatewayAccount(params) {
|
|
|
1120
1114
|
params.statusSink?.(channelStoppedPatch());
|
|
1121
1115
|
});
|
|
1122
1116
|
}
|
|
1123
|
-
|
|
1124
|
-
//#region extensions/sms/src/status.ts
|
|
1117
|
+
// extensions/sms/src/status.ts
|
|
1125
1118
|
const TWILIO_ERROR_WEBHOOK_REACHABILITY = "11200";
|
|
1126
1119
|
function resolveRemoteProbeTimeoutMs(timeoutMs) {
|
|
1127
1120
|
const normalized = Math.max(1, Math.floor(timeoutMs));
|
|
@@ -1360,8 +1353,7 @@ function formatSmsProbeLines(probe) {
|
|
|
1360
1353
|
});
|
|
1361
1354
|
return lines;
|
|
1362
1355
|
}
|
|
1363
|
-
|
|
1364
|
-
//#region extensions/sms/src/channel.ts
|
|
1356
|
+
// extensions/sms/src/channel.ts
|
|
1365
1357
|
const CHANNEL_ID = "sms";
|
|
1366
1358
|
const smsConfigAdapter = createHybridChannelConfigAdapter({
|
|
1367
1359
|
sectionKey: CHANNEL_ID,
|
|
@@ -1775,5 +1767,4 @@ const smsPlugin = createChatChannelPlugin({
|
|
|
1775
1767
|
sendText: sendSmsText
|
|
1776
1768
|
}
|
|
1777
1769
|
});
|
|
1778
|
-
//#endregion
|
|
1779
1770
|
export { smsPlugin };
|
package/dist/configured-state.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_ACCOUNT_ID, hasConfiguredAccountValue } from "openclaw/plugin-sdk/account-core";
|
|
2
|
-
|
|
2
|
+
// extensions/sms/configured-state.ts
|
|
3
3
|
function hasConfiguredSmsAccount(account, env) {
|
|
4
4
|
const hasAccount = hasConfiguredAccountValue(account?.accountSid ?? env.TWILIO_ACCOUNT_SID);
|
|
5
5
|
const hasToken = hasConfiguredAccountValue(account?.authToken ?? env.TWILIO_AUTH_TOKEN);
|
|
@@ -22,5 +22,4 @@ function hasConfiguredSmsChannelState(params) {
|
|
|
22
22
|
...account
|
|
23
23
|
}, {}));
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { hasConfiguredSmsChannelState };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
-
|
|
2
|
+
// extensions/sms/index.ts
|
|
3
3
|
var sms_default = defineBundledChannelEntry({
|
|
4
4
|
id: "sms",
|
|
5
5
|
name: "SMS",
|
|
@@ -14,5 +14,4 @@ var sms_default = defineBundledChannelEntry({
|
|
|
14
14
|
exportName: "setSmsRuntime"
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { sms_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-
|
|
1
|
+
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-BTxRnkG1.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/sms",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.1",
|
|
4
4
|
"description": "OpenClaw SMS/MMS channel plugin for Twilio messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -123,10 +123,10 @@
|
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
"compat": {
|
|
126
|
-
"pluginApi": ">=2026.
|
|
126
|
+
"pluginApi": ">=2026.11.1"
|
|
127
127
|
},
|
|
128
128
|
"build": {
|
|
129
|
-
"openclawVersion": "2026.
|
|
129
|
+
"openclawVersion": "2026.11.1",
|
|
130
130
|
"bundledDist": false
|
|
131
131
|
},
|
|
132
132
|
"install": {
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"assets/activity.svg"
|
|
153
153
|
],
|
|
154
154
|
"peerDependencies": {
|
|
155
|
-
"openclaw": ">=2026.
|
|
155
|
+
"openclaw": ">=2026.11.1"
|
|
156
156
|
},
|
|
157
157
|
"peerDependenciesMeta": {
|
|
158
158
|
"openclaw": {
|