@openclaw/tlon 2026.11.7 → 2026.11.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.setup/{api-D4dWGu0l.mjs → api-DMHwXp6t.mjs} +2 -2
- package/dist/.setup/{channel-6PWSAloJ.mjs → channel-Dqd_blLQ.mjs} +6 -9
- package/dist/.setup/{channel.runtime-VvAvNQ60.mjs → channel.runtime-D-aeY_re.mjs} +60 -74
- package/dist/.setup/{doctor-contract-bInPRAQZ.mjs → doctor-contract-CfYeTj9o.mjs} +6 -12
- package/dist/.setup/{runtime-Ck3lNvST.mjs → runtime-ReERXJF_.mjs} +1 -2
- package/dist/.setup/{setup-core-Cfw9JPWJ.mjs → setup-core-BjuM9rjU.mjs} +4 -8
- package/dist/.setup/{setup-surface-C0_CutPR.mjs → setup-surface-CsTGExtf.mjs} +2 -3
- package/dist/.source-module-urls/219ea9f09fb313a73daa9d49cae583628627d248b038afb8d4cbf4dbf34fd43c.json +1 -1
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/index.js +1 -2
- package/dist/setup-api.js +2 -2
- package/dist/setup-entry.js +2 -3
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "../runtime-api.js";
|
|
2
|
-
import { t as tlonPlugin } from "./channel-
|
|
3
|
-
import { n as setTlonRuntime } from "./runtime-
|
|
2
|
+
import { t as tlonPlugin } from "./channel-Dqd_blLQ.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-
|
|
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-
|
|
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-BjuM9rjU.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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
73
|
-
//#region extensions/tlon/src/channel.ts
|
|
71
|
+
// extensions/tlon/src/channel.ts
|
|
74
72
|
const TLON_CHANNEL_ID = "tlon";
|
|
75
73
|
function resolveTlonOutboundSessionRoute(params) {
|
|
76
74
|
const parsed = parseTlonTarget(params.target);
|
|
@@ -92,7 +90,7 @@ function resolveTlonOutboundSessionRoute(params) {
|
|
|
92
90
|
to: `tlon:${peerId}`
|
|
93
91
|
});
|
|
94
92
|
}
|
|
95
|
-
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
93
|
+
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-D-aeY_re.mjs"));
|
|
96
94
|
const tlonSetupWizardProxy = createTlonSetupWizardBase(async (params) => await (await loadTlonChannelRuntime()).tlonSetupWizard.finalize(params));
|
|
97
95
|
const tlonConfigAdapter = createHybridChannelConfigAdapter({
|
|
98
96
|
sectionKey: TLON_CHANNEL_ID,
|
|
@@ -238,5 +236,4 @@ const tlonPlugin = createChatChannelPlugin({
|
|
|
238
236
|
},
|
|
239
237
|
outbound: tlonChannelOutbound
|
|
240
238
|
});
|
|
241
|
-
//#endregion
|
|
242
239
|
export { tlonPlugin as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as __reExport, r as __exportAll } from "./doctor-contract-
|
|
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-
|
|
4
|
-
import { t as getTlonRuntime } from "./runtime-
|
|
5
|
-
import { t as tlonSetupWizard } from "./setup-surface-
|
|
3
|
+
import { c as resolveTlonAccount, d as parseChannelNest, f as parseTlonTarget, l as formatTargetHint, o as validateUrbitBaseUrl, u as normalizeShip } from "./setup-core-BjuM9rjU.mjs";
|
|
4
|
+
import { t as getTlonRuntime } from "./runtime-ReERXJF_.mjs";
|
|
5
|
+
import { t as tlonSetupWizard } from "./setup-surface-CsTGExtf.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";
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,7 +1597,7 @@ 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(`(
|
|
1600
|
+
if (new RegExp(`(^|[\\s*~])${escapedShip}(?=$|[\\s*~,.!?;:])`, "i").test(messageText)) return true;
|
|
1614
1601
|
if (nickname) {
|
|
1615
1602
|
const escapedNickname = escapeRegExp(nickname);
|
|
1616
1603
|
if (new RegExp(`(^|\\s)${escapedNickname}(?=\\s|$|[,!?.])`, "i").test(messageText)) return true;
|
|
@@ -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
|
|
1727
|
-
return items.map((item) => renderInlineItem(item, false, depth)).join("");
|
|
1728
|
-
}
|
|
1729
|
-
function
|
|
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,8 +1810,7 @@ function formatSummarizationHistoryText(history, cfg) {
|
|
|
1808
1810
|
envelope: envelopeOptions
|
|
1809
1811
|
})).join("\n");
|
|
1810
1812
|
}
|
|
1811
|
-
|
|
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
1816
|
const CITATION_SCOPE_SKIP_LOG = "[tlon] Skipping cited post: citation is outside explicit channel scope";
|
|
@@ -1874,8 +1875,7 @@ async function resolveTlonCitations(content, canExpandNest, api, runtime) {
|
|
|
1874
1875
|
}
|
|
1875
1876
|
return resolved.length > 0 ? `${resolved.join("\n")}\n\n` : "";
|
|
1876
1877
|
}
|
|
1877
|
-
|
|
1878
|
-
//#region extensions/tlon/src/monitor/discovery.ts
|
|
1878
|
+
// extensions/tlon/src/monitor/discovery.ts
|
|
1879
1879
|
/**
|
|
1880
1880
|
* Fetch groups-ui init data, returning channels and foreigns.
|
|
1881
1881
|
* This is a single scry that provides both channel discovery and pending invites.
|
|
@@ -1905,8 +1905,7 @@ async function fetchInitData(api, runtime) {
|
|
|
1905
1905
|
};
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
|
-
|
|
1909
|
-
//#region extensions/tlon/src/monitor/history.ts
|
|
1908
|
+
// extensions/tlon/src/monitor/history.ts
|
|
1910
1909
|
/**
|
|
1911
1910
|
* Format a number as @ud (with dots every 3 digits from the right)
|
|
1912
1911
|
* e.g., 170141184507799509469114119040828178432 -> 170.141.184.507.799.509.469.114.119.040.828.178.432
|
|
@@ -2028,8 +2027,7 @@ async function fetchThreadHistory(api, channelNest, parentId, runtime) {
|
|
|
2028
2027
|
return [];
|
|
2029
2028
|
}
|
|
2030
2029
|
}
|
|
2031
|
-
|
|
2032
|
-
//#region extensions/tlon/src/monitor/ingress.ts
|
|
2030
|
+
// extensions/tlon/src/monitor/ingress.ts
|
|
2033
2031
|
const TLON_INGRESS_PAYLOAD_VERSION = 1;
|
|
2034
2032
|
const TlonIngressPermanentError = createChannelIngressError("TlonIngressPermanentError", { withReason: true });
|
|
2035
2033
|
var TlonIngressUnserializableEventError = class extends Error {
|
|
@@ -2184,14 +2182,12 @@ function createTlonIngressMonitor(options) {
|
|
|
2184
2182
|
waitForIdle: monitor.waitForIdle
|
|
2185
2183
|
};
|
|
2186
2184
|
}
|
|
2187
|
-
|
|
2188
|
-
//#region extensions/tlon/src/media-fetch-timeouts.ts
|
|
2185
|
+
// extensions/tlon/src/media-fetch-timeouts.ts
|
|
2189
2186
|
const TLON_MEDIA_FETCH_TIMEOUTS = {
|
|
2190
2187
|
responseHeaderTimeoutMs: 12e4,
|
|
2191
2188
|
readIdleTimeoutMs: 3e4
|
|
2192
2189
|
};
|
|
2193
|
-
|
|
2194
|
-
//#region extensions/tlon/src/monitor/media.ts
|
|
2190
|
+
// extensions/tlon/src/monitor/media.ts
|
|
2195
2191
|
const MAX_IMAGES_PER_MESSAGE = 8;
|
|
2196
2192
|
/** Keeps Tlon's shipped path-duplicating prompt bytes paired with ordered facts. */
|
|
2197
2193
|
function buildTlonInboundMediaPrompt(messageText, media) {
|
|
@@ -2244,8 +2240,7 @@ async function downloadMessageImages(content, maxBytes) {
|
|
|
2244
2240
|
unavailableCount
|
|
2245
2241
|
};
|
|
2246
2242
|
}
|
|
2247
|
-
|
|
2248
|
-
//#region src/channels/mention-gating.ts
|
|
2243
|
+
// src/channels/mention-gating.ts
|
|
2249
2244
|
function resolveBotThreadMentionPolicy(params) {
|
|
2250
2245
|
if (!params.isBotOwnedThread || params.requireMentionInBotThreads === void 0) return {
|
|
2251
2246
|
requireMention: params.requireMention,
|
|
@@ -2256,17 +2251,15 @@ function resolveBotThreadMentionPolicy(params) {
|
|
|
2256
2251
|
implicitMentionKinds: params.requireMentionInBotThreads ? params.implicitMentionKinds?.filter((kind) => kind === "native") : params.implicitMentionKinds
|
|
2257
2252
|
};
|
|
2258
2253
|
}
|
|
2259
|
-
|
|
2260
|
-
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/channel-mention-gating
|
|
2254
|
+
// \0openclaw:bundled-sdk:openclaw/plugin-sdk/channel-mention-gating
|
|
2261
2255
|
var channel_mention_gating_exports = /* @__PURE__ */ __exportAll({ resolveBotThreadMentionPolicy: () => resolveBotThreadMentionPolicy });
|
|
2262
2256
|
import * as import_openclaw_plugin_sdk_channel_mention_gating from "openclaw/plugin-sdk/channel-mention-gating";
|
|
2263
2257
|
__reExport(channel_mention_gating_exports, import_openclaw_plugin_sdk_channel_mention_gating);
|
|
2264
|
-
|
|
2265
|
-
//#region extensions/tlon/src/monitor/mentions.ts
|
|
2258
|
+
// extensions/tlon/src/monitor/mentions.ts
|
|
2266
2259
|
async function prepareTlonGroupAdmission(params) {
|
|
2267
2260
|
const { cfg, account, channelNest, botShipName, runtime } = params;
|
|
2268
2261
|
const parentId = readStringField(params.messageSeal, "parent-id") ?? readStringField(params.messageSeal, "parent") ?? null;
|
|
2269
|
-
const mentioned = isBotMentioned(params.
|
|
2262
|
+
const mentioned = isBotMentioned(extractMessageText(params.messageContent, true), botShipName, params.botNickname ?? void 0);
|
|
2270
2263
|
const configuredThreadMention = resolveChannelAuthorization(cfg, channelNest, params.getSettings()).requireMentionInBotThreads ?? account.requireMentionInBotThreads;
|
|
2271
2264
|
const botParticipatedInThread = Boolean(params.isThreadReply && parentId && params.hasParticipatedInThread(parentId));
|
|
2272
2265
|
const threadRootAuthor = !mentioned && params.isThreadReply && parentId && (configuredThreadMention !== void 0 || botParticipatedInThread) ? await fetchThreadRootAuthor(params.api, channelNest, parentId, runtime) : null;
|
|
@@ -2318,8 +2311,7 @@ async function prepareTlonGroupAdmission(params) {
|
|
|
2318
2311
|
}
|
|
2319
2312
|
};
|
|
2320
2313
|
}
|
|
2321
|
-
|
|
2322
|
-
//#region extensions/tlon/src/monitor/settings-helpers.ts
|
|
2314
|
+
// extensions/tlon/src/monitor/settings-helpers.ts
|
|
2323
2315
|
function buildTlonSettingsMigrations(account, currentSettings) {
|
|
2324
2316
|
return [...[
|
|
2325
2317
|
"dmAllowlist",
|
|
@@ -2389,8 +2381,7 @@ function createTlonSettingsInstaller(state, account, log) {
|
|
|
2389
2381
|
}
|
|
2390
2382
|
};
|
|
2391
2383
|
}
|
|
2392
|
-
|
|
2393
|
-
//#region extensions/tlon/src/monitor/tracking.ts
|
|
2384
|
+
// extensions/tlon/src/monitor/tracking.ts
|
|
2394
2385
|
function createParticipatedThreadTracker() {
|
|
2395
2386
|
const cache = createDedupeCache({
|
|
2396
2387
|
ttlMs: 0,
|
|
@@ -2420,8 +2411,7 @@ function createActiveSnapshotTracker() {
|
|
|
2420
2411
|
addIfAccepted: (key, accepted) => accepted && processed.add(key)
|
|
2421
2412
|
};
|
|
2422
2413
|
}
|
|
2423
|
-
|
|
2424
|
-
//#region extensions/tlon/src/monitor/index.ts
|
|
2414
|
+
// extensions/tlon/src/monitor/index.ts
|
|
2425
2415
|
/** Identity for an unverified group DM (club) author claim; never matches a bare ship. */
|
|
2426
2416
|
function clubSenderId(clubId, claimedShip) {
|
|
2427
2417
|
return `club:${clubId}:${claimedShip}`;
|
|
@@ -2855,7 +2845,7 @@ async function monitorTlonProvider(opts) {
|
|
|
2855
2845
|
isOwner,
|
|
2856
2846
|
botShipName,
|
|
2857
2847
|
botNickname,
|
|
2858
|
-
|
|
2848
|
+
messageContent: content.content,
|
|
2859
2849
|
messageSeal: asNullableRecord(messageSet?.seal),
|
|
2860
2850
|
isThreadReply,
|
|
2861
2851
|
hasParticipatedInThread: participatedThreads.has,
|
|
@@ -3250,8 +3240,7 @@ async function monitorTlonProvider(opts) {
|
|
|
3250
3240
|
}
|
|
3251
3241
|
}
|
|
3252
3242
|
}
|
|
3253
|
-
|
|
3254
|
-
//#region extensions/tlon/src/tlon-api.ts
|
|
3243
|
+
// extensions/tlon/src/tlon-api.ts
|
|
3255
3244
|
const MEMEX_BASE_URL = "https://memex.tlon.network";
|
|
3256
3245
|
/** Max bytes to read from the Memex upload JSON response. */
|
|
3257
3246
|
const MEMEX_UPLOAD_RESPONSE_MAX_BYTES = 65536;
|
|
@@ -3458,8 +3447,7 @@ async function uploadFile(params, clientConfig) {
|
|
|
3458
3447
|
await uploadBlob(signedUrl, signedUrl.includes("digitaloceanspaces.com") ? headers : void 0);
|
|
3459
3448
|
return { url: assertSafeUploadResultUrl(storageConfig.publicUrlBase ? buildCustomS3PublicUrl(storageConfig.publicUrlBase, fileKey) : expectDefined(signedUrl.split("?").at(0), "signed URL base segment"), "Upload result URL") };
|
|
3460
3449
|
}
|
|
3461
|
-
|
|
3462
|
-
//#region extensions/tlon/src/urbit/upload.ts
|
|
3450
|
+
// extensions/tlon/src/urbit/upload.ts
|
|
3463
3451
|
/**
|
|
3464
3452
|
* Fetch an image from a URL and upload it to Tlon storage.
|
|
3465
3453
|
* Falls back to the original URL on error, but only after a bounded download when a cap is set.
|
|
@@ -3505,8 +3493,7 @@ async function uploadImageFromUrl(imageUrl, clientConfig, maxBytes, mediaAccess)
|
|
|
3505
3493
|
return imageUrl;
|
|
3506
3494
|
}
|
|
3507
3495
|
}
|
|
3508
|
-
|
|
3509
|
-
//#region extensions/tlon/src/channel.runtime.ts
|
|
3496
|
+
// extensions/tlon/src/channel.runtime.ts
|
|
3510
3497
|
function resolveReplyId(replyToId, threadId) {
|
|
3511
3498
|
return replyToId ?? threadId ? String(replyToId ?? threadId) : void 0;
|
|
3512
3499
|
}
|
|
@@ -3626,5 +3613,4 @@ async function startTlonGatewayAccount(ctx) {
|
|
|
3626
3613
|
accountId: account.accountId
|
|
3627
3614
|
});
|
|
3628
3615
|
}
|
|
3629
|
-
//#endregion
|
|
3630
3616
|
export { probeTlonAccount, startTlonGatewayAccount, tlonRuntimeOutbound, tlonSetupWizard };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -132,8 +131,7 @@ function resolveTlonAccount(cfg, accountId) {
|
|
|
132
131
|
ownerShip: merged.ownerShip ?? null
|
|
133
132
|
};
|
|
134
133
|
}
|
|
135
|
-
|
|
136
|
-
//#region extensions/tlon/src/urbit/base-url.ts
|
|
134
|
+
// extensions/tlon/src/urbit/base-url.ts
|
|
137
135
|
function normalizeUrbitHostname(hostname) {
|
|
138
136
|
return (hostname ?? "").trim().toLowerCase().replace(/\.$/, "");
|
|
139
137
|
}
|
|
@@ -174,8 +172,7 @@ function isBlockedUrbitHostname(hostname) {
|
|
|
174
172
|
if (!normalized) return false;
|
|
175
173
|
return isBlockedHostnameOrIp(normalized);
|
|
176
174
|
}
|
|
177
|
-
|
|
178
|
-
//#region extensions/tlon/src/setup-core.ts
|
|
175
|
+
// extensions/tlon/src/setup-core.ts
|
|
179
176
|
const t = createSetupTranslator();
|
|
180
177
|
function createTlonSetupWizardBase(finalize) {
|
|
181
178
|
return {
|
|
@@ -395,5 +392,4 @@ const tlonSetupContract = defineChannelSetupContract({
|
|
|
395
392
|
},
|
|
396
393
|
legacyAdapter: tlonSetupAdapter
|
|
397
394
|
});
|
|
398
|
-
//#endregion
|
|
399
395
|
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-
|
|
1
|
+
import { a as isBlockedUrbitHostname, c as resolveTlonAccount, n as createTlonSetupWizardBase, o as validateUrbitBaseUrl, t as applyTlonSetupConfig, u as normalizeShip } from "./setup-core-BjuM9rjU.mjs";
|
|
2
2
|
import { createSetupTranslator, splitSetupEntries } from "openclaw/plugin-sdk/setup-runtime";
|
|
3
|
-
|
|
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-
|
|
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-DMHwXp6t.mjs","sha256":"73e11bb170f5674fd3c5c5316cbd3fec0ca28651bcbc584ff3e7ba800b153829","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":".setup/channel-Dqd_blLQ.mjs","sha256":"b0425a07b10076f9a3358a241eb874b4cd413089abe335eccd560fd7fe861c43","facadeSource":null,"sources":["extensions/tlon/src/channel.ts","extensions/tlon/src/config-schema.ts","extensions/tlon/src/doctor.ts"]},{"output":".setup/channel.runtime-D-aeY_re.mjs","sha256":"24f0fd69b4e9b91df8f701ed0e67ac98bd6668dc76268851424c24e3f7462a46","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-BjuM9rjU.mjs","sha256":"32d762d969daed00b09c9600d32b8ca20f45755f7620483d9e79cf7f463bb314","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-CsTGExtf.mjs","sha256":"5cdede999d65d0126b861fb4d94bdea05bfb6edc48c6deee8819a9d23d4047a9","facadeSource":null,"sources":["extensions/tlon/src/setup-surface.ts"]},{"output":"api.js","sha256":"2fdb621093745a9ddb28ccacba23a3588b35b824ffaf4e43fa7ae100d171d2ae","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"675a54c665eda10cef99ed20a3370bbb2f3a3c98c2459af819c6309b68bc5150","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":"ba868f4eea47dc29c9028ce365ff0d084c3eb1c5485382a79277a4a7f212eb3d","facadeSource":"extensions/tlon/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"fd864663411edfad6e8ba0d86885b0e5342ec69d93ff8eea3bbc4cc91ab969a7","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-
|
|
3
|
-
import { n as setTlonRuntime } from "./.setup/runtime-
|
|
2
|
+
import { t as tlonPlugin } from "./.setup/channel-Dqd_blLQ.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-
|
|
1
|
+
export { t as tlonPlugin } from "./.setup/channel-Dqd_blLQ.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as legacyConfigRules, n as normalizeCompatibilityConfig } from "./.setup/doctor-contract-
|
|
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
|
-
|
|
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-
|
|
2
|
-
import { t as tlonSetupWizard } from "./.setup/setup-surface-
|
|
1
|
+
import { r as tlonSetupAdapter } from "./.setup/setup-core-BjuM9rjU.mjs";
|
|
2
|
+
import { t as tlonSetupWizard } from "./.setup/setup-surface-CsTGExtf.mjs";
|
|
3
3
|
export { tlonSetupAdapter, tlonSetupWizard };
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
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-
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/api-DMHwXp6t.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.11.
|
|
3
|
+
"version": "2026.11.9",
|
|
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.11.
|
|
22
|
+
"openclaw": ">=2026.11.9"
|
|
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.
|
|
124
|
+
"pluginApi": ">=2026.11.9"
|
|
125
125
|
},
|
|
126
126
|
"build": {
|
|
127
|
-
"openclawVersion": "2026.11.
|
|
127
|
+
"openclawVersion": "2026.11.9"
|
|
128
128
|
},
|
|
129
129
|
"release": {
|
|
130
130
|
"bundleRuntimeDependencies": false,
|