@openclaw/tlon 2026.11.2 → 2026.11.3
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-DCWWT3CU.mjs → api-CjtitEAT.mjs} +1 -1
- package/dist/.setup/{channel-C3JZ6wZF.mjs → channel-BtaSROL1.mjs} +1 -1
- package/dist/.setup/{channel.runtime-BzZXbsh4.mjs → channel.runtime-BfYxNfpN.mjs} +10 -8
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- 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-
|
|
2
|
+
import { t as tlonPlugin } from "./channel-BtaSROL1.mjs";
|
|
3
3
|
import { n as setTlonRuntime } from "./runtime-Ck3lNvST.mjs";
|
|
4
4
|
import "../api.js";
|
|
5
5
|
export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
|
|
@@ -94,7 +94,7 @@ function resolveTlonOutboundSessionRoute(params) {
|
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region extensions/tlon/src/channel.ts
|
|
96
96
|
const TLON_CHANNEL_ID = "tlon";
|
|
97
|
-
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
97
|
+
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BfYxNfpN.mjs"));
|
|
98
98
|
const tlonSetupWizardProxy = createTlonSetupWizardBase(async (params) => await (await loadTlonChannelRuntime()).tlonSetupWizard.finalize(params));
|
|
99
99
|
const tlonConfigAdapter = createHybridChannelConfigAdapter({
|
|
100
100
|
sectionKey: TLON_CHANNEL_ID,
|
|
@@ -1305,17 +1305,20 @@ function truncate(text, maxLength) {
|
|
|
1305
1305
|
if (text.length <= maxLength) return text;
|
|
1306
1306
|
return sliceUtf16Safe(text, 0, maxLength - 3) + "...";
|
|
1307
1307
|
}
|
|
1308
|
+
function formatApprovalInstructions(id) {
|
|
1309
|
+
return `Reply "approve", "deny", or "block" if this is the only pending request. If multiple are pending, reply "approve ${id}", "deny ${id}", or "block ${id}".`;
|
|
1310
|
+
}
|
|
1308
1311
|
function formatApprovalRequest(approval) {
|
|
1309
1312
|
const preview = approval.messagePreview ? `\n"${truncate(approval.messagePreview, 100)}"` : "";
|
|
1310
1313
|
switch (approval.type) {
|
|
1311
1314
|
case "dm":
|
|
1312
1315
|
if (approval.clubId !== void 0) {
|
|
1313
1316
|
const replayLine = approval.originalMessage ? `The message is answered as an unverified group DM sender, never as ${approval.requestingShip}.` : `The message is not kept, so it will not be answered; have ${approval.requestingShip} send it again in a normal direct message to get a reply.`;
|
|
1314
|
-
return `New group DM message claiming to be from ${approval.requestingShip} (unverified; group DM ${approval.clubId}):${preview}\n\nApproving adds ${approval.requestingShip} to the DM allowlist. ${replayLine}\
|
|
1317
|
+
return `New group DM message claiming to be from ${approval.requestingShip} (unverified; group DM ${approval.clubId}):${preview}\n\nApproving adds ${approval.requestingShip} to the DM allowlist. ${replayLine}\n` + formatApprovalInstructions(approval.id);
|
|
1315
1318
|
}
|
|
1316
|
-
return `New DM request from ${approval.requestingShip}:${preview}\n\
|
|
1317
|
-
case "channel": return `${approval.requestingShip} mentioned you in ${approval.channelNest}:${preview}\n\
|
|
1318
|
-
case "group": return `Group invite from ${approval.requestingShip} to join ${approval.groupFlag}\n\
|
|
1319
|
+
return `New DM request from ${approval.requestingShip}:${preview}\n\n` + formatApprovalInstructions(approval.id);
|
|
1320
|
+
case "channel": return `${approval.requestingShip} mentioned you in ${approval.channelNest}:${preview}\n\n` + formatApprovalInstructions(approval.id);
|
|
1321
|
+
case "group": return `Group invite from ${approval.requestingShip} to join ${approval.groupFlag}\n\n` + formatApprovalInstructions(approval.id);
|
|
1319
1322
|
}
|
|
1320
1323
|
throw new Error("Unsupported approval type");
|
|
1321
1324
|
}
|
|
@@ -1328,8 +1331,7 @@ function parseApprovalResponse(text) {
|
|
|
1328
1331
|
};
|
|
1329
1332
|
}
|
|
1330
1333
|
function findPendingApproval(pendingApprovals, id) {
|
|
1331
|
-
|
|
1332
|
-
return pendingApprovals[pendingApprovals.length - 1];
|
|
1334
|
+
return id ? pendingApprovals.find((approval) => approval.id === id) : pendingApprovals.length === 1 ? pendingApprovals[0] : void 0;
|
|
1333
1335
|
}
|
|
1334
1336
|
function removePendingApproval(pendingApprovals, id) {
|
|
1335
1337
|
return pendingApprovals.filter((a) => a.id !== id);
|
|
@@ -1510,7 +1512,7 @@ function createTlonApprovalRuntime(params) {
|
|
|
1510
1512
|
runtime.log?.(`[tlon] Pending approval limit reached; ignoring ${approval.type} request from ${approval.requestingShip}`);
|
|
1511
1513
|
if (!approvalOverflowNoticeSent && approvalOverflowNoticeAttempts < 3) {
|
|
1512
1514
|
approvalOverflowNoticeAttempts += 1;
|
|
1513
|
-
approvalOverflowNoticeSent = await sendOwnerNotification(`Pending approval queue is full (${approvals.length}). Resolve existing requests with approve, deny, or block before asking rejected requesters to retry.`);
|
|
1515
|
+
approvalOverflowNoticeSent = await sendOwnerNotification(`Pending approval queue is full (${approvals.length}). Resolve existing requests by replying with approve, deny, or block followed by the request ID before asking rejected requesters to retry.`);
|
|
1514
1516
|
}
|
|
1515
1517
|
return false;
|
|
1516
1518
|
}
|
|
@@ -1527,7 +1529,7 @@ function createTlonApprovalRuntime(params) {
|
|
|
1527
1529
|
if (!parsed) return false;
|
|
1528
1530
|
const approval = findPendingApproval(state.pendingApprovals, parsed.id);
|
|
1529
1531
|
if (!approval) {
|
|
1530
|
-
await sendOwnerNotification(`No pending approval found${parsed.id ? `
|
|
1532
|
+
await sendOwnerNotification(parsed.id ? `No pending approval found for ID: ${parsed.id}` : state.pendingApprovals.length > 1 ? `Multiple approvals are pending. Include an approval ID with your decision.\n\n${formatPendingList(state.pendingApprovals)}` : "No pending approval found.");
|
|
1531
1533
|
return true;
|
|
1532
1534
|
}
|
|
1533
1535
|
if (parsed.action === "approve") switch (approval.type) {
|
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-
|
|
2
|
+
import { t as tlonPlugin } from "./.setup/channel-BtaSROL1.mjs";
|
|
3
3
|
import { n as setTlonRuntime } from "./.setup/runtime-Ck3lNvST.mjs";
|
|
4
4
|
export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as tlonPlugin } from "./.setup/channel-
|
|
1
|
+
import { t as tlonPlugin } from "./.setup/channel-BtaSROL1.mjs";
|
|
2
2
|
export { tlonPlugin };
|
package/dist/setup-entry.js
CHANGED
|
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
|
|
|
4
4
|
var setup_entry_default = defineBundledChannelSetupEntry({
|
|
5
5
|
importMetaUrl: import.meta.url,
|
|
6
6
|
plugin: {
|
|
7
|
-
specifier: fileURLToPath(new URL(".setup/api-
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/api-CjtitEAT.mjs", import.meta.url).href),
|
|
8
8
|
exportName: "tlonPlugin"
|
|
9
9
|
}
|
|
10
10
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/tlon",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.3",
|
|
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.3"
|
|
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.3"
|
|
125
125
|
},
|
|
126
126
|
"build": {
|
|
127
|
-
"openclawVersion": "2026.11.
|
|
127
|
+
"openclawVersion": "2026.11.3"
|
|
128
128
|
},
|
|
129
129
|
"release": {
|
|
130
130
|
"bundleRuntimeDependencies": false,
|