@wairon/cli 5.1.1-dev.58 → 5.1.1-dev.59

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 CHANGED
@@ -65,7 +65,7 @@ var init_defaults = __esm({
65
65
  copilot: ".github/prompts",
66
66
  codex: ".codex/agents"
67
67
  };
68
- WAIRON_VERSION = "5.1.1-dev.58";
68
+ WAIRON_VERSION = "5.1.1-dev.59";
69
69
  GITHUB_REPO = "SYW-Apps/Waffle-AIron";
70
70
  SUPPORTED_ALIASES = ["wai"];
71
71
  SCAN_EXCLUDE_DIRS = /* @__PURE__ */ new Set([
@@ -30871,9 +30871,6 @@ function setDisabledAliases(disabled) {
30871
30871
  config.disabledAliases = disabled;
30872
30872
  saveUserConfig(config);
30873
30873
  }
30874
- function getInstallDir() {
30875
- return loadUserConfig().installDir;
30876
- }
30877
30874
 
30878
30875
  // src/commands/aliases.ts
30879
30876
  async function runAliasesList() {
@@ -30909,11 +30906,11 @@ async function runAliasesList() {
30909
30906
  console.log(` ${import_chalk2.default.bold(alias.padEnd(16))} ${statusLabel}${note}`);
30910
30907
  }
30911
30908
  logger.blank();
30912
- if (!isNpm && installDir) {
30909
+ if (installDir) {
30913
30910
  logger.info(`Install directory: ${installDir}`);
30914
- } else if (!isNpm && !installDir) {
30915
- logger.warn("Install directory unknown. Run the install script to set it, or set it manually:");
30916
- logger.info(" wairon aliases enable <name> (will attempt to derive from current binary)");
30911
+ } else {
30912
+ logger.info("No install directory of ours to manage \u2014 an npm install registers these commands");
30913
+ logger.info("itself, through package.json's bin entries.");
30917
30914
  }
30918
30915
  }
30919
30916
  async function runAliasesEnable(alias) {
@@ -30949,7 +30946,7 @@ async function runAliasesDisable(alias) {
30949
30946
  logger.success(`Alias "${alias}" disabled. It will not be re-created on future updates.`);
30950
30947
  }
30951
30948
  async function enableBinaryAlias(alias) {
30952
- const installDir = resolveInstallDir(true);
30949
+ const installDir = resolveInstallDir();
30953
30950
  if (!installDir) {
30954
30951
  logger.error("Cannot determine install directory. Is wairon installed as a binary?");
30955
30952
  process.exit(1);
@@ -30970,7 +30967,7 @@ async function enableBinaryAlias(alias) {
30970
30967
  logger.success(`Created alias: ${filePath}`);
30971
30968
  }
30972
30969
  async function disableBinaryAlias(alias) {
30973
- const installDir = resolveInstallDir(false);
30970
+ const installDir = resolveInstallDir();
30974
30971
  if (!installDir) return;
30975
30972
  const filePath = aliasFilePath(alias, installDir);
30976
30973
  if (!filePath || !fs2.existsSync(filePath)) {
@@ -31018,15 +31015,8 @@ function aliasFilePath(alias, installDir) {
31018
31015
  const ext = process.platform === "win32" ? ".cmd" : "";
31019
31016
  return path3.join(installDir, alias + ext);
31020
31017
  }
31021
- function resolveInstallDir(warnIfMissing = false) {
31022
- if (isPkgBinary()) {
31023
- return path3.dirname(process.execPath);
31024
- }
31025
- const stored = getInstallDir();
31026
- if (!stored && warnIfMissing) {
31027
- logger.warn("Install directory not recorded in ~/.wairon/config.json");
31028
- }
31029
- return stored;
31018
+ function resolveInstallDir() {
31019
+ return isPkgBinary() ? path3.dirname(process.execPath) : void 0;
31030
31020
  }
31031
31021
  function detectConflict(alias, installDir) {
31032
31022
  try {