@openclaw/tlon 2026.9.6 → 2026.9.7

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.
@@ -0,0 +1,189 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __exportAll = (all, no_symbols) => {
7
+ let target = {};
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ return target;
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
17
+ key = keys[i];
18
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: ((k) => from[k]).bind(null, key),
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
24
+ };
25
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
26
+ //#endregion
27
+ //#region packages/normalization-core/src/record-coerce.ts
28
+ /** Type guard for non-array object records at browser-safe boundaries. */
29
+ function isRecord(value) {
30
+ return value !== null && typeof value === "object" && !Array.isArray(value);
31
+ }
32
+ /** Returns a non-array record or null. */
33
+ function asNullableRecord(value) {
34
+ return isRecord(value) ? value : null;
35
+ }
36
+ //#endregion
37
+ //#region src/config/channel-config-normalization.ts
38
+ /** Applies one channel-specific doctor migration to every object-shaped account. */
39
+ function normalizeChannelAccounts(params) {
40
+ const rawAccounts = asNullableRecord(params.entry.accounts);
41
+ if (!rawAccounts) return {
42
+ entry: params.entry,
43
+ changed: false
44
+ };
45
+ let changed = false;
46
+ const accounts = { ...rawAccounts };
47
+ for (const [accountId, value] of Object.entries(rawAccounts)) {
48
+ const account = asNullableRecord(value);
49
+ if (!account) continue;
50
+ const normalized = params.normalizeAccount({
51
+ account,
52
+ accountId,
53
+ pathPrefix: `${params.pathPrefix}.accounts.${accountId}`,
54
+ changes: params.changes
55
+ });
56
+ if (normalized.changed) {
57
+ accounts[accountId] = normalized.entry;
58
+ changed = true;
59
+ }
60
+ }
61
+ return changed ? {
62
+ entry: {
63
+ ...params.entry,
64
+ accounts
65
+ },
66
+ changed: true
67
+ } : {
68
+ entry: params.entry,
69
+ changed: false
70
+ };
71
+ }
72
+ /** Applies the same channel-specific doctor migration at root and account scope. */
73
+ function normalizeChannelConfigEntries(params) {
74
+ const changes = params.changes ?? [];
75
+ const channels = params.cfg.channels;
76
+ const entry = asNullableRecord(channels?.[params.channelId]);
77
+ if (!entry) return {
78
+ config: params.cfg,
79
+ changes
80
+ };
81
+ const channelPath = `channels.${params.channelId}`;
82
+ const root = params.normalizeEntry({
83
+ entry,
84
+ pathPrefix: channelPath,
85
+ changes
86
+ });
87
+ const accounts = normalizeChannelAccounts({
88
+ entry: root.entry,
89
+ pathPrefix: channelPath,
90
+ changes,
91
+ normalizeAccount: (accountParams) => params.normalizeEntry({
92
+ entry: accountParams.account,
93
+ accountId: accountParams.accountId,
94
+ pathPrefix: accountParams.pathPrefix,
95
+ changes: accountParams.changes
96
+ })
97
+ });
98
+ if (!root.changed && !accounts.changed) return {
99
+ config: params.cfg,
100
+ changes
101
+ };
102
+ return {
103
+ config: {
104
+ ...params.cfg,
105
+ channels: {
106
+ ...channels,
107
+ [params.channelId]: accounts.entry
108
+ }
109
+ },
110
+ changes
111
+ };
112
+ }
113
+ //#endregion
114
+ //#region src/plugin-sdk/legacy-webhook-listener-migration.ts
115
+ /** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
116
+ function createLegacyWebhookListenerDoctorContract(params) {
117
+ const portKey = params.portKey ?? "webhookPort";
118
+ const hostKey = params.hostKey === void 0 ? "webhookHost" : params.hostKey;
119
+ const source = (entry) => params.webhookKey ? asNullableRecord(entry[params.webhookKey]) : entry;
120
+ const hasLegacy = (value) => {
121
+ const entry = asNullableRecord(value);
122
+ const listener = entry && source(entry);
123
+ return Boolean(listener && (Object.hasOwn(listener, portKey) || hostKey && Object.hasOwn(listener, hostKey)));
124
+ };
125
+ const prefix = `channels.${params.channelKey}`;
126
+ return {
127
+ legacyConfigRules: [{
128
+ path: ["channels", params.channelKey],
129
+ message: `${prefix} webhook listeners moved to Gateway routes. Run "openclaw doctor --fix" to preserve explicitly configured listener settings as legacyWebhook.`,
130
+ match: (value) => {
131
+ const accounts = asNullableRecord(asNullableRecord(value)?.accounts);
132
+ return hasLegacy(value) || Object.values(accounts ?? {}).some(hasLegacy);
133
+ }
134
+ }],
135
+ normalizeCompatibilityConfig: ({ cfg }) => {
136
+ const root = asNullableRecord(asNullableRecord(cfg.channels)?.[params.channelKey]);
137
+ const inherited = root && source(root);
138
+ const canonicalRoot = asNullableRecord(root?.legacyWebhook);
139
+ return normalizeChannelConfigEntries({
140
+ cfg,
141
+ channelId: params.channelKey,
142
+ normalizeEntry: ({ entry, accountId, pathPrefix, changes }) => {
143
+ const listener = source(entry);
144
+ if (!listener || !hasLegacy(entry)) return {
145
+ entry,
146
+ changed: false
147
+ };
148
+ const next = { ...entry };
149
+ const port = Object.hasOwn(listener, portKey) ? listener[portKey] : (accountId ? canonicalRoot?.port ?? inherited?.[portKey] : void 0) ?? params.defaultPort;
150
+ const inheritedHost = accountId ? canonicalRoot ? canonicalRoot.host : (hostKey ? inherited?.[hostKey] : void 0) ?? params.defaultHost : params.defaultHost;
151
+ const host = hostKey ? listener[hostKey] ?? inheritedHost : inheritedHost;
152
+ const legacyPath = [pathPrefix, params.webhookKey].filter(Boolean).join(".");
153
+ if (Object.hasOwn(entry, "legacyWebhook")) changes.push(`Removed ${legacyPath} legacy listener keys; ${pathPrefix}.legacyWebhook is already configured.`);
154
+ else if (accountId && root?.legacyWebhook === false) changes.push(`Removed ${legacyPath} legacy listener keys; ${prefix}.legacyWebhook: false keeps this account's inherited listener disabled.`);
155
+ else {
156
+ next.legacyWebhook = {
157
+ port,
158
+ ...host !== void 0 ? { host } : {}
159
+ };
160
+ changes.push(`Moved ${legacyPath} listener settings to ${pathPrefix}.legacyWebhook. Point the external callback or reverse proxy at the Gateway port and webhook path, verify delivery, then set legacyWebhook: false to disable legacy forwarding.`);
161
+ }
162
+ const updated = params.webhookKey ? { ...listener } : next;
163
+ delete updated[portKey];
164
+ if (hostKey) delete updated[hostKey];
165
+ if (params.webhookKey) {
166
+ if (Object.keys(updated).length) next[params.webhookKey] = updated;
167
+ else delete next[params.webhookKey];
168
+ }
169
+ return {
170
+ entry: next,
171
+ changed: true
172
+ };
173
+ }
174
+ });
175
+ }
176
+ };
177
+ }
178
+ //#endregion
179
+ //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
180
+ var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
181
+ import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
182
+ __reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
183
+ //#endregion
184
+ //#region extensions/tlon/src/doctor-contract.ts
185
+ const contract = (0, runtime_doctor_migrations_exports.createLegacyPrivateNetworkDoctorContract)({ channelKey: "tlon" });
186
+ const legacyConfigRules = contract.legacyConfigRules;
187
+ const normalizeCompatibilityConfig = contract.normalizeCompatibilityConfig;
188
+ //#endregion
189
+ export { __reExport as i, normalizeCompatibilityConfig as n, __exportAll as r, legacyConfigRules as t };
@@ -158,6 +158,7 @@ function resolveTlonAccount(cfg, accountId) {
158
158
  name: merged.name ?? null,
159
159
  enabled: merged.enabled !== false,
160
160
  configured,
161
+ requireMentionInBotThreads: merged.requireMentionInBotThreads,
161
162
  mediaMaxBytes: resolveChannelMediaMaxBytes({
162
163
  cfg,
163
164
  accountId: resolvedAccountId,
@@ -215,11 +216,10 @@ function validateUrbitBaseUrl(raw) {
215
216
  ok: false,
216
217
  error: "Invalid hostname"
217
218
  };
218
- const isIpv6 = hostname.includes(":");
219
- const host = parsed.port ? `${isIpv6 ? `[${hostname}]` : hostname}:${parsed.port}` : isIpv6 ? `[${hostname}]` : hostname;
219
+ parsed.hostname = hostname;
220
220
  return {
221
221
  ok: true,
222
- baseUrl: `${parsed.protocol}//${host}`,
222
+ baseUrl: parsed.origin,
223
223
  hostname
224
224
  };
225
225
  }
@@ -231,15 +231,9 @@ function isBlockedUrbitHostname(hostname) {
231
231
  //#endregion
232
232
  //#region extensions/tlon/src/setup-core.ts
233
233
  const t = createSetupTranslator();
234
- function tlonChannelId() {
235
- return "tlon";
236
- }
237
- function isConfigured(account) {
238
- return Boolean(account.ship && account.url && account.code);
239
- }
240
- function createTlonSetupWizardBase(params) {
234
+ function createTlonSetupWizardBase(finalize) {
241
235
  return {
242
- channel: tlonChannelId(),
236
+ channel: "tlon",
243
237
  status: {
244
238
  configuredLabel: t("wizard.channels.statusConfigured"),
245
239
  unconfiguredLabel: t("wizard.channels.statusNeedsSetup"),
@@ -247,15 +241,11 @@ function createTlonSetupWizardBase(params) {
247
241
  unconfiguredHint: t("wizard.channels.statusUrbitMessenger"),
248
242
  configuredScore: 1,
249
243
  unconfiguredScore: 4,
250
- resolveConfigured: ({ cfg, accountId }) => params.resolveConfigured({
251
- cfg,
252
- accountId
253
- }),
254
- resolveStatusLines: ({ cfg, accountId, configured }) => params.resolveStatusLines?.({
255
- cfg,
256
- accountId,
257
- configured
258
- }) ?? []
244
+ resolveConfigured: ({ cfg, accountId }) => resolveTlonSetupConfigured(cfg, accountId),
245
+ resolveStatusLines: async ({ cfg, accountId }) => {
246
+ const configured = await resolveTlonSetupConfigured(cfg, accountId);
247
+ return [`${accountId && accountId !== DEFAULT_ACCOUNT_ID ? `Tlon (${accountId})` : "Tlon"}: ${configured ? "configured" : "needs setup"}`];
248
+ }
259
249
  },
260
250
  introNote: {
261
251
  title: t("wizard.tlon.setupTitle"),
@@ -314,24 +304,20 @@ function createTlonSetupWizardBase(params) {
314
304
  })
315
305
  }
316
306
  ],
317
- finalize: params.finalize
307
+ finalize
318
308
  };
319
309
  }
320
310
  async function resolveTlonSetupConfigured(cfg, accountId) {
321
- if (accountId) return isConfigured(resolveTlonAccount(cfg, accountId));
311
+ if (accountId) return resolveTlonAccount(cfg, accountId).configured;
322
312
  const accountIds = listTlonAccountIds(cfg);
323
- return accountIds.length > 0 ? accountIds.some((resolvedAccountId) => isConfigured(resolveTlonAccount(cfg, resolvedAccountId))) : isConfigured(resolveTlonAccount(cfg, DEFAULT_ACCOUNT_ID));
324
- }
325
- async function resolveTlonSetupStatusLines(cfg, accountId) {
326
- const configured = await resolveTlonSetupConfigured(cfg, accountId);
327
- return [`${accountId && accountId !== DEFAULT_ACCOUNT_ID ? `Tlon (${accountId})` : "Tlon"}: ${configured ? "configured" : "needs setup"}`];
313
+ return accountIds.length > 0 ? accountIds.some((resolvedAccountId) => resolveTlonAccount(cfg, resolvedAccountId).configured) : resolveTlonAccount(cfg, DEFAULT_ACCOUNT_ID).configured;
328
314
  }
329
315
  function applyTlonSetupConfig(params) {
330
316
  const { cfg, accountId, input } = params;
331
317
  const useDefault = accountId === DEFAULT_ACCOUNT_ID;
332
318
  const namedConfig = prepareScopedSetupConfig({
333
319
  cfg,
334
- channelKey: tlonChannelId(),
320
+ channelKey: "tlon",
335
321
  accountId,
336
322
  name: input.name
337
323
  });
@@ -339,7 +325,7 @@ function applyTlonSetupConfig(params) {
339
325
  const payload = buildTlonAccountFields(input);
340
326
  return patchScopedAccountConfig({
341
327
  cfg: namedConfig,
342
- channelKey: tlonChannelId(),
328
+ channelKey: "tlon",
343
329
  accountId,
344
330
  patch: useDefault ? {
345
331
  enabled: true,
@@ -368,7 +354,7 @@ const tlonSetupAdapter = {
368
354
  },
369
355
  applyAccountName: ({ cfg, accountId, name }) => prepareScopedSetupConfig({
370
356
  cfg,
371
- channelKey: tlonChannelId(),
357
+ channelKey: "tlon",
372
358
  accountId,
373
359
  name
374
360
  }),
@@ -455,4 +441,4 @@ const tlonSetupContract = defineChannelSetupContract({
455
441
  legacyAdapter: tlonSetupAdapter
456
442
  });
457
443
  //#endregion
458
- export { tlonSetupAdapter as a, normalizeUrbitHostname as c, resolveTlonAccount as d, formatTargetHint as f, resolveTlonOutboundTarget as g, parseTlonTarget as h, resolveTlonSetupStatusLines as i, validateUrbitBaseUrl as l, parseChannelNest as m, createTlonSetupWizardBase as n, tlonSetupContract as o, normalizeShip as p, resolveTlonSetupConfigured as r, isBlockedUrbitHostname as s, applyTlonSetupConfig as t, listTlonAccountIds as u };
444
+ export { isBlockedUrbitHostname as a, listTlonAccountIds as c, normalizeShip as d, parseChannelNest as f, tlonSetupContract as i, resolveTlonAccount as l, resolveTlonOutboundTarget as m, createTlonSetupWizardBase as n, normalizeUrbitHostname as o, parseTlonTarget as p, tlonSetupAdapter as r, validateUrbitBaseUrl as s, applyTlonSetupConfig as t, formatTargetHint as u };
@@ -0,0 +1,71 @@
1
+ import { a as isBlockedUrbitHostname, d as normalizeShip, l as resolveTlonAccount, n as createTlonSetupWizardBase, s as validateUrbitBaseUrl, t as applyTlonSetupConfig } from "./setup-core-Bktn6kgm.mjs";
2
+ import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
3
+ import { createSetupTranslator } from "openclaw/plugin-sdk/setup-runtime";
4
+ //#region extensions/tlon/src/setup-surface.ts
5
+ const t = createSetupTranslator();
6
+ function parseList(value) {
7
+ return normalizeStringEntries(value.split(/[\n,;]+/g));
8
+ }
9
+ const tlonSetupWizard = createTlonSetupWizardBase(async ({ cfg, accountId, prompter }) => {
10
+ let next = cfg;
11
+ const resolved = resolveTlonAccount(next, accountId);
12
+ const validatedUrl = validateUrbitBaseUrl(resolved.url ?? "");
13
+ if (!validatedUrl.ok) throw new Error(`Invalid URL: ${validatedUrl.error}`);
14
+ let dangerouslyAllowPrivateNetwork = resolved.dangerouslyAllowPrivateNetwork ?? false;
15
+ if (isBlockedUrbitHostname(validatedUrl.hostname)) {
16
+ dangerouslyAllowPrivateNetwork = await prompter.confirm({
17
+ message: t("wizard.tlon.privateNetworkPrompt"),
18
+ initialValue: dangerouslyAllowPrivateNetwork
19
+ });
20
+ if (!dangerouslyAllowPrivateNetwork) throw new Error("Refusing private/internal ship URL without explicit network opt-in");
21
+ }
22
+ next = applyTlonSetupConfig({
23
+ cfg: next,
24
+ accountId,
25
+ input: { dangerouslyAllowPrivateNetwork }
26
+ });
27
+ const currentGroups = resolved.groupChannels;
28
+ if (await prompter.confirm({
29
+ message: t("wizard.tlon.addGroupsPrompt"),
30
+ initialValue: currentGroups.length > 0
31
+ })) {
32
+ const entry = await prompter.text({
33
+ message: t("wizard.tlon.groupChannelsPrompt"),
34
+ placeholder: "chat/~host-ship/general, chat/~host-ship/support",
35
+ initialValue: currentGroups.join(", ") || void 0
36
+ });
37
+ next = applyTlonSetupConfig({
38
+ cfg: next,
39
+ accountId,
40
+ input: { groupChannels: parseList(entry ?? "") }
41
+ });
42
+ }
43
+ const currentAllowlist = resolved.dmAllowlist;
44
+ if (await prompter.confirm({
45
+ message: t("wizard.tlon.restrictDmsPrompt"),
46
+ initialValue: currentAllowlist.length > 0
47
+ })) {
48
+ const entry = await prompter.text({
49
+ message: t("wizard.tlon.dmAllowlistPrompt"),
50
+ placeholder: "~zod, ~nec",
51
+ initialValue: currentAllowlist.join(", ") || void 0
52
+ });
53
+ next = applyTlonSetupConfig({
54
+ cfg: next,
55
+ accountId,
56
+ input: { dmAllowlist: parseList(entry ?? "").map((ship) => normalizeShip(ship)) }
57
+ });
58
+ }
59
+ const autoDiscoverChannels = await prompter.confirm({
60
+ message: t("wizard.tlon.autoDiscoveryPrompt"),
61
+ initialValue: resolved.autoDiscoverChannels ?? true
62
+ });
63
+ next = applyTlonSetupConfig({
64
+ cfg: next,
65
+ accountId,
66
+ input: { autoDiscoverChannels }
67
+ });
68
+ return { cfg: next };
69
+ });
70
+ //#endregion
71
+ export { tlonSetupWizard as t };
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as ssrfPolicyFromDangerouslyAllowPrivateNetwork, i as isBlockedHostnameOrIp, n as createDedupeCache, o as createLoggerBackedRuntime, r as fetchWithSsrFGuard, t as SsrFBlockedError } from "./.setup/runtime-api-BXVe40nS.mjs";
2
- import { t as tlonPlugin } from "./.setup/channel-D8GA_UwK.mjs";
1
+ import { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "./runtime-api.js";
2
+ import { t as tlonPlugin } from "./.setup/channel-DNzlsYXc.mjs";
3
3
  import { n as setTlonRuntime } from "./.setup/runtime-Ck3lNvST.mjs";
4
4
  export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
@@ -1,2 +1,2 @@
1
- import { t as tlonPlugin } from "./.setup/channel-D8GA_UwK.mjs";
1
+ import { t as tlonPlugin } from "./.setup/channel-DNzlsYXc.mjs";
2
2
  export { tlonPlugin };
@@ -1,2 +1,2 @@
1
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-CZ8OWBXt.mjs";
1
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-BiiG6XQ7.mjs";
2
2
  export { legacyConfigRules, normalizeCompatibilityConfig };
@@ -1,2 +1,4 @@
1
- import { a as ssrfPolicyFromDangerouslyAllowPrivateNetwork, i as isBlockedHostnameOrIp, n as createDedupeCache, o as createLoggerBackedRuntime, r as fetchWithSsrFGuard, t as SsrFBlockedError } from "./.setup/runtime-api-BXVe40nS.mjs";
1
+ import { createDedupeCache } from "openclaw/plugin-sdk/core";
2
+ import { createLoggerBackedRuntime } from "openclaw/plugin-sdk/runtime";
3
+ import { SsrFBlockedError, fetchWithSsrFGuard, isBlockedHostnameOrIp, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
2
4
  export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, ssrfPolicyFromDangerouslyAllowPrivateNetwork };
package/dist/setup-api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as tlonSetupAdapter } from "./.setup/setup-core-Ny4-ZMK0.mjs";
2
- import { t as tlonSetupWizard } from "./.setup/setup-surface-C4uWCLAo.mjs";
1
+ import { r as tlonSetupAdapter } from "./.setup/setup-core-Bktn6kgm.mjs";
2
+ import { t as tlonSetupWizard } from "./.setup/setup-surface-BemXwGis.mjs";
3
3
  export { tlonSetupAdapter, tlonSetupWizard };
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/api-CJ5-eCcN.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/api-zkJ1V5qJ.mjs", import.meta.url).href),
8
8
  exportName: "tlonPlugin"
9
9
  }
10
10
  });
@@ -90,6 +90,9 @@
90
90
  "responsePrefix": {
91
91
  "type": "string"
92
92
  },
93
+ "requireMentionInBotThreads": {
94
+ "type": "boolean"
95
+ },
93
96
  "implicitMentions": {
94
97
  "type": "object",
95
98
  "properties": {
@@ -144,6 +147,9 @@
144
147
  "type": "string",
145
148
  "minLength": 1
146
149
  }
150
+ },
151
+ "requireMentionInBotThreads": {
152
+ "type": "boolean"
147
153
  }
148
154
  },
149
155
  "additionalProperties": false
@@ -229,6 +235,9 @@
229
235
  "responsePrefix": {
230
236
  "type": "string"
231
237
  },
238
+ "requireMentionInBotThreads": {
239
+ "type": "boolean"
240
+ },
232
241
  "implicitMentions": {
233
242
  "type": "object",
234
243
  "properties": {
@@ -279,6 +288,18 @@
279
288
  "implicitMentions.threadParticipation": {
280
289
  "label": "Tlon Thread Participation",
281
290
  "help": "Treat follow-ups in threads where the bot participated as implicit mentions when the channel reports that signal."
291
+ },
292
+ "requireMentionInBotThreads": {
293
+ "label": "Require Mention in Bot Threads",
294
+ "help": "Override mention gating when this account's ship authored the thread root. False allows unmentioned replies; true requires a mention even after the bot participates. Omit to preserve existing behavior. Sender authorization still applies."
295
+ },
296
+ "accounts.*.requireMentionInBotThreads": {
297
+ "label": "Require Mention in Bot Threads",
298
+ "help": "Override mention gating when this account's ship authored the thread root. False allows unmentioned replies; true requires a mention even after the bot participates. Omit to preserve existing behavior. Sender authorization still applies."
299
+ },
300
+ "authorization.channelRules.*.requireMentionInBotThreads": {
301
+ "label": "Require Mention in Bot Threads",
302
+ "help": "Override mention gating when this account's ship authored the thread root. False allows unmentioned replies; true requires a mention even after the bot participates. Omit to preserve existing behavior. Sender authorization still applies."
282
303
  }
283
304
  }
284
305
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/tlon",
3
- "version": "2026.9.6",
3
+ "version": "2026.9.7",
4
4
  "description": "OpenClaw Tlon/Urbit channel plugin for chat workflows.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,8 +8,8 @@
8
8
  },
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@aws-sdk/client-s3": "3.1131.0",
12
- "@aws-sdk/s3-request-presigner": "3.1131.0",
11
+ "@aws-sdk/client-s3": "3.1136.0",
12
+ "@aws-sdk/s3-request-presigner": "3.1136.0",
13
13
  "@tloncorp/tlon-skill": "0.5.0",
14
14
  "@urbit/aura": "3.0.0",
15
15
  "zod": "4.6.5"
@@ -19,7 +19,7 @@
19
19
  "openclaw": "workspace:*"
20
20
  },
21
21
  "peerDependencies": {
22
- "openclaw": ">=2026.9.6"
22
+ "openclaw": ">=2026.9.7"
23
23
  },
24
24
  "peerDependenciesMeta": {
25
25
  "openclaw": {
@@ -121,10 +121,10 @@
121
121
  "minHostVersion": ">=2026.4.10"
122
122
  },
123
123
  "compat": {
124
- "pluginApi": ">=2026.9.6"
124
+ "pluginApi": ">=2026.9.7"
125
125
  },
126
126
  "build": {
127
- "openclawVersion": "2026.9.6"
127
+ "openclawVersion": "2026.9.7"
128
128
  },
129
129
  "release": {
130
130
  "bundleRuntimeDependencies": false,
@@ -1,5 +0,0 @@
1
- import { a as ssrfPolicyFromDangerouslyAllowPrivateNetwork, i as isBlockedHostnameOrIp, n as createDedupeCache, o as createLoggerBackedRuntime, r as fetchWithSsrFGuard, t as SsrFBlockedError } from "./runtime-api-BXVe40nS.mjs";
2
- import { t as tlonPlugin } from "./channel-D8GA_UwK.mjs";
3
- import { n as setTlonRuntime } from "./runtime-Ck3lNvST.mjs";
4
- import "../api.js";
5
- export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
@@ -1,7 +0,0 @@
1
- import { createLegacyPrivateNetworkDoctorContract } from "openclaw/plugin-sdk/runtime-doctor-migrations";
2
- //#region extensions/tlon/src/doctor-contract.ts
3
- const contract = createLegacyPrivateNetworkDoctorContract({ channelKey: "tlon" });
4
- const legacyConfigRules = contract.legacyConfigRules;
5
- const normalizeCompatibilityConfig = contract.normalizeCompatibilityConfig;
6
- //#endregion
7
- export { normalizeCompatibilityConfig as n, legacyConfigRules as t };
@@ -1,4 +0,0 @@
1
- import { createDedupeCache } from "openclaw/plugin-sdk/core";
2
- import { createLoggerBackedRuntime } from "openclaw/plugin-sdk/runtime";
3
- import { SsrFBlockedError, fetchWithSsrFGuard as fetchWithSsrFGuard$1, isBlockedHostnameOrIp as isBlockedHostnameOrIp$1, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
4
- export { ssrfPolicyFromDangerouslyAllowPrivateNetwork as a, isBlockedHostnameOrIp$1 as i, createDedupeCache as n, createLoggerBackedRuntime as o, fetchWithSsrFGuard$1 as r, SsrFBlockedError as t };
@@ -1,75 +0,0 @@
1
- import { d as resolveTlonAccount, i as resolveTlonSetupStatusLines, l as validateUrbitBaseUrl, n as createTlonSetupWizardBase, p as normalizeShip, r as resolveTlonSetupConfigured, s as isBlockedUrbitHostname, t as applyTlonSetupConfig } from "./setup-core-Ny4-ZMK0.mjs";
2
- import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
3
- import { createSetupTranslator } from "openclaw/plugin-sdk/setup-runtime";
4
- //#region extensions/tlon/src/setup-surface.ts
5
- const t = createSetupTranslator();
6
- function parseList(value) {
7
- return normalizeStringEntries(value.split(/[\n,;]+/g));
8
- }
9
- const tlonSetupWizard = createTlonSetupWizardBase({
10
- resolveConfigured: async ({ cfg, accountId }) => await resolveTlonSetupConfigured(cfg, accountId),
11
- resolveStatusLines: async ({ cfg, accountId }) => await resolveTlonSetupStatusLines(cfg, accountId),
12
- finalize: async ({ cfg, accountId, prompter }) => {
13
- let next = cfg;
14
- const resolved = resolveTlonAccount(next, accountId);
15
- const validatedUrl = validateUrbitBaseUrl(resolved.url ?? "");
16
- if (!validatedUrl.ok) throw new Error(`Invalid URL: ${validatedUrl.error}`);
17
- let dangerouslyAllowPrivateNetwork = resolved.dangerouslyAllowPrivateNetwork ?? false;
18
- if (isBlockedUrbitHostname(validatedUrl.hostname)) {
19
- dangerouslyAllowPrivateNetwork = await prompter.confirm({
20
- message: t("wizard.tlon.privateNetworkPrompt"),
21
- initialValue: dangerouslyAllowPrivateNetwork
22
- });
23
- if (!dangerouslyAllowPrivateNetwork) throw new Error("Refusing private/internal ship URL without explicit network opt-in");
24
- }
25
- next = applyTlonSetupConfig({
26
- cfg: next,
27
- accountId,
28
- input: { dangerouslyAllowPrivateNetwork }
29
- });
30
- const currentGroups = resolved.groupChannels;
31
- if (await prompter.confirm({
32
- message: t("wizard.tlon.addGroupsPrompt"),
33
- initialValue: currentGroups.length > 0
34
- })) {
35
- const entry = await prompter.text({
36
- message: t("wizard.tlon.groupChannelsPrompt"),
37
- placeholder: "chat/~host-ship/general, chat/~host-ship/support",
38
- initialValue: currentGroups.join(", ") || void 0
39
- });
40
- next = applyTlonSetupConfig({
41
- cfg: next,
42
- accountId,
43
- input: { groupChannels: parseList(entry ?? "") }
44
- });
45
- }
46
- const currentAllowlist = resolved.dmAllowlist;
47
- if (await prompter.confirm({
48
- message: t("wizard.tlon.restrictDmsPrompt"),
49
- initialValue: currentAllowlist.length > 0
50
- })) {
51
- const entry = await prompter.text({
52
- message: t("wizard.tlon.dmAllowlistPrompt"),
53
- placeholder: "~zod, ~nec",
54
- initialValue: currentAllowlist.join(", ") || void 0
55
- });
56
- next = applyTlonSetupConfig({
57
- cfg: next,
58
- accountId,
59
- input: { dmAllowlist: parseList(entry ?? "").map((ship) => normalizeShip(ship)) }
60
- });
61
- }
62
- const autoDiscoverChannels = await prompter.confirm({
63
- message: t("wizard.tlon.autoDiscoveryPrompt"),
64
- initialValue: resolved.autoDiscoverChannels ?? true
65
- });
66
- next = applyTlonSetupConfig({
67
- cfg: next,
68
- accountId,
69
- input: { autoDiscoverChannels }
70
- });
71
- return { cfg: next };
72
- }
73
- });
74
- //#endregion
75
- export { tlonSetupWizard as t };