@drakonkat/ai-helper 1.2.16 → 1.2.17

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/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to **`ai-helper` (`aih`)** are documented in this file.
4
4
 
5
5
  ---
6
6
 
7
+ ## [1.2.17] - 2026-11-06
8
+
9
+ ### Fixed
10
+ - Windows: updating Headroom from the TUI or `aih update headroom` no longer fails with "`uv` was not found on PATH". aih now also looks for tools installed with `pip install --user` (`%APPDATA%\Python\Python3XX\Scripts`, and `~/Library/Python/3.X/bin` on macOS), where it bootstraps uv.
11
+
12
+ ---
13
+
7
14
  ## [1.2.16] - 2026-10-28
8
15
 
9
16
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drakonkat/ai-helper",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "description": "Zero-config background service manager, auto-discovery daemon & dashboard launcher for AI agent ecosystems (pxpipe, ocx, agentmemory, headroom)",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -8,16 +8,22 @@ import { delimiter, join } from "node:path";
8
8
  */
9
9
  export function toolSearchDirectories({ platform = process.platform, env = process.env, home = homedir(), exists = existsSync, list = readdirSync } = {}) {
10
10
  const dirs = [join(home, ".local", "bin")];
11
- const pythons = root => {
11
+ const versions = (root, pattern) => {
12
12
  try {
13
- return list(root).filter(name => /^Python3\d+$/i.test(name)).sort().reverse().flatMap(name => [join(root, name), join(root, name, "Scripts")]);
13
+ return list(root).filter(name => pattern.test(name)).sort().reverse();
14
14
  } catch { return []; }
15
15
  };
16
+ const pythons = root => versions(root, /^Python3\d+$/i).flatMap(name => [join(root, name), join(root, name, "Scripts")]);
16
17
  if (platform === "win32") {
17
18
  if (env.LOCALAPPDATA) dirs.push(...pythons(join(env.LOCALAPPDATA, "Programs", "Python")));
18
19
  if (env.ProgramFiles) dirs.push(...pythons(env.ProgramFiles));
20
+ // `pip install --user` (how aih bootstraps uv) puts scripts in %APPDATA%\Python\Python3XX\Scripts.
21
+ // Headroom's own updater runs `uv tool upgrade` and fails when uv is not found there.
22
+ if (env.APPDATA) dirs.push(...versions(join(env.APPDATA, "Python"), /^Python3\d+$/i).map(name => join(env.APPDATA, "Python", name, "Scripts")));
19
23
  } else {
20
24
  dirs.push("/opt/homebrew/bin", "/usr/local/bin");
25
+ // macOS framework builds put `pip install --user` scripts in ~/Library/Python/3.X/bin.
26
+ if (platform === "darwin") dirs.push(...versions(join(home, "Library", "Python"), /^3\.\d+$/).map(name => join(home, "Library", "Python", name, "bin")));
21
27
  }
22
28
  return dirs.filter(dir => exists(dir));
23
29
  }