@openclaw/tlon 2026.5.12 → 2026.5.14-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
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-BFBQps9q.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-ApLAuk_p.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-BFBQps9q.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
|
|
@@ -1949,21 +1949,22 @@ async function downloadMedia(url, mediaDir) {
|
|
|
1949
1949
|
console.warn(`[tlon-media] Rejected non-http(s) URL: ${url}`);
|
|
1950
1950
|
return null;
|
|
1951
1951
|
}
|
|
1952
|
-
const
|
|
1952
|
+
const fetchOptions = {
|
|
1953
1953
|
url,
|
|
1954
1954
|
maxBytes: MAX_IMAGE_BYTES,
|
|
1955
1955
|
readIdleTimeoutMs: TLON_MEDIA_DOWNLOAD_IDLE_TIMEOUT_MS,
|
|
1956
1956
|
ssrfPolicy: void 0,
|
|
1957
1957
|
requestInit: { method: "GET" }
|
|
1958
|
-
}
|
|
1958
|
+
};
|
|
1959
1959
|
if (!mediaDir) {
|
|
1960
|
-
const saved = await
|
|
1960
|
+
const saved = await saveRemoteMedia(fetchOptions);
|
|
1961
1961
|
return {
|
|
1962
1962
|
localPath: saved.path,
|
|
1963
|
-
contentType: saved.contentType ??
|
|
1963
|
+
contentType: saved.contentType ?? "application/octet-stream",
|
|
1964
1964
|
originalUrl: url
|
|
1965
1965
|
};
|
|
1966
1966
|
}
|
|
1967
|
+
const fetched = await readRemoteMediaBuffer(fetchOptions);
|
|
1967
1968
|
await mkdir(mediaDir, { recursive: true });
|
|
1968
1969
|
const ext = getExtensionFromFileName(fetched.fileName) || getExtensionFromContentType(fetched.contentType ?? "") || getExtensionFromUrl(url) || "bin";
|
|
1969
1970
|
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-BFBQps9q.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.1",
|
|
4
4
|
"description": "OpenClaw Tlon/Urbit channel plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"openclaw": "workspace:*"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"openclaw": ">=2026.5.
|
|
22
|
+
"openclaw": ">=2026.5.14-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.14-beta.1"
|
|
77
77
|
},
|
|
78
78
|
"build": {
|
|
79
|
-
"openclawVersion": "2026.5.
|
|
79
|
+
"openclawVersion": "2026.5.14-beta.1"
|
|
80
80
|
},
|
|
81
81
|
"release": {
|
|
82
82
|
"publishToClawHub": true,
|