@oh-my-pi/pi-utils 18.1.6 → 18.1.8
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 +6 -0
- package/dist/types/dirs.d.ts +2 -0
- package/package.json +2 -2
- package/src/dirs.ts +5 -0
package/CHANGELOG.md
CHANGED
package/dist/types/dirs.d.ts
CHANGED
|
@@ -273,6 +273,8 @@ export declare function getCrashLogPath(agentDir?: string): string;
|
|
|
273
273
|
export declare function getDebugLogPath(agentDir?: string): string;
|
|
274
274
|
/** Get the secret placeholder key path (~/.omp/agent/secret-placeholder.key; XDG default: $XDG_STATE_HOME/omp/secret-placeholder.key). Adopts a legacy key on first XDG resolution. */
|
|
275
275
|
export declare function getSecretPlaceholderKeyPath(): string;
|
|
276
|
+
/** Directory holding the per-model tiny-worker sockets and logs (~/.omp/run/tiny; XDG default: $XDG_STATE_HOME/omp/run/tiny). */
|
|
277
|
+
export declare function getTinyWorkerRuntimeDir(): string;
|
|
276
278
|
/** Root directory containing every per-project daemon runtime scope (~/.omp/run/daemons; XDG default: $XDG_STATE_HOME/omp/run/daemons). */
|
|
277
279
|
export declare function getDaemonRuntimeRoot(): string;
|
|
278
280
|
/** Get the daemon runtime directory for a project (~/.omp/run/daemons/<hash>; XDG default: $XDG_STATE_HOME/omp/run/daemons/<hash>). */
|
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.1.
|
|
4
|
+
"version": "18.1.8",
|
|
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": "oxfmt --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts'"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oh-my-pi/pi-natives": "18.1.
|
|
34
|
+
"@oh-my-pi/pi-natives": "18.1.8"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/bun": "^1.3.14"
|
package/src/dirs.ts
CHANGED
|
@@ -949,6 +949,11 @@ export function getSecretPlaceholderKeyPath(): string {
|
|
|
949
949
|
return keyPath;
|
|
950
950
|
}
|
|
951
951
|
|
|
952
|
+
/** Directory holding the per-model tiny-worker sockets and logs (~/.omp/run/tiny; XDG default: $XDG_STATE_HOME/omp/run/tiny). */
|
|
953
|
+
export function getTinyWorkerRuntimeDir(): string {
|
|
954
|
+
return dirs.rootSubdir(path.join("run", "tiny"), "state");
|
|
955
|
+
}
|
|
956
|
+
|
|
952
957
|
/** Root directory containing every per-project daemon runtime scope (~/.omp/run/daemons; XDG default: $XDG_STATE_HOME/omp/run/daemons). */
|
|
953
958
|
export function getDaemonRuntimeRoot(): string {
|
|
954
959
|
return dirs.rootSubdir(path.join("run", "daemons"), "state");
|