@oh-my-pi/pi-utils 13.16.0 → 13.16.1

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/package.json +1 -1
  2. package/src/dirs.ts +5 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-utils",
4
- "version": "13.16.0",
4
+ "version": "13.16.1",
5
5
  "description": "Shared utilities for pi packages",
6
6
  "homepage": "https://github.com/can1357/oh-my-pi",
7
7
  "author": "Can Boluk",
package/src/dirs.ts CHANGED
@@ -325,6 +325,11 @@ export function getModelDbPath(agentDir?: string): string {
325
325
  return dirs.agentSubdir(agentDir, "models.db", "data");
326
326
  }
327
327
 
328
+ /** Get the directory path for the shared search DB state (~/.omp/agent/search-db). */
329
+ export function getSearchDbDir(agentDir?: string): string {
330
+ return dirs.agentSubdir(agentDir, "search-db", "data");
331
+ }
332
+
328
333
  /** Get the sessions directory (~/.omp/agent/sessions). */
329
334
  export function getSessionsDir(agentDir?: string): string {
330
335
  return dirs.agentSubdir(agentDir, "sessions", "data");