webseek 0.2.0 → 0.2.2
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
package/dist/cli/index.cjs
CHANGED
package/dist/cli/index.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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() }).
|
|
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() }).
|
|
364
|
+
error: z.looseObject({ message: z.string().optional() }).nullish()
|
|
365
365
|
});
|
|
366
366
|
function createOpenAIProvider(params) {
|
|
367
367
|
const { config } = params;
|