web-access-cli 0.1.0 → 0.3.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.
Files changed (41) hide show
  1. package/README.md +54 -55
  2. package/README_CN.md +55 -54
  3. package/THIRD_PARTY_NOTICES.md +15 -0
  4. package/dist/cli-output.js +18 -0
  5. package/dist/cli-output.js.map +1 -0
  6. package/dist/cli.js +44 -6
  7. package/dist/cli.js.map +1 -1
  8. package/dist/config/config.js +76 -15
  9. package/dist/config/config.js.map +1 -1
  10. package/dist/config/edit.js +5 -94
  11. package/dist/config/edit.js.map +1 -1
  12. package/dist/config/file.js +97 -0
  13. package/dist/config/file.js.map +1 -0
  14. package/dist/config/provider-order.js +55 -0
  15. package/dist/config/provider-order.js.map +1 -0
  16. package/dist/core/diagnostics.js +7 -6
  17. package/dist/core/diagnostics.js.map +1 -1
  18. package/dist/core/errors.js.map +1 -1
  19. package/dist/core/provider-order.js +9 -0
  20. package/dist/core/provider-order.js.map +1 -0
  21. package/dist/core/router.js +157 -41
  22. package/dist/core/router.js.map +1 -1
  23. package/dist/core/schema.js +86 -10
  24. package/dist/core/schema.js.map +1 -1
  25. package/dist/core/types.js +6 -0
  26. package/dist/core/types.js.map +1 -1
  27. package/dist/providers/anysearch.js +15 -26
  28. package/dist/providers/anysearch.js.map +1 -1
  29. package/dist/providers/bocha.js +177 -0
  30. package/dist/providers/bocha.js.map +1 -0
  31. package/dist/providers/common.js.map +1 -1
  32. package/dist/providers/deepseek.js +140 -0
  33. package/dist/providers/deepseek.js.map +1 -0
  34. package/dist/providers/registry.js +4 -0
  35. package/dist/providers/registry.js.map +1 -1
  36. package/dist/transport/http.js +1 -0
  37. package/dist/transport/http.js.map +1 -1
  38. package/dist/version.js +1 -1
  39. package/package.json +66 -60
  40. package/schemas/config.schema.json +10 -0
  41. package/schemas/output.schema.json +1350 -331
package/package.json CHANGED
@@ -1,61 +1,67 @@
1
1
  {
2
- "name": "web-access-cli",
3
- "version": "0.1.0",
4
- "description": "Agent-neutral web search and content extraction CLI",
5
- "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/Juexe/web-access-cli.git"
9
- },
10
- "homepage": "https://github.com/Juexe/web-access-cli#readme",
11
- "bugs": {
12
- "url": "https://github.com/Juexe/web-access-cli/issues"
13
- },
14
- "keywords": [
15
- "cli",
16
- "web-search",
17
- "content-extraction",
18
- "agent"
19
- ],
20
- "type": "module",
21
- "bin": {
22
- "web-access": "./dist/cli.js"
23
- },
24
- "files": [
25
- "dist",
26
- "schemas",
27
- "README.md",
28
- "README_CN.md",
29
- "LICENSE",
30
- "THIRD_PARTY_NOTICES.md"
31
- ],
32
- "engines": {
33
- "node": ">=22.19.0"
34
- },
35
- "packageManager": "pnpm@11.16.0",
36
- "scripts": {
37
- "build": "tsc -p tsconfig.build.json && node scripts/write-schemas.mjs",
38
- "typecheck": "tsc -p tsconfig.json --noEmit",
39
- "test": "tsx --test test/**/*.test.ts",
40
- "lint": "biome check .",
41
- "format": "biome format --write .",
42
- "check": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",
43
- "pack:check": "pnpm build && pnpm pack --pack-destination .artifacts"
44
- },
45
- "dependencies": {
46
- "@mozilla/readability": "^0.6.0",
47
- "commander": "^15.0.0",
48
- "linkedom": "^0.18.12",
49
- "open": "^11.0.0",
50
- "turndown": "^7.2.0",
51
- "typebox": "^1.3.11",
52
- "undici": "^8.10.0"
53
- },
54
- "devDependencies": {
55
- "@biomejs/biome": "^2.5.7",
56
- "@types/node": "^24.0.0",
57
- "@types/turndown": "^5.0.6",
58
- "tsx": "^4.20.0",
59
- "typescript": "^5.9.0"
60
- }
61
- }
2
+ "name": "web-access-cli",
3
+ "version": "0.3.0",
4
+ "description": "Agent-neutral web search and content extraction CLI",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/juexe/web-access-cli.git"
9
+ },
10
+ "homepage": "https://github.com/juexe/web-access-cli#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/juexe/web-access-cli/issues"
13
+ },
14
+ "keywords": [
15
+ "cli",
16
+ "web-search",
17
+ "content-extraction",
18
+ "agent"
19
+ ],
20
+ "type": "module",
21
+ "bin": {
22
+ "web-access": "dist/cli.js"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "schemas",
27
+ "README.md",
28
+ "README_CN.md",
29
+ "LICENSE",
30
+ "THIRD_PARTY_NOTICES.md"
31
+ ],
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "registry": "https://registry.npmjs.org/"
35
+ },
36
+ "engines": {
37
+ "node": ">=22.19.0"
38
+ },
39
+ "dependencies": {
40
+ "@mozilla/readability": "^0.6.0",
41
+ "commander": "^15.0.0",
42
+ "jsonc-parser": "^3.3.1",
43
+ "linkedom": "^0.18.12",
44
+ "open": "^11.0.0",
45
+ "turndown": "^7.2.0",
46
+ "typebox": "^1.3.11",
47
+ "undici": "^8.10.0",
48
+ "write-file-atomic": "^7.0.1"
49
+ },
50
+ "devDependencies": {
51
+ "@biomejs/biome": "^2.5.7",
52
+ "@types/node": "~22.19.0",
53
+ "@types/turndown": "^5.0.6",
54
+ "@types/write-file-atomic": "^4.0.3",
55
+ "tsx": "^4.20.0",
56
+ "typescript": "^7.0.2"
57
+ },
58
+ "scripts": {
59
+ "build": "tsc -p tsconfig.build.json && node scripts/write-schemas.mjs",
60
+ "typecheck": "tsc -p tsconfig.json --noEmit",
61
+ "test": "tsx --test test/**/*.test.ts",
62
+ "lint": "biome check .",
63
+ "format": "biome format --write .",
64
+ "check": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",
65
+ "pack:check": "pnpm pack --pack-destination .artifacts"
66
+ }
67
+ }
@@ -55,6 +55,10 @@
55
55
  "type": "string",
56
56
  "const": "exa"
57
57
  },
58
+ {
59
+ "type": "string",
60
+ "const": "bocha"
61
+ },
58
62
  {
59
63
  "type": "string",
60
64
  "const": "brave"
@@ -74,6 +78,10 @@
74
78
  {
75
79
  "type": "string",
76
80
  "const": "http"
81
+ },
82
+ {
83
+ "type": "string",
84
+ "const": "deepseek"
77
85
  }
78
86
  ]
79
87
  }
@@ -156,6 +164,7 @@
156
164
  "pattern": "^[a-z][a-z0-9_-]{0,63}$"
157
165
  }
158
166
  },
167
+ "_providers": {},
159
168
  "limit": {
160
169
  "type": "integer",
161
170
  "minimum": 1,
@@ -186,6 +195,7 @@
186
195
  "pattern": "^[a-z][a-z0-9_-]{0,63}$"
187
196
  }
188
197
  },
198
+ "_providers": {},
189
199
  "timeoutMs": {
190
200
  "type": "integer",
191
201
  "minimum": 1