update-ai-sdk

update-ai-sdk is a cursor rule for Cursor from toyamarinyon/giselle. It costs 11 tokens per session (605 once invoked), scanned A, a copy of update-ai-sdk, Apache-2.0.

A project guide for updating the TypeScript AI SDK packages, including the core package and provider packages such as OpenAI or Anthropic. It uses pnpm workspace catalogs to keep shared versions in one place.

In plain words
What is it for?
Use it to check outdated AI SDK packages and update their shared version entries in pnpm-workspace.yaml.
Why use it?
It helps avoid updating only some related AI SDK packages or editing their versions inconsistently across a workspace.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to check outdated AI SDK packages and update their shared version entries in pnpm-workspace.yaml.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/toyamarinyon/giselle/update-ai-sdk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/toyamarinyon/giselle

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for update-ai-sdk

README.md
[![agentmods](https://agentmods.dev/badge/rules/toyamarinyon/giselle/update-ai-sdk.svg)](https://agentmods.dev/rules/toyamarinyon/giselle/update-ai-sdk)
Your own site
<a href="https://agentmods.dev/rules/toyamarinyon/giselle/update-ai-sdk"><img src="https://agentmods.dev/badge/rules/toyamarinyon/giselle/update-ai-sdk.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.00605
Opus 5 $0.00005 $0.00302
Sonnet 5 $0.00002 $0.00121
Haiku 4.5 $0.00001 $0.00060

Measured 7d ago against content hash 7d57705e9b8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

update-ai-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to update-ai-sdk — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/update-ai-sdk.mdc · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Updating AI SDK in Giselle

This document provides a step-by-step guide for updating the AI SDK packages in this project.

What is AI SDK

The AI SDK is a TypeScript toolkit for building AI-powered applications using frameworks like Next.js, React, Svelte, Vue and Node.js runtimes. It provides a unified interface for working with different AI providers.

Package namespaces include ai and @ai-sdk/{provider} (such as @ai-sdk/openai, @ai-sdk/anthropic, etc.).

Step 1: Check current AI SDK versions

Check which AI SDK packages need to be updated:

pnpm outdated -r --json

Look for entries with ai and @ai-sdk/* in the results.

Step 2: Update catalog entries

This project uses pnpm's "Catalogs" feature to define dependency version ranges as reusable constants. These constants can be referenced in package.json files.

Update the catalog entries in pnpm-workspace.yaml:

catalog:
  "ai": 4.2.9              # Update to latest version
  "@ai-sdk/openai": 1.3.6   # Update to latest version
  "@ai-sdk/anthropic": 1.2.4 # Update to latest version
  "@ai-sdk/google": 1.2.5   # Update to latest version
  "@ai-sdk/perplexity": 1.1.3 # Update to latest version
  "@ai-sdk/react": 1.2.5    # Update to latest version
  "@ai-sdk/fal": 0.1.1      # Update if needed

Step 3: Install updated packages

Run the installation command to update all packages:

pnpm i

Step 4: Build the SDK

After fixing type issues, build the SDK:

pnpm build-sdk

When you see these errors, record them and seek guidance on how to address each specific case.

Step 5: Verify types

Run the type checking command to ensure there are no remaining type errors:

pnpm check-types

When you see these errors, record them and seek guidance on how to address each specific case.

Step 6: Test the application

Run the application and request user to make sure everything works as expected:

pnpm dev

Troubleshooting

If you encounter peer dependency warnings, they may be safely ignored if the application works correctly. However, if you encounter runtime errors, you may need to:

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 88 lines · 11 tokens per session scan A 7d57705e9b8e

Subscribe to this mod's changes

update-ai-sdk is a cursor rule published in the GitHub repository toyamarinyon/giselle (4 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 11 tokens to every session and 605 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to update-ai-sdk, differing in 1 line, and is treated as a copy.