Skip to content

Implement work iteration commands and DTOs for Azure DevOps - #1438

Draft
danhellem wants to merge 1 commit into
mainfrom
users/danhellem/command-1
Draft

Implement work iteration commands and DTOs for Azure DevOps#1438
danhellem wants to merge 1 commit into
mainfrom
users/danhellem/command-1

Conversation

@danhellem

Copy link
Copy Markdown
Collaborator

This pull request refactors and modularizes the implementation of Azure DevOps work tools, particularly for creating/assigning iterations and updating team capacity. The main changes include extracting DTO schemas to a dedicated file, introducing a command-based architecture for tool actions, and updating the test and configuration logic to match the new structure.

Refactoring and modularization of work tools:

  • Extracted Zod schemas and TypeScript types for work iteration and capacity write actions into a new file, work.dto.ts, ensuring type safety and single-source-of-truth for input validation and documentation.
  • Replaced inline tool handler logic in work.ts with a command-based architecture. Each action (e.g., create/assign iteration, update capacity) is implemented as a separate command object, improving maintainability and testability. [1] [2]
  • Updated the configureWorkTools function to inject the new user agent provider dependency and to use the new command dispatching mechanism for tool registration.

Configuration and test updates:

  • Added a Jest moduleNameMapper entry for the new work.dto.ts file to ensure tests resolve imports correctly.
  • Updated tests to expect new error messages for unknown actions, reflecting the improved error handling in the new architecture. [1] [2]

Replace by description of the work done

GitHub issue number

N/A

Associated Risks

Refactor

PR Checklist

  • I have read the contribution guidelines
  • I have read the code of conduct guidelines
  • Title of the pull request is clear and informative.
  • 👌 Code hygiene
  • 🔭 Telemetry added, updated, or N/A
  • 📄 Documentation added, updated, or N/A
  • 🛡️ Automated tests added, or N/A

🧪 How did you test it?

manual testing and updated automated tests

@danhellem
danhellem requested a review from a team as a code owner July 20, 2026 15:39
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@danhellem
danhellem marked this pull request as draft July 20, 2026 18:01
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.

2 participants