dsh-expert-group 0.1.1
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/LICENSE +38 -0
- package/README.md +355 -0
- package/THIRD_PARTY_NOTICES.md +35 -0
- package/assets/notification-whoosh.wav +0 -0
- package/bin/prompt-inspector.mjs +63 -0
- package/client-bundle.js +14891 -0
- package/client-expert-group-model.js +426 -0
- package/client-expert-group-sidebar.js +5401 -0
- package/client-freshness.js +364 -0
- package/client-model-config.js +2155 -0
- package/client-notifications.js +38 -0
- package/client.js +6487 -0
- package/cordis.patch.yml +10 -0
- package/fanout-host.js +1507 -0
- package/fanout.js +2981 -0
- package/host/composition.js +155 -0
- package/host/expert-group-runtime.js +822 -0
- package/host/expert-group-snapshot.js +450 -0
- package/host/fanout-runtime.js +822 -0
- package/host/handoff.js +80 -0
- package/host/lineage.js +274 -0
- package/host/notifications.js +189 -0
- package/host/persistence-health.js +389 -0
- package/host/recovery.js +242 -0
- package/host/rpc-transport.js +573 -0
- package/host/settings-runtime.js +168 -0
- package/host/settings-source.js +265 -0
- package/host/storage-binding.js +94 -0
- package/host/system-toast.js +916 -0
- package/image-routing.js +263 -0
- package/index.js +9327 -0
- package/install.ps1 +219 -0
- package/orchestrator.js +239 -0
- package/package.json +142 -0
- package/prompt-contracts.js +148 -0
- package/prompt-inspector.js +584 -0
- package/prompt-sidecar.js +610 -0
- package/resource-budget.js +540 -0
- package/role-registry.js +286 -0
- package/rpc-host.js +310 -0
- package/scripts/assemble-client.mjs +605 -0
- package/scripts/build.mjs +124 -0
- package/shared.js +4003 -0
- package/storage.js +190 -0
- package/uninstall.ps1 +47 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 客户端通知模块(已收缩为占位:客户端不再投递任何通知)。
|
|
3
|
+
*
|
|
4
|
+
* 用户要求:**系统通知是唯一通知界面**——由 Host 在 Windows 右下角弹 Toast(其它应用在前台、
|
|
5
|
+
* DSH 在后台时同样可见),客户端不再承担任何投递职责。因此本模块不再提供:
|
|
6
|
+
*
|
|
7
|
+
* - 页面内卡片/弹窗(历史 ADR 0004 的弹窗桥与其 CSS、aria 契约已整体移除);
|
|
8
|
+
* - 浏览器通知构造器(客户端不得再次创建系统通知);
|
|
9
|
+
* - 通知快照的主动轮询(该只读 RPC 仍由 Host 提供,供其它契约与诊断使用,
|
|
10
|
+
* 但客户端不再读取它,也不再据此推导通知)。
|
|
11
|
+
*
|
|
12
|
+
* 文件本身仍留在拼接顺序与 package.json 的 files 白名单里(都由 assembler/发布清单引用),
|
|
13
|
+
* 因此保留"登记一个惰性命名空间"的最小形态:任何仍按旧 Symbol 读取的实现只会拿到一个显式
|
|
14
|
+
* 声明"客户端不投递"的冻结对象,绝不会意外恢复投递能力,也不会在读不到该 Symbol 时抛错。
|
|
15
|
+
*
|
|
16
|
+
* @module dsh-expert-group/client-notifications
|
|
17
|
+
*/
|
|
18
|
+
(function installClientNotifications(global) {
|
|
19
|
+
"use strict";
|
|
20
|
+
|
|
21
|
+
const SYMBOL = Symbol.for("dsh-expert-group/client-notifications");
|
|
22
|
+
// 幂等:同一页面重复求值(打包器重复内联、测试重复 import)不覆盖已有命名空间。
|
|
23
|
+
const existing = global[SYMBOL];
|
|
24
|
+
if (existing !== undefined && existing !== null) return;
|
|
25
|
+
|
|
26
|
+
global[SYMBOL] = Object.freeze({
|
|
27
|
+
/** 交付责任归属:只有 Host 会投递(Windows 右下角系统 Toast)。 */
|
|
28
|
+
delivery: "host-system-toast",
|
|
29
|
+
/** 客户端是否具备投递能力:恒为 false(测试与诊断据此断言"客户端不投递")。 */
|
|
30
|
+
canDeliver: false,
|
|
31
|
+
/** 被移除的投递面清单:读代码的人不必猜哪些能力"本来有",这里显式列出。 */
|
|
32
|
+
removedCapabilities: Object.freeze([
|
|
33
|
+
"in-page-popup",
|
|
34
|
+
"browser-notification",
|
|
35
|
+
"notification-snapshot-polling",
|
|
36
|
+
]),
|
|
37
|
+
});
|
|
38
|
+
})(globalThis);
|