@openclaw/tlon 2026.7.2-beta.5 → 2026.8.1-beta.2
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/api.js +1 -1
- package/dist/{channel-Ds41J7__.js → channel-CcNtsFWE.js} +11 -5
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-B9OMPklT.js → channel.runtime-BrjZMX8z.js} +323 -245
- package/dist/{doctor-contract-DhzowRcD.js → doctor-contract-CZ8OWBXt.js} +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/setup-api.js +2 -2
- package/dist/{setup-core-DUM2q1dE.js → setup-core-QCmS9Gmh.js} +2 -0
- package/dist/{setup-surface-1WtsAw4R.js → setup-surface-UgXzT7Tg.js} +1 -1
- package/openclaw.plugin.json +9 -0
- package/package.json +7 -7
package/dist/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as ssrfPolicyFromDangerouslyAllowPrivateNetwork, i as isBlockedHostnameOrIp, n as createDedupeCache, o as createLoggerBackedRuntime, r as fetchWithSsrFGuard, t as SsrFBlockedError } from "./runtime-api-BXVe40nS.js";
|
|
2
|
-
import { t as tlonPlugin } from "./channel-
|
|
2
|
+
import { t as tlonPlugin } from "./channel-CcNtsFWE.js";
|
|
3
3
|
import { n as setTlonRuntime } from "./runtime-Ck3lNvST.js";
|
|
4
4
|
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-CZ8OWBXt.js";
|
|
2
|
+
import { d as resolveTlonAccount, f as formatTargetHint, g as resolveTlonOutboundTarget, h as parseTlonTarget, n as createTlonSetupWizardBase, o as tlonSetupContract, p as normalizeShip, u as listTlonAccountIds } from "./setup-core-QCmS9Gmh.js";
|
|
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";
|
|
@@ -8,7 +8,7 @@ import { createChannelConfigUiHints, createChatChannelPlugin } from "openclaw/pl
|
|
|
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
|
-
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
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
|
//#region extensions/tlon/src/config-schema.ts
|
|
@@ -23,6 +23,7 @@ const TlonNetworkSchema = z.object({ dangerouslyAllowPrivateNetwork: z.boolean()
|
|
|
23
23
|
const tlonCommonConfigFields = {
|
|
24
24
|
name: z.string().optional(),
|
|
25
25
|
enabled: z.boolean().optional(),
|
|
26
|
+
configWrites: z.boolean().optional(),
|
|
26
27
|
ship: ShipSchema.optional(),
|
|
27
28
|
url: z.string().optional(),
|
|
28
29
|
code: z.string().optional(),
|
|
@@ -91,7 +92,7 @@ function resolveTlonOutboundSessionRoute(params) {
|
|
|
91
92
|
//#endregion
|
|
92
93
|
//#region extensions/tlon/src/channel.ts
|
|
93
94
|
const TLON_CHANNEL_ID = "tlon";
|
|
94
|
-
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
95
|
+
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BrjZMX8z.js"));
|
|
95
96
|
const tlonSetupWizardProxy = createTlonSetupWizardBase({
|
|
96
97
|
resolveConfigured: async ({ cfg, accountId }) => await (await loadTlonChannelRuntime()).tlonSetupWizard.status.resolveConfigured({
|
|
97
98
|
cfg,
|
|
@@ -121,6 +122,8 @@ const tlonConfigAdapter = createHybridChannelConfigAdapter({
|
|
|
121
122
|
});
|
|
122
123
|
const tlonChannelOutbound = {
|
|
123
124
|
deliveryMode: "direct",
|
|
125
|
+
chunker: chunkTextForOutbound,
|
|
126
|
+
chunkerMode: "markdown",
|
|
124
127
|
textChunkLimit: 1e4,
|
|
125
128
|
sanitizeText: ({ text }) => sanitizeAssistantVisibleText(text),
|
|
126
129
|
resolveTarget: ({ to }) => resolveTlonOutboundTarget(to),
|
|
@@ -164,7 +167,6 @@ const tlonPlugin = createChatChannelPlugin({
|
|
|
164
167
|
reply: true,
|
|
165
168
|
threads: true
|
|
166
169
|
},
|
|
167
|
-
setup: tlonSetupAdapter,
|
|
168
170
|
setupContract: tlonSetupContract,
|
|
169
171
|
setupWizard: tlonSetupWizardProxy,
|
|
170
172
|
reload: { configPrefixes: ["channels.tlon"] },
|
|
@@ -190,6 +192,10 @@ const tlonPlugin = createChatChannelPlugin({
|
|
|
190
192
|
if (parsed.kind === "dm") return parsed.ship;
|
|
191
193
|
return parsed.nest;
|
|
192
194
|
},
|
|
195
|
+
inferTargetChatType: ({ to }) => {
|
|
196
|
+
const target = parseTlonTarget(to);
|
|
197
|
+
return target ? target.kind === "dm" ? "direct" : "group" : void 0;
|
|
198
|
+
},
|
|
193
199
|
targetResolver: {
|
|
194
200
|
looksLikeId: (target) => Boolean(parseTlonTarget(target)),
|
|
195
201
|
hint: formatTargetHint()
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as tlonPlugin } from "./channel-
|
|
1
|
+
import { t as tlonPlugin } from "./channel-CcNtsFWE.js";
|
|
2
2
|
export { tlonPlugin };
|