adhdev 0.7.30 → 0.7.33
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 -24
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +39 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/session-host-daemon/index.d.mts +1 -1
- package/vendor/session-host-daemon/index.d.ts +1 -1
- package/vendor/session-host-daemon/index.js +11 -0
- package/vendor/session-host-daemon/index.js.map +1 -1
- package/vendor/session-host-daemon/index.mjs +11 -0
- package/vendor/session-host-daemon/index.mjs.map +1 -1
package/dist/index.js
CHANGED
|
@@ -583,16 +583,16 @@ async function detectCLIs(providerLoader) {
|
|
|
583
583
|
const results = await Promise.all(
|
|
584
584
|
cliList.map(async (cli) => {
|
|
585
585
|
try {
|
|
586
|
-
const pathResult = await execAsync(`${whichCmd} ${cli.command}
|
|
586
|
+
const pathResult = await execAsync(`${whichCmd} ${cli.command}`);
|
|
587
587
|
if (!pathResult) return { ...cli, installed: false };
|
|
588
588
|
const firstPath = pathResult.split("\n")[0];
|
|
589
589
|
let version2;
|
|
590
590
|
try {
|
|
591
591
|
const versionCommands = [
|
|
592
592
|
cli.versionCommand,
|
|
593
|
-
`${cli.command} --version
|
|
594
|
-
`${cli.command} -V
|
|
595
|
-
`${cli.command} -v
|
|
593
|
+
`${cli.command} --version`,
|
|
594
|
+
`${cli.command} -V`,
|
|
595
|
+
`${cli.command} -v`
|
|
596
596
|
].filter((v2) => !!v2);
|
|
597
597
|
for (const versionCommand of versionCommands) {
|
|
598
598
|
const versionResult = await execAsync(versionCommand, 3e3);
|
|
@@ -2991,10 +2991,13 @@ var init_ide_provider_instance = __esm({
|
|
|
2991
2991
|
if (result?.found && result.x != null && result.y != null) {
|
|
2992
2992
|
const x = result.x;
|
|
2993
2993
|
const y = result.y;
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2994
|
+
if (cdp.send) {
|
|
2995
|
+
await cdp.send("Input.dispatchMouseEvent", { type: "mousePressed", x, y, button: "left", clickCount: 1 });
|
|
2996
|
+
await cdp.send("Input.dispatchMouseEvent", { type: "mouseReleased", x, y, button: "left", clickCount: 1 });
|
|
2997
|
+
LOG.info("IdeInstance", `[IdeInstance:${this.type}] autoApprove: dispatched mouse event at ${x},${y}`);
|
|
2998
|
+
} else {
|
|
2999
|
+
LOG.warn("IdeInstance", `[IdeInstance:${this.type}] autoApprove: cdp.send() not available for coordinate click`);
|
|
3000
|
+
}
|
|
2998
3001
|
}
|
|
2999
3002
|
this.pushEvent({
|
|
3000
3003
|
event: "agent:auto_approved",
|
|
@@ -7308,14 +7311,6 @@ var init_provider_loader = __esm({
|
|
|
7308
7311
|
}
|
|
7309
7312
|
/**
|
|
7310
7313
|
* Get raw provider metadata by type (NO scripts loaded).
|
|
7311
|
-
* Use resolve() when you need scripts (readChat, listModels, etc).
|
|
7312
|
-
* @deprecated Use getMeta() for metadata or resolve() for scripts.
|
|
7313
|
-
*/
|
|
7314
|
-
get(type) {
|
|
7315
|
-
return this.providers.get(type);
|
|
7316
|
-
}
|
|
7317
|
-
/**
|
|
7318
|
-
* Get raw provider metadata by type (NO scripts loaded).
|
|
7319
7314
|
* Safe for: category checks, icon, displayName, targetFilter, cdpPorts.
|
|
7320
7315
|
* NOT safe for: script execution (readChat, listModels, sendMessage).
|
|
7321
7316
|
* Use resolve() when scripts are needed.
|
|
@@ -8901,7 +8896,7 @@ var init_router = __esm({
|
|
|
8901
8896
|
}
|
|
8902
8897
|
}
|
|
8903
8898
|
const keysToRemove = [];
|
|
8904
|
-
for (const key of this.deps.instanceManager.
|
|
8899
|
+
for (const key of this.deps.instanceManager.listInstanceIds()) {
|
|
8905
8900
|
if (key === `ide:${ideType}` || typeof key === "string" && key.startsWith(`ide:${ideType}_`)) {
|
|
8906
8901
|
keysToRemove.push(key);
|
|
8907
8902
|
}
|
|
@@ -18955,8 +18950,12 @@ var init_provider_cli_adapter = __esm({
|
|
|
18955
18950
|
LOG.info("CLI", `[${this.cliType}] Using login shell (script shim or non-native binary)`);
|
|
18956
18951
|
}
|
|
18957
18952
|
shellCmd = isWin ? "cmd.exe" : process.env.SHELL || "/bin/zsh";
|
|
18958
|
-
|
|
18959
|
-
|
|
18953
|
+
if (isWin) {
|
|
18954
|
+
shellArgs = ["/c", binaryPath, ...allArgs];
|
|
18955
|
+
} else {
|
|
18956
|
+
const fullCmd = [binaryPath, ...allArgs].map(shSingleQuote).join(" ");
|
|
18957
|
+
shellArgs = ["-l", "-c", fullCmd];
|
|
18958
|
+
}
|
|
18960
18959
|
} else {
|
|
18961
18960
|
shellCmd = binaryPath;
|
|
18962
18961
|
shellArgs = allArgs;
|
|
@@ -38348,6 +38347,12 @@ var init_provider_instance_manager = __esm({
|
|
|
38348
38347
|
get size() {
|
|
38349
38348
|
return this.instances.size;
|
|
38350
38349
|
}
|
|
38350
|
+
/**
|
|
38351
|
+
* All Instance IDs (for iteration without exposing the private Map)
|
|
38352
|
+
*/
|
|
38353
|
+
listInstanceIds() {
|
|
38354
|
+
return [...this.instances.keys()];
|
|
38355
|
+
}
|
|
38351
38356
|
// ─── State collect ────────────────────────────────
|
|
38352
38357
|
/**
|
|
38353
38358
|
* all Instance's current status collect
|
|
@@ -42789,7 +42794,20 @@ var init_dist = __esm({
|
|
|
42789
42794
|
request
|
|
42790
42795
|
};
|
|
42791
42796
|
const response = await new Promise((resolve12, reject) => {
|
|
42792
|
-
|
|
42797
|
+
const timeout = setTimeout(() => {
|
|
42798
|
+
this.requestWaiters.delete(requestId);
|
|
42799
|
+
reject(new Error(`Session host request timed out after 30s (${request.type})`));
|
|
42800
|
+
}, 3e4);
|
|
42801
|
+
this.requestWaiters.set(requestId, {
|
|
42802
|
+
resolve: (value) => {
|
|
42803
|
+
clearTimeout(timeout);
|
|
42804
|
+
resolve12(value);
|
|
42805
|
+
},
|
|
42806
|
+
reject: (error48) => {
|
|
42807
|
+
clearTimeout(timeout);
|
|
42808
|
+
reject(error48);
|
|
42809
|
+
}
|
|
42810
|
+
});
|
|
42793
42811
|
this.socket?.write(serializeEnvelope(envelope));
|
|
42794
42812
|
});
|
|
42795
42813
|
return response;
|
|
@@ -44933,7 +44951,7 @@ var init_adhdev_daemon = __esm({
|
|
|
44933
44951
|
fs14 = __toESM(require("fs"));
|
|
44934
44952
|
path17 = __toESM(require("path"));
|
|
44935
44953
|
import_chalk2 = __toESM(require("chalk"));
|
|
44936
|
-
pkgVersion = "0.7.
|
|
44954
|
+
pkgVersion = "0.7.33";
|
|
44937
44955
|
if (pkgVersion === "unknown") {
|
|
44938
44956
|
try {
|
|
44939
44957
|
const possiblePaths = [
|