(installPath, pluginType string)
| 1398 | } |
| 1399 | |
| 1400 | func 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 | |
| 1411 | func cleanupOpenclawPluginConfig(conf map[string]interface{}, pluginType string) { |
| 1412 | channels, _ := conf["channels"].(map[string]interface{}) |
no test coverage detected