@dsh-plus/lifeboat 0.3.7 → 0.3.8
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/lib/client.js +16 -0
- package/package.json +16 -16
package/lib/client.js
CHANGED
|
@@ -49,6 +49,21 @@ window.__ModuleLoader__.load({
|
|
|
49
49
|
init_fields();
|
|
50
50
|
}));
|
|
51
51
|
//#endregion
|
|
52
|
+
//#region ../shared/src/client/credentials.tsx
|
|
53
|
+
/**
|
|
54
|
+
* 凭据面(共享件):官方 settings-controller 的 `remote.credentials` 命名空间
|
|
55
|
+
* (describe/set/unset/onChange),复用官方 credentials seam,不另开 HTTP 端点。
|
|
56
|
+
* **值只写不读**——describe 只回「已配置 / 来源 / 可写」,没有任何方法回传值。
|
|
57
|
+
*
|
|
58
|
+
* 凭据与 settings 草稿相互独立:不进命名空间、不参与脏判定,保存即落
|
|
59
|
+
* `$DSH_HOME/.credentials.yaml` 并热生效(宿主每次工具调用重新 resolve),
|
|
60
|
+
* 因此改口令不需要保存卡片、也不需要 /reload 或重启。
|
|
61
|
+
* @module @dsh-plus/shared/client/credentials
|
|
62
|
+
*/
|
|
63
|
+
var init_credentials = __esmMin((() => {
|
|
64
|
+
init_fields();
|
|
65
|
+
}));
|
|
66
|
+
//#endregion
|
|
52
67
|
//#region ../shared/src/client/draft.ts
|
|
53
68
|
/**
|
|
54
69
|
* 单命名空间 staged 草稿(简单配置卡片共用):读 scope 快照、播种草稿、
|
|
@@ -109,6 +124,7 @@ window.__ModuleLoader__.load({
|
|
|
109
124
|
//#region ../shared/src/client/index.ts
|
|
110
125
|
var init_client = __esmMin((() => {
|
|
111
126
|
init_card();
|
|
127
|
+
init_credentials();
|
|
112
128
|
init_draft();
|
|
113
129
|
init_fetch();
|
|
114
130
|
init_fields();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-plus/lifeboat",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "dsh-plus service plugin: 故障救生艇——兄弟插件崩溃时自动隔离(写用户 patch 层禁用),llm-pi 缺席时把其配置临时翻译为官方 llm-pi-ai 路由,恢复后自动还原",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"yaml": "^2.9.0",
|
|
34
|
-
"@dsh-plus/shared": "0.1.
|
|
34
|
+
"@dsh-plus/shared": "0.1.43"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@deepseek-ai/cordis": "^4.0.5
|
|
38
|
-
"@deepseek-ai/dsh-atomic-write": "^0.2.1-
|
|
39
|
-
"@deepseek-ai/dsh-home-paths": "^0.2.1-
|
|
40
|
-
"@deepseek-ai/dsh-llm": "^0.2.1-
|
|
41
|
-
"@deepseek-ai/dsh-settings": "^0.2.1-
|
|
42
|
-
"@deepseek-ai/schemastery": "^3.18.5
|
|
37
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
38
|
+
"@deepseek-ai/dsh-atomic-write": "^0.2.1-rc.2",
|
|
39
|
+
"@deepseek-ai/dsh-home-paths": "^0.2.1-rc.2",
|
|
40
|
+
"@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
|
|
41
|
+
"@deepseek-ai/dsh-settings": "^0.2.1-rc.2",
|
|
42
|
+
"@deepseek-ai/schemastery": "^3.18.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@deepseek-ai/cordis": "4.0.5
|
|
46
|
-
"@deepseek-ai/dsh-atomic-write": "0.2.1-
|
|
47
|
-
"@deepseek-ai/dsh-app-boot": "0.2.1-
|
|
48
|
-
"@deepseek-ai/dsh-home-paths": "0.2.1-
|
|
49
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.1-
|
|
50
|
-
"@deepseek-ai/dsh-llm": "0.2.1-
|
|
51
|
-
"@deepseek-ai/dsh-settings": "0.2.1-
|
|
52
|
-
"@deepseek-ai/schemastery": "3.18.5
|
|
45
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
46
|
+
"@deepseek-ai/dsh-atomic-write": "0.2.1-rc.2",
|
|
47
|
+
"@deepseek-ai/dsh-app-boot": "0.2.1-rc.2",
|
|
48
|
+
"@deepseek-ai/dsh-home-paths": "0.2.1-rc.2",
|
|
49
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.2",
|
|
50
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.2",
|
|
51
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.2",
|
|
52
|
+
"@deepseek-ai/schemastery": "3.18.5",
|
|
53
53
|
"@types/node": "26.4.0",
|
|
54
54
|
"@types/react": "~18.3.31",
|
|
55
55
|
"react": "^18.2.0"
|