@dsh-plus/access-gate 0.3.31 → 0.3.33
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 +12 -0
- package/package.json +12 -12
package/lib/client.js
CHANGED
|
@@ -140,6 +140,18 @@ window.__ModuleLoader__.load({
|
|
|
140
140
|
}, reg.component));
|
|
141
141
|
}
|
|
142
142
|
//#endregion
|
|
143
|
+
//#region ../shared/src/client/credentials.tsx
|
|
144
|
+
/**
|
|
145
|
+
* 凭据面(共享件):官方 settings-controller 的 `remote.credentials` 命名空间
|
|
146
|
+
* (describe/set/unset/onChange),复用官方 credentials seam,不另开 HTTP 端点。
|
|
147
|
+
* **值只写不读**——describe 只回「已配置 / 来源 / 可写」,没有任何方法回传值。
|
|
148
|
+
*
|
|
149
|
+
* 凭据与 settings 草稿相互独立:不进命名空间、不参与脏判定,保存即落
|
|
150
|
+
* `$DSH_HOME/.credentials.yaml` 并热生效(宿主每次工具调用重新 resolve),
|
|
151
|
+
* 因此改口令不需要保存卡片、也不需要 /reload 或重启。
|
|
152
|
+
* @module @dsh-plus/shared/client/credentials
|
|
153
|
+
*/
|
|
154
|
+
//#endregion
|
|
143
155
|
//#region ../shared/src/client/draft.ts
|
|
144
156
|
/**
|
|
145
157
|
* 单命名空间 staged 草稿(简单配置卡片共用):读 scope 快照、播种草稿、
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-plus/access-gate",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.33",
|
|
4
4
|
"description": "dsh-plus service+ui plugin: dsh web 全量访问围栏——与官方 browser-auth 合并:官方 cookie 为唯一凭据,可选 IP 附加围栏,未认证导航渲染 token 输入页(PWA 可恢复),loopback 管理通道",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
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-home-paths": "^0.2.1-
|
|
39
|
-
"@deepseek-ai/dsh-settings": "^0.2.1-
|
|
40
|
-
"@deepseek-ai/schemastery": "^3.18.5
|
|
37
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
38
|
+
"@deepseek-ai/dsh-home-paths": "^0.2.1-rc.2",
|
|
39
|
+
"@deepseek-ai/dsh-settings": "^0.2.1-rc.2",
|
|
40
|
+
"@deepseek-ai/schemastery": "^3.18.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@deepseek-ai/cordis": "4.0.5
|
|
44
|
-
"@deepseek-ai/dsh-client-connection": "0.2.1-
|
|
45
|
-
"@deepseek-ai/dsh-home-paths": "0.2.1-
|
|
46
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.1-
|
|
47
|
-
"@deepseek-ai/dsh-settings": "0.2.1-
|
|
48
|
-
"@deepseek-ai/schemastery": "3.18.5
|
|
43
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
44
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.2",
|
|
45
|
+
"@deepseek-ai/dsh-home-paths": "0.2.1-rc.2",
|
|
46
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.2",
|
|
47
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.2",
|
|
48
|
+
"@deepseek-ai/schemastery": "3.18.5",
|
|
49
49
|
"@types/react": "~18.3.31",
|
|
50
50
|
"react": "^18.2.0"
|
|
51
51
|
},
|