πŸ“„ File detail

constants/figures.ts

🧩 .tsπŸ“ 46 linesπŸ’Ύ 2,063 bytesπŸ“ text
← Back to All Files

🎯 Use case

This file lives under β€œconstants/”, which covers static strings, built-in prompts, spinners, and style constants. On the API surface it exposes BLACK_CIRCLE, BULLET_OPERATOR, TEARDROP_ASTERISK, UP_ARROW, and DOWN_ARROW (and more) β€” mainly types, interfaces, or factory objects. It composes internal code from utils (relative imports).

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

🧠 Inline summary

import { env } from '../utils/env.js' // The former is better vertically aligned, but isn't usually supported on Windows/Linux export const BLACK_CIRCLE = env.platform === 'darwin' ? '⏺' : '●' export const BULLET_OPERATOR = 'βˆ™'

πŸ“€ Exports (heuristic)

  • BLACK_CIRCLE
  • BULLET_OPERATOR
  • TEARDROP_ASTERISK
  • UP_ARROW
  • DOWN_ARROW
  • LIGHTNING_BOLT
  • EFFORT_LOW
  • EFFORT_MEDIUM
  • EFFORT_HIGH
  • EFFORT_MAX
  • PLAY_ICON
  • PAUSE_ICON
  • REFRESH_ARROW
  • CHANNEL_ARROW
  • INJECTED_ARROW
  • FORK_GLYPH
  • DIAMOND_OPEN
  • DIAMOND_FILLED
  • REFERENCE_MARK
  • FLAG_ICON
  • BLOCKQUOTE_BAR
  • HEAVY_HORIZONTAL
  • BRIDGE_SPINNER_FRAMES
  • BRIDGE_READY_INDICATOR
  • BRIDGE_FAILED_INDICATOR

πŸ–₯️ Source preview

import { env } from '../utils/env.js'

// The former is better vertically aligned, but isn't usually supported on Windows/Linux
export const BLACK_CIRCLE = env.platform === 'darwin' ? '⏺' : '●'
export const BULLET_OPERATOR = 'βˆ™'
export const TEARDROP_ASTERISK = '✻'
export const UP_ARROW = '\u2191' // ↑ - used for opus 1m merge notice
export const DOWN_ARROW = '\u2193' // ↓ - used for scroll hint
export const LIGHTNING_BOLT = 'β†―' // \u21af - used for fast mode indicator
export const EFFORT_LOW = 'β—‹' // \u25cb - effort level: low
export const EFFORT_MEDIUM = '◐' // \u25d0 - effort level: medium
export const EFFORT_HIGH = '●' // \u25cf - effort level: high
export const EFFORT_MAX = 'β—‰' // \u25c9 - effort level: max (Opus 4.6 only)

// Media/trigger status indicators
export const PLAY_ICON = '\u25b6' // β–Ά
export const PAUSE_ICON = '\u23f8' // ⏸

// MCP subscription indicators
export const REFRESH_ARROW = '\u21bb' // ↻ - used for resource update indicator
export const CHANNEL_ARROW = '\u2190' // ← - inbound channel message indicator
export const INJECTED_ARROW = '\u2192' // β†’ - cross-session injected message indicator
export const FORK_GLYPH = '\u2442' // β‘‚ - fork directive indicator

// Review status indicators (ultrareview diamond states)
export const DIAMOND_OPEN = '\u25c7' // β—‡ - running
export const DIAMOND_FILLED = '\u25c6' // β—† - completed/failed
export const REFERENCE_MARK = '\u203b' // β€» - komejirushi, away-summary recap marker

// Issue flag indicator
export const FLAG_ICON = '\u2691' // βš‘ - used for issue flag banner

// Blockquote indicator
export const BLOCKQUOTE_BAR = '\u258e' // β–Ž - left one-quarter block, used as blockquote line prefix
export const HEAVY_HORIZONTAL = '\u2501' // ━ - heavy box-drawing horizontal

// Bridge status indicators
export const BRIDGE_SPINNER_FRAMES = [
  '\u00b7|\u00b7',
  '\u00b7/\u00b7',
  '\u00b7\u2014\u00b7',
  '\u00b7\\\u00b7',
]
export const BRIDGE_READY_INDICATOR = '\u00b7\u2714\ufe0e\u00b7'
export const BRIDGE_FAILED_INDICATOR = '\u00d7'