@adhdev/daemon-standalone 0.9.77-rc.27 → 0.9.77-rc.28
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/package.json
CHANGED
|
@@ -57474,9 +57474,10 @@ async function ipcDispatchToRemoteAgent(ctx, node, args) {
|
|
|
57474
57474
|
let resolvedProviderType = args.providerType?.trim() || providerPriorityList[0] || "";
|
|
57475
57475
|
if (!sessionId) {
|
|
57476
57476
|
try {
|
|
57477
|
-
const
|
|
57478
|
-
const
|
|
57479
|
-
const
|
|
57477
|
+
const relayResult = await transport.meshCommand(daemonId, "get_status_metadata", {});
|
|
57478
|
+
const innerResult = relayResult?.result ?? relayResult;
|
|
57479
|
+
const statusObj = innerResult?.status ?? innerResult;
|
|
57480
|
+
const sessions = Array.isArray(statusObj?.sessions) ? statusObj.sessions : [];
|
|
57480
57481
|
const meshSessions = sessions.filter(
|
|
57481
57482
|
(s) => s?.settings?.meshNodeFor === ctx.mesh.id || s?.settings?.meshNodeId === node.id || s?.settings?.launchedByCoordinator === true
|
|
57482
57483
|
);
|