πŸ“„ File detail

utils/configConstants.ts

🧩 .tsπŸ“ 22 linesπŸ’Ύ 733 bytesπŸ“ text
← Back to All Files

🎯 Use case

This file lives under β€œutils/”, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, …). On the API surface it exposes NOTIFICATION_CHANNELS, EDITOR_MODES, and TEAMMATE_MODES β€” mainly types, interfaces, or factory objects. What the file header says: These constants are in a separate file to avoid circular dependency issues. Do NOT add imports to this file - it must remain dependency-free.

Generated from folder role, exports, dependency roots, and inline comments β€” not hand-reviewed for every path.

🧠 Inline summary

These constants are in a separate file to avoid circular dependency issues. Do NOT add imports to this file - it must remain dependency-free.

πŸ“€ Exports (heuristic)

  • NOTIFICATION_CHANNELS
  • EDITOR_MODES
  • TEAMMATE_MODES

πŸ–₯️ Source preview

// These constants are in a separate file to avoid circular dependency issues.
// Do NOT add imports to this file - it must remain dependency-free.

export const NOTIFICATION_CHANNELS = [
  'auto',
  'iterm2',
  'iterm2_with_bell',
  'terminal_bell',
  'kitty',
  'ghostty',
  'notifications_disabled',
] as const

// Valid editor modes (excludes deprecated 'emacs' which is auto-migrated to 'normal')
export const EDITOR_MODES = ['normal', 'vim'] as const

// Valid teammate modes for spawning
// 'tmux' = traditional tmux-based teammates
// 'in-process' = in-process teammates running in same process
// 'auto' = automatically choose based on context (default)
export const TEAMMATE_MODES = ['auto', 'tmux', 'in-process'] as const