dsh-remote-plugin 0.8.6 → 0.8.7

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.
@@ -1,14 +1,14 @@
1
1
  <!doctype html>
2
2
  <html lang="zh-CN" data-theme="ryo">
3
3
  <head>
4
- <meta name="dsh-remote-build" content="d76fba47d9b6c34d9a5d32c0e87d24222e6845b382ba95f08151758c5325a3b6">
4
+ <meta name="dsh-remote-build" content="7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3">
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <title>山田凉 · 皮肤样板预览</title>
8
- <link rel="stylesheet" href="../../styles.css?dsr-build=d76fba47d9b6c34d9a5d32c0e87d24222e6845b382ba95f08151758c5325a3b6">
9
- <link rel="stylesheet" href="../../workflow.css?dsr-build=d76fba47d9b6c34d9a5d32c0e87d24222e6845b382ba95f08151758c5325a3b6">
10
- <link rel="stylesheet" href="../kessoku/skin.css?dsr-build=d76fba47d9b6c34d9a5d32c0e87d24222e6845b382ba95f08151758c5325a3b6">
11
- <link rel="stylesheet" href="skin.css?dsr-build=d76fba47d9b6c34d9a5d32c0e87d24222e6845b382ba95f08151758c5325a3b6">
8
+ <link rel="stylesheet" href="../../styles.css?dsr-build=7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3">
9
+ <link rel="stylesheet" href="../../workflow.css?dsr-build=7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3">
10
+ <link rel="stylesheet" href="../kessoku/skin.css?dsr-build=7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3">
11
+ <link rel="stylesheet" href="skin.css?dsr-build=7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3">
12
12
  <style>
13
13
  /* 只负责展示页排版;画框内完全复用实际组件样式,不重画玻璃或背景。 */
14
14
  body{padding:28px 20px 40px}.preview-shell{max-width:980px;margin:auto}.preview-label{font:11px ui-monospace,monospace;letter-spacing:.15em;color:var(--dsr-muted)}
@@ -50,7 +50,7 @@
50
50
  </template>
51
51
  <script>
52
52
  const base=new URL('../../',location.href).href
53
- document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="ryo"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=d76fba47d9b6c34d9a5d32c0e87d24222e6845b382ba95f08151758c5325a3b6"><link rel="stylesheet" href="workflow.css?dsr-build=d76fba47d9b6c34d9a5d32c0e87d24222e6845b382ba95f08151758c5325a3b6"><link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=d76fba47d9b6c34d9a5d32c0e87d24222e6845b382ba95f08151758c5325a3b6"><link rel="stylesheet" href="skins/ryo/skin.css?dsr-build=d76fba47d9b6c34d9a5d32c0e87d24222e6845b382ba95f08151758c5325a3b6"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
53
+ document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="ryo"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3"><link rel="stylesheet" href="workflow.css?dsr-build=7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3"><link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3"><link rel="stylesheet" href="skins/ryo/skin.css?dsr-build=7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
54
54
  </script>
55
55
  </body>
56
56
  </html>
@@ -1,10 +1,14 @@
1
1
  {
2
- "version": "0.8.6",
2
+ "version": "0.8.7",
3
3
  "apkUrl": "dsh-remote.apk",
4
- "sha256": "cc96f0db1d4acf0c6a071cc8d487f0e70f2fae2b267258b75a6b26caa8deed97",
5
- "releasedAt": "2026-11-06T15:29:05.761Z",
6
- "notes": "0.8.6:加密中转首次连接更快、更稳——回环通道预握手、并发提升到 32、繁忙时可重试、主机预留工作通道;会话列表更轻量,冷启动和回前台提前握手。修复 DSH 远程重启换端口后网关不再跟着重启,中转控制通道与公网入口保持在线。修复审批处理后卡片残留、过期审批重连后反复出现;普通分支返回主页、子代理仍回父会话;重命名和分支标题立即更新;新建会话不再改写会话列表,“按时间”恢复跨工作区;Android 返回键优先关闭指令/图片菜单与诊疗浮层,强制公告不被返回键绕过;切换会话不再串带图片附件并按会话保留草稿;失效提问不再卡住弹窗,通知跳转更准确。聊天图片支持长按保存到手机。输入区新增上下文占用圆环,并移到“模型”按钮右侧。平板横屏和大屏下内容区与输入框放宽,不再被 720px 窄列限制。",
4
+ "sha256": "263b328311bdc357c9431534568b62636fb37a439ca9db1932d07e7547c41633",
5
+ "releasedAt": "2026-11-10T07:29:04.130Z",
6
+ "notes": "新增主机与手机的公网中转配对引导;修复部分移动网络下实时连接和轮询失败;改进连接切换时的发送状态提示、Android 图片保存及全屏界面。",
7
7
  "history": [
8
+ {
9
+ "version": "0.8.7",
10
+ "notes": "新增主机与手机的公网中转配对引导;修复部分移动网络下实时连接和轮询失败;改进连接切换时的发送状态提示、Android 图片保存及全屏界面。"
11
+ },
8
12
  {
9
13
  "version": "0.8.6",
10
14
  "notes": "0.8.6:加密中转首次连接更快、更稳——回环通道预握手、并发提升到 32、繁忙时可重试、主机预留工作通道;会话列表更轻量,冷启动和回前台提前握手。修复 DSH 远程重启换端口后网关不再跟着重启,中转控制通道与公网入口保持在线。修复审批处理后卡片残留、过期审批重连后反复出现;普通分支返回主页、子代理仍回父会话;重命名和分支标题立即更新;新建会话不再改写会话列表,“按时间”恢复跨工作区;Android 返回键优先关闭指令/图片菜单与诊疗浮层,强制公告不被返回键绕过;切换会话不再串带图片附件并按会话保留草稿;失效提问不再卡住弹窗,通知跳转更准确。聊天图片支持长按保存到手机。输入区新增上下文占用圆环,并移到“模型”按钮右侧。平板横屏和大屏下内容区与输入框放宽,不再被 720px 窄列限制。"
@@ -40,10 +44,6 @@
40
44
  {
41
45
  "version": "0.7.4",
42
46
  "notes": "修复 Windows Desktop 进程核验拖慢健康检查和管理页的问题:后台缓存并合并探测,测速与首页检测使用存活检查,控制操作仍实时核验身份。修复管理代理超时误报认证失败、操作进度参数丢失、状态轮询竞态及禁用后仍探测 Desktop 崩溃日志。修复桌面对话切换时消息发错会话、压缩状态串会话、归档关闭新会话、服务器切换串用 WS 票据、同源会话导出认证、Desktop 管理页网关地址以及不同本地 IP 同号端口误判。同步修复手机端共享的票据、命令与导出逻辑。继续修复连接切换后旧模型、审批、队列和压缩状态残留,测速覆盖手动选择,新建会话跳错服务器,目标编辑串会话,以及工作台绑定和模型密钥保存串服务器。桌面发送失败保留草稿并避免重复提交。优化实时历史插入、事件列表刷新和子代理查询,修复桌面实时消息被误判无变化;连接切换可立即开始新轮询,旧结果不会覆盖新状态。加强弱网传输:历史与前端资源按需 gzip 压缩、ETag 缓存验证,双通道独立长轮询避免互相阻塞,弱网模式减少历史分页并延长只读等待;Android 后台支持 gzip。修复桌面首次连接依赖系统 prompt 的问题。Android 已完成构建,尚未手机真机验收;本次不提供 HarmonyOS HAP。"
43
- },
44
- {
45
- "version": "0.7.3",
46
- "notes": "修复手机对话页输入栏下方空白,标题与工作区独立显示,操作集中到更多菜单。主页系统链路自动检测和重试,新增分段仪表、拖尾扫描与平滑状态切换。对话历史先显示本地缓存,再后台核对云端内容;一致时保留消息与阅读位置,修复持续上翻导致的卡顿,隐藏无意义的标题事件。插件详情原地展开,清理重复入口,完善 DSH Desktop 插件管理。新增 Windows Desktop 远程启动与重启(实验性),以及网关、受控 DSH 与 Desktop 的限次崩溃恢复;本机轮转记录诊断日志,用户可预览并自行选择通过现有反馈通道上传摘要。加强敏感目录访问、设备权限、配对与系统备份保护,新增离线贡献者致谢,更新现有 Capacitor 至 8.5.3。Android 已完成构建与浏览器验收,尚未手机真机验收;本次不提供 HarmonyOS HAP,新增 WebUI 功能尚未同步鸿蒙。"
47
47
  }
48
48
  ]
49
49
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.8.6"
2
+ "version": "0.8.7"
3
3
  }
@@ -323,11 +323,11 @@ body.workflow-v8.in-session .history { padding-bottom:calc(var(--composer-height
323
323
  .image-lightbox { position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; background:rgba(3,7,12,.96); outline:none; }
324
324
  .image-lightbox:focus { outline:none; }
325
325
  .image-lightbox.hidden { display:none; }
326
- .image-lightbox-stage { position:absolute; inset:0; box-sizing:border-box; display:flex; align-items:center; justify-content:center; padding:calc(var(--dsr-safe-t, 0px) + 56px) 12px calc(var(--dsr-safe-b, 0px) + 44px); overflow:auto; -webkit-overflow-scrolling:touch; }
326
+ .image-lightbox-stage { position:absolute; inset:0; box-sizing:border-box; display:flex; align-items:center; justify-content:center; padding:calc(var(--dsr-safe-top, 0px) + 56px) 12px calc(var(--dsr-safe-b, 0px) + 44px); overflow:auto; -webkit-overflow-scrolling:touch; }
327
327
  .image-lightbox-stage img { display:block; max-width:100%; max-height:100%; object-fit:contain; border-radius:12px; touch-action:manipulation; user-select:none; -webkit-user-select:none; }
328
328
  .image-lightbox.is-zoomed .image-lightbox-stage { display:block; text-align:center; }
329
329
  .image-lightbox.is-zoomed .image-lightbox-stage img { display:inline-block; max-width:none; max-height:none; margin:0 auto; }
330
- .image-lightbox-close { position:fixed; top:calc(var(--dsr-safe-t, 0px) + 10px); right:12px; z-index:2; width:44px; height:44px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.26); background:rgba(16,23,32,.78); color:#eef4fb; font-size:20px; line-height:1; }
330
+ .image-lightbox-close { position:fixed; top:calc(var(--dsr-safe-top, 0px) + 10px); right:12px; z-index:2; width:44px; height:44px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.26); background:rgba(16,23,32,.78); color:#eef4fb; font-size:20px; line-height:1; }
331
331
  .image-lightbox-hint { position:fixed; left:0; right:0; bottom:calc(var(--dsr-safe-b, 0px) + 10px); z-index:2; text-align:center; color:rgba(226,236,247,.78); font-size:12px; pointer-events:none; }
332
332
  body.image-preview-open { overflow:hidden; }
333
333
  @media (prefers-reduced-motion:reduce) { .workflow-v8 * { scroll-behavior:auto!important; } }
@@ -50,7 +50,7 @@
50
50
  const content=element('div'),pending=element('section'),receipts=element('section'),records=element('section')
51
51
  pending.append(element('h3','',label('待审批与待回答','Approvals and questions')))
52
52
  receipts.append(element('h3','',label('操作回执','Operation receipts')),
53
- element('p','workflow-muted',label('回执用于查询网络中断后尚未确认的操作结果。','Receipts track operation results after a connection interruption.')))
53
+ element('p','workflow-muted',label('回执用于查询网络中断后尚未确认的操作结果;切换连接后未确认的回执会继续显示,切回原连接后可查询。','Receipts track operation results after a connection interruption. Unconfirmed receipts stay listed after switching connections; switch back to query them.')))
54
54
  records.append(element('h3','',label('审批记录','Approval records')))
55
55
  const rows=element('div');receipts.append(rows);content.append(pending,records,receipts)
56
56
  openSheet(label('审批与操作回执','Approvals and receipts'),content);operationList=rows
@@ -72,17 +72,24 @@
72
72
  if(!rows.length)target.append(element('p','workflow-muted',label('没有待确认操作。','No unconfirmed operations.')))
73
73
  for(const row of rows){
74
74
  const item=element('div','workflow-receipt')
75
- item.append(element('strong','',row.method),element('code','',row.id),element('span','workflow-muted',label('结果待确认,不会自动重复提交','Unconfirmed; never automatically submitted again')))
76
- const check=button('查询结果','Check result',async()=>{
77
- check.disabled=true
78
- try {
79
- const value=await root.DshOperations.check(row.id)
80
- if(!sheet.open||target!==operationList)return
81
- item.append(element('p','',value?label('当前状态:','Status: ')+value.phase:label('暂时无法确认,请核对会话。','Unable to confirm. Check the conversation.')))
82
- if(value?.phase==='complete'){config.refresh();config.recover?.(row,value);check.remove()}
83
- }catch{item.append(element('p','',label('网络不可达,可稍后查询。','Network unavailable. Check later.')))}
84
- finally{check.disabled=false}
85
- });item.append(check)
75
+ const remote=row.current===false
76
+ item.append(element('strong','',row.method),element('code','',row.id),
77
+ element('span','workflow-muted',remote
78
+ ? label('结果待确认(来自其他连接,切回后可查询)','Unconfirmed (from another connection; switch back to check)')
79
+ : label('结果待确认,不会自动重复提交','Unconfirmed; never automatically submitted again')))
80
+ if(remote&&row.origin)item.append(element('p','workflow-muted',row.origin))
81
+ if(!remote){
82
+ const check=button('查询结果','Check result',async()=>{
83
+ check.disabled=true
84
+ try {
85
+ const value=await root.DshOperations.check(row.id)
86
+ if(!sheet.open||target!==operationList)return
87
+ item.append(element('p','',value?label('当前状态:','Status: ')+value.phase:label('暂时无法确认,请核对会话。','Unable to confirm. Check the conversation.')))
88
+ if(value?.phase==='complete'){config.refresh();config.recover?.(row,value);check.remove()}
89
+ }catch{item.append(element('p','',label('网络不可达,可稍后查询。','Network unavailable. Check later.')))}
90
+ finally{check.disabled=false}
91
+ });item.append(check)
92
+ }
86
93
  if(row.phase==='unknown')item.append(button('核对后结束跟踪','Finish tracking after checking',()=>{
87
94
  if(!root.confirm(label('请先核对主机会话记录。结束跟踪后,相同操作将作为新请求提交;如果原操作已执行,再次提交会重复。确定结束跟踪?','Check the conversation on the host first. After tracking ends, the same action will create a new request and may duplicate a completed action. Finish tracking?')))return
88
95
  if(root.DshOperations.dismiss(row.id))void refreshOperations()
@@ -366,7 +373,7 @@
366
373
  sheet.addEventListener('close',()=>{if(!sheet.open){restoreAttention();operationList=null}})
367
374
  setupMore();setupStart();setupComposer();config.start?.()
368
375
  const relaySettings=$('relay-settings')
369
- if(relaySettings){$('settings-page-servers')?.append(relaySettings);root.DshRelaySettings?.mount(relaySettings,{connection:config.relay||config.operations});root.DshE2eeTransport?.mount(relaySettings,{connection:config.relay||config.operations,onConnect:config.e2eeConnect,onModeChange:config.e2eeModeChange,onAutoPaired:config.e2eeAutoPaired})}
376
+ if(relaySettings){$('settings-page-servers')?.append(relaySettings);root.DshRelaySettings?.mount(relaySettings,{connection:config.relay||config.operations});root.DshE2eeTransport?.mount(relaySettings,{connection:config.relay||config.operations,onConnect:config.e2eeConnect,onModeChange:config.e2eeModeChange,onAutoPaired:config.e2eeAutoPaired,onScan:config.e2eeScan})}
370
377
  setupSecondaryPages()
371
378
  const overview=$('view-activity');if(overview)overview.dataset.workflowLegacy='overview'
372
379
  if(!config.desktop){
@@ -63,6 +63,8 @@ curl -sS --max-time 3 http://127.0.0.1:8787/health
63
63
 
64
64
  **验收:** 对应认证入口成功,目标接口返回预期数据;检查两条事件流或轮询的实际增量。
65
65
 
66
+ **写回执:** 发送、创建等写操作在支持 `operations` 的网关上使用持久回执;结果未知时不自动重发。切换连接(地址或令牌变化)后,旧连接的未确认回执仍会显示在“审批与操作回执”和首页提示中,但只有切回原连接才能查询;1006 重连本身不改变回执归属。仓库另有写回执可见性说明 `docs/write-receipt-visibility.md`。
67
+
66
68
  ## KB-CONN-05:中转 HOST_OFFLINE
67
69
 
68
70
  **先看:** 当前中转配置、主机网关是否已连接正确中转、设备身份与主机归属;再做 KB-CONN-03 的同手机网络对照。