adhdev 0.6.37 → 0.6.40
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 +27 -12
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -31270,7 +31270,7 @@ var init_adhdev_daemon = __esm({
|
|
|
31270
31270
|
fs11 = __toESM(require("fs"));
|
|
31271
31271
|
path14 = __toESM(require("path"));
|
|
31272
31272
|
import_chalk2 = __toESM(require("chalk"));
|
|
31273
|
-
pkgVersion = "0.6.
|
|
31273
|
+
pkgVersion = "0.6.40";
|
|
31274
31274
|
if (pkgVersion === "unknown") {
|
|
31275
31275
|
try {
|
|
31276
31276
|
const possiblePaths = [
|
|
@@ -32488,6 +32488,10 @@ function registerSetupCommands(program2, providerLoader) {
|
|
|
32488
32488
|
|
|
32489
32489
|
// src/cli/daemon-commands.ts
|
|
32490
32490
|
var import_chalk5 = __toESM(require("chalk"));
|
|
32491
|
+
function hideCommand(command) {
|
|
32492
|
+
command.hideHelp?.();
|
|
32493
|
+
return command;
|
|
32494
|
+
}
|
|
32491
32495
|
function registerDaemonCommands(program2, pkgVersion3) {
|
|
32492
32496
|
program2.command("daemon").description("\u{1F680} Start ADHDev Daemon \u2014 unified hub for IDE monitoring, agent management, and remote control").option("-p, --port <port>", "Local WS server port", "19222").option("--server <url>", "Override server URL for testing").option("--dev", "Enable Dev Mode \u2014 HTTP API on :19280 for script debugging").action(async (options) => {
|
|
32493
32497
|
const { AdhdevDaemon: AdhdevDaemon2 } = await Promise.resolve().then(() => (init_adhdev_daemon(), adhdev_daemon_exports));
|
|
@@ -32514,6 +32518,8 @@ function registerDaemonCommands(program2, pkgVersion3) {
|
|
|
32514
32518
|
execSync7("adhdev-standalone --help", { stdio: "ignore" });
|
|
32515
32519
|
bin = "adhdev-standalone";
|
|
32516
32520
|
} catch {
|
|
32521
|
+
console.log(import_chalk5.default.gray(" Standalone server package not found locally."));
|
|
32522
|
+
console.log(import_chalk5.default.gray(" Downloading and running via npx (this may take a moment)..."));
|
|
32517
32523
|
}
|
|
32518
32524
|
const spawnArgs = bin === "npx" ? npxArgs : args;
|
|
32519
32525
|
const child = spawn3(bin, spawnArgs, {
|
|
@@ -32525,7 +32531,7 @@ function registerDaemonCommands(program2, pkgVersion3) {
|
|
|
32525
32531
|
\u2717 Failed to start standalone server: ${err.message}`));
|
|
32526
32532
|
});
|
|
32527
32533
|
});
|
|
32528
|
-
program2.command("daemon:status").description("Check ADHDev Daemon status").action(async () => {
|
|
32534
|
+
hideCommand(program2.command("daemon:status").description("Check ADHDev Daemon status").action(async () => {
|
|
32529
32535
|
const { isDaemonRunning: isDaemonRunning2 } = await Promise.resolve().then(() => (init_adhdev_daemon(), adhdev_daemon_exports));
|
|
32530
32536
|
if (isDaemonRunning2()) {
|
|
32531
32537
|
console.log(import_chalk5.default.green(`
|
|
@@ -32537,8 +32543,8 @@ function registerDaemonCommands(program2, pkgVersion3) {
|
|
|
32537
32543
|
console.log(import_chalk5.default.gray(` Start with: adhdev daemon
|
|
32538
32544
|
`));
|
|
32539
32545
|
}
|
|
32540
|
-
});
|
|
32541
|
-
program2.command("daemon:stop").description("Stop ADHDev Daemon").action(async () => {
|
|
32546
|
+
}));
|
|
32547
|
+
hideCommand(program2.command("daemon:stop").description("Stop ADHDev Daemon").action(async () => {
|
|
32542
32548
|
const { stopDaemon: stopDaemon2 } = await Promise.resolve().then(() => (init_adhdev_daemon(), adhdev_daemon_exports));
|
|
32543
32549
|
if (stopDaemon2()) {
|
|
32544
32550
|
console.log(import_chalk5.default.green(`
|
|
@@ -32549,8 +32555,8 @@ function registerDaemonCommands(program2, pkgVersion3) {
|
|
|
32549
32555
|
\u2717 No running daemon found.
|
|
32550
32556
|
`));
|
|
32551
32557
|
}
|
|
32552
|
-
});
|
|
32553
|
-
program2.command("daemon:restart").description("Restart ADHDev Daemon (stop \u2192 start)").option("-p, --port <port>", "Local WS server port", "19222").option("--server <url>", "Override server URL").option("--dev", "Enable Dev Mode").action(async (options) => {
|
|
32558
|
+
}));
|
|
32559
|
+
hideCommand(program2.command("daemon:restart").description("Restart ADHDev Daemon (stop \u2192 start)").option("-p, --port <port>", "Local WS server port", "19222").option("--server <url>", "Override server URL").option("--dev", "Enable Dev Mode").action(async (options) => {
|
|
32554
32560
|
const { stopDaemon: stopDaemon2, isDaemonRunning: isDaemonRunning2 } = await Promise.resolve().then(() => (init_adhdev_daemon(), adhdev_daemon_exports));
|
|
32555
32561
|
const { spawn: spawn3 } = await import("child_process");
|
|
32556
32562
|
if (isDaemonRunning2()) {
|
|
@@ -32577,8 +32583,8 @@ function registerDaemonCommands(program2, pkgVersion3) {
|
|
|
32577
32583
|
`));
|
|
32578
32584
|
process.exit(1);
|
|
32579
32585
|
}
|
|
32580
|
-
});
|
|
32581
|
-
program2.command("daemon:upgrade").description("Upgrade ADHDev to latest version and restart daemon").option("--no-restart", "Upgrade only, skip daemon restart").action(async (options) => {
|
|
32586
|
+
}));
|
|
32587
|
+
hideCommand(program2.command("daemon:upgrade").description("Upgrade ADHDev to latest version and restart daemon").option("--no-restart", "Upgrade only, skip daemon restart").action(async (options) => {
|
|
32582
32588
|
const { isDaemonRunning: isDaemonRunning2, stopDaemon: stopDaemon2 } = await Promise.resolve().then(() => (init_adhdev_daemon(), adhdev_daemon_exports));
|
|
32583
32589
|
const { execSync: execSync7, spawn: spawn3 } = await import("child_process");
|
|
32584
32590
|
const fsMod = await import("fs");
|
|
@@ -32655,7 +32661,7 @@ function registerDaemonCommands(program2, pkgVersion3) {
|
|
|
32655
32661
|
} else {
|
|
32656
32662
|
console.log(import_chalk5.default.green("\n \u2713 Upgrade complete (daemon not restarted)\n"));
|
|
32657
32663
|
}
|
|
32658
|
-
});
|
|
32664
|
+
}));
|
|
32659
32665
|
program2.command("update").description("\u{1F504} Update ADHDev to latest version and restart daemon (alias for daemon:upgrade)").option("--no-restart", "Upgrade only, skip daemon restart").action(async (options) => {
|
|
32660
32666
|
process.argv = [process.argv[0], process.argv[1], "daemon:upgrade", ...options.restart === false ? ["--no-restart"] : []];
|
|
32661
32667
|
await program2.parseAsync(process.argv);
|
|
@@ -32665,8 +32671,12 @@ function registerDaemonCommands(program2, pkgVersion3) {
|
|
|
32665
32671
|
// src/cli/provider-commands.ts
|
|
32666
32672
|
var import_chalk6 = __toESM(require("chalk"));
|
|
32667
32673
|
init_cdp_utils();
|
|
32674
|
+
function hideCommand2(command) {
|
|
32675
|
+
command.hideHelp?.();
|
|
32676
|
+
return command;
|
|
32677
|
+
}
|
|
32668
32678
|
function registerProviderCommands(program2) {
|
|
32669
|
-
const provider = program2.command("provider").description("\u{1F50C} Provider management \u2014 list, test, reload providers");
|
|
32679
|
+
const provider = hideCommand2(program2.command("provider").description("\u{1F50C} Provider management \u2014 list, test, reload providers"));
|
|
32670
32680
|
provider.command("list").description("List all loaded providers").option("-j, --json", "Output raw JSON").action(async (options) => {
|
|
32671
32681
|
try {
|
|
32672
32682
|
const { ProviderLoader: ProviderLoader2 } = await Promise.resolve().then(() => (init_src(), src_exports));
|
|
@@ -33447,7 +33457,7 @@ function registerProviderCommands(program2) {
|
|
|
33447
33457
|
});
|
|
33448
33458
|
}
|
|
33449
33459
|
function registerCdpCommands(program2) {
|
|
33450
|
-
const cdp = program2.command("cdp").description("\u{1F50D} CDP debugging tools \u2014 analyze IDE DOM for script development");
|
|
33460
|
+
const cdp = hideCommand2(program2.command("cdp").description("\u{1F50D} CDP debugging tools \u2014 analyze IDE DOM for script development"));
|
|
33451
33461
|
cdp.command("debug").description("Analyze IDE AI panel \u2014 find inputs, buttons, textareas, iframes").option("-p, --port <port>", "CDP port (direct mode)", "9222").option("-d, --daemon", "Use running daemon instead of direct CDP").option("--session <id>", "Agent webview session ID").option("-j, --json", "Output raw JSON").action(async (options) => {
|
|
33452
33462
|
try {
|
|
33453
33463
|
let result;
|
|
@@ -33693,12 +33703,17 @@ if (process.argv.length <= 2) {
|
|
|
33693
33703
|
program.outputHelp();
|
|
33694
33704
|
console.log();
|
|
33695
33705
|
console.log(import_chalk7.default.gray(" Quick start:"));
|
|
33706
|
+
console.log(import_chalk7.default.gray(" adhdev setup \u2014 First-time setup & login"));
|
|
33696
33707
|
console.log(import_chalk7.default.gray(" adhdev daemon \u2014 Start unified daemon (Required)"));
|
|
33697
33708
|
console.log(import_chalk7.default.gray(" adhdev standalone \u2014 Start standalone local dashboard & daemon"));
|
|
33698
33709
|
console.log(import_chalk7.default.gray(" adhdev launch cursor \u2014 Launch IDE with CDP (e.g. cursor, windsurf)"));
|
|
33699
33710
|
console.log(import_chalk7.default.gray(" adhdev launch claude \u2014 Launch CLI agent (e.g. gemini, claude)"));
|
|
33700
|
-
console.log(import_chalk7.default.gray(" adhdev setup \u2014 First-time setup & configuration"));
|
|
33701
33711
|
console.log(import_chalk7.default.gray(" adhdev status \u2014 Check current setup"));
|
|
33712
|
+
console.log(import_chalk7.default.gray(" adhdev update \u2014 Upgrade to latest version"));
|
|
33713
|
+
console.log();
|
|
33714
|
+
console.log(import_chalk7.default.gray(" Advanced tools:"));
|
|
33715
|
+
console.log(import_chalk7.default.gray(" adhdev provider ... \u2014 Provider development commands"));
|
|
33716
|
+
console.log(import_chalk7.default.gray(" adhdev cdp ... \u2014 CDP debugging tools"));
|
|
33702
33717
|
console.log();
|
|
33703
33718
|
} else {
|
|
33704
33719
|
program.parseAsync(process.argv).catch((err) => {
|