@dsh-plus/lifeboat 0.2.24 → 0.2.26
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 +15 -0
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -49,6 +49,20 @@ window.__ModuleLoader__.load({
|
|
|
49
49
|
init_icons();
|
|
50
50
|
}));
|
|
51
51
|
//#endregion
|
|
52
|
+
//#region ../shared/src/client/draft.ts
|
|
53
|
+
/**
|
|
54
|
+
* 单命名空间 staged 草稿(简单配置卡片共用):读 scope 快照、播种草稿、
|
|
55
|
+
* 脏判定、保存(revision fencing + 重新装载)与状态行。
|
|
56
|
+
*
|
|
57
|
+
* 语义与官方 staged 表单一致:Host 更新不覆盖在途编辑,只有保存才写回;
|
|
58
|
+
* 保存成功后按 Host 解析值重置草稿。`from`/`patch` 参与 effect 与 useMemo
|
|
59
|
+
* 依赖,必须是模块级稳定函数(不要内联箭头函数)。
|
|
60
|
+
* @module @dsh-plus/shared/client/draft
|
|
61
|
+
*/
|
|
62
|
+
var init_draft = __esmMin((() => {
|
|
63
|
+
init_card();
|
|
64
|
+
}));
|
|
65
|
+
//#endregion
|
|
52
66
|
//#region ../shared/src/client/fetch.ts
|
|
53
67
|
async function parse(res, guard) {
|
|
54
68
|
const body = await res.json();
|
|
@@ -95,6 +109,7 @@ window.__ModuleLoader__.load({
|
|
|
95
109
|
//#region ../shared/src/client/index.ts
|
|
96
110
|
var init_client = __esmMin((() => {
|
|
97
111
|
init_card();
|
|
112
|
+
init_draft();
|
|
98
113
|
init_fetch();
|
|
99
114
|
init_fields();
|
|
100
115
|
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.26",
|
|
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.31"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.4",
|