webfox 4.12.0 → 4.13.0

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
@@ -141,6 +141,7 @@ Use different providers for different tasks:
141
141
  | [SerpBase] | ✔︎ | | | |
142
142
  | [Serper] | ✔︎ | | | |
143
143
  | [Sofya] | ✔︎ | ✔︎ | ✔︎ | ✔︎ |
144
+ | [Tapline] | ✔︎ | | | |
144
145
  | [Tavily] | ✔︎ | ✔︎ | | |
145
146
  | [Valyu] | ✔︎ | ✔︎ | ✔︎ | ✔︎ |
146
147
  | [You.com] | ✔︎ | | | |
@@ -160,6 +161,7 @@ Use different providers for different tasks:
160
161
  [SerpBase]: ./docs/provider.md#serpbase
161
162
  [Serper]: ./docs/provider.md#serper
162
163
  [Sofya]: ./docs/provider.md#sofya
164
+ [Tapline]: ./docs/provider.md#tapline
163
165
  [Tavily]: ./docs/provider.md#tavily
164
166
  [Valyu]: ./docs/provider.md#valyu
165
167
  [You.com]: ./docs/provider.md#youcom
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZVTVERW5.js";
5
5
  import {
6
6
  WEBFOX_ERROR_CODES
7
- } from "./chunk-NENL6L6N.js";
7
+ } from "./chunk-46OIVYHW.js";
8
8
  import {
9
9
  WebfoxError
10
10
  } from "./chunk-U4BLULLV.js";
@@ -0,0 +1,84 @@
1
+ import {
2
+ PACKAGE_VERSION
3
+ } from "./chunk-HZVTFUBC.js";
4
+ import {
5
+ asRecord,
6
+ describeHttpError,
7
+ joinUrl,
8
+ readNonEmptyString,
9
+ requestJson,
10
+ requireApiKey,
11
+ trimSnippet
12
+ } from "./chunk-U4I3X7IN.js";
13
+ import {
14
+ WebfoxError
15
+ } from "./chunk-U4BLULLV.js";
16
+
17
+ // src/providers/tapline/adapter.ts
18
+ var DEFAULT_BASE_URL = "https://api.tapline.sh";
19
+ var adapter = {
20
+ async search(request, config, context) {
21
+ const options = request.options ?? {};
22
+ if (options.date_from === void 0 !== (options.date_to === void 0)) {
23
+ throw new WebfoxError(
24
+ "INVALID_INPUT",
25
+ "Tapline search needs both date_from and date_to for a published-date range."
26
+ );
27
+ }
28
+ const apiKey = requireApiKey(config, "api", "Tapline search");
29
+ const url = new URL(
30
+ joinUrl(config.baseUrl ?? DEFAULT_BASE_URL, "v1/brave-search/search")
31
+ );
32
+ url.searchParams.set("query", request.query);
33
+ for (const [key, value] of Object.entries(options)) {
34
+ if (value !== void 0) url.searchParams.set(key, String(value));
35
+ }
36
+ const payload = asRecord(
37
+ await requestJson(
38
+ url.toString(),
39
+ {
40
+ headers: {
41
+ "X-API-Key": apiKey,
42
+ "User-Agent": `webfox/${PACKAGE_VERSION}`
43
+ },
44
+ signal: context.signal
45
+ },
46
+ (body, response) => describeHttpError("Tapline search", body, response)
47
+ )
48
+ );
49
+ const entries = payload?.results;
50
+ if (!payload || !Array.isArray(entries)) {
51
+ throw new WebfoxError(
52
+ "PROVIDER_FAILURE",
53
+ "Tapline returned an invalid search response.",
54
+ { retryable: false }
55
+ );
56
+ }
57
+ const results = entries.map(toSearchResult).filter((result) => result !== void 0);
58
+ return { results: results.slice(0, request.maxResults) };
59
+ }
60
+ };
61
+ function toSearchResult(entry) {
62
+ const record = asRecord(entry);
63
+ const url = readNonEmptyString(record?.url);
64
+ if (!record || !url) return void 0;
65
+ const {
66
+ title,
67
+ url: _url,
68
+ description,
69
+ description_html: _descriptionHtml,
70
+ ...rest
71
+ } = record;
72
+ const metadata = Object.fromEntries(
73
+ Object.entries(rest).filter(([, value]) => value !== null)
74
+ );
75
+ return {
76
+ title: readNonEmptyString(title),
77
+ url,
78
+ snippet: trimSnippet(readNonEmptyString(description)),
79
+ ...Object.keys(metadata).length > 0 ? { metadata } : {}
80
+ };
81
+ }
82
+ export {
83
+ adapter
84
+ };
@@ -2,14 +2,14 @@ import {
2
2
  SERPBASE_MODES,
3
3
  serpbaseProvider,
4
4
  validateOptions
5
- } from "./chunk-U5KDSMG3.js";
5
+ } from "./chunk-EBKQHHCO.js";
6
6
  import {
7
7
  asRecord,
8
8
  readNonEmptyString,
9
9
  requireApiKey,
10
10
  trimSnippet
11
11
  } from "./chunk-U4I3X7IN.js";
12
- import "./chunk-NENL6L6N.js";
12
+ import "./chunk-46OIVYHW.js";
13
13
  import {
14
14
  WebfoxError,
15
15
  httpError
@@ -21,6 +21,7 @@ var PROVIDER_IDS = [
21
21
  "serpbase",
22
22
  "serper",
23
23
  "sofya",
24
+ "tapline",
24
25
  "tavily",
25
26
  "valyu",
26
27
  "youcom"
@@ -6,21 +6,21 @@ import {
6
6
  } from "./chunk-6UC3ZBNK.js";
7
7
  import {
8
8
  configurationSchema
9
- } from "./chunk-DLFTRKAC.js";
9
+ } from "./chunk-VMIDLDYP.js";
10
10
  import {
11
11
  effectiveOptions,
12
12
  optionSchema,
13
13
  providers,
14
14
  selectProvider,
15
15
  validateConfiguredOptions
16
- } from "./chunk-U5KDSMG3.js";
16
+ } from "./chunk-EBKQHHCO.js";
17
17
  import {
18
18
  cancelProcessGroup,
19
19
  killProcessGroup
20
20
  } from "./chunk-ZVTVERW5.js";
21
21
  import {
22
22
  CAPABILITIES
23
- } from "./chunk-NENL6L6N.js";
23
+ } from "./chunk-46OIVYHW.js";
24
24
  import {
25
25
  WebfoxError,
26
26
  asWebfoxError
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CAPABILITIES
3
- } from "./chunk-NENL6L6N.js";
3
+ } from "./chunk-46OIVYHW.js";
4
4
  import {
5
5
  WebfoxError
6
6
  } from "./chunk-U4BLULLV.js";
@@ -633,7 +633,7 @@ var customProvider = defineProvider({
633
633
  retrySafe: false
634
634
  }
635
635
  },
636
- load: async () => (await import("./adapter-RUWBXPA7.js")).adapter
636
+ load: async () => (await import("./adapter-JQNYUBYZ.js")).adapter
637
637
  });
638
638
 
639
639
  // src/providers/exa/definition.ts
@@ -2059,7 +2059,7 @@ var serpbaseProvider = defineProvider({
2059
2059
  retrySafe: true
2060
2060
  }
2061
2061
  },
2062
- load: async () => (await import("./adapter-AAPIZHEU.js")).adapter
2062
+ load: async () => (await import("./adapter-T6UEERC7.js")).adapter
2063
2063
  });
2064
2064
 
2065
2065
  // src/providers/serper/definition.ts
@@ -2316,6 +2316,115 @@ var sofyaProvider = defineProvider({
2316
2316
  load: async () => (await import("./adapter-EXDS6465.js")).adapter
2317
2317
  });
2318
2318
 
2319
+ // src/providers/tapline/definition.ts
2320
+ var COUNTRIES = [
2321
+ "ar",
2322
+ "at",
2323
+ "au",
2324
+ "be",
2325
+ "br",
2326
+ "ca",
2327
+ "ch",
2328
+ "cl",
2329
+ "cn",
2330
+ "de",
2331
+ "dk",
2332
+ "es",
2333
+ "fi",
2334
+ "fr",
2335
+ "gb",
2336
+ "gr",
2337
+ "hk",
2338
+ "id",
2339
+ "in",
2340
+ "it",
2341
+ "jp",
2342
+ "kr",
2343
+ "mx",
2344
+ "my",
2345
+ "nl",
2346
+ "no",
2347
+ "nz",
2348
+ "ph",
2349
+ "pl",
2350
+ "pt",
2351
+ "ru",
2352
+ "sa",
2353
+ "se",
2354
+ "sg",
2355
+ "tr",
2356
+ "tw",
2357
+ "us",
2358
+ "za"
2359
+ ];
2360
+ var publishedDate = (description) => ({
2361
+ type: "string",
2362
+ pattern: "^\\d{4}-\\d{2}-\\d{2}$",
2363
+ description
2364
+ });
2365
+ var taplineProvider = defineProvider({
2366
+ id: "tapline",
2367
+ label: "Tapline",
2368
+ docsUrl: "https://tapline.sh/docs/brave-search",
2369
+ local: false,
2370
+ credentials: [{ name: "api", environmentVariable: "TAPLINE_API_KEY" }],
2371
+ fields: ["credentials", "baseUrl", "options"],
2372
+ defaults: {},
2373
+ credentialDefaults: {},
2374
+ capabilities: {
2375
+ search: {
2376
+ limits: { maxResults: 20 },
2377
+ options: {
2378
+ type: "object",
2379
+ properties: {
2380
+ country: {
2381
+ type: "string",
2382
+ enum: COUNTRIES,
2383
+ description: "Lowercase country code to search from, e.g. 'us' (default) or 'de'."
2384
+ },
2385
+ search_language: {
2386
+ type: "string",
2387
+ enum: ["en", "de", "es", "fr", "it", "ja", "pt", "zh"],
2388
+ description: "Language to rank results toward."
2389
+ },
2390
+ safe_search: {
2391
+ type: "string",
2392
+ enum: ["strict", "moderate", "off"],
2393
+ description: "Adult-content filter."
2394
+ },
2395
+ freshness: {
2396
+ type: "string",
2397
+ enum: ["any", "past_day", "past_week", "past_month", "past_year"],
2398
+ description: "Only pages from the past day, week, month, or year."
2399
+ },
2400
+ date_from: publishedDate(
2401
+ "Start of a published-date range as YYYY-MM-DD; requires date_to."
2402
+ ),
2403
+ date_to: publishedDate(
2404
+ "End of a published-date range as YYYY-MM-DD; requires date_from."
2405
+ ),
2406
+ goggle_url: {
2407
+ type: "string",
2408
+ pattern: "^https://(raw\\.githubusercontent\\.com/\\S{1,480}\\.goggles?|gist\\.githubusercontent\\.com/\\S{1,480}|gitlab\\.com/\\S{1,480}\\.goggles?)$",
2409
+ description: "Brave Goggle URL that re-ranks results: a .goggle file on raw.githubusercontent.com or gitlab.com, or a gist.githubusercontent.com URL. Goggles that Brave has not indexed are ignored."
2410
+ },
2411
+ spellcheck: {
2412
+ type: "boolean",
2413
+ description: "Correct misspelt queries (default true)."
2414
+ }
2415
+ },
2416
+ description: "Tapline search options."
2417
+ },
2418
+ promptGuidelines: [
2419
+ "Tapline returns ranked Brave web results with page excerpts; use web_contents to read selected sources in full.",
2420
+ "Use Tapline freshness (e.g. 'past_week') for recent results, date_from with date_to for a published-date range, and country for regional results."
2421
+ ],
2422
+ retrySafe: true
2423
+ }
2424
+ },
2425
+ load: async () => (await import("./adapter-RBSOVQCV.js")).adapter
2426
+ });
2427
+
2319
2428
  // src/providers/tavily/definition.ts
2320
2429
  var tavilyProvider = defineProvider({
2321
2430
  id: "tavily",
@@ -3254,6 +3363,7 @@ var providers = {
3254
3363
  serpbase: serpbaseProvider,
3255
3364
  serper: serperProvider,
3256
3365
  sofya: sofyaProvider,
3366
+ tapline: taplineProvider,
3257
3367
  tavily: tavilyProvider,
3258
3368
  valyu: valyuProvider,
3259
3369
  youcom: youcomProvider
@@ -0,0 +1,139 @@
1
+ // package.json
2
+ var package_default = {
3
+ name: "webfox",
4
+ version: "4.13.0",
5
+ description: "Search the web, extract pages, get grounded answers, and run deep research with the web CLI, a TypeScript library, and a pi extension. Bring your own providers and API keys.",
6
+ type: "module",
7
+ files: [
8
+ "dist",
9
+ "README.md",
10
+ "assets/webfox-lockup.png",
11
+ "assets/webfox-lockup-dark.png",
12
+ "docs/cli-experience.md",
13
+ "docs/provider.md",
14
+ "docs/reference.md",
15
+ "LICENSE",
16
+ "example-config.yaml",
17
+ "examples"
18
+ ],
19
+ keywords: [
20
+ "webfox",
21
+ "web-cli",
22
+ "typescript-library",
23
+ "pi-package",
24
+ "pi-extension",
25
+ "coding-agent",
26
+ "web-search",
27
+ "web-contents",
28
+ "web-answer",
29
+ "web-research",
30
+ "provider-routing",
31
+ "brave",
32
+ "cloudflare",
33
+ "custom",
34
+ "exa",
35
+ "firecrawl",
36
+ "gemini",
37
+ "linkup",
38
+ "ollama",
39
+ "openai",
40
+ "parallel",
41
+ "perplexity",
42
+ "serper",
43
+ "tavily",
44
+ "valyu"
45
+ ],
46
+ author: "mavam",
47
+ license: "MIT",
48
+ repository: {
49
+ type: "git",
50
+ url: "git+https://github.com/mavam/webfox.git"
51
+ },
52
+ engines: {
53
+ node: ">=22.12.0"
54
+ },
55
+ publishConfig: {
56
+ access: "public"
57
+ },
58
+ pi: {
59
+ extensions: [
60
+ "./dist/pi.js"
61
+ ]
62
+ },
63
+ bin: {
64
+ web: "./dist/cli.js"
65
+ },
66
+ main: "./dist/index.js",
67
+ types: "./dist/index.d.ts",
68
+ exports: {
69
+ ".": {
70
+ types: "./dist/index.d.ts",
71
+ import: "./dist/index.js"
72
+ },
73
+ "./pi": {
74
+ types: "./dist/pi.d.ts",
75
+ import: "./dist/pi.js"
76
+ },
77
+ "./durable": {
78
+ types: "./dist/durable.d.ts",
79
+ import: "./dist/durable.js"
80
+ },
81
+ "./config.schema.json": "./dist/config.schema.json"
82
+ },
83
+ scripts: {
84
+ build: "rm -rf dist && esbuild index=src/index.ts cli=src/cli.ts pi=src/pi.ts durable=src/durable.ts generate-schema=scripts/generate-schema.ts --bundle --splitting --format=esm --platform=node --target=node22 --packages=external --outdir=dist && node dist/generate-schema.js && biome format --write src/config.schema.json >&2 && rm dist/generate-schema.js && tsc --project tsconfig.build.json && cp src/config.schema.json dist/config.schema.json && chmod +x dist/cli.js",
85
+ prepare: "npm run build",
86
+ prepack: "npm run build",
87
+ check: "tsc --noEmit",
88
+ format: "biome format --write .",
89
+ "format:check": "biome format .",
90
+ "smoke:live": "npm run build && node scripts/live-smoke.mjs",
91
+ "smoke:package": "node scripts/package-smoke.mjs",
92
+ test: "vitest run",
93
+ "test:watch": "vitest"
94
+ },
95
+ dependencies: {
96
+ commander: "^15.1.0",
97
+ picocolors: "^1.1.1",
98
+ yaml: "^2.9.1"
99
+ },
100
+ devDependencies: {
101
+ "@biomejs/biome": "^2.6.10",
102
+ "@earendil-works/chord": "^1.8.0",
103
+ "@earendil-works/pi-ai": "^1.8.0",
104
+ "@earendil-works/pi-coding-agent": "^1.8.0",
105
+ "@earendil-works/pi-durable": "^1.8.0",
106
+ "@earendil-works/pi-tui": "^1.8.0",
107
+ "@types/node": "^26.6.11",
108
+ esbuild: "^0.28.2",
109
+ typescript: "^7.0.2",
110
+ vitest: "^5.1.2"
111
+ },
112
+ peerDependencies: {
113
+ "@earendil-works/pi-durable": "^1.6.0",
114
+ "@earendil-works/pi-coding-agent": "*",
115
+ "@earendil-works/pi-tui": "*",
116
+ typebox: "*"
117
+ },
118
+ peerDependenciesMeta: {
119
+ "@earendil-works/pi-durable": {
120
+ optional: true
121
+ },
122
+ "@earendil-works/pi-coding-agent": {
123
+ optional: true
124
+ },
125
+ "@earendil-works/pi-tui": {
126
+ optional: true
127
+ }
128
+ }
129
+ };
130
+
131
+ // src/package-metadata.ts
132
+ var PACKAGE_NAME = package_default.name;
133
+ var PACKAGE_VERSION = package_default.version;
134
+ var CONFIG_SCHEMA_URL = `https://unpkg.com/${PACKAGE_NAME}@latest/dist/config.schema.json`;
135
+
136
+ export {
137
+ PACKAGE_VERSION,
138
+ CONFIG_SCHEMA_URL
139
+ };
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-6RQGO727.js";
4
4
  import {
5
5
  createWebfox
6
- } from "./chunk-HHM4VFS6.js";
6
+ } from "./chunk-7NTO6AQX.js";
7
7
  import {
8
8
  PROVIDER_IDS,
9
9
  WEBFOX_ERROR_CODES
10
- } from "./chunk-NENL6L6N.js";
10
+ } from "./chunk-46OIVYHW.js";
11
11
 
12
12
  // src/document-schema.ts
13
13
  import { Type } from "typebox";
@@ -0,0 +1,111 @@
1
+ import {
2
+ optionSchema,
3
+ providers
4
+ } from "./chunk-EBKQHHCO.js";
5
+ import {
6
+ CONFIG_SCHEMA_URL
7
+ } from "./chunk-HZVTFUBC.js";
8
+ import {
9
+ CAPABILITIES
10
+ } from "./chunk-46OIVYHW.js";
11
+
12
+ // src/configuration/schema.ts
13
+ var text = { type: "string", minLength: 1 };
14
+ var object = (properties) => ({
15
+ type: "object",
16
+ additionalProperties: false,
17
+ properties
18
+ });
19
+ var source = {
20
+ oneOf: ["env", "value", "command"].map((key) => ({
21
+ ...object({
22
+ [key]: key === "command" ? { type: "array", minItems: 1, items: text } : text
23
+ }),
24
+ required: [key]
25
+ }))
26
+ };
27
+ var sourceMap = { type: "object", additionalProperties: source };
28
+ var command = {
29
+ ...object({
30
+ argv: { type: "array", minItems: 1, items: text },
31
+ cwd: text,
32
+ env: sourceMap
33
+ }),
34
+ required: ["argv"]
35
+ };
36
+ var positive = { type: "integer", minimum: 1 };
37
+ var timeout = { ...positive, maximum: 2147483647 };
38
+ var fields = {
39
+ credentials: sourceMap,
40
+ baseUrl: text,
41
+ accountId: source,
42
+ commands: object(
43
+ Object.fromEntries(CAPABILITIES.map((capability) => [capability, command]))
44
+ )
45
+ };
46
+ var configurationSchema = {
47
+ $schema: "https://json-schema.org/draft/2020-12/schema",
48
+ $id: CONFIG_SCHEMA_URL,
49
+ title: "webfox configuration",
50
+ ...object({
51
+ $schema: text,
52
+ defaults: object(
53
+ Object.fromEntries(
54
+ CAPABILITIES.map((capability) => [
55
+ capability,
56
+ object({
57
+ provider: {
58
+ enum: Object.values(providers).filter((provider) => provider.capabilities[capability]).map((provider) => provider.id)
59
+ },
60
+ ...capability === "search" ? { maxResults: positive } : {}
61
+ })
62
+ ])
63
+ )
64
+ ),
65
+ execution: object({
66
+ timeoutMs: timeout,
67
+ researchTimeoutMs: timeout,
68
+ retries: { type: "integer", minimum: 0 },
69
+ retryDelayMs: { type: "integer", minimum: 0 },
70
+ concurrency: positive
71
+ }),
72
+ providers: object(
73
+ Object.fromEntries(
74
+ Object.values(providers).map((provider) => [
75
+ provider.id,
76
+ object(
77
+ Object.fromEntries(
78
+ provider.fields.map((field) => [
79
+ field,
80
+ field === "options" ? object(
81
+ Object.fromEntries(
82
+ CAPABILITIES.filter(
83
+ (capability) => provider.capabilities[capability]
84
+ ).map((capability) => [
85
+ capability,
86
+ optionSchema(provider, capability, "defaults") ?? {
87
+ type: "object",
88
+ additionalProperties: provider.id === "custom"
89
+ }
90
+ ])
91
+ )
92
+ ) : field === "credentials" ? object(
93
+ Object.fromEntries(
94
+ provider.credentials.map((credential) => [
95
+ credential.name,
96
+ source
97
+ ])
98
+ )
99
+ ) : fields[field]
100
+ ])
101
+ )
102
+ )
103
+ ])
104
+ )
105
+ )
106
+ })
107
+ };
108
+
109
+ export {
110
+ configurationSchema
111
+ };
package/dist/cli.js CHANGED
@@ -8,21 +8,22 @@ import {
8
8
  redactConfig,
9
9
  resolveConfigPath,
10
10
  setCapabilityDefault
11
- } from "./chunk-HHM4VFS6.js";
11
+ } from "./chunk-7NTO6AQX.js";
12
12
  import {
13
13
  formatDuration
14
14
  } from "./chunk-6UC3ZBNK.js";
15
- import {
16
- PACKAGE_VERSION
17
- } from "./chunk-DLFTRKAC.js";
15
+ import "./chunk-VMIDLDYP.js";
18
16
  import {
19
17
  validateConfiguredOptions
20
- } from "./chunk-U5KDSMG3.js";
18
+ } from "./chunk-EBKQHHCO.js";
19
+ import {
20
+ PACKAGE_VERSION
21
+ } from "./chunk-HZVTFUBC.js";
21
22
  import "./chunk-ZVTVERW5.js";
22
23
  import {
23
24
  CAPABILITIES,
24
25
  PROVIDER_IDS
25
- } from "./chunk-NENL6L6N.js";
26
+ } from "./chunk-46OIVYHW.js";
26
27
  import {
27
28
  WebfoxError
28
29
  } from "./chunk-U4BLULLV.js";
@@ -32,6 +32,7 @@
32
32
  "serpbase",
33
33
  "serper",
34
34
  "sofya",
35
+ "tapline",
35
36
  "tavily",
36
37
  "valyu",
37
38
  "youcom"
@@ -3973,6 +3974,160 @@
3973
3974
  }
3974
3975
  }
3975
3976
  },
3977
+ "tapline": {
3978
+ "type": "object",
3979
+ "additionalProperties": false,
3980
+ "properties": {
3981
+ "credentials": {
3982
+ "type": "object",
3983
+ "additionalProperties": false,
3984
+ "properties": {
3985
+ "api": {
3986
+ "oneOf": [
3987
+ {
3988
+ "type": "object",
3989
+ "additionalProperties": false,
3990
+ "properties": {
3991
+ "env": {
3992
+ "type": "string",
3993
+ "minLength": 1
3994
+ }
3995
+ },
3996
+ "required": ["env"]
3997
+ },
3998
+ {
3999
+ "type": "object",
4000
+ "additionalProperties": false,
4001
+ "properties": {
4002
+ "value": {
4003
+ "type": "string",
4004
+ "minLength": 1
4005
+ }
4006
+ },
4007
+ "required": ["value"]
4008
+ },
4009
+ {
4010
+ "type": "object",
4011
+ "additionalProperties": false,
4012
+ "properties": {
4013
+ "command": {
4014
+ "type": "array",
4015
+ "minItems": 1,
4016
+ "items": {
4017
+ "type": "string",
4018
+ "minLength": 1
4019
+ }
4020
+ }
4021
+ },
4022
+ "required": ["command"]
4023
+ }
4024
+ ]
4025
+ }
4026
+ }
4027
+ },
4028
+ "baseUrl": {
4029
+ "type": "string",
4030
+ "minLength": 1
4031
+ },
4032
+ "options": {
4033
+ "type": "object",
4034
+ "additionalProperties": false,
4035
+ "properties": {
4036
+ "search": {
4037
+ "type": "object",
4038
+ "properties": {
4039
+ "country": {
4040
+ "type": "string",
4041
+ "enum": [
4042
+ "ar",
4043
+ "at",
4044
+ "au",
4045
+ "be",
4046
+ "br",
4047
+ "ca",
4048
+ "ch",
4049
+ "cl",
4050
+ "cn",
4051
+ "de",
4052
+ "dk",
4053
+ "es",
4054
+ "fi",
4055
+ "fr",
4056
+ "gb",
4057
+ "gr",
4058
+ "hk",
4059
+ "id",
4060
+ "in",
4061
+ "it",
4062
+ "jp",
4063
+ "kr",
4064
+ "mx",
4065
+ "my",
4066
+ "nl",
4067
+ "no",
4068
+ "nz",
4069
+ "ph",
4070
+ "pl",
4071
+ "pt",
4072
+ "ru",
4073
+ "sa",
4074
+ "se",
4075
+ "sg",
4076
+ "tr",
4077
+ "tw",
4078
+ "us",
4079
+ "za"
4080
+ ],
4081
+ "description": "Lowercase country code to search from, e.g. 'us' (default) or 'de'."
4082
+ },
4083
+ "search_language": {
4084
+ "type": "string",
4085
+ "enum": ["en", "de", "es", "fr", "it", "ja", "pt", "zh"],
4086
+ "description": "Language to rank results toward."
4087
+ },
4088
+ "safe_search": {
4089
+ "type": "string",
4090
+ "enum": ["strict", "moderate", "off"],
4091
+ "description": "Adult-content filter."
4092
+ },
4093
+ "freshness": {
4094
+ "type": "string",
4095
+ "enum": [
4096
+ "any",
4097
+ "past_day",
4098
+ "past_week",
4099
+ "past_month",
4100
+ "past_year"
4101
+ ],
4102
+ "description": "Only pages from the past day, week, month, or year."
4103
+ },
4104
+ "date_from": {
4105
+ "type": "string",
4106
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
4107
+ "description": "Start of a published-date range as YYYY-MM-DD; requires date_to."
4108
+ },
4109
+ "date_to": {
4110
+ "type": "string",
4111
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
4112
+ "description": "End of a published-date range as YYYY-MM-DD; requires date_from."
4113
+ },
4114
+ "goggle_url": {
4115
+ "type": "string",
4116
+ "pattern": "^https://(raw\\.githubusercontent\\.com/\\S{1,480}\\.goggles?|gist\\.githubusercontent\\.com/\\S{1,480}|gitlab\\.com/\\S{1,480}\\.goggles?)$",
4117
+ "description": "Brave Goggle URL that re-ranks results: a .goggle file on raw.githubusercontent.com or gitlab.com, or a gist.githubusercontent.com URL. Goggles that Brave has not indexed are ignored."
4118
+ },
4119
+ "spellcheck": {
4120
+ "type": "boolean",
4121
+ "description": "Correct misspelt queries (default true)."
4122
+ }
4123
+ },
4124
+ "description": "Tapline search options.",
4125
+ "additionalProperties": false
4126
+ }
4127
+ }
4128
+ }
4129
+ }
4130
+ },
3976
4131
  "tavily": {
3977
4132
  "type": "object",
3978
4133
  "additionalProperties": false,
@@ -8,7 +8,7 @@ export declare const DOCUMENT_SCHEMAS: {
8
8
  readonly search: Type.TObject<{
9
9
  schemaVersion: Type.TLiteral<1>;
10
10
  capability: Type.TLiteral<"search">;
11
- provider: Type.TEnum<["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tavily", "valyu", "youcom"]>;
11
+ provider: Type.TEnum<["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tapline", "tavily", "valyu", "youcom"]>;
12
12
  status: Type.TEnum<["ok", "partial"]>;
13
13
  results: Type.TArray<Type.TUnion<[Type.TObject<{
14
14
  input: Type.TString;
@@ -35,7 +35,7 @@ export declare const DOCUMENT_SCHEMAS: {
35
35
  readonly contents: Type.TObject<{
36
36
  schemaVersion: Type.TLiteral<1>;
37
37
  capability: Type.TLiteral<"contents">;
38
- provider: Type.TEnum<["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tavily", "valyu", "youcom"]>;
38
+ provider: Type.TEnum<["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tapline", "tavily", "valyu", "youcom"]>;
39
39
  status: Type.TEnum<["ok", "partial"]>;
40
40
  results: Type.TArray<Type.TUnion<[Type.TObject<{
41
41
  input: Type.TString;
@@ -59,7 +59,7 @@ export declare const DOCUMENT_SCHEMAS: {
59
59
  readonly answer: Type.TObject<{
60
60
  schemaVersion: Type.TLiteral<1>;
61
61
  capability: Type.TLiteral<"answer">;
62
- provider: Type.TEnum<["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tavily", "valyu", "youcom"]>;
62
+ provider: Type.TEnum<["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tapline", "tavily", "valyu", "youcom"]>;
63
63
  status: Type.TEnum<["ok", "partial"]>;
64
64
  results: Type.TArray<Type.TUnion<[Type.TObject<{
65
65
  input: Type.TString;
@@ -88,7 +88,7 @@ export declare const DOCUMENT_SCHEMAS: {
88
88
  readonly research: Type.TObject<{
89
89
  schemaVersion: Type.TLiteral<1>;
90
90
  capability: Type.TLiteral<"research">;
91
- provider: Type.TEnum<["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tavily", "valyu", "youcom"]>;
91
+ provider: Type.TEnum<["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tapline", "tavily", "valyu", "youcom"]>;
92
92
  status: Type.TEnum<["ok", "partial"]>;
93
93
  results: Type.TArray<Type.TUnion<[Type.TObject<{
94
94
  input: Type.TString;
package/dist/domain.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare const CAPABILITIES: readonly ["search", "contents", "answer", "research"];
2
2
  export type Capability = (typeof CAPABILITIES)[number];
3
- export declare const PROVIDER_IDS: readonly ["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tavily", "valyu", "youcom"];
3
+ export declare const PROVIDER_IDS: readonly ["brave", "cloudflare", "custom", "exa", "firecrawl", "gemini", "keenable", "linkup", "ollama", "openai", "parallel", "perplexity", "serpbase", "serper", "sofya", "tapline", "tavily", "valyu", "youcom"];
4
4
  export type ProviderId = (typeof PROVIDER_IDS)[number];
5
5
  export declare const WEBFOX_ERROR_CODES: readonly ["INVALID_CONFIG", "INVALID_INPUT", "PROVIDER_UNAVAILABLE", "PROVIDER_FAILURE", "PARTIAL_BATCH", "TIMEOUT", "CANCELLED"];
6
6
  export type WebfoxErrorCode = (typeof WEBFOX_ERROR_CODES)[number];
package/dist/durable.js CHANGED
@@ -7,16 +7,17 @@ import {
7
7
  formatToolOutput,
8
8
  prepareToolArguments,
9
9
  webToolParameters
10
- } from "./chunk-SJDHTVIF.js";
10
+ } from "./chunk-V4SQCDI3.js";
11
11
  import "./chunk-6RQGO727.js";
12
- import "./chunk-HHM4VFS6.js";
12
+ import "./chunk-7NTO6AQX.js";
13
13
  import "./chunk-6UC3ZBNK.js";
14
- import "./chunk-DLFTRKAC.js";
15
- import "./chunk-U5KDSMG3.js";
14
+ import "./chunk-VMIDLDYP.js";
15
+ import "./chunk-EBKQHHCO.js";
16
+ import "./chunk-HZVTFUBC.js";
16
17
  import "./chunk-ZVTVERW5.js";
17
18
  import {
18
19
  CAPABILITIES
19
- } from "./chunk-NENL6L6N.js";
20
+ } from "./chunk-46OIVYHW.js";
20
21
  import "./chunk-U4BLULLV.js";
21
22
 
22
23
  // src/durable.ts
package/dist/index.js CHANGED
@@ -6,20 +6,21 @@ import {
6
6
  resolveConfigPath,
7
7
  setCapabilityDefault,
8
8
  validateConfig
9
- } from "./chunk-HHM4VFS6.js";
9
+ } from "./chunk-7NTO6AQX.js";
10
10
  import "./chunk-6UC3ZBNK.js";
11
- import {
12
- CONFIG_SCHEMA_URL
13
- } from "./chunk-DLFTRKAC.js";
11
+ import "./chunk-VMIDLDYP.js";
14
12
  import {
15
13
  validateConfiguredOptions
16
- } from "./chunk-U5KDSMG3.js";
14
+ } from "./chunk-EBKQHHCO.js";
15
+ import {
16
+ CONFIG_SCHEMA_URL
17
+ } from "./chunk-HZVTFUBC.js";
17
18
  import "./chunk-ZVTVERW5.js";
18
19
  import {
19
20
  CAPABILITIES,
20
21
  PROVIDER_IDS,
21
22
  WEBFOX_ERROR_CODES
22
- } from "./chunk-NENL6L6N.js";
23
+ } from "./chunk-46OIVYHW.js";
23
24
  import {
24
25
  WebfoxError
25
26
  } from "./chunk-U4BLULLV.js";
package/dist/pi.js CHANGED
@@ -7,20 +7,21 @@ import {
7
7
  formatToolOutput,
8
8
  prepareToolArguments,
9
9
  webToolParameters
10
- } from "./chunk-SJDHTVIF.js";
10
+ } from "./chunk-V4SQCDI3.js";
11
11
  import {
12
12
  emptyResultText
13
13
  } from "./chunk-6RQGO727.js";
14
14
  import {
15
15
  resolveConfigPath
16
- } from "./chunk-HHM4VFS6.js";
16
+ } from "./chunk-7NTO6AQX.js";
17
17
  import "./chunk-6UC3ZBNK.js";
18
- import "./chunk-DLFTRKAC.js";
19
- import "./chunk-U5KDSMG3.js";
18
+ import "./chunk-VMIDLDYP.js";
19
+ import "./chunk-EBKQHHCO.js";
20
+ import "./chunk-HZVTFUBC.js";
20
21
  import "./chunk-ZVTVERW5.js";
21
22
  import {
22
23
  CAPABILITIES
23
- } from "./chunk-NENL6L6N.js";
24
+ } from "./chunk-46OIVYHW.js";
24
25
  import {
25
26
  WebfoxError
26
27
  } from "./chunk-U4BLULLV.js";
@@ -94,6 +94,7 @@ export interface ProviderConfigMap {
94
94
  serpbase: import("./serpbase/types.js").SerpBase;
95
95
  serper: import("./serper/types.js").Serper;
96
96
  sofya: HttpProvider;
97
+ tapline: HttpProvider;
97
98
  tavily: HttpProvider;
98
99
  valyu: HttpProvider;
99
100
  youcom: HttpProvider;
@@ -14,6 +14,7 @@ export declare const providers: {
14
14
  readonly serpbase: import("./definition.js").ProviderDefinitionFor<"serpbase">;
15
15
  readonly serper: import("./definition.js").ProviderDefinitionFor<"serper">;
16
16
  readonly sofya: import("./definition.js").ProviderDefinitionFor<"sofya">;
17
+ readonly tapline: import("./definition.js").ProviderDefinitionFor<"tapline">;
17
18
  readonly tavily: import("./definition.js").ProviderDefinitionFor<"tavily">;
18
19
  readonly valyu: import("./definition.js").ProviderDefinitionFor<"valyu">;
19
20
  readonly youcom: import("./definition.js").ProviderDefinitionFor<"youcom">;
@@ -0,0 +1,4 @@
1
+ import type { HttpProvider, ProviderContext, ProviderRequest, SearchResponse } from "../contract.js";
2
+ export declare const adapter: {
3
+ search(request: ProviderRequest<"search">, config: HttpProvider, context: ProviderContext): Promise<SearchResponse>;
4
+ };
@@ -0,0 +1 @@
1
+ export declare const taplineProvider: import("../definition.js").ProviderDefinitionFor<"tapline">;
package/docs/provider.md CHANGED
@@ -367,6 +367,32 @@ Sofya calls can take up to 60 seconds, so search, contents, and answers have a
367
367
  90-second overall deadline by default. An explicit CLI `--timeout`, library
368
368
  `timeoutMs`, or YAML `execution.timeoutMs` takes precedence.
369
369
 
370
+ ## Tapline
371
+
372
+ Supports search. Set `TAPLINE_API_KEY`, or configure
373
+ `providers.tapline.credentials.api` with a credential source. No defaults change
374
+ unless you select Tapline.
375
+
376
+ ```sh
377
+ web search "Node.js release notes" --provider tapline --freshness past_month
378
+ web config default search tapline
379
+ ```
380
+
381
+ Search returns [Brave](https://search.brave.com) web results through
382
+ [Tapline](https://tapline.sh) and caps `maxResults` at 20, one Tapline page.
383
+ Native options include `country` (a lowercase country code such as `us` or
384
+ `de`), `search_language`, `safe_search` (`strict`, `moderate`, or `off`),
385
+ `freshness` (`any`, `past_day`, `past_week`, `past_month`, or `past_year`), a
386
+ published-date range with `date_from` and `date_to` (`YYYY-MM-DD`, set both),
387
+ `goggle_url` to re-rank results with a [Brave Goggle](https://search.brave.com/goggles),
388
+ and `spellcheck`. Each search spends Tapline credits; the
389
+ [API reference](https://tapline.sh/docs/brave-search) lists the costs.
390
+
391
+ ```sh
392
+ web search "WebAssembly runtimes" --provider tapline \
393
+ --date-from 2026-01-01 --date-to 2026-03-31
394
+ ```
395
+
370
396
  ## You.com
371
397
 
372
398
  Supports search. Set `YDC_API_KEY`; the library, CLI, and Pi extension use the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webfox",
3
- "version": "4.12.0",
3
+ "version": "4.13.0",
4
4
  "description": "Search the web, extract pages, get grounded answers, and run deep research with the web CLI, a TypeScript library, and a pi extension. Bring your own providers and API keys.",
5
5
  "type": "module",
6
6
  "files": [
@@ -97,16 +97,16 @@
97
97
  "yaml": "^2.9.1"
98
98
  },
99
99
  "devDependencies": {
100
- "@biomejs/biome": "^2.6.8",
101
- "@earendil-works/chord": "^1.6.0",
102
- "@earendil-works/pi-ai": "^1.6.0",
103
- "@earendil-works/pi-coding-agent": "^1.6.0",
104
- "@earendil-works/pi-durable": "^1.6.0",
105
- "@earendil-works/pi-tui": "^1.6.0",
106
- "@types/node": "^26.6.6",
100
+ "@biomejs/biome": "^2.6.10",
101
+ "@earendil-works/chord": "^1.8.0",
102
+ "@earendil-works/pi-ai": "^1.8.0",
103
+ "@earendil-works/pi-coding-agent": "^1.8.0",
104
+ "@earendil-works/pi-durable": "^1.8.0",
105
+ "@earendil-works/pi-tui": "^1.8.0",
106
+ "@types/node": "^26.6.11",
107
107
  "esbuild": "^0.28.2",
108
108
  "typescript": "^7.0.2",
109
- "vitest": "^5.1.1"
109
+ "vitest": "^5.1.2"
110
110
  },
111
111
  "peerDependencies": {
112
112
  "@earendil-works/pi-durable": "^1.6.0",
@@ -1,245 +0,0 @@
1
- import {
2
- optionSchema,
3
- providers
4
- } from "./chunk-U5KDSMG3.js";
5
- import {
6
- CAPABILITIES
7
- } from "./chunk-NENL6L6N.js";
8
-
9
- // package.json
10
- var package_default = {
11
- name: "webfox",
12
- version: "4.12.0",
13
- description: "Search the web, extract pages, get grounded answers, and run deep research with the web CLI, a TypeScript library, and a pi extension. Bring your own providers and API keys.",
14
- type: "module",
15
- files: [
16
- "dist",
17
- "README.md",
18
- "assets/webfox-lockup.png",
19
- "assets/webfox-lockup-dark.png",
20
- "docs/cli-experience.md",
21
- "docs/provider.md",
22
- "docs/reference.md",
23
- "LICENSE",
24
- "example-config.yaml",
25
- "examples"
26
- ],
27
- keywords: [
28
- "webfox",
29
- "web-cli",
30
- "typescript-library",
31
- "pi-package",
32
- "pi-extension",
33
- "coding-agent",
34
- "web-search",
35
- "web-contents",
36
- "web-answer",
37
- "web-research",
38
- "provider-routing",
39
- "brave",
40
- "cloudflare",
41
- "custom",
42
- "exa",
43
- "firecrawl",
44
- "gemini",
45
- "linkup",
46
- "ollama",
47
- "openai",
48
- "parallel",
49
- "perplexity",
50
- "serper",
51
- "tavily",
52
- "valyu"
53
- ],
54
- author: "mavam",
55
- license: "MIT",
56
- repository: {
57
- type: "git",
58
- url: "git+https://github.com/mavam/webfox.git"
59
- },
60
- engines: {
61
- node: ">=22.12.0"
62
- },
63
- publishConfig: {
64
- access: "public"
65
- },
66
- pi: {
67
- extensions: [
68
- "./dist/pi.js"
69
- ]
70
- },
71
- bin: {
72
- web: "./dist/cli.js"
73
- },
74
- main: "./dist/index.js",
75
- types: "./dist/index.d.ts",
76
- exports: {
77
- ".": {
78
- types: "./dist/index.d.ts",
79
- import: "./dist/index.js"
80
- },
81
- "./pi": {
82
- types: "./dist/pi.d.ts",
83
- import: "./dist/pi.js"
84
- },
85
- "./durable": {
86
- types: "./dist/durable.d.ts",
87
- import: "./dist/durable.js"
88
- },
89
- "./config.schema.json": "./dist/config.schema.json"
90
- },
91
- scripts: {
92
- build: "rm -rf dist && esbuild index=src/index.ts cli=src/cli.ts pi=src/pi.ts durable=src/durable.ts generate-schema=scripts/generate-schema.ts --bundle --splitting --format=esm --platform=node --target=node22 --packages=external --outdir=dist && node dist/generate-schema.js && biome format --write src/config.schema.json >&2 && rm dist/generate-schema.js && tsc --project tsconfig.build.json && cp src/config.schema.json dist/config.schema.json && chmod +x dist/cli.js",
93
- prepare: "npm run build",
94
- prepack: "npm run build",
95
- check: "tsc --noEmit",
96
- format: "biome format --write .",
97
- "format:check": "biome format .",
98
- "smoke:live": "npm run build && node scripts/live-smoke.mjs",
99
- "smoke:package": "node scripts/package-smoke.mjs",
100
- test: "vitest run",
101
- "test:watch": "vitest"
102
- },
103
- dependencies: {
104
- commander: "^15.1.0",
105
- picocolors: "^1.1.1",
106
- yaml: "^2.9.1"
107
- },
108
- devDependencies: {
109
- "@biomejs/biome": "^2.6.8",
110
- "@earendil-works/chord": "^1.6.0",
111
- "@earendil-works/pi-ai": "^1.6.0",
112
- "@earendil-works/pi-coding-agent": "^1.6.0",
113
- "@earendil-works/pi-durable": "^1.6.0",
114
- "@earendil-works/pi-tui": "^1.6.0",
115
- "@types/node": "^26.6.6",
116
- esbuild: "^0.28.2",
117
- typescript: "^7.0.2",
118
- vitest: "^5.1.1"
119
- },
120
- peerDependencies: {
121
- "@earendil-works/pi-durable": "^1.6.0",
122
- "@earendil-works/pi-coding-agent": "*",
123
- "@earendil-works/pi-tui": "*",
124
- typebox: "*"
125
- },
126
- peerDependenciesMeta: {
127
- "@earendil-works/pi-durable": {
128
- optional: true
129
- },
130
- "@earendil-works/pi-coding-agent": {
131
- optional: true
132
- },
133
- "@earendil-works/pi-tui": {
134
- optional: true
135
- }
136
- }
137
- };
138
-
139
- // src/package-metadata.ts
140
- var PACKAGE_NAME = package_default.name;
141
- var PACKAGE_VERSION = package_default.version;
142
- var CONFIG_SCHEMA_URL = `https://unpkg.com/${PACKAGE_NAME}@latest/dist/config.schema.json`;
143
-
144
- // src/configuration/schema.ts
145
- var text = { type: "string", minLength: 1 };
146
- var object = (properties) => ({
147
- type: "object",
148
- additionalProperties: false,
149
- properties
150
- });
151
- var source = {
152
- oneOf: ["env", "value", "command"].map((key) => ({
153
- ...object({
154
- [key]: key === "command" ? { type: "array", minItems: 1, items: text } : text
155
- }),
156
- required: [key]
157
- }))
158
- };
159
- var sourceMap = { type: "object", additionalProperties: source };
160
- var command = {
161
- ...object({
162
- argv: { type: "array", minItems: 1, items: text },
163
- cwd: text,
164
- env: sourceMap
165
- }),
166
- required: ["argv"]
167
- };
168
- var positive = { type: "integer", minimum: 1 };
169
- var timeout = { ...positive, maximum: 2147483647 };
170
- var fields = {
171
- credentials: sourceMap,
172
- baseUrl: text,
173
- accountId: source,
174
- commands: object(
175
- Object.fromEntries(CAPABILITIES.map((capability) => [capability, command]))
176
- )
177
- };
178
- var configurationSchema = {
179
- $schema: "https://json-schema.org/draft/2020-12/schema",
180
- $id: CONFIG_SCHEMA_URL,
181
- title: "webfox configuration",
182
- ...object({
183
- $schema: text,
184
- defaults: object(
185
- Object.fromEntries(
186
- CAPABILITIES.map((capability) => [
187
- capability,
188
- object({
189
- provider: {
190
- enum: Object.values(providers).filter((provider) => provider.capabilities[capability]).map((provider) => provider.id)
191
- },
192
- ...capability === "search" ? { maxResults: positive } : {}
193
- })
194
- ])
195
- )
196
- ),
197
- execution: object({
198
- timeoutMs: timeout,
199
- researchTimeoutMs: timeout,
200
- retries: { type: "integer", minimum: 0 },
201
- retryDelayMs: { type: "integer", minimum: 0 },
202
- concurrency: positive
203
- }),
204
- providers: object(
205
- Object.fromEntries(
206
- Object.values(providers).map((provider) => [
207
- provider.id,
208
- object(
209
- Object.fromEntries(
210
- provider.fields.map((field) => [
211
- field,
212
- field === "options" ? object(
213
- Object.fromEntries(
214
- CAPABILITIES.filter(
215
- (capability) => provider.capabilities[capability]
216
- ).map((capability) => [
217
- capability,
218
- optionSchema(provider, capability, "defaults") ?? {
219
- type: "object",
220
- additionalProperties: provider.id === "custom"
221
- }
222
- ])
223
- )
224
- ) : field === "credentials" ? object(
225
- Object.fromEntries(
226
- provider.credentials.map((credential) => [
227
- credential.name,
228
- source
229
- ])
230
- )
231
- ) : fields[field]
232
- ])
233
- )
234
- )
235
- ])
236
- )
237
- )
238
- })
239
- };
240
-
241
- export {
242
- PACKAGE_VERSION,
243
- CONFIG_SCHEMA_URL,
244
- configurationSchema
245
- };