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/cli/index.js
CHANGED
|
@@ -46754,8 +46754,21 @@ function summarizeMeshSessionRecord(record2) {
|
|
|
46754
46754
|
isCached: false
|
|
46755
46755
|
};
|
|
46756
46756
|
}
|
|
46757
|
+
function liveSessionRecordMatchesMeshNode(record2, meshId, nodeId) {
|
|
46758
|
+
const recordNodeId = readStringValue(record2?.meta?.meshNodeId);
|
|
46759
|
+
if (!recordNodeId || recordNodeId !== nodeId) return false;
|
|
46760
|
+
const recordMeshId = readStringValue(record2?.meta?.meshNodeFor);
|
|
46761
|
+
return !recordMeshId || recordMeshId === meshId;
|
|
46762
|
+
}
|
|
46763
|
+
function liveSessionRecordMatchesMeshWorkspace(record2, meshId, workspace) {
|
|
46764
|
+
const recordWorkspace = readStringValue(record2?.workspace);
|
|
46765
|
+
if (!recordWorkspace || !workspace || recordWorkspace !== workspace) return false;
|
|
46766
|
+
const recordMeshId = readStringValue(record2?.meta?.meshNodeFor);
|
|
46767
|
+
if (recordMeshId) return recordMeshId === meshId;
|
|
46768
|
+
return record2?.meta?.launchedByCoordinator === true || !!readStringValue(record2?.meta?.meshNodeId);
|
|
46769
|
+
}
|
|
46757
46770
|
function readLiveMeshNodeWorkspace(args) {
|
|
46758
|
-
const directNodeWorkspace = args.liveSessionRecords.find((record2) =>
|
|
46771
|
+
const directNodeWorkspace = args.liveSessionRecords.find((record2) => liveSessionRecordMatchesMeshNode(record2, args.meshId, args.nodeId) && readStringValue(record2?.workspace));
|
|
46759
46772
|
if (directNodeWorkspace) {
|
|
46760
46773
|
return readStringValue(directNodeWorkspace.workspace) || "";
|
|
46761
46774
|
}
|
|
@@ -46769,10 +46782,9 @@ function readLiveMeshNodeWorkspace(args) {
|
|
|
46769
46782
|
}
|
|
46770
46783
|
function collectLiveMeshSessionRecords(args) {
|
|
46771
46784
|
const matches = args.liveSessionRecords.filter((record2) => {
|
|
46772
|
-
if (readStringValue(record2?.meta?.meshNodeId) === args.nodeId) return true;
|
|
46773
|
-
const recordWorkspace = readStringValue(record2?.workspace);
|
|
46774
46785
|
const nodeWorkspace = readStringValue(args.node?.workspace);
|
|
46775
|
-
|
|
46786
|
+
if (liveSessionRecordMatchesMeshNode(record2, args.meshId, args.nodeId)) return true;
|
|
46787
|
+
return !!nodeWorkspace && liveSessionRecordMatchesMeshWorkspace(record2, args.meshId, nodeWorkspace);
|
|
46776
46788
|
});
|
|
46777
46789
|
if (args.allowCoordinatorSession) {
|
|
46778
46790
|
for (const record2 of args.liveSessionRecords) {
|
|
@@ -58083,7 +58095,7 @@ var require_yoctocolors_cjs = __commonJS({
|
|
|
58083
58095
|
}
|
|
58084
58096
|
});
|
|
58085
58097
|
|
|
58086
|
-
// ../../node_modules/@inquirer/figures/dist/esm/index.
|
|
58098
|
+
// ../../node_modules/@inquirer/figures/dist/esm/index.mjs
|
|
58087
58099
|
function isUnicodeSupported() {
|
|
58088
58100
|
if (import_node_process3.default.platform !== "win32") {
|
|
58089
58101
|
return import_node_process3.default.env["TERM"] !== "linux";
|
|
@@ -58095,7 +58107,7 @@ function isUnicodeSupported() {
|
|
|
58095
58107
|
}
|
|
58096
58108
|
var import_node_process3, common2, specialMainSymbols, specialFallbackSymbols, mainSymbols, fallbackSymbols, shouldUseMain, figures, esm_default, replacements;
|
|
58097
58109
|
var init_esm3 = __esm({
|
|
58098
|
-
"../../node_modules/@inquirer/figures/dist/esm/index.
|
|
58110
|
+
"../../node_modules/@inquirer/figures/dist/esm/index.mjs"() {
|
|
58099
58111
|
"use strict";
|
|
58100
58112
|
import_node_process3 = __toESM(require("process"), 1);
|
|
58101
58113
|
common2 = {
|
|
@@ -58366,10 +58378,7 @@ var init_esm3 = __esm({
|
|
|
58366
58378
|
oneNinth: "1/9",
|
|
58367
58379
|
oneTenth: "1/10"
|
|
58368
58380
|
};
|
|
58369
|
-
mainSymbols = {
|
|
58370
|
-
...common2,
|
|
58371
|
-
...specialMainSymbols
|
|
58372
|
-
};
|
|
58381
|
+
mainSymbols = { ...common2, ...specialMainSymbols };
|
|
58373
58382
|
fallbackSymbols = {
|
|
58374
58383
|
...common2,
|
|
58375
58384
|
...specialFallbackSymbols
|
|
@@ -98274,7 +98283,7 @@ var init_adhdev_daemon = __esm({
|
|
|
98274
98283
|
init_version();
|
|
98275
98284
|
init_src();
|
|
98276
98285
|
init_runtime_defaults();
|
|
98277
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.
|
|
98286
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.23" });
|
|
98278
98287
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
98279
98288
|
localHttpServer = null;
|
|
98280
98289
|
localWss = null;
|