refactor(onboarding): reuse allowFrom merge helper in extensions

This commit is contained in:
Peter Steinberger
2026-02-16 23:03:23 +00:00
parent 12a947223b
commit 7632e60d70
7 changed files with 18 additions and 10 deletions

View File

@@ -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);
}