@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.js
CHANGED
|
@@ -25215,15 +25215,15 @@ function reconcileInlineMeshCache(cached, incoming) {
|
|
|
25215
25215
|
const cachedNodes = Array.isArray(cached.nodes) ? cached.nodes : [];
|
|
25216
25216
|
const incomingNodes = Array.isArray(incoming.nodes) ? incoming.nodes : [];
|
|
25217
25217
|
if (!cachedNodes.length || !incomingNodes.length) return { ...cached, ...incoming };
|
|
25218
|
-
const
|
|
25219
|
-
for (const node of
|
|
25218
|
+
const cachedById = /* @__PURE__ */ new Map();
|
|
25219
|
+
for (const node of cachedNodes) {
|
|
25220
25220
|
const nodeId = readInlineMeshNodeId(node);
|
|
25221
|
-
if (nodeId)
|
|
25221
|
+
if (nodeId) cachedById.set(nodeId, node);
|
|
25222
25222
|
}
|
|
25223
|
-
const nodes =
|
|
25224
|
-
const nodeId = readInlineMeshNodeId(
|
|
25225
|
-
const
|
|
25226
|
-
if (!
|
|
25223
|
+
const nodes = incomingNodes.map((incomingNode) => {
|
|
25224
|
+
const nodeId = readInlineMeshNodeId(incomingNode);
|
|
25225
|
+
const cachedNode = nodeId ? cachedById.get(nodeId) : void 0;
|
|
25226
|
+
if (!cachedNode) return incomingNode;
|
|
25227
25227
|
if (hasInlineMeshTransientNodeState(incomingNode)) {
|
|
25228
25228
|
return { ...cachedNode, ...incomingNode };
|
|
25229
25229
|
}
|
|
@@ -25378,7 +25378,7 @@ async function hydrateInlineMeshDirectTruth(args) {
|
|
|
25378
25378
|
if (!isSelfNode && daemonId) unavailableNodeIds.push(nodeId);
|
|
25379
25379
|
continue;
|
|
25380
25380
|
}
|
|
25381
|
-
if (
|
|
25381
|
+
if (fs10.existsSync(workspace)) {
|
|
25382
25382
|
try {
|
|
25383
25383
|
const localGit = await getGitRepoStatus(workspace, { timeoutMs: 1e4, refreshUpstream: true });
|
|
25384
25384
|
if (localGit?.isGitRepo) {
|