Skip to content
Source
Sign inSign up
TanStack/ai

refactor!: remove every deprecated API and release all packages as 1.0.0 #1840

MergedAlemTuzlakmerged 62 commits intomain fromrefs/pull/1840/headmerged by tombeckenham View on GitHub

Showing 2,025 changed files with 9 additions and 4 deletions (loading 2,022).

x
0 of 2,025 viewed, 2,025 left
8 additions and 3 deletions.agent/self-learning/lessons/2026-06-23-authoring-kiira-doc-snippets.mdModified
View file
@@ -35,9 +35,14 @@
- an adapter → `import { openaiText } from '@tanstack/ai-openai'; const adapter = openaiText('gpt-5.5')`.
- tools → define inline with `toolDefinition({ name, description, inputSchema })`.
- any other arbitrary placeholder (db, env, a client, a token) → import it from
- a relative module: `import { db } from './db'`. kiira ignores unresolved
- _relative_ imports, so the name is a usable `any` and the reader sees they
- must supply it.
+ a relative module: `import { db } from './db'`. kiira hides the "cannot find
+ module" error for _relative_ imports, and the reader sees they must supply it.
+ **But the binding is TypeScript's error type, not `any`:** every other error
+ in a call that uses it is silently dropped. `chat({ ..., tools: serverTools })`
+ with `serverTools` from `./tools` passes even with no `threadId`. So never pass
+ a relative-import value into a TanStack call (tools, schemas, agents,
+ messages, options) in a fence that must prove the call is right. Define it
+ inline or in an earlier fence of the same file instead.
​
2. **No invisible "ambient" fixture for `messages`/`message`.** Same reason as #1
— the reader sees a variable appear from nowhere. Use real visible setup.
1 addition and 1 deletion.agents/skills/add-example-tutorial/SKILL.mdModified
View file
@@ -41,7 +41,7 @@
​
## 3. Tutorial page
​
-Load `docs`. Run its persona and tone gates unless this conversation already chose them.
+Load `docs`. State the readers and the tone it picks, then keep going.
​
Open with the problem the reader has, why it matters, and how this tutorial solves it (one short block). Then walk through steps. Each step teaches one piece of that solution and says why that piece exists.