@x1a0f3n9/dsh-web 0.1.5-rc.5 → 0.1.7-rc.2
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.i18n.yaml +66 -5
- package/lib/index.js +1 -9
- package/package.json +8 -8
package/README.i18n.yaml
CHANGED
|
@@ -1,6 +1,67 @@
|
|
|
1
|
-
# Bilingual-pair consistency record (docs/i18n/README.md):
|
|
2
|
-
#
|
|
3
|
-
#
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/web/web/README.md
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/:
|
|
6
|
+
en: 31868a4f15364a93
|
|
7
|
+
zh: 86824e1a18e237a7
|
|
8
|
+
/x1a0f3n9-dsh-web:
|
|
9
|
+
en: 3cc5492e6d1ac971
|
|
10
|
+
zh: 48eac417f1324e78
|
|
11
|
+
/x1a0f3n9-dsh-web/summary:
|
|
12
|
+
en: 1b5907fc6e19e082
|
|
13
|
+
zh: 7e9ec25da5405e31
|
|
14
|
+
/x1a0f3n9-dsh-web/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: 09388d293f9be9cb
|
|
17
|
+
/x1a0f3n9-dsh-web/use-this-package:
|
|
18
|
+
en: 785a97708cc9181c
|
|
19
|
+
zh: 0d39ff291d483102
|
|
20
|
+
/x1a0f3n9-dsh-web/use-this-package/when-to-choose-it:
|
|
21
|
+
en: 557a8a3f2dfebae4
|
|
22
|
+
zh: 3c85382484e4b717
|
|
23
|
+
/x1a0f3n9-dsh-web/use-this-package/minimal-configuration:
|
|
24
|
+
en: 98398df5cdc00432
|
|
25
|
+
zh: 162a21deef53fbee
|
|
26
|
+
/x1a0f3n9-dsh-web/use-this-package/searching-and-fetching:
|
|
27
|
+
en: 713944abf68263cd
|
|
28
|
+
zh: c428cb53b8708e99
|
|
29
|
+
/x1a0f3n9-dsh-web/use-this-package/provider-selection:
|
|
30
|
+
en: 828dc42ec1cf94f3
|
|
31
|
+
zh: 6b7f5ef6a0c91ab6
|
|
32
|
+
/x1a0f3n9-dsh-web/use-this-package/failures-and-recovery:
|
|
33
|
+
en: d8d09ed3839f6474
|
|
34
|
+
zh: 7164d902f333592a
|
|
35
|
+
/x1a0f3n9-dsh-web/understand-the-implementation:
|
|
36
|
+
en: a3364d8193deb7f0
|
|
37
|
+
zh: d1c4afbf25a7ae4d
|
|
38
|
+
/x1a0f3n9-dsh-web/understand-the-implementation/design-philosophy:
|
|
39
|
+
en: c4d5437cfb1e2157
|
|
40
|
+
zh: 411b1b398de73426
|
|
41
|
+
/x1a0f3n9-dsh-web/understand-the-implementation/source-map:
|
|
42
|
+
en: 75e450b263def321
|
|
43
|
+
zh: 7f28ff78ba2a5f03
|
|
44
|
+
/x1a0f3n9-dsh-web/understand-the-implementation/data-model:
|
|
45
|
+
en: 300340ff8465a03e
|
|
46
|
+
zh: 34ab66eb6969dc94
|
|
47
|
+
/x1a0f3n9-dsh-web/understand-the-implementation/selection-flow:
|
|
48
|
+
en: 07dcd35a0a6369b2
|
|
49
|
+
zh: 927fe797d9079547
|
|
50
|
+
/x1a0f3n9-dsh-web/further-exploration:
|
|
51
|
+
en: 01a5bc753b632f8d
|
|
52
|
+
zh: 835dd87f73b37b4a
|
|
53
|
+
/x1a0f3n9-dsh-web/model-experience:
|
|
54
|
+
en: 63b036297656ad0b
|
|
55
|
+
zh: 86148aba2555a37f
|
|
56
|
+
/x1a0f3n9-dsh-web/model-experience/kv-cache-effect:
|
|
57
|
+
en: 40294c1c31b74824
|
|
58
|
+
zh: d75d48f485447a74
|
|
59
|
+
/x1a0f3n9-dsh-web/known-limitations-and-deferred-work:
|
|
60
|
+
en: 351cb8edb6898838
|
|
61
|
+
zh: ed5b3f95a542e6bf
|
|
62
|
+
/x1a0f3n9-dsh-web/known-limitations-and-deferred-work/dev-note:
|
|
63
|
+
en: 7f775cc79dbce94b
|
|
64
|
+
zh: 12b8f68f9e7c48ca
|
|
65
|
+
/x1a0f3n9-dsh-web/known-limitations-and-deferred-work/dev-note/future-observing-provider-state:
|
|
66
|
+
en: 855f97574a820579
|
|
67
|
+
zh: 360ff6cd2ed82904
|
package/lib/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var WebError = class extends HarnessError {};
|
|
|
41
41
|
* - No id configured, no order set, and multiple usable providers → `WEB_PROVIDER_AMBIGUOUS`.
|
|
42
42
|
* - No id configured, no usable provider → `WEB_PROVIDER_UNAVAILABLE`.
|
|
43
43
|
*/
|
|
44
|
-
var WebRuntime = class
|
|
44
|
+
var WebRuntime = class extends Service {
|
|
45
45
|
/**
|
|
46
46
|
* Provider selection config. Operational env overrides feed the SAME fields:
|
|
47
47
|
* `$DSH_WEB_SEARCH_PROVIDER` / `$DSH_WEB_FETCH_PROVIDER` are equivalent to
|
|
@@ -58,14 +58,6 @@ var WebRuntime = class WebRuntime extends Service {
|
|
|
58
58
|
constructor(ctx, config = {}) {
|
|
59
59
|
super(ctx, "web");
|
|
60
60
|
this.currentConfig = () => config;
|
|
61
|
-
ctx.inject(["settings"], (settingsCtx) => {
|
|
62
|
-
settingsCtx.settings.installSection(ctx, "web", WebRuntime.Config, config, {
|
|
63
|
-
setSource: (source) => {
|
|
64
|
-
this.currentConfig = source;
|
|
65
|
-
},
|
|
66
|
-
onChange: () => {}
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
61
|
}
|
|
70
62
|
/**
|
|
71
63
|
* Register a search provider. Throws {@link WebError} `WEB_DUPLICATE_PROVIDER`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x1a0f3n9/dsh-web",
|
|
3
3
|
"description": "Abstract web access capability seam (ctx.web) for the DeepSeek Harness — search/fetch provider registry, registration-order-independent selection, request/result vocabulary, and the WebError taxonomy",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7-rc.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@x1a0f3n9/dsh-llm": "
|
|
31
|
-
"@deepseek-ai/cordis": "
|
|
32
|
-
"@x1a0f3n9/dsh-settings": "
|
|
30
|
+
"@x1a0f3n9/dsh-llm": "0.1.7-rc.2",
|
|
31
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
32
|
+
"@x1a0f3n9/dsh-settings": "0.1.7-rc.2"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@deepseek-ai/schemastery": "
|
|
35
|
+
"@deepseek-ai/schemastery": "~3.18.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@x1a0f3n9/dsh-llm": "
|
|
39
|
-
"@deepseek-ai/cordis": "
|
|
40
|
-
"@x1a0f3n9/dsh-settings": "
|
|
38
|
+
"@x1a0f3n9/dsh-llm": "0.1.7-rc.2",
|
|
39
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
40
|
+
"@x1a0f3n9/dsh-settings": "0.1.7-rc.2"
|
|
41
41
|
}
|
|
42
42
|
}
|