This commit is contained in:
jarek committed 2026-01-17 15:06:14 +01:00
1 parent 62636426bf
commit c185d00dc3
60 files changed
+2830 -918

No files matched your search

@@ -99,6 +99,32 @@ export function isDockhandContainer(imageName: string): boolean {
return imageName.toLowerCase().includes('fnsys/dockhand');
}
/**
* Check if a container is a Hawser agent.
* Official image: ghcr.io/finsys/hawser
*/
export function isHawserContainer(imageName: string): boolean {
const lower = imageName.toLowerCase();
return lower.includes('finsys/hawser') || lower.includes('ghcr.io/finsys/hawser');
}
/**
* System container type - containers that cannot be updated from within Dockhand.
*/
export type SystemContainerType = 'dockhand' | 'hawser';
/**
* Check if a container is a system container (Dockhand or Hawser).
* System containers cannot be updated from within Dockhand because:
* - Dockhand: Would need to stop itself to update
* - Hawser: Would disconnect from the environment it's managing
*/
export function isSystemContainer(imageName: string): SystemContainerType | null {
if (isDockhandContainer(imageName)) return 'dockhand';
if (isHawserContainer(imageName)) return 'hawser';
return null;
}
/**
* Combine multiple scan summaries by taking the maximum of each severity level.
*/