Skip to content

Add Create User-Agent Header Utility - #98

Merged
JesuTerraz merged 19 commits into
mainfrom
users/jterrazas/add-user-agent-header
Dec 9, 2025
Merged

Add Create User-Agent Header Utility#98
JesuTerraz merged 19 commits into
mainfrom
users/jterrazas/add-user-agent-header

Conversation

@JesuTerraz

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 3, 2025 22:13
@JesuTerraz
JesuTerraz requested a review from a team as a code owner December 3, 2025 22:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new utility function GetUserAgentHeader that generates standardized User-Agent header strings for SDK HTTP requests. The implementation includes OS type resolution and SDK version information, with optional orchestrator identification.

Key Changes:

  • Added GetUserAgentHeader method to generate User-Agent strings with SDK version, OS type, Node.js version, and orchestrator info
  • Added private ResolveOsType helper that maps OS type names (Windows_NT→Windows, Darwin→macOS, Linux→Linux)
  • Comprehensive test coverage for both new methods including edge cases and OS type mapping

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/agents-a365-runtime/src/utility.ts Implements GetUserAgentHeader method and ResolveOsType helper with OS name mapping logic
tests/common/utility.test.ts Adds comprehensive test suite for GetUserAgentHeader and ResolveOsType, plus tests for existing GetAppIdFromToken and ResolveAgentIdentity methods

Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Comment thread packages/agents-a365-runtime/src/utility.ts
Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Copilot AI review requested due to automatic review settings December 3, 2025 23:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread tests/common/utility.test.ts Outdated
Comment thread tests/common/utility.test.ts Outdated
Comment thread tests/common/utility.test.ts Outdated
Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Copilot AI review requested due to automatic review settings December 4, 2025 21:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread tests/common/utility.test.ts Outdated
Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Comment thread tests/common/utility.test.ts Outdated
Copilot AI review requested due to automatic review settings December 4, 2025 22:04
@JesuTerraz
JesuTerraz enabled auto-merge (squash) December 4, 2025 22:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Comment thread tests/common/utility.test.ts Outdated
Copilot AI review requested due to automatic review settings December 5, 2025 19:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Copilot AI review requested due to automatic review settings December 5, 2025 19:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread packages/agents-a365-runtime/package.json Outdated
Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Comment thread pnpm-workspace.yaml Outdated
Comment thread pnpm-workspace.yaml Outdated
Comment thread packages/agents-a365-runtime/package.json Outdated
Copilot AI review requested due to automatic review settings December 5, 2025 22:14
pontemonti
pontemonti previously approved these changes Dec 5, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread pnpm-lock.yaml Outdated
Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Comment thread packages/agents-a365-runtime/src/utility.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread tests/common/utility.test.ts Outdated
Comment thread packages/agents-a365-runtime/src/utility.ts Outdated
Copilot AI review requested due to automatic review settings December 9, 2025 17:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@JesuTerraz
JesuTerraz merged commit 0bb6a32 into main Dec 9, 2025
7 checks passed
@JesuTerraz
JesuTerraz deleted the users/jterrazas/add-user-agent-header branch December 9, 2025 23:43
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.

5 participants