@oh-my-pi/pi-utils 18.0.1 → 18.0.4

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
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [18.0.4] - 2026-08-24
6
+
7
+ ### Added
8
+
9
+ - Exported `getAvatarCacheDir` to resolve the avatar cache directory path.
10
+
5
11
  ## [18.0.1] - 2026-08-23
6
12
 
7
13
  ### Fixed
@@ -189,6 +189,8 @@ export declare function getLegacyPiExtensionCacheDbPath(): string;
189
189
  * operators can isolate or relocate the cache file.
190
190
  */
191
191
  export declare function getAuthBrokerSnapshotCachePath(): string;
192
+ /** Get the commit-author avatar cache directory (~/.omp/cache/avatars). */
193
+ export declare function getAvatarCacheDir(): string;
192
194
  /** Get the local FastEmbed model cache directory (~/.omp/cache/fastembed). */
193
195
  export declare function getFastembedCacheDir(): string;
194
196
  /** Get the on-demand fastembed runtime install root (~/.omp/cache/fastembed-runtime). */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-utils",
4
- "version": "18.0.1",
4
+ "version": "18.0.4",
5
5
  "description": "Shared utilities for pi packages",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Stencil Labs, Inc.",
@@ -31,7 +31,7 @@
31
31
  "fmt": "biome format --write ."
32
32
  },
33
33
  "dependencies": {
34
- "@oh-my-pi/pi-natives": "18.0.1"
34
+ "@oh-my-pi/pi-natives": "18.0.4"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/bun": "^1.3.14"
package/src/dirs.ts CHANGED
@@ -694,6 +694,11 @@ export function getAuthBrokerSnapshotCachePath(): string {
694
694
  return dirs.rootSubdir(path.join("cache", "auth-broker-snapshot.enc"), "cache");
695
695
  }
696
696
 
697
+ /** Get the commit-author avatar cache directory (~/.omp/cache/avatars). */
698
+ export function getAvatarCacheDir(): string {
699
+ return dirs.rootSubdir(path.join("cache", "avatars"), "cache");
700
+ }
701
+
697
702
  /** Get the local FastEmbed model cache directory (~/.omp/cache/fastembed). */
698
703
  export function getFastembedCacheDir(): string {
699
704
  return dirs.rootSubdir(path.join("cache", "fastembed"), "cache");