@openclaw/sms 2026.6.33 → 2026.6.34

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.
@@ -561,6 +561,7 @@ async function sendSmsTextChunks(params) {
561
561
  //#region extensions/sms/src/inbound.ts
562
562
  const CHANNEL_ID$2 = "sms";
563
563
  async function authorizeSmsSender(params) {
564
+ const commandRequested = params.channelRuntime.commands.shouldComputeCommandAuthorized(params.rawBody, params.cfg);
564
565
  return await resolveStableChannelMessageIngress({
565
566
  channelId: CHANNEL_ID$2,
566
567
  accountId: params.account.accountId,
@@ -580,7 +581,11 @@ async function authorizeSmsSender(params) {
580
581
  },
581
582
  event: { mayPair: true },
582
583
  dmPolicy: params.account.dmPolicy,
583
- allowFrom: params.account.allowFrom
584
+ allowFrom: params.account.allowFrom,
585
+ command: commandRequested ? {
586
+ cfg: params.cfg,
587
+ modeWhenAccessGroupsOff: "configured"
588
+ } : void 0
584
589
  });
585
590
  }
586
591
  async function issueSmsPairingChallenge(params) {
@@ -615,7 +620,8 @@ async function dispatchSmsInboundEvent(params) {
615
620
  cfg: params.cfg,
616
621
  account: params.account,
617
622
  channelRuntime: params.channelRuntime,
618
- from
623
+ from,
624
+ rawBody: params.msg.body
619
625
  });
620
626
  if (!auth.senderAccess.allowed) {
621
627
  if (auth.senderAccess.decision === "pairing") {
@@ -640,6 +646,9 @@ async function dispatchSmsInboundEvent(params) {
640
646
  }
641
647
  });
642
648
  const sessionKey = route.sessionKey;
649
+ const commandRequested = auth.commandAccess.requested;
650
+ const commandAuthorized = auth.commandAccess.authorized;
651
+ const isTextCommand = params.channelRuntime.commands.isControlCommandMessage(params.msg.body, params.cfg);
643
652
  await params.channelRuntime.inbound.run({
644
653
  channel: CHANNEL_ID$2,
645
654
  accountId: params.account.accountId,
@@ -680,8 +689,15 @@ async function dispatchSmsInboundEvent(params) {
680
689
  commandBody: input.textForCommands,
681
690
  bodyForAgent: input.textForAgent
682
691
  },
692
+ access: commandRequested ? { commands: { authorized: commandAuthorized } } : void 0,
693
+ command: isTextCommand ? {
694
+ kind: "text-slash",
695
+ body: input.textForCommands,
696
+ authorized: commandAuthorized
697
+ } : void 0,
683
698
  extra: {
684
699
  MessageSid: params.msg.messageSid,
700
+ SenderE164: from,
685
701
  To: params.msg.to
686
702
  }
687
703
  });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/sms",
3
- "version": "2026.6.33",
3
+ "version": "2026.6.34",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/sms",
9
- "version": "2026.6.33",
9
+ "version": "2026.6.34",
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.6.33",
3
+ "version": "2026.6.34",
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.6.33"
29
+ "pluginApi": ">=2026.6.34"
30
30
  },
31
31
  "build": {
32
- "openclawVersion": "2026.6.33",
32
+ "openclawVersion": "2026.6.34",
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.6.33"
57
+ "openclaw": ">=2026.6.34"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "openclaw": {