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 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 or environment variables:
41
+ Set the plugin config inside OpenClaw:
42
42
 
43
- ```bash
44
- export LOOLOO_API_BASE="https://looloo.lol"
45
- export LOOLOO_AUTOMATION_KEY="llak_..."
43
+ ```json
44
+ {
45
+ "apiBase": "https://looloo.lol",
46
+ "apiKey": "llak_..."
47
+ }
46
48
  ```
47
49
 
48
50
  ## Tools
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "openclaw-looloo",
4
4
  "displayName": "LooLoo",
5
- "version": "0.1.2",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-looloo",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "description": "Phase 1 OpenClaw plugin for LooLoo discovery, quotes, positions, and trade intents.",
5
5
  "type": "module",
6
6
  "main": "./src/index.mjs",
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 || process.env.LOOLOO_API_BASE || DEFAULT_API_BASE).replace(/\/+$/, "");
5
- const apiKey = overrides.apiKey || process.env.LOOLOO_AUTOMATION_KEY || "";
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("LOOLOO_AUTOMATION_KEY is required");
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,