-
Notifications
You must be signed in to change notification settings - Fork 4
feat(telemetry): CLI usage telemetry #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
djgould
wants to merge
32
commits into
main
Choose a base branch
from
devin/cli-anonymous-telemetry-c70776
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
76c7c14
feat(telemetry): add anonymous environment signal detection
djgould 18fe95e
feat(telemetry): persist machine uuid and notice flag in config
djgould 5828a5c
feat(telemetry): add anonymous command telemetry core
djgould cdb9adf
test(telemetry): isolate telemetry unit tests from ambient env vars
djgould b983ba8
feat(telemetry): tag CLI User-Agent with detected AI agent
djgould be746ac
feat(telemetry): emit anonymous per-command telemetry event
djgould 6b6d094
test(telemetry): assert argument values never leak into telemetry events
djgould 6575bce
docs(telemetry): document anonymous telemetry and opt-out
djgould 4bd99e4
fix(telemetry): final review fixes — env isolation, soft-failure outc…
djgould b671d67
fix(telemetry): treat any non-false opt-out env value as an opt-out
djgould 48943b8
feat(telemetry): persist a telemetry opt-out flag in config
djgould 285150b
feat(telemetry): no send on the disclosure run, persisted opt-out re-…
djgould 7e02d2b
feat(telemetry): add clerk telemetry status|disable|enable with a per…
djgould 6d89889
docs(telemetry): drop the anonymous claim; describe linked workspace/…
djgould 7902321
docs(telemetry): note verified agent marker values in detection comment
djgould aa85a10
docs(telemetry): rename changeset slug to match honest wording
djgould d07771f
chore(telemetry): trim redundant code comments
djgould 3a4da8d
fix(telemetry): render errors before awaiting the telemetry send
djgould d75fa06
fix(telemetry): bound the entire telemetry job with one deadline
djgould 7614f4b
feat(telemetry): give agents the first-run notice and grace too
djgould d9e8033
fix(telemetry): bound the free-text payload dimensions
djgould d309c9d
fix(telemetry): capture hook-time failures like invalid --mode
djgould 76167b1
fix(telemetry): pipeable status output — bare state on stdout, reason…
djgould 08f747c
feat(telemetry): shed the machine uuid on opt-out
djgould 720e16a
fix(telemetry): telemetry failures never trigger the sandbox warning
djgould 2a450e4
Update packages/cli-core/src/lib/telemetry.ts
djgould 3124921
fix(telemetry): AIAgent UA marker joins the segment list and respects…
djgould da37779
docs(telemetry): note why the disclosure run skips the send
djgould 3fb8b9a
test(telemetry): prove mistyped or pasted secrets never reach an event
djgould 6b9fe1c
refactor(cli): extract error rendering into a testable reportError
wyattjoh 73d4649
fix(telemetry): AIAgent UA segment also waits for disclosure
djgould 3f1f342
fix(telemetry): warn that dev builds stay disabled on telemetry enable
djgould File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "clerk": minor | ||
| --- | ||
|
|
||
| Collect usage telemetry (command name, flag names, duration, outcome, a random machine identifier — and your workspace and app IDs when a project is linked; never arguments, option values, paths, or personal data). The first run only shows a disclosure notice and sends nothing (CI environments send from the first run), and `--verbose` prints every event before it is sent. Control it with the new `clerk telemetry status|disable|enable` subcommand, or the `CLERK_TELEMETRY_DISABLED` / `DO_NOT_TRACK` environment variables (any non-false value opts out). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.