adhdev 0.1.28 → 0.1.29

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -984,7 +984,7 @@ var init_gemini_cli = __esm({
984
984
  startupBuffer = "";
985
985
  startupDialogDismissed = false;
986
986
  constructor(workingDir) {
987
- this.workingDir = workingDir;
987
+ this.workingDir = workingDir.startsWith("~") ? workingDir.replace(/^~/, os3.homedir()) : workingDir;
988
988
  }
989
989
  setOnStatusChange(callback) {
990
990
  this.onStatusChange = callback;
@@ -1006,7 +1006,7 @@ var init_gemini_cli = __esm({
1006
1006
  name: "xterm-256color",
1007
1007
  cols: 120,
1008
1008
  rows: 40,
1009
- cwd: this.workingDir,
1009
+ cwd: this.workingDir.startsWith("~") ? this.workingDir.replace(/^~/, os3.homedir()) : this.workingDir,
1010
1010
  env: {
1011
1011
  ...process.env
1012
1012
  }
@@ -5002,15 +5002,16 @@ var init_adhdev_daemon = __esm({
5002
5002
  }
5003
5003
  }
5004
5004
  async startCliSession(cliType, workingDir) {
5005
+ const resolvedDir = workingDir.startsWith("~") ? workingDir.replace(/^~/, os8.homedir()) : workingDir;
5005
5006
  const cliInfo = await detectCLI(cliType);
5006
5007
  if (!cliInfo) throw new Error(`${cliType} not found`);
5007
- const key = this.getCliKey(cliType, workingDir);
5008
+ const key = this.getCliKey(cliType, resolvedDir);
5008
5009
  if (this.adapters.has(key)) {
5009
- console.log(import_chalk2.default.yellow(` \u26A1 CLI ${cliType} already running in ${workingDir}`));
5010
+ console.log(import_chalk2.default.yellow(` \u26A1 CLI ${cliType} already running in ${resolvedDir}`));
5010
5011
  return;
5011
5012
  }
5012
- console.log(import_chalk2.default.yellow(` \u26A1 Starting CLI ${cliType} in ${workingDir}...`));
5013
- const adapter = this.createAdapter(cliType, workingDir);
5013
+ console.log(import_chalk2.default.yellow(` \u26A1 Starting CLI ${cliType} in ${resolvedDir}...`));
5014
+ const adapter = this.createAdapter(cliType, resolvedDir);
5014
5015
  await adapter.spawn();
5015
5016
  if (this.bridge && typeof adapter.setBridge === "function") {
5016
5017
  adapter.setBridge(this.bridge);
@@ -5018,7 +5019,7 @@ var init_adhdev_daemon = __esm({
5018
5019
  adapter.setOnStatusChange(() => this.sendUnifiedStatusReport());
5019
5020
  this.adapters.set(key, adapter);
5020
5021
  this.lastAgentStatus.set(key, "idle");
5021
- console.log(import_chalk2.default.green(` \u2713 CLI started: ${cliInfo.displayName} v${cliInfo.version || "unknown"} in ${workingDir}`));
5022
+ console.log(import_chalk2.default.green(` \u2713 CLI started: ${cliInfo.displayName} v${cliInfo.version || "unknown"} in ${resolvedDir}`));
5022
5023
  this.sendUnifiedStatusReport();
5023
5024
  }
5024
5025
  async stopCliSession(key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adhdev",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "ADHDev CLI — Detect, install and configure your IDE + AI agent extensions",
5
5
  "main": "dist/index.js",
6
6
  "bin": {