(pluginType string)
| 1335 | } |
| 1336 | |
| 1337 | func resolvePluginMeta(pluginType string) (string, string, error) { |
| 1338 | switch pluginType { |
| 1339 | case "qqbot": |
| 1340 | return "@tencent-connect/openclaw-qqbot", "openclaw-qqbot", nil |
| 1341 | case "feishu": |
| 1342 | return "@larksuite/openclaw-lark", "openclaw-lark", nil |
| 1343 | case "wecom": |
| 1344 | return "@wecom/wecom-openclaw-plugin", "wecom-openclaw-plugin", nil |
| 1345 | case "dingtalk": |
| 1346 | return "@dingtalk-real-ai/dingtalk-connector", "dingtalk-connector", nil |
| 1347 | case "weixin": |
| 1348 | return "@tencent-weixin/openclaw-weixin", "openclaw-weixin", nil |
| 1349 | default: |
| 1350 | return "", "", fmt.Errorf("unsupported plugin type") |
| 1351 | } |
| 1352 | } |
| 1353 | |
| 1354 | func checkPluginInstalled(installPath, pluginType string) (bool, error) { |
| 1355 | packagePath, err := resolveOpenclawPluginPackagePath(installPath, pluginType) |
no outgoing calls
no test coverage detected