Files
start-os/sdk/base/lib/util/index.ts
Aiden McClelland 7335e52ab3 fix: daemon lifecycle cleanup and error logging improvements
- Refactor HealthDaemon to use a tracked session (AbortController + awaitable
  promise) instead of fire-and-forget health check loops, preventing health
  checks from running after a service is stopped
- Stop health checks before terminating daemon to avoid false crash reports
  during intentional shutdown
- Guard onExit callbacks with AbortSignal to prevent stale session callbacks
- Add logErrorOnce utility to deduplicate repeated error logging
- Fix SystemForEmbassy.stop() to capture clean promise before deleting ref
- Treat SIGTERM (signal 15) as successful exit in subcontainer sync
- Fix asError to return original Error instead of wrapping in new Error
- Remove unused ExtendedVersion import from Backups.ts
2026-03-20 13:50:57 -06:00

36 lines
1.4 KiB
TypeScript

/// Currently being used
export { addressHostToUrl } from './getServiceInterface'
export { getDefaultString } from './getDefaultString'
export * from './ip'
/// Not being used, but known to be browser compatible
export {
GetServiceInterface,
getServiceInterface,
filledAddress,
filterNonLocal,
} from './getServiceInterface'
export { getServiceInterfaces } from './getServiceInterfaces'
export { once } from './once'
export { asError } from './asError'
export * as Patterns from './patterns'
export * from './typeHelpers'
export { Watchable } from './Watchable'
export { GetContainerIp } from './GetContainerIp'
export { GetHostInfo } from './GetHostInfo'
export { GetOutboundGateway } from './GetOutboundGateway'
export { GetServiceManifest, getServiceManifest } from './GetServiceManifest'
export { GetSslCertificate } from './GetSslCertificate'
export { GetStatus } from './GetStatus'
export { GetSystemSmtp } from './GetSystemSmtp'
export { Graph, Vertex } from './graph'
export { inMs } from './inMs'
export { splitCommand } from './splitCommand'
export { nullIfEmpty } from './nullIfEmpty'
export { deepMerge, partialDiff } from './deepMerge'
export { deepEqual } from './deepEqual'
export { AbortedError } from './AbortedError'
export * as regexes from './regexes'
export { stringFromStdErrOut } from './stringFromStdErrOut'
export { logErrorOnce } from './logErrorOnce'