@dsh-plus/secret-env 0.1.24 → 0.1.25
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 +25 -0
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -222,6 +222,17 @@ window.__ModuleLoader__.load({
|
|
|
222
222
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EyeOff, { ...lucideProps(props) });
|
|
223
223
|
}
|
|
224
224
|
//#endregion
|
|
225
|
+
//#region ../shared/src/client/draft.ts
|
|
226
|
+
/**
|
|
227
|
+
* 单命名空间 staged 草稿(简单配置卡片共用):读 scope 快照、播种草稿、
|
|
228
|
+
* 脏判定、保存(revision fencing + 重新装载)与状态行。
|
|
229
|
+
*
|
|
230
|
+
* 语义与官方 staged 表单一致:Host 更新不覆盖在途编辑,只有保存才写回;
|
|
231
|
+
* 保存成功后按 Host 解析值重置草稿。`from`/`patch` 参与 effect 与 useMemo
|
|
232
|
+
* 依赖,必须是模块级稳定函数(不要内联箭头函数)。
|
|
233
|
+
* @module @dsh-plus/shared/client/draft
|
|
234
|
+
*/
|
|
235
|
+
//#endregion
|
|
225
236
|
//#region ../shared/src/client/fetch.ts
|
|
226
237
|
async function parse(res, guard) {
|
|
227
238
|
const body = await res.json();
|
|
@@ -298,6 +309,9 @@ window.__ModuleLoader__.load({
|
|
|
298
309
|
* - 窄屏 input/textarea 16px(防 iOS 聚焦缩放)、可点目标 ≥44px;
|
|
299
310
|
* - footer 按钮等宽换行、状态文字独占一行;
|
|
300
311
|
* - 展开态 body 底部 sticky 保存栏(长表单滚动中始终可达)。
|
|
312
|
+
* - 分节形态(-section,插件页 page 视图内嵌宿主页面):无边框/背景、横向零
|
|
313
|
+
* 内边距,页脚不 sticky——官方插件页已提供页面级内边距,再叠一层卡片会
|
|
314
|
+
* 缩窄移动端可用宽度(卡片套卡片)。
|
|
301
315
|
* 沿用官方 data-plugin / data-plugin-css 约定(HMR 据此卸载),不覆盖上游选择器。
|
|
302
316
|
* @module @dsh-plus/shared/client/styles
|
|
303
317
|
*/
|
|
@@ -344,6 +358,15 @@ window.__ModuleLoader__.load({
|
|
|
344
358
|
.${prefix}-checkRow input:checked::after{left:16px;background:var(--dsw-alias-bg-base)}
|
|
345
359
|
.${prefix}-checkRow input:disabled{opacity:.4;cursor:default}
|
|
346
360
|
.${prefix}-checkRow input:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}
|
|
361
|
+
/* 宿主内嵌分节形态(插件页 page 视图):官方设置页同构——无边框/背景,
|
|
362
|
+
横向零内边距(宽度交给宿主页面容器),小节标题 13px/600,页脚非 sticky。 */
|
|
363
|
+
.${prefix}-section{box-sizing:border-box;flex-direction:column;width:100%;min-width:0;padding:16px 0;display:flex}
|
|
364
|
+
.${prefix}-sectionHead{align-items:center;gap:8px;min-width:0;display:flex}
|
|
365
|
+
.${prefix}-sectionTitle{min-width:0;color:var(--dsw-alias-label-primary);flex:1;margin:0;font-size:13px;font-weight:600;line-height:1.5}
|
|
366
|
+
.${prefix}-sectionBadge{white-space:nowrap;border-radius:999px;flex:none;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}
|
|
367
|
+
.${prefix}-sectionDesc{color:var(--dsw-alias-label-tertiary);margin:4px 0 0;font-size:12px;line-height:1.5}
|
|
368
|
+
.${prefix}-sectionBody{flex-direction:column;min-width:0;display:flex}
|
|
369
|
+
.${prefix}-sectionFooter{align-items:center;gap:8px;padding-top:16px;display:flex;flex-wrap:wrap}
|
|
347
370
|
.${prefix}-groupLabel{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:600;padding:12px 0 2px;margin:0}
|
|
348
371
|
.${prefix}-readOnly{color:var(--dsw-alias-label-tertiary);margin:12px 0 0;font-size:12px;line-height:1.5}
|
|
349
372
|
.${prefix}-warn{color:var(--dsw-alias-label-error);margin:12px 0 0;font-size:12px;line-height:1.5}
|
|
@@ -365,6 +388,8 @@ window.__ModuleLoader__.load({
|
|
|
365
388
|
.${prefix}-status{flex-basis:100%;flex:none}
|
|
366
389
|
.${prefix}-btn{min-height:44px;flex:1;min-width:96px}
|
|
367
390
|
.${prefix}-statusBadge{display:none}
|
|
391
|
+
.${prefix}-sectionBadge{display:inline-block}
|
|
392
|
+
.${prefix}-sectionFooter{position:static}
|
|
368
393
|
}
|
|
369
394
|
@media (pointer:coarse){
|
|
370
395
|
.${prefix}-btn{min-height:44px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-plus/secret-env",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "dsh-plus service+ui plugin: 密钥环境变量——以 $DSH_VAR_* 变量名向 agent 暴露密钥(全局持久/会话级/一次性),执行期经 dsh-shell-env 原生注入,值不进消息流,不影响缓存率",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"src"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dsh-plus/shared": "0.1.
|
|
22
|
+
"@dsh-plus/shared": "0.1.31"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@deepseek-ai/cordis": "^4.0.4",
|