Merge PR #7048: feat(security): add OMP-native security scan subsystem (@kmccleary3301)

This commit is contained in:
can1357
2026-07-30 17:10:58 +02:00
91 changed files with 8654 additions and 19 deletions
+5
View File
@@ -2,6 +2,11 @@
## [Unreleased]
### Added
- Added a `postmortem.quit` configuration option to safely handle shutdown paths when the terminal output has already disconnected.
- Added project-keyed OMP security-state directory helpers under the user state root.
## [17.1.8] - 2026-07-28
### Added
+10
View File
@@ -721,6 +721,16 @@ export function getAutoresearchRunDir(encodedProject: string, runId: number): st
return path.join(getAutoresearchProjectDir(encodedProject), "runs", String(runId).padStart(4, "0"));
}
/** Get the security-analysis state directory (~/.omp/security). */
export function getSecurityDir(): string {
return dirs.rootSubdir("security", "state");
}
/** Get one project's security-analysis state directory (~/.omp/security/<project-key>). */
export function getSecurityProjectDir(projectKey: string): string {
return path.join(getSecurityDir(), projectKey);
}
// =============================================================================
// Agent subdirectories (~/.omp/agent/*)
// =============================================================================