@riddledc/openclaw-riddledc 0.9.6 → 0.9.8

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
- c6ac3162f44cefd3bdf39030780ca7e90812d2f9f72064f6f6946c3d4592b4f3 dist/chunk-ZNO6NNKO.js
2
- e50d40eafee4081213bfe42ec6e77e9ef58c4f383c0c966df5512f28a8144a68 dist/core.cjs
1
+ b40fc99ae321f3e9f29efc55f39a8e058eeab5e6cc259239e4d4eea03d0f3192 dist/chunk-LNRZFOTL.js
2
+ 2745dd2bda97b337f8f38e5e9002c413907f7f997fb165fe70fcb06dcba5bc54 dist/core.cjs
3
3
  d6e158722c91097e647d712652cc6bd26792aecf2ff6f990b0a5bf4dfa323aa2 dist/core.d.cts
4
4
  d6e158722c91097e647d712652cc6bd26792aecf2ff6f990b0a5bf4dfa323aa2 dist/core.d.ts
5
- 2ce75cbb7701f3a0cb1a0adcbe4c53e5062a540ef7cf7517b470908071c86d67 dist/core.js
6
- 3d1abeb96c6539cf6e801b8632657a110a3f9767b4b6d51e1c8b419ef5fd94c2 dist/index.cjs
5
+ 7f2a7da7431cc86c85354622b7909648161d073ddb512c2cee31f63679f58250 dist/core.js
6
+ 794a1139279804ecd4fe1f649dd6b09a76e46bff26cc64f372a3cd7383043b33 dist/index.cjs
7
7
  94ce04f0e2d84bf64dd68f0500dfdd2f951287a3deccec87f197261961927f6f dist/index.d.cts
8
8
  94ce04f0e2d84bf64dd68f0500dfdd2f951287a3deccec87f197261961927f6f dist/index.d.ts
9
- 0effe0fdd362247d9186a419604b2696b6955f25b2ceda6ba3360742db46881f dist/index.js
9
+ 358c4157dee950e9932f363c024901dad93525e3d55073eb772a33fba3a6b275 dist/index.js
@@ -616,7 +616,7 @@ async function createStaticPreview(config, params) {
616
616
  createRes = await fetchWithRetry(`${endpoint}/v1/preview`, {
617
617
  method: "POST",
618
618
  headers: { Authorization: `Bearer ${cfg.apiKey}`, "Content-Type": "application/json" },
619
- body: JSON.stringify({ framework: params.framework || "spa" })
619
+ body: JSON.stringify({ framework: params.framework || "static" })
620
620
  }, PREVIEW_REQUEST_TIMEOUT_MS, "preview create");
621
621
  } catch (e) {
622
622
  return { ok: false, error: `Create failed: ${describeError(e)}` };
package/dist/core.cjs CHANGED
@@ -657,7 +657,7 @@ async function createStaticPreview(config, params) {
657
657
  createRes = await fetchWithRetry(`${endpoint}/v1/preview`, {
658
658
  method: "POST",
659
659
  headers: { Authorization: `Bearer ${cfg.apiKey}`, "Content-Type": "application/json" },
660
- body: JSON.stringify({ framework: params.framework || "spa" })
660
+ body: JSON.stringify({ framework: params.framework || "static" })
661
661
  }, PREVIEW_REQUEST_TIMEOUT_MS, "preview create");
662
662
  } catch (e) {
663
663
  return { ok: false, error: `Create failed: ${describeError(e)}` };
package/dist/core.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  riddleApiFetch,
18
18
  runWithDefaults,
19
19
  writeArtifactBinary
20
- } from "./chunk-ZNO6NNKO.js";
20
+ } from "./chunk-LNRZFOTL.js";
21
21
  export {
22
22
  applySafetySpec,
23
23
  assertAllowedBaseUrl,
package/dist/index.cjs CHANGED
@@ -262,7 +262,7 @@ async function createStaticPreview(config, params) {
262
262
  createRes = await fetchWithRetry(`${endpoint}/v1/preview`, {
263
263
  method: "POST",
264
264
  headers: { Authorization: `Bearer ${cfg.apiKey}`, "Content-Type": "application/json" },
265
- body: JSON.stringify({ framework: params.framework || "spa" })
265
+ body: JSON.stringify({ framework: params.framework || "static" })
266
266
  }, PREVIEW_REQUEST_TIMEOUT_MS, "preview create");
267
267
  } catch (e) {
268
268
  return { ok: false, error: `Create failed: ${describeError(e)}` };
@@ -1221,7 +1221,7 @@ function register(api) {
1221
1221
  description: "Deploy a local build directory as an ephemeral preview site. Tars the directory, uploads to Riddle, and returns a live URL at preview.riddledc.com that can be screenshotted with other riddle_* tools. Previews auto-expire after 24 hours.",
1222
1222
  parameters: import_typebox.Type.Object({
1223
1223
  directory: import_typebox.Type.String({ description: "Absolute path to the build output directory (e.g. /path/to/build or /path/to/dist)" }),
1224
- framework: import_typebox.Type.Optional(import_typebox.Type.String({ description: "Framework hint: 'spa' (default) or 'static'" }))
1224
+ framework: import_typebox.Type.Optional(import_typebox.Type.String({ description: "Framework hint: 'static' (default) or 'spa' for client-side routing" }))
1225
1225
  }),
1226
1226
  async execute(_id, params) {
1227
1227
  const result = await createStaticPreview(configFromOpenClawApi(api), params);
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  deleteStaticPreview,
5
5
  getBuildPreviewStatus,
6
6
  getServerPreviewStatus
7
- } from "./chunk-ZNO6NNKO.js";
7
+ } from "./chunk-LNRZFOTL.js";
8
8
 
9
9
  // src/index.ts
10
10
  import { Type } from "@sinclair/typebox";
@@ -880,7 +880,7 @@ function register(api) {
880
880
  description: "Deploy a local build directory as an ephemeral preview site. Tars the directory, uploads to Riddle, and returns a live URL at preview.riddledc.com that can be screenshotted with other riddle_* tools. Previews auto-expire after 24 hours.",
881
881
  parameters: Type.Object({
882
882
  directory: Type.String({ description: "Absolute path to the build output directory (e.g. /path/to/build or /path/to/dist)" }),
883
- framework: Type.Optional(Type.String({ description: "Framework hint: 'spa' (default) or 'static'" }))
883
+ framework: Type.Optional(Type.String({ description: "Framework hint: 'static' (default) or 'spa' for client-side routing" }))
884
884
  }),
885
885
  async execute(_id, params) {
886
886
  const result = await createStaticPreview(configFromOpenClawApi(api), params);
@@ -2,10 +2,34 @@
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.6",
5
+ "version": "0.9.8",
6
6
  "notes": "0.8.0: Added riddle_build_preview for Dockerfile-based builds with image caching.",
7
7
  "type": "plugin",
8
8
  "bundledSkills": [],
9
+ "contracts": {
10
+ "tools": [
11
+ "riddle_screenshot",
12
+ "riddle_screenshots",
13
+ "riddle_steps",
14
+ "riddle_script",
15
+ "riddle_run",
16
+ "riddle_poll",
17
+ "riddle_scrape",
18
+ "riddle_map",
19
+ "riddle_crawl",
20
+ "riddle_visual_diff",
21
+ "riddle_preview",
22
+ "riddle_preview_delete",
23
+ "riddle_server_preview",
24
+ "riddle_server_preview_status",
25
+ "riddle_build_preview",
26
+ "riddle_build_preview_status",
27
+ "riddle_session_create",
28
+ "riddle_session_list",
29
+ "riddle_session_run",
30
+ "riddle_session_destroy"
31
+ ]
32
+ },
9
33
  "capabilities": {
10
34
  "network": {
11
35
  "egress": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/openclaw-riddledc",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "description": "OpenClaw integration package for RiddleDC (no secrets).",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",