codexmate 0.1.31 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +8 -3
  2. package/README.vi.md +8 -3
  3. package/README.zh.md +8 -3
  4. package/cli/agents-files.js +18 -4
  5. package/cli/claude-proxy.js +2 -2
  6. package/cli/plugin-config.js +64 -0
  7. package/cli/prompt-history.js +19 -4
  8. package/cli/system-prompt-files.js +7 -2
  9. package/cli.js +200 -214
  10. package/lib/cli-config-engine.js +15 -4
  11. package/lib/cli-file-utils.js +6 -1
  12. package/lib/config-change-fs.js +132 -0
  13. package/lib/config-changes.js +293 -0
  14. package/lib/handoff-mcp.js +18 -2
  15. package/lib/local-feature-store.js +39 -0
  16. package/lib/session-bookmarks.js +72 -0
  17. package/lib/session-context-health.js +102 -0
  18. package/lib/session-context-records.js +153 -0
  19. package/lib/session-diagnostics.js +75 -0
  20. package/lib/session-feature-settings.js +21 -0
  21. package/lib/session-features.js +63 -0
  22. package/lib/session-handoff-draft.js +43 -0
  23. package/lib/session-projects.js +76 -0
  24. package/lib/session-search-index.js +188 -0
  25. package/lib/thread-handoff.js +8 -0
  26. package/lib/web-server.js +216 -0
  27. package/lib/web-startup-auth.js +5 -1
  28. package/package.json +1 -1
  29. package/plugins/prompt-templates/computed.mjs +3 -3
  30. package/plugins/prompt-templates/invocation.mjs +73 -0
  31. package/plugins/prompt-templates/methods.mjs +48 -3
  32. package/plugins/prompt-templates/overview.mjs +2 -0
  33. package/web-ui/app.js +32 -1
  34. package/web-ui/index.html +2 -0
  35. package/web-ui/logic.context-health.mjs +144 -0
  36. package/web-ui/logic.context-window.mjs +15 -0
  37. package/web-ui/modules/api.mjs +72 -39
  38. package/web-ui/modules/app.computed.prompts.mjs +11 -0
  39. package/web-ui/modules/app.methods.agents.mjs +25 -3
  40. package/web-ui/modules/app.methods.claude-config.mjs +2 -0
  41. package/web-ui/modules/app.methods.codex-config.mjs +9 -0
  42. package/web-ui/modules/app.methods.config-changes.mjs +124 -0
  43. package/web-ui/modules/app.methods.index.mjs +4 -0
  44. package/web-ui/modules/app.methods.kilocode-config.mjs +2 -0
  45. package/web-ui/modules/app.methods.openclaw-persist.mjs +2 -0
  46. package/web-ui/modules/app.methods.opencode-config.mjs +2 -0
  47. package/web-ui/modules/app.methods.pi-config.mjs +12 -3
  48. package/web-ui/modules/app.methods.provider-cache.mjs +9 -3
  49. package/web-ui/modules/app.methods.providers.mjs +6 -0
  50. package/web-ui/modules/app.methods.startup-claude.mjs +8 -47
  51. package/web-ui/modules/app.methods.system-prompt.mjs +17 -2
  52. package/web-ui/modules/config-change-actions.mjs +9 -0
  53. package/web-ui/modules/context-health.methods.mjs +70 -0
  54. package/web-ui/modules/i18n/locales/en.mjs +164 -4
  55. package/web-ui/modules/i18n/locales/ja.mjs +164 -4
  56. package/web-ui/modules/i18n/locales/vi.mjs +164 -4
  57. package/web-ui/modules/i18n/locales/zh-tw.mjs +164 -4
  58. package/web-ui/modules/i18n/locales/zh.mjs +164 -4
  59. package/web-ui/modules/plugins.methods.mjs +2 -0
  60. package/web-ui/modules/prompt-ecosystem.methods.mjs +136 -0
  61. package/web-ui/modules/request-deadline.mjs +33 -0
  62. package/web-ui/modules/session-features.mjs +279 -0
  63. package/web-ui/modules/thread-handoff.mjs +1 -1
  64. package/web-ui/partials/index/config-changes.html +25 -0
  65. package/web-ui/partials/index/context-health.html +45 -0
  66. package/web-ui/partials/index/context-window-reference.html +17 -0
  67. package/web-ui/partials/index/layout-header.html +7 -30
  68. package/web-ui/partials/index/modal-openclaw-config.html +0 -2
  69. package/web-ui/partials/index/modal-prompt-invocation.html +17 -0
  70. package/web-ui/partials/index/modal-skills.html +0 -1
  71. package/web-ui/partials/index/modals-basic.html +0 -8
  72. package/web-ui/partials/index/modals-pi-provider.html +0 -1
  73. package/web-ui/partials/index/panel-config-codex.html +0 -3
  74. package/web-ui/partials/index/panel-config-openclaw.html +16 -13
  75. package/web-ui/partials/index/panel-dashboard.html +0 -2
  76. package/web-ui/partials/index/panel-plugins.html +37 -10
  77. package/web-ui/partials/index/panel-prompts.html +18 -3
  78. package/web-ui/partials/index/panel-sessions.html +23 -11
  79. package/web-ui/partials/index/panel-settings.html +1 -12
  80. package/web-ui/partials/index/panel-trash.html +0 -1
  81. package/web-ui/partials/index/session-diagnostics.html +29 -0
  82. package/web-ui/partials/index/session-features.html +107 -0
  83. package/web-ui/partials/index/thread-handoff.html +6 -3
  84. package/web-ui/res/web-ui-render.precompiled.js +1863 -271
  85. package/web-ui/styles/config-changes.css +30 -0
  86. package/web-ui/styles/context-health.css +107 -0
  87. package/web-ui/styles/openclaw-structured.css +205 -189
  88. package/web-ui/styles/prompts-editor.css +23 -0
  89. package/web-ui/styles/session-features.css +148 -0
  90. package/web-ui/styles/sessions-preview.css +21 -0
  91. package/web-ui/styles/sub-tabs.css +181 -0
  92. package/web-ui/styles.css +5 -1
@@ -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, isMemoSame: _isMemoSame, withMemo: _withMemo, normalizeStyle: _normalizeStyle } = 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", {
@@ -236,7 +238,6 @@ return function render(_ctx, _cache) {
236
238
  }, "⌂"),
237
239
  _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.overview.doctor')), 1 /* TEXT */),
238
240
  _createElementVNode("div", { class: "side-item-meta" }, [
239
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.overview.doctor.meta')), 1 /* TEXT */),
240
241
  _createElementVNode("span", null, _toDisplayString(_ctx.inspectorHealthStatus), 1 /* TEXT */)
241
242
  ])
242
243
  ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"])
@@ -261,7 +262,6 @@ return function render(_ctx, _cache) {
261
262
  }, "?"),
262
263
  _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.docs.cliInstall')), 1 /* TEXT */),
263
264
  _createElementVNode("div", { class: "side-item-meta" }, [
264
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.docs.cliInstall.meta')), 1 /* TEXT */),
265
265
  _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
266
  ])
267
267
  ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"])
@@ -276,6 +276,7 @@ return function render(_ctx, _cache) {
276
276
  ? (_openBlock(), _createElementBlock("button", {
277
277
  key: 0,
278
278
  id: "side-tab-config-codex",
279
+ "aria-description": _ctx.t('side.config.codex.meta'),
279
280
  "data-main-tab": "config",
280
281
  "data-config-mode": "codex",
281
282
  "aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'codex' ? 'page' : null,
@@ -287,16 +288,14 @@ return function render(_ctx, _cache) {
287
288
  class: "side-item-icon",
288
289
  "aria-hidden": "true"
289
290
  }, "C"),
290
- _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.codex')), 1 /* TEXT */),
291
- _createElementVNode("div", { class: "side-item-meta" }, [
292
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.codex.meta')), 1 /* TEXT */)
293
- ])
294
- ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
291
+ _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.codex')), 1 /* TEXT */)
292
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
295
293
  : _createCommentVNode("v-if", true),
296
294
  (_ctx.isConfigModeVisible('claude'))
297
295
  ? (_openBlock(), _createElementBlock("button", {
298
296
  key: 1,
299
297
  id: "side-tab-config-claude",
298
+ "aria-description": _ctx.t('side.config.claude.meta'),
300
299
  "data-main-tab": "config",
301
300
  "data-config-mode": "claude",
302
301
  "aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'claude' ? 'page' : null,
@@ -308,16 +307,14 @@ return function render(_ctx, _cache) {
308
307
  class: "side-item-icon",
309
308
  "aria-hidden": "true"
310
309
  }, "A"),
311
- _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.claude')), 1 /* TEXT */),
312
- _createElementVNode("div", { class: "side-item-meta" }, [
313
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.claude.meta')), 1 /* TEXT */)
314
- ])
315
- ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
310
+ _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.claude')), 1 /* TEXT */)
311
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
316
312
  : _createCommentVNode("v-if", true),
317
313
  (_ctx.isConfigModeVisible('openclaw'))
318
314
  ? (_openBlock(), _createElementBlock("button", {
319
315
  key: 2,
320
316
  id: "side-tab-config-openclaw",
317
+ "aria-description": _ctx.t('side.config.openclaw.meta'),
321
318
  "data-main-tab": "config",
322
319
  "data-config-mode": "openclaw",
323
320
  "aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'openclaw' ? 'page' : null,
@@ -329,16 +326,14 @@ return function render(_ctx, _cache) {
329
326
  class: "side-item-icon",
330
327
  "aria-hidden": "true"
331
328
  }, "O"),
332
- _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.openclaw')), 1 /* TEXT */),
333
- _createElementVNode("div", { class: "side-item-meta" }, [
334
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.openclaw.meta')), 1 /* TEXT */)
335
- ])
336
- ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
329
+ _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.openclaw')), 1 /* TEXT */)
330
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
337
331
  : _createCommentVNode("v-if", true),
338
332
  (_ctx.isConfigModeVisible('opencode'))
339
333
  ? (_openBlock(), _createElementBlock("button", {
340
334
  key: 3,
341
335
  id: "side-tab-config-opencode",
336
+ "aria-description": _ctx.t('side.config.opencode.meta'),
342
337
  "data-main-tab": "config",
343
338
  "data-config-mode": "opencode",
344
339
  "aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'opencode' ? 'page' : null,
@@ -350,16 +345,14 @@ return function render(_ctx, _cache) {
350
345
  class: "side-item-icon",
351
346
  "aria-hidden": "true"
352
347
  }, "N"),
353
- _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.opencode')), 1 /* TEXT */),
354
- _createElementVNode("div", { class: "side-item-meta" }, [
355
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.opencode.meta')), 1 /* TEXT */)
356
- ])
357
- ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
348
+ _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.opencode')), 1 /* TEXT */)
349
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
358
350
  : _createCommentVNode("v-if", true),
359
351
  (_ctx.isConfigModeVisible('kilocode'))
360
352
  ? (_openBlock(), _createElementBlock("button", {
361
353
  key: 4,
362
354
  id: "side-tab-config-kilocode",
355
+ "aria-description": _ctx.t('side.config.kilocode.meta'),
363
356
  "data-main-tab": "config",
364
357
  "data-config-mode": "kilocode",
365
358
  "aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'kilocode' ? 'page' : null,
@@ -371,16 +364,14 @@ return function render(_ctx, _cache) {
371
364
  class: "side-item-icon",
372
365
  "aria-hidden": "true"
373
366
  }, "K"),
374
- _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.kilocode')), 1 /* TEXT */),
375
- _createElementVNode("div", { class: "side-item-meta" }, [
376
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.kilocode.meta')), 1 /* TEXT */)
377
- ])
378
- ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
367
+ _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.kilocode')), 1 /* TEXT */)
368
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
379
369
  : _createCommentVNode("v-if", true),
380
370
  (_ctx.isConfigModeVisible('pi'))
381
371
  ? (_openBlock(), _createElementBlock("button", {
382
372
  key: 5,
383
373
  id: "side-tab-config-pi",
374
+ "aria-description": _ctx.t('side.config.pi.meta'),
384
375
  "data-main-tab": "config",
385
376
  "data-config-mode": "pi",
386
377
  "aria-current": _ctx.mainTab === 'config' && _ctx.configMode === 'pi' ? 'page' : null,
@@ -392,11 +383,8 @@ return function render(_ctx, _cache) {
392
383
  class: "side-item-icon",
393
384
  "aria-hidden": "true"
394
385
  }, "P"),
395
- _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.pi')), 1 /* TEXT */),
396
- _createElementVNode("div", { class: "side-item-meta" }, [
397
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.config.pi.meta')), 1 /* TEXT */)
398
- ])
399
- ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]))
386
+ _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.config.pi')), 1 /* TEXT */)
387
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]))
400
388
  : _createCommentVNode("v-if", true)
401
389
  ], 8 /* PROPS */, ["aria-label"]),
402
390
  _createElementVNode("div", {
@@ -419,12 +407,12 @@ return function render(_ctx, _cache) {
419
407
  }, "S"),
420
408
  _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.sessions.browser')), 1 /* TEXT */),
421
409
  _createElementVNode("div", { class: "side-item-meta" }, [
422
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.sessions.browser.meta')), 1 /* TEXT */),
423
410
  _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
411
  ])
425
412
  ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
426
413
  _createElementVNode("button", {
427
414
  id: "side-tab-prompts",
415
+ "aria-description": _ctx.t('side.prompts.meta'),
428
416
  "data-main-tab": "prompts",
429
417
  "aria-current": _ctx.mainTab === 'prompts' ? 'page' : null,
430
418
  class: _normalizeClass(['side-item', { active: _ctx.isMainTabNavActive('prompts') }]),
@@ -435,11 +423,8 @@ return function render(_ctx, _cache) {
435
423
  class: "side-item-icon",
436
424
  "aria-hidden": "true"
437
425
  }, "P"),
438
- _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.prompts')), 1 /* TEXT */),
439
- _createElementVNode("div", { class: "side-item-meta" }, [
440
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.prompts.meta')), 1 /* TEXT */)
441
- ])
442
- ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
426
+ _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.prompts')), 1 /* TEXT */)
427
+ ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-description", "aria-current", "onPointerdown", "onClick"]),
443
428
  _createElementVNode("button", {
444
429
  id: "side-tab-usage",
445
430
  "data-main-tab": "usage",
@@ -454,7 +439,6 @@ return function render(_ctx, _cache) {
454
439
  }, "↗"),
455
440
  _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('tab.usage')), 1 /* TEXT */),
456
441
  _createElementVNode("div", { class: "side-item-meta" }, [
457
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.usage.meta')), 1 /* TEXT */),
458
442
  _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
443
  ])
460
444
  ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"])
@@ -505,7 +489,6 @@ return function render(_ctx, _cache) {
505
489
  }, "◇"),
506
490
  _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.plugins.tools')), 1 /* TEXT */),
507
491
  _createElementVNode("div", { class: "side-item-meta" }, [
508
- _createElementVNode("span", null, _toDisplayString(_ctx.t('side.plugins.tools.meta')), 1 /* TEXT */),
509
492
  _createElementVNode("span", null, _toDisplayString(_ctx.t('side.plugins.templatesCount', { count: _ctx.promptTemplatesList.length })), 1 /* TEXT */)
510
493
  ])
511
494
  ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
@@ -546,10 +529,7 @@ return function render(_ctx, _cache) {
546
529
  class: "side-item-icon",
547
530
  "aria-hidden": "true"
548
531
  }, "⚙"),
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
- ])
532
+ _createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('side.system.settings')), 1 /* TEXT */)
553
533
  ], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
554
534
  _createElementVNode("button", {
555
535
  id: "side-tab-trash",
@@ -684,8 +664,7 @@ return function render(_ctx, _cache) {
684
664
  }, [
685
665
  _createElementVNode("div", { class: "panel-header-copy" }, [
686
666
  _createElementVNode("div", { class: "panel-kicker" }, _toDisplayString(_ctx.mainTabKicker), 1 /* TEXT */),
687
- _createElementVNode("h1", { class: "main-title" }, _toDisplayString(_ctx.mainTabTitle), 1 /* TEXT */),
688
- _createElementVNode("p", { class: "subtitle" }, _toDisplayString(_ctx.mainTabSubtitle), 1 /* TEXT */)
667
+ _createElementVNode("h1", { class: "main-title" }, _toDisplayString(_ctx.mainTabTitle), 1 /* TEXT */)
689
668
  ])
690
669
  ]))
691
670
  : _createCommentVNode("v-if", true),
@@ -897,8 +876,7 @@ return function render(_ctx, _cache) {
897
876
  }, [
898
877
  _createElementVNode("header", { class: "workflow-header" }, [
899
878
  _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 */)
879
+ _createElementVNode("h2", { class: "workflow-title" }, _toDisplayString(_ctx.t('workflow.title')), 1 /* TEXT */)
902
880
  ]),
903
881
  _createElementVNode("button", {
904
882
  type: "button",
@@ -1010,8 +988,7 @@ return function render(_ctx, _cache) {
1010
988
  key: 0,
1011
989
  class: "workflow-empty"
1012
990
  }, [
1013
- _createElementVNode("p", null, _toDisplayString(_ctx.t('workflow.empty')), 1 /* TEXT */),
1014
- _createElementVNode("p", { class: "form-hint" }, _toDisplayString(_ctx.t('workflow.emptyHint')), 1 /* TEXT */)
991
+ _createElementVNode("p", null, _toDisplayString(_ctx.t('workflow.empty')), 1 /* TEXT */)
1015
992
  ]))
1016
993
  : _createCommentVNode("v-if", true),
1017
994
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.workflowRuns, (run) => {
@@ -1306,6 +1283,110 @@ return function render(_ctx, _cache) {
1306
1283
  ], 512 /* NEED_PATCH */), [
1307
1284
  [_vShow, _ctx.mainTab === 'dashboard']
1308
1285
  ]),
1286
+ (_ctx.mainTab === 'config' && _ctx.lastConfigChange && _ctx.lastConfigChange.target === _ctx.configMode)
1287
+ ? (_openBlock(), _createElementBlock("section", {
1288
+ key: 0,
1289
+ class: "config-change-last",
1290
+ "aria-live": "polite"
1291
+ }, [
1292
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('changes.last')) + " · " + _toDisplayString(_ctx.lastConfigChange.createdAt), 1 /* TEXT */),
1293
+ _createElementVNode("button", {
1294
+ type: "button",
1295
+ class: "btn-tool",
1296
+ onClick: _ctx.undoLastConfigChange,
1297
+ disabled: _ctx.configChangeBusy || _ctx.configChangeApplying || !_ctx.isToolConfigWriteAllowed(_ctx.configMode)
1298
+ }, _toDisplayString(_ctx.t('changes.undo')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
1299
+ ]))
1300
+ : _createCommentVNode("v-if", true),
1301
+ (_openBlock(), _createBlock(_Teleport, { to: "body" }, [
1302
+ (_ctx.configChangePreview)
1303
+ ? (_openBlock(), _createElementBlock("div", {
1304
+ key: 0,
1305
+ class: "modal-overlay config-change-overlay",
1306
+ onClick: _withModifiers($event => (_ctx.closeConfigChangePreview()), ["self"]),
1307
+ onKeydown: _ctx.handleConfigChangeKeydown
1308
+ }, [
1309
+ _createElementVNode("section", {
1310
+ class: "modal modal-wide config-change-modal",
1311
+ role: "dialog",
1312
+ "aria-modal": "true",
1313
+ "aria-labelledby": "config-change-title",
1314
+ "aria-describedby": "config-change-hint",
1315
+ "aria-busy": _ctx.configChangeApplying
1316
+ }, [
1317
+ _createElementVNode("h2", {
1318
+ id: "config-change-title",
1319
+ class: "modal-title"
1320
+ }, _toDisplayString(_ctx.t('changes.preview')), 1 /* TEXT */),
1321
+ _createElementVNode("p", {
1322
+ id: "config-change-hint",
1323
+ class: "form-hint"
1324
+ }, _toDisplayString(_ctx.t('changes.hint')), 1 /* TEXT */),
1325
+ _createElementVNode("div", {
1326
+ class: "config-change-files",
1327
+ tabindex: "0",
1328
+ "aria-label": _ctx.t('changes.files')
1329
+ }, [
1330
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.configChangePreview.files, (file) => {
1331
+ return (_openBlock(), _createElementBlock("article", {
1332
+ key: file.path,
1333
+ class: "config-change-file"
1334
+ }, [
1335
+ _createElementVNode("h3", null, [
1336
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('changes.operation.' + file.operation)), 1 /* TEXT */),
1337
+ _createTextVNode(),
1338
+ _createElementVNode("code", null, _toDisplayString(file.path), 1 /* TEXT */)
1339
+ ]),
1340
+ (file.hidden)
1341
+ ? (_openBlock(), _createElementBlock("p", {
1342
+ key: 0,
1343
+ class: "form-hint"
1344
+ }, _toDisplayString(_ctx.t('changes.hidden')), 1 /* TEXT */))
1345
+ : (file.maskedOnly)
1346
+ ? (_openBlock(), _createElementBlock("p", {
1347
+ key: 1,
1348
+ class: "form-hint"
1349
+ }, _toDisplayString(_ctx.t('changes.maskedOnly')), 1 /* TEXT */))
1350
+ : (_openBlock(), _createElementBlock("pre", {
1351
+ key: 2,
1352
+ class: "config-change-diff"
1353
+ }, [
1354
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(file.diff.lines, (line, index) => {
1355
+ return (_openBlock(), _createElementBlock("span", {
1356
+ key: index,
1357
+ class: _normalizeClass(['config-change-line', 'config-change-line-' + line.type])
1358
+ }, _toDisplayString(line.type === 'add' ? '+' : line.type === 'del' ? '−' : ' ') + " " + _toDisplayString(line.text || line.value), 3 /* TEXT, CLASS */))
1359
+ }), 128 /* KEYED_FRAGMENT */))
1360
+ ]))
1361
+ ]))
1362
+ }), 128 /* KEYED_FRAGMENT */))
1363
+ ], 8 /* PROPS */, ["aria-label"]),
1364
+ (_ctx.configChangeError)
1365
+ ? (_openBlock(), _createElementBlock("p", {
1366
+ key: 0,
1367
+ class: "form-hint form-error",
1368
+ role: "alert"
1369
+ }, _toDisplayString(_ctx.configChangeError), 1 /* TEXT */))
1370
+ : _createCommentVNode("v-if", true),
1371
+ _createElementVNode("div", { class: "btn-group config-change-actions" }, [
1372
+ _createElementVNode("button", {
1373
+ ref: "configChangeCancel",
1374
+ type: "button",
1375
+ class: "btn btn-cancel",
1376
+ onClick: $event => (_ctx.closeConfigChangePreview()),
1377
+ disabled: _ctx.configChangeApplying
1378
+ }, _toDisplayString(_ctx.t('common.cancel')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
1379
+ _createElementVNode("button", {
1380
+ type: "button",
1381
+ class: "btn btn-confirm",
1382
+ onClick: _ctx.confirmConfigChange,
1383
+ disabled: _ctx.configChangeApplying || !!_ctx.configChangeError
1384
+ }, _toDisplayString(_ctx.configChangeApplying ? _ctx.t('changes.saving') : _ctx.t('changes.apply')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
1385
+ ])
1386
+ ], 8 /* PROPS */, ["aria-busy"])
1387
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onClick", "onKeydown"]))
1388
+ : _createCommentVNode("v-if", true)
1389
+ ])),
1309
1390
  _createCommentVNode(" Codex 配置 "),
1310
1391
  _withDirectives(_createElementVNode("div", {
1311
1392
  class: "mode-content mode-cards",
@@ -1594,8 +1675,7 @@ return function render(_ctx, _cache) {
1594
1675
  _createElementVNode("option", { value: "xhigh" }, "xhigh")
1595
1676
  ], 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "onChange"]), [
1596
1677
  [_vModelSelect, _ctx.modelReasoningEffort]
1597
- ]),
1598
- _createElementVNode("div", { class: "config-template-hint" }, _toDisplayString(_ctx.t('config.reasoningEffort.hint')), 1 /* TEXT */)
1678
+ ])
1599
1679
  ])
1600
1680
  ]),
1601
1681
  _createElementVNode("div", { class: "selector-section" }, [
@@ -1628,8 +1708,7 @@ return function render(_ctx, _cache) {
1628
1708
  onKeydown: _withKeys(_withModifiers(_ctx.onModelContextWindowBlur, ["prevent"]), ["enter"])
1629
1709
  }, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "placeholder", "onFocus", "onInput", "onBlur", "onKeydown"]), [
1630
1710
  [_vModelText, _ctx.modelContextWindowInput]
1631
- ]),
1632
- _createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('config.contextWindow.hint')), 1 /* TEXT */)
1711
+ ])
1633
1712
  ]),
1634
1713
  _createElementVNode("div", { class: "form-group codex-config-field" }, [
1635
1714
  _createElementVNode("label", {
@@ -1649,8 +1728,7 @@ return function render(_ctx, _cache) {
1649
1728
  onKeydown: _withKeys(_withModifiers(_ctx.onModelAutoCompactTokenLimitBlur, ["prevent"]), ["enter"])
1650
1729
  }, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "placeholder", "onFocus", "onInput", "onBlur", "onKeydown"]), [
1651
1730
  [_vModelText, _ctx.modelAutoCompactTokenLimitInput]
1652
- ]),
1653
- _createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('config.autoCompact.hint')), 1 /* TEXT */)
1731
+ ])
1654
1732
  ])
1655
1733
  ])
1656
1734
  ]),
@@ -2545,15 +2623,14 @@ return function render(_ctx, _cache) {
2545
2623
  ], 8 /* PROPS */, ["aria-label"]),
2546
2624
  _createElementVNode("section", {
2547
2625
  class: "settings-card settings-card--wide openclaw-summary-card",
2548
- "aria-label": "OpenClaw 当前摘要"
2626
+ "aria-labelledby": "openclaw-summary-title"
2549
2627
  }, [
2550
2628
  _createElementVNode("div", { class: "settings-card-body" }, [
2551
2629
  _createElementVNode("div", { class: "openclaw-summary-header" }, [
2552
- _createElementVNode("div", null, [
2553
- _createElementVNode("div", { class: "summary-eyebrow" }, "OPENCLAW"),
2554
- _createElementVNode("div", { class: "summary-title" }, "配置与本地诊断")
2555
- ]),
2556
- _createElementVNode("div", { class: "summary-note" }, "配置摘要")
2630
+ _createElementVNode("h2", {
2631
+ class: "summary-title",
2632
+ id: "openclaw-summary-title"
2633
+ }, _toDisplayString(_ctx.t('tab.config.openclaw')), 1 /* TEXT */)
2557
2634
  ]),
2558
2635
  _createElementVNode("div", { class: "openclaw-summary-grid" }, [
2559
2636
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.getOpenclawStatusSummaryItems(), (item) => {
@@ -2573,25 +2650,48 @@ return function render(_ctx, _cache) {
2573
2650
  class: _normalizeClass(["tool-config-write-scope", { locked: !_ctx.isToolConfigWriteAllowed('openclaw') }])
2574
2651
  }, [
2575
2652
  _createElementVNode("div", { class: "tool-config-write-body" }, [
2576
- _createElementVNode("section", { class: "settings-card settings-card--wide openclaw-workspace-card" }, [
2653
+ _createElementVNode("section", {
2654
+ class: "settings-card settings-card--wide openclaw-workspace-card",
2655
+ "aria-labelledby": "openclaw-workspace-title"
2656
+ }, [
2577
2657
  _createElementVNode("div", { class: "settings-card-body" }, [
2658
+ _createElementVNode("h3", {
2659
+ class: "openclaw-section-title",
2660
+ id: "openclaw-workspace-title"
2661
+ }, _toDisplayString(_ctx.t('openclaw.workspaceFile')), 1 /* TEXT */),
2578
2662
  _createElementVNode("div", { class: "openclaw-tools-grid" }, [
2579
2663
  _createElementVNode("button", {
2580
2664
  class: "openclaw-tool-btn",
2581
2665
  onClick: _ctx.openOpenclawAgentsEditor,
2582
2666
  disabled: _ctx.loading || !!_ctx.initError || _ctx.agentsLoading || !_ctx.isToolConfigWriteAllowed('openclaw')
2583
2667
  }, [
2584
- _createElementVNode("div", { class: "tool-icon" }, "📄"),
2668
+ (_openBlock(), _createElementBlock("svg", {
2669
+ class: "tool-icon",
2670
+ viewBox: "0 0 24 24",
2671
+ fill: "none",
2672
+ stroke: "currentColor",
2673
+ "stroke-width": "1.5",
2674
+ "aria-hidden": "true"
2675
+ }, [
2676
+ _createElementVNode("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
2677
+ _createElementVNode("path", { d: "M14 2v6h6M8 13h8M8 17h6" })
2678
+ ])),
2585
2679
  _createElementVNode("div", { class: "tool-content" }, [
2586
2680
  _createElementVNode("div", { class: "tool-title" }, "AGENTS.md"),
2587
- _createElementVNode("div", { class: "tool-meta" }, _toDisplayString(_ctx.agentsLoading ? _ctx.t('config.modelLoading') : 'Workspace file'), 1 /* TEXT */)
2681
+ (_ctx.agentsLoading)
2682
+ ? (_openBlock(), _createElementBlock("div", {
2683
+ key: 0,
2684
+ class: "tool-meta"
2685
+ }, _toDisplayString(_ctx.t('config.modelLoading')), 1 /* TEXT */))
2686
+ : _createCommentVNode("v-if", true)
2588
2687
  ]),
2589
2688
  (_openBlock(), _createElementBlock("svg", {
2590
2689
  class: "tool-chevron",
2591
2690
  viewBox: "0 0 24 24",
2592
2691
  fill: "none",
2593
2692
  stroke: "currentColor",
2594
- "stroke-width": "2"
2693
+ "stroke-width": "2",
2694
+ "aria-hidden": "true"
2595
2695
  }, [
2596
2696
  _createElementVNode("path", { d: "M9 18l6-6-6-6" })
2597
2697
  ]))
@@ -2604,17 +2704,27 @@ return function render(_ctx, _cache) {
2604
2704
  onClick: $event => (_ctx.openOpenclawQuickWorkspaceFile(fileName)),
2605
2705
  disabled: _ctx.loading || !!_ctx.initError || _ctx.agentsLoading || !_ctx.isToolConfigWriteAllowed('openclaw')
2606
2706
  }, [
2607
- _createElementVNode("div", { class: "tool-icon" }, "📄"),
2707
+ (_openBlock(), _createElementBlock("svg", {
2708
+ class: "tool-icon",
2709
+ viewBox: "0 0 24 24",
2710
+ fill: "none",
2711
+ stroke: "currentColor",
2712
+ "stroke-width": "1.5",
2713
+ "aria-hidden": "true"
2714
+ }, [
2715
+ _createElementVNode("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
2716
+ _createElementVNode("path", { d: "M14 2v6h6M8 13h8M8 17h6" })
2717
+ ])),
2608
2718
  _createElementVNode("div", { class: "tool-content" }, [
2609
- _createElementVNode("div", { class: "tool-title" }, _toDisplayString(fileName), 1 /* TEXT */),
2610
- _createElementVNode("div", { class: "tool-meta" }, "Workspace file")
2719
+ _createElementVNode("div", { class: "tool-title" }, _toDisplayString(fileName), 1 /* TEXT */)
2611
2720
  ]),
2612
2721
  (_openBlock(), _createElementBlock("svg", {
2613
2722
  class: "tool-chevron",
2614
2723
  viewBox: "0 0 24 24",
2615
2724
  fill: "none",
2616
2725
  stroke: "currentColor",
2617
- "stroke-width": "2"
2726
+ "stroke-width": "2",
2727
+ "aria-hidden": "true"
2618
2728
  }, [
2619
2729
  _createElementVNode("path", { d: "M9 18l6-6-6-6" })
2620
2730
  ]))
@@ -2628,6 +2738,10 @@ return function render(_ctx, _cache) {
2628
2738
  "aria-labelledby": "openclaw-configs-title"
2629
2739
  }, [
2630
2740
  _createElementVNode("div", { class: "settings-card-body" }, [
2741
+ _createElementVNode("h3", {
2742
+ class: "openclaw-section-title",
2743
+ id: "openclaw-configs-title"
2744
+ }, _toDisplayString(_ctx.t('tab.config')), 1 /* TEXT */),
2631
2745
  _createElementVNode("div", { class: "card-list openclaw-card-list" }, [
2632
2746
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.openclawConfigs, (config, name) => {
2633
2747
  return (_openBlock(), _createElementBlock("div", {
@@ -3825,7 +3939,7 @@ return function render(_ctx, _cache) {
3825
3939
  _createCommentVNode(" Pi 新增供应商模板选择模态框 "),
3826
3940
  (_ctx.showAddPiProviderModal && !_ctx.editingPiProvider)
3827
3941
  ? (_openBlock(), _createElementBlock("div", {
3828
- key: 0,
3942
+ key: 1,
3829
3943
  class: "modal-overlay",
3830
3944
  onClick: _withModifiers(_ctx.cancelAddPiProviderModal, ["self"])
3831
3945
  }, [
@@ -3839,7 +3953,6 @@ return function render(_ctx, _cache) {
3839
3953
  class: "modal-title",
3840
3954
  id: "pi-provider-picker-modal-title"
3841
3955
  }, _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
3956
  _createElementVNode("div", { class: "pi-picker" }, [
3844
3957
  _withDirectives(_createElementVNode("input", {
3845
3958
  class: "form-input",
@@ -3897,7 +4010,7 @@ return function render(_ctx, _cache) {
3897
4010
  _createCommentVNode(" Pi 供应商编辑器模态框 "),
3898
4011
  (_ctx.editingPiProvider)
3899
4012
  ? (_openBlock(), _createElementBlock("div", {
3900
- key: 1,
4013
+ key: 2,
3901
4014
  class: "modal-overlay",
3902
4015
  onClick: _withModifiers(_ctx.closePiProviderEditor, ["self"])
3903
4016
  }, [
@@ -4170,63 +4283,850 @@ return function render(_ctx, _cache) {
4170
4283
  ? (_openBlock(), _createElementBlock("span", { key: 0 }, " · " + _toDisplayString(_ctx.sessionStandaloneSourceLabel), 1 /* TEXT */))
4171
4284
  : _createCommentVNode("v-if", true)
4172
4285
  ]),
4286
+ (_ctx.activeSession)
4287
+ ? (_openBlock(), _createElementBlock("section", {
4288
+ key: 0,
4289
+ class: "context-health",
4290
+ "aria-labelledby": "context-health-heading",
4291
+ "aria-busy": _ctx.sessionContextHealthLoading,
4292
+ onVnodeMounted: $event => (_ctx.loadSessionContextHealth()),
4293
+ onVnodeUpdated: $event => (_ctx.loadSessionContextHealth())
4294
+ }, [
4295
+ _createElementVNode("div", { class: "context-health-header" }, [
4296
+ _createElementVNode("div", { class: "context-health-heading" }, [
4297
+ _createElementVNode("h3", {
4298
+ id: "context-health-heading",
4299
+ class: "context-health-title"
4300
+ }, _toDisplayString(_ctx.t('contextHealth.title')), 1 /* TEXT */),
4301
+ (_ctx.sessionContextHealth)
4302
+ ? (_openBlock(), _createElementBlock("span", {
4303
+ key: 0,
4304
+ class: _normalizeClass(['context-health-rating', _ctx.sessionContextHealth.health]),
4305
+ role: "img",
4306
+ "aria-label": _ctx.t('contextHealth.level.' + _ctx.sessionContextHealth.health)
4307
+ }, null, 10 /* CLASS, PROPS */, ["aria-label"]))
4308
+ : _createCommentVNode("v-if", true),
4309
+ (_ctx.sessionContextHealth)
4310
+ ? (_openBlock(), _createElementBlock("p", {
4311
+ key: 1,
4312
+ class: "context-health-meta"
4313
+ }, _toDisplayString(_ctx.sessionContextHealth.messageCount.toLocaleString()) + " " + _toDisplayString(_ctx.t('contextHealth.nodes')), 1 /* TEXT */))
4314
+ : (_ctx.sessionContextHealthLoading)
4315
+ ? (_openBlock(), _createElementBlock("p", {
4316
+ key: 2,
4317
+ class: "context-health-meta",
4318
+ role: "status"
4319
+ }, _toDisplayString(_ctx.t('contextHealth.loading')), 1 /* TEXT */))
4320
+ : _createCommentVNode("v-if", true)
4321
+ ]),
4322
+ (_ctx.sessionContextHealth)
4323
+ ? (_openBlock(), _createElementBlock("div", {
4324
+ key: 0,
4325
+ class: "context-health-summary"
4326
+ }, [
4327
+ _createElementVNode("span", { class: "context-health-total mono" }, [
4328
+ _createTextVNode("≈ " + _toDisplayString(_ctx.sessionContextHealth.totalEstimatedTokens.toLocaleString()) + " ", 1 /* TEXT */),
4329
+ _createElementVNode("small", null, "Token")
4330
+ ])
4331
+ ]))
4332
+ : (_ctx.sessionContextHealthLoading)
4333
+ ? (_openBlock(), _createElementBlock("div", {
4334
+ key: 1,
4335
+ class: "context-health-summary context-health-summary-skeleton",
4336
+ "aria-hidden": "true"
4337
+ }, [
4338
+ _createElementVNode("span")
4339
+ ]))
4340
+ : _createCommentVNode("v-if", true),
4341
+ _createElementVNode("button", {
4342
+ type: "button",
4343
+ class: "btn-mini context-health-refresh",
4344
+ onClick: $event => (_ctx.loadSessionContextHealth(true)),
4345
+ disabled: _ctx.sessionContextHealthLoading,
4346
+ "aria-label": _ctx.t('common.refresh'),
4347
+ title: _ctx.t('common.refresh')
4348
+ }, [
4349
+ (_openBlock(), _createElementBlock("svg", {
4350
+ width: "16",
4351
+ height: "16",
4352
+ viewBox: "0 0 24 24",
4353
+ fill: "none",
4354
+ stroke: "currentColor",
4355
+ "stroke-width": "1.75",
4356
+ "stroke-linecap": "round",
4357
+ "stroke-linejoin": "round",
4358
+ "aria-hidden": "true"
4359
+ }, [
4360
+ _createElementVNode("path", { d: "M20 7v5h-5M4 17v-5h5" }),
4361
+ _createElementVNode("path", { d: "M6.1 7a7 7 0 0 1 11.5-1.3L20 8M4 16l2.4 2.3A7 7 0 0 0 17.9 17" })
4362
+ ]))
4363
+ ], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"])
4364
+ ]),
4365
+ _createElementVNode("div", {
4366
+ class: "context-health-bar",
4367
+ role: "img",
4368
+ "aria-label": _ctx.t('contextHealth.composition')
4369
+ }, [
4370
+ (_ctx.sessionContextHealth)
4371
+ ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(_ctx.sessionContextHealth.categories, (part) => {
4372
+ return _withDirectives((_openBlock(), _createElementBlock("span", {
4373
+ key: part.id,
4374
+ class: _normalizeClass(['context-health-segment', part.id]),
4375
+ style: _normalizeStyle({ flexGrow: part.estimatedTokens }),
4376
+ title: _ctx.t('contextHealth.category.' + part.id) + ': ≈ ' + part.estimatedTokens + ' Token (' + part.percentage.toFixed(2) + '%)',
4377
+ "aria-label": _ctx.t('contextHealth.category.' + part.id) + ': ' + part.percentage.toFixed(2) + '%'
4378
+ }, null, 14 /* CLASS, STYLE, PROPS */, ["title", "aria-label"])), [
4379
+ [_vShow, part.estimatedTokens > 0]
4380
+ ])
4381
+ }), 128 /* KEYED_FRAGMENT */))
4382
+ : _createCommentVNode("v-if", true)
4383
+ ], 8 /* PROPS */, ["aria-label"]),
4384
+ (_ctx.sessionContextHealthError)
4385
+ ? (_openBlock(), _createElementBlock("p", {
4386
+ key: 0,
4387
+ class: "form-error context-health-error",
4388
+ role: "alert"
4389
+ }, _toDisplayString(_ctx.sessionContextHealthError), 1 /* TEXT */))
4390
+ : _createCommentVNode("v-if", true),
4391
+ (_ctx.sessionContextHealth)
4392
+ ? (_openBlock(), _createElementBlock("div", {
4393
+ key: 1,
4394
+ id: "context-health-details",
4395
+ class: "context-health-details"
4396
+ }, [
4397
+ _createElementVNode("dl", { class: "context-health-legend" }, [
4398
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionContextHealth.categories, (part) => {
4399
+ return (_openBlock(), _createElementBlock("div", {
4400
+ key: part.id
4401
+ }, [
4402
+ _createElementVNode("dt", null, [
4403
+ _createElementVNode("span", {
4404
+ class: _normalizeClass(['context-health-dot', part.id]),
4405
+ "aria-hidden": "true"
4406
+ }, null, 2 /* CLASS */),
4407
+ _createTextVNode(_toDisplayString(_ctx.t('contextHealth.category.' + part.id)), 1 /* TEXT */)
4408
+ ]),
4409
+ _createElementVNode("dd", null, [
4410
+ _createElementVNode("span", { class: "context-health-category-tokens mono" }, "≈ " + _toDisplayString(part.estimatedTokens.toLocaleString()), 1 /* TEXT */),
4411
+ _createElementVNode("span", { class: "context-health-category-share mono" }, _toDisplayString(part.percentage.toFixed(2)) + "%", 1 /* TEXT */)
4412
+ ])
4413
+ ]))
4414
+ }), 128 /* KEYED_FRAGMENT */))
4415
+ ]),
4416
+ (!_ctx.sessionContextHealth.messageCount)
4417
+ ? (_openBlock(), _createElementBlock("p", {
4418
+ key: 0,
4419
+ class: "context-health-note"
4420
+ }, _toDisplayString(_ctx.t('contextHealth.empty')), 1 /* TEXT */))
4421
+ : _createCommentVNode("v-if", true)
4422
+ ]))
4423
+ : (_ctx.sessionContextHealthLoading)
4424
+ ? (_openBlock(), _createElementBlock("dl", {
4425
+ key: 2,
4426
+ class: "context-health-legend context-health-loading",
4427
+ "aria-hidden": "true"
4428
+ }, [
4429
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(['system', 'user', 'assistant', 'tools', 'code'], (part) => {
4430
+ return _createElementVNode("div", {
4431
+ key: part,
4432
+ class: "context-health-loading-row"
4433
+ }, [
4434
+ _createElementVNode("dt", null, [
4435
+ _createElementVNode("span", {
4436
+ class: _normalizeClass(['context-health-dot', part]),
4437
+ "aria-hidden": "true"
4438
+ }, null, 2 /* CLASS */),
4439
+ _createTextVNode(_toDisplayString(_ctx.t('contextHealth.category.' + part)), 1 /* TEXT */)
4440
+ ]),
4441
+ _createElementVNode("dd", null, [
4442
+ _createElementVNode("span", { class: "context-health-value-skeleton" }),
4443
+ _createElementVNode("span", { class: "context-health-share-skeleton" })
4444
+ ])
4445
+ ])
4446
+ }), 64 /* STABLE_FRAGMENT */))
4447
+ ]))
4448
+ : _createCommentVNode("v-if", true)
4449
+ ], 8 /* PROPS */, ["aria-busy", "onVnodeMounted", "onVnodeUpdated"]))
4450
+ : _createCommentVNode("v-if", true),
4451
+ (_ctx.sessionContextHealthFocusedNode)
4452
+ ? (_openBlock(), _createElementBlock("article", {
4453
+ key: 1,
4454
+ ref: "contextHealthFocusedMessage",
4455
+ class: "context-health-focused-message",
4456
+ tabindex: "-1",
4457
+ "data-context-node-id": _ctx.sessionContextHealthFocusedNode.id,
4458
+ "aria-label": _ctx.t('contextHealth.message')
4459
+ }, [
4460
+ _createElementVNode("header", null, [
4461
+ _createElementVNode("div", null, [
4462
+ _createElementVNode("strong", null, _toDisplayString(_ctx.t('contextHealth.message')), 1 /* TEXT */),
4463
+ _createElementVNode("span", { class: "context-health-meta mono" }, _toDisplayString(_ctx.sessionContextHealthFocusedNode.id), 1 /* TEXT */)
4464
+ ]),
4465
+ _createElementVNode("button", {
4466
+ type: "button",
4467
+ class: "btn-mini context-health-refresh",
4468
+ onClick: $event => (_ctx.sessionContextHealthFocusedNode = null),
4469
+ "aria-label": _ctx.t('common.close')
4470
+ }, [
4471
+ (_openBlock(), _createElementBlock("svg", {
4472
+ width: "16",
4473
+ height: "16",
4474
+ viewBox: "0 0 24 24",
4475
+ fill: "none",
4476
+ stroke: "currentColor",
4477
+ "stroke-width": "1.75",
4478
+ "stroke-linecap": "round",
4479
+ "aria-hidden": "true"
4480
+ }, [
4481
+ _createElementVNode("path", { d: "m6 6 12 12M18 6 6 18" })
4482
+ ]))
4483
+ ], 8 /* PROPS */, ["onClick", "aria-label"])
4484
+ ]),
4485
+ _createElementVNode("pre", null, _toDisplayString(_ctx.sessionContextHealthFocusedNode.text), 1 /* TEXT */)
4486
+ ], 8 /* PROPS */, ["data-context-node-id", "aria-label"]))
4487
+ : _createCommentVNode("v-if", true),
4488
+ (_ctx.sessionContextHealth)
4489
+ ? (_openBlock(), _createElementBlock("section", {
4490
+ key: 2,
4491
+ class: "context-window-reference",
4492
+ "aria-label": _ctx.t('features.windowReference')
4493
+ }, [
4494
+ _createElementVNode("div", { class: "feature-section-heading" }, [
4495
+ _createElementVNode("h4", null, _toDisplayString(_ctx.t('features.windowReference')), 1 /* TEXT */),
4496
+ (_ctx.contextReference?.percentage !== undefined)
4497
+ ? (_openBlock(), _createElementBlock("small", {
4498
+ key: 0,
4499
+ class: "feature-meta"
4500
+ }, _toDisplayString(_ctx.t('features.windowSource.' + _ctx.contextReference.source)), 1 /* TEXT */))
4501
+ : _createCommentVNode("v-if", true)
4502
+ ]),
4503
+ (_ctx.contextReference?.percentage !== undefined)
4504
+ ? (_openBlock(), _createElementBlock("p", {
4505
+ key: 0,
4506
+ class: "feature-hint"
4507
+ }, _toDisplayString(_ctx.t('features.contextEstimate', { percent: _ctx.contextReference.percentage.toFixed(2), window: _ctx.contextReference.window })), 1 /* TEXT */))
4508
+ : (_openBlock(), _createElementBlock("p", {
4509
+ key: 1,
4510
+ class: "feature-hint"
4511
+ }, _toDisplayString(_ctx.t('features.windowStatus.' + (_ctx.contextReference?.status || 'unknown'))), 1 /* TEXT */)),
4512
+ _createElementVNode("details", { class: "feature-disclosure" }, [
4513
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('features.windowSettings')), 1 /* TEXT */),
4514
+ _createElementVNode("div", { class: "feature-window-fields" }, [
4515
+ (_ctx.sessionContextHealth.models?.length)
4516
+ ? (_openBlock(), _createElementBlock("label", { key: 0 }, [
4517
+ _createTextVNode(_toDisplayString(_ctx.t('features.model')), 1 /* TEXT */),
4518
+ _withDirectives(_createElementVNode("select", {
4519
+ "onUpdate:modelValue": $event => ((_ctx.contextSelectedModel) = $event),
4520
+ "aria-label": _ctx.t('features.model')
4521
+ }, [
4522
+ _createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('features.chooseModel')), 1 /* TEXT */),
4523
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionContextHealth.models, (model) => {
4524
+ return (_openBlock(), _createElementBlock("option", {
4525
+ key: model,
4526
+ value: model
4527
+ }, _toDisplayString(model), 9 /* TEXT, PROPS */, ["value"]))
4528
+ }), 128 /* KEYED_FRAGMENT */))
4529
+ ], 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
4530
+ [_vModelSelect, _ctx.contextSelectedModel]
4531
+ ])
4532
+ ]))
4533
+ : _createCommentVNode("v-if", true),
4534
+ _createElementVNode("label", null, [
4535
+ _createTextVNode(_toDisplayString(_ctx.t('features.contextWindow')), 1 /* TEXT */),
4536
+ _withDirectives(_createElementVNode("input", {
4537
+ "onUpdate:modelValue": $event => ((_ctx.contextWindowInput) = $event),
4538
+ type: "number",
4539
+ min: "1",
4540
+ step: "1",
4541
+ "aria-label": _ctx.t('features.contextWindow')
4542
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
4543
+ [_vModelText, _ctx.contextWindowInput]
4544
+ ])
4545
+ ]),
4546
+ _createElementVNode("button", {
4547
+ type: "button",
4548
+ class: "btn-mini",
4549
+ onClick: $event => (_ctx.saveContextPreferences(false)),
4550
+ disabled: _ctx.contextReference?.status === 'invalid'
4551
+ }, _toDisplayString(_ctx.t('features.save')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
4552
+ ])
4553
+ ]),
4554
+ (_ctx.contextReference && ['warning', 'high'].includes(_ctx.contextReference.status) && !_ctx.contextReminderDismissed)
4555
+ ? (_openBlock(), _createElementBlock("div", {
4556
+ key: 2,
4557
+ role: "status",
4558
+ class: "feature-window-warning"
4559
+ }, [
4560
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('features.windowStatus.' + _ctx.contextReference.status)), 1 /* TEXT */),
4561
+ _createElementVNode("div", { class: "feature-record-actions" }, [
4562
+ _createElementVNode("button", {
4563
+ type: "button",
4564
+ class: "btn-mini",
4565
+ onClick: $event => (_ctx.handoffExpanded = true)
4566
+ }, _toDisplayString(_ctx.t('features.handoffs')), 9 /* TEXT, PROPS */, ["onClick"]),
4567
+ _createElementVNode("button", {
4568
+ type: "button",
4569
+ class: "btn-mini feature-quiet",
4570
+ onClick: $event => (_ctx.saveContextPreferences(true))
4571
+ }, _toDisplayString(_ctx.t('features.dismiss')), 9 /* TEXT, PROPS */, ["onClick"])
4572
+ ])
4573
+ ]))
4574
+ : _createCommentVNode("v-if", true)
4575
+ ], 8 /* PROPS */, ["aria-label"]))
4576
+ : _createCommentVNode("v-if", true),
4173
4577
  _createElementVNode("pre", { class: "session-standalone-text" }, _toDisplayString(_ctx.sessionStandaloneText), 1 /* TEXT */)
4174
4578
  ]))
4175
4579
  ]))
4176
4580
  : (_openBlock(), _createElementBlock("div", { key: 1 }, [
4177
- _createElementVNode("div", { class: "selector-section session-selector-section" }, [
4178
- _createElementVNode("div", {
4179
- class: "selector-header",
4180
- style: {"display":"none"}
4181
- }, [
4182
- _createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('sessions.sourceTitle')), 1 /* TEXT */),
4183
- _createElementVNode("div", { class: "selector-actions sessions-header-actions" })
4184
- ]),
4185
- _createElementVNode("div", { class: "session-source-tabs-row" }, [
4581
+ _createElementVNode("section", {
4582
+ class: "session-features",
4583
+ "aria-label": _ctx.t('features.title')
4584
+ }, [
4585
+ _createElementVNode("header", { class: "feature-toolbar" }, [
4186
4586
  _createElementVNode("div", {
4187
- class: "session-source-pills",
4587
+ class: "feature-tabs",
4188
4588
  role: "group",
4189
- "aria-label": _ctx.t('sessions.sourceTitle')
4589
+ "aria-label": _ctx.t('features.title')
4190
4590
  }, [
4191
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionSourceOptions, (src) => {
4192
- return (_openBlock(), _createElementBlock("button", {
4193
- key: src.value,
4194
- class: _normalizeClass(['session-source-pill', { active: _ctx.sessionFilterSource === src.value }]),
4195
- "data-source": src.value,
4196
- onClick: $event => (_ctx.setSessionSource(src.value)),
4197
- disabled: _ctx.sessionsLoading,
4198
- "aria-pressed": _ctx.sessionFilterSource === src.value,
4199
- type: "button"
4200
- }, [
4201
- _createElementVNode("span", { class: "session-source-pill-dot" }),
4202
- _createElementVNode("span", { class: "session-source-pill-label" }, _toDisplayString(src.label), 1 /* TEXT */)
4203
- ], 10 /* CLASS, PROPS */, ["data-source", "onClick", "disabled", "aria-pressed"]))
4204
- }), 128 /* KEYED_FRAGMENT */))
4205
- ], 8 /* PROPS */, ["aria-label"])
4591
+ _createElementVNode("button", {
4592
+ type: "button",
4593
+ "aria-expanded": _ctx.featureView === 'bookmarks',
4594
+ onClick: $event => (_ctx.openFeatureView('bookmarks'))
4595
+ }, _toDisplayString(_ctx.t('features.bookmarks')), 9 /* TEXT, PROPS */, ["aria-expanded", "onClick"]),
4596
+ _createElementVNode("button", {
4597
+ type: "button",
4598
+ "aria-expanded": _ctx.featureView === 'search',
4599
+ onClick: $event => (_ctx.openFeatureView('search'))
4600
+ }, _toDisplayString(_ctx.t('features.index')), 9 /* TEXT, PROPS */, ["aria-expanded", "onClick"]),
4601
+ _createElementVNode("button", {
4602
+ type: "button",
4603
+ "aria-expanded": _ctx.featureView === 'projects',
4604
+ onClick: $event => (_ctx.openFeatureView('projects'))
4605
+ }, _toDisplayString(_ctx.t('features.projects')), 9 /* TEXT, PROPS */, ["aria-expanded", "onClick"])
4606
+ ], 8 /* PROPS */, ["aria-label"]),
4607
+ (_ctx.selectedContextIds.length)
4608
+ ? (_openBlock(), _createElementBlock("button", {
4609
+ key: 0,
4610
+ type: "button",
4611
+ class: "btn-mini",
4612
+ onClick: _ctx.generateSelectedHandoff,
4613
+ disabled: _ctx.featureBusy
4614
+ }, _toDisplayString(_ctx.t('features.generateDraft', { count: _ctx.selectedContextIds.length })), 9 /* TEXT, PROPS */, ["onClick", "disabled"]))
4615
+ : _createCommentVNode("v-if", true)
4206
4616
  ]),
4207
- _createElementVNode("div", { class: "session-toolbar" }, [
4208
- _createElementVNode("div", { class: "session-toolbar-group session-toolbar-primary" }, [
4209
- _withDirectives(_createElementVNode("select", {
4210
- class: "session-path-select",
4211
- "onUpdate:modelValue": $event => ((_ctx.sessionPathFilter) = $event),
4212
- onChange: _ctx.onSessionPathFilterChange,
4213
- onFocus: $event => (_ctx.loadSessionPathOptions({ source: _ctx.sessionFilterSource })),
4214
- disabled: _ctx.sessionsLoading
4617
+ (_ctx.featureError)
4618
+ ? (_openBlock(), _createElementBlock("p", {
4619
+ key: 0,
4620
+ class: "form-error feature-feedback",
4621
+ role: "alert"
4622
+ }, _toDisplayString(_ctx.featureError), 1 /* TEXT */))
4623
+ : _createCommentVNode("v-if", true),
4624
+ (_ctx.featureView === 'search')
4625
+ ? (_openBlock(), _createElementBlock("div", {
4626
+ key: 1,
4627
+ class: "feature-content"
4215
4628
  }, [
4216
- _createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('sessions.allPaths')), 1 /* TEXT */),
4217
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionPathOptions, (cwd) => {
4218
- return (_openBlock(), _createElementBlock("option", {
4219
- key: cwd,
4220
- value: cwd
4221
- }, _toDisplayString(cwd), 9 /* TEXT, PROPS */, ["value"]))
4222
- }), 128 /* KEYED_FRAGMENT */))
4223
- ], 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "onChange", "onFocus", "disabled"]), [
4224
- [_vModelSelect, _ctx.sessionPathFilter]
4225
- ])
4226
- ]),
4227
- _createElementVNode("div", { class: "session-toolbar-group session-toolbar-grow" }, [
4228
- _withDirectives(_createElementVNode("input", {
4229
- class: "session-query-input",
4629
+ _createElementVNode("div", { class: "feature-section-heading" }, [
4630
+ _createElementVNode("h3", null, _toDisplayString(_ctx.t('features.index')), 1 /* TEXT */),
4631
+ _createElementVNode("div", { class: "feature-actions" }, [
4632
+ _createElementVNode("button", {
4633
+ type: "button",
4634
+ class: "btn-mini",
4635
+ onClick: $event => (_ctx.refreshSessionIndex(false)),
4636
+ disabled: _ctx.indexReport?.job.status === 'running'
4637
+ }, _toDisplayString(_ctx.t('features.refreshIndex')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
4638
+ _createElementVNode("button", {
4639
+ type: "button",
4640
+ class: "btn-mini feature-quiet",
4641
+ onClick: $event => (_ctx.refreshSessionIndex(true)),
4642
+ disabled: _ctx.indexReport?.job.status === 'running'
4643
+ }, _toDisplayString(_ctx.t('features.rebuildIndex')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
4644
+ (_ctx.indexReport?.job.status === 'running')
4645
+ ? (_openBlock(), _createElementBlock("button", {
4646
+ key: 0,
4647
+ type: "button",
4648
+ class: "btn-mini",
4649
+ onClick: _ctx.cancelSessionIndex
4650
+ }, _toDisplayString(_ctx.t('features.cancel')), 9 /* TEXT, PROPS */, ["onClick"]))
4651
+ : _createCommentVNode("v-if", true)
4652
+ ])
4653
+ ]),
4654
+ (_ctx.indexReport)
4655
+ ? (_openBlock(), _createElementBlock("div", {
4656
+ key: 0,
4657
+ class: "feature-meta",
4658
+ role: "status"
4659
+ }, [
4660
+ _createElementVNode("span", {
4661
+ class: "feature-status",
4662
+ "data-status": _ctx.indexReport.job.status
4663
+ }, _toDisplayString(_ctx.t('features.status.' + _ctx.indexReport.job.status)), 9 /* TEXT, PROPS */, ["data-status"]),
4664
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('features.indexStatus', { count: _ctx.indexReport.indexed, processed: _ctx.indexReport.job.processed, total: _ctx.indexReport.job.candidates })), 1 /* TEXT */)
4665
+ ]))
4666
+ : _createCommentVNode("v-if", true),
4667
+ _createElementVNode("form", {
4668
+ class: "feature-actions feature-search-form",
4669
+ onSubmit: _withModifiers(_ctx.searchSessionIndex, ["prevent"])
4670
+ }, [
4671
+ _withDirectives(_createElementVNode("input", {
4672
+ "onUpdate:modelValue": $event => ((_ctx.indexQuery) = $event),
4673
+ "aria-label": _ctx.t('features.search'),
4674
+ placeholder: _ctx.t('features.search')
4675
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"]), [
4676
+ [_vModelText, _ctx.indexQuery]
4677
+ ]),
4678
+ _createElementVNode("button", {
4679
+ class: "btn-mini feature-primary",
4680
+ disabled: _ctx.featureBusy || !_ctx.indexQuery.trim() || !_ctx.indexReport?.updatedAt
4681
+ }, _toDisplayString(_ctx.t('features.search')), 9 /* TEXT, PROPS */, ["disabled"])
4682
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
4683
+ _createElementVNode("details", { class: "feature-disclosure" }, [
4684
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('features.searchScope')), 1 /* TEXT */),
4685
+ _createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.indexScope')), 1 /* TEXT */)
4686
+ ]),
4687
+ (_ctx.indexReport?.failures.length)
4688
+ ? (_openBlock(), _createElementBlock("p", {
4689
+ key: 1,
4690
+ class: "form-error",
4691
+ role: "alert"
4692
+ }, _toDisplayString(_ctx.t('features.indexFailures', { count: _ctx.indexReport.failures.length })), 1 /* TEXT */))
4693
+ : _createCommentVNode("v-if", true),
4694
+ (_ctx.featureBusy)
4695
+ ? (_openBlock(), _createElementBlock("p", {
4696
+ key: 2,
4697
+ class: "feature-loading",
4698
+ role: "status"
4699
+ }, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
4700
+ : _createCommentVNode("v-if", true),
4701
+ (_ctx.indexResults)
4702
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 3 }, [
4703
+ _createElementVNode("p", { class: "feature-meta" }, _toDisplayString(_ctx.t('features.coverage', { scanned: _ctx.indexResults.scanned, total: _ctx.indexResults.candidates })), 1 /* TEXT */),
4704
+ (!_ctx.indexResults.complete)
4705
+ ? (_openBlock(), _createElementBlock("p", {
4706
+ key: 0,
4707
+ class: "feature-hint"
4708
+ }, _toDisplayString(_ctx.t('features.partial')), 1 /* TEXT */))
4709
+ : _createCommentVNode("v-if", true),
4710
+ (!_ctx.indexResults.results.length)
4711
+ ? (_openBlock(), _createElementBlock("p", {
4712
+ key: 1,
4713
+ class: "feature-empty"
4714
+ }, _toDisplayString(_ctx.t('features.empty')), 1 /* TEXT */))
4715
+ : _createCommentVNode("v-if", true),
4716
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.indexResults.results, (result) => {
4717
+ return (_openBlock(), _createElementBlock("article", {
4718
+ key: result.session.key + result.nodeId,
4719
+ class: "feature-record"
4720
+ }, [
4721
+ _createElementVNode("header", { class: "feature-record-heading" }, [
4722
+ _createElementVNode("h4", null, _toDisplayString(result.session.title || result.session.sessionId), 1 /* TEXT */),
4723
+ _createElementVNode("span", { class: "feature-source" }, _toDisplayString(result.session.source), 1 /* TEXT */)
4724
+ ]),
4725
+ _createElementVNode("small", {
4726
+ class: "feature-path",
4727
+ title: result.session.cwd
4728
+ }, _toDisplayString(result.session.cwd), 9 /* TEXT, PROPS */, ["title"]),
4729
+ _createElementVNode("pre", { class: "feature-excerpt" }, _toDisplayString(result.snippet), 1 /* TEXT */),
4730
+ _createElementVNode("div", { class: "feature-record-actions" }, [
4731
+ _createElementVNode("button", {
4732
+ type: "button",
4733
+ class: "btn-mini",
4734
+ onClick: $event => (_ctx.openIndexedMessage(result))
4735
+ }, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"])
4736
+ ]),
4737
+ _createElementVNode("details", { class: "feature-disclosure" }, [
4738
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('features.context')), 1 /* TEXT */),
4739
+ _createElementVNode("pre", null, _toDisplayString(result.before), 1 /* TEXT */),
4740
+ _createElementVNode("pre", null, _toDisplayString(result.after), 1 /* TEXT */)
4741
+ ])
4742
+ ]))
4743
+ }), 128 /* KEYED_FRAGMENT */))
4744
+ ], 64 /* STABLE_FRAGMENT */))
4745
+ : _createCommentVNode("v-if", true)
4746
+ ]))
4747
+ : _createCommentVNode("v-if", true),
4748
+ (_ctx.featureView === 'projects')
4749
+ ? (_openBlock(), _createElementBlock("div", {
4750
+ key: 2,
4751
+ class: "feature-content"
4752
+ }, [
4753
+ _createElementVNode("div", { class: "feature-section-heading" }, [
4754
+ _createElementVNode("h3", null, _toDisplayString(_ctx.t('features.projects')), 1 /* TEXT */),
4755
+ (_ctx.projectReport)
4756
+ ? (_openBlock(), _createElementBlock("small", {
4757
+ key: 0,
4758
+ class: "feature-meta"
4759
+ }, _toDisplayString(_ctx.t('features.readAt', { time: _ctx.projectReport.readAt })), 1 /* TEXT */))
4760
+ : _createCommentVNode("v-if", true)
4761
+ ]),
4762
+ _createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.projectHistory')), 1 /* TEXT */),
4763
+ (_ctx.featureBusy)
4764
+ ? (_openBlock(), _createElementBlock("p", {
4765
+ key: 0,
4766
+ class: "feature-loading",
4767
+ role: "status"
4768
+ }, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
4769
+ : _createCommentVNode("v-if", true),
4770
+ (_ctx.projectReport)
4771
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
4772
+ (_ctx.projectReport.failures.length)
4773
+ ? (_openBlock(), _createElementBlock("p", {
4774
+ key: 0,
4775
+ class: "form-error"
4776
+ }, _toDisplayString(_ctx.t('features.indexFailures', { count: _ctx.projectReport.failures.length })), 1 /* TEXT */))
4777
+ : _createCommentVNode("v-if", true),
4778
+ _createElementVNode("div", {
4779
+ class: "feature-project-picker",
4780
+ role: "group",
4781
+ "aria-label": _ctx.t('features.projects')
4782
+ }, [
4783
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.projects, (project) => {
4784
+ return (_openBlock(), _createElementBlock("button", {
4785
+ key: project.key,
4786
+ type: "button",
4787
+ onClick: $event => (_ctx.loadProjectWorkspace(project.key)),
4788
+ disabled: _ctx.featureBusy,
4789
+ "aria-pressed": _ctx.projectSelected === project.key && !!_ctx.projectReport.detail
4790
+ }, [
4791
+ _createElementVNode("span", { class: "feature-project-label" }, [
4792
+ _createElementVNode("strong", null, _toDisplayString(project.cwd.split(/[\\/]/).filter(Boolean).pop() || project.cwd || _ctx.t('features.unassigned')), 1 /* TEXT */),
4793
+ _createElementVNode("small", {
4794
+ class: "feature-path",
4795
+ title: project.cwd
4796
+ }, _toDisplayString(project.cwd || _ctx.t('features.unassigned')), 9 /* TEXT, PROPS */, ["title"])
4797
+ ]),
4798
+ _createElementVNode("span", { class: "feature-count" }, _toDisplayString(project.sessionCount), 1 /* TEXT */)
4799
+ ], 8 /* PROPS */, ["onClick", "disabled", "aria-pressed"]))
4800
+ }), 128 /* KEYED_FRAGMENT */))
4801
+ ], 8 /* PROPS */, ["aria-label"]),
4802
+ (_ctx.projectReport.detail)
4803
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
4804
+ _createElementVNode("div", { class: "feature-section-heading feature-project-heading" }, [
4805
+ _createElementVNode("h4", {
4806
+ class: "feature-path",
4807
+ title: _ctx.projectReport.detail.cwd
4808
+ }, _toDisplayString(_ctx.projectReport.detail.cwd || _ctx.t('features.unassigned')), 9 /* TEXT, PROPS */, ["title"])
4809
+ ]),
4810
+ (_ctx.projectReport.detail.truncated)
4811
+ ? (_openBlock(), _createElementBlock("p", {
4812
+ key: 0,
4813
+ class: "feature-hint"
4814
+ }, _toDisplayString(_ctx.t('features.partial')), 1 /* TEXT */))
4815
+ : _createCommentVNode("v-if", true),
4816
+ _createElementVNode("div", { class: "feature-project-sessions" }, [
4817
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.sessions, (session) => {
4818
+ return (_openBlock(), _createElementBlock("article", {
4819
+ key: session.source + session.sessionId,
4820
+ class: "feature-session-row"
4821
+ }, [
4822
+ _createElementVNode("button", {
4823
+ type: "button",
4824
+ onClick: $event => (_ctx.selectSession(session))
4825
+ }, _toDisplayString(session.title || session.sessionId), 9 /* TEXT, PROPS */, ["onClick"]),
4826
+ _createElementVNode("small", { class: "feature-meta" }, _toDisplayString(session.source) + " · " + _toDisplayString(session.timestamp), 1 /* TEXT */)
4827
+ ]))
4828
+ }), 128 /* KEYED_FRAGMENT */))
4829
+ ]),
4830
+ _createElementVNode("details", {
4831
+ class: "feature-disclosure",
4832
+ open: !!_ctx.projectReport.detail.bookmarks.length
4833
+ }, [
4834
+ _createElementVNode("summary", null, [
4835
+ _createTextVNode(_toDisplayString(_ctx.t('features.bookmarks')) + " ", 1 /* TEXT */),
4836
+ _createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.projectReport.detail.bookmarks.length), 1 /* TEXT */)
4837
+ ]),
4838
+ _createElementVNode("div", { class: "feature-link-list" }, [
4839
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.bookmarks, (item) => {
4840
+ return (_openBlock(), _createElementBlock("button", {
4841
+ key: item.id,
4842
+ type: "button",
4843
+ onClick: $event => (_ctx.locateBookmark(item))
4844
+ }, _toDisplayString(item.note || item.excerpt.slice(0, 80)), 9 /* TEXT, PROPS */, ["onClick"]))
4845
+ }), 128 /* KEYED_FRAGMENT */))
4846
+ ])
4847
+ ], 8 /* PROPS */, ["open"]),
4848
+ _createElementVNode("details", { class: "feature-disclosure" }, [
4849
+ _createElementVNode("summary", null, [
4850
+ _createTextVNode(_toDisplayString(_ctx.t('features.prompts')) + " ", 1 /* TEXT */),
4851
+ _createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.projectReport.detail.prompts.length), 1 /* TEXT */)
4852
+ ]),
4853
+ _createElementVNode("div", { class: "feature-link-list" }, [
4854
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.prompts, (file) => {
4855
+ return (_openBlock(), _createElementBlock("button", {
4856
+ key: file,
4857
+ type: "button",
4858
+ onClick: $event => (_ctx.openProjectPrompt(file))
4859
+ }, _toDisplayString(file), 9 /* TEXT, PROPS */, ["onClick"]))
4860
+ }), 128 /* KEYED_FRAGMENT */))
4861
+ ]),
4862
+ (_ctx.projectPrompt)
4863
+ ? (_openBlock(), _createElementBlock("pre", {
4864
+ key: 0,
4865
+ class: "feature-code"
4866
+ }, _toDisplayString(_ctx.projectPrompt.content), 1 /* TEXT */))
4867
+ : _createCommentVNode("v-if", true)
4868
+ ]),
4869
+ _createElementVNode("details", { class: "feature-disclosure" }, [
4870
+ _createElementVNode("summary", null, [
4871
+ _createTextVNode(_toDisplayString(_ctx.t('features.handoffs')) + " ", 1 /* TEXT */),
4872
+ _createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.projectReport.detail.handoffs.length), 1 /* TEXT */)
4873
+ ]),
4874
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.handoffs, (record) => {
4875
+ return (_openBlock(), _createElementBlock("p", {
4876
+ key: record.source + record.id,
4877
+ class: "feature-meta"
4878
+ }, _toDisplayString(record.source) + " · " + _toDisplayString(record.target) + " · " + _toDisplayString(record.createdAt) + " · " + _toDisplayString(_ctx.handoffStatusLabel(record.status)), 1 /* TEXT */))
4879
+ }), 128 /* KEYED_FRAGMENT */))
4880
+ ]),
4881
+ (_ctx.projectSelected)
4882
+ ? (_openBlock(), _createElementBlock("details", {
4883
+ key: 1,
4884
+ class: "feature-disclosure"
4885
+ }, [
4886
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('features.projectMapping')), 1 /* TEXT */),
4887
+ _createElementVNode("form", {
4888
+ class: "feature-actions feature-search-form",
4889
+ onSubmit: _withModifiers(_ctx.mapProjectWorkspace, ["prevent"])
4890
+ }, [
4891
+ _withDirectives(_createElementVNode("input", {
4892
+ "onUpdate:modelValue": $event => ((_ctx.projectAlias) = $event),
4893
+ "aria-label": _ctx.t('features.projectPath'),
4894
+ placeholder: _ctx.t('features.projectPath')
4895
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"]), [
4896
+ [_vModelText, _ctx.projectAlias]
4897
+ ]),
4898
+ _createElementVNode("button", {
4899
+ class: "btn-mini",
4900
+ disabled: _ctx.featureBusy
4901
+ }, _toDisplayString(_ctx.t('features.saveMapping')), 9 /* TEXT, PROPS */, ["disabled"])
4902
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"])
4903
+ ]))
4904
+ : _createCommentVNode("v-if", true)
4905
+ ], 64 /* STABLE_FRAGMENT */))
4906
+ : _createCommentVNode("v-if", true)
4907
+ ], 64 /* STABLE_FRAGMENT */))
4908
+ : _createCommentVNode("v-if", true)
4909
+ ]))
4910
+ : _createCommentVNode("v-if", true),
4911
+ (_ctx.featureView === 'bookmarks')
4912
+ ? (_openBlock(), _createElementBlock("div", {
4913
+ key: 3,
4914
+ class: "feature-content"
4915
+ }, [
4916
+ _createElementVNode("div", { class: "feature-section-heading" }, [
4917
+ _createElementVNode("h3", null, _toDisplayString(_ctx.t('features.bookmarks')), 1 /* TEXT */),
4918
+ _createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.bookmarks.length), 1 /* TEXT */)
4919
+ ]),
4920
+ _createElementVNode("form", {
4921
+ onSubmit: _withModifiers(_ctx.loadBookmarks, ["prevent"])
4922
+ }, [
4923
+ _createElementVNode("div", { class: "feature-actions feature-search-form" }, [
4924
+ _withDirectives(_createElementVNode("input", {
4925
+ "onUpdate:modelValue": $event => ((_ctx.bookmarkQuery) = $event),
4926
+ "aria-label": _ctx.t('features.search'),
4927
+ placeholder: _ctx.t('features.search')
4928
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"]), [
4929
+ [_vModelText, _ctx.bookmarkQuery]
4930
+ ]),
4931
+ _createElementVNode("button", {
4932
+ class: "btn-mini feature-primary",
4933
+ disabled: _ctx.featureBusy
4934
+ }, _toDisplayString(_ctx.t('features.search')), 9 /* TEXT, PROPS */, ["disabled"])
4935
+ ]),
4936
+ _createElementVNode("details", { class: "feature-disclosure" }, [
4937
+ _createElementVNode("summary", null, [
4938
+ _createTextVNode(_toDisplayString(_ctx.t('features.moreFilters')) + " ", 1 /* TEXT */),
4939
+ (_ctx.bookmarkTag || _ctx.bookmarkProject)
4940
+ ? (_openBlock(), _createElementBlock("span", {
4941
+ key: 0,
4942
+ class: "feature-count"
4943
+ }, _toDisplayString((_ctx.bookmarkTag ? 1 : 0) + (_ctx.bookmarkProject ? 1 : 0)), 1 /* TEXT */))
4944
+ : _createCommentVNode("v-if", true)
4945
+ ]),
4946
+ _createElementVNode("div", { class: "feature-filter-fields" }, [
4947
+ _createElementVNode("label", null, [
4948
+ _createTextVNode(_toDisplayString(_ctx.t('features.tag')), 1 /* TEXT */),
4949
+ _withDirectives(_createElementVNode("input", {
4950
+ "onUpdate:modelValue": $event => ((_ctx.bookmarkTag) = $event),
4951
+ "aria-label": _ctx.t('features.tag')
4952
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
4953
+ [_vModelText, _ctx.bookmarkTag]
4954
+ ])
4955
+ ]),
4956
+ _createElementVNode("label", null, [
4957
+ _createTextVNode(_toDisplayString(_ctx.t('features.projectPath')), 1 /* TEXT */),
4958
+ _withDirectives(_createElementVNode("input", {
4959
+ "onUpdate:modelValue": $event => ((_ctx.bookmarkProject) = $event),
4960
+ "aria-label": _ctx.t('features.projectPath')
4961
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
4962
+ [_vModelText, _ctx.bookmarkProject]
4963
+ ])
4964
+ ])
4965
+ ])
4966
+ ])
4967
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
4968
+ (_ctx.featureBusy)
4969
+ ? (_openBlock(), _createElementBlock("p", {
4970
+ key: 0,
4971
+ class: "feature-loading",
4972
+ role: "status"
4973
+ }, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
4974
+ : (!_ctx.bookmarks.length)
4975
+ ? (_openBlock(), _createElementBlock("div", {
4976
+ key: 1,
4977
+ class: "feature-empty"
4978
+ }, [
4979
+ _createElementVNode("p", null, _toDisplayString(_ctx.t('features.empty')), 1 /* TEXT */)
4980
+ ]))
4981
+ : _createCommentVNode("v-if", true),
4982
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.bookmarks, (item) => {
4983
+ return (_openBlock(), _createElementBlock("article", {
4984
+ key: item.id,
4985
+ class: "feature-record"
4986
+ }, [
4987
+ _createElementVNode("header", { class: "feature-record-heading" }, [
4988
+ _createElementVNode("span", { class: "feature-source" }, _toDisplayString(item.source), 1 /* TEXT */),
4989
+ _createElementVNode("small", { class: "feature-meta" }, _toDisplayString(item.updatedAt), 1 /* TEXT */)
4990
+ ]),
4991
+ _createElementVNode("small", {
4992
+ class: "feature-path",
4993
+ title: item.cwd
4994
+ }, _toDisplayString(item.cwd), 9 /* TEXT, PROPS */, ["title"]),
4995
+ _createElementVNode("pre", { class: "feature-excerpt" }, _toDisplayString(item.excerpt), 1 /* TEXT */),
4996
+ (item.note)
4997
+ ? (_openBlock(), _createElementBlock("p", {
4998
+ key: 0,
4999
+ class: "feature-note"
5000
+ }, _toDisplayString(item.note), 1 /* TEXT */))
5001
+ : _createCommentVNode("v-if", true),
5002
+ (item.tags.length)
5003
+ ? (_openBlock(), _createElementBlock("div", {
5004
+ key: 1,
5005
+ class: "feature-tags"
5006
+ }, [
5007
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.tags, (tag) => {
5008
+ return (_openBlock(), _createElementBlock("span", {
5009
+ key: tag,
5010
+ class: "feature-tag"
5011
+ }, _toDisplayString(tag), 1 /* TEXT */))
5012
+ }), 128 /* KEYED_FRAGMENT */))
5013
+ ]))
5014
+ : _createCommentVNode("v-if", true),
5015
+ _createElementVNode("div", { class: "feature-record-actions" }, [
5016
+ _createElementVNode("button", {
5017
+ type: "button",
5018
+ class: "btn-mini",
5019
+ onClick: $event => (_ctx.locateBookmark(item)),
5020
+ disabled: _ctx.featureBusy
5021
+ }, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
5022
+ _createElementVNode("button", {
5023
+ type: "button",
5024
+ class: "btn-mini feature-quiet",
5025
+ onClick: $event => (_ctx.bookmarkEditor = { ...item, tagsText: item.tags.join(', ') }),
5026
+ disabled: _ctx.featureBusy
5027
+ }, _toDisplayString(_ctx.t('features.edit')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
5028
+ _createElementVNode("button", {
5029
+ type: "button",
5030
+ class: "btn-mini feature-quiet",
5031
+ onClick: $event => (_ctx.removeBookmark(item)),
5032
+ disabled: _ctx.featureBusy
5033
+ }, _toDisplayString(_ctx.t('features.unbookmark')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
5034
+ ])
5035
+ ]))
5036
+ }), 128 /* KEYED_FRAGMENT */)),
5037
+ (_ctx.bookmarkEditor)
5038
+ ? (_openBlock(), _createElementBlock("form", {
5039
+ key: 2,
5040
+ onSubmit: _withModifiers(_ctx.saveBookmark, ["prevent"]),
5041
+ class: "feature-editor"
5042
+ }, [
5043
+ _createElementVNode("label", null, [
5044
+ _createTextVNode(_toDisplayString(_ctx.t('features.note')), 1 /* TEXT */),
5045
+ _withDirectives(_createElementVNode("textarea", {
5046
+ "onUpdate:modelValue": $event => ((_ctx.bookmarkEditor.note) = $event),
5047
+ maxlength: "4000"
5048
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
5049
+ [_vModelText, _ctx.bookmarkEditor.note]
5050
+ ])
5051
+ ]),
5052
+ _createElementVNode("label", null, [
5053
+ _createTextVNode(_toDisplayString(_ctx.t('features.tags')), 1 /* TEXT */),
5054
+ _withDirectives(_createElementVNode("input", {
5055
+ "onUpdate:modelValue": $event => ((_ctx.bookmarkEditor.tagsText) = $event)
5056
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
5057
+ [_vModelText, _ctx.bookmarkEditor.tagsText]
5058
+ ])
5059
+ ]),
5060
+ _createElementVNode("div", { class: "feature-actions" }, [
5061
+ _createElementVNode("button", {
5062
+ class: "btn-mini feature-primary",
5063
+ disabled: _ctx.featureBusy
5064
+ }, _toDisplayString(_ctx.t('features.save')), 9 /* TEXT, PROPS */, ["disabled"]),
5065
+ _createElementVNode("button", {
5066
+ type: "button",
5067
+ class: "btn-mini feature-quiet",
5068
+ onClick: $event => (_ctx.bookmarkEditor = null),
5069
+ disabled: _ctx.featureBusy
5070
+ }, _toDisplayString(_ctx.t('features.cancel')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
5071
+ ])
5072
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]))
5073
+ : _createCommentVNode("v-if", true)
5074
+ ]))
5075
+ : _createCommentVNode("v-if", true)
5076
+ ], 8 /* PROPS */, ["aria-label"]),
5077
+ _createElementVNode("div", { class: "selector-section session-selector-section" }, [
5078
+ _createElementVNode("div", {
5079
+ class: "selector-header",
5080
+ style: {"display":"none"}
5081
+ }, [
5082
+ _createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('sessions.sourceTitle')), 1 /* TEXT */),
5083
+ _createElementVNode("div", { class: "selector-actions sessions-header-actions" })
5084
+ ]),
5085
+ _createElementVNode("div", { class: "session-source-tabs-row" }, [
5086
+ _createElementVNode("div", {
5087
+ class: "session-source-pills",
5088
+ role: "group",
5089
+ "aria-label": _ctx.t('sessions.sourceTitle')
5090
+ }, [
5091
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionSourceOptions, (src) => {
5092
+ return (_openBlock(), _createElementBlock("button", {
5093
+ key: src.value,
5094
+ class: _normalizeClass(['session-source-pill', { active: _ctx.sessionFilterSource === src.value }]),
5095
+ "data-source": src.value,
5096
+ onClick: $event => (_ctx.setSessionSource(src.value)),
5097
+ disabled: _ctx.sessionsLoading,
5098
+ "aria-pressed": _ctx.sessionFilterSource === src.value,
5099
+ type: "button"
5100
+ }, [
5101
+ _createElementVNode("span", { class: "session-source-pill-dot" }),
5102
+ _createElementVNode("span", { class: "session-source-pill-label" }, _toDisplayString(src.label), 1 /* TEXT */)
5103
+ ], 10 /* CLASS, PROPS */, ["data-source", "onClick", "disabled", "aria-pressed"]))
5104
+ }), 128 /* KEYED_FRAGMENT */))
5105
+ ], 8 /* PROPS */, ["aria-label"])
5106
+ ]),
5107
+ _createElementVNode("div", { class: "session-toolbar" }, [
5108
+ _createElementVNode("div", { class: "session-toolbar-group session-toolbar-primary" }, [
5109
+ _withDirectives(_createElementVNode("select", {
5110
+ class: "session-path-select",
5111
+ "onUpdate:modelValue": $event => ((_ctx.sessionPathFilter) = $event),
5112
+ onChange: _ctx.onSessionPathFilterChange,
5113
+ onFocus: $event => (_ctx.loadSessionPathOptions({ source: _ctx.sessionFilterSource })),
5114
+ disabled: _ctx.sessionsLoading
5115
+ }, [
5116
+ _createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('sessions.allPaths')), 1 /* TEXT */),
5117
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionPathOptions, (cwd) => {
5118
+ return (_openBlock(), _createElementBlock("option", {
5119
+ key: cwd,
5120
+ value: cwd
5121
+ }, _toDisplayString(cwd), 9 /* TEXT, PROPS */, ["value"]))
5122
+ }), 128 /* KEYED_FRAGMENT */))
5123
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "onChange", "onFocus", "disabled"]), [
5124
+ [_vModelSelect, _ctx.sessionPathFilter]
5125
+ ])
5126
+ ]),
5127
+ _createElementVNode("div", { class: "session-toolbar-group session-toolbar-grow" }, [
5128
+ _withDirectives(_createElementVNode("input", {
5129
+ class: "session-query-input",
4230
5130
  "onUpdate:modelValue": $event => ((_ctx.sessionQuery) = $event),
4231
5131
  onKeyup: _withKeys(_ctx.onSessionFilterChange, ["enter"]),
4232
5132
  disabled: _ctx.sessionsLoading || !_ctx.isSessionQueryEnabled,
@@ -4625,7 +5525,7 @@ return function render(_ctx, _cache) {
4625
5525
  class: "thread-handoff-body"
4626
5526
  }, [
4627
5527
  _createElementVNode("div", { class: "session-workspace-header session-workspace-card-wide" }, [
4628
- _createElementVNode("p", { class: "session-workspace-subtitle" }, "交代目标,让下一位代理接着做。草稿在切换会话后保留,刷新后清空。"),
5528
+ _createElementVNode("p", { class: "session-workspace-subtitle" }, "草稿在切换会话后保留,刷新后清空。"),
4629
5529
  _createElementVNode("button", {
4630
5530
  class: "btn-mini",
4631
5531
  type: "button",
@@ -4669,10 +5569,7 @@ return function render(_ctx, _cache) {
4669
5569
  ])
4670
5570
  ]),
4671
5571
  _createElementVNode("details", { class: "thread-handoff-optional" }, [
4672
- _createElementVNode("summary", { class: "thread-handoff-optional-summary" }, [
4673
- _createTextVNode("补充上下文 "),
4674
- _createElementVNode("small", null, "已完成 / 阻塞 / 步骤 / 文件 · 可选")
4675
- ]),
5572
+ _createElementVNode("summary", { class: "thread-handoff-optional-summary" }, "补充上下文"),
4676
5573
  _createElementVNode("div", { class: "session-workspace-grid" }, [
4677
5574
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffFields, (field) => {
4678
5575
  return (_openBlock(), _createElementBlock("label", {
@@ -4694,7 +5591,6 @@ return function render(_ctx, _cache) {
4694
5591
  ])
4695
5592
  ]),
4696
5593
  _createElementVNode("div", { class: "thread-handoff-actions" }, [
4697
- _createElementVNode("span", { class: "session-workspace-subtitle" }, "生成后可复制到目标会话"),
4698
5594
  _createElementVNode("button", {
4699
5595
  class: "btn-mini thread-handoff-submit",
4700
5596
  type: "submit",
@@ -4733,21 +5629,55 @@ return function render(_ctx, _cache) {
4733
5629
  ]))
4734
5630
  : _createCommentVNode("v-if", true),
4735
5631
  _createElementVNode("p", { class: "session-workspace-subtitle session-workspace-card-wide" }, "复制不会自动发送。读取确认由目标代理通过 CLI ack 提交。"),
5632
+ _createElementVNode("div", { class: "feature-actions" }, [
5633
+ _createElementVNode("button", {
5634
+ type: "button",
5635
+ class: "btn-mini",
5636
+ onClick: _ctx.generateSelectedHandoff,
5637
+ disabled: _ctx.featureBusy || !_ctx.selectedContextIds.length
5638
+ }, _toDisplayString(_ctx.t('features.generateDraft', { count: _ctx.selectedContextIds.length })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
5639
+ ]),
5640
+ (_ctx.handoffDraftEvidence.length)
5641
+ ? (_openBlock(), _createElementBlock("p", { key: 3 }, _toDisplayString(_ctx.t('features.draftReview')), 1 /* TEXT */))
5642
+ : _createCommentVNode("v-if", true),
5643
+ (_ctx.handoffUnverified.length)
5644
+ ? (_openBlock(), _createElementBlock("details", { key: 4 }, [
5645
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('features.unverified', { count: _ctx.handoffUnverified.length })), 1 /* TEXT */),
5646
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffUnverified, (text, index) => {
5647
+ return (_openBlock(), _createElementBlock("pre", { key: index }, _toDisplayString(text), 1 /* TEXT */))
5648
+ }), 128 /* KEYED_FRAGMENT */))
5649
+ ]))
5650
+ : _createCommentVNode("v-if", true),
5651
+ (_ctx.handoffDraftEvidence.length)
5652
+ ? (_openBlock(), _createElementBlock("ul", { key: 5 }, [
5653
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffDraftEvidence, (item) => {
5654
+ return (_openBlock(), _createElementBlock("li", {
5655
+ key: item.nodeId
5656
+ }, [
5657
+ _createElementVNode("button", {
5658
+ type: "button",
5659
+ class: "btn-mini",
5660
+ onClick: $event => (_ctx.locateDraftEvidence(item))
5661
+ }, _toDisplayString(item.nodeId) + " · " + _toDisplayString(_ctx.t('features.evidence.' + item.status)), 9 /* TEXT, PROPS */, ["onClick"])
5662
+ ]))
5663
+ }), 128 /* KEYED_FRAGMENT */))
5664
+ ]))
5665
+ : _createCommentVNode("v-if", true),
4736
5666
  (_ctx.handoffLoading)
4737
5667
  ? (_openBlock(), _createElementBlock("p", {
4738
- key: 3,
5668
+ key: 6,
4739
5669
  class: "session-workspace-card-wide",
4740
5670
  role: "status"
4741
5671
  }, "正在加载交接历史…"))
4742
5672
  : (!_ctx.handoffError && !_ctx.handoffRecords.length)
4743
5673
  ? (_openBlock(), _createElementBlock("p", {
4744
- key: 4,
5674
+ key: 7,
4745
5675
  class: "session-workspace-empty session-workspace-card-wide"
4746
5676
  }, "暂无交接记录"))
4747
5677
  : _createCommentVNode("v-if", true),
4748
5678
  (_ctx.handoffRecords.length)
4749
5679
  ? (_openBlock(), _createElementBlock("ol", {
4750
- key: 5,
5680
+ key: 8,
4751
5681
  class: "session-workspace-list session-workspace-card-wide"
4752
5682
  }, [
4753
5683
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffRecords, (record) => {
@@ -4824,12 +5754,15 @@ return function render(_ctx, _cache) {
4824
5754
  _createElementVNode("div", { class: "session-secondary-actions" }, [
4825
5755
  _createElementVNode("button", {
4826
5756
  class: "btn-session-refresh has-label session-action-optional-label",
5757
+ "data-icon-only": "true",
4827
5758
  onClick: _ctx.loadActiveSessionDetail,
4828
5759
  disabled: _ctx.sessionDetailLoading || !_ctx.activeSession,
4829
5760
  title: _ctx.sessionDetailLoading ? _ctx.t('sessions.preview.loading') : _ctx.t('sessions.preview.refresh'),
4830
5761
  "aria-label": _ctx.sessionDetailLoading ? _ctx.t('sessions.preview.loading') : _ctx.t('sessions.preview.refresh')
4831
5762
  }, [
4832
5763
  (_openBlock(), _createElementBlock("svg", {
5764
+ "aria-hidden": "true",
5765
+ focusable: "false",
4833
5766
  viewBox: "0 0 16 16",
4834
5767
  fill: "none",
4835
5768
  stroke: "currentColor",
@@ -4842,7 +5775,11 @@ return function render(_ctx, _cache) {
4842
5775
  _createElementVNode("polyline", { points: "2.5 2 2.5 5 5.5 5" }),
4843
5776
  _createElementVNode("polyline", { points: "13.5 14 13.5 11 10.5 11" })
4844
5777
  ])),
4845
- _createElementVNode("span", { class: "session-action-label session-action-optional-text" }, _toDisplayString(_ctx.t('sessions.preview.refresh')), 1 /* TEXT */)
5778
+ _createElementVNode("span", {
5779
+ class: "session-action-label session-action-optional-text",
5780
+ hidden: "",
5781
+ "aria-hidden": "true"
5782
+ }, _toDisplayString(_ctx.t('sessions.preview.refresh')), 1 /* TEXT */)
4846
5783
  ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]),
4847
5784
  _createElementVNode("div", { class: "session-link-group" }, [
4848
5785
  _createElementVNode("button", {
@@ -4866,83 +5803,437 @@ return function render(_ctx, _cache) {
4866
5803
  ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]),
4867
5804
  _createTextVNode(),
4868
5805
  _createElementVNode("button", {
4869
- class: "btn-session-open",
4870
- onClick: $event => (_ctx.openSessionLink(_ctx.activeSession)),
4871
- disabled: !_ctx.activeSession || !_ctx.canBuildStandaloneUrl(_ctx.activeSession),
4872
- title: _ctx.t('sessions.preview.openLink'),
4873
- "aria-label": _ctx.t('sessions.preview.openLink')
5806
+ class: "btn-session-open",
5807
+ onClick: $event => (_ctx.openSessionLink(_ctx.activeSession)),
5808
+ disabled: !_ctx.activeSession || !_ctx.canBuildStandaloneUrl(_ctx.activeSession),
5809
+ title: _ctx.t('sessions.preview.openLink'),
5810
+ "aria-label": _ctx.t('sessions.preview.openLink')
5811
+ }, [
5812
+ (_openBlock(), _createElementBlock("svg", {
5813
+ viewBox: "0 0 16 16",
5814
+ fill: "none",
5815
+ stroke: "currentColor",
5816
+ "stroke-width": "1.8",
5817
+ "stroke-linecap": "round",
5818
+ "stroke-linejoin": "round"
5819
+ }, [
5820
+ _createElementVNode("path", { d: "M12 2h-8.5A1.5 1.5 0 0 0 2 3.5v8A1.5 1.5 0 0 0 3.5 13h8a1.5 1.5 0 0 0 1.5-1.5v-3" }),
5821
+ _createElementVNode("path", { d: "M13 2v4h-4" }),
5822
+ _createElementVNode("path", { d: "M13 2L7 8" })
5823
+ ]))
5824
+ ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
5825
+ ]),
5826
+ _createElementVNode("button", {
5827
+ class: "btn-session-open has-label session-action-optional-label",
5828
+ "data-icon-only": "true",
5829
+ onClick: $event => (_ctx.copySessionPath(_ctx.activeSession)),
5830
+ disabled: !_ctx.activeSession || !_ctx.getSessionFilePath(_ctx.activeSession),
5831
+ title: _ctx.t('sessions.preview.copyPath'),
5832
+ "aria-label": _ctx.t('sessions.preview.copyPath')
5833
+ }, [
5834
+ (_openBlock(), _createElementBlock("svg", {
5835
+ "aria-hidden": "true",
5836
+ focusable: "false",
5837
+ viewBox: "0 0 16 16",
5838
+ fill: "none",
5839
+ stroke: "currentColor",
5840
+ "stroke-width": "1.8",
5841
+ "stroke-linecap": "round",
5842
+ "stroke-linejoin": "round"
5843
+ }, [
5844
+ _createElementVNode("path", { d: "M2 5.5V12.5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a1 1 0 0 0-1-1H8L6.5 5H3a1 1 0 0 0-1 1z" })
5845
+ ])),
5846
+ _createElementVNode("span", {
5847
+ class: "session-action-label session-action-optional-text",
5848
+ hidden: "",
5849
+ "aria-hidden": "true"
5850
+ }, _toDisplayString(_ctx.t('sessions.preview.copyPath')), 1 /* TEXT */)
5851
+ ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
5852
+ ]),
5853
+ _createElementVNode("div", { class: "session-primary-actions" }, [
5854
+ _createElementVNode("button", {
5855
+ class: "btn-session-export has-label",
5856
+ "data-icon-only": "true",
5857
+ onClick: $event => (_ctx.exportSession(_ctx.activeSession)),
5858
+ disabled: !_ctx.activeSession || _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)],
5859
+ title: (_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export'),
5860
+ "aria-label": (_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export')
5861
+ }, [
5862
+ (_openBlock(), _createElementBlock("svg", {
5863
+ "aria-hidden": "true",
5864
+ focusable: "false",
5865
+ viewBox: "0 0 16 16",
5866
+ fill: "none",
5867
+ stroke: "currentColor",
5868
+ "stroke-width": "1.8",
5869
+ "stroke-linecap": "round",
5870
+ "stroke-linejoin": "round"
5871
+ }, [
5872
+ _createElementVNode("path", { d: "M8 2v8" }),
5873
+ _createElementVNode("polyline", { points: "4 7 8 10.5 12 7" }),
5874
+ _createElementVNode("path", { d: "M2.5 12v1.5a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V12" })
5875
+ ])),
5876
+ _createElementVNode("span", {
5877
+ class: "session-action-label",
5878
+ hidden: "",
5879
+ "aria-hidden": "true"
5880
+ }, _toDisplayString((_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export')), 1 /* TEXT */)
5881
+ ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]),
5882
+ (_ctx.isDeleteAvailable(_ctx.activeSession))
5883
+ ? (_openBlock(), _createElementBlock("button", {
5884
+ key: 0,
5885
+ class: "btn-session-delete has-label session-delete-text-button",
5886
+ "data-icon-only": "true",
5887
+ onClick: $event => (_ctx.deleteSession(_ctx.activeSession)),
5888
+ disabled: !_ctx.activeSession || _ctx.sessionsLoading || _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)],
5889
+ title: (_ctx.activeSession && _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleting') : _ctx.t('sessions.preview.moving')) : (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleteHard') : _ctx.t('sessions.preview.moveToTrash')),
5890
+ "aria-label": (_ctx.activeSession && _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleting') : _ctx.t('sessions.preview.moving')) : (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleteHard') : _ctx.t('sessions.preview.moveToTrash'))
5891
+ }, [
5892
+ (_openBlock(), _createElementBlock("svg", {
5893
+ viewBox: "0 0 16 16",
5894
+ fill: "none",
5895
+ stroke: "currentColor",
5896
+ "stroke-width": "1.8",
5897
+ "stroke-linecap": "round",
5898
+ "stroke-linejoin": "round",
5899
+ "aria-hidden": "true",
5900
+ focusable: "false"
5901
+ }, [
5902
+ _createElementVNode("path", { d: "M2.5 4.5h11M6 4.5V2.5h4v2" }),
5903
+ _createElementVNode("path", { d: "m4 4.5 .5 9h7l.5-9M6.5 7v4M9.5 7v4" })
5904
+ ])),
5905
+ _createElementVNode("span", {
5906
+ class: "session-action-label",
5907
+ hidden: "",
5908
+ "aria-hidden": "true"
5909
+ }, _toDisplayString((_ctx.activeSession && _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleting') : _ctx.t('sessions.preview.moving')) : (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleteHard') : _ctx.t('sessions.preview.moveToTrash'))), 1 /* TEXT */)
5910
+ ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]))
5911
+ : _createCommentVNode("v-if", true)
5912
+ ])
5913
+ ])
5914
+ ], 512 /* NEED_PATCH */),
5915
+ (_ctx.activeSession)
5916
+ ? (_openBlock(), _createElementBlock("section", {
5917
+ key: 1,
5918
+ class: "context-health",
5919
+ "aria-labelledby": "context-health-heading",
5920
+ "aria-busy": _ctx.sessionContextHealthLoading,
5921
+ onVnodeMounted: $event => (_ctx.loadSessionContextHealth()),
5922
+ onVnodeUpdated: $event => (_ctx.loadSessionContextHealth())
5923
+ }, [
5924
+ _createElementVNode("div", { class: "context-health-header" }, [
5925
+ _createElementVNode("div", { class: "context-health-heading" }, [
5926
+ _createElementVNode("h3", {
5927
+ id: "context-health-heading",
5928
+ class: "context-health-title"
5929
+ }, _toDisplayString(_ctx.t('contextHealth.title')), 1 /* TEXT */),
5930
+ (_ctx.sessionContextHealth)
5931
+ ? (_openBlock(), _createElementBlock("span", {
5932
+ key: 0,
5933
+ class: _normalizeClass(['context-health-rating', _ctx.sessionContextHealth.health]),
5934
+ role: "img",
5935
+ "aria-label": _ctx.t('contextHealth.level.' + _ctx.sessionContextHealth.health)
5936
+ }, null, 10 /* CLASS, PROPS */, ["aria-label"]))
5937
+ : _createCommentVNode("v-if", true),
5938
+ (_ctx.sessionContextHealth)
5939
+ ? (_openBlock(), _createElementBlock("p", {
5940
+ key: 1,
5941
+ class: "context-health-meta"
5942
+ }, _toDisplayString(_ctx.sessionContextHealth.messageCount.toLocaleString()) + " " + _toDisplayString(_ctx.t('contextHealth.nodes')), 1 /* TEXT */))
5943
+ : (_ctx.sessionContextHealthLoading)
5944
+ ? (_openBlock(), _createElementBlock("p", {
5945
+ key: 2,
5946
+ class: "context-health-meta",
5947
+ role: "status"
5948
+ }, _toDisplayString(_ctx.t('contextHealth.loading')), 1 /* TEXT */))
5949
+ : _createCommentVNode("v-if", true)
5950
+ ]),
5951
+ (_ctx.sessionContextHealth)
5952
+ ? (_openBlock(), _createElementBlock("div", {
5953
+ key: 0,
5954
+ class: "context-health-summary"
5955
+ }, [
5956
+ _createElementVNode("span", { class: "context-health-total mono" }, [
5957
+ _createTextVNode("≈ " + _toDisplayString(_ctx.sessionContextHealth.totalEstimatedTokens.toLocaleString()) + " ", 1 /* TEXT */),
5958
+ _createElementVNode("small", null, "Token")
5959
+ ])
5960
+ ]))
5961
+ : (_ctx.sessionContextHealthLoading)
5962
+ ? (_openBlock(), _createElementBlock("div", {
5963
+ key: 1,
5964
+ class: "context-health-summary context-health-summary-skeleton",
5965
+ "aria-hidden": "true"
5966
+ }, [
5967
+ _createElementVNode("span")
5968
+ ]))
5969
+ : _createCommentVNode("v-if", true),
5970
+ _createElementVNode("button", {
5971
+ type: "button",
5972
+ class: "btn-mini context-health-refresh",
5973
+ onClick: $event => (_ctx.loadSessionContextHealth(true)),
5974
+ disabled: _ctx.sessionContextHealthLoading,
5975
+ "aria-label": _ctx.t('common.refresh'),
5976
+ title: _ctx.t('common.refresh')
5977
+ }, [
5978
+ (_openBlock(), _createElementBlock("svg", {
5979
+ width: "16",
5980
+ height: "16",
5981
+ viewBox: "0 0 24 24",
5982
+ fill: "none",
5983
+ stroke: "currentColor",
5984
+ "stroke-width": "1.75",
5985
+ "stroke-linecap": "round",
5986
+ "stroke-linejoin": "round",
5987
+ "aria-hidden": "true"
5988
+ }, [
5989
+ _createElementVNode("path", { d: "M20 7v5h-5M4 17v-5h5" }),
5990
+ _createElementVNode("path", { d: "M6.1 7a7 7 0 0 1 11.5-1.3L20 8M4 16l2.4 2.3A7 7 0 0 0 17.9 17" })
5991
+ ]))
5992
+ ], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"])
5993
+ ]),
5994
+ _createElementVNode("div", {
5995
+ class: "context-health-bar",
5996
+ role: "img",
5997
+ "aria-label": _ctx.t('contextHealth.composition')
5998
+ }, [
5999
+ (_ctx.sessionContextHealth)
6000
+ ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(_ctx.sessionContextHealth.categories, (part) => {
6001
+ return _withDirectives((_openBlock(), _createElementBlock("span", {
6002
+ key: part.id,
6003
+ class: _normalizeClass(['context-health-segment', part.id]),
6004
+ style: _normalizeStyle({ flexGrow: part.estimatedTokens }),
6005
+ title: _ctx.t('contextHealth.category.' + part.id) + ': ≈ ' + part.estimatedTokens + ' Token (' + part.percentage.toFixed(2) + '%)',
6006
+ "aria-label": _ctx.t('contextHealth.category.' + part.id) + ': ' + part.percentage.toFixed(2) + '%'
6007
+ }, null, 14 /* CLASS, STYLE, PROPS */, ["title", "aria-label"])), [
6008
+ [_vShow, part.estimatedTokens > 0]
6009
+ ])
6010
+ }), 128 /* KEYED_FRAGMENT */))
6011
+ : _createCommentVNode("v-if", true)
6012
+ ], 8 /* PROPS */, ["aria-label"]),
6013
+ (_ctx.sessionContextHealthError)
6014
+ ? (_openBlock(), _createElementBlock("p", {
6015
+ key: 0,
6016
+ class: "form-error context-health-error",
6017
+ role: "alert"
6018
+ }, _toDisplayString(_ctx.sessionContextHealthError), 1 /* TEXT */))
6019
+ : _createCommentVNode("v-if", true),
6020
+ (_ctx.sessionContextHealth)
6021
+ ? (_openBlock(), _createElementBlock("div", {
6022
+ key: 1,
6023
+ id: "context-health-details",
6024
+ class: "context-health-details"
6025
+ }, [
6026
+ _createElementVNode("dl", { class: "context-health-legend" }, [
6027
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionContextHealth.categories, (part) => {
6028
+ return (_openBlock(), _createElementBlock("div", {
6029
+ key: part.id
6030
+ }, [
6031
+ _createElementVNode("dt", null, [
6032
+ _createElementVNode("span", {
6033
+ class: _normalizeClass(['context-health-dot', part.id]),
6034
+ "aria-hidden": "true"
6035
+ }, null, 2 /* CLASS */),
6036
+ _createTextVNode(_toDisplayString(_ctx.t('contextHealth.category.' + part.id)), 1 /* TEXT */)
6037
+ ]),
6038
+ _createElementVNode("dd", null, [
6039
+ _createElementVNode("span", { class: "context-health-category-tokens mono" }, "≈ " + _toDisplayString(part.estimatedTokens.toLocaleString()), 1 /* TEXT */),
6040
+ _createElementVNode("span", { class: "context-health-category-share mono" }, _toDisplayString(part.percentage.toFixed(2)) + "%", 1 /* TEXT */)
6041
+ ])
6042
+ ]))
6043
+ }), 128 /* KEYED_FRAGMENT */))
6044
+ ]),
6045
+ (!_ctx.sessionContextHealth.messageCount)
6046
+ ? (_openBlock(), _createElementBlock("p", {
6047
+ key: 0,
6048
+ class: "context-health-note"
6049
+ }, _toDisplayString(_ctx.t('contextHealth.empty')), 1 /* TEXT */))
6050
+ : _createCommentVNode("v-if", true)
6051
+ ]))
6052
+ : (_ctx.sessionContextHealthLoading)
6053
+ ? (_openBlock(), _createElementBlock("dl", {
6054
+ key: 2,
6055
+ class: "context-health-legend context-health-loading",
6056
+ "aria-hidden": "true"
6057
+ }, [
6058
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(['system', 'user', 'assistant', 'tools', 'code'], (part) => {
6059
+ return _createElementVNode("div", {
6060
+ key: part,
6061
+ class: "context-health-loading-row"
6062
+ }, [
6063
+ _createElementVNode("dt", null, [
6064
+ _createElementVNode("span", {
6065
+ class: _normalizeClass(['context-health-dot', part]),
6066
+ "aria-hidden": "true"
6067
+ }, null, 2 /* CLASS */),
6068
+ _createTextVNode(_toDisplayString(_ctx.t('contextHealth.category.' + part)), 1 /* TEXT */)
6069
+ ]),
6070
+ _createElementVNode("dd", null, [
6071
+ _createElementVNode("span", { class: "context-health-value-skeleton" }),
6072
+ _createElementVNode("span", { class: "context-health-share-skeleton" })
6073
+ ])
6074
+ ])
6075
+ }), 64 /* STABLE_FRAGMENT */))
6076
+ ]))
6077
+ : _createCommentVNode("v-if", true)
6078
+ ], 8 /* PROPS */, ["aria-busy", "onVnodeMounted", "onVnodeUpdated"]))
6079
+ : _createCommentVNode("v-if", true),
6080
+ (_ctx.sessionContextHealthFocusedNode)
6081
+ ? (_openBlock(), _createElementBlock("article", {
6082
+ key: 2,
6083
+ ref: "contextHealthFocusedMessage",
6084
+ class: "context-health-focused-message",
6085
+ tabindex: "-1",
6086
+ "data-context-node-id": _ctx.sessionContextHealthFocusedNode.id,
6087
+ "aria-label": _ctx.t('contextHealth.message')
6088
+ }, [
6089
+ _createElementVNode("header", null, [
6090
+ _createElementVNode("div", null, [
6091
+ _createElementVNode("strong", null, _toDisplayString(_ctx.t('contextHealth.message')), 1 /* TEXT */),
6092
+ _createElementVNode("span", { class: "context-health-meta mono" }, _toDisplayString(_ctx.sessionContextHealthFocusedNode.id), 1 /* TEXT */)
6093
+ ]),
6094
+ _createElementVNode("button", {
6095
+ type: "button",
6096
+ class: "btn-mini context-health-refresh",
6097
+ onClick: $event => (_ctx.sessionContextHealthFocusedNode = null),
6098
+ "aria-label": _ctx.t('common.close')
4874
6099
  }, [
4875
6100
  (_openBlock(), _createElementBlock("svg", {
4876
- viewBox: "0 0 16 16",
6101
+ width: "16",
6102
+ height: "16",
6103
+ viewBox: "0 0 24 24",
4877
6104
  fill: "none",
4878
6105
  stroke: "currentColor",
4879
- "stroke-width": "1.8",
6106
+ "stroke-width": "1.75",
4880
6107
  "stroke-linecap": "round",
4881
- "stroke-linejoin": "round"
6108
+ "aria-hidden": "true"
4882
6109
  }, [
4883
- _createElementVNode("path", { d: "M12 2h-8.5A1.5 1.5 0 0 0 2 3.5v8A1.5 1.5 0 0 0 3.5 13h8a1.5 1.5 0 0 0 1.5-1.5v-3" }),
4884
- _createElementVNode("path", { d: "M13 2v4h-4" }),
4885
- _createElementVNode("path", { d: "M13 2L7 8" })
6110
+ _createElementVNode("path", { d: "m6 6 12 12M18 6 6 18" })
4886
6111
  ]))
4887
- ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
6112
+ ], 8 /* PROPS */, ["onClick", "aria-label"])
4888
6113
  ]),
4889
- _createElementVNode("button", {
4890
- class: "btn-session-open has-label session-action-optional-label",
4891
- onClick: $event => (_ctx.copySessionPath(_ctx.activeSession)),
4892
- disabled: !_ctx.activeSession || !_ctx.getSessionFilePath(_ctx.activeSession),
4893
- title: _ctx.t('sessions.preview.copyPath'),
4894
- "aria-label": _ctx.t('sessions.preview.copyPath')
4895
- }, [
4896
- (_openBlock(), _createElementBlock("svg", {
4897
- viewBox: "0 0 16 16",
4898
- fill: "none",
4899
- stroke: "currentColor",
4900
- "stroke-width": "1.8",
4901
- "stroke-linecap": "round",
4902
- "stroke-linejoin": "round"
4903
- }, [
4904
- _createElementVNode("path", { d: "M2 5.5V12.5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a1 1 0 0 0-1-1H8L6.5 5H3a1 1 0 0 0-1 1z" })
4905
- ])),
4906
- _createElementVNode("span", { class: "session-action-label session-action-optional-text" }, _toDisplayString(_ctx.t('sessions.preview.copyPath')), 1 /* TEXT */)
4907
- ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
4908
- ]),
4909
- _createElementVNode("div", { class: "session-primary-actions" }, [
4910
- _createElementVNode("button", {
4911
- class: "btn-session-export has-label",
4912
- onClick: $event => (_ctx.exportSession(_ctx.activeSession)),
4913
- disabled: !_ctx.activeSession || _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)],
4914
- title: (_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export'),
4915
- "aria-label": (_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export')
4916
- }, [
4917
- (_openBlock(), _createElementBlock("svg", {
4918
- viewBox: "0 0 16 16",
4919
- fill: "none",
4920
- stroke: "currentColor",
4921
- "stroke-width": "1.8",
4922
- "stroke-linecap": "round",
4923
- "stroke-linejoin": "round"
4924
- }, [
4925
- _createElementVNode("path", { d: "M8 2v8" }),
4926
- _createElementVNode("polyline", { points: "4 7 8 10.5 12 7" }),
4927
- _createElementVNode("path", { d: "M2.5 12v1.5a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V12" })
4928
- ])),
4929
- _createElementVNode("span", { class: "session-action-label" }, _toDisplayString((_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export')), 1 /* TEXT */)
4930
- ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]),
4931
- (_ctx.isDeleteAvailable(_ctx.activeSession))
4932
- ? (_openBlock(), _createElementBlock("button", {
6114
+ _createElementVNode("pre", null, _toDisplayString(_ctx.sessionContextHealthFocusedNode.text), 1 /* TEXT */)
6115
+ ], 8 /* PROPS */, ["data-context-node-id", "aria-label"]))
6116
+ : _createCommentVNode("v-if", true),
6117
+ (_ctx.sessionContextHealth)
6118
+ ? (_openBlock(), _createElementBlock("section", {
6119
+ key: 3,
6120
+ class: "context-window-reference",
6121
+ "aria-label": _ctx.t('features.windowReference')
6122
+ }, [
6123
+ _createElementVNode("div", { class: "feature-section-heading" }, [
6124
+ _createElementVNode("h4", null, _toDisplayString(_ctx.t('features.windowReference')), 1 /* TEXT */),
6125
+ (_ctx.contextReference?.percentage !== undefined)
6126
+ ? (_openBlock(), _createElementBlock("small", {
6127
+ key: 0,
6128
+ class: "feature-meta"
6129
+ }, _toDisplayString(_ctx.t('features.windowSource.' + _ctx.contextReference.source)), 1 /* TEXT */))
6130
+ : _createCommentVNode("v-if", true)
6131
+ ]),
6132
+ (_ctx.contextReference?.percentage !== undefined)
6133
+ ? (_openBlock(), _createElementBlock("p", {
4933
6134
  key: 0,
4934
- class: "btn-session-delete has-label session-delete-text-button",
4935
- onClick: $event => (_ctx.deleteSession(_ctx.activeSession)),
4936
- disabled: !_ctx.activeSession || _ctx.sessionsLoading || _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)],
4937
- title: (_ctx.activeSession && _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleting') : _ctx.t('sessions.preview.moving')) : (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleteHard') : _ctx.t('sessions.preview.moveToTrash')),
4938
- "aria-label": (_ctx.activeSession && _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleting') : _ctx.t('sessions.preview.moving')) : (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleteHard') : _ctx.t('sessions.preview.moveToTrash'))
6135
+ class: "feature-hint"
6136
+ }, _toDisplayString(_ctx.t('features.contextEstimate', { percent: _ctx.contextReference.percentage.toFixed(2), window: _ctx.contextReference.window })), 1 /* TEXT */))
6137
+ : (_openBlock(), _createElementBlock("p", {
6138
+ key: 1,
6139
+ class: "feature-hint"
6140
+ }, _toDisplayString(_ctx.t('features.windowStatus.' + (_ctx.contextReference?.status || 'unknown'))), 1 /* TEXT */)),
6141
+ _createElementVNode("details", { class: "feature-disclosure" }, [
6142
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('features.windowSettings')), 1 /* TEXT */),
6143
+ _createElementVNode("div", { class: "feature-window-fields" }, [
6144
+ (_ctx.sessionContextHealth.models?.length)
6145
+ ? (_openBlock(), _createElementBlock("label", { key: 0 }, [
6146
+ _createTextVNode(_toDisplayString(_ctx.t('features.model')), 1 /* TEXT */),
6147
+ _withDirectives(_createElementVNode("select", {
6148
+ "onUpdate:modelValue": $event => ((_ctx.contextSelectedModel) = $event),
6149
+ "aria-label": _ctx.t('features.model')
6150
+ }, [
6151
+ _createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('features.chooseModel')), 1 /* TEXT */),
6152
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionContextHealth.models, (model) => {
6153
+ return (_openBlock(), _createElementBlock("option", {
6154
+ key: model,
6155
+ value: model
6156
+ }, _toDisplayString(model), 9 /* TEXT, PROPS */, ["value"]))
6157
+ }), 128 /* KEYED_FRAGMENT */))
6158
+ ], 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
6159
+ [_vModelSelect, _ctx.contextSelectedModel]
6160
+ ])
6161
+ ]))
6162
+ : _createCommentVNode("v-if", true),
6163
+ _createElementVNode("label", null, [
6164
+ _createTextVNode(_toDisplayString(_ctx.t('features.contextWindow')), 1 /* TEXT */),
6165
+ _withDirectives(_createElementVNode("input", {
6166
+ "onUpdate:modelValue": $event => ((_ctx.contextWindowInput) = $event),
6167
+ type: "number",
6168
+ min: "1",
6169
+ step: "1",
6170
+ "aria-label": _ctx.t('features.contextWindow')
6171
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
6172
+ [_vModelText, _ctx.contextWindowInput]
6173
+ ])
6174
+ ]),
6175
+ _createElementVNode("button", {
6176
+ type: "button",
6177
+ class: "btn-mini",
6178
+ onClick: $event => (_ctx.saveContextPreferences(false)),
6179
+ disabled: _ctx.contextReference?.status === 'invalid'
6180
+ }, _toDisplayString(_ctx.t('features.save')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
6181
+ ])
6182
+ ]),
6183
+ (_ctx.contextReference && ['warning', 'high'].includes(_ctx.contextReference.status) && !_ctx.contextReminderDismissed)
6184
+ ? (_openBlock(), _createElementBlock("div", {
6185
+ key: 2,
6186
+ role: "status",
6187
+ class: "feature-window-warning"
4939
6188
  }, [
4940
- _createElementVNode("span", { class: "session-action-label" }, _toDisplayString((_ctx.activeSession && _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleting') : _ctx.t('sessions.preview.moving')) : (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleteHard') : _ctx.t('sessions.preview.moveToTrash'))), 1 /* TEXT */)
4941
- ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]))
6189
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('features.windowStatus.' + _ctx.contextReference.status)), 1 /* TEXT */),
6190
+ _createElementVNode("div", { class: "feature-record-actions" }, [
6191
+ _createElementVNode("button", {
6192
+ type: "button",
6193
+ class: "btn-mini",
6194
+ onClick: $event => (_ctx.handoffExpanded = true)
6195
+ }, _toDisplayString(_ctx.t('features.handoffs')), 9 /* TEXT, PROPS */, ["onClick"]),
6196
+ _createElementVNode("button", {
6197
+ type: "button",
6198
+ class: "btn-mini feature-quiet",
6199
+ onClick: $event => (_ctx.saveContextPreferences(true))
6200
+ }, _toDisplayString(_ctx.t('features.dismiss')), 9 /* TEXT, PROPS */, ["onClick"])
6201
+ ])
6202
+ ]))
4942
6203
  : _createCommentVNode("v-if", true)
4943
- ])
4944
- ])
4945
- ], 512 /* NEED_PATCH */),
6204
+ ], 8 /* PROPS */, ["aria-label"]))
6205
+ : _createCommentVNode("v-if", true),
6206
+ (_ctx.featureFocus)
6207
+ ? (_openBlock(), _createElementBlock("article", {
6208
+ key: 4,
6209
+ ref: "featureFocus",
6210
+ class: "feature-focus",
6211
+ tabindex: "-1"
6212
+ }, [
6213
+ _createElementVNode("div", { class: "feature-actions" }, [
6214
+ _createElementVNode("strong", null, _toDisplayString(_ctx.t('features.source')) + " · " + _toDisplayString(_ctx.featureFocus.id), 1 /* TEXT */),
6215
+ _createElementVNode("button", {
6216
+ type: "button",
6217
+ class: "btn-mini",
6218
+ onClick: $event => (_ctx.featureFocus = null)
6219
+ }, _toDisplayString(_ctx.t('features.close')), 9 /* TEXT, PROPS */, ["onClick"])
6220
+ ]),
6221
+ _createElementVNode("pre", null, _toDisplayString(_ctx.featureFocus.text), 1 /* TEXT */),
6222
+ _createElementVNode("div", { class: "feature-actions" }, [
6223
+ _createElementVNode("button", {
6224
+ type: "button",
6225
+ class: "btn-mini",
6226
+ onClick: $event => (_ctx.bookmarkMessage(_ctx.featureFocus)),
6227
+ disabled: _ctx.featureBusy
6228
+ }, _toDisplayString(_ctx.t('features.bookmark')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
6229
+ _createElementVNode("button", {
6230
+ type: "button",
6231
+ class: "btn-mini",
6232
+ onClick: $event => (_ctx.toggleHandoffMessage(_ctx.featureFocus))
6233
+ }, _toDisplayString(_ctx.t('features.selectMessage')), 9 /* TEXT, PROPS */, ["onClick"])
6234
+ ])
6235
+ ], 512 /* NEED_PATCH */))
6236
+ : _createCommentVNode("v-if", true),
4946
6237
  _createElementVNode("div", { class: "session-export-feedback" }, [
4947
6238
  (_ctx.sessionExportNotice && _ctx.sessionExportNotice.key === _ctx.getSessionExportKey(_ctx.activeSession))
4948
6239
  ? (_openBlock(), _createElementBlock("p", {
@@ -4954,22 +6245,22 @@ return function render(_ctx, _cache) {
4954
6245
  ]),
4955
6246
  (_ctx.sessionDetailLoading && !_ctx.sessionPreviewLoadingMore)
4956
6247
  ? (_openBlock(), _createElementBlock("div", {
4957
- key: 1,
6248
+ key: 5,
4958
6249
  class: "session-preview-empty"
4959
6250
  }, _toDisplayString(_ctx.t('sessions.preview.loadingBody')), 1 /* TEXT */))
4960
6251
  : (_ctx.activeSessionDetailError)
4961
6252
  ? (_openBlock(), _createElementBlock("div", {
4962
- key: 2,
6253
+ key: 6,
4963
6254
  class: "session-preview-empty"
4964
6255
  }, _toDisplayString(_ctx.activeSessionDetailError), 1 /* TEXT */))
4965
6256
  : (!_ctx.activeSessionMessages.length)
4966
6257
  ? (_openBlock(), _createElementBlock("div", {
4967
- key: 3,
6258
+ key: 7,
4968
6259
  class: "session-preview-empty"
4969
6260
  }, _toDisplayString(_ctx.t('sessions.preview.emptyMsgs')), 1 /* TEXT */))
4970
6261
  : (_ctx.sessionPreviewRenderEnabled && !_ctx.activeSessionVisibleMessages.length)
4971
6262
  ? (_openBlock(), _createElementBlock("div", {
4972
- key: 4,
6263
+ key: 8,
4973
6264
  class: "session-preview-empty"
4974
6265
  }, [
4975
6266
  _createElementVNode("span", null, _toDisplayString(_ctx.t('sessions.preview.rendering')), 1 /* TEXT */),
@@ -4981,11 +6272,11 @@ return function render(_ctx, _cache) {
4981
6272
  ]))
4982
6273
  : (!_ctx.sessionPreviewRenderEnabled)
4983
6274
  ? (_openBlock(), _createElementBlock("div", {
4984
- key: 5,
6275
+ key: 9,
4985
6276
  class: "session-preview-empty"
4986
6277
  }, _toDisplayString(_ctx.t('sessions.preview.preparing')), 1 /* TEXT */))
4987
6278
  : (_openBlock(), _createElementBlock("div", {
4988
- key: 6,
6279
+ key: 10,
4989
6280
  class: "session-preview-body"
4990
6281
  }, [
4991
6282
  (_ctx.activeSessionWorkspaceSummary.available)
@@ -5140,6 +6431,7 @@ return function render(_ctx, _cache) {
5140
6431
  class: _normalizeClass(['session-msg', msg.normalizedRole === 'user' ? 'user' : (msg.normalizedRole === 'system' ? 'system' : 'assistant')])
5141
6432
  }, [
5142
6433
  _createElementVNode("div", { class: "session-msg-header" }, [
6434
+ _createVNode(_component_session_message_actions, { message: msg }, null, 8 /* PROPS */, ["message"]),
5143
6435
  _createElementVNode("div", { class: "session-msg-meta" }, [
5144
6436
  _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 */),
5145
6437
  _createElementVNode("span", { class: "session-msg-time" }, _toDisplayString(msg.timestamp || ''), 1 /* TEXT */)
@@ -5966,6 +7258,125 @@ return function render(_ctx, _cache) {
5966
7258
  role: "tabpanel",
5967
7259
  "aria-labelledby": 'tab-settings'
5968
7260
  }, [
7261
+ _createElementVNode("details", {
7262
+ class: "session-features feature-diagnostics",
7263
+ onToggle: $event => ($event.target === $event.currentTarget && $event.currentTarget.open && _ctx.loadDiagnosticTargets())
7264
+ }, [
7265
+ _createElementVNode("summary", { class: "feature-diagnostics-heading" }, _toDisplayString(_ctx.t('features.diagnostics')), 1 /* TEXT */),
7266
+ _createElementVNode("div", { class: "feature-content" }, [
7267
+ _createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.diagnosticScope')), 1 /* TEXT */),
7268
+ (_ctx.featureError)
7269
+ ? (_openBlock(), _createElementBlock("p", {
7270
+ key: 0,
7271
+ class: "form-error feature-feedback",
7272
+ role: "alert"
7273
+ }, _toDisplayString(_ctx.featureError), 1 /* TEXT */))
7274
+ : _createCommentVNode("v-if", true),
7275
+ _createElementVNode("div", { class: "feature-diagnostic-options" }, [
7276
+ _createElementVNode("label", null, [
7277
+ _withDirectives(_createElementVNode("input", {
7278
+ type: "checkbox",
7279
+ "onUpdate:modelValue": $event => ((_ctx.diagnosticsRemote) = $event),
7280
+ disabled: _ctx.diagnosticsReport?.status === 'running'
7281
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
7282
+ [_vModelCheckbox, _ctx.diagnosticsRemote]
7283
+ ]),
7284
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('features.remoteProbe')), 1 /* TEXT */)
7285
+ ]),
7286
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.diagnosticsTargets, (name) => {
7287
+ return (_openBlock(), _createElementBlock("label", { key: name }, [
7288
+ _withDirectives(_createElementVNode("input", {
7289
+ type: "checkbox",
7290
+ value: name,
7291
+ "onUpdate:modelValue": $event => ((_ctx.diagnosticsSelected) = $event),
7292
+ disabled: _ctx.diagnosticsReport?.status === 'running'
7293
+ }, null, 8 /* PROPS */, ["value", "onUpdate:modelValue", "disabled"]), [
7294
+ [_vModelCheckbox, _ctx.diagnosticsSelected]
7295
+ ]),
7296
+ _createElementVNode("span", null, _toDisplayString(name), 1 /* TEXT */)
7297
+ ]))
7298
+ }), 128 /* KEYED_FRAGMENT */))
7299
+ ]),
7300
+ _createElementVNode("div", { class: "feature-actions feature-diagnostic-controls" }, [
7301
+ _createElementVNode("button", {
7302
+ type: "button",
7303
+ class: "btn-mini feature-primary",
7304
+ onClick: _ctx.startDiagnostics,
7305
+ disabled: _ctx.diagnosticsReport?.status === 'running'
7306
+ }, _toDisplayString(_ctx.t('features.check')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
7307
+ (_ctx.diagnosticsReport?.status === 'running')
7308
+ ? (_openBlock(), _createElementBlock("button", {
7309
+ key: 0,
7310
+ type: "button",
7311
+ class: "btn-mini feature-quiet",
7312
+ onClick: _ctx.cancelDiagnostics
7313
+ }, _toDisplayString(_ctx.t('features.cancel')), 9 /* TEXT, PROPS */, ["onClick"]))
7314
+ : _createCommentVNode("v-if", true),
7315
+ (_ctx.diagnosticsReport)
7316
+ ? (_openBlock(), _createElementBlock("span", {
7317
+ key: 1,
7318
+ class: "feature-status",
7319
+ "data-status": _ctx.diagnosticsReport.status,
7320
+ role: "status"
7321
+ }, _toDisplayString(_ctx.t('features.status.' + _ctx.diagnosticsReport.status)), 9 /* TEXT, PROPS */, ["data-status"]))
7322
+ : _createCommentVNode("v-if", true)
7323
+ ]),
7324
+ (_ctx.diagnosticsReport)
7325
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
7326
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.diagnosticsReport.items, (item) => {
7327
+ return (_openBlock(), _createElementBlock("article", {
7328
+ key: item.id,
7329
+ class: "feature-record feature-diagnostic-row"
7330
+ }, [
7331
+ _createElementVNode("header", { class: "feature-record-heading" }, [
7332
+ _createElementVNode("strong", null, _toDisplayString(item.id === 'local' ? _ctx.t('features.localCheck') : item.id === 'provider' ? _ctx.t('features.providerCheck') : item.id), 1 /* TEXT */),
7333
+ _createElementVNode("span", {
7334
+ class: "feature-status",
7335
+ "data-status": item.status
7336
+ }, _toDisplayString(_ctx.t('features.status.' + item.status)), 9 /* TEXT, PROPS */, ["data-status"])
7337
+ ]),
7338
+ _createElementVNode("small", { class: "feature-meta" }, [
7339
+ _createTextVNode(_toDisplayString(item.checkedAt), 1 /* TEXT */),
7340
+ (item.durationMs !== undefined)
7341
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
7342
+ _createTextVNode(" · " + _toDisplayString(item.durationMs) + " ms", 1 /* TEXT */)
7343
+ ], 64 /* STABLE_FRAGMENT */))
7344
+ : _createCommentVNode("v-if", true)
7345
+ ]),
7346
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.evidence?.issues || [], (issue) => {
7347
+ return (_openBlock(), _createElementBlock("p", {
7348
+ key: issue.id || issue.code,
7349
+ class: "feature-issue"
7350
+ }, _toDisplayString(issue.problem || issue.code), 1 /* TEXT */))
7351
+ }), 128 /* KEYED_FRAGMENT */)),
7352
+ (item.errorCode)
7353
+ ? (_openBlock(), _createElementBlock("p", {
7354
+ key: 0,
7355
+ class: "form-error"
7356
+ }, _toDisplayString(_ctx.t('features.error.' + item.errorCode)), 1 /* TEXT */))
7357
+ : _createCommentVNode("v-if", true),
7358
+ _createElementVNode("details", { class: "feature-disclosure" }, [
7359
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('features.technicalDetails')), 1 /* TEXT */),
7360
+ _createElementVNode("pre", { class: "feature-code" }, _toDisplayString(JSON.stringify(item.evidence || {}, null, 2)), 1 /* TEXT */)
7361
+ ])
7362
+ ]))
7363
+ }), 128 /* KEYED_FRAGMENT */)),
7364
+ _createElementVNode("footer", { class: "feature-record-actions feature-export-actions" }, [
7365
+ _createElementVNode("button", {
7366
+ type: "button",
7367
+ class: "btn-mini feature-quiet",
7368
+ onClick: $event => (_ctx.exportDiagnostics('json'))
7369
+ }, _toDisplayString(_ctx.t('features.exportJson')), 9 /* TEXT, PROPS */, ["onClick"]),
7370
+ _createElementVNode("button", {
7371
+ type: "button",
7372
+ class: "btn-mini feature-quiet",
7373
+ onClick: $event => (_ctx.exportDiagnostics('md'))
7374
+ }, _toDisplayString(_ctx.t('features.exportMarkdown')), 9 /* TEXT, PROPS */, ["onClick"])
7375
+ ])
7376
+ ], 64 /* STABLE_FRAGMENT */))
7377
+ : _createCommentVNode("v-if", true)
7378
+ ])
7379
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onToggle"]),
5969
7380
  _createElementVNode("div", { class: "settings-tab-header" }, [
5970
7381
  _createElementVNode("div", {
5971
7382
  class: "segmented-control",
@@ -6010,7 +7421,6 @@ return function render(_ctx, _cache) {
6010
7421
  _createElementVNode("div", { class: "settings-card-main" }, [
6011
7422
  _createElementVNode("div", { class: "settings-card-content" }, [
6012
7423
  _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.language.title')), 1 /* TEXT */),
6013
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.language.meta')), 1 /* TEXT */),
6014
7424
  _createElementVNode("label", {
6015
7425
  class: "selector-label",
6016
7426
  for: "settings-language-select"
@@ -6027,8 +7437,7 @@ return function render(_ctx, _cache) {
6027
7437
  value: option.code
6028
7438
  }, _toDisplayString(option.nativeName) + " · " + _toDisplayString(option.englishName), 9 /* TEXT, PROPS */, ["value"]))
6029
7439
  }), 128 /* KEYED_FRAGMENT */))
6030
- ], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange"]),
6031
- _createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.language.hint')), 1 /* TEXT */)
7440
+ ], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange"])
6032
7441
  ])
6033
7442
  ])
6034
7443
  ], 8 /* PROPS */, ["aria-label"]),
@@ -6039,7 +7448,6 @@ return function render(_ctx, _cache) {
6039
7448
  _createElementVNode("div", { class: "settings-card-main" }, [
6040
7449
  _createElementVNode("div", { class: "settings-card-content" }, [
6041
7450
  _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.theme.title')), 1 /* TEXT */),
6042
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.theme.meta')), 1 /* TEXT */),
6043
7451
  _createElementVNode("div", { class: "settings-toggle-group" }, [
6044
7452
  _createElementVNode("button", {
6045
7453
  type: "button",
@@ -6056,8 +7464,7 @@ return function render(_ctx, _cache) {
6056
7464
  class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'ocean' }]),
6057
7465
  onClick: $event => (_ctx.setTheme('ocean'))
6058
7466
  }, _toDisplayString(_ctx.t('settings.theme.ocean')), 11 /* TEXT, CLASS, PROPS */, ["onClick"])
6059
- ]),
6060
- _createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.theme.hint')), 1 /* TEXT */)
7467
+ ])
6061
7468
  ])
6062
7469
  ])
6063
7470
  ], 8 /* PROPS */, ["aria-label"]),
@@ -6068,7 +7475,6 @@ return function render(_ctx, _cache) {
6068
7475
  _createElementVNode("div", { class: "settings-card-main" }, [
6069
7476
  _createElementVNode("div", { class: "settings-card-content" }, [
6070
7477
  _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.sharePrefix.title')), 1 /* TEXT */),
6071
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.sharePrefix.meta')), 1 /* TEXT */),
6072
7478
  _createElementVNode("label", {
6073
7479
  class: "selector-label",
6074
7480
  for: "settings-share-prefix"
@@ -6093,7 +7499,6 @@ return function render(_ctx, _cache) {
6093
7499
  _createElementVNode("div", { class: "settings-card-main" }, [
6094
7500
  _createElementVNode("div", { class: "settings-card-content" }, [
6095
7501
  _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.templateConfirm.title')), 1 /* TEXT */),
6096
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.templateConfirm.meta')), 1 /* TEXT */),
6097
7502
  _createElementVNode("label", { class: "settings-toggle-row" }, [
6098
7503
  _createElementVNode("input", {
6099
7504
  type: "checkbox",
@@ -6147,7 +7552,6 @@ return function render(_ctx, _cache) {
6147
7552
  _createElementVNode("div", { class: "settings-card-main" }, [
6148
7553
  _createElementVNode("div", { class: "settings-card-content" }, [
6149
7554
  _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.timeline.style.title')), 1 /* TEXT */),
6150
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.timeline.style.meta')), 1 /* TEXT */),
6151
7555
  _createElementVNode("div", { class: "settings-toggle-group" }, [
6152
7556
  _createElementVNode("button", {
6153
7557
  type: "button",
@@ -6159,8 +7563,7 @@ return function render(_ctx, _cache) {
6159
7563
  class: _normalizeClass(['toggle-btn', { active: _ctx.sessionTimelineStyle === 'bar' }]),
6160
7564
  onClick: $event => (_ctx.setSessionTimelineStyle('bar'))
6161
7565
  }, _toDisplayString(_ctx.t('settings.timeline.style.bar')), 11 /* TEXT, CLASS, PROPS */, ["onClick"])
6162
- ]),
6163
- _createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.timeline.style.hint')), 1 /* TEXT */)
7566
+ ])
6164
7567
  ])
6165
7568
  ])
6166
7569
  ], 8 /* PROPS */, ["aria-label"]),
@@ -6171,7 +7574,6 @@ return function render(_ctx, _cache) {
6171
7574
  _createElementVNode("div", { class: "settings-card-main" }, [
6172
7575
  _createElementVNode("div", { class: "settings-card-content" }, [
6173
7576
  _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.configTabs.title')), 1 /* TEXT */),
6174
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.configTabs.meta')), 1 /* TEXT */),
6175
7577
  _createElementVNode("div", { class: "settings-toggle-grid" }, [
6176
7578
  _createElementVNode("label", { class: "settings-toggle-row" }, [
6177
7579
  _createElementVNode("input", {
@@ -6260,8 +7662,7 @@ return function render(_ctx, _cache) {
6260
7662
  }, [
6261
7663
  _createElementVNode("div", { class: "settings-card-main" }, [
6262
7664
  _createElementVNode("div", { class: "settings-card-content" }, [
6263
- _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.backup.title')), 1 /* TEXT */),
6264
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.backup.meta')), 1 /* TEXT */)
7665
+ _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.backup.title')), 1 /* TEXT */)
6265
7666
  ])
6266
7667
  ]),
6267
7668
  _createElementVNode("div", { class: "settings-card-actions" }, [
@@ -6302,7 +7703,6 @@ return function render(_ctx, _cache) {
6302
7703
  _createElementVNode("div", { class: "settings-card-main" }, [
6303
7704
  _createElementVNode("div", { class: "settings-card-content" }, [
6304
7705
  _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.providerCache.title')), 1 /* TEXT */),
6305
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.providerCache.meta')), 1 /* TEXT */),
6306
7706
  _createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.providerCache.hint')), 1 /* TEXT */),
6307
7707
  (_ctx.providerCacheSyncMessage)
6308
7708
  ? (_openBlock(), _createElementBlock("p", {
@@ -6338,7 +7738,6 @@ return function render(_ctx, _cache) {
6338
7738
  _createElementVNode("div", { class: "settings-card-main" }, [
6339
7739
  _createElementVNode("div", { class: "settings-card-content" }, [
6340
7740
  _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.reset.title')), 1 /* TEXT */),
6341
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.reset.meta')), 1 /* TEXT */),
6342
7741
  _createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.reset.hint')), 1 /* TEXT */)
6343
7742
  ])
6344
7743
  ]),
@@ -6375,7 +7774,6 @@ return function render(_ctx, _cache) {
6375
7774
  _createElementVNode("div", { class: "settings-card-main" }, [
6376
7775
  _createElementVNode("div", { class: "settings-card-content" }, [
6377
7776
  _createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.trashConfig.title')), 1 /* TEXT */),
6378
- _createElementVNode("p", { class: "settings-card-desc" }, _toDisplayString(_ctx.t('settings.trashConfig.meta')), 1 /* TEXT */),
6379
7777
  _createElementVNode("label", { class: "settings-toggle-row" }, [
6380
7778
  _createElementVNode("input", {
6381
7779
  type: "checkbox",
@@ -7151,14 +8549,14 @@ return function render(_ctx, _cache) {
7151
8549
  type: "button",
7152
8550
  class: "btn-mini",
7153
8551
  onClick: _ctx.focusPromptComposerFirstMissingVar,
7154
- disabled: _ctx.pluginsLoading
8552
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving
7155
8553
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.jumpToMissing')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]))
7156
8554
  : _createCommentVNode("v-if", true),
7157
8555
  _createElementVNode("button", {
7158
8556
  type: "button",
7159
8557
  class: "btn-mini",
7160
8558
  onClick: _ctx.resetPromptComposerVarValues,
7161
- disabled: _ctx.pluginsLoading
8559
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving
7162
8560
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.reset')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
7163
8561
  ])
7164
8562
  ]),
@@ -7242,7 +8640,7 @@ return function render(_ctx, _cache) {
7242
8640
  type: "button",
7243
8641
  class: "btn-mini",
7244
8642
  onClick: _ctx.createPromptTemplate,
7245
- disabled: _ctx.pluginsLoading
8643
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving
7246
8644
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.manage.create')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
7247
8645
  _createElementVNode("button", {
7248
8646
  type: "button",
@@ -7254,7 +8652,7 @@ return function render(_ctx, _cache) {
7254
8652
  type: "button",
7255
8653
  class: "btn-mini",
7256
8654
  onClick: _ctx.triggerPromptTemplatesImport,
7257
- disabled: _ctx.pluginsLoading
8655
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving
7258
8656
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.manage.import')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
7259
8657
  ]),
7260
8658
  (_ctx.pluginsLoading && !_ctx.promptTemplatesLoadedOnce)
@@ -7296,12 +8694,105 @@ return function render(_ctx, _cache) {
7296
8694
  ]))
7297
8695
  ]),
7298
8696
  _createElementVNode("div", { class: "prompt-templates-pane prompt-templates-pane-editor" }, [
8697
+ _createElementVNode("div", { class: "prompt-editor-actions" }, [
8698
+ _createElementVNode("button", {
8699
+ type: "button",
8700
+ class: "btn-mini",
8701
+ onClick: _ctx.openPluginHistory,
8702
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving || _ctx.pluginHistoryLoading
8703
+ }, _toDisplayString(_ctx.t('common.history')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
8704
+ _createElementVNode("button", {
8705
+ type: "button",
8706
+ class: "btn-mini",
8707
+ onClick: _ctx.sharePromptTemplate,
8708
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving || !_ctx.promptTemplateDraft
8709
+ }, _toDisplayString(_ctx.t('ecosystem.share')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
8710
+ ]),
8711
+ (_ctx.pluginHistoryVisible)
8712
+ ? (_openBlock(), _createElementBlock("details", {
8713
+ key: 0,
8714
+ class: "prompt-history-panel",
8715
+ open: ""
8716
+ }, [
8717
+ _createElementVNode("summary", { class: "prompt-history-summary" }, [
8718
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('common.history')), 1 /* TEXT */),
8719
+ _createElementVNode("button", {
8720
+ type: "button",
8721
+ class: "btn-mini",
8722
+ onClick: $event => {_ctx.pluginHistoryVisible = false; _ctx.pluginHistorySelectedId = ''},
8723
+ "aria-label": _ctx.t('common.close')
8724
+ }, "×", 8 /* PROPS */, ["onClick", "aria-label"])
8725
+ ]),
8726
+ _createElementVNode("div", { class: "prompt-history-body" }, [
8727
+ _createElementVNode("div", {
8728
+ class: "prompt-history-list",
8729
+ role: "group",
8730
+ "aria-label": _ctx.t('common.history')
8731
+ }, [
8732
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.pluginHistoryItems, (item) => {
8733
+ return (_openBlock(), _createElementBlock("button", {
8734
+ key: item.id,
8735
+ type: "button",
8736
+ class: _normalizeClass(['btn-mini', { active: _ctx.pluginHistorySelectedId === item.id }]),
8737
+ "aria-pressed": _ctx.pluginHistorySelectedId === item.id,
8738
+ disabled: _ctx.pluginHistoryLoading || _ctx.pluginConfigSaving,
8739
+ onClick: $event => (_ctx.viewPluginHistory(item))
8740
+ }, _toDisplayString(item.id), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "disabled", "onClick"]))
8741
+ }), 128 /* KEYED_FRAGMENT */))
8742
+ ], 8 /* PROPS */, ["aria-label"]),
8743
+ (_ctx.pluginHistoryLoading)
8744
+ ? (_openBlock(), _createElementBlock("p", {
8745
+ key: 0,
8746
+ class: "state-message"
8747
+ }, _toDisplayString(_ctx.t('diff.generating')), 1 /* TEXT */))
8748
+ : (_ctx.pluginHistoryError)
8749
+ ? (_openBlock(), _createElementBlock("p", {
8750
+ key: 1,
8751
+ class: "state-message error",
8752
+ role: "alert"
8753
+ }, _toDisplayString(_ctx.pluginHistoryError), 1 /* TEXT */))
8754
+ : (!_ctx.pluginHistoryItems.length)
8755
+ ? (_openBlock(), _createElementBlock("p", {
8756
+ key: 2,
8757
+ class: "state-message"
8758
+ }, _toDisplayString(_ctx.t('toast.history.empty')), 1 /* TEXT */))
8759
+ : _createCommentVNode("v-if", true),
8760
+ (_ctx.pluginHistorySelectedId && !_ctx.pluginHistoryLoading && !_ctx.pluginHistoryError)
8761
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 3 }, [
8762
+ _createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('ecosystem.historyCompare')) + " · +" + _toDisplayString(_ctx.pluginHistoryComparison.stats.added) + " / −" + _toDisplayString(_ctx.pluginHistoryComparison.stats.removed), 1 /* TEXT */),
8763
+ _createElementVNode("div", {
8764
+ class: "agents-diff-view prompt-history-diff",
8765
+ role: "region",
8766
+ "aria-label": _ctx.t('ecosystem.historyCompare'),
8767
+ tabindex: "0"
8768
+ }, [
8769
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.pluginHistoryComparison.lines, (line, index) => {
8770
+ return (_openBlock(), _createElementBlock("div", {
8771
+ key: index,
8772
+ class: _normalizeClass(['agents-diff-line', line.type])
8773
+ }, [
8774
+ _createElementVNode("span", { class: "agents-diff-line-sign" }, _toDisplayString(line.type === 'add' ? '+' : (line.type === 'del' ? '−' : ' ')), 1 /* TEXT */),
8775
+ _createElementVNode("span", { class: "agents-diff-line-text" }, _toDisplayString(line.value), 1 /* TEXT */)
8776
+ ], 2 /* CLASS */))
8777
+ }), 128 /* KEYED_FRAGMENT */))
8778
+ ], 8 /* PROPS */, ["aria-label"]),
8779
+ _createElementVNode("button", {
8780
+ type: "button",
8781
+ class: "btn-mini btn-confirm-mini",
8782
+ onClick: _ctx.rollbackPluginConfig,
8783
+ disabled: _ctx.pluginConfigSaving || _ctx.pluginHistoryLoading
8784
+ }, _toDisplayString(_ctx.t('ecosystem.rollback')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
8785
+ ], 64 /* STABLE_FRAGMENT */))
8786
+ : _createCommentVNode("v-if", true)
8787
+ ])
8788
+ ]))
8789
+ : _createCommentVNode("v-if", true),
7299
8790
  (!_ctx.promptTemplateDraft)
7300
8791
  ? (_openBlock(), _createElementBlock("div", {
7301
- key: 0,
8792
+ key: 1,
7302
8793
  class: "skills-empty-state"
7303
8794
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.editor.selectHint')), 1 /* TEXT */))
7304
- : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
8795
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
7305
8796
  _createElementVNode("div", { class: "prompt-editor-head" }, [
7306
8797
  _createElementVNode("div", { class: "prompt-editor-title-row" }, [
7307
8798
  _withDirectives(_createElementVNode("input", {
@@ -7328,19 +8819,19 @@ return function render(_ctx, _cache) {
7328
8819
  type: "button",
7329
8820
  class: "btn-mini",
7330
8821
  onClick: _ctx.duplicatePromptTemplate,
7331
- disabled: _ctx.pluginsLoading
8822
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving
7332
8823
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.editor.duplicate')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
7333
8824
  _createElementVNode("button", {
7334
8825
  type: "button",
7335
8826
  class: "btn-mini delete",
7336
8827
  onClick: _ctx.deletePromptTemplate,
7337
- disabled: _ctx.pluginsLoading
8828
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving
7338
8829
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.editor.delete')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
7339
8830
  _createElementVNode("button", {
7340
8831
  type: "button",
7341
8832
  class: "btn-mini",
7342
8833
  onClick: _ctx.savePromptTemplate,
7343
- disabled: _ctx.pluginsLoading
8834
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving
7344
8835
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.editor.save')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
7345
8836
  ]))
7346
8837
  : _createCommentVNode("v-if", true)
@@ -7389,8 +8880,7 @@ return function render(_ctx, _cache) {
7389
8880
  _createElementVNode("div", { class: "prompt-vars-block" }, [
7390
8881
  _createElementVNode("div", { class: "prompt-vars-head" }, [
7391
8882
  _createElementVNode("div", null, [
7392
- _createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.title')), 1 /* TEXT */),
7393
- _createElementVNode("div", { class: "plugins-panel-note" }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.hint')), 1 /* TEXT */)
8883
+ _createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.title')), 1 /* TEXT */)
7394
8884
  ]),
7395
8885
  (!_ctx.promptTemplateDraft.isBuiltin)
7396
8886
  ? (_openBlock(), _createElementBlock("div", {
@@ -7401,7 +8891,7 @@ return function render(_ctx, _cache) {
7401
8891
  type: "button",
7402
8892
  class: "btn-mini",
7403
8893
  onClick: _ctx.resetPromptVariableValues,
7404
- disabled: _ctx.pluginsLoading
8894
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving
7405
8895
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.reset')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
7406
8896
  ]))
7407
8897
  : _createCommentVNode("v-if", true)
@@ -7443,7 +8933,7 @@ return function render(_ctx, _cache) {
7443
8933
  type: "button",
7444
8934
  class: "btn-mini",
7445
8935
  onClick: _ctx.copyRenderedPrompt,
7446
- disabled: _ctx.pluginsLoading
8936
+ disabled: _ctx.pluginsLoading || _ctx.pluginConfigSaving
7447
8937
  }, _toDisplayString(_ctx.t('plugins.promptTemplates.preview.copy')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
7448
8938
  ]),
7449
8939
  _createElementVNode("textarea", {
@@ -7552,7 +9042,7 @@ return function render(_ctx, _cache) {
7552
9042
  _createCommentVNode(" Prompts editor "),
7553
9043
  (_ctx.mainTab === 'prompts')
7554
9044
  ? (_openBlock(), _createElementBlock("div", {
7555
- key: 2,
9045
+ key: 3,
7556
9046
  class: "mode-content mode-cards",
7557
9047
  id: "panel-prompts",
7558
9048
  role: "tabpanel",
@@ -7870,12 +9360,35 @@ return function render(_ctx, _cache) {
7870
9360
  class: "state-message"
7871
9361
  }, _toDisplayString(_ctx.t('toast.history.empty')), 1 /* TEXT */))
7872
9362
  : _createCommentVNode("v-if", true),
7873
- (_ctx.promptHistoryPreviewContent)
9363
+ (_ctx.promptHistoryPreviewId && !_ctx.promptHistoryLoading && !_ctx.promptHistoryError)
7874
9364
  ? (_openBlock(), _createElementBlock("div", {
7875
9365
  key: 4,
7876
9366
  class: "prompt-history-preview-wrap"
7877
9367
  }, [
7878
9368
  _createElementVNode("pre", { class: "prompt-history-preview" }, _toDisplayString(_ctx.promptHistoryPreviewContent), 1 /* TEXT */),
9369
+ _createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('ecosystem.historyCompare')) + " · +" + _toDisplayString(_ctx.promptHistoryComparison.stats.added) + " / −" + _toDisplayString(_ctx.promptHistoryComparison.stats.removed), 1 /* TEXT */),
9370
+ _createElementVNode("div", {
9371
+ class: "agents-diff-view prompt-history-diff",
9372
+ role: "region",
9373
+ "aria-label": _ctx.t('ecosystem.historyCompare'),
9374
+ tabindex: "0"
9375
+ }, [
9376
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.promptHistoryComparison.lines, (line, index) => {
9377
+ return (_openBlock(), _createElementBlock("div", {
9378
+ key: index,
9379
+ class: _normalizeClass(['agents-diff-line', line.type])
9380
+ }, [
9381
+ _createElementVNode("span", { class: "agents-diff-line-sign" }, _toDisplayString(line.type === 'add' ? '+' : (line.type === 'del' ? '−' : ' ')), 1 /* TEXT */),
9382
+ _createElementVNode("span", { class: "agents-diff-line-text" }, _toDisplayString(line.value), 1 /* TEXT */)
9383
+ ], 2 /* CLASS */))
9384
+ }), 128 /* KEYED_FRAGMENT */))
9385
+ ], 8 /* PROPS */, ["aria-label"]),
9386
+ _createElementVNode("button", {
9387
+ type: "button",
9388
+ class: "btn-mini btn-confirm-mini",
9389
+ onClick: $event => (_ctx.rollbackPromptHistory('agents')),
9390
+ disabled: _ctx.agentsSaving || _ctx.promptHistoryLoading || _ctx.agentsDiffVisible
9391
+ }, _toDisplayString(_ctx.t('ecosystem.rollback')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
7879
9392
  _createElementVNode("button", {
7880
9393
  type: "button",
7881
9394
  class: "btn-mini btn-confirm-mini",
@@ -7927,8 +9440,7 @@ return function render(_ctx, _cache) {
7927
9440
  ]),
7928
9441
  _createElementVNode("details", { class: "prompt-presets-panel" }, [
7929
9442
  _createElementVNode("summary", { class: "prompt-presets-summary" }, [
7930
- _createElementVNode("span", null, _toDisplayString(_ctx.t('prompts.presets.title')), 1 /* TEXT */),
7931
- _createElementVNode("small", null, _toDisplayString(_ctx.t('prompts.presets.hint')), 1 /* TEXT */)
9443
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('prompts.presets.title')), 1 /* TEXT */)
7932
9444
  ]),
7933
9445
  _createElementVNode("div", { class: "form-group prompt-presets-body" }, [
7934
9446
  _createElementVNode("div", { class: "editor-frame prompt-presets-frame" }, [
@@ -8444,12 +9956,35 @@ return function render(_ctx, _cache) {
8444
9956
  class: "state-message"
8445
9957
  }, _toDisplayString(_ctx.t('toast.history.empty')), 1 /* TEXT */))
8446
9958
  : _createCommentVNode("v-if", true),
8447
- (_ctx.sysHistoryPreviewContent)
9959
+ (_ctx.sysHistoryPreviewId && !_ctx.sysHistoryLoading && !_ctx.sysHistoryError)
8448
9960
  ? (_openBlock(), _createElementBlock("div", {
8449
9961
  key: 4,
8450
9962
  class: "prompt-history-preview-wrap"
8451
9963
  }, [
8452
9964
  _createElementVNode("pre", { class: "prompt-history-preview" }, _toDisplayString(_ctx.sysHistoryPreviewContent), 1 /* TEXT */),
9965
+ _createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('ecosystem.historyCompare')) + " · +" + _toDisplayString(_ctx.sysHistoryComparison.stats.added) + " / −" + _toDisplayString(_ctx.sysHistoryComparison.stats.removed), 1 /* TEXT */),
9966
+ _createElementVNode("div", {
9967
+ class: "agents-diff-view prompt-history-diff",
9968
+ role: "region",
9969
+ "aria-label": _ctx.t('ecosystem.historyCompare'),
9970
+ tabindex: "0"
9971
+ }, [
9972
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sysHistoryComparison.lines, (line, index) => {
9973
+ return (_openBlock(), _createElementBlock("div", {
9974
+ key: index,
9975
+ class: _normalizeClass(['agents-diff-line', line.type])
9976
+ }, [
9977
+ _createElementVNode("span", { class: "agents-diff-line-sign" }, _toDisplayString(line.type === 'add' ? '+' : (line.type === 'del' ? '−' : ' ')), 1 /* TEXT */),
9978
+ _createElementVNode("span", { class: "agents-diff-line-text" }, _toDisplayString(line.value), 1 /* TEXT */)
9979
+ ], 2 /* CLASS */))
9980
+ }), 128 /* KEYED_FRAGMENT */))
9981
+ ], 8 /* PROPS */, ["aria-label"]),
9982
+ _createElementVNode("button", {
9983
+ type: "button",
9984
+ class: "btn-mini btn-confirm-mini",
9985
+ onClick: $event => (_ctx.rollbackPromptHistory('sys')),
9986
+ disabled: _ctx.sysPromptSaving || _ctx.sysHistoryLoading || _ctx.sysPromptDiffVisible
9987
+ }, _toDisplayString(_ctx.t('ecosystem.rollback')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
8453
9988
  _createElementVNode("button", {
8454
9989
  type: "button",
8455
9990
  class: "btn-mini btn-confirm-mini",
@@ -8663,12 +10198,12 @@ return function render(_ctx, _cache) {
8663
10198
  _createCommentVNode(" 加载状态 "),
8664
10199
  (_ctx.loading && _ctx.mainTab !== 'usage')
8665
10200
  ? (_openBlock(), _createElementBlock("div", {
8666
- key: 3,
10201
+ key: 4,
8667
10202
  class: "state-message app-loading-state"
8668
10203
  }, _toDisplayString(_ctx.t('app.loadingConfig')), 1 /* TEXT */))
8669
10204
  : (_ctx.initError)
8670
10205
  ? (_openBlock(), _createElementBlock("div", {
8671
- key: 4,
10206
+ key: 5,
8672
10207
  class: "state-message error"
8673
10208
  }, [
8674
10209
  _createCommentVNode(" 错误状态 "),
@@ -9052,36 +10587,29 @@ return function render(_ctx, _cache) {
9052
10587
  _createElementVNode("div", {
9053
10588
  class: "modal-title project-announcement-title",
9054
10589
  id: "provider-cache-announcement-title"
9055
- }, _toDisplayString(_ctx.t('announcement.project.title')), 1 /* TEXT */),
9056
- _createElementVNode("p", { class: "provider-cache-announcement-copy provider-cache-announcement-lede" }, _toDisplayString(_ctx.t('announcement.project.subtitle')), 1 /* TEXT */)
10590
+ }, _toDisplayString(_ctx.t('announcement.project.title')), 1 /* TEXT */)
9057
10591
  ]),
9058
10592
  _createElementVNode("div", {
9059
10593
  class: "project-announcement-feature-grid",
9060
10594
  "aria-label": _ctx.t('announcement.project.features.aria')
9061
10595
  }, [
9062
10596
  _createElementVNode("article", { class: "project-announcement-feature-card" }, [
9063
- _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.config.title')), 1 /* TEXT */),
9064
- _createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.config.meta')), 1 /* TEXT */)
10597
+ _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.config.title')), 1 /* TEXT */)
9065
10598
  ]),
9066
10599
  _createElementVNode("article", { class: "project-announcement-feature-card" }, [
9067
- _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.sessions.title')), 1 /* TEXT */),
9068
- _createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.sessions.meta')), 1 /* TEXT */)
10600
+ _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.sessions.title')), 1 /* TEXT */)
9069
10601
  ]),
9070
10602
  _createElementVNode("article", { class: "project-announcement-feature-card" }, [
9071
- _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.usage.title')), 1 /* TEXT */),
9072
- _createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.usage.meta')), 1 /* TEXT */)
10603
+ _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.usage.title')), 1 /* TEXT */)
9073
10604
  ]),
9074
10605
  _createElementVNode("article", { class: "project-announcement-feature-card" }, [
9075
- _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.tasks.title')), 1 /* TEXT */),
9076
- _createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.tasks.meta')), 1 /* TEXT */)
10606
+ _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.tasks.title')), 1 /* TEXT */)
9077
10607
  ]),
9078
10608
  _createElementVNode("article", { class: "project-announcement-feature-card" }, [
9079
- _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.skills.title')), 1 /* TEXT */),
9080
- _createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.skills.meta')), 1 /* TEXT */)
10609
+ _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.skills.title')), 1 /* TEXT */)
9081
10610
  ]),
9082
10611
  _createElementVNode("article", { class: "project-announcement-feature-card" }, [
9083
- _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.data.title')), 1 /* TEXT */),
9084
- _createElementVNode("div", { class: "project-announcement-feature-meta" }, _toDisplayString(_ctx.t('announcement.project.feature.data.meta')), 1 /* TEXT */)
10612
+ _createElementVNode("div", { class: "project-announcement-feature-title" }, _toDisplayString(_ctx.t('announcement.project.feature.data.title')), 1 /* TEXT */)
9085
10613
  ])
9086
10614
  ], 8 /* PROPS */, ["aria-label"]),
9087
10615
  _createElementVNode("details", {
@@ -9093,8 +10621,7 @@ return function render(_ctx, _cache) {
9093
10621
  _createElementVNode("span", {
9094
10622
  class: "project-announcement-section-title",
9095
10623
  id: "project-announcement-cache-title"
9096
- }, _toDisplayString(_ctx.t('announcement.project.cache.title')), 1 /* TEXT */),
9097
- _createElementVNode("span", { class: "project-announcement-section-meta" }, _toDisplayString(_ctx.t('announcement.project.cache.meta')), 1 /* TEXT */)
10624
+ }, _toDisplayString(_ctx.t('announcement.project.cache.title')), 1 /* TEXT */)
9098
10625
  ]),
9099
10626
  (_ctx.getProviderCacheAnnouncementSummary().loadedAt)
9100
10627
  ? (_openBlock(), _createElementBlock("span", {
@@ -9837,10 +11364,78 @@ return function render(_ctx, _cache) {
9837
11364
  ])
9838
11365
  ], 8 /* PROPS */, ["onClick"]))
9839
11366
  : _createCommentVNode("v-if", true),
11367
+ (_ctx.promptInvocationVisible)
11368
+ ? (_openBlock(), _createElementBlock("div", {
11369
+ key: 14,
11370
+ class: "modal-overlay",
11371
+ onClick: _withModifiers(_ctx.closePromptTemplateInvocation, ["self"])
11372
+ }, [
11373
+ _createElementVNode("form", {
11374
+ ref: "promptInvocationDialog",
11375
+ class: "modal prompt-invocation-dialog",
11376
+ role: "dialog",
11377
+ "aria-modal": "true",
11378
+ "aria-labelledby": "prompt-invocation-title",
11379
+ "aria-describedby": "prompt-invocation-hint",
11380
+ onSubmit: _withModifiers(_ctx.finishPromptTemplateInvocation, ["prevent"]),
11381
+ onKeydown: _ctx.onPromptInvocationKeydown
11382
+ }, [
11383
+ _createElementVNode("h2", {
11384
+ id: "prompt-invocation-title",
11385
+ class: "modal-title"
11386
+ }, _toDisplayString(_ctx.t('ecosystem.variablesTitle')), 1 /* TEXT */),
11387
+ _createElementVNode("p", {
11388
+ id: "prompt-invocation-hint",
11389
+ class: "form-hint"
11390
+ }, _toDisplayString(_ctx.t('ecosystem.variablesHint')), 1 /* TEXT */),
11391
+ _createElementVNode("div", { class: "prompt-invocation-fields" }, [
11392
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.promptInvocationNames, (name, index) => {
11393
+ return (_openBlock(), _createElementBlock("label", {
11394
+ key: name,
11395
+ class: "form-group",
11396
+ for: 'prompt-invocation-var-' + index
11397
+ }, [
11398
+ _createElementVNode("span", { class: "form-label mono" }, _toDisplayString('{' + '{' + name + '}' + '}'), 1 /* TEXT */),
11399
+ _withDirectives(_createElementVNode("textarea", {
11400
+ id: 'prompt-invocation-var-' + index,
11401
+ "onUpdate:modelValue": $event => ((_ctx.promptInvocationValues[name]) = $event),
11402
+ class: "form-input",
11403
+ rows: name === 'git_diff' ? 6 : 2,
11404
+ autocomplete: "off",
11405
+ spellcheck: "false",
11406
+ "aria-required": "true",
11407
+ "aria-invalid": !!_ctx.promptInvocationError && !_ctx.promptInvocationValues[name].trim()
11408
+ }, null, 8 /* PROPS */, ["id", "onUpdate:modelValue", "rows", "aria-invalid"]), [
11409
+ [_vModelText, _ctx.promptInvocationValues[name]]
11410
+ ])
11411
+ ], 8 /* PROPS */, ["for"]))
11412
+ }), 128 /* KEYED_FRAGMENT */))
11413
+ ]),
11414
+ (_ctx.promptInvocationError)
11415
+ ? (_openBlock(), _createElementBlock("p", {
11416
+ key: 0,
11417
+ class: "form-error",
11418
+ role: "alert"
11419
+ }, _toDisplayString(_ctx.promptInvocationError), 1 /* TEXT */))
11420
+ : _createCommentVNode("v-if", true),
11421
+ _createElementVNode("div", { class: "modal-actions" }, [
11422
+ _createElementVNode("button", {
11423
+ type: "button",
11424
+ class: "btn btn-secondary",
11425
+ onClick: _ctx.closePromptTemplateInvocation
11426
+ }, _toDisplayString(_ctx.t('common.cancel')), 9 /* TEXT, PROPS */, ["onClick"]),
11427
+ _createElementVNode("button", {
11428
+ type: "submit",
11429
+ class: "btn btn-primary"
11430
+ }, _toDisplayString(_ctx.t('ecosystem.useTemplate')), 1 /* TEXT */)
11431
+ ])
11432
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit", "onKeydown"])
11433
+ ], 8 /* PROPS */, ["onClick"]))
11434
+ : _createCommentVNode("v-if", true),
9840
11435
  _createCommentVNode(" Webhook settings modal "),
9841
11436
  (_ctx.showWebhookModal)
9842
11437
  ? (_openBlock(), _createElementBlock("div", {
9843
- key: 14,
11438
+ key: 15,
9844
11439
  class: "modal-overlay",
9845
11440
  onClick: _withModifiers(_ctx.closeWebhookModal, ["self"])
9846
11441
  }, [
@@ -9913,7 +11508,7 @@ return function render(_ctx, _cache) {
9913
11508
  : _createCommentVNode("v-if", true),
9914
11509
  (_ctx.showOpenclawConfigModal)
9915
11510
  ? (_openBlock(), _createElementBlock("div", {
9916
- key: 15,
11511
+ key: 16,
9917
11512
  class: "modal-overlay",
9918
11513
  onClick: _withModifiers($event => (!(_ctx.openclawSaving || _ctx.openclawApplying) && _ctx.closeOpenclawConfigModal()), ["self"])
9919
11514
  }, [
@@ -9960,8 +11555,7 @@ return function render(_ctx, _cache) {
9960
11555
  _createElementVNode("div", { class: "quick-section" }, [
9961
11556
  _createElementVNode("div", { class: "quick-header" }, [
9962
11557
  _createElementVNode("div", null, [
9963
- _createElementVNode("div", { class: "quick-title" }, _toDisplayString(_ctx.t('modal.openclaw.quick.title')), 1 /* TEXT */),
9964
- _createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('modal.openclaw.quick.subtitle')), 1 /* TEXT */)
11558
+ _createElementVNode("div", { class: "quick-title" }, _toDisplayString(_ctx.t('modal.openclaw.quick.title')), 1 /* TEXT */)
9965
11559
  ]),
9966
11560
  _createElementVNode("div", { class: "quick-actions" }, [
9967
11561
  _createElementVNode("button", {
@@ -10169,8 +11763,7 @@ return function render(_ctx, _cache) {
10169
11763
  placeholder: _ctx.t('placeholder.modelNameOptional')
10170
11764
  }, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
10171
11765
  [_vModelText, _ctx.openclawQuick.modelName]
10172
- ]),
10173
- _createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('modal.openclaw.quick.modelNameHint')), 1 /* TEXT */)
11766
+ ])
10174
11767
  ]),
10175
11768
  _createElementVNode("div", { class: "form-group" }, [
10176
11769
  _createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('field.contextAndMaxOutput')), 1 /* TEXT */),
@@ -10625,7 +12218,7 @@ return function render(_ctx, _cache) {
10625
12218
  : _createCommentVNode("v-if", true),
10626
12219
  (_ctx.showConfigTemplateModal)
10627
12220
  ? (_openBlock(), _createElementBlock("div", {
10628
- key: 16,
12221
+ key: 17,
10629
12222
  class: "modal-overlay",
10630
12223
  onClick: _withModifiers($event => (!_ctx.configTemplateApplying && _ctx.closeConfigTemplateModal()), ["self"])
10631
12224
  }, [
@@ -10770,7 +12363,7 @@ return function render(_ctx, _cache) {
10770
12363
  : _createCommentVNode("v-if", true),
10771
12364
  (_ctx.showAgentsModal)
10772
12365
  ? (_openBlock(), _createElementBlock("div", {
10773
- key: 17,
12366
+ key: 18,
10774
12367
  class: "modal-overlay",
10775
12368
  onClick: _withModifiers(_ctx.closeAgentsModal, ["self"])
10776
12369
  }, [
@@ -10941,7 +12534,7 @@ return function render(_ctx, _cache) {
10941
12534
  : _createCommentVNode("v-if", true),
10942
12535
  (_ctx.showSkillsModal)
10943
12536
  ? (_openBlock(), _createElementBlock("div", {
10944
- key: 18,
12537
+ key: 19,
10945
12538
  class: "modal-overlay",
10946
12539
  onClick: _withModifiers(_ctx.closeSkillsModal, ["self"])
10947
12540
  }, [
@@ -10956,8 +12549,7 @@ return function render(_ctx, _cache) {
10956
12549
  _createElementVNode("div", {
10957
12550
  class: "modal-title",
10958
12551
  id: "skills-modal-title"
10959
- }, _toDisplayString(_ctx.t('modal.skills.title')), 1 /* TEXT */),
10960
- _createElementVNode("div", { class: "skills-modal-subtitle" }, _toDisplayString(_ctx.t('modal.skills.subtitle')), 1 /* TEXT */)
12552
+ }, _toDisplayString(_ctx.t('modal.skills.title')), 1 /* TEXT */)
10961
12553
  ]),
10962
12554
  _createElementVNode("div", { class: "modal-header-actions skills-modal-actions" }, [
10963
12555
  _createElementVNode("div", {
@@ -11246,7 +12838,7 @@ return function render(_ctx, _cache) {
11246
12838
  }, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
11247
12839
  (_ctx.showHealthCheckModal)
11248
12840
  ? (_openBlock(), _createElementBlock("div", {
11249
- key: 19,
12841
+ key: 20,
11250
12842
  class: "modal-overlay",
11251
12843
  onClick: _withModifiers($event => (_ctx.showHealthCheckModal = false), ["self"])
11252
12844
  }, [
@@ -11419,7 +13011,7 @@ return function render(_ctx, _cache) {
11419
13011
  : _createCommentVNode("v-if", true),
11420
13012
  (_ctx.showConfirmDialog)
11421
13013
  ? (_openBlock(), _createElementBlock("div", {
11422
- key: 20,
13014
+ key: 21,
11423
13015
  class: "modal-overlay",
11424
13016
  onClick: _withModifiers(_ctx.closeConfirmDialog, ["self"])
11425
13017
  }, [
@@ -11457,7 +13049,7 @@ return function render(_ctx, _cache) {
11457
13049
  _createCommentVNode(" Toast "),
11458
13050
  (_ctx.message)
11459
13051
  ? (_openBlock(), _createElementBlock("div", {
11460
- key: 21,
13052
+ key: 22,
11461
13053
  class: _normalizeClass(['toast', _ctx.messageType]),
11462
13054
  role: "status",
11463
13055
  "aria-live": "polite",