diff --git a/bin/scratch.ts b/bin/scratch.ts index 25acf35..6740242 100644 --- a/bin/scratch.ts +++ b/bin/scratch.ts @@ -3,7 +3,7 @@ import 'dotenv/config' import restoreCursor from 'restore-cursor' -import { WikipediaClient } from '../src' +import { SerperClient } from '../src' /** * Scratch pad for testing. @@ -131,14 +131,14 @@ async function main() { // json: true // }) - // const serper = new SerpAPIClient() - // const res = await serper.search({ - // q: 'elon musk' - // }) - const wikipedia = new WikipediaClient() - const res = await wikipedia.getPageSummary({ - title: 'Elon_musk' + const serper = new SerperClient() + const res = await serper.search({ + q: 'elon musk' }) + // const wikipedia = new WikipediaClient() + // const res = await wikipedia.getPageSummary({ + // title: 'Elon_musk' + // }) console.log(JSON.stringify(res, null, 2)) } diff --git a/package.json b/package.json index 2431f25..dbef402 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,16 @@ "types": "./dist/services/twitter/index.d.ts", "import": "./dist/services/twitter/index.js", "default": "./dist/services/twitter/index.js" + }, + "./github": { + "types": "./dist/services/github-client.d.ts", + "import": "./dist/services/github-client.js", + "default": "./dist/services/github-client.js" + }, + "./wikidata": { + "types": "./dist/services/wikidata-client.d.ts", + "import": "./dist/services/wikidata-client.js", + "default": "./dist/services/wikidata-client.js" } }, "files": [ diff --git a/src/services/index.ts b/src/services/index.ts index 2244fdf..2c41081 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -4,7 +4,6 @@ export * from './dexa-client' export * from './diffbot-client' export * from './exa-client' export * from './firecrawl-client' -export * from './github-client' export * from './hacker-news-client' export * from './hunter-client' export * from './jina-client' @@ -24,6 +23,5 @@ export * from './social-data-client' export * from './tavily-client' export * from './twilio-client' export * from './weather-client' -export * from './wikidata-client' export * from './wikipedia-client' export * from './wolfram-alpha-client' diff --git a/tsup.config.ts b/tsup.config.ts index 672ef72..5b4ed72 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -10,6 +10,8 @@ export default defineConfig([ 'src/sdks/langchain.ts', 'src/sdks/llamaindex.ts', 'src/services/twitter/index.ts', + 'src/services/github-client.ts', + 'src/services/wikidata-client.ts', 'src/tools/calculator.ts', 'src/tools/e2b.ts' ],