clawpet-plugins 1.0.0 → 1.1.0

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/index.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  * "enabled": true,
15
15
  * "config": {
16
16
  * "apiKey": "cpk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
17
- * "apiBase": "https://api.venusx.top"
17
+ * "apiBase": "https://api.myclawpet.cn"
18
18
  * }
19
19
  * }
20
20
  * }
@@ -47,9 +47,6 @@ type PluginApi = {
47
47
  // 常量
48
48
  // ---------------------------------------------------------------------------
49
49
 
50
- /** 默认 API 地址 */
51
- const DEFAULT_API_BASE = "https://api.venusx.top";
52
-
53
50
  /** 去重窗口(ms)—— 同一工具 2 秒内不重复上报 */
54
51
  const DEDUP_WINDOW = 2000;
55
52
 
@@ -66,7 +63,15 @@ export default {
66
63
  | { apiKey?: string; apiBase?: string }
67
64
  | undefined;
68
65
  const apiKey = config?.apiKey;
69
- let apiBase = config?.apiBase || DEFAULT_API_BASE;
66
+ let apiBase = config?.apiBase;
67
+
68
+ if (!apiBase) {
69
+ api.logger.warn(
70
+ "[ClawPet] No apiBase configured — plugin disabled. " +
71
+ "Set plugins.entries.clawpet-plugins.config.apiBase in your OpenClaw config.",
72
+ );
73
+ return;
74
+ }
70
75
 
71
76
  if (!apiKey) {
72
77
  api.logger.warn(
@@ -8,14 +8,13 @@
8
8
  "properties": {
9
9
  "apiBase": {
10
10
  "type": "string",
11
- "description": "ClawPet API base URL",
12
- "default": "https://api.venusx.top"
11
+ "description": "ClawPet API base URL (required)"
13
12
  },
14
13
  "apiKey": {
15
14
  "type": "string",
16
- "description": "ClawPet API key (cpk_xxx)"
15
+ "description": "ClawPet API key (cpk_xxx, required)"
17
16
  }
18
17
  },
19
- "required": []
18
+ "required": ["apiBase", "apiKey"]
20
19
  }
21
20
  }
package/package.json CHANGED
@@ -1,22 +1,17 @@
1
1
  {
2
2
  "name": "clawpet-plugins",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "OpenClaw plugin for ClawPet — auto-report tool calls for real-time pet visualization",
5
5
  "type": "module",
6
6
  "main": "index.ts",
7
- "license": "MIT",
7
+ "license": "UNLICENSED",
8
8
  "keywords": ["openclaw", "openclaw-plugin", "clawpet", "pet", "visualization"],
9
9
  "files": [
10
10
  "index.ts",
11
11
  "openclaw.plugin.json",
12
12
  "README.md"
13
13
  ],
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/ronin-storm/claw-pet",
17
- "directory": "plugin"
18
- },
19
- "homepage": "https://myclawpet.com",
14
+ "homepage": "https://myclawpet.cn",
20
15
  "publishConfig": {
21
16
  "access": "public"
22
17
  },