@openclaw/sms 2026.7.2-beta.4 → 2026.7.2-beta.5

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.
@@ -9,7 +9,8 @@ import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
9
9
  import { createEmptyChannelDirectoryAdapter } from "openclaw/plugin-sdk/directory-runtime";
10
10
  import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
11
11
  import { chunkTextForOutbound, renderMarkdownIRChunksWithinLimit, sanitizeAssistantVisibleText, stripMarkdown } from "openclaw/plugin-sdk/text-chunking";
12
- import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, hasConfiguredAccountValue, listCombinedAccountIds, resolveAccountEntry, resolveListedDefaultAccountId, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-resolution";
12
+ import { createAccountListHelpers } from "openclaw/plugin-sdk/account-helpers";
13
+ import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, hasConfiguredAccountValue, resolveAccountEntry } from "openclaw/plugin-sdk/account-resolution";
13
14
  import { parseStrictInteger } from "openclaw/plugin-sdk/number-runtime";
14
15
  import { buildSecretInputSchema, hasConfiguredSecretInput, normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input";
15
16
  import { AllowFromListSchema, DmPolicySchema, buildChannelConfigSchema, buildMultiAccountChannelSchema, requireOpenAllowFrom } from "openclaw/plugin-sdk/channel-config-schema";
@@ -70,30 +71,16 @@ function hasBaseAccount(channelCfg) {
70
71
  process.env.TWILIO_MESSAGING_SERVICE_SID
71
72
  ].some((value) => hasConfiguredAccountValue(value)) || hasConfiguredSecretInput(channelCfg?.authToken);
72
73
  }
73
- function listSmsAccountIds(cfg) {
74
- const channelCfg = getChannelConfig(cfg);
75
- return listCombinedAccountIds({
76
- configuredAccountIds: Object.keys(channelCfg?.accounts ?? {}),
77
- implicitAccountId: hasBaseAccount(channelCfg) ? DEFAULT_ACCOUNT_ID$1 : void 0
78
- });
79
- }
80
- function resolveDefaultSmsAccountId(cfg) {
81
- const channelCfg = getChannelConfig(cfg);
82
- return resolveListedDefaultAccountId({
83
- accountIds: listSmsAccountIds(cfg),
84
- configuredDefaultAccountId: normalizeOptionalAccountId(channelCfg?.defaultAccount)
85
- });
86
- }
74
+ const { listAccountIds: listSmsAccountIds, resolveDefaultAccountId: resolveDefaultSmsAccountId, resolveAccountConfig: resolveMergedSmsAccountConfig } = createAccountListHelpers(CHANNEL_ID$3, {
75
+ fallbackAccountIdWhenEmpty: false,
76
+ hasImplicitDefaultAccount: (cfg) => hasBaseAccount(getChannelConfig(cfg)),
77
+ omitKeys: ["defaultAccount"]
78
+ });
87
79
  function resolveSmsAccount(cfg, accountId) {
88
80
  const channelCfg = getChannelConfig(cfg) ?? {};
89
81
  const id = normalizeOptionalAccountId(accountId) ?? resolveDefaultSmsAccountId(cfg);
90
82
  const accountConfig = resolveAccountEntry(channelCfg.accounts, id);
91
- const merged = resolveMergedAccountConfig({
92
- channelConfig: { ...channelCfg },
93
- accounts: channelCfg.accounts ? Object.fromEntries(Object.entries(channelCfg.accounts).map(([accountKey, account]) => [accountKey, { ...account }])) : void 0,
94
- accountId: id,
95
- omitKeys: ["defaultAccount"]
96
- });
83
+ const merged = resolveMergedSmsAccountConfig(cfg, id);
97
84
  const useEnvFallbacks = id === DEFAULT_ACCOUNT_ID$1;
98
85
  const envAccountSid = useEnvFallbacks ? process.env.TWILIO_ACCOUNT_SID : void 0;
99
86
  const envAuthToken = useEnvFallbacks ? process.env.TWILIO_AUTH_TOKEN : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/sms",
3
- "version": "2026.7.2-beta.4",
3
+ "version": "2026.7.2-beta.5",
4
4
  "description": "OpenClaw SMS channel plugin for Twilio text messages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -124,10 +124,10 @@
124
124
  }
125
125
  },
126
126
  "compat": {
127
- "pluginApi": ">=2026.7.2-beta.4"
127
+ "pluginApi": ">=2026.7.2-beta.5"
128
128
  },
129
129
  "build": {
130
- "openclawVersion": "2026.7.2-beta.4",
130
+ "openclawVersion": "2026.7.2-beta.5",
131
131
  "bundledDist": false
132
132
  },
133
133
  "install": {
@@ -148,11 +148,10 @@
148
148
  "files": [
149
149
  "dist/**",
150
150
  "openclaw.plugin.json",
151
- "npm-shrinkwrap.json",
152
151
  "README.md"
153
152
  ],
154
153
  "peerDependencies": {
155
- "openclaw": ">=2026.7.2-beta.4"
154
+ "openclaw": ">=2026.7.2-beta.5"
156
155
  },
157
156
  "peerDependenciesMeta": {
158
157
  "openclaw": {
@@ -1,24 +0,0 @@
1
- {
2
- "name": "@openclaw/sms",
3
- "version": "2026.7.2-beta.4",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "@openclaw/sms",
9
- "version": "2026.7.2-beta.4",
10
- "dependencies": {
11
- "zod": "4.4.3"
12
- }
13
- },
14
- "node_modules/zod": {
15
- "version": "4.4.3",
16
- "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
17
- "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
18
- "license": "MIT",
19
- "funding": {
20
- "url": "https://github.com/sponsors/colinhacks"
21
- }
22
- }
23
- }
24
- }