adhdev 0.9.82-rc.22 → 0.9.82-rc.23
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 +20 -11
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +20 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -45766,8 +45766,21 @@ function summarizeMeshSessionRecord(record2) {
|
|
|
45766
45766
|
isCached: false
|
|
45767
45767
|
};
|
|
45768
45768
|
}
|
|
45769
|
+
function liveSessionRecordMatchesMeshNode(record2, meshId, nodeId) {
|
|
45770
|
+
const recordNodeId = readStringValue(record2?.meta?.meshNodeId);
|
|
45771
|
+
if (!recordNodeId || recordNodeId !== nodeId) return false;
|
|
45772
|
+
const recordMeshId = readStringValue(record2?.meta?.meshNodeFor);
|
|
45773
|
+
return !recordMeshId || recordMeshId === meshId;
|
|
45774
|
+
}
|
|
45775
|
+
function liveSessionRecordMatchesMeshWorkspace(record2, meshId, workspace) {
|
|
45776
|
+
const recordWorkspace = readStringValue(record2?.workspace);
|
|
45777
|
+
if (!recordWorkspace || !workspace || recordWorkspace !== workspace) return false;
|
|
45778
|
+
const recordMeshId = readStringValue(record2?.meta?.meshNodeFor);
|
|
45779
|
+
if (recordMeshId) return recordMeshId === meshId;
|
|
45780
|
+
return record2?.meta?.launchedByCoordinator === true || !!readStringValue(record2?.meta?.meshNodeId);
|
|
45781
|
+
}
|
|
45769
45782
|
function readLiveMeshNodeWorkspace(args) {
|
|
45770
|
-
const directNodeWorkspace = args.liveSessionRecords.find((record2) =>
|
|
45783
|
+
const directNodeWorkspace = args.liveSessionRecords.find((record2) => liveSessionRecordMatchesMeshNode(record2, args.meshId, args.nodeId) && readStringValue(record2?.workspace));
|
|
45771
45784
|
if (directNodeWorkspace) {
|
|
45772
45785
|
return readStringValue(directNodeWorkspace.workspace) || "";
|
|
45773
45786
|
}
|
|
@@ -45781,10 +45794,9 @@ function readLiveMeshNodeWorkspace(args) {
|
|
|
45781
45794
|
}
|
|
45782
45795
|
function collectLiveMeshSessionRecords(args) {
|
|
45783
45796
|
const matches = args.liveSessionRecords.filter((record2) => {
|
|
45784
|
-
if (readStringValue(record2?.meta?.meshNodeId) === args.nodeId) return true;
|
|
45785
|
-
const recordWorkspace = readStringValue(record2?.workspace);
|
|
45786
45797
|
const nodeWorkspace = readStringValue(args.node?.workspace);
|
|
45787
|
-
|
|
45798
|
+
if (liveSessionRecordMatchesMeshNode(record2, args.meshId, args.nodeId)) return true;
|
|
45799
|
+
return !!nodeWorkspace && liveSessionRecordMatchesMeshWorkspace(record2, args.meshId, nodeWorkspace);
|
|
45788
45800
|
});
|
|
45789
45801
|
if (args.allowCoordinatorSession) {
|
|
45790
45802
|
for (const record2 of args.liveSessionRecords) {
|
|
@@ -67101,7 +67113,7 @@ var init_adhdev_daemon = __esm({
|
|
|
67101
67113
|
init_version();
|
|
67102
67114
|
init_src();
|
|
67103
67115
|
init_runtime_defaults();
|
|
67104
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.
|
|
67116
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.23" });
|
|
67105
67117
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
67106
67118
|
localHttpServer = null;
|
|
67107
67119
|
localWss = null;
|
|
@@ -68635,7 +68647,7 @@ var require_yoctocolors_cjs = __commonJS({
|
|
|
68635
68647
|
}
|
|
68636
68648
|
});
|
|
68637
68649
|
|
|
68638
|
-
// ../../node_modules/@inquirer/figures/dist/esm/index.
|
|
68650
|
+
// ../../node_modules/@inquirer/figures/dist/esm/index.mjs
|
|
68639
68651
|
function isUnicodeSupported() {
|
|
68640
68652
|
if (import_node_process3.default.platform !== "win32") {
|
|
68641
68653
|
return import_node_process3.default.env["TERM"] !== "linux";
|
|
@@ -68647,7 +68659,7 @@ function isUnicodeSupported() {
|
|
|
68647
68659
|
}
|
|
68648
68660
|
var import_node_process3, common2, specialMainSymbols, specialFallbackSymbols, mainSymbols, fallbackSymbols, shouldUseMain, figures, esm_default, replacements;
|
|
68649
68661
|
var init_esm3 = __esm({
|
|
68650
|
-
"../../node_modules/@inquirer/figures/dist/esm/index.
|
|
68662
|
+
"../../node_modules/@inquirer/figures/dist/esm/index.mjs"() {
|
|
68651
68663
|
"use strict";
|
|
68652
68664
|
import_node_process3 = __toESM(require("process"), 1);
|
|
68653
68665
|
common2 = {
|
|
@@ -68918,10 +68930,7 @@ var init_esm3 = __esm({
|
|
|
68918
68930
|
oneNinth: "1/9",
|
|
68919
68931
|
oneTenth: "1/10"
|
|
68920
68932
|
};
|
|
68921
|
-
mainSymbols = {
|
|
68922
|
-
...common2,
|
|
68923
|
-
...specialMainSymbols
|
|
68924
|
-
};
|
|
68933
|
+
mainSymbols = { ...common2, ...specialMainSymbols };
|
|
68925
68934
|
fallbackSymbols = {
|
|
68926
68935
|
...common2,
|
|
68927
68936
|
...specialFallbackSymbols
|