adhdev 0.9.82-rc.4 → 0.9.82-rc.6
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/cli/index.js +36 -59
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +36 -59
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/vendor/mcp-server/index.js +10 -2
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adhdev",
|
|
3
|
-
"version": "0.9.82-rc.
|
|
3
|
+
"version": "0.9.82-rc.6",
|
|
4
4
|
"description": "ADHDev — Agent Dashboard Hub for Dev. Remote-control AI coding agents from anywhere.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node": ">=18"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@adhdev/daemon-core": "0.9.82-rc.
|
|
50
|
+
"@adhdev/daemon-core": "0.9.82-rc.6",
|
|
51
51
|
"@adhdev/ghostty-vt-node": "*",
|
|
52
52
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
53
53
|
"@xterm/addon-serialize": "^0.14.0",
|
|
@@ -583,10 +583,18 @@ function isIdleSessionRecord(session) {
|
|
|
583
583
|
function chooseDispatchableSession(sessions, providerType, meshId, nodeId) {
|
|
584
584
|
const live = sessions.filter((session) => !isTerminalSessionRecord(session));
|
|
585
585
|
const matchingProvider = (session) => !providerType || session?.providerType === providerType || session?.cliType === providerType;
|
|
586
|
+
const isMeshOwnedDelegateSession = (session) => {
|
|
587
|
+
const settings = session?.settings;
|
|
588
|
+
const sessionMeshId = typeof settings?.meshNodeFor === "string" ? settings.meshNodeFor.trim() : "";
|
|
589
|
+
const coordinatorDaemonId = typeof settings?.meshCoordinatorDaemonId === "string" ? settings.meshCoordinatorDaemonId.trim() : "";
|
|
590
|
+
const sessionNodeId = typeof settings?.meshNodeId === "string" ? settings.meshNodeId.trim() : "";
|
|
591
|
+
if (sessionMeshId !== meshId || !coordinatorDaemonId) return false;
|
|
592
|
+
return !sessionNodeId || sessionNodeId === nodeId;
|
|
593
|
+
};
|
|
586
594
|
const meshSessions = live.filter(
|
|
587
|
-
(session) => session
|
|
595
|
+
(session) => isMeshOwnedDelegateSession(session)
|
|
588
596
|
);
|
|
589
|
-
return meshSessions.find((session) => isIdleSessionRecord(session) && matchingProvider(session)) || meshSessions.find(matchingProvider) ||
|
|
597
|
+
return meshSessions.find((session) => isIdleSessionRecord(session) && matchingProvider(session)) || meshSessions.find(matchingProvider) || void 0;
|
|
590
598
|
}
|
|
591
599
|
function findNestedPayload(value, predicate) {
|
|
592
600
|
const seen = /* @__PURE__ */ new Set();
|