webseek 0.2.0 → 0.2.1

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # webseek
1
+ # WebSeek
2
2
 
3
3
  Web search using the API keys of multiple providers behind a single, unified
4
4
  interface. Bring whichever provider key you already have and search the web —
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_tools = require("../tools-Cd93c2_h.cjs");
2
+ const require_tools = require("../tools-Ci1EDrCT.cjs");
3
3
  let node_fs = require("node:fs");
4
4
  let node_path = require("node:path");
5
5
  let commander = require("commander");
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as coerceGeminiBackend, c as runSearch, d as formatError, l as WebseekError, o as coerceMaxResults, s as coerceProvider, t as createWebSearchTool, u as errorExitCode } from "../tools-CCqL3Phx.mjs";
2
+ import { a as coerceGeminiBackend, c as runSearch, d as formatError, l as WebseekError, o as coerceMaxResults, s as coerceProvider, t as createWebSearchTool, u as errorExitCode } from "../tools-DBF9nCIs.mjs";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { dirname, join } from "node:path";
5
5
  import { Command } from "commander";
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_tools = require("./tools-Cd93c2_h.cjs");
2
+ const require_tools = require("./tools-Ci1EDrCT.cjs");
3
3
  exports.GEMINI_BACKENDS = require_tools.GEMINI_BACKENDS;
4
4
  exports.PROVIDER_NAMES = require_tools.PROVIDER_NAMES;
5
5
  exports.WebseekError = require_tools.WebseekError;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { c as runSearch, d as formatError, i as PROVIDER_NAMES, l as WebseekError, n as webSearchInputShape, r as GEMINI_BACKENDS, t as createWebSearchTool, u as errorExitCode } from "./tools-CCqL3Phx.mjs";
1
+ import { c as runSearch, d as formatError, i as PROVIDER_NAMES, l as WebseekError, n as webSearchInputShape, r as GEMINI_BACKENDS, t as createWebSearchTool, u as errorExitCode } from "./tools-DBF9nCIs.mjs";
2
2
  export { GEMINI_BACKENDS, PROVIDER_NAMES, WebseekError, createWebSearchTool, errorExitCode, formatError, runSearch, webSearchInputShape };
@@ -361,7 +361,7 @@ const outputItemSchema = zod.z.looseObject({
361
361
  const responseSchema = zod.z.looseObject({
362
362
  output: zod.z.array(outputItemSchema).optional(),
363
363
  output_text: zod.z.string().optional(),
364
- error: zod.z.looseObject({ message: zod.z.string().optional() }).optional()
364
+ error: zod.z.looseObject({ message: zod.z.string().optional() }).nullish()
365
365
  });
366
366
  function createOpenAIProvider(params) {
367
367
  const { config } = params;
@@ -361,7 +361,7 @@ const outputItemSchema = z.looseObject({
361
361
  const responseSchema = z.looseObject({
362
362
  output: z.array(outputItemSchema).optional(),
363
363
  output_text: z.string().optional(),
364
- error: z.looseObject({ message: z.string().optional() }).optional()
364
+ error: z.looseObject({ message: z.string().optional() }).nullish()
365
365
  });
366
366
  function createOpenAIProvider(params) {
367
367
  const { config } = params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webseek",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Unified multi-provider web search as a CLI, MCP server, and library (OpenAI, Google Custom Search, Gemini)",
5
5
  "keywords": [
6
6
  "web-search",