@openclaw/tlon 2026.5.12 → 2026.5.14-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/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-Dwt2AVOl.js";
|
|
3
3
|
import { n as setTlonRuntime } from "./runtime-5FiW9E50.js";
|
|
4
4
|
export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromAllowPrivateNetwork, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
|
|
@@ -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-DgMKIRME.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-Dwt2AVOl.js";
|
|
2
2
|
export { tlonPlugin };
|
|
@@ -13,7 +13,7 @@ import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
|
13
13
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
14
14
|
import * as path from "node:path";
|
|
15
15
|
import { extensionForMime } from "openclaw/plugin-sdk/media-mime";
|
|
16
|
-
import { MAX_IMAGE_BYTES,
|
|
16
|
+
import { MAX_IMAGE_BYTES, readRemoteMediaBuffer, saveRemoteMedia } from "openclaw/plugin-sdk/media-runtime";
|
|
17
17
|
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
18
18
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
19
19
|
//#region extensions/tlon/src/settings.ts
|
|
@@ -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);
|
|
@@ -1949,21 +1960,22 @@ async function downloadMedia(url, mediaDir) {
|
|
|
1949
1960
|
console.warn(`[tlon-media] Rejected non-http(s) URL: ${url}`);
|
|
1950
1961
|
return null;
|
|
1951
1962
|
}
|
|
1952
|
-
const
|
|
1963
|
+
const fetchOptions = {
|
|
1953
1964
|
url,
|
|
1954
1965
|
maxBytes: MAX_IMAGE_BYTES,
|
|
1955
1966
|
readIdleTimeoutMs: TLON_MEDIA_DOWNLOAD_IDLE_TIMEOUT_MS,
|
|
1956
1967
|
ssrfPolicy: void 0,
|
|
1957
1968
|
requestInit: { method: "GET" }
|
|
1958
|
-
}
|
|
1969
|
+
};
|
|
1959
1970
|
if (!mediaDir) {
|
|
1960
|
-
const saved = await
|
|
1971
|
+
const saved = await saveRemoteMedia(fetchOptions);
|
|
1961
1972
|
return {
|
|
1962
1973
|
localPath: saved.path,
|
|
1963
|
-
contentType: saved.contentType ??
|
|
1974
|
+
contentType: saved.contentType ?? "application/octet-stream",
|
|
1964
1975
|
originalUrl: url
|
|
1965
1976
|
};
|
|
1966
1977
|
}
|
|
1978
|
+
const fetched = await readRemoteMediaBuffer(fetchOptions);
|
|
1967
1979
|
await mkdir(mediaDir, { recursive: true });
|
|
1968
1980
|
const ext = getExtensionFromFileName(fetched.fileName) || getExtensionFromContentType(fetched.contentType ?? "") || getExtensionFromUrl(url) || "bin";
|
|
1969
1981
|
const localPath = path.join(mediaDir, `${randomUUID()}.${ext}`);
|
package/dist/test-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as tlonPlugin } from "./channel-
|
|
1
|
+
import { t as tlonPlugin } from "./channel-Dwt2AVOl.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.14-beta.2",
|
|
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.14-beta.2"
|
|
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.14-beta.2"
|
|
77
77
|
},
|
|
78
78
|
"build": {
|
|
79
|
-
"openclawVersion": "2026.5.
|
|
79
|
+
"openclawVersion": "2026.5.14-beta.2"
|
|
80
80
|
},
|
|
81
81
|
"release": {
|
|
82
82
|
"publishToClawHub": true,
|