MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / resolvePluginMeta

Function resolvePluginMeta

agent/app/service/agents_channels.go:1337–1352  ·  view source on GitHub ↗
(pluginType string)

Source from the content-addressed store, hash-verified

1335}
1336
1337func 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
1354func checkPluginInstalled(installPath, pluginType string) (bool, error) {
1355 packagePath, err := resolveOpenclawPluginPackagePath(installPath, pluginType)

Callers 5

InstallPluginMethod · 0.85
UpgradePluginMethod · 0.85
UninstallPluginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected