ads

Friday, May 10, 2024

Show HN: I built an AI agent that upgrades NPM packages https://ift.tt/ax2YZcO

Show HN: I built an AI agent that upgrades NPM packages Hi HN, I built a tool [1] that resolves breaking changes when you upgrade npm packages. I know keeping my dependencies updated is good hygiene but I really have no motivations to do them. The time to fix breaking changes then validate them makes the ROI lopsided. Automating these helps me reduce the barrier to a good habit. It works on typescript and tsx projects. BYOK (bring your own GPT-4 key) for the codegen. MIT license. How does it work? - Bumps the package version, builds your project, and then runs tsc over your project to understand what breaks - Uses ts-morph [2] to create an AST of your code to understand the relationships between code blocks - Uses the AST to get type definitions for external methods to understand how to use the new package - Creates a DAG to execute coding tasks in the correct order to handle propagating changes [3] Try it out and would love to hear your feedback! [1] https://ift.tt/ONUoMHy [2] https://ift.tt/tU9dGq7 [3] https://ift.tt/HlfAMD8 https://ift.tt/TN0C5a8 May 10, 2024 at 11:03PM

No comments:

Post a Comment