@melandlabs/audit
v0.3.1
Published
OpenContext · audit module
Downloads
1,035
Readme
audit (workspace)
Workspace package. Internal monorepo build artifact; not published to npm. End users install
@melandlabs/opencontext(the facade) instead. Monorepo contributors depend on this package via the workspace protocol.
Structured audit logging for security-sensitive actions: command execution,
file reads, and credential access. Provides logger functions plus an optional
installAuditInterceptors hook for global capture.
Installation
pnpm add @melandlabs/opencontextExports
logCommandExec()— Record a shell/process execution eventlogFileRead()— Record a filesystem read eventlogCredentialAccess()— Record a credential access eventreadAuditLogs()— Read existing audit entriesclearAuditLogs()— Clear the audit log storeAUDIT_LOG_PATH— Default on-disk location of the audit loginstallAuditInterceptors()— Install global process interceptorsAuditEntry,CredentialAccessEntry— Entry types
