@openclaw/tlon 2026.7.2-beta.7 → 2026.7.34
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-X67hDLMB.mjs +5 -0
- package/dist/{channel-DqQ3r1FI.js → .setup/channel-C4bCfDOT.mjs} +10 -14
- package/dist/{channel.runtime-D9SOTGdH.js → .setup/channel.runtime-ByKPmlwv.mjs} +427 -813
- package/dist/.setup/runtime-api-C5wXFh-q.mjs +4 -0
- package/dist/{setup-core-DUM2q1dE.js → .setup/setup-core-C373Z5Vo.mjs} +25 -97
- package/dist/{setup-surface-1WtsAw4R.js → .setup/setup-surface-UPZjU2y6.mjs} +1 -1
- package/dist/api.js +4 -4
- package/dist/channel-plugin-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/runtime-api.js +2 -2
- package/dist/setup-api.js +2 -2
- package/dist/setup-entry.js +2 -1
- package/openclaw.plugin.json +1 -49
- package/package.json +33 -80
- package/dist/runtime-api-BXVe40nS.js +0 -4
- /package/dist/{doctor-contract-DhzowRcD.js → .setup/doctor-contract-DhzowRcD.mjs} +0 -0
- /package/dist/{runtime-Ck3lNvST.js → .setup/runtime-Ck3lNvST.mjs} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { a as ssrfPolicyFromAllowPrivateNetwork, i as isBlockedHostnameOrIp, n as createDedupeCache, o as ssrfPolicyFromDangerouslyAllowPrivateNetwork, r as fetchWithSsrFGuard, s as createLoggerBackedRuntime, t as SsrFBlockedError } from "./runtime-api-C5wXFh-q.mjs";
|
|
2
|
+
import { t as tlonPlugin } from "./channel-C4bCfDOT.mjs";
|
|
3
|
+
import { n as setTlonRuntime } from "./runtime-Ck3lNvST.mjs";
|
|
4
|
+
import "../api.js";
|
|
5
|
+
export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromAllowPrivateNetwork, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-DhzowRcD.
|
|
2
|
-
import { a as tlonSetupAdapter, d as
|
|
1
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-DhzowRcD.mjs";
|
|
2
|
+
import { a as tlonSetupAdapter, d as formatTargetHint, f as normalizeShip, h as resolveTlonOutboundTarget, l as listTlonAccountIds, m as parseTlonTarget, n as createTlonSetupWizardBase, u as resolveTlonAccount } from "./setup-core-C373Z5Vo.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";
|
|
6
6
|
import { createHybridChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
7
|
-
import {
|
|
7
|
+
import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
8
8
|
import { createChannelMessageAdapterFromOutbound, createRuntimeOutboundDelegates } from "openclaw/plugin-sdk/channel-outbound";
|
|
9
9
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
10
10
|
import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
11
11
|
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
12
|
-
import {
|
|
12
|
+
import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
//#region extensions/tlon/src/config-schema.ts
|
|
15
15
|
const ShipSchema = z.string().min(1);
|
|
@@ -33,21 +33,18 @@ const tlonCommonConfigFields = {
|
|
|
33
33
|
autoDiscoverChannels: z.boolean().optional(),
|
|
34
34
|
showModelSignature: z.boolean().optional(),
|
|
35
35
|
responsePrefix: z.string().optional(),
|
|
36
|
-
implicitMentions: ChannelImplicitMentionsSchema.optional(),
|
|
37
36
|
autoAcceptDmInvites: z.boolean().optional(),
|
|
38
37
|
autoAcceptGroupInvites: z.boolean().optional(),
|
|
39
38
|
ownerShip: ShipSchema.optional()
|
|
40
39
|
};
|
|
41
40
|
const TlonAccountSchema = z.object({ ...tlonCommonConfigFields });
|
|
42
|
-
const
|
|
41
|
+
const TlonConfigSchema = z.object({
|
|
43
42
|
...tlonCommonConfigFields,
|
|
44
43
|
authorization: TlonAuthorizationSchema.optional(),
|
|
45
44
|
defaultAuthorizedShips: z.array(ShipSchema).optional(),
|
|
46
45
|
accounts: z.record(z.string(), TlonAccountSchema).optional()
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
implicitMentions: true
|
|
50
|
-
}) });
|
|
46
|
+
});
|
|
47
|
+
const tlonChannelConfigSchema = buildChannelConfigSchema(TlonConfigSchema);
|
|
51
48
|
//#endregion
|
|
52
49
|
//#region extensions/tlon/src/doctor.ts
|
|
53
50
|
const tlonDoctor = {
|
|
@@ -91,7 +88,7 @@ function resolveTlonOutboundSessionRoute(params) {
|
|
|
91
88
|
//#endregion
|
|
92
89
|
//#region extensions/tlon/src/channel.ts
|
|
93
90
|
const TLON_CHANNEL_ID = "tlon";
|
|
94
|
-
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
91
|
+
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-ByKPmlwv.mjs"));
|
|
95
92
|
const tlonSetupWizardProxy = createTlonSetupWizardBase({
|
|
96
93
|
resolveConfigured: async ({ cfg, accountId }) => await (await loadTlonChannelRuntime()).tlonSetupWizard.status.resolveConfigured({
|
|
97
94
|
cfg,
|
|
@@ -165,7 +162,6 @@ const tlonPlugin = createChatChannelPlugin({
|
|
|
165
162
|
threads: true
|
|
166
163
|
},
|
|
167
164
|
setup: tlonSetupAdapter,
|
|
168
|
-
setupContract: tlonSetupContract,
|
|
169
165
|
setupWizard: tlonSetupWizardProxy,
|
|
170
166
|
reload: { configPrefixes: ["channels.tlon"] },
|
|
171
167
|
configSchema: tlonChannelConfigSchema,
|
|
@@ -218,12 +214,12 @@ const tlonPlugin = createChatChannelPlugin({
|
|
|
218
214
|
url: s.url ?? null
|
|
219
215
|
};
|
|
220
216
|
},
|
|
221
|
-
probeAccount: async ({ account
|
|
217
|
+
probeAccount: async ({ account }) => {
|
|
222
218
|
if (!account.configured || !account.ship || !account.url || !account.code) return {
|
|
223
219
|
ok: false,
|
|
224
220
|
error: "Not configured"
|
|
225
221
|
};
|
|
226
|
-
return await (await loadTlonChannelRuntime()).probeTlonAccount(account
|
|
222
|
+
return await (await loadTlonChannelRuntime()).probeTlonAccount(account);
|
|
227
223
|
},
|
|
228
224
|
resolveAccountSnapshot: ({ account }) => ({
|
|
229
225
|
accountId: account.accountId,
|