@openclaw/tlon 2026.10.10 → 2026.11.5-beta.1
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-uhQCnWtf.mjs → api-C6K2sVAS.mjs} +1 -1
- package/dist/.setup/{channel-DwKKUzwx.mjs → channel-D7_rs7Qi.mjs} +4 -5
- package/dist/.setup/{channel.runtime-CdWyxE8W.mjs → channel.runtime-BVE1h2Io.mjs} +438 -512
- package/dist/.setup/{setup-core-DnIfSMDp.mjs → setup-core-BjuM9rjU.mjs} +12 -16
- package/dist/.setup/{setup-surface-CTiMlwQy.mjs → setup-surface-CsTGExtf.mjs} +20 -32
- package/dist/.source-module-urls/219ea9f09fb313a73daa9d49cae583628627d248b038afb8d4cbf4dbf34fd43c.json +1 -1
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/setup-api.js +2 -2
- package/dist/setup-entry.js +1 -1
- package/package.json +8 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isBlockedHostnameOrIp } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
2
2
|
import { createAccountListHelpers, resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/account-helpers";
|
|
3
|
-
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
4
3
|
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
5
4
|
import { DEFAULT_ACCOUNT_ID, createSetupInputPresenceValidator, createSetupTranslator, formatDocsLink, normalizeAccountId, patchScopedAccountConfig, prepareScopedSetupConfig } from "openclaw/plugin-sdk/setup";
|
|
6
5
|
import { normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
|
+
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
7
7
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/account-resolution";
|
|
8
8
|
// extensions/tlon/src/targets.ts
|
|
9
9
|
const SHIP_RE = /^~?[a-z-]+$/i;
|
|
@@ -82,19 +82,6 @@ function resolveTlonOutboundTarget(to) {
|
|
|
82
82
|
function formatTargetHint() {
|
|
83
83
|
return "dm/~sampel-palnet | ~sampel-palnet | chat/~host-ship/channel | group:~host-ship/channel";
|
|
84
84
|
}
|
|
85
|
-
// extensions/tlon/src/account-fields.ts
|
|
86
|
-
function buildTlonAccountFields(input) {
|
|
87
|
-
return {
|
|
88
|
-
...input.ship ? { ship: input.ship } : {},
|
|
89
|
-
...input.url ? { url: input.url } : {},
|
|
90
|
-
...input.code ? { code: input.code } : {},
|
|
91
|
-
...typeof input.dangerouslyAllowPrivateNetwork === "boolean" ? { network: { dangerouslyAllowPrivateNetwork: input.dangerouslyAllowPrivateNetwork } } : {},
|
|
92
|
-
...input.groupChannels ? { groupChannels: input.groupChannels } : {},
|
|
93
|
-
...input.dmAllowlist ? { dmAllowlist: input.dmAllowlist } : {},
|
|
94
|
-
...typeof input.autoDiscoverChannels === "boolean" ? { autoDiscoverChannels: input.autoDiscoverChannels } : {},
|
|
95
|
-
...input.ownerShip ? { ownerShip: input.ownerShip } : {}
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
85
|
// extensions/tlon/src/types.ts
|
|
99
86
|
function resolveTlonChannelConfig(cfg) {
|
|
100
87
|
return cfg.channels?.tlon;
|
|
@@ -278,7 +265,16 @@ function applyTlonSetupConfig(params) {
|
|
|
278
265
|
name: input.name
|
|
279
266
|
});
|
|
280
267
|
const base = namedConfig.channels?.tlon ?? {};
|
|
281
|
-
const payload =
|
|
268
|
+
const payload = {
|
|
269
|
+
...input.ship ? { ship: input.ship } : {},
|
|
270
|
+
...input.url ? { url: input.url } : {},
|
|
271
|
+
...input.code ? { code: input.code } : {},
|
|
272
|
+
...input.dangerouslyAllowPrivateNetwork !== void 0 ? { network: { dangerouslyAllowPrivateNetwork: input.dangerouslyAllowPrivateNetwork } } : {},
|
|
273
|
+
...input.groupChannels ? { groupChannels: input.groupChannels } : {},
|
|
274
|
+
...input.dmAllowlist ? { dmAllowlist: input.dmAllowlist } : {},
|
|
275
|
+
...input.autoDiscoverChannels !== void 0 ? { autoDiscoverChannels: input.autoDiscoverChannels } : {},
|
|
276
|
+
...input.ownerShip ? { ownerShip: input.ownerShip } : {}
|
|
277
|
+
};
|
|
282
278
|
return patchScopedAccountConfig({
|
|
283
279
|
cfg: namedConfig,
|
|
284
280
|
channelKey: "tlon",
|
|
@@ -316,7 +312,7 @@ const tlonSetupAdapter = {
|
|
|
316
312
|
}),
|
|
317
313
|
validateInput: createSetupInputPresenceValidator({ validate: ({ cfg, accountId, input }) => {
|
|
318
314
|
const setupInput = input;
|
|
319
|
-
const resolved = resolveTlonAccount(cfg, accountId
|
|
315
|
+
const resolved = resolveTlonAccount(cfg, accountId);
|
|
320
316
|
const ship = normalizeOptionalString(setupInput.ship ?? resolved.ship);
|
|
321
317
|
const url = normalizeOptionalString(setupInput.url ?? resolved.url);
|
|
322
318
|
const code = normalizeOptionalString(setupInput.code ?? resolved.code);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isBlockedUrbitHostname, c as resolveTlonAccount, n as createTlonSetupWizardBase, o as validateUrbitBaseUrl, t as applyTlonSetupConfig, u as normalizeShip } from "./setup-core-
|
|
1
|
+
import { a as isBlockedUrbitHostname, c as resolveTlonAccount, n as createTlonSetupWizardBase, o as validateUrbitBaseUrl, t as applyTlonSetupConfig, u as normalizeShip } from "./setup-core-BjuM9rjU.mjs";
|
|
2
2
|
import { createSetupTranslator, splitSetupEntries } from "openclaw/plugin-sdk/setup-runtime";
|
|
3
3
|
// extensions/tlon/src/setup-surface.ts
|
|
4
4
|
const t = createSetupTranslator();
|
|
@@ -20,37 +20,25 @@ const tlonSetupWizard = createTlonSetupWizardBase(async ({ cfg, accountId, promp
|
|
|
20
20
|
accountId,
|
|
21
21
|
input: { dangerouslyAllowPrivateNetwork }
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
initialValue: currentAllowlist.length > 0
|
|
43
|
-
})) {
|
|
44
|
-
const entry = await prompter.text({
|
|
45
|
-
message: t("wizard.tlon.dmAllowlistPrompt"),
|
|
46
|
-
placeholder: "~zod, ~nec",
|
|
47
|
-
initialValue: currentAllowlist.join(", ") || void 0
|
|
48
|
-
});
|
|
49
|
-
next = applyTlonSetupConfig({
|
|
50
|
-
cfg: next,
|
|
51
|
-
accountId,
|
|
52
|
-
input: { dmAllowlist: splitSetupEntries(entry ?? "").map((ship) => normalizeShip(ship)) }
|
|
53
|
-
});
|
|
23
|
+
for (const field of ["groupChannels", "dmAllowlist"]) {
|
|
24
|
+
const groups = field === "groupChannels";
|
|
25
|
+
const current = resolved[field];
|
|
26
|
+
if (await prompter.confirm({
|
|
27
|
+
message: t(groups ? "wizard.tlon.addGroupsPrompt" : "wizard.tlon.restrictDmsPrompt"),
|
|
28
|
+
initialValue: current.length > 0
|
|
29
|
+
})) {
|
|
30
|
+
const entry = await prompter.text({
|
|
31
|
+
message: t(groups ? "wizard.tlon.groupChannelsPrompt" : "wizard.tlon.dmAllowlistPrompt"),
|
|
32
|
+
placeholder: groups ? "chat/~host-ship/general, chat/~host-ship/support" : "~zod, ~nec",
|
|
33
|
+
initialValue: current.join(", ") || void 0
|
|
34
|
+
});
|
|
35
|
+
const entries = splitSetupEntries(entry ?? "");
|
|
36
|
+
next = applyTlonSetupConfig({
|
|
37
|
+
cfg: next,
|
|
38
|
+
accountId,
|
|
39
|
+
input: { [field]: groups ? entries : entries.map((ship) => normalizeShip(ship)) }
|
|
40
|
+
});
|
|
41
|
+
}
|
|
54
42
|
}
|
|
55
43
|
const autoDiscoverChannels = await prompter.confirm({
|
|
56
44
|
message: t("wizard.tlon.autoDiscoveryPrompt"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"api.js","source":"extensions/tlon/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/tlon/channel-plugin-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/tlon/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/tlon/index.ts"},{"output":"runtime-api.js","source":"extensions/tlon/runtime-api.ts"},{"output":"setup-api.js","source":"extensions/tlon/setup-api.ts"},{"output":"setup-entry.js","source":"extensions/tlon/setup-entry.ts"}],"chunks":[{"output":".setup/api-
|
|
1
|
+
{"version":3,"entries":[{"output":"api.js","source":"extensions/tlon/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/tlon/channel-plugin-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/tlon/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/tlon/index.ts"},{"output":"runtime-api.js","source":"extensions/tlon/runtime-api.ts"},{"output":"setup-api.js","source":"extensions/tlon/setup-api.ts"},{"output":"setup-entry.js","source":"extensions/tlon/setup-entry.ts"}],"chunks":[{"output":".setup/api-C6K2sVAS.mjs","sha256":"55ebabbdbd85857b81ba4e4dac7d7af2f9c653d80bb3e2a24db94c7199e4faa6","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":".setup/channel-D7_rs7Qi.mjs","sha256":"90b0e8f7a132349b6c9f7fb6d32bce4aa1d6324a4fea55de5224c045af337628","facadeSource":null,"sources":["extensions/tlon/src/channel.ts","extensions/tlon/src/config-schema.ts","extensions/tlon/src/doctor.ts"]},{"output":".setup/channel.runtime-BVE1h2Io.mjs","sha256":"11313685b919ae379cd42f82316d36bc90e80b4e385aa749a4cbe5aa772a50b4","facadeSource":"extensions/tlon/src/channel.runtime.ts","sources":["extensions/tlon/src/channel.runtime.ts","extensions/tlon/src/media-fetch-timeouts.ts","extensions/tlon/src/monitor/approval-runtime.ts","extensions/tlon/src/monitor/approval.ts","extensions/tlon/src/monitor/authorization.ts","extensions/tlon/src/monitor/cites.ts","extensions/tlon/src/monitor/discovery.ts","extensions/tlon/src/monitor/history.ts","extensions/tlon/src/monitor/index.ts","extensions/tlon/src/monitor/ingress.ts","extensions/tlon/src/monitor/media.ts","extensions/tlon/src/monitor/mentions.ts","extensions/tlon/src/monitor/settings-helpers.ts","extensions/tlon/src/monitor/tracking.ts","extensions/tlon/src/monitor/utils.ts","extensions/tlon/src/settings.ts","extensions/tlon/src/tlon-api.ts","extensions/tlon/src/urbit/auth.ts","extensions/tlon/src/urbit/channel-ops.ts","extensions/tlon/src/urbit/context.ts","extensions/tlon/src/urbit/errors.ts","extensions/tlon/src/urbit/fetch.ts","extensions/tlon/src/urbit/redact.ts","extensions/tlon/src/urbit/send.ts","extensions/tlon/src/urbit/sse-client.ts","extensions/tlon/src/urbit/story.ts","extensions/tlon/src/urbit/upload.ts","src/channels/mention-gating.ts"]},{"output":".setup/doctor-contract-CfYeTj9o.mjs","sha256":"cd414672cef0faa7cc964028ec840a10c720f80b8c416ea4695a16931c249e63","facadeSource":null,"sources":["extensions/tlon/src/doctor-contract.ts","packages/normalization-core/src/record-coerce.ts","src/config/channel-config-normalization.ts","src/plugin-sdk/legacy-webhook-listener-migration.ts"]},{"output":".setup/runtime-ReERXJF_.mjs","sha256":"23ea20b9a79e00a2a761e2c1ee5753526019a34f8a5c9caa26b7f9fed435292e","facadeSource":null,"sources":["extensions/tlon/src/runtime.ts"]},{"output":".setup/setup-core-BjuM9rjU.mjs","sha256":"32d762d969daed00b09c9600d32b8ca20f45755f7620483d9e79cf7f463bb314","facadeSource":null,"sources":["extensions/tlon/src/setup-core.ts","extensions/tlon/src/targets.ts","extensions/tlon/src/types.ts","extensions/tlon/src/urbit/base-url.ts"]},{"output":".setup/setup-surface-CsTGExtf.mjs","sha256":"5cdede999d65d0126b861fb4d94bdea05bfb6edc48c6deee8819a9d23d4047a9","facadeSource":null,"sources":["extensions/tlon/src/setup-surface.ts"]},{"output":"api.js","sha256":"f42be998c14631615d009b16c437a04dc88b2d7a435d10da9295fc4b45581fef","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"633379d94ae52aacb9588d526b118fb9eba131f850e0bee7a733c0df1e594f9c","facadeSource":"extensions/tlon/channel-plugin-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"269771e05b29fb710fa0c235a6c197e7bdae2550a2607fae3dcb5befd600a040","facadeSource":"extensions/tlon/doctor-contract-api.ts","sources":[]},{"output":"index.js","sha256":"71964a841ad9ec38d0abc3cbbb090b3d19f452a5070009a62ced5883999abd41","facadeSource":"extensions/tlon/index.ts","sources":["extensions/tlon/index.ts"]},{"output":"runtime-api.js","sha256":"84b5cef46a80daf5dd78edb6afd45310e3877e6d91d56716af7992f38f01e7cb","facadeSource":"extensions/tlon/runtime-api.ts","sources":[]},{"output":"setup-api.js","sha256":"ba868f4eea47dc29c9028ce365ff0d084c3eb1c5485382a79277a4a7f212eb3d","facadeSource":"extensions/tlon/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"d7fcd6bf31f62a358474b5030a0fa72bdba919cd2910036a8f1bf0660aa5a584","facadeSource":"extensions/tlon/setup-entry.ts","sources":["extensions/tlon/setup-entry.ts"]}],"unrenderedSources":["extensions/tlon/api.ts","extensions/tlon/channel-plugin-api.ts","extensions/tlon/config-doctor-api.ts","extensions/tlon/doctor-contract-api.ts","extensions/tlon/runtime-api.ts","extensions/tlon/setup-api.ts"]}
|
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-D7_rs7Qi.mjs";
|
|
3
3
|
import { n as setTlonRuntime } from "./.setup/runtime-ReERXJF_.mjs";
|
|
4
4
|
export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as tlonPlugin } from "./.setup/channel-
|
|
1
|
+
export { t as tlonPlugin } from "./.setup/channel-D7_rs7Qi.mjs";
|
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-BjuM9rjU.mjs";
|
|
2
|
+
import { t as tlonSetupWizard } from "./.setup/setup-surface-CsTGExtf.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-C6K2sVAS.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.11.5-beta.1",
|
|
4
4
|
"description": "OpenClaw Tlon/Urbit channel plugin for chat workflows.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@aws-sdk/client-s3": "3.
|
|
12
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
13
|
-
"@tloncorp/tlon-skill": "0.
|
|
11
|
+
"@aws-sdk/client-s3": "3.1153.0",
|
|
12
|
+
"@aws-sdk/s3-request-presigner": "3.1153.0",
|
|
13
|
+
"@tloncorp/tlon-skill": "0.8.1",
|
|
14
14
|
"@urbit/aura": "3.0.0",
|
|
15
|
-
"zod": "4.6.
|
|
15
|
+
"zod": "4.6.7"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@openclaw/plugin-sdk": "workspace:*",
|
|
19
19
|
"openclaw": "workspace:*"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"openclaw": ">=2026.
|
|
22
|
+
"openclaw": ">=2026.11.5-beta.1"
|
|
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.11.5-beta.1"
|
|
125
125
|
},
|
|
126
126
|
"build": {
|
|
127
|
-
"openclawVersion": "2026.
|
|
127
|
+
"openclawVersion": "2026.11.5-beta.1"
|
|
128
128
|
},
|
|
129
129
|
"release": {
|
|
130
130
|
"bundleRuntimeDependencies": false,
|