@deepseek-ai/dsh-hmr 0.1.6-alpha.2 → 0.1.7-alpha.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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/package.json +15 -15
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/boot/hmr/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 9e2c62c739c420ceae3db3fd5ade58d6eeadacec
|
|
6
|
+
README.zh.md: fa926d5998f7f4b784fe2f848b5acc3047b91b77
|
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ Chokidar options, including polling, retain their existing meaning. Exact config
|
|
|
54
54
|
<details>
|
|
55
55
|
<summary>Implementation internals — click to expand</summary>
|
|
56
56
|
|
|
57
|
-
`watchConfig()` registers an awaited configuration handler. `runExclusive()` serializes configuration changes and Loader updates with automatic reloads and rejects nested transactions. Package installation and removal run outside this queue. HMR does not acquire the package writer lock; manifest notifications reload only when the ordered `dsh.profile.bundles` list changes. Profile and home patch changes also trigger recomposition. File events received during a configuration transaction are processed afterward.
|
|
57
|
+
`watchConfig()` registers an awaited configuration handler. `runExclusive()` serializes configuration changes and Loader updates with automatic reloads and rejects nested transactions. Package installation and removal run outside this queue. HMR does not acquire the package writer lock; manifest notifications reload only when the ordered `dsh.profile.bundles` list changes. Profile and home patch changes also trigger recomposition. File events received during a configuration transaction are processed afterward. Include refreshes and profile reconciliation reach plugins through ordinary Loader entry updates; Loader commits volatile-only changes in place.
|
|
58
58
|
|
|
59
59
|
App-boot owns profile parsing and patch precedence. HMR reads the launcher’s data-only `profileContext`, registers the profile manifest and both user patch watches during initialization, and waits for application readiness before processing changes. Its disposal closes the watchers and cancels reloads waiting for startup. HMR also owns module-cache replacement and reload scheduling. Configuration watchers start outside the active transaction context so later notifications can enter the queue. No invariant companion is published because the queue and watcher registrations have no independent persisted projection.
|
|
60
60
|
|
package/README.zh.md
CHANGED
|
@@ -54,7 +54,7 @@ Chokidar 选项(包括轮询)保持原有含义。精确配置监听同时
|
|
|
54
54
|
<details>
|
|
55
55
|
<summary>实现细节——点击展开</summary>
|
|
56
56
|
|
|
57
|
-
`watchConfig()` 注册会被等待的配置处理器。`runExclusive()` 将配置变更、Loader 更新与自动重载串行化,并拒绝嵌套事务。包安装和删除在该队列之外执行。HMR 不获取包操作写锁;manifest 通知仅在有序的 `dsh.profile.bundles` 列表变化时触发重载。profile 与 home patch 变化也会触发重新组合。配置事务期间收到的文件事件在事务结束后处理。
|
|
57
|
+
`watchConfig()` 注册会被等待的配置处理器。`runExclusive()` 将配置变更、Loader 更新与自动重载串行化,并拒绝嵌套事务。包安装和删除在该队列之外执行。HMR 不获取包操作写锁;manifest 通知仅在有序的 `dsh.profile.bundles` 列表变化时触发重载。profile 与 home patch 变化也会触发重新组合。配置事务期间收到的文件事件在事务结束后处理。 Include 刷新和 profile 重载都通过普通的 Loader 条目更新到达插件;仅 volatile 变化由 Loader 就地提交。
|
|
58
58
|
|
|
59
59
|
App-boot 负责 profile 解析和 patch 优先级规则。HMR 读取启动器提供的纯数据 `profileContext`,在初始化时注册 profile manifest 和两份用户 patch 的监听,并等待应用就绪后处理更改。销毁 HMR 时会关闭监听器并取消等待启动的重载。HMR 也负责模块缓存替换和重载调度。配置监听器在当前事务上下文之外启动,使后续通知可以进入队列。不发布 invariant 伴生入口,因为队列和监听注册没有独立的持久投影。
|
|
60
60
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-hmr",
|
|
3
3
|
"description": "Coordinated module and profile configuration hot reload",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7-alpha.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -28,29 +28,29 @@
|
|
|
28
28
|
"author": "Shigma <shigma10826@gmail.com>",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@deepseek-ai/cordis": "^
|
|
32
|
-
"@deepseek-ai/cordis
|
|
33
|
-
"@deepseek-ai/cordis-plugin-
|
|
34
|
-
"@deepseek-ai/dsh-app-boot": "^0.1.
|
|
35
|
-
"@deepseek-ai/cordis-plugin-
|
|
36
|
-
"@deepseek-ai/dsh-cmdline": "^0.1.
|
|
31
|
+
"@deepseek-ai/cordis-plugin-timer": "^1.1.5",
|
|
32
|
+
"@deepseek-ai/cordis": "^4.0.3",
|
|
33
|
+
"@deepseek-ai/cordis-plugin-loader": "^1.0.4",
|
|
34
|
+
"@deepseek-ai/dsh-app-boot": "^0.1.7-alpha.1",
|
|
35
|
+
"@deepseek-ai/cordis-plugin-include": "^1.0.8",
|
|
36
|
+
"@deepseek-ai/dsh-cmdline": "^0.1.7-alpha.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@babel/code-frame": "^7.29.0",
|
|
40
40
|
"chokidar": "^4.0.3",
|
|
41
41
|
"picomatch": "^4.0.3",
|
|
42
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
42
|
+
"@deepseek-ai/schemastery": "^3.18.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/babel__code-frame": "^7.27.0",
|
|
46
46
|
"@types/picomatch": "^3.0.2",
|
|
47
47
|
"esbuild": "^0.28.1",
|
|
48
|
-
"@deepseek-ai/cordis-plugin-timer": "^1.1.
|
|
49
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
50
|
-
"@deepseek-ai/cordis-plugin-loader": "^1.0.
|
|
51
|
-
"@deepseek-ai/cordis-plugin-include": "^1.0.
|
|
52
|
-
"@deepseek-ai/dsh-app-boot": "^0.1.
|
|
53
|
-
"@deepseek-ai/dsh-cmdline": "^0.1.
|
|
54
|
-
"@deepseek-ai/dsh-atomic-write": "^0.1.
|
|
48
|
+
"@deepseek-ai/cordis-plugin-timer": "^1.1.5",
|
|
49
|
+
"@deepseek-ai/cordis": "^4.0.3",
|
|
50
|
+
"@deepseek-ai/cordis-plugin-loader": "^1.0.4",
|
|
51
|
+
"@deepseek-ai/cordis-plugin-include": "^1.0.8",
|
|
52
|
+
"@deepseek-ai/dsh-app-boot": "^0.1.7-alpha.1",
|
|
53
|
+
"@deepseek-ai/dsh-cmdline": "^0.1.7-alpha.1",
|
|
54
|
+
"@deepseek-ai/dsh-atomic-write": "^0.1.7-alpha.1"
|
|
55
55
|
}
|
|
56
56
|
}
|