codexmate 0.1.32 → 0.1.34
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 +18 -2
- package/README.vi.md +18 -2
- package/README.zh.md +18 -2
- package/cli/claude-proxy.js +2 -2
- package/cli/local-bridge.js +10 -6
- package/cli/openai-chat-routing.js +38 -0
- package/cli/prompt-history.js +2 -0
- package/cli/routing-bridge.js +143 -0
- package/cli/system-prompt-files.js +75 -53
- package/cli.js +325 -215
- package/lib/cli-config-engine.js +6 -1
- package/lib/cli-file-utils.js +6 -1
- package/lib/config-change-fs.js +132 -0
- package/lib/config-changes.js +293 -0
- package/lib/file-sharing-lan.js +111 -0
- package/lib/file-sharing.js +196 -0
- package/lib/handoff-mcp.js +18 -2
- package/lib/local-feature-store.js +39 -0
- package/lib/model-test-client.js +61 -0
- package/lib/model-test.js +126 -0
- package/lib/routing-groups.js +161 -0
- package/lib/session-bookmarks.js +72 -0
- package/lib/session-context-health.js +23 -3
- package/lib/session-diagnostics.js +75 -0
- package/lib/session-feature-settings.js +21 -0
- package/lib/session-features.js +63 -0
- package/lib/session-handoff-draft.js +43 -0
- package/lib/session-projects.js +76 -0
- package/lib/session-search-index.js +188 -0
- package/lib/thread-handoff.js +8 -0
- package/lib/web-server.js +216 -0
- package/package.json +1 -1
- package/plugins/file-sharing/manifest.mjs +10 -0
- package/plugins/file-sharing/methods.mjs +101 -0
- package/plugins/file-sharing/overview.mjs +3 -0
- package/plugins/file-sharing/ownership.mjs +5 -0
- package/plugins/registry.mjs +3 -0
- package/web-ui/app.js +22 -3
- package/web-ui/index.html +4 -2
- package/web-ui/logic.context-window.mjs +15 -0
- package/web-ui/modules/api.mjs +72 -39
- package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
- package/web-ui/modules/app.methods.agents.mjs +17 -0
- package/web-ui/modules/app.methods.claude-config.mjs +2 -0
- package/web-ui/modules/app.methods.codex-config.mjs +9 -0
- package/web-ui/modules/app.methods.config-changes.mjs +124 -0
- package/web-ui/modules/app.methods.install.mjs +23 -3
- package/web-ui/modules/app.methods.kilocode-config.mjs +2 -0
- package/web-ui/modules/app.methods.navigation.mjs +2 -0
- package/web-ui/modules/app.methods.openclaw-persist.mjs +2 -0
- package/web-ui/modules/app.methods.opencode-config.mjs +2 -0
- package/web-ui/modules/app.methods.pi-config.mjs +12 -3
- package/web-ui/modules/app.methods.prompts-editor.mjs +7 -4
- package/web-ui/modules/app.methods.provider-cache.mjs +9 -3
- package/web-ui/modules/app.methods.providers.mjs +6 -0
- package/web-ui/modules/app.methods.session-actions.mjs +2 -2
- package/web-ui/modules/app.methods.startup-claude.mjs +8 -47
- package/web-ui/modules/app.methods.system-prompt.mjs +88 -17
- package/web-ui/modules/app.methods.theme.mjs +4 -3
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +7 -0
- package/web-ui/modules/config-change-actions.mjs +9 -0
- package/web-ui/modules/i18n/locales/en.mjs +254 -8
- package/web-ui/modules/i18n/locales/ja.mjs +254 -8
- package/web-ui/modules/i18n/locales/vi.mjs +254 -8
- package/web-ui/modules/i18n/locales/zh-tw.mjs +254 -8
- package/web-ui/modules/i18n/locales/zh.mjs +254 -8
- package/web-ui/modules/model-test.mjs +82 -0
- package/web-ui/modules/plugins.methods.mjs +3 -1
- package/web-ui/modules/prompt-ecosystem.methods.mjs +4 -3
- package/web-ui/modules/request-deadline.mjs +33 -0
- package/web-ui/modules/routing.mjs +206 -0
- package/web-ui/modules/session-features.mjs +279 -0
- package/web-ui/modules/thread-handoff.mjs +1 -1
- package/web-ui/partials/index/config-changes.html +25 -0
- package/web-ui/partials/index/context-window-reference.html +17 -0
- package/web-ui/partials/index/layout-header.html +40 -42
- package/web-ui/partials/index/modal-openclaw-config.html +0 -2
- package/web-ui/partials/index/modal-skills.html +0 -1
- package/web-ui/partials/index/modals-basic.html +15 -8
- package/web-ui/partials/index/modals-pi-provider.html +0 -1
- package/web-ui/partials/index/panel-config-codex.html +0 -3
- package/web-ui/partials/index/panel-config-openclaw.html +16 -13
- package/web-ui/partials/index/panel-dashboard.html +0 -2
- package/web-ui/partials/index/panel-plugins.html +3 -10
- package/web-ui/partials/index/panel-prompts.html +13 -8
- package/web-ui/partials/index/panel-routing.html +3 -0
- package/web-ui/partials/index/panel-sessions.html +9 -0
- package/web-ui/partials/index/panel-settings.html +12 -13
- package/web-ui/partials/index/panel-trash.html +0 -1
- package/web-ui/partials/index/plugin-file-sharing.html +47 -0
- package/web-ui/partials/index/routing-model-test.html +53 -0
- package/web-ui/partials/index/session-diagnostics.html +32 -0
- package/web-ui/partials/index/session-features.html +107 -0
- package/web-ui/partials/index/thread-handoff.html +6 -3
- package/web-ui/res/web-ui-render.precompiled.js +1689 -246
- package/web-ui/styles/base-theme.css +1 -1
- package/web-ui/styles/config-changes.css +30 -0
- package/web-ui/styles/modals-core.css +6 -5
- package/web-ui/styles/navigation-panels.css +4 -0
- package/web-ui/styles/openclaw-structured.css +205 -189
- package/web-ui/styles/plugins-panel.css +40 -1
- package/web-ui/styles/responsive.css +10 -5
- package/web-ui/styles/routing.css +78 -0
- package/web-ui/styles/session-features.css +258 -0
- package/web-ui/styles/settings-panel.css +30 -0
- package/web-ui/styles/system-prompt.css +8 -7
- package/web-ui/styles/theme-violet-tokens.css +52 -0
- package/web-ui/styles/theme-violet.css +1736 -0
- package/web-ui/styles.css +5 -1
|
@@ -18,10 +18,12 @@
|
|
|
18
18
|
<span v-if="sessionStandaloneSourceLabel"> · {{ sessionStandaloneSourceLabel }}</span>
|
|
19
19
|
</div>
|
|
20
20
|
<!-- @include ./context-health.html -->
|
|
21
|
+
<!-- @include ./context-window-reference.html -->
|
|
21
22
|
<pre class="session-standalone-text">{{ sessionStandaloneText }}</pre>
|
|
22
23
|
</div>
|
|
23
24
|
</div>
|
|
24
25
|
<div v-else>
|
|
26
|
+
<!-- @include ./session-features.html -->
|
|
25
27
|
<div class="selector-section session-selector-section">
|
|
26
28
|
<div class="selector-header" style="display:none">
|
|
27
29
|
<span class="selector-title">{{ t('sessions.sourceTitle') }}</span>
|
|
@@ -310,6 +312,12 @@
|
|
|
310
312
|
</div>
|
|
311
313
|
</div>
|
|
312
314
|
<!-- @include ./context-health.html -->
|
|
315
|
+
<!-- @include ./context-window-reference.html -->
|
|
316
|
+
<article v-if="featureFocus" ref="featureFocus" class="feature-focus" tabindex="-1">
|
|
317
|
+
<div class="feature-actions"><strong>{{ t('features.source') }} · {{ featureFocus.id }}</strong><button type="button" class="btn-mini" @click="featureFocus = null">{{ t('features.close') }}</button></div>
|
|
318
|
+
<pre>{{ featureFocus.text }}</pre>
|
|
319
|
+
<div class="feature-actions"><button type="button" class="btn-mini" @click="bookmarkMessage(featureFocus)" :disabled="featureBusy">{{ t('features.bookmark') }}</button><button type="button" class="btn-mini" @click="toggleHandoffMessage(featureFocus)">{{ t('features.selectMessage') }}</button></div>
|
|
320
|
+
</article>
|
|
313
321
|
<div class="session-export-feedback">
|
|
314
322
|
<p v-if="sessionExportNotice && sessionExportNotice.key === getSessionExportKey(activeSession)" class="session-export-notice" role="status">{{ t('sessions.export.truncated') }}</p>
|
|
315
323
|
</div>
|
|
@@ -415,6 +423,7 @@
|
|
|
415
423
|
:ref="getSessionMessageRefBinder(getRecordRenderKey(msg, idx))"
|
|
416
424
|
:class="['session-msg', msg.normalizedRole === 'user' ? 'user' : (msg.normalizedRole === 'system' ? 'system' : 'assistant')]">
|
|
417
425
|
<div class="session-msg-header">
|
|
426
|
+
<session-message-actions :message="msg"></session-message-actions>
|
|
418
427
|
<div class="session-msg-meta">
|
|
419
428
|
<span class="session-msg-role">{{ msg.roleLabel || (msg.normalizedRole === 'user' ? t('sessions.roleLabel.user') : (msg.normalizedRole === 'system' ? t('sessions.roleLabel.system') : t('sessions.roleLabel.assistant'))) }}</span>
|
|
420
429
|
<span class="session-msg-time">{{ msg.timestamp || '' }}</span>
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
role="tabpanel"
|
|
7
7
|
:aria-labelledby="'tab-settings'">
|
|
8
8
|
|
|
9
|
+
<!-- @include ./session-diagnostics.html -->
|
|
9
10
|
<div class="settings-tab-header">
|
|
10
11
|
<div
|
|
11
12
|
class="segmented-control"
|
|
@@ -44,7 +45,6 @@
|
|
|
44
45
|
<div class="settings-card-main">
|
|
45
46
|
<div class="settings-card-content">
|
|
46
47
|
<div class="settings-card-title">{{ t('settings.language.title') }}</div>
|
|
47
|
-
<p class="settings-card-desc">{{ t('settings.language.meta') }}</p>
|
|
48
48
|
<label class="selector-label" for="settings-language-select">{{ t('settings.language.label') }}</label>
|
|
49
49
|
<select
|
|
50
50
|
id="settings-language-select"
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
:key="option.code"
|
|
57
57
|
:value="option.code">{{ option.nativeName }} · {{ option.englishName }}</option>
|
|
58
58
|
</select>
|
|
59
|
-
<p class="settings-card-hint">{{ t('settings.language.hint') }}</p>
|
|
60
59
|
</div>
|
|
61
60
|
</div>
|
|
62
61
|
</section>
|
|
@@ -65,28 +64,36 @@
|
|
|
65
64
|
<div class="settings-card-main">
|
|
66
65
|
<div class="settings-card-content">
|
|
67
66
|
<div class="settings-card-title">{{ t('settings.theme.title') }}</div>
|
|
68
|
-
<
|
|
69
|
-
<div class="settings-toggle-group">
|
|
67
|
+
<div class="settings-toggle-group settings-theme-options">
|
|
70
68
|
<button
|
|
71
69
|
type="button"
|
|
72
70
|
:class="['toggle-btn', { active: theme === 'light' }]"
|
|
71
|
+
:aria-pressed="theme === 'light'"
|
|
73
72
|
@click="setTheme('light')">
|
|
74
73
|
{{ t('settings.theme.light') }}
|
|
75
74
|
</button>
|
|
76
75
|
<button
|
|
77
76
|
type="button"
|
|
78
77
|
:class="['toggle-btn', { active: theme === 'dark' }]"
|
|
78
|
+
:aria-pressed="theme === 'dark'"
|
|
79
79
|
@click="setTheme('dark')">
|
|
80
80
|
{{ t('settings.theme.dark') }}
|
|
81
81
|
</button>
|
|
82
82
|
<button
|
|
83
83
|
type="button"
|
|
84
84
|
:class="['toggle-btn', { active: theme === 'ocean' }]"
|
|
85
|
+
:aria-pressed="theme === 'ocean'"
|
|
85
86
|
@click="setTheme('ocean')">
|
|
86
87
|
{{ t('settings.theme.ocean') }}
|
|
87
88
|
</button>
|
|
89
|
+
<button
|
|
90
|
+
type="button"
|
|
91
|
+
:class="['toggle-btn', { active: theme === 'violet' }]"
|
|
92
|
+
:aria-pressed="theme === 'violet'"
|
|
93
|
+
@click="setTheme('violet')">
|
|
94
|
+
{{ t('settings.theme.violet') }}
|
|
95
|
+
</button>
|
|
88
96
|
</div>
|
|
89
|
-
<p class="settings-card-hint">{{ t('settings.theme.hint') }}</p>
|
|
90
97
|
</div>
|
|
91
98
|
</div>
|
|
92
99
|
</section>
|
|
@@ -95,7 +102,6 @@
|
|
|
95
102
|
<div class="settings-card-main">
|
|
96
103
|
<div class="settings-card-content">
|
|
97
104
|
<div class="settings-card-title">{{ t('settings.sharePrefix.title') }}</div>
|
|
98
|
-
<p class="settings-card-desc">{{ t('settings.sharePrefix.meta') }}</p>
|
|
99
105
|
<label class="selector-label" for="settings-share-prefix">{{ t('settings.sharePrefix.label') }}</label>
|
|
100
106
|
<select
|
|
101
107
|
id="settings-share-prefix"
|
|
@@ -114,7 +120,6 @@
|
|
|
114
120
|
<div class="settings-card-main">
|
|
115
121
|
<div class="settings-card-content">
|
|
116
122
|
<div class="settings-card-title">{{ t('settings.templateConfirm.title') }}</div>
|
|
117
|
-
<p class="settings-card-desc">{{ t('settings.templateConfirm.meta') }}</p>
|
|
118
123
|
<label class="settings-toggle-row">
|
|
119
124
|
<input type="checkbox" :checked="configTemplateDiffConfirmEnabled" @change="setConfigTemplateDiffConfirmEnabled($event.target.checked)">
|
|
120
125
|
<span class="toggle-track">
|
|
@@ -149,7 +154,6 @@
|
|
|
149
154
|
<div class="settings-card-main">
|
|
150
155
|
<div class="settings-card-content">
|
|
151
156
|
<div class="settings-card-title">{{ t('settings.timeline.style.title') }}</div>
|
|
152
|
-
<p class="settings-card-desc">{{ t('settings.timeline.style.meta') }}</p>
|
|
153
157
|
<div class="settings-toggle-group">
|
|
154
158
|
<button
|
|
155
159
|
type="button"
|
|
@@ -164,7 +168,6 @@
|
|
|
164
168
|
{{ t('settings.timeline.style.bar') }}
|
|
165
169
|
</button>
|
|
166
170
|
</div>
|
|
167
|
-
<p class="settings-card-hint">{{ t('settings.timeline.style.hint') }}</p>
|
|
168
171
|
</div>
|
|
169
172
|
</div>
|
|
170
173
|
</section>
|
|
@@ -173,7 +176,6 @@
|
|
|
173
176
|
<div class="settings-card-main">
|
|
174
177
|
<div class="settings-card-content">
|
|
175
178
|
<div class="settings-card-title">{{ t('settings.configTabs.title') }}</div>
|
|
176
|
-
<p class="settings-card-desc">{{ t('settings.configTabs.meta') }}</p>
|
|
177
179
|
<div class="settings-toggle-grid">
|
|
178
180
|
<label class="settings-toggle-row">
|
|
179
181
|
<input type="checkbox" :checked="configModeVisibility.codex" @change="setConfigModeVisibility('codex', $event.target.checked)">
|
|
@@ -223,7 +225,6 @@
|
|
|
223
225
|
<div class="settings-card-main">
|
|
224
226
|
<div class="settings-card-content">
|
|
225
227
|
<div class="settings-card-title">{{ t('settings.backup.title') }}</div>
|
|
226
|
-
<p class="settings-card-desc">{{ t('settings.backup.meta') }}</p>
|
|
227
228
|
</div>
|
|
228
229
|
</div>
|
|
229
230
|
<div class="settings-card-actions">
|
|
@@ -242,7 +243,6 @@
|
|
|
242
243
|
<div class="settings-card-main">
|
|
243
244
|
<div class="settings-card-content">
|
|
244
245
|
<div class="settings-card-title">{{ t('settings.providerCache.title') }}</div>
|
|
245
|
-
<p class="settings-card-desc">{{ t('settings.providerCache.meta') }}</p>
|
|
246
246
|
<p class="settings-card-hint">{{ t('settings.providerCache.hint') }}</p>
|
|
247
247
|
<p v-if="providerCacheSyncMessage" class="settings-card-hint provider-cache-sync-message">{{ providerCacheSyncMessage }}</p>
|
|
248
248
|
<p v-if="providerCacheError" class="settings-card-hint form-error">{{ providerCacheError }}</p>
|
|
@@ -261,7 +261,6 @@
|
|
|
261
261
|
<div class="settings-card-main">
|
|
262
262
|
<div class="settings-card-content">
|
|
263
263
|
<div class="settings-card-title">{{ t('settings.reset.title') }}</div>
|
|
264
|
-
<p class="settings-card-desc">{{ t('settings.reset.meta') }}</p>
|
|
265
264
|
<p class="settings-card-hint">{{ t('settings.reset.hint') }}</p>
|
|
266
265
|
</div>
|
|
267
266
|
</div>
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
<div class="settings-card-main">
|
|
12
12
|
<div class="settings-card-content">
|
|
13
13
|
<div class="settings-card-title">{{ t('settings.trashConfig.title') }}</div>
|
|
14
|
-
<p class="settings-card-desc">{{ t('settings.trashConfig.meta') }}</p>
|
|
15
14
|
<label class="settings-toggle-row">
|
|
16
15
|
<input type="checkbox" :checked="sessionTrashEnabled" @change="setSessionTrashEnabled($event.target.checked)">
|
|
17
16
|
<span class="toggle-track">
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<div v-else-if="pluginsActiveId === 'file-sharing'" class="plugins-panel" id="plugin-file-sharing">
|
|
2
|
+
<div class="plugins-panel-head">
|
|
3
|
+
<div class="plugins-panel-title">{{ t('plugins.fileSharing.title') }}</div>
|
|
4
|
+
<div class="file-sharing-actions">
|
|
5
|
+
<button type="button" class="btn-mini" :disabled="fileSharingBusy" @click="$refs.fileSharingFiles.click()">{{ t('plugins.fileSharing.chooseFiles') }}</button>
|
|
6
|
+
<button type="button" class="btn-mini" :disabled="fileSharingBusy" @click="$refs.fileSharingFolder.click()">{{ t('plugins.fileSharing.chooseFolder') }}</button>
|
|
7
|
+
<button type="button" class="btn-mini" :disabled="fileSharingBusy" @click="refreshFileSharing">{{ t('common.refresh') }}</button>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<input ref="fileSharingFiles" id="file-sharing-files" type="file" multiple hidden @change="selectFileSharingItems($event, false)">
|
|
11
|
+
<input ref="fileSharingFolder" id="file-sharing-folder" type="file" webkitdirectory hidden @change="selectFileSharingItems($event, true)">
|
|
12
|
+
<p v-if="fileSharingError" role="alert" class="state-message error">{{ fileSharingError }}</p>
|
|
13
|
+
<div v-if="fileSharingPending" class="file-sharing-pending">
|
|
14
|
+
<p class="plugins-panel-note">{{ t('plugins.fileSharing.confirm') }}</p>
|
|
15
|
+
<ul class="file-sharing-items" aria-live="polite">
|
|
16
|
+
<li v-for="(file, index) in fileSharingPending.entries" :key="index" dir="auto">{{ file.name }}</li>
|
|
17
|
+
</ul>
|
|
18
|
+
<div class="file-sharing-actions">
|
|
19
|
+
<button type="button" class="btn-mini" id="upload-file-sharing" :disabled="fileSharingBusy" @click="uploadFileSharingItems">{{ t('plugins.fileSharing.upload') }}</button>
|
|
20
|
+
<button type="button" class="btn-mini" id="cancel-file-sharing" :disabled="fileSharingBusy" @click="fileSharingPending = null">{{ t('common.cancel') }}</button>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<p v-if="fileSharingBusy" role="status" class="plugins-panel-note">{{ t('common.loading') }}</p>
|
|
24
|
+
<p v-else-if="!fileSharingBatches.length" class="skills-empty-state">{{ t('plugins.fileSharing.empty') }}</p>
|
|
25
|
+
<ul v-if="fileSharingBatches.length" class="file-sharing-items file-sharing-batches">
|
|
26
|
+
<li v-for="batch in fileSharingBatches" :key="batch.id">
|
|
27
|
+
<div class="file-sharing-row">
|
|
28
|
+
<strong dir="auto">{{ batch.folder || t('plugins.fileSharing.files', { count: batch.files.length }) }}</strong>
|
|
29
|
+
<button type="button" class="btn-mini file-sharing-icon file-sharing-remove" :aria-label="t('plugins.fileSharing.remove')" :title="t('plugins.fileSharing.remove')" :disabled="fileSharingBusy" @click="removeFileSharingBatch(batch.id)">
|
|
30
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" focusable="false"><path d="M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6m5 4v6m4-6v6"/></svg>
|
|
31
|
+
</button>
|
|
32
|
+
</div>
|
|
33
|
+
<ul class="file-sharing-items">
|
|
34
|
+
<li v-for="(file, index) in batch.files" :key="index" class="file-sharing-row">
|
|
35
|
+
<span dir="auto">{{ file.name }}</span>
|
|
36
|
+
<span class="file-sharing-size">{{ t('plugins.fileSharing.bytes', { size: file.size }) }}</span>
|
|
37
|
+
<a class="btn-mini file-sharing-icon" :aria-label="t('plugins.fileSharing.download')" :title="t('plugins.fileSharing.download')" :href="fileSharingDownloadUrl(batch.id, index)" download referrerpolicy="no-referrer">
|
|
38
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" focusable="false"><path d="M12 3v12m-5-5 5 5 5-5M4 16v4h16v-4"/></svg>
|
|
39
|
+
</a>
|
|
40
|
+
<button type="button" class="btn-mini file-sharing-icon file-sharing-copy" :aria-label="t('plugins.fileSharing.copyLink')" :title="t('plugins.fileSharing.copyLink')" :disabled="fileSharingBusy" @click="copyFileSharingLink(batch.id, index)">
|
|
41
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" focusable="false"><path d="M10 13a4 4 0 0 0 6 .5l3-3a4 4 0 0 0-5.5-5.5l-1.7 1.7m2.2 4.3a4 4 0 0 0-6-.5l-3 3a4 4 0 0 0 5.5 5.5l1.7-1.7"/></svg>
|
|
42
|
+
</button>
|
|
43
|
+
</li>
|
|
44
|
+
</ul>
|
|
45
|
+
</li>
|
|
46
|
+
</ul>
|
|
47
|
+
</div>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<div class="routing-test">
|
|
2
|
+
<form novalidate @submit.prevent="runModelTest" :aria-busy="modelTestRunning">
|
|
3
|
+
<fieldset :disabled="modelTestRunning || modelTestLoading">
|
|
4
|
+
<legend class="routing-test-legend">{{ t('modelTest.selection') }}</legend>
|
|
5
|
+
<div class="routing-test-heading">
|
|
6
|
+
<div class="segmented-control" role="group" :aria-label="t('modelTest.source')">
|
|
7
|
+
<button v-for="target in ['codex', 'pi']" :key="target" type="button" :class="['segment', { active: modelTestTarget === target }]" :aria-pressed="modelTestTarget === target" @click="setModelTestTarget(target)">{{ target === 'codex' ? 'Codex' : 'Pi' }}</button>
|
|
8
|
+
</div>
|
|
9
|
+
<button type="button" class="btn-tool routing-icon-btn" :disabled="modelTestLoading || modelTestRunning" :aria-label="t('routing.refresh')" :title="t('routing.refresh')" @click="loadModelTestCatalog">
|
|
10
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" focusable="false"><path d="M20 7v5h-5M4 17v-5h5M6 7a7 7 0 0 1 12-1l2 3M4 15l2 3a7 7 0 0 0 12-1"/></svg>
|
|
11
|
+
</button>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="routing-form-head">
|
|
14
|
+
<label class="routing-field"><span class="form-label">{{ t('routing.provider') }}</span>
|
|
15
|
+
<select class="model-select" v-model="modelTestProvider" @change="selectModelTestProvider">
|
|
16
|
+
<option value="" disabled>{{ t('routing.selectProvider') }}</option>
|
|
17
|
+
<option v-for="provider in modelTestProviders()" :key="provider.name" :value="provider.name">{{ provider.name }}</option>
|
|
18
|
+
</select>
|
|
19
|
+
</label>
|
|
20
|
+
<label class="routing-field"><span class="form-label">{{ t('routing.model') }}</span>
|
|
21
|
+
<select class="model-select" v-model="modelTestModel">
|
|
22
|
+
<option value="" disabled>{{ t('modelTest.selectModel') }}</option>
|
|
23
|
+
<option v-for="model in modelTestModels()" :key="model" :value="model">{{ model }}</option>
|
|
24
|
+
</select>
|
|
25
|
+
</label>
|
|
26
|
+
</div>
|
|
27
|
+
<p v-if="!modelTestLoading && !modelTestModels().length" class="routing-hint">{{ t('modelTest.empty') }} <button type="button" class="btn-tool" @click="switchConfigMode(modelTestTarget)">{{ t('routing.openConfig') }}</button></p>
|
|
28
|
+
<label class="routing-field routing-test-prompt"><span class="form-label">{{ t('modelTest.prompt') }}</span>
|
|
29
|
+
<textarea class="form-input" v-model="modelTestPrompt" rows="4" maxlength="8000"></textarea>
|
|
30
|
+
</label>
|
|
31
|
+
<div class="routing-test-actions">
|
|
32
|
+
<button type="submit" class="btn-tool btn-primary" :disabled="!modelTestPrompt.trim() || !modelTestModels().length">{{ t(modelTestRunning ? 'modelTest.running' : 'modelTest.run') }}</button>
|
|
33
|
+
</div>
|
|
34
|
+
</fieldset>
|
|
35
|
+
</form>
|
|
36
|
+
<p v-if="modelTestError" class="routing-error" role="alert">{{ modelTestError }}</p>
|
|
37
|
+
<div class="routing-test-response" aria-live="polite" :aria-busy="modelTestRunning">
|
|
38
|
+
<p v-if="modelTestLoading" class="routing-hint" role="status">{{ t('modelTest.loading') }}</p>
|
|
39
|
+
<template v-else-if="modelTestResult">
|
|
40
|
+
<div class="routing-test-result-head">
|
|
41
|
+
<strong>{{ modelTestResult.provider }} / {{ modelTestResult.responseModel || modelTestResult.model }}</strong>
|
|
42
|
+
<span class="routing-hint">{{ t(modelTestRunning ? 'modelTest.running' : modelTestResult.ok ? 'modelTest.completed' : 'modelTest.failed') }}<template v-if="!modelTestRunning"> · {{ modelTestDuration() }}</template></span>
|
|
43
|
+
</div>
|
|
44
|
+
<p class="routing-test-question">{{ modelTestResult.prompt }}</p>
|
|
45
|
+
<p v-if="!modelTestRunning && !modelTestResult.ok" class="routing-error" role="alert">{{ modelTestResult.error }}</p>
|
|
46
|
+
<template v-else-if="!modelTestRunning">
|
|
47
|
+
<div v-if="modelTestRenderedResponse.html" class="routing-test-answer" v-html="modelTestRenderedResponse.html"></div>
|
|
48
|
+
<p v-else class="routing-test-answer routing-test-plain">{{ modelTestResult.text }}</p>
|
|
49
|
+
<p v-if="modelTestResult.incomplete" class="routing-hint">{{ t('modelTest.incomplete') }}</p>
|
|
50
|
+
</template>
|
|
51
|
+
</template>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<details class="session-features feature-diagnostics" @toggle="$event.target === $event.currentTarget && $event.currentTarget.open && loadDiagnosticTargets()">
|
|
2
|
+
<summary class="feature-diagnostics-heading">
|
|
3
|
+
<span>{{ t('features.diagnostics') }}</span>
|
|
4
|
+
<svg class="feature-diagnostics-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true" focusable="false"><path d="m9 5 7 7-7 7"/></svg>
|
|
5
|
+
</summary>
|
|
6
|
+
<div class="feature-content">
|
|
7
|
+
<p class="feature-hint">{{ t('features.diagnosticScope') }}</p>
|
|
8
|
+
<p v-if="featureError" class="form-error feature-feedback" role="alert">{{ featureError }}</p>
|
|
9
|
+
<div class="feature-diagnostic-options">
|
|
10
|
+
<label><input type="checkbox" v-model="diagnosticsRemote" :disabled="diagnosticsReport?.status === 'running'"><span>{{ t('features.remoteProbe') }}</span></label>
|
|
11
|
+
<label v-for="name in diagnosticsTargets" :key="name"><input type="checkbox" :value="name" v-model="diagnosticsSelected" :disabled="diagnosticsReport?.status === 'running'"><span>{{ name }}</span></label>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="feature-actions feature-diagnostic-controls">
|
|
14
|
+
<button type="button" class="feature-button feature-primary" @click="startDiagnostics" :disabled="diagnosticsReport?.status === 'running'">{{ t('features.check') }}</button>
|
|
15
|
+
<button v-if="diagnosticsReport?.status === 'running'" type="button" class="feature-button feature-quiet" @click="cancelDiagnostics">{{ t('features.cancel') }}</button>
|
|
16
|
+
<span v-if="diagnosticsReport" class="feature-status" :data-status="diagnosticsReport.status" role="status">{{ t('features.status.' + diagnosticsReport.status) }}</span>
|
|
17
|
+
</div>
|
|
18
|
+
<template v-if="diagnosticsReport">
|
|
19
|
+
<article v-for="item in diagnosticsReport.items" :key="item.id" class="feature-record feature-diagnostic-row">
|
|
20
|
+
<header class="feature-record-heading">
|
|
21
|
+
<strong>{{ item.id === 'local' ? t('features.localCheck') : item.id === 'provider' ? t('features.providerCheck') : item.id }}</strong>
|
|
22
|
+
<span class="feature-status" :data-status="item.status">{{ t('features.status.' + item.status) }}</span>
|
|
23
|
+
</header>
|
|
24
|
+
<small class="feature-meta">{{ item.checkedAt }}<template v-if="item.durationMs !== undefined"> · {{ item.durationMs }} ms</template></small>
|
|
25
|
+
<p v-for="issue in item.evidence?.issues || []" :key="issue.id || issue.code" class="feature-issue">{{ issue.problem || issue.code }}</p>
|
|
26
|
+
<p v-if="item.errorCode" class="form-error">{{ t('features.error.' + item.errorCode) }}</p>
|
|
27
|
+
<details class="feature-disclosure"><summary>{{ t('features.technicalDetails') }}</summary><pre class="feature-code">{{ JSON.stringify(item.evidence || {}, null, 2) }}</pre></details>
|
|
28
|
+
</article>
|
|
29
|
+
<footer class="feature-record-actions feature-export-actions"><button type="button" class="feature-button feature-quiet" @click="exportDiagnostics('json')">{{ t('features.exportJson') }}</button><button type="button" class="feature-button feature-quiet" @click="exportDiagnostics('md')">{{ t('features.exportMarkdown') }}</button></footer>
|
|
30
|
+
</template>
|
|
31
|
+
</div>
|
|
32
|
+
</details>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<section class="session-features" :aria-label="t('features.title')">
|
|
2
|
+
<header class="feature-toolbar">
|
|
3
|
+
<div class="feature-tabs" role="group" :aria-label="t('features.title')">
|
|
4
|
+
<button type="button" :aria-expanded="featureView === 'bookmarks'" @click="openFeatureView('bookmarks')">{{ t('features.bookmarks') }}</button>
|
|
5
|
+
<button type="button" :aria-expanded="featureView === 'search'" @click="openFeatureView('search')">{{ t('features.index') }}</button>
|
|
6
|
+
<button type="button" :aria-expanded="featureView === 'projects'" @click="openFeatureView('projects')">{{ t('features.projects') }}</button>
|
|
7
|
+
</div>
|
|
8
|
+
<button v-if="selectedContextIds.length" type="button" class="btn-mini" @click="generateSelectedHandoff" :disabled="featureBusy">{{ t('features.generateDraft', { count: selectedContextIds.length }) }}</button>
|
|
9
|
+
</header>
|
|
10
|
+
<p v-if="featureError" class="form-error feature-feedback" role="alert">{{ featureError }}</p>
|
|
11
|
+
<div v-if="featureView === 'search'" class="feature-content">
|
|
12
|
+
<div class="feature-section-heading">
|
|
13
|
+
<h3>{{ t('features.index') }}</h3>
|
|
14
|
+
<div class="feature-actions">
|
|
15
|
+
<button type="button" class="btn-mini" @click="refreshSessionIndex(false)" :disabled="indexReport?.job.status === 'running'">{{ t('features.refreshIndex') }}</button>
|
|
16
|
+
<button type="button" class="btn-mini feature-quiet" @click="refreshSessionIndex(true)" :disabled="indexReport?.job.status === 'running'">{{ t('features.rebuildIndex') }}</button>
|
|
17
|
+
<button v-if="indexReport?.job.status === 'running'" type="button" class="btn-mini" @click="cancelSessionIndex">{{ t('features.cancel') }}</button>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div v-if="indexReport" class="feature-meta" role="status">
|
|
21
|
+
<span class="feature-status" :data-status="indexReport.job.status">{{ t('features.status.' + indexReport.job.status) }}</span>
|
|
22
|
+
<span>{{ t('features.indexStatus', { count: indexReport.indexed, processed: indexReport.job.processed, total: indexReport.job.candidates }) }}</span>
|
|
23
|
+
</div>
|
|
24
|
+
<form class="feature-actions feature-search-form" @submit.prevent="searchSessionIndex">
|
|
25
|
+
<input v-model="indexQuery" :aria-label="t('features.search')" :placeholder="t('features.search')">
|
|
26
|
+
<button class="btn-mini feature-primary" :disabled="featureBusy || !indexQuery.trim() || !indexReport?.updatedAt">{{ t('features.search') }}</button>
|
|
27
|
+
</form>
|
|
28
|
+
<details class="feature-disclosure"><summary>{{ t('features.searchScope') }}</summary><p class="feature-hint">{{ t('features.indexScope') }}</p></details>
|
|
29
|
+
<p v-if="indexReport?.failures.length" class="form-error" role="alert">{{ t('features.indexFailures', { count: indexReport.failures.length }) }}</p>
|
|
30
|
+
<p v-if="featureBusy" class="feature-loading" role="status">{{ t('features.loading') }}</p>
|
|
31
|
+
<template v-if="indexResults">
|
|
32
|
+
<p class="feature-meta">{{ t('features.coverage', { scanned: indexResults.scanned, total: indexResults.candidates }) }}</p>
|
|
33
|
+
<p v-if="!indexResults.complete" class="feature-hint">{{ t('features.partial') }}</p>
|
|
34
|
+
<p v-if="!indexResults.results.length" class="feature-empty">{{ t('features.empty') }}</p>
|
|
35
|
+
<article v-for="result in indexResults.results" :key="result.session.key + result.nodeId" class="feature-record">
|
|
36
|
+
<header class="feature-record-heading"><h4>{{ result.session.title || result.session.sessionId }}</h4><span class="feature-source">{{ result.session.source }}</span></header>
|
|
37
|
+
<small class="feature-path" :title="result.session.cwd">{{ result.session.cwd }}</small>
|
|
38
|
+
<pre class="feature-excerpt">{{ result.snippet }}</pre>
|
|
39
|
+
<div class="feature-record-actions"><button type="button" class="btn-mini" @click="openIndexedMessage(result)">{{ t('features.source') }}</button></div>
|
|
40
|
+
<details class="feature-disclosure"><summary>{{ t('features.context') }}</summary><pre>{{ result.before }}</pre><pre>{{ result.after }}</pre></details>
|
|
41
|
+
</article>
|
|
42
|
+
</template>
|
|
43
|
+
</div>
|
|
44
|
+
<div v-if="featureView === 'projects'" class="feature-content">
|
|
45
|
+
<div class="feature-section-heading"><h3>{{ t('features.projects') }}</h3><small v-if="projectReport" class="feature-meta">{{ t('features.readAt', { time: projectReport.readAt }) }}</small></div>
|
|
46
|
+
<p class="feature-hint">{{ t('features.projectHistory') }}</p>
|
|
47
|
+
<p v-if="featureBusy" class="feature-loading" role="status">{{ t('features.loading') }}</p>
|
|
48
|
+
<template v-if="projectReport">
|
|
49
|
+
<p v-if="projectReport.failures.length" class="form-error">{{ t('features.indexFailures', { count: projectReport.failures.length }) }}</p>
|
|
50
|
+
<div class="feature-project-picker" role="group" :aria-label="t('features.projects')">
|
|
51
|
+
<button v-for="project in projectReport.projects" :key="project.key" type="button" @click="loadProjectWorkspace(project.key)" :disabled="featureBusy" :aria-pressed="projectSelected === project.key && !!projectReport.detail">
|
|
52
|
+
<span class="feature-project-label"><strong>{{ project.cwd.split(/[\\/]/).filter(Boolean).pop() || project.cwd || t('features.unassigned') }}</strong><small class="feature-path" :title="project.cwd">{{ project.cwd || t('features.unassigned') }}</small></span>
|
|
53
|
+
<span class="feature-count">{{ project.sessionCount }}</span>
|
|
54
|
+
</button>
|
|
55
|
+
</div>
|
|
56
|
+
<template v-if="projectReport.detail">
|
|
57
|
+
<div class="feature-section-heading feature-project-heading"><h4 class="feature-path" :title="projectReport.detail.cwd">{{ projectReport.detail.cwd || t('features.unassigned') }}</h4></div>
|
|
58
|
+
<p v-if="projectReport.detail.truncated" class="feature-hint">{{ t('features.partial') }}</p>
|
|
59
|
+
<div class="feature-project-sessions">
|
|
60
|
+
<article v-for="session in projectReport.detail.sessions" :key="session.source + session.sessionId" class="feature-session-row">
|
|
61
|
+
<button type="button" @click="selectSession(session)">{{ session.title || session.sessionId }}</button>
|
|
62
|
+
<small class="feature-meta">{{ session.source }} · {{ session.timestamp }}</small>
|
|
63
|
+
</article>
|
|
64
|
+
</div>
|
|
65
|
+
<details class="feature-disclosure" :open="!!projectReport.detail.bookmarks.length"><summary>{{ t('features.bookmarks') }} <span class="feature-count">{{ projectReport.detail.bookmarks.length }}</span></summary>
|
|
66
|
+
<div class="feature-link-list"><button v-for="item in projectReport.detail.bookmarks" :key="item.id" type="button" @click="locateBookmark(item)">{{ item.note || item.excerpt.slice(0, 80) }}</button></div>
|
|
67
|
+
</details>
|
|
68
|
+
<details class="feature-disclosure"><summary>{{ t('features.prompts') }} <span class="feature-count">{{ projectReport.detail.prompts.length }}</span></summary>
|
|
69
|
+
<div class="feature-link-list"><button v-for="file in projectReport.detail.prompts" :key="file" type="button" @click="openProjectPrompt(file)">{{ file }}</button></div>
|
|
70
|
+
<pre v-if="projectPrompt" class="feature-code">{{ projectPrompt.content }}</pre>
|
|
71
|
+
</details>
|
|
72
|
+
<details class="feature-disclosure"><summary>{{ t('features.handoffs') }} <span class="feature-count">{{ projectReport.detail.handoffs.length }}</span></summary>
|
|
73
|
+
<p v-for="record in projectReport.detail.handoffs" :key="record.source + record.id" class="feature-meta">{{ record.source }} · {{ record.target }} · {{ record.createdAt }} · {{ handoffStatusLabel(record.status) }}</p>
|
|
74
|
+
</details>
|
|
75
|
+
<details v-if="projectSelected" class="feature-disclosure"><summary>{{ t('features.projectMapping') }}</summary><form class="feature-actions feature-search-form" @submit.prevent="mapProjectWorkspace"><input v-model="projectAlias" :aria-label="t('features.projectPath')" :placeholder="t('features.projectPath')"><button class="btn-mini" :disabled="featureBusy">{{ t('features.saveMapping') }}</button></form></details>
|
|
76
|
+
</template>
|
|
77
|
+
</template>
|
|
78
|
+
</div>
|
|
79
|
+
<div v-if="featureView === 'bookmarks'" class="feature-content">
|
|
80
|
+
<div class="feature-section-heading"><h3>{{ t('features.bookmarks') }}</h3><span class="feature-count">{{ bookmarks.length }}</span></div>
|
|
81
|
+
<form @submit.prevent="loadBookmarks">
|
|
82
|
+
<div class="feature-actions feature-search-form"><input v-model="bookmarkQuery" :aria-label="t('features.search')" :placeholder="t('features.search')"><button class="btn-mini feature-primary" :disabled="featureBusy">{{ t('features.search') }}</button></div>
|
|
83
|
+
<details class="feature-disclosure"><summary>{{ t('features.moreFilters') }} <span v-if="bookmarkTag || bookmarkProject" class="feature-count">{{ (bookmarkTag ? 1 : 0) + (bookmarkProject ? 1 : 0) }}</span></summary>
|
|
84
|
+
<div class="feature-filter-fields"><label>{{ t('features.tag') }}<input v-model="bookmarkTag" :aria-label="t('features.tag')"></label><label>{{ t('features.projectPath') }}<input v-model="bookmarkProject" :aria-label="t('features.projectPath')"></label></div>
|
|
85
|
+
</details>
|
|
86
|
+
</form>
|
|
87
|
+
<p v-if="featureBusy" class="feature-loading" role="status">{{ t('features.loading') }}</p>
|
|
88
|
+
<div v-else-if="!bookmarks.length" class="feature-empty"><p>{{ t('features.empty') }}</p></div>
|
|
89
|
+
<article v-for="item in bookmarks" :key="item.id" class="feature-record">
|
|
90
|
+
<header class="feature-record-heading"><span class="feature-source">{{ item.source }}</span><small class="feature-meta">{{ item.updatedAt }}</small></header>
|
|
91
|
+
<small class="feature-path" :title="item.cwd">{{ item.cwd }}</small>
|
|
92
|
+
<pre class="feature-excerpt">{{ item.excerpt }}</pre>
|
|
93
|
+
<p v-if="item.note" class="feature-note">{{ item.note }}</p>
|
|
94
|
+
<div v-if="item.tags.length" class="feature-tags"><span v-for="tag in item.tags" :key="tag" class="feature-tag">{{ tag }}</span></div>
|
|
95
|
+
<div class="feature-record-actions">
|
|
96
|
+
<button type="button" class="btn-mini" @click="locateBookmark(item)" :disabled="featureBusy">{{ t('features.source') }}</button>
|
|
97
|
+
<button type="button" class="btn-mini feature-quiet" @click="bookmarkEditor = { ...item, tagsText: item.tags.join(', ') }" :disabled="featureBusy">{{ t('features.edit') }}</button>
|
|
98
|
+
<button type="button" class="btn-mini feature-quiet" @click="removeBookmark(item)" :disabled="featureBusy">{{ t('features.unbookmark') }}</button>
|
|
99
|
+
</div>
|
|
100
|
+
</article>
|
|
101
|
+
<form v-if="bookmarkEditor" @submit.prevent="saveBookmark" class="feature-editor">
|
|
102
|
+
<label>{{ t('features.note') }}<textarea v-model="bookmarkEditor.note" maxlength="4000"></textarea></label>
|
|
103
|
+
<label>{{ t('features.tags') }}<input v-model="bookmarkEditor.tagsText"></label>
|
|
104
|
+
<div class="feature-actions"><button class="btn-mini feature-primary" :disabled="featureBusy">{{ t('features.save') }}</button><button type="button" class="btn-mini feature-quiet" @click="bookmarkEditor = null" :disabled="featureBusy">{{ t('features.cancel') }}</button></div>
|
|
105
|
+
</form>
|
|
106
|
+
</div>
|
|
107
|
+
</section>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<summary class="thread-handoff-summary"><span>会话交接</span><span class="thread-handoff-summary-hint">{{ handoffExpanded ? '收起' : '填写交接 · 查看历史' }}</span></summary>
|
|
3
3
|
<div v-if="handoffExpanded" class="thread-handoff-body">
|
|
4
4
|
<div class="session-workspace-header session-workspace-card-wide">
|
|
5
|
-
<p class="session-workspace-subtitle"
|
|
5
|
+
<p class="session-workspace-subtitle">草稿在切换会话后保留,刷新后清空。</p>
|
|
6
6
|
<button class="btn-mini" type="button" @click="loadThreadHandoffs" :disabled="handoffLoading || handoffBusy">{{ handoffLoading ? '刷新中…' : '刷新历史' }}</button>
|
|
7
7
|
</div>
|
|
8
8
|
<form @submit.prevent="createThreadHandoff" class="thread-handoff-form">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<textarea v-model="handoffDraft.goal" class="session-query-input" rows="3" required :disabled="handoffBusy" placeholder="描述下一步任务、预期结果或验收标准"></textarea>
|
|
16
16
|
</label>
|
|
17
17
|
<details class="thread-handoff-optional">
|
|
18
|
-
<summary class="thread-handoff-optional-summary"
|
|
18
|
+
<summary class="thread-handoff-optional-summary">补充上下文</summary>
|
|
19
19
|
<div class="session-workspace-grid">
|
|
20
20
|
<label v-for="field in handoffFields" :key="field.key" class="thread-handoff-field">
|
|
21
21
|
<span class="session-workspace-card-title">{{ field.label }}(可选)</span>
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
</details>
|
|
26
26
|
<div class="thread-handoff-actions">
|
|
27
|
-
<span class="session-workspace-subtitle">生成后可复制到目标会话</span>
|
|
28
27
|
<button class="btn-mini thread-handoff-submit" type="submit" :disabled="handoffBusy || handoffLoading || !handoffDraft.target.trim() || !handoffDraft.goal.trim()">{{ handoffBusy ? '处理中…' : '生成交接' }}</button>
|
|
29
28
|
</div>
|
|
30
29
|
</form>
|
|
@@ -35,6 +34,10 @@
|
|
|
35
34
|
<textarea class="session-query-input" rows="6" readonly :value="handoffCopyText" @focus="$event.target.select()"></textarea>
|
|
36
35
|
</label>
|
|
37
36
|
<p class="session-workspace-subtitle session-workspace-card-wide">复制不会自动发送。读取确认由目标代理通过 CLI ack 提交。</p>
|
|
37
|
+
<div class="feature-actions"><button type="button" class="btn-mini" @click="generateSelectedHandoff" :disabled="featureBusy || !selectedContextIds.length">{{ t('features.generateDraft', { count: selectedContextIds.length }) }}</button></div>
|
|
38
|
+
<p v-if="handoffDraftEvidence.length">{{ t('features.draftReview') }}</p>
|
|
39
|
+
<details v-if="handoffUnverified.length"><summary>{{ t('features.unverified', { count: handoffUnverified.length }) }}</summary><pre v-for="(text, index) in handoffUnverified" :key="index">{{ text }}</pre></details>
|
|
40
|
+
<ul v-if="handoffDraftEvidence.length"><li v-for="item in handoffDraftEvidence" :key="item.nodeId"><button type="button" class="btn-mini" @click="locateDraftEvidence(item)">{{ item.nodeId }} · {{ t('features.evidence.' + item.status) }}</button></li></ul>
|
|
38
41
|
<p v-if="handoffLoading" class="session-workspace-card-wide" role="status">正在加载交接历史…</p>
|
|
39
42
|
<p v-else-if="!handoffError && !handoffRecords.length" class="session-workspace-empty session-workspace-card-wide">暂无交接记录</p>
|
|
40
43
|
<ol v-if="handoffRecords.length" class="session-workspace-list session-workspace-card-wide">
|