fix: try to fix build #16
Merged
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.
This pull request introduces several improvements and new features focused on telemetry tracking and build output organization. The most significant change is the addition of a new
posthog
telemetry utility insrc/utils.ts
for event tracking, along with updates to the build and script paths inpackage.json
to ensure consistency and correctness in the output structure.Telemetry and Utility Enhancements:
posthog
function insrc/utils.ts
for sending event tracking data to PostHog, including system and agent details, with robust error handling and debug logging. Also included a test suite for the function within the same file. [1] [2]getAgentVersion
andgetClientName
insrc/utils.ts
to dynamically retrieve agent and client information for telemetry purposes.Build and Script Path Updates:
package.json
to usedist/src/
instead ofdist/
, ensuring all compiled files and assets are correctly placed and referenced. This affects the binary entry, documentation copying, and script execution commands. [1] [2]Documentation and Description Improvements:
install_wda
tool insrc/tools/install-wda.ts
to clarify its requirements and usage.