@dsh-plus/lifeboat 0.2.25 → 0.2.27
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 +19 -6
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -38,15 +38,24 @@ window.__ModuleLoader__.load({
|
|
|
38
38
|
};
|
|
39
39
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
40
40
|
//#endregion
|
|
41
|
-
let react = require("react");
|
|
42
41
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
let react = require("react");
|
|
43
43
|
require("@deepseek-ai/dsh-client-ui-primitives");
|
|
44
|
-
//#region ../shared/src/client/icons.tsx
|
|
45
|
-
var init_icons = __esmMin((() => {}));
|
|
46
|
-
//#endregion
|
|
47
44
|
//#region ../shared/src/client/card.tsx
|
|
48
|
-
var init_card = __esmMin((() => {
|
|
49
|
-
|
|
45
|
+
var init_card = __esmMin((() => {}));
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../shared/src/client/draft.ts
|
|
48
|
+
/**
|
|
49
|
+
* 单命名空间 staged 草稿(简单配置卡片共用):读 scope 快照、播种草稿、
|
|
50
|
+
* 脏判定、保存(revision fencing + 重新装载)与状态行。
|
|
51
|
+
*
|
|
52
|
+
* 语义与官方 staged 表单一致:Host 更新不覆盖在途编辑,只有保存才写回;
|
|
53
|
+
* 保存成功后按 Host 解析值重置草稿。`from`/`patch` 参与 effect 与 useMemo
|
|
54
|
+
* 依赖,必须是模块级稳定函数(不要内联箭头函数)。
|
|
55
|
+
* @module @dsh-plus/shared/client/draft
|
|
56
|
+
*/
|
|
57
|
+
var init_draft = __esmMin((() => {
|
|
58
|
+
init_card();
|
|
50
59
|
}));
|
|
51
60
|
//#endregion
|
|
52
61
|
//#region ../shared/src/client/fetch.ts
|
|
@@ -74,6 +83,9 @@ window.__ModuleLoader__.load({
|
|
|
74
83
|
//#region ../shared/src/client/fields.tsx
|
|
75
84
|
var init_fields = __esmMin((() => {}));
|
|
76
85
|
//#endregion
|
|
86
|
+
//#region ../shared/src/client/icons.tsx
|
|
87
|
+
var init_icons = __esmMin((() => {}));
|
|
88
|
+
//#endregion
|
|
77
89
|
//#region ../shared/src/client/styles.ts
|
|
78
90
|
/**
|
|
79
91
|
* 幂等注入样式标签(官方 data-plugin-css 约定);返回新标签,
|
|
@@ -95,6 +107,7 @@ window.__ModuleLoader__.load({
|
|
|
95
107
|
//#region ../shared/src/client/index.ts
|
|
96
108
|
var init_client = __esmMin((() => {
|
|
97
109
|
init_card();
|
|
110
|
+
init_draft();
|
|
98
111
|
init_fetch();
|
|
99
112
|
init_fields();
|
|
100
113
|
init_icons();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-plus/lifeboat",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27",
|
|
4
4
|
"description": "dsh-plus service plugin: 故障救生艇——兄弟插件崩溃时自动隔离(写用户 patch 层禁用),llm-pi 缺席时把其配置临时翻译为官方 llm-pi-ai 路由,恢复后自动还原",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"yaml": "^2.9.0",
|
|
34
|
-
"@dsh-plus/shared": "0.1.
|
|
34
|
+
"@dsh-plus/shared": "0.1.32"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.4",
|