Repository navigation
Releases: superagents-lab/search1api-ai-sdk
Release list
v0.3.0
Align search/news output types with the nested metadata API correction by depending on @search1api/client ^0.4.0. Engine-specific fields live in optional result metadata; common fields and optional publication dates remain at the result top level. Tool execution preserves the API response.
Verified against AI SDK 5, 6 and 7 with Zod 3 and 4, including tool calls, streaming, type checks, and ESM/CommonJS packaging.
v0.2.0
新工具:ask
对应 POST /ask:模型传入自然语言问题,Search1API 选最多五个引擎和时间窗口,返回最多 10 条按相关度排序的结果。和 MCP 0.7.0 一样,ask 默认包含在 search1apiTools() 里;也可以用 search1apiAsk() 单独创建。
每次 ask 消耗 5 credits(search 是 1 credit)。想保持原来的三个工具:
search1apiTools({ only: ['search', 'news', 'crawl'] })search / news
search引擎新增bingcn、yandex、grokipedia,新增page参数(只有bing、bingcn、baidu、grokipedia支持分页)search和news的time_range支持week- 依赖升到
@search1api/client0.3.0,结果类型带上published_date和 GitHub、Hacker News 字段
Full Changelog: v0.1.2...v0.2.0
v0.1.2
Let the model choose search parameters, matching the Search1API MCP server: search_service, max_results, include_sites, exclude_sites, and time_range. Settings passed in code become defaults. Result page crawling (crawlResults) stays application-only, and unknown model arguments are ignored instead of failing the tool call. Search and news now default to ten results.
Verification: 17 tests, typechecking, builds, generateText/streamText smoke tests, and the AI SDK 5/6/7 x Zod 3/4 compatibility matrix passed locally and in CI. Three real agent runs through AI Gateway completed with zero tool errors. The release workflow repeats verification before the npm publishing job.
v0.1.1
Validate npm Trusted Publishing through the GitHub Actions release workflow after the initial 0.1.0 package bootstrap. Adds a fresh public-registry installation check for ESM/CommonJS execution and TypeScript consumers.
Verification: 15 tests, typechecking, builds, generateText/streamText smoke tests, and package checks passed locally. The release workflow repeats verification before the npm publishing job.
v0.1.0
First release of @search1api/ai-sdk: web search, news search, and webpage reading tools for AI SDK agents. Includes ESM/CommonJS exports, TypeScript types, and a Next.js streaming chat example.
Validated against AI SDK 5/6/7 and Zod 3/4. npm publication is performed by the release workflow.