@wwwfz/dsh-agent-bridge 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -99
- package/THIRD_PARTY_NOTICES.md +5 -63
- package/package.json +2 -1
- package/src/assets.js +32 -19
- package/src/catalog.js +1139 -906
- package/src/client.js +1218 -623
- package/src/conversation-readers.js +198 -0
- package/src/conversation-search.js +55 -0
- package/src/conversation-store.js +747 -0
- package/src/export.js +35 -2
- package/src/handoff.js +149 -0
- package/src/history-attachment.js +41 -0
- package/src/index.js +153 -7
- package/src/native-transcript.js +217 -0
- package/src/project-archive.js +50 -0
- package/src/projects.js +877 -149
- package/src/session-import.js +65 -19
- package/src/session-trace.js +1 -1
- package/src/skill-cli.js +287 -0
- package/src/skill-history.js +129 -0
- package/src/skill-output.js +19 -0
- package/src/skill-package.js +303 -321
- package/src/skill-provider.js +155 -193
- package/src/watch.js +11 -1
- package/web/inline-process.css +22 -0
- package/web/panel.css +547 -607
- package/web/panel.html +298 -277
- package/web/panel.js +3339 -2334
- package/web/reader.css +311 -0
- package/web/relay-categories.js +3 -0
- package/web/share-redaction.js +136 -0
- package/web/share-review.js +204 -0
package/web/panel.html
CHANGED
|
@@ -1,277 +1,298 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="zh-CN" data-theme="
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<meta name="bridge-nonce" content="__DSH_BRIDGE_NONCE__">
|
|
7
|
-
<title>Agent 接续</title>
|
|
8
|
-
<link rel="stylesheet" href="./panel.css">
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<symbol id="icon-
|
|
15
|
-
<symbol id="icon-
|
|
16
|
-
<symbol id="icon-
|
|
17
|
-
<symbol id="icon-
|
|
18
|
-
<symbol id="icon-
|
|
19
|
-
<symbol id="icon-
|
|
20
|
-
<symbol id="icon-
|
|
21
|
-
<symbol id="icon-
|
|
22
|
-
<symbol id="icon-
|
|
23
|
-
<symbol id="icon-
|
|
24
|
-
<symbol id="icon-
|
|
25
|
-
<symbol id="icon-
|
|
26
|
-
<symbol id="icon-chevron
|
|
27
|
-
<symbol id="icon-
|
|
28
|
-
<symbol id="icon-
|
|
29
|
-
<symbol id="icon-
|
|
30
|
-
<symbol id="icon-
|
|
31
|
-
<symbol id="icon-
|
|
32
|
-
<symbol id="icon-
|
|
33
|
-
<symbol id="icon-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
<
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
<
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
</div>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
<
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
<
|
|
149
|
-
<span
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
<
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
<
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
<
|
|
186
|
-
<
|
|
187
|
-
</
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
<
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
<
|
|
222
|
-
<
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
<
|
|
229
|
-
<
|
|
230
|
-
<
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
<
|
|
249
|
-
<
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
<button id="
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
<
|
|
268
|
-
<
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
<button id="
|
|
272
|
-
<button id="
|
|
273
|
-
</footer>
|
|
274
|
-
</div>
|
|
275
|
-
</dialog>
|
|
276
|
-
|
|
277
|
-
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN" class="bridge-ui" data-theme="white">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="bridge-nonce" content="__DSH_BRIDGE_NONCE__">
|
|
7
|
+
<title>Agent 接续</title>
|
|
8
|
+
<link rel="stylesheet" href="./panel.css">
|
|
9
|
+
<link rel="stylesheet" href="./reader.css">
|
|
10
|
+
<script type="module" src="./panel.js"></script>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<svg class="icon-defs" width="0" height="0" aria-hidden="true" focusable="false">
|
|
14
|
+
<symbol id="icon-bridge" viewBox="0 0 24 24"><path d="M4 8V5h5m-5 7v7h5m6-14h5v7m-5 7h5v-3M9 12h7m-3-3 3 3-3 3"/></symbol>
|
|
15
|
+
<symbol id="icon-folder" viewBox="0 0 24 24"><path d="M3 17.5V6a2 2 0 0 1 2-2h4.5l2 2H19a2 2 0 0 1 2 2v9.5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"/><path d="M3 9h18"/></symbol>
|
|
16
|
+
<symbol id="icon-search" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="6.5"/><path d="m16 16 4 4"/></symbol>
|
|
17
|
+
<symbol id="icon-filter" viewBox="0 0 24 24"><path d="M4 6h16M7 12h10m-7 6h4"/></symbol>
|
|
18
|
+
<symbol id="icon-refresh" viewBox="0 0 24 24"><path d="M20 7v5h-5M4 17v-5h5M5.7 8a7 7 0 0 1 11.7-2l2.6 4M4 14l2.6 4A7 7 0 0 0 18.3 16"/></symbol>
|
|
19
|
+
<symbol id="icon-download" viewBox="0 0 24 24"><path d="M12 3v12m-4-4 4 4 4-4M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"/></symbol>
|
|
20
|
+
<symbol id="icon-memory" viewBox="0 0 24 24"><rect x="5" y="3" width="14" height="18" rx="2"/><path d="M9 8h6m-6 4h6m-6 4h3"/></symbol>
|
|
21
|
+
<symbol id="icon-skill" viewBox="0 0 24 24"><path d="m13 2-8 12h6l-1 8 9-12h-6l1-8Z"/></symbol>
|
|
22
|
+
<symbol id="icon-history" viewBox="0 0 24 24"><path d="M3 10a9 9 0 1 1 2 8m-2-8V5m0 5h5m4-3v5l3 2"/></symbol>
|
|
23
|
+
<symbol id="icon-copy" viewBox="0 0 24 24"><rect x="8" y="8" width="12" height="12" rx="2"/><path d="M16 4H6a2 2 0 0 0-2 2v10"/></symbol>
|
|
24
|
+
<symbol id="icon-close" viewBox="0 0 24 24"><path d="m6 6 12 12M18 6 6 18"/></symbol>
|
|
25
|
+
<symbol id="icon-arrow" viewBox="0 0 24 24"><path d="M4 12h15m-6-6 6 6-6 6"/></symbol>
|
|
26
|
+
<symbol id="icon-chevron" viewBox="0 0 24 24"><path d="m9 6 6 6-6 6"/></symbol>
|
|
27
|
+
<symbol id="icon-chevron-down" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"/></symbol>
|
|
28
|
+
<symbol id="icon-layers" viewBox="0 0 24 24"><path d="m12 3 9 5-9 5-9-5 9-5Zm-9 9 9 5 9-5m-18 4 9 5 9-5"/></symbol>
|
|
29
|
+
<symbol id="icon-check" viewBox="0 0 24 24"><path d="m5 12 4 4L19 6"/></symbol>
|
|
30
|
+
<symbol id="icon-project-manage" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3"/><path d="m8 12 3 3 5-6"/></symbol>
|
|
31
|
+
<symbol id="icon-archive" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="5" rx="1.5"/><path d="M5 9v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9m-9 4h4"/></symbol>
|
|
32
|
+
<symbol id="icon-restore" viewBox="0 0 24 24"><path d="M4 11a8 8 0 1 1 2 6M4 11V5m0 6h6"/></symbol>
|
|
33
|
+
<symbol id="icon-pin" viewBox="0 0 24 24"><path d="M16 4H8m7 0v5l3 4v2H6v-2l3-4V4m3 11v6"/></symbol>
|
|
34
|
+
<symbol id="icon-unpin" viewBox="0 0 24 24"><path d="M16 4H8m7 0v5l3 4v1M9 9l-3 4v2h9m-3 0v6M3 3l18 18"/></symbol>
|
|
35
|
+
</svg>
|
|
36
|
+
|
|
37
|
+
<main class="app">
|
|
38
|
+
<header class="topbar">
|
|
39
|
+
<div class="brand">
|
|
40
|
+
<span class="brand-mark"><svg class="icon" aria-hidden="true"><use href="#icon-bridge"/></svg></span>
|
|
41
|
+
<h1>Agent 接续</h1>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="toolbar">
|
|
44
|
+
<p class="live-status"><span id="live-state" data-state="loading">正在连接实时扫描</span><time id="last-scan" hidden></time></p>
|
|
45
|
+
<div class="toolbar-actions">
|
|
46
|
+
<label class="theme-picker">
|
|
47
|
+
<span class="sr-only">界面外观</span>
|
|
48
|
+
<select id="appearance" aria-label="界面外观">
|
|
49
|
+
<optgroup label="浅色"><option value="white">纸白</option><option value="mist">雾蓝</option></optgroup>
|
|
50
|
+
<optgroup label="深色"><option value="blue">夜蓝</option><option value="black">深灰</option></optgroup>
|
|
51
|
+
</select>
|
|
52
|
+
</label>
|
|
53
|
+
<button class="secondary" id="native-export" type="button"><svg class="icon button-icon" aria-hidden="true"><use href="#icon-download"/></svg>导出 DSH 会话</button>
|
|
54
|
+
<button class="secondary icon-button" id="refresh" type="button" aria-label="刷新来源" title="刷新来源"><svg class="icon button-icon" aria-hidden="true"><use href="#icon-refresh"/></svg></button>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</header>
|
|
58
|
+
<p id="status" class="status" role="status"></p>
|
|
59
|
+
|
|
60
|
+
<div class="workspace">
|
|
61
|
+
<aside class="projects" aria-label="项目">
|
|
62
|
+
<div class="list-heading">
|
|
63
|
+
<h2>项目</h2>
|
|
64
|
+
<div class="project-list-actions">
|
|
65
|
+
<span id="project-count"></span>
|
|
66
|
+
<button id="project-switch" class="secondary" type="button" aria-expanded="false" aria-controls="project-browser">切换项目</button>
|
|
67
|
+
<button id="project-manage" class="secondary project-manage" type="button" aria-pressed="false" aria-controls="project-bulk project-list"><svg class="icon" aria-hidden="true"><use href="#icon-project-manage"/></svg>整理</button>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
<div id="project-browser">
|
|
71
|
+
<div class="project-controls">
|
|
72
|
+
<div class="field">
|
|
73
|
+
<svg class="icon field-icon" aria-hidden="true"><use href="#icon-search"/></svg>
|
|
74
|
+
<label class="sr-only" for="project-search">搜索项目</label>
|
|
75
|
+
<input id="project-search" type="search" placeholder="搜索项目或路径" autocomplete="off">
|
|
76
|
+
<kbd class="key-hint" aria-hidden="true">/</kbd>
|
|
77
|
+
<button class="clear-search icon-button" id="clear-project-search" type="button" aria-label="清除项目搜索" hidden><svg class="icon" aria-hidden="true"><use href="#icon-close"/></svg></button>
|
|
78
|
+
</div>
|
|
79
|
+
<div id="agent-picker" class="agent-picker">
|
|
80
|
+
<button id="agent-filter" class="agent-trigger" type="button" aria-haspopup="listbox" aria-expanded="false" aria-controls="agent-options" aria-label="筛选 Agent,当前为全部 Agent">
|
|
81
|
+
<span id="agent-trigger-mark" class="agent-trigger-mark"><svg class="icon" aria-hidden="true"><use href="#icon-filter"/></svg></span>
|
|
82
|
+
<span id="agent-trigger-label" class="agent-trigger-label">全部 Agent</span>
|
|
83
|
+
<svg class="icon select-chevron" aria-hidden="true"><use href="#icon-chevron-down"/></svg>
|
|
84
|
+
</button>
|
|
85
|
+
<div id="agent-popover" class="agent-popover" hidden>
|
|
86
|
+
<div id="agent-options" class="agent-options" role="listbox" aria-label="Agent 来源" tabindex="-1"></div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="project-filters" aria-label="项目状态">
|
|
90
|
+
<button class="filter-button" data-project-state="all" type="button" aria-pressed="true">全部</button>
|
|
91
|
+
<button class="filter-button" data-project-state="online" type="button" aria-pressed="false">可接续</button>
|
|
92
|
+
<button class="filter-button" data-project-state="offline" type="button" aria-pressed="false">离线</button>
|
|
93
|
+
<button class="filter-button" data-project-state="archived" type="button" aria-pressed="false">已归档</button>
|
|
94
|
+
</div>
|
|
95
|
+
<div id="project-bulk" class="project-bulk" hidden>
|
|
96
|
+
<label class="project-bulk-select"><input id="project-select-visible" type="checkbox">全选当前结果</label>
|
|
97
|
+
<button id="project-bulk-action" class="secondary project-bulk-action" type="button" disabled>归档所选</button>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
<div id="project-feedback" class="project-feedback" hidden>
|
|
101
|
+
<p id="project-feedback-text" role="status" aria-live="polite"></p>
|
|
102
|
+
<button id="project-undo" class="secondary project-undo" type="button" hidden>撤销</button>
|
|
103
|
+
</div>
|
|
104
|
+
<div id="project-list" class="project-list"></div>
|
|
105
|
+
<details class="sources">
|
|
106
|
+
<summary><svg class="icon" aria-hidden="true"><use href="#icon-layers"/></svg><span id="sources-heading">本机来源</span><svg class="icon source-chevron" aria-hidden="true"><use href="#icon-chevron"/></svg></summary>
|
|
107
|
+
<div id="sources-list"></div>
|
|
108
|
+
</details>
|
|
109
|
+
</div>
|
|
110
|
+
</aside>
|
|
111
|
+
|
|
112
|
+
<section class="detail" aria-label="项目资料">
|
|
113
|
+
<div id="empty" class="empty" role="status">正在读取本机项目…</div>
|
|
114
|
+
<div id="project-detail" hidden>
|
|
115
|
+
<header class="project-heading">
|
|
116
|
+
<div class="project-identity">
|
|
117
|
+
<div class="project-title-block">
|
|
118
|
+
<h2 id="project-name" tabindex="-1"></h2>
|
|
119
|
+
<div id="project-meta" class="chips"></div>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="project-detail-actions">
|
|
122
|
+
<button id="project-pin" class="secondary project-pin" type="button" aria-pressed="false">
|
|
123
|
+
<svg class="icon" aria-hidden="true"><use id="project-pin-icon" href="#icon-pin"/></svg>
|
|
124
|
+
<span id="project-pin-label">置顶</span>
|
|
125
|
+
</button>
|
|
126
|
+
<button id="project-archive-action" class="secondary project-archive-action" type="button">
|
|
127
|
+
<svg class="icon" aria-hidden="true"><use id="project-archive-action-icon" href="#icon-archive"/></svg>
|
|
128
|
+
<span id="project-archive-action-label">归档</span>
|
|
129
|
+
</button>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="project-location">
|
|
133
|
+
<code id="project-path"></code>
|
|
134
|
+
<button id="open-path" class="path-open" type="button" aria-label="在 DSH 中打开工作目录" title="在 DSH 中打开工作目录"><svg class="icon" aria-hidden="true"><use href="#icon-folder"/></svg><span>打开</span></button>
|
|
135
|
+
<button id="copy-path" class="path-copy icon-button" type="button" aria-label="复制工作目录" title="复制工作目录"><svg class="icon" aria-hidden="true"><use href="#icon-copy"/></svg></button>
|
|
136
|
+
</div>
|
|
137
|
+
</header>
|
|
138
|
+
<section class="continue-panel" aria-labelledby="continue-heading">
|
|
139
|
+
<header class="continue-heading">
|
|
140
|
+
<span class="continue-mark"><svg class="icon" aria-hidden="true"><use href="#icon-history"/></svg></span>
|
|
141
|
+
<div>
|
|
142
|
+
<h3 id="continue-heading" tabindex="-1">继续旧对话</h3>
|
|
143
|
+
</div>
|
|
144
|
+
</header>
|
|
145
|
+
<p id="recent-status" class="recent-status" role="status"></p>
|
|
146
|
+
<ul id="recent-conversations" class="conversation-list" aria-label="最近对话"></ul>
|
|
147
|
+
<button id="project-relay" class="text-action" type="button">项目接力单</button>
|
|
148
|
+
<button id="browse-history" class="text-action" type="button" hidden>
|
|
149
|
+
<span id="browse-history-label">查看全部对话</span><svg class="icon" aria-hidden="true"><use href="#icon-arrow"/></svg>
|
|
150
|
+
</button>
|
|
151
|
+
</section>
|
|
152
|
+
<details id="draft-workflow" class="draft-workflow">
|
|
153
|
+
<summary class="disclosure draft-summary">
|
|
154
|
+
<span class="disclosure-mark"><svg class="icon" aria-hidden="true"><use href="#icon-memory"/></svg></span>
|
|
155
|
+
<span class="draft-title">用项目资料开新对话</span>
|
|
156
|
+
<svg class="icon disclosure-chevron" aria-hidden="true"><use href="#icon-chevron"/></svg>
|
|
157
|
+
</summary>
|
|
158
|
+
<div class="draft-body">
|
|
159
|
+
<div class="draft-intro">
|
|
160
|
+
<p>选几份有用的资料,生成可编辑的草稿。</p>
|
|
161
|
+
<div class="field asset-search-field">
|
|
162
|
+
<svg class="icon field-icon" aria-hidden="true"><use href="#icon-search"/></svg>
|
|
163
|
+
<label class="sr-only" for="asset-search">搜索项目和全局资料</label>
|
|
164
|
+
<input id="asset-search" type="search" placeholder="搜索资料" autocomplete="off">
|
|
165
|
+
<button class="clear-search icon-button" id="clear-asset-search" type="button" aria-label="清除资料搜索" hidden><svg class="icon" aria-hidden="true"><use href="#icon-close"/></svg></button>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
<div id="project-materials" class="asset-list"></div>
|
|
169
|
+
<details id="global-library" class="global-library" hidden>
|
|
170
|
+
<summary class="disclosure">
|
|
171
|
+
<svg class="icon" aria-hidden="true"><use href="#icon-layers"/></svg>
|
|
172
|
+
<span class="disclosure-title">全局资料库</span>
|
|
173
|
+
<span id="global-count" class="disclosure-count"></span>
|
|
174
|
+
<svg class="icon disclosure-chevron" aria-hidden="true"><use href="#icon-chevron"/></svg>
|
|
175
|
+
</summary>
|
|
176
|
+
<p class="global-note">这些资料跨项目使用,按需选择。</p>
|
|
177
|
+
<div id="global-materials" class="asset-list"></div>
|
|
178
|
+
</details>
|
|
179
|
+
<p id="selection-feedback" class="selection-feedback" role="status"></p>
|
|
180
|
+
<div class="draft-actions">
|
|
181
|
+
<details id="handoff" class="handoff">
|
|
182
|
+
<summary class="disclosure">
|
|
183
|
+
<svg class="icon" aria-hidden="true"><use href="#icon-bridge"/></svg>
|
|
184
|
+
<span id="selection-summary" class="disclosure-title" aria-live="polite">接续清单</span>
|
|
185
|
+
<span id="selection-global" class="disclosure-count" hidden></span>
|
|
186
|
+
<svg class="icon disclosure-chevron" aria-hidden="true"><use href="#icon-chevron"/></svg>
|
|
187
|
+
</summary>
|
|
188
|
+
<div id="queue-list" class="queue-list"></div>
|
|
189
|
+
<label id="history-option" class="history" hidden>
|
|
190
|
+
<input type="checkbox" id="history">
|
|
191
|
+
<span id="history-label">带入近期对话摘录</span>
|
|
192
|
+
</label>
|
|
193
|
+
</details>
|
|
194
|
+
<button id="preview" class="primary" type="button" disabled>预览草稿<svg class="icon button-icon" aria-hidden="true"><use href="#icon-arrow"/></svg></button>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
</details>
|
|
198
|
+
</div>
|
|
199
|
+
</section>
|
|
200
|
+
</div>
|
|
201
|
+
</main>
|
|
202
|
+
|
|
203
|
+
<dialog id="dialog" aria-labelledby="dialog-title">
|
|
204
|
+
<div class="dialog-inner">
|
|
205
|
+
<header class="dialog-heading">
|
|
206
|
+
<span id="dialog-mark" class="project-mark"><svg class="icon" aria-hidden="true"><use href="#icon-bridge"/></svg></span>
|
|
207
|
+
<div>
|
|
208
|
+
<h2 id="dialog-title"></h2>
|
|
209
|
+
<p id="dialog-note" class="muted"></p>
|
|
210
|
+
</div>
|
|
211
|
+
<button id="dialog-close" class="secondary icon-button" type="button" aria-label="关闭" title="关闭"><svg class="icon" aria-hidden="true"><use href="#icon-close"/></svg></button>
|
|
212
|
+
</header>
|
|
213
|
+
<div class="dialog-content">
|
|
214
|
+
<div id="history-choice" class="history-choice" hidden>
|
|
215
|
+
<div class="field">
|
|
216
|
+
<svg class="icon field-icon" aria-hidden="true"><use href="#icon-search"/></svg>
|
|
217
|
+
<label class="sr-only" for="history-search">搜索来源对话</label>
|
|
218
|
+
<input id="history-search" type="search" placeholder="搜本项目的对话正文" autocomplete="off" maxlength="200">
|
|
219
|
+
<button class="clear-search icon-button" id="clear-history-search" type="button" aria-label="清除对话搜索" hidden><svg class="icon" aria-hidden="true"><use href="#icon-close"/></svg></button>
|
|
220
|
+
</div>
|
|
221
|
+
<div class="history-search-tools">
|
|
222
|
+
<select id="history-search-scope" aria-label="对话搜索范围">
|
|
223
|
+
<option value="body">正文</option>
|
|
224
|
+
<option value="title">标题或 Agent</option>
|
|
225
|
+
</select>
|
|
226
|
+
<span id="history-selected-count" class="muted" role="status"></span>
|
|
227
|
+
</div>
|
|
228
|
+
<p id="history-empty" class="recent-status" role="status"></p>
|
|
229
|
+
<ul id="history-results" class="conversation-list" aria-label="来源对话"></ul>
|
|
230
|
+
<button id="history-more" class="secondary" type="button" hidden>显示更多</button>
|
|
231
|
+
<details id="history-unavailable" class="source-archive" hidden>
|
|
232
|
+
<summary id="history-unavailable-count"></summary>
|
|
233
|
+
<ul id="history-unavailable-results"></ul>
|
|
234
|
+
</details>
|
|
235
|
+
</div>
|
|
236
|
+
<div id="history-back" class="history-back" hidden>
|
|
237
|
+
<button id="history-back-button" class="text-action" type="button">
|
|
238
|
+
<svg class="icon" aria-hidden="true"><use href="#icon-chevron"/></svg>返回对话搜索
|
|
239
|
+
</button>
|
|
240
|
+
</div>
|
|
241
|
+
<div id="dialog-text" class="dialog-text" tabindex="0"></div>
|
|
242
|
+
<div id="session-choice" class="session-choice" hidden>
|
|
243
|
+
<label for="session-select">选择要导出的 DSH 会话</label>
|
|
244
|
+
<select id="session-select"></select>
|
|
245
|
+
<p id="session-path" class="muted"></p>
|
|
246
|
+
<div id="session-source-record"></div>
|
|
247
|
+
</div>
|
|
248
|
+
<p id="dialog-status" role="status"></p>
|
|
249
|
+
<details id="export-output" class="export-output" hidden>
|
|
250
|
+
<summary>查看或复制 Markdown</summary>
|
|
251
|
+
<pre id="export-text" tabindex="0"></pre>
|
|
252
|
+
</details>
|
|
253
|
+
</div>
|
|
254
|
+
<footer class="dialog-actions">
|
|
255
|
+
<button id="relay-return" class="secondary" type="button" hidden>项目接力单</button>
|
|
256
|
+
<button id="relay-pick" class="secondary" type="button" hidden>从对话选内容</button>
|
|
257
|
+
<button id="relay-export" class="primary" type="button" hidden>审阅并导出接力单</button>
|
|
258
|
+
<label id="export-trace-option" class="export-trace-option" hidden>
|
|
259
|
+
<input type="checkbox" id="export-trace">
|
|
260
|
+
<span>附带来源记录(工具名与结果摘录)</span>
|
|
261
|
+
</label>
|
|
262
|
+
<a id="export-download" class="secondary" download hidden><svg class="icon button-icon" aria-hidden="true"><use href="#icon-download"/></svg>下载 Markdown</a>
|
|
263
|
+
<button id="export" class="secondary" type="button" hidden><svg class="icon button-icon" aria-hidden="true"><use href="#icon-download"/></svg>导出本机版</button>
|
|
264
|
+
<button id="export-share" class="secondary" type="button" hidden><svg class="icon button-icon" aria-hidden="true"><use href="#icon-download"/></svg>审阅分享版</button>
|
|
265
|
+
<button id="recover-draft" class="secondary" type="button" hidden>打开已创建的会话</button>
|
|
266
|
+
<button id="skill-undo" class="secondary" type="button" hidden>恢复上一版</button>
|
|
267
|
+
<button id="skill-deactivate" class="secondary" type="button" hidden>停用技能</button>
|
|
268
|
+
<button id="skill-apply" class="primary" type="button" hidden><span id="skill-apply-label">启用技能</span><svg class="icon button-icon" aria-hidden="true"><use href="#icon-arrow"/></svg></button>
|
|
269
|
+
<button id="history-copy" class="secondary" type="button" hidden>另开副本</button>
|
|
270
|
+
<button id="history-open-existing" class="primary" type="button" hidden>打开已有会话<svg class="icon button-icon" aria-hidden="true"><use href="#icon-arrow"/></svg></button>
|
|
271
|
+
<button id="history-import" class="primary" type="button" hidden><span id="history-import-label">迁入并继续</span><svg class="icon button-icon" aria-hidden="true"><use href="#icon-arrow"/></svg></button>
|
|
272
|
+
<button id="import" class="primary" type="button" hidden>打开新对话<svg class="icon button-icon" aria-hidden="true"><use href="#icon-arrow"/></svg></button>
|
|
273
|
+
</footer>
|
|
274
|
+
</div>
|
|
275
|
+
</dialog>
|
|
276
|
+
|
|
277
|
+
<dialog id="activate-dialog" aria-labelledby="activate-title">
|
|
278
|
+
<div class="dialog-inner">
|
|
279
|
+
<header class="dialog-heading">
|
|
280
|
+
<span class="project-mark"><svg class="icon" aria-hidden="true"><use href="#icon-skill"/></svg></span>
|
|
281
|
+
<div>
|
|
282
|
+
<h2 id="activate-title">确认启用技能</h2>
|
|
283
|
+
<p id="activate-note" class="muted">核对来源、项目范围和脚本后再继续。</p>
|
|
284
|
+
</div>
|
|
285
|
+
<button id="activate-close" class="secondary icon-button" type="button" aria-label="关闭" title="关闭"><svg class="icon" aria-hidden="true"><use href="#icon-close"/></svg></button>
|
|
286
|
+
</header>
|
|
287
|
+
<div class="dialog-content">
|
|
288
|
+
<div id="activate-body" class="dialog-text" data-format="handoff" tabindex="0"></div>
|
|
289
|
+
<p id="activate-status" role="status"></p>
|
|
290
|
+
</div>
|
|
291
|
+
<footer class="dialog-actions">
|
|
292
|
+
<button id="activate-text" class="secondary" type="button">仅文字继续</button>
|
|
293
|
+
<button id="activate-confirm" class="primary" type="button">确认启用并继续<svg class="icon button-icon" aria-hidden="true"><use href="#icon-arrow"/></svg></button>
|
|
294
|
+
</footer>
|
|
295
|
+
</div>
|
|
296
|
+
</dialog>
|
|
297
|
+
</body>
|
|
298
|
+
</html>
|