@openclaw/tlon 2026.6.11-beta.2 → 2026.7.1-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-C5wXFh-q.js";
2
- import { t as tlonPlugin } from "./channel-colVGWsG.js";
2
+ import { t as tlonPlugin } from "./channel-D2igKfh7.js";
3
3
  import { n as setTlonRuntime } from "./runtime-Ck3lNvST.js";
4
4
  export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromAllowPrivateNetwork, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
@@ -84,7 +84,7 @@ function resolveTlonOutboundSessionRoute(params) {
84
84
  //#endregion
85
85
  //#region extensions/tlon/src/channel.ts
86
86
  const TLON_CHANNEL_ID = "tlon";
87
- const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-80PKL204.js"));
87
+ const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BLHok4Sp.js"));
88
88
  const tlonSetupWizardProxy = createTlonSetupWizardBase({
89
89
  resolveConfigured: async ({ cfg, accountId }) => await (await loadTlonChannelRuntime()).tlonSetupWizard.status.resolveConfigured({
90
90
  cfg,
@@ -1,2 +1,2 @@
1
- import { t as tlonPlugin } from "./channel-colVGWsG.js";
1
+ import { t as tlonPlugin } from "./channel-D2igKfh7.js";
2
2
  export { tlonPlugin };
@@ -6,9 +6,11 @@ import { fetchWithSsrFGuard, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from
6
6
  import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
7
7
  import { asFiniteNumber, normalizeLowercaseStringOrEmpty, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
8
8
  import crypto, { randomBytes, randomUUID } from "node:crypto";
9
+ import { sliceUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
9
10
  import { da, scot } from "@urbit/aura";
10
11
  import { Readable } from "node:stream";
11
12
  import { resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
13
+ import { readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
12
14
  import { resolveStableChannelMessageIngress } from "openclaw/plugin-sdk/channel-ingress-runtime";
13
15
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
14
16
  import { mkdir, writeFile } from "node:fs/promises";
@@ -667,6 +669,7 @@ async function putUrbitChannel(deps, params) {
667
669
  auditContext: params.auditContext
668
670
  });
669
671
  }
672
+ const TLON_ERROR_BODY_LIMIT_BYTES = 16 * 1024;
670
673
  async function pokeUrbitChannel(deps, params) {
671
674
  const pokeId = Date.now();
672
675
  const { response, release } = await putUrbitChannel(deps, {
@@ -682,7 +685,7 @@ async function pokeUrbitChannel(deps, params) {
682
685
  });
683
686
  try {
684
687
  if (!response.ok && response.status !== 204) {
685
- const errorText = await response.text().catch(() => "");
688
+ const errorText = await readResponseTextLimited(response, TLON_ERROR_BODY_LIMIT_BYTES).catch(() => "");
686
689
  throw new Error(`Poke failed: ${response.status}${errorText ? ` - ${errorText}` : ""}`);
687
690
  }
688
691
  return pokeId;
@@ -838,7 +841,7 @@ var UrbitSSEClient = class {
838
841
  });
839
842
  try {
840
843
  if (!response.ok && response.status !== 204) {
841
- const errorText = await response.text().catch(() => "");
844
+ const errorText = await readResponseTextLimited(response, 16 * 1024).catch(() => "");
842
845
  throw new Error(`Subscribe failed: ${response.status}${errorText ? ` - ${errorText}` : ""}`);
843
846
  }
844
847
  } finally {
@@ -1123,7 +1126,7 @@ function createPendingApproval(params) {
1123
1126
  requestingShip: params.requestingShip,
1124
1127
  channelNest: params.channelNest,
1125
1128
  groupFlag: params.groupFlag,
1126
- messagePreview: params.messagePreview,
1129
+ messagePreview: params.messagePreview != null ? sliceUtf16Safe(params.messagePreview, 0, 100) : void 0,
1127
1130
  originalMessage: params.originalMessage,
1128
1131
  timestamp: Date.now()
1129
1132
  };
@@ -1133,7 +1136,7 @@ function createPendingApproval(params) {
1133
1136
  */
1134
1137
  function truncate(text, maxLength) {
1135
1138
  if (text.length <= maxLength) return text;
1136
- return text.slice(0, maxLength - 3) + "...";
1139
+ return sliceUtf16Safe(text, 0, maxLength - 3) + "...";
1137
1140
  }
1138
1141
  /**
1139
1142
  * Format a notification message for the owner about a pending approval.
@@ -2700,7 +2703,7 @@ async function monitorTlonProvider(opts = {}) {
2700
2703
  type: "channel",
2701
2704
  requestingShip: senderShip,
2702
2705
  channelNest: nest,
2703
- messagePreview: rawText.slice(0, 100),
2706
+ messagePreview: sliceUtf16Safe(rawText, 0, 100),
2704
2707
  originalMessage: {
2705
2708
  messageId: messageId ?? "",
2706
2709
  messageText: rawText,
@@ -2848,7 +2851,7 @@ async function monitorTlonProvider(opts = {}) {
2848
2851
  if (effectiveOwnerShip) await queueApprovalRequest(createPendingApproval({
2849
2852
  type: "dm",
2850
2853
  requestingShip: senderShip,
2851
- messagePreview: messageText.slice(0, 100),
2854
+ messagePreview: sliceUtf16Safe(messageText, 0, 100),
2852
2855
  originalMessage: {
2853
2856
  messageId: messageId ?? "",
2854
2857
  messageText,
@@ -3478,7 +3481,7 @@ async function createHttpPokeApi(params) {
3478
3481
  });
3479
3482
  try {
3480
3483
  if (!response.ok && response.status !== 204) {
3481
- const errorText = await response.text();
3484
+ const errorText = await readResponseTextLimited(response, 16 * 1024);
3482
3485
  throw new Error(`Poke failed: ${response.status} - ${errorText}`);
3483
3486
  }
3484
3487
  return pokeId;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/tlon",
3
- "version": "2026.6.11-beta.2",
3
+ "version": "2026.7.1-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/tlon",
9
- "version": "2026.6.11-beta.2",
9
+ "version": "2026.7.1-beta.1",
10
10
  "dependencies": {
11
11
  "@aws-sdk/client-s3": "3.1056.0",
12
12
  "@aws-sdk/s3-request-presigner": "3.1056.0",
@@ -15,7 +15,7 @@
15
15
  "zod": "4.4.3"
16
16
  },
17
17
  "peerDependencies": {
18
- "openclaw": ">=2026.6.11-beta.2"
18
+ "openclaw": ">=2026.7.1-beta.1"
19
19
  },
20
20
  "peerDependenciesMeta": {
21
21
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/tlon",
3
- "version": "2026.6.11-beta.2",
3
+ "version": "2026.7.1-beta.1",
4
4
  "description": "OpenClaw Tlon/Urbit channel plugin for chat workflows.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,10 +16,10 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@openclaw/plugin-sdk": "workspace:*",
19
- "openclaw": "2026.5.28"
19
+ "openclaw": "workspace:*"
20
20
  },
21
21
  "peerDependencies": {
22
- "openclaw": ">=2026.6.11-beta.2"
22
+ "openclaw": ">=2026.7.1-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.6.11-beta.2"
76
+ "pluginApi": ">=2026.7.1-beta.1"
77
77
  },
78
78
  "build": {
79
- "openclawVersion": "2026.6.11-beta.2"
79
+ "openclawVersion": "2026.7.1-beta.1"
80
80
  },
81
81
  "release": {
82
82
  "bundleRuntimeDependencies": false,