@openclaw/sms 2026.7.1-beta.1 → 2026.7.1-beta.4

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.
@@ -1,7 +1,7 @@
1
1
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-CS-JLPcU.js";
2
2
  import { DEFAULT_ACCOUNT_ID, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
3
3
  import { createHybridChannelConfigAdapter, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
4
- import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
4
+ import { buildChannelOutboundSessionRoute, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
5
5
  import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
6
6
  import { createConditionalWarningCollector } from "openclaw/plugin-sdk/channel-policy";
7
7
  import { createEmptyChannelDirectoryAdapter } from "openclaw/plugin-sdk/directory-runtime";
@@ -596,6 +596,7 @@ async function authorizeSmsSender(params) {
596
596
  async function issueSmsPairingChallenge(params) {
597
597
  await createChannelPairingChallengeIssuer({
598
598
  channel: CHANNEL_ID$2,
599
+ accountId: params.account.accountId,
599
600
  upsertPairingRequest: async (input) => await params.channelRuntime.pairing.upsertPairingRequest({
600
601
  channel: CHANNEL_ID$2,
601
602
  accountId: params.account.accountId,
@@ -1182,6 +1183,24 @@ const smsMessageAdapter = defineChannelMessageAdapter({
1182
1183
  } },
1183
1184
  send: { text: async (ctx) => await sendSmsText(ctx) }
1184
1185
  });
1186
+ function resolveSmsOutboundSessionRoute(params) {
1187
+ const to = normalizeSmsPhoneNumber(params.resolvedTarget?.to ?? params.target);
1188
+ if (!looksLikeSmsPhoneNumber(to)) return null;
1189
+ return buildChannelOutboundSessionRoute({
1190
+ cfg: params.cfg,
1191
+ agentId: params.agentId,
1192
+ channel: CHANNEL_ID,
1193
+ accountId: params.accountId,
1194
+ recipientSessionExact: true,
1195
+ peer: {
1196
+ kind: "direct",
1197
+ id: to
1198
+ },
1199
+ chatType: "direct",
1200
+ from: `sms:${to}`,
1201
+ to: `sms:${to}`
1202
+ });
1203
+ }
1185
1204
  const smsPlugin = createChatChannelPlugin({
1186
1205
  base: {
1187
1206
  id: CHANNEL_ID,
@@ -1224,6 +1243,7 @@ const smsPlugin = createChatChannelPlugin({
1224
1243
  messaging: {
1225
1244
  targetPrefixes: ["twilio-sms"],
1226
1245
  normalizeTarget: (target) => normalizeSmsPhoneNumber(target),
1246
+ resolveOutboundSessionRoute: (params) => resolveSmsOutboundSessionRoute(params),
1227
1247
  targetResolver: {
1228
1248
  looksLikeId: looksLikeSmsPhoneNumber,
1229
1249
  hint: "<+15551234567>"
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/sms",
3
- "version": "2026.7.1-beta.1",
3
+ "version": "2026.7.1-beta.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/sms",
9
- "version": "2026.7.1-beta.1",
9
+ "version": "2026.7.1-beta.4",
10
10
  "dependencies": {
11
11
  "zod": "4.4.3"
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/sms",
3
- "version": "2026.7.1-beta.1",
3
+ "version": "2026.7.1-beta.4",
4
4
  "description": "OpenClaw SMS channel plugin for Twilio text messages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,10 +26,10 @@
26
26
  "quickstartAllowFrom": true
27
27
  },
28
28
  "compat": {
29
- "pluginApi": ">=2026.7.1-beta.1"
29
+ "pluginApi": ">=2026.7.1-beta.4"
30
30
  },
31
31
  "build": {
32
- "openclawVersion": "2026.7.1-beta.1",
32
+ "openclawVersion": "2026.7.1-beta.4",
33
33
  "bundledDist": false
34
34
  },
35
35
  "install": {
@@ -54,7 +54,7 @@
54
54
  "README.md"
55
55
  ],
56
56
  "peerDependencies": {
57
- "openclaw": ">=2026.7.1-beta.1"
57
+ "openclaw": ">=2026.7.1-beta.4"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "openclaw": {