@riddledc/openclaw-riddledc 0.2.1 → 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 +3 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/openclaw.plugin.json +18 -6
- package/package.json +3 -2
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
|
-
|
|
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
|
-
|
|
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?.
|
|
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?.
|
|
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"
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "openclaw-riddledc",
|
|
3
3
|
"name": "Riddle",
|
|
4
4
|
"description": "Riddle (riddledc.com) hosted browser API tools for OpenClaw agents.",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.2.2",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
|
-
"apiKey": {
|
|
11
|
-
|
|
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": {
|
|
16
|
-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riddledc/openclaw-riddledc",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "OpenClaw integration package for RiddleDC (no secrets).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "RiddleDC",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"build": "tsup src/index.ts --format cjs,esm --dts --out-dir dist",
|
|
46
46
|
"clean": "rm -rf dist",
|
|
47
47
|
"lint": "echo 'lint: (not configured)'",
|
|
48
|
-
"test": "echo 'test: (not configured)'"
|
|
48
|
+
"test": "echo 'test: (not configured)'",
|
|
49
|
+
"sync:openclaw-plugin-version": "node scripts/sync-openclaw-plugin-version.mjs"
|
|
49
50
|
}
|
|
50
51
|
}
|