web-access-cli 0.3.0 → 0.5.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 +39 -27
- package/README_CN.md +39 -27
- package/THIRD_PARTY_NOTICES.md +11 -0
- package/dist/cli-output.js +16 -0
- package/dist/cli-output.js.map +1 -1
- package/dist/cli.js +48 -42
- package/dist/cli.js.map +1 -1
- package/dist/config/config.js +119 -53
- package/dist/config/config.js.map +1 -1
- package/dist/config/edit.js +88 -4
- package/dist/config/edit.js.map +1 -1
- package/dist/config/file.js +30 -0
- package/dist/config/file.js.map +1 -1
- package/dist/config/init.js +59 -0
- package/dist/config/init.js.map +1 -0
- package/dist/config/provider-order.js +14 -7
- package/dist/config/provider-order.js.map +1 -1
- package/dist/core/diagnostics.js +13 -7
- package/dist/core/diagnostics.js.map +1 -1
- package/dist/core/router.js +228 -94
- package/dist/core/router.js.map +1 -1
- package/dist/core/schema.js +33 -2
- package/dist/core/schema.js.map +1 -1
- package/dist/core/types.js +3 -0
- package/dist/core/types.js.map +1 -1
- package/dist/providers/extract.js +37 -0
- package/dist/providers/extract.js.map +1 -1
- package/dist/providers/registry.js +3 -0
- package/dist/providers/registry.js.map +1 -1
- package/dist/providers/xai.js +208 -0
- package/dist/providers/xai.js.map +1 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/schemas/config.schema.json +87 -2
- package/schemas/output.schema.json +180 -0
|
@@ -147,6 +147,14 @@
|
|
|
147
147
|
{
|
|
148
148
|
"type": "string",
|
|
149
149
|
"const": "deepseek"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "string",
|
|
153
|
+
"const": "xai_x_search"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "string",
|
|
157
|
+
"const": "xai_web_search"
|
|
150
158
|
}
|
|
151
159
|
]
|
|
152
160
|
}
|
|
@@ -217,6 +225,14 @@
|
|
|
217
225
|
{
|
|
218
226
|
"type": "string",
|
|
219
227
|
"const": "deepseek"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "string",
|
|
231
|
+
"const": "xai_x_search"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"type": "string",
|
|
235
|
+
"const": "xai_web_search"
|
|
220
236
|
}
|
|
221
237
|
]
|
|
222
238
|
}
|
|
@@ -310,6 +326,14 @@
|
|
|
310
326
|
{
|
|
311
327
|
"type": "string",
|
|
312
328
|
"const": "deepseek"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"type": "string",
|
|
332
|
+
"const": "xai_x_search"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"type": "string",
|
|
336
|
+
"const": "xai_web_search"
|
|
313
337
|
}
|
|
314
338
|
]
|
|
315
339
|
}
|
|
@@ -387,6 +411,14 @@
|
|
|
387
411
|
{
|
|
388
412
|
"type": "string",
|
|
389
413
|
"const": "deepseek"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"type": "string",
|
|
417
|
+
"const": "xai_x_search"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "string",
|
|
421
|
+
"const": "xai_web_search"
|
|
390
422
|
}
|
|
391
423
|
]
|
|
392
424
|
}
|
|
@@ -543,6 +575,14 @@
|
|
|
543
575
|
{
|
|
544
576
|
"type": "string",
|
|
545
577
|
"const": "deepseek"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"type": "string",
|
|
581
|
+
"const": "xai_x_search"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"type": "string",
|
|
585
|
+
"const": "xai_web_search"
|
|
546
586
|
}
|
|
547
587
|
]
|
|
548
588
|
}
|
|
@@ -613,6 +653,14 @@
|
|
|
613
653
|
{
|
|
614
654
|
"type": "string",
|
|
615
655
|
"const": "deepseek"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"type": "string",
|
|
659
|
+
"const": "xai_x_search"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"type": "string",
|
|
663
|
+
"const": "xai_web_search"
|
|
616
664
|
}
|
|
617
665
|
]
|
|
618
666
|
}
|
|
@@ -706,6 +754,14 @@
|
|
|
706
754
|
{
|
|
707
755
|
"type": "string",
|
|
708
756
|
"const": "deepseek"
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"type": "string",
|
|
760
|
+
"const": "xai_x_search"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"type": "string",
|
|
764
|
+
"const": "xai_web_search"
|
|
709
765
|
}
|
|
710
766
|
]
|
|
711
767
|
}
|
|
@@ -783,6 +839,14 @@
|
|
|
783
839
|
{
|
|
784
840
|
"type": "string",
|
|
785
841
|
"const": "deepseek"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"type": "string",
|
|
845
|
+
"const": "xai_x_search"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"type": "string",
|
|
849
|
+
"const": "xai_web_search"
|
|
786
850
|
}
|
|
787
851
|
]
|
|
788
852
|
}
|
|
@@ -987,6 +1051,14 @@
|
|
|
987
1051
|
{
|
|
988
1052
|
"type": "string",
|
|
989
1053
|
"const": "deepseek"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"type": "string",
|
|
1057
|
+
"const": "xai_x_search"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"type": "string",
|
|
1061
|
+
"const": "xai_web_search"
|
|
990
1062
|
}
|
|
991
1063
|
]
|
|
992
1064
|
}
|
|
@@ -1057,6 +1129,14 @@
|
|
|
1057
1129
|
{
|
|
1058
1130
|
"type": "string",
|
|
1059
1131
|
"const": "deepseek"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"type": "string",
|
|
1135
|
+
"const": "xai_x_search"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"type": "string",
|
|
1139
|
+
"const": "xai_web_search"
|
|
1060
1140
|
}
|
|
1061
1141
|
]
|
|
1062
1142
|
}
|
|
@@ -1150,6 +1230,14 @@
|
|
|
1150
1230
|
{
|
|
1151
1231
|
"type": "string",
|
|
1152
1232
|
"const": "deepseek"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"type": "string",
|
|
1236
|
+
"const": "xai_x_search"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"type": "string",
|
|
1240
|
+
"const": "xai_web_search"
|
|
1153
1241
|
}
|
|
1154
1242
|
]
|
|
1155
1243
|
}
|
|
@@ -1227,6 +1315,14 @@
|
|
|
1227
1315
|
{
|
|
1228
1316
|
"type": "string",
|
|
1229
1317
|
"const": "deepseek"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"type": "string",
|
|
1321
|
+
"const": "xai_x_search"
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"type": "string",
|
|
1325
|
+
"const": "xai_web_search"
|
|
1230
1326
|
}
|
|
1231
1327
|
]
|
|
1232
1328
|
}
|
|
@@ -1324,6 +1420,78 @@
|
|
|
1324
1420
|
}
|
|
1325
1421
|
}
|
|
1326
1422
|
},
|
|
1423
|
+
{
|
|
1424
|
+
"type": "object",
|
|
1425
|
+
"required": [
|
|
1426
|
+
"schemaVersion",
|
|
1427
|
+
"ok",
|
|
1428
|
+
"command",
|
|
1429
|
+
"durationMs",
|
|
1430
|
+
"data"
|
|
1431
|
+
],
|
|
1432
|
+
"properties": {
|
|
1433
|
+
"schemaVersion": {
|
|
1434
|
+
"type": "number",
|
|
1435
|
+
"const": 2
|
|
1436
|
+
},
|
|
1437
|
+
"ok": {
|
|
1438
|
+
"type": "boolean",
|
|
1439
|
+
"const": true
|
|
1440
|
+
},
|
|
1441
|
+
"command": {
|
|
1442
|
+
"type": "string",
|
|
1443
|
+
"const": "config.init"
|
|
1444
|
+
},
|
|
1445
|
+
"durationMs": {
|
|
1446
|
+
"type": "integer",
|
|
1447
|
+
"minimum": 0
|
|
1448
|
+
},
|
|
1449
|
+
"data": {
|
|
1450
|
+
"type": "object",
|
|
1451
|
+
"required": [
|
|
1452
|
+
"path",
|
|
1453
|
+
"created",
|
|
1454
|
+
"searchProviders",
|
|
1455
|
+
"searchFallbackProviders",
|
|
1456
|
+
"extractProviders",
|
|
1457
|
+
"extractFallbackProviders"
|
|
1458
|
+
],
|
|
1459
|
+
"properties": {
|
|
1460
|
+
"path": {
|
|
1461
|
+
"type": "string"
|
|
1462
|
+
},
|
|
1463
|
+
"created": {
|
|
1464
|
+
"type": "boolean",
|
|
1465
|
+
"const": true
|
|
1466
|
+
},
|
|
1467
|
+
"searchProviders": {
|
|
1468
|
+
"type": "array",
|
|
1469
|
+
"items": {
|
|
1470
|
+
"type": "string"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
"searchFallbackProviders": {
|
|
1474
|
+
"type": "array",
|
|
1475
|
+
"items": {
|
|
1476
|
+
"type": "string"
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
"extractProviders": {
|
|
1480
|
+
"type": "array",
|
|
1481
|
+
"items": {
|
|
1482
|
+
"type": "string"
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
"extractFallbackProviders": {
|
|
1486
|
+
"type": "array",
|
|
1487
|
+
"items": {
|
|
1488
|
+
"type": "string"
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1327
1495
|
{
|
|
1328
1496
|
"type": "object",
|
|
1329
1497
|
"required": [
|
|
@@ -1356,6 +1524,10 @@
|
|
|
1356
1524
|
"type": "string",
|
|
1357
1525
|
"const": "config.edit"
|
|
1358
1526
|
},
|
|
1527
|
+
{
|
|
1528
|
+
"type": "string",
|
|
1529
|
+
"const": "config.init"
|
|
1530
|
+
},
|
|
1359
1531
|
{
|
|
1360
1532
|
"type": "null"
|
|
1361
1533
|
}
|
|
@@ -1437,6 +1609,14 @@
|
|
|
1437
1609
|
{
|
|
1438
1610
|
"type": "string",
|
|
1439
1611
|
"const": "deepseek"
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"type": "string",
|
|
1615
|
+
"const": "xai_x_search"
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
"type": "string",
|
|
1619
|
+
"const": "xai_web_search"
|
|
1440
1620
|
}
|
|
1441
1621
|
]
|
|
1442
1622
|
}
|