adhdev 0.6.61 → 0.6.63
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 -11
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +19 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -5359,10 +5359,11 @@ var init_provider_loader = __esm({
|
|
|
5359
5359
|
return this.getProviderDir(this.upstreamDir, category, type);
|
|
5360
5360
|
}
|
|
5361
5361
|
/**
|
|
5362
|
-
|
|
5363
|
-
|
|
5362
|
+
* Canonical builtin directory for a provider.
|
|
5363
|
+
*/
|
|
5364
5364
|
getBuiltinProviderDir(category, type) {
|
|
5365
|
-
|
|
5365
|
+
const builtinRoot = this.getPrimaryBuiltinDir();
|
|
5366
|
+
return builtinRoot ? this.getProviderDir(builtinRoot, category, type) : "";
|
|
5366
5367
|
}
|
|
5367
5368
|
/**
|
|
5368
5369
|
* Find the on-disk directory for a provider by type.
|
|
@@ -41198,7 +41199,7 @@ var init_adhdev_daemon = __esm({
|
|
|
41198
41199
|
fs12 = __toESM(require("fs"));
|
|
41199
41200
|
path14 = __toESM(require("path"));
|
|
41200
41201
|
import_chalk2 = __toESM(require("chalk"));
|
|
41201
|
-
pkgVersion = "0.6.
|
|
41202
|
+
pkgVersion = "0.6.63";
|
|
41202
41203
|
if (pkgVersion === "unknown") {
|
|
41203
41204
|
try {
|
|
41204
41205
|
const possiblePaths = [
|
|
@@ -41910,11 +41911,24 @@ async function installCliOnly() {
|
|
|
41910
41911
|
console.log();
|
|
41911
41912
|
if (currentVersion) {
|
|
41912
41913
|
console.log(import_chalk3.default.green(` \u2713 Currently installed: v${currentVersion}`));
|
|
41914
|
+
let latestVersion = null;
|
|
41915
|
+
try {
|
|
41916
|
+
latestVersion = execSyncLocal("npm show adhdev version", {
|
|
41917
|
+
encoding: "utf-8",
|
|
41918
|
+
timeout: 5e3,
|
|
41919
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
41920
|
+
}).trim();
|
|
41921
|
+
} catch {
|
|
41922
|
+
}
|
|
41923
|
+
if (latestVersion && currentVersion === latestVersion) {
|
|
41924
|
+
console.log(import_chalk3.default.gray(" (Already up to date)"));
|
|
41925
|
+
return;
|
|
41926
|
+
}
|
|
41913
41927
|
if (!isNpx) {
|
|
41914
41928
|
const { doUpdate } = await import_inquirer.default.prompt([{
|
|
41915
41929
|
type: "confirm",
|
|
41916
41930
|
name: "doUpdate",
|
|
41917
|
-
message:
|
|
41931
|
+
message: `Update to latest version${latestVersion ? ` (v${latestVersion})` : ""}?`,
|
|
41918
41932
|
default: true
|
|
41919
41933
|
}]);
|
|
41920
41934
|
if (!doUpdate) return;
|
|
@@ -42106,6 +42120,43 @@ var init_cdp_utils = __esm({
|
|
|
42106
42120
|
}
|
|
42107
42121
|
});
|
|
42108
42122
|
|
|
42123
|
+
// ../web-core/src/constants/supported.ts
|
|
42124
|
+
var supported_exports = {};
|
|
42125
|
+
__export(supported_exports, {
|
|
42126
|
+
SUPPORTED_ACP_COUNT: () => SUPPORTED_ACP_COUNT,
|
|
42127
|
+
SUPPORTED_CLI_AGENTS: () => SUPPORTED_CLI_AGENTS,
|
|
42128
|
+
SUPPORTED_EXTENSIONS: () => SUPPORTED_EXTENSIONS,
|
|
42129
|
+
SUPPORTED_IDES: () => SUPPORTED_IDES
|
|
42130
|
+
});
|
|
42131
|
+
var SUPPORTED_IDES, SUPPORTED_CLI_AGENTS, SUPPORTED_EXTENSIONS, SUPPORTED_ACP_COUNT;
|
|
42132
|
+
var init_supported = __esm({
|
|
42133
|
+
"../web-core/src/constants/supported.ts"() {
|
|
42134
|
+
"use strict";
|
|
42135
|
+
SUPPORTED_IDES = [
|
|
42136
|
+
{ id: "vscode", name: "VS Code", icon: "\u{1F499}" },
|
|
42137
|
+
{ id: "cursor", name: "Cursor", icon: "\u26A1" },
|
|
42138
|
+
{ id: "windsurf", name: "Windsurf", icon: "\u{1F3C4}" },
|
|
42139
|
+
{ id: "antigravity", name: "Antigravity", icon: "\u{1F300}" },
|
|
42140
|
+
{ id: "trae", name: "Trae", icon: "\u{1F52E}" },
|
|
42141
|
+
{ id: "kiro", name: "Kiro", icon: "\u{1F3AF}" },
|
|
42142
|
+
{ id: "pearai", name: "PearAI", icon: "\u{1F350}" },
|
|
42143
|
+
{ id: "vscodium", name: "VSCodium", icon: "\u{1F49A}" }
|
|
42144
|
+
];
|
|
42145
|
+
SUPPORTED_CLI_AGENTS = [
|
|
42146
|
+
{ id: "claude-cli", name: "Claude Code", icon: "\u{1F7E0}" },
|
|
42147
|
+
{ id: "gemini-cli", name: "Gemini CLI", icon: "\u2728" },
|
|
42148
|
+
{ id: "codex-cli", name: "Codex CLI", icon: "\u{1F4E6}" }
|
|
42149
|
+
];
|
|
42150
|
+
SUPPORTED_EXTENSIONS = [
|
|
42151
|
+
{ id: "copilot", name: "GitHub Copilot", icon: "\u{1F916}" },
|
|
42152
|
+
{ id: "cline", name: "Cline", icon: "\u{1F9E0}" },
|
|
42153
|
+
{ id: "roo-code", name: "Roo Code", icon: "\u{1F998}" },
|
|
42154
|
+
{ id: "continue", name: "Continue", icon: "\u25B6\uFE0F" }
|
|
42155
|
+
];
|
|
42156
|
+
SUPPORTED_ACP_COUNT = 35;
|
|
42157
|
+
}
|
|
42158
|
+
});
|
|
42159
|
+
|
|
42109
42160
|
// src/cli/index.ts
|
|
42110
42161
|
var import_commander = require("commander");
|
|
42111
42162
|
var import_chalk7 = __toESM(require("chalk"));
|
|
@@ -43019,15 +43070,16 @@ function registerProviderCommands(program2) {
|
|
|
43019
43070
|
const modelName = options.model;
|
|
43020
43071
|
const reference = options.reference || getDefaultAutoFixReference(providerToFix.category, type, allProviders);
|
|
43021
43072
|
if (!typeArg && agentName === "codex-cli") {
|
|
43022
|
-
const
|
|
43073
|
+
const inquirer3 = (await import("inquirer")).default;
|
|
43074
|
+
const { SUPPORTED_CLI_AGENTS: SUPPORTED_CLI_AGENTS2 } = await Promise.resolve().then(() => (init_supported(), supported_exports));
|
|
43075
|
+
const agentAnswer = await inquirer3.prompt([{
|
|
43023
43076
|
type: "list",
|
|
43024
43077
|
name: "selected",
|
|
43025
43078
|
message: "Select the AI agent to use for auto-fix:",
|
|
43026
|
-
choices:
|
|
43027
|
-
|
|
43028
|
-
|
|
43029
|
-
|
|
43030
|
-
],
|
|
43079
|
+
choices: SUPPORTED_CLI_AGENTS2.map((agent) => ({
|
|
43080
|
+
name: `${agent.icon} ${import_chalk6.default.green(agent.name)}`,
|
|
43081
|
+
value: agent.id
|
|
43082
|
+
})),
|
|
43031
43083
|
default: "codex-cli"
|
|
43032
43084
|
}]);
|
|
43033
43085
|
agentName = agentAnswer.selected;
|