@tanstack/ai-code-mode-snippets 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -42,7 +42,7 @@ const codeModeConfig = {
42
42
  const { toolsRegistry, systemPrompt, selectedSnippets } =
43
43
  await codeModeWithSnippets({
44
44
  config: codeModeConfig,
45
- adapter: anthropic('claude-3-haiku'), // Cheap model for snippet selection
45
+ adapter: anthropic('claude-haiku-4-5'), // Cheap model for snippet selection
46
46
  snippets: {
47
47
  storage: snippetStorage,
48
48
  maxSnippetsInContext: 5,
@@ -52,7 +52,7 @@ const { toolsRegistry, systemPrompt, selectedSnippets } =
52
52
 
53
53
  // Use in chat
54
54
  const stream = chat({
55
- adapter: anthropic('claude-sonnet-4-20250514'), // Main model
55
+ adapter: anthropic('claude-sonnet-4-6'), // Main model
56
56
  toolRegistry: toolsRegistry,
57
57
  messages,
58
58
  systemPrompts: [basePrompt, systemPrompt],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/ai-code-mode-snippets",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Persistent runtime snippet library for TanStack AI Code Mode agents and sandboxed tool orchestration.",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -52,13 +52,13 @@
52
52
  "tanstack-intent"
53
53
  ],
54
54
  "dependencies": {
55
- "@tanstack/ai": "^0.46.0",
56
- "@tanstack/ai-code-mode": "^0.4.1"
55
+ "@tanstack/ai": "^0.48.0",
56
+ "@tanstack/ai-code-mode": "^0.4.3"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "zod": "^3.0.0 || ^4.0.0",
60
- "@tanstack/ai": "^0.46.0",
61
- "@tanstack/ai-code-mode": "^0.4.1"
60
+ "@tanstack/ai": "^0.48.0",
61
+ "@tanstack/ai-code-mode": "^0.4.3"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@vitest/coverage-v8": "4.1.10",
@@ -66,10 +66,10 @@
66
66
  "dotenv": "^17.2.3",
67
67
  "tsx": "^4.23.12",
68
68
  "zod": "^4.2.0",
69
- "@tanstack/ai-anthropic": "0.16.7",
70
- "@tanstack/ai-gemini": "0.24.1",
69
+ "@tanstack/ai-anthropic": "0.17.1",
70
+ "@tanstack/ai-gemini": "0.25.1",
71
71
  "@tanstack/ai-isolate-node": "0.1.51",
72
- "@tanstack/ai-openai": "0.20.0"
72
+ "@tanstack/ai-openai": "0.21.1"
73
73
  },
74
74
  "scripts": {
75
75
  "build": "vite build",