dsh-deep-ptc-mode 1.9.4 → 1.9.5
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 +9 -0
- package/COMPATIBILITY.md +2 -2
- package/README.md +11 -4
- package/README.zh.md +11 -4
- package/TEST_REPORT.md +4 -1
- package/lib/client.js +33 -44
- package/lib/index.mjs +20 -8
- package/lib/skill-context.mjs +2 -2
- package/package.json +16 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.5 — 2026-11-14
|
|
4
|
+
|
|
5
|
+
- 插件启动不再等待任何宿主服务(#18)。技能卡、工具状态和输出/SSH 记录在各自服务就绪后自行启动;晚注册的会话投影首次读取时会折叠完整日志,不丢记录。预设在后台发布,只有打开深度 PTC 会话时才会等待首次发布完成,不会拖住整个 Host 启动。感谢 @Freezecatmeow 定位问题并提交 #19。
|
|
6
|
+
- 界面特效不再改写宿主的配色变量、字体和全站控件过渡(#17)。特效只作用于输入框、发送键、消息气泡、回复排版和会话行,私有变量固定定义在根元素上;在深度 PTC 会话之间切换时特效不会先摘后挂,离开时延迟 150ms 关闭。减少动态效果模式只针对这些元素生效。
|
|
7
|
+
- README 新增贡献者名单。
|
|
8
|
+
- Plugin startup no longer waits for any host service (#18). The skill card, tool state and output/SSH activity start when their services are ready; a projection registered late folds the whole log on first read. The preset publishes in the background, and only opening a Deep PTC conversation waits for the first publication, so the Host boot is never held. Thanks to @Freezecatmeow for the diagnosis and #19.
|
|
9
|
+
- Visual effects no longer rewrite host colour tokens, fonts or transitions on every control (#17). They touch only the composer, send button, message bubbles, reply typography and session rows; private variables are defined once on the root. Moving between Deep PTC conversations keeps the effects on instead of removing and re-adding them, and leaving waits 150ms before switching off. Reduced motion applies to those elements only.
|
|
10
|
+
- Add a contributors section to the README.
|
|
11
|
+
|
|
3
12
|
## 1.9.4 — 2026-11-13
|
|
4
13
|
|
|
5
14
|
- 胶囊位置可选:自动 / 输入框下方 / 工具栏 / 隐藏。「自动」检测到 dsh-claude-style 时把胶囊放进输入框工具栏(`conversation.input.right`),不再单独占一行(#16,也补上 #12 的第 3 点)。隐藏后,右侧栏新建页签引导中会出现「深度 PTC」,页签内的按钮可打开面板。
|
package/COMPATIBILITY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 插件协作与验证范围 / Plugin workflows and verification
|
|
2
2
|
|
|
3
|
-
Deep PTC **1.9.
|
|
3
|
+
Deep PTC **1.9.5** · 核对日期:2026-11-13(界面插件);插件协作部分核对于 2026-11-12。接口验证使用 DSH Desktop 0.2.2-rc.2 的校验器与 SDK 渲染器、内嵌 Node 24.21.0。
|
|
4
4
|
|
|
5
5
|
## 可以配合完成哪些工作
|
|
6
6
|
|
|
@@ -76,7 +76,7 @@ DSH Go 的连接资料是额外便利:按远端系统选择托管启动或连
|
|
|
76
76
|
|
|
77
77
|
## English
|
|
78
78
|
|
|
79
|
-
Deep PTC 1.9.
|
|
79
|
+
Deep PTC 1.9.5 can use DrawAI for diagram editing and SVG delivery, guizang-design for design/writing skills and library tools, and Agentero for paper/note tools. dsh-ops supplies compatible execution environments, DSH Go can combine screen tools with SSH connection assistance, and dsh-context can inspect skills through the current Agent's service.
|
|
80
80
|
|
|
81
81
|
Twenty-six published DrawAI 0.4.6, guizang-design 0.1.4 and Agentero host 0.1.8 tool definitions passed isolated registration, host 0.2.2-rc.2 schema validation, Deep PTC discovery/selection and both host SDK renderers. Seven skill contents were readable. DrawAI read/edit/readback, SVG export and repeated stale-revision rejection followed by a fresh-revision write passed. The generic conflict-classification fix preserves unavailable-provider, defect and partial-effect handling. All 199 automated tests pass.
|
|
82
82
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Deep PTC mode
|
|
2
2
|
|
|
3
|
-
[中文](README.zh.md) · MIT · **1.9.
|
|
3
|
+
[中文](README.zh.md) · MIT · **1.9.5**
|
|
4
4
|
|
|
5
5
|
[Changelog](CHANGELOG.md) · [Test report](TEST_REPORT.md) · [Plugin workflows and verification](COMPATIBILITY.md)
|
|
6
6
|
|
|
@@ -77,7 +77,7 @@ The Deep PTC mode label, settings, and conversation UI switch between Chinese an
|
|
|
77
77
|
- **The capsule** shows the environment, subagent count and tool notices, and toggles the independent side panel. Its position is a setting (Settings → Deep PTC → Appearance): auto, below the composer, in the composer toolbar, or hidden. Auto uses the toolbar beside dsh-claude-style so a one-row composer stays one row. When hidden, open the panel from the Deep PTC tab on the right sidebar.
|
|
78
78
|
- **Panel width**: drag the panel's left edge, or focus it and use the arrow keys (Shift for larger steps) or Home/End; a double click restores 280px. The width is remembered, from 240 to 640px, and a docked panel leaves at least 540px for the conversation.
|
|
79
79
|
|
|
80
|
-
Visual effects apply **only while the conversation on screen is a Deep PTC session
|
|
80
|
+
Visual effects apply **only while the conversation on screen is a Deep PTC session**, and only on the composer, send button, message bubbles, reply typography and session rows. They never rewrite the host's colour tokens or fonts, so switching conversations does not restyle the whole page: a hairline on the focused composer, a blue gradient send button, soft blue user bubbles, pointer spotlight, click ripple, a magnetic send button; while running, a glowing composer, a send-button ring and sparks rising above the composer.
|
|
81
81
|
|
|
82
82
|
- Light rendering: effect styles target DSH's own stable attributes instead of measuring elements every frame; looping animations change only opacity or transforms; the spark canvas covers only the area around the composer at no more than 1.5 device pixels per CSS pixel and stops drawing when nothing moves or the window is hidden.
|
|
83
83
|
- With an appearance plugin such as dsh-claude-style or dsh-refined-ui installed, effects start off; turning them on keeps your choice. The standalone dsh-refined-ui is never drawn twice.
|
|
@@ -215,10 +215,10 @@ A prompt changes the model's working tendency, not the real token limit or billi
|
|
|
215
215
|
Requires Node `>=24` and DSH `>=0.2.2-rc.1`. The installer rejects the current package on DSH `0.2.1-rc.5` based on its manifest. macOS/Zsh checks cover configuration, argv and tool mounting.
|
|
216
216
|
|
|
217
217
|
```js
|
|
218
|
-
plugin_manager({ action: "install_bundle", target: "dsh-deep-ptc-mode@1.9.
|
|
218
|
+
plugin_manager({ action: "install_bundle", target: "dsh-deep-ptc-mode@1.9.5" })
|
|
219
219
|
// Or from a local checkout or archive:
|
|
220
220
|
plugin_manager({ action: "install_bundle", target: "C:\\path\\to\\dsh-deep-ptc-mode" })
|
|
221
|
-
// Or target: "C:\\path\\to\\dsh-deep-ptc-mode-1.9.
|
|
221
|
+
// Or target: "C:\\path\\to\\dsh-deep-ptc-mode-1.9.5.tgz"
|
|
222
222
|
```
|
|
223
223
|
|
|
224
224
|
Repository locator: `github:lishize20040802-rgb/dsh-deep-ptc-mode`. It installs content actually published there; a local upgrade does not publish to GitHub or npm.
|
|
@@ -273,6 +273,13 @@ Deep PTC mode is written and maintained by [lishize20040802-rgb](https://github.
|
|
|
273
273
|
- Issues and feature requests: [GitHub issues](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/issues)
|
|
274
274
|
- Email: lishize20040802@gmail.com
|
|
275
275
|
|
|
276
|
+
### Contributors
|
|
277
|
+
|
|
278
|
+
Thanks to these contributors for merged pull requests:
|
|
279
|
+
|
|
280
|
+
- [Freezecatmeow](https://github.com/Freezecatmeow): found and fixed the Web profile boot timeout caused by plugin startup waiting on host services ([#18](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/issues/18), [#19](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/pull/19)).
|
|
281
|
+
- [GYT-Lucas](https://github.com/GYT-Lucas): the duplicated Agent presets settings entry and official preset-gate compatibility ([#13](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/pull/13), [#14](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/pull/14)).
|
|
282
|
+
|
|
276
283
|
Bugs in DeepSeek Harness itself belong upstream, at [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness).
|
|
277
284
|
|
|
278
285
|
|
package/README.zh.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 深度 PTC 模式
|
|
2
2
|
|
|
3
|
-
[English](README.md) · MIT · 当前版本 **1.9.
|
|
3
|
+
[English](README.md) · MIT · 当前版本 **1.9.5**
|
|
4
4
|
|
|
5
5
|
[更新日志](CHANGELOG.md) · [测试报告](TEST_REPORT.md) · [插件协作与验证范围](COMPATIBILITY.md)
|
|
6
6
|
|
|
@@ -77,7 +77,7 @@ Deep PTC 的模式名称、设置页和会话界面会随 DSH「设置 → 通
|
|
|
77
77
|
- **小胶囊**显示执行环境、子代理数和工具提醒,点击展开或收起独立的侧边面板。位置可在「设置 → 深度 PTC → 外观」中选择:自动、输入框下方、工具栏或隐藏。「自动」在 dsh-claude-style 下放进输入框工具栏,紧凑的输入框保持单行。隐藏后,可从右侧栏的「深度 PTC」页签打开面板。
|
|
78
78
|
- **面板宽度**:拖动面板左边缘调整;也可以聚焦左边缘后用方向键(按住 Shift 步长更大)或 Home/End 调整,双击恢复 280px。宽度会被记住,范围 240–640px;停靠时对话区至少保留 540px。
|
|
79
79
|
|
|
80
|
-
界面特效**只在当前显示的是深度 PTC
|
|
80
|
+
界面特效**只在当前显示的是深度 PTC 会话时生效**,且只作用于输入框、发送键、消息气泡、回复排版和会话行,不改写宿主的配色变量与字体,切换会话不会触发整页重绘:输入框聚焦细线、蓝色渐变发送键、淡蓝用户气泡、指针追光、点击涟漪、磁吸发送键;运行时输入框发光、发送键光环和输入框上方的光点。
|
|
81
81
|
|
|
82
82
|
- 轻量渲染:特效样式直接作用于 DSH 自带的稳定属性,不再逐帧计算元素样式;循环动画只改变透明度或位移;光点画布只覆盖输入框附近,像素密度上限 1.5,无动画或窗口隐藏时停止绘制。
|
|
83
83
|
- 检测到 dsh-claude-style、dsh-refined-ui 等外观插件时默认关闭特效;你手动打开后保留你的选择。dsh-refined-ui 运行时始终不重复绘制。
|
|
@@ -219,10 +219,10 @@ Deep PTC 可以把其他插件提供的能力接进同一项任务:用 **DrawA
|
|
|
219
219
|
本地目录或构建产物可通过插件管理器安装:
|
|
220
220
|
|
|
221
221
|
```js
|
|
222
|
-
plugin_manager({ action: "install_bundle", target: "dsh-deep-ptc-mode@1.9.
|
|
222
|
+
plugin_manager({ action: "install_bundle", target: "dsh-deep-ptc-mode@1.9.5" })
|
|
223
223
|
// 也可从本地目录或安装包安装:
|
|
224
224
|
plugin_manager({ action: "install_bundle", target: "C:\\path\\to\\dsh-deep-ptc-mode" })
|
|
225
|
-
// 或 target: "C:\\path\\to\\dsh-deep-ptc-mode-1.9.
|
|
225
|
+
// 或 target: "C:\\path\\to\\dsh-deep-ptc-mode-1.9.5.tgz"
|
|
226
226
|
```
|
|
227
227
|
|
|
228
228
|
GitHub 地址:`github:lishize20040802-rgb/dsh-deep-ptc-mode`。该地址安装远端实际内容;本地升级不会自动发布到 GitHub/npm。
|
|
@@ -290,6 +290,13 @@ npm pack
|
|
|
290
290
|
- 问题与需求:[GitHub Issues](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/issues)
|
|
291
291
|
- 邮箱:lishize20040802@gmail.com
|
|
292
292
|
|
|
293
|
+
### 贡献者
|
|
294
|
+
|
|
295
|
+
感谢以下贡献者提交并合并的 PR:
|
|
296
|
+
|
|
297
|
+
- [Freezecatmeow](https://github.com/Freezecatmeow):定位并修复插件启动等待宿主服务导致 Web profile 启动超时的问题([#18](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/issues/18)、[#19](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/pull/19))。
|
|
298
|
+
- [GYT-Lucas](https://github.com/GYT-Lucas):设置导航中重复的「Agent 预设」入口,以及官方预设门禁的兼容([#13](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/pull/13)、[#14](https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/pull/14))。
|
|
299
|
+
|
|
293
300
|
上游 DeepSeek Harness 本身的问题请提到 [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness)。
|
|
294
301
|
|
|
295
302
|
|
package/TEST_REPORT.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
# 1.9.
|
|
1
|
+
# 1.9.5 测试报告 / Test report
|
|
2
|
+
|
|
3
|
+
> 1.9.5 启动与特效性能:210 项自动化测试及结构检查通过。新增覆盖:宿主服务永不就绪时 apply() 立即返回;预设仍在后台发布;深度 PTC 的 resolve 会等到首次发布完成,其他预设不等待;两个深度 PTC 会话之间切换时特效属性不被摘除;特效样式不包含宿主配色变量、字体、全站控件规则或通配元素规则。在本地 DSH 0.2.2-rc.1 测试 profile 中:启动正常,预设注册;开启特效时宿主变量(背景、文字、字体)与关闭时一致;4 个深度 PTC 会话之间切换,特效属性翻转 0 次。浏览器窗格处于隐藏状态,页面不渲染,因此未测量切换耗时。
|
|
4
|
+
> Version 1.9.5 startup and effects performance: 210 tests and structural checks pass. New coverage: apply() returns at once when host services never become ready; the preset still publishes in the background; a Deep PTC resolve waits for the first publication while other presets do not; switching between two Deep PTC conversations never removes the effects attribute; the effects stylesheet contains no host colour tokens, fonts, page-wide control rules or universal rules. In a local DSH 0.2.2-rc.1 test profile, boot succeeded and the preset registered; host background, label and font variables were identical with effects on and off; moving among four Deep PTC conversations flipped the effects attribute 0 times. The browser pane was hidden, so the page did not render and switch timing was not measured.
|
|
2
5
|
|
|
3
6
|
> 1.9.4 胶囊位置与面板宽度:205 项自动化测试及结构检查通过。新增覆盖:默认位置、dsh-claude-style 下胶囊移入工具栏且两处胶囊控制同一面板、隐藏后右侧栏引导出现并可打开面板、位置偏好持久化、左边缘拖动/方向键/双击调整宽度及上下限、右下角挂件留白。在本地 DSH 0.2.2-rc.1 测试 profile 中实测:拖动后面板由 280px 变为 482px,对话区边距同步,宽度被记住;用 claude-style 的页面标记模拟时,胶囊与模型选择器、发送按钮同处一行;窄屏浮动面板保留拖动边缘;客户端无本插件报错。未与 dsh-claude-style、dsh-whale-widget 实际同装运行;10 个界面插件为发布包静态核对,见 [协作说明](COMPATIBILITY.md)。
|
|
4
7
|
> Version 1.9.4 capsule position and panel width: 205 tests and structural checks pass, covering default placement, the toolbar capsule beside dsh-claude-style controlling the same panel, the sidebar guide entry when hidden, remembered placement, edge drag/keys/double-click resizing with bounds, and the corner-widget inset. In a local DSH 0.2.2-rc.1 test profile, dragging widened the panel from 280px to 482px with the conversation margin following and the width remembered; with dsh-claude-style's page marker simulated, the capsule shared the toolbar row with the model selector and send button; the floating panel kept its resize edge; no client errors from this plugin. dsh-claude-style and dsh-whale-widget were not installed alongside; the ten UI plugins were reviewed statically from their published packages.
|
package/lib/client.js
CHANGED
|
@@ -301,7 +301,6 @@ window.__ModuleLoader__.load({ id: 'dsh-deep-ptc-mode', factory: require => {
|
|
|
301
301
|
// ---------------------------------------------------------------------------------------------
|
|
302
302
|
const PLUGIN = 'dsh-deep-ptc-mode';
|
|
303
303
|
const ON = 'body[data-dpt-ui]';
|
|
304
|
-
const ON0 = ':where(body[data-dpt-ui])';
|
|
305
304
|
const DARK = 'body[data-ds-dark-theme]:not([data-ds-dark-theme="false"])';
|
|
306
305
|
const ON_DARK = 'body[data-dpt-ui][data-ds-dark-theme]:not([data-ds-dark-theme="false"])';
|
|
307
306
|
const COMPOSER = '[data-composer-card]';
|
|
@@ -438,45 +437,11 @@ body[data-dpt-resizing],body[data-dpt-resizing] *{cursor:col-resize!important;us
|
|
|
438
437
|
@keyframes dpt-rise{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
|
|
439
438
|
@media (prefers-reduced-motion:reduce){.dpt-card,.dpt-panel,.dpt-capsule,.dpt-agent-dot,.dpt-switch,.dpt-switch-thumb{animation:none!important;transition:none!important}}
|
|
440
439
|
`;
|
|
440
|
+
// The effects restyle a few host elements only. Toggling them never touches a design token, font or
|
|
441
|
+
// inherited value, so switching conversations restyles those elements and not the whole page (#17).
|
|
441
442
|
const THEME_CSS = `
|
|
442
|
-
|
|
443
|
-
${
|
|
444
|
-
--dsw-alias-bg-base:#ffffff !important;--dsw-alias-surface-2:#f5f7fa !important;
|
|
445
|
-
--dsw-alias-label-primary:#101828 !important;--dsw-alias-label-secondary:#4a5565 !important;--dsw-alias-label-tertiary:#667085 !important;
|
|
446
|
-
--dsw-alias-text-primary:#101828 !important;--dsw-alias-text-secondary:#4a5565 !important;
|
|
447
|
-
--dsw-alias-border-l1:#e3e7ee !important;--dsw-alias-border-l2:#d6dce6 !important;--dsw-alias-border-l2-darkmode-thin:#d6dce6 !important;
|
|
448
|
-
--dsw-alias-interactive-bg-hover:rgba(16,24,40,0.05) !important;--dsw-alias-bg-hover:rgba(16,24,40,0.05) !important;
|
|
449
|
-
--dsw-alias-interactive-bg-hover-danger:rgba(196,50,31,0.10) !important;--dsw-alias-bg-danger:rgba(196,50,31,0.10) !important;
|
|
450
|
-
--dsw-alias-state-error-primary:#c4321f !important;--dsw-alias-text-danger:#c4321f !important;--dsw-alias-border-danger:#c4321f !important;
|
|
451
|
-
--dsw-alias-state-success-primary:#0f7a4f !important;--dsw-alias-text-success:#0f7a4f !important;
|
|
452
|
-
--dsw-alias-state-warning-primary:#8a5a00 !important;--dsw-alias-text-warning:#8a5a00 !important;
|
|
453
|
-
--dsw-specific-bubble:#eaf1ff !important;--dsw-specific-input-major:#ffffff !important;
|
|
454
|
-
--dsw-shadow-lv1:0 1px 2px rgba(16,24,40,0.06),0 4px 14px rgba(16,24,40,0.06) !important;
|
|
455
|
-
--dsh-scrollbar-thumb:rgba(16,24,40,0.16) !important;--dsh-scrollbar-thumb-hover:rgba(16,24,40,0.32) !important;
|
|
456
|
-
--ds-font-family:"Segoe UI Variable Text","Segoe UI","Microsoft YaHei UI","PingFang SC","HarmonyOS Sans SC",system-ui,sans-serif !important;
|
|
457
|
-
--ds-font-family-code:"JetBrains Mono","Cascadia Code","SF Mono",ui-monospace,Consolas,monospace !important;
|
|
458
|
-
-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
|
|
459
|
-
}
|
|
460
|
-
${ON_DARK}{
|
|
461
|
-
--dsw-alias-bg-base:#0e1117 !important;--dsw-alias-surface-2:#161b24 !important;
|
|
462
|
-
--dsw-alias-label-primary:#eef2f8 !important;--dsw-alias-label-secondary:#a3adbd !important;--dsw-alias-label-tertiary:#8a94a6 !important;
|
|
463
|
-
--dsw-alias-text-primary:#eef2f8 !important;--dsw-alias-text-secondary:#a3adbd !important;
|
|
464
|
-
--dsw-alias-border-l1:#263041 !important;--dsw-alias-border-l2:#2f3b50 !important;--dsw-alias-border-l2-darkmode-thin:#2f3b50 !important;
|
|
465
|
-
--dsw-alias-interactive-bg-hover:rgba(238,242,248,0.07) !important;--dsw-alias-bg-hover:rgba(238,242,248,0.07) !important;
|
|
466
|
-
--dsw-alias-interactive-bg-hover-danger:rgba(255,123,104,0.14) !important;--dsw-alias-bg-danger:rgba(255,123,104,0.14) !important;
|
|
467
|
-
--dsw-alias-state-error-primary:#ff7b68 !important;--dsw-alias-text-danger:#ff7b68 !important;--dsw-alias-border-danger:#ff7b68 !important;
|
|
468
|
-
--dsw-alias-state-success-primary:#4cc38a !important;--dsw-alias-text-success:#4cc38a !important;
|
|
469
|
-
--dsw-alias-state-warning-primary:#e0a93b !important;--dsw-alias-text-warning:#e0a93b !important;
|
|
470
|
-
--dsw-specific-bubble:#1b2f5c !important;--dsw-specific-input-major:#161b24 !important;
|
|
471
|
-
--dsw-shadow-lv1:0 1px 2px rgba(0,0,0,0.4),0 4px 14px rgba(0,0,0,0.35) !important;
|
|
472
|
-
--dsh-scrollbar-thumb:rgba(238,242,248,0.18) !important;--dsh-scrollbar-thumb-hover:rgba(238,242,248,0.34) !important;
|
|
473
|
-
--dpt-brand:#5b8cff;--dpt-brand-ink:#9dbcff;
|
|
474
|
-
}
|
|
475
|
-
${ON0} :where(button,[role="button"],[role="menuitem"],[role="tab"],a,summary,select,input,textarea){
|
|
476
|
-
transition:background-color var(--dpt-dur-fast) var(--dpt-ease-out),color var(--dpt-dur-fast) var(--dpt-ease-out),border-color var(--dpt-dur-fast) var(--dpt-ease-out),box-shadow var(--dpt-dur-base) var(--dpt-ease-out),opacity var(--dpt-dur-fast) var(--dpt-ease-out);
|
|
477
|
-
}
|
|
478
|
-
${ON0} :where(button:active:not(:disabled),[role="button"]:active:not([aria-disabled="true"])){transform:scale(0.98)}
|
|
479
|
-
${ON} ::selection{background:color-mix(in srgb,var(--dpt-brand) 24%,transparent)}
|
|
443
|
+
:root{--dpt-dur-fast:120ms;--dpt-dur-base:200ms;--dpt-ease-out:cubic-bezier(0.22,1,0.36,1);--dpt-brand:#3370ff;--dpt-brand-light:color-mix(in srgb,var(--dpt-brand) 70%,#7fd0ff)}
|
|
444
|
+
${DARK}{--dpt-brand:#5b8cff}
|
|
480
445
|
${ON} ${COMPOSER}{position:relative;box-shadow:0 10px 30px rgba(16,24,40,0.07),0 2px 6px rgba(16,24,40,0.05);transition:border-color var(--dpt-dur-base) var(--dpt-ease-out),box-shadow var(--dpt-dur-base) var(--dpt-ease-out)}
|
|
481
446
|
${ON_DARK} ${COMPOSER}{box-shadow:0 10px 30px rgba(0,0,0,0.45),0 2px 6px rgba(0,0,0,0.35)}
|
|
482
447
|
${ON} ${COMPOSER}::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;pointer-events:none;background:linear-gradient(115deg,var(--dpt-brand),var(--dpt-brand-light),var(--dpt-brand),var(--dpt-brand-light));background-size:300% 100%;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity var(--dpt-dur-base) var(--dpt-ease-out)}
|
|
@@ -513,7 +478,7 @@ ${ON}[data-dpt-busy] [data-dpt-send]::after{content:"";position:absolute;inset:-
|
|
|
513
478
|
@keyframes dpt-ripple{0%{transform:scale(.3);opacity:1}100%{transform:scale(7);opacity:0}}
|
|
514
479
|
.dpt-fx{position:fixed;left:0;top:0;z-index:2147482000;pointer-events:none;-webkit-app-region:initial!important}
|
|
515
480
|
@media (prefers-reduced-motion:reduce){
|
|
516
|
-
${ON}
|
|
481
|
+
${ON} :is(${COMPOSER},[data-dpt-send],${BUBBLE},[data-row-key^="session:"]),${ON} ${COMPOSER}::before,${ON} ${COMPOSER}::after,${ON} [data-dpt-send]::after{animation:none !important;transition:none !important}
|
|
517
482
|
}
|
|
518
483
|
`;
|
|
519
484
|
|
|
@@ -602,6 +567,8 @@ ${ON}[data-dpt-busy] [data-dpt-send]::after{content:"";position:absolute;inset:-
|
|
|
602
567
|
const uiOn = () => typeof document !== 'undefined' && document.body?.hasAttribute('data-dpt-ui');
|
|
603
568
|
|
|
604
569
|
const BUSY = { on: false, was: false, timer: 0 };
|
|
570
|
+
// How long the effects stay on after the last Deep PTC conversation leaves the screen.
|
|
571
|
+
const OFF_GRACE_MS = 150;
|
|
605
572
|
function applyBusy() {
|
|
606
573
|
if (typeof document === 'undefined') return;
|
|
607
574
|
const busy = uiOn() && BUSY.on;
|
|
@@ -627,9 +594,11 @@ ${ON}[data-dpt-busy] [data-dpt-send]::after{content:"";position:absolute;inset:-
|
|
|
627
594
|
stopVisuals();
|
|
628
595
|
stopVisuals = undefined;
|
|
629
596
|
}
|
|
630
|
-
const
|
|
597
|
+
const wanted = () => {
|
|
631
598
|
const current = SESSIONS.current();
|
|
632
|
-
|
|
599
|
+
return { current, on: getEffects() && current?.preset === 'deep-ptc' && !refinedPresent() };
|
|
600
|
+
};
|
|
601
|
+
const render = ({ current, on }) => {
|
|
633
602
|
document.body.toggleAttribute('data-dpt-ui', on);
|
|
634
603
|
// Like dsh-refined-ui, a running subagent keeps the conversation working.
|
|
635
604
|
BUSY.on = on && (current?.busy === true || SESSIONS.working.get(current?.id) === true);
|
|
@@ -639,13 +608,33 @@ ${ON}[data-dpt-busy] [data-dpt-send]::after{content:"";position:absolute;inset:-
|
|
|
639
608
|
stopVisuals = () => cleanups.reverse().forEach(cleanup => cleanup());
|
|
640
609
|
} else if (!on) disableVisuals();
|
|
641
610
|
};
|
|
642
|
-
|
|
611
|
+
// The switch in settings applies at once.
|
|
612
|
+
let offTimer = 0;
|
|
613
|
+
const update = () => { clearTimeout(offTimer); render(wanted()); };
|
|
614
|
+
// A conversation switch unmounts one header bridge and mounts the next. Session changes settle at
|
|
615
|
+
// the end of the current task, and switching off waits a moment longer, so moving between Deep PTC
|
|
616
|
+
// conversations never removes and re-adds the effects (#17).
|
|
617
|
+
let queued = false;
|
|
618
|
+
const settle = () => {
|
|
619
|
+
queued = false;
|
|
620
|
+
clearTimeout(offTimer);
|
|
621
|
+
const next = wanted();
|
|
622
|
+
if (!next.on && uiOn()) offTimer = setTimeout(update, OFF_GRACE_MS);
|
|
623
|
+
else render(next);
|
|
624
|
+
};
|
|
625
|
+
const schedule = () => {
|
|
626
|
+
if (queued) return;
|
|
627
|
+
queued = true;
|
|
628
|
+
void Promise.resolve().then(settle);
|
|
629
|
+
};
|
|
630
|
+
SESSIONS.subs.add(schedule);
|
|
643
631
|
const unsubscribe = subscribeEffects(update);
|
|
644
632
|
const sync = event => { if (event.key === EFFECTS_KEY || event.key === null) setEffectsChoice(storedEffects()); };
|
|
645
633
|
window.addEventListener('storage', sync);
|
|
646
634
|
update();
|
|
647
635
|
return () => {
|
|
648
|
-
|
|
636
|
+
clearTimeout(offTimer);
|
|
637
|
+
SESSIONS.subs.delete(schedule);
|
|
649
638
|
unsubscribe();
|
|
650
639
|
window.removeEventListener('storage', sync);
|
|
651
640
|
document.body.removeAttribute('data-dpt-ui');
|
package/lib/index.mjs
CHANGED
|
@@ -190,17 +190,22 @@ async function buildPreset(ctx, config, health) {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
// Nothing in apply() waits for another service, so this plugin never holds the Host boot (#18). Each
|
|
194
|
+
// part starts when its own services are ready, and only what needs it waits for it.
|
|
195
|
+
export function apply(ctx, config) {
|
|
194
196
|
// Safe mode holds until our settings or the upstream declarations change, or DSH restarts.
|
|
195
197
|
const health = { safeMode: false, reason: '' };
|
|
198
|
+
// These layers start as soon as the host provides commands and session projections. A projection
|
|
199
|
+
// registered after histories load still folds the whole log on first read, so starting late loses
|
|
200
|
+
// nothing; a layer whose services fail logs and turns off only its own card.
|
|
196
201
|
// The skill card is a profile-level session projection, not an agent-preset row:
|
|
197
202
|
// that keeps it available in existing Deep PTC sessions after an upgrade. Its
|
|
198
203
|
// command and pre-step paths are gated to deep-ptc sessions below.
|
|
199
|
-
|
|
204
|
+
void applySkillContext(ctx);
|
|
200
205
|
// The tool state and its reset command follow the same rule, so the side card works in idle sessions too.
|
|
201
|
-
|
|
206
|
+
void applyToolStateRoot(ctx);
|
|
202
207
|
// Output files and SSH connections per conversation, for the side panel.
|
|
203
|
-
|
|
208
|
+
void applyActivity(ctx);
|
|
204
209
|
const lifecycle = presetLifecycle(
|
|
205
210
|
definition => ctx.agentPresets.register(definition),
|
|
206
211
|
() => buildPreset(ctx, config, health),
|
|
@@ -248,12 +253,22 @@ export async function apply(ctx, config) {
|
|
|
248
253
|
return [JSON.stringify(settingsOf(ctx, config)), await document('ptc'), await document(CREATIVE_PRESET_ID),
|
|
249
254
|
read(officialPresetUrl()), read(resolveHost(BASE_DECLARATION_SPECIFIER)), read(creativePresetUrl())].join('\0');
|
|
250
255
|
};
|
|
251
|
-
let previous
|
|
256
|
+
let previous;
|
|
257
|
+
// The first publication runs in the background. A Deep PTC conversation waits for it through the
|
|
258
|
+
// resolve check below, so a slow preset registry delays that conversation, never the Host boot.
|
|
259
|
+
const published = (async () => {
|
|
260
|
+
try { previous = await signature(); } catch (error) {
|
|
261
|
+
ctx.logger.warn('Deep PTC: could not read the upstream presets at start (%s)', error.message);
|
|
262
|
+
}
|
|
263
|
+
// A failed publication is reported by the lifecycle and retried on the next change.
|
|
264
|
+
await refreshed().catch(() => {});
|
|
265
|
+
})();
|
|
252
266
|
let detecting;
|
|
253
267
|
let active = true;
|
|
254
268
|
// Concurrent callers share one check, so several conversations opening together read once.
|
|
255
269
|
const detect = () => detecting ??= (async () => {
|
|
256
270
|
try {
|
|
271
|
+
await published;
|
|
257
272
|
const current = await signature();
|
|
258
273
|
if (!active || current === previous) return;
|
|
259
274
|
previous = current;
|
|
@@ -272,7 +287,4 @@ export async function apply(ctx, config) {
|
|
|
272
287
|
ctx.inject(['settings'], child => {
|
|
273
288
|
child.effect(() => child.settings.configure({ auto: false }, ctx.fiber));
|
|
274
289
|
});
|
|
275
|
-
// A failure to publish the preset is reported above; it must not take the
|
|
276
|
-
// settings service (or the rest of the profile) down with it.
|
|
277
|
-
await refreshed().catch(() => {});
|
|
278
290
|
}
|
package/lib/skill-context.mjs
CHANGED
|
@@ -16,8 +16,8 @@ export const inject = [];
|
|
|
16
16
|
const REQUIRED = ['commands', 'sessionProjections'];
|
|
17
17
|
|
|
18
18
|
export function apply(ctx) {
|
|
19
|
-
//
|
|
20
|
-
//
|
|
19
|
+
// Starts once the host services exist; the caller never holds the boot for it. A projection
|
|
20
|
+
// registered after session histories load folds the whole log on first read.
|
|
21
21
|
return ctx.plugin({ name: 'deep-ptc-skill-context-layer', inject: REQUIRED, apply: install }).await()
|
|
22
22
|
.catch(error => ctx.logger.warn('Deep PTC: skill context card is off (%s)', error.message));
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-deep-ptc-mode",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.5",
|
|
4
4
|
"description": "Deep PTC for DeepSeek Harness: interruptible jobs, selectable shells, a side panel with clickable outputs and compact subagent rows, general SSH and DSH Go assistance, bilingual UI, and on-demand tools and skills for drawing, design and research.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -27,6 +27,16 @@
|
|
|
27
27
|
"email": "lishize20040802@gmail.com",
|
|
28
28
|
"url": "https://github.com/lishize20040802-rgb"
|
|
29
29
|
},
|
|
30
|
+
"contributors": [
|
|
31
|
+
{
|
|
32
|
+
"name": "Freezecatmeow",
|
|
33
|
+
"url": "https://github.com/Freezecatmeow"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "GYT-Lucas",
|
|
37
|
+
"url": "https://github.com/GYT-Lucas"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
30
40
|
"repository": {
|
|
31
41
|
"type": "git",
|
|
32
42
|
"url": "git+https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode.git"
|
|
@@ -92,14 +102,14 @@
|
|
|
92
102
|
"sync:snapshot": "node scripts/sync-snapshot.mjs"
|
|
93
103
|
},
|
|
94
104
|
"peerDependencies": {
|
|
95
|
-
"@deepseek-ai/
|
|
105
|
+
"@deepseek-ai/dsh-base": ">=0.2.2-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-client-ui-commands": ">=0.2.2-rc.1",
|
|
96
108
|
"@deepseek-ai/dsh-client-ui-renderer": ">=0.2.2-rc.1",
|
|
97
109
|
"@deepseek-ai/dsh-client-ui-settings": ">=0.2.2-rc.1",
|
|
98
110
|
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.2-rc.1",
|
|
99
|
-
"@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.1",
|
|
100
111
|
"@deepseek-ai/dsh-web-app": ">=0.2.2-rc.1",
|
|
101
|
-
"@deepseek-ai/
|
|
102
|
-
"@deepseek-ai/dsh-client-ui-commands": ">=0.2.2-rc.1"
|
|
112
|
+
"@deepseek-ai/schemastery": "^3.18.4"
|
|
103
113
|
},
|
|
104
114
|
"peerDependenciesMeta": {
|
|
105
115
|
"@deepseek-ai/schemastery": {
|
|
@@ -131,6 +141,7 @@
|
|
|
131
141
|
"js-yaml": "4.3.2"
|
|
132
142
|
},
|
|
133
143
|
"devDependencies": {
|
|
144
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
134
145
|
"react": "18.3.1",
|
|
135
146
|
"react-test-renderer": "18.3.1"
|
|
136
147
|
}
|