dsh-session-guard 3.0.1 → 3.1.0
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 +21 -21
- package/README.md +5 -4
- package/cordis.patch.yml +10 -10
- package/dsh.plugin.json +1 -1
- package/lib/client.js +276 -656
- package/lib/client.js.map +1 -1
- package/package.json +109 -111
- package/src/bridge.js +136 -136
- package/src/client/index.ts +46 -66
- package/src/client/pause-button-text.ts +60 -60
- package/src/client/pause-button.tsx +129 -129
- package/src/client/styles.ts +30 -30
- package/src/detect.js +27 -27
- package/src/gate.js +93 -93
- package/src/index.js +22 -7
- package/src/pause-store.js +101 -101
- package/src/scheduler.js +42 -42
- package/src/settings.js +28 -52
- package/src/step-gate.js +399 -399
- package/src/store.js +77 -77
- package/src/client/settings-card.tsx +0 -391
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 dsh-session-guard contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-session-guard contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -34,13 +34,14 @@
|
|
|
34
34
|
> | --- | --- | --- | --- | --- |
|
|
35
35
|
> | 0.1.0-rc.7 ~ 0.1.1-rc.x | ➖ 不在本线(`legacy/0.1.2` 之前的历史版本) | `ctx.settings.register(ns, schema, { base })` | ✅ 形状一致 | ✅ 无平台值导入 |
|
|
36
36
|
> | 0.1.2-alpha.2+ / 0.1.2-rc.1 | ➖ 不在本线 → 用 `legacy/0.1.2`(npm `@dsh-0.1.2`) | `register` 仍保留(另加 `installSection`) | ✅ 形状一致 | ✅ 无平台值导入 |
|
|
37
|
-
> | **0.1.
|
|
37
|
+
> | **0.1.7-rc.1+** | ✅(**本线**,dist-tag `dsh-0.1.7`) | 声明式:Config `.volatile()` 字段由宿主投影成表单,`register` 已删除 | ✅ 事件经 `snapshotEvents()` 双路径读取 | ✅ 客户端设置卡改 `configForms` |
|
|
38
|
+
> | 0.1.5-rc.2 | ✅(`compat/0.1.5` 分支,dist-tag `dsh-0.1.5`) | `register` 仍在(字符串命名空间) | ✅ 事件经 `snapshotEvents()` 双路径读取 | ✅ |
|
|
38
39
|
>
|
|
39
|
-
> **本线身份**:分支 `compat/0.1.
|
|
40
|
+
> **本线身份**:分支 `compat/0.1.7`,npm 版本号 **`3.1.0`**(semver),dist-tag **`dsh-0.1.7`**。
|
|
40
41
|
> `package.json` 与 `dsh.plugin.json` 的 `engines.dsh` 与三个 `@deepseek-ai/dsh-client-*`
|
|
41
|
-
> peer
|
|
42
|
+
> peer 线统一为 `>=0.1.7-rc.1 <0.2.0-0`。
|
|
42
43
|
> 历史上 README 曾用「2.x / 3.x」当**线代号**,那是叙述习惯,**不是注册表里可拉取的版本号** ——
|
|
43
|
-
> 请一律以 npm 版本号 `0.3.1`(0.1.2 线)与 `3.
|
|
44
|
+
> 请一律以 npm 版本号 `0.3.1`(0.1.2 线)、`3.0.0`/`3.0.1`(0.1.5 线)与 `3.1.0`(0.1.7 线)为准。
|
|
44
45
|
>
|
|
45
46
|
> **其它线的落点**:DSH `0.1.2-rc.x` 宿主请使用分支 **`legacy/0.1.2`**(npm dist-tag
|
|
46
47
|
> `dsh-0.1.2`,版本 `0.3.1`)。**`main` 已冻结在 `0.2.0-beta.1`,不是 0.1.2 线的发布分支。**
|
package/cordis.patch.yml
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# dsh-session-guard bundle patch:一行装配进 profile。
|
|
2
|
-
#
|
|
3
|
-
# host 半(src/index.js)注册 sessionGuard 服务(冗余端口,供 input-traffic 适配)、
|
|
4
|
-
# 高峰自动会话门(taskControl.pause/resume,缺失时回退锁等待队列)、
|
|
5
|
-
# /session-guard/* 路由与 设置→插件→session-guard 子板块(简单开关)。
|
|
6
|
-
# 浏览器半(src/client/index.js,经 package.json dsh.client 声明)提供
|
|
7
|
-
# 高峰状态徽标 + 无 input-traffic 时的回退冻结按钮。
|
|
8
|
-
- insert:
|
|
9
|
-
- id: session-guard
|
|
10
|
-
name: dsh-session-guard
|
|
1
|
+
# dsh-session-guard bundle patch:一行装配进 profile。
|
|
2
|
+
#
|
|
3
|
+
# host 半(src/index.js)注册 sessionGuard 服务(冗余端口,供 input-traffic 适配)、
|
|
4
|
+
# 高峰自动会话门(taskControl.pause/resume,缺失时回退锁等待队列)、
|
|
5
|
+
# /session-guard/* 路由与 设置→插件→session-guard 子板块(简单开关)。
|
|
6
|
+
# 浏览器半(src/client/index.js,经 package.json dsh.client 声明)提供
|
|
7
|
+
# 高峰状态徽标 + 无 input-traffic 时的回退冻结按钮。
|
|
8
|
+
- insert:
|
|
9
|
+
- id: session-guard
|
|
10
|
+
name: dsh-session-guard
|