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

Function resolveOpenclawPluginPackagePath

agent/app/service/agents_channels.go:1400–1409  ·  view source on GitHub ↗
(installPath, pluginType string)

Source from the content-addressed store, hash-verified

1398}
1399
1400func resolveOpenclawPluginPackagePath(installPath, pluginType string) (string, error) {
1401 _, pluginID, err := resolvePluginMeta(pluginType)
1402 if err != nil {
1403 return "", err
1404 }
1405 if installPath == "" {
1406 return "", buserr.New("ErrRecordNotFound")
1407 }
1408 return path.Join(installPath, "data", "conf", "extensions", pluginID, "package.json"), nil
1409}
1410
1411func cleanupOpenclawPluginConfig(conf map[string]interface{}, pluginType string) {
1412 channels, _ := conf["channels"].(map[string]interface{})

Callers 2

checkPluginInstalledFunction · 0.85

Calls 1

resolvePluginMetaFunction · 0.85

Tested by

no test coverage detected