@openclaw/tlon 2026.9.8 → 2026.10.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/.setup/{api-zkJ1V5qJ.mjs → api-B1JbxRVg.mjs} +1 -1
- package/dist/.setup/{channel-DNzlsYXc.mjs → channel-1Iz9bkFT.mjs} +7 -4
- package/dist/.setup/{channel.runtime-C_kML1QC.mjs → channel.runtime-BespHUPW.mjs} +225 -444
- package/dist/.setup/{doctor-contract-BiiG6XQ7.mjs → doctor-contract-bInPRAQZ.mjs} +6 -0
- package/dist/.setup/{setup-core-Bktn6kgm.mjs → setup-core-CDShPwjB.mjs} +28 -64
- package/dist/.setup/{setup-surface-BemXwGis.mjs → setup-surface-o-30U28J.mjs} +4 -8
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/setup-api.js +2 -2
- package/dist/setup-entry.js +1 -1
- package/package.json +4 -4
|
@@ -124,6 +124,12 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
124
124
|
};
|
|
125
125
|
const prefix = `channels.${params.channelKey}`;
|
|
126
126
|
return {
|
|
127
|
+
historicalWebhookListener: {
|
|
128
|
+
channelId: params.channelKey,
|
|
129
|
+
port: params.defaultPort,
|
|
130
|
+
preserveAuthoredActivation: params.preserveAuthoredActivation,
|
|
131
|
+
...params.defaultHost === void 0 ? {} : { host: params.defaultHost }
|
|
132
|
+
},
|
|
127
133
|
legacyConfigRules: [{
|
|
128
134
|
path: ["channels", params.channelKey],
|
|
129
135
|
message: `${prefix} webhook listeners moved to Gateway routes. Run "openclaw doctor --fix" to preserve explicitly configured listener settings as legacyWebhook.`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isBlockedHostnameOrIp } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
2
2
|
import { createAccountListHelpers, resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/account-helpers";
|
|
3
3
|
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
4
4
|
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
@@ -47,16 +47,10 @@ function parseTlonTarget(raw) {
|
|
|
47
47
|
return makeGroupTarget(parsed);
|
|
48
48
|
}
|
|
49
49
|
const parts = groupTarget.split("/");
|
|
50
|
-
if (parts.length === 2) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
kind: "group",
|
|
55
|
-
nest: `chat/${hostShip}/${channelName}`,
|
|
56
|
-
hostShip,
|
|
57
|
-
channelName
|
|
58
|
-
};
|
|
59
|
-
}
|
|
50
|
+
if (parts.length === 2) return makeGroupTarget({
|
|
51
|
+
hostShip: normalizeShip(expectDefined(parts[0], "two-part group host")),
|
|
52
|
+
channelName: expectDefined(parts[1], "two-part group channel")
|
|
53
|
+
});
|
|
60
54
|
return null;
|
|
61
55
|
}
|
|
62
56
|
if (withoutPrefix.startsWith("chat/")) {
|
|
@@ -119,71 +113,41 @@ function resolveMergedTlonAccountConfig(cfg, accountId) {
|
|
|
119
113
|
}
|
|
120
114
|
function resolveTlonAccount(cfg, accountId) {
|
|
121
115
|
const resolvedAccountId = normalizeAccountId$1(accountId);
|
|
122
|
-
|
|
123
|
-
accountId: resolvedAccountId,
|
|
124
|
-
name: null,
|
|
125
|
-
enabled: false,
|
|
126
|
-
configured: false,
|
|
127
|
-
ship: null,
|
|
128
|
-
url: null,
|
|
129
|
-
code: null,
|
|
130
|
-
dangerouslyAllowPrivateNetwork: null,
|
|
131
|
-
groupChannels: [],
|
|
132
|
-
dmAllowlist: [],
|
|
133
|
-
groupInviteAllowlist: [],
|
|
134
|
-
autoDiscoverChannels: null,
|
|
135
|
-
showModelSignature: null,
|
|
136
|
-
autoAcceptDmInvites: null,
|
|
137
|
-
autoAcceptGroupInvites: null,
|
|
138
|
-
defaultAuthorizedShips: [],
|
|
139
|
-
ownerShip: null
|
|
140
|
-
};
|
|
116
|
+
const base = resolveTlonChannelConfig(cfg);
|
|
141
117
|
const merged = resolveMergedTlonAccountConfig(cfg, resolvedAccountId);
|
|
142
118
|
const ship = merged.ship ?? null;
|
|
143
119
|
const url = merged.url ?? null;
|
|
144
120
|
const code = merged.code ?? null;
|
|
145
|
-
const dangerouslyAllowPrivateNetwork = isPrivateNetworkOptInEnabled(merged) ? true : typeof merged.network?.dangerouslyAllowPrivateNetwork === "boolean" ? merged.network.dangerouslyAllowPrivateNetwork : hasLegacyFlatAllowPrivateNetworkAlias(merged) && typeof merged.allowPrivateNetwork === "boolean" ? merged.allowPrivateNetwork : null;
|
|
146
|
-
const groupChannels = merged.groupChannels ?? [];
|
|
147
|
-
const dmAllowlist = merged.dmAllowlist ?? [];
|
|
148
|
-
const groupInviteAllowlist = merged.groupInviteAllowlist ?? [];
|
|
149
|
-
const autoDiscoverChannels = merged.autoDiscoverChannels ?? null;
|
|
150
|
-
const showModelSignature = merged.showModelSignature ?? null;
|
|
151
|
-
const autoAcceptDmInvites = merged.autoAcceptDmInvites ?? null;
|
|
152
|
-
const autoAcceptGroupInvites = merged.autoAcceptGroupInvites ?? null;
|
|
153
|
-
const ownerShip = merged.ownerShip ?? null;
|
|
154
|
-
const defaultAuthorizedShips = merged.defaultAuthorizedShips ?? [];
|
|
155
|
-
const configured = Boolean(ship && url && code);
|
|
156
121
|
return {
|
|
157
122
|
accountId: resolvedAccountId,
|
|
158
123
|
name: merged.name ?? null,
|
|
159
|
-
enabled: merged.enabled !== false,
|
|
160
|
-
configured,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
124
|
+
enabled: Boolean(base) && merged.enabled !== false,
|
|
125
|
+
configured: Boolean(ship && url && code),
|
|
126
|
+
...base ? {
|
|
127
|
+
requireMentionInBotThreads: merged.requireMentionInBotThreads,
|
|
128
|
+
mediaMaxBytes: resolveChannelMediaMaxBytes({
|
|
129
|
+
cfg,
|
|
130
|
+
accountId: resolvedAccountId,
|
|
131
|
+
resolveChannelLimitMb: () => merged.mediaMaxMb
|
|
132
|
+
})
|
|
133
|
+
} : {},
|
|
167
134
|
ship,
|
|
168
135
|
url,
|
|
169
136
|
code,
|
|
170
|
-
dangerouslyAllowPrivateNetwork,
|
|
171
|
-
groupChannels,
|
|
172
|
-
dmAllowlist,
|
|
173
|
-
groupInviteAllowlist,
|
|
174
|
-
autoDiscoverChannels,
|
|
175
|
-
showModelSignature,
|
|
176
|
-
autoAcceptDmInvites,
|
|
177
|
-
autoAcceptGroupInvites,
|
|
178
|
-
defaultAuthorizedShips,
|
|
179
|
-
ownerShip
|
|
137
|
+
dangerouslyAllowPrivateNetwork: merged.network?.dangerouslyAllowPrivateNetwork ?? null,
|
|
138
|
+
groupChannels: merged.groupChannels ?? [],
|
|
139
|
+
dmAllowlist: merged.dmAllowlist ?? [],
|
|
140
|
+
groupInviteAllowlist: merged.groupInviteAllowlist ?? [],
|
|
141
|
+
autoDiscoverChannels: merged.autoDiscoverChannels ?? null,
|
|
142
|
+
showModelSignature: merged.showModelSignature ?? null,
|
|
143
|
+
autoAcceptDmInvites: merged.autoAcceptDmInvites ?? null,
|
|
144
|
+
autoAcceptGroupInvites: merged.autoAcceptGroupInvites ?? null,
|
|
145
|
+
defaultAuthorizedShips: merged.defaultAuthorizedShips ?? [],
|
|
146
|
+
ownerShip: merged.ownerShip ?? null
|
|
180
147
|
};
|
|
181
148
|
}
|
|
182
149
|
//#endregion
|
|
183
150
|
//#region extensions/tlon/src/urbit/base-url.ts
|
|
184
|
-
function hasScheme(value) {
|
|
185
|
-
return /^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(value);
|
|
186
|
-
}
|
|
187
151
|
function normalizeUrbitHostname(hostname) {
|
|
188
152
|
return (hostname ?? "").trim().toLowerCase().replace(/\.$/, "");
|
|
189
153
|
}
|
|
@@ -193,7 +157,7 @@ function validateUrbitBaseUrl(raw) {
|
|
|
193
157
|
ok: false,
|
|
194
158
|
error: "Required"
|
|
195
159
|
};
|
|
196
|
-
const candidate =
|
|
160
|
+
const candidate = /^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(trimmed) ? trimmed : `https://${trimmed}`;
|
|
197
161
|
let parsed;
|
|
198
162
|
try {
|
|
199
163
|
parsed = new URL(candidate);
|
|
@@ -441,4 +405,4 @@ const tlonSetupContract = defineChannelSetupContract({
|
|
|
441
405
|
legacyAdapter: tlonSetupAdapter
|
|
442
406
|
});
|
|
443
407
|
//#endregion
|
|
444
|
-
export { isBlockedUrbitHostname as a,
|
|
408
|
+
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,11 +1,7 @@
|
|
|
1
|
-
import { a as isBlockedUrbitHostname,
|
|
2
|
-
import {
|
|
3
|
-
import { createSetupTranslator } from "openclaw/plugin-sdk/setup-runtime";
|
|
1
|
+
import { a as isBlockedUrbitHostname, c as resolveTlonAccount, n as createTlonSetupWizardBase, o as validateUrbitBaseUrl, t as applyTlonSetupConfig, u as normalizeShip } from "./setup-core-CDShPwjB.mjs";
|
|
2
|
+
import { createSetupTranslator, splitSetupEntries } from "openclaw/plugin-sdk/setup-runtime";
|
|
4
3
|
//#region extensions/tlon/src/setup-surface.ts
|
|
5
4
|
const t = createSetupTranslator();
|
|
6
|
-
function parseList(value) {
|
|
7
|
-
return normalizeStringEntries(value.split(/[\n,;]+/g));
|
|
8
|
-
}
|
|
9
5
|
const tlonSetupWizard = createTlonSetupWizardBase(async ({ cfg, accountId, prompter }) => {
|
|
10
6
|
let next = cfg;
|
|
11
7
|
const resolved = resolveTlonAccount(next, accountId);
|
|
@@ -37,7 +33,7 @@ const tlonSetupWizard = createTlonSetupWizardBase(async ({ cfg, accountId, promp
|
|
|
37
33
|
next = applyTlonSetupConfig({
|
|
38
34
|
cfg: next,
|
|
39
35
|
accountId,
|
|
40
|
-
input: { groupChannels:
|
|
36
|
+
input: { groupChannels: splitSetupEntries(entry ?? "") }
|
|
41
37
|
});
|
|
42
38
|
}
|
|
43
39
|
const currentAllowlist = resolved.dmAllowlist;
|
|
@@ -53,7 +49,7 @@ const tlonSetupWizard = createTlonSetupWizardBase(async ({ cfg, accountId, promp
|
|
|
53
49
|
next = applyTlonSetupConfig({
|
|
54
50
|
cfg: next,
|
|
55
51
|
accountId,
|
|
56
|
-
input: { dmAllowlist:
|
|
52
|
+
input: { dmAllowlist: splitSetupEntries(entry ?? "").map((ship) => normalizeShip(ship)) }
|
|
57
53
|
});
|
|
58
54
|
}
|
|
59
55
|
const autoDiscoverChannels = await prompter.confirm({
|
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-1Iz9bkFT.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-1Iz9bkFT.mjs";
|
|
2
2
|
export { tlonPlugin };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-
|
|
1
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-bInPRAQZ.mjs";
|
|
2
2
|
export { legacyConfigRules, normalizeCompatibilityConfig };
|
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-CDShPwjB.mjs";
|
|
2
|
+
import { t as tlonSetupWizard } from "./.setup/setup-surface-o-30U28J.mjs";
|
|
3
3
|
export { tlonSetupAdapter, tlonSetupWizard };
|
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-B1JbxRVg.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.
|
|
3
|
+
"version": "2026.10.1-beta.2",
|
|
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.
|
|
22
|
+
"openclaw": ">=2026.10.1-beta.2"
|
|
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.
|
|
124
|
+
"pluginApi": ">=2026.10.1-beta.2"
|
|
125
125
|
},
|
|
126
126
|
"build": {
|
|
127
|
-
"openclawVersion": "2026.
|
|
127
|
+
"openclawVersion": "2026.10.1-beta.2"
|
|
128
128
|
},
|
|
129
129
|
"release": {
|
|
130
130
|
"bundleRuntimeDependencies": false,
|