@maricgeer/dsh-websearch 0.1.3 → 0.2.1
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.en.md +32 -11
- package/README.md +36 -12
- package/cordis.patch.yml +13 -0
- package/docs/plugin-page.en.md +20 -0
- package/docs/plugin-page.zh.md +20 -0
- package/lib/client.js +2988 -1283
- package/lib/index.d.ts +103 -10
- package/lib/index.js +1706 -164
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +35 -27
package/locale/en.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "dsh-websearch",
|
|
4
|
+
"description": "Unified multi-provider web search and fetch with a configurable priority chain, full HA degradation and multi-key pools; takes over the built-in \"Web search and fetch\" settings page while enabled and restores it when disabled.",
|
|
5
|
+
"detail": "docs/plugin-page.en.md"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maricgeer/dsh-websearch",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Unified multi-provider WebSearch management plugin for the DeepSeek Harness (dsh) — priority chains with full HA degradation for search and fetch, plus a settings-page GUI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,11 +15,15 @@
|
|
|
15
15
|
"./client": {
|
|
16
16
|
"default": "./lib/client.js"
|
|
17
17
|
},
|
|
18
|
-
"./package.json": "./package.json"
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
"./locale/*.json": "./locale/*.json"
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
21
22
|
"lib",
|
|
22
23
|
"cordis.patch.yml",
|
|
24
|
+
"locale",
|
|
25
|
+
"docs/plugin-page.zh.md",
|
|
26
|
+
"docs/plugin-page.en.md",
|
|
23
27
|
"README.en.md"
|
|
24
28
|
],
|
|
25
29
|
"engines": {
|
|
@@ -33,41 +37,42 @@
|
|
|
33
37
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.client.json",
|
|
34
38
|
"typecheck:client": "tsc --noEmit -p tsconfig.client.json",
|
|
35
39
|
"lint": "oxlint src tests",
|
|
36
|
-
"check:i18n": "node scripts/check-locales.mjs && node scripts/check-cjk.mjs"
|
|
40
|
+
"check:i18n": "node scripts/check-locales.mjs && node scripts/check-cjk.mjs",
|
|
41
|
+
"check:release": "node scripts/check-release.mjs"
|
|
37
42
|
},
|
|
38
43
|
"peerDependencies": {
|
|
39
44
|
"@deepseek-ai/cordis": ">=4.0.1-rc.1 <5",
|
|
40
|
-
"@deepseek-ai/dsh-agent": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
41
|
-
"@deepseek-ai/dsh-credentials": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
42
|
-
"@deepseek-ai/dsh-settings": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
43
|
-
"@deepseek-ai/dsh-system-prompt": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
44
|
-
"@deepseek-ai/dsh-tools": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
45
|
-
"@deepseek-ai/dsh-web": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2"
|
|
45
|
+
"@deepseek-ai/dsh-agent": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.2-rc.5 || >=0.2.0 <0.3.0",
|
|
46
|
+
"@deepseek-ai/dsh-credentials": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.2-rc.5 || >=0.2.0 <0.3.0",
|
|
47
|
+
"@deepseek-ai/dsh-settings": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.2-rc.5 || >=0.2.0 <0.3.0",
|
|
48
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.2-rc.5 || >=0.2.0 <0.3.0",
|
|
49
|
+
"@deepseek-ai/dsh-tools": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.2-rc.5 || >=0.2.0 <0.3.0",
|
|
50
|
+
"@deepseek-ai/dsh-web": ">=0.1.5-rc.1 <0.1.8 || 0.1.6-alpha.1 || 0.1.6-alpha.2 || 0.1.7-alpha.1 || 0.1.7-alpha.2 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.2-rc.5 || >=0.2.0 <0.3.0"
|
|
46
51
|
},
|
|
47
52
|
"dependencies": {
|
|
48
53
|
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2",
|
|
49
54
|
"@deepseek-ai/schemastery": ">=3.18.4 <4"
|
|
50
55
|
},
|
|
51
56
|
"devDependencies": {
|
|
52
|
-
"@deepseek-ai/cordis": "4.0
|
|
53
|
-
"@deepseek-ai/dsh-agent": "0.
|
|
54
|
-
"@deepseek-ai/dsh-api-remotes": "0.
|
|
55
|
-
"@deepseek-ai/dsh-client-locale": "0.
|
|
56
|
-
"@deepseek-ai/dsh-client-store": "0.
|
|
57
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.
|
|
59
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.
|
|
60
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.
|
|
61
|
-
"@deepseek-ai/dsh-credentials": "0.
|
|
62
|
-
"@deepseek-ai/dsh-llm": "0.
|
|
63
|
-
"@deepseek-ai/dsh-settings": "0.
|
|
64
|
-
"@deepseek-ai/dsh-system-prompt": "0.
|
|
65
|
-
"@deepseek-ai/dsh-tools": "0.
|
|
57
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
58
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.5",
|
|
59
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.2-rc.5",
|
|
60
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.5",
|
|
61
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.5",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.5",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.5",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.5",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.5",
|
|
66
|
+
"@deepseek-ai/dsh-credentials": "0.2.2-rc.5",
|
|
67
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.5",
|
|
68
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.5",
|
|
69
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.5",
|
|
70
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.5",
|
|
66
71
|
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2",
|
|
67
|
-
"@deepseek-ai/dsh-util-code-language": "0.
|
|
68
|
-
"@deepseek-ai/dsh-util-workspace-path": "0.
|
|
69
|
-
"@deepseek-ai/dsh-web": "0.
|
|
70
|
-
"@deepseek-ai/schemastery": "3.
|
|
72
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.2-rc.5",
|
|
73
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.5",
|
|
74
|
+
"@deepseek-ai/dsh-web": "0.2.2-rc.5",
|
|
75
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
71
76
|
"@shikijs/langs": "^4.4.3",
|
|
72
77
|
"@shikijs/themes": "^4.4.3",
|
|
73
78
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -75,6 +80,7 @@
|
|
|
75
80
|
"@types/node": "^22.20.0",
|
|
76
81
|
"@types/react": "^18.3.31",
|
|
77
82
|
"@types/react-dom": "^18.3.0",
|
|
83
|
+
"@types/semver": "^7.7.0",
|
|
78
84
|
"anser": "^2.3.5",
|
|
79
85
|
"clsx": "^2.1.1",
|
|
80
86
|
"diff": "~9.0.0",
|
|
@@ -95,11 +101,13 @@
|
|
|
95
101
|
"oxlint": "1.76.0",
|
|
96
102
|
"react": "^18.3.1",
|
|
97
103
|
"react-dom": "^18.2.0",
|
|
104
|
+
"semver": "7.8.5",
|
|
98
105
|
"shiki": "^4.4.3",
|
|
99
106
|
"simple-icons": "~16.31.0",
|
|
100
107
|
"tsdown": "^0.22.2",
|
|
101
108
|
"typescript": "^6.0.3",
|
|
102
109
|
"vitest": "^4.1.8",
|
|
110
|
+
"yaml": "^2.9.1",
|
|
103
111
|
"zod": "^4.5.4",
|
|
104
112
|
"zustand": "~4.4.7"
|
|
105
113
|
},
|