Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

891 B
Raw Blame
/** macOS protection that keeps Codex from opening the Work Louder HID service. */

export const CODEX_MICRO_GUARD_GET_STATE_CHANNEL = 'codex-micro-guard:get-state';
export const CODEX_MICRO_GUARD_SET_ENABLED_CHANNEL = 'codex-micro-guard:set-enabled';
export const CODEX_MICRO_GUARD_RECOVER_CHANNEL = 'codex-micro-guard:recover';
export const CODEX_MICRO_GUARD_STATE_CHANGED_CHANNEL = 'codex-micro-guard:state-changed';

export type CodexMicroGuardStatus =
  | 'unsupported'
  | 'paused'
  | 'disabled'
  | 'protecting'
  | 'intercepted'
  | 'recovery-required'
  | 'error';

export interface CodexMicroGuardState {
  supported: boolean;
  /** Effective state shared by both keyboards. Always false while protection is paused. */
  enabled: boolean;
  status: CodexMicroGuardStatus;
  /** A running desktop Codex predates protection and has not applied it. */
  restartRequired?: boolean;
}