@openclaw/tlon 2026.5.14-beta.1 → 2026.5.16-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/api.js +1 -1
- package/dist/{channel-BFBQps9q.js → channel-C6eXIdMW.js} +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-ApLAuk_p.js → channel.runtime-dWX3jYIm.js} +15 -4
- package/dist/setup-api.js +2 -2
- package/dist/{setup-core-Iz3tcug-.js → setup-core-BZfmWHIK.js} +14 -13
- package/dist/{setup-surface-D5V1YP-e.js → setup-surface-DTMxbcrG.js} +9 -7
- package/dist/test-api.js +1 -1
- package/package.json +7 -7
package/dist/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
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-DTk5tYUa.js";
|
|
2
|
-
import { t as tlonPlugin } from "./channel-
|
|
2
|
+
import { t as tlonPlugin } from "./channel-C6eXIdMW.js";
|
|
3
3
|
import { n as setTlonRuntime } from "./runtime-5FiW9E50.js";
|
|
4
4
|
export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromAllowPrivateNetwork, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-W99wMbar.js";
|
|
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-
|
|
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-BZfmWHIK.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";
|
|
@@ -85,7 +85,7 @@ function resolveTlonOutboundSessionRoute(params) {
|
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region extensions/tlon/src/channel.ts
|
|
87
87
|
const TLON_CHANNEL_ID = "tlon";
|
|
88
|
-
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
88
|
+
const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-dWX3jYIm.js"));
|
|
89
89
|
const tlonSetupWizardProxy = createTlonSetupWizardBase({
|
|
90
90
|
resolveConfigured: async ({ cfg, accountId }) => await (await loadTlonChannelRuntime()).tlonSetupWizard.status.resolveConfigured({
|
|
91
91
|
cfg,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as tlonPlugin } from "./channel-
|
|
1
|
+
import { t as tlonPlugin } from "./channel-C6eXIdMW.js";
|
|
2
2
|
export { tlonPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as createDedupeCache, s as createLoggerBackedRuntime } from "./runtime-api-DTk5tYUa.js";
|
|
2
|
-
import { c as validateUrbitBaseUrl, d as formatTargetHint, f as normalizeShip, h as resolveTlonOutboundTarget, m as parseTlonTarget, p as parseChannelNest, s as normalizeUrbitHostname, u as resolveTlonAccount } from "./setup-core-
|
|
2
|
+
import { c as validateUrbitBaseUrl, d as formatTargetHint, f as normalizeShip, h as resolveTlonOutboundTarget, m as parseTlonTarget, p as parseChannelNest, s as normalizeUrbitHostname, u as resolveTlonAccount } from "./setup-core-BZfmWHIK.js";
|
|
3
3
|
import { t as getTlonRuntime } from "./runtime-5FiW9E50.js";
|
|
4
|
-
import { t as tlonSetupWizard } from "./setup-surface-
|
|
4
|
+
import { t as tlonSetupWizard } from "./setup-surface-DTMxbcrG.js";
|
|
5
5
|
import { fetchWithSsrFGuard, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
6
6
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-message";
|
|
7
7
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -706,7 +706,11 @@ async function scryUrbitPath(deps, params) {
|
|
|
706
706
|
});
|
|
707
707
|
try {
|
|
708
708
|
if (!response.ok) throw new Error(`Scry failed: ${response.status} for path ${params.path}`);
|
|
709
|
-
|
|
709
|
+
try {
|
|
710
|
+
return await response.json();
|
|
711
|
+
} catch (cause) {
|
|
712
|
+
throw new Error(`Urbit scry response was malformed JSON for path ${params.path}`, { cause });
|
|
713
|
+
}
|
|
710
714
|
} finally {
|
|
711
715
|
await release();
|
|
712
716
|
}
|
|
@@ -752,6 +756,13 @@ async function ensureUrbitChannelOpen(deps, params) {
|
|
|
752
756
|
}
|
|
753
757
|
//#endregion
|
|
754
758
|
//#region extensions/tlon/src/urbit/sse-client.ts
|
|
759
|
+
function parseUrbitSsePayload(data) {
|
|
760
|
+
try {
|
|
761
|
+
return JSON.parse(data);
|
|
762
|
+
} catch (cause) {
|
|
763
|
+
throw new Error("Tlon Urbit SSE event was malformed JSON", { cause });
|
|
764
|
+
}
|
|
765
|
+
}
|
|
755
766
|
var UrbitSSEClient = class {
|
|
756
767
|
constructor(url, cookie, options = {}) {
|
|
757
768
|
this.subscriptions = [];
|
|
@@ -920,7 +931,7 @@ var UrbitSSEClient = class {
|
|
|
920
931
|
}
|
|
921
932
|
}
|
|
922
933
|
try {
|
|
923
|
-
const parsed =
|
|
934
|
+
const parsed = parseUrbitSsePayload(data);
|
|
924
935
|
if (parsed.response === "quit") {
|
|
925
936
|
if (parsed.id) {
|
|
926
937
|
const handlers = this.eventHandlers.get(parsed.id);
|
package/dist/setup-api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as tlonSetupAdapter } from "./setup-core-
|
|
2
|
-
import { t as tlonSetupWizard } from "./setup-surface-
|
|
1
|
+
import { a as tlonSetupAdapter } from "./setup-core-BZfmWHIK.js";
|
|
2
|
+
import { t as tlonSetupWizard } from "./setup-surface-DTMxbcrG.js";
|
|
3
3
|
export { tlonSetupAdapter, tlonSetupWizard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hasLegacyFlatAllowPrivateNetworkAlias, isBlockedHostnameOrIp, isPrivateNetworkOptInEnabled } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
2
|
-
import { DEFAULT_ACCOUNT_ID, createSetupInputPresenceValidator, formatDocsLink, normalizeAccountId, patchScopedAccountConfig, prepareScopedSetupConfig } from "openclaw/plugin-sdk/setup";
|
|
2
|
+
import { DEFAULT_ACCOUNT_ID, createSetupInputPresenceValidator, createSetupTranslator, formatDocsLink, normalizeAccountId, patchScopedAccountConfig, prepareScopedSetupConfig } from "openclaw/plugin-sdk/setup";
|
|
3
3
|
import { normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, listCombinedAccountIds, normalizeAccountId as normalizeAccountId$1, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-resolution";
|
|
5
5
|
//#region extensions/tlon/src/targets.ts
|
|
@@ -230,6 +230,7 @@ function isBlockedUrbitHostname(hostname) {
|
|
|
230
230
|
}
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region extensions/tlon/src/setup-core.ts
|
|
233
|
+
const t = createSetupTranslator();
|
|
233
234
|
function tlonChannelId() {
|
|
234
235
|
return "tlon";
|
|
235
236
|
}
|
|
@@ -240,10 +241,10 @@ function createTlonSetupWizardBase(params) {
|
|
|
240
241
|
return {
|
|
241
242
|
channel: tlonChannelId(),
|
|
242
243
|
status: {
|
|
243
|
-
configuredLabel: "
|
|
244
|
-
unconfiguredLabel: "
|
|
245
|
-
configuredHint: "
|
|
246
|
-
unconfiguredHint: "
|
|
244
|
+
configuredLabel: t("wizard.channels.statusConfigured"),
|
|
245
|
+
unconfiguredLabel: t("wizard.channels.statusNeedsSetup"),
|
|
246
|
+
configuredHint: t("wizard.channels.statusConfigured"),
|
|
247
|
+
unconfiguredHint: t("wizard.channels.statusUrbitMessenger"),
|
|
247
248
|
configuredScore: 1,
|
|
248
249
|
unconfiguredScore: 4,
|
|
249
250
|
resolveConfigured: ({ cfg, accountId }) => params.resolveConfigured({
|
|
@@ -257,12 +258,12 @@ function createTlonSetupWizardBase(params) {
|
|
|
257
258
|
}) ?? []
|
|
258
259
|
},
|
|
259
260
|
introNote: {
|
|
260
|
-
title: "
|
|
261
|
+
title: t("wizard.tlon.setupTitle"),
|
|
261
262
|
lines: [
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
"
|
|
263
|
+
t("wizard.tlon.helpNeedsUrlCode"),
|
|
264
|
+
t("wizard.tlon.helpExampleUrl"),
|
|
265
|
+
t("wizard.tlon.helpExampleShip"),
|
|
266
|
+
t("wizard.tlon.helpPrivateNetwork"),
|
|
266
267
|
`Docs: ${formatDocsLink("/channels/tlon", "channels/tlon")}`
|
|
267
268
|
]
|
|
268
269
|
},
|
|
@@ -270,7 +271,7 @@ function createTlonSetupWizardBase(params) {
|
|
|
270
271
|
textInputs: [
|
|
271
272
|
{
|
|
272
273
|
inputKey: "ship",
|
|
273
|
-
message: "
|
|
274
|
+
message: t("wizard.tlon.shipPrompt"),
|
|
274
275
|
placeholder: "~sampel-palnet",
|
|
275
276
|
currentValue: ({ cfg, accountId }) => resolveTlonAccount(cfg, accountId).ship ?? void 0,
|
|
276
277
|
validate: ({ value }) => normalizeStringifiedOptionalString(value) ? void 0 : "Required",
|
|
@@ -283,7 +284,7 @@ function createTlonSetupWizardBase(params) {
|
|
|
283
284
|
},
|
|
284
285
|
{
|
|
285
286
|
inputKey: "url",
|
|
286
|
-
message: "
|
|
287
|
+
message: t("wizard.tlon.shipUrlPrompt"),
|
|
287
288
|
placeholder: "https://your-ship-host",
|
|
288
289
|
currentValue: ({ cfg, accountId }) => resolveTlonAccount(cfg, accountId).url ?? void 0,
|
|
289
290
|
validate: ({ value }) => {
|
|
@@ -299,7 +300,7 @@ function createTlonSetupWizardBase(params) {
|
|
|
299
300
|
},
|
|
300
301
|
{
|
|
301
302
|
inputKey: "code",
|
|
302
|
-
message: "
|
|
303
|
+
message: t("wizard.tlon.loginCodePrompt"),
|
|
303
304
|
placeholder: "lidlut-tabwed-pillex-ridrup",
|
|
304
305
|
currentValue: ({ cfg, accountId }) => resolveTlonAccount(cfg, accountId).code ?? void 0,
|
|
305
306
|
validate: ({ value }) => normalizeStringifiedOptionalString(value) ? void 0 : "Required",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { c as validateUrbitBaseUrl, f as normalizeShip, i as resolveTlonSetupStatusLines, n as createTlonSetupWizardBase, o as isBlockedUrbitHostname, r as resolveTlonSetupConfigured, t as applyTlonSetupConfig, u as resolveTlonAccount } from "./setup-core-
|
|
1
|
+
import { c as validateUrbitBaseUrl, f as normalizeShip, i as resolveTlonSetupStatusLines, n as createTlonSetupWizardBase, o as isBlockedUrbitHostname, r as resolveTlonSetupConfigured, t as applyTlonSetupConfig, u as resolveTlonAccount } from "./setup-core-BZfmWHIK.js";
|
|
2
|
+
import { createSetupTranslator } from "openclaw/plugin-sdk/setup-runtime";
|
|
2
3
|
//#region extensions/tlon/src/setup-surface.ts
|
|
4
|
+
const t = createSetupTranslator();
|
|
3
5
|
function parseList(value) {
|
|
4
6
|
return value.split(/[\n,;]+/g).map((entry) => entry.trim()).filter(Boolean);
|
|
5
7
|
}
|
|
@@ -14,7 +16,7 @@ const tlonSetupWizard = createTlonSetupWizardBase({
|
|
|
14
16
|
let dangerouslyAllowPrivateNetwork = resolved.dangerouslyAllowPrivateNetwork ?? false;
|
|
15
17
|
if (isBlockedUrbitHostname(validatedUrl.hostname)) {
|
|
16
18
|
dangerouslyAllowPrivateNetwork = await prompter.confirm({
|
|
17
|
-
message: "
|
|
19
|
+
message: t("wizard.tlon.privateNetworkPrompt"),
|
|
18
20
|
initialValue: dangerouslyAllowPrivateNetwork
|
|
19
21
|
});
|
|
20
22
|
if (!dangerouslyAllowPrivateNetwork) throw new Error("Refusing private/internal ship URL without explicit network opt-in");
|
|
@@ -26,11 +28,11 @@ const tlonSetupWizard = createTlonSetupWizardBase({
|
|
|
26
28
|
});
|
|
27
29
|
const currentGroups = resolved.groupChannels;
|
|
28
30
|
if (await prompter.confirm({
|
|
29
|
-
message: "
|
|
31
|
+
message: t("wizard.tlon.addGroupsPrompt"),
|
|
30
32
|
initialValue: currentGroups.length > 0
|
|
31
33
|
})) {
|
|
32
34
|
const entry = await prompter.text({
|
|
33
|
-
message: "
|
|
35
|
+
message: t("wizard.tlon.groupChannelsPrompt"),
|
|
34
36
|
placeholder: "chat/~host-ship/general, chat/~host-ship/support",
|
|
35
37
|
initialValue: currentGroups.join(", ") || void 0
|
|
36
38
|
});
|
|
@@ -42,11 +44,11 @@ const tlonSetupWizard = createTlonSetupWizardBase({
|
|
|
42
44
|
}
|
|
43
45
|
const currentAllowlist = resolved.dmAllowlist;
|
|
44
46
|
if (await prompter.confirm({
|
|
45
|
-
message: "
|
|
47
|
+
message: t("wizard.tlon.restrictDmsPrompt"),
|
|
46
48
|
initialValue: currentAllowlist.length > 0
|
|
47
49
|
})) {
|
|
48
50
|
const entry = await prompter.text({
|
|
49
|
-
message: "
|
|
51
|
+
message: t("wizard.tlon.dmAllowlistPrompt"),
|
|
50
52
|
placeholder: "~zod, ~nec",
|
|
51
53
|
initialValue: currentAllowlist.join(", ") || void 0
|
|
52
54
|
});
|
|
@@ -57,7 +59,7 @@ const tlonSetupWizard = createTlonSetupWizardBase({
|
|
|
57
59
|
});
|
|
58
60
|
}
|
|
59
61
|
const autoDiscoverChannels = await prompter.confirm({
|
|
60
|
-
message: "
|
|
62
|
+
message: t("wizard.tlon.autoDiscoveryPrompt"),
|
|
61
63
|
initialValue: resolved.autoDiscoverChannels ?? true
|
|
62
64
|
});
|
|
63
65
|
next = applyTlonSetupConfig({
|
package/dist/test-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as tlonPlugin } from "./channel-
|
|
1
|
+
import { t as tlonPlugin } from "./channel-C6eXIdMW.js";
|
|
2
2
|
export { tlonPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/tlon",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.16-beta.1",
|
|
4
4
|
"description": "OpenClaw Tlon/Urbit channel plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,9 +8,9 @@
|
|
|
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.1047.0",
|
|
12
|
+
"@aws-sdk/s3-request-presigner": "3.1047.0",
|
|
13
|
+
"@tloncorp/tlon-skill": "0.4.0",
|
|
14
14
|
"@urbit/aura": "3.0.0",
|
|
15
15
|
"zod": "4.4.3"
|
|
16
16
|
},
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"openclaw": "workspace:*"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"openclaw": ">=2026.5.
|
|
22
|
+
"openclaw": ">=2026.5.16-beta.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependenciesMeta": {
|
|
25
25
|
"openclaw": {
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"minHostVersion": ">=2026.4.10"
|
|
74
74
|
},
|
|
75
75
|
"compat": {
|
|
76
|
-
"pluginApi": ">=2026.5.
|
|
76
|
+
"pluginApi": ">=2026.5.16-beta.1"
|
|
77
77
|
},
|
|
78
78
|
"build": {
|
|
79
|
-
"openclawVersion": "2026.5.
|
|
79
|
+
"openclawVersion": "2026.5.16-beta.1"
|
|
80
80
|
},
|
|
81
81
|
"release": {
|
|
82
82
|
"publishToClawHub": true,
|