adhdev 0.7.1 → 0.7.2
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 +8 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -42860,7 +42860,7 @@ ${e?.stack || ""}`);
|
|
|
42860
42860
|
this.notifyStateChange();
|
|
42861
42861
|
}
|
|
42862
42862
|
}
|
|
42863
|
-
/** Process
|
|
42863
|
+
/** Process unified data channel message */
|
|
42864
42864
|
handleCommandMessage(peerId, msg) {
|
|
42865
42865
|
const text = typeof msg === "string" ? msg : msg.toString("utf-8");
|
|
42866
42866
|
try {
|
|
@@ -43495,7 +43495,7 @@ var init_adhdev_daemon = __esm({
|
|
|
43495
43495
|
fs12 = __toESM(require("fs"));
|
|
43496
43496
|
path14 = __toESM(require("path"));
|
|
43497
43497
|
import_chalk2 = __toESM(require("chalk"));
|
|
43498
|
-
pkgVersion = "0.7.
|
|
43498
|
+
pkgVersion = "0.7.2";
|
|
43499
43499
|
if (pkgVersion === "unknown") {
|
|
43500
43500
|
try {
|
|
43501
43501
|
const possiblePaths = [
|
|
@@ -43889,13 +43889,16 @@ ${err?.stack || ""}`);
|
|
|
43889
43889
|
// ─── CDP helpers ─────────────────────────────
|
|
43890
43890
|
/** Return CDP manager for specific IDE.
|
|
43891
43891
|
* Lookup order:
|
|
43892
|
-
* 1.
|
|
43893
|
-
* 2.
|
|
43892
|
+
* 1. If passed a runtime session UUID, resolve via sessionRegistry → cdpManagerKey
|
|
43893
|
+
* 2. Exact match on cdpManagers (full manager key)
|
|
43894
|
+
* 3. Prefix match on cdpManagers (ideType_workspace)
|
|
43894
43895
|
*/
|
|
43895
43896
|
getCdpFor(ideType) {
|
|
43896
43897
|
if (!this.components) return null;
|
|
43897
43898
|
const key = ideType.toLowerCase();
|
|
43898
|
-
|
|
43899
|
+
const sessionTarget = this.components.sessionRegistry.get(key);
|
|
43900
|
+
const resolvedKey = sessionTarget?.cdpManagerKey || key;
|
|
43901
|
+
return findCdpManager(this.components.cdpManagers, resolvedKey);
|
|
43899
43902
|
}
|
|
43900
43903
|
};
|
|
43901
43904
|
}
|