codexmate 0.1.31 → 0.1.33

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 (92) hide show
  1. package/README.md +8 -3
  2. package/README.vi.md +8 -3
  3. package/README.zh.md +8 -3
  4. package/cli/agents-files.js +18 -4
  5. package/cli/claude-proxy.js +2 -2
  6. package/cli/plugin-config.js +64 -0
  7. package/cli/prompt-history.js +19 -4
  8. package/cli/system-prompt-files.js +7 -2
  9. package/cli.js +200 -214
  10. package/lib/cli-config-engine.js +15 -4
  11. package/lib/cli-file-utils.js +6 -1
  12. package/lib/config-change-fs.js +132 -0
  13. package/lib/config-changes.js +293 -0
  14. package/lib/handoff-mcp.js +18 -2
  15. package/lib/local-feature-store.js +39 -0
  16. package/lib/session-bookmarks.js +72 -0
  17. package/lib/session-context-health.js +102 -0
  18. package/lib/session-context-records.js +153 -0
  19. package/lib/session-diagnostics.js +75 -0
  20. package/lib/session-feature-settings.js +21 -0
  21. package/lib/session-features.js +63 -0
  22. package/lib/session-handoff-draft.js +43 -0
  23. package/lib/session-projects.js +76 -0
  24. package/lib/session-search-index.js +188 -0
  25. package/lib/thread-handoff.js +8 -0
  26. package/lib/web-server.js +216 -0
  27. package/lib/web-startup-auth.js +5 -1
  28. package/package.json +1 -1
  29. package/plugins/prompt-templates/computed.mjs +3 -3
  30. package/plugins/prompt-templates/invocation.mjs +73 -0
  31. package/plugins/prompt-templates/methods.mjs +48 -3
  32. package/plugins/prompt-templates/overview.mjs +2 -0
  33. package/web-ui/app.js +32 -1
  34. package/web-ui/index.html +2 -0
  35. package/web-ui/logic.context-health.mjs +144 -0
  36. package/web-ui/logic.context-window.mjs +15 -0
  37. package/web-ui/modules/api.mjs +72 -39
  38. package/web-ui/modules/app.computed.prompts.mjs +11 -0
  39. package/web-ui/modules/app.methods.agents.mjs +25 -3
  40. package/web-ui/modules/app.methods.claude-config.mjs +2 -0
  41. package/web-ui/modules/app.methods.codex-config.mjs +9 -0
  42. package/web-ui/modules/app.methods.config-changes.mjs +124 -0
  43. package/web-ui/modules/app.methods.index.mjs +4 -0
  44. package/web-ui/modules/app.methods.kilocode-config.mjs +2 -0
  45. package/web-ui/modules/app.methods.openclaw-persist.mjs +2 -0
  46. package/web-ui/modules/app.methods.opencode-config.mjs +2 -0
  47. package/web-ui/modules/app.methods.pi-config.mjs +12 -3
  48. package/web-ui/modules/app.methods.provider-cache.mjs +9 -3
  49. package/web-ui/modules/app.methods.providers.mjs +6 -0
  50. package/web-ui/modules/app.methods.startup-claude.mjs +8 -47
  51. package/web-ui/modules/app.methods.system-prompt.mjs +17 -2
  52. package/web-ui/modules/config-change-actions.mjs +9 -0
  53. package/web-ui/modules/context-health.methods.mjs +70 -0
  54. package/web-ui/modules/i18n/locales/en.mjs +164 -4
  55. package/web-ui/modules/i18n/locales/ja.mjs +164 -4
  56. package/web-ui/modules/i18n/locales/vi.mjs +164 -4
  57. package/web-ui/modules/i18n/locales/zh-tw.mjs +164 -4
  58. package/web-ui/modules/i18n/locales/zh.mjs +164 -4
  59. package/web-ui/modules/plugins.methods.mjs +2 -0
  60. package/web-ui/modules/prompt-ecosystem.methods.mjs +136 -0
  61. package/web-ui/modules/request-deadline.mjs +33 -0
  62. package/web-ui/modules/session-features.mjs +279 -0
  63. package/web-ui/modules/thread-handoff.mjs +1 -1
  64. package/web-ui/partials/index/config-changes.html +25 -0
  65. package/web-ui/partials/index/context-health.html +45 -0
  66. package/web-ui/partials/index/context-window-reference.html +17 -0
  67. package/web-ui/partials/index/layout-header.html +7 -30
  68. package/web-ui/partials/index/modal-openclaw-config.html +0 -2
  69. package/web-ui/partials/index/modal-prompt-invocation.html +17 -0
  70. package/web-ui/partials/index/modal-skills.html +0 -1
  71. package/web-ui/partials/index/modals-basic.html +0 -8
  72. package/web-ui/partials/index/modals-pi-provider.html +0 -1
  73. package/web-ui/partials/index/panel-config-codex.html +0 -3
  74. package/web-ui/partials/index/panel-config-openclaw.html +16 -13
  75. package/web-ui/partials/index/panel-dashboard.html +0 -2
  76. package/web-ui/partials/index/panel-plugins.html +37 -10
  77. package/web-ui/partials/index/panel-prompts.html +18 -3
  78. package/web-ui/partials/index/panel-sessions.html +23 -11
  79. package/web-ui/partials/index/panel-settings.html +1 -12
  80. package/web-ui/partials/index/panel-trash.html +0 -1
  81. package/web-ui/partials/index/session-diagnostics.html +29 -0
  82. package/web-ui/partials/index/session-features.html +107 -0
  83. package/web-ui/partials/index/thread-handoff.html +6 -3
  84. package/web-ui/res/web-ui-render.precompiled.js +1863 -271
  85. package/web-ui/styles/config-changes.css +30 -0
  86. package/web-ui/styles/context-health.css +107 -0
  87. package/web-ui/styles/openclaw-structured.css +205 -189
  88. package/web-ui/styles/prompts-editor.css +23 -0
  89. package/web-ui/styles/session-features.css +148 -0
  90. package/web-ui/styles/sessions-preview.css +21 -0
  91. package/web-ui/styles/sub-tabs.css +181 -0
  92. package/web-ui/styles.css +5 -1
@@ -141,33 +141,26 @@
141
141
  <div class="project-announcement-header">
142
142
  <div class="project-announcement-eyebrow">{{ t('announcement.project.eyebrow') }}</div>
143
143
  <div class="modal-title project-announcement-title" id="provider-cache-announcement-title">{{ t('announcement.project.title') }}</div>
144
- <p class="provider-cache-announcement-copy provider-cache-announcement-lede">{{ t('announcement.project.subtitle') }}</p>
145
144
  </div>
146
145
 
147
146
  <div class="project-announcement-feature-grid" :aria-label="t('announcement.project.features.aria')">
148
147
  <article class="project-announcement-feature-card">
149
148
  <div class="project-announcement-feature-title">{{ t('announcement.project.feature.config.title') }}</div>
150
- <div class="project-announcement-feature-meta">{{ t('announcement.project.feature.config.meta') }}</div>
151
149
  </article>
152
150
  <article class="project-announcement-feature-card">
153
151
  <div class="project-announcement-feature-title">{{ t('announcement.project.feature.sessions.title') }}</div>
154
- <div class="project-announcement-feature-meta">{{ t('announcement.project.feature.sessions.meta') }}</div>
155
152
  </article>
156
153
  <article class="project-announcement-feature-card">
157
154
  <div class="project-announcement-feature-title">{{ t('announcement.project.feature.usage.title') }}</div>
158
- <div class="project-announcement-feature-meta">{{ t('announcement.project.feature.usage.meta') }}</div>
159
155
  </article>
160
156
  <article class="project-announcement-feature-card">
161
157
  <div class="project-announcement-feature-title">{{ t('announcement.project.feature.tasks.title') }}</div>
162
- <div class="project-announcement-feature-meta">{{ t('announcement.project.feature.tasks.meta') }}</div>
163
158
  </article>
164
159
  <article class="project-announcement-feature-card">
165
160
  <div class="project-announcement-feature-title">{{ t('announcement.project.feature.skills.title') }}</div>
166
- <div class="project-announcement-feature-meta">{{ t('announcement.project.feature.skills.meta') }}</div>
167
161
  </article>
168
162
  <article class="project-announcement-feature-card">
169
163
  <div class="project-announcement-feature-title">{{ t('announcement.project.feature.data.title') }}</div>
170
- <div class="project-announcement-feature-meta">{{ t('announcement.project.feature.data.meta') }}</div>
171
164
  </article>
172
165
  </div>
173
166
 
@@ -175,7 +168,6 @@
175
168
  <summary class="project-announcement-section-head">
176
169
  <span>
177
170
  <span class="project-announcement-section-title" id="project-announcement-cache-title">{{ t('announcement.project.cache.title') }}</span>
178
- <span class="project-announcement-section-meta">{{ t('announcement.project.cache.meta') }}</span>
179
171
  </span>
180
172
  <span v-if="getProviderCacheAnnouncementSummary().loadedAt" class="provider-cache-loaded-at">{{ t('modal.providerCache.loadedAt') }}: {{ getProviderCacheAnnouncementSummary().loadedAt }}</span>
181
173
  </summary>
@@ -2,7 +2,6 @@
2
2
  <div v-if="showAddPiProviderModal && !editingPiProvider" class="modal-overlay" @click.self="cancelAddPiProviderModal">
3
3
  <div class="modal modal-wide" role="dialog" aria-modal="true" aria-labelledby="pi-provider-picker-modal-title">
4
4
  <div class="modal-title" id="pi-provider-picker-modal-title">{{ t('pi.providers.addModal.title') }}</div>
5
- <div class="config-template-hint">{{ t('pi.providers.addModal.subtitle') }}</div>
6
5
  <div class="pi-picker">
7
6
  <input class="form-input" type="text" v-model="piProviderPickerQuery" autocomplete="off" spellcheck="false" :placeholder="t('pi.picker.searchPlaceholder')">
8
7
  <div class="pi-picker-group" v-for="group in piProviderTemplateGroups()" :key="group.id">
@@ -103,7 +103,6 @@
103
103
  <option value="low">low</option>
104
104
  <option value="xhigh">xhigh</option>
105
105
  </select>
106
- <div class="config-template-hint">{{ t('config.reasoningEffort.hint') }}</div>
107
106
  </div>
108
107
  </div>
109
108
 
@@ -118,12 +117,10 @@
118
117
  <div class="form-group codex-config-field">
119
118
  <label class="form-label" for="codex-model-context-window">model_context_window</label>
120
119
  <input id="codex-model-context-window" v-model="modelContextWindowInput" class="form-input" inputmode="numeric" autocomplete="off" :placeholder="t('config.example', { value: 190000 })" @focus="editingCodexBudgetField = 'modelContextWindowInput'" @input="sanitizePositiveIntegerDraft('modelContextWindowInput')" @blur="onModelContextWindowBlur" @keydown.enter.prevent="onModelContextWindowBlur">
121
- <div class="form-hint">{{ t('config.contextWindow.hint') }}</div>
122
120
  </div>
123
121
  <div class="form-group codex-config-field">
124
122
  <label class="form-label" for="codex-model-auto-compact-token-limit">model_auto_compact_token_limit</label>
125
123
  <input id="codex-model-auto-compact-token-limit" v-model="modelAutoCompactTokenLimitInput" class="form-input" inputmode="numeric" autocomplete="off" :placeholder="t('config.example', { value: 185000 })" @focus="editingCodexBudgetField = 'modelAutoCompactTokenLimitInput'" @input="sanitizePositiveIntegerDraft('modelAutoCompactTokenLimitInput')" @blur="onModelAutoCompactTokenLimitBlur" @keydown.enter.prevent="onModelAutoCompactTokenLimitBlur">
126
- <div class="form-hint">{{ t('config.autoCompact.hint') }}</div>
127
124
  </div>
128
125
  </div>
129
126
  </div>
@@ -28,14 +28,10 @@
28
28
  </label>
29
29
  </section>
30
30
 
31
- <section class="settings-card settings-card--wide openclaw-summary-card" aria-label="OpenClaw 当前摘要">
31
+ <section class="settings-card settings-card--wide openclaw-summary-card" aria-labelledby="openclaw-summary-title">
32
32
  <div class="settings-card-body">
33
33
  <div class="openclaw-summary-header">
34
- <div>
35
- <div class="summary-eyebrow">OPENCLAW</div>
36
- <div class="summary-title">配置与本地诊断</div>
37
- </div>
38
- <div class="summary-note">配置摘要</div>
34
+ <h2 class="summary-title" id="openclaw-summary-title">{{ t('tab.config.openclaw') }}</h2>
39
35
  </div>
40
36
  <div class="openclaw-summary-grid">
41
37
  <div v-for="item in getOpenclawStatusSummaryItems()" :key="item.key" :class="['openclaw-summary-item', item.tone || '']">
@@ -51,16 +47,20 @@
51
47
 
52
48
  <div class="tool-config-write-scope" :class="{ locked: !isToolConfigWriteAllowed('openclaw') }">
53
49
  <div class="tool-config-write-body">
54
- <section class="settings-card settings-card--wide openclaw-workspace-card">
50
+ <section class="settings-card settings-card--wide openclaw-workspace-card" aria-labelledby="openclaw-workspace-title">
55
51
  <div class="settings-card-body">
52
+ <h3 class="openclaw-section-title" id="openclaw-workspace-title">{{ t('openclaw.workspaceFile') }}</h3>
56
53
  <div class="openclaw-tools-grid">
57
54
  <button class="openclaw-tool-btn" @click="openOpenclawAgentsEditor" :disabled="loading || !!initError || agentsLoading || !isToolConfigWriteAllowed('openclaw')">
58
- <div class="tool-icon">📄</div>
55
+ <svg class="tool-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true">
56
+ <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
57
+ <path d="M14 2v6h6M8 13h8M8 17h6"/>
58
+ </svg>
59
59
  <div class="tool-content">
60
60
  <div class="tool-title">AGENTS.md</div>
61
- <div class="tool-meta">{{ agentsLoading ? t('config.modelLoading') : 'Workspace file' }}</div>
61
+ <div v-if="agentsLoading" class="tool-meta">{{ t('config.modelLoading') }}</div>
62
62
  </div>
63
- <svg class="tool-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
63
+ <svg class="tool-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
64
64
  <path d="M9 18l6-6-6-6"/>
65
65
  </svg>
66
66
  </button>
@@ -72,12 +72,14 @@
72
72
  class="openclaw-tool-btn"
73
73
  @click="openOpenclawQuickWorkspaceFile(fileName)"
74
74
  :disabled="loading || !!initError || agentsLoading || !isToolConfigWriteAllowed('openclaw')">
75
- <div class="tool-icon">📄</div>
75
+ <svg class="tool-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true">
76
+ <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
77
+ <path d="M14 2v6h6M8 13h8M8 17h6"/>
78
+ </svg>
76
79
  <div class="tool-content">
77
80
  <div class="tool-title">{{ fileName }}</div>
78
- <div class="tool-meta">Workspace file</div>
79
81
  </div>
80
- <svg class="tool-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
82
+ <svg class="tool-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
81
83
  <path d="M9 18l6-6-6-6"/>
82
84
  </svg>
83
85
  </button>
@@ -87,6 +89,7 @@
87
89
 
88
90
  <section class="settings-card settings-card--wide openclaw-configs-card" aria-labelledby="openclaw-configs-title">
89
91
  <div class="settings-card-body">
92
+ <h3 class="openclaw-section-title" id="openclaw-configs-title">{{ t('tab.config') }}</h3>
90
93
  <div class="card-list openclaw-card-list">
91
94
  <div v-for="(config, name) in openclawConfigs" :key="name"
92
95
  :class="['card', { active: currentOpenclawConfig === name, disabled: !isToolConfigWriteAllowed('openclaw') }]"
@@ -8,7 +8,6 @@
8
8
  <header class="workflow-header">
9
9
  <div>
10
10
  <h2 class="workflow-title">{{ t('workflow.title') }}</h2>
11
- <p class="workflow-description">{{ t('workflow.tagline') }}</p>
12
11
  </div>
13
12
  <button type="button" class="btn-tool btn-tool-compact workflow-refresh" @click="refreshWorkflowRuns" :disabled="workflowBusy">{{ t('workflow.refresh') }}</button>
14
13
  </header>
@@ -39,7 +38,6 @@
39
38
  <summary class="workflow-history-title">{{ t('workflow.runs') }} <span class="workflow-count">{{ workflowRuns.length }}</span></summary>
40
39
  <div v-if="!workflowRuns.length" class="workflow-empty">
41
40
  <p>{{ t('workflow.empty') }}</p>
42
- <p class="form-hint">{{ t('workflow.emptyHint') }}</p>
43
41
  </div>
44
42
  <article v-for="run in workflowRuns" :key="run.id" class="workflow-run">
45
43
  <div class="workflow-run-header">
@@ -99,8 +99,8 @@
99
99
  <div v-if="promptComposerMissingVars.length" class="plugins-panel-note">{{ t('plugins.promptTemplates.compose.missingCount', { count: promptComposerMissingVars.length }) }}</div>
100
100
  </div>
101
101
  <div class="prompt-editor-actions">
102
- <button v-if="promptComposerMissingVars.length" type="button" class="btn-mini" @click="focusPromptComposerFirstMissingVar" :disabled="pluginsLoading">{{ t('plugins.promptTemplates.compose.jumpToMissing') }}</button>
103
- <button type="button" class="btn-mini" @click="resetPromptComposerVarValues" :disabled="pluginsLoading">{{ t('plugins.promptTemplates.vars.reset') }}</button>
102
+ <button v-if="promptComposerMissingVars.length" type="button" class="btn-mini" @click="focusPromptComposerFirstMissingVar" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.compose.jumpToMissing') }}</button>
103
+ <button type="button" class="btn-mini" @click="resetPromptComposerVarValues" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.vars.reset') }}</button>
104
104
  </div>
105
105
  </div>
106
106
  <div class="prompt-vars-grid">
@@ -139,9 +139,9 @@
139
139
  v-model.trim="promptTemplatesKeyword"
140
140
  :aria-label="t('plugins.promptTemplates.manage.searchAria')"
141
141
  :placeholder="t('plugins.promptTemplates.manage.searchPlaceholder')">
142
- <button type="button" class="btn-mini" @click="createPromptTemplate" :disabled="pluginsLoading">{{ t('plugins.promptTemplates.manage.create') }}</button>
142
+ <button type="button" class="btn-mini" @click="createPromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.manage.create') }}</button>
143
143
  <button type="button" class="btn-mini" @click="exportPromptTemplates" :disabled="pluginsLoading || !promptTemplatesList.length">{{ t('plugins.promptTemplates.manage.export') }}</button>
144
- <button type="button" class="btn-mini" @click="triggerPromptTemplatesImport" :disabled="pluginsLoading">{{ t('plugins.promptTemplates.manage.import') }}</button>
144
+ <button type="button" class="btn-mini" @click="triggerPromptTemplatesImport" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.manage.import') }}</button>
145
145
  </div>
146
146
 
147
147
  <div v-if="pluginsLoading && !promptTemplatesLoadedOnce" class="skills-empty-state">{{ t('plugins.promptTemplates.manage.loading') }}</div>
@@ -168,15 +168,43 @@
168
168
  </div>
169
169
 
170
170
  <div class="prompt-templates-pane prompt-templates-pane-editor">
171
+ <div class="prompt-editor-actions">
172
+ <button type="button" class="btn-mini" @click="openPluginHistory" :disabled="pluginsLoading || pluginConfigSaving || pluginHistoryLoading">{{ t('common.history') }}</button>
173
+ <button type="button" class="btn-mini" @click="sharePromptTemplate" :disabled="pluginsLoading || pluginConfigSaving || !promptTemplateDraft">{{ t('ecosystem.share') }}</button>
174
+ </div>
175
+ <details v-if="pluginHistoryVisible" class="prompt-history-panel" open>
176
+ <summary class="prompt-history-summary">
177
+ <span>{{ t('common.history') }}</span>
178
+ <button type="button" class="btn-mini" @click="pluginHistoryVisible = false; pluginHistorySelectedId = ''" :aria-label="t('common.close')">×</button>
179
+ </summary>
180
+ <div class="prompt-history-body">
181
+ <div class="prompt-history-list" role="group" :aria-label="t('common.history')">
182
+ <button v-for="item in pluginHistoryItems" :key="item.id" type="button" :class="['btn-mini', { active: pluginHistorySelectedId === item.id }]" :aria-pressed="pluginHistorySelectedId === item.id" :disabled="pluginHistoryLoading || pluginConfigSaving" @click="viewPluginHistory(item)">{{ item.id }}</button>
183
+ </div>
184
+ <p v-if="pluginHistoryLoading" class="state-message">{{ t('diff.generating') }}</p>
185
+ <p v-else-if="pluginHistoryError" class="state-message error" role="alert">{{ pluginHistoryError }}</p>
186
+ <p v-else-if="!pluginHistoryItems.length" class="state-message">{{ t('toast.history.empty') }}</p>
187
+ <template v-if="pluginHistorySelectedId && !pluginHistoryLoading && !pluginHistoryError">
188
+ <div class="form-hint">{{ t('ecosystem.historyCompare') }} · +{{ pluginHistoryComparison.stats.added }} / −{{ pluginHistoryComparison.stats.removed }}</div>
189
+ <div class="agents-diff-view prompt-history-diff" role="region" :aria-label="t('ecosystem.historyCompare')" tabindex="0">
190
+ <div v-for="(line, index) in pluginHistoryComparison.lines" :key="index" :class="['agents-diff-line', line.type]">
191
+ <span class="agents-diff-line-sign">{{ line.type === 'add' ? '+' : (line.type === 'del' ? '−' : ' ') }}</span>
192
+ <span class="agents-diff-line-text">{{ line.value }}</span>
193
+ </div>
194
+ </div>
195
+ <button type="button" class="btn-mini btn-confirm-mini" @click="rollbackPluginConfig" :disabled="pluginConfigSaving || pluginHistoryLoading">{{ t('ecosystem.rollback') }}</button>
196
+ </template>
197
+ </div>
198
+ </details>
171
199
  <div v-if="!promptTemplateDraft" class="skills-empty-state">{{ t('plugins.promptTemplates.editor.selectHint') }}</div>
172
200
  <template v-else>
173
201
  <div class="prompt-editor-head">
174
202
  <div class="prompt-editor-title-row">
175
203
  <input class="form-input prompt-editor-name" type="text" v-model.trim="promptTemplateDraftRaw.name" :disabled="promptTemplateDraft.isBuiltin" :placeholder="t('plugins.promptTemplates.editor.namePlaceholder')" :aria-label="t('plugins.promptTemplates.editor.nameAria')">
176
204
  <div v-if="!promptTemplateDraft.isBuiltin" class="prompt-editor-actions">
177
- <button type="button" class="btn-mini" @click="duplicatePromptTemplate" :disabled="pluginsLoading">{{ t('plugins.promptTemplates.editor.duplicate') }}</button>
178
- <button type="button" class="btn-mini delete" @click="deletePromptTemplate" :disabled="pluginsLoading">{{ t('plugins.promptTemplates.editor.delete') }}</button>
179
- <button type="button" class="btn-mini" @click="savePromptTemplate" :disabled="pluginsLoading">{{ t('plugins.promptTemplates.editor.save') }}</button>
205
+ <button type="button" class="btn-mini" @click="duplicatePromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.editor.duplicate') }}</button>
206
+ <button type="button" class="btn-mini delete" @click="deletePromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.editor.delete') }}</button>
207
+ <button type="button" class="btn-mini" @click="savePromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.editor.save') }}</button>
180
208
  </div>
181
209
  </div>
182
210
  <div v-if="promptTemplateDraft.isBuiltin" class="plugins-panel-note">
@@ -203,10 +231,9 @@
203
231
  <div class="prompt-vars-head">
204
232
  <div>
205
233
  <div class="prompt-vars-title">{{ t('plugins.promptTemplates.vars.title') }}</div>
206
- <div class="plugins-panel-note">{{ t('plugins.promptTemplates.vars.hint') }}</div>
207
234
  </div>
208
235
  <div v-if="!promptTemplateDraft.isBuiltin" class="prompt-editor-actions">
209
- <button type="button" class="btn-mini" @click="resetPromptVariableValues" :disabled="pluginsLoading">{{ t('plugins.promptTemplates.vars.reset') }}</button>
236
+ <button type="button" class="btn-mini" @click="resetPromptVariableValues" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.vars.reset') }}</button>
210
237
  </div>
211
238
  </div>
212
239
 
@@ -225,7 +252,7 @@
225
252
  <div class="prompt-vars-title">{{ t('plugins.promptTemplates.preview.title') }}</div>
226
253
  <div class="plugins-panel-note">{{ t('plugins.promptTemplates.preview.hint') }}</div>
227
254
  </div>
228
- <button type="button" class="btn-mini" @click="copyRenderedPrompt" :disabled="pluginsLoading">{{ t('plugins.promptTemplates.preview.copy') }}</button>
255
+ <button type="button" class="btn-mini" @click="copyRenderedPrompt" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.preview.copy') }}</button>
229
256
  </div>
230
257
  <textarea class="form-input prompt-preview-textarea" :value="renderedPrompt" rows="10" readonly spellcheck="false" :aria-label="t('plugins.promptTemplates.preview.outputAria')"></textarea>
231
258
  </div>
@@ -118,8 +118,16 @@
118
118
  <div v-if="promptHistoryLoading" class="state-message">{{ t('diff.generating') }}</div>
119
119
  <div v-else-if="promptHistoryError" class="state-message error">{{ promptHistoryError }}</div>
120
120
  <div v-else-if="!promptHistoryItems.length" class="state-message">{{ t('toast.history.empty') }}</div>
121
- <div v-if="promptHistoryPreviewContent" class="prompt-history-preview-wrap">
121
+ <div v-if="promptHistoryPreviewId && !promptHistoryLoading && !promptHistoryError" class="prompt-history-preview-wrap">
122
122
  <pre class="prompt-history-preview">{{ promptHistoryPreviewContent }}</pre>
123
+ <div class="form-hint">{{ t('ecosystem.historyCompare') }} · +{{ promptHistoryComparison.stats.added }} / −{{ promptHistoryComparison.stats.removed }}</div>
124
+ <div class="agents-diff-view prompt-history-diff" role="region" :aria-label="t('ecosystem.historyCompare')" tabindex="0">
125
+ <div v-for="(line, index) in promptHistoryComparison.lines" :key="index" :class="['agents-diff-line', line.type]">
126
+ <span class="agents-diff-line-sign">{{ line.type === 'add' ? '+' : (line.type === 'del' ? '−' : ' ') }}</span>
127
+ <span class="agents-diff-line-text">{{ line.value }}</span>
128
+ </div>
129
+ </div>
130
+ <button type="button" class="btn-mini btn-confirm-mini" @click="rollbackPromptHistory('agents')" :disabled="agentsSaving || promptHistoryLoading || agentsDiffVisible">{{ t('ecosystem.rollback') }}</button>
123
131
  <button type="button" class="btn-mini btn-confirm-mini" @click="applyPromptHistoryToEditor" :disabled="agentsSaving || agentsDiffVisible">{{ t('common.restoreToEditor') }}</button>
124
132
  </div>
125
133
  </div>
@@ -157,7 +165,6 @@
157
165
  <details class="prompt-presets-panel">
158
166
  <summary class="prompt-presets-summary">
159
167
  <span>{{ t('prompts.presets.title') }}</span>
160
- <small>{{ t('prompts.presets.hint') }}</small>
161
168
  </summary>
162
169
  <div class="form-group prompt-presets-body">
163
170
  <div class="editor-frame prompt-presets-frame">
@@ -347,8 +354,16 @@
347
354
  <div v-if="sysHistoryLoading" class="state-message">{{ t('diff.generating') }}</div>
348
355
  <div v-else-if="sysHistoryError" class="state-message error">{{ sysHistoryError }}</div>
349
356
  <div v-else-if="!sysHistoryItems.length" class="state-message">{{ t('toast.history.empty') }}</div>
350
- <div v-if="sysHistoryPreviewContent" class="prompt-history-preview-wrap">
357
+ <div v-if="sysHistoryPreviewId && !sysHistoryLoading && !sysHistoryError" class="prompt-history-preview-wrap">
351
358
  <pre class="prompt-history-preview">{{ sysHistoryPreviewContent }}</pre>
359
+ <div class="form-hint">{{ t('ecosystem.historyCompare') }} · +{{ sysHistoryComparison.stats.added }} / −{{ sysHistoryComparison.stats.removed }}</div>
360
+ <div class="agents-diff-view prompt-history-diff" role="region" :aria-label="t('ecosystem.historyCompare')" tabindex="0">
361
+ <div v-for="(line, index) in sysHistoryComparison.lines" :key="index" :class="['agents-diff-line', line.type]">
362
+ <span class="agents-diff-line-sign">{{ line.type === 'add' ? '+' : (line.type === 'del' ? '−' : ' ') }}</span>
363
+ <span class="agents-diff-line-text">{{ line.value }}</span>
364
+ </div>
365
+ </div>
366
+ <button type="button" class="btn-mini btn-confirm-mini" @click="rollbackPromptHistory('sys')" :disabled="sysPromptSaving || sysHistoryLoading || sysPromptDiffVisible">{{ t('ecosystem.rollback') }}</button>
352
367
  <button type="button" class="btn-mini btn-confirm-mini" @click="applySysHistoryToEditor" :disabled="sysPromptSaving || sysPromptDiffVisible">{{ t('common.restoreToEditor') }}</button>
353
368
  </div>
354
369
  </div>
@@ -17,10 +17,13 @@
17
17
  {{ sessionStandaloneTitle }}
18
18
  <span v-if="sessionStandaloneSourceLabel"> · {{ sessionStandaloneSourceLabel }}</span>
19
19
  </div>
20
+ <!-- @include ./context-health.html -->
21
+ <!-- @include ./context-window-reference.html -->
20
22
  <pre class="session-standalone-text">{{ sessionStandaloneText }}</pre>
21
23
  </div>
22
24
  </div>
23
25
  <div v-else>
26
+ <!-- @include ./session-features.html -->
24
27
  <div class="selector-section session-selector-section">
25
28
  <div class="selector-header" style="display:none">
26
29
  <span class="selector-title">{{ t('sessions.sourceTitle') }}</span>
@@ -254,11 +257,11 @@
254
257
  </div>
255
258
  <div class="session-actions session-preview-actions">
256
259
  <div class="session-secondary-actions">
257
- <button class="btn-session-refresh has-label session-action-optional-label" @click="loadActiveSessionDetail" :disabled="sessionDetailLoading || !activeSession"
260
+ <button class="btn-session-refresh has-label session-action-optional-label" data-icon-only="true" @click="loadActiveSessionDetail" :disabled="sessionDetailLoading || !activeSession"
258
261
  :title="sessionDetailLoading ? t('sessions.preview.loading') : t('sessions.preview.refresh')"
259
262
  :aria-label="sessionDetailLoading ? t('sessions.preview.loading') : t('sessions.preview.refresh')">
260
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 8a5.5 5.5 0 0 1 9.4-3.8"/><path d="M13.5 8a5.5 5.5 0 0 1-9.4 3.8"/><polyline points="2.5 2 2.5 5 5.5 5"/><polyline points="13.5 14 13.5 11 10.5 11"/></svg>
261
- <span class="session-action-label session-action-optional-text">{{ t('sessions.preview.refresh') }}</span>
263
+ <svg aria-hidden="true" focusable="false" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 8a5.5 5.5 0 0 1 9.4-3.8"/><path d="M13.5 8a5.5 5.5 0 0 1-9.4 3.8"/><polyline points="2.5 2 2.5 5 5.5 5"/><polyline points="13.5 14 13.5 11 10.5 11"/></svg>
264
+ <span class="session-action-label session-action-optional-text" hidden aria-hidden="true">{{ t('sessions.preview.refresh') }}</span>
262
265
  </button>
263
266
  <div class="session-link-group"><button
264
267
  class="btn-session-open"
@@ -276,37 +279,45 @@
276
279
  <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2h-8.5A1.5 1.5 0 0 0 2 3.5v8A1.5 1.5 0 0 0 3.5 13h8a1.5 1.5 0 0 0 1.5-1.5v-3"/><path d="M13 2v4h-4"/><path d="M13 2L7 8"/></svg>
277
280
  </button></div>
278
281
  <button
279
- class="btn-session-open has-label session-action-optional-label"
282
+ class="btn-session-open has-label session-action-optional-label" data-icon-only="true"
280
283
  @click="copySessionPath(activeSession)"
281
284
  :disabled="!activeSession || !getSessionFilePath(activeSession)"
282
285
  :title="t('sessions.preview.copyPath')"
283
286
  :aria-label="t('sessions.preview.copyPath')">
284
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M2 5.5V12.5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a1 1 0 0 0-1-1H8L6.5 5H3a1 1 0 0 0-1 1z"/></svg>
285
- <span class="session-action-label session-action-optional-text">{{ t('sessions.preview.copyPath') }}</span>
287
+ <svg aria-hidden="true" focusable="false" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M2 5.5V12.5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a1 1 0 0 0-1-1H8L6.5 5H3a1 1 0 0 0-1 1z"/></svg>
288
+ <span class="session-action-label session-action-optional-text" hidden aria-hidden="true">{{ t('sessions.preview.copyPath') }}</span>
286
289
  </button>
287
290
  </div>
288
291
  <div class="session-primary-actions">
289
292
  <button
290
- class="btn-session-export has-label"
293
+ class="btn-session-export has-label" data-icon-only="true"
291
294
  @click="exportSession(activeSession)"
292
295
  :disabled="!activeSession || sessionExporting[getSessionExportKey(activeSession)]"
293
296
  :title="(activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export')"
294
297
  :aria-label="(activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export')">
295
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M8 2v8"/><polyline points="4 7 8 10.5 12 7"/><path d="M2.5 12v1.5a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V12"/></svg>
296
- <span class="session-action-label">{{ (activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export') }}</span>
298
+ <svg aria-hidden="true" focusable="false" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M8 2v8"/><polyline points="4 7 8 10.5 12 7"/><path d="M2.5 12v1.5a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V12"/></svg>
299
+ <span class="session-action-label" hidden aria-hidden="true">{{ (activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export') }}</span>
297
300
  </button>
298
301
  <button
299
302
  v-if="isDeleteAvailable(activeSession)"
300
- class="btn-session-delete has-label session-delete-text-button"
303
+ class="btn-session-delete has-label session-delete-text-button" data-icon-only="true"
301
304
  @click="deleteSession(activeSession)"
302
305
  :disabled="!activeSession || sessionsLoading || sessionDeleting[getSessionExportKey(activeSession)]"
303
306
  :title="(activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash'))"
304
307
  :aria-label="(activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash'))">
305
- <span class="session-action-label">{{ (activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash')) }}</span>
308
+ <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M2.5 4.5h11M6 4.5V2.5h4v2"/><path d="m4 4.5 .5 9h7l.5-9M6.5 7v4M9.5 7v4"/></svg>
309
+ <span class="session-action-label" hidden aria-hidden="true">{{ (activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash')) }}</span>
306
310
  </button>
307
311
  </div>
308
312
  </div>
309
313
  </div>
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>
310
321
  <div class="session-export-feedback">
311
322
  <p v-if="sessionExportNotice && sessionExportNotice.key === getSessionExportKey(activeSession)" class="session-export-notice" role="status">{{ t('sessions.export.truncated') }}</p>
312
323
  </div>
@@ -412,6 +423,7 @@
412
423
  :ref="getSessionMessageRefBinder(getRecordRenderKey(msg, idx))"
413
424
  :class="['session-msg', msg.normalizedRole === 'user' ? 'user' : (msg.normalizedRole === 'system' ? 'system' : 'assistant')]">
414
425
  <div class="session-msg-header">
426
+ <session-message-actions :message="msg"></session-message-actions>
415
427
  <div class="session-msg-meta">
416
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>
417
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,7 +64,6 @@
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
- <p class="settings-card-desc">{{ t('settings.theme.meta') }}</p>
69
67
  <div class="settings-toggle-group">
70
68
  <button
71
69
  type="button"
@@ -86,7 +84,6 @@
86
84
  {{ t('settings.theme.ocean') }}
87
85
  </button>
88
86
  </div>
89
- <p class="settings-card-hint">{{ t('settings.theme.hint') }}</p>
90
87
  </div>
91
88
  </div>
92
89
  </section>
@@ -95,7 +92,6 @@
95
92
  <div class="settings-card-main">
96
93
  <div class="settings-card-content">
97
94
  <div class="settings-card-title">{{ t('settings.sharePrefix.title') }}</div>
98
- <p class="settings-card-desc">{{ t('settings.sharePrefix.meta') }}</p>
99
95
  <label class="selector-label" for="settings-share-prefix">{{ t('settings.sharePrefix.label') }}</label>
100
96
  <select
101
97
  id="settings-share-prefix"
@@ -114,7 +110,6 @@
114
110
  <div class="settings-card-main">
115
111
  <div class="settings-card-content">
116
112
  <div class="settings-card-title">{{ t('settings.templateConfirm.title') }}</div>
117
- <p class="settings-card-desc">{{ t('settings.templateConfirm.meta') }}</p>
118
113
  <label class="settings-toggle-row">
119
114
  <input type="checkbox" :checked="configTemplateDiffConfirmEnabled" @change="setConfigTemplateDiffConfirmEnabled($event.target.checked)">
120
115
  <span class="toggle-track">
@@ -149,7 +144,6 @@
149
144
  <div class="settings-card-main">
150
145
  <div class="settings-card-content">
151
146
  <div class="settings-card-title">{{ t('settings.timeline.style.title') }}</div>
152
- <p class="settings-card-desc">{{ t('settings.timeline.style.meta') }}</p>
153
147
  <div class="settings-toggle-group">
154
148
  <button
155
149
  type="button"
@@ -164,7 +158,6 @@
164
158
  {{ t('settings.timeline.style.bar') }}
165
159
  </button>
166
160
  </div>
167
- <p class="settings-card-hint">{{ t('settings.timeline.style.hint') }}</p>
168
161
  </div>
169
162
  </div>
170
163
  </section>
@@ -173,7 +166,6 @@
173
166
  <div class="settings-card-main">
174
167
  <div class="settings-card-content">
175
168
  <div class="settings-card-title">{{ t('settings.configTabs.title') }}</div>
176
- <p class="settings-card-desc">{{ t('settings.configTabs.meta') }}</p>
177
169
  <div class="settings-toggle-grid">
178
170
  <label class="settings-toggle-row">
179
171
  <input type="checkbox" :checked="configModeVisibility.codex" @change="setConfigModeVisibility('codex', $event.target.checked)">
@@ -223,7 +215,6 @@
223
215
  <div class="settings-card-main">
224
216
  <div class="settings-card-content">
225
217
  <div class="settings-card-title">{{ t('settings.backup.title') }}</div>
226
- <p class="settings-card-desc">{{ t('settings.backup.meta') }}</p>
227
218
  </div>
228
219
  </div>
229
220
  <div class="settings-card-actions">
@@ -242,7 +233,6 @@
242
233
  <div class="settings-card-main">
243
234
  <div class="settings-card-content">
244
235
  <div class="settings-card-title">{{ t('settings.providerCache.title') }}</div>
245
- <p class="settings-card-desc">{{ t('settings.providerCache.meta') }}</p>
246
236
  <p class="settings-card-hint">{{ t('settings.providerCache.hint') }}</p>
247
237
  <p v-if="providerCacheSyncMessage" class="settings-card-hint provider-cache-sync-message">{{ providerCacheSyncMessage }}</p>
248
238
  <p v-if="providerCacheError" class="settings-card-hint form-error">{{ providerCacheError }}</p>
@@ -261,7 +251,6 @@
261
251
  <div class="settings-card-main">
262
252
  <div class="settings-card-content">
263
253
  <div class="settings-card-title">{{ t('settings.reset.title') }}</div>
264
- <p class="settings-card-desc">{{ t('settings.reset.meta') }}</p>
265
254
  <p class="settings-card-hint">{{ t('settings.reset.hint') }}</p>
266
255
  </div>
267
256
  </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,29 @@
1
+ <details class="session-features feature-diagnostics" @toggle="$event.target === $event.currentTarget && $event.currentTarget.open && loadDiagnosticTargets()">
2
+ <summary class="feature-diagnostics-heading">{{ t('features.diagnostics') }}</summary>
3
+ <div class="feature-content">
4
+ <p class="feature-hint">{{ t('features.diagnosticScope') }}</p>
5
+ <p v-if="featureError" class="form-error feature-feedback" role="alert">{{ featureError }}</p>
6
+ <div class="feature-diagnostic-options">
7
+ <label><input type="checkbox" v-model="diagnosticsRemote" :disabled="diagnosticsReport?.status === 'running'"><span>{{ t('features.remoteProbe') }}</span></label>
8
+ <label v-for="name in diagnosticsTargets" :key="name"><input type="checkbox" :value="name" v-model="diagnosticsSelected" :disabled="diagnosticsReport?.status === 'running'"><span>{{ name }}</span></label>
9
+ </div>
10
+ <div class="feature-actions feature-diagnostic-controls">
11
+ <button type="button" class="btn-mini feature-primary" @click="startDiagnostics" :disabled="diagnosticsReport?.status === 'running'">{{ t('features.check') }}</button>
12
+ <button v-if="diagnosticsReport?.status === 'running'" type="button" class="btn-mini feature-quiet" @click="cancelDiagnostics">{{ t('features.cancel') }}</button>
13
+ <span v-if="diagnosticsReport" class="feature-status" :data-status="diagnosticsReport.status" role="status">{{ t('features.status.' + diagnosticsReport.status) }}</span>
14
+ </div>
15
+ <template v-if="diagnosticsReport">
16
+ <article v-for="item in diagnosticsReport.items" :key="item.id" class="feature-record feature-diagnostic-row">
17
+ <header class="feature-record-heading">
18
+ <strong>{{ item.id === 'local' ? t('features.localCheck') : item.id === 'provider' ? t('features.providerCheck') : item.id }}</strong>
19
+ <span class="feature-status" :data-status="item.status">{{ t('features.status.' + item.status) }}</span>
20
+ </header>
21
+ <small class="feature-meta">{{ item.checkedAt }}<template v-if="item.durationMs !== undefined"> · {{ item.durationMs }} ms</template></small>
22
+ <p v-for="issue in item.evidence?.issues || []" :key="issue.id || issue.code" class="feature-issue">{{ issue.problem || issue.code }}</p>
23
+ <p v-if="item.errorCode" class="form-error">{{ t('features.error.' + item.errorCode) }}</p>
24
+ <details class="feature-disclosure"><summary>{{ t('features.technicalDetails') }}</summary><pre class="feature-code">{{ JSON.stringify(item.evidence || {}, null, 2) }}</pre></details>
25
+ </article>
26
+ <footer class="feature-record-actions feature-export-actions"><button type="button" class="btn-mini feature-quiet" @click="exportDiagnostics('json')">{{ t('features.exportJson') }}</button><button type="button" class="btn-mini feature-quiet" @click="exportDiagnostics('md')">{{ t('features.exportMarkdown') }}</button></footer>
27
+ </template>
28
+ </div>
29
+ </details>