dsh-mnemon-source-memory-spaces 0.5.24 → 0.5.25
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
CHANGED
|
@@ -2538,15 +2538,16 @@ window.__ModuleLoader__.load({
|
|
|
2538
2538
|
props.catalogKnown
|
|
2539
2539
|
]);
|
|
2540
2540
|
(0, react.useEffect)(() => {
|
|
2541
|
+
if (props.active === false) return;
|
|
2541
2542
|
const timer = window.setInterval(() => setSyncClock(Date.now()), 1e3);
|
|
2542
2543
|
return () => window.clearInterval(timer);
|
|
2543
|
-
}, []);
|
|
2544
|
+
}, [props.active]);
|
|
2544
2545
|
(0, react.useEffect)(() => {
|
|
2545
2546
|
setSpaceProviderId((current) => readyProviderId(catalog?.providers ?? [], current) ?? current);
|
|
2546
2547
|
}, [catalog]);
|
|
2547
2548
|
const hostRediscovering = catalog?.rediscovery?.running === true && !rediscovering;
|
|
2548
2549
|
(0, react.useEffect)(() => {
|
|
2549
|
-
if (!hostRediscovering) return;
|
|
2550
|
+
if (!hostRediscovering || props.active === false) return;
|
|
2550
2551
|
let active = true;
|
|
2551
2552
|
const timer = window.setInterval(() => {
|
|
2552
2553
|
props.client.bodyDirectory().then((next) => {
|
|
@@ -2564,6 +2565,7 @@ window.__ModuleLoader__.load({
|
|
|
2564
2565
|
}, [
|
|
2565
2566
|
hostRediscovering,
|
|
2566
2567
|
load,
|
|
2568
|
+
props.active,
|
|
2567
2569
|
props.client,
|
|
2568
2570
|
props.onMutate
|
|
2569
2571
|
]);
|
|
@@ -6064,10 +6066,10 @@ window.__ModuleLoader__.load({
|
|
|
6064
6066
|
const input = (value) => JSON.parse(JSON.stringify(value));
|
|
6065
6067
|
return {
|
|
6066
6068
|
canAssist: client.canAssist,
|
|
6067
|
-
status: () => client.read("status-summary"),
|
|
6068
|
-
bodies: () => client.read("bodies"),
|
|
6069
|
-
bodyDirectory: () => client.read("body-directory"),
|
|
6070
|
-
graph: (memoryBodyIds) => client.read("graph", input({ memoryBodyIds })),
|
|
6069
|
+
status: () => client.read("status-summary", null, { coalesce: true }),
|
|
6070
|
+
bodies: () => client.read("bodies", null, { coalesce: true }),
|
|
6071
|
+
bodyDirectory: () => client.read("body-directory", null, { coalesce: true }),
|
|
6072
|
+
graph: (memoryBodyIds) => client.read("graph", input({ memoryBodyIds }), { coalesce: true }),
|
|
6071
6073
|
list: (request) => client.read("list", input(request ?? {})),
|
|
6072
6074
|
entities: (entity, limit) => client.read("entities", input({
|
|
6073
6075
|
entity,
|
|
@@ -6248,6 +6250,7 @@ window.__ModuleLoader__.load({
|
|
|
6248
6250
|
})]
|
|
6249
6251
|
}),
|
|
6250
6252
|
page === "spaces" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OverviewPage, {
|
|
6253
|
+
active: props.active ?? true,
|
|
6251
6254
|
client,
|
|
6252
6255
|
metadataClient: client,
|
|
6253
6256
|
revision,
|
|
@@ -3,6 +3,7 @@ import { type MemorySpaceMetadataUpdate, type MemorySpaceView } from '../contrac
|
|
|
3
3
|
import type { MemorySpacesPageClient } from './api.ts';
|
|
4
4
|
export declare function OverviewPage(props: {
|
|
5
5
|
client: MemorySpacesPageClient;
|
|
6
|
+
active?: boolean;
|
|
6
7
|
metadataClient: MemorySpacesPageClient;
|
|
7
8
|
revision: number;
|
|
8
9
|
reloadKey?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon-source-memory-spaces",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.25",
|
|
4
4
|
"description": "Memory Spaces Source and its private Provider SDK.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@types/node": "^22.0.0",
|
|
69
69
|
"@types/react": "^18.3.0",
|
|
70
70
|
"@types/react-dom": "^18.3.0",
|
|
71
|
-
"dsh-mnemon": "^0.5.
|
|
72
|
-
"dsh-mnemon-provider-byterover": "^0.5.
|
|
71
|
+
"dsh-mnemon": "^0.5.38",
|
|
72
|
+
"dsh-mnemon-provider-byterover": "^0.5.6",
|
|
73
73
|
"dsh-mnemon-provider-hindsight": "^0.5.7",
|
|
74
74
|
"dsh-mnemon-provider-holographic": "^0.5.7",
|
|
75
75
|
"dsh-mnemon-provider-honcho": "^0.5.5",
|