@openclaw/irc 2026.8.1 → 2026.8.33
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/{channel-BxbQEBnS.js → .setup/channel-BZtGDvuy.mjs} +11 -7
- package/dist/.setup/channel-plugin-api-BT4cbfFF.mjs +3 -0
- package/dist/{channel-runtime-DZcQfOqp.js → .setup/channel-runtime-iFUdDSX1.mjs} +7 -6
- package/dist/{config-schema-CpB6AaUh.js → .setup/config-schema-DcYE4WjJ.mjs} +5 -3
- package/dist/.setup/secret-contract-api-ClCcrDAz.mjs +3 -0
- package/dist/api.js +2 -2
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/runtime-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-entry.js +3 -2
- package/package.json +4 -4
- /package/dist/{runtime-xy-FcjJC.js → .setup/runtime-xy-FcjJC.mjs} +0 -0
- /package/dist/{secret-contract-D_DC3YWj.js → .setup/secret-contract-D_DC3YWj.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IrcChannelConfigSchema } from "./config-schema-
|
|
2
|
-
import { t as getIrcRuntime } from "./runtime-xy-FcjJC.
|
|
3
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-D_DC3YWj.
|
|
1
|
+
import { t as IrcChannelConfigSchema } from "./config-schema-DcYE4WjJ.mjs";
|
|
2
|
+
import { t as getIrcRuntime } from "./runtime-xy-FcjJC.mjs";
|
|
3
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-D_DC3YWj.mjs";
|
|
4
4
|
import { createAccountListHelpers, describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
5
5
|
import { formatNormalizedAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
|
|
6
6
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-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:
|
|
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-
|
|
205
|
+
const loadIrcChannelRuntime$1 = createLazyRuntimeModule(() => import("./channel-runtime-iFUdDSX1.mjs"));
|
|
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
|
|
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-
|
|
1573
|
+
const loadIrcChannelRuntime = createLazyRuntimeModule(() => import("./channel-runtime-iFUdDSX1.mjs"));
|
|
1570
1574
|
function normalizePairingTarget(raw) {
|
|
1571
1575
|
const normalized = normalizeIrcAllowEntry(raw);
|
|
1572
1576
|
if (!normalized) return "";
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { t as getIrcRuntime } from "./runtime-xy-FcjJC.
|
|
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-BZtGDvuy.mjs";
|
|
2
|
+
import { t as getIrcRuntime } from "./runtime-xy-FcjJC.mjs";
|
|
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";
|
|
5
5
|
import { bindIngressLifecycleToReplyOptions, createChannelIngressError, createChannelIngressMonitor, resolveChannelStreamingBlockEnabled } from "openclaw/plugin-sdk/channel-outbound";
|
|
@@ -217,10 +217,11 @@ async function handleIrcInbound(params) {
|
|
|
217
217
|
});
|
|
218
218
|
return { kind: "completed" };
|
|
219
219
|
}
|
|
220
|
-
if (message.isGroup)
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
|
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
|
-
})
|
|
94
|
+
});
|
|
95
|
+
const IrcChannelConfigSchema = buildChannelConfigSchema(IrcConfigSchema, { uiHints: ircChannelConfigUiHints });
|
|
94
96
|
//#endregion
|
|
95
97
|
export { IrcChannelConfigSchema as t };
|
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 "
|
|
2
|
-
import { n as setIrcRuntime } from "
|
|
1
|
+
import { _ as listIrcAccountIds, g as listEnabledIrcAccounts, n as ircSetupWizard, r as ircSetupAdapter, t as ircPlugin, v as resolveDefaultIrcAccountId, y as resolveIrcAccount } from "./.setup/channel-BZtGDvuy.mjs";
|
|
2
|
+
import { n as setIrcRuntime } from "./.setup/runtime-xy-FcjJC.mjs";
|
|
3
3
|
export { ircPlugin, ircSetupAdapter, ircSetupWizard, listEnabledIrcAccounts, listIrcAccountIds, resolveDefaultIrcAccountId, resolveIrcAccount, setIrcRuntime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IrcChannelConfigSchema } from "
|
|
1
|
+
import { t as IrcChannelConfigSchema } from "./.setup/config-schema-DcYE4WjJ.mjs";
|
|
2
2
|
export { IrcChannelConfigSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ircPlugin } from "
|
|
1
|
+
import { t as ircPlugin } from "./.setup/channel-BZtGDvuy.mjs";
|
|
2
2
|
export { ircPlugin };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as setIrcRuntime } from "
|
|
1
|
+
import { n as setIrcRuntime } from "./.setup/runtime-xy-FcjJC.mjs";
|
|
2
2
|
export { setIrcRuntime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "
|
|
1
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./.setup/secret-contract-D_DC3YWj.mjs";
|
|
2
2
|
export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
2
3
|
//#region extensions/irc/setup-entry.ts
|
|
3
4
|
var setup_entry_default = defineBundledChannelSetupEntry({
|
|
4
5
|
importMetaUrl: import.meta.url,
|
|
5
6
|
plugin: {
|
|
6
|
-
specifier: "
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/channel-plugin-api-BT4cbfFF.mjs", import.meta.url).href),
|
|
7
8
|
exportName: "ircPlugin"
|
|
8
9
|
},
|
|
9
10
|
secrets: {
|
|
10
|
-
specifier: "
|
|
11
|
+
specifier: fileURLToPath(new URL(".setup/secret-contract-api-ClCcrDAz.mjs", import.meta.url).href),
|
|
11
12
|
exportName: "channelSecrets"
|
|
12
13
|
}
|
|
13
14
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/irc",
|
|
3
|
-
"version": "2026.8.
|
|
3
|
+
"version": "2026.8.33",
|
|
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.
|
|
124
|
+
"pluginApi": ">=2026.8.33"
|
|
125
125
|
},
|
|
126
126
|
"build": {
|
|
127
|
-
"openclawVersion": "2026.8.
|
|
127
|
+
"openclawVersion": "2026.8.33",
|
|
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.
|
|
152
|
+
"openclaw": ">=2026.8.33"
|
|
153
153
|
},
|
|
154
154
|
"peerDependenciesMeta": {
|
|
155
155
|
"openclaw": {
|
|
File without changes
|
|
File without changes
|