openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 629 B
JavaScript
//!src/plugins/installed-plugin-index-install-owner.ts
function recordInstalledPluginIndexInstallOwner(e,t,n=false){if(!t&&!n)return e;const r=e;if(n){delete r.installOwner;r.installOwnerAmbiguous=true}else{r.installOwner=t;delete r.installOwnerAmbiguous}return e}function resolveInstalledPluginIndexInstallOwner(e){const t=e;return t.installOwnerAmbiguous?void 0:t.installOwner||void 0}function isInstalledPluginIndexInstallOwnerAmbiguous(e){return Boolean(e.installOwnerAmbiguous)}export{recordInstalledPluginIndexInstallOwner as n,resolveInstalledPluginIndexInstallOwner as r,isInstalledPluginIndexInstallOwnerAmbiguous as t};