@riddledc/openclaw-riddledc 0.9.5 → 0.9.6

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/CHECKSUMS.txt CHANGED
@@ -1,9 +1,9 @@
1
- 0756013923a5d79711ea1b22571589cce1dfc49d85b37de79eb2f9194b11c01e dist/chunk-UTJTPSHW.js
2
- 628d17715e71385c1c21752d1c90dd956a0552b549444100cc62990ee0ca519d dist/core.cjs
1
+ c6ac3162f44cefd3bdf39030780ca7e90812d2f9f72064f6f6946c3d4592b4f3 dist/chunk-ZNO6NNKO.js
2
+ e50d40eafee4081213bfe42ec6e77e9ef58c4f383c0c966df5512f28a8144a68 dist/core.cjs
3
3
  d6e158722c91097e647d712652cc6bd26792aecf2ff6f990b0a5bf4dfa323aa2 dist/core.d.cts
4
4
  d6e158722c91097e647d712652cc6bd26792aecf2ff6f990b0a5bf4dfa323aa2 dist/core.d.ts
5
- 7d719fd0ea00019cb51bd4b2a02bf2e4104cae2350c91abe6d4cafb8702b4eb2 dist/core.js
5
+ 2ce75cbb7701f3a0cb1a0adcbe4c53e5062a540ef7cf7517b470908071c86d67 dist/core.js
6
6
  3d1abeb96c6539cf6e801b8632657a110a3f9767b4b6d51e1c8b419ef5fd94c2 dist/index.cjs
7
7
  94ce04f0e2d84bf64dd68f0500dfdd2f951287a3deccec87f197261961927f6f dist/index.d.cts
8
8
  94ce04f0e2d84bf64dd68f0500dfdd2f951287a3deccec87f197261961927f6f dist/index.d.ts
9
- a3554f1a5ef8b62cb94c1c2bfdff682bbe64e935af412afccb06b3075c22b52e dist/index.js
9
+ 0effe0fdd362247d9186a419604b2696b6955f25b2ceda6ba3360742db46881f dist/index.js
@@ -276,6 +276,7 @@ async function fetchArtifactsAndBuild(config, jobId, include) {
276
276
  const data = await res.json();
277
277
  const artifacts = data.artifacts || [];
278
278
  const result = {};
279
+ result.outputs = artifacts;
279
280
  if (data.status) result._artifactsStatus = data.status;
280
281
  if (data.timeout) result._timeout = data.timeout;
281
282
  if (data.error) result._error = data.error;
@@ -322,6 +323,20 @@ async function fetchArtifactsAndBuild(config, jobId, include) {
322
323
  } catch {
323
324
  }
324
325
  }
326
+ const visualDiffArtifact = artifacts.find((a) => a.name === "visual-diff.json");
327
+ if (include.includes("visual_diff") && visualDiffArtifact?.url) {
328
+ try {
329
+ const vRes = await fetch(visualDiffArtifact.url);
330
+ if (vRes.ok) {
331
+ result.visual_diff = await vRes.json();
332
+ }
333
+ } catch {
334
+ }
335
+ }
336
+ const visualDiffImages = artifacts.filter((a) => /^visual-diff.*\.(png|jpg|jpeg)$/i.test(a.name || ""));
337
+ if (visualDiffImages.length > 0) {
338
+ result.visual_diff_images = visualDiffImages;
339
+ }
325
340
  if (include.includes("har")) {
326
341
  const harArtifact = artifacts.find((a) => a.name === "network.har");
327
342
  if (harArtifact?.url) {
package/dist/core.cjs CHANGED
@@ -317,6 +317,7 @@ async function fetchArtifactsAndBuild(config, jobId, include) {
317
317
  const data = await res.json();
318
318
  const artifacts = data.artifacts || [];
319
319
  const result = {};
320
+ result.outputs = artifacts;
320
321
  if (data.status) result._artifactsStatus = data.status;
321
322
  if (data.timeout) result._timeout = data.timeout;
322
323
  if (data.error) result._error = data.error;
@@ -363,6 +364,20 @@ async function fetchArtifactsAndBuild(config, jobId, include) {
363
364
  } catch {
364
365
  }
365
366
  }
367
+ const visualDiffArtifact = artifacts.find((a) => a.name === "visual-diff.json");
368
+ if (include.includes("visual_diff") && visualDiffArtifact?.url) {
369
+ try {
370
+ const vRes = await fetch(visualDiffArtifact.url);
371
+ if (vRes.ok) {
372
+ result.visual_diff = await vRes.json();
373
+ }
374
+ } catch {
375
+ }
376
+ }
377
+ const visualDiffImages = artifacts.filter((a) => /^visual-diff.*\.(png|jpg|jpeg)$/i.test(a.name || ""));
378
+ if (visualDiffImages.length > 0) {
379
+ result.visual_diff_images = visualDiffImages;
380
+ }
366
381
  if (include.includes("har")) {
367
382
  const harArtifact = artifacts.find((a) => a.name === "network.har");
368
383
  if (harArtifact?.url) {
package/dist/core.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  riddleApiFetch,
18
18
  runWithDefaults,
19
19
  writeArtifactBinary
20
- } from "./chunk-UTJTPSHW.js";
20
+ } from "./chunk-ZNO6NNKO.js";
21
21
  export {
22
22
  applySafetySpec,
23
23
  assertAllowedBaseUrl,
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  deleteStaticPreview,
5
5
  getBuildPreviewStatus,
6
6
  getServerPreviewStatus
7
- } from "./chunk-UTJTPSHW.js";
7
+ } from "./chunk-ZNO6NNKO.js";
8
8
 
9
9
  // src/index.ts
10
10
  import { Type } from "@sinclair/typebox";
@@ -2,7 +2,7 @@
2
2
  "id": "openclaw-riddledc",
3
3
  "name": "Riddle",
4
4
  "description": "Riddle (riddledc.com) hosted browser API tools for OpenClaw agents.",
5
- "version": "0.9.5",
5
+ "version": "0.9.6",
6
6
  "notes": "0.8.0: Added riddle_build_preview for Dockerfile-based builds with image caching.",
7
7
  "type": "plugin",
8
8
  "bundledSkills": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/openclaw-riddledc",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "OpenClaw integration package for RiddleDC (no secrets).",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",