@upstash/context7-tools-ai-sdk 0.2.1 → 0.2.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.
package/dist/agent.cjs CHANGED
@@ -99,7 +99,9 @@ function resolveLibraryId(config = {}) {
99
99
  query: import_zod.z.string().describe(
100
100
  "The user's original question or task. This is used to rank library results by relevance to what the user is trying to accomplish. IMPORTANT: Do not include any sensitive or confidential information such as API keys, passwords, credentials, or personal data in your query."
101
101
  ),
102
- libraryName: import_zod.z.string().describe("Library name to search for and retrieve a Context7-compatible library ID.")
102
+ libraryName: import_zod.z.string().describe(
103
+ "Library name to search for and retrieve a Context7-compatible library ID. Use the official library name with proper punctuation \u2014 e.g., 'Next.js' instead of 'nextjs', 'Customer.io' instead of 'customerio', 'Three.js' instead of 'threejs'."
104
+ )
103
105
  }),
104
106
  execute: async ({ query, libraryName }) => {
105
107
  try {
package/dist/agent.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Context7Agent
3
- } from "./chunk-E5QL22FX.js";
3
+ } from "./chunk-Y4UMQRG2.js";
4
4
  export {
5
5
  Context7Agent
6
6
  };
@@ -81,7 +81,9 @@ function resolveLibraryId(config = {}) {
81
81
  query: z.string().describe(
82
82
  "The user's original question or task. This is used to rank library results by relevance to what the user is trying to accomplish. IMPORTANT: Do not include any sensitive or confidential information such as API keys, passwords, credentials, or personal data in your query."
83
83
  ),
84
- libraryName: z.string().describe("Library name to search for and retrieve a Context7-compatible library ID.")
84
+ libraryName: z.string().describe(
85
+ "Library name to search for and retrieve a Context7-compatible library ID. Use the official library name with proper punctuation \u2014 e.g., 'Next.js' instead of 'nextjs', 'Customer.io' instead of 'customerio', 'Three.js' instead of 'threejs'."
86
+ )
85
87
  }),
86
88
  execute: async ({ query, libraryName }) => {
87
89
  try {
package/dist/index.cjs CHANGED
@@ -113,7 +113,9 @@ function resolveLibraryId(config = {}) {
113
113
  query: import_zod.z.string().describe(
114
114
  "The user's original question or task. This is used to rank library results by relevance to what the user is trying to accomplish. IMPORTANT: Do not include any sensitive or confidential information such as API keys, passwords, credentials, or personal data in your query."
115
115
  ),
116
- libraryName: import_zod.z.string().describe("Library name to search for and retrieve a Context7-compatible library ID.")
116
+ libraryName: import_zod.z.string().describe(
117
+ "Library name to search for and retrieve a Context7-compatible library ID. Use the official library name with proper punctuation \u2014 e.g., 'Next.js' instead of 'nextjs', 'Customer.io' instead of 'customerio', 'Three.js' instead of 'threejs'."
118
+ )
117
119
  }),
118
120
  execute: async ({ query, libraryName }) => {
119
121
  try {
package/dist/index.d.cts CHANGED
@@ -70,8 +70,8 @@ declare function resolveLibraryId(config?: Context7ToolsConfig): ai.Tool<{
70
70
  * ```
71
71
  */
72
72
  declare function queryDocs(config?: Context7ToolsConfig): ai.Tool<{
73
- query: string;
74
73
  libraryId: string;
74
+ query: string;
75
75
  }, string>;
76
76
 
77
77
  /**
package/dist/index.d.ts CHANGED
@@ -70,8 +70,8 @@ declare function resolveLibraryId(config?: Context7ToolsConfig): ai.Tool<{
70
70
  * ```
71
71
  */
72
72
  declare function queryDocs(config?: Context7ToolsConfig): ai.Tool<{
73
- query: string;
74
73
  libraryId: string;
74
+ query: string;
75
75
  }, string>;
76
76
 
77
77
  /**
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  SYSTEM_PROMPT,
7
7
  queryDocs,
8
8
  resolveLibraryId
9
- } from "./chunk-E5QL22FX.js";
9
+ } from "./chunk-Y4UMQRG2.js";
10
10
  export {
11
11
  AGENT_PROMPT,
12
12
  Context7Agent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstash/context7-tools-ai-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Context7 tools for Vercel AI SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -24,11 +24,11 @@
24
24
  "peerDependencies": {
25
25
  "@upstash/context7-sdk": ">=0.3.0",
26
26
  "ai": ">=6.0.0",
27
- "zod": ">=3.24.0"
27
+ "zod": ">=4.0.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "ai": "^6.0.5",
31
- "zod": "^3.24.0",
31
+ "zod": "^4.3.4",
32
32
  "@ai-sdk/amazon-bedrock": "^4.0.9",
33
33
  "@types/node": "^25.0.3",
34
34
  "dotenv": "^17.2.3",