Skip to content

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

2.2 KB
Raw Blame
import { RECENTLY_SEEN_DAYS } from '@shared/core/managed-switch-server/managed-switch-server';

/**
 * The disclosure shown to the user, in one place so the first-run notice and
 * the Settings row cannot drift into promising different things.
 *
 * This is a promise, and what is sent is held to it by the payload rule in
 * `console/AGENTS.md` and by the closed event catalogue in
 * `src/main/core/telemetry/events.ts`. Widening what is sent is a consent
 * decision, not a copy edit.
 *
 * The detail lives in `docs/TELEMETRY.md`, behind the link, rather than in the
 * dialog: anyone who wants the specifics wants all of them — every event, every
 * field — which no dialog can hold, and a wall of bullet points in front of the
 * toggle gets skimmed rather than read.
 */
export const TELEMETRY_SUMMARY =
  'Switch Console shares anonymous usage data to show which features get used and where the app runs into trouble.';

/**
 * How far the answer reaches, stated because the alternative is a toggle that
 * appears to govern more than it does (CHOO-2890).
 *
 * It governs a Switch server this app runs — the setting is written into that
 * server's configuration at every start — and it does not govern a server
 * reached by URL, which is somebody else's deployment with its own answer. On a
 * server other Consoles use too, a "no" applies to everyone at the next start
 * from here, while a "yes" leaves the server as it is — sharing already on stays
 * on — unless nobody else has been seen on it lately (`shareUsageData` in the
 * managed-server pipeline). The first is the promise; the other two are its
 * limits.
 */
export const TELEMETRY_SCOPE_NOTE = `The same answer applies to a Switch server this app runs for you. If other people use that server from their own Switch Console too, a no turns sharing off for everyone when you next start it, and a yes leaves it as it is unless none of them has used the server in the last ${RECENTLY_SEEN_DAYS} days. A server you connect to by URL is not covered — whoever operates it decides.`;

export const TELEMETRY_DETAILS_LABEL = 'Read what is collected';

export const TELEMETRY_DETAILS_URL =
  'https://github.com/sandbox-quantum/switch/blob/main/docs/TELEMETRY.md';