mirror of https://github.com/openclaw/openclaw.git
Plugin SDK: keep root alias reflection lazy
This commit is contained in:
parent
ad18866bcc
commit
c186176ca3
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue