adhdev 0.8.0 → 0.8.1
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 +44 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +37 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39668,6 +39668,15 @@ var init_poller = __esm({
|
|
|
39668
39668
|
cdpManagerKey: ideType,
|
|
39669
39669
|
instanceKey: `ide:${ideType}`
|
|
39670
39670
|
});
|
|
39671
|
+
const activeSessionId2 = agentStreamManager.getActiveSessionId(parentSessionId);
|
|
39672
|
+
if (!activeSessionId2 || enabledExtTypes.size === 1) {
|
|
39673
|
+
await agentStreamManager.setActiveSession(
|
|
39674
|
+
cdp,
|
|
39675
|
+
parentSessionId,
|
|
39676
|
+
extInstance.getInstanceId()
|
|
39677
|
+
);
|
|
39678
|
+
LOG.info("AgentStream", `Auto-activated enabled extension: ${extType} (${ideType})`);
|
|
39679
|
+
}
|
|
39671
39680
|
}
|
|
39672
39681
|
LOG.info("AgentStream", `Extension added: ${extType} (enabled for ${ideType})`);
|
|
39673
39682
|
}
|
|
@@ -47564,7 +47573,7 @@ var init_adhdev_daemon = __esm({
|
|
|
47564
47573
|
fs17 = __toESM(require("fs"));
|
|
47565
47574
|
path20 = __toESM(require("path"));
|
|
47566
47575
|
import_chalk2 = __toESM(require("chalk"));
|
|
47567
|
-
pkgVersion = "0.8.
|
|
47576
|
+
pkgVersion = "0.8.1";
|
|
47568
47577
|
if (pkgVersion === "unknown") {
|
|
47569
47578
|
try {
|
|
47570
47579
|
const possiblePaths = [
|
|
@@ -48070,9 +48079,13 @@ ${import_chalk3.default.cyan("\u2551")} ${import_chalk3.default.gray("Agent Das
|
|
|
48070
48079
|
${import_chalk3.default.cyan("\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D")}
|
|
48071
48080
|
`;
|
|
48072
48081
|
var DIVIDER = import_chalk3.default.gray("\u2500".repeat(44));
|
|
48082
|
+
function hasCloudMachineAuth() {
|
|
48083
|
+
const config2 = loadConfig();
|
|
48084
|
+
return Boolean(config2.machineSecret && config2.machineSecret.trim());
|
|
48085
|
+
}
|
|
48073
48086
|
async function runWizard(options = {}) {
|
|
48074
48087
|
console.log(LOGO);
|
|
48075
|
-
if (isSetupComplete() && !options.force) {
|
|
48088
|
+
if (isSetupComplete() && hasCloudMachineAuth() && !options.force) {
|
|
48076
48089
|
const config2 = loadConfig();
|
|
48077
48090
|
console.log(import_chalk3.default.green("\u2713") + " ADHDev is already configured.");
|
|
48078
48091
|
console.log(import_chalk3.default.gray(` Account: ${config2.userEmail || "not logged in"}`));
|
|
@@ -48137,29 +48150,46 @@ async function checkForUpdate() {
|
|
|
48137
48150
|
async function quickSetup() {
|
|
48138
48151
|
console.log(import_chalk3.default.bold("\n\u{1F680} Quick Setup\n"));
|
|
48139
48152
|
const loginResult = await loginFlow();
|
|
48153
|
+
const setupDate = (/* @__PURE__ */ new Date()).toISOString();
|
|
48140
48154
|
if (!loginResult) {
|
|
48141
|
-
|
|
48155
|
+
updateConfig({
|
|
48156
|
+
selectedIde: "daemon",
|
|
48157
|
+
configuredIdes: ["daemon"],
|
|
48158
|
+
installedExtensions: ["adhdev"],
|
|
48159
|
+
setupCompleted: false,
|
|
48160
|
+
setupDate,
|
|
48161
|
+
userEmail: null,
|
|
48162
|
+
userName: null,
|
|
48163
|
+
machineSecret: null
|
|
48164
|
+
});
|
|
48165
|
+
console.log(import_chalk3.default.yellow("\u26A0 Setup is not complete without login. Run `adhdev setup` after signing in."));
|
|
48142
48166
|
}
|
|
48143
|
-
markSetupComplete(["daemon"], ["adhdev"]);
|
|
48144
48167
|
if (loginResult) {
|
|
48168
|
+
markSetupComplete(["daemon"], ["adhdev"]);
|
|
48145
48169
|
const configUpdate = {
|
|
48146
48170
|
machineSecret: loginResult.machineSecret,
|
|
48147
48171
|
userEmail: loginResult.email,
|
|
48148
48172
|
userName: loginResult.name,
|
|
48173
|
+
setupDate,
|
|
48149
48174
|
...loginResult.registeredMachineId ? { registeredMachineId: loginResult.registeredMachineId } : {}
|
|
48150
48175
|
};
|
|
48151
48176
|
updateConfig(configUpdate);
|
|
48152
48177
|
console.log(import_chalk3.default.green(` \u2713 Machine registered`));
|
|
48153
48178
|
}
|
|
48154
48179
|
await installCliOnly();
|
|
48155
|
-
|
|
48180
|
+
if (loginResult) {
|
|
48181
|
+
await startDaemonFlow();
|
|
48182
|
+
} else {
|
|
48183
|
+
console.log(import_chalk3.default.gray(" Start daemon after login: adhdev setup"));
|
|
48184
|
+
console.log();
|
|
48185
|
+
}
|
|
48156
48186
|
console.log(DIVIDER);
|
|
48157
48187
|
console.log(import_chalk3.default.bold("\n\u{1F389} Setup Complete!\n"));
|
|
48158
48188
|
console.log(` ${import_chalk3.default.bold("User:")} ${loginResult?.email || "not logged in"}`);
|
|
48159
|
-
console.log(` ${import_chalk3.default.bold("Status:")} ${import_chalk3.default.green("Ready to connect")}`);
|
|
48189
|
+
console.log(` ${import_chalk3.default.bold("Status:")} ${loginResult ? import_chalk3.default.green("Ready to connect") : import_chalk3.default.yellow("Login required")}`);
|
|
48160
48190
|
console.log();
|
|
48161
48191
|
console.log(import_chalk3.default.gray(" Next steps:"));
|
|
48162
|
-
console.log(import_chalk3.default.gray("
|
|
48192
|
+
console.log(import_chalk3.default.gray(` ${loginResult ? "adhdev daemon \u2014 Start the main daemon (required for all features)" : "adhdev setup \u2014 Sign in to finish setup and enable the daemon"}`));
|
|
48163
48193
|
console.log(import_chalk3.default.gray(" adhdev launch cursor \u2014 Launch Cursor IDE with remote control"));
|
|
48164
48194
|
console.log(import_chalk3.default.gray(" adhdev launch windsurf \u2014 Launch Windsurf IDE with remote control"));
|
|
48165
48195
|
console.log(import_chalk3.default.gray(" adhdev launch gemini \u2014 Start Gemini CLI agent via daemon"));
|