Skip to content

Conversation

@jonathannorris
Copy link
Member

@jonathannorris jonathannorris commented Sep 16, 2025

  • Add /v2/projects/:project/features/:feature/status PATCH endpoint to zodClient.ts
  • Remove duplicate UpdateFeatureStatusDto from schemas.ts and import from zodClientV2.ts
  • Maintain single source of truth for UpdateFeatureStatusDto schema
  • Rename zodClientV2.ts -> zodSchemas.ts, going to have zodClientAPI.ts file for the API, and zodSchemas.ts for the schema definitions.
  • remove commented out tools / schemas

@jonathannorris jonathannorris requested a review from a team as a code owner September 16, 2025 15:15
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 16, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
devcycle-mcp-server f4df05d Sep 16 2025, 07:51 PM

@jonathannorris jonathannorris changed the title feat: add v2 feature status update endpoint feat: Cleanup all feature schemas Sep 16, 2025
Copy link

Copilot AI left a comment

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 consolidates schema definitions into a single source of truth by migrating from zodClientV2.ts to zodSchemas.ts. The primary purpose is to cleanup feature schema organization and eliminate duplicate definitions.

Key changes include:

  • Rename zodClientV2.ts to zodSchemas.ts for better organization
  • Update imports across the codebase to use the new schema file
  • Remove duplicate UpdateFeatureStatusDto definition from schemas.ts
  • Add new feature status update endpoint to the API client

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/mcp/types.ts Updates import path and adds minimum length validation for feature keys
src/mcp/tools/featureTools.ts Removes commented out variation and targeting handler functions
src/commands/projects/get.ts Updates import path from zodClient to zodClientAPI
src/commands/features/update.test.ts Simplifies test expectations by removing extra properties from request bodies
src/api/zodSchemas.ts New file containing consolidated schema definitions
src/api/zodClientAPI.ts Updates imports and adds new feature status endpoint
src/api/schemas.ts Removes duplicate UpdateFeatureStatusDto and updates imports
src/api/apiClient.ts Updates import path to use zodClientAPI

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jonathannorris jonathannorris force-pushed the fix-typescript-inference-issues branch from a4a94fb to b7b93c4 Compare September 16, 2025 19:35
@jonathannorris jonathannorris force-pushed the feat-more-schema-updates branch from 0299115 to 1ece414 Compare September 16, 2025 19:35
Base automatically changed from fix-typescript-inference-issues to main September 16, 2025 19:48
- Add /v2/projects/:project/features/:feature/status PATCH endpoint to zodClient.ts
- Export UpdateFeatureStatusDto schema from zodClientV2.ts
- Remove duplicate UpdateFeatureStatusDto from schemas.ts and import from zodClientV2.ts
- Maintain single source of truth for UpdateFeatureStatusDto schema
- Remove extra properties (headless, whichFields, listPromptOption) from HTTP mock expectations
- These properties were filtered out by Zod validation in the actual command
- All tests now pass with correct request body matching
@jonathannorris jonathannorris force-pushed the feat-more-schema-updates branch from 1ece414 to f4df05d Compare September 16, 2025 19:48
@jonathannorris jonathannorris enabled auto-merge (squash) September 16, 2025 19:48
@jonathannorris jonathannorris merged commit 68e5836 into main Sep 16, 2025
8 of 9 checks passed
@jonathannorris jonathannorris deleted the feat-more-schema-updates branch September 16, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants