The default User-Agent now includes the running Node.js version and the OS
platform/arch alongside the SDK name/version, built by a new
buildSdkBaseUserAgent helper in user-agent.mts. A caller-supplied userAgent
is now appended to that base rather than replacing it, so requests always
carry the SDK's own identifying token.
Ports #638 (based on the v1.4.x line) to v4/main.
Example emitted header:
socketsecurity-sdk/4.0.4 node/v24.14.1 linux/arm64 socket/1.1.96 (https://github.com/SocketDev/socket-cli)
Ports #638 (based on the retired v1.4.x line) to v4/main. Same behavior, adapted to v4's file layout.
What changed
Example emitted header with a caller UA:
Tests
tsgo + lint green. Full unit suite green except the pre-existing resolveBasePath tests that assert the cwd path contains socket-sdk-js (they fail only in a /tmp worktree, unrelated to this change).