mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-21 16:41:56 +00:00
Plugin SDK: keep root alias reflection lazy
This commit is contained in:
@@ -169,9 +169,8 @@ rootExports = new Proxy(target, {
|
||||
},
|
||||
ownKeys() {
|
||||
const keys = new Set(Reflect.ownKeys(target));
|
||||
const monolithic = getMonolithicSdk();
|
||||
if (monolithic) {
|
||||
for (const key of Reflect.ownKeys(monolithic)) {
|
||||
if (monolithicSdk && typeof monolithicSdk === "object") {
|
||||
for (const key of Reflect.ownKeys(monolithicSdk)) {
|
||||
if (!keys.has(key)) {
|
||||
keys.add(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user