dsh-remote-plugin 0.8.7 → 0.9.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.
Files changed (70) hide show
  1. package/README.en.md +16 -5
  2. package/README.md +15 -4
  3. package/apk/dsh-remote.apk +0 -0
  4. package/gateway.cjs +659 -130
  5. package/index.mjs +33 -1
  6. package/package.json +8 -3
  7. package/public/activity.js +196 -52
  8. package/public/admin.html +34 -32
  9. package/public/admin.js +11 -2
  10. package/public/app.js +1341 -223
  11. package/public/bc-integration.css +81 -0
  12. package/public/build.json +2 -2
  13. package/public/composer-tools.css +184 -0
  14. package/public/composer-tools.js +888 -0
  15. package/public/desktop/desktop.html +104 -76
  16. package/public/desktop/desktop.js +668 -101
  17. package/public/diagnostics.js +30 -4
  18. package/public/e2ee-transport.js +154 -7
  19. package/public/file-inbox.js +77 -18
  20. package/public/genui.css +10 -0
  21. package/public/genui.js +22 -4
  22. package/public/history.js +15 -2
  23. package/public/host-queue.js +232 -0
  24. package/public/host-schedule.js +301 -0
  25. package/public/host-state.css +19 -0
  26. package/public/index.html +347 -140
  27. package/public/md.js +21 -1
  28. package/public/network.js +33 -1
  29. package/public/onboarding.js +3 -3
  30. package/public/operations.js +26 -12
  31. package/public/plan-review.css +297 -0
  32. package/public/plan-review.js +621 -0
  33. package/public/plugin.html +29 -27
  34. package/public/relay-autopair.js +25 -10
  35. package/public/relay-settings.css +11 -0
  36. package/public/relay-settings.js +350 -28
  37. package/public/session-management.css +61 -0
  38. package/public/session-management.js +742 -0
  39. package/public/session-search.css +137 -0
  40. package/public/session-search.js +977 -0
  41. package/public/skins/blue-fish/preview.html +3 -3
  42. package/public/skins/bocchi/preview.html +5 -5
  43. package/public/skins/kita/preview.html +6 -6
  44. package/public/skins/miku/SOURCES.json +10 -0
  45. package/public/skins/miku/chibi.png +0 -0
  46. package/public/skins/miku/preview.html +33 -0
  47. package/public/skins/miku/skin.css +82 -0
  48. package/public/skins/nijika/preview.html +6 -6
  49. package/public/skins/penguin/preview.html +3 -3
  50. package/public/skins/penguin-logistics/cargo.svg +4 -0
  51. package/public/skins/penguin-logistics/console.svg +4 -0
  52. package/public/skins/penguin-logistics/mark.svg +4 -0
  53. package/public/skins/penguin-logistics/radio.svg +4 -0
  54. package/public/skins/penguin-logistics/skin.css +292 -0
  55. package/public/skins/penguin-logistics/standing.png +0 -0
  56. package/public/skins/ryo/preview.html +6 -6
  57. package/public/slash-suggestions.css +43 -0
  58. package/public/slash-suggestions.js +196 -0
  59. package/public/sponsor-entry.js +11 -3
  60. package/public/styles.css +141 -21
  61. package/public/subagents.css +7 -0
  62. package/public/subagents.js +83 -10
  63. package/public/theme-vars.css +102 -3
  64. package/public/theme.js +7 -4
  65. package/public/turn-diff.css +323 -0
  66. package/public/turn-diff.js +778 -0
  67. package/public/update.json +12 -12
  68. package/public/version.json +1 -1
  69. package/public/workflow.css +322 -43
  70. package/public/workflow.js +148 -44
@@ -0,0 +1,81 @@
1
+ /* Shared wiring for the B/C feature modules. Feature styling lives in each
2
+ * module stylesheet; this file only places the module-owned DOM in the two
3
+ * clients and adds the message-selection quote affordance. */
4
+ .ct-anchor {
5
+ position: relative;
6
+ display: block;
7
+ width: 100%;
8
+ height: 0;
9
+ }
10
+ #session-search-host {
11
+ margin: 8px 0 12px;
12
+ }
13
+ #session-search-host.hidden { display: none !important; }
14
+ .dr-bc-search-toggle.is-active { border-color: var(--dsr-accent, #58a6ff); }
15
+
16
+ .ct-quote-pick {
17
+ position: fixed;
18
+ z-index: 120;
19
+ display: inline-flex;
20
+ align-items: center;
21
+ gap: 6px;
22
+ min-height: 40px;
23
+ padding: 8px 12px;
24
+ border: 1px solid var(--dsr-accent, #58a6ff);
25
+ border-radius: 10px;
26
+ background: var(--dsr-panel, #161b22);
27
+ color: var(--dsr-text, #f0f6fc);
28
+ font: inherit;
29
+ font-size: 13px;
30
+ box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
31
+ cursor: pointer;
32
+ }
33
+ .ct-quote-pick[hidden], .ct-quote-pick.hidden { display: none !important; }
34
+ .ct-quote-pick:focus-visible { outline: 2px solid var(--dsr-accent, #58a6ff); outline-offset: 2px; }
35
+
36
+ /* The session-actions dialog receives the C3 row actions at runtime. */
37
+ #session-admin-actions:empty { display: none; }
38
+ #session-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
39
+
40
+ /* Workspace administration dialog, mounted by C3. */
41
+ #modal-workspace-admin .dr-session-admin-host { margin: 0; }
42
+
43
+ /* Desktop settings do not load the mobile form styles; give the one added
44
+ * switch the same compact appearance without touching the shared stylesheet. */
45
+ .ds-setting-row .switch {
46
+ position: relative;
47
+ display: inline-block;
48
+ flex: none;
49
+ width: 46px;
50
+ height: 27px;
51
+ }
52
+ .ds-setting-row .switch input { position: absolute; opacity: 0; width: 0; height: 0; }
53
+ .ds-setting-row .switch .slider {
54
+ position: absolute;
55
+ inset: 0;
56
+ border: 1px solid var(--dsr-line, #30363d);
57
+ border-radius: 999px;
58
+ background: var(--dsr-bg-2, #21262d);
59
+ cursor: pointer;
60
+ transition: background-color .15s ease, border-color .15s ease;
61
+ }
62
+ .ds-setting-row .switch .slider::before {
63
+ content: "";
64
+ position: absolute;
65
+ left: 3px;
66
+ top: 3px;
67
+ width: 19px;
68
+ height: 19px;
69
+ border-radius: 50%;
70
+ background: var(--dsr-text-disabled, #8b949e);
71
+ transition: transform .15s ease, background-color .15s ease;
72
+ }
73
+ .ds-setting-row .switch input:checked + .slider {
74
+ background: var(--dsr-accent-soft, rgba(88, 166, 255, .16));
75
+ border-color: var(--dsr-accent, #58a6ff);
76
+ }
77
+ .ds-setting-row .switch input:checked + .slider::before {
78
+ transform: translateX(19px);
79
+ background: var(--dsr-accent, #58a6ff);
80
+ }
81
+ .ds-setting-row .switch input:focus-visible + .slider { outline: 2px solid var(--dsr-accent, #58a6ff); outline-offset: 2px; }
package/public/build.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "0.8.7",
4
- "buildId": "7b7352352544bd35e441ffdb4de480368defbe9386c58dff9a6ed41c2318b2e3"
3
+ "version": "0.9.0",
4
+ "buildId": "62134119698eef6589b38ff6409a46d4160345043eb1aad1ba54e22b19d0b979"
5
5
  }
@@ -0,0 +1,184 @@
1
+ /* B6 组合输入增强:命令/引用候选浮层与待发送引用卡片。
2
+ * 全部使用现有主题变量,零构建;触控目标 >= 44px,键盘焦点可见;
3
+ * 候选的显示不依赖 hover(触屏也能直接点按)。 */
4
+ .ct-menu {
5
+ box-sizing: border-box;
6
+ position: absolute;
7
+ left: 8px;
8
+ right: 8px;
9
+ bottom: calc(100% + 6px);
10
+ z-index: 60;
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: 2px;
14
+ max-height: min(52dvh, 420px);
15
+ padding: 6px;
16
+ overflow-y: auto;
17
+ overscroll-behavior: contain;
18
+ -webkit-overflow-scrolling: touch;
19
+ border: 1px solid var(--dsr-line, #30363d);
20
+ border-radius: 14px;
21
+ background: var(--dsr-panel, #161b22);
22
+ box-shadow: 0 14px 36px var(--dsr-shadow, rgba(0, 0, 0, .4));
23
+ }
24
+ .ct-menu[hidden],
25
+ .ct-menu.hidden { display: none !important; }
26
+
27
+ .ct-item {
28
+ display: flex;
29
+ align-items: flex-start;
30
+ gap: 8px;
31
+ width: 100%;
32
+ min-height: 44px;
33
+ margin: 0;
34
+ padding: 9px 11px;
35
+ border: 0;
36
+ border-radius: 10px;
37
+ background: transparent;
38
+ color: var(--dsr-text, #f0f6fc);
39
+ font: inherit;
40
+ text-align: left;
41
+ cursor: pointer;
42
+ touch-action: manipulation;
43
+ -webkit-tap-highlight-color: transparent;
44
+ }
45
+ .ct-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
46
+ .ct-item-name {
47
+ font-size: 14px;
48
+ line-height: 1.4;
49
+ font-weight: 600;
50
+ overflow-wrap: anywhere;
51
+ }
52
+ .ct-command .ct-item-name {
53
+ color: var(--dsr-accent-strong, #79c0ff);
54
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
55
+ }
56
+ .ct-item-detail {
57
+ font-size: 12px;
58
+ line-height: 1.45;
59
+ color: var(--dsr-muted, #a7b0bc);
60
+ overflow-wrap: anywhere;
61
+ }
62
+ .ct-item-meta {
63
+ font-size: 11px;
64
+ line-height: 1.4;
65
+ color: var(--dsr-text-disabled, #6e7681);
66
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
67
+ overflow-wrap: anywhere;
68
+ }
69
+ .ct-item.is-active { background: var(--dsr-accent-soft, rgba(88, 166, 255, .12)); box-shadow: inset 0 0 0 1px var(--dsr-accent-line, rgba(88, 166, 255, .4)); }
70
+ .ct-item:active { background: var(--dsr-accent-soft, rgba(88, 166, 255, .12)); }
71
+ .ct-item:focus-visible,
72
+ .ct-quote button:focus-visible { outline: 2px solid var(--dsr-accent, #58a6ff); outline-offset: 2px; }
73
+ @media (hover: hover) {
74
+ .ct-item:hover { background: var(--dsr-accent-soft, rgba(88, 166, 255, .12)); }
75
+ }
76
+
77
+ /* 主机降级提示:默认隐藏,只在旧主机/暂时失败时出现,不阻塞输入与发送。 */
78
+ .ct-hint {
79
+ margin: 0;
80
+ padding: 6px 14px 0;
81
+ font-size: 12px;
82
+ line-height: 1.45;
83
+ color: var(--dsr-muted, #a7b0bc);
84
+ }
85
+ .ct-hint[hidden],
86
+ .ct-hint.hidden { display: none !important; }
87
+ .ct-hint.ct-hint-error { color: var(--dsr-warning, #ff9e64); }
88
+
89
+ /* 待发送引用:横向滚动卡片,发送前可展开检查、可移除;不会自动发送。 */
90
+ .ct-quotes {
91
+ display: flex;
92
+ gap: 8px;
93
+ padding: 8px 12px 0;
94
+ overflow-x: auto;
95
+ scrollbar-width: none;
96
+ }
97
+ .ct-quotes::-webkit-scrollbar { display: none; }
98
+ .ct-quotes[hidden],
99
+ .ct-quotes.hidden { display: none !important; }
100
+ .ct-quote {
101
+ flex: 0 0 min(78vw, 320px);
102
+ min-width: 0;
103
+ padding: 8px 10px;
104
+ border: 1px solid var(--dsr-line, #30363d);
105
+ border-left: 3px solid var(--dsr-info, #7dcfff);
106
+ border-radius: 12px;
107
+ background: var(--dsr-panel, #161b22);
108
+ overflow-wrap: anywhere;
109
+ }
110
+ .ct-quote-head { display: flex; align-items: center; gap: 6px; }
111
+ .ct-quote-meta {
112
+ flex: 1;
113
+ min-width: 0;
114
+ font-size: 11px;
115
+ line-height: 1.4;
116
+ color: var(--dsr-muted, #a7b0bc);
117
+ white-space: nowrap;
118
+ overflow: hidden;
119
+ text-overflow: ellipsis;
120
+ }
121
+ .ct-quote button {
122
+ flex: none;
123
+ min-width: 44px;
124
+ min-height: 32px;
125
+ padding: 4px 8px;
126
+ border: 1px solid var(--dsr-line, #30363d);
127
+ border-radius: 8px;
128
+ background: var(--dsr-bg-2, var(--dsr-panel, #161b22));
129
+ color: var(--dsr-text, #f0f6fc);
130
+ font: inherit;
131
+ font-size: 12px;
132
+ cursor: pointer;
133
+ touch-action: manipulation;
134
+ -webkit-tap-highlight-color: transparent;
135
+ }
136
+ .ct-quote-inspect { color: var(--dsr-info, #7dcfff); }
137
+ .ct-quote-remove { color: var(--dsr-error, #ff8f6b); }
138
+ .ct-quote-preview {
139
+ margin: 6px 0 0;
140
+ font-size: 12.5px;
141
+ line-height: 1.5;
142
+ color: var(--dsr-text, #f0f6fc);
143
+ display: -webkit-box;
144
+ -webkit-line-clamp: 2;
145
+ -webkit-box-orient: vertical;
146
+ overflow: hidden;
147
+ }
148
+ .ct-quote-full {
149
+ max-height: 28dvh;
150
+ margin: 6px 0 0;
151
+ padding: 8px;
152
+ overflow: auto;
153
+ border: 1px solid var(--dsr-line, #30363d);
154
+ border-radius: 8px;
155
+ background: var(--dsr-bg, #0d1117);
156
+ font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
157
+ white-space: pre-wrap;
158
+ overflow-wrap: anywhere;
159
+ }
160
+ .ct-quote-full[hidden] { display: none !important; }
161
+ .ct-quote-truncated {
162
+ display: block;
163
+ margin-top: 6px;
164
+ color: var(--dsr-muted, #a7b0bc);
165
+ font-family: inherit;
166
+ font-size: 11px;
167
+ white-space: normal;
168
+ }
169
+
170
+ @media (max-width: 620px) {
171
+ .ct-menu { left: 6px; right: 6px; max-height: min(50dvh, 360px); }
172
+ .ct-item { min-height: 46px; padding: 10px; }
173
+ .ct-quote { flex-basis: min(84vw, 320px); }
174
+ .ct-quote button { min-height: 36px; }
175
+ }
176
+
177
+ /* 窄输入区也保证候选名称可换行,不横向溢出。 */
178
+ @container (max-width: 420px) {
179
+ .ct-item-name { font-size: 13.5px; }
180
+ }
181
+
182
+ @media (prefers-reduced-motion: no-preference) {
183
+ .ct-item { transition: background-color .12s ease; }
184
+ }