web-access-cli 0.5.0 → 0.7.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 +104 -207
- package/README_CN.md +106 -209
- package/THIRD_PARTY_NOTICES.md +0 -13
- package/dist/config/config.js +10 -2
- package/dist/config/config.js.map +1 -1
- package/dist/core/router.js +4 -2
- package/dist/core/router.js.map +1 -1
- package/dist/core/schema.js +1 -1
- package/dist/core/types.js +1 -0
- package/dist/core/types.js.map +1 -1
- package/dist/gateway/admin.js +670 -0
- package/dist/gateway/admin.js.map +1 -0
- package/dist/gateway/panel.js +2405 -0
- package/dist/gateway/panel.js.map +1 -0
- package/dist/gateway/records.js +464 -0
- package/dist/gateway/records.js.map +1 -0
- package/dist/gateway/schema.js +115 -0
- package/dist/gateway/schema.js.map +1 -0
- package/dist/gateway/server.js +663 -0
- package/dist/gateway/server.js.map +1 -0
- package/dist/gateway/service.js +607 -0
- package/dist/gateway/service.js.map +1 -0
- package/dist/providers/anysearch.js +5 -3
- package/dist/providers/anysearch.js.map +1 -1
- package/dist/providers/deepseek.js +173 -106
- package/dist/providers/deepseek.js.map +1 -1
- package/dist/providers/registry.js +2 -0
- package/dist/providers/registry.js.map +1 -1
- package/dist/providers/search.js +4 -2
- package/dist/providers/search.js.map +1 -1
- package/dist/providers/xai.js +16 -8
- package/dist/providers/xai.js.map +1 -1
- package/dist/providers/xcrawl.js +1 -1
- package/dist/providers/xcrawl.js.map +1 -1
- package/dist/providers/yuanbao.js +214 -0
- package/dist/providers/yuanbao.js.map +1 -0
- package/dist/server.js +127 -0
- package/dist/server.js.map +1 -0
- package/dist/transport/http.js +8 -0
- package/dist/transport/http.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -2
- package/schemas/config.schema.json +4 -0
- package/schemas/gatewayError.schema.json +33 -0
- package/schemas/gatewayFetchRequest.schema.json +13 -0
- package/schemas/gatewayFetchResponse.schema.json +16 -0
- package/schemas/gatewaySearchRequest.schema.json +37 -0
- package/schemas/gatewaySearchResponse.schema.json +81 -0
- package/schemas/output.schema.json +52 -0
- package/schemas/searchRequest.schema.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"required": [
|
|
4
|
+
"error"
|
|
5
|
+
],
|
|
6
|
+
"properties": {
|
|
7
|
+
"error": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"required": [
|
|
10
|
+
"message",
|
|
11
|
+
"type",
|
|
12
|
+
"param",
|
|
13
|
+
"code"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"message": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"type": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"param": {
|
|
23
|
+
"type": "null"
|
|
24
|
+
},
|
|
25
|
+
"code": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"required": [
|
|
4
|
+
"query"
|
|
5
|
+
],
|
|
6
|
+
"properties": {
|
|
7
|
+
"query": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"maxLength": 128,
|
|
11
|
+
"pattern": "\\S"
|
|
12
|
+
},
|
|
13
|
+
"count": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"minimum": 1,
|
|
16
|
+
"maximum": 50
|
|
17
|
+
},
|
|
18
|
+
"ori_question": {
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 128
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "null"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"localization": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"need_content": {
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"required": [
|
|
4
|
+
"results"
|
|
5
|
+
],
|
|
6
|
+
"properties": {
|
|
7
|
+
"results": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": [
|
|
12
|
+
"rerank_score",
|
|
13
|
+
"title",
|
|
14
|
+
"url",
|
|
15
|
+
"snippet",
|
|
16
|
+
"summary",
|
|
17
|
+
"content",
|
|
18
|
+
"site_name",
|
|
19
|
+
"site_icon",
|
|
20
|
+
"date",
|
|
21
|
+
"authority"
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"rerank_score": {
|
|
25
|
+
"type": "number"
|
|
26
|
+
},
|
|
27
|
+
"title": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"url": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"snippet": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"summary": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"content": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"site_name": {
|
|
43
|
+
"anyOf": [
|
|
44
|
+
{
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "null"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"site_icon": {
|
|
53
|
+
"anyOf": [
|
|
54
|
+
{
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "null"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"date": {
|
|
63
|
+
"anyOf": [
|
|
64
|
+
{
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "null"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"authority": {
|
|
73
|
+
"type": "number"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
}
|
|
@@ -116,6 +116,10 @@
|
|
|
116
116
|
"type": "string",
|
|
117
117
|
"const": "bocha"
|
|
118
118
|
},
|
|
119
|
+
{
|
|
120
|
+
"type": "string",
|
|
121
|
+
"const": "yuanbao"
|
|
122
|
+
},
|
|
119
123
|
{
|
|
120
124
|
"type": "string",
|
|
121
125
|
"const": "brave"
|
|
@@ -194,6 +198,10 @@
|
|
|
194
198
|
"type": "string",
|
|
195
199
|
"const": "bocha"
|
|
196
200
|
},
|
|
201
|
+
{
|
|
202
|
+
"type": "string",
|
|
203
|
+
"const": "yuanbao"
|
|
204
|
+
},
|
|
197
205
|
{
|
|
198
206
|
"type": "string",
|
|
199
207
|
"const": "brave"
|
|
@@ -295,6 +303,10 @@
|
|
|
295
303
|
"type": "string",
|
|
296
304
|
"const": "bocha"
|
|
297
305
|
},
|
|
306
|
+
{
|
|
307
|
+
"type": "string",
|
|
308
|
+
"const": "yuanbao"
|
|
309
|
+
},
|
|
298
310
|
{
|
|
299
311
|
"type": "string",
|
|
300
312
|
"const": "brave"
|
|
@@ -380,6 +392,10 @@
|
|
|
380
392
|
"type": "string",
|
|
381
393
|
"const": "bocha"
|
|
382
394
|
},
|
|
395
|
+
{
|
|
396
|
+
"type": "string",
|
|
397
|
+
"const": "yuanbao"
|
|
398
|
+
},
|
|
383
399
|
{
|
|
384
400
|
"type": "string",
|
|
385
401
|
"const": "brave"
|
|
@@ -544,6 +560,10 @@
|
|
|
544
560
|
"type": "string",
|
|
545
561
|
"const": "bocha"
|
|
546
562
|
},
|
|
563
|
+
{
|
|
564
|
+
"type": "string",
|
|
565
|
+
"const": "yuanbao"
|
|
566
|
+
},
|
|
547
567
|
{
|
|
548
568
|
"type": "string",
|
|
549
569
|
"const": "brave"
|
|
@@ -622,6 +642,10 @@
|
|
|
622
642
|
"type": "string",
|
|
623
643
|
"const": "bocha"
|
|
624
644
|
},
|
|
645
|
+
{
|
|
646
|
+
"type": "string",
|
|
647
|
+
"const": "yuanbao"
|
|
648
|
+
},
|
|
625
649
|
{
|
|
626
650
|
"type": "string",
|
|
627
651
|
"const": "brave"
|
|
@@ -723,6 +747,10 @@
|
|
|
723
747
|
"type": "string",
|
|
724
748
|
"const": "bocha"
|
|
725
749
|
},
|
|
750
|
+
{
|
|
751
|
+
"type": "string",
|
|
752
|
+
"const": "yuanbao"
|
|
753
|
+
},
|
|
726
754
|
{
|
|
727
755
|
"type": "string",
|
|
728
756
|
"const": "brave"
|
|
@@ -808,6 +836,10 @@
|
|
|
808
836
|
"type": "string",
|
|
809
837
|
"const": "bocha"
|
|
810
838
|
},
|
|
839
|
+
{
|
|
840
|
+
"type": "string",
|
|
841
|
+
"const": "yuanbao"
|
|
842
|
+
},
|
|
811
843
|
{
|
|
812
844
|
"type": "string",
|
|
813
845
|
"const": "brave"
|
|
@@ -1020,6 +1052,10 @@
|
|
|
1020
1052
|
"type": "string",
|
|
1021
1053
|
"const": "bocha"
|
|
1022
1054
|
},
|
|
1055
|
+
{
|
|
1056
|
+
"type": "string",
|
|
1057
|
+
"const": "yuanbao"
|
|
1058
|
+
},
|
|
1023
1059
|
{
|
|
1024
1060
|
"type": "string",
|
|
1025
1061
|
"const": "brave"
|
|
@@ -1098,6 +1134,10 @@
|
|
|
1098
1134
|
"type": "string",
|
|
1099
1135
|
"const": "bocha"
|
|
1100
1136
|
},
|
|
1137
|
+
{
|
|
1138
|
+
"type": "string",
|
|
1139
|
+
"const": "yuanbao"
|
|
1140
|
+
},
|
|
1101
1141
|
{
|
|
1102
1142
|
"type": "string",
|
|
1103
1143
|
"const": "brave"
|
|
@@ -1199,6 +1239,10 @@
|
|
|
1199
1239
|
"type": "string",
|
|
1200
1240
|
"const": "bocha"
|
|
1201
1241
|
},
|
|
1242
|
+
{
|
|
1243
|
+
"type": "string",
|
|
1244
|
+
"const": "yuanbao"
|
|
1245
|
+
},
|
|
1202
1246
|
{
|
|
1203
1247
|
"type": "string",
|
|
1204
1248
|
"const": "brave"
|
|
@@ -1284,6 +1328,10 @@
|
|
|
1284
1328
|
"type": "string",
|
|
1285
1329
|
"const": "bocha"
|
|
1286
1330
|
},
|
|
1331
|
+
{
|
|
1332
|
+
"type": "string",
|
|
1333
|
+
"const": "yuanbao"
|
|
1334
|
+
},
|
|
1287
1335
|
{
|
|
1288
1336
|
"type": "string",
|
|
1289
1337
|
"const": "brave"
|
|
@@ -1578,6 +1626,10 @@
|
|
|
1578
1626
|
"type": "string",
|
|
1579
1627
|
"const": "bocha"
|
|
1580
1628
|
},
|
|
1629
|
+
{
|
|
1630
|
+
"type": "string",
|
|
1631
|
+
"const": "yuanbao"
|
|
1632
|
+
},
|
|
1581
1633
|
{
|
|
1582
1634
|
"type": "string",
|
|
1583
1635
|
"const": "brave"
|