@oh-my-pi/pi-utils 15.5.15 → 15.6.0
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/types/cli.d.ts +3 -3
- package/dist/types/dirs.d.ts +2 -0
- package/package.json +2 -2
- package/src/dirs.ts +5 -0
package/dist/types/cli.d.ts
CHANGED
|
@@ -31,10 +31,10 @@ interface ArgInput {
|
|
|
31
31
|
/** Builders that match the `Flags.*()` / `Args.*()` API from oclif. */
|
|
32
32
|
export declare const Flags: {
|
|
33
33
|
string<T extends FlagInput>(opts?: T): FlagDescriptor<"string"> & T;
|
|
34
|
-
boolean<
|
|
35
|
-
integer<
|
|
34
|
+
boolean<T extends FlagInput>(opts?: T): FlagDescriptor<"boolean"> & T;
|
|
35
|
+
integer<T extends FlagInput & {
|
|
36
36
|
default?: number;
|
|
37
|
-
}>(opts?:
|
|
37
|
+
}>(opts?: T): FlagDescriptor<"integer"> & T;
|
|
38
38
|
};
|
|
39
39
|
export declare const Args: {
|
|
40
40
|
string<T extends ArgInput>(opts?: T): ArgDescriptor & T;
|
package/dist/types/dirs.d.ts
CHANGED
|
@@ -113,6 +113,8 @@ export declare function getAgentDbPath(agentDir?: string): string;
|
|
|
113
113
|
export declare function getHistoryDbPath(agentDir?: string): string;
|
|
114
114
|
/** Get the path to models.db (model cache database). */
|
|
115
115
|
export declare function getModelDbPath(agentDir?: string): string;
|
|
116
|
+
/** Get the tiny title model cache directory (~/.omp/agent/cache/tiny-models). */
|
|
117
|
+
export declare function getTinyModelsCacheDir(agentDir?: string): string;
|
|
116
118
|
/** Get the sessions directory (~/.omp/agent/sessions). */
|
|
117
119
|
export declare function getSessionsDir(agentDir?: string): string;
|
|
118
120
|
/** Get the content-addressed blob store directory (~/.omp/agent/blobs). */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-utils",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.6.0",
|
|
5
5
|
"description": "Shared utilities for pi packages",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"fmt": "biome format --write ."
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oh-my-pi/pi-natives": "15.
|
|
34
|
+
"@oh-my-pi/pi-natives": "15.6.0",
|
|
35
35
|
"beautiful-mermaid": "^1.1.3",
|
|
36
36
|
"handlebars": "^4.7.9",
|
|
37
37
|
"winston": "^3.19.0",
|
package/src/dirs.ts
CHANGED
|
@@ -392,6 +392,11 @@ export function getModelDbPath(agentDir?: string): string {
|
|
|
392
392
|
return dirs.agentSubdir(agentDir, "models.db", "data");
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
+
/** Get the tiny title model cache directory (~/.omp/agent/cache/tiny-models). */
|
|
396
|
+
export function getTinyModelsCacheDir(agentDir?: string): string {
|
|
397
|
+
return dirs.agentSubdir(agentDir, path.join("cache", "tiny-models"), "cache");
|
|
398
|
+
}
|
|
399
|
+
|
|
395
400
|
/** Get the sessions directory (~/.omp/agent/sessions). */
|
|
396
401
|
export function getSessionsDir(agentDir?: string): string {
|
|
397
402
|
return dirs.agentSubdir(agentDir, "sessions", "data");
|