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
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
window.__CODEXMATE_WEB_UI_RENDER__ = (() => {
|
|
2
|
-
const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass, withModifiers: _withModifiers, withKeys: _withKeys, renderList: _renderList, Fragment: _Fragment, vModelSelect: _vModelSelect, withDirectives: _withDirectives, vModelText: _vModelText, vModelCheckbox: _vModelCheckbox, vShow: _vShow, Teleport: _Teleport, createBlock: _createBlock, vModelDynamic: _vModelDynamic, normalizeStyle: _normalizeStyle, isMemoSame: _isMemoSame, withMemo: _withMemo } = Vue
|
|
2
|
+
const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass, withModifiers: _withModifiers, withKeys: _withKeys, renderList: _renderList, Fragment: _Fragment, vModelSelect: _vModelSelect, withDirectives: _withDirectives, vModelText: _vModelText, vModelCheckbox: _vModelCheckbox, vShow: _vShow, Teleport: _Teleport, createBlock: _createBlock, vModelDynamic: _vModelDynamic, normalizeStyle: _normalizeStyle, isMemoSame: _isMemoSame, withMemo: _withMemo, resolveComponent: _resolveComponent, createVNode: _createVNode } = Vue
|
|
3
3
|
|
|
4
4
|
return function render(_ctx, _cache) {
|
|
5
|
+
const _component_session_message_actions = _resolveComponent("session-message-actions")
|
|
6
|
+
|
|
5
7
|
return (_openBlock(), _createElementBlock(_Fragment, null, [
|
|
6
8
|
(!_ctx.navigationReady)
|
|
7
9
|
? (_openBlock(), _createElementBlock("div", {
|
|
@@ -83,6 +85,18 @@ return function render(_ctx, _cache) {
|
|
|
83
85
|
onPointerdown: $event => (_ctx.onMainTabPointerDown('config', $event)),
|
|
84
86
|
onClick: $event => (_ctx.onMainTabClick('config', $event))
|
|
85
87
|
}, _toDisplayString(_ctx.t('tab.config')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["data-config-mode", "tabindex", "aria-selected", "aria-controls", "onPointerdown", "onClick"]),
|
|
88
|
+
_createElementVNode("button", {
|
|
89
|
+
type: "button",
|
|
90
|
+
class: _normalizeClass(["top-tab", { active: _ctx.isMainTabNavActive('routing') }]),
|
|
91
|
+
id: "tab-routing",
|
|
92
|
+
role: "tab",
|
|
93
|
+
"data-main-tab": "routing",
|
|
94
|
+
tabindex: _ctx.mainTab === 'routing' ? 0 : -1,
|
|
95
|
+
"aria-selected": _ctx.mainTab === 'routing',
|
|
96
|
+
"aria-controls": "panel-routing",
|
|
97
|
+
onPointerdown: $event => (_ctx.onMainTabPointerDown('routing', $event)),
|
|
98
|
+
onClick: $event => (_ctx.onMainTabClick('routing', $event))
|
|
99
|
+
}, _toDisplayString(_ctx.t('tab.routing')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["tabindex", "aria-selected", "onPointerdown", "onClick"]),
|
|
86
100
|
_createElementVNode("button", {
|
|
87
101
|
type: "button",
|
|
88
102
|
class: _normalizeClass(["top-tab", { active: _ctx.isMainTabNavActive('sessions') }]),
|
|
@@ -171,23 +185,13 @@ return function render(_ctx, _cache) {
|
|
|
171
185
|
]))
|
|
172
186
|
: _createCommentVNode("v-if", true),
|
|
173
187
|
_createElementVNode("div", {
|
|
174
|
-
class: _normalizeClass(['app-shell',
|
|
188
|
+
class: _normalizeClass(['app-shell', 'sidebar-collapsed', { standalone: _ctx.sessionStandalone }])
|
|
175
189
|
}, [
|
|
176
190
|
(!_ctx.sessionStandalone)
|
|
177
191
|
? (_openBlock(), _createElementBlock("aside", {
|
|
178
192
|
key: 0,
|
|
179
193
|
class: "side-rail"
|
|
180
194
|
}, [
|
|
181
|
-
_createElementVNode("button", {
|
|
182
|
-
type: "button",
|
|
183
|
-
class: "side-rail-collapse-toggle",
|
|
184
|
-
"aria-pressed": _ctx.sidebarCollapsed ? 'true' : 'false',
|
|
185
|
-
"aria-label": _ctx.sidebarCollapsed ? _ctx.t('side.expand') : _ctx.t('side.collapse'),
|
|
186
|
-
title: _ctx.sidebarCollapsed ? _ctx.t('side.expand') : _ctx.t('side.collapse'),
|
|
187
|
-
onClick: _ctx.toggleSidebarCollapsed
|
|
188
|
-
}, [
|
|
189
|
-
_createElementVNode("span", { "aria-hidden": "true" }, _toDisplayString(_ctx.sidebarCollapsed ? '›' : '‹'), 1 /* TEXT */)
|
|
190
|
-
], 8 /* PROPS */, ["aria-pressed", "aria-label", "title", "onClick"]),
|
|
191
195
|
_createElementVNode("div", { class: "brand-block" }, [
|
|
192
196
|
_createElementVNode("div", { class: "brand-head" }, [
|
|
193
197
|
_createElementVNode("img", {
|
|
@@ -236,7 +240,6 @@ return function render(_ctx, _cache) {
|
|
|
236
240
|
}, "⌂"),
|
|
237
241
|
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.overview.doctor')), 1 /* TEXT */),
|
|
238
242
|
_createElementVNode("div", { class: "side-item-meta" }, [
|
|
239
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.overview.doctor.meta')), 1 /* TEXT */),
|
|
240
243
|
_createElementVNode("span", null, _toDisplayString(_ctx.inspectorHealthStatus), 1 /* TEXT */)
|
|
241
244
|
])
|
|
242
245
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"])
|
|
@@ -261,7 +264,6 @@ return function render(_ctx, _cache) {
|
|
|
261
264
|
}, "?"),
|
|
262
265
|
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.docs.cliInstall')), 1 /* TEXT */),
|
|
263
266
|
_createElementVNode("div", { class: "side-item-meta" }, [
|
|
264
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.docs.cliInstall.meta')), 1 /* TEXT */),
|
|
265
267
|
_createElementVNode("span", null, _toDisplayString(String(_ctx.installPackageManager || 'npm').toUpperCase()) + " · " + _toDisplayString(_ctx.installCommandAction === 'update' ? _ctx.t('common.update') : (_ctx.installCommandAction === 'uninstall' ? _ctx.t('common.uninstall') : _ctx.t('common.install'))), 1 /* TEXT */)
|
|
266
268
|
])
|
|
267
269
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"])
|
|
@@ -276,6 +278,7 @@ return function render(_ctx, _cache) {
|
|
|
276
278
|
? (_openBlock(), _createElementBlock("button", {
|
|
277
279
|
key: 0,
|
|
278
280
|
id: "side-tab-config-codex",
|
|
281
|
+
"aria-description": _ctx.t('side.config.codex.meta'),
|
|
279
282
|
"data-main-tab": "config",
|
|
280
283
|
"data-config-mode": "codex",
|
|
281
284
|
"aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'codex' ? 'page' : null,
|
|
@@ -287,16 +290,14 @@ return function render(_ctx, _cache) {
|
|
|
287
290
|
class: "side-item-icon",
|
|
288
291
|
"aria-hidden": "true"
|
|
289
292
|
}, "C"),
|
|
290
|
-
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.codex')), 1 /* TEXT */)
|
|
291
|
-
|
|
292
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.codex.meta')), 1 /* TEXT */)
|
|
293
|
-
])
|
|
294
|
-
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
|
|
293
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.codex')), 1 /* TEXT */)
|
|
294
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
|
|
295
295
|
: _createCommentVNode("v-if", true),
|
|
296
296
|
(_ctx.isConfigModeVisible('claude'))
|
|
297
297
|
? (_openBlock(), _createElementBlock("button", {
|
|
298
298
|
key: 1,
|
|
299
299
|
id: "side-tab-config-claude",
|
|
300
|
+
"aria-description": _ctx.t('side.config.claude.meta'),
|
|
300
301
|
"data-main-tab": "config",
|
|
301
302
|
"data-config-mode": "claude",
|
|
302
303
|
"aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'claude' ? 'page' : null,
|
|
@@ -308,16 +309,14 @@ return function render(_ctx, _cache) {
|
|
|
308
309
|
class: "side-item-icon",
|
|
309
310
|
"aria-hidden": "true"
|
|
310
311
|
}, "A"),
|
|
311
|
-
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.claude')), 1 /* TEXT */)
|
|
312
|
-
|
|
313
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.claude.meta')), 1 /* TEXT */)
|
|
314
|
-
])
|
|
315
|
-
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
|
|
312
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.claude')), 1 /* TEXT */)
|
|
313
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
|
|
316
314
|
: _createCommentVNode("v-if", true),
|
|
317
315
|
(_ctx.isConfigModeVisible('openclaw'))
|
|
318
316
|
? (_openBlock(), _createElementBlock("button", {
|
|
319
317
|
key: 2,
|
|
320
318
|
id: "side-tab-config-openclaw",
|
|
319
|
+
"aria-description": _ctx.t('side.config.openclaw.meta'),
|
|
321
320
|
"data-main-tab": "config",
|
|
322
321
|
"data-config-mode": "openclaw",
|
|
323
322
|
"aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'openclaw' ? 'page' : null,
|
|
@@ -329,16 +328,14 @@ return function render(_ctx, _cache) {
|
|
|
329
328
|
class: "side-item-icon",
|
|
330
329
|
"aria-hidden": "true"
|
|
331
330
|
}, "O"),
|
|
332
|
-
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.openclaw')), 1 /* TEXT */)
|
|
333
|
-
|
|
334
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.openclaw.meta')), 1 /* TEXT */)
|
|
335
|
-
])
|
|
336
|
-
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
|
|
331
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.openclaw')), 1 /* TEXT */)
|
|
332
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
|
|
337
333
|
: _createCommentVNode("v-if", true),
|
|
338
334
|
(_ctx.isConfigModeVisible('opencode'))
|
|
339
335
|
? (_openBlock(), _createElementBlock("button", {
|
|
340
336
|
key: 3,
|
|
341
337
|
id: "side-tab-config-opencode",
|
|
338
|
+
"aria-description": _ctx.t('side.config.opencode.meta'),
|
|
342
339
|
"data-main-tab": "config",
|
|
343
340
|
"data-config-mode": "opencode",
|
|
344
341
|
"aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'opencode' ? 'page' : null,
|
|
@@ -350,16 +347,14 @@ return function render(_ctx, _cache) {
|
|
|
350
347
|
class: "side-item-icon",
|
|
351
348
|
"aria-hidden": "true"
|
|
352
349
|
}, "N"),
|
|
353
|
-
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.opencode')), 1 /* TEXT */)
|
|
354
|
-
|
|
355
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.opencode.meta')), 1 /* TEXT */)
|
|
356
|
-
])
|
|
357
|
-
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
|
|
350
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.opencode')), 1 /* TEXT */)
|
|
351
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
|
|
358
352
|
: _createCommentVNode("v-if", true),
|
|
359
353
|
(_ctx.isConfigModeVisible('kilocode'))
|
|
360
354
|
? (_openBlock(), _createElementBlock("button", {
|
|
361
355
|
key: 4,
|
|
362
356
|
id: "side-tab-config-kilocode",
|
|
357
|
+
"aria-description": _ctx.t('side.config.kilocode.meta'),
|
|
363
358
|
"data-main-tab": "config",
|
|
364
359
|
"data-config-mode": "kilocode",
|
|
365
360
|
"aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'kilocode' ? 'page' : null,
|
|
@@ -371,16 +366,14 @@ return function render(_ctx, _cache) {
|
|
|
371
366
|
class: "side-item-icon",
|
|
372
367
|
"aria-hidden": "true"
|
|
373
368
|
}, "K"),
|
|
374
|
-
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.kilocode')), 1 /* TEXT */)
|
|
375
|
-
|
|
376
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.kilocode.meta')), 1 /* TEXT */)
|
|
377
|
-
])
|
|
378
|
-
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
|
|
369
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.kilocode')), 1 /* TEXT */)
|
|
370
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
|
|
379
371
|
: _createCommentVNode("v-if", true),
|
|
380
372
|
(_ctx.isConfigModeVisible('pi'))
|
|
381
373
|
? (_openBlock(), _createElementBlock("button", {
|
|
382
374
|
key: 5,
|
|
383
375
|
id: "side-tab-config-pi",
|
|
376
|
+
"aria-description": _ctx.t('side.config.pi.meta'),
|
|
384
377
|
"data-main-tab": "config",
|
|
385
378
|
"data-config-mode": "pi",
|
|
386
379
|
"aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'pi' ? 'page' : null,
|
|
@@ -392,11 +385,8 @@ return function render(_ctx, _cache) {
|
|
|
392
385
|
class: "side-item-icon",
|
|
393
386
|
"aria-hidden": "true"
|
|
394
387
|
}, "P"),
|
|
395
|
-
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.pi')), 1 /* TEXT */)
|
|
396
|
-
|
|
397
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.pi.meta')), 1 /* TEXT */)
|
|
398
|
-
])
|
|
399
|
-
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
|
|
388
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.pi')), 1 /* TEXT */)
|
|
389
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
|
|
400
390
|
: _createCommentVNode("v-if", true)
|
|
401
391
|
], 8 /* PROPS */, ["aria-label"]),
|
|
402
392
|
_createElementVNode("div", {
|
|
@@ -405,6 +395,16 @@ return function render(_ctx, _cache) {
|
|
|
405
395
|
"aria-label": _ctx.t('side.workspace')
|
|
406
396
|
}, [
|
|
407
397
|
_createElementVNode("div", { class: "side-section-title" }, _toDisplayString(_ctx.t('side.workspace')), 1 /* TEXT */),
|
|
398
|
+
_createElementVNode("button", {
|
|
399
|
+
id: "side-tab-routing",
|
|
400
|
+
"data-main-tab": "routing",
|
|
401
|
+
"aria-current": _ctx.mainTab === 'routing' ? 'page' : null,
|
|
402
|
+
class: _normalizeClass(['side-item', { active: _ctx.isMainTabNavActive('routing') }]),
|
|
403
|
+
onPointerdown: $event => (_ctx.onMainTabPointerDown('routing', $event)),
|
|
404
|
+
onClick: $event => (_ctx.onMainTabClick('routing', $event))
|
|
405
|
+
}, [
|
|
406
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('tab.routing')), 1 /* TEXT */)
|
|
407
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
|
|
408
408
|
_createElementVNode("button", {
|
|
409
409
|
id: "side-tab-sessions",
|
|
410
410
|
"data-main-tab": "sessions",
|
|
@@ -419,12 +419,12 @@ return function render(_ctx, _cache) {
|
|
|
419
419
|
}, "S"),
|
|
420
420
|
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.sessions.browser')), 1 /* TEXT */),
|
|
421
421
|
_createElementVNode("div", { class: "side-item-meta" }, [
|
|
422
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.sessions.browser.meta')), 1 /* TEXT */),
|
|
423
422
|
_createElementVNode("span", null, _toDisplayString(_ctx.t('sessions.sourceLabel', { value: (_ctx.sessionFilterSource === 'all' ? _ctx.t('sessions.source.all') : (_ctx.sessionFilterSource === 'claude' ? 'Claude Code' : (_ctx.sessionFilterSource === 'gemini' ? 'Gemini CLI' : (_ctx.sessionFilterSource === 'codebuddy' ? 'CodeBuddy Code' : (_ctx.sessionFilterSource === 'workbuddy' ? 'WorkBuddy AI' : 'Codex'))))) })), 1 /* TEXT */)
|
|
424
423
|
])
|
|
425
424
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
|
|
426
425
|
_createElementVNode("button", {
|
|
427
426
|
id: "side-tab-prompts",
|
|
427
|
+
"aria-description": _ctx.t('side.prompts.meta'),
|
|
428
428
|
"data-main-tab": "prompts",
|
|
429
429
|
"aria-current": _ctx.mainTab === 'prompts' ? 'page' : null,
|
|
430
430
|
class: _normalizeClass(['side-item', { active: _ctx.isMainTabNavActive('prompts') }]),
|
|
@@ -435,11 +435,8 @@ return function render(_ctx, _cache) {
|
|
|
435
435
|
class: "side-item-icon",
|
|
436
436
|
"aria-hidden": "true"
|
|
437
437
|
}, "P"),
|
|
438
|
-
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.prompts')), 1 /* TEXT */)
|
|
439
|
-
|
|
440
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.prompts.meta')), 1 /* TEXT */)
|
|
441
|
-
])
|
|
442
|
-
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
|
|
438
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.prompts')), 1 /* TEXT */)
|
|
439
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]),
|
|
443
440
|
_createElementVNode("button", {
|
|
444
441
|
id: "side-tab-usage",
|
|
445
442
|
"data-main-tab": "usage",
|
|
@@ -454,7 +451,6 @@ return function render(_ctx, _cache) {
|
|
|
454
451
|
}, "↗"),
|
|
455
452
|
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('tab.usage')), 1 /* TEXT */),
|
|
456
453
|
_createElementVNode("div", { class: "side-item-meta" }, [
|
|
457
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.usage.meta')), 1 /* TEXT */),
|
|
458
454
|
_createElementVNode("span", null, _toDisplayString(_ctx.t('usage.rangeLabel', { value: (_ctx.sessionsUsageTimeRange === 'all' ? _ctx.t('usage.range.all') : (_ctx.sessionsUsageTimeRange === '30d' ? _ctx.t('usage.range.30d.short') : _ctx.t('usage.range.7d.short'))) })), 1 /* TEXT */)
|
|
459
455
|
])
|
|
460
456
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"])
|
|
@@ -505,7 +501,6 @@ return function render(_ctx, _cache) {
|
|
|
505
501
|
}, "◇"),
|
|
506
502
|
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.plugins.tools')), 1 /* TEXT */),
|
|
507
503
|
_createElementVNode("div", { class: "side-item-meta" }, [
|
|
508
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.plugins.tools.meta')), 1 /* TEXT */),
|
|
509
504
|
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.plugins.templatesCount', { count: _ctx.promptTemplatesList.length })), 1 /* TEXT */)
|
|
510
505
|
])
|
|
511
506
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
|
|
@@ -526,6 +521,21 @@ return function render(_ctx, _cache) {
|
|
|
526
521
|
_createElementVNode("div", { class: "side-item-meta" }, [
|
|
527
522
|
_createElementVNode("span", null, _toDisplayString(_ctx.t('plugins.textTools.tools.compress')), 1 /* TEXT */)
|
|
528
523
|
])
|
|
524
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
|
|
525
|
+
_createElementVNode("button", {
|
|
526
|
+
id: "side-tab-plugins-file-sharing",
|
|
527
|
+
"data-main-tab": "plugins",
|
|
528
|
+
"data-plugins-id": "file-sharing",
|
|
529
|
+
"aria-current": _ctx.mainTab === 'plugins' && _ctx.pluginsActiveId === 'file-sharing' ? 'page' : null,
|
|
530
|
+
class: _normalizeClass(['side-item', { active: _ctx.isPluginsIdNavActive('file-sharing') }]),
|
|
531
|
+
onPointerdown: $event => (_ctx.onPluginsTabPointerDown('file-sharing', $event)),
|
|
532
|
+
onClick: $event => (_ctx.onPluginsTabClick('file-sharing', $event))
|
|
533
|
+
}, [
|
|
534
|
+
_createElementVNode("span", {
|
|
535
|
+
class: "side-item-icon",
|
|
536
|
+
"aria-hidden": "true"
|
|
537
|
+
}, "⇩"),
|
|
538
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('plugins.fileSharing.title')), 1 /* TEXT */)
|
|
529
539
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"])
|
|
530
540
|
], 8 /* PROPS */, ["aria-label"]),
|
|
531
541
|
_createElementVNode("div", {
|
|
@@ -546,10 +556,7 @@ return function render(_ctx, _cache) {
|
|
|
546
556
|
class: "side-item-icon",
|
|
547
557
|
"aria-hidden": "true"
|
|
548
558
|
}, "⚙"),
|
|
549
|
-
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.system.settings')), 1 /* TEXT */)
|
|
550
|
-
_createElementVNode("div", { class: "side-item-meta" }, [
|
|
551
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('side.system.settings.meta')), 1 /* TEXT */)
|
|
552
|
-
])
|
|
559
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.system.settings')), 1 /* TEXT */)
|
|
553
560
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
|
|
554
561
|
_createElementVNode("button", {
|
|
555
562
|
id: "side-tab-trash",
|
|
@@ -599,7 +606,7 @@ return function render(_ctx, _cache) {
|
|
|
599
606
|
onClick: _ctx.toggleLanguageMenu,
|
|
600
607
|
onKeydown: _withKeys(_withModifiers(_ctx.closeLanguageMenu, ["prevent"]), ["esc"])
|
|
601
608
|
}, [
|
|
602
|
-
_createTextVNode(_toDisplayString(_ctx.
|
|
609
|
+
_createTextVNode(_toDisplayString(_ctx.currentLanguageLabel()) + " ", 1 /* TEXT */),
|
|
603
610
|
(_openBlock(), _createElementBlock("svg", {
|
|
604
611
|
viewBox: "0 0 16 16",
|
|
605
612
|
fill: "none",
|
|
@@ -683,9 +690,13 @@ return function render(_ctx, _cache) {
|
|
|
683
690
|
class: "panel-header panel-header-refined"
|
|
684
691
|
}, [
|
|
685
692
|
_createElementVNode("div", { class: "panel-header-copy" }, [
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
693
|
+
(_ctx.mainTabKicker)
|
|
694
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
695
|
+
key: 0,
|
|
696
|
+
class: "panel-kicker"
|
|
697
|
+
}, _toDisplayString(_ctx.mainTabKicker), 1 /* TEXT */))
|
|
698
|
+
: _createCommentVNode("v-if", true),
|
|
699
|
+
_createElementVNode("h1", { class: "main-title" }, _toDisplayString(_ctx.mainTabTitle), 1 /* TEXT */)
|
|
689
700
|
])
|
|
690
701
|
]))
|
|
691
702
|
: _createCommentVNode("v-if", true),
|
|
@@ -897,8 +908,7 @@ return function render(_ctx, _cache) {
|
|
|
897
908
|
}, [
|
|
898
909
|
_createElementVNode("header", { class: "workflow-header" }, [
|
|
899
910
|
_createElementVNode("div", null, [
|
|
900
|
-
_createElementVNode("h2", { class: "workflow-title" }, _toDisplayString(_ctx.t('workflow.title')), 1 /* TEXT */)
|
|
901
|
-
_createElementVNode("p", { class: "workflow-description" }, _toDisplayString(_ctx.t('workflow.tagline')), 1 /* TEXT */)
|
|
911
|
+
_createElementVNode("h2", { class: "workflow-title" }, _toDisplayString(_ctx.t('workflow.title')), 1 /* TEXT */)
|
|
902
912
|
]),
|
|
903
913
|
_createElementVNode("button", {
|
|
904
914
|
type: "button",
|
|
@@ -1010,8 +1020,7 @@ return function render(_ctx, _cache) {
|
|
|
1010
1020
|
key: 0,
|
|
1011
1021
|
class: "workflow-empty"
|
|
1012
1022
|
}, [
|
|
1013
|
-
_createElementVNode("p", null, _toDisplayString(_ctx.t('workflow.empty')), 1 /* TEXT */)
|
|
1014
|
-
_createElementVNode("p", { class: "form-hint" }, _toDisplayString(_ctx.t('workflow.emptyHint')), 1 /* TEXT */)
|
|
1023
|
+
_createElementVNode("p", null, _toDisplayString(_ctx.t('workflow.empty')), 1 /* TEXT */)
|
|
1015
1024
|
]))
|
|
1016
1025
|
: _createCommentVNode("v-if", true),
|
|
1017
1026
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.workflowRuns, (run) => {
|
|
@@ -1306,6 +1315,110 @@ return function render(_ctx, _cache) {
|
|
|
1306
1315
|
], 512 /* NEED_PATCH */), [
|
|
1307
1316
|
[_vShow, _ctx.mainTab === 'dashboard']
|
|
1308
1317
|
]),
|
|
1318
|
+
(_ctx.mainTab === 'config' && _ctx.lastConfigChange && _ctx.lastConfigChange.target === _ctx.configMode)
|
|
1319
|
+
? (_openBlock(), _createElementBlock("section", {
|
|
1320
|
+
key: 0,
|
|
1321
|
+
class: "config-change-last",
|
|
1322
|
+
"aria-live": "polite"
|
|
1323
|
+
}, [
|
|
1324
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('changes.last')) + " · " + _toDisplayString(_ctx.lastConfigChange.createdAt), 1 /* TEXT */),
|
|
1325
|
+
_createElementVNode("button", {
|
|
1326
|
+
type: "button",
|
|
1327
|
+
class: "btn-tool",
|
|
1328
|
+
onClick: _ctx.undoLastConfigChange,
|
|
1329
|
+
disabled: _ctx.configChangeBusy || _ctx.configChangeApplying || !_ctx.isToolConfigWriteAllowed(_ctx.configMode)
|
|
1330
|
+
}, _toDisplayString(_ctx.t('changes.undo')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
1331
|
+
]))
|
|
1332
|
+
: _createCommentVNode("v-if", true),
|
|
1333
|
+
(_openBlock(), _createBlock(_Teleport, { to: "body" }, [
|
|
1334
|
+
(_ctx.configChangePreview)
|
|
1335
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
1336
|
+
key: 0,
|
|
1337
|
+
class: "modal-overlay config-change-overlay",
|
|
1338
|
+
onClick: _withModifiers($event => (_ctx.closeConfigChangePreview()), ["self"]),
|
|
1339
|
+
onKeydown: _ctx.handleConfigChangeKeydown
|
|
1340
|
+
}, [
|
|
1341
|
+
_createElementVNode("section", {
|
|
1342
|
+
class: "modal modal-wide config-change-modal",
|
|
1343
|
+
role: "dialog",
|
|
1344
|
+
"aria-modal": "true",
|
|
1345
|
+
"aria-labelledby": "config-change-title",
|
|
1346
|
+
"aria-describedby": "config-change-hint",
|
|
1347
|
+
"aria-busy": _ctx.configChangeApplying
|
|
1348
|
+
}, [
|
|
1349
|
+
_createElementVNode("h2", {
|
|
1350
|
+
id: "config-change-title",
|
|
1351
|
+
class: "modal-title"
|
|
1352
|
+
}, _toDisplayString(_ctx.t('changes.preview')), 1 /* TEXT */),
|
|
1353
|
+
_createElementVNode("p", {
|
|
1354
|
+
id: "config-change-hint",
|
|
1355
|
+
class: "form-hint"
|
|
1356
|
+
}, _toDisplayString(_ctx.t('changes.hint')), 1 /* TEXT */),
|
|
1357
|
+
_createElementVNode("div", {
|
|
1358
|
+
class: "config-change-files",
|
|
1359
|
+
tabindex: "0",
|
|
1360
|
+
"aria-label": _ctx.t('changes.files')
|
|
1361
|
+
}, [
|
|
1362
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.configChangePreview.files, (file) => {
|
|
1363
|
+
return (_openBlock(), _createElementBlock("article", {
|
|
1364
|
+
key: file.path,
|
|
1365
|
+
class: "config-change-file"
|
|
1366
|
+
}, [
|
|
1367
|
+
_createElementVNode("h3", null, [
|
|
1368
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('changes.operation.' + file.operation)), 1 /* TEXT */),
|
|
1369
|
+
_createTextVNode(),
|
|
1370
|
+
_createElementVNode("code", null, _toDisplayString(file.path), 1 /* TEXT */)
|
|
1371
|
+
]),
|
|
1372
|
+
(file.hidden)
|
|
1373
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
1374
|
+
key: 0,
|
|
1375
|
+
class: "form-hint"
|
|
1376
|
+
}, _toDisplayString(_ctx.t('changes.hidden')), 1 /* TEXT */))
|
|
1377
|
+
: (file.maskedOnly)
|
|
1378
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
1379
|
+
key: 1,
|
|
1380
|
+
class: "form-hint"
|
|
1381
|
+
}, _toDisplayString(_ctx.t('changes.maskedOnly')), 1 /* TEXT */))
|
|
1382
|
+
: (_openBlock(), _createElementBlock("pre", {
|
|
1383
|
+
key: 2,
|
|
1384
|
+
class: "config-change-diff"
|
|
1385
|
+
}, [
|
|
1386
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(file.diff.lines, (line, index) => {
|
|
1387
|
+
return (_openBlock(), _createElementBlock("span", {
|
|
1388
|
+
key: index,
|
|
1389
|
+
class: _normalizeClass(['config-change-line', 'config-change-line-' + line.type])
|
|
1390
|
+
}, _toDisplayString(line.type === 'add' ? '+' : line.type === 'del' ? '−' : ' ') + " " + _toDisplayString(line.text || line.value), 3 /* TEXT, CLASS */))
|
|
1391
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
1392
|
+
]))
|
|
1393
|
+
]))
|
|
1394
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
1395
|
+
], 8 /* PROPS */, ["aria-label"]),
|
|
1396
|
+
(_ctx.configChangeError)
|
|
1397
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
1398
|
+
key: 0,
|
|
1399
|
+
class: "form-hint form-error",
|
|
1400
|
+
role: "alert"
|
|
1401
|
+
}, _toDisplayString(_ctx.configChangeError), 1 /* TEXT */))
|
|
1402
|
+
: _createCommentVNode("v-if", true),
|
|
1403
|
+
_createElementVNode("div", { class: "btn-group config-change-actions" }, [
|
|
1404
|
+
_createElementVNode("button", {
|
|
1405
|
+
ref: "configChangeCancel",
|
|
1406
|
+
type: "button",
|
|
1407
|
+
class: "btn btn-cancel",
|
|
1408
|
+
onClick: $event => (_ctx.closeConfigChangePreview()),
|
|
1409
|
+
disabled: _ctx.configChangeApplying
|
|
1410
|
+
}, _toDisplayString(_ctx.t('common.cancel')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
1411
|
+
_createElementVNode("button", {
|
|
1412
|
+
type: "button",
|
|
1413
|
+
class: "btn btn-confirm",
|
|
1414
|
+
onClick: _ctx.confirmConfigChange,
|
|
1415
|
+
disabled: _ctx.configChangeApplying || !!_ctx.configChangeError
|
|
1416
|
+
}, _toDisplayString(_ctx.configChangeApplying ? _ctx.t('changes.saving') : _ctx.t('changes.apply')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
1417
|
+
])
|
|
1418
|
+
], 8 /* PROPS */, ["aria-busy"])
|
|
1419
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onClick", "onKeydown"]))
|
|
1420
|
+
: _createCommentVNode("v-if", true)
|
|
1421
|
+
])),
|
|
1309
1422
|
_createCommentVNode(" Codex 配置 "),
|
|
1310
1423
|
_withDirectives(_createElementVNode("div", {
|
|
1311
1424
|
class: "mode-content mode-cards",
|
|
@@ -1594,8 +1707,7 @@ return function render(_ctx, _cache) {
|
|
|
1594
1707
|
_createElementVNode("option", { value: "xhigh" }, "xhigh")
|
|
1595
1708
|
], 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "onChange"]), [
|
|
1596
1709
|
[_vModelSelect, _ctx.modelReasoningEffort]
|
|
1597
|
-
])
|
|
1598
|
-
_createElementVNode("div", { class: "config-template-hint" }, _toDisplayString(_ctx.t('config.reasoningEffort.hint')), 1 /* TEXT */)
|
|
1710
|
+
])
|
|
1599
1711
|
])
|
|
1600
1712
|
]),
|
|
1601
1713
|
_createElementVNode("div", { class: "selector-section" }, [
|
|
@@ -1628,8 +1740,7 @@ return function render(_ctx, _cache) {
|
|
|
1628
1740
|
onKeydown: _withKeys(_withModifiers(_ctx.onModelContextWindowBlur, ["prevent"]), ["enter"])
|
|
1629
1741
|
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "placeholder", "onFocus", "onInput", "onBlur", "onKeydown"]), [
|
|
1630
1742
|
[_vModelText, _ctx.modelContextWindowInput]
|
|
1631
|
-
])
|
|
1632
|
-
_createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('config.contextWindow.hint')), 1 /* TEXT */)
|
|
1743
|
+
])
|
|
1633
1744
|
]),
|
|
1634
1745
|
_createElementVNode("div", { class: "form-group codex-config-field" }, [
|
|
1635
1746
|
_createElementVNode("label", {
|
|
@@ -1649,8 +1760,7 @@ return function render(_ctx, _cache) {
|
|
|
1649
1760
|
onKeydown: _withKeys(_withModifiers(_ctx.onModelAutoCompactTokenLimitBlur, ["prevent"]), ["enter"])
|
|
1650
1761
|
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "placeholder", "onFocus", "onInput", "onBlur", "onKeydown"]), [
|
|
1651
1762
|
[_vModelText, _ctx.modelAutoCompactTokenLimitInput]
|
|
1652
|
-
])
|
|
1653
|
-
_createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('config.autoCompact.hint')), 1 /* TEXT */)
|
|
1763
|
+
])
|
|
1654
1764
|
])
|
|
1655
1765
|
])
|
|
1656
1766
|
]),
|
|
@@ -2545,15 +2655,14 @@ return function render(_ctx, _cache) {
|
|
|
2545
2655
|
], 8 /* PROPS */, ["aria-label"]),
|
|
2546
2656
|
_createElementVNode("section", {
|
|
2547
2657
|
class: "settings-card settings-card--wide openclaw-summary-card",
|
|
2548
|
-
"aria-
|
|
2658
|
+
"aria-labelledby": "openclaw-summary-title"
|
|
2549
2659
|
}, [
|
|
2550
2660
|
_createElementVNode("div", { class: "settings-card-body" }, [
|
|
2551
2661
|
_createElementVNode("div", { class: "openclaw-summary-header" }, [
|
|
2552
|
-
_createElementVNode("
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
_createElementVNode("div", { class: "summary-note" }, "配置摘要")
|
|
2662
|
+
_createElementVNode("h2", {
|
|
2663
|
+
class: "summary-title",
|
|
2664
|
+
id: "openclaw-summary-title"
|
|
2665
|
+
}, _toDisplayString(_ctx.t('tab.config.openclaw')), 1 /* TEXT */)
|
|
2557
2666
|
]),
|
|
2558
2667
|
_createElementVNode("div", { class: "openclaw-summary-grid" }, [
|
|
2559
2668
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.getOpenclawStatusSummaryItems(), (item) => {
|
|
@@ -2573,25 +2682,48 @@ return function render(_ctx, _cache) {
|
|
|
2573
2682
|
class: _normalizeClass(["tool-config-write-scope", { locked: !_ctx.isToolConfigWriteAllowed('openclaw') }])
|
|
2574
2683
|
}, [
|
|
2575
2684
|
_createElementVNode("div", { class: "tool-config-write-body" }, [
|
|
2576
|
-
_createElementVNode("section", {
|
|
2685
|
+
_createElementVNode("section", {
|
|
2686
|
+
class: "settings-card settings-card--wide openclaw-workspace-card",
|
|
2687
|
+
"aria-labelledby": "openclaw-workspace-title"
|
|
2688
|
+
}, [
|
|
2577
2689
|
_createElementVNode("div", { class: "settings-card-body" }, [
|
|
2690
|
+
_createElementVNode("h3", {
|
|
2691
|
+
class: "openclaw-section-title",
|
|
2692
|
+
id: "openclaw-workspace-title"
|
|
2693
|
+
}, _toDisplayString(_ctx.t('openclaw.workspaceFile')), 1 /* TEXT */),
|
|
2578
2694
|
_createElementVNode("div", { class: "openclaw-tools-grid" }, [
|
|
2579
2695
|
_createElementVNode("button", {
|
|
2580
2696
|
class: "openclaw-tool-btn",
|
|
2581
2697
|
onClick: _ctx.openOpenclawAgentsEditor,
|
|
2582
2698
|
disabled: _ctx.loading || !!_ctx.initError || _ctx.agentsLoading || !_ctx.isToolConfigWriteAllowed('openclaw')
|
|
2583
2699
|
}, [
|
|
2584
|
-
|
|
2700
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
2701
|
+
class: "tool-icon",
|
|
2702
|
+
viewBox: "0 0 24 24",
|
|
2703
|
+
fill: "none",
|
|
2704
|
+
stroke: "currentColor",
|
|
2705
|
+
"stroke-width": "1.5",
|
|
2706
|
+
"aria-hidden": "true"
|
|
2707
|
+
}, [
|
|
2708
|
+
_createElementVNode("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
2709
|
+
_createElementVNode("path", { d: "M14 2v6h6M8 13h8M8 17h6" })
|
|
2710
|
+
])),
|
|
2585
2711
|
_createElementVNode("div", { class: "tool-content" }, [
|
|
2586
2712
|
_createElementVNode("div", { class: "tool-title" }, "AGENTS.md"),
|
|
2587
|
-
|
|
2713
|
+
(_ctx.agentsLoading)
|
|
2714
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
2715
|
+
key: 0,
|
|
2716
|
+
class: "tool-meta"
|
|
2717
|
+
}, _toDisplayString(_ctx.t('config.modelLoading')), 1 /* TEXT */))
|
|
2718
|
+
: _createCommentVNode("v-if", true)
|
|
2588
2719
|
]),
|
|
2589
2720
|
(_openBlock(), _createElementBlock("svg", {
|
|
2590
2721
|
class: "tool-chevron",
|
|
2591
2722
|
viewBox: "0 0 24 24",
|
|
2592
2723
|
fill: "none",
|
|
2593
2724
|
stroke: "currentColor",
|
|
2594
|
-
"stroke-width": "2"
|
|
2725
|
+
"stroke-width": "2",
|
|
2726
|
+
"aria-hidden": "true"
|
|
2595
2727
|
}, [
|
|
2596
2728
|
_createElementVNode("path", { d: "M9 18l6-6-6-6" })
|
|
2597
2729
|
]))
|
|
@@ -2604,17 +2736,27 @@ return function render(_ctx, _cache) {
|
|
|
2604
2736
|
onClick: $event => (_ctx.openOpenclawQuickWorkspaceFile(fileName)),
|
|
2605
2737
|
disabled: _ctx.loading || !!_ctx.initError || _ctx.agentsLoading || !_ctx.isToolConfigWriteAllowed('openclaw')
|
|
2606
2738
|
}, [
|
|
2607
|
-
|
|
2739
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
2740
|
+
class: "tool-icon",
|
|
2741
|
+
viewBox: "0 0 24 24",
|
|
2742
|
+
fill: "none",
|
|
2743
|
+
stroke: "currentColor",
|
|
2744
|
+
"stroke-width": "1.5",
|
|
2745
|
+
"aria-hidden": "true"
|
|
2746
|
+
}, [
|
|
2747
|
+
_createElementVNode("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
2748
|
+
_createElementVNode("path", { d: "M14 2v6h6M8 13h8M8 17h6" })
|
|
2749
|
+
])),
|
|
2608
2750
|
_createElementVNode("div", { class: "tool-content" }, [
|
|
2609
|
-
_createElementVNode("div", { class: "tool-title" }, _toDisplayString(fileName), 1 /* TEXT */)
|
|
2610
|
-
_createElementVNode("div", { class: "tool-meta" }, "Workspace file")
|
|
2751
|
+
_createElementVNode("div", { class: "tool-title" }, _toDisplayString(fileName), 1 /* TEXT */)
|
|
2611
2752
|
]),
|
|
2612
2753
|
(_openBlock(), _createElementBlock("svg", {
|
|
2613
2754
|
class: "tool-chevron",
|
|
2614
2755
|
viewBox: "0 0 24 24",
|
|
2615
2756
|
fill: "none",
|
|
2616
2757
|
stroke: "currentColor",
|
|
2617
|
-
"stroke-width": "2"
|
|
2758
|
+
"stroke-width": "2",
|
|
2759
|
+
"aria-hidden": "true"
|
|
2618
2760
|
}, [
|
|
2619
2761
|
_createElementVNode("path", { d: "M9 18l6-6-6-6" })
|
|
2620
2762
|
]))
|
|
@@ -2628,6 +2770,10 @@ return function render(_ctx, _cache) {
|
|
|
2628
2770
|
"aria-labelledby": "openclaw-configs-title"
|
|
2629
2771
|
}, [
|
|
2630
2772
|
_createElementVNode("div", { class: "settings-card-body" }, [
|
|
2773
|
+
_createElementVNode("h3", {
|
|
2774
|
+
class: "openclaw-section-title",
|
|
2775
|
+
id: "openclaw-configs-title"
|
|
2776
|
+
}, _toDisplayString(_ctx.t('tab.config')), 1 /* TEXT */),
|
|
2631
2777
|
_createElementVNode("div", { class: "card-list openclaw-card-list" }, [
|
|
2632
2778
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.openclawConfigs, (config, name) => {
|
|
2633
2779
|
return (_openBlock(), _createElementBlock("div", {
|
|
@@ -3825,7 +3971,7 @@ return function render(_ctx, _cache) {
|
|
|
3825
3971
|
_createCommentVNode(" Pi 新增供应商模板选择模态框 "),
|
|
3826
3972
|
(_ctx.showAddPiProviderModal && !_ctx.editingPiProvider)
|
|
3827
3973
|
? (_openBlock(), _createElementBlock("div", {
|
|
3828
|
-
key:
|
|
3974
|
+
key: 1,
|
|
3829
3975
|
class: "modal-overlay",
|
|
3830
3976
|
onClick: _withModifiers(_ctx.cancelAddPiProviderModal, ["self"])
|
|
3831
3977
|
}, [
|
|
@@ -3839,7 +3985,6 @@ return function render(_ctx, _cache) {
|
|
|
3839
3985
|
class: "modal-title",
|
|
3840
3986
|
id: "pi-provider-picker-modal-title"
|
|
3841
3987
|
}, _toDisplayString(_ctx.t('pi.providers.addModal.title')), 1 /* TEXT */),
|
|
3842
|
-
_createElementVNode("div", { class: "config-template-hint" }, _toDisplayString(_ctx.t('pi.providers.addModal.subtitle')), 1 /* TEXT */),
|
|
3843
3988
|
_createElementVNode("div", { class: "pi-picker" }, [
|
|
3844
3989
|
_withDirectives(_createElementVNode("input", {
|
|
3845
3990
|
class: "form-input",
|
|
@@ -3897,7 +4042,7 @@ return function render(_ctx, _cache) {
|
|
|
3897
4042
|
_createCommentVNode(" Pi 供应商编辑器模态框 "),
|
|
3898
4043
|
(_ctx.editingPiProvider)
|
|
3899
4044
|
? (_openBlock(), _createElementBlock("div", {
|
|
3900
|
-
key:
|
|
4045
|
+
key: 2,
|
|
3901
4046
|
class: "modal-overlay",
|
|
3902
4047
|
onClick: _withModifiers(_ctx.closePiProviderEditor, ["self"])
|
|
3903
4048
|
}, [
|
|
@@ -4141,6 +4286,198 @@ return function render(_ctx, _cache) {
|
|
|
4141
4286
|
])
|
|
4142
4287
|
], 8 /* PROPS */, ["onClick"]))
|
|
4143
4288
|
: _createCommentVNode("v-if", true),
|
|
4289
|
+
_withDirectives(_createElementVNode("section", {
|
|
4290
|
+
id: "panel-routing",
|
|
4291
|
+
class: "mode-content",
|
|
4292
|
+
role: "tabpanel",
|
|
4293
|
+
"aria-labelledby": "tab-routing"
|
|
4294
|
+
}, [
|
|
4295
|
+
_createElementVNode("div", { class: "routing-test" }, [
|
|
4296
|
+
_createElementVNode("form", {
|
|
4297
|
+
novalidate: "",
|
|
4298
|
+
onSubmit: _withModifiers(_ctx.runModelTest, ["prevent"]),
|
|
4299
|
+
"aria-busy": _ctx.modelTestRunning
|
|
4300
|
+
}, [
|
|
4301
|
+
_createElementVNode("fieldset", {
|
|
4302
|
+
disabled: _ctx.modelTestRunning || _ctx.modelTestLoading
|
|
4303
|
+
}, [
|
|
4304
|
+
_createElementVNode("legend", { class: "routing-test-legend" }, _toDisplayString(_ctx.t('modelTest.selection')), 1 /* TEXT */),
|
|
4305
|
+
_createElementVNode("div", { class: "routing-test-heading" }, [
|
|
4306
|
+
_createElementVNode("div", {
|
|
4307
|
+
class: "segmented-control",
|
|
4308
|
+
role: "group",
|
|
4309
|
+
"aria-label": _ctx.t('modelTest.source')
|
|
4310
|
+
}, [
|
|
4311
|
+
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(['codex', 'pi'], (target) => {
|
|
4312
|
+
return _createElementVNode("button", {
|
|
4313
|
+
key: target,
|
|
4314
|
+
type: "button",
|
|
4315
|
+
class: _normalizeClass(['segment', { active: _ctx.modelTestTarget === target }]),
|
|
4316
|
+
"aria-pressed": _ctx.modelTestTarget === target,
|
|
4317
|
+
onClick: $event => (_ctx.setModelTestTarget(target))
|
|
4318
|
+
}, _toDisplayString(target === 'codex' ? 'Codex' : 'Pi'), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"])
|
|
4319
|
+
}), 64 /* STABLE_FRAGMENT */))
|
|
4320
|
+
], 8 /* PROPS */, ["aria-label"]),
|
|
4321
|
+
_createElementVNode("button", {
|
|
4322
|
+
type: "button",
|
|
4323
|
+
class: "btn-tool routing-icon-btn",
|
|
4324
|
+
disabled: _ctx.modelTestLoading || _ctx.modelTestRunning,
|
|
4325
|
+
"aria-label": _ctx.t('routing.refresh'),
|
|
4326
|
+
title: _ctx.t('routing.refresh'),
|
|
4327
|
+
onClick: _ctx.loadModelTestCatalog
|
|
4328
|
+
}, [
|
|
4329
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
4330
|
+
viewBox: "0 0 24 24",
|
|
4331
|
+
fill: "none",
|
|
4332
|
+
stroke: "currentColor",
|
|
4333
|
+
"stroke-width": "1.75",
|
|
4334
|
+
focusable: "false"
|
|
4335
|
+
}, [
|
|
4336
|
+
_createElementVNode("path", { d: "M20 7v5h-5M4 17v-5h5M6 7a7 7 0 0 1 12-1l2 3M4 15l2 3a7 7 0 0 0 12-1" })
|
|
4337
|
+
]))
|
|
4338
|
+
], 8 /* PROPS */, ["disabled", "aria-label", "title", "onClick"])
|
|
4339
|
+
]),
|
|
4340
|
+
_createElementVNode("div", { class: "routing-form-head" }, [
|
|
4341
|
+
_createElementVNode("label", { class: "routing-field" }, [
|
|
4342
|
+
_createElementVNode("span", { class: "form-label" }, _toDisplayString(_ctx.t('routing.provider')), 1 /* TEXT */),
|
|
4343
|
+
_withDirectives(_createElementVNode("select", {
|
|
4344
|
+
class: "model-select",
|
|
4345
|
+
"onUpdate:modelValue": $event => ((_ctx.modelTestProvider) = $event),
|
|
4346
|
+
onChange: _ctx.selectModelTestProvider
|
|
4347
|
+
}, [
|
|
4348
|
+
_createElementVNode("option", {
|
|
4349
|
+
value: "",
|
|
4350
|
+
disabled: ""
|
|
4351
|
+
}, _toDisplayString(_ctx.t('routing.selectProvider')), 1 /* TEXT */),
|
|
4352
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.modelTestProviders(), (provider) => {
|
|
4353
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
4354
|
+
key: provider.name,
|
|
4355
|
+
value: provider.name
|
|
4356
|
+
}, _toDisplayString(provider.name), 9 /* TEXT, PROPS */, ["value"]))
|
|
4357
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
4358
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "onChange"]), [
|
|
4359
|
+
[_vModelSelect, _ctx.modelTestProvider]
|
|
4360
|
+
])
|
|
4361
|
+
]),
|
|
4362
|
+
_createElementVNode("label", { class: "routing-field" }, [
|
|
4363
|
+
_createElementVNode("span", { class: "form-label" }, _toDisplayString(_ctx.t('routing.model')), 1 /* TEXT */),
|
|
4364
|
+
_withDirectives(_createElementVNode("select", {
|
|
4365
|
+
class: "model-select",
|
|
4366
|
+
"onUpdate:modelValue": $event => ((_ctx.modelTestModel) = $event)
|
|
4367
|
+
}, [
|
|
4368
|
+
_createElementVNode("option", {
|
|
4369
|
+
value: "",
|
|
4370
|
+
disabled: ""
|
|
4371
|
+
}, _toDisplayString(_ctx.t('modelTest.selectModel')), 1 /* TEXT */),
|
|
4372
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.modelTestModels(), (model) => {
|
|
4373
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
4374
|
+
key: model,
|
|
4375
|
+
value: model
|
|
4376
|
+
}, _toDisplayString(model), 9 /* TEXT, PROPS */, ["value"]))
|
|
4377
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
4378
|
+
], 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
4379
|
+
[_vModelSelect, _ctx.modelTestModel]
|
|
4380
|
+
])
|
|
4381
|
+
])
|
|
4382
|
+
]),
|
|
4383
|
+
(!_ctx.modelTestLoading && !_ctx.modelTestModels().length)
|
|
4384
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4385
|
+
key: 0,
|
|
4386
|
+
class: "routing-hint"
|
|
4387
|
+
}, [
|
|
4388
|
+
_createTextVNode(_toDisplayString(_ctx.t('modelTest.empty')) + " ", 1 /* TEXT */),
|
|
4389
|
+
_createElementVNode("button", {
|
|
4390
|
+
type: "button",
|
|
4391
|
+
class: "btn-tool",
|
|
4392
|
+
onClick: $event => (_ctx.switchConfigMode(_ctx.modelTestTarget))
|
|
4393
|
+
}, _toDisplayString(_ctx.t('routing.openConfig')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
4394
|
+
]))
|
|
4395
|
+
: _createCommentVNode("v-if", true),
|
|
4396
|
+
_createElementVNode("label", { class: "routing-field routing-test-prompt" }, [
|
|
4397
|
+
_createElementVNode("span", { class: "form-label" }, _toDisplayString(_ctx.t('modelTest.prompt')), 1 /* TEXT */),
|
|
4398
|
+
_withDirectives(_createElementVNode("textarea", {
|
|
4399
|
+
class: "form-input",
|
|
4400
|
+
"onUpdate:modelValue": $event => ((_ctx.modelTestPrompt) = $event),
|
|
4401
|
+
rows: "4",
|
|
4402
|
+
maxlength: "8000"
|
|
4403
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
4404
|
+
[_vModelText, _ctx.modelTestPrompt]
|
|
4405
|
+
])
|
|
4406
|
+
]),
|
|
4407
|
+
_createElementVNode("div", { class: "routing-test-actions" }, [
|
|
4408
|
+
_createElementVNode("button", {
|
|
4409
|
+
type: "submit",
|
|
4410
|
+
class: "btn-tool btn-primary",
|
|
4411
|
+
disabled: !_ctx.modelTestPrompt.trim() || !_ctx.modelTestModels().length
|
|
4412
|
+
}, _toDisplayString(_ctx.t(_ctx.modelTestRunning ? 'modelTest.running' : 'modelTest.run')), 9 /* TEXT, PROPS */, ["disabled"])
|
|
4413
|
+
])
|
|
4414
|
+
], 8 /* PROPS */, ["disabled"])
|
|
4415
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit", "aria-busy"]),
|
|
4416
|
+
(_ctx.modelTestError)
|
|
4417
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4418
|
+
key: 0,
|
|
4419
|
+
class: "routing-error",
|
|
4420
|
+
role: "alert"
|
|
4421
|
+
}, _toDisplayString(_ctx.modelTestError), 1 /* TEXT */))
|
|
4422
|
+
: _createCommentVNode("v-if", true),
|
|
4423
|
+
_createElementVNode("div", {
|
|
4424
|
+
class: "routing-test-response",
|
|
4425
|
+
"aria-live": "polite",
|
|
4426
|
+
"aria-busy": _ctx.modelTestRunning
|
|
4427
|
+
}, [
|
|
4428
|
+
(_ctx.modelTestLoading)
|
|
4429
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4430
|
+
key: 0,
|
|
4431
|
+
class: "routing-hint",
|
|
4432
|
+
role: "status"
|
|
4433
|
+
}, _toDisplayString(_ctx.t('modelTest.loading')), 1 /* TEXT */))
|
|
4434
|
+
: (_ctx.modelTestResult)
|
|
4435
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
4436
|
+
_createElementVNode("div", { class: "routing-test-result-head" }, [
|
|
4437
|
+
_createElementVNode("strong", null, _toDisplayString(_ctx.modelTestResult.provider) + " / " + _toDisplayString(_ctx.modelTestResult.responseModel || _ctx.modelTestResult.model), 1 /* TEXT */),
|
|
4438
|
+
_createElementVNode("span", { class: "routing-hint" }, [
|
|
4439
|
+
_createTextVNode(_toDisplayString(_ctx.t(_ctx.modelTestRunning ? 'modelTest.running' : _ctx.modelTestResult.ok ? 'modelTest.completed' : 'modelTest.failed')), 1 /* TEXT */),
|
|
4440
|
+
(!_ctx.modelTestRunning)
|
|
4441
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
|
|
4442
|
+
_createTextVNode(" · " + _toDisplayString(_ctx.modelTestDuration()), 1 /* TEXT */)
|
|
4443
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4444
|
+
: _createCommentVNode("v-if", true)
|
|
4445
|
+
])
|
|
4446
|
+
]),
|
|
4447
|
+
_createElementVNode("p", { class: "routing-test-question" }, _toDisplayString(_ctx.modelTestResult.prompt), 1 /* TEXT */),
|
|
4448
|
+
(!_ctx.modelTestRunning && !_ctx.modelTestResult.ok)
|
|
4449
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4450
|
+
key: 0,
|
|
4451
|
+
class: "routing-error",
|
|
4452
|
+
role: "alert"
|
|
4453
|
+
}, _toDisplayString(_ctx.modelTestResult.error), 1 /* TEXT */))
|
|
4454
|
+
: (!_ctx.modelTestRunning)
|
|
4455
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
4456
|
+
(_ctx.modelTestRenderedResponse.html)
|
|
4457
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
4458
|
+
key: 0,
|
|
4459
|
+
class: "routing-test-answer",
|
|
4460
|
+
innerHTML: _ctx.modelTestRenderedResponse.html
|
|
4461
|
+
}, null, 8 /* PROPS */, ["innerHTML"]))
|
|
4462
|
+
: (_openBlock(), _createElementBlock("p", {
|
|
4463
|
+
key: 1,
|
|
4464
|
+
class: "routing-test-answer routing-test-plain"
|
|
4465
|
+
}, _toDisplayString(_ctx.modelTestResult.text), 1 /* TEXT */)),
|
|
4466
|
+
(_ctx.modelTestResult.incomplete)
|
|
4467
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4468
|
+
key: 2,
|
|
4469
|
+
class: "routing-hint"
|
|
4470
|
+
}, _toDisplayString(_ctx.t('modelTest.incomplete')), 1 /* TEXT */))
|
|
4471
|
+
: _createCommentVNode("v-if", true)
|
|
4472
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4473
|
+
: _createCommentVNode("v-if", true)
|
|
4474
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4475
|
+
: _createCommentVNode("v-if", true)
|
|
4476
|
+
], 8 /* PROPS */, ["aria-busy"])
|
|
4477
|
+
])
|
|
4478
|
+
], 512 /* NEED_PATCH */), [
|
|
4479
|
+
[_vShow, _ctx.mainTab === 'routing']
|
|
4480
|
+
]),
|
|
4144
4481
|
_createCommentVNode(" 会话浏览模式 "),
|
|
4145
4482
|
_withDirectives(_createElementVNode("div", {
|
|
4146
4483
|
class: "mode-content session-browser-refined",
|
|
@@ -4372,10 +4709,595 @@ return function render(_ctx, _cache) {
|
|
|
4372
4709
|
_createElementVNode("pre", null, _toDisplayString(_ctx.sessionContextHealthFocusedNode.text), 1 /* TEXT */)
|
|
4373
4710
|
], 8 /* PROPS */, ["data-context-node-id", "aria-label"]))
|
|
4374
4711
|
: _createCommentVNode("v-if", true),
|
|
4712
|
+
(_ctx.sessionContextHealth)
|
|
4713
|
+
? (_openBlock(), _createElementBlock("section", {
|
|
4714
|
+
key: 2,
|
|
4715
|
+
class: "context-window-reference",
|
|
4716
|
+
"aria-label": _ctx.t('features.windowReference')
|
|
4717
|
+
}, [
|
|
4718
|
+
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
4719
|
+
_createElementVNode("h4", null, _toDisplayString(_ctx.t('features.windowReference')), 1 /* TEXT */),
|
|
4720
|
+
(_ctx.contextReference?.percentage !== undefined)
|
|
4721
|
+
? (_openBlock(), _createElementBlock("small", {
|
|
4722
|
+
key: 0,
|
|
4723
|
+
class: "feature-meta"
|
|
4724
|
+
}, _toDisplayString(_ctx.t('features.windowSource.' + _ctx.contextReference.source)), 1 /* TEXT */))
|
|
4725
|
+
: _createCommentVNode("v-if", true)
|
|
4726
|
+
]),
|
|
4727
|
+
(_ctx.contextReference?.percentage !== undefined)
|
|
4728
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4729
|
+
key: 0,
|
|
4730
|
+
class: "feature-hint"
|
|
4731
|
+
}, _toDisplayString(_ctx.t('features.contextEstimate', { percent: _ctx.contextReference.percentage.toFixed(2), window: _ctx.contextReference.window })), 1 /* TEXT */))
|
|
4732
|
+
: (_openBlock(), _createElementBlock("p", {
|
|
4733
|
+
key: 1,
|
|
4734
|
+
class: "feature-hint"
|
|
4735
|
+
}, _toDisplayString(_ctx.t('features.windowStatus.' + (_ctx.contextReference?.status || 'unknown'))), 1 /* TEXT */)),
|
|
4736
|
+
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
4737
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.windowSettings')), 1 /* TEXT */),
|
|
4738
|
+
_createElementVNode("div", { class: "feature-window-fields" }, [
|
|
4739
|
+
(_ctx.sessionContextHealth.models?.length)
|
|
4740
|
+
? (_openBlock(), _createElementBlock("label", { key: 0 }, [
|
|
4741
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.model')), 1 /* TEXT */),
|
|
4742
|
+
_withDirectives(_createElementVNode("select", {
|
|
4743
|
+
"onUpdate:modelValue": $event => ((_ctx.contextSelectedModel) = $event),
|
|
4744
|
+
"aria-label": _ctx.t('features.model')
|
|
4745
|
+
}, [
|
|
4746
|
+
_createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('features.chooseModel')), 1 /* TEXT */),
|
|
4747
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionContextHealth.models, (model) => {
|
|
4748
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
4749
|
+
key: model,
|
|
4750
|
+
value: model
|
|
4751
|
+
}, _toDisplayString(model), 9 /* TEXT, PROPS */, ["value"]))
|
|
4752
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
4753
|
+
], 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
|
|
4754
|
+
[_vModelSelect, _ctx.contextSelectedModel]
|
|
4755
|
+
])
|
|
4756
|
+
]))
|
|
4757
|
+
: _createCommentVNode("v-if", true),
|
|
4758
|
+
_createElementVNode("label", null, [
|
|
4759
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.contextWindow')), 1 /* TEXT */),
|
|
4760
|
+
_withDirectives(_createElementVNode("input", {
|
|
4761
|
+
"onUpdate:modelValue": $event => ((_ctx.contextWindowInput) = $event),
|
|
4762
|
+
type: "number",
|
|
4763
|
+
min: "1",
|
|
4764
|
+
step: "1",
|
|
4765
|
+
"aria-label": _ctx.t('features.contextWindow')
|
|
4766
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
|
|
4767
|
+
[_vModelText, _ctx.contextWindowInput]
|
|
4768
|
+
])
|
|
4769
|
+
]),
|
|
4770
|
+
_createElementVNode("button", {
|
|
4771
|
+
type: "button",
|
|
4772
|
+
class: "btn-mini",
|
|
4773
|
+
onClick: $event => (_ctx.saveContextPreferences(false)),
|
|
4774
|
+
disabled: _ctx.contextReference?.status === 'invalid'
|
|
4775
|
+
}, _toDisplayString(_ctx.t('features.save')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
4776
|
+
])
|
|
4777
|
+
]),
|
|
4778
|
+
(_ctx.contextReference && ['warning', 'high'].includes(_ctx.contextReference.status) && !_ctx.contextReminderDismissed)
|
|
4779
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
4780
|
+
key: 2,
|
|
4781
|
+
role: "status",
|
|
4782
|
+
class: "feature-window-warning"
|
|
4783
|
+
}, [
|
|
4784
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.windowStatus.' + _ctx.contextReference.status)), 1 /* TEXT */),
|
|
4785
|
+
_createElementVNode("div", { class: "feature-record-actions" }, [
|
|
4786
|
+
_createElementVNode("button", {
|
|
4787
|
+
type: "button",
|
|
4788
|
+
class: "btn-mini",
|
|
4789
|
+
onClick: $event => (_ctx.handoffExpanded = true)
|
|
4790
|
+
}, _toDisplayString(_ctx.t('features.handoffs')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
4791
|
+
_createElementVNode("button", {
|
|
4792
|
+
type: "button",
|
|
4793
|
+
class: "btn-mini feature-quiet",
|
|
4794
|
+
onClick: $event => (_ctx.saveContextPreferences(true))
|
|
4795
|
+
}, _toDisplayString(_ctx.t('features.dismiss')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
4796
|
+
])
|
|
4797
|
+
]))
|
|
4798
|
+
: _createCommentVNode("v-if", true)
|
|
4799
|
+
], 8 /* PROPS */, ["aria-label"]))
|
|
4800
|
+
: _createCommentVNode("v-if", true),
|
|
4375
4801
|
_createElementVNode("pre", { class: "session-standalone-text" }, _toDisplayString(_ctx.sessionStandaloneText), 1 /* TEXT */)
|
|
4376
4802
|
]))
|
|
4377
4803
|
]))
|
|
4378
4804
|
: (_openBlock(), _createElementBlock("div", { key: 1 }, [
|
|
4805
|
+
_createElementVNode("section", {
|
|
4806
|
+
class: "session-features",
|
|
4807
|
+
"aria-label": _ctx.t('features.title')
|
|
4808
|
+
}, [
|
|
4809
|
+
_createElementVNode("header", { class: "feature-toolbar" }, [
|
|
4810
|
+
_createElementVNode("div", {
|
|
4811
|
+
class: "feature-tabs",
|
|
4812
|
+
role: "group",
|
|
4813
|
+
"aria-label": _ctx.t('features.title')
|
|
4814
|
+
}, [
|
|
4815
|
+
_createElementVNode("button", {
|
|
4816
|
+
type: "button",
|
|
4817
|
+
"aria-expanded": _ctx.featureView === 'bookmarks',
|
|
4818
|
+
onClick: $event => (_ctx.openFeatureView('bookmarks'))
|
|
4819
|
+
}, _toDisplayString(_ctx.t('features.bookmarks')), 9 /* TEXT, PROPS */, ["aria-expanded", "onClick"]),
|
|
4820
|
+
_createElementVNode("button", {
|
|
4821
|
+
type: "button",
|
|
4822
|
+
"aria-expanded": _ctx.featureView === 'search',
|
|
4823
|
+
onClick: $event => (_ctx.openFeatureView('search'))
|
|
4824
|
+
}, _toDisplayString(_ctx.t('features.index')), 9 /* TEXT, PROPS */, ["aria-expanded", "onClick"]),
|
|
4825
|
+
_createElementVNode("button", {
|
|
4826
|
+
type: "button",
|
|
4827
|
+
"aria-expanded": _ctx.featureView === 'projects',
|
|
4828
|
+
onClick: $event => (_ctx.openFeatureView('projects'))
|
|
4829
|
+
}, _toDisplayString(_ctx.t('features.projects')), 9 /* TEXT, PROPS */, ["aria-expanded", "onClick"])
|
|
4830
|
+
], 8 /* PROPS */, ["aria-label"]),
|
|
4831
|
+
(_ctx.selectedContextIds.length)
|
|
4832
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
4833
|
+
key: 0,
|
|
4834
|
+
type: "button",
|
|
4835
|
+
class: "btn-mini",
|
|
4836
|
+
onClick: _ctx.generateSelectedHandoff,
|
|
4837
|
+
disabled: _ctx.featureBusy
|
|
4838
|
+
}, _toDisplayString(_ctx.t('features.generateDraft', { count: _ctx.selectedContextIds.length })), 9 /* TEXT, PROPS */, ["onClick", "disabled"]))
|
|
4839
|
+
: _createCommentVNode("v-if", true)
|
|
4840
|
+
]),
|
|
4841
|
+
(_ctx.featureError)
|
|
4842
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4843
|
+
key: 0,
|
|
4844
|
+
class: "form-error feature-feedback",
|
|
4845
|
+
role: "alert"
|
|
4846
|
+
}, _toDisplayString(_ctx.featureError), 1 /* TEXT */))
|
|
4847
|
+
: _createCommentVNode("v-if", true),
|
|
4848
|
+
(_ctx.featureView === 'search')
|
|
4849
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
4850
|
+
key: 1,
|
|
4851
|
+
class: "feature-content"
|
|
4852
|
+
}, [
|
|
4853
|
+
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
4854
|
+
_createElementVNode("h3", null, _toDisplayString(_ctx.t('features.index')), 1 /* TEXT */),
|
|
4855
|
+
_createElementVNode("div", { class: "feature-actions" }, [
|
|
4856
|
+
_createElementVNode("button", {
|
|
4857
|
+
type: "button",
|
|
4858
|
+
class: "btn-mini",
|
|
4859
|
+
onClick: $event => (_ctx.refreshSessionIndex(false)),
|
|
4860
|
+
disabled: _ctx.indexReport?.job.status === 'running'
|
|
4861
|
+
}, _toDisplayString(_ctx.t('features.refreshIndex')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
4862
|
+
_createElementVNode("button", {
|
|
4863
|
+
type: "button",
|
|
4864
|
+
class: "btn-mini feature-quiet",
|
|
4865
|
+
onClick: $event => (_ctx.refreshSessionIndex(true)),
|
|
4866
|
+
disabled: _ctx.indexReport?.job.status === 'running'
|
|
4867
|
+
}, _toDisplayString(_ctx.t('features.rebuildIndex')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
4868
|
+
(_ctx.indexReport?.job.status === 'running')
|
|
4869
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
4870
|
+
key: 0,
|
|
4871
|
+
type: "button",
|
|
4872
|
+
class: "btn-mini",
|
|
4873
|
+
onClick: _ctx.cancelSessionIndex
|
|
4874
|
+
}, _toDisplayString(_ctx.t('features.cancel')), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
4875
|
+
: _createCommentVNode("v-if", true)
|
|
4876
|
+
])
|
|
4877
|
+
]),
|
|
4878
|
+
(_ctx.indexReport)
|
|
4879
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
4880
|
+
key: 0,
|
|
4881
|
+
class: "feature-meta",
|
|
4882
|
+
role: "status"
|
|
4883
|
+
}, [
|
|
4884
|
+
_createElementVNode("span", {
|
|
4885
|
+
class: "feature-status",
|
|
4886
|
+
"data-status": _ctx.indexReport.job.status
|
|
4887
|
+
}, _toDisplayString(_ctx.t('features.status.' + _ctx.indexReport.job.status)), 9 /* TEXT, PROPS */, ["data-status"]),
|
|
4888
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.indexStatus', { count: _ctx.indexReport.indexed, processed: _ctx.indexReport.job.processed, total: _ctx.indexReport.job.candidates })), 1 /* TEXT */)
|
|
4889
|
+
]))
|
|
4890
|
+
: _createCommentVNode("v-if", true),
|
|
4891
|
+
_createElementVNode("form", {
|
|
4892
|
+
class: "feature-actions feature-search-form",
|
|
4893
|
+
onSubmit: _withModifiers(_ctx.searchSessionIndex, ["prevent"])
|
|
4894
|
+
}, [
|
|
4895
|
+
_withDirectives(_createElementVNode("input", {
|
|
4896
|
+
"onUpdate:modelValue": $event => ((_ctx.indexQuery) = $event),
|
|
4897
|
+
"aria-label": _ctx.t('features.search'),
|
|
4898
|
+
placeholder: _ctx.t('features.search')
|
|
4899
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"]), [
|
|
4900
|
+
[_vModelText, _ctx.indexQuery]
|
|
4901
|
+
]),
|
|
4902
|
+
_createElementVNode("button", {
|
|
4903
|
+
class: "btn-mini feature-primary",
|
|
4904
|
+
disabled: _ctx.featureBusy || !_ctx.indexQuery.trim() || !_ctx.indexReport?.updatedAt
|
|
4905
|
+
}, _toDisplayString(_ctx.t('features.search')), 9 /* TEXT, PROPS */, ["disabled"])
|
|
4906
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
|
|
4907
|
+
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
4908
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.searchScope')), 1 /* TEXT */),
|
|
4909
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.indexScope')), 1 /* TEXT */)
|
|
4910
|
+
]),
|
|
4911
|
+
(_ctx.indexReport?.failures.length)
|
|
4912
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4913
|
+
key: 1,
|
|
4914
|
+
class: "form-error",
|
|
4915
|
+
role: "alert"
|
|
4916
|
+
}, _toDisplayString(_ctx.t('features.indexFailures', { count: _ctx.indexReport.failures.length })), 1 /* TEXT */))
|
|
4917
|
+
: _createCommentVNode("v-if", true),
|
|
4918
|
+
(_ctx.featureBusy)
|
|
4919
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4920
|
+
key: 2,
|
|
4921
|
+
class: "feature-loading",
|
|
4922
|
+
role: "status"
|
|
4923
|
+
}, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
|
|
4924
|
+
: _createCommentVNode("v-if", true),
|
|
4925
|
+
(_ctx.indexResults)
|
|
4926
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 3 }, [
|
|
4927
|
+
_createElementVNode("p", { class: "feature-meta" }, _toDisplayString(_ctx.t('features.coverage', { scanned: _ctx.indexResults.scanned, total: _ctx.indexResults.candidates })), 1 /* TEXT */),
|
|
4928
|
+
(!_ctx.indexResults.complete)
|
|
4929
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4930
|
+
key: 0,
|
|
4931
|
+
class: "feature-hint"
|
|
4932
|
+
}, _toDisplayString(_ctx.t('features.partial')), 1 /* TEXT */))
|
|
4933
|
+
: _createCommentVNode("v-if", true),
|
|
4934
|
+
(!_ctx.indexResults.results.length)
|
|
4935
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4936
|
+
key: 1,
|
|
4937
|
+
class: "feature-empty"
|
|
4938
|
+
}, _toDisplayString(_ctx.t('features.empty')), 1 /* TEXT */))
|
|
4939
|
+
: _createCommentVNode("v-if", true),
|
|
4940
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.indexResults.results, (result) => {
|
|
4941
|
+
return (_openBlock(), _createElementBlock("article", {
|
|
4942
|
+
key: result.session.key + result.nodeId,
|
|
4943
|
+
class: "feature-record"
|
|
4944
|
+
}, [
|
|
4945
|
+
_createElementVNode("header", { class: "feature-record-heading" }, [
|
|
4946
|
+
_createElementVNode("h4", null, _toDisplayString(result.session.title || result.session.sessionId), 1 /* TEXT */),
|
|
4947
|
+
_createElementVNode("span", { class: "feature-source" }, _toDisplayString(result.session.source), 1 /* TEXT */)
|
|
4948
|
+
]),
|
|
4949
|
+
_createElementVNode("small", {
|
|
4950
|
+
class: "feature-path",
|
|
4951
|
+
title: result.session.cwd
|
|
4952
|
+
}, _toDisplayString(result.session.cwd), 9 /* TEXT, PROPS */, ["title"]),
|
|
4953
|
+
_createElementVNode("pre", { class: "feature-excerpt" }, _toDisplayString(result.snippet), 1 /* TEXT */),
|
|
4954
|
+
_createElementVNode("div", { class: "feature-record-actions" }, [
|
|
4955
|
+
_createElementVNode("button", {
|
|
4956
|
+
type: "button",
|
|
4957
|
+
class: "btn-mini",
|
|
4958
|
+
onClick: $event => (_ctx.openIndexedMessage(result))
|
|
4959
|
+
}, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
4960
|
+
]),
|
|
4961
|
+
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
4962
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.context')), 1 /* TEXT */),
|
|
4963
|
+
_createElementVNode("pre", null, _toDisplayString(result.before), 1 /* TEXT */),
|
|
4964
|
+
_createElementVNode("pre", null, _toDisplayString(result.after), 1 /* TEXT */)
|
|
4965
|
+
])
|
|
4966
|
+
]))
|
|
4967
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
4968
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4969
|
+
: _createCommentVNode("v-if", true)
|
|
4970
|
+
]))
|
|
4971
|
+
: _createCommentVNode("v-if", true),
|
|
4972
|
+
(_ctx.featureView === 'projects')
|
|
4973
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
4974
|
+
key: 2,
|
|
4975
|
+
class: "feature-content"
|
|
4976
|
+
}, [
|
|
4977
|
+
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
4978
|
+
_createElementVNode("h3", null, _toDisplayString(_ctx.t('features.projects')), 1 /* TEXT */),
|
|
4979
|
+
(_ctx.projectReport)
|
|
4980
|
+
? (_openBlock(), _createElementBlock("small", {
|
|
4981
|
+
key: 0,
|
|
4982
|
+
class: "feature-meta"
|
|
4983
|
+
}, _toDisplayString(_ctx.t('features.readAt', { time: _ctx.projectReport.readAt })), 1 /* TEXT */))
|
|
4984
|
+
: _createCommentVNode("v-if", true)
|
|
4985
|
+
]),
|
|
4986
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.projectHistory')), 1 /* TEXT */),
|
|
4987
|
+
(_ctx.featureBusy)
|
|
4988
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4989
|
+
key: 0,
|
|
4990
|
+
class: "feature-loading",
|
|
4991
|
+
role: "status"
|
|
4992
|
+
}, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
|
|
4993
|
+
: _createCommentVNode("v-if", true),
|
|
4994
|
+
(_ctx.projectReport)
|
|
4995
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
4996
|
+
(_ctx.projectReport.failures.length)
|
|
4997
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4998
|
+
key: 0,
|
|
4999
|
+
class: "form-error"
|
|
5000
|
+
}, _toDisplayString(_ctx.t('features.indexFailures', { count: _ctx.projectReport.failures.length })), 1 /* TEXT */))
|
|
5001
|
+
: _createCommentVNode("v-if", true),
|
|
5002
|
+
_createElementVNode("div", {
|
|
5003
|
+
class: "feature-project-picker",
|
|
5004
|
+
role: "group",
|
|
5005
|
+
"aria-label": _ctx.t('features.projects')
|
|
5006
|
+
}, [
|
|
5007
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.projects, (project) => {
|
|
5008
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
5009
|
+
key: project.key,
|
|
5010
|
+
type: "button",
|
|
5011
|
+
onClick: $event => (_ctx.loadProjectWorkspace(project.key)),
|
|
5012
|
+
disabled: _ctx.featureBusy,
|
|
5013
|
+
"aria-pressed": _ctx.projectSelected === project.key && !!_ctx.projectReport.detail
|
|
5014
|
+
}, [
|
|
5015
|
+
_createElementVNode("span", { class: "feature-project-label" }, [
|
|
5016
|
+
_createElementVNode("strong", null, _toDisplayString(project.cwd.split(/[\\/]/).filter(Boolean).pop() || project.cwd || _ctx.t('features.unassigned')), 1 /* TEXT */),
|
|
5017
|
+
_createElementVNode("small", {
|
|
5018
|
+
class: "feature-path",
|
|
5019
|
+
title: project.cwd
|
|
5020
|
+
}, _toDisplayString(project.cwd || _ctx.t('features.unassigned')), 9 /* TEXT, PROPS */, ["title"])
|
|
5021
|
+
]),
|
|
5022
|
+
_createElementVNode("span", { class: "feature-count" }, _toDisplayString(project.sessionCount), 1 /* TEXT */)
|
|
5023
|
+
], 8 /* PROPS */, ["onClick", "disabled", "aria-pressed"]))
|
|
5024
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5025
|
+
], 8 /* PROPS */, ["aria-label"]),
|
|
5026
|
+
(_ctx.projectReport.detail)
|
|
5027
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
5028
|
+
_createElementVNode("div", { class: "feature-section-heading feature-project-heading" }, [
|
|
5029
|
+
_createElementVNode("h4", {
|
|
5030
|
+
class: "feature-path",
|
|
5031
|
+
title: _ctx.projectReport.detail.cwd
|
|
5032
|
+
}, _toDisplayString(_ctx.projectReport.detail.cwd || _ctx.t('features.unassigned')), 9 /* TEXT, PROPS */, ["title"])
|
|
5033
|
+
]),
|
|
5034
|
+
(_ctx.projectReport.detail.truncated)
|
|
5035
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5036
|
+
key: 0,
|
|
5037
|
+
class: "feature-hint"
|
|
5038
|
+
}, _toDisplayString(_ctx.t('features.partial')), 1 /* TEXT */))
|
|
5039
|
+
: _createCommentVNode("v-if", true),
|
|
5040
|
+
_createElementVNode("div", { class: "feature-project-sessions" }, [
|
|
5041
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.sessions, (session) => {
|
|
5042
|
+
return (_openBlock(), _createElementBlock("article", {
|
|
5043
|
+
key: session.source + session.sessionId,
|
|
5044
|
+
class: "feature-session-row"
|
|
5045
|
+
}, [
|
|
5046
|
+
_createElementVNode("button", {
|
|
5047
|
+
type: "button",
|
|
5048
|
+
onClick: $event => (_ctx.selectSession(session))
|
|
5049
|
+
}, _toDisplayString(session.title || session.sessionId), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
5050
|
+
_createElementVNode("small", { class: "feature-meta" }, _toDisplayString(session.source) + " · " + _toDisplayString(session.timestamp), 1 /* TEXT */)
|
|
5051
|
+
]))
|
|
5052
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5053
|
+
]),
|
|
5054
|
+
_createElementVNode("details", {
|
|
5055
|
+
class: "feature-disclosure",
|
|
5056
|
+
open: !!_ctx.projectReport.detail.bookmarks.length
|
|
5057
|
+
}, [
|
|
5058
|
+
_createElementVNode("summary", null, [
|
|
5059
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.bookmarks')) + " ", 1 /* TEXT */),
|
|
5060
|
+
_createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.projectReport.detail.bookmarks.length), 1 /* TEXT */)
|
|
5061
|
+
]),
|
|
5062
|
+
_createElementVNode("div", { class: "feature-link-list" }, [
|
|
5063
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.bookmarks, (item) => {
|
|
5064
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
5065
|
+
key: item.id,
|
|
5066
|
+
type: "button",
|
|
5067
|
+
onClick: $event => (_ctx.locateBookmark(item))
|
|
5068
|
+
}, _toDisplayString(item.note || item.excerpt.slice(0, 80)), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
5069
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5070
|
+
])
|
|
5071
|
+
], 8 /* PROPS */, ["open"]),
|
|
5072
|
+
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
5073
|
+
_createElementVNode("summary", null, [
|
|
5074
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.prompts')) + " ", 1 /* TEXT */),
|
|
5075
|
+
_createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.projectReport.detail.prompts.length), 1 /* TEXT */)
|
|
5076
|
+
]),
|
|
5077
|
+
_createElementVNode("div", { class: "feature-link-list" }, [
|
|
5078
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.prompts, (file) => {
|
|
5079
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
5080
|
+
key: file,
|
|
5081
|
+
type: "button",
|
|
5082
|
+
onClick: $event => (_ctx.openProjectPrompt(file))
|
|
5083
|
+
}, _toDisplayString(file), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
5084
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5085
|
+
]),
|
|
5086
|
+
(_ctx.projectPrompt)
|
|
5087
|
+
? (_openBlock(), _createElementBlock("pre", {
|
|
5088
|
+
key: 0,
|
|
5089
|
+
class: "feature-code"
|
|
5090
|
+
}, _toDisplayString(_ctx.projectPrompt.content), 1 /* TEXT */))
|
|
5091
|
+
: _createCommentVNode("v-if", true)
|
|
5092
|
+
]),
|
|
5093
|
+
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
5094
|
+
_createElementVNode("summary", null, [
|
|
5095
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.handoffs')) + " ", 1 /* TEXT */),
|
|
5096
|
+
_createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.projectReport.detail.handoffs.length), 1 /* TEXT */)
|
|
5097
|
+
]),
|
|
5098
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.handoffs, (record) => {
|
|
5099
|
+
return (_openBlock(), _createElementBlock("p", {
|
|
5100
|
+
key: record.source + record.id,
|
|
5101
|
+
class: "feature-meta"
|
|
5102
|
+
}, _toDisplayString(record.source) + " · " + _toDisplayString(record.target) + " · " + _toDisplayString(record.createdAt) + " · " + _toDisplayString(_ctx.handoffStatusLabel(record.status)), 1 /* TEXT */))
|
|
5103
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5104
|
+
]),
|
|
5105
|
+
(_ctx.projectSelected)
|
|
5106
|
+
? (_openBlock(), _createElementBlock("details", {
|
|
5107
|
+
key: 1,
|
|
5108
|
+
class: "feature-disclosure"
|
|
5109
|
+
}, [
|
|
5110
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.projectMapping')), 1 /* TEXT */),
|
|
5111
|
+
_createElementVNode("form", {
|
|
5112
|
+
class: "feature-actions feature-search-form",
|
|
5113
|
+
onSubmit: _withModifiers(_ctx.mapProjectWorkspace, ["prevent"])
|
|
5114
|
+
}, [
|
|
5115
|
+
_withDirectives(_createElementVNode("input", {
|
|
5116
|
+
"onUpdate:modelValue": $event => ((_ctx.projectAlias) = $event),
|
|
5117
|
+
"aria-label": _ctx.t('features.projectPath'),
|
|
5118
|
+
placeholder: _ctx.t('features.projectPath')
|
|
5119
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"]), [
|
|
5120
|
+
[_vModelText, _ctx.projectAlias]
|
|
5121
|
+
]),
|
|
5122
|
+
_createElementVNode("button", {
|
|
5123
|
+
class: "btn-mini",
|
|
5124
|
+
disabled: _ctx.featureBusy
|
|
5125
|
+
}, _toDisplayString(_ctx.t('features.saveMapping')), 9 /* TEXT, PROPS */, ["disabled"])
|
|
5126
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"])
|
|
5127
|
+
]))
|
|
5128
|
+
: _createCommentVNode("v-if", true)
|
|
5129
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
5130
|
+
: _createCommentVNode("v-if", true)
|
|
5131
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
5132
|
+
: _createCommentVNode("v-if", true)
|
|
5133
|
+
]))
|
|
5134
|
+
: _createCommentVNode("v-if", true),
|
|
5135
|
+
(_ctx.featureView === 'bookmarks')
|
|
5136
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
5137
|
+
key: 3,
|
|
5138
|
+
class: "feature-content"
|
|
5139
|
+
}, [
|
|
5140
|
+
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
5141
|
+
_createElementVNode("h3", null, _toDisplayString(_ctx.t('features.bookmarks')), 1 /* TEXT */),
|
|
5142
|
+
_createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.bookmarks.length), 1 /* TEXT */)
|
|
5143
|
+
]),
|
|
5144
|
+
_createElementVNode("form", {
|
|
5145
|
+
onSubmit: _withModifiers(_ctx.loadBookmarks, ["prevent"])
|
|
5146
|
+
}, [
|
|
5147
|
+
_createElementVNode("div", { class: "feature-actions feature-search-form" }, [
|
|
5148
|
+
_withDirectives(_createElementVNode("input", {
|
|
5149
|
+
"onUpdate:modelValue": $event => ((_ctx.bookmarkQuery) = $event),
|
|
5150
|
+
"aria-label": _ctx.t('features.search'),
|
|
5151
|
+
placeholder: _ctx.t('features.search')
|
|
5152
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"]), [
|
|
5153
|
+
[_vModelText, _ctx.bookmarkQuery]
|
|
5154
|
+
]),
|
|
5155
|
+
_createElementVNode("button", {
|
|
5156
|
+
class: "btn-mini feature-primary",
|
|
5157
|
+
disabled: _ctx.featureBusy
|
|
5158
|
+
}, _toDisplayString(_ctx.t('features.search')), 9 /* TEXT, PROPS */, ["disabled"])
|
|
5159
|
+
]),
|
|
5160
|
+
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
5161
|
+
_createElementVNode("summary", null, [
|
|
5162
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.moreFilters')) + " ", 1 /* TEXT */),
|
|
5163
|
+
(_ctx.bookmarkTag || _ctx.bookmarkProject)
|
|
5164
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
5165
|
+
key: 0,
|
|
5166
|
+
class: "feature-count"
|
|
5167
|
+
}, _toDisplayString((_ctx.bookmarkTag ? 1 : 0) + (_ctx.bookmarkProject ? 1 : 0)), 1 /* TEXT */))
|
|
5168
|
+
: _createCommentVNode("v-if", true)
|
|
5169
|
+
]),
|
|
5170
|
+
_createElementVNode("div", { class: "feature-filter-fields" }, [
|
|
5171
|
+
_createElementVNode("label", null, [
|
|
5172
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.tag')), 1 /* TEXT */),
|
|
5173
|
+
_withDirectives(_createElementVNode("input", {
|
|
5174
|
+
"onUpdate:modelValue": $event => ((_ctx.bookmarkTag) = $event),
|
|
5175
|
+
"aria-label": _ctx.t('features.tag')
|
|
5176
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
|
|
5177
|
+
[_vModelText, _ctx.bookmarkTag]
|
|
5178
|
+
])
|
|
5179
|
+
]),
|
|
5180
|
+
_createElementVNode("label", null, [
|
|
5181
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.projectPath')), 1 /* TEXT */),
|
|
5182
|
+
_withDirectives(_createElementVNode("input", {
|
|
5183
|
+
"onUpdate:modelValue": $event => ((_ctx.bookmarkProject) = $event),
|
|
5184
|
+
"aria-label": _ctx.t('features.projectPath')
|
|
5185
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
|
|
5186
|
+
[_vModelText, _ctx.bookmarkProject]
|
|
5187
|
+
])
|
|
5188
|
+
])
|
|
5189
|
+
])
|
|
5190
|
+
])
|
|
5191
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
|
|
5192
|
+
(_ctx.featureBusy)
|
|
5193
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5194
|
+
key: 0,
|
|
5195
|
+
class: "feature-loading",
|
|
5196
|
+
role: "status"
|
|
5197
|
+
}, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
|
|
5198
|
+
: (!_ctx.bookmarks.length)
|
|
5199
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
5200
|
+
key: 1,
|
|
5201
|
+
class: "feature-empty"
|
|
5202
|
+
}, [
|
|
5203
|
+
_createElementVNode("p", null, _toDisplayString(_ctx.t('features.empty')), 1 /* TEXT */)
|
|
5204
|
+
]))
|
|
5205
|
+
: _createCommentVNode("v-if", true),
|
|
5206
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.bookmarks, (item) => {
|
|
5207
|
+
return (_openBlock(), _createElementBlock("article", {
|
|
5208
|
+
key: item.id,
|
|
5209
|
+
class: "feature-record"
|
|
5210
|
+
}, [
|
|
5211
|
+
_createElementVNode("header", { class: "feature-record-heading" }, [
|
|
5212
|
+
_createElementVNode("span", { class: "feature-source" }, _toDisplayString(item.source), 1 /* TEXT */),
|
|
5213
|
+
_createElementVNode("small", { class: "feature-meta" }, _toDisplayString(item.updatedAt), 1 /* TEXT */)
|
|
5214
|
+
]),
|
|
5215
|
+
_createElementVNode("small", {
|
|
5216
|
+
class: "feature-path",
|
|
5217
|
+
title: item.cwd
|
|
5218
|
+
}, _toDisplayString(item.cwd), 9 /* TEXT, PROPS */, ["title"]),
|
|
5219
|
+
_createElementVNode("pre", { class: "feature-excerpt" }, _toDisplayString(item.excerpt), 1 /* TEXT */),
|
|
5220
|
+
(item.note)
|
|
5221
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5222
|
+
key: 0,
|
|
5223
|
+
class: "feature-note"
|
|
5224
|
+
}, _toDisplayString(item.note), 1 /* TEXT */))
|
|
5225
|
+
: _createCommentVNode("v-if", true),
|
|
5226
|
+
(item.tags.length)
|
|
5227
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
5228
|
+
key: 1,
|
|
5229
|
+
class: "feature-tags"
|
|
5230
|
+
}, [
|
|
5231
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.tags, (tag) => {
|
|
5232
|
+
return (_openBlock(), _createElementBlock("span", {
|
|
5233
|
+
key: tag,
|
|
5234
|
+
class: "feature-tag"
|
|
5235
|
+
}, _toDisplayString(tag), 1 /* TEXT */))
|
|
5236
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5237
|
+
]))
|
|
5238
|
+
: _createCommentVNode("v-if", true),
|
|
5239
|
+
_createElementVNode("div", { class: "feature-record-actions" }, [
|
|
5240
|
+
_createElementVNode("button", {
|
|
5241
|
+
type: "button",
|
|
5242
|
+
class: "btn-mini",
|
|
5243
|
+
onClick: $event => (_ctx.locateBookmark(item)),
|
|
5244
|
+
disabled: _ctx.featureBusy
|
|
5245
|
+
}, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
5246
|
+
_createElementVNode("button", {
|
|
5247
|
+
type: "button",
|
|
5248
|
+
class: "btn-mini feature-quiet",
|
|
5249
|
+
onClick: $event => (_ctx.bookmarkEditor = { ...item, tagsText: item.tags.join(', ') }),
|
|
5250
|
+
disabled: _ctx.featureBusy
|
|
5251
|
+
}, _toDisplayString(_ctx.t('features.edit')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
5252
|
+
_createElementVNode("button", {
|
|
5253
|
+
type: "button",
|
|
5254
|
+
class: "btn-mini feature-quiet",
|
|
5255
|
+
onClick: $event => (_ctx.removeBookmark(item)),
|
|
5256
|
+
disabled: _ctx.featureBusy
|
|
5257
|
+
}, _toDisplayString(_ctx.t('features.unbookmark')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5258
|
+
])
|
|
5259
|
+
]))
|
|
5260
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
5261
|
+
(_ctx.bookmarkEditor)
|
|
5262
|
+
? (_openBlock(), _createElementBlock("form", {
|
|
5263
|
+
key: 2,
|
|
5264
|
+
onSubmit: _withModifiers(_ctx.saveBookmark, ["prevent"]),
|
|
5265
|
+
class: "feature-editor"
|
|
5266
|
+
}, [
|
|
5267
|
+
_createElementVNode("label", null, [
|
|
5268
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.note')), 1 /* TEXT */),
|
|
5269
|
+
_withDirectives(_createElementVNode("textarea", {
|
|
5270
|
+
"onUpdate:modelValue": $event => ((_ctx.bookmarkEditor.note) = $event),
|
|
5271
|
+
maxlength: "4000"
|
|
5272
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
5273
|
+
[_vModelText, _ctx.bookmarkEditor.note]
|
|
5274
|
+
])
|
|
5275
|
+
]),
|
|
5276
|
+
_createElementVNode("label", null, [
|
|
5277
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.tags')), 1 /* TEXT */),
|
|
5278
|
+
_withDirectives(_createElementVNode("input", {
|
|
5279
|
+
"onUpdate:modelValue": $event => ((_ctx.bookmarkEditor.tagsText) = $event)
|
|
5280
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
5281
|
+
[_vModelText, _ctx.bookmarkEditor.tagsText]
|
|
5282
|
+
])
|
|
5283
|
+
]),
|
|
5284
|
+
_createElementVNode("div", { class: "feature-actions" }, [
|
|
5285
|
+
_createElementVNode("button", {
|
|
5286
|
+
class: "btn-mini feature-primary",
|
|
5287
|
+
disabled: _ctx.featureBusy
|
|
5288
|
+
}, _toDisplayString(_ctx.t('features.save')), 9 /* TEXT, PROPS */, ["disabled"]),
|
|
5289
|
+
_createElementVNode("button", {
|
|
5290
|
+
type: "button",
|
|
5291
|
+
class: "btn-mini feature-quiet",
|
|
5292
|
+
onClick: $event => (_ctx.bookmarkEditor = null),
|
|
5293
|
+
disabled: _ctx.featureBusy
|
|
5294
|
+
}, _toDisplayString(_ctx.t('features.cancel')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5295
|
+
])
|
|
5296
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]))
|
|
5297
|
+
: _createCommentVNode("v-if", true)
|
|
5298
|
+
]))
|
|
5299
|
+
: _createCommentVNode("v-if", true)
|
|
5300
|
+
], 8 /* PROPS */, ["aria-label"]),
|
|
4379
5301
|
_createElementVNode("div", { class: "selector-section session-selector-section" }, [
|
|
4380
5302
|
_createElementVNode("div", {
|
|
4381
5303
|
class: "selector-header",
|
|
@@ -4827,7 +5749,7 @@ return function render(_ctx, _cache) {
|
|
|
4827
5749
|
class: "thread-handoff-body"
|
|
4828
5750
|
}, [
|
|
4829
5751
|
_createElementVNode("div", { class: "session-workspace-header session-workspace-card-wide" }, [
|
|
4830
|
-
_createElementVNode("p", { class: "session-workspace-subtitle" }, "
|
|
5752
|
+
_createElementVNode("p", { class: "session-workspace-subtitle" }, "草稿在切换会话后保留,刷新后清空。"),
|
|
4831
5753
|
_createElementVNode("button", {
|
|
4832
5754
|
class: "btn-mini",
|
|
4833
5755
|
type: "button",
|
|
@@ -4871,10 +5793,7 @@ return function render(_ctx, _cache) {
|
|
|
4871
5793
|
])
|
|
4872
5794
|
]),
|
|
4873
5795
|
_createElementVNode("details", { class: "thread-handoff-optional" }, [
|
|
4874
|
-
_createElementVNode("summary", { class: "thread-handoff-optional-summary" },
|
|
4875
|
-
_createTextVNode("补充上下文 "),
|
|
4876
|
-
_createElementVNode("small", null, "已完成 / 阻塞 / 步骤 / 文件 · 可选")
|
|
4877
|
-
]),
|
|
5796
|
+
_createElementVNode("summary", { class: "thread-handoff-optional-summary" }, "补充上下文"),
|
|
4878
5797
|
_createElementVNode("div", { class: "session-workspace-grid" }, [
|
|
4879
5798
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffFields, (field) => {
|
|
4880
5799
|
return (_openBlock(), _createElementBlock("label", {
|
|
@@ -4896,7 +5815,6 @@ return function render(_ctx, _cache) {
|
|
|
4896
5815
|
])
|
|
4897
5816
|
]),
|
|
4898
5817
|
_createElementVNode("div", { class: "thread-handoff-actions" }, [
|
|
4899
|
-
_createElementVNode("span", { class: "session-workspace-subtitle" }, "生成后可复制到目标会话"),
|
|
4900
5818
|
_createElementVNode("button", {
|
|
4901
5819
|
class: "btn-mini thread-handoff-submit",
|
|
4902
5820
|
type: "submit",
|
|
@@ -4935,21 +5853,55 @@ return function render(_ctx, _cache) {
|
|
|
4935
5853
|
]))
|
|
4936
5854
|
: _createCommentVNode("v-if", true),
|
|
4937
5855
|
_createElementVNode("p", { class: "session-workspace-subtitle session-workspace-card-wide" }, "复制不会自动发送。读取确认由目标代理通过 CLI ack 提交。"),
|
|
5856
|
+
_createElementVNode("div", { class: "feature-actions" }, [
|
|
5857
|
+
_createElementVNode("button", {
|
|
5858
|
+
type: "button",
|
|
5859
|
+
class: "btn-mini",
|
|
5860
|
+
onClick: _ctx.generateSelectedHandoff,
|
|
5861
|
+
disabled: _ctx.featureBusy || !_ctx.selectedContextIds.length
|
|
5862
|
+
}, _toDisplayString(_ctx.t('features.generateDraft', { count: _ctx.selectedContextIds.length })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5863
|
+
]),
|
|
5864
|
+
(_ctx.handoffDraftEvidence.length)
|
|
5865
|
+
? (_openBlock(), _createElementBlock("p", { key: 3 }, _toDisplayString(_ctx.t('features.draftReview')), 1 /* TEXT */))
|
|
5866
|
+
: _createCommentVNode("v-if", true),
|
|
5867
|
+
(_ctx.handoffUnverified.length)
|
|
5868
|
+
? (_openBlock(), _createElementBlock("details", { key: 4 }, [
|
|
5869
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.unverified', { count: _ctx.handoffUnverified.length })), 1 /* TEXT */),
|
|
5870
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffUnverified, (text, index) => {
|
|
5871
|
+
return (_openBlock(), _createElementBlock("pre", { key: index }, _toDisplayString(text), 1 /* TEXT */))
|
|
5872
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5873
|
+
]))
|
|
5874
|
+
: _createCommentVNode("v-if", true),
|
|
5875
|
+
(_ctx.handoffDraftEvidence.length)
|
|
5876
|
+
? (_openBlock(), _createElementBlock("ul", { key: 5 }, [
|
|
5877
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffDraftEvidence, (item) => {
|
|
5878
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
5879
|
+
key: item.nodeId
|
|
5880
|
+
}, [
|
|
5881
|
+
_createElementVNode("button", {
|
|
5882
|
+
type: "button",
|
|
5883
|
+
class: "btn-mini",
|
|
5884
|
+
onClick: $event => (_ctx.locateDraftEvidence(item))
|
|
5885
|
+
}, _toDisplayString(item.nodeId) + " · " + _toDisplayString(_ctx.t('features.evidence.' + item.status)), 9 /* TEXT, PROPS */, ["onClick"])
|
|
5886
|
+
]))
|
|
5887
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5888
|
+
]))
|
|
5889
|
+
: _createCommentVNode("v-if", true),
|
|
4938
5890
|
(_ctx.handoffLoading)
|
|
4939
5891
|
? (_openBlock(), _createElementBlock("p", {
|
|
4940
|
-
key:
|
|
5892
|
+
key: 6,
|
|
4941
5893
|
class: "session-workspace-card-wide",
|
|
4942
5894
|
role: "status"
|
|
4943
5895
|
}, "正在加载交接历史…"))
|
|
4944
5896
|
: (!_ctx.handoffError && !_ctx.handoffRecords.length)
|
|
4945
5897
|
? (_openBlock(), _createElementBlock("p", {
|
|
4946
|
-
key:
|
|
5898
|
+
key: 7,
|
|
4947
5899
|
class: "session-workspace-empty session-workspace-card-wide"
|
|
4948
5900
|
}, "暂无交接记录"))
|
|
4949
5901
|
: _createCommentVNode("v-if", true),
|
|
4950
5902
|
(_ctx.handoffRecords.length)
|
|
4951
5903
|
? (_openBlock(), _createElementBlock("ol", {
|
|
4952
|
-
key:
|
|
5904
|
+
key: 8,
|
|
4953
5905
|
class: "session-workspace-list session-workspace-card-wide"
|
|
4954
5906
|
}, [
|
|
4955
5907
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffRecords, (record) => {
|
|
@@ -5386,6 +6338,126 @@ return function render(_ctx, _cache) {
|
|
|
5386
6338
|
_createElementVNode("pre", null, _toDisplayString(_ctx.sessionContextHealthFocusedNode.text), 1 /* TEXT */)
|
|
5387
6339
|
], 8 /* PROPS */, ["data-context-node-id", "aria-label"]))
|
|
5388
6340
|
: _createCommentVNode("v-if", true),
|
|
6341
|
+
(_ctx.sessionContextHealth)
|
|
6342
|
+
? (_openBlock(), _createElementBlock("section", {
|
|
6343
|
+
key: 3,
|
|
6344
|
+
class: "context-window-reference",
|
|
6345
|
+
"aria-label": _ctx.t('features.windowReference')
|
|
6346
|
+
}, [
|
|
6347
|
+
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
6348
|
+
_createElementVNode("h4", null, _toDisplayString(_ctx.t('features.windowReference')), 1 /* TEXT */),
|
|
6349
|
+
(_ctx.contextReference?.percentage !== undefined)
|
|
6350
|
+
? (_openBlock(), _createElementBlock("small", {
|
|
6351
|
+
key: 0,
|
|
6352
|
+
class: "feature-meta"
|
|
6353
|
+
}, _toDisplayString(_ctx.t('features.windowSource.' + _ctx.contextReference.source)), 1 /* TEXT */))
|
|
6354
|
+
: _createCommentVNode("v-if", true)
|
|
6355
|
+
]),
|
|
6356
|
+
(_ctx.contextReference?.percentage !== undefined)
|
|
6357
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
6358
|
+
key: 0,
|
|
6359
|
+
class: "feature-hint"
|
|
6360
|
+
}, _toDisplayString(_ctx.t('features.contextEstimate', { percent: _ctx.contextReference.percentage.toFixed(2), window: _ctx.contextReference.window })), 1 /* TEXT */))
|
|
6361
|
+
: (_openBlock(), _createElementBlock("p", {
|
|
6362
|
+
key: 1,
|
|
6363
|
+
class: "feature-hint"
|
|
6364
|
+
}, _toDisplayString(_ctx.t('features.windowStatus.' + (_ctx.contextReference?.status || 'unknown'))), 1 /* TEXT */)),
|
|
6365
|
+
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
6366
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.windowSettings')), 1 /* TEXT */),
|
|
6367
|
+
_createElementVNode("div", { class: "feature-window-fields" }, [
|
|
6368
|
+
(_ctx.sessionContextHealth.models?.length)
|
|
6369
|
+
? (_openBlock(), _createElementBlock("label", { key: 0 }, [
|
|
6370
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.model')), 1 /* TEXT */),
|
|
6371
|
+
_withDirectives(_createElementVNode("select", {
|
|
6372
|
+
"onUpdate:modelValue": $event => ((_ctx.contextSelectedModel) = $event),
|
|
6373
|
+
"aria-label": _ctx.t('features.model')
|
|
6374
|
+
}, [
|
|
6375
|
+
_createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('features.chooseModel')), 1 /* TEXT */),
|
|
6376
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionContextHealth.models, (model) => {
|
|
6377
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
6378
|
+
key: model,
|
|
6379
|
+
value: model
|
|
6380
|
+
}, _toDisplayString(model), 9 /* TEXT, PROPS */, ["value"]))
|
|
6381
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
6382
|
+
], 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
|
|
6383
|
+
[_vModelSelect, _ctx.contextSelectedModel]
|
|
6384
|
+
])
|
|
6385
|
+
]))
|
|
6386
|
+
: _createCommentVNode("v-if", true),
|
|
6387
|
+
_createElementVNode("label", null, [
|
|
6388
|
+
_createTextVNode(_toDisplayString(_ctx.t('features.contextWindow')), 1 /* TEXT */),
|
|
6389
|
+
_withDirectives(_createElementVNode("input", {
|
|
6390
|
+
"onUpdate:modelValue": $event => ((_ctx.contextWindowInput) = $event),
|
|
6391
|
+
type: "number",
|
|
6392
|
+
min: "1",
|
|
6393
|
+
step: "1",
|
|
6394
|
+
"aria-label": _ctx.t('features.contextWindow')
|
|
6395
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
|
|
6396
|
+
[_vModelText, _ctx.contextWindowInput]
|
|
6397
|
+
])
|
|
6398
|
+
]),
|
|
6399
|
+
_createElementVNode("button", {
|
|
6400
|
+
type: "button",
|
|
6401
|
+
class: "btn-mini",
|
|
6402
|
+
onClick: $event => (_ctx.saveContextPreferences(false)),
|
|
6403
|
+
disabled: _ctx.contextReference?.status === 'invalid'
|
|
6404
|
+
}, _toDisplayString(_ctx.t('features.save')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
6405
|
+
])
|
|
6406
|
+
]),
|
|
6407
|
+
(_ctx.contextReference && ['warning', 'high'].includes(_ctx.contextReference.status) && !_ctx.contextReminderDismissed)
|
|
6408
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
6409
|
+
key: 2,
|
|
6410
|
+
role: "status",
|
|
6411
|
+
class: "feature-window-warning"
|
|
6412
|
+
}, [
|
|
6413
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.windowStatus.' + _ctx.contextReference.status)), 1 /* TEXT */),
|
|
6414
|
+
_createElementVNode("div", { class: "feature-record-actions" }, [
|
|
6415
|
+
_createElementVNode("button", {
|
|
6416
|
+
type: "button",
|
|
6417
|
+
class: "btn-mini",
|
|
6418
|
+
onClick: $event => (_ctx.handoffExpanded = true)
|
|
6419
|
+
}, _toDisplayString(_ctx.t('features.handoffs')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
6420
|
+
_createElementVNode("button", {
|
|
6421
|
+
type: "button",
|
|
6422
|
+
class: "btn-mini feature-quiet",
|
|
6423
|
+
onClick: $event => (_ctx.saveContextPreferences(true))
|
|
6424
|
+
}, _toDisplayString(_ctx.t('features.dismiss')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
6425
|
+
])
|
|
6426
|
+
]))
|
|
6427
|
+
: _createCommentVNode("v-if", true)
|
|
6428
|
+
], 8 /* PROPS */, ["aria-label"]))
|
|
6429
|
+
: _createCommentVNode("v-if", true),
|
|
6430
|
+
(_ctx.featureFocus)
|
|
6431
|
+
? (_openBlock(), _createElementBlock("article", {
|
|
6432
|
+
key: 4,
|
|
6433
|
+
ref: "featureFocus",
|
|
6434
|
+
class: "feature-focus",
|
|
6435
|
+
tabindex: "-1"
|
|
6436
|
+
}, [
|
|
6437
|
+
_createElementVNode("div", { class: "feature-actions" }, [
|
|
6438
|
+
_createElementVNode("strong", null, _toDisplayString(_ctx.t('features.source')) + " · " + _toDisplayString(_ctx.featureFocus.id), 1 /* TEXT */),
|
|
6439
|
+
_createElementVNode("button", {
|
|
6440
|
+
type: "button",
|
|
6441
|
+
class: "btn-mini",
|
|
6442
|
+
onClick: $event => (_ctx.featureFocus = null)
|
|
6443
|
+
}, _toDisplayString(_ctx.t('features.close')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
6444
|
+
]),
|
|
6445
|
+
_createElementVNode("pre", null, _toDisplayString(_ctx.featureFocus.text), 1 /* TEXT */),
|
|
6446
|
+
_createElementVNode("div", { class: "feature-actions" }, [
|
|
6447
|
+
_createElementVNode("button", {
|
|
6448
|
+
type: "button",
|
|
6449
|
+
class: "btn-mini",
|
|
6450
|
+
onClick: $event => (_ctx.bookmarkMessage(_ctx.featureFocus)),
|
|
6451
|
+
disabled: _ctx.featureBusy
|
|
6452
|
+
}, _toDisplayString(_ctx.t('features.bookmark')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
6453
|
+
_createElementVNode("button", {
|
|
6454
|
+
type: "button",
|
|
6455
|
+
class: "btn-mini",
|
|
6456
|
+
onClick: $event => (_ctx.toggleHandoffMessage(_ctx.featureFocus))
|
|
6457
|
+
}, _toDisplayString(_ctx.t('features.selectMessage')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
6458
|
+
])
|
|
6459
|
+
], 512 /* NEED_PATCH */))
|
|
6460
|
+
: _createCommentVNode("v-if", true),
|
|
5389
6461
|
_createElementVNode("div", { class: "session-export-feedback" }, [
|
|
5390
6462
|
(_ctx.sessionExportNotice && _ctx.sessionExportNotice.key === _ctx.getSessionExportKey(_ctx.activeSession))
|
|
5391
6463
|
? (_openBlock(), _createElementBlock("p", {
|
|
@@ -5397,22 +6469,22 @@ return function render(_ctx, _cache) {
|
|
|
5397
6469
|
]),
|
|
5398
6470
|
(_ctx.sessionDetailLoading && !_ctx.sessionPreviewLoadingMore)
|
|
5399
6471
|
? (_openBlock(), _createElementBlock("div", {
|
|
5400
|
-
key:
|
|
6472
|
+
key: 5,
|
|
5401
6473
|
class: "session-preview-empty"
|
|
5402
6474
|
}, _toDisplayString(_ctx.t('sessions.preview.loadingBody')), 1 /* TEXT */))
|
|
5403
6475
|
: (_ctx.activeSessionDetailError)
|
|
5404
6476
|
? (_openBlock(), _createElementBlock("div", {
|
|
5405
|
-
key:
|
|
6477
|
+
key: 6,
|
|
5406
6478
|
class: "session-preview-empty"
|
|
5407
6479
|
}, _toDisplayString(_ctx.activeSessionDetailError), 1 /* TEXT */))
|
|
5408
6480
|
: (!_ctx.activeSessionMessages.length)
|
|
5409
6481
|
? (_openBlock(), _createElementBlock("div", {
|
|
5410
|
-
key:
|
|
6482
|
+
key: 7,
|
|
5411
6483
|
class: "session-preview-empty"
|
|
5412
6484
|
}, _toDisplayString(_ctx.t('sessions.preview.emptyMsgs')), 1 /* TEXT */))
|
|
5413
6485
|
: (_ctx.sessionPreviewRenderEnabled && !_ctx.activeSessionVisibleMessages.length)
|
|
5414
6486
|
? (_openBlock(), _createElementBlock("div", {
|
|
5415
|
-
key:
|
|
6487
|
+
key: 8,
|
|
5416
6488
|
class: "session-preview-empty"
|
|
5417
6489
|
}, [
|
|
5418
6490
|
_createElementVNode("span", null, _toDisplayString(_ctx.t('sessions.preview.rendering')), 1 /* TEXT */),
|
|
@@ -5424,11 +6496,11 @@ return function render(_ctx, _cache) {
|
|
|
5424
6496
|
]))
|
|
5425
6497
|
: (!_ctx.sessionPreviewRenderEnabled)
|
|
5426
6498
|
? (_openBlock(), _createElementBlock("div", {
|
|
5427
|
-
key:
|
|
6499
|
+
key: 9,
|
|
5428
6500
|
class: "session-preview-empty"
|
|
5429
6501
|
}, _toDisplayString(_ctx.t('sessions.preview.preparing')), 1 /* TEXT */))
|
|
5430
6502
|
: (_openBlock(), _createElementBlock("div", {
|
|
5431
|
-
key:
|
|
6503
|
+
key: 10,
|
|
5432
6504
|
class: "session-preview-body"
|
|
5433
6505
|
}, [
|
|
5434
6506
|
(_ctx.activeSessionWorkspaceSummary.available)
|
|
@@ -5583,6 +6655,7 @@ return function render(_ctx, _cache) {
|
|
|
5583
6655
|
class: _normalizeClass(['session-msg', msg.normalizedRole === 'user' ? 'user' : (msg.normalizedRole === 'system' ? 'system' : 'assistant')])
|
|
5584
6656
|
}, [
|
|
5585
6657
|
_createElementVNode("div", { class: "session-msg-header" }, [
|
|
6658
|
+
_createVNode(_component_session_message_actions, { message: msg }, null, 8 /* PROPS */, ["message"]),
|
|
5586
6659
|
_createElementVNode("div", { class: "session-msg-meta" }, [
|
|
5587
6660
|
_createElementVNode("span", { class: "session-msg-role" }, _toDisplayString(msg.roleLabel || (msg.normalizedRole === 'user' ? _ctx.t('sessions.roleLabel.user') : (msg.normalizedRole === 'system' ? _ctx.t('sessions.roleLabel.system') : _ctx.t('sessions.roleLabel.assistant')))), 1 /* TEXT */),
|
|
5588
6661
|
_createElementVNode("span", { class: "session-msg-time" }, _toDisplayString(msg.timestamp || ''), 1 /* TEXT */)
|
|
@@ -6398,17 +7471,149 @@ return function render(_ctx, _cache) {
|
|
|
6398
7471
|
])
|
|
6399
7472
|
])
|
|
6400
7473
|
])
|
|
6401
|
-
])
|
|
6402
|
-
], 512 /* NEED_PATCH */), [
|
|
6403
|
-
[_vShow, _ctx.mainTab === 'docs']
|
|
6404
|
-
]),
|
|
6405
|
-
_createCommentVNode(" 设置面板 "),
|
|
6406
|
-
_withDirectives(_createElementVNode("div", {
|
|
6407
|
-
class: "mode-content",
|
|
6408
|
-
id: "panel-settings",
|
|
6409
|
-
role: "tabpanel",
|
|
6410
|
-
"aria-labelledby": 'tab-settings'
|
|
6411
|
-
}, [
|
|
7474
|
+
])
|
|
7475
|
+
], 512 /* NEED_PATCH */), [
|
|
7476
|
+
[_vShow, _ctx.mainTab === 'docs']
|
|
7477
|
+
]),
|
|
7478
|
+
_createCommentVNode(" 设置面板 "),
|
|
7479
|
+
_withDirectives(_createElementVNode("div", {
|
|
7480
|
+
class: "mode-content",
|
|
7481
|
+
id: "panel-settings",
|
|
7482
|
+
role: "tabpanel",
|
|
7483
|
+
"aria-labelledby": 'tab-settings'
|
|
7484
|
+
}, [
|
|
7485
|
+
_createElementVNode("details", {
|
|
7486
|
+
class: "session-features feature-diagnostics",
|
|
7487
|
+
onToggle: $event => ($event.target === $event.currentTarget && $event.currentTarget.open && _ctx.loadDiagnosticTargets())
|
|
7488
|
+
}, [
|
|
7489
|
+
_createElementVNode("summary", { class: "feature-diagnostics-heading" }, [
|
|
7490
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.diagnostics')), 1 /* TEXT */),
|
|
7491
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
7492
|
+
class: "feature-diagnostics-chevron",
|
|
7493
|
+
viewBox: "0 0 24 24",
|
|
7494
|
+
fill: "none",
|
|
7495
|
+
stroke: "currentColor",
|
|
7496
|
+
"stroke-width": "1.75",
|
|
7497
|
+
"aria-hidden": "true",
|
|
7498
|
+
focusable: "false"
|
|
7499
|
+
}, [
|
|
7500
|
+
_createElementVNode("path", { d: "m9 5 7 7-7 7" })
|
|
7501
|
+
]))
|
|
7502
|
+
]),
|
|
7503
|
+
_createElementVNode("div", { class: "feature-content" }, [
|
|
7504
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.diagnosticScope')), 1 /* TEXT */),
|
|
7505
|
+
(_ctx.featureError)
|
|
7506
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7507
|
+
key: 0,
|
|
7508
|
+
class: "form-error feature-feedback",
|
|
7509
|
+
role: "alert"
|
|
7510
|
+
}, _toDisplayString(_ctx.featureError), 1 /* TEXT */))
|
|
7511
|
+
: _createCommentVNode("v-if", true),
|
|
7512
|
+
_createElementVNode("div", { class: "feature-diagnostic-options" }, [
|
|
7513
|
+
_createElementVNode("label", null, [
|
|
7514
|
+
_withDirectives(_createElementVNode("input", {
|
|
7515
|
+
type: "checkbox",
|
|
7516
|
+
"onUpdate:modelValue": $event => ((_ctx.diagnosticsRemote) = $event),
|
|
7517
|
+
disabled: _ctx.diagnosticsReport?.status === 'running'
|
|
7518
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
|
|
7519
|
+
[_vModelCheckbox, _ctx.diagnosticsRemote]
|
|
7520
|
+
]),
|
|
7521
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.remoteProbe')), 1 /* TEXT */)
|
|
7522
|
+
]),
|
|
7523
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.diagnosticsTargets, (name) => {
|
|
7524
|
+
return (_openBlock(), _createElementBlock("label", { key: name }, [
|
|
7525
|
+
_withDirectives(_createElementVNode("input", {
|
|
7526
|
+
type: "checkbox",
|
|
7527
|
+
value: name,
|
|
7528
|
+
"onUpdate:modelValue": $event => ((_ctx.diagnosticsSelected) = $event),
|
|
7529
|
+
disabled: _ctx.diagnosticsReport?.status === 'running'
|
|
7530
|
+
}, null, 8 /* PROPS */, ["value", "onUpdate:modelValue", "disabled"]), [
|
|
7531
|
+
[_vModelCheckbox, _ctx.diagnosticsSelected]
|
|
7532
|
+
]),
|
|
7533
|
+
_createElementVNode("span", null, _toDisplayString(name), 1 /* TEXT */)
|
|
7534
|
+
]))
|
|
7535
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
7536
|
+
]),
|
|
7537
|
+
_createElementVNode("div", { class: "feature-actions feature-diagnostic-controls" }, [
|
|
7538
|
+
_createElementVNode("button", {
|
|
7539
|
+
type: "button",
|
|
7540
|
+
class: "feature-button feature-primary",
|
|
7541
|
+
onClick: _ctx.startDiagnostics,
|
|
7542
|
+
disabled: _ctx.diagnosticsReport?.status === 'running'
|
|
7543
|
+
}, _toDisplayString(_ctx.t('features.check')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
7544
|
+
(_ctx.diagnosticsReport?.status === 'running')
|
|
7545
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
7546
|
+
key: 0,
|
|
7547
|
+
type: "button",
|
|
7548
|
+
class: "feature-button feature-quiet",
|
|
7549
|
+
onClick: _ctx.cancelDiagnostics
|
|
7550
|
+
}, _toDisplayString(_ctx.t('features.cancel')), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
7551
|
+
: _createCommentVNode("v-if", true),
|
|
7552
|
+
(_ctx.diagnosticsReport)
|
|
7553
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
7554
|
+
key: 1,
|
|
7555
|
+
class: "feature-status",
|
|
7556
|
+
"data-status": _ctx.diagnosticsReport.status,
|
|
7557
|
+
role: "status"
|
|
7558
|
+
}, _toDisplayString(_ctx.t('features.status.' + _ctx.diagnosticsReport.status)), 9 /* TEXT, PROPS */, ["data-status"]))
|
|
7559
|
+
: _createCommentVNode("v-if", true)
|
|
7560
|
+
]),
|
|
7561
|
+
(_ctx.diagnosticsReport)
|
|
7562
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
7563
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.diagnosticsReport.items, (item) => {
|
|
7564
|
+
return (_openBlock(), _createElementBlock("article", {
|
|
7565
|
+
key: item.id,
|
|
7566
|
+
class: "feature-record feature-diagnostic-row"
|
|
7567
|
+
}, [
|
|
7568
|
+
_createElementVNode("header", { class: "feature-record-heading" }, [
|
|
7569
|
+
_createElementVNode("strong", null, _toDisplayString(item.id === 'local' ? _ctx.t('features.localCheck') : item.id === 'provider' ? _ctx.t('features.providerCheck') : item.id), 1 /* TEXT */),
|
|
7570
|
+
_createElementVNode("span", {
|
|
7571
|
+
class: "feature-status",
|
|
7572
|
+
"data-status": item.status
|
|
7573
|
+
}, _toDisplayString(_ctx.t('features.status.' + item.status)), 9 /* TEXT, PROPS */, ["data-status"])
|
|
7574
|
+
]),
|
|
7575
|
+
_createElementVNode("small", { class: "feature-meta" }, [
|
|
7576
|
+
_createTextVNode(_toDisplayString(item.checkedAt), 1 /* TEXT */),
|
|
7577
|
+
(item.durationMs !== undefined)
|
|
7578
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
|
|
7579
|
+
_createTextVNode(" · " + _toDisplayString(item.durationMs) + " ms", 1 /* TEXT */)
|
|
7580
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
7581
|
+
: _createCommentVNode("v-if", true)
|
|
7582
|
+
]),
|
|
7583
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.evidence?.issues || [], (issue) => {
|
|
7584
|
+
return (_openBlock(), _createElementBlock("p", {
|
|
7585
|
+
key: issue.id || issue.code,
|
|
7586
|
+
class: "feature-issue"
|
|
7587
|
+
}, _toDisplayString(issue.problem || issue.code), 1 /* TEXT */))
|
|
7588
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
7589
|
+
(item.errorCode)
|
|
7590
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7591
|
+
key: 0,
|
|
7592
|
+
class: "form-error"
|
|
7593
|
+
}, _toDisplayString(_ctx.t('features.error.' + item.errorCode)), 1 /* TEXT */))
|
|
7594
|
+
: _createCommentVNode("v-if", true),
|
|
7595
|
+
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
7596
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.technicalDetails')), 1 /* TEXT */),
|
|
7597
|
+
_createElementVNode("pre", { class: "feature-code" }, _toDisplayString(JSON.stringify(item.evidence || {}, null, 2)), 1 /* TEXT */)
|
|
7598
|
+
])
|
|
7599
|
+
]))
|
|
7600
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
7601
|
+
_createElementVNode("footer", { class: "feature-record-actions feature-export-actions" }, [
|
|
7602
|
+
_createElementVNode("button", {
|
|
7603
|
+
type: "button",
|
|
7604
|
+
class: "feature-button feature-quiet",
|
|
7605
|
+
onClick: $event => (_ctx.exportDiagnostics('json'))
|
|
7606
|
+
}, _toDisplayString(_ctx.t('features.exportJson')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
7607
|
+
_createElementVNode("button", {
|
|
7608
|
+
type: "button",
|
|
7609
|
+
class: "feature-button feature-quiet",
|
|
7610
|
+
onClick: $event => (_ctx.exportDiagnostics('md'))
|
|
7611
|
+
}, _toDisplayString(_ctx.t('features.exportMarkdown')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
7612
|
+
])
|
|
7613
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
7614
|
+
: _createCommentVNode("v-if", true)
|
|
7615
|
+
])
|
|
7616
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onToggle"]),
|
|
6412
7617
|
_createElementVNode("div", { class: "settings-tab-header" }, [
|
|
6413
7618
|
_createElementVNode("div", {
|
|
6414
7619
|
class: "segmented-control",
|
|
@@ -6453,7 +7658,6 @@ return function render(_ctx, _cache) {
|
|
|
6453
7658
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6454
7659
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6455
7660
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.language.title')), 1 /* TEXT */),
|
|
6456
|
-
_createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.language.meta')), 1 /* TEXT */),
|
|
6457
7661
|
_createElementVNode("label", {
|
|
6458
7662
|
class: "selector-label",
|
|
6459
7663
|
for: "settings-language-select"
|
|
@@ -6470,8 +7674,7 @@ return function render(_ctx, _cache) {
|
|
|
6470
7674
|
value: option.code
|
|
6471
7675
|
}, _toDisplayString(option.nativeName) + " · " + _toDisplayString(option.englishName), 9 /* TEXT, PROPS */, ["value"]))
|
|
6472
7676
|
}), 128 /* KEYED_FRAGMENT */))
|
|
6473
|
-
], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange"])
|
|
6474
|
-
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.language.hint')), 1 /* TEXT */)
|
|
7677
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange"])
|
|
6475
7678
|
])
|
|
6476
7679
|
])
|
|
6477
7680
|
], 8 /* PROPS */, ["aria-label"]),
|
|
@@ -6482,25 +7685,32 @@ return function render(_ctx, _cache) {
|
|
|
6482
7685
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6483
7686
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6484
7687
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.theme.title')), 1 /* TEXT */),
|
|
6485
|
-
_createElementVNode("
|
|
6486
|
-
_createElementVNode("div", { class: "settings-toggle-group" }, [
|
|
7688
|
+
_createElementVNode("div", { class: "settings-toggle-group settings-theme-options" }, [
|
|
6487
7689
|
_createElementVNode("button", {
|
|
6488
7690
|
type: "button",
|
|
6489
7691
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'light' }]),
|
|
7692
|
+
"aria-pressed": _ctx.theme === 'light',
|
|
6490
7693
|
onClick: $event => (_ctx.setTheme('light'))
|
|
6491
|
-
}, _toDisplayString(_ctx.t('settings.theme.light')), 11 /* TEXT, CLASS, PROPS */, ["onClick"]),
|
|
7694
|
+
}, _toDisplayString(_ctx.t('settings.theme.light')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"]),
|
|
6492
7695
|
_createElementVNode("button", {
|
|
6493
7696
|
type: "button",
|
|
6494
7697
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'dark' }]),
|
|
7698
|
+
"aria-pressed": _ctx.theme === 'dark',
|
|
6495
7699
|
onClick: $event => (_ctx.setTheme('dark'))
|
|
6496
|
-
}, _toDisplayString(_ctx.t('settings.theme.dark')), 11 /* TEXT, CLASS, PROPS */, ["onClick"]),
|
|
7700
|
+
}, _toDisplayString(_ctx.t('settings.theme.dark')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"]),
|
|
6497
7701
|
_createElementVNode("button", {
|
|
6498
7702
|
type: "button",
|
|
6499
7703
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'ocean' }]),
|
|
7704
|
+
"aria-pressed": _ctx.theme === 'ocean',
|
|
6500
7705
|
onClick: $event => (_ctx.setTheme('ocean'))
|
|
6501
|
-
}, _toDisplayString(_ctx.t('settings.theme.ocean')), 11 /* TEXT, CLASS, PROPS */, ["onClick"])
|
|
6502
|
-
|
|
6503
|
-
|
|
7706
|
+
}, _toDisplayString(_ctx.t('settings.theme.ocean')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"]),
|
|
7707
|
+
_createElementVNode("button", {
|
|
7708
|
+
type: "button",
|
|
7709
|
+
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'violet' }]),
|
|
7710
|
+
"aria-pressed": _ctx.theme === 'violet',
|
|
7711
|
+
onClick: $event => (_ctx.setTheme('violet'))
|
|
7712
|
+
}, _toDisplayString(_ctx.t('settings.theme.violet')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"])
|
|
7713
|
+
])
|
|
6504
7714
|
])
|
|
6505
7715
|
])
|
|
6506
7716
|
], 8 /* PROPS */, ["aria-label"]),
|
|
@@ -6511,7 +7721,6 @@ return function render(_ctx, _cache) {
|
|
|
6511
7721
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6512
7722
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6513
7723
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.sharePrefix.title')), 1 /* TEXT */),
|
|
6514
|
-
_createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.sharePrefix.meta')), 1 /* TEXT */),
|
|
6515
7724
|
_createElementVNode("label", {
|
|
6516
7725
|
class: "selector-label",
|
|
6517
7726
|
for: "settings-share-prefix"
|
|
@@ -6536,7 +7745,6 @@ return function render(_ctx, _cache) {
|
|
|
6536
7745
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6537
7746
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6538
7747
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.templateConfirm.title')), 1 /* TEXT */),
|
|
6539
|
-
_createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.templateConfirm.meta')), 1 /* TEXT */),
|
|
6540
7748
|
_createElementVNode("label", { class: "settings-toggle-row" }, [
|
|
6541
7749
|
_createElementVNode("input", {
|
|
6542
7750
|
type: "checkbox",
|
|
@@ -6590,7 +7798,6 @@ return function render(_ctx, _cache) {
|
|
|
6590
7798
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6591
7799
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6592
7800
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.timeline.style.title')), 1 /* TEXT */),
|
|
6593
|
-
_createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.timeline.style.meta')), 1 /* TEXT */),
|
|
6594
7801
|
_createElementVNode("div", { class: "settings-toggle-group" }, [
|
|
6595
7802
|
_createElementVNode("button", {
|
|
6596
7803
|
type: "button",
|
|
@@ -6602,8 +7809,7 @@ return function render(_ctx, _cache) {
|
|
|
6602
7809
|
class: _normalizeClass(['toggle-btn', { active: _ctx.sessionTimelineStyle === 'bar' }]),
|
|
6603
7810
|
onClick: $event => (_ctx.setSessionTimelineStyle('bar'))
|
|
6604
7811
|
}, _toDisplayString(_ctx.t('settings.timeline.style.bar')), 11 /* TEXT, CLASS, PROPS */, ["onClick"])
|
|
6605
|
-
])
|
|
6606
|
-
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.timeline.style.hint')), 1 /* TEXT */)
|
|
7812
|
+
])
|
|
6607
7813
|
])
|
|
6608
7814
|
])
|
|
6609
7815
|
], 8 /* PROPS */, ["aria-label"]),
|
|
@@ -6614,7 +7820,6 @@ return function render(_ctx, _cache) {
|
|
|
6614
7820
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6615
7821
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6616
7822
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.configTabs.title')), 1 /* TEXT */),
|
|
6617
|
-
_createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.configTabs.meta')), 1 /* TEXT */),
|
|
6618
7823
|
_createElementVNode("div", { class: "settings-toggle-grid" }, [
|
|
6619
7824
|
_createElementVNode("label", { class: "settings-toggle-row" }, [
|
|
6620
7825
|
_createElementVNode("input", {
|
|
@@ -6703,8 +7908,7 @@ return function render(_ctx, _cache) {
|
|
|
6703
7908
|
}, [
|
|
6704
7909
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6705
7910
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6706
|
-
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.backup.title')), 1 /* TEXT */)
|
|
6707
|
-
_createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.backup.meta')), 1 /* TEXT */)
|
|
7911
|
+
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.backup.title')), 1 /* TEXT */)
|
|
6708
7912
|
])
|
|
6709
7913
|
]),
|
|
6710
7914
|
_createElementVNode("div", { class: "settings-card-actions" }, [
|
|
@@ -6745,7 +7949,6 @@ return function render(_ctx, _cache) {
|
|
|
6745
7949
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6746
7950
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6747
7951
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.providerCache.title')), 1 /* TEXT */),
|
|
6748
|
-
_createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.providerCache.meta')), 1 /* TEXT */),
|
|
6749
7952
|
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.providerCache.hint')), 1 /* TEXT */),
|
|
6750
7953
|
(_ctx.providerCacheSyncMessage)
|
|
6751
7954
|
? (_openBlock(), _createElementBlock("p", {
|
|
@@ -6781,7 +7984,6 @@ return function render(_ctx, _cache) {
|
|
|
6781
7984
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6782
7985
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6783
7986
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.reset.title')), 1 /* TEXT */),
|
|
6784
|
-
_createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.reset.meta')), 1 /* TEXT */),
|
|
6785
7987
|
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.reset.hint')), 1 /* TEXT */)
|
|
6786
7988
|
])
|
|
6787
7989
|
]),
|
|
@@ -6818,7 +8020,6 @@ return function render(_ctx, _cache) {
|
|
|
6818
8020
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
6819
8021
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
6820
8022
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.trashConfig.title')), 1 /* TEXT */),
|
|
6821
|
-
_createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.trashConfig.meta')), 1 /* TEXT */),
|
|
6822
8023
|
_createElementVNode("label", { class: "settings-toggle-row" }, [
|
|
6823
8024
|
_createElementVNode("input", {
|
|
6824
8025
|
type: "checkbox",
|
|
@@ -7394,8 +8595,7 @@ return function render(_ctx, _cache) {
|
|
|
7394
8595
|
}, [
|
|
7395
8596
|
_createElementVNode("div", { class: "selector-header plugins-sidebar-header" }, [
|
|
7396
8597
|
_createElementVNode("div", null, [
|
|
7397
|
-
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('plugins.sidebar.title')), 1 /* TEXT */)
|
|
7398
|
-
_createElementVNode("div", { class: "plugins-panel-note" }, _toDisplayString(_ctx.t('plugins.sidebar.note')), 1 /* TEXT */)
|
|
8598
|
+
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('plugins.sidebar.title')), 1 /* TEXT */)
|
|
7399
8599
|
])
|
|
7400
8600
|
]),
|
|
7401
8601
|
_createElementVNode("div", {
|
|
@@ -7405,6 +8605,7 @@ return function render(_ctx, _cache) {
|
|
|
7405
8605
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.pluginsCatalog, (plugin) => {
|
|
7406
8606
|
return (_openBlock(), _createElementBlock("button", {
|
|
7407
8607
|
key: 'plugin-' + plugin.id,
|
|
8608
|
+
"data-plugin-id": plugin.id,
|
|
7408
8609
|
type: "button",
|
|
7409
8610
|
class: _normalizeClass(['plugins-item', { active: _ctx.pluginsActiveId === plugin.id }]),
|
|
7410
8611
|
"aria-current": _ctx.pluginsActiveId === plugin.id ? 'page' : null,
|
|
@@ -7418,7 +8619,7 @@ return function render(_ctx, _cache) {
|
|
|
7418
8619
|
_createElementVNode("span", {
|
|
7419
8620
|
class: _normalizeClass(['pill', plugin.tone])
|
|
7420
8621
|
}, _toDisplayString(plugin.statusLabel), 3 /* TEXT, CLASS */)
|
|
7421
|
-
], 10 /* CLASS, PROPS */, ["aria-current", "disabled", "onClick"]))
|
|
8622
|
+
], 10 /* CLASS, PROPS */, ["data-plugin-id", "aria-current", "disabled", "onClick"]))
|
|
7422
8623
|
}), 128 /* KEYED_FRAGMENT */))
|
|
7423
8624
|
])
|
|
7424
8625
|
], 8 /* PROPS */, ["aria-label"]))
|
|
@@ -7452,13 +8653,7 @@ return function render(_ctx, _cache) {
|
|
|
7452
8653
|
}, [
|
|
7453
8654
|
_createElementVNode("div", { class: "plugins-panel-head" }, [
|
|
7454
8655
|
_createElementVNode("div", null, [
|
|
7455
|
-
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.title')), 1 /* TEXT */)
|
|
7456
|
-
(_ctx.pluginsActiveAttribution)
|
|
7457
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
7458
|
-
key: 0,
|
|
7459
|
-
class: "plugins-panel-note"
|
|
7460
|
-
}, _toDisplayString(_ctx.pluginsActiveAttribution), 1 /* TEXT */))
|
|
7461
|
-
: _createCommentVNode("v-if", true)
|
|
8656
|
+
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.title')), 1 /* TEXT */)
|
|
7462
8657
|
]),
|
|
7463
8658
|
(!_ctx.pluginsSidebarVisible)
|
|
7464
8659
|
? (_openBlock(), _createElementBlock("div", {
|
|
@@ -7546,15 +8741,10 @@ return function render(_ctx, _cache) {
|
|
|
7546
8741
|
key: 0,
|
|
7547
8742
|
class: "plugins-panel-note"
|
|
7548
8743
|
}, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.empty')), 1 /* TEXT */))
|
|
7549
|
-
: (
|
|
7550
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
7551
|
-
key: 1,
|
|
7552
|
-
class: "plugins-panel-note"
|
|
7553
|
-
}, _toDisplayString(_ctx.promptComposerActiveTemplate.description), 1 /* TEXT */))
|
|
7554
|
-
: _createCommentVNode("v-if", true),
|
|
8744
|
+
: _createCommentVNode("v-if", true),
|
|
7555
8745
|
(_ctx.promptComposerActiveTemplate && !_ctx.promptComposerActiveTemplate.isBuiltin)
|
|
7556
8746
|
? (_openBlock(), _createElementBlock("div", {
|
|
7557
|
-
key:
|
|
8747
|
+
key: 1,
|
|
7558
8748
|
class: "prompt-compose-actions"
|
|
7559
8749
|
}, [
|
|
7560
8750
|
_createElementVNode("button", {
|
|
@@ -7574,15 +8764,9 @@ return function render(_ctx, _cache) {
|
|
|
7574
8764
|
_createElementVNode("div", { class: "prompt-vars-head" }, [
|
|
7575
8765
|
_createElementVNode("div", null, [
|
|
7576
8766
|
_createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.title')), 1 /* TEXT */),
|
|
7577
|
-
(!_ctx.promptComposerActiveTemplate.isBuiltin)
|
|
7578
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
7579
|
-
key: 0,
|
|
7580
|
-
class: "plugins-panel-note"
|
|
7581
|
-
}, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.varsHint')), 1 /* TEXT */))
|
|
7582
|
-
: _createCommentVNode("v-if", true),
|
|
7583
8767
|
(_ctx.promptComposerMissingVars.length)
|
|
7584
8768
|
? (_openBlock(), _createElementBlock("div", {
|
|
7585
|
-
key:
|
|
8769
|
+
key: 0,
|
|
7586
8770
|
class: "plugins-panel-note"
|
|
7587
8771
|
}, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.missingCount', { count: _ctx.promptComposerMissingVars.length })), 1 /* TEXT */))
|
|
7588
8772
|
: _createCommentVNode("v-if", true)
|
|
@@ -7640,8 +8824,7 @@ return function render(_ctx, _cache) {
|
|
|
7640
8824
|
_createElementVNode("div", { class: "prompt-preview-block prompt-compose-preview" }, [
|
|
7641
8825
|
_createElementVNode("div", { class: "prompt-vars-head" }, [
|
|
7642
8826
|
_createElementVNode("div", null, [
|
|
7643
|
-
_createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.outputTitle')), 1 /* TEXT */)
|
|
7644
|
-
_createElementVNode("div", { class: "plugins-panel-note" }, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.outputHint')), 1 /* TEXT */)
|
|
8827
|
+
_createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.outputTitle')), 1 /* TEXT */)
|
|
7645
8828
|
]),
|
|
7646
8829
|
_createElementVNode("button", {
|
|
7647
8830
|
type: "button",
|
|
@@ -7887,12 +9070,6 @@ return function render(_ctx, _cache) {
|
|
|
7887
9070
|
class: "plugins-panel-note"
|
|
7888
9071
|
}, _toDisplayString(_ctx.t('plugins.promptTemplates.editor.builtinReadOnly')), 1 /* TEXT */))
|
|
7889
9072
|
: _createCommentVNode("v-if", true),
|
|
7890
|
-
(_ctx.promptTemplateDraft.isBuiltin && (_ctx.promptTemplateDraft.createdBy || (_ctx.promptTemplateDraft.maintainers && _ctx.promptTemplateDraft.maintainers.length)))
|
|
7891
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
7892
|
-
key: 1,
|
|
7893
|
-
class: "plugins-panel-note"
|
|
7894
|
-
}, _toDisplayString(_ctx.t('plugins.meta.attribution', { createdBy: _ctx.promptTemplateDraft.createdBy || '', maintainers: (_ctx.promptTemplateDraft.maintainers || []).join(', ') })), 1 /* TEXT */))
|
|
7895
|
-
: _createCommentVNode("v-if", true),
|
|
7896
9073
|
_withDirectives(_createElementVNode("input", {
|
|
7897
9074
|
class: "form-input",
|
|
7898
9075
|
type: "text",
|
|
@@ -7925,8 +9102,7 @@ return function render(_ctx, _cache) {
|
|
|
7925
9102
|
_createElementVNode("div", { class: "prompt-vars-block" }, [
|
|
7926
9103
|
_createElementVNode("div", { class: "prompt-vars-head" }, [
|
|
7927
9104
|
_createElementVNode("div", null, [
|
|
7928
|
-
_createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.title')), 1 /* TEXT */)
|
|
7929
|
-
_createElementVNode("div", { class: "plugins-panel-note" }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.hint')), 1 /* TEXT */)
|
|
9105
|
+
_createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.title')), 1 /* TEXT */)
|
|
7930
9106
|
]),
|
|
7931
9107
|
(!_ctx.promptTemplateDraft.isBuiltin)
|
|
7932
9108
|
? (_openBlock(), _createElementBlock("div", {
|
|
@@ -8003,13 +9179,7 @@ return function render(_ctx, _cache) {
|
|
|
8003
9179
|
}, [
|
|
8004
9180
|
_createElementVNode("div", { class: "plugins-panel-head" }, [
|
|
8005
9181
|
_createElementVNode("div", null, [
|
|
8006
|
-
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.textTools.title')), 1 /* TEXT */)
|
|
8007
|
-
(_ctx.pluginsActiveAttribution)
|
|
8008
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
8009
|
-
key: 0,
|
|
8010
|
-
class: "plugins-panel-note"
|
|
8011
|
-
}, _toDisplayString(_ctx.pluginsActiveAttribution), 1 /* TEXT */))
|
|
8012
|
-
: _createCommentVNode("v-if", true)
|
|
9182
|
+
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.textTools.title')), 1 /* TEXT */)
|
|
8013
9183
|
])
|
|
8014
9184
|
]),
|
|
8015
9185
|
_createElementVNode("div", {
|
|
@@ -8069,10 +9239,197 @@ return function render(_ctx, _cache) {
|
|
|
8069
9239
|
])
|
|
8070
9240
|
])
|
|
8071
9241
|
]))
|
|
8072
|
-
: (
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
9242
|
+
: (_ctx.pluginsActiveId === 'file-sharing')
|
|
9243
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
9244
|
+
key: 4,
|
|
9245
|
+
class: "plugins-panel",
|
|
9246
|
+
id: "plugin-file-sharing"
|
|
9247
|
+
}, [
|
|
9248
|
+
_createElementVNode("div", { class: "plugins-panel-head" }, [
|
|
9249
|
+
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.fileSharing.title')), 1 /* TEXT */),
|
|
9250
|
+
_createElementVNode("div", { class: "file-sharing-actions" }, [
|
|
9251
|
+
_createElementVNode("button", {
|
|
9252
|
+
type: "button",
|
|
9253
|
+
class: "btn-mini",
|
|
9254
|
+
disabled: _ctx.fileSharingBusy,
|
|
9255
|
+
onClick: $event => (_ctx.$refs.fileSharingFiles.click())
|
|
9256
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.chooseFiles')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
9257
|
+
_createElementVNode("button", {
|
|
9258
|
+
type: "button",
|
|
9259
|
+
class: "btn-mini",
|
|
9260
|
+
disabled: _ctx.fileSharingBusy,
|
|
9261
|
+
onClick: $event => (_ctx.$refs.fileSharingFolder.click())
|
|
9262
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.chooseFolder')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
9263
|
+
_createElementVNode("button", {
|
|
9264
|
+
type: "button",
|
|
9265
|
+
class: "btn-mini",
|
|
9266
|
+
disabled: _ctx.fileSharingBusy,
|
|
9267
|
+
onClick: _ctx.refreshFileSharing
|
|
9268
|
+
}, _toDisplayString(_ctx.t('common.refresh')), 9 /* TEXT, PROPS */, ["disabled", "onClick"])
|
|
9269
|
+
])
|
|
9270
|
+
]),
|
|
9271
|
+
_createElementVNode("input", {
|
|
9272
|
+
ref: "fileSharingFiles",
|
|
9273
|
+
id: "file-sharing-files",
|
|
9274
|
+
type: "file",
|
|
9275
|
+
multiple: "",
|
|
9276
|
+
hidden: "",
|
|
9277
|
+
onChange: $event => (_ctx.selectFileSharingItems($event, false))
|
|
9278
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
9279
|
+
_createElementVNode("input", {
|
|
9280
|
+
ref: "fileSharingFolder",
|
|
9281
|
+
id: "file-sharing-folder",
|
|
9282
|
+
type: "file",
|
|
9283
|
+
webkitdirectory: "",
|
|
9284
|
+
hidden: "",
|
|
9285
|
+
onChange: $event => (_ctx.selectFileSharingItems($event, true))
|
|
9286
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
9287
|
+
(_ctx.fileSharingError)
|
|
9288
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
9289
|
+
key: 0,
|
|
9290
|
+
role: "alert",
|
|
9291
|
+
class: "state-message error"
|
|
9292
|
+
}, _toDisplayString(_ctx.fileSharingError), 1 /* TEXT */))
|
|
9293
|
+
: _createCommentVNode("v-if", true),
|
|
9294
|
+
(_ctx.fileSharingPending)
|
|
9295
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
9296
|
+
key: 1,
|
|
9297
|
+
class: "file-sharing-pending"
|
|
9298
|
+
}, [
|
|
9299
|
+
_createElementVNode("p", { class: "plugins-panel-note" }, _toDisplayString(_ctx.t('plugins.fileSharing.confirm')), 1 /* TEXT */),
|
|
9300
|
+
_createElementVNode("ul", {
|
|
9301
|
+
class: "file-sharing-items",
|
|
9302
|
+
"aria-live": "polite"
|
|
9303
|
+
}, [
|
|
9304
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.fileSharingPending.entries, (file, index) => {
|
|
9305
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
9306
|
+
key: index,
|
|
9307
|
+
dir: "auto"
|
|
9308
|
+
}, _toDisplayString(file.name), 1 /* TEXT */))
|
|
9309
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
9310
|
+
]),
|
|
9311
|
+
_createElementVNode("div", { class: "file-sharing-actions" }, [
|
|
9312
|
+
_createElementVNode("button", {
|
|
9313
|
+
type: "button",
|
|
9314
|
+
class: "btn-mini",
|
|
9315
|
+
id: "upload-file-sharing",
|
|
9316
|
+
disabled: _ctx.fileSharingBusy,
|
|
9317
|
+
onClick: _ctx.uploadFileSharingItems
|
|
9318
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.upload')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
9319
|
+
_createElementVNode("button", {
|
|
9320
|
+
type: "button",
|
|
9321
|
+
class: "btn-mini",
|
|
9322
|
+
id: "cancel-file-sharing",
|
|
9323
|
+
disabled: _ctx.fileSharingBusy,
|
|
9324
|
+
onClick: $event => (_ctx.fileSharingPending = null)
|
|
9325
|
+
}, _toDisplayString(_ctx.t('common.cancel')), 9 /* TEXT, PROPS */, ["disabled", "onClick"])
|
|
9326
|
+
])
|
|
9327
|
+
]))
|
|
9328
|
+
: _createCommentVNode("v-if", true),
|
|
9329
|
+
(_ctx.fileSharingBusy)
|
|
9330
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
9331
|
+
key: 2,
|
|
9332
|
+
role: "status",
|
|
9333
|
+
class: "plugins-panel-note"
|
|
9334
|
+
}, _toDisplayString(_ctx.t('common.loading')), 1 /* TEXT */))
|
|
9335
|
+
: (!_ctx.fileSharingBatches.length)
|
|
9336
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
9337
|
+
key: 3,
|
|
9338
|
+
class: "skills-empty-state"
|
|
9339
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.empty')), 1 /* TEXT */))
|
|
9340
|
+
: _createCommentVNode("v-if", true),
|
|
9341
|
+
(_ctx.fileSharingBatches.length)
|
|
9342
|
+
? (_openBlock(), _createElementBlock("ul", {
|
|
9343
|
+
key: 4,
|
|
9344
|
+
class: "file-sharing-items file-sharing-batches"
|
|
9345
|
+
}, [
|
|
9346
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.fileSharingBatches, (batch) => {
|
|
9347
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
9348
|
+
key: batch.id
|
|
9349
|
+
}, [
|
|
9350
|
+
_createElementVNode("div", { class: "file-sharing-row" }, [
|
|
9351
|
+
_createElementVNode("strong", { dir: "auto" }, _toDisplayString(batch.folder || _ctx.t('plugins.fileSharing.files', { count: batch.files.length })), 1 /* TEXT */),
|
|
9352
|
+
_createElementVNode("button", {
|
|
9353
|
+
type: "button",
|
|
9354
|
+
class: "btn-mini file-sharing-icon file-sharing-remove",
|
|
9355
|
+
"aria-label": _ctx.t('plugins.fileSharing.remove'),
|
|
9356
|
+
title: _ctx.t('plugins.fileSharing.remove'),
|
|
9357
|
+
disabled: _ctx.fileSharingBusy,
|
|
9358
|
+
onClick: $event => (_ctx.removeFileSharingBatch(batch.id))
|
|
9359
|
+
}, [
|
|
9360
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
9361
|
+
viewBox: "0 0 24 24",
|
|
9362
|
+
fill: "none",
|
|
9363
|
+
stroke: "currentColor",
|
|
9364
|
+
"stroke-width": "1.8",
|
|
9365
|
+
"stroke-linecap": "round",
|
|
9366
|
+
"stroke-linejoin": "round",
|
|
9367
|
+
focusable: "false"
|
|
9368
|
+
}, [
|
|
9369
|
+
_createElementVNode("path", { d: "M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6m5 4v6m4-6v6" })
|
|
9370
|
+
]))
|
|
9371
|
+
], 8 /* PROPS */, ["aria-label", "title", "disabled", "onClick"])
|
|
9372
|
+
]),
|
|
9373
|
+
_createElementVNode("ul", { class: "file-sharing-items" }, [
|
|
9374
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(batch.files, (file, index) => {
|
|
9375
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
9376
|
+
key: index,
|
|
9377
|
+
class: "file-sharing-row"
|
|
9378
|
+
}, [
|
|
9379
|
+
_createElementVNode("span", { dir: "auto" }, _toDisplayString(file.name), 1 /* TEXT */),
|
|
9380
|
+
_createElementVNode("span", { class: "file-sharing-size" }, _toDisplayString(_ctx.t('plugins.fileSharing.bytes', { size: file.size })), 1 /* TEXT */),
|
|
9381
|
+
_createElementVNode("a", {
|
|
9382
|
+
class: "btn-mini file-sharing-icon",
|
|
9383
|
+
"aria-label": _ctx.t('plugins.fileSharing.download'),
|
|
9384
|
+
title: _ctx.t('plugins.fileSharing.download'),
|
|
9385
|
+
href: _ctx.fileSharingDownloadUrl(batch.id, index),
|
|
9386
|
+
download: "",
|
|
9387
|
+
referrerpolicy: "no-referrer"
|
|
9388
|
+
}, [
|
|
9389
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
9390
|
+
viewBox: "0 0 24 24",
|
|
9391
|
+
fill: "none",
|
|
9392
|
+
stroke: "currentColor",
|
|
9393
|
+
"stroke-width": "1.8",
|
|
9394
|
+
"stroke-linecap": "round",
|
|
9395
|
+
"stroke-linejoin": "round",
|
|
9396
|
+
focusable: "false"
|
|
9397
|
+
}, [
|
|
9398
|
+
_createElementVNode("path", { d: "M12 3v12m-5-5 5 5 5-5M4 16v4h16v-4" })
|
|
9399
|
+
]))
|
|
9400
|
+
], 8 /* PROPS */, ["aria-label", "title", "href"]),
|
|
9401
|
+
_createElementVNode("button", {
|
|
9402
|
+
type: "button",
|
|
9403
|
+
class: "btn-mini file-sharing-icon file-sharing-copy",
|
|
9404
|
+
"aria-label": _ctx.t('plugins.fileSharing.copyLink'),
|
|
9405
|
+
title: _ctx.t('plugins.fileSharing.copyLink'),
|
|
9406
|
+
disabled: _ctx.fileSharingBusy,
|
|
9407
|
+
onClick: $event => (_ctx.copyFileSharingLink(batch.id, index))
|
|
9408
|
+
}, [
|
|
9409
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
9410
|
+
viewBox: "0 0 24 24",
|
|
9411
|
+
fill: "none",
|
|
9412
|
+
stroke: "currentColor",
|
|
9413
|
+
"stroke-width": "1.8",
|
|
9414
|
+
"stroke-linecap": "round",
|
|
9415
|
+
"stroke-linejoin": "round",
|
|
9416
|
+
focusable: "false"
|
|
9417
|
+
}, [
|
|
9418
|
+
_createElementVNode("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" })
|
|
9419
|
+
]))
|
|
9420
|
+
], 8 /* PROPS */, ["aria-label", "title", "disabled", "onClick"])
|
|
9421
|
+
]))
|
|
9422
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
9423
|
+
])
|
|
9424
|
+
]))
|
|
9425
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
9426
|
+
]))
|
|
9427
|
+
: _createCommentVNode("v-if", true)
|
|
9428
|
+
]))
|
|
9429
|
+
: (_openBlock(), _createElementBlock("div", {
|
|
9430
|
+
key: 5,
|
|
9431
|
+
class: "skills-empty-state"
|
|
9432
|
+
}, _toDisplayString(_ctx.t('plugins.promptTemplates.noPluginSelected')), 1 /* TEXT */))
|
|
8076
9433
|
], 8 /* PROPS */, ["aria-label"])
|
|
8077
9434
|
], 2 /* CLASS */)
|
|
8078
9435
|
], 512 /* NEED_PATCH */), [
|
|
@@ -8088,7 +9445,7 @@ return function render(_ctx, _cache) {
|
|
|
8088
9445
|
_createCommentVNode(" Prompts editor "),
|
|
8089
9446
|
(_ctx.mainTab === 'prompts')
|
|
8090
9447
|
? (_openBlock(), _createElementBlock("div", {
|
|
8091
|
-
key:
|
|
9448
|
+
key: 3,
|
|
8092
9449
|
class: "mode-content mode-cards",
|
|
8093
9450
|
id: "panel-prompts",
|
|
8094
9451
|
role: "tabpanel",
|
|
@@ -8155,13 +9512,7 @@ return function render(_ctx, _cache) {
|
|
|
8155
9512
|
value: _ctx.projectClaudeMdPath,
|
|
8156
9513
|
onChange: $event => (_ctx.setProjectClaudeMdPathManual($event.target.value))
|
|
8157
9514
|
}, null, 40 /* PROPS, NEED_HYDRATION */, ["placeholder", "value", "onChange"])
|
|
8158
|
-
])
|
|
8159
|
-
(_ctx.projectClaudeMdPath)
|
|
8160
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
8161
|
-
key: 0,
|
|
8162
|
-
class: "form-hint project-path-detected"
|
|
8163
|
-
}, _toDisplayString(_ctx.t('prompts.project.detected', { path: _ctx.projectClaudeMdPath })), 1 /* TEXT */))
|
|
8164
|
-
: _createCommentVNode("v-if", true)
|
|
9515
|
+
])
|
|
8165
9516
|
]))
|
|
8166
9517
|
: _createCommentVNode("v-if", true),
|
|
8167
9518
|
(_ctx.promptsSubTab !== 'system')
|
|
@@ -8486,8 +9837,7 @@ return function render(_ctx, _cache) {
|
|
|
8486
9837
|
]),
|
|
8487
9838
|
_createElementVNode("details", { class: "prompt-presets-panel" }, [
|
|
8488
9839
|
_createElementVNode("summary", { class: "prompt-presets-summary" }, [
|
|
8489
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('prompts.presets.title')), 1 /* TEXT */)
|
|
8490
|
-
_createElementVNode("small", null, _toDisplayString(_ctx.t('prompts.presets.hint')), 1 /* TEXT */)
|
|
9840
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('prompts.presets.title')), 1 /* TEXT */)
|
|
8491
9841
|
]),
|
|
8492
9842
|
_createElementVNode("div", { class: "form-group prompt-presets-body" }, [
|
|
8493
9843
|
_createElementVNode("div", { class: "editor-frame prompt-presets-frame" }, [
|
|
@@ -8740,31 +10090,84 @@ return function render(_ctx, _cache) {
|
|
|
8740
10090
|
(_ctx.promptsSubTab === 'system')
|
|
8741
10091
|
? (_openBlock(), _createElementBlock("div", { key: 2 }, [
|
|
8742
10092
|
_createElementVNode("div", { class: "sys-prompt-controls" }, [
|
|
10093
|
+
_createElementVNode("div", { class: "sys-prompt-control-group" }, [
|
|
10094
|
+
_createElementVNode("label", {
|
|
10095
|
+
class: "form-label",
|
|
10096
|
+
for: "sys-prompt-file-select"
|
|
10097
|
+
}, _toDisplayString(_ctx.t('sysPrompt.fileLabel')), 1 /* TEXT */),
|
|
10098
|
+
_createElementVNode("select", {
|
|
10099
|
+
id: "sys-prompt-file-select",
|
|
10100
|
+
class: "form-input sys-prompt-select",
|
|
10101
|
+
value: _ctx.currentSysPromptFileName(),
|
|
10102
|
+
"aria-busy": _ctx.sysPromptFilesLoading,
|
|
10103
|
+
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible,
|
|
10104
|
+
onFocus: _ctx.loadSystemPromptFiles,
|
|
10105
|
+
onPointerdown: _ctx.loadSystemPromptFiles,
|
|
10106
|
+
onKeydown: [
|
|
10107
|
+
_withKeys(_ctx.loadSystemPromptFiles, ["enter"]),
|
|
10108
|
+
_withKeys(_ctx.loadSystemPromptFiles, ["space"])
|
|
10109
|
+
],
|
|
10110
|
+
onChange: $event => (_ctx.switchSysPromptFileName($event.target.value, $event))
|
|
10111
|
+
}, [
|
|
10112
|
+
(!_ctx.sysPromptFiles.some(file => file.filename === _ctx.currentSysPromptFileName()))
|
|
10113
|
+
? (_openBlock(), _createElementBlock("option", {
|
|
10114
|
+
key: 0,
|
|
10115
|
+
value: _ctx.currentSysPromptFileName(),
|
|
10116
|
+
disabled: ""
|
|
10117
|
+
}, _toDisplayString(_ctx.currentSysPromptFileName()), 9 /* TEXT, PROPS */, ["value"]))
|
|
10118
|
+
: _createCommentVNode("v-if", true),
|
|
10119
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sysPromptFiles, (file) => {
|
|
10120
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
10121
|
+
key: file.filename,
|
|
10122
|
+
value: file.filename
|
|
10123
|
+
}, _toDisplayString(file.filename) + _toDisplayString(file.exists ? '' : ' · ' + _ctx.t('common.notExistsWillCreateOnSave')), 9 /* TEXT, PROPS */, ["value"]))
|
|
10124
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
10125
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["value", "aria-busy", "disabled", "onFocus", "onPointerdown", "onKeydown", "onChange"]),
|
|
10126
|
+
(_ctx.sysPromptFilesLoading)
|
|
10127
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10128
|
+
key: 0,
|
|
10129
|
+
class: "form-hint",
|
|
10130
|
+
role: "status"
|
|
10131
|
+
}, _toDisplayString(_ctx.t('sysPrompt.filesLoading')), 1 /* TEXT */))
|
|
10132
|
+
: _createCommentVNode("v-if", true)
|
|
10133
|
+
]),
|
|
8743
10134
|
_createElementVNode("div", { class: "sys-prompt-control-group" }, [
|
|
8744
10135
|
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.scope.label')), 1 /* TEXT */),
|
|
8745
10136
|
_createElementVNode("select", {
|
|
8746
10137
|
class: "form-input sys-prompt-select",
|
|
8747
10138
|
value: _ctx.sysPromptScope,
|
|
8748
10139
|
onChange: $event => (_ctx.switchSysPromptScope($event.target.value)),
|
|
8749
|
-
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible
|
|
10140
|
+
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible || _ctx.hasSysPromptContentChanged()
|
|
8750
10141
|
}, [
|
|
8751
10142
|
_createElementVNode("option", { value: "global" }, _toDisplayString(_ctx.t('sysPrompt.scope.global')), 1 /* TEXT */),
|
|
8752
10143
|
_createElementVNode("option", { value: "project" }, _toDisplayString(_ctx.t('sysPrompt.scope.project')), 1 /* TEXT */)
|
|
8753
10144
|
], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange", "disabled"])
|
|
8754
10145
|
]),
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
10146
|
+
(!_ctx.isSysPromptCustomFile())
|
|
10147
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10148
|
+
key: 0,
|
|
10149
|
+
class: "sys-prompt-control-group"
|
|
10150
|
+
}, [
|
|
10151
|
+
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.mode.label')), 1 /* TEXT */),
|
|
10152
|
+
_createElementVNode("select", {
|
|
10153
|
+
class: "form-input sys-prompt-select",
|
|
10154
|
+
value: _ctx.sysPromptMode,
|
|
10155
|
+
onChange: $event => (_ctx.switchSysPromptMode($event.target.value)),
|
|
10156
|
+
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible || _ctx.hasSysPromptContentChanged()
|
|
10157
|
+
}, [
|
|
10158
|
+
_createElementVNode("option", { value: "append" }, _toDisplayString(_ctx.t('sysPrompt.mode.append')), 1 /* TEXT */),
|
|
10159
|
+
_createElementVNode("option", { value: "system" }, _toDisplayString(_ctx.t('sysPrompt.mode.system')), 1 /* TEXT */)
|
|
10160
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange", "disabled"])
|
|
10161
|
+
]))
|
|
10162
|
+
: _createCommentVNode("v-if", true)
|
|
8767
10163
|
]),
|
|
10164
|
+
(_ctx.sysPromptFilesError)
|
|
10165
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10166
|
+
key: 0,
|
|
10167
|
+
class: "state-message error",
|
|
10168
|
+
role: "alert"
|
|
10169
|
+
}, _toDisplayString(_ctx.sysPromptFilesError), 1 /* TEXT */))
|
|
10170
|
+
: _createCommentVNode("v-if", true),
|
|
8768
10171
|
_createElementVNode("div", { class: "prompts-editor" }, [
|
|
8769
10172
|
_createElementVNode("div", { class: "prompts-editor-toolbar" }, [
|
|
8770
10173
|
_createElementVNode("div", { class: "prompts-path-summary-wrap" }, [
|
|
@@ -8921,7 +10324,7 @@ return function render(_ctx, _cache) {
|
|
|
8921
10324
|
_createElementVNode("button", {
|
|
8922
10325
|
class: "btn-mini btn-confirm-mini",
|
|
8923
10326
|
onClick: _ctx.applySystemPrompt,
|
|
8924
|
-
disabled: _ctx.sysPromptSaving || _ctx.sysPromptLoading || _ctx.sysPromptDiffLoading || (!_ctx.sysPromptDiffVisible && !_ctx.hasSysPromptContentChanged()) || (_ctx.sysPromptDiffVisible && !_ctx.sysPromptDiffHasChangesValue),
|
|
10327
|
+
disabled: _ctx.sysPromptFileMissing || _ctx.sysPromptSaving || _ctx.sysPromptLoading || _ctx.sysPromptDiffLoading || (!_ctx.sysPromptDiffVisible && !_ctx.hasSysPromptContentChanged()) || (_ctx.sysPromptDiffVisible && !_ctx.sysPromptDiffHasChangesValue),
|
|
8925
10328
|
title: _ctx.sysPromptDiffVisible ? _ctx.t('common.save') : _ctx.t('common.preview')
|
|
8926
10329
|
}, [
|
|
8927
10330
|
(_ctx.sysPromptDiffVisible)
|
|
@@ -9245,12 +10648,12 @@ return function render(_ctx, _cache) {
|
|
|
9245
10648
|
_createCommentVNode(" 加载状态 "),
|
|
9246
10649
|
(_ctx.loading && _ctx.mainTab !== 'usage')
|
|
9247
10650
|
? (_openBlock(), _createElementBlock("div", {
|
|
9248
|
-
key:
|
|
10651
|
+
key: 4,
|
|
9249
10652
|
class: "state-message app-loading-state"
|
|
9250
10653
|
}, _toDisplayString(_ctx.t('app.loadingConfig')), 1 /* TEXT */))
|
|
9251
10654
|
: (_ctx.initError)
|
|
9252
10655
|
? (_openBlock(), _createElementBlock("div", {
|
|
9253
|
-
key:
|
|
10656
|
+
key: 5,
|
|
9254
10657
|
class: "state-message error"
|
|
9255
10658
|
}, [
|
|
9256
10659
|
_createCommentVNode(" 错误状态 "),
|
|
@@ -9260,10 +10663,61 @@ return function render(_ctx, _cache) {
|
|
|
9260
10663
|
])
|
|
9261
10664
|
])
|
|
9262
10665
|
], 2 /* CLASS */),
|
|
10666
|
+
(_ctx.showAppUpdateModal)
|
|
10667
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10668
|
+
key: 4,
|
|
10669
|
+
class: "modal-overlay",
|
|
10670
|
+
onClick: _withModifiers(_ctx.closeAppUpdateModal, ["self"])
|
|
10671
|
+
}, [
|
|
10672
|
+
_createElementVNode("div", {
|
|
10673
|
+
class: "modal app-update-modal",
|
|
10674
|
+
role: "dialog",
|
|
10675
|
+
"aria-modal": "true",
|
|
10676
|
+
"aria-labelledby": "app-update-title",
|
|
10677
|
+
"aria-describedby": "app-update-versions app-update-hint"
|
|
10678
|
+
}, [
|
|
10679
|
+
_createElementVNode("div", {
|
|
10680
|
+
id: "app-update-title",
|
|
10681
|
+
class: "modal-title"
|
|
10682
|
+
}, _toDisplayString(_ctx.t('side.update.available')), 1 /* TEXT */),
|
|
10683
|
+
_createElementVNode("div", {
|
|
10684
|
+
id: "app-update-versions",
|
|
10685
|
+
class: "form-group confirm-dialog-message"
|
|
10686
|
+
}, _toDisplayString(_ctx.t('side.update.metaVersions', { current: _ctx.normalizePackageVersion(_ctx.appVersion), latest: _ctx.normalizePackageVersion(_ctx.appLatestVersion) })), 1 /* TEXT */),
|
|
10687
|
+
_createElementVNode("div", { class: "docs-command-box" }, [
|
|
10688
|
+
_createElementVNode("input", {
|
|
10689
|
+
id: "app-update-command",
|
|
10690
|
+
class: "install-command",
|
|
10691
|
+
type: "text",
|
|
10692
|
+
value: _ctx.appUpdateCommand(),
|
|
10693
|
+
readonly: "",
|
|
10694
|
+
"aria-label": _ctx.t('common.command'),
|
|
10695
|
+
onFocus: $event => ($event.target.select())
|
|
10696
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["value", "aria-label", "onFocus"]),
|
|
10697
|
+
_createElementVNode("button", {
|
|
10698
|
+
type: "button",
|
|
10699
|
+
class: "btn-mini docs-copy-btn",
|
|
10700
|
+
onClick: $event => (_ctx.copyInstallCommand(_ctx.appUpdateCommand()))
|
|
10701
|
+
}, _toDisplayString(_ctx.t('common.copy')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
10702
|
+
]),
|
|
10703
|
+
_createElementVNode("p", {
|
|
10704
|
+
id: "app-update-hint",
|
|
10705
|
+
class: "form-hint"
|
|
10706
|
+
}, _toDisplayString(_ctx.t('side.update.commandHint')), 1 /* TEXT */),
|
|
10707
|
+
_createElementVNode("div", { class: "btn-group" }, [
|
|
10708
|
+
_createElementVNode("button", {
|
|
10709
|
+
type: "button",
|
|
10710
|
+
class: "btn btn-cancel",
|
|
10711
|
+
onClick: _ctx.closeAppUpdateModal
|
|
10712
|
+
}, _toDisplayString(_ctx.t('common.close')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
10713
|
+
])
|
|
10714
|
+
])
|
|
10715
|
+
], 8 /* PROPS */, ["onClick"]))
|
|
10716
|
+
: _createCommentVNode("v-if", true),
|
|
9263
10717
|
_createCommentVNode(" 添加提供商模态框 "),
|
|
9264
10718
|
(_ctx.showAddModal)
|
|
9265
10719
|
? (_openBlock(), _createElementBlock("div", {
|
|
9266
|
-
key:
|
|
10720
|
+
key: 5,
|
|
9267
10721
|
class: "modal-overlay",
|
|
9268
10722
|
onClick: _withModifiers(_ctx.closeAddModal, ["self"])
|
|
9269
10723
|
}, [
|
|
@@ -9420,7 +10874,7 @@ return function render(_ctx, _cache) {
|
|
|
9420
10874
|
_createCommentVNode(" 编辑提供商模态框 "),
|
|
9421
10875
|
(_ctx.showEditModal)
|
|
9422
10876
|
? (_openBlock(), _createElementBlock("div", {
|
|
9423
|
-
key:
|
|
10877
|
+
key: 6,
|
|
9424
10878
|
class: "modal-overlay",
|
|
9425
10879
|
onClick: _withModifiers(_ctx.closeEditModal, ["self"])
|
|
9426
10880
|
}, [
|
|
@@ -9532,7 +10986,7 @@ return function render(_ctx, _cache) {
|
|
|
9532
10986
|
_createCommentVNode(" 添加模型模态框 "),
|
|
9533
10987
|
(_ctx.showModelModal)
|
|
9534
10988
|
? (_openBlock(), _createElementBlock("div", {
|
|
9535
|
-
key:
|
|
10989
|
+
key: 7,
|
|
9536
10990
|
class: "modal-overlay",
|
|
9537
10991
|
onClick: _withModifiers(_ctx.closeModelModal, ["self"])
|
|
9538
10992
|
}, [
|
|
@@ -9572,7 +11026,7 @@ return function render(_ctx, _cache) {
|
|
|
9572
11026
|
_createCommentVNode(" 模型列表模态框 "),
|
|
9573
11027
|
(_ctx.showModelListModal)
|
|
9574
11028
|
? (_openBlock(), _createElementBlock("div", {
|
|
9575
|
-
key:
|
|
11029
|
+
key: 8,
|
|
9576
11030
|
class: "modal-overlay",
|
|
9577
11031
|
onClick: _withModifiers($event => (_ctx.showModelListModal = false), ["self"])
|
|
9578
11032
|
}, [
|
|
@@ -9613,7 +11067,7 @@ return function render(_ctx, _cache) {
|
|
|
9613
11067
|
_createCommentVNode(" 项目功能公告模态框 "),
|
|
9614
11068
|
(_ctx.showProviderCacheAnnouncementModal)
|
|
9615
11069
|
? (_openBlock(), _createElementBlock("div", {
|
|
9616
|
-
key:
|
|
11070
|
+
key: 9,
|
|
9617
11071
|
class: "modal-overlay project-announcement-overlay",
|
|
9618
11072
|
onClick: _withModifiers(_ctx.closeProviderCacheAnnouncementModal, ["self"])
|
|
9619
11073
|
}, [
|
|
@@ -9634,36 +11088,29 @@ return function render(_ctx, _cache) {
|
|
|
9634
11088
|
_createElementVNode("div", {
|
|
9635
11089
|
class: "modal-title project-announcement-title",
|
|
9636
11090
|
id: "provider-cache-announcement-title"
|
|
9637
|
-
}, _toDisplayString(_ctx.t('announcement.project.title')), 1 /* TEXT */)
|
|
9638
|
-
_createElementVNode("p", { class: "provider-cache-announcement-copy provider-cache-announcement-lede" }, _toDisplayString(_ctx.t('announcement.project.subtitle')), 1 /* TEXT */)
|
|
11091
|
+
}, _toDisplayString(_ctx.t('announcement.project.title')), 1 /* TEXT */)
|
|
9639
11092
|
]),
|
|
9640
11093
|
_createElementVNode("div", {
|
|
9641
11094
|
class: "project-announcement-feature-grid",
|
|
9642
11095
|
"aria-label": _ctx.t('announcement.project.features.aria')
|
|
9643
11096
|
}, [
|
|
9644
11097
|
_createElementVNode("article", { class: "project-announcement-feature-card" }, [
|
|
9645
|
-
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.config.title')), 1 /* TEXT */)
|
|
9646
|
-
_createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.config.meta')), 1 /* TEXT */)
|
|
11098
|
+
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.config.title')), 1 /* TEXT */)
|
|
9647
11099
|
]),
|
|
9648
11100
|
_createElementVNode("article", { class: "project-announcement-feature-card" }, [
|
|
9649
|
-
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.sessions.title')), 1 /* TEXT */)
|
|
9650
|
-
_createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.sessions.meta')), 1 /* TEXT */)
|
|
11101
|
+
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.sessions.title')), 1 /* TEXT */)
|
|
9651
11102
|
]),
|
|
9652
11103
|
_createElementVNode("article", { class: "project-announcement-feature-card" }, [
|
|
9653
|
-
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.usage.title')), 1 /* TEXT */)
|
|
9654
|
-
_createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.usage.meta')), 1 /* TEXT */)
|
|
11104
|
+
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.usage.title')), 1 /* TEXT */)
|
|
9655
11105
|
]),
|
|
9656
11106
|
_createElementVNode("article", { class: "project-announcement-feature-card" }, [
|
|
9657
|
-
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.tasks.title')), 1 /* TEXT */)
|
|
9658
|
-
_createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.tasks.meta')), 1 /* TEXT */)
|
|
11107
|
+
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.tasks.title')), 1 /* TEXT */)
|
|
9659
11108
|
]),
|
|
9660
11109
|
_createElementVNode("article", { class: "project-announcement-feature-card" }, [
|
|
9661
|
-
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.skills.title')), 1 /* TEXT */)
|
|
9662
|
-
_createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.skills.meta')), 1 /* TEXT */)
|
|
11110
|
+
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.skills.title')), 1 /* TEXT */)
|
|
9663
11111
|
]),
|
|
9664
11112
|
_createElementVNode("article", { class: "project-announcement-feature-card" }, [
|
|
9665
|
-
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.data.title')), 1 /* TEXT */)
|
|
9666
|
-
_createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.data.meta')), 1 /* TEXT */)
|
|
11113
|
+
_createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.data.title')), 1 /* TEXT */)
|
|
9667
11114
|
])
|
|
9668
11115
|
], 8 /* PROPS */, ["aria-label"]),
|
|
9669
11116
|
_createElementVNode("details", {
|
|
@@ -9675,8 +11122,7 @@ return function render(_ctx, _cache) {
|
|
|
9675
11122
|
_createElementVNode("span", {
|
|
9676
11123
|
class: "project-announcement-section-title",
|
|
9677
11124
|
id: "project-announcement-cache-title"
|
|
9678
|
-
}, _toDisplayString(_ctx.t('announcement.project.cache.title')), 1 /* TEXT */)
|
|
9679
|
-
_createElementVNode("span", { class: "project-announcement-section-meta" }, _toDisplayString(_ctx.t('announcement.project.cache.meta')), 1 /* TEXT */)
|
|
11125
|
+
}, _toDisplayString(_ctx.t('announcement.project.cache.title')), 1 /* TEXT */)
|
|
9680
11126
|
]),
|
|
9681
11127
|
(_ctx.getProviderCacheAnnouncementSummary().loadedAt)
|
|
9682
11128
|
? (_openBlock(), _createElementBlock("span", {
|
|
@@ -9782,7 +11228,7 @@ return function render(_ctx, _cache) {
|
|
|
9782
11228
|
_createCommentVNode(" Provider 缓存记录模态框 "),
|
|
9783
11229
|
(_ctx.showProviderCacheModal)
|
|
9784
11230
|
? (_openBlock(), _createElementBlock("div", {
|
|
9785
|
-
key:
|
|
11231
|
+
key: 10,
|
|
9786
11232
|
class: "modal-overlay",
|
|
9787
11233
|
onClick: _withModifiers(_ctx.closeProviderCacheModal, ["self"])
|
|
9788
11234
|
}, [
|
|
@@ -9930,7 +11376,7 @@ return function render(_ctx, _cache) {
|
|
|
9930
11376
|
_createCommentVNode(" 添加Claude配置模态框 "),
|
|
9931
11377
|
(_ctx.showClaudeConfigModal)
|
|
9932
11378
|
? (_openBlock(), _createElementBlock("div", {
|
|
9933
|
-
key:
|
|
11379
|
+
key: 11,
|
|
9934
11380
|
class: "modal-overlay",
|
|
9935
11381
|
onClick: _withModifiers(_ctx.closeClaudeConfigModal, ["self"])
|
|
9936
11382
|
}, [
|
|
@@ -10082,7 +11528,7 @@ return function render(_ctx, _cache) {
|
|
|
10082
11528
|
_createCommentVNode(" 编辑Claude配置模态框 "),
|
|
10083
11529
|
(_ctx.showEditConfigModal)
|
|
10084
11530
|
? (_openBlock(), _createElementBlock("div", {
|
|
10085
|
-
key:
|
|
11531
|
+
key: 12,
|
|
10086
11532
|
class: "modal-overlay",
|
|
10087
11533
|
onClick: _withModifiers(_ctx.closeEditConfigModal, ["self"])
|
|
10088
11534
|
}, [
|
|
@@ -10235,7 +11681,7 @@ return function render(_ctx, _cache) {
|
|
|
10235
11681
|
_createCommentVNode(" Codex bridge pool modal "),
|
|
10236
11682
|
(_ctx.showCodexBridgePoolModal)
|
|
10237
11683
|
? (_openBlock(), _createElementBlock("div", {
|
|
10238
|
-
key:
|
|
11684
|
+
key: 13,
|
|
10239
11685
|
class: "modal-overlay",
|
|
10240
11686
|
onClick: _withModifiers($event => (_ctx.showCodexBridgePoolModal = false), ["self"])
|
|
10241
11687
|
}, [
|
|
@@ -10328,7 +11774,7 @@ return function render(_ctx, _cache) {
|
|
|
10328
11774
|
: _createCommentVNode("v-if", true),
|
|
10329
11775
|
(_ctx.showClaudeBridgePoolModal)
|
|
10330
11776
|
? (_openBlock(), _createElementBlock("div", {
|
|
10331
|
-
key:
|
|
11777
|
+
key: 14,
|
|
10332
11778
|
class: "modal-overlay",
|
|
10333
11779
|
onClick: _withModifiers($event => (_ctx.showClaudeBridgePoolModal = false), ["self"])
|
|
10334
11780
|
}, [
|
|
@@ -10421,7 +11867,7 @@ return function render(_ctx, _cache) {
|
|
|
10421
11867
|
: _createCommentVNode("v-if", true),
|
|
10422
11868
|
(_ctx.promptInvocationVisible)
|
|
10423
11869
|
? (_openBlock(), _createElementBlock("div", {
|
|
10424
|
-
key:
|
|
11870
|
+
key: 15,
|
|
10425
11871
|
class: "modal-overlay",
|
|
10426
11872
|
onClick: _withModifiers(_ctx.closePromptTemplateInvocation, ["self"])
|
|
10427
11873
|
}, [
|
|
@@ -10490,7 +11936,7 @@ return function render(_ctx, _cache) {
|
|
|
10490
11936
|
_createCommentVNode(" Webhook settings modal "),
|
|
10491
11937
|
(_ctx.showWebhookModal)
|
|
10492
11938
|
? (_openBlock(), _createElementBlock("div", {
|
|
10493
|
-
key:
|
|
11939
|
+
key: 16,
|
|
10494
11940
|
class: "modal-overlay",
|
|
10495
11941
|
onClick: _withModifiers(_ctx.closeWebhookModal, ["self"])
|
|
10496
11942
|
}, [
|
|
@@ -10563,7 +12009,7 @@ return function render(_ctx, _cache) {
|
|
|
10563
12009
|
: _createCommentVNode("v-if", true),
|
|
10564
12010
|
(_ctx.showOpenclawConfigModal)
|
|
10565
12011
|
? (_openBlock(), _createElementBlock("div", {
|
|
10566
|
-
key:
|
|
12012
|
+
key: 17,
|
|
10567
12013
|
class: "modal-overlay",
|
|
10568
12014
|
onClick: _withModifiers($event => (!(_ctx.openclawSaving || _ctx.openclawApplying) && _ctx.closeOpenclawConfigModal()), ["self"])
|
|
10569
12015
|
}, [
|
|
@@ -10610,8 +12056,7 @@ return function render(_ctx, _cache) {
|
|
|
10610
12056
|
_createElementVNode("div", { class: "quick-section" }, [
|
|
10611
12057
|
_createElementVNode("div", { class: "quick-header" }, [
|
|
10612
12058
|
_createElementVNode("div", null, [
|
|
10613
|
-
_createElementVNode("div", { class: "quick-title" }, _toDisplayString(_ctx.t('modal.openclaw.quick.title')), 1 /* TEXT */)
|
|
10614
|
-
_createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('modal.openclaw.quick.subtitle')), 1 /* TEXT */)
|
|
12059
|
+
_createElementVNode("div", { class: "quick-title" }, _toDisplayString(_ctx.t('modal.openclaw.quick.title')), 1 /* TEXT */)
|
|
10615
12060
|
]),
|
|
10616
12061
|
_createElementVNode("div", { class: "quick-actions" }, [
|
|
10617
12062
|
_createElementVNode("button", {
|
|
@@ -10819,8 +12264,7 @@ return function render(_ctx, _cache) {
|
|
|
10819
12264
|
placeholder: _ctx.t('placeholder.modelNameOptional')
|
|
10820
12265
|
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
10821
12266
|
[_vModelText, _ctx.openclawQuick.modelName]
|
|
10822
|
-
])
|
|
10823
|
-
_createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('modal.openclaw.quick.modelNameHint')), 1 /* TEXT */)
|
|
12267
|
+
])
|
|
10824
12268
|
]),
|
|
10825
12269
|
_createElementVNode("div", { class: "form-group" }, [
|
|
10826
12270
|
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('field.contextAndMaxOutput')), 1 /* TEXT */),
|
|
@@ -11275,7 +12719,7 @@ return function render(_ctx, _cache) {
|
|
|
11275
12719
|
: _createCommentVNode("v-if", true),
|
|
11276
12720
|
(_ctx.showConfigTemplateModal)
|
|
11277
12721
|
? (_openBlock(), _createElementBlock("div", {
|
|
11278
|
-
key:
|
|
12722
|
+
key: 18,
|
|
11279
12723
|
class: "modal-overlay",
|
|
11280
12724
|
onClick: _withModifiers($event => (!_ctx.configTemplateApplying && _ctx.closeConfigTemplateModal()), ["self"])
|
|
11281
12725
|
}, [
|
|
@@ -11420,7 +12864,7 @@ return function render(_ctx, _cache) {
|
|
|
11420
12864
|
: _createCommentVNode("v-if", true),
|
|
11421
12865
|
(_ctx.showAgentsModal)
|
|
11422
12866
|
? (_openBlock(), _createElementBlock("div", {
|
|
11423
|
-
key:
|
|
12867
|
+
key: 19,
|
|
11424
12868
|
class: "modal-overlay",
|
|
11425
12869
|
onClick: _withModifiers(_ctx.closeAgentsModal, ["self"])
|
|
11426
12870
|
}, [
|
|
@@ -11591,7 +13035,7 @@ return function render(_ctx, _cache) {
|
|
|
11591
13035
|
: _createCommentVNode("v-if", true),
|
|
11592
13036
|
(_ctx.showSkillsModal)
|
|
11593
13037
|
? (_openBlock(), _createElementBlock("div", {
|
|
11594
|
-
key:
|
|
13038
|
+
key: 20,
|
|
11595
13039
|
class: "modal-overlay",
|
|
11596
13040
|
onClick: _withModifiers(_ctx.closeSkillsModal, ["self"])
|
|
11597
13041
|
}, [
|
|
@@ -11606,8 +13050,7 @@ return function render(_ctx, _cache) {
|
|
|
11606
13050
|
_createElementVNode("div", {
|
|
11607
13051
|
class: "modal-title",
|
|
11608
13052
|
id: "skills-modal-title"
|
|
11609
|
-
}, _toDisplayString(_ctx.t('modal.skills.title')), 1 /* TEXT */)
|
|
11610
|
-
_createElementVNode("div", { class: "skills-modal-subtitle" }, _toDisplayString(_ctx.t('modal.skills.subtitle')), 1 /* TEXT */)
|
|
13053
|
+
}, _toDisplayString(_ctx.t('modal.skills.title')), 1 /* TEXT */)
|
|
11611
13054
|
]),
|
|
11612
13055
|
_createElementVNode("div", { class: "modal-header-actions skills-modal-actions" }, [
|
|
11613
13056
|
_createElementVNode("div", {
|
|
@@ -11896,7 +13339,7 @@ return function render(_ctx, _cache) {
|
|
|
11896
13339
|
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
11897
13340
|
(_ctx.showHealthCheckModal)
|
|
11898
13341
|
? (_openBlock(), _createElementBlock("div", {
|
|
11899
|
-
key:
|
|
13342
|
+
key: 21,
|
|
11900
13343
|
class: "modal-overlay",
|
|
11901
13344
|
onClick: _withModifiers($event => (_ctx.showHealthCheckModal = false), ["self"])
|
|
11902
13345
|
}, [
|
|
@@ -12069,7 +13512,7 @@ return function render(_ctx, _cache) {
|
|
|
12069
13512
|
: _createCommentVNode("v-if", true),
|
|
12070
13513
|
(_ctx.showConfirmDialog)
|
|
12071
13514
|
? (_openBlock(), _createElementBlock("div", {
|
|
12072
|
-
key:
|
|
13515
|
+
key: 22,
|
|
12073
13516
|
class: "modal-overlay",
|
|
12074
13517
|
onClick: _withModifiers(_ctx.closeConfirmDialog, ["self"])
|
|
12075
13518
|
}, [
|
|
@@ -12107,7 +13550,7 @@ return function render(_ctx, _cache) {
|
|
|
12107
13550
|
_createCommentVNode(" Toast "),
|
|
12108
13551
|
(_ctx.message)
|
|
12109
13552
|
? (_openBlock(), _createElementBlock("div", {
|
|
12110
|
-
key:
|
|
13553
|
+
key: 23,
|
|
12111
13554
|
class: _normalizeClass(['toast', _ctx.messageType]),
|
|
12112
13555
|
role: "status",
|
|
12113
13556
|
"aria-live": "polite",
|