@openclaw/tlon 2026.9.6 → 2026.9.8
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/assets/icon.png +0 -0
- package/dist/.setup/api-zkJ1V5qJ.mjs +5 -0
- package/dist/.setup/{channel-D8GA_UwK.mjs → channel-DNzlsYXc.mjs} +28 -40
- package/dist/.setup/{channel.runtime-Cwwakv4X.mjs → channel.runtime-C_kML1QC.mjs} +429 -662
- package/dist/.setup/doctor-contract-BiiG6XQ7.mjs +189 -0
- package/dist/.setup/{setup-core-Ny4-ZMK0.mjs → setup-core-Bktn6kgm.mjs} +17 -31
- package/dist/.setup/setup-surface-BemXwGis.mjs +71 -0
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/runtime-api.js +3 -1
- package/dist/setup-api.js +2 -2
- package/dist/setup-entry.js +1 -1
- package/openclaw.plugin.json +21 -0
- package/package.json +6 -6
- package/dist/.setup/api-CJ5-eCcN.mjs +0 -5
- package/dist/.setup/doctor-contract-CZ8OWBXt.mjs +0 -7
- package/dist/.setup/runtime-api-BXVe40nS.mjs +0 -4
- package/dist/.setup/setup-surface-C4uWCLAo.mjs +0 -75
package/assets/icon.png
CHANGED
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "../runtime-api.js";
|
|
2
|
+
import { t as tlonPlugin } from "./channel-DNzlsYXc.mjs";
|
|
3
|
+
import { n as setTlonRuntime } from "./runtime-Ck3lNvST.mjs";
|
|
4
|
+
import "../api.js";
|
|
5
|
+
export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
2
|
-
import {
|
|
1
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BiiG6XQ7.mjs";
|
|
2
|
+
import { c as listTlonAccountIds, d as normalizeShip, i as tlonSetupContract, l as resolveTlonAccount, m as resolveTlonOutboundTarget, n as createTlonSetupWizardBase, p as parseTlonTarget, u as formatTargetHint } from "./setup-core-Bktn6kgm.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";
|
|
@@ -16,7 +16,8 @@ const ShipSchema = z.string().min(1);
|
|
|
16
16
|
const ChannelNestSchema = z.string().min(1);
|
|
17
17
|
const TlonChannelRuleSchema = z.object({
|
|
18
18
|
mode: z.enum(["restricted", "open"]).optional(),
|
|
19
|
-
allowedShips: z.array(ShipSchema).optional()
|
|
19
|
+
allowedShips: z.array(ShipSchema).optional(),
|
|
20
|
+
requireMentionInBotThreads: z.boolean().optional()
|
|
20
21
|
});
|
|
21
22
|
const TlonAuthorizationSchema = z.object({ channelRules: z.record(z.string(), TlonChannelRuleSchema).optional() });
|
|
22
23
|
const TlonNetworkSchema = z.object({ dangerouslyAllowPrivateNetwork: z.boolean().optional() }).strict().optional();
|
|
@@ -35,6 +36,7 @@ const tlonCommonConfigFields = {
|
|
|
35
36
|
autoDiscoverChannels: z.boolean().optional(),
|
|
36
37
|
showModelSignature: z.boolean().optional(),
|
|
37
38
|
responsePrefix: z.string().optional(),
|
|
39
|
+
requireMentionInBotThreads: z.boolean().optional(),
|
|
38
40
|
implicitMentions: ChannelImplicitMentionsSchema.optional(),
|
|
39
41
|
autoAcceptDmInvites: z.boolean().optional(),
|
|
40
42
|
autoAcceptGroupInvites: z.boolean().optional(),
|
|
@@ -48,10 +50,19 @@ const TlonConfigSchema = z.object({
|
|
|
48
50
|
defaultAuthorizedShips: z.array(ShipSchema).optional(),
|
|
49
51
|
accounts: z.record(z.string(), TlonAccountSchema).optional()
|
|
50
52
|
});
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
53
|
+
const botThreadMentionHint = {
|
|
54
|
+
label: "Require Mention in Bot Threads",
|
|
55
|
+
help: "Override mention gating when this account's ship authored the thread root. False allows unmentioned replies; true requires a mention even after the bot participates. Omit to preserve existing behavior. Sender authorization still applies."
|
|
56
|
+
};
|
|
57
|
+
const tlonChannelConfigSchema = buildChannelConfigSchema(TlonConfigSchema, { uiHints: {
|
|
58
|
+
...createChannelConfigUiHints({
|
|
59
|
+
channelLabel: "Tlon",
|
|
60
|
+
implicitMentions: true
|
|
61
|
+
}),
|
|
62
|
+
requireMentionInBotThreads: botThreadMentionHint,
|
|
63
|
+
"accounts.*.requireMentionInBotThreads": botThreadMentionHint,
|
|
64
|
+
"authorization.channelRules.*.requireMentionInBotThreads": botThreadMentionHint
|
|
65
|
+
} });
|
|
55
66
|
//#endregion
|
|
56
67
|
//#region extensions/tlon/src/doctor.ts
|
|
57
68
|
const tlonDoctor = {
|
|
@@ -63,20 +74,8 @@ const tlonDoctor = {
|
|
|
63
74
|
function resolveTlonOutboundSessionRoute(params) {
|
|
64
75
|
const parsed = parseTlonTarget(params.target);
|
|
65
76
|
if (!parsed) return null;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
agentId: params.agentId,
|
|
69
|
-
channel: "tlon",
|
|
70
|
-
accountId: params.accountId,
|
|
71
|
-
recipientSessionExact: true,
|
|
72
|
-
peer: {
|
|
73
|
-
kind: "group",
|
|
74
|
-
id: parsed.nest
|
|
75
|
-
},
|
|
76
|
-
chatType: "group",
|
|
77
|
-
from: `tlon:group:${parsed.nest}`,
|
|
78
|
-
to: `tlon:${parsed.nest}`
|
|
79
|
-
});
|
|
77
|
+
const isGroup = parsed.kind === "group";
|
|
78
|
+
const peerId = isGroup ? parsed.nest : parsed.ship;
|
|
80
79
|
return buildChannelOutboundSessionRoute({
|
|
81
80
|
cfg: params.cfg,
|
|
82
81
|
agentId: params.agentId,
|
|
@@ -84,30 +83,19 @@ function resolveTlonOutboundSessionRoute(params) {
|
|
|
84
83
|
accountId: params.accountId,
|
|
85
84
|
recipientSessionExact: true,
|
|
86
85
|
peer: {
|
|
87
|
-
kind: "direct",
|
|
88
|
-
id:
|
|
86
|
+
kind: isGroup ? "group" : "direct",
|
|
87
|
+
id: peerId
|
|
89
88
|
},
|
|
90
|
-
chatType: "direct",
|
|
91
|
-
from: `tlon:${
|
|
92
|
-
to: `tlon:${
|
|
89
|
+
chatType: isGroup ? "group" : "direct",
|
|
90
|
+
from: isGroup ? `tlon:group:${peerId}` : `tlon:${peerId}`,
|
|
91
|
+
to: `tlon:${peerId}`
|
|
93
92
|
});
|
|
94
93
|
}
|
|
95
94
|
//#endregion
|
|
96
95
|
//#region extensions/tlon/src/channel.ts
|
|
97
96
|
const TLON_CHANNEL_ID = "tlon";
|
|
98
|
-
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
99
|
-
const tlonSetupWizardProxy = createTlonSetupWizardBase(
|
|
100
|
-
resolveConfigured: async ({ cfg, accountId }) => await (await loadTlonChannelRuntime()).tlonSetupWizard.status.resolveConfigured({
|
|
101
|
-
cfg,
|
|
102
|
-
accountId
|
|
103
|
-
}),
|
|
104
|
-
resolveStatusLines: async ({ cfg, accountId, configured }) => await (await loadTlonChannelRuntime()).tlonSetupWizard.status.resolveStatusLines?.({
|
|
105
|
-
cfg,
|
|
106
|
-
accountId,
|
|
107
|
-
configured
|
|
108
|
-
}) ?? [],
|
|
109
|
-
finalize: async (params) => await (await loadTlonChannelRuntime()).tlonSetupWizard.finalize(params)
|
|
110
|
-
});
|
|
97
|
+
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-C_kML1QC.mjs"));
|
|
98
|
+
const tlonSetupWizardProxy = createTlonSetupWizardBase(async (params) => await (await loadTlonChannelRuntime()).tlonSetupWizard.finalize(params));
|
|
111
99
|
const tlonConfigAdapter = createHybridChannelConfigAdapter({
|
|
112
100
|
sectionKey: TLON_CHANNEL_ID,
|
|
113
101
|
listAccountIds: listTlonAccountIds,
|
|
@@ -203,7 +191,7 @@ const tlonPlugin = createChatChannelPlugin({
|
|
|
203
191
|
looksLikeId: (target) => Boolean(parseTlonTarget(target)),
|
|
204
192
|
hint: formatTargetHint()
|
|
205
193
|
},
|
|
206
|
-
resolveOutboundSessionRoute:
|
|
194
|
+
resolveOutboundSessionRoute: resolveTlonOutboundSessionRoute
|
|
207
195
|
},
|
|
208
196
|
message: tlonMessageAdapter,
|
|
209
197
|
status: createComputedAccountStatusAdapter({
|