Repository navigation
Conversation
…cs / --no-analytics; analytics on | off Owner, 2026-11-20: "Turn on analytics in genclass setup by default so they can see visitors". - runtime init: --analytics writes analytics: true in the option file (data-analytics="on" on a script tag, analytics=on in the Astro meta line), --no-analytics takes it out again; both work on an existing setup and remove takes them out. init says what is counted and kept, the consent advice for the EU, EEA and UK and the switch before anything is written. No token, no option: a usage error with --no-telemetry or --no-token, a setup without a token is told so, and a token that cannot be made leaves the option out. The runtime's own default stays off. - genclass setup: the runtime step passes --analytics (setup --no-analytics leaves it out); the step's sentence and its fuller text say so, and status names the command that does it. - genclass analytics on | off: the switch for this folder's app; off (and init --no-analytics) passes without Pro and signed out, like every opt-out. - genclass analytics and the dashboard's Visitors line say why no visit is counted: off in this app (with the command), or on and waiting for the deployed site's visitors. - docs: TELEMETRY.md, PRIVACY.md, ANALYTICS.md, API.md, INSTALL.md, both READMEs, both changelogs, AGENTS.md rule 8. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
GenClass runtime review2 findings in this pull request's tests at
Reply The race report, test by testRace report2 signatures in 2 tests, 2 reproducible (flagged in 2 or more seeds of the same test) · 19 files read · mode observe
[chromium] search.spec.ts > search > buggy page: results of the last query2 seeds (1, 2) · 1 signature · chaos: latency 0–600 ms, reorder Witnesses (facts measured without the model)
search.spec.ts > search > buggy page: results of the last query5 seeds (1, 2, 3, 4, 5) · 1 signature · chaos: latency 0–600 ms, reorder Witnesses (facts measured without the model)
3 tests with nothing flagged
Lines under "Witnesses (facts measured without the model)" are happens-before facts the runtime measured in the page without the model, one per signature (witness kind, operation): overwrote-newer, a response wrote a field over what a newer request or the user had written since the request started; identical-in-flight, two identical requests in flight together from separate user actions. They carry no confidence: a fact is listed when it happened. Reproducible: seen in 2 or more seeds of the same test. Whether a fact is a bug is for you to decide (some overwrites are intended; many are repaired a moment later). genclass-dev[bot] read 19 race files from the artifacts |
Owner, 2026-11-20: "Turn on analytics in genclass setup by default so they can see visitors".
Until now
genclass setupnever wrote theanalyticsoption, sogenclass analyticsand the dashboard's Visitors stayed empty for every app set up from the terminal, with a line that said analytics is opt-in.What changes
inita new--analyticsflag, which writesanalytics: truenext to the app's token (data-analytics="on"on a script tag,analytics=onin the Astro meta line), inside init's markers, soremovetakes it out.genclass setup --no-analyticsleaves it out.localStorageentry, never from localhost), the consent advice for the EU, EEA and UK (runtime.analytics.start()after the visitor agrees) and the command that turns it off.genclass analytics on/off: the switch for this folder's app.off, andinit --no-analytics, pass without Pro and signed out, like every opt-out (AGENTS.md rule 8).init --analytics/--no-analyticsin the runtime CLI. The runtime's own default stays off. No token, no option: a usage error with--no-telemetryor--no-token, a setup without a token is told so, and when a token cannot be made the option is left out with it.genclass analyticsand the dashboard's Visitors line say why no visit is counted: off in this app (with the command), or on and waiting for the deployed site's visitors.Not in this PR
genclass0.3.14 needs thecli-v0.3.14tag and the release run's approval. The runtime CLI's own flag ships with the next runtime release; thegenclasscommand bundles init, so it needs no runtime release./docs/cliand/docs/analytics(the private site repository) still describe analytics as something to turn on by hand.Tests
remove, the statement is what/autoreads, on and off on an existing setup restore the files exactly, a user's own key survives, no token means no option, the usage errors, the disclosure.--no-analytics,analytics on | off,offwithout Pro, the no-visits lines.🤖 Generated with Claude Code