@openclaw/tlon 2026.11.5-beta.4 → 2026.11.10-beta.1

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,5 +1,5 @@
1
1
  import { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "../runtime-api.js";
2
- import { t as tlonPlugin } from "./channel-bmlV7Bo5.mjs";
3
- import { n as setTlonRuntime } from "./runtime-Ck3lNvST.mjs";
2
+ import { t as tlonPlugin } from "./channel-BlmR93dV.mjs";
3
+ import { n as setTlonRuntime } from "./runtime-ReERXJF_.mjs";
4
4
  import "../api.js";
5
5
  export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
@@ -1,5 +1,5 @@
1
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-bInPRAQZ.mjs";
2
- import { c as resolveTlonAccount, f as parseTlonTarget, i as tlonSetupContract, l as formatTargetHint, n as createTlonSetupWizardBase, p as resolveTlonOutboundTarget, s as listTlonAccountIds, u as normalizeShip } from "./setup-core-Cfw9JPWJ.mjs";
1
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-CfYeTj9o.mjs";
2
+ import { c as resolveTlonAccount, f as parseTlonTarget, i as tlonSetupContract, l as formatTargetHint, n as createTlonSetupWizardBase, p as resolveTlonOutboundTarget, s as listTlonAccountIds, u as normalizeShip } from "./setup-core-BPDMrrMz.mjs";
3
3
  import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/core";
4
4
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
5
5
  import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
@@ -11,7 +11,7 @@ import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState }
11
11
  import { chunkTextForOutbound, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
12
12
  import { ChannelImplicitMentionsSchema, buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
13
13
  import { z } from "zod";
14
- //#region extensions/tlon/src/config-schema.ts
14
+ // extensions/tlon/src/config-schema.ts
15
15
  const ShipSchema = z.string().min(1);
16
16
  const ChannelNestSchema = z.string().min(1);
17
17
  const TlonChannelRuleSchema = z.object({
@@ -34,6 +34,7 @@ const tlonCommonConfigFields = {
34
34
  dmAllowlist: z.array(ShipSchema).optional(),
35
35
  groupInviteAllowlist: z.array(ShipSchema).optional(),
36
36
  autoDiscoverChannels: z.boolean().optional(),
37
+ crossChannelCitations: z.boolean().optional(),
37
38
  showModelSignature: z.boolean().optional(),
38
39
  responsePrefix: z.string().optional(),
39
40
  requireMentionInBotThreads: z.boolean().optional(),
@@ -54,6 +55,10 @@ const botThreadMentionHint = {
54
55
  label: "Require Mention in Bot Threads",
55
56
  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."
56
57
  };
58
+ const crossChannelCitationsHint = {
59
+ label: "Tlon Cross-Channel Citations",
60
+ help: "Expand citations of posts from other channels into agent context. False expands only citations of the channel a message was posted in; the owner's 1:1 DMs are exempt. Default: true."
61
+ };
57
62
  const tlonChannelConfigSchema = buildChannelConfigSchema(TlonConfigSchema, { uiHints: {
58
63
  ...createChannelConfigUiHints({
59
64
  channelLabel: "Tlon",
@@ -61,16 +66,16 @@ const tlonChannelConfigSchema = buildChannelConfigSchema(TlonConfigSchema, { uiH
61
66
  }),
62
67
  requireMentionInBotThreads: botThreadMentionHint,
63
68
  "accounts.*.requireMentionInBotThreads": botThreadMentionHint,
64
- "authorization.channelRules.*.requireMentionInBotThreads": botThreadMentionHint
69
+ "authorization.channelRules.*.requireMentionInBotThreads": botThreadMentionHint,
70
+ crossChannelCitations: crossChannelCitationsHint,
71
+ "accounts.*.crossChannelCitations": crossChannelCitationsHint
65
72
  } });
66
- //#endregion
67
- //#region extensions/tlon/src/doctor.ts
73
+ // extensions/tlon/src/doctor.ts
68
74
  const tlonDoctor = {
69
75
  legacyConfigRules,
70
76
  normalizeCompatibilityConfig
71
77
  };
72
- //#endregion
73
- //#region extensions/tlon/src/channel.ts
78
+ // extensions/tlon/src/channel.ts
74
79
  const TLON_CHANNEL_ID = "tlon";
75
80
  function resolveTlonOutboundSessionRoute(params) {
76
81
  const parsed = parseTlonTarget(params.target);
@@ -92,7 +97,7 @@ function resolveTlonOutboundSessionRoute(params) {
92
97
  to: `tlon:${peerId}`
93
98
  });
94
99
  }
95
- const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CGmlLjBi.mjs"));
100
+ const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-DFFKdLkd.mjs"));
96
101
  const tlonSetupWizardProxy = createTlonSetupWizardBase(async (params) => await (await loadTlonChannelRuntime()).tlonSetupWizard.finalize(params));
97
102
  const tlonConfigAdapter = createHybridChannelConfigAdapter({
98
103
  sectionKey: TLON_CHANNEL_ID,
@@ -238,5 +243,4 @@ const tlonPlugin = createChatChannelPlugin({
238
243
  },
239
244
  outbound: tlonChannelOutbound
240
245
  });
241
- //#endregion
242
246
  export { tlonPlugin as t };
@@ -1,8 +1,8 @@
1
- import { i as __reExport, r as __exportAll } from "./doctor-contract-bInPRAQZ.mjs";
1
+ import { i as __reExport, r as __exportAll } from "./doctor-contract-CfYeTj9o.mjs";
2
2
  import { createDedupeCache, createLoggerBackedRuntime } from "../runtime-api.js";
3
- import { c as resolveTlonAccount, d as parseChannelNest, f as parseTlonTarget, l as formatTargetHint, o as validateUrbitBaseUrl, u as normalizeShip } from "./setup-core-Cfw9JPWJ.mjs";
4
- import { t as getTlonRuntime } from "./runtime-Ck3lNvST.mjs";
5
- import { t as tlonSetupWizard } from "./setup-surface-C0_CutPR.mjs";
3
+ import { c as resolveTlonAccount, d as parseChannelNest, f as parseTlonTarget, l as formatTargetHint, o as validateUrbitBaseUrl, u as normalizeShip } from "./setup-core-BPDMrrMz.mjs";
4
+ import { t as getTlonRuntime } from "./runtime-ReERXJF_.mjs";
5
+ import { t as tlonSetupWizard } from "./setup-surface-loD2Z-9W.mjs";
6
6
  import { fetchWithSsrFGuard, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
7
7
  import { bindIngressLifecycleToReplyOptions, createArmableStallWatchdog, createChannelIngressError, createChannelIngressMonitor, createMessageReceiptFromOutboundResults, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
8
8
  import { asBoolean, asFiniteNumber, asNullableRecord, filterStringEntries, normalizeLowercaseStringOrEmpty, normalizeNullableString, readStringField, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -19,13 +19,13 @@ import { redactToolPayloadText } from "openclaw/plugin-sdk/logging-core";
19
19
  import { da, scot } from "@urbit/aura";
20
20
  import { Readable } from "node:stream";
21
21
  import { resolveAllowlistMatchByCandidates } from "openclaw/plugin-sdk/allow-from";
22
- import { MAX_IMAGE_BYTES, readRemoteMediaBuffer, saveRemoteMedia } from "openclaw/plugin-sdk/media-runtime";
22
+ import { MAX_IMAGE_BYTES, buildOutboundMediaLoadOptions, readRemoteMediaBuffer, saveRemoteMedia } from "openclaw/plugin-sdk/media-runtime";
23
23
  import { resolveChannelImplicitMentions } from "openclaw/plugin-sdk/channel-ingress-runtime";
24
24
  import { bufferToBlobPart } from "openclaw/plugin-sdk/blob-runtime";
25
25
  import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
26
26
  import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
27
27
  import { extensionForMime } from "openclaw/plugin-sdk/media-mime";
28
- //#region extensions/tlon/src/settings.ts
28
+ // extensions/tlon/src/settings.ts
29
29
  const SETTINGS_DESK = "moltbot";
30
30
  const SETTINGS_BUCKET = "tlon";
31
31
  function parseJsonSetting(value) {
@@ -147,14 +147,12 @@ function createSettingsManager(api, logger) {
147
147
  }
148
148
  };
149
149
  }
150
- //#endregion
151
- //#region extensions/tlon/src/urbit/redact.ts
150
+ // extensions/tlon/src/urbit/redact.ts
152
151
  const URBIT_COOKIE_REFLECTION_RE = /\burbauth-[a-z0-9~-]+=[^\s"'(),;]+/gi;
153
152
  function redactUrbitErrorText(text) {
154
153
  return redactToolPayloadText(text).replace(URBIT_COOKIE_REFLECTION_RE, "***");
155
154
  }
156
- //#endregion
157
- //#region extensions/tlon/src/urbit/errors.ts
155
+ // extensions/tlon/src/urbit/errors.ts
158
156
  var UrbitUrlError = class extends Error {
159
157
  constructor(message) {
160
158
  super(message);
@@ -176,8 +174,7 @@ var UrbitAuthError = class extends Error {
176
174
  this.name = "UrbitAuthError";
177
175
  }
178
176
  };
179
- //#endregion
180
- //#region extensions/tlon/src/urbit/fetch.ts
177
+ // extensions/tlon/src/urbit/fetch.ts
181
178
  async function urbitFetch(params) {
182
179
  const validated = validateUrbitBaseUrl(params.baseUrl);
183
180
  if (!validated.ok) throw new UrbitUrlError(validated.error);
@@ -200,8 +197,7 @@ async function urbitFetch(params) {
200
197
  }
201
198
  };
202
199
  }
203
- //#endregion
204
- //#region extensions/tlon/src/urbit/auth.ts
200
+ // extensions/tlon/src/urbit/auth.ts
205
201
  const MAX_AUTH_BODY_DRAIN_BYTES = 65536;
206
202
  async function authenticate(url, code, options = {}) {
207
203
  const { response, release } = await urbitFetch({
@@ -228,8 +224,7 @@ async function authenticate(url, code, options = {}) {
228
224
  await release();
229
225
  }
230
226
  }
231
- //#endregion
232
- //#region extensions/tlon/src/urbit/context.ts
227
+ // extensions/tlon/src/urbit/context.ts
233
228
  function normalizeUrbitCookie(cookie) {
234
229
  return cookie.split(";")[0] ?? cookie;
235
230
  }
@@ -241,8 +236,7 @@ function getUrbitContext(url, ship) {
241
236
  ship: (ship?.replace(/^~/, "") ?? validated.hostname.split(".")[0] ?? validated.hostname).trim()
242
237
  };
243
238
  }
244
- //#endregion
245
- //#region extensions/tlon/src/urbit/story.ts
239
+ // extensions/tlon/src/urbit/story.ts
246
240
  function matchMarkdownDestination(text, image) {
247
241
  const prefix = (image ? /^!\[([^\]]*)\]\(/ : /^\[([^\]]+)\]\(/).exec(text);
248
242
  if (!prefix) return null;
@@ -632,8 +626,7 @@ function markdownToStory(markdown) {
632
626
  }
633
627
  return story;
634
628
  }
635
- //#endregion
636
- //#region extensions/tlon/src/urbit/send.ts
629
+ // extensions/tlon/src/urbit/send.ts
637
630
  function createTlonSendReceipt(params) {
638
631
  return createMessageReceiptFromOutboundResults({
639
632
  results: [{
@@ -741,8 +734,7 @@ function buildMediaStory(text, mediaUrl) {
741
734
  } }] });
742
735
  return story.length > 0 ? story : [{ inline: [""] }];
743
736
  }
744
- //#endregion
745
- //#region extensions/tlon/src/urbit/channel-ops.ts
737
+ // extensions/tlon/src/urbit/channel-ops.ts
746
738
  async function putUrbitChannel(deps, params) {
747
739
  return await urbitFetch({
748
740
  baseUrl: deps.baseUrl,
@@ -850,8 +842,7 @@ async function ensureUrbitChannelOpen(deps, params) {
850
842
  beforeRequest: params.beforeRequest
851
843
  });
852
844
  }
853
- //#endregion
854
- //#region extensions/tlon/src/urbit/sse-client.ts
845
+ // extensions/tlon/src/urbit/sse-client.ts
855
846
  const MAX_SSE_PAYLOAD_BYTES = 16777216;
856
847
  const MAX_RECONNECT_ATTEMPTS = 10;
857
848
  const SSE_STALL_TIMEOUT_MS = 6e4;
@@ -1240,8 +1231,7 @@ var UrbitSSEClient = class {
1240
1231
  }
1241
1232
  }
1242
1233
  };
1243
- //#endregion
1244
- //#region extensions/tlon/src/monitor/approval.ts
1234
+ // extensions/tlon/src/monitor/approval.ts
1245
1235
  function createPendingApproval(params) {
1246
1236
  const timestamp = Date.now();
1247
1237
  return {
@@ -1337,8 +1327,7 @@ function formatPendingList(approvals) {
1337
1327
  if (approvals.length === 0) return "No pending approval requests.";
1338
1328
  return `Pending approvals (${approvals.length}):\n${approvals.map((a) => `• ${a.id}: ${a.type} from ${a.requestingShip}`).join("\n")}`;
1339
1329
  }
1340
- //#endregion
1341
- //#region extensions/tlon/src/monitor/approval-runtime.ts
1330
+ // extensions/tlon/src/monitor/approval-runtime.ts
1342
1331
  function createTlonApprovalRuntime(params) {
1343
1332
  const { api, runtime, botShipName, state, processApprovedMessage, refreshWatchedChannels } = params;
1344
1333
  let approvalOverflowNoticeSent = false;
@@ -1569,8 +1558,7 @@ function createTlonApprovalRuntime(params) {
1569
1558
  handleAdminCommand
1570
1559
  };
1571
1560
  }
1572
- //#endregion
1573
- //#region extensions/tlon/src/monitor/authorization.ts
1561
+ // extensions/tlon/src/monitor/authorization.ts
1574
1562
  function resolveChannelAuthorization(cfg, channelNest, settings) {
1575
1563
  const tlonConfig = cfg.channels?.tlon;
1576
1564
  const fileRules = tlonConfig?.authorization?.channelRules ?? {};
@@ -1586,8 +1574,7 @@ function resolveChannelAuthorization(cfg, channelNest, settings) {
1586
1574
  requireMentionInBotThreads: typeof requireMentionInBotThreads === "boolean" ? requireMentionInBotThreads : void 0
1587
1575
  };
1588
1576
  }
1589
- //#endregion
1590
- //#region extensions/tlon/src/monitor/utils.ts
1577
+ // extensions/tlon/src/monitor/utils.ts
1591
1578
  function formatModelName(modelString) {
1592
1579
  if (!modelString) return "AI";
1593
1580
  const modelName = modelString.includes("/") ? expectDefined(modelString.split("/").at(1), "provider/model second segment") : modelString;
@@ -1610,10 +1597,10 @@ function isBotMentioned(messageText, botShipName, nickname) {
1610
1597
  if (/@all\b/i.test(messageText)) return true;
1611
1598
  const normalizedBotShip = normalizeShip(botShipName);
1612
1599
  const escapedShip = escapeRegExp(normalizedBotShip);
1613
- if (new RegExp(`(^|\\s)${escapedShip}(?=\\s|$)`, "i").test(messageText)) return true;
1600
+ if (new RegExp(`(^|[\\s*~])${escapedShip}(?=$|[\\s*~,.!?;:])`, "i").test(messageText)) return true;
1614
1601
  if (nickname) {
1615
1602
  const escapedNickname = escapeRegExp(nickname);
1616
- if (new RegExp(`(^|\\s)${escapedNickname}(?=\\s|$|[,!?.])`, "i").test(messageText)) return true;
1603
+ if (new RegExp(`(^|[\\s*~])${escapedNickname}(?=$|[\\s*~,.!?;:])`, "i").test(messageText)) return true;
1617
1604
  }
1618
1605
  return false;
1619
1606
  }
@@ -1690,7 +1677,7 @@ function isGroupInviteAllowed(inviterShip, allowlist) {
1690
1677
  }).allowed;
1691
1678
  }
1692
1679
  const MAX_INLINE_DEPTH = 100;
1693
- function renderInlineItem(item, topLevel = false, depth = 0) {
1680
+ function renderInlineItem(item, topLevel = false, depth = 0, omitCode = false) {
1694
1681
  if (typeof item === "string") return item;
1695
1682
  const record = asNullableRecord(item);
1696
1683
  if (!record) return "";
@@ -1703,13 +1690,15 @@ function renderInlineItem(item, topLevel = false, depth = 0) {
1703
1690
  }
1704
1691
  if (topLevel && "break" in record) return "\n";
1705
1692
  const code = readStringField(record, "inline-code") || readStringField(record, "code");
1706
- if (code) return `\`${code}\``;
1693
+ if (code) return omitCode ? " " : `\`${code}\``;
1707
1694
  const link = asNullableRecord(record.link);
1708
1695
  const linkHref = link ? readStringField(link, "href") : void 0;
1709
1696
  if (link && linkHref) {
1710
1697
  const linkContent = readStringField(link, "content");
1711
1698
  return topLevel ? linkHref : linkContent || linkHref;
1712
1699
  }
1700
+ const task = asNullableRecord(record.task);
1701
+ if (task && Array.isArray(task.content)) return depth >= MAX_INLINE_DEPTH ? "" : `[${task.checked === true ? "x" : " "}] ${extractInlineText(task.content, depth + 1, omitCode)}`;
1713
1702
  const bold = Array.isArray(record.bold) ? record.bold : void 0;
1714
1703
  const italics = Array.isArray(record.italics) ? record.italics : void 0;
1715
1704
  const strike = Array.isArray(record.strike) ? record.strike : void 0;
@@ -1717,21 +1706,33 @@ function renderInlineItem(item, topLevel = false, depth = 0) {
1717
1706
  const nested = bold ?? italics ?? strike ?? blockquote;
1718
1707
  if (!nested) return "";
1719
1708
  if (depth >= MAX_INLINE_DEPTH) return "";
1720
- const inner = extractInlineText(nested, depth + 1);
1709
+ const inner = extractInlineText(nested, depth + 1, omitCode);
1721
1710
  if (bold) return `**${inner}**`;
1722
1711
  if (italics) return `*${inner}*`;
1723
1712
  if (strike) return `~~${inner}~~`;
1724
1713
  return `> ${inner}`;
1725
1714
  }
1726
- function extractInlineText(items, depth = 0) {
1727
- return items.map((item) => renderInlineItem(item, false, depth)).join("");
1728
- }
1729
- function extractMessageText(content) {
1715
+ function extractInlineText(items, depth, omitCode) {
1716
+ return items.map((item) => renderInlineItem(item, false, depth, omitCode)).join("");
1717
+ }
1718
+ function renderListing(value, depth, omitCode) {
1719
+ const listing = asNullableRecord(value);
1720
+ if (!listing) return "";
1721
+ if (Array.isArray(listing.item)) return extractInlineText(listing.item, depth, omitCode);
1722
+ const list = asNullableRecord(listing.list);
1723
+ if (!list || depth >= MAX_INLINE_DEPTH) return "";
1724
+ return [Array.isArray(list.contents) ? extractInlineText(list.contents, depth + 1, omitCode) : "", ...(Array.isArray(list.items) ? list.items : []).map((item, index) => {
1725
+ const text = renderListing(item, depth + 1, omitCode);
1726
+ const marker = list.type === "ordered" ? `${index + 1}. ` : "- ";
1727
+ return text ? `${marker}${text.replace(/\n/g, `\n${" ".repeat(marker.length)}`)}` : "";
1728
+ })].filter(Boolean).join("\n");
1729
+ }
1730
+ function extractMessageText(content, omitCode = false) {
1730
1731
  if (!Array.isArray(content)) return "";
1731
1732
  return content.map((verse) => {
1732
1733
  const verseRecord = asNullableRecord(verse);
1733
1734
  if (!verseRecord) return "";
1734
- if (Array.isArray(verseRecord.inline)) return verseRecord.inline.map((item) => renderInlineItem(item, true)).join("");
1735
+ if (Array.isArray(verseRecord.inline)) return verseRecord.inline.map((item) => renderInlineItem(item, true, 0, omitCode)).join("");
1735
1736
  const block = asNullableRecord(verseRecord.block);
1736
1737
  if (block) {
1737
1738
  const image = asNullableRecord(block.image);
@@ -1743,7 +1744,7 @@ function extractMessageText(content) {
1743
1744
  }
1744
1745
  }
1745
1746
  const codeBlock = asNullableRecord(block.code);
1746
- if (codeBlock) {
1747
+ if (codeBlock && !omitCode) {
1747
1748
  const lang = readStringField(codeBlock, "lang") ?? "";
1748
1749
  const code = readStringField(codeBlock, "code") ?? "";
1749
1750
  let fenceLength = 3;
@@ -1751,6 +1752,7 @@ function extractMessageText(content) {
1751
1752
  const fence = "`".repeat(fenceLength);
1752
1753
  return `\n${fence}${lang}\n${code}\n${fence}\n`;
1753
1754
  }
1755
+ if (block.listing) return renderListing(block.listing, 0, omitCode);
1754
1756
  const header = asNullableRecord(block.header);
1755
1757
  if (header) return `\n## ${(Array.isArray(header.content) ? header.content : []).map((item) => typeof item === "string" ? item : "").join("")}\n`;
1756
1758
  const cite = asNullableRecord(block.cite);
@@ -1808,11 +1810,10 @@ function formatSummarizationHistoryText(history, cfg) {
1808
1810
  envelope: envelopeOptions
1809
1811
  })).join("\n");
1810
1812
  }
1811
- //#endregion
1812
- //#region extensions/tlon/src/monitor/cites.ts
1813
+ // extensions/tlon/src/monitor/cites.ts
1813
1814
  const CITE_PATH_SEGMENT_RE = /^[A-Za-z0-9._~-]+$/;
1814
1815
  const CITE_PATH_NORMALIZATION_BASE = "https://tlon.invalid";
1815
- const CITATION_SCOPE_SKIP_LOG = "[tlon] Skipping cited post: citation is outside explicit channel scope";
1816
+ const CITATION_SCOPE_SKIP_LOG = "[tlon] Skipping cited post: citation is outside the configured citation scope";
1816
1817
  var CitationScopeChangedError = class extends Error {};
1817
1818
  function isSafeCitePathSegment(segment) {
1818
1819
  if (segment === "." || segment === "..") return false;
@@ -1833,6 +1834,13 @@ function buildCitedPostScryPath(nest, postId) {
1833
1834
  if (new URL(scryPath, CITE_PATH_NORMALIZATION_BASE).pathname !== scryPath) return null;
1834
1835
  return scryPath;
1835
1836
  }
1837
+ /**
1838
+ * Auto-discovery admits any channel the bot ship can read; otherwise only explicit channels.
1839
+ * With cross-channel citations off, the cited channel must also be the one posted in.
1840
+ */
1841
+ function isCitedNestInScope(nest, scope, crossChannel, sourceNest) {
1842
+ return (crossChannel || nest === sourceNest) && (scope.effectiveAutoDiscoverChannels || scope.explicitChannels.includes(nest));
1843
+ }
1836
1844
  async function resolveTlonCitations(content, canExpandNest, api, runtime) {
1837
1845
  if (!Array.isArray(content)) return "";
1838
1846
  const resolved = [];
@@ -1874,8 +1882,7 @@ async function resolveTlonCitations(content, canExpandNest, api, runtime) {
1874
1882
  }
1875
1883
  return resolved.length > 0 ? `${resolved.join("\n")}\n\n` : "";
1876
1884
  }
1877
- //#endregion
1878
- //#region extensions/tlon/src/monitor/discovery.ts
1885
+ // extensions/tlon/src/monitor/discovery.ts
1879
1886
  /**
1880
1887
  * Fetch groups-ui init data, returning channels and foreigns.
1881
1888
  * This is a single scry that provides both channel discovery and pending invites.
@@ -1905,8 +1912,7 @@ async function fetchInitData(api, runtime) {
1905
1912
  };
1906
1913
  }
1907
1914
  }
1908
- //#endregion
1909
- //#region extensions/tlon/src/monitor/history.ts
1915
+ // extensions/tlon/src/monitor/history.ts
1910
1916
  /**
1911
1917
  * Format a number as @ud (with dots every 3 digits from the right)
1912
1918
  * e.g., 170141184507799509469114119040828178432 -> 170.141.184.507.799.509.469.114.119.040.828.178.432
@@ -2028,8 +2034,7 @@ async function fetchThreadHistory(api, channelNest, parentId, runtime) {
2028
2034
  return [];
2029
2035
  }
2030
2036
  }
2031
- //#endregion
2032
- //#region extensions/tlon/src/monitor/ingress.ts
2037
+ // extensions/tlon/src/monitor/ingress.ts
2033
2038
  const TLON_INGRESS_PAYLOAD_VERSION = 1;
2034
2039
  const TlonIngressPermanentError = createChannelIngressError("TlonIngressPermanentError", { withReason: true });
2035
2040
  var TlonIngressUnserializableEventError = class extends Error {
@@ -2184,14 +2189,12 @@ function createTlonIngressMonitor(options) {
2184
2189
  waitForIdle: monitor.waitForIdle
2185
2190
  };
2186
2191
  }
2187
- //#endregion
2188
- //#region extensions/tlon/src/media-fetch-timeouts.ts
2192
+ // extensions/tlon/src/media-fetch-timeouts.ts
2189
2193
  const TLON_MEDIA_FETCH_TIMEOUTS = {
2190
2194
  responseHeaderTimeoutMs: 12e4,
2191
2195
  readIdleTimeoutMs: 3e4
2192
2196
  };
2193
- //#endregion
2194
- //#region extensions/tlon/src/monitor/media.ts
2197
+ // extensions/tlon/src/monitor/media.ts
2195
2198
  const MAX_IMAGES_PER_MESSAGE = 8;
2196
2199
  /** Keeps Tlon's shipped path-duplicating prompt bytes paired with ordered facts. */
2197
2200
  function buildTlonInboundMediaPrompt(messageText, media) {
@@ -2244,8 +2247,7 @@ async function downloadMessageImages(content, maxBytes) {
2244
2247
  unavailableCount
2245
2248
  };
2246
2249
  }
2247
- //#endregion
2248
- //#region src/channels/mention-gating.ts
2250
+ // src/channels/mention-gating.ts
2249
2251
  function resolveBotThreadMentionPolicy(params) {
2250
2252
  if (!params.isBotOwnedThread || params.requireMentionInBotThreads === void 0) return {
2251
2253
  requireMention: params.requireMention,
@@ -2256,17 +2258,15 @@ function resolveBotThreadMentionPolicy(params) {
2256
2258
  implicitMentionKinds: params.requireMentionInBotThreads ? params.implicitMentionKinds?.filter((kind) => kind === "native") : params.implicitMentionKinds
2257
2259
  };
2258
2260
  }
2259
- //#endregion
2260
- //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/channel-mention-gating
2261
+ // \0openclaw:bundled-sdk:openclaw/plugin-sdk/channel-mention-gating
2261
2262
  var channel_mention_gating_exports = /* @__PURE__ */ __exportAll({ resolveBotThreadMentionPolicy: () => resolveBotThreadMentionPolicy });
2262
2263
  import * as import_openclaw_plugin_sdk_channel_mention_gating from "openclaw/plugin-sdk/channel-mention-gating";
2263
2264
  __reExport(channel_mention_gating_exports, import_openclaw_plugin_sdk_channel_mention_gating);
2264
- //#endregion
2265
- //#region extensions/tlon/src/monitor/mentions.ts
2265
+ // extensions/tlon/src/monitor/mentions.ts
2266
2266
  async function prepareTlonGroupAdmission(params) {
2267
2267
  const { cfg, account, channelNest, botShipName, runtime } = params;
2268
2268
  const parentId = readStringField(params.messageSeal, "parent-id") ?? readStringField(params.messageSeal, "parent") ?? null;
2269
- const mentioned = isBotMentioned(params.rawText, botShipName, params.botNickname ?? void 0);
2269
+ const mentioned = isBotMentioned(extractMessageText(params.messageContent, true), botShipName, params.botNickname ?? void 0);
2270
2270
  const configuredThreadMention = resolveChannelAuthorization(cfg, channelNest, params.getSettings()).requireMentionInBotThreads ?? account.requireMentionInBotThreads;
2271
2271
  const botParticipatedInThread = Boolean(params.isThreadReply && parentId && params.hasParticipatedInThread(parentId));
2272
2272
  const threadRootAuthor = !mentioned && params.isThreadReply && parentId && (configuredThreadMention !== void 0 || botParticipatedInThread) ? await fetchThreadRootAuthor(params.api, channelNest, parentId, runtime) : null;
@@ -2318,8 +2318,7 @@ async function prepareTlonGroupAdmission(params) {
2318
2318
  }
2319
2319
  };
2320
2320
  }
2321
- //#endregion
2322
- //#region extensions/tlon/src/monitor/settings-helpers.ts
2321
+ // extensions/tlon/src/monitor/settings-helpers.ts
2323
2322
  function buildTlonSettingsMigrations(account, currentSettings) {
2324
2323
  return [...[
2325
2324
  "dmAllowlist",
@@ -2389,8 +2388,7 @@ function createTlonSettingsInstaller(state, account, log) {
2389
2388
  }
2390
2389
  };
2391
2390
  }
2392
- //#endregion
2393
- //#region extensions/tlon/src/monitor/tracking.ts
2391
+ // extensions/tlon/src/monitor/tracking.ts
2394
2392
  function createParticipatedThreadTracker() {
2395
2393
  const cache = createDedupeCache({
2396
2394
  ttlMs: 0,
@@ -2420,8 +2418,7 @@ function createActiveSnapshotTracker() {
2420
2418
  addIfAccepted: (key, accepted) => accepted && processed.add(key)
2421
2419
  };
2422
2420
  }
2423
- //#endregion
2424
- //#region extensions/tlon/src/monitor/index.ts
2421
+ // extensions/tlon/src/monitor/index.ts
2425
2422
  /** Identity for an unverified group DM (club) author claim; never matches a bare ship. */
2426
2423
  function clubSenderId(clubId, claimedShip) {
2427
2424
  return `club:${clubId}:${claimedShip}`;
@@ -2769,7 +2766,7 @@ async function monitorTlonProvider(opts) {
2769
2766
  });
2770
2767
  };
2771
2768
  const watchedChannels = new Set(groupChannels);
2772
- const canExpandCitedNest = (nest) => settingsState.effectiveAutoDiscoverChannels || settingsState.explicitChannels.includes(nest);
2769
+ const citationScope = (sourceNest) => (nest) => isCitedNestInScope(nest, settingsState, account.crossChannelCitations !== false, sourceNest);
2773
2770
  const addWatchedChannels = (channels, logPrefix) => {
2774
2771
  const previousCount = watchedChannels.size;
2775
2772
  for (const channelNest of channels) if (!watchedChannels.has(channelNest)) {
@@ -2855,7 +2852,7 @@ async function monitorTlonProvider(opts) {
2855
2852
  isOwner,
2856
2853
  botShipName,
2857
2854
  botNickname,
2858
- rawText,
2855
+ messageContent: content.content,
2859
2856
  messageSeal: asNullableRecord(messageSet?.seal),
2860
2857
  isThreadReply,
2861
2858
  hasParticipatedInThread: participatedThreads.has,
@@ -2883,7 +2880,7 @@ async function monitorTlonProvider(opts) {
2883
2880
  } else runtime.log?.(`[tlon] Access denied: ${senderShip} in ${nest} (allowed: ${allowedShips.join(", ")})`);
2884
2881
  return;
2885
2882
  }
2886
- const messageText = await resolveTlonCitations(content.content, canExpandCitedNest, api, runtime) + rawText;
2883
+ const messageText = await resolveTlonCitations(content.content, citationScope(nest), api, runtime) + rawText;
2887
2884
  await processMessage({
2888
2885
  messageId,
2889
2886
  senderShip,
@@ -3011,7 +3008,7 @@ async function monitorTlonProvider(opts) {
3011
3008
  } else runtime.log?.(`[tlon] Blocked DM from ${senderShip}: not in allowlist`);
3012
3009
  return;
3013
3010
  }
3014
- const can = (nest) => !isClubMessage && isOwner(senderShip) || canExpandCitedNest(nest), agentText = await resolveTlonCitations(essay.content, can, api, runtime) + rawText;
3011
+ const can = (nest) => !isClubMessage && isOwner(senderShip) || citationScope()(nest), agentText = await resolveTlonCitations(essay.content, can, api, runtime) + rawText;
3015
3012
  if (ownerDm) runtime.log?.(`[tlon] Processing DM from owner ${senderShip}`);
3016
3013
  await processMessage({
3017
3014
  messageText: agentText,
@@ -3250,8 +3247,7 @@ async function monitorTlonProvider(opts) {
3250
3247
  }
3251
3248
  }
3252
3249
  }
3253
- //#endregion
3254
- //#region extensions/tlon/src/tlon-api.ts
3250
+ // extensions/tlon/src/tlon-api.ts
3255
3251
  const MEMEX_BASE_URL = "https://memex.tlon.network";
3256
3252
  /** Max bytes to read from the Memex upload JSON response. */
3257
3253
  const MEMEX_UPLOAD_RESPONSE_MAX_BYTES = 65536;
@@ -3458,13 +3454,12 @@ async function uploadFile(params, clientConfig) {
3458
3454
  await uploadBlob(signedUrl, signedUrl.includes("digitaloceanspaces.com") ? headers : void 0);
3459
3455
  return { url: assertSafeUploadResultUrl(storageConfig.publicUrlBase ? buildCustomS3PublicUrl(storageConfig.publicUrlBase, fileKey) : expectDefined(signedUrl.split("?").at(0), "signed URL base segment"), "Upload result URL") };
3460
3456
  }
3461
- //#endregion
3462
- //#region extensions/tlon/src/urbit/upload.ts
3457
+ // extensions/tlon/src/urbit/upload.ts
3463
3458
  /**
3464
3459
  * Fetch an image from a URL and upload it to Tlon storage.
3465
3460
  * Falls back to the original URL on error, but only after a bounded download when a cap is set.
3466
3461
  */
3467
- async function uploadImageFromUrl(imageUrl, clientConfig, maxBytes) {
3462
+ async function uploadImageFromUrl(imageUrl, clientConfig, maxBytes, mediaAccess) {
3468
3463
  let sourceSizeVerified = false;
3469
3464
  const assertCurrent = clientConfig.assertDirectAdapterHandoff;
3470
3465
  let authorityRejection;
@@ -3483,7 +3478,7 @@ async function uploadImageFromUrl(imageUrl, clientConfig, maxBytes) {
3483
3478
  url: imageUrl,
3484
3479
  maxBytes: Math.min(maxBytes ?? MAX_IMAGE_BYTES, MAX_IMAGE_BYTES),
3485
3480
  ...TLON_MEDIA_FETCH_TIMEOUTS,
3486
- ssrfPolicy: void 0,
3481
+ ssrfPolicy: buildOutboundMediaLoadOptions({ mediaAccess }).ssrfPolicy,
3487
3482
  beforeRequest,
3488
3483
  requestInit: { method: "GET" }
3489
3484
  });
@@ -3505,8 +3500,7 @@ async function uploadImageFromUrl(imageUrl, clientConfig, maxBytes) {
3505
3500
  return imageUrl;
3506
3501
  }
3507
3502
  }
3508
- //#endregion
3509
- //#region extensions/tlon/src/channel.runtime.ts
3503
+ // extensions/tlon/src/channel.runtime.ts
3510
3504
  function resolveReplyId(replyToId, threadId) {
3511
3505
  return replyToId ?? threadId ? String(replyToId ?? threadId) : void 0;
3512
3506
  }
@@ -3533,7 +3527,7 @@ async function sendTlonOutbound(params, kind) {
3533
3527
  getCode: async () => account.code,
3534
3528
  dangerouslyAllowPrivateNetwork: account.dangerouslyAllowPrivateNetwork ?? void 0,
3535
3529
  assertDirectAdapterHandoff
3536
- }, account.mediaMaxBytes) : void 0;
3530
+ }, account.mediaMaxBytes, params.mediaAccess) : void 0;
3537
3531
  }
3538
3532
  const { url, ship, code, dangerouslyAllowPrivateNetwork } = account;
3539
3533
  const onPlatformSendDispatch = params.onPlatformSendDispatch;
@@ -3626,5 +3620,4 @@ async function startTlonGatewayAccount(ctx) {
3626
3620
  accountId: account.accountId
3627
3621
  });
3628
3622
  }
3629
- //#endregion
3630
3623
  export { probeTlonAccount, startTlonGatewayAccount, tlonRuntimeOutbound, tlonSetupWizard };
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -23,8 +23,7 @@ var __copyProps = (to, from, except, desc) => {
23
23
  return to;
24
24
  };
25
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
26
+ // packages/normalization-core/src/record-coerce.ts
28
27
  /** Type guard for non-array object records at browser-safe boundaries. */
29
28
  function isRecord(value) {
30
29
  return value !== null && typeof value === "object" && !Array.isArray(value);
@@ -33,8 +32,7 @@ function isRecord(value) {
33
32
  function asNullableRecord(value) {
34
33
  return isRecord(value) ? value : null;
35
34
  }
36
- //#endregion
37
- //#region src/config/channel-config-normalization.ts
35
+ // src/config/channel-config-normalization.ts
38
36
  /** Applies one channel-specific doctor migration to every object-shaped account. */
39
37
  function normalizeChannelAccounts(params) {
40
38
  const rawAccounts = asNullableRecord(params.entry.accounts);
@@ -110,8 +108,7 @@ function normalizeChannelConfigEntries(params) {
110
108
  changes
111
109
  };
112
110
  }
113
- //#endregion
114
- //#region src/plugin-sdk/legacy-webhook-listener-migration.ts
111
+ // src/plugin-sdk/legacy-webhook-listener-migration.ts
115
112
  /** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
116
113
  function createLegacyWebhookListenerDoctorContract(params) {
117
114
  const portKey = params.portKey ?? "webhookPort";
@@ -181,15 +178,12 @@ function createLegacyWebhookListenerDoctorContract(params) {
181
178
  }
182
179
  };
183
180
  }
184
- //#endregion
185
- //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
181
+ // \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
186
182
  var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
187
183
  import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
188
184
  __reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
189
- //#endregion
190
- //#region extensions/tlon/src/doctor-contract.ts
185
+ // extensions/tlon/src/doctor-contract.ts
191
186
  const contract = (0, runtime_doctor_migrations_exports.createLegacyPrivateNetworkDoctorContract)({ channelKey: "tlon" });
192
187
  const legacyConfigRules = contract.legacyConfigRules;
193
188
  const normalizeCompatibilityConfig = contract.normalizeCompatibilityConfig;
194
- //#endregion
195
189
  export { __reExport as i, normalizeCompatibilityConfig as n, __exportAll as r, legacyConfigRules as t };
@@ -1,8 +1,7 @@
1
1
  import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
2
- //#region extensions/tlon/src/runtime.ts
2
+ // extensions/tlon/src/runtime.ts
3
3
  const { setRuntime: setTlonRuntime, getRuntime: getTlonRuntime } = createPluginRuntimeStore({
4
4
  pluginId: "tlon",
5
5
  errorMessage: "Tlon runtime not initialized"
6
6
  });
7
- //#endregion
8
7
  export { setTlonRuntime as n, getTlonRuntime as t };
@@ -5,7 +5,7 @@ import { DEFAULT_ACCOUNT_ID, createSetupInputPresenceValidator, createSetupTrans
5
5
  import { normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
7
7
  import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/account-resolution";
8
- //#region extensions/tlon/src/targets.ts
8
+ // extensions/tlon/src/targets.ts
9
9
  const SHIP_RE = /^~?[a-z-]+$/i;
10
10
  const NEST_RE = /^chat\/([^/]+)\/([^/]+)$/i;
11
11
  function normalizeShip(raw) {
@@ -82,8 +82,7 @@ function resolveTlonOutboundTarget(to) {
82
82
  function formatTargetHint() {
83
83
  return "dm/~sampel-palnet | ~sampel-palnet | chat/~host-ship/channel | group:~host-ship/channel";
84
84
  }
85
- //#endregion
86
- //#region extensions/tlon/src/types.ts
85
+ // extensions/tlon/src/types.ts
87
86
  function resolveTlonChannelConfig(cfg) {
88
87
  return cfg.channels?.tlon;
89
88
  }
@@ -125,6 +124,7 @@ function resolveTlonAccount(cfg, accountId) {
125
124
  dmAllowlist: merged.dmAllowlist ?? [],
126
125
  groupInviteAllowlist: merged.groupInviteAllowlist ?? [],
127
126
  autoDiscoverChannels: merged.autoDiscoverChannels ?? null,
127
+ crossChannelCitations: merged.crossChannelCitations ?? null,
128
128
  showModelSignature: merged.showModelSignature ?? null,
129
129
  autoAcceptDmInvites: merged.autoAcceptDmInvites ?? null,
130
130
  autoAcceptGroupInvites: merged.autoAcceptGroupInvites ?? null,
@@ -132,8 +132,7 @@ function resolveTlonAccount(cfg, accountId) {
132
132
  ownerShip: merged.ownerShip ?? null
133
133
  };
134
134
  }
135
- //#endregion
136
- //#region extensions/tlon/src/urbit/base-url.ts
135
+ // extensions/tlon/src/urbit/base-url.ts
137
136
  function normalizeUrbitHostname(hostname) {
138
137
  return (hostname ?? "").trim().toLowerCase().replace(/\.$/, "");
139
138
  }
@@ -174,8 +173,7 @@ function isBlockedUrbitHostname(hostname) {
174
173
  if (!normalized) return false;
175
174
  return isBlockedHostnameOrIp(normalized);
176
175
  }
177
- //#endregion
178
- //#region extensions/tlon/src/setup-core.ts
176
+ // extensions/tlon/src/setup-core.ts
179
177
  const t = createSetupTranslator();
180
178
  function createTlonSetupWizardBase(finalize) {
181
179
  return {
@@ -395,5 +393,4 @@ const tlonSetupContract = defineChannelSetupContract({
395
393
  },
396
394
  legacyAdapter: tlonSetupAdapter
397
395
  });
398
- //#endregion
399
396
  export { isBlockedUrbitHostname as a, resolveTlonAccount as c, parseChannelNest as d, parseTlonTarget as f, tlonSetupContract as i, formatTargetHint as l, createTlonSetupWizardBase as n, validateUrbitBaseUrl as o, resolveTlonOutboundTarget as p, tlonSetupAdapter as r, listTlonAccountIds as s, applyTlonSetupConfig as t, normalizeShip as u };
@@ -1,6 +1,6 @@
1
- import { a as isBlockedUrbitHostname, c as resolveTlonAccount, n as createTlonSetupWizardBase, o as validateUrbitBaseUrl, t as applyTlonSetupConfig, u as normalizeShip } from "./setup-core-Cfw9JPWJ.mjs";
1
+ import { a as isBlockedUrbitHostname, c as resolveTlonAccount, n as createTlonSetupWizardBase, o as validateUrbitBaseUrl, t as applyTlonSetupConfig, u as normalizeShip } from "./setup-core-BPDMrrMz.mjs";
2
2
  import { createSetupTranslator, splitSetupEntries } from "openclaw/plugin-sdk/setup-runtime";
3
- //#region extensions/tlon/src/setup-surface.ts
3
+ // extensions/tlon/src/setup-surface.ts
4
4
  const t = createSetupTranslator();
5
5
  const tlonSetupWizard = createTlonSetupWizardBase(async ({ cfg, accountId, prompter }) => {
6
6
  let next = cfg;
@@ -51,5 +51,4 @@ const tlonSetupWizard = createTlonSetupWizardBase(async ({ cfg, accountId, promp
51
51
  });
52
52
  return { cfg: next };
53
53
  });
54
- //#endregion
55
54
  export { tlonSetupWizard as t };
@@ -1 +1 @@
1
- {"version":3,"entries":[{"output":"api.js","source":"extensions/tlon/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/tlon/channel-plugin-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/tlon/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/tlon/index.ts"},{"output":"runtime-api.js","source":"extensions/tlon/runtime-api.ts"},{"output":"setup-api.js","source":"extensions/tlon/setup-api.ts"},{"output":"setup-entry.js","source":"extensions/tlon/setup-entry.ts"}],"chunks":[{"output":".setup/api-C3N9E4O0.mjs","sha256":"84e553f1110a8ff8e0ad5301c965537ab50b8d3410b4676a15dda91fe537bb40","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":".setup/channel-bmlV7Bo5.mjs","sha256":"2b1c9f99f36d65ccf0b811a3d3526707b54e15c40abd19e444a76eebebb2e73e","facadeSource":null,"sources":["extensions/tlon/src/channel.ts","extensions/tlon/src/config-schema.ts","extensions/tlon/src/doctor.ts"]},{"output":".setup/channel.runtime-CGmlLjBi.mjs","sha256":"219850db869816e9def2e04a94b114a8efc465ecf399f8ad0a8e9aed4f418e10","facadeSource":"extensions/tlon/src/channel.runtime.ts","sources":["extensions/tlon/src/channel.runtime.ts","extensions/tlon/src/media-fetch-timeouts.ts","extensions/tlon/src/monitor/approval-runtime.ts","extensions/tlon/src/monitor/approval.ts","extensions/tlon/src/monitor/authorization.ts","extensions/tlon/src/monitor/cites.ts","extensions/tlon/src/monitor/discovery.ts","extensions/tlon/src/monitor/history.ts","extensions/tlon/src/monitor/index.ts","extensions/tlon/src/monitor/ingress.ts","extensions/tlon/src/monitor/media.ts","extensions/tlon/src/monitor/mentions.ts","extensions/tlon/src/monitor/settings-helpers.ts","extensions/tlon/src/monitor/tracking.ts","extensions/tlon/src/monitor/utils.ts","extensions/tlon/src/settings.ts","extensions/tlon/src/tlon-api.ts","extensions/tlon/src/urbit/auth.ts","extensions/tlon/src/urbit/channel-ops.ts","extensions/tlon/src/urbit/context.ts","extensions/tlon/src/urbit/errors.ts","extensions/tlon/src/urbit/fetch.ts","extensions/tlon/src/urbit/redact.ts","extensions/tlon/src/urbit/send.ts","extensions/tlon/src/urbit/sse-client.ts","extensions/tlon/src/urbit/story.ts","extensions/tlon/src/urbit/upload.ts","src/channels/mention-gating.ts"]},{"output":".setup/doctor-contract-bInPRAQZ.mjs","sha256":"ba06bce97c984451581c990c9cfebbc69f70f3087e0eae04f07659084b6b16ba","facadeSource":null,"sources":["extensions/tlon/src/doctor-contract.ts","packages/normalization-core/src/record-coerce.ts","src/config/channel-config-normalization.ts","src/plugin-sdk/legacy-webhook-listener-migration.ts"]},{"output":".setup/runtime-Ck3lNvST.mjs","sha256":"b47fecb040ffb94da7eaa7ea1f026897d4b982aad8459b1da6f42878f0af2fcd","facadeSource":null,"sources":["extensions/tlon/src/runtime.ts"]},{"output":".setup/setup-core-Cfw9JPWJ.mjs","sha256":"e927ddfae71b2b29ba08d479ecee065cabc700a9c2c031441fd372870a1df530","facadeSource":null,"sources":["extensions/tlon/src/setup-core.ts","extensions/tlon/src/targets.ts","extensions/tlon/src/types.ts","extensions/tlon/src/urbit/base-url.ts"]},{"output":".setup/setup-surface-C0_CutPR.mjs","sha256":"eb7684c22c80a227fe8f6b7d814478073be40adfdeeae2239ec53784d23b18e3","facadeSource":null,"sources":["extensions/tlon/src/setup-surface.ts"]},{"output":"api.js","sha256":"65e7a0d35e8aabb61c42b2b56a4f59603328531c6f57076a871c000c6d1de217","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"74f7e7ed4dc4ea4a5ade022ae1ae0fddcd020fa6a419dd48f40c034a01803ebb","facadeSource":"extensions/tlon/channel-plugin-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"d8bfd31033274b1d661f7320b7d4ccaba6321d47ed309409003928b72403cb2f","facadeSource":"extensions/tlon/doctor-contract-api.ts","sources":[]},{"output":"index.js","sha256":"40ecbe760d30b082e1a5a9eb2590c33ef411f287fa5b655373df7d5126005654","facadeSource":"extensions/tlon/index.ts","sources":["extensions/tlon/index.ts"]},{"output":"runtime-api.js","sha256":"84b5cef46a80daf5dd78edb6afd45310e3877e6d91d56716af7992f38f01e7cb","facadeSource":"extensions/tlon/runtime-api.ts","sources":[]},{"output":"setup-api.js","sha256":"174eb1a77e44c095507aa23bd9e9d1b3b4d027c5411a23b4fb65e2ccc9f1f9ed","facadeSource":"extensions/tlon/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"5373636e056c24bf423ec283a90a2da38181bf4a67bb7c5911f52ca25227950c","facadeSource":"extensions/tlon/setup-entry.ts","sources":["extensions/tlon/setup-entry.ts"]}],"unrenderedSources":["extensions/tlon/api.ts","extensions/tlon/channel-plugin-api.ts","extensions/tlon/config-doctor-api.ts","extensions/tlon/doctor-contract-api.ts","extensions/tlon/runtime-api.ts","extensions/tlon/setup-api.ts"]}
1
+ {"version":3,"entries":[{"output":"api.js","source":"extensions/tlon/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/tlon/channel-plugin-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/tlon/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/tlon/index.ts"},{"output":"runtime-api.js","source":"extensions/tlon/runtime-api.ts"},{"output":"setup-api.js","source":"extensions/tlon/setup-api.ts"},{"output":"setup-entry.js","source":"extensions/tlon/setup-entry.ts"}],"chunks":[{"output":".setup/api-ta2_lGfo.mjs","sha256":"afab805c745e6c5be884a0e30560203fb70e641de67b32faac4ebd5e12d5cee9","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":".setup/channel-BlmR93dV.mjs","sha256":"5a2a33a95b4d2d990f8f1b8224024b3ce4cd291e4a83af7180d0ff2547f5532b","facadeSource":null,"sources":["extensions/tlon/src/channel.ts","extensions/tlon/src/config-schema.ts","extensions/tlon/src/doctor.ts"]},{"output":".setup/channel.runtime-DFFKdLkd.mjs","sha256":"6bc1e4257c9ba3eb21390ae5c5c2c0b948d8c731738ac998845d045c3c0e6adb","facadeSource":"extensions/tlon/src/channel.runtime.ts","sources":["extensions/tlon/src/channel.runtime.ts","extensions/tlon/src/media-fetch-timeouts.ts","extensions/tlon/src/monitor/approval-runtime.ts","extensions/tlon/src/monitor/approval.ts","extensions/tlon/src/monitor/authorization.ts","extensions/tlon/src/monitor/cites.ts","extensions/tlon/src/monitor/discovery.ts","extensions/tlon/src/monitor/history.ts","extensions/tlon/src/monitor/index.ts","extensions/tlon/src/monitor/ingress.ts","extensions/tlon/src/monitor/media.ts","extensions/tlon/src/monitor/mentions.ts","extensions/tlon/src/monitor/settings-helpers.ts","extensions/tlon/src/monitor/tracking.ts","extensions/tlon/src/monitor/utils.ts","extensions/tlon/src/settings.ts","extensions/tlon/src/tlon-api.ts","extensions/tlon/src/urbit/auth.ts","extensions/tlon/src/urbit/channel-ops.ts","extensions/tlon/src/urbit/context.ts","extensions/tlon/src/urbit/errors.ts","extensions/tlon/src/urbit/fetch.ts","extensions/tlon/src/urbit/redact.ts","extensions/tlon/src/urbit/send.ts","extensions/tlon/src/urbit/sse-client.ts","extensions/tlon/src/urbit/story.ts","extensions/tlon/src/urbit/upload.ts","src/channels/mention-gating.ts"]},{"output":".setup/doctor-contract-CfYeTj9o.mjs","sha256":"cd414672cef0faa7cc964028ec840a10c720f80b8c416ea4695a16931c249e63","facadeSource":null,"sources":["extensions/tlon/src/doctor-contract.ts","packages/normalization-core/src/record-coerce.ts","src/config/channel-config-normalization.ts","src/plugin-sdk/legacy-webhook-listener-migration.ts"]},{"output":".setup/runtime-ReERXJF_.mjs","sha256":"23ea20b9a79e00a2a761e2c1ee5753526019a34f8a5c9caa26b7f9fed435292e","facadeSource":null,"sources":["extensions/tlon/src/runtime.ts"]},{"output":".setup/setup-core-BPDMrrMz.mjs","sha256":"ecc630f7e3c437a67b032ad270189b39e3b3dc40db0b0a80abe85d2075f9a582","facadeSource":null,"sources":["extensions/tlon/src/setup-core.ts","extensions/tlon/src/targets.ts","extensions/tlon/src/types.ts","extensions/tlon/src/urbit/base-url.ts"]},{"output":".setup/setup-surface-loD2Z-9W.mjs","sha256":"e45857ecc559b15021356f109aad6e81e9ecadd21e69d4cbc5b36c7d0f10805f","facadeSource":null,"sources":["extensions/tlon/src/setup-surface.ts"]},{"output":"api.js","sha256":"77657929508a20a80c37db455c597cd0c7ed9d3a765e3a9174ee1049e00aa72a","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"0ffe51f1930c08658dc3f352a234322fd15e1a97f0e617850a4eeeb428b2db3e","facadeSource":"extensions/tlon/channel-plugin-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"269771e05b29fb710fa0c235a6c197e7bdae2550a2607fae3dcb5befd600a040","facadeSource":"extensions/tlon/doctor-contract-api.ts","sources":[]},{"output":"index.js","sha256":"71964a841ad9ec38d0abc3cbbb090b3d19f452a5070009a62ced5883999abd41","facadeSource":"extensions/tlon/index.ts","sources":["extensions/tlon/index.ts"]},{"output":"runtime-api.js","sha256":"84b5cef46a80daf5dd78edb6afd45310e3877e6d91d56716af7992f38f01e7cb","facadeSource":"extensions/tlon/runtime-api.ts","sources":[]},{"output":"setup-api.js","sha256":"97cbc77df6079083383569a53fc424b8c6084bede52c44987fc475b66f2fae0f","facadeSource":"extensions/tlon/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"900a08f923f9286edefba54637b9a124372b1444aeb471b32721af8fe911ab0f","facadeSource":"extensions/tlon/setup-entry.ts","sources":["extensions/tlon/setup-entry.ts"]}],"unrenderedSources":["extensions/tlon/api.ts","extensions/tlon/channel-plugin-api.ts","extensions/tlon/config-doctor-api.ts","extensions/tlon/doctor-contract-api.ts","extensions/tlon/runtime-api.ts","extensions/tlon/setup-api.ts"]}
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "./runtime-api.js";
2
- import { t as tlonPlugin } from "./.setup/channel-bmlV7Bo5.mjs";
3
- import { n as setTlonRuntime } from "./.setup/runtime-Ck3lNvST.mjs";
2
+ import { t as tlonPlugin } from "./.setup/channel-BlmR93dV.mjs";
3
+ import { n as setTlonRuntime } from "./.setup/runtime-ReERXJF_.mjs";
4
4
  export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
@@ -1 +1 @@
1
- export { t as tlonPlugin } from "./.setup/channel-bmlV7Bo5.mjs";
1
+ export { t as tlonPlugin } from "./.setup/channel-BlmR93dV.mjs";
@@ -1 +1 @@
1
- export { t as legacyConfigRules, n as normalizeCompatibilityConfig } from "./.setup/doctor-contract-bInPRAQZ.mjs";
1
+ export { t as legacyConfigRules, n as normalizeCompatibilityConfig } from "./.setup/doctor-contract-CfYeTj9o.mjs";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
2
- //#region extensions/tlon/index.ts
2
+ // extensions/tlon/index.ts
3
3
  var tlon_default = defineBundledChannelEntry({
4
4
  id: "tlon",
5
5
  name: "Tlon",
@@ -14,5 +14,4 @@ var tlon_default = defineBundledChannelEntry({
14
14
  exportName: "setTlonRuntime"
15
15
  }
16
16
  });
17
- //#endregion
18
17
  export { tlon_default as default };
package/dist/setup-api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { r as tlonSetupAdapter } from "./.setup/setup-core-Cfw9JPWJ.mjs";
2
- import { t as tlonSetupWizard } from "./.setup/setup-surface-C0_CutPR.mjs";
1
+ import { r as tlonSetupAdapter } from "./.setup/setup-core-BPDMrrMz.mjs";
2
+ import { t as tlonSetupWizard } from "./.setup/setup-surface-loD2Z-9W.mjs";
3
3
  export { tlonSetupAdapter, tlonSetupWizard };
@@ -1,12 +1,11 @@
1
1
  import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region extensions/tlon/setup-entry.ts
3
+ // extensions/tlon/setup-entry.ts
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/api-C3N9E4O0.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/api-ta2_lGfo.mjs", import.meta.url).href),
8
8
  exportName: "tlonPlugin"
9
9
  }
10
10
  });
11
- //#endregion
12
11
  export { setup_entry_default as default };
@@ -84,6 +84,9 @@
84
84
  "autoDiscoverChannels": {
85
85
  "type": "boolean"
86
86
  },
87
+ "crossChannelCitations": {
88
+ "type": "boolean"
89
+ },
87
90
  "showModelSignature": {
88
91
  "type": "boolean"
89
92
  },
@@ -229,6 +232,9 @@
229
232
  "autoDiscoverChannels": {
230
233
  "type": "boolean"
231
234
  },
235
+ "crossChannelCitations": {
236
+ "type": "boolean"
237
+ },
232
238
  "showModelSignature": {
233
239
  "type": "boolean"
234
240
  },
@@ -300,6 +306,14 @@
300
306
  "authorization.channelRules.*.requireMentionInBotThreads": {
301
307
  "label": "Require Mention in Bot Threads",
302
308
  "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."
309
+ },
310
+ "crossChannelCitations": {
311
+ "label": "Tlon Cross-Channel Citations",
312
+ "help": "Expand citations of posts from other channels into agent context. False expands only citations of the channel a message was posted in; the owner's 1:1 DMs are exempt. Default: true."
313
+ },
314
+ "accounts.*.crossChannelCitations": {
315
+ "label": "Tlon Cross-Channel Citations",
316
+ "help": "Expand citations of posts from other channels into agent context. False expands only citations of the channel a message was posted in; the owner's 1:1 DMs are exempt. Default: true."
303
317
  }
304
318
  }
305
319
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/tlon",
3
- "version": "2026.11.5-beta.4",
3
+ "version": "2026.11.10-beta.1",
4
4
  "description": "OpenClaw Tlon/Urbit channel plugin for chat workflows.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@aws-sdk/client-s3": "3.1153.0",
12
- "@aws-sdk/s3-request-presigner": "3.1153.0",
13
- "@tloncorp/tlon-skill": "0.8.1",
11
+ "@aws-sdk/client-s3": "3.1161.0",
12
+ "@aws-sdk/s3-request-presigner": "3.1161.0",
13
+ "@tloncorp/tlon-skill": "0.9.1",
14
14
  "@urbit/aura": "3.0.0",
15
15
  "zod": "4.6.7"
16
16
  },
@@ -19,7 +19,7 @@
19
19
  "openclaw": "workspace:*"
20
20
  },
21
21
  "peerDependencies": {
22
- "openclaw": ">=2026.11.5-beta.4"
22
+ "openclaw": ">=2026.11.10-beta.1"
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.11.5-beta.4"
124
+ "pluginApi": ">=2026.11.10-beta.1"
125
125
  },
126
126
  "build": {
127
- "openclawVersion": "2026.11.5-beta.4"
127
+ "openclawVersion": "2026.11.10-beta.1"
128
128
  },
129
129
  "release": {
130
130
  "bundleRuntimeDependencies": false,