@openclaw/tlon 2026.8.1-beta.2 → 2026.8.1-beta.3

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 ssrfPolicyFromDangerouslyAllowPrivateNetwork, i as isBlockedHostnameOrIp, n as createDedupeCache, o as createLoggerBackedRuntime, r as fetchWithSsrFGuard, t as SsrFBlockedError } from "./runtime-api-BXVe40nS.js";
2
- import { t as tlonPlugin } from "./channel-CcNtsFWE.js";
2
+ import { t as tlonPlugin } from "./channel-CoKm1n5s.js";
3
3
  import { n as setTlonRuntime } from "./runtime-Ck3lNvST.js";
4
4
  export { SsrFBlockedError, createDedupeCache, createLoggerBackedRuntime, fetchWithSsrFGuard, isBlockedHostnameOrIp, setTlonRuntime, ssrfPolicyFromDangerouslyAllowPrivateNetwork, tlonPlugin };
@@ -92,7 +92,7 @@ function resolveTlonOutboundSessionRoute(params) {
92
92
  //#endregion
93
93
  //#region extensions/tlon/src/channel.ts
94
94
  const TLON_CHANNEL_ID = "tlon";
95
- const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BrjZMX8z.js"));
95
+ const loadTlonChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BShnsKnQ.js"));
96
96
  const tlonSetupWizardProxy = createTlonSetupWizardBase({
97
97
  resolveConfigured: async ({ cfg, accountId }) => await (await loadTlonChannelRuntime()).tlonSetupWizard.status.resolveConfigured({
98
98
  cfg,
@@ -1,2 +1,2 @@
1
- import { t as tlonPlugin } from "./channel-CcNtsFWE.js";
1
+ import { t as tlonPlugin } from "./channel-CoKm1n5s.js";
2
2
  export { tlonPlugin };
@@ -13,6 +13,7 @@ import { runChannelProbe, sliceUtf16Safe } from "openclaw/plugin-sdk/text-utilit
13
13
  import { resolveHumanDelayConfig } from "openclaw/plugin-sdk/agent-runtime";
14
14
  import { createChannelInboundEnvelopeBuilder, formatAgentEnvelope, formatInboundMediaUnavailableText, implicitMentionKindWhen, resolveEnvelopeFormatOptions, resolveInboundMentionDecision } from "openclaw/plugin-sdk/channel-inbound";
15
15
  import { collectErrorGraphCandidates, formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
16
+ import { retryAsync } from "openclaw/plugin-sdk/retry-runtime";
16
17
  import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
17
18
  import { da, scot } from "@urbit/aura";
18
19
  import { Readable } from "node:stream";
@@ -414,7 +415,7 @@ function parseInlineMarkdown(text) {
414
415
  }
415
416
  const imageMatch = remaining.match(/^!\[([^\]]*)\]\(([^)]+)\)/);
416
417
  if (imageMatch) {
417
- result.push({ __image: {
418
+ result.push({ imageBlock: {
418
419
  src: expectDefined(imageMatch[2], "image URL capture"),
419
420
  alt: expectDefined(imageMatch[1], "image alt capture")
420
421
  } });
@@ -492,8 +493,8 @@ function isImageUrl(url) {
492
493
  function processInlinesForImages(inlines) {
493
494
  const cleanInlines = [];
494
495
  const imageBlocks = [];
495
- for (const inline of inlines) if (typeof inline === "object" && "__image" in inline) {
496
- const img = inline["__image"];
496
+ for (const inline of inlines) if (typeof inline === "object" && "imageBlock" in inline) {
497
+ const img = inline.imageBlock;
497
498
  imageBlocks.push(createImageBlock(img.src, img.alt));
498
499
  } else cleanInlines.push(inline);
499
500
  return {
@@ -2662,20 +2663,27 @@ async function monitorTlonProvider(opts = {}) {
2662
2663
  const accountUrl = account.url;
2663
2664
  const accountCode = account.code;
2664
2665
  async function authenticateWithRetry(maxAttempts = 10) {
2665
- for (const attempt of Array.from({ length: Math.max(1, maxAttempts) }, (_, index) => index + 1)) {
2666
+ let authAttempt = 0;
2667
+ return await retryAsync(async () => {
2668
+ authAttempt += 1;
2666
2669
  if (opts.abortSignal?.aborted) throw new Error("Aborted while waiting to authenticate");
2667
2670
  try {
2668
2671
  runtime.log?.(`[tlon] Attempting authentication to ${accountUrl}...`);
2669
2672
  return await authenticate(accountUrl, accountCode, { ssrfPolicy });
2670
2673
  } catch (error) {
2671
- runtime.error?.(`[tlon] Failed to authenticate (attempt ${attempt}): ${formatErrorMessage(error)}`);
2672
- if (attempt >= maxAttempts) throw error;
2673
- const delay = Math.min(3e4, 1e3 * 2 ** (attempt - 1));
2674
- runtime.log?.(`[tlon] Retrying authentication in ${delay}ms...`);
2675
- await sleepWithAbort(delay, opts.abortSignal);
2674
+ runtime.error?.(`[tlon] Failed to authenticate (attempt ${authAttempt}): ${formatErrorMessage(error)}`);
2675
+ throw error;
2676
2676
  }
2677
- }
2678
- throw new Error("unreachable Tlon authentication retry loop exit");
2677
+ }, {
2678
+ attempts: Math.max(1, maxAttempts),
2679
+ minDelayMs: 0,
2680
+ shouldRetry: () => !opts.abortSignal?.aborted,
2681
+ delayMs: ({ attempt }) => Math.min(3e4, 1e3 * 2 ** (attempt - 1)),
2682
+ onRetry: ({ delayMs }) => {
2683
+ runtime.log?.(`[tlon] Retrying authentication in ${delayMs}ms...`);
2684
+ },
2685
+ sleep: (delayMs) => sleepWithAbort(delayMs, opts.abortSignal)
2686
+ });
2679
2687
  }
2680
2688
  let api = null;
2681
2689
  const cookie = await authenticateWithRetry();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/tlon",
3
- "version": "2026.8.1-beta.2",
3
+ "version": "2026.8.1-beta.3",
4
4
  "description": "OpenClaw Tlon/Urbit channel plugin for chat workflows.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "openclaw": "workspace:*"
20
20
  },
21
21
  "peerDependencies": {
22
- "openclaw": ">=2026.8.1-beta.2"
22
+ "openclaw": ">=2026.8.1-beta.3"
23
23
  },
24
24
  "peerDependenciesMeta": {
25
25
  "openclaw": {
@@ -120,10 +120,10 @@
120
120
  "minHostVersion": ">=2026.4.10"
121
121
  },
122
122
  "compat": {
123
- "pluginApi": ">=2026.8.1-beta.2"
123
+ "pluginApi": ">=2026.8.1-beta.3"
124
124
  },
125
125
  "build": {
126
- "openclawVersion": "2026.8.1-beta.2"
126
+ "openclawVersion": "2026.8.1-beta.3"
127
127
  },
128
128
  "release": {
129
129
  "bundleRuntimeDependencies": false,