@khorsheed/dsh-context-guard 0.2.5 → 0.2.6
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/CHANGELOG.md +4 -0
- package/lib/client.js +20 -20
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/client/index.js +1 -1
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# 变更记录
|
|
2
2
|
|
|
3
|
+
## 0.2.6(2026-10-24)
|
|
4
|
+
|
|
5
|
+
- `dsh.references` 去掉已退役的 `@khorsheed/dsh-bundle-conversation-toolbox`(其成员全部并入 basic)。
|
|
6
|
+
|
|
3
7
|
## 0.2.5(2026-10-22)
|
|
4
8
|
|
|
5
9
|
- **设置卡回归插件页**:家族/模式 bundle 折叠后阈值设置卡整体失声——`plugins.row.config` 的键钉死了旧载体 bundle(成员行现由模式包承载,键永不命中),0.1.5 座位 `settings.plugin.item` 已被宿主改名删除(现名 `plugins.item`),鸭式老臂静默失效。现在改为注册一个 `plugins.item` 列表条目并以 `configForms.whileServed` 门在服役中的 `context-guard` 命名空间上:独立安装、家族 bundle、模式包三种形态同一张卡,组合摘掉该行时卡也干净消失。代价:宿主 <0.1.7-alpha.1 不再渲染设置卡(输入框压缩按钮等其余面不变,已记入 README 兼容节与 `dsh.compat.notes`)。见 [Agent Note](../../.agents/notes/implemented/bug-fix/2026-10-18-bundle-member-config-card-via-plugins-item.md)
|
package/lib/client.js
CHANGED
|
@@ -207,10 +207,10 @@ window.__ModuleLoader__.load({
|
|
|
207
207
|
document.head.appendChild(tag);
|
|
208
208
|
}
|
|
209
209
|
var CompactGuardButton_module_css_default = {
|
|
210
|
-
"icon": "BFFw2a_icon",
|
|
211
|
-
"warning": "BFFw2a_warning",
|
|
212
210
|
"wrap": "BFFw2a_wrap",
|
|
213
211
|
"button": "BFFw2a_button",
|
|
212
|
+
"icon": "BFFw2a_icon",
|
|
213
|
+
"warning": "BFFw2a_warning",
|
|
214
214
|
"error": "BFFw2a_error"
|
|
215
215
|
};
|
|
216
216
|
//#endregion
|
|
@@ -289,30 +289,30 @@ window.__ModuleLoader__.load({
|
|
|
289
289
|
document.head.appendChild(tag);
|
|
290
290
|
}
|
|
291
291
|
var SettingsCard_module_css_default = {
|
|
292
|
-
"badge": "DKjZXq_badge",
|
|
293
|
-
"hint": "DKjZXq_hint",
|
|
294
|
-
"fieldHead": "DKjZXq_fieldHead",
|
|
295
|
-
"footer": "DKjZXq_footer",
|
|
296
|
-
"saved": "DKjZXq_saved",
|
|
297
|
-
"secondary": "DKjZXq_secondary",
|
|
298
|
-
"chevron": "DKjZXq_chevron",
|
|
299
292
|
"description": "DKjZXq_description",
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
"field": "DKjZXq_field",
|
|
303
|
-
"reset": "DKjZXq_reset",
|
|
304
|
-
"inputInvalid": "DKjZXq_inputInvalid",
|
|
293
|
+
"header": "DKjZXq_header",
|
|
294
|
+
"chevron": "DKjZXq_chevron",
|
|
305
295
|
"name": "DKjZXq_name",
|
|
306
|
-
"
|
|
296
|
+
"reset": "DKjZXq_reset",
|
|
297
|
+
"cardOpen": "DKjZXq_cardOpen",
|
|
307
298
|
"chevronOpen": "DKjZXq_chevronOpen",
|
|
299
|
+
"saved": "DKjZXq_saved",
|
|
300
|
+
"fieldName": "DKjZXq_fieldName",
|
|
301
|
+
"card": "DKjZXq_card",
|
|
302
|
+
"field": "DKjZXq_field",
|
|
303
|
+
"body": "DKjZXq_body",
|
|
304
|
+
"hint": "DKjZXq_hint",
|
|
305
|
+
"fieldHead": "DKjZXq_fieldHead",
|
|
308
306
|
"status": "DKjZXq_status",
|
|
309
|
-
"
|
|
310
|
-
"cardOpen": "DKjZXq_cardOpen",
|
|
307
|
+
"footer": "DKjZXq_footer",
|
|
311
308
|
"errorText": "DKjZXq_errorText",
|
|
309
|
+
"inputInvalid": "DKjZXq_inputInvalid",
|
|
312
310
|
"inputRow": "DKjZXq_inputRow",
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
"
|
|
311
|
+
"badge": "DKjZXq_badge",
|
|
312
|
+
"secondary": "DKjZXq_secondary",
|
|
313
|
+
"headText": "DKjZXq_headText",
|
|
314
|
+
"save": "DKjZXq_save",
|
|
315
|
+
"input": "DKjZXq_input"
|
|
316
316
|
};
|
|
317
317
|
//#endregion
|
|
318
318
|
//#region src/client/SettingsCard.tsx
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* card editing the same number live: a `plugins.item` entry on the Plugins
|
|
8
8
|
* page gated by `configForms.whileServed` on the `context-guard` namespace
|
|
9
9
|
* (the official companion convention), so every install shape — standalone,
|
|
10
|
-
* the
|
|
10
|
+
* the basic bundle, a mode pack — surfaces the same card, and
|
|
11
11
|
* a composition without the row shows no trace of it. The action
|
|
12
12
|
* rides the official `/compact` command
|
|
13
13
|
* channel (`remote.commands.execute` → host `ctx.commands` →
|
|
@@ -56,7 +56,7 @@ export function apply(ctx, config) {
|
|
|
56
56
|
}, CompactGuardButton));
|
|
57
57
|
// One Plugins-page card gated on the SERVED NAMESPACE, never on the install
|
|
58
58
|
// shape: whichever composition carries the `context-guard` row — standalone,
|
|
59
|
-
// the
|
|
59
|
+
// the basic bundle, or a mode pack — serves the row's
|
|
60
60
|
// volatile Config under the row id, and `whileServed` keeps the
|
|
61
61
|
// `plugins.item` entry alive for exactly that span (the official companion
|
|
62
62
|
// convention), so a composition without the row shows no trace of the card.
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"context",
|
|
9
9
|
"compaction"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.2.
|
|
11
|
+
"version": "0.2.6",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "lib/index.js",
|
|
14
14
|
"types": "lib/types/index.d.ts",
|
|
@@ -26,9 +26,6 @@
|
|
|
26
26
|
"./locale/*.json": "./locale/*.json"
|
|
27
27
|
},
|
|
28
28
|
"dsh": {
|
|
29
|
-
"references": [
|
|
30
|
-
"@khorsheed/dsh-bundle-conversation-toolbox"
|
|
31
|
-
],
|
|
32
29
|
"bundle": {
|
|
33
30
|
"patch": "./cordis.patch.yml"
|
|
34
31
|
},
|