@johnny-joster/n9e-plugin 1.0.4 → 1.0.7
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
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
2
2
|
|
|
3
3
|
export default function(api: OpenClawPluginApi) {
|
|
4
|
+
api.logger.info("=== N9e plugin: Entry point called ===");
|
|
5
|
+
|
|
4
6
|
try {
|
|
5
|
-
api.logger.info("N9e plugin
|
|
7
|
+
api.logger.info("=== N9e plugin: Starting initialization ===");
|
|
6
8
|
|
|
7
9
|
// 不注册任何工具,只是测试插件能否加载
|
|
10
|
+
api.logger.info("=== N9e plugin: Skipping tool registration (test mode) ===");
|
|
8
11
|
|
|
9
|
-
api.logger.info("N9e plugin
|
|
12
|
+
api.logger.info("=== N9e plugin: Initialization completed successfully ===");
|
|
10
13
|
} catch (error) {
|
|
11
|
-
api.logger.error("Failed to load
|
|
14
|
+
api.logger.error("=== N9e plugin: Failed to load ===", error);
|
|
12
15
|
throw error;
|
|
13
16
|
}
|
|
17
|
+
|
|
18
|
+
api.logger.info("=== N9e plugin: Function exit ===");
|
|
14
19
|
}
|
|
Binary file
|
|
Binary file
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "n9e-plugin"
|
|
2
|
+
"id": "n9e-plugin",
|
|
3
|
+
"configSchema": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"apiBaseUrl": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "夜莺API基础地址"
|
|
9
|
+
},
|
|
10
|
+
"apiKey": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "API访问密钥"
|
|
13
|
+
},
|
|
14
|
+
"timeout": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"minimum": 1000,
|
|
17
|
+
"maximum": 120000,
|
|
18
|
+
"default": 30000,
|
|
19
|
+
"description": "请求超时时间(毫秒)"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
3
23
|
}
|