@openclaw/mattermost 2026.7.1-beta.1 → 2026.7.1-beta.2

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,4 +1,4 @@
1
- import { a as describeMattermostAccount, c as mattermostMeta, i as MattermostChannelConfigSchema, n as mattermostSetupWizard, o as isMattermostConfigured, r as mattermostSetupAdapter, s as mattermostConfigAdapter, t as mattermostPlugin } from "./channel-plugin-runtime-C7gpYyYd.js";
1
+ import { a as describeMattermostAccount, c as mattermostMeta, i as MattermostChannelConfigSchema, n as mattermostSetupWizard, o as isMattermostConfigured, r as mattermostSetupAdapter, s as mattermostConfigAdapter, t as mattermostPlugin } from "./channel-plugin-runtime-CbFQSpwf.js";
2
2
  import { t as resolveMattermostGatewayAuthBypassPaths } from "./gateway-auth-bypass-BHgOAkk8.js";
3
3
  //#region extensions/mattermost/src/channel.setup.ts
4
4
  const mattermostSetupPlugin = {
@@ -565,7 +565,7 @@ const mattermostSetupWizard = {
565
565
  };
566
566
  //#endregion
567
567
  //#region extensions/mattermost/src/channel.ts
568
- const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BfOTGtEU.js"));
568
+ const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CnE1CD40.js"));
569
569
  function buildMattermostPresentationButtons(presentation) {
570
570
  return presentation.blocks.filter((block) => block.type === "buttons").map((block) => block.buttons.flatMap((button) => {
571
571
  if (button.action) return [];
@@ -1,2 +1,2 @@
1
- import { t as mattermostPlugin } from "./channel-plugin-runtime-C7gpYyYd.js";
1
+ import { t as mattermostPlugin } from "./channel-plugin-runtime-CbFQSpwf.js";
2
2
  export { mattermostPlugin };
@@ -105,7 +105,7 @@ async function listMattermostDirectoryGroups(params) {
105
105
  * user list (unlike channels where membership varies). Uses the first team
106
106
  * returned — multi-team setups will only see members from that team.
107
107
  *
108
- * NOTE: per_page=200 for member listing; same pagination caveat as groups.
108
+ * Uses paginated member listing with per_page=200, the Mattermost API maximum.
109
109
  */
110
110
  async function listMattermostDirectoryPeers(params) {
111
111
  const clients = buildClients(params);
@@ -126,12 +126,22 @@ async function listMattermostDirectoryPeers(params) {
126
126
  })
127
127
  });
128
128
  else {
129
- const userIds = (await client.request(`/teams/${teamId}/members?per_page=200`)).map((m) => m.user_id).filter((id) => id !== me.id);
129
+ const pageSize = 200;
130
+ const userIds = [];
131
+ for (let page = 0;; page += 1) {
132
+ const pageMembers = await client.request(`/teams/${teamId}/members?page=${page}&per_page=${pageSize}`);
133
+ for (const member of pageMembers) if (member.user_id !== me.id) userIds.push(member.user_id);
134
+ if (pageMembers.length < pageSize) break;
135
+ }
130
136
  if (!userIds.length) return [];
131
- users = await client.request("/users/ids", {
132
- method: "POST",
133
- body: JSON.stringify(userIds)
134
- });
137
+ users = [];
138
+ for (let index = 0; index < userIds.length; index += pageSize) {
139
+ const userIdBatch = userIds.slice(index, index + pageSize);
140
+ users.push(...await client.request("/users/ids", {
141
+ method: "POST",
142
+ body: JSON.stringify(userIdBatch)
143
+ }));
144
+ }
135
145
  }
136
146
  const entries = users.filter((u) => u.id !== me.id).map((u) => ({
137
147
  kind: "user",
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@openclaw/mattermost",
3
- "version": "2026.7.1-beta.1",
3
+ "version": "2026.7.1-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/mattermost",
9
- "version": "2026.7.1-beta.1",
9
+ "version": "2026.7.1-beta.2",
10
10
  "dependencies": {
11
11
  "ws": "8.21.0",
12
12
  "zod": "4.4.3"
13
13
  },
14
14
  "peerDependencies": {
15
- "openclaw": ">=2026.7.1-beta.1"
15
+ "openclaw": ">=2026.7.1-beta.2"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/mattermost",
3
- "version": "2026.7.1-beta.1",
3
+ "version": "2026.7.1-beta.2",
4
4
  "description": "OpenClaw Mattermost channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "zod": "4.4.3"
13
13
  },
14
14
  "peerDependencies": {
15
- "openclaw": ">=2026.7.1-beta.1"
15
+ "openclaw": ">=2026.7.1-beta.2"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
@@ -41,10 +41,10 @@
41
41
  "allowInvalidConfigRecovery": true
42
42
  },
43
43
  "compat": {
44
- "pluginApi": ">=2026.7.1-beta.1"
44
+ "pluginApi": ">=2026.7.1-beta.2"
45
45
  },
46
46
  "build": {
47
- "openclawVersion": "2026.7.1-beta.1",
47
+ "openclawVersion": "2026.7.1-beta.2",
48
48
  "bundledDist": false
49
49
  },
50
50
  "release": {