Skip to content

TEC-200: userAgent config for attribution#18

Merged
vvillait88 merged 3 commits intomainfrom
tec-200-user-agent-config
Apr 21, 2026
Merged

TEC-200: userAgent config for attribution#18
vvillait88 merged 3 commits intomainfrom
tec-200-user-agent-config

Conversation

@vvillait88
Copy link
Copy Markdown
Contributor

Summary

  • Adds optional userAgent to AgentScoreConfig, rendered as "{userAgent} (@agent-score/sdk@{version})"
  • Renames default User-Agent from the invented agentscore-sdk/1.7.0 to the canonical npm identifier @agent-score/sdk@1.7.0 so API log readers can map UA strings back to published packages
  • Bumps version to 1.7.0
  • Updates typescript-eslint within semver

Part of Linear TEC-200. Sitting on this (no tag, no publish) until TEC-201/202/199/203 are ready so all 5 packages ship together.

Test plan

  • bun run lint
  • bun run typecheck
  • bun run test — 92 pass (new test: custom userAgent format)

🤖 Generated with Claude Code

vvillait88 and others added 3 commits April 20, 2026 19:06
Optional userAgent on AgentScoreConfig is prepended to the default
User-Agent as "{userAgent} (agentscore-sdk/{version})" so API calls
from consumer apps can be attributed downstream.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Default User-Agent now reads "@agent-score/sdk@1.7.0" — the exact npm
install identifier — instead of the invented "agentscore-sdk/1.7.0".
Readers of API logs can now map UA strings directly to published
packages without guessing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vvillait88 vvillait88 merged commit f5ca67b into main Apr 21, 2026
5 checks passed
@vvillait88 vvillait88 deleted the tec-200-user-agent-config branch April 21, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant