Repository navigation
fix(limrun): attribute API-key traffic with the SDK userAgent option - #3679
Conversation
Upgrade @limrun/api to 0.64.1 and set its new userAgent client option on the runtime and connect-verification clients, so every request made with the organization API key starts its User-Agent with agent-device-cli/<version> ahead of the SDK's Limrun/JS identifier. This replaces the per-request User-Agent override on instance creation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0.64.1 is the first release with the userAgent client option and was published today. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This is ready. The change sets the SDK userAgent option for API-key traffic, and I found no problems at 1cd2ce1. Not blocking: |
Size Report
Startup median (7 runs, lower is better):
|
|
Summary
Upgrade
@limrun/apito 0.64.1 and use its newuserAgentclient option (limrun-inc/typescript-sdk#546) in place of the per-requestUser-Agentoverride on instance creation. Requests made with the Limrun API key now start theirUser-Agentwithagent-device-cli/<version>, ahead of the SDK's ownLimrun/JS <sdk-version>. This covers creating, listing, and deleting instances, uploading assets, andconnectverification.limrunUserAgent(clientVersion)inclient-options.tsbuilds the value for both API-key clients: the runtime andconnectverification.client-options.test.tsdrives the real SDK through a fetch stub and asserts the prefix reaches the wire. The old allocation test duplicated the cleanup coverage inlimrun-runtime.test.ts, so it is removed.website/docs/docs/limrun.md.chore(gates)adds aminimumReleaseAgeExcludeentry for@limrun/api@0.64.1, published today.13 files.
Validation
Head
1cd2ce113:pnpm check:affected --run, all runnable checks passed. Fresh-context review found one issue (the test no longer covered attribution), which is now fixed.Wire check: the real runtime and SDK sent to a local HTTP server:
35c21b618(SDK 0.60.0)1cd2ce113(SDK 0.64.1)POST /v1/ios_instancesagent-device-cli/<v>agent-device-cli/<v> Limrun/JS 0.64.1DELETE /v1/ios_instances/<id>Limrun/JS 0.60.0agent-device-cli/<v> Limrun/JS 0.64.1GET /v1/ios_instances(connect)Limrun/JS 0.60.0agent-device-cli/<v> Limrun/JS 0.64.1Not live-verified: we have no confirmation yet that Limrun receives the header. The local CLI (0.21.11) and T3's bundled daemon (0.21.12) both predate attribution, which likely explains why Limrun hasn't seen it so far.
🤖 Generated with Claude Code