Add AI-powered JSDoc description generation with OpenAI and multi-format support #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Replaces placeholder JSDoc descriptions with AI-generated contextual descriptions using OpenAI. Merged with main branch to include support for JSX, TSX, and Vue Single File Components.
Changes
New
AIServiceclass (src/ai-service.ts)CLI enhancements (
src/cli.ts)--aiflag to enable AI generation--api-key <key>for API key (or useOPENAI_API_KEYenv var)--model <model>for model selectionRefactored generation pipeline (
src/index.ts).js), TypeScript (.ts), JSX (.jsx), TSX (.tsx), and Vue (.vue)Usage
Before:
After (with
--ai):Merge & Security
Backward compatible—works identically without
--aiflag.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.