adhdev 0.6.36 → 0.6.37
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 +37 -13
- 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/cli/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;
|
|
@@ -4965,14 +4964,7 @@ var init_handler = __esm({
|
|
|
4965
4964
|
}
|
|
4966
4965
|
return { success: false, error: `VSCode command not available: ${resolvedCmd || cmd}` };
|
|
4967
4966
|
}
|
|
4968
|
-
|
|
4969
|
-
case "open_tab":
|
|
4970
|
-
case "close_tab":
|
|
4971
|
-
case "open_folder":
|
|
4972
|
-
case "open_folder_picker":
|
|
4973
|
-
case "open_recent":
|
|
4974
|
-
case "get_commands":
|
|
4975
|
-
return { success: false, error: `${cmd} requires bridge-extension (removed)` };
|
|
4967
|
+
// ─── Workspace cmds ──────────────
|
|
4976
4968
|
case "get_recent_workspaces":
|
|
4977
4969
|
return this.handleGetRecentWorkspaces(args);
|
|
4978
4970
|
case "get_cli_history": {
|
|
@@ -5425,7 +5417,6 @@ var init_provider_loader = __esm({
|
|
|
5425
5417
|
name: p.name,
|
|
5426
5418
|
displayName: p.displayName || p.name,
|
|
5427
5419
|
icon: p.icon || "\u{1F4BB}",
|
|
5428
|
-
extensionSupport: "full",
|
|
5429
5420
|
cli: p.cli,
|
|
5430
5421
|
paths: p.paths
|
|
5431
5422
|
});
|
|
@@ -27045,7 +27036,13 @@ var init_dev_server = __esm({
|
|
|
27045
27036
|
return;
|
|
27046
27037
|
}
|
|
27047
27038
|
try {
|
|
27048
|
-
|
|
27039
|
+
let scriptCode = null;
|
|
27040
|
+
if (["sendMessage", "webviewSendMessage", "switchSession", "webviewSwitchSession", "setMode", "webviewSetMode", "setModel", "webviewSetModel"].includes(scriptName)) {
|
|
27041
|
+
const firstVal = params && typeof params === "object" && Object.keys(params).length > 0 ? Object.values(params)[0] : params;
|
|
27042
|
+
scriptCode = firstVal !== void 0 ? fn(firstVal) : fn();
|
|
27043
|
+
} else {
|
|
27044
|
+
scriptCode = params !== void 0 ? fn(params) : fn();
|
|
27045
|
+
}
|
|
27049
27046
|
if (!scriptCode) {
|
|
27050
27047
|
this.json(res, 500, { error: "Script function returned null" });
|
|
27051
27048
|
return;
|
|
@@ -31273,7 +31270,7 @@ var init_adhdev_daemon = __esm({
|
|
|
31273
31270
|
fs11 = __toESM(require("fs"));
|
|
31274
31271
|
path14 = __toESM(require("path"));
|
|
31275
31272
|
import_chalk2 = __toESM(require("chalk"));
|
|
31276
|
-
pkgVersion = "0.6.
|
|
31273
|
+
pkgVersion = "0.6.37";
|
|
31277
31274
|
if (pkgVersion === "unknown") {
|
|
31278
31275
|
try {
|
|
31279
31276
|
const possiblePaths = [
|
|
@@ -32502,6 +32499,32 @@ function registerDaemonCommands(program2, pkgVersion3) {
|
|
|
32502
32499
|
dev: options.dev || false
|
|
32503
32500
|
});
|
|
32504
32501
|
});
|
|
32502
|
+
program2.command("standalone").description("\u{1F5A5}\uFE0F Start ADHDev Standalone Server (Local Dashboard & Embedded Daemon)").option("-p, --port <port>", "Local HTTP/WS server port", "3847").option("--host <host>", "Bind to specific host (use 0.0.0.0 for LAN access)").option("--no-open", "Prevent opening browser automatically").option("--token <token>", "Require token authentication").option("--dev", "Enable Dev Mode").action(async (options) => {
|
|
32503
|
+
const { spawn: spawn3, execSync: execSync7 } = await import("child_process");
|
|
32504
|
+
console.log(import_chalk5.default.cyan("\n Starting ADHDev Standalone Server..."));
|
|
32505
|
+
const args = [];
|
|
32506
|
+
if (options.port) args.push("--port", options.port);
|
|
32507
|
+
if (options.host) args.push("--host", options.host);
|
|
32508
|
+
if (options.open === false) args.push("--no-open");
|
|
32509
|
+
if (options.token) args.push("--token", options.token);
|
|
32510
|
+
if (options.dev) args.push("--dev");
|
|
32511
|
+
let bin = "npx";
|
|
32512
|
+
const npxArgs = ["-y", "@adhdev/daemon-standalone@latest", ...args];
|
|
32513
|
+
try {
|
|
32514
|
+
execSync7("adhdev-standalone --help", { stdio: "ignore" });
|
|
32515
|
+
bin = "adhdev-standalone";
|
|
32516
|
+
} catch {
|
|
32517
|
+
}
|
|
32518
|
+
const spawnArgs = bin === "npx" ? npxArgs : args;
|
|
32519
|
+
const child = spawn3(bin, spawnArgs, {
|
|
32520
|
+
stdio: "inherit",
|
|
32521
|
+
shell: process.platform === "win32"
|
|
32522
|
+
});
|
|
32523
|
+
child.on("error", (err) => {
|
|
32524
|
+
console.error(import_chalk5.default.red(`
|
|
32525
|
+
\u2717 Failed to start standalone server: ${err.message}`));
|
|
32526
|
+
});
|
|
32527
|
+
});
|
|
32505
32528
|
program2.command("daemon:status").description("Check ADHDev Daemon status").action(async () => {
|
|
32506
32529
|
const { isDaemonRunning: isDaemonRunning2 } = await Promise.resolve().then(() => (init_adhdev_daemon(), adhdev_daemon_exports));
|
|
32507
32530
|
if (isDaemonRunning2()) {
|
|
@@ -33671,6 +33694,7 @@ if (process.argv.length <= 2) {
|
|
|
33671
33694
|
console.log();
|
|
33672
33695
|
console.log(import_chalk7.default.gray(" Quick start:"));
|
|
33673
33696
|
console.log(import_chalk7.default.gray(" adhdev daemon \u2014 Start unified daemon (Required)"));
|
|
33697
|
+
console.log(import_chalk7.default.gray(" adhdev standalone \u2014 Start standalone local dashboard & daemon"));
|
|
33674
33698
|
console.log(import_chalk7.default.gray(" adhdev launch cursor \u2014 Launch IDE with CDP (e.g. cursor, windsurf)"));
|
|
33675
33699
|
console.log(import_chalk7.default.gray(" adhdev launch claude \u2014 Launch CLI agent (e.g. gemini, claude)"));
|
|
33676
33700
|
console.log(import_chalk7.default.gray(" adhdev setup \u2014 First-time setup & configuration"));
|