adhdev 0.1.13 → 0.1.15

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 +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -153,7 +153,10 @@ function checkPathExists(paths) {
153
153
  for (const p of paths) {
154
154
  if (p.includes("*")) {
155
155
  const home = (0, import_os.homedir)();
156
- const resolved = p.replace(/^C:\\\\Users\\\\\*/, home.replace(/\//g, "\\"));
156
+ const starIdx = p.indexOf("*");
157
+ const suffix = p.substring(starIdx + 1);
158
+ const homeNormalized = home.replace(/\//g, "\\");
159
+ const resolved = homeNormalized + suffix;
157
160
  if ((0, import_fs.existsSync)(resolved)) return resolved;
158
161
  } else {
159
162
  if ((0, import_fs.existsSync)(p)) return p;
@@ -1333,8 +1336,12 @@ async function launchLinux(ide, port, workspace, newWindow) {
1333
1336
  }
1334
1337
 
1335
1338
  // src/index.ts
1339
+ var import_module = require("module");
1340
+ var import_meta = {};
1341
+ var require2 = (0, import_module.createRequire)(import_meta.url);
1342
+ var pkg = require2("../package.json");
1336
1343
  var program = new import_commander.Command();
1337
- program.name("adhdev").description("\u{1F309} ADHDev \u2014 Agent Dashboard Hub for your IDE").version("0.1.9");
1344
+ program.name("adhdev").description("\u{1F309} ADHDev \u2014 Agent Dashboard Hub for your IDE").version(pkg.version);
1338
1345
  program.command("setup", { isDefault: true }).description("Run the interactive setup wizard").option("-f, --force", "Force re-run setup even if already configured").action(async (options) => {
1339
1346
  await runWizard({ force: options.force });
1340
1347
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adhdev",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "ADHDev CLI — Detect, install and configure your IDE + AI agent extensions",
5
5
  "main": "dist/index.js",
6
6
  "bin": {