feat: Update AI SDK name in breaking change

Closed
GL
8mo ago
+364-301

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() and tool.setAccountId(id).
    • accountId in execute params is ignored with a deprecation warning.
    • Updated examples to TypeScript with assertions; added account ID usage example; refreshed README.
    • biome.json now lints examples/**/*.ts.
  • Migration

    • Replace tool.toAISDKTool() with tool.toAISDK().
    • Replace tools.toAISDKTools() with tools.toAISDK().
    • Update constructor: new StackOneToolSet({ apiKey, accountId, baseUrl }) instead of positional args.
    • Do not pass accountId to execute. Set it via the constructor, getTools(pattern, accountId), or tool.setAccountId(id).