@adhdev/daemon-core 0.9.82-rc.55 → 0.9.82-rc.57
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/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/router.ts +8 -8
package/dist/index.mjs
CHANGED
|
@@ -24969,15 +24969,15 @@ function reconcileInlineMeshCache(cached, incoming) {
|
|
|
24969
24969
|
const cachedNodes = Array.isArray(cached.nodes) ? cached.nodes : [];
|
|
24970
24970
|
const incomingNodes = Array.isArray(incoming.nodes) ? incoming.nodes : [];
|
|
24971
24971
|
if (!cachedNodes.length || !incomingNodes.length) return { ...cached, ...incoming };
|
|
24972
|
-
const
|
|
24973
|
-
for (const node of
|
|
24972
|
+
const cachedById = /* @__PURE__ */ new Map();
|
|
24973
|
+
for (const node of cachedNodes) {
|
|
24974
24974
|
const nodeId = readInlineMeshNodeId(node);
|
|
24975
|
-
if (nodeId)
|
|
24975
|
+
if (nodeId) cachedById.set(nodeId, node);
|
|
24976
24976
|
}
|
|
24977
|
-
const nodes =
|
|
24978
|
-
const nodeId = readInlineMeshNodeId(
|
|
24979
|
-
const
|
|
24980
|
-
if (!
|
|
24977
|
+
const nodes = incomingNodes.map((incomingNode) => {
|
|
24978
|
+
const nodeId = readInlineMeshNodeId(incomingNode);
|
|
24979
|
+
const cachedNode = nodeId ? cachedById.get(nodeId) : void 0;
|
|
24980
|
+
if (!cachedNode) return incomingNode;
|
|
24981
24981
|
if (hasInlineMeshTransientNodeState(incomingNode)) {
|
|
24982
24982
|
return { ...cachedNode, ...incomingNode };
|
|
24983
24983
|
}
|
|
@@ -25132,7 +25132,7 @@ async function hydrateInlineMeshDirectTruth(args) {
|
|
|
25132
25132
|
if (!isSelfNode && daemonId) unavailableNodeIds.push(nodeId);
|
|
25133
25133
|
continue;
|
|
25134
25134
|
}
|
|
25135
|
-
if (
|
|
25135
|
+
if (fs10.existsSync(workspace)) {
|
|
25136
25136
|
try {
|
|
25137
25137
|
const localGit = await getGitRepoStatus(workspace, { timeoutMs: 1e4, refreshUpstream: true });
|
|
25138
25138
|
if (localGit?.isGitRepo) {
|