@wwwfz/dsh-agent-bridge 0.8.3 → 0.10.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 (45) hide show
  1. package/README.md +132 -194
  2. package/THIRD_PARTY_NOTICES.md +67 -0
  3. package/cordis.patch.yml +4 -4
  4. package/package.json +40 -40
  5. package/src/assets.js +405 -348
  6. package/src/catalog.js +999 -605
  7. package/src/client.js +883 -4
  8. package/src/config.js +88 -88
  9. package/src/conversation-readers.js +198 -0
  10. package/src/conversation-store.js +583 -0
  11. package/src/export.js +273 -12
  12. package/src/index.js +282 -136
  13. package/src/native-transcript.js +217 -0
  14. package/src/project-archive.js +145 -145
  15. package/src/projects.js +1837 -980
  16. package/src/session-import.js +138 -93
  17. package/src/session-trace.js +121 -0
  18. package/src/skill-handoff.js +1327 -0
  19. package/src/skill-package.js +417 -0
  20. package/src/skill-provider.js +249 -0
  21. package/src/watch.js +319 -309
  22. package/web/Geist-OFL.txt +93 -93
  23. package/web/agent-icons/NOTICE.md +19 -19
  24. package/web/agent-icons/antigravity.svg +76 -76
  25. package/web/agent-icons/claude.svg +3 -3
  26. package/web/agent-icons/dsh.svg +58 -58
  27. package/web/agent-icons/licenses/copilot.txt +21 -21
  28. package/web/agent-icons/licenses/dsh.txt +21 -21
  29. package/web/agent-icons/licenses/gemini.txt +201 -201
  30. package/web/agent-icons/licenses/opencode.txt +21 -21
  31. package/web/agent-icons/licenses/qoder-notice.txt +18 -18
  32. package/web/agent-icons/licenses/qoder.txt +22 -22
  33. package/web/agent-icons/licenses/qwen.txt +202 -202
  34. package/web/agent-icons/qoder.svg +4 -4
  35. package/web/agent-icons/qwen.svg +5 -5
  36. package/web/agent-icons/workbuddy.svg +29 -29
  37. package/web/inline-process.css +22 -0
  38. package/web/markdown.js +225 -0
  39. package/web/panel.css +168 -151
  40. package/web/panel.html +82 -43
  41. package/web/panel.js +1316 -93
  42. package/web/project-context.js +25 -25
  43. package/web/reader.css +259 -0
  44. package/web/vendor/markdown-it-LICENSE.txt +156 -0
  45. package/web/vendor/markdown-it.mjs +3064 -0
package/web/panel.css CHANGED
@@ -1,88 +1,8 @@
1
- @font-face {
2
- font-family: Geist;
3
- src: local('Geist Variable'), url('./geist-latin-wght-normal.woff2') format('woff2');
4
- font-weight: 100 900;
5
- font-style: normal;
6
- font-display: swap;
7
- }
8
-
9
- :root, :root[data-theme='blue'] {
10
- color-scheme: dark;
11
- --canvas: #101a2c;
12
- --paper: #16243a;
13
- --field: #121f33;
14
- --hover: #1d2f49;
15
- --line: #2b3b53;
16
- --line-strong: #3c5170;
17
- --ink: #edf3ff;
18
- --muted: #a4b4cd;
19
- --accent: #9ec3ff;
20
- --selected: #223b60;
21
- --selected-line: #446ca5;
22
- --focus: #a6caff;
23
- --amber: #efc67a;
24
- --danger: #ffb3b9;
25
- --primary: #3267e4;
26
- --primary-hover: #295bcd;
27
- --primary-line: #5580e8;
28
- --primary-ink: #fff;
29
- --shadow: #080f2059;
30
- --veil: #0710209c;
31
- --mark-surface: #e3eaf5;
32
- }
33
- :root[data-theme='white'] {
34
- color-scheme: light;
35
- --canvas: #f3f5f8;
36
- --paper: #fff;
37
- --field: #f7f8fa;
38
- --hover: #f1f4f8;
39
- --line: #e0e5ed;
40
- --line-strong: #c8d2e1;
41
- --ink: #192537;
42
- --muted: #536279;
43
- --accent: #2558b9;
44
- --selected: #edf3ff;
45
- --selected-line: #aec7f4;
46
- --focus: #2258c4;
47
- --amber: #805718;
48
- --danger: #a13e4b;
49
- --primary: #285fd7;
50
- --primary-hover: #1f50be;
51
- --primary-line: #285fd7;
52
- --shadow: #202c421d;
53
- --veil: #1c294866;
54
- --mark-surface: #eef2f7;
55
- }
56
- :root[data-theme='black'] {
57
- color-scheme: dark;
58
- --canvas: #101114;
59
- --paper: #191b1f;
60
- --field: #15171a;
61
- --hover: #24272c;
62
- --line: #30343c;
63
- --line-strong: #464b56;
64
- --ink: #eef0f4;
65
- --muted: #abb2be;
66
- --accent: #b0c6ef;
67
- --selected: #252e3b;
68
- --selected-line: #4b5a72;
69
- --focus: #a5c2fa;
70
- --amber: #e9c98e;
71
- --danger: #f3a8af;
72
- --primary: #345cb1;
73
- --primary-hover: #2a4e9a;
74
- --primary-line: #5576bb;
75
- --shadow: #00000060;
76
- --veil: #08090bb0;
77
- --mark-surface: #e6e8ed;
78
- }
79
1
  :root {
80
2
  --ease: cubic-bezier(.22, 1, .36, 1);
81
3
  --quick: 170ms;
82
- --radius: 18px;
83
- --panel-shadow: 0 8px 24px color-mix(in srgb, var(--shadow) 48%, transparent);
84
4
  --mono: 'IBM Plex Mono', 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
85
- font: 14px/1.5 Geist, 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
5
+ font: 14px/1.5 'Bridge Geist', 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
86
6
  }
87
7
 
88
8
  * { box-sizing: border-box; }
@@ -90,7 +10,7 @@
90
10
  body { margin: 0; min-width: 0; color: var(--ink); background: var(--canvas); }
91
11
  body:has(dialog[open]) { overflow: hidden; }
92
12
  h1, h2, h3, p { margin: 0; }
93
- h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 680; }
13
+ h1 { font-size: 1.32rem; line-height: 1.25; letter-spacing: -.035em; font-weight: 650; }
94
14
  h2 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 660; }
95
15
  code, pre, .project-path, .project-location { font-family: var(--mono); }
96
16
  button, input, select { font: inherit; }
@@ -102,47 +22,40 @@ button:disabled { opacity: .55; cursor: default; }
102
22
  .muted { color: var(--muted); }
103
23
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
104
24
 
105
- .app { max-width: 1500px; margin-inline: auto; padding: clamp(16px, 2.6vw, 36px); }
25
+ .app { max-width: 1536px; min-height: 100dvh; margin-inline: auto; background: var(--frame); }
106
26
  .topbar, .brand, .toolbar-actions, .live-status { display: flex; align-items: center; }
107
- .topbar { justify-content: space-between; gap: 16px; margin-block-end: 20px; padding-block-end: 18px; border-block-end: 1px solid var(--line-strong); }
108
- .brand { min-width: 0; gap: 13px; }
27
+ .topbar { justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 2.2vw, 32px); background: var(--paper); }
28
+ .brand { min-width: 0; gap: 10px; }
109
29
  .brand-mark, .project-mark {
110
30
  display: grid; place-items: center; flex: none; inline-size: 42px; block-size: 42px;
111
31
  border-radius: 13px; border: 1px solid var(--selected-line); color: var(--accent); background: var(--selected);
112
32
  }
113
- .brand-mark { box-shadow: inset 0 1px #ffffff14; }
114
- .brand-mark .icon { inline-size: 23px; block-size: 23px; }
33
+ .brand-mark { width: 31px; height: 31px; color: var(--paper); background: var(--ink); border: 0; border-radius: 7px; }
34
+ .brand-mark .icon { width: 20px; height: 20px; }
115
35
  .brand p { margin-block-start: 3px; color: var(--muted); font-size: .88rem; }
116
- .toolbar { min-width: 0; display: grid; justify-items: end; gap: 6px; }
36
+ .toolbar { min-width: 0; display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 6px 18px; }
117
37
  .toolbar-actions, .live-status { flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
118
- .theme-picker { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); }
119
- .theme-option { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 25px; min-height: 25px; padding: 3px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); }
120
- .theme-option:hover { background: var(--hover); color: var(--ink); }
121
- .theme-option[aria-pressed='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); }
122
- .theme-swatch { width: 12px; height: 12px; border: 1px solid #95a5bc; border-radius: 50%; background: #3169e8; }
123
- .theme-option[data-theme-choice='white'] .theme-swatch { background: #f7f8fb; }
124
- .theme-option[data-theme-choice='black'] .theme-swatch { background: #191b20; }
38
+ .theme-picker { display: inline-flex; align-items: center; }
39
+ .theme-picker select { width: auto; min-height: 32px; padding: 4px 6px; color: var(--muted); background: var(--paper); font-size: .83rem; cursor: pointer; }
125
40
  .live-status { color: var(--muted); font-size: .78rem; line-height: 1.3; }
126
41
  .live-status time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
127
42
  .live-status time::before { content: '· '; }
128
43
  #live-state { display: inline-flex; align-items: center; gap: 6px; }
129
44
  #live-state::before {
130
45
  content: ''; inline-size: 6px; block-size: 6px; flex: none; border-radius: 50%; background: currentColor;
131
- box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
132
46
  }
133
47
  #live-state[data-state='active'] { color: var(--accent); }
134
48
  #live-state[data-state='paused'] { color: var(--amber); }
135
49
  #live-state[data-state='error'] { color: var(--danger); }
136
- .status { margin-block: -5px 13px; padding: 8px 11px; border-radius: 9px; background: var(--paper); color: var(--muted); }
50
+ .status { margin: 0; padding: 8px 16px; background: var(--field); color: var(--muted); }
137
51
  .status:empty, #dialog-status:empty, .recent-status:empty, .selection-feedback:empty { display: none; }
138
52
  .error, #dialog-status.error { color: var(--danger); }
139
53
 
140
- .workspace { display: grid; grid-template-columns: minmax(222px, 252px) minmax(0, 1fr); align-items: start; gap: 14px; }
141
- .projects, .detail {
142
- min-inline-size: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--panel-shadow);
143
- }
144
- .projects { display: flex; flex-direction: column; }
145
- .list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 14px 10px; }
54
+ .workspace { display: grid; grid-template-columns: clamp(224px, 23vw, 288px) minmax(0, 1fr); min-height: calc(100dvh - 60px); padding: 10px; gap: 10px; }
55
+ .projects, .detail { min-inline-size: 0; }
56
+ .projects { display: flex; flex-direction: column; background: var(--index-surface); border-radius: 14px; }
57
+ #project-switch { display: none; }
58
+ .list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 22px 16px 14px; }
146
59
  .project-list-actions { display: flex; align-items: center; gap: 8px; }
147
60
  .list-heading .project-manage, .project-bulk .project-bulk-action, .project-feedback .project-undo {
148
61
  min-block-size: 28px; padding: 3px 7px; font-size: .76rem; white-space: nowrap;
@@ -152,7 +65,7 @@ button:disabled { opacity: .55; cursor: default; }
152
65
  #project-count, .disclosure-count {
153
66
  color: var(--muted); font-family: var(--mono); font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap;
154
67
  }
155
- .project-controls { display: grid; gap: 9px; padding: 0 12px 10px; }
68
+ .project-controls { display: grid; gap: 8px; padding: 0 14px 12px; }
156
69
  .field { position: relative; min-inline-size: 0; }
157
70
  input[type='search'], select {
158
71
  min-inline-size: 0; inline-size: 100%; min-block-size: 36px; padding: 7px 10px;
@@ -209,14 +122,10 @@ img.agent-brand-mark { width: 16px; height: 16px; }
209
122
  .agent-trigger .agent-brand-mark, .agent-option .agent-brand-mark { width: 19px; height: 19px; }
210
123
  .agent-label { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; }
211
124
  .agent-label-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
212
- .project-filters { display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 5px; max-block-size: 92px; overflow: auto; scrollbar-width: thin; }
213
- .filter-button {
214
- display: inline-flex; align-items: center; gap: 4px; max-inline-size: 100%; min-block-size: 25px; padding: 2px 7px;
215
- border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .75rem;
216
- transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease), color var(--quick) var(--ease);
217
- }
125
+ .project-filters { display: flex; flex-wrap: wrap; gap: 2px; }
126
+ .filter-button { display: inline-flex; align-items: center; gap: 3px; padding: 4px; min-height: 28px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: .78rem; }
218
127
  .filter-button:hover { background: var(--hover); color: var(--ink); }
219
- .filter-button[aria-pressed='true'], .filter-button[data-active='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); font-weight: 650; }
128
+ .filter-button[aria-pressed='true'], .filter-button[data-active='true'] { background: var(--selected); color: var(--accent); font-weight: 650; }
220
129
  .filter-button span:last-child { font-variant-numeric: tabular-nums; }
221
130
  .project-bulk, .project-feedback {
222
131
  display: flex; align-items: center; justify-content: space-between; gap: 6px; min-inline-size: 0;
@@ -243,12 +152,15 @@ img.agent-brand-mark { width: 16px; height: 16px; }
243
152
  transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease);
244
153
  }
245
154
  .project:hover { background: var(--hover); }
246
- .project:is([aria-pressed='true'], [aria-current='true'], [data-current='true']) { border-color: var(--selected-line); background: var(--selected); }
247
- .project-icon, .asset-icon, .queue-icon { display: grid; place-items: center; inline-size: 30px; block-size: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--accent); }
155
+ .project:is([aria-pressed='true'], [aria-current='true'], [data-current='true']) { background: var(--active-row); color: var(--ink); }
156
+ .project[aria-pressed='true'] .project-title { font-weight: 680; }
157
+ .project-icon, .asset-icon, .queue-icon { display: grid; place-items: center; inline-size: 28px; block-size: 28px; border-radius: 5px; color: var(--muted); }
248
158
  .project-icon .icon, .asset-icon .icon, .queue-icon .icon { inline-size: 15px; block-size: 15px; }
249
159
  .project-main { display: grid; min-width: 0; gap: 2px; }
250
160
  .project-title, .project-path { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
251
- .project-title { font-size: .9rem; font-weight: 650; }
161
+ .project-title { font-size: .9rem; font-weight: 540; }
162
+ .project-path { display: none; }
163
+ .project[aria-pressed="true"] .project-path, .project-show-path .project-path { display: block; }
252
164
  .project-path, .project-source { color: var(--muted); font-size: .72rem; }
253
165
  .project-source { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
254
166
  .project-source .agent-brand-mark { width: 13px; height: 13px; }
@@ -273,13 +185,14 @@ img.agent-brand-mark { width: 16px; height: 16px; }
273
185
  .source-row[data-state='partial'] .source-state, .source-row[data-state='partial'] > :nth-child(2), .source-state[data-state='partial'] { color: var(--amber); }
274
186
  .source-row[data-state='error'] .source-state, .source-row[data-state='error'] > :nth-child(2), .source-state[data-state='error'] { color: var(--danger); }
275
187
 
276
- .detail { padding: clamp(14px, 2vw, 24px); }
188
+ #project-detail { max-width: 1080px; margin-inline: auto; }
189
+ .detail { padding: clamp(18px, 2.5vw, 38px); background: color-mix(in srgb, var(--desk) 64%, transparent); border-radius: 14px; }
277
190
  .empty {
278
191
  display: grid; min-block-size: 330px; place-content: center; justify-items: center; gap: 8px;
279
192
  padding-inline: 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere;
280
193
  }
281
194
  .empty p { max-inline-size: 36ch; }
282
- .project-heading { display: grid; gap: 10px; padding-block-end: 14px; }
195
+ .project-heading { display: grid; gap: 10px; padding-block-end: 20px; }
283
196
  .project-identity { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
284
197
  .project-mark .icon { inline-size: 21px; block-size: 21px; }
285
198
  .project-title-block { min-width: 0; flex: 1; }
@@ -287,44 +200,40 @@ img.agent-brand-mark { width: 16px; height: 16px; }
287
200
  .project-detail-actions .secondary { min-block-size: 30px; padding: 4px 8px; font-size: .77rem; white-space: nowrap; }
288
201
  .project-detail-actions .icon { inline-size: 14px; block-size: 14px; }
289
202
  .project-detail-actions .project-pin[aria-pressed='true'] { border-color: var(--selected-line); background: var(--selected); color: var(--accent); }
290
- .project-heading h2 { font-size: clamp(1.28rem, 2.2vw, 1.7rem); line-height: 1.22; overflow-wrap: anywhere; }
291
- .project-location { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 5px 3px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--muted); font-size: .76rem; }
292
- #project-path { display: -webkit-box; flex: 1; min-width: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; color: var(--muted); }
203
+ .project-heading h2 { font-size: clamp(1.55rem, 2.7vw, 2.3rem); font-weight: 600; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
204
+ .project-location { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; color: var(--muted); font-size: .82rem; }
205
+ #project-path { display: -webkit-box; max-inline-size: min(100%, 72ch); min-width: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; color: var(--muted); }
293
206
  .path-copy { flex: none; }
294
- .chips { display: flex; flex-wrap: wrap; gap: 4px; }
207
+ .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
295
208
  #project-meta { margin-block-start: 6px; }
296
- .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--field); font-size: .73rem; }
209
+ .chip { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; }
297
210
  .chip[data-state='ready'], .chip[data-state='online'], .chip[data-state='used'] { color: var(--accent); }
298
211
  .chip[data-state='partial'], .chip[data-state='offline'] { color: var(--amber); }
299
212
  .chip[data-state='error'] { color: var(--danger); }
300
213
  .chip[data-state='archived'] { border-color: var(--line-strong); }
301
- .continue-panel {
302
- display: grid; gap: 10px; padding: clamp(12px, 1.6vw, 17px); border: 1px solid var(--selected-line);
303
- border-radius: 13px; background: color-mix(in srgb, var(--selected) 35%, var(--paper));
304
- }
214
+ .continue-panel { display: grid; gap: 8px; padding: 14px clamp(12px, 1.5vw, 22px) 8px; border: 1px solid var(--edge); border-radius: 14px; background: var(--reading-surface); box-shadow: var(--surface-shadow); }
215
+ .continue-heading .continue-mark { background: var(--history-tint); color: var(--history-ink); }
216
+ .draft-summary .disclosure-mark { background: var(--material-tint); color: var(--material-ink); }
305
217
  .continue-heading { display: flex; align-items: center; gap: 10px; }
306
- .continue-mark, .disclosure-mark {
307
- display: grid; place-items: center; flex: none; inline-size: 33px; block-size: 33px;
308
- border: 1px solid var(--selected-line); border-radius: 9px; color: var(--accent); background: var(--selected);
309
- }
310
- .continue-heading h3 { font-size: 1.06rem; line-height: 1.3; font-weight: 680; }
218
+ .continue-mark, .disclosure-mark { display: grid; place-items: center; flex: none; inline-size: 29px; block-size: 29px; border-radius: 8px; color: var(--accent); }
219
+ .continue-heading h3 { font-size: 1.15rem; line-height: 1.4; font-weight: 640; }
311
220
  .continue-heading p, .recent-status { color: var(--muted); font-size: .82rem; }
312
221
  .continue-heading p { margin-block-start: 3px; }
313
222
  .recent-status { padding: 2px 0; }
314
- .conversation-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
223
+ .conversation-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
315
224
  .conversation-list:empty { display: none; }
316
225
  .conversation-item { min-width: 0; }
317
226
  .conversation-row {
318
227
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; text-align: left;
319
- width: 100%; min-block-size: 47px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px;
228
+ width: 100%; min-block-size: 58px; padding: 8px; border: 1px solid transparent; border-radius: 3px;
320
229
  background: transparent; color: var(--ink); transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease);
321
230
  }
322
231
  .conversation-row:hover, .conversation-row:focus-visible { background: var(--selected); border-color: var(--selected-line); }
323
232
  .conversation-item + .conversation-item .conversation-row:not(:hover, :focus-visible) { border-block-start-color: var(--line); }
324
233
  .conversation-row > .agent-brand-mark { width: 28px; height: 28px; border-radius: 7px; }
325
234
  .conversation-info { display: grid; min-inline-size: 0; gap: 1px; }
326
- .conversation-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; font-weight: 640; }
327
- .conversation-meta { color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }
235
+ .conversation-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 580; }
236
+ .conversation-meta { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
328
237
  .conversation-action { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: .8rem; white-space: nowrap; }
329
238
  .conversation-action .icon, .text-action .icon { width: 13px; height: 13px; }
330
239
  .text-action {
@@ -335,21 +244,21 @@ img.agent-brand-mark { width: 16px; height: 16px; }
335
244
  #browse-history { justify-self: end; }
336
245
 
337
246
  .draft-workflow, .global-library, .handoff { min-width: 0; border: 1px solid var(--line); border-radius: 11px; }
338
- .draft-workflow { margin-block-start: 12px; }
247
+ .draft-workflow { margin-block-start: 12px; border: 1px solid var(--edge); border-radius: 12px; background: var(--reading-surface); }
339
248
  .disclosure {
340
249
  display: flex; align-items: center; gap: 7px; min-height: 39px; padding: 7px 9px; list-style: none; cursor: pointer;
341
250
  border-radius: 10px; color: var(--muted); font-size: .82rem;
342
251
  }
343
252
  .disclosure::-webkit-details-marker { display: none; }
344
253
  .disclosure:hover { color: var(--ink); background: var(--hover); }
345
- .draft-summary { min-height: 48px; gap: 9px; padding: 8px 11px; }
254
+ .draft-summary { min-height: 54px; gap: 10px; padding: 8px clamp(12px, 1.5vw, 22px); }
346
255
  .disclosure-mark { inline-size: 28px; block-size: 28px; border-color: var(--line); background: var(--field); }
347
256
  .draft-title, .disclosure-title { flex: 1; min-width: 0; font-weight: 625; }
348
257
  .draft-title { color: var(--ink); font-size: .91rem; }
349
258
  .disclosure-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
350
259
  .disclosure-chevron { inline-size: 13px; block-size: 13px; transition: transform var(--quick) var(--ease); }
351
260
  details[open] > summary .disclosure-chevron { transform: rotate(90deg); }
352
- .draft-body { display: grid; gap: 10px; padding: 10px; border-block-start: 1px solid var(--line); }
261
+ .draft-body { border-radius: 0 0 12px 12px; display: grid; gap: 12px; padding: 14px; border-block-start: 1px solid var(--line); background: var(--paper); }
353
262
  .draft-intro { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted); font-size: .83rem; }
354
263
  .draft-intro .field { flex: 0 1 210px; }
355
264
  .asset-list {
@@ -362,7 +271,7 @@ details[open] > summary .disclosure-chevron { transform: rotate(90deg); }
362
271
  .global-note { padding: 3px 9px 5px; }
363
272
  .global-library .asset-list { margin: 0 5px 5px; max-block-size: min(37dvh, 345px); }
364
273
  .asset-row {
365
- display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 7px; min-block-size: 47px; padding: 5px 7px;
274
+ display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 5px; min-block-size: 47px; padding: 5px 7px;
366
275
  border: 1px solid transparent; border-block-end-color: var(--line); border-radius: 8px;
367
276
  transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease);
368
277
  }
@@ -379,6 +288,33 @@ details[open] > summary .disclosure-chevron { transform: rotate(90deg); }
379
288
  .selection-feedback { padding-inline: 4px; font-size: .8rem; }
380
289
  .asset-view { flex: none; font-size: .78rem; }
381
290
  .asset-view .icon { inline-size: 13px; block-size: 13px; }
291
+ .asset-open { min-block-size: 25px; min-inline-size: 25px; padding: 3px; background: transparent; color: var(--muted); }
292
+ .asset-open:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
293
+ .asset-open .icon { inline-size: 14px; block-size: 14px; }
294
+ .skill-status { display: inline-flex; align-items: center; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; }
295
+ .skill-status[data-state='callable'], .skill-status[data-state='native'], .skill-status[data-state='active'] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
296
+ .skill-status[data-state='enable'], .skill-status[data-state='available'], .skill-status[data-state='pending'] { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
297
+ .skill-status[data-state='handoff'] { color: var(--muted); }
298
+ .skill-status[data-state='unverified'] { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
299
+ .skill-status[data-state='disabled'] { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
300
+ .asset-status-note { inline-size: 100%; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
301
+ .skill-choice-panel { display: grid; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
302
+ .skill-choice-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
303
+ .skill-choice-heading strong { font-size: .84rem; }
304
+ .skill-choice-heading span { color: var(--muted); font-size: .74rem; }
305
+ .skill-choice-list { display: flex; flex-wrap: wrap; gap: 6px; }
306
+ .skill-choice { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
307
+ .skill-choice:has(input:checked) { border-color: var(--selected-line); background: var(--selected); }
308
+ .skill-choice:has(input:disabled) { color: var(--muted); }
309
+ .skill-choice input { margin: 0; inline-size: 14px; block-size: 14px; accent-color: var(--primary); }
310
+ .skill-choice-text { display: grid; gap: 1px; min-width: 0; }
311
+ .skill-choice-name { font-size: .8rem; font-weight: 650; overflow-wrap: anywhere; }
312
+ .skill-choice-note { color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
313
+ .skill-manager { display: grid; gap: 10px; }
314
+ .skill-manager-meta { display: grid; gap: 5px; }
315
+ .skill-manager-meta div { display: flex; gap: 8px; font-size: .78rem; }
316
+ .skill-manager-meta span { flex: none; color: var(--muted); }
317
+ .skill-manager-meta code { min-width: 0; overflow-wrap: anywhere; }
382
318
 
383
319
  .draft-actions { display: flex; align-items: flex-start; gap: 7px; }
384
320
  .handoff { flex: 1; }
@@ -394,7 +330,7 @@ details[open] > summary .disclosure-chevron { transform: rotate(90deg); }
394
330
  .queue-empty { padding: 4px 3px; }
395
331
  .history { display: flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: pointer; }
396
332
 
397
- .primary, .secondary, .icon-button, .clear-search, .path-copy, .queue-remove, .asset-view {
333
+ .primary, .secondary, .icon-button, .clear-search, .path-copy, .path-open, .queue-remove, .asset-view, .asset-open {
398
334
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-inline-size: 0; border: 1px solid transparent; border-radius: 8px;
399
335
  transition: color var(--quick) var(--ease), background var(--quick) var(--ease), border-color var(--quick) var(--ease), transform var(--quick) var(--ease);
400
336
  }
@@ -404,22 +340,24 @@ details[open] > summary .disclosure-chevron { transform: rotate(90deg); }
404
340
  .secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
405
341
  .secondary:hover:not(:disabled) { border-color: var(--line-strong); background: var(--hover); }
406
342
  .primary:active:not(:disabled), .secondary:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }
407
- .icon-button, .clear-search, .path-copy, .queue-remove, .asset-view { min-block-size: 29px; min-inline-size: 29px; padding: 4px; background: transparent; color: var(--muted); }
408
- .icon-button:hover:not(:disabled), .clear-search:hover, .path-copy:hover, .asset-view:hover { background: var(--hover); color: var(--ink); }
343
+ .icon-button, .clear-search, .path-copy, .path-open, .queue-remove, .asset-view, .asset-open { min-block-size: 29px; min-inline-size: 29px; padding: 4px; background: transparent; color: var(--muted); }
344
+ .icon-button:hover:not(:disabled), .clear-search:hover, .path-copy:hover, .path-open:hover:not(:disabled), .asset-view:hover, .asset-open:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
409
345
  .secondary.icon-button { min-block-size: 34px; min-inline-size: 34px; border-color: var(--line); background: var(--paper); }
410
346
  .secondary.icon-button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--hover); }
411
347
  .clear-search { min-block-size: 25px; min-inline-size: 25px; }
412
348
  .path-copy { min-block-size: 25px; min-inline-size: 25px; }
349
+ .path-open { min-block-size: 25px; padding: 3px 7px; font-size: .74rem; color: var(--muted); }
350
+ .path-open .icon { inline-size: 13px; block-size: 13px; }
413
351
  .queue-remove { min-block-size: 23px; min-inline-size: 23px; padding: 3px; color: var(--muted); }
414
352
  .queue-remove:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
415
- .button-icon, .path-copy .icon, .queue-remove .icon { inline-size: 14px; block-size: 14px; }
353
+ .button-icon, .path-copy .icon, .path-open .icon, .queue-remove .icon { inline-size: 14px; block-size: 14px; }
416
354
 
417
355
  dialog {
418
- position: fixed; inset: 0 0 0 auto; margin: 0; width: min(555px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0;
419
- border: 1px solid var(--line-strong); border-radius: 18px 0 0 18px; background: var(--paper); color: var(--ink); box-shadow: -20px 0 70px var(--shadow); overflow: hidden;
356
+ position: fixed; inset: 0 0 0 auto; margin: 0; width: min(660px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0;
357
+ border: 1px solid var(--line-strong); border-radius: 10px 0 0 10px; background: var(--paper); color: var(--ink); box-shadow: -20px 0 70px var(--shadow); overflow: hidden;
420
358
  }
421
359
  dialog[open] { animation: sheet-in 250ms var(--ease) both; }
422
- dialog::backdrop { background: var(--veil); backdrop-filter: blur(2px); }
360
+ dialog::backdrop { background: var(--veil); }
423
361
  @keyframes sheet-in { from { opacity: 0; transform: translateX(24px); } }
424
362
  .dialog-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-width: 0; }
425
363
  .dialog-heading, .dialog-content, .dialog-actions { min-width: 0; padding: 16px clamp(14px, 3vw, 22px); }
@@ -437,6 +375,10 @@ pre {
437
375
  border: 1px solid var(--line); border-radius: 9px; background: var(--field); font: .82rem/1.65 var(--mono);
438
376
  }
439
377
  .dialog-text[data-format='handoff'] { display: grid; gap: 12px; min-width: 0; }
378
+ .dialog-text[data-format='markdown'] {
379
+ padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper);
380
+ font-size: .9rem; line-height: 1.75; overflow-wrap: anywhere;
381
+ }
440
382
  .history-choice { display: grid; gap: 8px; }
441
383
  .history-choice .conversation-row { border-color: var(--line); }
442
384
  .history-choice .conversation-row:hover { border-color: var(--selected-line); }
@@ -450,34 +392,105 @@ pre {
450
392
  .history-message[data-role='user'] { background: var(--field); }
451
393
  .history-message .preview-body { margin-block-start: 4px; }
452
394
  .history-message h3 { color: var(--accent); font-size: .78rem; }
395
+ .source-archive { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; margin-block: 4px; }
396
+ .source-archive > summary { cursor: pointer; }
397
+ .source-archive.bridge-reader { padding: 0; border: 0; border-block: 1px solid var(--line); border-radius: 0; }
398
+ .history-target-form { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-block-start: 8px; }
399
+ .history-target-form input { flex: 1 1 16rem; min-inline-size: 0; }
400
+ .trace-disclosure { margin-block-start: 8px; border-block-start: 1px dashed var(--line); padding-block-start: 7px; }
401
+ .trace-disclosure > summary { color: var(--muted); font-size: .78rem; cursor: pointer; }
402
+ .trace-disclosure > summary:hover { color: var(--ink); }
403
+ .trace-list { display: grid; gap: 6px; margin-block-start: 7px; }
404
+ .trace-turn-list > .trace-disclosure { margin-block-start: 0; border-block-start-style: solid; }
405
+ .trace-turn-list > .trace-disclosure > summary { padding-block-end: 4px; color: var(--ink); }
406
+ .trace-item { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
407
+ .trace-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .76rem; }
408
+ .trace-kind { color: var(--accent); font-weight: 600; }
409
+ .trace-name { font-size: .74rem; overflow-wrap: anywhere; }
410
+ .trace-time { color: var(--muted); }
411
+ .trace-state { padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; }
412
+ .trace-state[data-state='missing'], .trace-state[data-state='pending'] { color: var(--amber); }
413
+ .trace-state[data-state='error'] { color: var(--danger); }
414
+ .trace-text { margin-block-start: 5px; max-block-size: 34dvh; overflow: auto; font-size: .82rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
415
+ .trace-empty { color: var(--muted); font-style: italic; }
416
+ .trace-copy { margin-block-start: 6px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); color: var(--muted); font-size: .74rem; }
417
+ .trace-copy:hover { background: var(--hover); color: var(--ink); }
453
418
  .preview-intro, .preview-section { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; }
454
419
  .preview-intro { background: var(--field); }
455
420
  .preview-lead { margin-bottom: 8px; font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
456
421
  .preview-meta { display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: .76rem; }
457
422
  .preview-meta > span { flex: none; }
458
423
  .preview-meta code { min-width: 0; overflow-wrap: anywhere; }
424
+ .preview-meta .path-actions { margin-inline-start: auto; }
425
+ .path-actions { display: inline-flex; align-items: center; gap: 2px; flex: none; }
426
+ .preview-source-row { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 5px; }
427
+ .preview-source-row .preview-source { flex: 1; margin-top: 0; }
459
428
  .preview-context { margin-top: 8px; color: var(--muted); font-size: .84rem; white-space: pre-wrap; overflow-wrap: anywhere; }
460
429
  .preview-section h3 { font-size: .96rem; line-height: 1.4; overflow-wrap: anywhere; }
461
430
  .preview-source { display: block; margin-top: 5px; color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }
462
431
  .preview-body { margin-top: 8px; font-size: .88rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
432
+ .preview-body[data-format='markdown'] { white-space: normal; }
433
+
434
+ .dialog-text[data-format='markdown'] > :first-child, .preview-body[data-format='markdown'] > :first-child { margin-block-start: 0; }
435
+ .dialog-text[data-format='markdown'] > :last-child, .preview-body[data-format='markdown'] > :last-child { margin-block-end: 0; }
436
+ .md-heading { margin-block: 1.35em .55em; line-height: 1.3; letter-spacing: -.02em; font-weight: 660; overflow-wrap: anywhere; }
437
+ h2.md-heading { font-size: 1.3rem; }
438
+ h3.md-heading { font-size: 1.1rem; }
439
+ h4.md-heading { font-size: 1rem; }
440
+ h5.md-heading, h6.md-heading { font-size: .93rem; color: var(--muted); letter-spacing: 0; }
441
+ .dialog-text[data-format='markdown'] > .md-heading:first-child { margin-block-start: 0; }
442
+ .md-paragraph { margin-block: .7em; }
443
+ .md-list { margin-block: .7em; padding-inline-start: 1.45em; }
444
+ .md-list .md-list { margin-block: .25em; }
445
+ .md-list li { margin-block: .28em; padding-inline-start: .15em; }
446
+ .md-list li::marker { color: var(--muted); }
447
+ .md-task { list-style: none; margin-inline-start: -1.25em; }
448
+ .md-task-box { margin-inline-end: .45em; color: var(--accent); }
449
+ .md-quote { margin: .8em 0; padding: .25em .9em; border-radius: 5px; background: var(--field); color: var(--muted); }
450
+ .md-quote > .md-paragraph { margin-block: .45em; }
451
+ .md-rule { margin-block: 1.15em; border: 0; border-block-start: 1px solid var(--line); }
452
+ .md-block { margin-block: .8em; padding: 11px 13px; font-size: .82rem; line-height: 1.62; }
453
+ .md-code { padding: .1em .35em; border: 1px solid var(--line); border-radius: 5px; background: var(--field); font-size: .86em; }
454
+ .md-link { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 2px; overflow-wrap: anywhere; }
455
+ .md-link:hover { text-decoration-color: currentColor; }
456
+ .md-reference-open { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
457
+ .md-reference .path-copy { vertical-align: middle; margin-inline-start: .2em; }
458
+ .md-image { color: var(--muted); font-size: .84em; }
459
+ .md-table-wrap { margin-block: .85em; max-inline-size: 100%; overflow-x: auto; }
460
+ .md-table { border-collapse: collapse; inline-size: 100%; font-size: .84rem; }
461
+ .md-table th, .md-table td { padding: 6px 9px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
462
+ .md-table th { background: var(--field); font-weight: 620; }
463
+ .md-table .md-align-center { text-align: center; }
464
+ .md-table .md-align-right { text-align: end; }
463
465
  .session-choice { display: grid; gap: 7px; margin-block: 12px; }
464
466
  .session-choice p { overflow-wrap: anywhere; }
467
+ #session-source-record:empty { display: none; }
465
468
  .dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; border-block-start: 1px solid var(--line); background: var(--paper); }
466
469
  .dialog-actions:not(:has(> :not([hidden]))) { display: none; }
467
470
  .export-output { margin-block-start: 10px; }
468
471
  .export-output summary { color: var(--muted); cursor: pointer; }
469
472
  .export-output pre { margin-block-start: 7px; max-block-size: 38dvh; }
470
- #dialog-status { margin-block-start: 10px; color: var(--muted); overflow-wrap: anywhere; }
473
+ .export-trace-option { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: auto; color: var(--muted); font-size: .78rem; cursor: pointer; }
474
+ .export-trace-option input { margin: 0; inline-size: 14px; block-size: 14px; accent-color: var(--primary); }
475
+ #dialog-status, #activate-status { margin-block-start: 10px; color: var(--muted); overflow-wrap: anywhere; }
476
+ #dialog-status:empty, #activate-status:empty { display: none; }
471
477
 
472
478
  @media (max-width: 1059px) {
473
479
  .workspace { grid-template-columns: minmax(214px, 240px) minmax(0, 1fr); }
474
480
  }
475
481
  @media (max-width: 700px) {
476
- .app { padding: 12px; }
477
- .topbar { align-items: flex-start; flex-direction: column; gap: 10px; margin-block-end: 12px; padding-block-end: 12px; }
478
- .toolbar { width: 100%; justify-items: start; }
479
- .toolbar-actions, .live-status { justify-content: flex-start; }
480
- .workspace { grid-template-columns: minmax(0, 1fr); gap: 9px; }
482
+ .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; }
483
+ .toolbar { margin-inline-start: auto; gap: 4px 8px; }
484
+ .live-status { display: none; }
485
+ .live-status:has(#live-state:is([data-state='paused'], [data-state='error'])) { display: flex; }
486
+ .projects, .detail { border-radius: 10px; }
487
+ .detail { padding: 16px 10px; }
488
+ .project-heading { padding-inline: 4px; }
489
+ .workspace { padding: 6px; gap: 6px; }
490
+ .projects .list-heading { padding: 10px 16px; }
491
+ .list-heading #project-switch { display: inline-flex; }
492
+ .projects:has(#project-switch[aria-expanded='false']) :is(#project-browser, #project-manage) { display: none; }
493
+ .workspace { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 0; }
481
494
  .project-list { max-block-size: min(28dvh, 228px); }
482
495
  .detail { scroll-margin-block-start: 12px; }
483
496
  .empty { min-block-size: 255px; }
@@ -490,6 +503,10 @@ pre {
490
503
  .draft-intro .field { flex: auto; }
491
504
  .draft-actions { flex-direction: column; align-items: stretch; }
492
505
  .draft-actions .primary { align-self: flex-end; }
506
+ .preview-meta { flex-wrap: wrap; }
507
+ .preview-meta .path-actions { margin-inline-start: 0; }
508
+ .path-open > span { display: none; }
509
+ .path-open { min-inline-size: 25px; }
493
510
  }
494
511
  @media (max-width: 385px) {
495
512
  .asset-row { gap: 5px; padding-inline: 4px; }