@openclaw/tlon 2026.10.10-beta.5 → 2026.11.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-BiTAKY7-.mjs";
3
- import { n as setTlonRuntime } from "./runtime-Ck3lNvST.mjs";
2
+ import { t as tlonPlugin } from "./channel-geUIVRFJ.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-kO8u8noA.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-DnIfSMDp.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({
@@ -63,14 +63,12 @@ const tlonChannelConfigSchema = buildChannelConfigSchema(TlonConfigSchema, { uiH
63
63
  "accounts.*.requireMentionInBotThreads": botThreadMentionHint,
64
64
  "authorization.channelRules.*.requireMentionInBotThreads": botThreadMentionHint
65
65
  } });
66
- //#endregion
67
- //#region extensions/tlon/src/doctor.ts
66
+ // extensions/tlon/src/doctor.ts
68
67
  const tlonDoctor = {
69
68
  legacyConfigRules,
70
69
  normalizeCompatibilityConfig
71
70
  };
72
- //#endregion
73
- //#region extensions/tlon/src/session-route.ts
71
+ // extensions/tlon/src/session-route.ts
74
72
  function resolveTlonOutboundSessionRoute(params) {
75
73
  const parsed = parseTlonTarget(params.target);
76
74
  if (!parsed) return null;
@@ -91,10 +89,9 @@ function resolveTlonOutboundSessionRoute(params) {
91
89
  to: `tlon:${peerId}`
92
90
  });
93
91
  }
94
- //#endregion
95
- //#region extensions/tlon/src/channel.ts
92
+ // extensions/tlon/src/channel.ts
96
93
  const TLON_CHANNEL_ID = "tlon";
97
- const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-Bkx-midT.mjs"));
94
+ const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-DRjOGubO.mjs"));
98
95
  const tlonSetupWizardProxy = createTlonSetupWizardBase(async (params) => await (await loadTlonChannelRuntime()).tlonSetupWizard.finalize(params));
99
96
  const tlonConfigAdapter = createHybridChannelConfigAdapter({
100
97
  sectionKey: TLON_CHANNEL_ID,
@@ -240,5 +237,4 @@ const tlonPlugin = createChatChannelPlugin({
240
237
  },
241
238
  outbound: tlonChannelOutbound
242
239
  });
243
- //#endregion
244
240
  export { tlonPlugin as t };
@@ -1,10 +1,10 @@
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-kO8u8noA.mjs";
4
- import { t as getTlonRuntime } from "./runtime-Ck3lNvST.mjs";
5
- import { t as tlonSetupWizard } from "./setup-surface-Byac6RoF.mjs";
3
+ import { c as resolveTlonAccount, d as parseChannelNest, f as parseTlonTarget, l as formatTargetHint, o as validateUrbitBaseUrl, u as normalizeShip } from "./setup-core-DnIfSMDp.mjs";
4
+ import { t as getTlonRuntime } from "./runtime-ReERXJF_.mjs";
5
+ import { t as tlonSetupWizard } from "./setup-surface-CTiMlwQy.mjs";
6
6
  import { fetchWithSsrFGuard, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
7
- import { bindIngressLifecycleToReplyOptions, createChannelIngressError, createChannelIngressMonitor, createMessageReceiptFromOutboundResults, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
7
+ import { bindIngressLifecycleToReplyOptions, createArmableStallWatchdog, createChannelIngressError, createChannelIngressMonitor, createMessageReceiptFromOutboundResults, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
8
8
  import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
9
9
  import { asBoolean, asFiniteNumber, asNullableRecord, filterStringEntries, normalizeLowercaseStringOrEmpty, normalizeNullableString, readStringField, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
10
10
  import crypto, { randomBytes, randomUUID } from "node:crypto";
@@ -25,7 +25,7 @@ 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 UrbitError = class extends Error {
159
157
  constructor(code, message, options) {
160
158
  super(message, options);
@@ -185,8 +183,7 @@ var UrbitAuthError = class extends UrbitError {
185
183
  this.name = "UrbitAuthError";
186
184
  }
187
185
  };
188
- //#endregion
189
- //#region extensions/tlon/src/urbit/fetch.ts
186
+ // extensions/tlon/src/urbit/fetch.ts
190
187
  async function urbitFetch(params) {
191
188
  const validated = validateUrbitBaseUrl(params.baseUrl);
192
189
  if (!validated.ok) throw new UrbitUrlError(validated.error);
@@ -211,8 +208,7 @@ async function urbitFetch(params) {
211
208
  }
212
209
  };
213
210
  }
214
- //#endregion
215
- //#region extensions/tlon/src/urbit/auth.ts
211
+ // extensions/tlon/src/urbit/auth.ts
216
212
  const MAX_AUTH_BODY_DRAIN_BYTES = 65536;
217
213
  async function authenticate(url, code, options = {}) {
218
214
  const { response, release } = await urbitFetch({
@@ -241,8 +237,7 @@ async function authenticate(url, code, options = {}) {
241
237
  await release();
242
238
  }
243
239
  }
244
- //#endregion
245
- //#region extensions/tlon/src/urbit/context.ts
240
+ // extensions/tlon/src/urbit/context.ts
246
241
  function normalizeUrbitCookie(cookie) {
247
242
  return cookie.split(";")[0] ?? cookie;
248
243
  }
@@ -255,8 +250,7 @@ function getUrbitContext(url, ship) {
255
250
  ship: (ship?.replace(/^~/, "") ?? validated.hostname.split(".")[0] ?? validated.hostname).trim()
256
251
  };
257
252
  }
258
- //#endregion
259
- //#region extensions/tlon/src/urbit/story.ts
253
+ // extensions/tlon/src/urbit/story.ts
260
254
  function matchMarkdownDestination(text, image) {
261
255
  const prefix = (image ? /^!\[([^\]]*)\]\(/ : /^\[([^\]]+)\]\(/).exec(text);
262
256
  if (!prefix) return null;
@@ -652,8 +646,7 @@ function markdownToStory(markdown) {
652
646
  }
653
647
  return story;
654
648
  }
655
- //#endregion
656
- //#region extensions/tlon/src/urbit/send.ts
649
+ // extensions/tlon/src/urbit/send.ts
657
650
  function createTlonSendReceipt(params) {
658
651
  return createMessageReceiptFromOutboundResults({
659
652
  results: [{
@@ -761,8 +754,7 @@ function buildMediaStory(text, mediaUrl) {
761
754
  } }] });
762
755
  return story.length > 0 ? story : [{ inline: [""] }];
763
756
  }
764
- //#endregion
765
- //#region extensions/tlon/src/urbit/channel-ops.ts
757
+ // extensions/tlon/src/urbit/channel-ops.ts
766
758
  async function putUrbitChannel(deps, params) {
767
759
  return await urbitFetch({
768
760
  baseUrl: deps.baseUrl,
@@ -873,10 +865,10 @@ async function ensureUrbitChannelOpen(deps, params) {
873
865
  beforeRequest: params.beforeRequest
874
866
  });
875
867
  }
876
- //#endregion
877
- //#region extensions/tlon/src/urbit/sse-client.ts
868
+ // extensions/tlon/src/urbit/sse-client.ts
878
869
  const MAX_SSE_PAYLOAD_BYTES = 16777216;
879
870
  const MAX_RECONNECT_ATTEMPTS = 10;
871
+ const SSE_STALL_TIMEOUT_MS = 6e4;
880
872
  function parseUrbitSsePayload(data) {
881
873
  if (Buffer.byteLength(data, "utf8") > MAX_SSE_PAYLOAD_BYTES) throw new Error("Tlon Urbit SSE payload exceeds 16 MiB limit");
882
874
  try {
@@ -1035,6 +1027,17 @@ var UrbitSSEClient = class {
1035
1027
  async processStream(body) {
1036
1028
  if (!body) return;
1037
1029
  const stream = body instanceof ReadableStream ? Readable.fromWeb(body) : body;
1030
+ const streamController = this.streamController;
1031
+ const watchdog = createArmableStallWatchdog({
1032
+ label: "tlon-sse",
1033
+ timeoutMs: SSE_STALL_TIMEOUT_MS,
1034
+ onTimeout: ({ idleMs }) => {
1035
+ const error = /* @__PURE__ */ new Error(`Tlon Urbit SSE stream stalled: no data for ${Math.round(idleMs / 1e3)}s`);
1036
+ streamController?.abort(error);
1037
+ if (stream instanceof Readable) stream.destroy(error);
1038
+ }
1039
+ });
1040
+ watchdog.arm();
1038
1041
  const decoder = new TextDecoder();
1039
1042
  let buffer = "";
1040
1043
  let bufferBytes = 0;
@@ -1082,13 +1085,16 @@ var UrbitSSEClient = class {
1082
1085
  try {
1083
1086
  for await (const chunk of stream) {
1084
1087
  if (this.aborted) break;
1088
+ watchdog.disarm();
1085
1089
  if (typeof chunk === "string") {
1086
1090
  await consumeText(decoder.decode());
1087
1091
  await consumeText(chunk);
1088
1092
  } else await consumeText(decoder.decode(chunk, { stream: true }));
1093
+ watchdog.arm();
1089
1094
  }
1090
1095
  await consumeText(decoder.decode());
1091
1096
  } finally {
1097
+ watchdog.stop();
1092
1098
  if (this.streamRelease) {
1093
1099
  const release = this.streamRelease;
1094
1100
  this.streamRelease = null;
@@ -1267,8 +1273,7 @@ var UrbitSSEClient = class {
1267
1273
  }
1268
1274
  }
1269
1275
  };
1270
- //#endregion
1271
- //#region extensions/tlon/src/monitor/approval.ts
1276
+ // extensions/tlon/src/monitor/approval.ts
1272
1277
  function generateApprovalId(type) {
1273
1278
  return `${type}-${Date.now()}-${randomBytes(3).toString("hex")}`;
1274
1279
  }
@@ -1364,8 +1369,7 @@ function formatPendingList(approvals) {
1364
1369
  if (approvals.length === 0) return "No pending approval requests.";
1365
1370
  return `Pending approvals (${approvals.length}):\n${approvals.map((a) => `• ${a.id}: ${a.type} from ${a.requestingShip}`).join("\n")}`;
1366
1371
  }
1367
- //#endregion
1368
- //#region extensions/tlon/src/monitor/approval-runtime.ts
1372
+ // extensions/tlon/src/monitor/approval-runtime.ts
1369
1373
  function createTlonApprovalRuntime(params) {
1370
1374
  const { api, runtime, botShipName, state, processApprovedMessage, refreshWatchedChannels } = params;
1371
1375
  let approvalOverflowNoticeSent = false;
@@ -1596,8 +1600,7 @@ function createTlonApprovalRuntime(params) {
1596
1600
  handleAdminCommand
1597
1601
  };
1598
1602
  }
1599
- //#endregion
1600
- //#region extensions/tlon/src/monitor/authorization.ts
1603
+ // extensions/tlon/src/monitor/authorization.ts
1601
1604
  function resolveChannelAuthorization(cfg, channelNest, settings) {
1602
1605
  const tlonConfig = cfg.channels?.tlon;
1603
1606
  const fileRules = tlonConfig?.authorization?.channelRules ?? {};
@@ -1613,8 +1616,7 @@ function resolveChannelAuthorization(cfg, channelNest, settings) {
1613
1616
  requireMentionInBotThreads: typeof requireMentionInBotThreads === "boolean" ? requireMentionInBotThreads : void 0
1614
1617
  };
1615
1618
  }
1616
- //#endregion
1617
- //#region extensions/tlon/src/monitor/utils.ts
1619
+ // extensions/tlon/src/monitor/utils.ts
1618
1620
  function formatModelName(modelString) {
1619
1621
  if (!modelString) return "AI";
1620
1622
  const modelName = modelString.includes("/") ? expectDefined(modelString.split("/").at(1), "provider/model second segment") : modelString;
@@ -1716,7 +1718,8 @@ function isGroupInviteAllowed(inviterShip, allowlist) {
1716
1718
  }]
1717
1719
  }).allowed;
1718
1720
  }
1719
- function renderInlineItem(item, topLevel = false) {
1721
+ const MAX_INLINE_DEPTH = 100;
1722
+ function renderInlineItem(item, topLevel = false, depth = 0) {
1720
1723
  if (typeof item === "string") return item;
1721
1724
  const record = asNullableRecord(item);
1722
1725
  if (!record) return "";
@@ -1736,14 +1739,29 @@ function renderInlineItem(item, topLevel = false) {
1736
1739
  const linkContent = readStringField(link, "content");
1737
1740
  return topLevel ? linkHref : linkContent || linkHref;
1738
1741
  }
1739
- if (Array.isArray(record.bold)) return `**${extractInlineText(record.bold)}**`;
1740
- if (Array.isArray(record.italics)) return `*${extractInlineText(record.italics)}*`;
1741
- if (Array.isArray(record.strike)) return `~~${extractInlineText(record.strike)}~~`;
1742
- if (topLevel && Array.isArray(record.blockquote)) return `> ${extractInlineText(record.blockquote)}`;
1743
- return "";
1744
- }
1745
- function extractInlineText(items) {
1746
- return items.map((item) => renderInlineItem(item)).join("");
1742
+ const bold = Array.isArray(record.bold) ? record.bold : void 0;
1743
+ const italics = Array.isArray(record.italics) ? record.italics : void 0;
1744
+ const strike = Array.isArray(record.strike) ? record.strike : void 0;
1745
+ const blockquote = topLevel && Array.isArray(record.blockquote) ? record.blockquote : void 0;
1746
+ const nested = bold ?? italics ?? strike ?? blockquote;
1747
+ if (!nested) return "";
1748
+ if (depth >= MAX_INLINE_DEPTH) return "";
1749
+ const inner = extractInlineText(nested, depth + 1);
1750
+ if (bold) return `**${inner}**`;
1751
+ if (italics) return `*${inner}*`;
1752
+ if (strike) return `~~${inner}~~`;
1753
+ return `> ${inner}`;
1754
+ }
1755
+ function extractInlineText(items, depth = 0) {
1756
+ return items.map((item) => renderInlineItem(item, false, depth)).join("");
1757
+ }
1758
+ function extractMessageTextSafely(content, runtime) {
1759
+ try {
1760
+ return extractMessageText(content);
1761
+ } catch (error) {
1762
+ runtime.log?.(`[tlon] Failed to extract message text: ${formatErrorMessage(error)}`);
1763
+ return "";
1764
+ }
1747
1765
  }
1748
1766
  function extractMessageText(content) {
1749
1767
  if (!Array.isArray(content)) return "";
@@ -1827,8 +1845,7 @@ function formatSummarizationHistoryText(history, cfg) {
1827
1845
  envelope: envelopeOptions
1828
1846
  })).join("\n");
1829
1847
  }
1830
- //#endregion
1831
- //#region extensions/tlon/src/monitor/cites.ts
1848
+ // extensions/tlon/src/monitor/cites.ts
1832
1849
  const CITE_PATH_SEGMENT_RE = /^[A-Za-z0-9._~-]+$/;
1833
1850
  const CITE_PATH_NORMALIZATION_BASE = "https://tlon.invalid";
1834
1851
  function isSafeCitePathSegment(segment) {
@@ -1877,8 +1894,7 @@ async function resolveTlonCitations(content, api, runtime) {
1877
1894
  }
1878
1895
  return resolved.length > 0 ? `${resolved.join("\n")}\n\n` : "";
1879
1896
  }
1880
- //#endregion
1881
- //#region extensions/tlon/src/monitor/discovery.ts
1897
+ // extensions/tlon/src/monitor/discovery.ts
1882
1898
  /**
1883
1899
  * Fetch groups-ui init data, returning channels and foreigns.
1884
1900
  * This is a single scry that provides both channel discovery and pending invites.
@@ -1908,8 +1924,7 @@ async function fetchInitData(api, runtime) {
1908
1924
  };
1909
1925
  }
1910
1926
  }
1911
- //#endregion
1912
- //#region extensions/tlon/src/monitor/history.ts
1927
+ // extensions/tlon/src/monitor/history.ts
1913
1928
  /**
1914
1929
  * Format a number as @ud (with dots every 3 digits from the right)
1915
1930
  * e.g., 170141184507799509469114119040828178432 -> 170.141.184.507.799.509.469.114.119.040.828.178.432
@@ -2042,11 +2057,24 @@ async function fetchThreadHistory(api, channelNest, parentId, count = 50, runtim
2042
2057
  return [];
2043
2058
  }
2044
2059
  }
2045
- //#endregion
2046
- //#region extensions/tlon/src/monitor/ingress.ts
2060
+ // extensions/tlon/src/monitor/ingress.ts
2047
2061
  const TLON_INGRESS_PAYLOAD_VERSION = 1;
2048
2062
  const TLON_INGRESS_POLL_INTERVAL_MS = 1e3;
2049
2063
  const TlonIngressPermanentError = createChannelIngressError("TlonIngressPermanentError", { withReason: true });
2064
+ var TlonIngressUnserializableEventError = class extends Error {
2065
+ constructor(cause) {
2066
+ super("Tlon firehose event is too deeply nested to store.", { cause });
2067
+ this.name = "TlonIngressUnserializableEventError";
2068
+ }
2069
+ };
2070
+ function serializeTlonIngressEvent(event) {
2071
+ try {
2072
+ return JSON.stringify(event);
2073
+ } catch (error) {
2074
+ if (error instanceof RangeError) throw new TlonIngressUnserializableEventError(error);
2075
+ throw error;
2076
+ }
2077
+ }
2050
2078
  function inspectChannelsEvent(event) {
2051
2079
  const envelope = asNullableRecord(event);
2052
2080
  const nest = normalizeNullableString(envelope?.nest);
@@ -2124,7 +2152,7 @@ function createTlonIngressMonitor(options) {
2124
2152
  serialize: (raw, { receivedAt }) => ({
2125
2153
  receivedAt,
2126
2154
  source: raw.source,
2127
- rawEvent: JSON.stringify(raw.event)
2155
+ rawEvent: serializeTlonIngressEvent(raw.event)
2128
2156
  }),
2129
2157
  deserialize: (body, { claim }) => deserializeTlonIngressEvent(body, claim.id),
2130
2158
  encode: ({ body }) => ({
@@ -2153,24 +2181,30 @@ function createTlonIngressMonitor(options) {
2153
2181
  });
2154
2182
  return {
2155
2183
  receive: async ({ source, event }) => {
2156
- return { kind: (await monitor.admit({
2157
- source,
2158
- event
2159
- })).kind === "durable" ? "accepted" : "ignored" };
2184
+ try {
2185
+ return { kind: (await monitor.admit({
2186
+ source,
2187
+ event
2188
+ })).kind === "durable" ? "accepted" : "ignored" };
2189
+ } catch (error) {
2190
+ if (error instanceof TlonIngressUnserializableEventError) {
2191
+ options.runtime.log?.(`tlon dropped ${source} event: ${error.message}`);
2192
+ return { kind: "dropped" };
2193
+ }
2194
+ throw error;
2195
+ }
2160
2196
  },
2161
2197
  start: monitor.start,
2162
2198
  stop: monitor.stop,
2163
2199
  waitForIdle: monitor.waitForIdle
2164
2200
  };
2165
2201
  }
2166
- //#endregion
2167
- //#region extensions/tlon/src/media-fetch-timeouts.ts
2202
+ // extensions/tlon/src/media-fetch-timeouts.ts
2168
2203
  const TLON_MEDIA_FETCH_TIMEOUTS = {
2169
2204
  responseHeaderTimeoutMs: 12e4,
2170
2205
  readIdleTimeoutMs: 3e4
2171
2206
  };
2172
- //#endregion
2173
- //#region extensions/tlon/src/monitor/media.ts
2207
+ // extensions/tlon/src/monitor/media.ts
2174
2208
  const MAX_IMAGES_PER_MESSAGE = 8;
2175
2209
  /** Keeps Tlon's shipped path-duplicating prompt bytes paired with ordered facts. */
2176
2210
  function buildTlonInboundMediaPrompt(messageText, attachments) {
@@ -2240,8 +2274,7 @@ async function downloadMessageImages(content, maxBytes) {
2240
2274
  unavailableCount
2241
2275
  };
2242
2276
  }
2243
- //#endregion
2244
- //#region src/channels/mention-gating.ts
2277
+ // src/channels/mention-gating.ts
2245
2278
  function resolveBotThreadMentionPolicy(params) {
2246
2279
  if (!params.isBotOwnedThread || params.requireMentionInBotThreads === void 0) return {
2247
2280
  requireMention: params.requireMention,
@@ -2252,13 +2285,11 @@ function resolveBotThreadMentionPolicy(params) {
2252
2285
  implicitMentionKinds: params.requireMentionInBotThreads ? params.implicitMentionKinds?.filter((kind) => kind === "native") : params.implicitMentionKinds
2253
2286
  };
2254
2287
  }
2255
- //#endregion
2256
- //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/channel-mention-gating
2288
+ // \0openclaw:bundled-sdk:openclaw/plugin-sdk/channel-mention-gating
2257
2289
  var channel_mention_gating_exports = /* @__PURE__ */ __exportAll({ resolveBotThreadMentionPolicy: () => resolveBotThreadMentionPolicy });
2258
2290
  import * as import_openclaw_plugin_sdk_channel_mention_gating from "openclaw/plugin-sdk/channel-mention-gating";
2259
2291
  __reExport(channel_mention_gating_exports, import_openclaw_plugin_sdk_channel_mention_gating);
2260
- //#endregion
2261
- //#region extensions/tlon/src/monitor/mentions.ts
2292
+ // extensions/tlon/src/monitor/mentions.ts
2262
2293
  function resolveTlonGroupMentionDecision(params) {
2263
2294
  const implicitMentions = resolveChannelImplicitMentions({
2264
2295
  cfg: params.cfg,
@@ -2322,8 +2353,7 @@ async function prepareTlonGroupAdmission(params) {
2322
2353
  }
2323
2354
  };
2324
2355
  }
2325
- //#endregion
2326
- //#region extensions/tlon/src/monitor/settings-helpers.ts
2356
+ // extensions/tlon/src/monitor/settings-helpers.ts
2327
2357
  function buildTlonSettingsMigrations(account, currentSettings) {
2328
2358
  return [...[
2329
2359
  "dmAllowlist",
@@ -2377,8 +2407,7 @@ function applyTlonSettingsOverrides(params) {
2377
2407
  function mergeUniqueStrings(base, next) {
2378
2408
  return uniqueStrings([...base, ...next ?? []]);
2379
2409
  }
2380
- //#endregion
2381
- //#region extensions/tlon/src/monitor/tracking.ts
2410
+ // extensions/tlon/src/monitor/tracking.ts
2382
2411
  const TLON_PARTICIPATED_THREAD_LIMIT = 2e3;
2383
2412
  function createParticipatedThreadTracker(limit = TLON_PARTICIPATED_THREAD_LIMIT) {
2384
2413
  const cache = createDedupeCache({
@@ -2409,8 +2438,7 @@ function createActiveSnapshotTracker() {
2409
2438
  addIfAccepted: (key, accepted) => accepted && processed.add(key)
2410
2439
  };
2411
2440
  }
2412
- //#endregion
2413
- //#region extensions/tlon/src/monitor/index.ts
2441
+ // extensions/tlon/src/monitor/index.ts
2414
2442
  /** Identity for an unverified group DM (club) author claim; never matches a bare ship. */
2415
2443
  function clubSenderId(clubId, claimedShip) {
2416
2444
  return `club:${clubId}:${claimedShip}`;
@@ -2850,7 +2878,7 @@ async function monitorTlonProvider(opts) {
2850
2878
  if (!messageId) return;
2851
2879
  const senderShip = normalizeShip(readStringField(content, "author") ?? "");
2852
2880
  if (!senderShip || senderShip === botShipName) return;
2853
- const rawText = extractMessageText(content.content);
2881
+ const rawText = extractMessageTextSafely(content.content, runtime);
2854
2882
  if (!rawText.trim()) return;
2855
2883
  const contentBody = content.content;
2856
2884
  const sentAt = asFiniteNumber(content?.sent) ?? Date.now();
@@ -2985,7 +3013,7 @@ async function monitorTlonProvider(opts) {
2985
3013
  if (authorShip === botShipName) return;
2986
3014
  if (!senderShip || senderShip === botShipName) return;
2987
3015
  if (authorShip && partnerShip && authorShip !== partnerShip) runtime.log?.(`[tlon] DM ship mismatch (author=${authorShip}, partner=${partnerShip}) - routing to partner`);
2988
- const rawText = extractMessageText(essay.content);
3016
+ const rawText = extractMessageTextSafely(essay.content, runtime);
2989
3017
  if (!rawText.trim()) return;
2990
3018
  const messageText = rawText;
2991
3019
  const ownerDm = !isClubMessage && isOwner(senderShip);
@@ -3289,8 +3317,7 @@ async function monitorTlonProvider(opts) {
3289
3317
  }
3290
3318
  }
3291
3319
  }
3292
- //#endregion
3293
- //#region extensions/tlon/src/tlon-api.ts
3320
+ // extensions/tlon/src/tlon-api.ts
3294
3321
  const MEMEX_BASE_URL = "https://memex.tlon.network";
3295
3322
  /** Max bytes to read from the Memex upload JSON response. */
3296
3323
  const MEMEX_UPLOAD_RESPONSE_MAX_BYTES = 65536;
@@ -3496,8 +3523,7 @@ async function uploadFile(params, clientConfig) {
3496
3523
  await uploadBlob(signedUrl, signedUrl.includes("digitaloceanspaces.com") ? headers : void 0);
3497
3524
  return { url: assertSafeUploadResultUrl(storageConfig.publicUrlBase ? new URL(fileKey, storageConfig.publicUrlBase).toString() : expectDefined(signedUrl.split("?").at(0), "signed URL base segment"), "Upload result URL") };
3498
3525
  }
3499
- //#endregion
3500
- //#region extensions/tlon/src/urbit/upload.ts
3526
+ // extensions/tlon/src/urbit/upload.ts
3501
3527
  /**
3502
3528
  * Fetch an image from a URL and upload it to Tlon storage.
3503
3529
  * Falls back to the original URL on error, but only after a bounded download when a cap is set.
@@ -3543,8 +3569,7 @@ async function uploadImageFromUrl(imageUrl, clientConfig, maxBytes) {
3543
3569
  return imageUrl;
3544
3570
  }
3545
3571
  }
3546
- //#endregion
3547
- //#region extensions/tlon/src/channel.runtime.ts
3572
+ // extensions/tlon/src/channel.runtime.ts
3548
3573
  async function createHttpPokeApi(params) {
3549
3574
  const ssrfPolicy = ssrfPolicyFromDangerouslyAllowPrivateNetwork(params.dangerouslyAllowPrivateNetwork);
3550
3575
  const cookie = await authenticate(params.url, params.code, {
@@ -3700,5 +3725,4 @@ async function startTlonGatewayAccount(ctx) {
3700
3725
  accountId: account.accountId
3701
3726
  });
3702
3727
  }
3703
- //#endregion
3704
3728
  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 { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
5
5
  import { DEFAULT_ACCOUNT_ID, createSetupInputPresenceValidator, createSetupTranslator, formatDocsLink, normalizeAccountId, patchScopedAccountConfig, prepareScopedSetupConfig } from "openclaw/plugin-sdk/setup";
6
6
  import { normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-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/account-fields.ts
85
+ // extensions/tlon/src/account-fields.ts
87
86
  function buildTlonAccountFields(input) {
88
87
  return {
89
88
  ...input.ship ? { ship: input.ship } : {},
@@ -96,8 +95,7 @@ function buildTlonAccountFields(input) {
96
95
  ...input.ownerShip ? { ownerShip: input.ownerShip } : {}
97
96
  };
98
97
  }
99
- //#endregion
100
- //#region extensions/tlon/src/types.ts
98
+ // extensions/tlon/src/types.ts
101
99
  function resolveTlonChannelConfig(cfg) {
102
100
  return cfg.channels?.tlon;
103
101
  }
@@ -146,8 +144,7 @@ function resolveTlonAccount(cfg, accountId) {
146
144
  ownerShip: merged.ownerShip ?? null
147
145
  };
148
146
  }
149
- //#endregion
150
- //#region extensions/tlon/src/urbit/base-url.ts
147
+ // extensions/tlon/src/urbit/base-url.ts
151
148
  function normalizeUrbitHostname(hostname) {
152
149
  return (hostname ?? "").trim().toLowerCase().replace(/\.$/, "");
153
150
  }
@@ -188,8 +185,7 @@ function isBlockedUrbitHostname(hostname) {
188
185
  if (!normalized) return false;
189
186
  return isBlockedHostnameOrIp(normalized);
190
187
  }
191
- //#endregion
192
- //#region extensions/tlon/src/setup-core.ts
188
+ // extensions/tlon/src/setup-core.ts
193
189
  const t = createSetupTranslator();
194
190
  function createTlonSetupWizardBase(finalize) {
195
191
  return {
@@ -400,5 +396,4 @@ const tlonSetupContract = defineChannelSetupContract({
400
396
  },
401
397
  legacyAdapter: tlonSetupAdapter
402
398
  });
403
- //#endregion
404
399
  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-kO8u8noA.mjs";
1
+ import { a as isBlockedUrbitHostname, c as resolveTlonAccount, n as createTlonSetupWizardBase, o as validateUrbitBaseUrl, t as applyTlonSetupConfig, u as normalizeShip } from "./setup-core-DnIfSMDp.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;
@@ -63,5 +63,4 @@ const tlonSetupWizard = createTlonSetupWizardBase(async ({ cfg, accountId, promp
63
63
  });
64
64
  return { cfg: next };
65
65
  });
66
- //#endregion
67
66
  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-b5sNP2yy.mjs","sha256":"ccf2072aba27c67ff70da59dcb53a1f9188a2991f5a8ccc1aaa6309a960f9b65","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":".setup/channel-BiTAKY7-.mjs","sha256":"df5855b264339ffdaa490b89184b7da88bfd19f182e2323d86ff805a81d1471e","facadeSource":null,"sources":["extensions/tlon/src/channel.ts","extensions/tlon/src/config-schema.ts","extensions/tlon/src/doctor.ts","extensions/tlon/src/session-route.ts"]},{"output":".setup/channel.runtime-Bkx-midT.mjs","sha256":"48fa7d5f3a8151e53fc18d8c036ace35be221af52f84ff11b1ff73ac365005fc","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-kO8u8noA.mjs","sha256":"6a73177e64d17ac8c5ea5b62931c7f4eda0a13ba5d527a9c77500d6a4aa06dde","facadeSource":null,"sources":["extensions/tlon/src/account-fields.ts","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-Byac6RoF.mjs","sha256":"0df0c9298fc374fa1f9a7b2cb25dc9e86a9350ef4490a4a7df595430fc8dff2f","facadeSource":null,"sources":["extensions/tlon/src/setup-surface.ts"]},{"output":"api.js","sha256":"c8d16d4610b40bbe0489f08b7cf120e9a2d6bfd3c1eb7da99a1d20653eb38bf6","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"2143c734055374c939a91e3552d5cb14fee21b50282cef41eea5d83f6cdd42c6","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":"70fece625b2ba840a50e3083004da46aad994368321104bce289df624c5fbb93","facadeSource":"extensions/tlon/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"71729a4bc4dea30ff55e4b569c4f68a61c125b29df2845997f2846dd364e2c1f","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-HlSecO8_.mjs","sha256":"e087a8df7d359cd2aa6a333185d2e52aa5c7b39ac52504ebcb2e18cf2d87d776","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":".setup/channel-geUIVRFJ.mjs","sha256":"bf29ea4811275528e50f214535edd40e0f2d90d208e73d943f1babce369efb09","facadeSource":null,"sources":["extensions/tlon/src/channel.ts","extensions/tlon/src/config-schema.ts","extensions/tlon/src/doctor.ts","extensions/tlon/src/session-route.ts"]},{"output":".setup/channel.runtime-DRjOGubO.mjs","sha256":"eeb3d0414918d1875670778b5ccf72a3e8a39367510cdc76443dad1193a5f486","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-DnIfSMDp.mjs","sha256":"02128acec62c980ca0c7d904c99a4a6b7ce8604eea03f7b1f5af8f1fc2c56cfc","facadeSource":null,"sources":["extensions/tlon/src/account-fields.ts","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-CTiMlwQy.mjs","sha256":"0786c7d6949cb80b8b4801864ef3b729c43ac19bb102189e3f2e160c5ed5a21f","facadeSource":null,"sources":["extensions/tlon/src/setup-surface.ts"]},{"output":"api.js","sha256":"19a21d53dda7767adae6bbf7366b61918c8f3775a235731a31608492b03b94d2","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"21f9e084da2dea77074105fa53be4fa6b2bbebd51ec5243bb44993aa22c0932c","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":"c0e9f3d9df38b6d0f2f90b20a17ef0ed157577889e3bba70c958e89e86a8e87a","facadeSource":"extensions/tlon/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"11b5137991152eb7d94010369db401d00f75260dcae27a8e53070153021e1242","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-BiTAKY7-.mjs";
3
- import { n as setTlonRuntime } from "./.setup/runtime-Ck3lNvST.mjs";
2
+ import { t as tlonPlugin } from "./.setup/channel-geUIVRFJ.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-BiTAKY7-.mjs";
1
+ export { t as tlonPlugin } from "./.setup/channel-geUIVRFJ.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-kO8u8noA.mjs";
2
- import { t as tlonSetupWizard } from "./.setup/setup-surface-Byac6RoF.mjs";
1
+ import { r as tlonSetupAdapter } from "./.setup/setup-core-DnIfSMDp.mjs";
2
+ import { t as tlonSetupWizard } from "./.setup/setup-surface-CTiMlwQy.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-b5sNP2yy.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/api-HlSecO8_.mjs", import.meta.url).href),
8
8
  exportName: "tlonPlugin"
9
9
  }
10
10
  });
11
- //#endregion
12
11
  export { setup_entry_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/tlon",
3
- "version": "2026.10.10-beta.5",
3
+ "version": "2026.11.1",
4
4
  "description": "OpenClaw Tlon/Urbit channel plugin for chat workflows.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "openclaw": "workspace:*"
20
20
  },
21
21
  "peerDependencies": {
22
- "openclaw": ">=2026.10.10-beta.5"
22
+ "openclaw": ">=2026.11.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.10.10-beta.5"
124
+ "pluginApi": ">=2026.11.1"
125
125
  },
126
126
  "build": {
127
- "openclawVersion": "2026.10.10-beta.5"
127
+ "openclawVersion": "2026.11.1"
128
128
  },
129
129
  "release": {
130
130
  "bundleRuntimeDependencies": false,