Record Link CLI command usage in AEL - #378
Closed
ericgan-stripe wants to merge 4 commits into
Closed
ericgan-stripe wants to merge 4 commits into
ericgan-stripe wants to merge 4 commits into
Conversation
Emit one best-effort event for each resolved CLI or MCP command so usage can be measured by command, CLI version, and detected AI agent. Reuse the dedicated AEL client configuration without counting underlying API retries. Record dispatches before flag validation; outcome is intentionally absent because Incur does not expose a reliable command result to shared middleware. Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com>
Match the repository Biome formatter so the CI formatting gate passes. Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com>
The combined help, version, and unknown-command test starts three CLI processes; give it enough time under loaded CI runners. Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com>
The comparison launches two CLI processes and exercises the bounded telemetry flush, which can exceed the default test timeout on loaded CI runners. Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Each resolved Link CLI command now sends one
CLI Commandevent tor.stripe.comwhen dispatched, including commands invoked as MCP tools. An offline command produces an event, while authentication refreshes and API retries within one command do not add events.Events contain the canonical command path, CLI version, and recognized AI agent when available. They exclude arguments, credentials, API requests, and results.
DO_NOT_TRACKandLINK_CLI_TELEMETRY_OPTOUTdisable sending; AEL failures do not change command output or exit status. Events count dispatches, including commands that later fail, and do not include a success/failure field.Validation