@openclaw/tlon 2026.11.3 → 2026.11.5-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-CjtitEAT.mjs → api-C3N9E4O0.mjs} +1 -1
- package/dist/.setup/{channel-BtaSROL1.mjs → channel-bmlV7Bo5.mjs} +4 -6
- package/dist/.setup/{channel.runtime-BfYxNfpN.mjs → channel.runtime-CGmlLjBi.mjs} +368 -497
- package/dist/.setup/{setup-core-kO8u8noA.mjs → setup-core-Cfw9JPWJ.mjs} +12 -17
- package/dist/.setup/{setup-surface-Byac6RoF.mjs → setup-surface-C0_CutPR.mjs} +20 -32
- package/dist/.source-module-urls/219ea9f09fb313a73daa9d49cae583628627d248b038afb8d4cbf4dbf34fd43c.json +1 -0
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +1 -2
- package/dist/doctor-contract-api.js +1 -2
- 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
|
//#region extensions/tlon/src/targets.ts
|
|
9
9
|
const SHIP_RE = /^~?[a-z-]+$/i;
|
|
@@ -83,20 +83,6 @@ function formatTargetHint() {
|
|
|
83
83
|
return "dm/~sampel-palnet | ~sampel-palnet | chat/~host-ship/channel | group:~host-ship/channel";
|
|
84
84
|
}
|
|
85
85
|
//#endregion
|
|
86
|
-
//#region extensions/tlon/src/account-fields.ts
|
|
87
|
-
function buildTlonAccountFields(input) {
|
|
88
|
-
return {
|
|
89
|
-
...input.ship ? { ship: input.ship } : {},
|
|
90
|
-
...input.url ? { url: input.url } : {},
|
|
91
|
-
...input.code ? { code: input.code } : {},
|
|
92
|
-
...typeof input.dangerouslyAllowPrivateNetwork === "boolean" ? { network: { dangerouslyAllowPrivateNetwork: input.dangerouslyAllowPrivateNetwork } } : {},
|
|
93
|
-
...input.groupChannels ? { groupChannels: input.groupChannels } : {},
|
|
94
|
-
...input.dmAllowlist ? { dmAllowlist: input.dmAllowlist } : {},
|
|
95
|
-
...typeof input.autoDiscoverChannels === "boolean" ? { autoDiscoverChannels: input.autoDiscoverChannels } : {},
|
|
96
|
-
...input.ownerShip ? { ownerShip: input.ownerShip } : {}
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
86
|
//#region extensions/tlon/src/types.ts
|
|
101
87
|
function resolveTlonChannelConfig(cfg) {
|
|
102
88
|
return cfg.channels?.tlon;
|
|
@@ -282,7 +268,16 @@ function applyTlonSetupConfig(params) {
|
|
|
282
268
|
name: input.name
|
|
283
269
|
});
|
|
284
270
|
const base = namedConfig.channels?.tlon ?? {};
|
|
285
|
-
const payload =
|
|
271
|
+
const payload = {
|
|
272
|
+
...input.ship ? { ship: input.ship } : {},
|
|
273
|
+
...input.url ? { url: input.url } : {},
|
|
274
|
+
...input.code ? { code: input.code } : {},
|
|
275
|
+
...input.dangerouslyAllowPrivateNetwork !== void 0 ? { network: { dangerouslyAllowPrivateNetwork: input.dangerouslyAllowPrivateNetwork } } : {},
|
|
276
|
+
...input.groupChannels ? { groupChannels: input.groupChannels } : {},
|
|
277
|
+
...input.dmAllowlist ? { dmAllowlist: input.dmAllowlist } : {},
|
|
278
|
+
...input.autoDiscoverChannels !== void 0 ? { autoDiscoverChannels: input.autoDiscoverChannels } : {},
|
|
279
|
+
...input.ownerShip ? { ownerShip: input.ownerShip } : {}
|
|
280
|
+
};
|
|
286
281
|
return patchScopedAccountConfig({
|
|
287
282
|
cfg: namedConfig,
|
|
288
283
|
channelKey: "tlon",
|
|
@@ -320,7 +315,7 @@ const tlonSetupAdapter = {
|
|
|
320
315
|
}),
|
|
321
316
|
validateInput: createSetupInputPresenceValidator({ validate: ({ cfg, accountId, input }) => {
|
|
322
317
|
const setupInput = input;
|
|
323
|
-
const resolved = resolveTlonAccount(cfg, accountId
|
|
318
|
+
const resolved = resolveTlonAccount(cfg, accountId);
|
|
324
319
|
const ship = normalizeOptionalString(setupInput.ship ?? resolved.ship);
|
|
325
320
|
const url = normalizeOptionalString(setupInput.url ?? resolved.url);
|
|
326
321
|
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-Cfw9JPWJ.mjs";
|
|
2
2
|
import { createSetupTranslator, splitSetupEntries } from "openclaw/plugin-sdk/setup-runtime";
|
|
3
3
|
//#region 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"),
|
|
@@ -0,0 +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-C3N9E4O0.mjs","sha256":"84e553f1110a8ff8e0ad5301c965537ab50b8d3410b4676a15dda91fe537bb40","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":".setup/channel-bmlV7Bo5.mjs","sha256":"2b1c9f99f36d65ccf0b811a3d3526707b54e15c40abd19e444a76eebebb2e73e","facadeSource":null,"sources":["extensions/tlon/src/channel.ts","extensions/tlon/src/config-schema.ts","extensions/tlon/src/doctor.ts"]},{"output":".setup/channel.runtime-CGmlLjBi.mjs","sha256":"219850db869816e9def2e04a94b114a8efc465ecf399f8ad0a8e9aed4f418e10","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-bInPRAQZ.mjs","sha256":"ba06bce97c984451581c990c9cfebbc69f70f3087e0eae04f07659084b6b16ba","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-Ck3lNvST.mjs","sha256":"b47fecb040ffb94da7eaa7ea1f026897d4b982aad8459b1da6f42878f0af2fcd","facadeSource":null,"sources":["extensions/tlon/src/runtime.ts"]},{"output":".setup/setup-core-Cfw9JPWJ.mjs","sha256":"e927ddfae71b2b29ba08d479ecee065cabc700a9c2c031441fd372870a1df530","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-C0_CutPR.mjs","sha256":"eb7684c22c80a227fe8f6b7d814478073be40adfdeeae2239ec53784d23b18e3","facadeSource":null,"sources":["extensions/tlon/src/setup-surface.ts"]},{"output":"api.js","sha256":"65e7a0d35e8aabb61c42b2b56a4f59603328531c6f57076a871c000c6d1de217","facadeSource":"extensions/tlon/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"74f7e7ed4dc4ea4a5ade022ae1ae0fddcd020fa6a419dd48f40c034a01803ebb","facadeSource":"extensions/tlon/channel-plugin-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"d8bfd31033274b1d661f7320b7d4ccaba6321d47ed309409003928b72403cb2f","facadeSource":"extensions/tlon/doctor-contract-api.ts","sources":[]},{"output":"index.js","sha256":"40ecbe760d30b082e1a5a9eb2590c33ef411f287fa5b655373df7d5126005654","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":"174eb1a77e44c095507aa23bd9e9d1b3b4d027c5411a23b4fb65e2ccc9f1f9ed","facadeSource":"extensions/tlon/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"5373636e056c24bf423ec283a90a2da38181bf4a67bb7c5911f52ca25227950c","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-bmlV7Bo5.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 @@
|
|
|
1
|
-
|
|
2
|
-
export { tlonPlugin };
|
|
1
|
+
export { t as tlonPlugin } from "./.setup/channel-bmlV7Bo5.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { legacyConfigRules, normalizeCompatibilityConfig };
|
|
1
|
+
export { t as legacyConfigRules, n as normalizeCompatibilityConfig } from "./.setup/doctor-contract-bInPRAQZ.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-Cfw9JPWJ.mjs";
|
|
2
|
+
import { t as tlonSetupWizard } from "./.setup/setup-surface-C0_CutPR.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-C3N9E4O0.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.11.
|
|
3
|
+
"version": "2026.11.5-beta.2",
|
|
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.11.
|
|
22
|
+
"openclaw": ">=2026.11.5-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.11.
|
|
124
|
+
"pluginApi": ">=2026.11.5-beta.2"
|
|
125
125
|
},
|
|
126
126
|
"build": {
|
|
127
|
-
"openclawVersion": "2026.11.
|
|
127
|
+
"openclawVersion": "2026.11.5-beta.2"
|
|
128
128
|
},
|
|
129
129
|
"release": {
|
|
130
130
|
"bundleRuntimeDependencies": false,
|