adhdev 0.5.23 → 0.5.24
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 +40 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20834,6 +20834,10 @@ var require_dist = __commonJS({
|
|
|
20834
20834
|
/** Extract ideType from _targetInstance or explicit ideType */
|
|
20835
20835
|
extractIdeType(args) {
|
|
20836
20836
|
if (args?.ideType) {
|
|
20837
|
+
const mappedKey = this._ctx.instanceIdMap?.get(args.ideType);
|
|
20838
|
+
if (mappedKey) {
|
|
20839
|
+
return mappedKey;
|
|
20840
|
+
}
|
|
20837
20841
|
if (this._ctx.cdpManagers.has(args.ideType)) {
|
|
20838
20842
|
return args.ideType;
|
|
20839
20843
|
}
|
|
@@ -29794,16 +29798,16 @@ ${e?.stack || ""}`);
|
|
|
29794
29798
|
}
|
|
29795
29799
|
}
|
|
29796
29800
|
async handleInputEvent(peerId, msg) {
|
|
29797
|
-
const { id, action, params } = msg;
|
|
29801
|
+
const { id, action, params, instanceId } = msg;
|
|
29798
29802
|
if (!this.inputHandler) {
|
|
29799
29803
|
this.sendToPeer(peerId, { id, type: "response", success: false, error: "No input handler" });
|
|
29800
29804
|
return;
|
|
29801
29805
|
}
|
|
29802
29806
|
try {
|
|
29803
29807
|
const peer = this.peers.get(peerId);
|
|
29804
|
-
const ideType = peer?.screenshotIdeType;
|
|
29808
|
+
const ideType = instanceId || peer?.screenshotIdeType;
|
|
29805
29809
|
if (!ideType) {
|
|
29806
|
-
log(`[Input] WARNING: No screenshotIdeType for peer ${peerId}
|
|
29810
|
+
log(`[Input] WARNING: No instanceId or screenshotIdeType for peer ${peerId}`);
|
|
29807
29811
|
}
|
|
29808
29812
|
const result = await this.inputHandler({ action, params, ideType });
|
|
29809
29813
|
this.sendToPeer(peerId, { id, type: "response", success: true, result });
|
|
@@ -30175,7 +30179,7 @@ var init_adhdev_daemon = __esm({
|
|
|
30175
30179
|
path2 = __toESM(require("path"));
|
|
30176
30180
|
crypto2 = __toESM(require("crypto"));
|
|
30177
30181
|
import_chalk = __toESM(require("chalk"));
|
|
30178
|
-
pkgVersion = "0.5.
|
|
30182
|
+
pkgVersion = "0.5.24";
|
|
30179
30183
|
if (pkgVersion === "unknown") {
|
|
30180
30184
|
try {
|
|
30181
30185
|
const possiblePaths = [
|