summaryrefslogtreecommitdiff
path: root/plugins/theme-examples/types/index.d.ts
blob: 0fc8cd845fd77d1829ea8495294621d52b3c87ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export type ThemeChoice = {
  /** The theme this session shows, by its own choice or its project's; absent, none. */
  applied?: string
  /**
   * Whose choice `applied` is: this session's own, or its project's. A session's own choice stays
   * at every later start; any other follows the project. Absent in a choice kept before this was.
   */
  scope?: 'session' | 'project'
  /** A theme shown for a look only, until it is applied or the look ends. */
  preview?: string
  /** The card shows above the prompt: the surface draws no placed rows yet. */
  cardInBand?: boolean
  /** The placed card was put away: the hook that draws it passes until the command shows it again. */
  cardAway?: boolean
}

declare module 'claude-code' {
  interface PluginState {
    'theme-examples': { choice: Shaped<ThemeChoice> }
  }
}