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.
git clone --depth 1 https://github.com/toyamarinyon/giselleWrote 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.
[](https://agentmods.dev/rules/toyamarinyon/giselle/update-ai-sdk)<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>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.
| Model | Per session | Once 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 |
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.
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.
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:
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.
- 7d ago First seen · 88 lines · 11 tokens per session scan A 7d57705e9b8e
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.
Other cursor rules, from other repositories
vue-typescript-patterns
A set of coding rules for Vue 3 projects using TypeScript, a language that adds type checking to JavaScript. It covers component structure, file locations, TypeScript usage, and Pinia, a library for shared application state.
nextjs-typescript-app-cursorrules-prompt-file
Cursor rules for Next.js development with TypeScript integration.
ts
A set of TypeScript coding rules covering types, naming, file organization, error handling, and strict type checking. TypeScript is JavaScript with checks that help catch many mistakes before the program runs.
platform-pattern-2-filesystem-operations
Cursor rule "platform-pattern-2-filesystem-operations" from PaulJPhilp/EffectPatterns, covering platform pattern 2: filesystem operations and example.
handle-unexpected-errors-by-inspecting-the-cause
Cursor rule "handle-unexpected-errors-by-inspecting-the-cause" from PaulJPhilp/EffectPatterns, covering handle unexpected errors by inspecting the cause and example.
modeling-tagged-unions-with-datacase
Cursor rule "modeling-tagged-unions-with-datacase" from PaulJPhilp/EffectPatterns, covering modeling tagged unions with data.case and example.