@narumitw/pi-statusline 0.49.4 → 0.49.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-statusline",
3
- "version": "0.49.4",
3
+ "version": "0.49.5",
4
4
  "description": "Pi extension that replaces the footer with an information-rich statusline.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,7 +1,6 @@
1
1
  import { existsSync, readFileSync } from "node:fs";
2
2
  import { dirname, isAbsolute, join, resolve } from "node:path";
3
- import process from "node:process";
4
- import type { Theme, ThemeColor } from "@earendil-works/pi-coding-agent";
3
+ import { getAgentDir, type Theme, type ThemeColor } from "@earendil-works/pi-coding-agent";
5
4
  import { wrapTextWithAnsi } from "@earendil-works/pi-tui";
6
5
  import { powerlineExtensionSeparator } from "./powerline.js";
7
6
  import { DEFAULT_EXTENSION_STATUS_ICONS } from "./settings.js";
@@ -194,10 +193,9 @@ export function readInstalledExtensionPackages(cwd: string): InstalledExtensionP
194
193
  }
195
194
 
196
195
  function extensionSettingsFiles(cwd: string): string[] {
197
- return [
198
- join(process.env.HOME ?? "", ".pi", "agent", "settings.json"),
199
- join(cwd, ".pi", "settings.json"),
200
- ].filter((file) => existsSync(file));
196
+ return [join(getAgentDir(), "settings.json"), join(cwd, ".pi", "settings.json")].filter((file) =>
197
+ existsSync(file),
198
+ );
201
199
  }
202
200
 
203
201
  export function findDuplicateExtensions(