@oh-my-pi/pi-utils 17.2.0 → 17.2.2

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,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [17.2.1] - 2026-07-30
6
+
7
+ ### Added
8
+
9
+ - Added a `postmortem.quit` configuration option to safely handle shutdown paths when the terminal output has already disconnected.
10
+ - Added project-keyed OMP security-state directory helpers under the user state root.
11
+
5
12
  ## [17.1.8] - 2026-07-28
6
13
 
7
14
  ### Added
@@ -199,6 +199,10 @@ export declare function getAutoresearchProjectDir(encodedProject: string): strin
199
199
  export declare function getAutoresearchDbPath(encodedProject: string): string;
200
200
  /** Get the per-run artifact directory (~/.omp/autoresearch/<encoded-project>/runs/<runId>). */
201
201
  export declare function getAutoresearchRunDir(encodedProject: string, runId: number): string;
202
+ /** Get the security-analysis state directory (~/.omp/security). */
203
+ export declare function getSecurityDir(): string;
204
+ /** Get one project's security-analysis state directory (~/.omp/security/<project-key>). */
205
+ export declare function getSecurityProjectDir(projectKey: string): string;
202
206
  /** Get the path to agent.db (SQLite database for settings and auth storage). */
203
207
  export declare function getAgentDbPath(agentDir?: string): string;
204
208
  /** Get the last-seen-changelog-version marker file (~/.omp/agent/last-changelog-version). */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-utils",
4
- "version": "17.2.0",
4
+ "version": "17.2.2",
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": "17.2.0",
34
+ "@oh-my-pi/pi-natives": "17.2.2",
35
35
  "handlebars": "^4.7.9",
36
36
  "winston": "^3.19.0",
37
37
  "winston-daily-rotate-file": "5.0.0"
package/src/dirs.ts CHANGED
@@ -721,6 +721,16 @@ export function getAutoresearchRunDir(encodedProject: string, runId: number): st
721
721
  return path.join(getAutoresearchProjectDir(encodedProject), "runs", String(runId).padStart(4, "0"));
722
722
  }
723
723
 
724
+ /** Get the security-analysis state directory (~/.omp/security). */
725
+ export function getSecurityDir(): string {
726
+ return dirs.rootSubdir("security", "state");
727
+ }
728
+
729
+ /** Get one project's security-analysis state directory (~/.omp/security/<project-key>). */
730
+ export function getSecurityProjectDir(projectKey: string): string {
731
+ return path.join(getSecurityDir(), projectKey);
732
+ }
733
+
724
734
  // =============================================================================
725
735
  // Agent subdirectories (~/.omp/agent/*)
726
736
  // =============================================================================