adhdev 0.6.36 → 0.6.39
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 +63 -24
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +10 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -505,8 +505,7 @@ async function detectIDEs() {
|
|
|
505
505
|
path: appPath || cliPath,
|
|
506
506
|
cliCommand: resolvedCli || null,
|
|
507
507
|
version: version2,
|
|
508
|
-
icon: def.icon
|
|
509
|
-
extensionSupport: def.extensionSupport
|
|
508
|
+
icon: def.icon
|
|
510
509
|
});
|
|
511
510
|
}
|
|
512
511
|
return results;
|
|
@@ -4797,14 +4796,7 @@ var init_handler = __esm({
|
|
|
4797
4796
|
}
|
|
4798
4797
|
return { success: false, error: `VSCode command not available: ${resolvedCmd || cmd}` };
|
|
4799
4798
|
}
|
|
4800
|
-
|
|
4801
|
-
case "open_tab":
|
|
4802
|
-
case "close_tab":
|
|
4803
|
-
case "open_folder":
|
|
4804
|
-
case "open_folder_picker":
|
|
4805
|
-
case "open_recent":
|
|
4806
|
-
case "get_commands":
|
|
4807
|
-
return { success: false, error: `${cmd} requires bridge-extension (removed)` };
|
|
4799
|
+
// ─── Workspace cmds ──────────────
|
|
4808
4800
|
case "get_recent_workspaces":
|
|
4809
4801
|
return this.handleGetRecentWorkspaces(args);
|
|
4810
4802
|
case "get_cli_history": {
|
|
@@ -5257,7 +5249,6 @@ var init_provider_loader = __esm({
|
|
|
5257
5249
|
name: p.name,
|
|
5258
5250
|
displayName: p.displayName || p.name,
|
|
5259
5251
|
icon: p.icon || "\u{1F4BB}",
|
|
5260
|
-
extensionSupport: "full",
|
|
5261
5252
|
cli: p.cli,
|
|
5262
5253
|
paths: p.paths
|
|
5263
5254
|
});
|
|
@@ -26848,7 +26839,13 @@ var init_dev_server = __esm({
|
|
|
26848
26839
|
return;
|
|
26849
26840
|
}
|
|
26850
26841
|
try {
|
|
26851
|
-
|
|
26842
|
+
let scriptCode = null;
|
|
26843
|
+
if (["sendMessage", "webviewSendMessage", "switchSession", "webviewSwitchSession", "setMode", "webviewSetMode", "setModel", "webviewSetModel"].includes(scriptName)) {
|
|
26844
|
+
const firstVal = params && typeof params === "object" && Object.keys(params).length > 0 ? Object.values(params)[0] : params;
|
|
26845
|
+
scriptCode = firstVal !== void 0 ? fn(firstVal) : fn();
|
|
26846
|
+
} else {
|
|
26847
|
+
scriptCode = params !== void 0 ? fn(params) : fn();
|
|
26848
|
+
}
|
|
26852
26849
|
if (!scriptCode) {
|
|
26853
26850
|
this.json(res, 500, { error: "Script function returned null" });
|
|
26854
26851
|
return;
|
|
@@ -30833,7 +30830,7 @@ var init_adhdev_daemon = __esm({
|
|
|
30833
30830
|
fs11 = __toESM(require("fs"));
|
|
30834
30831
|
path14 = __toESM(require("path"));
|
|
30835
30832
|
import_chalk2 = __toESM(require("chalk"));
|
|
30836
|
-
pkgVersion = "0.6.
|
|
30833
|
+
pkgVersion = "0.6.39";
|
|
30837
30834
|
if (pkgVersion === "unknown") {
|
|
30838
30835
|
try {
|
|
30839
30836
|
const possiblePaths = [
|