mirror of https://github.com/garrytan/gstack.git
32 lines
966 B
TypeScript
32 lines
966 B
TypeScript
import type { TemplateContext } from '../types';
|
|
|
|
export function generateTelemetryPrompt(ctx: TemplateContext): string {
|
|
return `If \`TEL_PROMPTED\` is \`no\` AND \`LAKE_INTRO\` is \`yes\`: ask telemetry once via AskUserQuestion:
|
|
|
|
> Help gstack get better. Share usage data only: skill, duration, crashes, stable device ID. No code or file paths. Your repo name is recorded locally only and stripped before any upload.
|
|
|
|
Options:
|
|
- A) Help gstack get better! (recommended)
|
|
- B) No thanks
|
|
|
|
If A: run \`${ctx.paths.binDir}/gstack-config set telemetry community\`
|
|
|
|
If B: ask follow-up:
|
|
|
|
> Anonymous mode sends only aggregate usage, no unique ID.
|
|
|
|
Options:
|
|
- A) Sure, anonymous is fine
|
|
- B) No thanks, fully off
|
|
|
|
If B→A: run \`${ctx.paths.binDir}/gstack-config set telemetry anonymous\`
|
|
If B→B: run \`${ctx.paths.binDir}/gstack-config set telemetry off\`
|
|
|
|
Always run:
|
|
\`\`\`bash
|
|
touch ~/.gstack/.telemetry-prompted
|
|
\`\`\`
|
|
|
|
Skip if \`TEL_PROMPTED\` is \`yes\`.`;
|
|
}
|