feat(plugin): support enterprise extension (#861)

This commit is contained in:
Haze
2026-04-16 17:15:25 +08:00
committed by GitHub
Unverified
parent 2fefbf3aba
commit b884db629e
29 changed files with 847 additions and 22 deletions

View File

@@ -180,8 +180,7 @@ const electronAPI = {
'openclaw:cli-installed',
];
if (validChannels.includes(channel)) {
// Wrap the callback to strip the event
if (validChannels.includes(channel) || channel.startsWith('ext:')) {
const subscription = (_event: Electron.IpcRendererEvent, ...args: unknown[]) => {
callback(...args);
};
@@ -228,7 +227,7 @@ const electronAPI = {
'oauth:error',
];
if (validChannels.includes(channel)) {
if (validChannels.includes(channel) || channel.startsWith('ext:')) {
ipcRenderer.once(channel, (_event, ...args) => callback(...args));
return;
}