Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

867 B
Raw Blame

TypeScript And React Conventions

TypeScript

  • strict mode is enabled in apps/switch-console-desktop/tsconfig.json
  • always use explicit types, do not use any
  • prefer module imports at the top of the file, never use require()
  • single tsconfig.json (in apps/switch-console-desktop/) for all app targets (main, preload, renderer, shared)

Renderer

Paths are relative to apps/switch-console-desktop/.

  • functional React components and hooks
  • app shell and the modal/view registries under src/renderer/app/
  • feature UI under src/renderer/features/<feature>/
  • shared infrastructure under src/renderer/lib/ (IPC client, modal and layout systems, commands, SDK transcripts, providers, hooks, stores, UI primitives)

Naming

  • components: PascalCase
  • hooks: useX camelCase or existing patterns like use-toast.ts
  • tests: *.test.ts