diff --git a/scripts/gen-skill-docs.ts b/scripts/gen-skill-docs.ts index a1b92363..8ac36a46 100644 --- a/scripts/gen-skill-docs.ts +++ b/scripts/gen-skill-docs.ts @@ -190,16 +190,28 @@ function generateTelemetryPrompt(ctx: TemplateContext): string { return `If \`TEL_PROMPTED\` is \`no\` AND \`LAKE_INTRO\` is \`yes\`: After the lake intro is handled, ask the user about telemetry. Use AskUserQuestion: -> gstack can share anonymous usage data (which skills you use, how long they take, crash info) -> to help improve the project. No code, file paths, or repo names are ever sent. +> Help gstack get better! Community mode shares usage data (which skills you use, how long +> they take, crash info) with a stable device ID so we can track trends and fix bugs faster. +> No code, file paths, or repo names are ever sent. > Change anytime with \`gstack-config set telemetry off\`. Options: -- A) Yes, share anonymous data (recommended) +- A) Help gstack get better! (recommended) - B) No thanks -If A: run \`${ctx.paths.binDir}/gstack-config set telemetry anonymous\` -If B: run \`${ctx.paths.binDir}/gstack-config set telemetry off\` +If A: run \`${ctx.paths.binDir}/gstack-config set telemetry community\` + +If B: ask a follow-up AskUserQuestion: + +> How about anonymous mode? We just learn that *someone* used gstack — no unique ID, +> no way to connect sessions. Just a counter that helps us know if anyone's out there. + +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 diff --git a/test/gen-skill-docs.test.ts b/test/gen-skill-docs.test.ts index ce0b004f..49714f2a 100644 --- a/test/gen-skill-docs.test.ts +++ b/test/gen-skill-docs.test.ts @@ -742,7 +742,8 @@ describe('telemetry', () => { test('generated SKILL.md contains telemetry opt-in prompt', () => { const content = fs.readFileSync(path.join(ROOT, 'SKILL.md'), 'utf-8'); expect(content).toContain('.telemetry-prompted'); - expect(content).toContain('anonymous usage data'); + expect(content).toContain('Help gstack get better'); + expect(content).toContain('gstack-config set telemetry community'); expect(content).toContain('gstack-config set telemetry anonymous'); expect(content).toContain('gstack-config set telemetry off'); });