@openclaw/irc 2026.8.1 → 2026.8.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.
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as listIrcAccountIds, g as listEnabledIrcAccounts, n as ircSetupWizard, r as ircSetupAdapter, t as ircPlugin, v as resolveDefaultIrcAccountId, y as resolveIrcAccount } from "./channel-BxbQEBnS.js";
1
+ import { _ as listIrcAccountIds, g as listEnabledIrcAccounts, n as ircSetupWizard, r as ircSetupAdapter, t as ircPlugin, v as resolveDefaultIrcAccountId, y as resolveIrcAccount } from "./channel-BVYDQ8Fk.js";
2
2
  import { n as setIrcRuntime } from "./runtime-xy-FcjJC.js";
3
3
  export { ircPlugin, ircSetupAdapter, ircSetupWizard, listEnabledIrcAccounts, listIrcAccountIds, resolveDefaultIrcAccountId, resolveIrcAccount, setIrcRuntime };
@@ -1,4 +1,4 @@
1
- import { t as IrcChannelConfigSchema } from "./config-schema-CpB6AaUh.js";
1
+ import { t as IrcChannelConfigSchema } from "./config-schema-DcYE4WjJ.js";
2
2
  import { t as getIrcRuntime } from "./runtime-xy-FcjJC.js";
3
3
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-D_DC3YWj.js";
4
4
  import { createAccountListHelpers, describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
@@ -189,9 +189,12 @@ function listEnabledIrcAccounts(cfg) {
189
189
  accountId
190
190
  })).filter((account) => account.enabled);
191
191
  }
192
+ //#endregion
193
+ //#region extensions/irc/src/doctor.ts
194
+ const isIrcMutableAllowEntry = buildMutableAllowEntryDetector({ stableIdPattern: /^(?:(?:irc|user):)*[^@]*@/i });
192
195
  const collectIrcMutableAllowlistWarnings = createDangerousNameMatchingMutableAllowlistWarningCollector({
193
196
  channel: "irc",
194
- detector: buildMutableAllowEntryDetector({ stableIdPattern: /^(?:(?:irc|user):)*[^@]*@/i }),
197
+ detector: isIrcMutableAllowEntry,
195
198
  collectLists: (scope) => collectStandardAllowlistLists(scope, {
196
199
  includeGroups: true,
197
200
  groupField: "allowFrom"
@@ -199,7 +202,7 @@ const collectIrcMutableAllowlistWarnings = createDangerousNameMatchingMutableAll
199
202
  });
200
203
  //#endregion
201
204
  //#region extensions/irc/src/gateway.ts
202
- const loadIrcChannelRuntime$1 = createLazyRuntimeModule(() => import("./channel-runtime-DZcQfOqp.js"));
205
+ const loadIrcChannelRuntime$1 = createLazyRuntimeModule(() => import("./channel-runtime-Ywcn0k9_.js"));
203
206
  async function startIrcGatewayAccount(ctx) {
204
207
  const account = ctx.account;
205
208
  const statusSink = createAccountStatusSink({
@@ -1394,7 +1397,8 @@ const ircSetupWizard = {
1394
1397
  return String(defaultPort);
1395
1398
  },
1396
1399
  validate: ({ value }) => {
1397
- const parsed = parseStrictPositiveInteger(normalizeStringifiedOptionalString(value) ?? "");
1400
+ const raw = normalizeStringifiedOptionalString(value) ?? "";
1401
+ const parsed = parseStrictPositiveInteger(raw);
1398
1402
  return parsed !== void 0 && parsed <= 65535 ? void 0 : "Use a port between 1 and 65535";
1399
1403
  },
1400
1404
  normalizeValue: ({ value }) => String(parsePort(value, 6697)),
@@ -1566,7 +1570,7 @@ const meta = {
1566
1570
  systemImage: "number",
1567
1571
  markdownCapable: true
1568
1572
  };
1569
- const loadIrcChannelRuntime = createLazyRuntimeModule(() => import("./channel-runtime-DZcQfOqp.js"));
1573
+ const loadIrcChannelRuntime = createLazyRuntimeModule(() => import("./channel-runtime-Ywcn0k9_.js"));
1570
1574
  function normalizePairingTarget(raw) {
1571
1575
  const normalized = normalizeIrcAllowEntry(raw);
1572
1576
  if (!normalized) return "";
@@ -1,2 +1,2 @@
1
- import { t as IrcChannelConfigSchema } from "./config-schema-CpB6AaUh.js";
1
+ import { t as IrcChannelConfigSchema } from "./config-schema-DcYE4WjJ.js";
2
2
  export { IrcChannelConfigSchema };
@@ -1,2 +1,2 @@
1
- import { t as ircPlugin } from "./channel-BxbQEBnS.js";
1
+ import { t as ircPlugin } from "./channel-BVYDQ8Fk.js";
2
2
  export { ircPlugin };
@@ -1,4 +1,4 @@
1
- import { a as resolveIrcGroupRequireMention, c as connectIrcClient, d as sanitizeIrcAssistantText, f as createIrcIngressSubject, h as normalizeIrcAllowEntry, i as resolveIrcGroupMatch, l as parseIrcLine, m as isChannelTarget, o as sendMessageIrc, p as ircIngressIdentity, s as buildIrcConnectOptions, u as parseIrcPrefix, y as resolveIrcAccount } from "./channel-BxbQEBnS.js";
1
+ import { a as resolveIrcGroupRequireMention, c as connectIrcClient, d as sanitizeIrcAssistantText, f as createIrcIngressSubject, h as normalizeIrcAllowEntry, i as resolveIrcGroupMatch, l as parseIrcLine, m as isChannelTarget, o as sendMessageIrc, p as ircIngressIdentity, s as buildIrcConnectOptions, u as parseIrcPrefix, y as resolveIrcAccount } from "./channel-BVYDQ8Fk.js";
2
2
  import { t as getIrcRuntime } from "./runtime-xy-FcjJC.js";
3
3
  import { channelIngressRoutes, createChannelIngressResolver } from "openclaw/plugin-sdk/channel-ingress-runtime";
4
4
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -217,10 +217,11 @@ async function handleIrcInbound(params) {
217
217
  });
218
218
  return { kind: "completed" };
219
219
  }
220
- if (message.isGroup) if (access.routeAccess.reason === "channel_not_allowlisted") runtime.log?.(`irc: drop channel ${message.target} (not allowlisted)`);
221
- else if (access.routeAccess.reason === "channel_disabled") runtime.log?.(`irc: drop channel ${message.target} (disabled)`);
222
- else runtime.log?.(`irc: drop group sender ${senderDisplay} (policy=${groupPolicy})`);
223
- else runtime.log?.(`irc: drop DM sender ${senderDisplay} (dmPolicy=${dmPolicy})`);
220
+ if (message.isGroup) {
221
+ if (access.routeAccess.reason === "channel_not_allowlisted") runtime.log?.(`irc: drop channel ${message.target} (not allowlisted)`);
222
+ else if (access.routeAccess.reason === "channel_disabled") runtime.log?.(`irc: drop channel ${message.target} (disabled)`);
223
+ else runtime.log?.(`irc: drop group sender ${senderDisplay} (policy=${groupPolicy})`);
224
+ } else runtime.log?.(`irc: drop DM sender ${senderDisplay} (dmPolicy=${dmPolicy})`);
224
225
  return { kind: "completed" };
225
226
  }
226
227
  if (turnAdoptionLifecycle?.abortSignal.aborted) return {
@@ -56,7 +56,7 @@ const IrcNickServSchema = z.object({
56
56
  message: "channels.irc.nickserv.register=true requires channels.irc.nickserv.registerEmail"
57
57
  });
58
58
  });
59
- const IrcChannelConfigSchema = buildChannelConfigSchema(buildMultiAccountChannelSchema(z.object({
59
+ const IrcAccountSchemaBase = z.object({
60
60
  name: z.string().optional(),
61
61
  enabled: z.boolean().optional(),
62
62
  configWrites: z.boolean().optional(),
@@ -79,7 +79,8 @@ const IrcChannelConfigSchema = buildChannelConfigSchema(buildMultiAccountChannel
79
79
  channels: z.array(z.string()).optional(),
80
80
  markdown: MarkdownConfigSchema,
81
81
  ...ReplyRuntimeConfigSchemaShape
82
- }).strict(), {
82
+ }).strict();
83
+ const IrcConfigSchema = buildMultiAccountChannelSchema(IrcAccountSchemaBase, {
83
84
  optionalAccount: true,
84
85
  refine: (value, ctx) => {
85
86
  requireOpenAllowFrom({
@@ -90,6 +91,7 @@ const IrcChannelConfigSchema = buildChannelConfigSchema(buildMultiAccountChannel
90
91
  message: "channels.irc.dmPolicy=\"open\" requires channels.irc.allowFrom to include \"*\""
91
92
  });
92
93
  }
93
- }), { uiHints: ircChannelConfigUiHints });
94
+ });
95
+ const IrcChannelConfigSchema = buildChannelConfigSchema(IrcConfigSchema, { uiHints: ircChannelConfigUiHints });
94
96
  //#endregion
95
97
  export { IrcChannelConfigSchema as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/irc",
3
- "version": "2026.8.1",
3
+ "version": "2026.8.2",
4
4
  "description": "OpenClaw IRC channel plugin",
5
5
  "type": "module",
6
6
  "openclaw": {
@@ -121,10 +121,10 @@
121
121
  }
122
122
  },
123
123
  "compat": {
124
- "pluginApi": ">=2026.8.1"
124
+ "pluginApi": ">=2026.8.2"
125
125
  },
126
126
  "build": {
127
- "openclawVersion": "2026.8.1",
127
+ "openclawVersion": "2026.8.2",
128
128
  "bundledDist": false
129
129
  },
130
130
  "release": {
@@ -149,7 +149,7 @@
149
149
  "README.md"
150
150
  ],
151
151
  "peerDependencies": {
152
- "openclaw": ">=2026.8.1"
152
+ "openclaw": ">=2026.8.2"
153
153
  },
154
154
  "peerDependenciesMeta": {
155
155
  "openclaw": {