codexmate 0.1.29 → 0.1.31

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 (72) hide show
  1. package/README.md +95 -4
  2. package/README.vi.md +95 -4
  3. package/README.zh.md +96 -4
  4. package/cli/config-bootstrap.js +25 -11
  5. package/cli/skills.js +33 -8
  6. package/cli.js +364 -42
  7. package/lib/cli-config-engine.js +260 -0
  8. package/lib/cli-utils.js +2 -1
  9. package/lib/cli-webhook.js +1 -1
  10. package/lib/handoff-mcp.js +282 -0
  11. package/lib/http-access-control.js +335 -0
  12. package/lib/thread-handoff.js +130 -0
  13. package/lib/web-startup-auth.js +49 -0
  14. package/lib/workflow-engine.js +92 -21
  15. package/lib/workflow-runner.js +261 -0
  16. package/package.json +6 -1
  17. package/web-ui/app.js +33 -4
  18. package/web-ui/logic.sessions.mjs +24 -0
  19. package/web-ui/modules/access-token.mjs +33 -0
  20. package/web-ui/modules/api.mjs +2 -1
  21. package/web-ui/modules/app.computed.dashboard.mjs +1 -1
  22. package/web-ui/modules/app.methods.codex-config.mjs +1 -1
  23. package/web-ui/modules/app.methods.index.mjs +2 -0
  24. package/web-ui/modules/app.methods.navigation.mjs +17 -3
  25. package/web-ui/modules/app.methods.prompts-editor.mjs +7 -0
  26. package/web-ui/modules/app.methods.providers.mjs +2 -2
  27. package/web-ui/modules/app.methods.runtime.mjs +3 -2
  28. package/web-ui/modules/app.methods.session-actions.mjs +3 -0
  29. package/web-ui/modules/app.methods.session-browser.mjs +11 -3
  30. package/web-ui/modules/app.methods.system-prompt.mjs +1 -8
  31. package/web-ui/modules/app.methods.workflows.mjs +41 -0
  32. package/web-ui/modules/i18n/locales/en.mjs +43 -2
  33. package/web-ui/modules/i18n/locales/ja.mjs +43 -2
  34. package/web-ui/modules/i18n/locales/vi.mjs +43 -2
  35. package/web-ui/modules/i18n/locales/zh-tw.mjs +43 -2
  36. package/web-ui/modules/i18n/locales/zh.mjs +43 -2
  37. package/web-ui/modules/i18n.mjs +16 -0
  38. package/web-ui/modules/sessions-filters-url.mjs +3 -0
  39. package/web-ui/modules/skills.computed.mjs +11 -0
  40. package/web-ui/modules/skills.methods.mjs +63 -12
  41. package/web-ui/modules/thread-handoff.mjs +142 -0
  42. package/web-ui/partials/index/layout-footer.html +1 -1
  43. package/web-ui/partials/index/layout-header.html +32 -12
  44. package/web-ui/partials/index/panel-config-claude.html +2 -0
  45. package/web-ui/partials/index/panel-config-codex.html +2 -0
  46. package/web-ui/partials/index/panel-config-kilocode.html +3 -1
  47. package/web-ui/partials/index/panel-config-openclaw.html +2 -0
  48. package/web-ui/partials/index/panel-config-opencode.html +3 -1
  49. package/web-ui/partials/index/panel-config-pi.html +2 -0
  50. package/web-ui/partials/index/panel-dashboard.html +59 -0
  51. package/web-ui/partials/index/panel-market.html +23 -5
  52. package/web-ui/partials/index/panel-prompts.html +28 -16
  53. package/web-ui/partials/index/panel-sessions.html +51 -70
  54. package/web-ui/partials/index/panel-trash.html +3 -0
  55. package/web-ui/partials/index/thread-handoff.html +59 -0
  56. package/web-ui/res/web-ui-render.precompiled.js +1020 -493
  57. package/web-ui/styles/controls-forms.css +9 -0
  58. package/web-ui/styles/dashboard.css +51 -0
  59. package/web-ui/styles/feedback.css +26 -0
  60. package/web-ui/styles/layout-shell.css +66 -2
  61. package/web-ui/styles/modals-core.css +87 -0
  62. package/web-ui/styles/navigation-panels.css +5 -11
  63. package/web-ui/styles/plugins-panel.css +62 -0
  64. package/web-ui/styles/prompts-editor.css +11 -4
  65. package/web-ui/styles/responsive.css +19 -10
  66. package/web-ui/styles/sessions-list.css +19 -1
  67. package/web-ui/styles/sessions-preview.css +224 -140
  68. package/web-ui/styles/sessions-toolbar-trash.css +2 -2
  69. package/web-ui/styles/settings-panel.css +1 -1
  70. package/web-ui/styles/skills-market.css +47 -0
  71. package/web-ui/styles/titles-cards.css +1 -1
  72. package/web-ui/styles/trash-panel.css +43 -6
@@ -1,11 +1,19 @@
1
1
  window.__CODEXMATE_WEB_UI_RENDER__ = (() => {
2
- const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass, Fragment: _Fragment, renderList: _renderList, vShow: _vShow, withDirectives: _withDirectives, vModelSelect: _vModelSelect, vModelText: _vModelText, withKeys: _withKeys, withModifiers: _withModifiers, vModelDynamic: _vModelDynamic, vModelCheckbox: _vModelCheckbox, 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, isMemoSame: _isMemoSame, withMemo: _withMemo, normalizeStyle: _normalizeStyle } = Vue
3
3
 
4
4
  return function render(_ctx, _cache) {
5
5
  return (_openBlock(), _createElementBlock(_Fragment, null, [
6
- (!_ctx.sessionStandalone)
6
+ (!_ctx.navigationReady)
7
7
  ? (_openBlock(), _createElementBlock("div", {
8
8
  key: 0,
9
+ class: "app-navigation-loading-state",
10
+ role: "status",
11
+ "aria-live": "polite"
12
+ }, _toDisplayString(_ctx.t('app.loadingConfig')), 1 /* TEXT */))
13
+ : _createCommentVNode("v-if", true),
14
+ (!_ctx.sessionStandalone)
15
+ ? (_openBlock(), _createElementBlock("div", {
16
+ key: 1,
9
17
  class: "mobile-brand-bar"
10
18
  }, [
11
19
  _createElementVNode("div", { class: "mobile-brand-title" }, [
@@ -33,7 +41,7 @@ return function render(_ctx, _cache) {
33
41
  : _createCommentVNode("v-if", true),
34
42
  (!_ctx.sessionStandalone)
35
43
  ? (_openBlock(), _createElementBlock("div", {
36
- key: 1,
44
+ key: 2,
37
45
  class: "top-tabs",
38
46
  role: "tablist",
39
47
  "aria-label": _ctx.t('nav.topTabs.aria')
@@ -151,7 +159,7 @@ return function render(_ctx, _cache) {
151
159
  : _createCommentVNode("v-if", true),
152
160
  (!_ctx.sessionStandalone)
153
161
  ? (_openBlock(), _createElementBlock("div", {
154
- key: 2,
162
+ key: 3,
155
163
  class: "lang-fab"
156
164
  }, [
157
165
  _createElementVNode("button", {
@@ -581,12 +589,66 @@ return function render(_ctx, _cache) {
581
589
  ]),
582
590
  _createElementVNode("div", { class: "side-rail-lang" }, [
583
591
  _createElementVNode("div", { class: "side-rail-lang-actions" }, [
584
- _createElementVNode("button", {
585
- type: "button",
586
- class: "language-settings-link",
587
- "aria-label": _ctx.t('settings.language.sideLabel', { language: _ctx.currentLanguageLabel() }),
588
- onClick: _ctx.openLanguageSettings
589
- }, _toDisplayString(_ctx.t('settings.language.sideLabel', { language: _ctx.currentLanguageLabel() })), 9 /* TEXT, PROPS */, ["aria-label", "onClick"]),
592
+ _createElementVNode("div", { class: "side-language-menu" }, [
593
+ _createElementVNode("button", {
594
+ type: "button",
595
+ class: "language-settings-link",
596
+ "aria-label": _ctx.t('settings.language.sideLabel', { language: _ctx.currentLanguageLabel() }),
597
+ "aria-expanded": _ctx.languageMenuOpen ? 'true' : 'false',
598
+ "aria-haspopup": "menu",
599
+ onClick: _ctx.toggleLanguageMenu,
600
+ onKeydown: _withKeys(_withModifiers(_ctx.closeLanguageMenu, ["prevent"]), ["esc"])
601
+ }, [
602
+ _createTextVNode(_toDisplayString(_ctx.t('settings.language.sideLabel', { language: _ctx.currentLanguageLabel() })) + " ", 1 /* TEXT */),
603
+ (_openBlock(), _createElementBlock("svg", {
604
+ viewBox: "0 0 16 16",
605
+ fill: "none",
606
+ stroke: "currentColor",
607
+ "stroke-width": "1.8",
608
+ "stroke-linecap": "round",
609
+ "stroke-linejoin": "round",
610
+ "aria-hidden": "true"
611
+ }, [
612
+ _createElementVNode("path", { d: "M4 6l4 4 4-4" })
613
+ ]))
614
+ ], 40 /* PROPS, NEED_HYDRATION */, ["aria-label", "aria-expanded", "onClick", "onKeydown"]),
615
+ (_ctx.languageMenuOpen)
616
+ ? (_openBlock(), _createElementBlock("div", {
617
+ key: 0,
618
+ class: "side-language-dropdown",
619
+ role: "menu",
620
+ onFocusout: _ctx.handleLanguageMenuFocusOut
621
+ }, [
622
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.languageOptions(), (option) => {
623
+ return (_openBlock(), _createElementBlock("button", {
624
+ key: option.code,
625
+ type: "button",
626
+ class: _normalizeClass(["side-language-option", { active: option.code === _ctx.lang }]),
627
+ role: "menuitemradio",
628
+ "aria-checked": option.code === _ctx.lang ? 'true' : 'false',
629
+ onClick: $event => (_ctx.selectLanguage(option.code))
630
+ }, [
631
+ _createElementVNode("span", null, _toDisplayString(option.nativeName), 1 /* TEXT */),
632
+ _createElementVNode("small", null, _toDisplayString(option.englishName), 1 /* TEXT */),
633
+ (option.code === _ctx.lang)
634
+ ? (_openBlock(), _createElementBlock("svg", {
635
+ key: 0,
636
+ viewBox: "0 0 16 16",
637
+ fill: "none",
638
+ stroke: "currentColor",
639
+ "stroke-width": "2",
640
+ "stroke-linecap": "round",
641
+ "stroke-linejoin": "round",
642
+ "aria-hidden": "true"
643
+ }, [
644
+ _createElementVNode("path", { d: "M3.5 8.5l3 3 6-7" })
645
+ ]))
646
+ : _createCommentVNode("v-if", true)
647
+ ], 10 /* CLASS, PROPS */, ["aria-checked", "onClick"]))
648
+ }), 128 /* KEYED_FRAGMENT */))
649
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onFocusout"]))
650
+ : _createCommentVNode("v-if", true)
651
+ ]),
590
652
  _createElementVNode("button", {
591
653
  type: "button",
592
654
  class: "side-announcement-button",
@@ -794,21 +856,10 @@ return function render(_ctx, _cache) {
794
856
  _createElementVNode("span", { class: "value" }, _toDisplayString(_ctx.installRegistryPreview || 'npmmirror'), 1 /* TEXT */)
795
857
  ])
796
858
  ]))
797
- : (!_ctx.sessionStandalone)
798
- ? (_openBlock(), _createElementBlock("div", {
799
- key: 6,
800
- class: "status-strip status-strip-placeholder",
801
- "aria-hidden": "true"
802
- }, [
803
- _createElementVNode("div", { class: "status-chip" }, [
804
- _createElementVNode("span", { class: "label" }, " "),
805
- _createElementVNode("span", { class: "value" }, " ")
806
- ])
807
- ]))
808
- : _createCommentVNode("v-if", true),
859
+ : _createCommentVNode("v-if", true),
809
860
  (!_ctx.sessionStandalone && _ctx.mainTab === 'config' && _ctx.isProviderConfigMode && _ctx.forceCompactLayout && !_ctx.loading && !_ctx.initError && _ctx.displayProvidersList.length > 1)
810
861
  ? (_openBlock(), _createElementBlock("div", {
811
- key: 7,
862
+ key: 6,
812
863
  class: "provider-fast-switch"
813
864
  }, [
814
865
  _createElementVNode("label", {
@@ -839,6 +890,199 @@ return function render(_ctx, _cache) {
839
890
  role: "tabpanel",
840
891
  "aria-labelledby": 'tab-dashboard'
841
892
  }, [
893
+ _createElementVNode("section", {
894
+ class: "selector-section workflow-panel",
895
+ "aria-label": _ctx.t('workflow.title'),
896
+ "aria-busy": _ctx.workflowBusy
897
+ }, [
898
+ _createElementVNode("header", { class: "workflow-header" }, [
899
+ _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 */)
902
+ ]),
903
+ _createElementVNode("button", {
904
+ type: "button",
905
+ class: "btn-tool btn-tool-compact workflow-refresh",
906
+ onClick: _ctx.refreshWorkflowRuns,
907
+ disabled: _ctx.workflowBusy
908
+ }, _toDisplayString(_ctx.t('workflow.refresh')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
909
+ ]),
910
+ _createElementVNode("form", {
911
+ class: "workflow-form",
912
+ onSubmit: _withModifiers(_ctx.submitWorkflowRun, ["prevent"])
913
+ }, [
914
+ _createElementVNode("div", { class: "workflow-launch" }, [
915
+ _createElementVNode("div", { class: "workflow-field" }, [
916
+ _createElementVNode("label", {
917
+ class: "form-label",
918
+ for: "workflow-id"
919
+ }, _toDisplayString(_ctx.t('workflow.definition')), 1 /* TEXT */),
920
+ _withDirectives(_createElementVNode("select", {
921
+ id: "workflow-id",
922
+ "onUpdate:modelValue": $event => ((_ctx.workflowId) = $event),
923
+ class: "model-select workflow-select",
924
+ disabled: _ctx.workflowBusy || !_ctx.workflowDefinitions.length
925
+ }, [
926
+ (!_ctx.workflowDefinitions.length)
927
+ ? (_openBlock(), _createElementBlock("option", {
928
+ key: 0,
929
+ value: "diagnose-config"
930
+ }, _toDisplayString(_ctx.t('workflow.noDefinitions')), 1 /* TEXT */))
931
+ : _createCommentVNode("v-if", true),
932
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.workflowDefinitions, (item) => {
933
+ return (_openBlock(), _createElementBlock("option", {
934
+ key: item.id,
935
+ value: item.id
936
+ }, _toDisplayString(item.name || item.id), 9 /* TEXT, PROPS */, ["value"]))
937
+ }), 128 /* KEYED_FRAGMENT */))
938
+ ], 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
939
+ [_vModelSelect, _ctx.workflowId]
940
+ ])
941
+ ]),
942
+ _createElementVNode("button", {
943
+ type: "submit",
944
+ class: "btn btn-confirm workflow-submit",
945
+ disabled: _ctx.workflowBusy || !_ctx.workflowDefinitions.length
946
+ }, [
947
+ _createTextVNode(_toDisplayString(_ctx.workflowBusy ? _ctx.t('workflow.submitting') : _ctx.t('workflow.submit')), 1 /* TEXT */),
948
+ _createElementVNode("span", { "aria-hidden": "true" }, "↗")
949
+ ], 8 /* PROPS */, ["disabled"])
950
+ ]),
951
+ _createElementVNode("details", {
952
+ class: "workflow-options",
953
+ open: _ctx.workflowInput.trim() !== '{}'
954
+ }, [
955
+ _createElementVNode("summary", null, [
956
+ _createTextVNode(_toDisplayString(_ctx.t('workflow.options')) + " ", 1 /* TEXT */),
957
+ _createElementVNode("span", { class: "workflow-option-kind" }, "JSON")
958
+ ]),
959
+ _createElementVNode("div", { class: "workflow-field" }, [
960
+ _createElementVNode("label", {
961
+ class: "form-label",
962
+ for: "workflow-input"
963
+ }, _toDisplayString(_ctx.t('workflow.input')), 1 /* TEXT */),
964
+ _withDirectives(_createElementVNode("textarea", {
965
+ id: "workflow-input",
966
+ "onUpdate:modelValue": $event => ((_ctx.workflowInput) = $event),
967
+ class: "form-input workflow-json",
968
+ rows: "4",
969
+ spellcheck: "false",
970
+ disabled: _ctx.workflowBusy,
971
+ "aria-describedby": "workflow-input-hint"
972
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
973
+ [_vModelText, _ctx.workflowInput]
974
+ ]),
975
+ _createElementVNode("p", {
976
+ id: "workflow-input-hint",
977
+ class: "form-hint"
978
+ }, _toDisplayString(_ctx.t('workflow.inputHint')), 1 /* TEXT */)
979
+ ]),
980
+ _createElementVNode("p", { class: "form-hint" }, _toDisplayString(_ctx.t('workflow.description')), 1 /* TEXT */)
981
+ ], 8 /* PROPS */, ["open"]),
982
+ _createElementVNode("label", { class: "workflow-authorization" }, [
983
+ _withDirectives(_createElementVNode("input", {
984
+ type: "checkbox",
985
+ "onUpdate:modelValue": $event => ((_ctx.workflowAllowWrite) = $event),
986
+ disabled: _ctx.workflowBusy
987
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
988
+ [_vModelCheckbox, _ctx.workflowAllowWrite]
989
+ ]),
990
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('workflow.allowWrite')), 1 /* TEXT */)
991
+ ])
992
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
993
+ (_ctx.workflowError)
994
+ ? (_openBlock(), _createElementBlock("p", {
995
+ key: 0,
996
+ class: "form-hint form-error",
997
+ role: "alert"
998
+ }, _toDisplayString(_ctx.workflowError), 1 /* TEXT */))
999
+ : _createCommentVNode("v-if", true),
1000
+ _createElementVNode("details", {
1001
+ class: "workflow-history",
1002
+ open: _ctx.workflowRuns.length > 0
1003
+ }, [
1004
+ _createElementVNode("summary", { class: "workflow-history-title" }, [
1005
+ _createTextVNode(_toDisplayString(_ctx.t('workflow.runs')) + " ", 1 /* TEXT */),
1006
+ _createElementVNode("span", { class: "workflow-count" }, _toDisplayString(_ctx.workflowRuns.length), 1 /* TEXT */)
1007
+ ]),
1008
+ (!_ctx.workflowRuns.length)
1009
+ ? (_openBlock(), _createElementBlock("div", {
1010
+ key: 0,
1011
+ class: "workflow-empty"
1012
+ }, [
1013
+ _createElementVNode("p", null, _toDisplayString(_ctx.t('workflow.empty')), 1 /* TEXT */),
1014
+ _createElementVNode("p", { class: "form-hint" }, _toDisplayString(_ctx.t('workflow.emptyHint')), 1 /* TEXT */)
1015
+ ]))
1016
+ : _createCommentVNode("v-if", true),
1017
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.workflowRuns, (run) => {
1018
+ return (_openBlock(), _createElementBlock("article", {
1019
+ key: run.id,
1020
+ class: "workflow-run"
1021
+ }, [
1022
+ _createElementVNode("div", { class: "workflow-run-header" }, [
1023
+ _createElementVNode("h4", { class: "workflow-run-title" }, _toDisplayString(run.definition.name || run.definition.id), 1 /* TEXT */),
1024
+ _createElementVNode("span", {
1025
+ class: "workflow-status",
1026
+ "data-status": run.status
1027
+ }, _toDisplayString(_ctx.workflowStatusLabel(run.status)), 9 /* TEXT, PROPS */, ["data-status"])
1028
+ ]),
1029
+ _createElementVNode("p", { class: "workflow-run-id" }, [
1030
+ _createTextVNode(_toDisplayString(_ctx.t('workflow.runId')) + " ", 1 /* TEXT */),
1031
+ _createElementVNode("code", null, _toDisplayString(run.id), 1 /* TEXT */)
1032
+ ]),
1033
+ (run.reason || run.error)
1034
+ ? (_openBlock(), _createElementBlock("p", {
1035
+ key: 0,
1036
+ class: "workflow-run-reason"
1037
+ }, _toDisplayString(run.reason || run.error), 1 /* TEXT */))
1038
+ : _createCommentVNode("v-if", true),
1039
+ (['queued', 'running', 'waiting'].includes(run.status))
1040
+ ? (_openBlock(), _createElementBlock("div", {
1041
+ key: 1,
1042
+ class: "workflow-run-actions"
1043
+ }, [
1044
+ (run.status === 'waiting')
1045
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
1046
+ _createElementVNode("button", {
1047
+ type: "button",
1048
+ class: "btn-tool btn-tool-compact",
1049
+ onClick: $event => (_ctx.workflowInput = JSON.stringify(run.input, null, 2)),
1050
+ disabled: _ctx.workflowBusy
1051
+ }, _toDisplayString(_ctx.t('workflow.loadInput')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
1052
+ _createElementVNode("button", {
1053
+ type: "button",
1054
+ class: "btn-tool btn-tool-compact",
1055
+ onClick: $event => (_ctx.controlWorkflowRun(run, 'resume')),
1056
+ disabled: _ctx.workflowBusy
1057
+ }, _toDisplayString(_ctx.t('workflow.resume')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
1058
+ ], 64 /* STABLE_FRAGMENT */))
1059
+ : _createCommentVNode("v-if", true),
1060
+ _createElementVNode("button", {
1061
+ type: "button",
1062
+ class: "btn-tool btn-tool-compact",
1063
+ onClick: $event => (_ctx.controlWorkflowRun(run, 'cancel')),
1064
+ disabled: _ctx.workflowBusy
1065
+ }, _toDisplayString(_ctx.t('workflow.cancel')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
1066
+ ]))
1067
+ : _createCommentVNode("v-if", true),
1068
+ (run.summary)
1069
+ ? (_openBlock(), _createElementBlock("details", {
1070
+ key: 2,
1071
+ class: "workflow-details",
1072
+ open: run.status === 'waiting'
1073
+ }, [
1074
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('workflow.summary')), 1 /* TEXT */),
1075
+ _createElementVNode("pre", null, _toDisplayString(JSON.stringify(run.summary, null, 2)), 1 /* TEXT */)
1076
+ ], 8 /* PROPS */, ["open"]))
1077
+ : _createCommentVNode("v-if", true),
1078
+ _createElementVNode("details", { class: "workflow-details" }, [
1079
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('workflow.details')), 1 /* TEXT */),
1080
+ _createElementVNode("pre", null, _toDisplayString(JSON.stringify({ steps: run.steps, notification: run.notification }, null, 2)), 1 /* TEXT */)
1081
+ ])
1082
+ ]))
1083
+ }), 128 /* KEYED_FRAGMENT */))
1084
+ ], 8 /* PROPS */, ["open"])
1085
+ ], 8 /* PROPS */, ["aria-label", "aria-busy"]),
842
1086
  _createElementVNode("div", { class: "selector-section doctor-hero" }, [
843
1087
  _createElementVNode("div", { class: "selector-header doctor-header" }, [
844
1088
  _createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('dashboard.doctor.title')), 1 /* TEXT */),
@@ -1669,16 +1913,23 @@ return function render(_ctx, _cache) {
1669
1913
  key: 4,
1670
1914
  class: "tool-config-write-overlay"
1671
1915
  }, [
1672
- _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
1673
- _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.codex.lockedTitle')), 1 /* TEXT */),
1674
- _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.codex.lockedDesc')), 1 /* TEXT */),
1675
- _createElementVNode("button", {
1676
- type: "button",
1677
- class: "btn-tool",
1678
- onClick: $event => (_ctx.setToolConfigPermission('codex', true)),
1679
- disabled: _ctx.toolConfigPermissionSaving.codex
1680
- }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
1681
- ])
1916
+ (_ctx.mainTab === 'config' && _ctx.configMode === 'codex')
1917
+ ? (_openBlock(), _createBlock(_Teleport, {
1918
+ key: 0,
1919
+ to: "body"
1920
+ }, [
1921
+ _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
1922
+ _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.codex.lockedTitle')), 1 /* TEXT */),
1923
+ _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.codex.lockedDesc')), 1 /* TEXT */),
1924
+ _createElementVNode("button", {
1925
+ type: "button",
1926
+ class: "btn-tool",
1927
+ onClick: $event => (_ctx.setToolConfigPermission('codex', true)),
1928
+ disabled: _ctx.toolConfigPermissionSaving.codex
1929
+ }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
1930
+ ])
1931
+ ]))
1932
+ : _createCommentVNode("v-if", true)
1682
1933
  ]))
1683
1934
  : _createCommentVNode("v-if", true)
1684
1935
  ])
@@ -2206,16 +2457,23 @@ return function render(_ctx, _cache) {
2206
2457
  key: 1,
2207
2458
  class: "tool-config-write-overlay"
2208
2459
  }, [
2209
- _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
2210
- _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.claude.lockedTitle')), 1 /* TEXT */),
2211
- _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.claude.lockedDesc')), 1 /* TEXT */),
2212
- _createElementVNode("button", {
2213
- type: "button",
2214
- class: "btn-tool",
2215
- onClick: $event => (_ctx.setToolConfigPermission('claude', true)),
2216
- disabled: _ctx.toolConfigPermissionSaving.claude
2217
- }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
2218
- ])
2460
+ (_ctx.mainTab === 'config' && _ctx.configMode === 'claude')
2461
+ ? (_openBlock(), _createBlock(_Teleport, {
2462
+ key: 0,
2463
+ to: "body"
2464
+ }, [
2465
+ _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
2466
+ _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.claude.lockedTitle')), 1 /* TEXT */),
2467
+ _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.claude.lockedDesc')), 1 /* TEXT */),
2468
+ _createElementVNode("button", {
2469
+ type: "button",
2470
+ class: "btn-tool",
2471
+ onClick: $event => (_ctx.setToolConfigPermission('claude', true)),
2472
+ disabled: _ctx.toolConfigPermissionSaving.claude
2473
+ }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
2474
+ ])
2475
+ ]))
2476
+ : _createCommentVNode("v-if", true)
2219
2477
  ]))
2220
2478
  : _createCommentVNode("v-if", true)
2221
2479
  ])
@@ -2461,16 +2719,23 @@ return function render(_ctx, _cache) {
2461
2719
  key: 0,
2462
2720
  class: "tool-config-write-overlay"
2463
2721
  }, [
2464
- _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
2465
- _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.openclaw.lockedTitle')), 1 /* TEXT */),
2466
- _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.openclaw.lockedDesc')), 1 /* TEXT */),
2467
- _createElementVNode("button", {
2468
- type: "button",
2469
- class: "btn-tool",
2470
- onClick: $event => (_ctx.setToolConfigPermission('openclaw', true)),
2471
- disabled: _ctx.toolConfigPermissionSaving.openclaw
2472
- }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
2473
- ])
2722
+ (_ctx.mainTab === 'config' && _ctx.configMode === 'openclaw')
2723
+ ? (_openBlock(), _createBlock(_Teleport, {
2724
+ key: 0,
2725
+ to: "body"
2726
+ }, [
2727
+ _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
2728
+ _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.openclaw.lockedTitle')), 1 /* TEXT */),
2729
+ _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.openclaw.lockedDesc')), 1 /* TEXT */),
2730
+ _createElementVNode("button", {
2731
+ type: "button",
2732
+ class: "btn-tool",
2733
+ onClick: $event => (_ctx.setToolConfigPermission('openclaw', true)),
2734
+ disabled: _ctx.toolConfigPermissionSaving.openclaw
2735
+ }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
2736
+ ])
2737
+ ]))
2738
+ : _createCommentVNode("v-if", true)
2474
2739
  ]))
2475
2740
  : _createCommentVNode("v-if", true)
2476
2741
  ])
@@ -2870,16 +3135,23 @@ return function render(_ctx, _cache) {
2870
3135
  key: 1,
2871
3136
  class: "tool-config-write-overlay"
2872
3137
  }, [
2873
- _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
2874
- _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.opencode.lockedTitle')), 1 /* TEXT */),
2875
- _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.opencode.lockedDesc')), 1 /* TEXT */),
2876
- _createElementVNode("button", {
2877
- type: "button",
2878
- class: "btn-tool",
2879
- onClick: $event => (_ctx.setToolConfigPermission('opencode', true)),
2880
- disabled: _ctx.toolConfigPermissionSaving.opencode
2881
- }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
2882
- ])
3138
+ (_ctx.mainTab === 'config' && _ctx.configMode === 'opencode')
3139
+ ? (_openBlock(), _createBlock(_Teleport, {
3140
+ key: 0,
3141
+ to: "body"
3142
+ }, [
3143
+ _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
3144
+ _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.opencode.lockedTitle')), 1 /* TEXT */),
3145
+ _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.opencode.lockedDesc')), 1 /* TEXT */),
3146
+ _createElementVNode("button", {
3147
+ type: "button",
3148
+ class: "btn-tool",
3149
+ onClick: $event => (_ctx.setToolConfigPermission('opencode', true)),
3150
+ disabled: _ctx.toolConfigPermissionSaving.opencode
3151
+ }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
3152
+ ])
3153
+ ]))
3154
+ : _createCommentVNode("v-if", true)
2883
3155
  ]))
2884
3156
  : _createCommentVNode("v-if", true)
2885
3157
  ])
@@ -3144,16 +3416,23 @@ return function render(_ctx, _cache) {
3144
3416
  key: 1,
3145
3417
  class: "tool-config-write-overlay"
3146
3418
  }, [
3147
- _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
3148
- _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.kilocode.lockedTitle')), 1 /* TEXT */),
3149
- _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.kilocode.lockedDesc')), 1 /* TEXT */),
3150
- _createElementVNode("button", {
3151
- type: "button",
3152
- class: "btn-tool",
3153
- onClick: $event => (_ctx.setToolConfigPermission('kilocode', true)),
3154
- disabled: _ctx.toolConfigPermissionSaving.kilocode
3155
- }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
3156
- ])
3419
+ (_ctx.mainTab === 'config' && _ctx.configMode === 'kilocode')
3420
+ ? (_openBlock(), _createBlock(_Teleport, {
3421
+ key: 0,
3422
+ to: "body"
3423
+ }, [
3424
+ _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
3425
+ _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.kilocode.lockedTitle')), 1 /* TEXT */),
3426
+ _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.kilocode.lockedDesc')), 1 /* TEXT */),
3427
+ _createElementVNode("button", {
3428
+ type: "button",
3429
+ class: "btn-tool",
3430
+ onClick: $event => (_ctx.setToolConfigPermission('kilocode', true)),
3431
+ disabled: _ctx.toolConfigPermissionSaving.kilocode
3432
+ }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
3433
+ ])
3434
+ ]))
3435
+ : _createCommentVNode("v-if", true)
3157
3436
  ]))
3158
3437
  : _createCommentVNode("v-if", true)
3159
3438
  ])
@@ -3519,16 +3798,23 @@ return function render(_ctx, _cache) {
3519
3798
  key: 0,
3520
3799
  class: "tool-config-write-overlay"
3521
3800
  }, [
3522
- _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
3523
- _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.pi.lockedTitle')), 1 /* TEXT */),
3524
- _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.pi.lockedDesc')), 1 /* TEXT */),
3525
- _createElementVNode("button", {
3526
- type: "button",
3527
- class: "btn-tool",
3528
- onClick: $event => (_ctx.setToolConfigPermission('pi', true)),
3529
- disabled: _ctx.toolConfigPermissionSaving.pi
3530
- }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
3531
- ])
3801
+ (_ctx.mainTab === 'config' && _ctx.configMode === 'pi')
3802
+ ? (_openBlock(), _createBlock(_Teleport, {
3803
+ key: 0,
3804
+ to: "body"
3805
+ }, [
3806
+ _createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
3807
+ _createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.pi.lockedTitle')), 1 /* TEXT */),
3808
+ _createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.pi.lockedDesc')), 1 /* TEXT */),
3809
+ _createElementVNode("button", {
3810
+ type: "button",
3811
+ class: "btn-tool",
3812
+ onClick: $event => (_ctx.setToolConfigPermission('pi', true)),
3813
+ disabled: _ctx.toolConfigPermissionSaving.pi
3814
+ }, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
3815
+ ])
3816
+ ]))
3817
+ : _createCommentVNode("v-if", true)
3532
3818
  ]))
3533
3819
  : _createCommentVNode("v-if", true)
3534
3820
  ])
@@ -4121,28 +4407,24 @@ return function render(_ctx, _cache) {
4121
4407
  _createElementVNode("small", { class: "session-search-scope" }, _toDisplayString(_ctx.t('sessions.search.scopeHint')), 1 /* TEXT */)
4122
4408
  ]))
4123
4409
  : _createCommentVNode("v-if", true),
4124
- (_ctx.sessionsLoading && _ctx.sessionsList.length === 0)
4410
+ (!_ctx.sessionsLoading && _ctx.sessionsList.length === 0)
4125
4411
  ? (_openBlock(), _createElementBlock("div", {
4126
4412
  key: 1,
4127
- class: "state-message"
4128
- }, _toDisplayString(_ctx.t('sessions.loadingList')), 1 /* TEXT */))
4129
- : (!_ctx.sessionsLoading && _ctx.sessionsList.length === 0)
4413
+ class: "session-empty session-empty-refined"
4414
+ }, [
4415
+ _createElementVNode("p", null, _toDisplayString(_ctx.t(_ctx.hasActiveSessionFilters() ? 'sessions.empty.filtered' : 'sessions.empty.source')), 1 /* TEXT */),
4416
+ (_ctx.hasActiveSessionFilters())
4417
+ ? (_openBlock(), _createElementBlock("button", {
4418
+ key: 0,
4419
+ class: "btn-tool btn-tool-compact",
4420
+ type: "button",
4421
+ onClick: _ctx.clearSessionFilters
4422
+ }, _toDisplayString(_ctx.t('sessions.empty.clearFilters')), 9 /* TEXT, PROPS */, ["onClick"]))
4423
+ : _createCommentVNode("v-if", true)
4424
+ ]))
4425
+ : (_ctx.sessionsList.length > 0)
4130
4426
  ? (_openBlock(), _createElementBlock("div", {
4131
4427
  key: 2,
4132
- class: "session-empty session-empty-refined"
4133
- }, [
4134
- _createElementVNode("p", null, _toDisplayString(_ctx.t(_ctx.hasActiveSessionFilters() ? 'sessions.empty.filtered' : 'sessions.empty.source')), 1 /* TEXT */),
4135
- (_ctx.hasActiveSessionFilters())
4136
- ? (_openBlock(), _createElementBlock("button", {
4137
- key: 0,
4138
- class: "btn-tool btn-tool-compact",
4139
- type: "button",
4140
- onClick: _ctx.clearSessionFilters
4141
- }, _toDisplayString(_ctx.t('sessions.empty.clearFilters')), 9 /* TEXT, PROPS */, ["onClick"]))
4142
- : _createCommentVNode("v-if", true)
4143
- ]))
4144
- : (_openBlock(), _createElementBlock("div", {
4145
- key: 3,
4146
4428
  class: "session-layout"
4147
4429
  }, [
4148
4430
  (_ctx.sessionListRenderEnabled)
@@ -4195,7 +4477,16 @@ return function render(_ctx, _cache) {
4195
4477
  ], 8 /* PROPS */, ["onClick", "data-session-key"]))
4196
4478
  : _createCommentVNode("v-if", true),
4197
4479
  _createElementVNode("div", { class: "session-item-main" }, [
4198
- _createElementVNode("div", { class: "session-item-title" }, _toDisplayString(session.title || session.sessionId), 1 /* TEXT */),
4480
+ _createElementVNode("div", { class: "session-item-heading" }, [
4481
+ _createElementVNode("div", { class: "session-item-title" }, _toDisplayString(_ctx.parseSessionTitleInfo(session).title || session.sessionId), 1 /* TEXT */),
4482
+ (_ctx.parseSessionTitleInfo(session).location)
4483
+ ? (_openBlock(), _createElementBlock("div", {
4484
+ key: 0,
4485
+ class: "session-item-location",
4486
+ title: _ctx.parseSessionTitleInfo(session).location
4487
+ }, _toDisplayString(_ctx.parseSessionTitleInfo(session).location), 9 /* TEXT, PROPS */, ["title"]))
4488
+ : _createCommentVNode("v-if", true)
4489
+ ]),
4199
4490
  _createElementVNode("span", { class: "session-count-badge" }, _toDisplayString(session.messageCount == null ? '...' : session.messageCount), 1 /* TEXT */),
4200
4491
  (session.match && session.match.hit)
4201
4492
  ? (_openBlock(), _createElementBlock("span", {
@@ -4282,15 +4573,9 @@ return function render(_ctx, _cache) {
4282
4573
  class: "session-item-hot"
4283
4574
  }, _toDisplayString(_ctx.getSessionHotLabel(session)), 1 /* TEXT */))
4284
4575
  : _createCommentVNode("v-if", true),
4285
- (session.cwd)
4286
- ? (_openBlock(), _createElementBlock("span", {
4287
- key: 1,
4288
- class: "session-item-cwd session-item-sub"
4289
- }, _toDisplayString(session.cwd), 1 /* TEXT */))
4290
- : _createCommentVNode("v-if", true),
4291
4576
  (session.match && session.match.snippets && session.match.snippets.length)
4292
4577
  ? (_openBlock(), _createElementBlock("div", {
4293
- key: 2,
4578
+ key: 1,
4294
4579
  class: "session-match-snippets"
4295
4580
  }, [
4296
4581
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(session.match.snippets.slice(0, 2), (snip, si) => {
@@ -4322,6 +4607,197 @@ return function render(_ctx, _cache) {
4322
4607
  ref: _ctx.setSessionPreviewScrollRef,
4323
4608
  onScroll: _ctx.onSessionPreviewScroll
4324
4609
  }, [
4610
+ (_ctx.activeSession)
4611
+ ? (_openBlock(), _createElementBlock("details", {
4612
+ key: _ctx.handoffSessionKey,
4613
+ class: "session-workspace thread-handoff",
4614
+ open: _ctx.handoffExpanded,
4615
+ onToggle: _ctx.toggleThreadHandoff,
4616
+ "aria-label": "会话交接"
4617
+ }, [
4618
+ _createElementVNode("summary", { class: "thread-handoff-summary" }, [
4619
+ _createElementVNode("span", null, "会话交接"),
4620
+ _createElementVNode("span", { class: "thread-handoff-summary-hint" }, _toDisplayString(_ctx.handoffExpanded ? '收起' : '填写交接 · 查看历史'), 1 /* TEXT */)
4621
+ ]),
4622
+ (_ctx.handoffExpanded)
4623
+ ? (_openBlock(), _createElementBlock("div", {
4624
+ key: 0,
4625
+ class: "thread-handoff-body"
4626
+ }, [
4627
+ _createElementVNode("div", { class: "session-workspace-header session-workspace-card-wide" }, [
4628
+ _createElementVNode("p", { class: "session-workspace-subtitle" }, "交代目标,让下一位代理接着做。草稿在切换会话后保留,刷新后清空。"),
4629
+ _createElementVNode("button", {
4630
+ class: "btn-mini",
4631
+ type: "button",
4632
+ onClick: _ctx.loadThreadHandoffs,
4633
+ disabled: _ctx.handoffLoading || _ctx.handoffBusy
4634
+ }, _toDisplayString(_ctx.handoffLoading ? '刷新中…' : '刷新历史'), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
4635
+ ]),
4636
+ _createElementVNode("form", {
4637
+ onSubmit: _withModifiers(_ctx.createThreadHandoff, ["prevent"]),
4638
+ class: "thread-handoff-form"
4639
+ }, [
4640
+ _createElementVNode("label", { class: "thread-handoff-field" }, [
4641
+ _createElementVNode("span", { class: "session-workspace-card-title" }, [
4642
+ _createTextVNode("交给谁 "),
4643
+ _createElementVNode("small", null, "必填")
4644
+ ]),
4645
+ _withDirectives(_createElementVNode("input", {
4646
+ "onUpdate:modelValue": $event => ((_ctx.handoffDraft.target) = $event),
4647
+ class: "session-query-input",
4648
+ required: "",
4649
+ disabled: _ctx.handoffBusy,
4650
+ placeholder: "目标代理标识,例如 claude"
4651
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
4652
+ [_vModelText, _ctx.handoffDraft.target]
4653
+ ])
4654
+ ]),
4655
+ _createElementVNode("label", { class: "thread-handoff-field" }, [
4656
+ _createElementVNode("span", { class: "session-workspace-card-title" }, [
4657
+ _createTextVNode("接下来做什么 "),
4658
+ _createElementVNode("small", null, "必填")
4659
+ ]),
4660
+ _withDirectives(_createElementVNode("textarea", {
4661
+ "onUpdate:modelValue": $event => ((_ctx.handoffDraft.goal) = $event),
4662
+ class: "session-query-input",
4663
+ rows: "3",
4664
+ required: "",
4665
+ disabled: _ctx.handoffBusy,
4666
+ placeholder: "描述下一步任务、预期结果或验收标准"
4667
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
4668
+ [_vModelText, _ctx.handoffDraft.goal]
4669
+ ])
4670
+ ]),
4671
+ _createElementVNode("details", { class: "thread-handoff-optional" }, [
4672
+ _createElementVNode("summary", { class: "thread-handoff-optional-summary" }, [
4673
+ _createTextVNode("补充上下文 "),
4674
+ _createElementVNode("small", null, "已完成 / 阻塞 / 步骤 / 文件 · 可选")
4675
+ ]),
4676
+ _createElementVNode("div", { class: "session-workspace-grid" }, [
4677
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffFields, (field) => {
4678
+ return (_openBlock(), _createElementBlock("label", {
4679
+ key: field.key,
4680
+ class: "thread-handoff-field"
4681
+ }, [
4682
+ _createElementVNode("span", { class: "session-workspace-card-title" }, _toDisplayString(field.label) + "(可选)", 1 /* TEXT */),
4683
+ _withDirectives(_createElementVNode("textarea", {
4684
+ "onUpdate:modelValue": $event => ((_ctx.handoffDraft[field.key]) = $event),
4685
+ class: "session-query-input",
4686
+ rows: "3",
4687
+ disabled: _ctx.handoffBusy,
4688
+ placeholder: "每行填写一项"
4689
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
4690
+ [_vModelText, _ctx.handoffDraft[field.key]]
4691
+ ])
4692
+ ]))
4693
+ }), 128 /* KEYED_FRAGMENT */))
4694
+ ])
4695
+ ]),
4696
+ _createElementVNode("div", { class: "thread-handoff-actions" }, [
4697
+ _createElementVNode("span", { class: "session-workspace-subtitle" }, "生成后可复制到目标会话"),
4698
+ _createElementVNode("button", {
4699
+ class: "btn-mini thread-handoff-submit",
4700
+ type: "submit",
4701
+ disabled: _ctx.handoffBusy || _ctx.handoffLoading || !_ctx.handoffDraft.target.trim() || !_ctx.handoffDraft.goal.trim()
4702
+ }, _toDisplayString(_ctx.handoffBusy ? '处理中…' : '生成交接'), 9 /* TEXT, PROPS */, ["disabled"])
4703
+ ])
4704
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
4705
+ (_ctx.handoffError)
4706
+ ? (_openBlock(), _createElementBlock("p", {
4707
+ key: 0,
4708
+ class: "state-message error session-workspace-card-wide",
4709
+ role: "alert"
4710
+ }, _toDisplayString(_ctx.handoffError), 1 /* TEXT */))
4711
+ : _createCommentVNode("v-if", true),
4712
+ (_ctx.handoffNotice)
4713
+ ? (_openBlock(), _createElementBlock("p", {
4714
+ key: 1,
4715
+ class: "state-message session-workspace-card-wide",
4716
+ role: "status",
4717
+ "aria-live": "polite"
4718
+ }, _toDisplayString(_ctx.handoffNotice), 1 /* TEXT */))
4719
+ : _createCommentVNode("v-if", true),
4720
+ (_ctx.handoffCopyText)
4721
+ ? (_openBlock(), _createElementBlock("label", {
4722
+ key: 2,
4723
+ class: "session-workspace-card session-workspace-card-wide"
4724
+ }, [
4725
+ _createElementVNode("span", { class: "session-workspace-card-title" }, "卡片文本(未发送,可手动复制)"),
4726
+ _createElementVNode("textarea", {
4727
+ class: "session-query-input",
4728
+ rows: "6",
4729
+ readonly: "",
4730
+ value: _ctx.handoffCopyText,
4731
+ onFocus: $event => ($event.target.select())
4732
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["value", "onFocus"])
4733
+ ]))
4734
+ : _createCommentVNode("v-if", true),
4735
+ _createElementVNode("p", { class: "session-workspace-subtitle session-workspace-card-wide" }, "复制不会自动发送。读取确认由目标代理通过 CLI ack 提交。"),
4736
+ (_ctx.handoffLoading)
4737
+ ? (_openBlock(), _createElementBlock("p", {
4738
+ key: 3,
4739
+ class: "session-workspace-card-wide",
4740
+ role: "status"
4741
+ }, "正在加载交接历史…"))
4742
+ : (!_ctx.handoffError && !_ctx.handoffRecords.length)
4743
+ ? (_openBlock(), _createElementBlock("p", {
4744
+ key: 4,
4745
+ class: "session-workspace-empty session-workspace-card-wide"
4746
+ }, "暂无交接记录"))
4747
+ : _createCommentVNode("v-if", true),
4748
+ (_ctx.handoffRecords.length)
4749
+ ? (_openBlock(), _createElementBlock("ol", {
4750
+ key: 5,
4751
+ class: "session-workspace-list session-workspace-card-wide"
4752
+ }, [
4753
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffRecords, (record) => {
4754
+ return (_openBlock(), _createElementBlock("li", {
4755
+ key: record.id,
4756
+ class: "session-workspace-card"
4757
+ }, [
4758
+ _createElementVNode("div", { class: "session-workspace-card-title" }, _toDisplayString(record.target) + " · " + _toDisplayString(_ctx.handoffStatusLabel(record.status)), 1 /* TEXT */),
4759
+ _createElementVNode("div", null, [
4760
+ _createTextVNode("交接标识:"),
4761
+ _createElementVNode("code", null, _toDisplayString(record.id), 1 /* TEXT */)
4762
+ ]),
4763
+ _createElementVNode("div", null, "创建时间:" + _toDisplayString(record.createdAt) + " · 投递耗时:" + _toDisplayString(record.durationMs) + " 毫秒 · 写入耗时:" + _toDisplayString(record.writeDurationMs || 0) + " 毫秒", 1 /* TEXT */),
4764
+ _createElementVNode("div", null, "交接路径:" + _toDisplayString(record.route === 'mcp' ? 'MCP 工具' : '文件级') + " · 文件回退:" + _toDisplayString(record.fallback ? '是' : '否'), 1 /* TEXT */),
4765
+ (record.mcp)
4766
+ ? (_openBlock(), _createElementBlock("div", { key: 0 }, "服务:" + _toDisplayString(record.mcp.server) + " · 工具:" + _toDisplayString(record.mcp.tool), 1 /* TEXT */))
4767
+ : _createCommentVNode("v-if", true),
4768
+ _createElementVNode("div", null, "写入结果:" + _toDisplayString(record.writeResult === 'written' ? '已写入' : (record.writeResult === 'failed_or_unconfirmed' ? '失败或结果未确认(不重试)' : '未执行写入')), 1 /* TEXT */),
4769
+ (record.filePath)
4770
+ ? (_openBlock(), _createElementBlock("div", { key: 1 }, [
4771
+ _createTextVNode("文件位置:"),
4772
+ _createElementVNode("code", null, _toDisplayString(record.filePath), 1 /* TEXT */)
4773
+ ]))
4774
+ : _createCommentVNode("v-if", true),
4775
+ (record.reason)
4776
+ ? (_openBlock(), _createElementBlock("div", { key: 2 }, "原因:" + _toDisplayString(record.reason), 1 /* TEXT */))
4777
+ : _createCommentVNode("v-if", true),
4778
+ (record.readConfirmation)
4779
+ ? (_openBlock(), _createElementBlock("div", { key: 3 }, [
4780
+ _createElementVNode("div", null, "读取代理:" + _toDisplayString(record.readConfirmation.agent) + " · 确认时间:" + _toDisplayString(record.readConfirmation.at), 1 /* TEXT */),
4781
+ _createElementVNode("div", null, "读取证据:" + _toDisplayString(record.readConfirmation.evidence), 1 /* TEXT */)
4782
+ ]))
4783
+ : _createCommentVNode("v-if", true),
4784
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(record.discoveryWarnings || [], (warning, index) => {
4785
+ return (_openBlock(), _createElementBlock("div", { key: index }, "探测提示:" + _toDisplayString(warning.source) + " · " + _toDisplayString(warning.reason), 1 /* TEXT */))
4786
+ }), 128 /* KEYED_FRAGMENT */)),
4787
+ _createElementVNode("button", {
4788
+ class: "btn-mini",
4789
+ type: "button",
4790
+ onClick: $event => (_ctx.copyThreadHandoff(record)),
4791
+ disabled: _ctx.handoffBusy || _ctx.handoffLoading
4792
+ }, _toDisplayString(record.route === 'mcp' ? '回退文件并复制卡片' : '复制卡片'), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
4793
+ ]))
4794
+ }), 128 /* KEYED_FRAGMENT */))
4795
+ ]))
4796
+ : _createCommentVNode("v-if", true)
4797
+ ]))
4798
+ : _createCommentVNode("v-if", true)
4799
+ ], 40 /* PROPS, NEED_HYDRATION */, ["open", "onToggle"]))
4800
+ : _createCommentVNode("v-if", true),
4325
4801
  _createElementVNode("div", {
4326
4802
  class: "session-preview-header",
4327
4803
  ref: _ctx.setSessionPreviewHeaderRef
@@ -4344,48 +4820,10 @@ return function render(_ctx, _cache) {
4344
4820
  ]))
4345
4821
  : _createCommentVNode("v-if", true)
4346
4822
  ]),
4347
- _createElementVNode("div", { class: "session-export-control" }, [
4348
- _createElementVNode("label", {
4349
- class: "session-export-label",
4350
- for: "session-export-range"
4351
- }, _toDisplayString(_ctx.t('sessions.export.range')), 1 /* TEXT */),
4352
- _withDirectives(_createElementVNode("select", {
4353
- id: "session-export-range",
4354
- "onUpdate:modelValue": $event => ((_ctx.sessionExportRange) = $event),
4355
- disabled: _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)],
4356
- "aria-describedby": "session-export-scope"
4357
- }, [
4358
- _createElementVNode("option", { value: "default" }, _toDisplayString(_ctx.t('sessions.export.default')), 1 /* TEXT */),
4359
- _createElementVNode("option", { value: "all" }, _toDisplayString(_ctx.t('sessions.export.all')), 1 /* TEXT */)
4360
- ], 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
4361
- [_vModelSelect, _ctx.sessionExportRange]
4362
- ]),
4363
- _createElementVNode("button", {
4364
- class: "btn-session-export has-label",
4365
- onClick: $event => (_ctx.exportSession(_ctx.activeSession)),
4366
- disabled: !_ctx.activeSession || _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)],
4367
- title: (_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export'),
4368
- "aria-label": (_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export')
4369
- }, [
4370
- (_openBlock(), _createElementBlock("svg", {
4371
- viewBox: "0 0 16 16",
4372
- fill: "none",
4373
- stroke: "currentColor",
4374
- "stroke-width": "1.8",
4375
- "stroke-linecap": "round",
4376
- "stroke-linejoin": "round"
4377
- }, [
4378
- _createElementVNode("path", { d: "M8 2v8" }),
4379
- _createElementVNode("polyline", { points: "4 7 8 10.5 12 7" }),
4380
- _createElementVNode("path", { d: "M2.5 12v1.5a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V12" })
4381
- ])),
4382
- _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 */)
4383
- ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
4384
- ]),
4385
4823
  _createElementVNode("div", { class: "session-actions session-preview-actions" }, [
4386
4824
  _createElementVNode("div", { class: "session-secondary-actions" }, [
4387
4825
  _createElementVNode("button", {
4388
- class: "btn-session-refresh has-label",
4826
+ class: "btn-session-refresh has-label session-action-optional-label",
4389
4827
  onClick: _ctx.loadActiveSessionDetail,
4390
4828
  disabled: _ctx.sessionDetailLoading || !_ctx.activeSession,
4391
4829
  title: _ctx.sessionDetailLoading ? _ctx.t('sessions.preview.loading') : _ctx.t('sessions.preview.refresh'),
@@ -4404,7 +4842,7 @@ return function render(_ctx, _cache) {
4404
4842
  _createElementVNode("polyline", { points: "2.5 2 2.5 5 5.5 5" }),
4405
4843
  _createElementVNode("polyline", { points: "13.5 14 13.5 11 10.5 11" })
4406
4844
  ])),
4407
- _createElementVNode("span", { class: "session-action-label" }, _toDisplayString(_ctx.t('sessions.preview.refresh')), 1 /* TEXT */)
4845
+ _createElementVNode("span", { class: "session-action-label session-action-optional-text" }, _toDisplayString(_ctx.t('sessions.preview.refresh')), 1 /* TEXT */)
4408
4846
  ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]),
4409
4847
  _createElementVNode("div", { class: "session-link-group" }, [
4410
4848
  _createElementVNode("button", {
@@ -4449,7 +4887,7 @@ return function render(_ctx, _cache) {
4449
4887
  ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
4450
4888
  ]),
4451
4889
  _createElementVNode("button", {
4452
- class: "btn-session-open has-label",
4890
+ class: "btn-session-open has-label session-action-optional-label",
4453
4891
  onClick: $event => (_ctx.copySessionPath(_ctx.activeSession)),
4454
4892
  disabled: !_ctx.activeSession || !_ctx.getSessionFilePath(_ctx.activeSession),
4455
4893
  title: _ctx.t('sessions.preview.copyPath'),
@@ -4465,31 +4903,40 @@ return function render(_ctx, _cache) {
4465
4903
  }, [
4466
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" })
4467
4905
  ])),
4468
- _createElementVNode("span", { class: "session-action-label" }, _toDisplayString(_ctx.t('sessions.preview.copyPath')), 1 /* TEXT */)
4906
+ _createElementVNode("span", { class: "session-action-label session-action-optional-text" }, _toDisplayString(_ctx.t('sessions.preview.copyPath')), 1 /* TEXT */)
4469
4907
  ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
4470
4908
  ]),
4471
- _createElementVNode("div", { class: "session-danger-action" }, [
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"]),
4472
4931
  (_ctx.isDeleteAvailable(_ctx.activeSession))
4473
4932
  ? (_openBlock(), _createElementBlock("button", {
4474
4933
  key: 0,
4475
- class: "btn-session-delete has-label",
4934
+ class: "btn-session-delete has-label session-delete-text-button",
4476
4935
  onClick: $event => (_ctx.deleteSession(_ctx.activeSession)),
4477
4936
  disabled: !_ctx.activeSession || _ctx.sessionsLoading || _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)],
4478
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')),
4479
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'))
4480
4939
  }, [
4481
- (_openBlock(), _createElementBlock("svg", {
4482
- viewBox: "0 0 16 16",
4483
- fill: "none",
4484
- stroke: "currentColor",
4485
- "stroke-width": "1.8",
4486
- "stroke-linecap": "round",
4487
- "stroke-linejoin": "round"
4488
- }, [
4489
- _createElementVNode("polyline", { points: "3 4 4 4 13 4" }),
4490
- _createElementVNode("path", { d: "M5.5 4V2.5a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1V4" }),
4491
- _createElementVNode("path", { d: "M12 4v9.5a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 4 13.5V4" })
4492
- ])),
4493
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 */)
4494
4941
  ], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]))
4495
4942
  : _createCommentVNode("v-if", true)
@@ -4497,7 +4944,6 @@ return function render(_ctx, _cache) {
4497
4944
  ])
4498
4945
  ], 512 /* NEED_PATCH */),
4499
4946
  _createElementVNode("div", { class: "session-export-feedback" }, [
4500
- _createElementVNode("small", { id: "session-export-scope" }, _toDisplayString(_ctx.t('sessions.export.scopeHint')), 1 /* TEXT */),
4501
4947
  (_ctx.sessionExportNotice && _ctx.sessionExportNotice.key === _ctx.getSessionExportKey(_ctx.activeSession))
4502
4948
  ? (_openBlock(), _createElementBlock("p", {
4503
4949
  key: 0,
@@ -4508,22 +4954,22 @@ return function render(_ctx, _cache) {
4508
4954
  ]),
4509
4955
  (_ctx.sessionDetailLoading && !_ctx.sessionPreviewLoadingMore)
4510
4956
  ? (_openBlock(), _createElementBlock("div", {
4511
- key: 0,
4957
+ key: 1,
4512
4958
  class: "session-preview-empty"
4513
4959
  }, _toDisplayString(_ctx.t('sessions.preview.loadingBody')), 1 /* TEXT */))
4514
4960
  : (_ctx.activeSessionDetailError)
4515
4961
  ? (_openBlock(), _createElementBlock("div", {
4516
- key: 1,
4962
+ key: 2,
4517
4963
  class: "session-preview-empty"
4518
4964
  }, _toDisplayString(_ctx.activeSessionDetailError), 1 /* TEXT */))
4519
4965
  : (!_ctx.activeSessionMessages.length)
4520
4966
  ? (_openBlock(), _createElementBlock("div", {
4521
- key: 2,
4967
+ key: 3,
4522
4968
  class: "session-preview-empty"
4523
4969
  }, _toDisplayString(_ctx.t('sessions.preview.emptyMsgs')), 1 /* TEXT */))
4524
4970
  : (_ctx.sessionPreviewRenderEnabled && !_ctx.activeSessionVisibleMessages.length)
4525
4971
  ? (_openBlock(), _createElementBlock("div", {
4526
- key: 3,
4972
+ key: 4,
4527
4973
  class: "session-preview-empty"
4528
4974
  }, [
4529
4975
  _createElementVNode("span", null, _toDisplayString(_ctx.t('sessions.preview.rendering')), 1 /* TEXT */),
@@ -4535,11 +4981,11 @@ return function render(_ctx, _cache) {
4535
4981
  ]))
4536
4982
  : (!_ctx.sessionPreviewRenderEnabled)
4537
4983
  ? (_openBlock(), _createElementBlock("div", {
4538
- key: 4,
4984
+ key: 5,
4539
4985
  class: "session-preview-empty"
4540
4986
  }, _toDisplayString(_ctx.t('sessions.preview.preparing')), 1 /* TEXT */))
4541
4987
  : (_openBlock(), _createElementBlock("div", {
4542
- key: 5,
4988
+ key: 6,
4543
4989
  class: "session-preview-body"
4544
4990
  }, [
4545
4991
  (_ctx.activeSessionWorkspaceSummary.available)
@@ -4794,66 +5240,58 @@ return function render(_ctx, _cache) {
4794
5240
  class: _normalizeClass(['session-timeline', 'session-timeline-' + _ctx.sessionTimelineStyle]),
4795
5241
  "aria-label": _ctx.t('sessions.timeline.aria')
4796
5242
  }, [
4797
- _createCommentVNode(" 点状模式 "),
4798
- (_ctx.sessionTimelineStyle === 'dots')
4799
- ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
4800
- _createElementVNode("div", { class: "session-timeline-track" }),
4801
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionTimelineNodes, (node, __, ___, _cached) => {
4802
- const _memo = ([_ctx.sessionTimelineActiveKey === node.key, node.safePercent, node.title])
4803
- if (_cached && _cached.el && _cached.key === 'timeline-' + node.key && _isMemoSame(_cached, _memo)) return _cached
4804
- const _item = (_openBlock(), _createElementBlock("button", {
4805
- key: 'timeline-' + node.key,
4806
- type: "button",
4807
- class: _normalizeClass(['session-timeline-node', { active: _ctx.sessionTimelineActiveKey === node.key }]),
4808
- "aria-current": _ctx.sessionTimelineActiveKey === node.key ? 'true' : null,
4809
- style: _normalizeStyle({ top: `${node.safePercent}%` }),
4810
- title: node.title,
4811
- onClick: $event => (_ctx.jumpToSessionTimelineNode(node.key))
4812
- }, [
4813
- _createElementVNode("span", { class: "sr-only" }, _toDisplayString(node.title), 1 /* TEXT */)
4814
- ], 14 /* CLASS, STYLE, PROPS */, ["aria-current", "title", "onClick"]))
4815
- _item.memo = _memo
4816
- return _item
4817
- }, _cache, 4), 128 /* KEYED_FRAGMENT */)),
4818
- (_ctx.sessionTimelineActiveTitle)
4819
- ? (_openBlock(), _createElementBlock("div", {
4820
- key: 0,
4821
- class: "session-timeline-current"
4822
- }, _toDisplayString(_ctx.sessionTimelineActiveTitle), 1 /* TEXT */))
4823
- : _createCommentVNode("v-if", true)
4824
- ], 64 /* STABLE_FRAGMENT */))
4825
- : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
4826
- _createCommentVNode(" 条状模式 "),
4827
- _createElementVNode("div", { class: "session-timeline-bar-track" }, [
4828
- _createElementVNode("div", {
4829
- class: "session-timeline-bar-progress",
4830
- style: _normalizeStyle({ height: _ctx.sessionTimelineProgressPercent + '%' })
4831
- }, null, 4 /* STYLE */)
5243
+ _createElementVNode("header", { class: "session-timeline-heading" }, [
5244
+ _createElementVNode("span", null, "阅读目录"),
5245
+ _createElementVNode("span", { class: "session-timeline-count" }, _toDisplayString(_ctx.sessionTimelineNodes.length) + " 个定位点", 1 /* TEXT */)
5246
+ ]),
5247
+ _createElementVNode("div", {
5248
+ class: "session-timeline-reading-progress",
5249
+ "aria-hidden": "true"
5250
+ }, [
5251
+ _createElementVNode("span", {
5252
+ style: _normalizeStyle({ width: _ctx.sessionTimelineProgressPercent + '%' })
5253
+ }, null, 4 /* STYLE */)
5254
+ ]),
5255
+ _createElementVNode("nav", {
5256
+ class: "session-timeline-index",
5257
+ "aria-label": _ctx.t('sessions.timeline.aria')
5258
+ }, [
5259
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionTimelineNodes, (node, __, ___, _cached) => {
5260
+ const _memo = ([_ctx.sessionTimelineActiveKey === node.key, node.safePercent, node.title])
5261
+ if (_cached && _cached.el && _cached.key === 'timeline-' + node.key && _isMemoSame(_cached, _memo)) return _cached
5262
+ const _item = (_openBlock(), _createElementBlock("button", {
5263
+ key: 'timeline-' + node.key,
5264
+ type: "button",
5265
+ class: _normalizeClass(['session-timeline-node', { active: _ctx.sessionTimelineActiveKey === node.key }]),
5266
+ "aria-current": _ctx.sessionTimelineActiveKey === node.key ? 'true' : null,
5267
+ title: node.title,
5268
+ "aria-label": node.title,
5269
+ onClick: $event => (_ctx.jumpToSessionTimelineNode(node.key))
5270
+ }, [
5271
+ _createElementVNode("span", { class: "session-timeline-number" }, _toDisplayString(node.title.split(' · ')[0]), 1 /* TEXT */),
5272
+ _createElementVNode("span", { class: "session-timeline-label" }, [
5273
+ _createElementVNode("span", { class: "session-timeline-role" }, _toDisplayString(node.role === 'user' ? '提问' : node.role === 'assistant' ? '回复' : node.roleLabel), 1 /* TEXT */),
5274
+ _createElementVNode("time", { class: "session-timeline-time" }, _toDisplayString(node.displayTime ? node.displayTime.slice(-5) : '无时间'), 1 /* TEXT */)
4832
5275
  ]),
4833
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sessionTimelineNodes, (node, __, ___, _cached) => {
4834
- const _memo = ([_ctx.sessionTimelineActiveKey === node.key, node.safePercent, node.title])
4835
- if (_cached && _cached.el && _cached.key === 'timeline-bar-' + node.key && _isMemoSame(_cached, _memo)) return _cached
4836
- const _item = (_openBlock(), _createElementBlock("button", {
4837
- key: 'timeline-bar-' + node.key,
4838
- type: "button",
4839
- class: _normalizeClass(['session-timeline-bar-node', { active: _ctx.sessionTimelineActiveKey === node.key }]),
4840
- "aria-current": _ctx.sessionTimelineActiveKey === node.key ? 'true' : null,
4841
- style: _normalizeStyle({ top: `${node.safePercent}%` }),
4842
- title: node.title,
4843
- onClick: $event => (_ctx.jumpToSessionTimelineNode(node.key))
4844
- }, [
4845
- _createElementVNode("span", { class: "sr-only" }, _toDisplayString(node.title), 1 /* TEXT */)
4846
- ], 14 /* CLASS, STYLE, PROPS */, ["aria-current", "title", "onClick"]))
4847
- _item.memo = _memo
4848
- return _item
4849
- }, _cache, 6), 128 /* KEYED_FRAGMENT */)),
4850
- (_ctx.sessionTimelineActiveTitle)
4851
- ? (_openBlock(), _createElementBlock("div", {
4852
- key: 0,
4853
- class: "session-timeline-current"
4854
- }, _toDisplayString(_ctx.sessionTimelineActiveTitle), 1 /* TEXT */))
4855
- : _createCommentVNode("v-if", true)
4856
- ], 64 /* STABLE_FRAGMENT */))
5276
+ _createElementVNode("span", {
5277
+ class: "session-timeline-indicator",
5278
+ "aria-hidden": "true"
5279
+ })
5280
+ ], 10 /* CLASS, PROPS */, ["aria-current", "title", "aria-label", "onClick"]))
5281
+ _item.memo = _memo
5282
+ return _item
5283
+ }, _cache, 4), 128 /* KEYED_FRAGMENT */))
5284
+ ], 8 /* PROPS */, ["aria-label"]),
5285
+ _createElementVNode("footer", {
5286
+ class: "session-timeline-current",
5287
+ title: _ctx.sessionTimelineActiveTitle
5288
+ }, [
5289
+ _createElementVNode("span", {
5290
+ class: "session-timeline-status-dot",
5291
+ "aria-hidden": "true"
5292
+ }),
5293
+ _createTextVNode(" " + _toDisplayString(_ctx.sessionTimelineActiveTitle ? '正在阅读 ' + _ctx.sessionTimelineActiveTitle.split(' · ')[0] : '选择节点定位原文'), 1 /* TEXT */)
5294
+ ], 8 /* PROPS */, ["title"])
4857
5295
  ], 10 /* CLASS, PROPS */, ["aria-label"]))
4858
5296
  : _createCommentVNode("v-if", true)
4859
5297
  ], 64 /* STABLE_FRAGMENT */))
@@ -4865,6 +5303,7 @@ return function render(_ctx, _cache) {
4865
5303
  ]))
4866
5304
  ], 2 /* CLASS */)
4867
5305
  ]))
5306
+ : _createCommentVNode("v-if", true)
4868
5307
  ]))
4869
5308
  ], 512 /* NEED_PATCH */), [
4870
5309
  [_vShow, _ctx.mainTab === 'sessions']
@@ -5965,199 +6404,204 @@ return function render(_ctx, _cache) {
5965
6404
  ])
5966
6405
  ])
5967
6406
  ], 8 /* PROPS */, ["aria-label"]),
5968
- _createCommentVNode(" Disabled state "),
5969
- (_ctx.getSessionTrashViewState() === 'disabled')
5970
- ? (_openBlock(), _createElementBlock("div", {
5971
- key: 0,
5972
- class: "trash-empty-state trash-disabled-state"
5973
- }, [
5974
- (_openBlock(), _createElementBlock("svg", {
5975
- class: "trash-empty-svg",
5976
- viewBox: "0 0 64 64",
5977
- fill: "none",
5978
- stroke: "currentColor",
5979
- "stroke-width": "1.2"
5980
- }, [
5981
- _createElementVNode("path", { d: "M20 22l4 32h16l4-32" }),
5982
- _createElementVNode("path", { d: "M14 22h36" }),
5983
- _createElementVNode("path", { d: "M24 22v-4a4 4 0 014-4h8a4 4 0 014 4v4" }),
5984
- _createElementVNode("path", {
5985
- d: "M10 10l44 44",
5986
- "stroke-width": "2",
5987
- "stroke-linecap": "round"
5988
- })
5989
- ])),
5990
- _createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.disabled')), 1 /* TEXT */),
5991
- _createElementVNode("div", { class: "trash-empty-hint" }, _toDisplayString(_ctx.t('settings.trash.disabledHint')), 1 /* TEXT */)
5992
- ]))
5993
- : (_ctx.getSessionTrashViewState() === 'empty')
5994
- ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
5995
- _createCommentVNode(" Empty state "),
5996
- _createElementVNode("div", { class: "trash-empty-state" }, [
5997
- (_openBlock(), _createElementBlock("svg", {
5998
- class: "trash-empty-svg",
5999
- viewBox: "0 0 64 64",
6000
- fill: "none",
6001
- stroke: "currentColor",
6002
- "stroke-width": "1.2"
6003
- }, [
6004
- _createElementVNode("path", { d: "M20 22l4 32h16l4-32" }),
6005
- _createElementVNode("path", { d: "M14 22h36" }),
6006
- _createElementVNode("path", { d: "M24 22v-4a4 4 0 014-4h8a4 4 0 014 4v4" }),
6007
- _createElementVNode("path", {
6008
- d: "M28 30v16M36 30v16",
6009
- "stroke-width": "1.6",
6010
- "stroke-linecap": "round"
6011
- })
6012
- ])),
6013
- _createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.empty')), 1 /* TEXT */),
6014
- _createElementVNode("div", { class: "trash-empty-hint" }, _toDisplayString(_ctx.t('settings.trash.emptyHint', { days: _ctx.sessionTrashRetentionDays })), 1 /* TEXT */)
6015
- ])
6016
- ], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
6017
- : (_ctx.getSessionTrashViewState() === 'loading')
6018
- ? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
6019
- _createCommentVNode(" Loading state "),
6407
+ _createElementVNode("section", {
6408
+ class: "trash-content-section",
6409
+ "aria-label": _ctx.t('settings.trash.title')
6410
+ }, [
6411
+ _createCommentVNode(" Disabled state "),
6412
+ (_ctx.getSessionTrashViewState() === 'disabled')
6413
+ ? (_openBlock(), _createElementBlock("div", {
6414
+ key: 0,
6415
+ class: "trash-empty-state trash-disabled-state"
6416
+ }, [
6417
+ (_openBlock(), _createElementBlock("svg", {
6418
+ class: "trash-empty-svg",
6419
+ viewBox: "0 0 64 64",
6420
+ fill: "none",
6421
+ stroke: "currentColor",
6422
+ "stroke-width": "1.2"
6423
+ }, [
6424
+ _createElementVNode("path", { d: "M20 22l4 32h16l4-32" }),
6425
+ _createElementVNode("path", { d: "M14 22h36" }),
6426
+ _createElementVNode("path", { d: "M24 22v-4a4 4 0 014-4h8a4 4 0 014 4v4" }),
6427
+ _createElementVNode("path", {
6428
+ d: "M10 10l44 44",
6429
+ "stroke-width": "2",
6430
+ "stroke-linecap": "round"
6431
+ })
6432
+ ])),
6433
+ _createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.disabled')), 1 /* TEXT */),
6434
+ _createElementVNode("div", { class: "trash-empty-hint" }, _toDisplayString(_ctx.t('settings.trash.disabledHint')), 1 /* TEXT */)
6435
+ ]))
6436
+ : (_ctx.getSessionTrashViewState() === 'empty')
6437
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
6438
+ _createCommentVNode(" Empty state "),
6020
6439
  _createElementVNode("div", { class: "trash-empty-state" }, [
6021
- _createElementVNode("div", { class: "trash-spinner" }),
6022
- _createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.loading')), 1 /* TEXT */)
6440
+ (_openBlock(), _createElementBlock("svg", {
6441
+ class: "trash-empty-svg",
6442
+ viewBox: "0 0 64 64",
6443
+ fill: "none",
6444
+ stroke: "currentColor",
6445
+ "stroke-width": "1.2"
6446
+ }, [
6447
+ _createElementVNode("path", { d: "M20 22l4 32h16l4-32" }),
6448
+ _createElementVNode("path", { d: "M14 22h36" }),
6449
+ _createElementVNode("path", { d: "M24 22v-4a4 4 0 014-4h8a4 4 0 014 4v4" }),
6450
+ _createElementVNode("path", {
6451
+ d: "M28 30v16M36 30v16",
6452
+ "stroke-width": "1.6",
6453
+ "stroke-linecap": "round"
6454
+ })
6455
+ ])),
6456
+ _createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.empty')), 1 /* TEXT */),
6457
+ _createElementVNode("div", { class: "trash-empty-hint" }, _toDisplayString(_ctx.t('settings.trash.emptyHint', { days: _ctx.sessionTrashRetentionDays })), 1 /* TEXT */)
6023
6458
  ])
6024
6459
  ], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
6025
- : (_ctx.getSessionTrashViewState() === 'retry')
6026
- ? (_openBlock(), _createElementBlock(_Fragment, { key: 3 }, [
6027
- _createCommentVNode(" Error state "),
6460
+ : (_ctx.getSessionTrashViewState() === 'loading')
6461
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
6462
+ _createCommentVNode(" Loading state "),
6028
6463
  _createElementVNode("div", { class: "trash-empty-state" }, [
6029
- (_openBlock(), _createElementBlock("svg", {
6030
- class: "trash-empty-svg",
6031
- viewBox: "0 0 64 64",
6032
- fill: "none",
6033
- stroke: "currentColor",
6034
- "stroke-width": "1.2"
6035
- }, [
6036
- _createElementVNode("circle", {
6037
- cx: "32",
6038
- cy: "32",
6039
- r: "22"
6040
- }),
6041
- _createElementVNode("path", {
6042
- d: "M32 20v16M32 44v2",
6043
- "stroke-width": "2",
6044
- "stroke-linecap": "round"
6045
- })
6046
- ])),
6047
- _createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.retry')), 1 /* TEXT */),
6048
- _createElementVNode("button", {
6049
- class: "btn-tool",
6050
- onClick: $event => (_ctx.loadSessionTrash({ forceRefresh: true }))
6051
- }, _toDisplayString(_ctx.t('common.retry')), 9 /* TEXT, PROPS */, ["onClick"])
6464
+ _createElementVNode("div", { class: "trash-spinner" }),
6465
+ _createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.loading')), 1 /* TEXT */)
6052
6466
  ])
6053
6467
  ], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
6054
- : (_openBlock(), _createElementBlock(_Fragment, { key: 4 }, [
6055
- _createCommentVNode(" List state "),
6056
- _createElementVNode("div", { class: "trash-toolbar" }, [
6057
- _createElementVNode("div", { class: "trash-toolbar-left" }, [
6058
- _createElementVNode("span", { class: "trash-toolbar-count" }, _toDisplayString(_ctx.t('settings.trash.count', { count: _ctx.sessionTrashCount })), 1 /* TEXT */),
6059
- _createElementVNode("span", { class: "trash-toolbar-retention" }, _toDisplayString(_ctx.t('settings.trash.retentionShort', { days: _ctx.sessionTrashRetentionDays })), 1 /* TEXT */)
6060
- ]),
6061
- _createElementVNode("div", { class: "trash-toolbar-right" }, [
6062
- _createElementVNode("button", {
6063
- class: "btn-mini",
6064
- onClick: $event => (_ctx.loadSessionTrash({ forceRefresh: true })),
6065
- disabled: _ctx.sessionTrashLoading,
6066
- "aria-label": _ctx.t('sessions.refresh'),
6067
- title: _ctx.t('sessions.refresh')
6468
+ : (_ctx.getSessionTrashViewState() === 'retry')
6469
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 3 }, [
6470
+ _createCommentVNode(" Error state "),
6471
+ _createElementVNode("div", { class: "trash-empty-state" }, [
6472
+ (_openBlock(), _createElementBlock("svg", {
6473
+ class: "trash-empty-svg",
6474
+ viewBox: "0 0 64 64",
6475
+ fill: "none",
6476
+ stroke: "currentColor",
6477
+ "stroke-width": "1.2"
6068
6478
  }, [
6069
- (_openBlock(), _createElementBlock("svg", {
6070
- viewBox: "0 0 24 24",
6071
- fill: "none",
6072
- stroke: "currentColor",
6479
+ _createElementVNode("circle", {
6480
+ cx: "32",
6481
+ cy: "32",
6482
+ r: "22"
6483
+ }),
6484
+ _createElementVNode("path", {
6485
+ d: "M32 20v16M32 44v2",
6073
6486
  "stroke-width": "2",
6074
- class: "btn-icon-sm"
6075
- }, [
6076
- _createElementVNode("path", { d: "M21 2v6h-6M3 12a9 9 0 0115-6.7L21 8M3 22v-6h6M21 12a9 9 0 01-15 6.7L3 16" })
6077
- ]))
6078
- ], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"]),
6487
+ "stroke-linecap": "round"
6488
+ })
6489
+ ])),
6490
+ _createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.retry')), 1 /* TEXT */),
6079
6491
  _createElementVNode("button", {
6080
- class: "btn-mini delete",
6081
- onClick: _ctx.clearSessionTrash,
6082
- disabled: _ctx.sessionTrashClearing || _ctx.sessionTrashLoading || !(Number(_ctx.sessionTrashCount) > 0)
6083
- }, _toDisplayString(_ctx.sessionTrashClearing ? _ctx.t('settings.trash.clearing') : _ctx.t('settings.trash.clearShort')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
6492
+ class: "btn-tool",
6493
+ onClick: $event => (_ctx.loadSessionTrash({ forceRefresh: true }))
6494
+ }, _toDisplayString(_ctx.t('common.retry')), 9 /* TEXT, PROPS */, ["onClick"])
6084
6495
  ])
6085
- ]),
6086
- _createElementVNode("div", { class: "trash-list" }, [
6087
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.visibleSessionTrashItems, (item) => {
6088
- return (_openBlock(), _createElementBlock("div", {
6089
- key: item.trashId,
6090
- class: "trash-item"
6091
- }, [
6092
- _createElementVNode("div", { class: "trash-item-body" }, [
6093
- _createElementVNode("div", { class: "trash-item-main" }, [
6094
- _createElementVNode("div", { class: "trash-item-title" }, _toDisplayString(item.title || item.sessionId), 1 /* TEXT */),
6095
- _createElementVNode("div", { class: "trash-item-meta" }, [
6096
- _createElementVNode("span", {
6097
- class: "session-source",
6098
- "data-source": item.source
6099
- }, _toDisplayString(item.sourceLabel), 9 /* TEXT, PROPS */, ["data-source"]),
6100
- _createElementVNode("span", { class: "trash-item-time" }, _toDisplayString(item.deletedAt || item.updatedAt || _ctx.t('sessions.unknownTime')), 1 /* TEXT */),
6101
- (item.cwd)
6102
- ? (_openBlock(), _createElementBlock("span", {
6103
- key: 0,
6104
- class: "trash-item-cwd"
6105
- }, _toDisplayString(item.cwd), 1 /* TEXT */))
6106
- : _createCommentVNode("v-if", true)
6107
- ])
6108
- ]),
6109
- _createElementVNode("div", { class: "trash-item-actions" }, [
6110
- _createElementVNode("button", {
6111
- class: "trash-action-btn restore",
6112
- onClick: $event => (_ctx.restoreSessionTrash(item)),
6113
- disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing || _ctx.isSessionTrashActionBusy(item),
6114
- "aria-label": _ctx.sessionTrashRestoring[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.restoring') : _ctx.t('settings.trash.restore'),
6115
- title: _ctx.sessionTrashRestoring[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.restoring') : _ctx.t('settings.trash.restore')
6116
- }, [
6117
- (_openBlock(), _createElementBlock("svg", {
6118
- viewBox: "0 0 24 24",
6119
- fill: "none",
6120
- stroke: "currentColor",
6121
- "stroke-width": "2"
6496
+ ], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
6497
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 4 }, [
6498
+ _createCommentVNode(" List state "),
6499
+ _createElementVNode("div", { class: "trash-toolbar" }, [
6500
+ _createElementVNode("div", { class: "trash-toolbar-left" }, [
6501
+ _createElementVNode("span", { class: "trash-toolbar-count" }, _toDisplayString(_ctx.t('settings.trash.count', { count: _ctx.sessionTrashCount })), 1 /* TEXT */),
6502
+ _createElementVNode("span", { class: "trash-toolbar-retention" }, _toDisplayString(_ctx.t('settings.trash.retentionShort', { days: _ctx.sessionTrashRetentionDays })), 1 /* TEXT */)
6503
+ ]),
6504
+ _createElementVNode("div", { class: "trash-toolbar-right" }, [
6505
+ _createElementVNode("button", {
6506
+ class: "btn-mini",
6507
+ onClick: $event => (_ctx.loadSessionTrash({ forceRefresh: true })),
6508
+ disabled: _ctx.sessionTrashLoading,
6509
+ "aria-label": _ctx.t('sessions.refresh'),
6510
+ title: _ctx.t('sessions.refresh')
6511
+ }, [
6512
+ (_openBlock(), _createElementBlock("svg", {
6513
+ viewBox: "0 0 24 24",
6514
+ fill: "none",
6515
+ stroke: "currentColor",
6516
+ "stroke-width": "2",
6517
+ class: "btn-icon-sm"
6518
+ }, [
6519
+ _createElementVNode("path", { d: "M21 2v6h-6M3 12a9 9 0 0115-6.7L21 8M3 22v-6h6M21 12a9 9 0 01-15 6.7L3 16" })
6520
+ ]))
6521
+ ], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"]),
6522
+ _createElementVNode("button", {
6523
+ class: "btn-mini delete",
6524
+ onClick: _ctx.clearSessionTrash,
6525
+ disabled: _ctx.sessionTrashClearing || _ctx.sessionTrashLoading || !(Number(_ctx.sessionTrashCount) > 0)
6526
+ }, _toDisplayString(_ctx.sessionTrashClearing ? _ctx.t('settings.trash.clearing') : _ctx.t('settings.trash.clearShort')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
6527
+ ])
6528
+ ]),
6529
+ _createElementVNode("div", { class: "trash-list" }, [
6530
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.visibleSessionTrashItems, (item) => {
6531
+ return (_openBlock(), _createElementBlock("div", {
6532
+ key: item.trashId,
6533
+ class: "trash-item"
6534
+ }, [
6535
+ _createElementVNode("div", { class: "trash-item-body" }, [
6536
+ _createElementVNode("div", { class: "trash-item-main" }, [
6537
+ _createElementVNode("div", { class: "trash-item-title" }, _toDisplayString(item.title || item.sessionId), 1 /* TEXT */),
6538
+ _createElementVNode("div", { class: "trash-item-meta" }, [
6539
+ _createElementVNode("span", {
6540
+ class: "session-source",
6541
+ "data-source": item.source
6542
+ }, _toDisplayString(item.sourceLabel), 9 /* TEXT, PROPS */, ["data-source"]),
6543
+ _createElementVNode("span", { class: "trash-item-time" }, _toDisplayString(item.deletedAt || item.updatedAt || _ctx.t('sessions.unknownTime')), 1 /* TEXT */),
6544
+ (item.cwd)
6545
+ ? (_openBlock(), _createElementBlock("span", {
6546
+ key: 0,
6547
+ class: "trash-item-cwd"
6548
+ }, _toDisplayString(item.cwd), 1 /* TEXT */))
6549
+ : _createCommentVNode("v-if", true)
6550
+ ])
6551
+ ]),
6552
+ _createElementVNode("div", { class: "trash-item-actions" }, [
6553
+ _createElementVNode("button", {
6554
+ class: "trash-action-btn restore",
6555
+ onClick: $event => (_ctx.restoreSessionTrash(item)),
6556
+ disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing || _ctx.isSessionTrashActionBusy(item),
6557
+ "aria-label": _ctx.sessionTrashRestoring[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.restoring') : _ctx.t('settings.trash.restore'),
6558
+ title: _ctx.sessionTrashRestoring[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.restoring') : _ctx.t('settings.trash.restore')
6122
6559
  }, [
6123
- _createElementVNode("path", { d: "M3 12a9 9 0 119 9" }),
6124
- _createElementVNode("path", { d: "M3 4v6h6" })
6125
- ]))
6126
- ], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"]),
6127
- _createElementVNode("button", {
6128
- class: "trash-action-btn delete",
6129
- onClick: $event => (_ctx.purgeSessionTrash(item)),
6130
- disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing || _ctx.isSessionTrashActionBusy(item),
6131
- "aria-label": _ctx.sessionTrashPurging[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.purging') : _ctx.t('settings.trash.purge'),
6132
- title: _ctx.sessionTrashPurging[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.purging') : _ctx.t('settings.trash.purge')
6133
- }, [
6134
- (_openBlock(), _createElementBlock("svg", {
6135
- viewBox: "0 0 24 24",
6136
- fill: "none",
6137
- stroke: "currentColor",
6138
- "stroke-width": "2"
6560
+ (_openBlock(), _createElementBlock("svg", {
6561
+ viewBox: "0 0 24 24",
6562
+ fill: "none",
6563
+ stroke: "currentColor",
6564
+ "stroke-width": "2"
6565
+ }, [
6566
+ _createElementVNode("path", { d: "M3 12a9 9 0 119 9" }),
6567
+ _createElementVNode("path", { d: "M3 4v6h6" })
6568
+ ]))
6569
+ ], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"]),
6570
+ _createElementVNode("button", {
6571
+ class: "trash-action-btn delete",
6572
+ onClick: $event => (_ctx.purgeSessionTrash(item)),
6573
+ disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing || _ctx.isSessionTrashActionBusy(item),
6574
+ "aria-label": _ctx.sessionTrashPurging[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.purging') : _ctx.t('settings.trash.purge'),
6575
+ title: _ctx.sessionTrashPurging[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.purging') : _ctx.t('settings.trash.purge')
6139
6576
  }, [
6140
- _createElementVNode("path", { d: "M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6M10 11v6M14 11v6" })
6141
- ]))
6142
- ], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"])
6577
+ (_openBlock(), _createElementBlock("svg", {
6578
+ viewBox: "0 0 24 24",
6579
+ fill: "none",
6580
+ stroke: "currentColor",
6581
+ "stroke-width": "2"
6582
+ }, [
6583
+ _createElementVNode("path", { d: "M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6M10 11v6M14 11v6" })
6584
+ ]))
6585
+ ], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"])
6586
+ ])
6143
6587
  ])
6144
- ])
6145
- ]))
6146
- }), 128 /* KEYED_FRAGMENT */)),
6147
- (_ctx.sessionTrashHasMoreItems)
6148
- ? (_openBlock(), _createElementBlock("div", {
6149
- key: 0,
6150
- class: "trash-list-footer"
6151
- }, [
6152
- _createElementVNode("button", {
6153
- class: "btn-tool btn-tool-compact",
6154
- onClick: _ctx.loadMoreSessionTrashItems,
6155
- disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing
6156
- }, _toDisplayString(_ctx.t('settings.trash.loadMoreItems', { count: _ctx.sessionTrashHiddenCount })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
6157
6588
  ]))
6158
- : _createCommentVNode("v-if", true)
6159
- ])
6160
- ], 64 /* STABLE_FRAGMENT */))
6589
+ }), 128 /* KEYED_FRAGMENT */)),
6590
+ (_ctx.sessionTrashHasMoreItems)
6591
+ ? (_openBlock(), _createElementBlock("div", {
6592
+ key: 0,
6593
+ class: "trash-list-footer"
6594
+ }, [
6595
+ _createElementVNode("button", {
6596
+ class: "btn-tool btn-tool-compact",
6597
+ onClick: _ctx.loadMoreSessionTrashItems,
6598
+ disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing
6599
+ }, _toDisplayString(_ctx.t('settings.trash.loadMoreItems', { count: _ctx.sessionTrashHiddenCount })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
6600
+ ]))
6601
+ : _createCommentVNode("v-if", true)
6602
+ ])
6603
+ ], 64 /* STABLE_FRAGMENT */))
6604
+ ], 8 /* PROPS */, ["aria-label"])
6161
6605
  ]))
6162
6606
  : _createCommentVNode("v-if", true)
6163
6607
  ], 512 /* NEED_PATCH */), [
@@ -6243,60 +6687,99 @@ return function render(_ctx, _cache) {
6243
6687
  _createElementVNode("span", { class: "skills-flow-title" }, _toDisplayString(_ctx.t('market.installed.title')), 1 /* TEXT */),
6244
6688
  _createElementVNode("span", { class: "skills-flow-count" }, _toDisplayString(_ctx.skillsList.length), 1 /* TEXT */)
6245
6689
  ]),
6246
- _createElementVNode("button", {
6247
- type: "button",
6248
- class: "btn-mini",
6249
- onClick: $event => (_ctx.refreshSkillsList({ silent: false })),
6250
- disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy
6251
- }, [
6252
- (!_ctx.skillsLoading)
6253
- ? (_openBlock(), _createElementBlock("svg", {
6254
- key: 0,
6255
- viewBox: "0 0 20 20",
6256
- fill: "none",
6257
- stroke: "currentColor",
6258
- "stroke-width": "1.8",
6259
- width: "14",
6260
- height: "14"
6261
- }, [
6262
- _createElementVNode("path", { d: "M17 1l4 4-4 4" }),
6263
- _createElementVNode("path", { d: "M3 11V9a4 4 0 014-4h14" }),
6264
- _createElementVNode("path", { d: "M3 19l-4-4 4-4" }),
6265
- _createElementVNode("path", { d: "M17 9v2a4 4 0 01-4 4H3" })
6266
- ]))
6267
- : (_openBlock(), _createElementBlock("svg", {
6268
- key: 1,
6269
- viewBox: "0 0 20 20",
6270
- fill: "none",
6271
- stroke: "currentColor",
6272
- "stroke-width": "1.8",
6273
- width: "14",
6274
- height: "14",
6275
- class: "spin"
6276
- }, [
6277
- _createElementVNode("path", { d: "M10 2v4m0 8v4M2 10h4m8 0h4m-3.5-6.5l2.5 2.5M4 4l2.5 2.5M16 16l-2.5-2.5M4 16l2.5-2.5" })
6278
- ]))
6279
- ], 8 /* PROPS */, ["onClick", "disabled"])
6690
+ _createElementVNode("div", { class: "skills-flow-actions" }, [
6691
+ _createElementVNode("button", {
6692
+ type: "button",
6693
+ class: "skills-action-btn",
6694
+ onClick: _ctx.backupCurrentSkills,
6695
+ disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy || _ctx.skillsList.length === 0
6696
+ }, _toDisplayString(_ctx.skillsBackingUp ? _ctx.t('market.backup.running') : _ctx.t('market.backup.action')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
6697
+ _createElementVNode("button", {
6698
+ type: "button",
6699
+ class: "skills-action-btn",
6700
+ onClick: _ctx.exportMarketSelectedSkills,
6701
+ disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy || _ctx.skillsMarketSelectedCount === 0
6702
+ }, _toDisplayString(_ctx.skillsExporting ? _ctx.t('market.export.running') : _ctx.t('market.export.action')) + " (" + _toDisplayString(_ctx.skillsMarketSelectedCount) + ") ", 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
6703
+ _createElementVNode("button", {
6704
+ type: "button",
6705
+ class: "btn-mini",
6706
+ onClick: $event => (_ctx.refreshSkillsList({ silent: false })),
6707
+ disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy
6708
+ }, [
6709
+ (!_ctx.skillsLoading)
6710
+ ? (_openBlock(), _createElementBlock("svg", {
6711
+ key: 0,
6712
+ viewBox: "0 0 20 20",
6713
+ fill: "none",
6714
+ stroke: "currentColor",
6715
+ "stroke-width": "1.8",
6716
+ width: "14",
6717
+ height: "14"
6718
+ }, [
6719
+ _createElementVNode("path", { d: "M17 1l4 4-4 4" }),
6720
+ _createElementVNode("path", { d: "M3 11V9a4 4 0 014-4h14" }),
6721
+ _createElementVNode("path", { d: "M3 19l-4-4 4-4" }),
6722
+ _createElementVNode("path", { d: "M17 9v2a4 4 0 01-4 4H3" })
6723
+ ]))
6724
+ : (_openBlock(), _createElementBlock("svg", {
6725
+ key: 1,
6726
+ viewBox: "0 0 20 20",
6727
+ fill: "none",
6728
+ stroke: "currentColor",
6729
+ "stroke-width": "1.8",
6730
+ width: "14",
6731
+ height: "14",
6732
+ class: "spin"
6733
+ }, [
6734
+ _createElementVNode("path", { d: "M10 2v4m0 8v4M2 10h4m8 0h4m-3.5-6.5l2.5 2.5M4 4l2.5 2.5M16 16l-2.5-2.5M4 16l2.5-2.5" })
6735
+ ]))
6736
+ ], 8 /* PROPS */, ["onClick", "disabled"])
6737
+ ])
6280
6738
  ]),
6281
- (_ctx.skillsLoading && !_ctx.skillsMarketLocalLoadedOnce)
6739
+ (_ctx.skillsList.length > 0)
6282
6740
  ? (_openBlock(), _createElementBlock("div", {
6283
6741
  key: 0,
6742
+ class: "skills-market-selection-bar"
6743
+ }, [
6744
+ _createElementVNode("label", { class: "skills-market-select-all" }, [
6745
+ _createElementVNode("input", {
6746
+ type: "checkbox",
6747
+ checked: _ctx.skillsMarketAllSelected,
6748
+ onChange: _ctx.toggleAllSkillsMarketSelection,
6749
+ disabled: _ctx.skillsMarketBusy
6750
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "onChange", "disabled"]),
6751
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('market.selection.all')), 1 /* TEXT */)
6752
+ ]),
6753
+ _createElementVNode("span", { class: "skills-market-selection-count" }, _toDisplayString(_ctx.t('market.selection.count', { count: _ctx.skillsMarketSelectedCount })), 1 /* TEXT */)
6754
+ ]))
6755
+ : _createCommentVNode("v-if", true),
6756
+ (_ctx.skillsLoading && !_ctx.skillsMarketLocalLoadedOnce)
6757
+ ? (_openBlock(), _createElementBlock("div", {
6758
+ key: 1,
6284
6759
  class: "skills-flow-loading"
6285
6760
  }, _toDisplayString(_ctx.t('market.local.loading')), 1 /* TEXT */))
6286
6761
  : (_ctx.skillsList.length === 0)
6287
6762
  ? (_openBlock(), _createElementBlock("div", {
6288
- key: 1,
6763
+ key: 2,
6289
6764
  class: "skills-flow-empty"
6290
6765
  }, _toDisplayString(_ctx.t('market.local.empty')), 1 /* TEXT */))
6291
6766
  : (_openBlock(), _createElementBlock("div", {
6292
- key: 2,
6767
+ key: 3,
6293
6768
  class: "skills-flow-list"
6294
6769
  }, [
6295
6770
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.skillsList, (skill) => {
6296
6771
  return (_openBlock(), _createElementBlock("div", {
6297
6772
  key: 'skill-' + skill.name,
6298
- class: _normalizeClass(["skills-flow-item", { 'has-issue': !skill.hasSkillFile }])
6773
+ class: _normalizeClass(["skills-flow-item", { 'has-issue': !skill.hasSkillFile, selected: _ctx.skillsMarketSelectedNames.includes(skill.name) }])
6299
6774
  }, [
6775
+ _createElementVNode("label", { class: "skills-market-item-check" }, [
6776
+ _createElementVNode("input", {
6777
+ type: "checkbox",
6778
+ checked: _ctx.skillsMarketSelectedNames.includes(skill.name),
6779
+ onChange: $event => (_ctx.toggleSkillsMarketSelection(skill.name)),
6780
+ disabled: _ctx.skillsMarketBusy
6781
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "onChange", "disabled"])
6782
+ ]),
6300
6783
  _createElementVNode("div", { class: "skills-flow-main" }, [
6301
6784
  _createElementVNode("span", { class: "skills-flow-name" }, _toDisplayString(skill.displayName || skill.name), 1 /* TEXT */),
6302
6785
  _createElementVNode("span", { class: "skills-flow-path" }, _toDisplayString(skill.path), 1 /* TEXT */)
@@ -7151,17 +7634,31 @@ return function render(_ctx, _cache) {
7151
7634
  class: "prompts-editor"
7152
7635
  }, [
7153
7636
  _createElementVNode("div", { class: "prompts-editor-toolbar" }, [
7154
- _createElementVNode("div", { class: "form-hint" }, [
7155
- _createTextVNode(_toDisplayString(_ctx.agentsPath || _ctx.t('common.notLoaded')) + " ", 1 /* TEXT */),
7156
- (_ctx.agentsPath)
7157
- ? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.paren(_ctx.agentsExists ? _ctx.t('common.exists') : _ctx.t('common.notExistsWillCreateOnSave'))), 1 /* TEXT */))
7158
- : _createCommentVNode("v-if", true),
7637
+ _createElementVNode("div", { class: "prompts-path-summary-wrap" }, [
7159
7638
  (_ctx.agentsPath)
7160
- ? (_openBlock(), _createElementBlock("span", {
7639
+ ? (_openBlock(), _createElementBlock("details", {
7640
+ key: 0,
7641
+ class: "prompts-path-summary"
7642
+ }, [
7643
+ _createElementVNode("summary", {
7644
+ class: "prompts-path-summary-trigger",
7645
+ title: _ctx.agentsPath
7646
+ }, [
7647
+ _createElementVNode("span", { class: "prompts-path-summary-name" }, _toDisplayString(_ctx.promptPathFileName(_ctx.agentsPath)), 1 /* TEXT */),
7648
+ _createElementVNode("span", { class: "prompts-token-hint" }, "· " + _toDisplayString(_ctx.t('prompts.tokenCount.hint', { count: _ctx.agentsTokenCount })), 1 /* TEXT */)
7649
+ ], 8 /* PROPS */, ["title"]),
7650
+ _createElementVNode("div", {
7651
+ class: "prompts-path-summary-popover",
7652
+ role: "tooltip"
7653
+ }, [
7654
+ _createElementVNode("span", { class: "prompts-path-summary-popover-label" }, _toDisplayString(_ctx.t('prompts.path.fullPath')), 1 /* TEXT */),
7655
+ _createElementVNode("code", null, _toDisplayString(_ctx.agentsPath), 1 /* TEXT */)
7656
+ ])
7657
+ ]))
7658
+ : (_openBlock(), _createElementBlock("div", {
7161
7659
  key: 1,
7162
- class: "prompts-token-hint"
7163
- }, "· " + _toDisplayString(_ctx.t('prompts.tokenCount.hint', { count: _ctx.agentsTokenCount })), 1 /* TEXT */))
7164
- : _createCommentVNode("v-if", true)
7660
+ class: "form-hint prompts-path-summary-empty"
7661
+ }, _toDisplayString(_ctx.t('common.notLoaded')), 1 /* TEXT */))
7165
7662
  ]),
7166
7663
  _createElementVNode("div", { class: "prompts-editor-actions" }, [
7167
7664
  _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--pathref" }, [
@@ -7182,7 +7679,11 @@ return function render(_ctx, _cache) {
7182
7679
  }), 128 /* KEYED_FRAGMENT */))
7183
7680
  ], 40 /* PROPS, NEED_HYDRATION */, ["disabled", "title", "onFocus", "onChange"])
7184
7681
  ]),
7185
- _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--secondary" }, [
7682
+ _createElementVNode("div", {
7683
+ class: "prompts-editor-group prompts-editor-group--secondary prompts-editor-group--edit",
7684
+ role: "group",
7685
+ "aria-label": _ctx.t('prompts.actions.edit')
7686
+ }, [
7186
7687
  _createElementVNode("button", {
7187
7688
  class: "btn-mini",
7188
7689
  onClick: _ctx.exportAgentsContent,
@@ -7262,8 +7763,12 @@ return function render(_ctx, _cache) {
7262
7763
  _createElementVNode("path", { d: "M3 12a9 9 0 1 0 9-9 9 9 0 0 0-7.5 4M3 4v4h4" })
7263
7764
  ]))
7264
7765
  ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7265
- ]),
7266
- _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--workflow" }, [
7766
+ ], 8 /* PROPS */, ["aria-label"]),
7767
+ _createElementVNode("div", {
7768
+ class: "prompts-editor-group prompts-editor-group--workflow prompts-editor-group--view",
7769
+ role: "group",
7770
+ "aria-label": _ctx.t('prompts.actions.view')
7771
+ }, [
7267
7772
  _createElementVNode("button", {
7268
7773
  class: "btn-mini",
7269
7774
  onClick: $event => (_ctx.agentsDiffVisible ? _ctx.resetAgentsDiffState() : _ctx.loadPromptsContent()),
@@ -7313,7 +7818,7 @@ return function render(_ctx, _cache) {
7313
7818
  })
7314
7819
  ]))
7315
7820
  ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7316
- ])
7821
+ ], 8 /* PROPS */, ["aria-label"])
7317
7822
  ])
7318
7823
  ]),
7319
7824
  (_ctx.promptHistoryVisible)
@@ -7703,17 +8208,31 @@ return function render(_ctx, _cache) {
7703
8208
  ]),
7704
8209
  _createElementVNode("div", { class: "prompts-editor" }, [
7705
8210
  _createElementVNode("div", { class: "prompts-editor-toolbar" }, [
7706
- _createElementVNode("div", { class: "form-hint" }, [
7707
- _createTextVNode(_toDisplayString(_ctx.sysPromptPath || _ctx.t('common.notLoaded')) + " ", 1 /* TEXT */),
7708
- (_ctx.sysPromptPath)
7709
- ? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.paren(_ctx.sysPromptExists ? _ctx.t('common.exists') : _ctx.t('common.notExistsWillCreateOnSave'))), 1 /* TEXT */))
7710
- : _createCommentVNode("v-if", true),
8211
+ _createElementVNode("div", { class: "prompts-path-summary-wrap" }, [
7711
8212
  (_ctx.sysPromptPath)
7712
- ? (_openBlock(), _createElementBlock("span", {
8213
+ ? (_openBlock(), _createElementBlock("details", {
8214
+ key: 0,
8215
+ class: "prompts-path-summary"
8216
+ }, [
8217
+ _createElementVNode("summary", {
8218
+ class: "prompts-path-summary-trigger",
8219
+ title: _ctx.sysPromptPath
8220
+ }, [
8221
+ _createElementVNode("span", { class: "prompts-path-summary-name" }, _toDisplayString(_ctx.promptPathFileName(_ctx.sysPromptPath)), 1 /* TEXT */),
8222
+ _createElementVNode("span", { class: "prompts-token-hint" }, "· " + _toDisplayString(_ctx.t('prompts.tokenCount.hint', { count: _ctx.sysPromptTokenCount })), 1 /* TEXT */)
8223
+ ], 8 /* PROPS */, ["title"]),
8224
+ _createElementVNode("div", {
8225
+ class: "prompts-path-summary-popover",
8226
+ role: "tooltip"
8227
+ }, [
8228
+ _createElementVNode("span", { class: "prompts-path-summary-popover-label" }, _toDisplayString(_ctx.t('prompts.path.fullPath')), 1 /* TEXT */),
8229
+ _createElementVNode("code", null, _toDisplayString(_ctx.sysPromptPath), 1 /* TEXT */)
8230
+ ])
8231
+ ]))
8232
+ : (_openBlock(), _createElementBlock("div", {
7713
8233
  key: 1,
7714
- class: "prompts-token-hint"
7715
- }, "· " + _toDisplayString(_ctx.t('prompts.tokenCount.hint', { count: _ctx.sysPromptTokenCount })), 1 /* TEXT */))
7716
- : _createCommentVNode("v-if", true)
8234
+ class: "form-hint prompts-path-summary-empty"
8235
+ }, _toDisplayString(_ctx.t('common.notLoaded')), 1 /* TEXT */))
7717
8236
  ]),
7718
8237
  _createElementVNode("div", { class: "prompts-editor-actions" }, [
7719
8238
  _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--pathref" }, [
@@ -7734,7 +8253,11 @@ return function render(_ctx, _cache) {
7734
8253
  }), 128 /* KEYED_FRAGMENT */))
7735
8254
  ], 40 /* PROPS, NEED_HYDRATION */, ["disabled", "title", "onFocus", "onChange"])
7736
8255
  ]),
7737
- _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--secondary" }, [
8256
+ _createElementVNode("div", {
8257
+ class: "prompts-editor-group prompts-editor-group--secondary prompts-editor-group--edit",
8258
+ role: "group",
8259
+ "aria-label": _ctx.t('prompts.actions.edit')
8260
+ }, [
7738
8261
  _createElementVNode("button", {
7739
8262
  class: "btn-mini",
7740
8263
  onClick: _ctx.exportSysPromptContent,
@@ -7814,8 +8337,12 @@ return function render(_ctx, _cache) {
7814
8337
  _createElementVNode("path", { d: "M3 12a9 9 0 1 0 9-9 9 9 0 0 0-7.5 4M3 4v4h4" })
7815
8338
  ]))
7816
8339
  ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7817
- ]),
7818
- _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--workflow" }, [
8340
+ ], 8 /* PROPS */, ["aria-label"]),
8341
+ _createElementVNode("div", {
8342
+ class: "prompts-editor-group prompts-editor-group--workflow prompts-editor-group--view",
8343
+ role: "group",
8344
+ "aria-label": _ctx.t('prompts.actions.view')
8345
+ }, [
7819
8346
  _createElementVNode("button", {
7820
8347
  class: "btn-mini",
7821
8348
  onClick: $event => (_ctx.sysPromptDiffVisible ? _ctx.resetSysPromptDiffState() : _ctx.cancelSysPromptEdit()),
@@ -7865,7 +8392,7 @@ return function render(_ctx, _cache) {
7865
8392
  })
7866
8393
  ]))
7867
8394
  ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7868
- ])
8395
+ ], 8 /* PROPS */, ["aria-label"])
7869
8396
  ])
7870
8397
  ]),
7871
8398
  (_ctx.sysHistoryVisible)
@@ -8137,7 +8664,7 @@ return function render(_ctx, _cache) {
8137
8664
  (_ctx.loading && _ctx.mainTab !== 'usage')
8138
8665
  ? (_openBlock(), _createElementBlock("div", {
8139
8666
  key: 3,
8140
- class: "state-message"
8667
+ class: "state-message app-loading-state"
8141
8668
  }, _toDisplayString(_ctx.t('app.loadingConfig')), 1 /* TEXT */))
8142
8669
  : (_ctx.initError)
8143
8670
  ? (_openBlock(), _createElementBlock("div", {
@@ -8154,7 +8681,7 @@ return function render(_ctx, _cache) {
8154
8681
  _createCommentVNode(" 添加提供商模态框 "),
8155
8682
  (_ctx.showAddModal)
8156
8683
  ? (_openBlock(), _createElementBlock("div", {
8157
- key: 3,
8684
+ key: 4,
8158
8685
  class: "modal-overlay",
8159
8686
  onClick: _withModifiers(_ctx.closeAddModal, ["self"])
8160
8687
  }, [
@@ -8311,7 +8838,7 @@ return function render(_ctx, _cache) {
8311
8838
  _createCommentVNode(" 编辑提供商模态框 "),
8312
8839
  (_ctx.showEditModal)
8313
8840
  ? (_openBlock(), _createElementBlock("div", {
8314
- key: 4,
8841
+ key: 5,
8315
8842
  class: "modal-overlay",
8316
8843
  onClick: _withModifiers(_ctx.closeEditModal, ["self"])
8317
8844
  }, [
@@ -8423,7 +8950,7 @@ return function render(_ctx, _cache) {
8423
8950
  _createCommentVNode(" 添加模型模态框 "),
8424
8951
  (_ctx.showModelModal)
8425
8952
  ? (_openBlock(), _createElementBlock("div", {
8426
- key: 5,
8953
+ key: 6,
8427
8954
  class: "modal-overlay",
8428
8955
  onClick: _withModifiers(_ctx.closeModelModal, ["self"])
8429
8956
  }, [
@@ -8463,7 +8990,7 @@ return function render(_ctx, _cache) {
8463
8990
  _createCommentVNode(" 模型列表模态框 "),
8464
8991
  (_ctx.showModelListModal)
8465
8992
  ? (_openBlock(), _createElementBlock("div", {
8466
- key: 6,
8993
+ key: 7,
8467
8994
  class: "modal-overlay",
8468
8995
  onClick: _withModifiers($event => (_ctx.showModelListModal = false), ["self"])
8469
8996
  }, [
@@ -8504,7 +9031,7 @@ return function render(_ctx, _cache) {
8504
9031
  _createCommentVNode(" 项目功能公告模态框 "),
8505
9032
  (_ctx.showProviderCacheAnnouncementModal)
8506
9033
  ? (_openBlock(), _createElementBlock("div", {
8507
- key: 7,
9034
+ key: 8,
8508
9035
  class: "modal-overlay project-announcement-overlay",
8509
9036
  onClick: _withModifiers(_ctx.closeProviderCacheAnnouncementModal, ["self"])
8510
9037
  }, [
@@ -8673,7 +9200,7 @@ return function render(_ctx, _cache) {
8673
9200
  _createCommentVNode(" Provider 缓存记录模态框 "),
8674
9201
  (_ctx.showProviderCacheModal)
8675
9202
  ? (_openBlock(), _createElementBlock("div", {
8676
- key: 8,
9203
+ key: 9,
8677
9204
  class: "modal-overlay",
8678
9205
  onClick: _withModifiers(_ctx.closeProviderCacheModal, ["self"])
8679
9206
  }, [
@@ -8821,7 +9348,7 @@ return function render(_ctx, _cache) {
8821
9348
  _createCommentVNode(" 添加Claude配置模态框 "),
8822
9349
  (_ctx.showClaudeConfigModal)
8823
9350
  ? (_openBlock(), _createElementBlock("div", {
8824
- key: 9,
9351
+ key: 10,
8825
9352
  class: "modal-overlay",
8826
9353
  onClick: _withModifiers(_ctx.closeClaudeConfigModal, ["self"])
8827
9354
  }, [
@@ -8973,7 +9500,7 @@ return function render(_ctx, _cache) {
8973
9500
  _createCommentVNode(" 编辑Claude配置模态框 "),
8974
9501
  (_ctx.showEditConfigModal)
8975
9502
  ? (_openBlock(), _createElementBlock("div", {
8976
- key: 10,
9503
+ key: 11,
8977
9504
  class: "modal-overlay",
8978
9505
  onClick: _withModifiers(_ctx.closeEditConfigModal, ["self"])
8979
9506
  }, [
@@ -9126,7 +9653,7 @@ return function render(_ctx, _cache) {
9126
9653
  _createCommentVNode(" Codex bridge pool modal "),
9127
9654
  (_ctx.showCodexBridgePoolModal)
9128
9655
  ? (_openBlock(), _createElementBlock("div", {
9129
- key: 11,
9656
+ key: 12,
9130
9657
  class: "modal-overlay",
9131
9658
  onClick: _withModifiers($event => (_ctx.showCodexBridgePoolModal = false), ["self"])
9132
9659
  }, [
@@ -9219,7 +9746,7 @@ return function render(_ctx, _cache) {
9219
9746
  : _createCommentVNode("v-if", true),
9220
9747
  (_ctx.showClaudeBridgePoolModal)
9221
9748
  ? (_openBlock(), _createElementBlock("div", {
9222
- key: 12,
9749
+ key: 13,
9223
9750
  class: "modal-overlay",
9224
9751
  onClick: _withModifiers($event => (_ctx.showClaudeBridgePoolModal = false), ["self"])
9225
9752
  }, [
@@ -9313,7 +9840,7 @@ return function render(_ctx, _cache) {
9313
9840
  _createCommentVNode(" Webhook settings modal "),
9314
9841
  (_ctx.showWebhookModal)
9315
9842
  ? (_openBlock(), _createElementBlock("div", {
9316
- key: 13,
9843
+ key: 14,
9317
9844
  class: "modal-overlay",
9318
9845
  onClick: _withModifiers(_ctx.closeWebhookModal, ["self"])
9319
9846
  }, [
@@ -9386,7 +9913,7 @@ return function render(_ctx, _cache) {
9386
9913
  : _createCommentVNode("v-if", true),
9387
9914
  (_ctx.showOpenclawConfigModal)
9388
9915
  ? (_openBlock(), _createElementBlock("div", {
9389
- key: 14,
9916
+ key: 15,
9390
9917
  class: "modal-overlay",
9391
9918
  onClick: _withModifiers($event => (!(_ctx.openclawSaving || _ctx.openclawApplying) && _ctx.closeOpenclawConfigModal()), ["self"])
9392
9919
  }, [
@@ -10098,7 +10625,7 @@ return function render(_ctx, _cache) {
10098
10625
  : _createCommentVNode("v-if", true),
10099
10626
  (_ctx.showConfigTemplateModal)
10100
10627
  ? (_openBlock(), _createElementBlock("div", {
10101
- key: 15,
10628
+ key: 16,
10102
10629
  class: "modal-overlay",
10103
10630
  onClick: _withModifiers($event => (!_ctx.configTemplateApplying && _ctx.closeConfigTemplateModal()), ["self"])
10104
10631
  }, [
@@ -10243,7 +10770,7 @@ return function render(_ctx, _cache) {
10243
10770
  : _createCommentVNode("v-if", true),
10244
10771
  (_ctx.showAgentsModal)
10245
10772
  ? (_openBlock(), _createElementBlock("div", {
10246
- key: 16,
10773
+ key: 17,
10247
10774
  class: "modal-overlay",
10248
10775
  onClick: _withModifiers(_ctx.closeAgentsModal, ["self"])
10249
10776
  }, [
@@ -10414,7 +10941,7 @@ return function render(_ctx, _cache) {
10414
10941
  : _createCommentVNode("v-if", true),
10415
10942
  (_ctx.showSkillsModal)
10416
10943
  ? (_openBlock(), _createElementBlock("div", {
10417
- key: 17,
10944
+ key: 18,
10418
10945
  class: "modal-overlay",
10419
10946
  onClick: _withModifiers(_ctx.closeSkillsModal, ["self"])
10420
10947
  }, [
@@ -10719,7 +11246,7 @@ return function render(_ctx, _cache) {
10719
11246
  }, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
10720
11247
  (_ctx.showHealthCheckModal)
10721
11248
  ? (_openBlock(), _createElementBlock("div", {
10722
- key: 18,
11249
+ key: 19,
10723
11250
  class: "modal-overlay",
10724
11251
  onClick: _withModifiers($event => (_ctx.showHealthCheckModal = false), ["self"])
10725
11252
  }, [
@@ -10892,7 +11419,7 @@ return function render(_ctx, _cache) {
10892
11419
  : _createCommentVNode("v-if", true),
10893
11420
  (_ctx.showConfirmDialog)
10894
11421
  ? (_openBlock(), _createElementBlock("div", {
10895
- key: 19,
11422
+ key: 20,
10896
11423
  class: "modal-overlay",
10897
11424
  onClick: _withModifiers(_ctx.closeConfirmDialog, ["self"])
10898
11425
  }, [
@@ -10930,7 +11457,7 @@ return function render(_ctx, _cache) {
10930
11457
  _createCommentVNode(" Toast "),
10931
11458
  (_ctx.message)
10932
11459
  ? (_openBlock(), _createElementBlock("div", {
10933
- key: 20,
11460
+ key: 21,
10934
11461
  class: _normalizeClass(['toast', _ctx.messageType]),
10935
11462
  role: "status",
10936
11463
  "aria-live": "polite",