From c953d260885d5e1728391e821a7b02f0e27dd166 Mon Sep 17 00:00:00 2001 From: Jeff Haynie Date: Thu, 24 Apr 2025 21:51:29 -0500 Subject: [PATCH 1/2] Revert "temporarily comment out the new sdk upgrade requirement until ready" This reverts commit e7de330f930b6c91797f031a9be09e369a080734. --- internal/bundler/upgrade.go | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/internal/bundler/upgrade.go b/internal/bundler/upgrade.go index acbda729..2a9c4dfe 100644 --- a/internal/bundler/upgrade.go +++ b/internal/bundler/upgrade.go @@ -11,6 +11,8 @@ import ( "github.com/agentuity/go-common/tui" ) +var jsSDKVersion = ">=0.0.106" + type breakingChange struct { Title string Message string @@ -19,18 +21,18 @@ type breakingChange struct { } var jsBreakingChanges = []breakingChange{ - // { - // Runtime: "bunjs", - // Version: "<0.0.106", - // Title: "🚫 JS SDK Breaking Change 🚫", - // Message: "The JS SDK type signatures for AgentRequest have changed to be async functions. Please see the v0.0.106 Changelog for how to update your code.\n\n" + tui.Link("https://agentuity.dev/Changelog/sdk-js#v00106") + "\n\nPlease bun upgrade @agentuity/sdk, fix your types and ensure your code passes type checking and then re-run this command again.", - // }, - // { - // Runtime: "nodejs", - // Version: "<0.0.106", - // Title: "🚫 JS SDK Breaking Change 🚫", - // Message: "The JS SDK type signatures for AgentRequest have changed to be async functions. Please see the v0.0.106 Changelog for how to update your code.\n\n" + tui.Link("https://agentuity.dev/Changelog/sdk-js#v00106") + "\n\nPlease npm upgrade @agentuity/sdk, fix your types and ensure your code passes type checking and then re-run this command again.", - // }, + { + Runtime: "bunjs", + Version: "<0.0.106", + Title: "🚫 JS SDK Breaking Change 🚫", + Message: "The JS SDK type signatures for AgentRequest have changed to be async functions. Please see the v0.0.106 Changelog for how to update your code.\n\n" + tui.Link("https://agentuity.dev/Changelog/sdk-js#v00106") + "\n\nPlease bun upgrade @agentuity/sdk, fix your types and ensure your code passes type checking and then re-run this command again.", + }, + { + Runtime: "nodejs", + Version: "<0.0.106", + Title: "🚫 JS SDK Breaking Change 🚫", + Message: "The JS SDK type signatures for AgentRequest have changed to be async functions. Please see the v0.0.106 Changelog for how to update your code.\n\n" + tui.Link("https://agentuity.dev/Changelog/sdk-js#v00106") + "\n\nPlease npm upgrade @agentuity/sdk, fix your types and ensure your code passes type checking and then re-run this command again.", + }, } type packageJSON struct { From 5c4724207ca3a9ff60b29818ee197131987c0218 Mon Sep 17 00:00:00 2001 From: Jeff Haynie Date: Thu, 24 Apr 2025 21:52:04 -0500 Subject: [PATCH 2/2] remove used variable --- internal/bundler/upgrade.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/bundler/upgrade.go b/internal/bundler/upgrade.go index 2a9c4dfe..fb46f4c0 100644 --- a/internal/bundler/upgrade.go +++ b/internal/bundler/upgrade.go @@ -11,8 +11,6 @@ import ( "github.com/agentuity/go-common/tui" ) -var jsSDKVersion = ">=0.0.106" - type breakingChange struct { Title string Message string