openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
23 lines (22 loc) • 725 B
JavaScript
//#region 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);
}
//#endregion
export { recordInstalledPluginIndexInstallOwner as n, resolveInstalledPluginIndexInstallOwner as r, isInstalledPluginIndexInstallOwnerAmbiguous as t };