mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 19:21:45 +00:00
refactor(onboarding): reuse allowFrom merge helper in extensions
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
DEFAULT_ACCOUNT_ID,
|
||||
addWildcardAllowFrom,
|
||||
formatDocsLink,
|
||||
mergeAllowFromEntries,
|
||||
normalizeAccountId,
|
||||
promptAccountId,
|
||||
} from "openclaw/plugin-sdk";
|
||||
@@ -127,7 +128,7 @@ async function promptBlueBubblesAllowFrom(params: {
|
||||
},
|
||||
});
|
||||
const parts = parseBlueBubblesAllowFromInput(String(entry));
|
||||
const unique = [...new Set(parts)];
|
||||
const unique = mergeAllowFromEntries(undefined, parts);
|
||||
return setBlueBubblesAllowFrom(params.cfg, accountId, unique);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user