@istarry/dsh-assistant-profile 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +16 -1
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -6406,7 +6406,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6406
6406
|
en
|
|
6407
6407
|
}), "assistant-profile: dictionaries");
|
|
6408
6408
|
const t = ctx.locale.bind(NS);
|
|
6409
|
-
|
|
6409
|
+
const implementation = /* @__PURE__ */ new Set([
|
|
6410
|
+
"readGlobal",
|
|
6411
|
+
"writeGlobal",
|
|
6412
|
+
"remember"
|
|
6413
|
+
]);
|
|
6414
|
+
const mounted = {
|
|
6415
|
+
...TYPERT_REMOTE,
|
|
6416
|
+
descriptors: TYPERT_REMOTE.descriptors.filter((descriptor) => implementation.has(String(descriptor.method)))
|
|
6417
|
+
};
|
|
6418
|
+
try {
|
|
6419
|
+
Promise.resolve(ctx.remote.$mount(mounted)).catch((error) => {
|
|
6420
|
+
console.warn("assistant-profile: remote mount failed", error);
|
|
6421
|
+
});
|
|
6422
|
+
} catch (error) {
|
|
6423
|
+
console.warn("assistant-profile: remote mount failed", error);
|
|
6424
|
+
}
|
|
6410
6425
|
const profile = createProfileStore(ctx);
|
|
6411
6426
|
ctx.effect(() => mountNameplate(profile), "assistant-profile: nameplate");
|
|
6412
6427
|
ctx.slots.inject("sidebar.panellist", () => ctx.slots.register({
|