@riddledc/openclaw-riddledc 0.2.0 → 0.2.2

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/README.md CHANGED
@@ -5,20 +5,15 @@ OpenClaw integration package for RiddleDC. No secrets. No assumption about MCP.
5
5
  ## Install
6
6
 
7
7
  ```
8
- pnpm add @riddledc/openclaw-riddledc
8
+ openclaw plugins install @riddledc/openclaw-riddledc
9
+ openclaw plugins enable openclaw-riddledc
9
10
  ```
10
11
 
11
12
  ## OpenClaw plugin metadata
12
13
 
13
14
  This package ships `openclaw.plugin.json` for OpenClaw registration.
14
15
 
15
- ## Required OpenClaw config
16
-
17
- Because the tools register as `optional: true`, add:
18
-
19
- ```
20
- tools.alsoAllow: ["riddle"]
21
- ```
16
+ The plugin id is `openclaw-riddledc`.
22
17
 
23
18
  ## Configuration
24
19
 
package/dist/index.cjs CHANGED
@@ -26,7 +26,7 @@ module.exports = __toCommonJS(index_exports);
26
26
  var import_typebox = require("@sinclair/typebox");
27
27
  function getCfg(api) {
28
28
  const cfg = api?.config ?? {};
29
- const pluginCfg = cfg?.plugins?.entries?.riddle?.config ?? {};
29
+ const pluginCfg = cfg?.plugins?.entries?.["openclaw-riddledc"]?.config ?? {};
30
30
  return {
31
31
  apiKey: process.env.RIDDLE_API_KEY || pluginCfg.apiKey,
32
32
  baseUrl: pluginCfg.baseUrl || "https://api.riddledc.com"
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { Type } from "@sinclair/typebox";
3
3
  function getCfg(api) {
4
4
  const cfg = api?.config ?? {};
5
- const pluginCfg = cfg?.plugins?.entries?.riddle?.config ?? {};
5
+ const pluginCfg = cfg?.plugins?.entries?.["openclaw-riddledc"]?.config ?? {};
6
6
  return {
7
7
  apiKey: process.env.RIDDLE_API_KEY || pluginCfg.apiKey,
8
8
  baseUrl: pluginCfg.baseUrl || "https://api.riddledc.com"
@@ -1,18 +1,30 @@
1
1
  {
2
- "id": "riddle",
2
+ "id": "openclaw-riddledc",
3
3
  "name": "Riddle",
4
4
  "description": "Riddle (riddledc.com) hosted browser API tools for OpenClaw agents.",
5
- "version": "0.1.0",
5
+ "version": "0.2.2",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
- "apiKey": { "type": "string" },
11
- "baseUrl": { "type": "string", "default": "https://api.riddledc.com" }
10
+ "apiKey": {
11
+ "type": "string"
12
+ },
13
+ "baseUrl": {
14
+ "type": "string",
15
+ "default": "https://api.riddledc.com"
16
+ }
12
17
  }
13
18
  },
14
19
  "uiHints": {
15
- "apiKey": { "label": "Riddle API Key", "sensitive": true, "placeholder": "rdc_live_..." },
16
- "baseUrl": { "label": "API Base URL", "placeholder": "https://api.riddledc.com" }
20
+ "apiKey": {
21
+ "label": "Riddle API Key",
22
+ "sensitive": true,
23
+ "placeholder": "rdc_live_..."
24
+ },
25
+ "baseUrl": {
26
+ "label": "API Base URL",
27
+ "placeholder": "https://api.riddledc.com"
28
+ }
17
29
  }
18
30
  }
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@riddledc/openclaw-riddledc",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "OpenClaw integration package for RiddleDC (no secrets).",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/riddledc/integrations",
10
+ "directory": "packages/openclaw-riddledc"
11
+ },
7
12
  "type": "module",
8
13
  "main": "./dist/index.cjs",
9
14
  "module": "./dist/index.js",
@@ -40,6 +45,7 @@
40
45
  "build": "tsup src/index.ts --format cjs,esm --dts --out-dir dist",
41
46
  "clean": "rm -rf dist",
42
47
  "lint": "echo 'lint: (not configured)'",
43
- "test": "echo 'test: (not configured)'"
48
+ "test": "echo 'test: (not configured)'",
49
+ "sync:openclaw-plugin-version": "node scripts/sync-openclaw-plugin-version.mjs"
44
50
  }
45
51
  }