openclaw-looloo 0.1.2 → 0.1.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.
- package/README.md +6 -4
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/index.mjs +3 -4
package/README.md
CHANGED
|
@@ -38,11 +38,13 @@ Create an automation key from `looloo.lol`:
|
|
|
38
38
|
2. Create an automation key
|
|
39
39
|
3. Copy the key once when shown
|
|
40
40
|
|
|
41
|
-
Set the plugin config
|
|
41
|
+
Set the plugin config inside OpenClaw:
|
|
42
42
|
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"apiBase": "https://looloo.lol",
|
|
46
|
+
"apiKey": "llak_..."
|
|
47
|
+
}
|
|
46
48
|
```
|
|
47
49
|
|
|
48
50
|
## Tools
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "openclaw-looloo",
|
|
4
4
|
"displayName": "LooLoo",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.5",
|
|
6
6
|
"description": "Phase 1 LooLoo plugin for token discovery, quotes, positions, and website trade confirmation links.",
|
|
7
7
|
"entry": "./src/index.mjs",
|
|
8
8
|
"skills": [
|
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const DEFAULT_API_BASE = "https://looloo.lol";
|
|
2
2
|
|
|
3
3
|
function getConfig(overrides = {}) {
|
|
4
|
-
const apiBase = (overrides.apiBase ||
|
|
5
|
-
const apiKey = overrides.apiKey ||
|
|
4
|
+
const apiBase = String(overrides.apiBase || DEFAULT_API_BASE).replace(/\/+$/, "");
|
|
5
|
+
const apiKey = String(overrides.apiKey || "").trim();
|
|
6
6
|
if (!apiKey) {
|
|
7
|
-
throw new Error("
|
|
7
|
+
throw new Error("apiKey is required in plugin config");
|
|
8
8
|
}
|
|
9
9
|
return { apiBase, apiKey };
|
|
10
10
|
}
|
|
@@ -247,7 +247,6 @@ export function createPlugin(overrides = {}) {
|
|
|
247
247
|
description: "Automation key created from looloo.lol settings.",
|
|
248
248
|
},
|
|
249
249
|
},
|
|
250
|
-
required: ["apiKey"],
|
|
251
250
|
},
|
|
252
251
|
tools: tools.map((tool) => ({
|
|
253
252
|
...tool,
|