adhdev 0.7.0 → 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 +14 -6
- 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/index.js
CHANGED
|
@@ -42398,7 +42398,7 @@ ${e?.stack || ""}`);
|
|
|
42398
42398
|
this.notifyStateChange();
|
|
42399
42399
|
}
|
|
42400
42400
|
}
|
|
42401
|
-
/** Process
|
|
42401
|
+
/** Process unified data channel message */
|
|
42402
42402
|
handleCommandMessage(peerId, msg) {
|
|
42403
42403
|
const text = typeof msg === "string" ? msg : msg.toString("utf-8");
|
|
42404
42404
|
try {
|
|
@@ -43033,7 +43033,7 @@ var init_adhdev_daemon = __esm({
|
|
|
43033
43033
|
fs12 = __toESM(require("fs"));
|
|
43034
43034
|
path14 = __toESM(require("path"));
|
|
43035
43035
|
import_chalk2 = __toESM(require("chalk"));
|
|
43036
|
-
pkgVersion = "0.7.
|
|
43036
|
+
pkgVersion = "0.7.2";
|
|
43037
43037
|
if (pkgVersion === "unknown") {
|
|
43038
43038
|
try {
|
|
43039
43039
|
const possiblePaths = [
|
|
@@ -43427,13 +43427,16 @@ ${err?.stack || ""}`);
|
|
|
43427
43427
|
// ─── CDP helpers ─────────────────────────────
|
|
43428
43428
|
/** Return CDP manager for specific IDE.
|
|
43429
43429
|
* Lookup order:
|
|
43430
|
-
* 1.
|
|
43431
|
-
* 2.
|
|
43430
|
+
* 1. If passed a runtime session UUID, resolve via sessionRegistry → cdpManagerKey
|
|
43431
|
+
* 2. Exact match on cdpManagers (full manager key)
|
|
43432
|
+
* 3. Prefix match on cdpManagers (ideType_workspace)
|
|
43432
43433
|
*/
|
|
43433
43434
|
getCdpFor(ideType) {
|
|
43434
43435
|
if (!this.components) return null;
|
|
43435
43436
|
const key = ideType.toLowerCase();
|
|
43436
|
-
|
|
43437
|
+
const sessionTarget = this.components.sessionRegistry.get(key);
|
|
43438
|
+
const resolvedKey = sessionTarget?.cdpManagerKey || key;
|
|
43439
|
+
return findCdpManager(this.components.cdpManagers, resolvedKey);
|
|
43437
43440
|
}
|
|
43438
43441
|
};
|
|
43439
43442
|
}
|