openclaw-openagent 1.0.4 → 1.0.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.
@@ -288,9 +288,9 @@ export function createCallRemoteAgentTool() {
288
288
  }
289
289
  // WebUI continuation:声明了 webui 能力的 ServiceAgent 在 succeeded 后会
290
290
  // 在 visible_result.webui_continuation 里返回可继续交互的入口。
291
+ const accessBase = rt.config?.accessApiBase || rt.config?.apiBase;
291
292
  if (result.webuiContinuation?.launchUrl) {
292
293
  const rawLink = result.webuiContinuation.launchUrl;
293
- const accessBase = rt.config?.accessApiBase || rt.config?.apiBase;
294
294
  const link = resolveOasnAccessUrl(accessBase, rawLink);
295
295
  const label = result.webuiContinuation.displayName || 'Open WebUI';
296
296
  content = content.trim()
@@ -315,6 +315,11 @@ export function createCallRemoteAgentTool() {
315
315
  ? `${content}\n\nFiles from remote agent (use openagent_download_file to save):\n${artifactLines.join('\n')}`
316
316
  : `Files from remote agent:\n${artifactLines.join('\n')}`;
317
317
  }
318
+ // Resolve OASN-relative URLs in content (remote agent may have embedded
319
+ // /webui/continuations/... or /api/artifacts/... in its output text).
320
+ if (content && accessBase) {
321
+ content = content.replace(/(?<![a-zA-Z0-9])(\/webui\/[^\s"')\]]+|\/api\/[^\s"')\]]+)/g, (match) => resolveOasnAccessUrl(accessBase, match));
322
+ }
318
323
  // OASN 的非文本 artifacts 暂继续复用 ArtifactRef.contentUrl 作为 mediaUrls。
319
324
  reply = {
320
325
  status: 'complete',
@@ -2,7 +2,7 @@
2
2
  * OpenAgent UI Override — Auto-generated, do not edit directly!
3
3
  *
4
4
  * Source: src/plugin-ui/modules/
5
- * Built: 2026-06-25T07:10:51.968Z
5
+ * Built: 2026-06-25T07:20:29.082Z
6
6
  *
7
7
  * To modify, edit the source modules and run:
8
8
  * npm run build:override
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-openagent",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "description": "OpenAgent channel plugin for OpenClaw",
6
6
  "license": "MIT",
@@ -347,9 +347,9 @@ export function createCallRemoteAgentTool(): ToolDescriptor {
347
347
 
348
348
  // WebUI continuation:声明了 webui 能力的 ServiceAgent 在 succeeded 后会
349
349
  // 在 visible_result.webui_continuation 里返回可继续交互的入口。
350
+ const accessBase = rt.config?.accessApiBase || rt.config?.apiBase;
350
351
  if (result.webuiContinuation?.launchUrl) {
351
352
  const rawLink = result.webuiContinuation.launchUrl;
352
- const accessBase = rt.config?.accessApiBase || rt.config?.apiBase;
353
353
  const link = resolveOasnAccessUrl(accessBase, rawLink);
354
354
  const label = result.webuiContinuation.displayName || 'Open WebUI';
355
355
  content = content.trim()
@@ -378,6 +378,15 @@ export function createCallRemoteAgentTool(): ToolDescriptor {
378
378
  : `Files from remote agent:\n${artifactLines.join('\n')}`;
379
379
  }
380
380
 
381
+ // Resolve OASN-relative URLs in content (remote agent may have embedded
382
+ // /webui/continuations/... or /api/artifacts/... in its output text).
383
+ if (content && accessBase) {
384
+ content = content.replace(
385
+ /(?<![a-zA-Z0-9])(\/webui\/[^\s"')\]]+|\/api\/[^\s"')\]]+)/g,
386
+ (match) => resolveOasnAccessUrl(accessBase, match),
387
+ );
388
+ }
389
+
381
390
  // OASN 的非文本 artifacts 暂继续复用 ArtifactRef.contentUrl 作为 mediaUrls。
382
391
  reply = {
383
392
  status: 'complete',
@@ -2,7 +2,7 @@
2
2
  * OpenAgent UI Override — Auto-generated, do not edit directly!
3
3
  *
4
4
  * Source: src/plugin-ui/modules/
5
- * Built: 2026-06-25T07:10:51.968Z
5
+ * Built: 2026-06-25T07:20:29.082Z
6
6
  *
7
7
  * To modify, edit the source modules and run:
8
8
  * npm run build:override