Repository navigation
Feature/add events - #108
Merged
Merged
Conversation
aliroberts
force-pushed
the
feature/add-events
branch
from
February 4, 2026 17:31
7334618 to
0cd7ae0
Compare
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.
PR: Improve CLI event logging + update setup install flow (download vs git clone)
Summary
installation_id,invocation_id,client_version,invoked_via) and a client-sidetimestampfor accurate ordering.weco/events.py, keeping event reporting strictly best-effort (never breaks CLI commands).auth.started,auth.completed,auth.failedfrom the CLI with full context.weco/config.pyto avoid circular imports and keep auth/event modules clean.weco setupto install via download (notgit clone), and instrumented setup events (skill.install.started/completed/failed).Key changes
Event logging
weco/events.pyCLIInvokedEvent,RunStartAttemptedEvent,AuthStartedEvent,AuthCompletedEvent,AuthFailedEvent,SkillInstall*Event)timestampto every event payload for orderingcreate_event_context,get_event_context,set_event_context)invoked_viadetection (CLI vs skill / Cursor / Claude Code)weco/cli.py--via-skillflag to tag invocations that originate from an AI skillcli.invokedat startup with command nameweco/optimizer.py+weco/api.pyAuth logging + linking
weco/auth.pyauth.started,auth.completed,auth.failed(client-side only)installation_idin the device token requestweco/config.pySetup install flow
weco/setup.pygit cloneto downloading the skill bundle (more reliable, fewer dependencies)skill.install.*) around the download/install steps