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

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/hleYT5S [2] https://ift.tt/DtckNbW [3] https://ift.tt/CX2qZER https://ift.tt/348ghfb May 10, 2024 at 11:03PM

Komentar

Postingan populer dari blog ini

Show HN: Interactive exercises for GNU grep, sed and awk https://ift.tt/OxeFwah

Show HN: Create demos & guides just with a simple prompt https://ift.tt/HfWo3mz