@openclaw/tlon 2026.7.2-beta.3 → 2026.7.2-beta.5
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-B_FSYQLm.js → channel-Ds41J7__.js} +5 -4
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-CbQv5emM.js → channel.runtime-B9OMPklT.js} +652 -308
- package/dist/setup-api.js +2 -2
- package/dist/{setup-core-BgykzCYT.js → setup-core-DUM2q1dE.js} +90 -19
- package/dist/{setup-surface-j5Hrbts7.js → setup-surface-1WtsAw4R.js} +1 -1
- package/package.json +79 -33
- package/npm-shrinkwrap.json +0 -544
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-DUM2q1dE.js";
|
|
2
|
+
import { t as tlonSetupWizard } from "./setup-surface-1WtsAw4R.js";
|
|
3
3
|
export { tlonSetupAdapter, tlonSetupWizard };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { hasLegacyFlatAllowPrivateNetworkAlias, isBlockedHostnameOrIp, isPrivateNetworkOptInEnabled } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
2
|
+
import { createAccountListHelpers } from "openclaw/plugin-sdk/account-helpers";
|
|
2
3
|
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
4
|
+
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
3
5
|
import { DEFAULT_ACCOUNT_ID, createSetupInputPresenceValidator, createSetupTranslator, formatDocsLink, normalizeAccountId, patchScopedAccountConfig, prepareScopedSetupConfig } from "openclaw/plugin-sdk/setup";
|
|
4
6
|
import { normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
|
-
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1,
|
|
7
|
+
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/account-resolution";
|
|
6
8
|
//#region extensions/tlon/src/targets.ts
|
|
7
9
|
const SHIP_RE = /^~?[a-z-]+$/i;
|
|
8
10
|
const NEST_RE = /^chat\/([^/]+)\/([^/]+)$/i;
|
|
@@ -105,15 +107,15 @@ function buildTlonAccountFields(input) {
|
|
|
105
107
|
function resolveTlonChannelConfig(cfg) {
|
|
106
108
|
return cfg.channels?.tlon;
|
|
107
109
|
}
|
|
110
|
+
const { listAccountIds: listTlonAccountIds, resolveAccountConfig: resolveMergedNamedTlonAccountConfig } = createAccountListHelpers("tlon", {
|
|
111
|
+
normalizeAccountId: normalizeAccountId$1,
|
|
112
|
+
fallbackAccountIdWhenEmpty: false,
|
|
113
|
+
hasImplicitDefaultAccount: (cfg) => Boolean(resolveTlonChannelConfig(cfg)?.ship)
|
|
114
|
+
});
|
|
108
115
|
function resolveMergedTlonAccountConfig(cfg, accountId) {
|
|
109
116
|
const channel = resolveTlonChannelConfig(cfg);
|
|
110
117
|
if (accountId === DEFAULT_ACCOUNT_ID$1) return channel ?? {};
|
|
111
|
-
return
|
|
112
|
-
channelConfig: channel ?? {},
|
|
113
|
-
accounts: channel?.accounts,
|
|
114
|
-
accountId,
|
|
115
|
-
normalizeAccountId: normalizeAccountId$1
|
|
116
|
-
});
|
|
118
|
+
return resolveMergedNamedTlonAccountConfig(cfg, accountId);
|
|
117
119
|
}
|
|
118
120
|
function resolveTlonAccount(cfg, accountId) {
|
|
119
121
|
const resolvedAccountId = normalizeAccountId$1(accountId);
|
|
@@ -171,14 +173,6 @@ function resolveTlonAccount(cfg, accountId) {
|
|
|
171
173
|
ownerShip
|
|
172
174
|
};
|
|
173
175
|
}
|
|
174
|
-
function listTlonAccountIds(cfg) {
|
|
175
|
-
const base = resolveTlonChannelConfig(cfg);
|
|
176
|
-
if (!base) return [];
|
|
177
|
-
return listCombinedAccountIds({
|
|
178
|
-
configuredAccountIds: Object.keys(base.accounts ?? {}).map(normalizeAccountId$1),
|
|
179
|
-
implicitAccountId: base.ship ? DEFAULT_ACCOUNT_ID$1 : void 0
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
176
|
//#endregion
|
|
183
177
|
//#region extensions/tlon/src/urbit/base-url.ts
|
|
184
178
|
function hasScheme(value) {
|
|
@@ -361,7 +355,18 @@ function applyTlonSetupConfig(params) {
|
|
|
361
355
|
});
|
|
362
356
|
}
|
|
363
357
|
const tlonSetupAdapter = {
|
|
358
|
+
singleAccountKeysToMove: ["url", "code"],
|
|
364
359
|
resolveAccountId: ({ accountId }) => normalizeAccountId(accountId),
|
|
360
|
+
prepareAccountConfigInput: ({ input }) => {
|
|
361
|
+
const setupInput = input;
|
|
362
|
+
const url = normalizeOptionalString(setupInput.url);
|
|
363
|
+
if (!url) return setupInput;
|
|
364
|
+
const validatedUrl = validateUrbitBaseUrl(url);
|
|
365
|
+
return validatedUrl.ok ? {
|
|
366
|
+
...setupInput,
|
|
367
|
+
url: validatedUrl.baseUrl
|
|
368
|
+
} : setupInput;
|
|
369
|
+
},
|
|
365
370
|
applyAccountName: ({ cfg, accountId, name }) => prepareScopedSetupConfig({
|
|
366
371
|
cfg,
|
|
367
372
|
channelKey: tlonChannelId(),
|
|
@@ -369,12 +374,15 @@ const tlonSetupAdapter = {
|
|
|
369
374
|
name
|
|
370
375
|
}),
|
|
371
376
|
validateInput: createSetupInputPresenceValidator({ validate: ({ cfg, accountId, input }) => {
|
|
377
|
+
const setupInput = input;
|
|
372
378
|
const resolved = resolveTlonAccount(cfg, accountId ?? void 0);
|
|
373
|
-
const ship = normalizeOptionalString(
|
|
374
|
-
const url = normalizeOptionalString(
|
|
375
|
-
const code = normalizeOptionalString(
|
|
379
|
+
const ship = normalizeOptionalString(setupInput.ship ?? resolved.ship);
|
|
380
|
+
const url = normalizeOptionalString(setupInput.url ?? resolved.url);
|
|
381
|
+
const code = normalizeOptionalString(setupInput.code ?? resolved.code);
|
|
376
382
|
if (!ship) return "Tlon requires --ship.";
|
|
377
383
|
if (!url) return "Tlon requires --url.";
|
|
384
|
+
const validatedUrl = validateUrbitBaseUrl(url);
|
|
385
|
+
if (!validatedUrl.ok) return `Invalid URL: ${validatedUrl.error}`;
|
|
378
386
|
if (!code) return "Tlon requires --code.";
|
|
379
387
|
return null;
|
|
380
388
|
} }),
|
|
@@ -384,5 +392,68 @@ const tlonSetupAdapter = {
|
|
|
384
392
|
input
|
|
385
393
|
})
|
|
386
394
|
};
|
|
395
|
+
const tlonSetupContract = defineChannelSetupContract({
|
|
396
|
+
fields: {
|
|
397
|
+
ship: {
|
|
398
|
+
kind: "string",
|
|
399
|
+
cli: {
|
|
400
|
+
flags: "--ship <ship>",
|
|
401
|
+
description: "Tlon ship"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
url: {
|
|
405
|
+
kind: "string",
|
|
406
|
+
cli: {
|
|
407
|
+
flags: "--url <url>",
|
|
408
|
+
description: "Tlon URL"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
code: {
|
|
412
|
+
kind: "string",
|
|
413
|
+
sensitive: true,
|
|
414
|
+
cli: {
|
|
415
|
+
flags: "--code <code>",
|
|
416
|
+
description: "Tlon login code"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
dangerouslyAllowPrivateNetwork: {
|
|
420
|
+
kind: "boolean",
|
|
421
|
+
cli: {
|
|
422
|
+
flags: "--dangerously-allow-private-network",
|
|
423
|
+
description: "Allow private-network Tlon URLs"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
groupChannels: {
|
|
427
|
+
kind: "string-list",
|
|
428
|
+
cli: {
|
|
429
|
+
flags: "--group-channels <list>",
|
|
430
|
+
description: "Tlon group channels"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
dmAllowlist: {
|
|
434
|
+
kind: "string-list",
|
|
435
|
+
cli: {
|
|
436
|
+
flags: "--dm-allowlist <list>",
|
|
437
|
+
description: "Tlon DM allowlist"
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
autoDiscoverChannels: {
|
|
441
|
+
kind: "boolean",
|
|
442
|
+
cli: {
|
|
443
|
+
flags: "--auto-discover-channels",
|
|
444
|
+
negatedFlags: "--no-auto-discover-channels",
|
|
445
|
+
description: "Auto-discover Tlon group channels"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
ownerShip: {
|
|
449
|
+
kind: "string",
|
|
450
|
+
cli: {
|
|
451
|
+
flags: "--owner-ship <ship>",
|
|
452
|
+
description: "Tlon owner ship"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
legacyAdapter: tlonSetupAdapter
|
|
457
|
+
});
|
|
387
458
|
//#endregion
|
|
388
|
-
export { tlonSetupAdapter as a,
|
|
459
|
+
export { tlonSetupAdapter as a, normalizeUrbitHostname as c, resolveTlonAccount as d, formatTargetHint as f, resolveTlonOutboundTarget as g, parseTlonTarget as h, resolveTlonSetupStatusLines as i, validateUrbitBaseUrl as l, parseChannelNest as m, createTlonSetupWizardBase as n, tlonSetupContract as o, normalizeShip as p, resolveTlonSetupConfigured as r, isBlockedUrbitHostname as s, applyTlonSetupConfig as t, listTlonAccountIds as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as resolveTlonAccount, i as resolveTlonSetupStatusLines, l as validateUrbitBaseUrl, n as createTlonSetupWizardBase, p as normalizeShip, r as resolveTlonSetupConfigured, s as isBlockedUrbitHostname, t as applyTlonSetupConfig } from "./setup-core-DUM2q1dE.js";
|
|
2
2
|
import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { createSetupTranslator } from "openclaw/plugin-sdk/setup-runtime";
|
|
4
4
|
//#region extensions/tlon/src/setup-surface.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/tlon",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.5",
|
|
4
4
|
"description": "OpenClaw Tlon/Urbit channel plugin for chat workflows.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@aws-sdk/client-s3": "3.
|
|
12
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
11
|
+
"@aws-sdk/client-s3": "3.1090.0",
|
|
12
|
+
"@aws-sdk/s3-request-presigner": "3.1090.0",
|
|
13
13
|
"@tloncorp/tlon-skill": "0.4.3",
|
|
14
14
|
"@urbit/aura": "3.0.0",
|
|
15
15
|
"zod": "4.4.3"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"openclaw": "workspace:*"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"openclaw": ">=2026.7.2-beta.
|
|
22
|
+
"openclaw": ">=2026.7.2-beta.5"
|
|
23
23
|
},
|
|
24
24
|
"peerDependenciesMeta": {
|
|
25
25
|
"openclaw": {
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
"./index.ts"
|
|
32
32
|
],
|
|
33
33
|
"setupEntry": "./dist/setup-entry.js",
|
|
34
|
+
"setupFeatures": {
|
|
35
|
+
"configPromotion": true
|
|
36
|
+
},
|
|
34
37
|
"channel": {
|
|
35
38
|
"id": "tlon",
|
|
36
39
|
"label": "Tlon",
|
|
@@ -40,32 +43,76 @@
|
|
|
40
43
|
"blurb": "decentralized messaging on Urbit; install the plugin to enable.",
|
|
41
44
|
"order": 90,
|
|
42
45
|
"quickstartAllowFrom": true,
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
46
|
+
"setup": {
|
|
47
|
+
"fields": [
|
|
48
|
+
{
|
|
49
|
+
"key": "ship",
|
|
50
|
+
"kind": "string",
|
|
51
|
+
"cli": {
|
|
52
|
+
"flags": "--ship <ship>",
|
|
53
|
+
"description": "Tlon ship"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"key": "url",
|
|
58
|
+
"kind": "string",
|
|
59
|
+
"cli": {
|
|
60
|
+
"flags": "--url <url>",
|
|
61
|
+
"description": "Tlon URL"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"key": "code",
|
|
66
|
+
"kind": "string",
|
|
67
|
+
"sensitive": true,
|
|
68
|
+
"cli": {
|
|
69
|
+
"flags": "--code <code>",
|
|
70
|
+
"description": "Tlon login code"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"key": "dangerouslyAllowPrivateNetwork",
|
|
75
|
+
"kind": "boolean",
|
|
76
|
+
"cli": {
|
|
77
|
+
"flags": "--dangerously-allow-private-network",
|
|
78
|
+
"description": "Allow private-network Tlon URLs"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"key": "groupChannels",
|
|
83
|
+
"kind": "string-list",
|
|
84
|
+
"cli": {
|
|
85
|
+
"flags": "--group-channels <list>",
|
|
86
|
+
"description": "Tlon group channels"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "dmAllowlist",
|
|
91
|
+
"kind": "string-list",
|
|
92
|
+
"cli": {
|
|
93
|
+
"flags": "--dm-allowlist <list>",
|
|
94
|
+
"description": "Tlon DM allowlist"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"key": "autoDiscoverChannels",
|
|
99
|
+
"kind": "boolean",
|
|
100
|
+
"cli": {
|
|
101
|
+
"flags": "--auto-discover-channels",
|
|
102
|
+
"negatedFlags": "--no-auto-discover-channels",
|
|
103
|
+
"description": "Auto-discover Tlon group channels"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"key": "ownerShip",
|
|
108
|
+
"kind": "string",
|
|
109
|
+
"cli": {
|
|
110
|
+
"flags": "--owner-ship <ship>",
|
|
111
|
+
"description": "Tlon owner ship"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
69
116
|
},
|
|
70
117
|
"install": {
|
|
71
118
|
"npmSpec": "@openclaw/tlon",
|
|
@@ -73,10 +120,10 @@
|
|
|
73
120
|
"minHostVersion": ">=2026.4.10"
|
|
74
121
|
},
|
|
75
122
|
"compat": {
|
|
76
|
-
"pluginApi": ">=2026.7.2-beta.
|
|
123
|
+
"pluginApi": ">=2026.7.2-beta.5"
|
|
77
124
|
},
|
|
78
125
|
"build": {
|
|
79
|
-
"openclawVersion": "2026.7.2-beta.
|
|
126
|
+
"openclawVersion": "2026.7.2-beta.5"
|
|
80
127
|
},
|
|
81
128
|
"release": {
|
|
82
129
|
"bundleRuntimeDependencies": false,
|
|
@@ -91,7 +138,6 @@
|
|
|
91
138
|
"files": [
|
|
92
139
|
"dist/**",
|
|
93
140
|
"openclaw.plugin.json",
|
|
94
|
-
"npm-shrinkwrap.json",
|
|
95
141
|
"README.md"
|
|
96
142
|
]
|
|
97
143
|
}
|