@openclaw/sms 2026.11.5-beta.1 → 2026.11.5-beta.3
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-BF6-nsm2.mjs → media-_9qy6Xis.mjs} +4 -3
- package/dist/.setup/{runtime-A8rnEOmw.mjs → runtime-BBlPgBIF.mjs} +2 -1
- package/dist/.setup/{secret-contract-BTxRnkG1.mjs → secret-contract-B2P_lFGm.mjs} +2 -1
- package/dist/.setup/{twilio-07yIWayE.mjs → twilio-BzT4FTeC.mjs} +10 -5
- package/dist/.source-module-urls/795a0e3f2ca7aa49f58abd6277a5075ff6437cd84711eea7629da8f4ff8f2b43.json +1 -1
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +24 -15
- package/dist/configured-state.js +2 -1
- package/dist/index.js +2 -1
- 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-BBlPgBIF.mjs";
|
|
2
|
+
import { h as assertSmsCredentialOwnerAvailable, n as TWILIO_MMS_MAX_BYTES } from "./twilio-BzT4FTeC.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
|
+
//#region 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;
|
|
@@ -351,4 +351,5 @@ async function tryHandleHostedSmsMediaRequest(req, res, accountId = "default") {
|
|
|
351
351
|
res.end(body);
|
|
352
352
|
return true;
|
|
353
353
|
}
|
|
354
|
+
//#endregion
|
|
354
355
|
export { materializeSmsInboundMedia, prepareHostedSmsMedia, tryHandleHostedSmsMediaRequest };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
2
|
-
|
|
2
|
+
//#region 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
|
|
7
8
|
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
|
+
//#region extensions/sms/src/secret-contract.ts
|
|
3
3
|
const DEFAULT_ACCOUNT_ID = "default";
|
|
4
4
|
function hasTopLevelSmsAccount(channel) {
|
|
5
5
|
return [
|
|
@@ -38,4 +38,5 @@ const channelSecrets = createChannelSecretContract({
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
|
|
41
|
+
//#endregion
|
|
41
42
|
export { collectRuntimeConfigAssignments as n, secretTargetRegistryEntries as r, channelSecrets as t };
|
|
@@ -16,7 +16,7 @@ import { safeParseJson } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
|
16
16
|
import { readRequestBodyWithLimit } from "openclaw/plugin-sdk/webhook-ingress";
|
|
17
17
|
import { assertSecretOwnerAvailable } from "openclaw/plugin-sdk/channel-secret-owner-runtime";
|
|
18
18
|
import { getRuntimeConfigSnapshot } from "openclaw/plugin-sdk/runtime-config-snapshot";
|
|
19
|
-
|
|
19
|
+
//#region extensions/sms/src/phone.ts
|
|
20
20
|
function normalizeSmsPhoneNumber(raw) {
|
|
21
21
|
const trimmed = raw.trim().replace(/^(?:sms|twilio-sms):/i, "").trim();
|
|
22
22
|
if (!trimmed) return "";
|
|
@@ -30,7 +30,8 @@ function normalizeSmsAllowFrom(raw) {
|
|
|
30
30
|
if (raw.trim() === "*") return "*";
|
|
31
31
|
return normalizeSmsPhoneNumber(raw);
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region extensions/sms/src/public-webhook-url.ts
|
|
34
35
|
const SMS_STATUS_CALLBACK_MAX_LENGTH = 4e3;
|
|
35
36
|
const SMS_STATUS_CALLBACK_READ_TIMEOUT_MS = 5e3;
|
|
36
37
|
const TWILIO_READ_TIMEOUT_MIN_MS = 100;
|
|
@@ -96,7 +97,8 @@ function resolveTwilioStatusCallbackUrl(publicWebhookUrl) {
|
|
|
96
97
|
if (callbackUrl.length > SMS_STATUS_CALLBACK_MAX_LENGTH) return "";
|
|
97
98
|
return callbackUrl;
|
|
98
99
|
}
|
|
99
|
-
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region extensions/sms/src/accounts.ts
|
|
100
102
|
const CHANNEL_ID = "sms";
|
|
101
103
|
const DEFAULT_WEBHOOK_PATH = "/webhooks/sms";
|
|
102
104
|
const DEFAULT_TEXT_CHUNK_LIMIT = 1500;
|
|
@@ -197,7 +199,8 @@ function inspectSmsAccount(cfg, accountId) {
|
|
|
197
199
|
function isSmsAccountConfigured(account) {
|
|
198
200
|
return Boolean(account.accountSid && account.authToken && (account.fromNumber || account.messagingServiceSid));
|
|
199
201
|
}
|
|
200
|
-
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region extensions/sms/src/credential-availability.ts
|
|
201
204
|
function assertSmsCredentialOwnerAvailable(account) {
|
|
202
205
|
assertSecretOwnerAvailable("account", `sms:${account.accountId}`);
|
|
203
206
|
const runtimeConfig = getRuntimeConfigSnapshot();
|
|
@@ -205,7 +208,8 @@ function assertSmsCredentialOwnerAvailable(account) {
|
|
|
205
208
|
const current = resolveSmsAccount(runtimeConfig, account.accountId);
|
|
206
209
|
if (current.accountSid !== account.accountSid || current.authToken !== account.authToken) throw new Error(`SMS credentials changed for ${account.accountId}; retry the operation.`);
|
|
207
210
|
}
|
|
208
|
-
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region extensions/sms/src/twilio.ts
|
|
209
213
|
const TWILIO_ACCOUNTS_URL = "https://api.twilio.com/2010-04-01/Accounts";
|
|
210
214
|
const TWILIO_MESSAGING_URL = "https://messaging.twilio.com/v1";
|
|
211
215
|
const TWILIO_API_HOSTNAME = "api.twilio.com";
|
|
@@ -502,4 +506,5 @@ async function sendSmsViaTwilio(params) {
|
|
|
502
506
|
...payload.status?.trim() ? { status: payload.status.trim() } : {}
|
|
503
507
|
};
|
|
504
508
|
}
|
|
509
|
+
//#endregion
|
|
505
510
|
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-_9qy6Xis.mjs","sha256":"e8a275e64d56b73b4e6d42dcf0a1fc146d8e5c148b0e9502a55406ab374833b7","facadeSource":"extensions/sms/src/media.ts","sources":["extensions/sms/src/media.ts"]},{"output":".setup/runtime-BBlPgBIF.mjs","sha256":"07f49993dc1bb200366e725e5a97652108d48562de77db5dfa8a74e75c382e09","facadeSource":null,"sources":["extensions/sms/src/runtime.ts"]},{"output":".setup/secret-contract-B2P_lFGm.mjs","sha256":"2ad2f33482115fcdfafdb522d29360532132d2606442e244bf60d89a9ec7f17f","facadeSource":null,"sources":["extensions/sms/src/secret-contract.ts"]},{"output":".setup/twilio-BzT4FTeC.mjs","sha256":"64aa6defb1e1a30842edf344bd7ef23624b32bacb54f1fce4f038dc835562fcb","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":"381e0b14a492462891f71068d5e667a8f20917a1c74a6bec1815179f36e2f70c","facadeSource":"extensions/sms/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"33cc297910979f25c937f9090a697c2eaa868c6d90cd755dada848046f202c90","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":"08aedff94a9f7708723af589f06d603f69378b48cc7d13668dea6fdd972db559","facadeSource":"extensions/sms/configured-state.ts","sources":["extensions/sms/configured-state.ts"]},{"output":"index.js","sha256":"924eda740b7644f8a2ba48b98dab9d089c40464f8c5b2751700411e8af013c95","facadeSource":"extensions/sms/index.ts","sources":["extensions/sms/index.ts"]},{"output":"secret-contract-api.js","sha256":"a076866845044317bc3264b1bae41301242376c91ee20a3521cafdc519fb8c9a","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-BBlPgBIF.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-BBlPgBIF.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-BzT4FTeC.mjs";
|
|
3
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-B2P_lFGm.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";
|
|
@@ -22,7 +22,7 @@ import { channelBlockedPatch, channelReadyPatch, channelStoppedPatch } from "ope
|
|
|
22
22
|
import { createWebhookInFlightLimiter, runDetachedWebhookWork, sendHttpRequestRejection } from "openclaw/plugin-sdk/webhook-request-guards";
|
|
23
23
|
import { createChannelPairingChallengeIssuer } from "openclaw/plugin-sdk/channel-pairing";
|
|
24
24
|
import { createChannelPartialDeliveryError } from "openclaw/plugin-sdk/channel-inbound";
|
|
25
|
-
|
|
25
|
+
//#region extensions/sms/src/config-schema.ts
|
|
26
26
|
const SecretInputSchema = buildSecretInputSchema();
|
|
27
27
|
const SmsAccountConfigSchema = z.object({
|
|
28
28
|
name: z.string().optional(),
|
|
@@ -105,7 +105,8 @@ const SmsChannelConfigSchema = buildChannelConfigSchema(SmsConfigSchema, { uiHin
|
|
|
105
105
|
help: "Maximum characters per outbound SMS chunk before OpenClaw splits long replies."
|
|
106
106
|
}
|
|
107
107
|
} });
|
|
108
|
-
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region extensions/sms/src/delivery-observations.ts
|
|
109
110
|
const DELIVERY_NAMESPACE = "twilio-delivery-observations-v1";
|
|
110
111
|
const DELIVERY_RETENTION_MS = 2592e6;
|
|
111
112
|
const DELIVERY_MAX_MESSAGES = 5e3;
|
|
@@ -292,7 +293,8 @@ async function listRecentSmsDeliveryRecords(account) {
|
|
|
292
293
|
const accountSidHash = sha256Hex(account.accountSid);
|
|
293
294
|
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, 1);
|
|
294
295
|
}
|
|
295
|
-
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region extensions/sms/src/send.ts
|
|
296
298
|
const SMS_ASSISTANT_TRANSCRIPT_ROLE_PREFIX = "[assistant-authored transcript] ";
|
|
297
299
|
function createSmsMessageReceipt(params) {
|
|
298
300
|
const receipt = createMessageReceiptFromOutboundResults({
|
|
@@ -424,7 +426,7 @@ async function prepareSmsMediaAttempt(params) {
|
|
|
424
426
|
});
|
|
425
427
|
let hostedMedia;
|
|
426
428
|
try {
|
|
427
|
-
const { prepareHostedSmsMedia } = await import("./.setup/media-
|
|
429
|
+
const { prepareHostedSmsMedia } = await import("./.setup/media-_9qy6Xis.mjs");
|
|
428
430
|
assertSmsCredentialOwnerAvailable(params.account);
|
|
429
431
|
const prepared = await prepareHostedSmsMedia({
|
|
430
432
|
account: params.account,
|
|
@@ -454,7 +456,8 @@ async function sendPreparedSmsMediaAttempt(params) {
|
|
|
454
456
|
mediaUrls: [params.attempt.hostedMediaUrl]
|
|
455
457
|
}, ...params.attempt.remainingChunks.map((text) => ({ text }))], "media");
|
|
456
458
|
}
|
|
457
|
-
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region extensions/sms/src/inbound.ts
|
|
458
461
|
const CHANNEL_ID$2 = "sms";
|
|
459
462
|
async function dispatchSmsInboundEvent(params) {
|
|
460
463
|
const from = normalizeSmsPhoneNumber(params.msg.from);
|
|
@@ -523,7 +526,7 @@ async function dispatchSmsInboundEvent(params) {
|
|
|
523
526
|
params.log?.warn?.(`SMS sender ${from} is not authorized`);
|
|
524
527
|
return;
|
|
525
528
|
}
|
|
526
|
-
const materialized = params.msg.media.length > 0 || (params.msg.unavailableMediaCount ?? 0) > 0 ? await (await import("./.setup/media-
|
|
529
|
+
const materialized = params.msg.media.length > 0 || (params.msg.unavailableMediaCount ?? 0) > 0 ? await (await import("./.setup/media-_9qy6Xis.mjs")).materializeSmsInboundMedia({
|
|
527
530
|
account: params.account,
|
|
528
531
|
msg: params.msg,
|
|
529
532
|
mediaRuntime: params.channelRuntime,
|
|
@@ -671,7 +674,8 @@ async function dispatchSmsInboundEvent(params) {
|
|
|
671
674
|
if (adoptionState === "pending" || adoptionState === "abandoned") await materialized.cleanup();
|
|
672
675
|
}
|
|
673
676
|
}
|
|
674
|
-
|
|
677
|
+
//#endregion
|
|
678
|
+
//#region extensions/sms/src/ingress-spool.ts
|
|
675
679
|
const SMS_INGRESS_PAYLOAD_VERSION = 1;
|
|
676
680
|
const SMS_INGRESS_DRAIN_INTERVAL_MS = 500;
|
|
677
681
|
var SmsIngressPermanentError = class extends Error {};
|
|
@@ -773,7 +777,8 @@ function createSmsIngressSpool(params) {
|
|
|
773
777
|
stop: monitor.stop
|
|
774
778
|
};
|
|
775
779
|
}
|
|
776
|
-
|
|
780
|
+
//#endregion
|
|
781
|
+
//#region extensions/sms/src/webhook.ts
|
|
777
782
|
const INVALID_REQUEST_MAX_REQUESTS = 300;
|
|
778
783
|
const PRE_AUTH_MAX_IN_FLIGHT = 64;
|
|
779
784
|
const INBOUND_DISPATCH_MAX_REQUESTS = 30;
|
|
@@ -952,7 +957,8 @@ function createSmsWebhookHandler(params) {
|
|
|
952
957
|
return true;
|
|
953
958
|
};
|
|
954
959
|
}
|
|
955
|
-
|
|
960
|
+
//#endregion
|
|
961
|
+
//#region extensions/sms/src/gateway.ts
|
|
956
962
|
const CHANNEL_ID$1 = "sms";
|
|
957
963
|
const activeRoutePaths = /* @__PURE__ */ new Map();
|
|
958
964
|
const pendingRouteStops = /* @__PURE__ */ new Map();
|
|
@@ -1033,7 +1039,7 @@ async function startSmsGatewayAccount(params) {
|
|
|
1033
1039
|
throwOnFailure: true,
|
|
1034
1040
|
log: (msg) => params.log?.info?.(msg),
|
|
1035
1041
|
handler: async (req, res) => {
|
|
1036
|
-
const { tryHandleHostedSmsMediaRequest } = await import("./.setup/media-
|
|
1042
|
+
const { tryHandleHostedSmsMediaRequest } = await import("./.setup/media-_9qy6Xis.mjs");
|
|
1037
1043
|
if (await tryHandleHostedSmsMediaRequest(req, res, params.account.accountId)) return true;
|
|
1038
1044
|
return await webhookHandler(req, res);
|
|
1039
1045
|
}
|
|
@@ -1076,7 +1082,8 @@ async function startSmsGatewayAccount(params) {
|
|
|
1076
1082
|
params.statusSink?.(channelStoppedPatch());
|
|
1077
1083
|
});
|
|
1078
1084
|
}
|
|
1079
|
-
|
|
1085
|
+
//#endregion
|
|
1086
|
+
//#region extensions/sms/src/status.ts
|
|
1080
1087
|
const TWILIO_ERROR_WEBHOOK_REACHABILITY = "11200";
|
|
1081
1088
|
function resolveRemoteProbeTimeoutMs(timeoutMs) {
|
|
1082
1089
|
const normalized = Math.max(1, Math.floor(timeoutMs));
|
|
@@ -1274,7 +1281,8 @@ function formatSmsProbeLines(probe) {
|
|
|
1274
1281
|
});
|
|
1275
1282
|
return lines;
|
|
1276
1283
|
}
|
|
1277
|
-
|
|
1284
|
+
//#endregion
|
|
1285
|
+
//#region extensions/sms/src/channel.ts
|
|
1278
1286
|
const CHANNEL_ID = "sms";
|
|
1279
1287
|
const smsConfigAdapter = createHybridChannelConfigAdapter({
|
|
1280
1288
|
sectionKey: CHANNEL_ID,
|
|
@@ -1683,4 +1691,5 @@ const smsPlugin = createChatChannelPlugin({
|
|
|
1683
1691
|
sendText: sendSmsText
|
|
1684
1692
|
}
|
|
1685
1693
|
});
|
|
1694
|
+
//#endregion
|
|
1686
1695
|
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
|
+
//#region 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,4 +22,5 @@ function hasConfiguredSmsChannelState(params) {
|
|
|
22
22
|
...account
|
|
23
23
|
}, {}));
|
|
24
24
|
}
|
|
25
|
+
//#endregion
|
|
25
26
|
export { hasConfiguredSmsChannelState };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
-
|
|
2
|
+
//#region extensions/sms/index.ts
|
|
3
3
|
var sms_default = defineBundledChannelEntry({
|
|
4
4
|
id: "sms",
|
|
5
5
|
name: "SMS",
|
|
@@ -14,4 +14,5 @@ var sms_default = defineBundledChannelEntry({
|
|
|
14
14
|
exportName: "setSmsRuntime"
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
+
//#endregion
|
|
17
18
|
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-B2P_lFGm.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/sms",
|
|
3
|
-
"version": "2026.11.5-beta.
|
|
3
|
+
"version": "2026.11.5-beta.3",
|
|
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.11.5-beta.
|
|
126
|
+
"pluginApi": ">=2026.11.5-beta.3"
|
|
127
127
|
},
|
|
128
128
|
"build": {
|
|
129
|
-
"openclawVersion": "2026.11.5-beta.
|
|
129
|
+
"openclawVersion": "2026.11.5-beta.3",
|
|
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.11.5-beta.
|
|
155
|
+
"openclaw": ">=2026.11.5-beta.3"
|
|
156
156
|
},
|
|
157
157
|
"peerDependenciesMeta": {
|
|
158
158
|
"openclaw": {
|