INNER CODE UNIT · TypeScript

SENSITIVE_HEADER_PARTIAL

open-gitagent/clawless · src/audit.ts:38

const SENSITIVE_HEADER_PARTIAL = /secret|token/i;

/** Order in which source sections appear in toText(). */
const SOURCE_ORDER: AuditSource[] = ['boot', 'system', 'policy', 'user', 'agent'];

export class AuditLog {
  private entries: AuditEntry[] = [];
  private listeners: Array<(entry: AuditEntry) => void> = [];

  // Throttle buffers for stdout/stdin
  private stdoutBuf = '';
  private stdinBuf = '';
  private stdoutTimer: ReturnType<typeof setTimeout> | null = null;
  private stdinTimer: ReturnType<typeof setTimeout> | null = null;

  /** Return a snapshot of all entries. */
  getEntries(): AuditEntry[] {
    return this.entries;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…