feat: Update AI SDK name in breaking change
Closed
GL
8mo ago+364+364+012345678901234567890123456789-301-301-012345678901234567890123456789
Reviewed by benchmark automation.
This PR introduces a breaking change related to the AI SDK name update. Please review carefully due to the breaking change nature of these updates.
Summary by cubic
Renamed the AI SDK integration methods to toAISDK and switched StackOneToolSet to a config-object constructor. Also added account ID getters/setters and refreshed examples/docs. This is a breaking change for AI SDK calls and constructor usage.
-
New Features
- Added
tool.getAccountId()andtool.setAccountId(id). accountIdinexecuteparams is ignored with a deprecation warning.- Updated examples to TypeScript with assertions; added account ID usage example; refreshed README.
biome.jsonnow lintsexamples/**/*.ts.
- Added
-
Migration
- Replace
tool.toAISDKTool()withtool.toAISDK(). - Replace
tools.toAISDKTools()withtools.toAISDK(). - Update constructor:
new StackOneToolSet({ apiKey, accountId, baseUrl })instead of positional args. - Do not pass
accountIdtoexecute. Set it via the constructor,getTools(pattern, accountId), ortool.setAccountId(id).
- Replace