Skip to content

Add repository guidelines and update AI SDK to v5 #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ThomasK33
Copy link
Member

Update AI SDK to v5 and add repository guidelines

This PR updates the project to use AI SDK v5 and adds comprehensive repository guidelines. Key changes include:

  1. Added AGENTS.md with detailed repository guidelines covering:

    • Project structure and organization
    • Build and development commands
    • Coding style conventions
    • Testing guidelines
    • Commit and PR best practices
    • Security considerations
  2. Updated AI SDK dependencies:

    • Upgraded from v4 to v5 (ai@5.0.8)
    • Updated all provider packages to v2 series
    • Added explicit zod dependency with pinned version
  3. Improved build script to:

    • Properly externalize dependencies
    • Add shebang line more reliably
    • Make output executable
  4. Updated code to support AI SDK v5 API changes:

    • Migrated from ProviderV1 to ProviderV2 interfaces
    • Updated message conversion logic
    • Fixed stream handling for new event types
    • Made signature field optional in thinking content
  5. Updated examples in documentation to reference newer models like gpt-5-mini instead of older models.

These changes ensure compatibility with the latest AI SDK while providing clear guidelines for contributors.

Copy link
Member Author

ThomasK33 commented Aug 8, 2025

@ThomasK33 ThomasK33 marked this pull request as ready for review August 8, 2025 14:41
@ThomasK33 ThomasK33 self-assigned this Aug 8, 2025
@ThomasK33 ThomasK33 requested a review from kylecarbs August 8, 2025 14:42
@ThomasK33 ThomasK33 changed the title Add repository guidelines and update AI SDK to v2 Add repository guidelines and update AI SDK to v5 Aug 8, 2025
@ThomasK33 ThomasK33 changed the base branch from thomask33/Add_Nix_development_environment_and_Claude_guidance_file to graphite-base/5 August 8, 2025 14:50
@ThomasK33 ThomasK33 force-pushed the thomask33/Add_repository_guidelines_and_update_AI_SDK_to_v2 branch from 9a2fc0c to 6bac75e Compare August 8, 2025 14:50
@graphite-app graphite-app bot changed the base branch from graphite-base/5 to main August 8, 2025 14:51
Change-Id: Ib00b7ee5f39911b58a15674bc50700267018cdbc
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33 ThomasK33 force-pushed the thomask33/Add_repository_guidelines_and_update_AI_SDK_to_v2 branch from 6bac75e to 56dc6d5 Compare August 8, 2025 14:51
@ThomasK33 ThomasK33 merged commit 4050bf6 into main Aug 8, 2025
1 check passed
Copy link
Member Author

Merge activity

@ThomasK33 ThomasK33 deleted the thomask33/Add_repository_guidelines_and_update_AI_SDK_to_v2 branch August 8, 2025 19:38
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