codexmate 0.1.35 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -100
- package/README.vi.md +105 -93
- package/README.zh.md +102 -98
- package/cli/skills.js +103 -4
- package/cli.js +5 -2
- package/package.json +1 -1
- package/web-ui/app.js +14 -0
- package/web-ui/logic.codex.mjs +14 -0
- package/web-ui/modules/app.computed.main-tabs.mjs +12 -0
- package/web-ui/modules/app.methods.agents.mjs +0 -3
- package/web-ui/modules/app.methods.claude-config.mjs +26 -5
- package/web-ui/modules/app.methods.install.mjs +13 -17
- package/web-ui/modules/app.methods.navigation.mjs +1 -1
- package/web-ui/modules/app.methods.openclaw-editing.mjs +29 -0
- package/web-ui/modules/app.methods.openclaw-persist.mjs +3 -3
- package/web-ui/modules/app.methods.opencode-config.mjs +34 -0
- package/web-ui/modules/app.methods.pi-config.mjs +14 -9
- package/web-ui/modules/app.methods.prompts-editor.mjs +30 -6
- package/web-ui/modules/app.methods.providers.mjs +11 -0
- package/web-ui/modules/app.methods.session-trash.mjs +4 -5
- package/web-ui/modules/app.methods.startup-claude.mjs +11 -5
- package/web-ui/modules/claude-provider-presets.mjs +23 -0
- package/web-ui/modules/i18n/locales/en.mjs +29 -0
- package/web-ui/modules/i18n/locales/ja.mjs +29 -0
- package/web-ui/modules/i18n/locales/vi.mjs +29 -0
- package/web-ui/modules/i18n/locales/zh-tw.mjs +29 -0
- package/web-ui/modules/i18n/locales/zh.mjs +29 -0
- package/web-ui/modules/pi-provider-templates.mjs +6 -1
- package/web-ui/modules/session-features.mjs +25 -1
- package/web-ui/modules/skills.methods.mjs +61 -16
- package/web-ui/partials/index/layout-header.html +36 -37
- package/web-ui/partials/index/modal-openclaw-config.html +3 -0
- package/web-ui/partials/index/modals-basic.html +1 -1
- package/web-ui/partials/index/modals-pi-provider.html +1 -1
- package/web-ui/partials/index/panel-config-claude.html +4 -21
- package/web-ui/partials/index/panel-config-codex.html +3 -1
- package/web-ui/partials/index/panel-config-opencode.html +4 -0
- package/web-ui/partials/index/panel-market.html +10 -3
- package/web-ui/partials/index/panel-prompts.html +40 -20
- package/web-ui/partials/index/panel-settings.html +45 -0
- package/web-ui/partials/index/session-features.html +24 -7
- package/web-ui/res/web-ui-render.precompiled.js +531 -271
- package/web-ui/styles/layout-shell.css +41 -70
- package/web-ui/styles/prompts-editor.css +127 -27
- package/web-ui/styles/session-features.css +12 -1
- package/web-ui/styles/settings-panel.css +4 -0
- package/web-ui/styles/system-prompt.css +9 -4
- package/web-ui/styles/theme-dark.css +0 -18
- package/web-ui/styles/theme-ocean.css +0 -14
- package/web-ui/styles/theme-violet.css +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
window.__CODEXMATE_WEB_UI_RENDER__ = (() => {
|
|
2
|
-
const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass, withModifiers: _withModifiers, withKeys: _withKeys, renderList: _renderList, Fragment: _Fragment, vModelSelect: _vModelSelect, withDirectives: _withDirectives, vModelText: _vModelText, vModelCheckbox: _vModelCheckbox, vShow: _vShow, Teleport: _Teleport, createBlock: _createBlock, vModelDynamic: _vModelDynamic, normalizeStyle: _normalizeStyle, isMemoSame: _isMemoSame, withMemo: _withMemo, resolveComponent: _resolveComponent, createVNode: _createVNode } = Vue
|
|
2
|
+
const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass, withModifiers: _withModifiers, withKeys: _withKeys, renderList: _renderList, Fragment: _Fragment, vModelSelect: _vModelSelect, withDirectives: _withDirectives, vModelText: _vModelText, vModelCheckbox: _vModelCheckbox, vShow: _vShow, Teleport: _Teleport, createBlock: _createBlock, vModelDynamic: _vModelDynamic, normalizeStyle: _normalizeStyle, resolveDynamicComponent: _resolveDynamicComponent, withCtx: _withCtx, isMemoSame: _isMemoSame, withMemo: _withMemo, resolveComponent: _resolveComponent, createVNode: _createVNode } = Vue
|
|
3
3
|
|
|
4
4
|
return function render(_ctx, _cache) {
|
|
5
5
|
const _component_session_message_actions = _resolveComponent("session-message-actions")
|
|
@@ -594,90 +594,120 @@ return function render(_ctx, _cache) {
|
|
|
594
594
|
])
|
|
595
595
|
])
|
|
596
596
|
]),
|
|
597
|
-
_createElementVNode("div", { class: "side-rail-
|
|
598
|
-
_createElementVNode("
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
key: option.code,
|
|
632
|
-
type: "button",
|
|
633
|
-
class: _normalizeClass(["side-language-option", { active: option.code === _ctx.lang }]),
|
|
634
|
-
role: "menuitemradio",
|
|
635
|
-
"aria-checked": option.code === _ctx.lang ? 'true' : 'false',
|
|
636
|
-
onClick: $event => (_ctx.selectLanguage(option.code))
|
|
637
|
-
}, [
|
|
638
|
-
_createElementVNode("span", null, _toDisplayString(option.nativeName), 1 /* TEXT */),
|
|
639
|
-
_createElementVNode("small", null, _toDisplayString(option.englishName), 1 /* TEXT */),
|
|
640
|
-
(option.code === _ctx.lang)
|
|
641
|
-
? (_openBlock(), _createElementBlock("svg", {
|
|
642
|
-
key: 0,
|
|
643
|
-
viewBox: "0 0 16 16",
|
|
644
|
-
fill: "none",
|
|
645
|
-
stroke: "currentColor",
|
|
646
|
-
"stroke-width": "2",
|
|
647
|
-
"stroke-linecap": "round",
|
|
648
|
-
"stroke-linejoin": "round",
|
|
649
|
-
"aria-hidden": "true"
|
|
650
|
-
}, [
|
|
651
|
-
_createElementVNode("path", { d: "M3.5 8.5l3 3 6-7" })
|
|
652
|
-
]))
|
|
653
|
-
: _createCommentVNode("v-if", true)
|
|
654
|
-
], 10 /* CLASS, PROPS */, ["aria-checked", "onClick"]))
|
|
655
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
656
|
-
], 40 /* PROPS, NEED_HYDRATION */, ["onFocusout"]))
|
|
657
|
-
: _createCommentVNode("v-if", true)
|
|
658
|
-
]),
|
|
597
|
+
_createElementVNode("div", { class: "side-rail-footer" }, [
|
|
598
|
+
_createElementVNode("button", {
|
|
599
|
+
type: "button",
|
|
600
|
+
class: "side-rail-action side-announcement-button",
|
|
601
|
+
onClick: _ctx.openProviderCacheAnnouncementModal
|
|
602
|
+
}, [
|
|
603
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
604
|
+
class: "side-rail-action-icon",
|
|
605
|
+
viewBox: "0 0 20 20",
|
|
606
|
+
fill: "none",
|
|
607
|
+
stroke: "currentColor",
|
|
608
|
+
"stroke-width": "1.7",
|
|
609
|
+
"stroke-linecap": "round",
|
|
610
|
+
"stroke-linejoin": "round",
|
|
611
|
+
"aria-hidden": "true"
|
|
612
|
+
}, [
|
|
613
|
+
_createElementVNode("path", { d: "M15 8.5a5 5 0 0 0-10 0c0 2.75-1 4.25-2 5.5h14c-1-1.25-2-2.75-2-5.5Z" }),
|
|
614
|
+
_createElementVNode("path", { d: "M8 16a2 2 0 0 0 4 0" })
|
|
615
|
+
])),
|
|
616
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('announcement.providerCache.open')), 1 /* TEXT */),
|
|
617
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
618
|
+
class: "side-rail-action-chevron",
|
|
619
|
+
viewBox: "0 0 16 16",
|
|
620
|
+
fill: "none",
|
|
621
|
+
stroke: "currentColor",
|
|
622
|
+
"stroke-width": "1.8",
|
|
623
|
+
"stroke-linecap": "round",
|
|
624
|
+
"stroke-linejoin": "round",
|
|
625
|
+
"aria-hidden": "true"
|
|
626
|
+
}, [
|
|
627
|
+
_createElementVNode("path", { d: "M6 4l4 4-4 4" })
|
|
628
|
+
]))
|
|
629
|
+
], 8 /* PROPS */, ["onClick"]),
|
|
630
|
+
_createElementVNode("div", { class: "side-language-menu" }, [
|
|
659
631
|
_createElementVNode("button", {
|
|
660
632
|
type: "button",
|
|
661
|
-
class: "side-
|
|
662
|
-
"aria-label": _ctx.t('
|
|
663
|
-
|
|
664
|
-
|
|
633
|
+
class: "side-rail-action",
|
|
634
|
+
"aria-label": _ctx.t('settings.language.sideLabel', { language: _ctx.currentLanguageLabel() }),
|
|
635
|
+
"aria-expanded": _ctx.languageMenuOpen ? 'true' : 'false',
|
|
636
|
+
"aria-haspopup": "menu",
|
|
637
|
+
onClick: _ctx.toggleLanguageMenu,
|
|
638
|
+
onKeydown: _withKeys(_withModifiers(_ctx.closeLanguageMenu, ["prevent"]), ["esc"])
|
|
665
639
|
}, [
|
|
666
640
|
(_openBlock(), _createElementBlock("svg", {
|
|
641
|
+
class: "side-rail-action-icon",
|
|
667
642
|
viewBox: "0 0 20 20",
|
|
668
643
|
fill: "none",
|
|
669
644
|
stroke: "currentColor",
|
|
670
|
-
"stroke-width": "1.
|
|
645
|
+
"stroke-width": "1.6",
|
|
646
|
+
"aria-hidden": "true"
|
|
647
|
+
}, [
|
|
648
|
+
_createElementVNode("circle", {
|
|
649
|
+
cx: "10",
|
|
650
|
+
cy: "10",
|
|
651
|
+
r: "7.5"
|
|
652
|
+
}),
|
|
653
|
+
_createElementVNode("ellipse", {
|
|
654
|
+
cx: "10",
|
|
655
|
+
cy: "10",
|
|
656
|
+
rx: "3.25",
|
|
657
|
+
ry: "7.5"
|
|
658
|
+
}),
|
|
659
|
+
_createElementVNode("path", { d: "M2.5 10h15" })
|
|
660
|
+
])),
|
|
661
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.currentLanguageLabel()), 1 /* TEXT */),
|
|
662
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
663
|
+
class: "side-rail-action-chevron",
|
|
664
|
+
viewBox: "0 0 16 16",
|
|
665
|
+
fill: "none",
|
|
666
|
+
stroke: "currentColor",
|
|
667
|
+
"stroke-width": "1.8",
|
|
671
668
|
"stroke-linecap": "round",
|
|
672
669
|
"stroke-linejoin": "round",
|
|
673
|
-
width: "16",
|
|
674
|
-
height: "16",
|
|
675
670
|
"aria-hidden": "true"
|
|
676
671
|
}, [
|
|
677
|
-
_createElementVNode("path", { d: "
|
|
678
|
-
_createElementVNode("path", { d: "M8 16a2 2 0 0 0 4 0" })
|
|
672
|
+
_createElementVNode("path", { d: "M4 6l4 4 4-4" })
|
|
679
673
|
]))
|
|
680
|
-
],
|
|
674
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["aria-label", "aria-expanded", "onClick", "onKeydown"]),
|
|
675
|
+
(_ctx.languageMenuOpen)
|
|
676
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
677
|
+
key: 0,
|
|
678
|
+
class: "side-language-dropdown",
|
|
679
|
+
role: "menu",
|
|
680
|
+
onFocusout: _ctx.handleLanguageMenuFocusOut
|
|
681
|
+
}, [
|
|
682
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.languageOptions(), (option) => {
|
|
683
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
684
|
+
key: option.code,
|
|
685
|
+
type: "button",
|
|
686
|
+
class: _normalizeClass(["side-language-option", { active: option.code === _ctx.lang }]),
|
|
687
|
+
role: "menuitemradio",
|
|
688
|
+
"aria-checked": option.code === _ctx.lang ? 'true' : 'false',
|
|
689
|
+
onClick: $event => (_ctx.selectLanguage(option.code))
|
|
690
|
+
}, [
|
|
691
|
+
_createElementVNode("span", null, _toDisplayString(option.nativeName), 1 /* TEXT */),
|
|
692
|
+
_createElementVNode("small", null, _toDisplayString(option.englishName), 1 /* TEXT */),
|
|
693
|
+
(option.code === _ctx.lang)
|
|
694
|
+
? (_openBlock(), _createElementBlock("svg", {
|
|
695
|
+
key: 0,
|
|
696
|
+
viewBox: "0 0 16 16",
|
|
697
|
+
fill: "none",
|
|
698
|
+
stroke: "currentColor",
|
|
699
|
+
"stroke-width": "2",
|
|
700
|
+
"stroke-linecap": "round",
|
|
701
|
+
"stroke-linejoin": "round",
|
|
702
|
+
"aria-hidden": "true"
|
|
703
|
+
}, [
|
|
704
|
+
_createElementVNode("path", { d: "M3.5 8.5l3 3 6-7" })
|
|
705
|
+
]))
|
|
706
|
+
: _createCommentVNode("v-if", true)
|
|
707
|
+
], 10 /* CLASS, PROPS */, ["aria-checked", "onClick"]))
|
|
708
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
709
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onFocusout"]))
|
|
710
|
+
: _createCommentVNode("v-if", true)
|
|
681
711
|
])
|
|
682
712
|
])
|
|
683
713
|
]))
|
|
@@ -1550,8 +1580,9 @@ return function render(_ctx, _cache) {
|
|
|
1550
1580
|
key: tpl.name,
|
|
1551
1581
|
type: "button",
|
|
1552
1582
|
class: "btn-mini",
|
|
1553
|
-
|
|
1554
|
-
|
|
1583
|
+
disabled: !_ctx.isToolConfigWriteAllowed('codex'),
|
|
1584
|
+
onClick: $event => (_ctx.openCodexProviderPreset(tpl))
|
|
1585
|
+
}, _toDisplayString(tpl.label) + " · " + _toDisplayString(_ctx.t(tpl.useTransform ? 'config.providerTemplate.bridge' : 'config.providerTemplate.direct')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]))
|
|
1555
1586
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1556
1587
|
])
|
|
1557
1588
|
]))
|
|
@@ -2167,111 +2198,36 @@ return function render(_ctx, _cache) {
|
|
|
2167
2198
|
_createElementVNode("div", { class: "selector-header" }, [
|
|
2168
2199
|
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('claude.presetProviders')), 1 /* TEXT */)
|
|
2169
2200
|
]),
|
|
2201
|
+
_withDirectives(_createElementVNode("input", {
|
|
2202
|
+
type: "search",
|
|
2203
|
+
class: "form-input",
|
|
2204
|
+
"onUpdate:modelValue": $event => ((_ctx.claudeProviderPresetQuery) = $event),
|
|
2205
|
+
placeholder: _ctx.t('pi.picker.searchPlaceholder'),
|
|
2206
|
+
"aria-label": _ctx.t('pi.picker.searchPlaceholder'),
|
|
2207
|
+
autocomplete: "off"
|
|
2208
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder", "aria-label"]), [
|
|
2209
|
+
[_vModelText, _ctx.claudeProviderPresetQuery]
|
|
2210
|
+
]),
|
|
2170
2211
|
_createElementVNode("div", {
|
|
2171
2212
|
class: "btn-group",
|
|
2172
|
-
style: {"flex-wrap":"wrap","gap":"8px"
|
|
2213
|
+
style: {"flex-wrap":"wrap","gap":"8px"}
|
|
2173
2214
|
}, [
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
type: "button",
|
|
2191
|
-
class: "btn-mini",
|
|
2192
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Z.ai GLM'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.z.ai/api/anthropic'; _ctx.newClaudeConfig.model = 'glm-5'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2193
|
-
}, "Z.ai GLM", 8 /* PROPS */, ["onClick"]),
|
|
2194
|
-
_createElementVNode("button", {
|
|
2195
|
-
type: "button",
|
|
2196
|
-
class: "btn-mini",
|
|
2197
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Qwen Coder'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://coding.dashscope.aliyuncs.com/apps/anthropic'; _ctx.newClaudeConfig.model = 'qwen3-coder'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2198
|
-
}, "Qwen Coder", 8 /* PROPS */, ["onClick"]),
|
|
2199
|
-
_createElementVNode("button", {
|
|
2200
|
-
type: "button",
|
|
2201
|
-
class: "btn-mini",
|
|
2202
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Kimi k2'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.moonshot.cn/anthropic'; _ctx.newClaudeConfig.model = 'kimi-k2.5'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2203
|
-
}, "Kimi k2", 8 /* PROPS */, ["onClick"]),
|
|
2204
|
-
_createElementVNode("button", {
|
|
2205
|
-
type: "button",
|
|
2206
|
-
class: "btn-mini",
|
|
2207
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Kimi For Coding'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.kimi.com/coding/'; _ctx.newClaudeConfig.model = 'kimi-k2.5'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2208
|
-
}, "Kimi For Coding", 8 /* PROPS */, ["onClick"]),
|
|
2209
|
-
_createElementVNode("button", {
|
|
2210
|
-
type: "button",
|
|
2211
|
-
class: "btn-mini",
|
|
2212
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'KAT-Coder'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://vanchin.streamlake.ai/api/gateway/v1/endpoints/${ENDPOINT_ID}/claude-code-proxy'; _ctx.newClaudeConfig.model = 'KAT-Coder-Pro V1'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2213
|
-
}, "KAT-Coder", 8 /* PROPS */, ["onClick"]),
|
|
2214
|
-
_createElementVNode("button", {
|
|
2215
|
-
type: "button",
|
|
2216
|
-
class: "btn-mini",
|
|
2217
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Longcat'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.longcat.chat/anthropic'; _ctx.newClaudeConfig.model = 'LongCat-Flash-Chat'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2218
|
-
}, "Longcat", 8 /* PROPS */, ["onClick"]),
|
|
2219
|
-
_createElementVNode("button", {
|
|
2220
|
-
type: "button",
|
|
2221
|
-
class: "btn-mini",
|
|
2222
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'MiniMax'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.minimaxi.com/anthropic'; _ctx.newClaudeConfig.model = 'MiniMax-M2.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2223
|
-
}, "MiniMax", 8 /* PROPS */, ["onClick"]),
|
|
2224
|
-
_createElementVNode("button", {
|
|
2225
|
-
type: "button",
|
|
2226
|
-
class: "btn-mini",
|
|
2227
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'MiniMax en'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.minimax.io/anthropic'; _ctx.newClaudeConfig.model = 'MiniMax-M2.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2228
|
-
}, "MiniMax en", 8 /* PROPS */, ["onClick"]),
|
|
2229
|
-
_createElementVNode("button", {
|
|
2230
|
-
type: "button",
|
|
2231
|
-
class: "btn-mini",
|
|
2232
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'DouBaoSeed'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://ark.cn-beijing.volces.com/api/coding'; _ctx.newClaudeConfig.model = 'doubao-seed-2-0-code-preview-latest'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2233
|
-
}, "DouBaoSeed", 8 /* PROPS */, ["onClick"]),
|
|
2234
|
-
_createElementVNode("button", {
|
|
2235
|
-
type: "button",
|
|
2236
|
-
class: "btn-mini",
|
|
2237
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'BaiLing'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.tbox.cn/api/anthropic'; _ctx.newClaudeConfig.model = 'Ling-2.5-1T'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2238
|
-
}, "BaiLing", 8 /* PROPS */, ["onClick"]),
|
|
2239
|
-
_createElementVNode("button", {
|
|
2240
|
-
type: "button",
|
|
2241
|
-
class: "btn-mini",
|
|
2242
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'ModelScope'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api-inference.modelscope.cn'; _ctx.newClaudeConfig.model = 'ZhipuAI/GLM-5'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2243
|
-
}, "ModelScope", 8 /* PROPS */, ["onClick"]),
|
|
2244
|
-
_createElementVNode("button", {
|
|
2245
|
-
type: "button",
|
|
2246
|
-
class: "btn-mini",
|
|
2247
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'AiHubMix'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://aihubmix.com'; _ctx.newClaudeConfig.model = 'glm-4.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2248
|
-
}, "AiHubMix", 8 /* PROPS */, ["onClick"]),
|
|
2249
|
-
_createElementVNode("button", {
|
|
2250
|
-
type: "button",
|
|
2251
|
-
class: "btn-mini",
|
|
2252
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'DMXAPI'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://www.dmxapi.cn'; _ctx.newClaudeConfig.model = 'glm-4.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2253
|
-
}, "DMXAPI", 8 /* PROPS */, ["onClick"]),
|
|
2254
|
-
_createElementVNode("button", {
|
|
2255
|
-
type: "button",
|
|
2256
|
-
class: "btn-mini",
|
|
2257
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'PackyCode'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://www.packyapi.com'; _ctx.newClaudeConfig.model = 'glm-4.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2258
|
-
}, "PackyCode", 8 /* PROPS */, ["onClick"]),
|
|
2259
|
-
_createElementVNode("button", {
|
|
2260
|
-
type: "button",
|
|
2261
|
-
class: "btn-mini",
|
|
2262
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'AnyRouter'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://anyrouter.top'; _ctx.newClaudeConfig.model = 'claude-opus-4-7[1m]'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2263
|
-
}, "AnyRouter", 8 /* PROPS */, ["onClick"]),
|
|
2264
|
-
_createElementVNode("button", {
|
|
2265
|
-
type: "button",
|
|
2266
|
-
class: "btn-mini",
|
|
2267
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Xiaomi MiMo'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.xiaomimimo.com/anthropic'; _ctx.newClaudeConfig.model = 'mimo-v2.5-pro'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2268
|
-
}, "Xiaomi MiMo", 8 /* PROPS */, ["onClick"]),
|
|
2269
|
-
_createElementVNode("button", {
|
|
2270
|
-
type: "button",
|
|
2271
|
-
class: "btn-mini",
|
|
2272
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Xiaomi Token Plan'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://token-plan-cn.xiaomimimo.com/anthropic'; _ctx.newClaudeConfig.model = 'mimo-v2.5-pro'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2273
|
-
}, "Xiaomi Token Plan", 8 /* PROPS */, ["onClick"])
|
|
2274
|
-
])
|
|
2215
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.matchingClaudeProviderPresets(), (preset) => {
|
|
2216
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
2217
|
+
key: preset.name,
|
|
2218
|
+
type: "button",
|
|
2219
|
+
class: "btn-mini",
|
|
2220
|
+
disabled: !_ctx.isToolConfigWriteAllowed('claude'),
|
|
2221
|
+
onClick: $event => (_ctx.openClaudeProviderPreset(preset))
|
|
2222
|
+
}, _toDisplayString(preset.name), 9 /* TEXT, PROPS */, ["disabled", "onClick"]))
|
|
2223
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
2224
|
+
]),
|
|
2225
|
+
(!_ctx.matchingClaudeProviderPresets().length)
|
|
2226
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
2227
|
+
key: 0,
|
|
2228
|
+
class: "config-template-hint"
|
|
2229
|
+
}, _toDisplayString(_ctx.t('pi.picker.empty')), 1 /* TEXT */))
|
|
2230
|
+
: _createCommentVNode("v-if", true)
|
|
2275
2231
|
]),
|
|
2276
2232
|
_createElementVNode("div", { class: "selector-section" }, [
|
|
2277
2233
|
_createElementVNode("div", { class: "selector-header" }, [
|
|
@@ -3197,6 +3153,15 @@ return function render(_ctx, _cache) {
|
|
|
3197
3153
|
}, _toDisplayString(_ctx.opencodeSaving ? _ctx.t('common.saving') : _ctx.t('opencode.saveConfig')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
3198
3154
|
])
|
|
3199
3155
|
]),
|
|
3156
|
+
_createElementVNode("div", { class: "form-group" }, [
|
|
3157
|
+
_createElementVNode("button", {
|
|
3158
|
+
type: "button",
|
|
3159
|
+
class: "btn-tool btn-tool-compact",
|
|
3160
|
+
onClick: _ctx.insertOpencodeProviderPreset,
|
|
3161
|
+
disabled: _ctx.opencodeLoading || _ctx.opencodeSaving || _ctx.opencodeApplying || !_ctx.isToolConfigWriteAllowed('opencode')
|
|
3162
|
+
}, _toDisplayString(_ctx.t('config.providerTemplate.fillDraft', { name: 'DeepSeek API' })), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
3163
|
+
_createElementVNode("div", { class: "config-template-hint" }, _toDisplayString(_ctx.t('opencode.preset.hint')), 1 /* TEXT */)
|
|
3164
|
+
]),
|
|
3200
3165
|
_createElementVNode("input", {
|
|
3201
3166
|
ref: "opencodeImportInput",
|
|
3202
3167
|
class: "sr-only",
|
|
@@ -4178,17 +4143,16 @@ return function render(_ctx, _cache) {
|
|
|
4178
4143
|
key: index
|
|
4179
4144
|
}, [
|
|
4180
4145
|
_createElementVNode("div", { class: "input-with-toggle" }, [
|
|
4181
|
-
|
|
4146
|
+
_createElementVNode("input", {
|
|
4182
4147
|
class: "form-input",
|
|
4183
4148
|
type: "text",
|
|
4184
|
-
|
|
4149
|
+
value: model.id,
|
|
4150
|
+
onInput: $event => (_ctx.updatePiModelId(model, $event.target.value)),
|
|
4185
4151
|
autocomplete: "off",
|
|
4186
4152
|
spellcheck: "false",
|
|
4187
4153
|
placeholder: "claude-sonnet-4",
|
|
4188
4154
|
disabled: !_ctx.isToolConfigWriteAllowed('pi')
|
|
4189
|
-
}, null,
|
|
4190
|
-
[_vModelText, model.id]
|
|
4191
|
-
]),
|
|
4155
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["value", "onInput", "disabled"]),
|
|
4192
4156
|
_createElementVNode("button", {
|
|
4193
4157
|
type: "button",
|
|
4194
4158
|
class: "btn-tool input-toggle-btn",
|
|
@@ -4949,43 +4913,96 @@ return function render(_ctx, _cache) {
|
|
|
4949
4913
|
key: 1,
|
|
4950
4914
|
class: "feature-empty"
|
|
4951
4915
|
}, _toDisplayString(_ctx.t('features.empty')), 1 /* TEXT */))
|
|
4952
|
-
:
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4916
|
+
: (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
4917
|
+
_createElementVNode("div", {
|
|
4918
|
+
class: "feature-actions index-result-views",
|
|
4919
|
+
role: "group",
|
|
4920
|
+
"aria-label": _ctx.t('features.resultView')
|
|
4921
|
+
}, [
|
|
4922
|
+
_createElementVNode("button", {
|
|
4923
|
+
type: "button",
|
|
4924
|
+
class: "btn-mini",
|
|
4925
|
+
"aria-pressed": _ctx.indexResultView === 'messages',
|
|
4926
|
+
onClick: $event => (_ctx.setIndexResultView('messages'))
|
|
4927
|
+
}, _toDisplayString(_ctx.t('features.byMessage')), 9 /* TEXT, PROPS */, ["aria-pressed", "onClick"]),
|
|
4928
|
+
_createElementVNode("button", {
|
|
4929
|
+
type: "button",
|
|
4930
|
+
class: "btn-mini",
|
|
4931
|
+
"aria-pressed": _ctx.indexResultView === 'sessions',
|
|
4932
|
+
onClick: $event => (_ctx.setIndexResultView('sessions'))
|
|
4933
|
+
}, _toDisplayString(_ctx.t('features.bySession')), 9 /* TEXT, PROPS */, ["aria-pressed", "onClick"])
|
|
4934
|
+
], 8 /* PROPS */, ["aria-label"]),
|
|
4935
|
+
(_ctx.indexResultView === 'sessions' && _ctx.indexResults.truncated)
|
|
4936
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4937
|
+
key: 0,
|
|
4938
|
+
class: "feature-hint"
|
|
4939
|
+
}, _toDisplayString(_ctx.t('features.groupedTruncated')), 1 /* TEXT */))
|
|
4940
|
+
: _createCommentVNode("v-if", true),
|
|
4941
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.indexResultRows, (row) => {
|
|
4942
|
+
return (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.indexResultView === 'sessions' ? 'details' : 'div'), {
|
|
4943
|
+
key: row.key,
|
|
4944
|
+
class: _normalizeClass(_ctx.indexResultView === 'sessions' ? 'feature-disclosure index-result-group' : 'index-message-row')
|
|
4945
|
+
}, {
|
|
4946
|
+
default: _withCtx(() => [
|
|
4947
|
+
(_ctx.indexResultView === 'sessions')
|
|
4948
|
+
? (_openBlock(), _createElementBlock("summary", { key: 0 }, [
|
|
4949
|
+
_createElementVNode("strong", null, _toDisplayString(row.session.title || row.session.sessionId), 1 /* TEXT */),
|
|
4950
|
+
_createElementVNode("span", { class: "feature-source" }, _toDisplayString(row.session.source), 1 /* TEXT */),
|
|
4951
|
+
_createElementVNode("span", { class: "feature-meta" }, _toDisplayString(_ctx.t('features.returnedMatches', { count: row.hits.length })), 1 /* TEXT */),
|
|
4952
|
+
(row.session.cwd)
|
|
4953
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
4954
|
+
key: 0,
|
|
4955
|
+
class: "index-group-path",
|
|
4956
|
+
title: row.session.cwd
|
|
4957
|
+
}, _toDisplayString(row.session.cwd), 9 /* TEXT, PROPS */, ["title"]))
|
|
4958
|
+
: _createCommentVNode("v-if", true)
|
|
4959
|
+
]))
|
|
4960
|
+
: _createCommentVNode("v-if", true),
|
|
4961
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(row.hits, (result) => {
|
|
4962
|
+
return (_openBlock(), _createElementBlock("article", {
|
|
4963
|
+
key: result.nodeId,
|
|
4964
|
+
class: "feature-record"
|
|
4965
|
+
}, [
|
|
4966
|
+
(_ctx.indexResultView === 'messages')
|
|
4967
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
|
|
4968
|
+
_createElementVNode("header", { class: "feature-record-heading" }, [
|
|
4969
|
+
_createElementVNode("h4", null, _toDisplayString(result.session.title || result.session.sessionId), 1 /* TEXT */),
|
|
4970
|
+
_createElementVNode("span", { class: "feature-source" }, _toDisplayString(result.session.source), 1 /* TEXT */)
|
|
4971
|
+
]),
|
|
4972
|
+
_createElementVNode("small", {
|
|
4973
|
+
class: "feature-path",
|
|
4974
|
+
title: result.session.cwd
|
|
4975
|
+
}, _toDisplayString(result.session.cwd), 9 /* TEXT, PROPS */, ["title"])
|
|
4976
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4977
|
+
: _createCommentVNode("v-if", true),
|
|
4978
|
+
_createElementVNode("pre", { class: "feature-excerpt" }, _toDisplayString(result.snippet), 1 /* TEXT */),
|
|
4979
|
+
_createElementVNode("div", { class: "feature-record-actions" }, [
|
|
4980
|
+
_createElementVNode("button", {
|
|
4981
|
+
type: "button",
|
|
4982
|
+
class: "btn-mini",
|
|
4983
|
+
onClick: $event => (_ctx.openIndexedMessage(result))
|
|
4984
|
+
}, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
4985
|
+
_createElementVNode("label", { class: "evidence-select" }, [
|
|
4986
|
+
_createElementVNode("input", {
|
|
4987
|
+
type: "checkbox",
|
|
4988
|
+
checked: _ctx.isEvidenceSelected(result),
|
|
4989
|
+
onChange: $event => (_ctx.toggleEvidence(result))
|
|
4990
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "onChange"]),
|
|
4991
|
+
_createTextVNode(_toDisplayString(_ctx.t('evidence.select')), 1 /* TEXT */)
|
|
4992
|
+
])
|
|
4993
|
+
]),
|
|
4994
|
+
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
4995
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.context')), 1 /* TEXT */),
|
|
4996
|
+
_createElementVNode("pre", null, _toDisplayString(result.before), 1 /* TEXT */),
|
|
4997
|
+
_createElementVNode("pre", null, _toDisplayString(result.after), 1 /* TEXT */)
|
|
4998
|
+
])
|
|
4999
|
+
]))
|
|
5000
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5001
|
+
]),
|
|
5002
|
+
_: 2 /* DYNAMIC */
|
|
5003
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
5004
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5005
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4989
5006
|
], 64 /* STABLE_FRAGMENT */))
|
|
4990
5007
|
: _createCommentVNode("v-if", true)
|
|
4991
5008
|
]))
|
|
@@ -8288,7 +8305,18 @@ return function render(_ctx, _cache) {
|
|
|
8288
8305
|
class: _normalizeClass(['segmented-option', { active: _ctx.settingsTab === 'data' }]),
|
|
8289
8306
|
onClick: $event => (_ctx.onSettingsTabClick('data')),
|
|
8290
8307
|
onKeydown: $event => (_ctx.onSettingsTabKeydown($event, 'data'))
|
|
8291
|
-
}, _toDisplayString(_ctx.t('settings.tab.data')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["aria-selected", "tabindex", "onClick", "onKeydown"])
|
|
8308
|
+
}, _toDisplayString(_ctx.t('settings.tab.data')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["aria-selected", "tabindex", "onClick", "onKeydown"]),
|
|
8309
|
+
_createElementVNode("button", {
|
|
8310
|
+
id: "settings-tab-about",
|
|
8311
|
+
type: "button",
|
|
8312
|
+
role: "tab",
|
|
8313
|
+
"aria-controls": "settings-panel-about",
|
|
8314
|
+
"aria-selected": _ctx.settingsTab === 'about',
|
|
8315
|
+
tabindex: _ctx.settingsTab === 'about' ? 0 : -1,
|
|
8316
|
+
class: _normalizeClass(['segmented-option', { active: _ctx.settingsTab === 'about' }]),
|
|
8317
|
+
onClick: $event => (_ctx.onSettingsTabClick('about')),
|
|
8318
|
+
onKeydown: $event => (_ctx.onSettingsTabKeydown($event, 'about'))
|
|
8319
|
+
}, _toDisplayString(_ctx.t('settings.tab.about')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["aria-selected", "tabindex", "onClick", "onKeydown"])
|
|
8292
8320
|
], 8 /* PROPS */, ["aria-label"])
|
|
8293
8321
|
]),
|
|
8294
8322
|
_withDirectives(_createElementVNode("div", {
|
|
@@ -8643,6 +8671,66 @@ return function render(_ctx, _cache) {
|
|
|
8643
8671
|
])
|
|
8644
8672
|
], 512 /* NEED_PATCH */), [
|
|
8645
8673
|
[_vShow, _ctx.settingsTab === 'data']
|
|
8674
|
+
]),
|
|
8675
|
+
_withDirectives(_createElementVNode("div", {
|
|
8676
|
+
id: "settings-panel-about",
|
|
8677
|
+
role: "tabpanel",
|
|
8678
|
+
"aria-labelledby": "settings-tab-about"
|
|
8679
|
+
}, [
|
|
8680
|
+
_createElementVNode("div", { class: "settings-grid" }, [
|
|
8681
|
+
_createElementVNode("section", {
|
|
8682
|
+
class: "settings-card",
|
|
8683
|
+
"aria-labelledby": "settings-about-update-title"
|
|
8684
|
+
}, [
|
|
8685
|
+
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
8686
|
+
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
8687
|
+
_createElementVNode("h2", {
|
|
8688
|
+
id: "settings-about-update-title",
|
|
8689
|
+
class: "settings-card-title"
|
|
8690
|
+
}, "Codex Mate · " + _toDisplayString(_ctx.t('settings.about.update')), 1 /* TEXT */),
|
|
8691
|
+
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.about.currentVersion', { version: _ctx.appVersion ? 'v' + _ctx.appVersion : '—' })), 1 /* TEXT */),
|
|
8692
|
+
_createElementVNode("div", { role: "status" }, [
|
|
8693
|
+
(_ctx.appVersionStatusLoading)
|
|
8694
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
8695
|
+
key: 0,
|
|
8696
|
+
class: "settings-card-hint"
|
|
8697
|
+
}, _toDisplayString(_ctx.t('side.update.checking')), 1 /* TEXT */))
|
|
8698
|
+
: (_ctx.appVersionStatusError)
|
|
8699
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
8700
|
+
key: 1,
|
|
8701
|
+
class: "settings-card-hint form-error"
|
|
8702
|
+
}, _toDisplayString(_ctx.appVersionStatusError), 1 /* TEXT */))
|
|
8703
|
+
: (_ctx.appVersionStatusChecked)
|
|
8704
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
8705
|
+
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.about.latestVersion', { version: 'v' + _ctx.appLatestVersion })), 1 /* TEXT */),
|
|
8706
|
+
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t(_ctx.isAppUpdateAvailable() ? 'side.update.available' : 'side.update.upToDate')), 1 /* TEXT */)
|
|
8707
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
8708
|
+
: _createCommentVNode("v-if", true)
|
|
8709
|
+
])
|
|
8710
|
+
])
|
|
8711
|
+
]),
|
|
8712
|
+
_createElementVNode("div", { class: "settings-card-actions" }, [
|
|
8713
|
+
_createElementVNode("button", {
|
|
8714
|
+
id: "settings-about-check-update",
|
|
8715
|
+
type: "button",
|
|
8716
|
+
class: "settings-card-action",
|
|
8717
|
+
disabled: _ctx.appVersionStatusLoading,
|
|
8718
|
+
onClick: $event => (_ctx.loadAppVersionStatus({ force: true, silent: true }))
|
|
8719
|
+
}, _toDisplayString(_ctx.t(_ctx.appVersionStatusError ? 'side.update.retry' : 'side.update.check')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
8720
|
+
(!_ctx.appVersionStatusLoading && !_ctx.appVersionStatusError && _ctx.isAppUpdateAvailable())
|
|
8721
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
8722
|
+
key: 0,
|
|
8723
|
+
id: "settings-about-view-update",
|
|
8724
|
+
type: "button",
|
|
8725
|
+
class: "settings-card-action",
|
|
8726
|
+
onClick: $event => (_ctx.openAppUpdateModal($event.currentTarget))
|
|
8727
|
+
}, _toDisplayString(_ctx.t('settings.about.viewUpdate')), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
8728
|
+
: _createCommentVNode("v-if", true)
|
|
8729
|
+
])
|
|
8730
|
+
])
|
|
8731
|
+
])
|
|
8732
|
+
], 512 /* NEED_PATCH */), [
|
|
8733
|
+
[_vShow, _ctx.settingsTab === 'about']
|
|
8646
8734
|
])
|
|
8647
8735
|
], 512 /* NEED_PATCH */), [
|
|
8648
8736
|
[_vShow, _ctx.mainTab === 'settings']
|
|
@@ -8979,12 +9067,6 @@ return function render(_ctx, _cache) {
|
|
|
8979
9067
|
_createElementVNode("span", { class: "skills-flow-count" }, _toDisplayString(_ctx.skillsList.length), 1 /* TEXT */)
|
|
8980
9068
|
]),
|
|
8981
9069
|
_createElementVNode("div", { class: "skills-flow-actions" }, [
|
|
8982
|
-
_createElementVNode("button", {
|
|
8983
|
-
type: "button",
|
|
8984
|
-
class: "skills-action-btn",
|
|
8985
|
-
onClick: _ctx.backupCurrentSkills,
|
|
8986
|
-
disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy || _ctx.skillsList.length === 0
|
|
8987
|
-
}, _toDisplayString(_ctx.skillsBackingUp ? _ctx.t('market.backup.running') : _ctx.t('market.backup.action')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
8988
9070
|
_createElementVNode("button", {
|
|
8989
9071
|
type: "button",
|
|
8990
9072
|
class: "skills-action-btn",
|
|
@@ -9027,6 +9109,28 @@ return function render(_ctx, _cache) {
|
|
|
9027
9109
|
], 8 /* PROPS */, ["onClick", "disabled"])
|
|
9028
9110
|
])
|
|
9029
9111
|
]),
|
|
9112
|
+
_createElementVNode("div", { class: "skills-flow-actions" }, [
|
|
9113
|
+
_createElementVNode("button", {
|
|
9114
|
+
type: "button",
|
|
9115
|
+
class: "skills-action-btn",
|
|
9116
|
+
onClick: _ctx.backupCurrentSkills,
|
|
9117
|
+
disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy || _ctx.skillsList.length === 0
|
|
9118
|
+
}, _toDisplayString(_ctx.skillsBackingUp ? _ctx.t('market.backup.running') : _ctx.t('market.backup.export')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
9119
|
+
_createElementVNode("button", {
|
|
9120
|
+
type: "button",
|
|
9121
|
+
class: "skills-action-btn",
|
|
9122
|
+
onClick: $event => (_ctx.triggerSkillsZipImport('backup')),
|
|
9123
|
+
disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy
|
|
9124
|
+
}, _toDisplayString(_ctx.skillsZipImporting ? _ctx.t('modal.skills.actions.zipImporting') : _ctx.t('market.backup.import')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
9125
|
+
_createElementVNode("input", {
|
|
9126
|
+
ref: "skillsBackupImportInput",
|
|
9127
|
+
type: "file",
|
|
9128
|
+
accept: ".zip,application/zip",
|
|
9129
|
+
hidden: "",
|
|
9130
|
+
onChange: $event => (_ctx.handleSkillsZipImportChange($event, 'backup')),
|
|
9131
|
+
onCancel: $event => (delete $event.target.dataset.targetApp)
|
|
9132
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange", "onCancel"])
|
|
9133
|
+
]),
|
|
9030
9134
|
(_ctx.skillsList.length > 0)
|
|
9031
9135
|
? (_openBlock(), _createElementBlock("div", {
|
|
9032
9136
|
key: 0,
|
|
@@ -10109,33 +10213,45 @@ return function render(_ctx, _cache) {
|
|
|
10109
10213
|
role: "tab",
|
|
10110
10214
|
"aria-selected": _ctx.promptsSubTab === 'codex',
|
|
10111
10215
|
onClick: $event => (_ctx.switchPromptsSubTab('codex'))
|
|
10112
|
-
},
|
|
10216
|
+
}, [
|
|
10217
|
+
_createElementVNode("span", null, "AGENTS.md"),
|
|
10218
|
+
_createElementVNode("span", { class: "prompts-file-badge" }, "Codex")
|
|
10219
|
+
], 10 /* CLASS, PROPS */, ["aria-selected", "onClick"]),
|
|
10113
10220
|
_createElementVNode("button", {
|
|
10114
10221
|
type: "button",
|
|
10115
10222
|
class: _normalizeClass(['prompts-md-tab', { active: _ctx.promptsSubTab === 'opencode' }]),
|
|
10116
10223
|
role: "tab",
|
|
10117
10224
|
"aria-selected": _ctx.promptsSubTab === 'opencode',
|
|
10118
10225
|
onClick: $event => (_ctx.switchPromptsSubTab('opencode'))
|
|
10119
|
-
},
|
|
10226
|
+
}, [
|
|
10227
|
+
_createElementVNode("span", null, "AGENTS.md"),
|
|
10228
|
+
_createElementVNode("span", { class: "prompts-file-badge" }, "OpenCode")
|
|
10229
|
+
], 10 /* CLASS, PROPS */, ["aria-selected", "onClick"]),
|
|
10120
10230
|
_createElementVNode("button", {
|
|
10121
10231
|
type: "button",
|
|
10122
10232
|
class: _normalizeClass(['prompts-md-tab', { active: _ctx.promptsSubTab === 'claude-project' }]),
|
|
10123
10233
|
role: "tab",
|
|
10124
10234
|
"aria-selected": _ctx.promptsSubTab === 'claude-project',
|
|
10125
10235
|
onClick: $event => (_ctx.switchPromptsSubTab('claude-project'))
|
|
10126
|
-
},
|
|
10236
|
+
}, [
|
|
10237
|
+
_createElementVNode("span", null, "CLAUDE.md"),
|
|
10238
|
+
_createElementVNode("span", { class: "prompts-file-badge" }, "Claude")
|
|
10239
|
+
], 10 /* CLASS, PROPS */, ["aria-selected", "onClick"]),
|
|
10127
10240
|
_createElementVNode("button", {
|
|
10128
10241
|
type: "button",
|
|
10129
10242
|
class: _normalizeClass(['prompts-md-tab', { active: _ctx.promptsSubTab === 'system' }]),
|
|
10130
10243
|
role: "tab",
|
|
10131
10244
|
"aria-selected": _ctx.promptsSubTab === 'system',
|
|
10132
10245
|
onClick: $event => (_ctx.switchPromptsSubTab('system'))
|
|
10133
|
-
},
|
|
10246
|
+
}, [
|
|
10247
|
+
_createElementVNode("span", null, "SYSTEM.md"),
|
|
10248
|
+
_createElementVNode("span", { class: "prompts-file-badge" }, "Pi")
|
|
10249
|
+
], 10 /* CLASS, PROPS */, ["aria-selected", "onClick"])
|
|
10134
10250
|
], 8 /* PROPS */, ["aria-label"]),
|
|
10135
10251
|
(_ctx.promptsSubTab === 'claude-project')
|
|
10136
10252
|
? (_openBlock(), _createElementBlock("div", {
|
|
10137
10253
|
key: 0,
|
|
10138
|
-
class: "project-path-selector"
|
|
10254
|
+
class: "project-path-selector prompts-target-card"
|
|
10139
10255
|
}, [
|
|
10140
10256
|
_createElementVNode("label", { class: "project-path-label" }, _toDisplayString(_ctx.t('prompts.project.pathLabel')), 1 /* TEXT */),
|
|
10141
10257
|
_createElementVNode("div", { class: "project-path-row" }, [
|
|
@@ -10298,6 +10414,62 @@ return function render(_ctx, _cache) {
|
|
|
10298
10414
|
]))
|
|
10299
10415
|
], 8 /* PROPS */, ["onClick", "disabled", "title"])
|
|
10300
10416
|
], 8 /* PROPS */, ["aria-label"]),
|
|
10417
|
+
(_ctx.promptsPreviewEnabled && !_ctx.agentsDiffVisible)
|
|
10418
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10419
|
+
key: 0,
|
|
10420
|
+
class: "prompts-editor-group prompts-editor-group--reading"
|
|
10421
|
+
}, [
|
|
10422
|
+
_createElementVNode("button", {
|
|
10423
|
+
type: "button",
|
|
10424
|
+
class: "btn-mini prompts-outline-toggle",
|
|
10425
|
+
"aria-expanded": !_ctx.promptsOutlineCollapsed,
|
|
10426
|
+
"aria-controls": "prompts-agents-outline",
|
|
10427
|
+
"aria-label": _ctx.t('prompts.editor.outline'),
|
|
10428
|
+
title: _ctx.t('prompts.editor.outline'),
|
|
10429
|
+
onClick: $event => (_ctx.promptsOutlineCollapsed = !_ctx.promptsOutlineCollapsed)
|
|
10430
|
+
}, [
|
|
10431
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
10432
|
+
class: "btn-icon-sm",
|
|
10433
|
+
viewBox: "0 0 24 24",
|
|
10434
|
+
fill: "none",
|
|
10435
|
+
stroke: "currentColor",
|
|
10436
|
+
"stroke-width": "2"
|
|
10437
|
+
}, [
|
|
10438
|
+
_createElementVNode("rect", {
|
|
10439
|
+
x: "3",
|
|
10440
|
+
y: "4",
|
|
10441
|
+
width: "18",
|
|
10442
|
+
height: "16",
|
|
10443
|
+
rx: "2"
|
|
10444
|
+
}),
|
|
10445
|
+
_createElementVNode("path", { d: "M10 4v16" })
|
|
10446
|
+
]))
|
|
10447
|
+
], 8 /* PROPS */, ["aria-expanded", "aria-label", "title", "onClick"]),
|
|
10448
|
+
_createElementVNode("button", {
|
|
10449
|
+
type: "button",
|
|
10450
|
+
class: "btn-mini prompts-split-collapse-btn",
|
|
10451
|
+
"aria-pressed": !_ctx.promptsPreviewCollapsed,
|
|
10452
|
+
title: _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
|
|
10453
|
+
"aria-label": _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
|
|
10454
|
+
onClick: $event => (_ctx.togglePromptsPreviewCollapsed())
|
|
10455
|
+
}, [
|
|
10456
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
10457
|
+
class: "btn-icon-sm",
|
|
10458
|
+
viewBox: "0 0 24 24",
|
|
10459
|
+
fill: "none",
|
|
10460
|
+
stroke: "currentColor",
|
|
10461
|
+
"stroke-width": "2"
|
|
10462
|
+
}, [
|
|
10463
|
+
_createElementVNode("path", { d: "M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z" }),
|
|
10464
|
+
_createElementVNode("circle", {
|
|
10465
|
+
cx: "12",
|
|
10466
|
+
cy: "12",
|
|
10467
|
+
r: "3"
|
|
10468
|
+
})
|
|
10469
|
+
]))
|
|
10470
|
+
], 8 /* PROPS */, ["aria-pressed", "title", "aria-label", "onClick"])
|
|
10471
|
+
]))
|
|
10472
|
+
: _createCommentVNode("v-if", true),
|
|
10301
10473
|
_createElementVNode("div", {
|
|
10302
10474
|
class: "prompts-editor-group prompts-editor-group--workflow prompts-editor-group--view",
|
|
10303
10475
|
role: "group",
|
|
@@ -10652,27 +10824,34 @@ return function render(_ctx, _cache) {
|
|
|
10652
10824
|
])
|
|
10653
10825
|
], 8 /* PROPS */, ["aria-label"]),
|
|
10654
10826
|
_createElementVNode("div", {
|
|
10655
|
-
class: _normalizeClass(['editor-frame prompts-editor-frame', { 'editor-frame--loading': _ctx.agentsLoading, 'prompts-editor-frame--split': _ctx.promptsPreviewEnabled, 'prompts-editor-frame--preview-collapsed': _ctx.promptsPreviewCollapsed, 'prompts-editor-frame--mobile-preview': _ctx.promptsPreviewEnabled && _ctx.promptsMobileView === 'preview' }])
|
|
10827
|
+
class: _normalizeClass(['editor-frame prompts-editor-frame', { 'prompts-editor-frame--outline': _ctx.promptsPreviewEnabled && !_ctx.promptsOutlineCollapsed, 'editor-frame--loading': _ctx.agentsLoading, 'prompts-editor-frame--split': _ctx.promptsPreviewEnabled, 'prompts-editor-frame--preview-collapsed': _ctx.promptsPreviewCollapsed, 'prompts-editor-frame--mobile-preview': _ctx.promptsPreviewEnabled && _ctx.promptsMobileView === 'preview' }])
|
|
10656
10828
|
}, [
|
|
10657
10829
|
(_ctx.promptsPreviewEnabled)
|
|
10658
|
-
? (_openBlock(), _createElementBlock("
|
|
10830
|
+
? _withDirectives((_openBlock(), _createElementBlock("nav", {
|
|
10659
10831
|
key: 0,
|
|
10660
|
-
|
|
10661
|
-
class:
|
|
10662
|
-
|
|
10663
|
-
"aria-label": _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
|
|
10664
|
-
onClick: $event => (_ctx.togglePromptsPreviewCollapsed())
|
|
10832
|
+
id: "prompts-agents-outline",
|
|
10833
|
+
class: "prompts-outline",
|
|
10834
|
+
"aria-label": _ctx.t('prompts.editor.outline')
|
|
10665
10835
|
}, [
|
|
10666
|
-
(
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10836
|
+
_createElementVNode("div", { class: "prompts-outline-title" }, _toDisplayString(_ctx.t('prompts.editor.outline')), 1 /* TEXT */),
|
|
10837
|
+
(!_ctx.agentsPreviewHeadings.length)
|
|
10838
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
10839
|
+
key: 0,
|
|
10840
|
+
class: "form-hint"
|
|
10841
|
+
}, _toDisplayString(_ctx.t('prompts.editor.outlineEmpty')), 1 /* TEXT */))
|
|
10842
|
+
: _createCommentVNode("v-if", true),
|
|
10843
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.agentsPreviewHeadings, (heading) => {
|
|
10844
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
10845
|
+
key: heading.index,
|
|
10846
|
+
type: "button",
|
|
10847
|
+
class: "prompts-outline-item",
|
|
10848
|
+
style: _normalizeStyle({ '--outline-depth': heading.depth }),
|
|
10849
|
+
onClick: $event => (_ctx.jumpToPromptsHeading('agents', heading.index))
|
|
10850
|
+
}, _toDisplayString(heading.text), 13 /* TEXT, STYLE, PROPS */, ["onClick"]))
|
|
10851
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
10852
|
+
], 8 /* PROPS */, ["aria-label"])), [
|
|
10853
|
+
[_vShow, !_ctx.promptsOutlineCollapsed]
|
|
10854
|
+
])
|
|
10676
10855
|
: _createCommentVNode("v-if", true),
|
|
10677
10856
|
(_ctx.agentsLoading)
|
|
10678
10857
|
? (_openBlock(), _createElementBlock("div", {
|
|
@@ -10704,6 +10883,7 @@ return function render(_ctx, _cache) {
|
|
|
10704
10883
|
(_ctx.promptsPreviewEnabled)
|
|
10705
10884
|
? (_openBlock(), _createElementBlock("div", {
|
|
10706
10885
|
key: 0,
|
|
10886
|
+
ref: "promptsAgentsPreviewPane",
|
|
10707
10887
|
class: "prompts-preview-pane"
|
|
10708
10888
|
}, [
|
|
10709
10889
|
(_ctx.promptsPreviewLibsMissing)
|
|
@@ -10721,7 +10901,7 @@ return function render(_ctx, _cache) {
|
|
|
10721
10901
|
class: "prompts-preview-body",
|
|
10722
10902
|
innerHTML: _ctx.agentsPreviewHtml
|
|
10723
10903
|
}, null, 8 /* PROPS */, ["innerHTML"]))
|
|
10724
|
-
]))
|
|
10904
|
+
], 512 /* NEED_PATCH */))
|
|
10725
10905
|
: _createCommentVNode("v-if", true)
|
|
10726
10906
|
])
|
|
10727
10907
|
], 2 /* CLASS */),
|
|
@@ -10736,7 +10916,7 @@ return function render(_ctx, _cache) {
|
|
|
10736
10916
|
: _createCommentVNode("v-if", true),
|
|
10737
10917
|
(_ctx.promptsSubTab === 'system')
|
|
10738
10918
|
? (_openBlock(), _createElementBlock("div", { key: 2 }, [
|
|
10739
|
-
_createElementVNode("div", { class: "sys-prompt-controls" }, [
|
|
10919
|
+
_createElementVNode("div", { class: "sys-prompt-controls prompts-target-card" }, [
|
|
10740
10920
|
_createElementVNode("div", { class: "sys-prompt-control-group" }, [
|
|
10741
10921
|
_createElementVNode("label", {
|
|
10742
10922
|
class: "form-label",
|
|
@@ -10779,8 +10959,12 @@ return function render(_ctx, _cache) {
|
|
|
10779
10959
|
: _createCommentVNode("v-if", true)
|
|
10780
10960
|
]),
|
|
10781
10961
|
_createElementVNode("div", { class: "sys-prompt-control-group" }, [
|
|
10782
|
-
_createElementVNode("label", {
|
|
10962
|
+
_createElementVNode("label", {
|
|
10963
|
+
class: "form-label",
|
|
10964
|
+
for: "sys-prompt-scope-select"
|
|
10965
|
+
}, _toDisplayString(_ctx.t('sysPrompt.scope.label')), 1 /* TEXT */),
|
|
10783
10966
|
_createElementVNode("select", {
|
|
10967
|
+
id: "sys-prompt-scope-select",
|
|
10784
10968
|
class: "form-input sys-prompt-select",
|
|
10785
10969
|
value: _ctx.sysPromptScope,
|
|
10786
10970
|
onChange: $event => (_ctx.switchSysPromptScope($event.target.value)),
|
|
@@ -10795,8 +10979,12 @@ return function render(_ctx, _cache) {
|
|
|
10795
10979
|
key: 0,
|
|
10796
10980
|
class: "sys-prompt-control-group"
|
|
10797
10981
|
}, [
|
|
10798
|
-
_createElementVNode("label", {
|
|
10982
|
+
_createElementVNode("label", {
|
|
10983
|
+
class: "form-label",
|
|
10984
|
+
for: "sys-prompt-mode-select"
|
|
10985
|
+
}, _toDisplayString(_ctx.t('sysPrompt.mode.label')), 1 /* TEXT */),
|
|
10799
10986
|
_createElementVNode("select", {
|
|
10987
|
+
id: "sys-prompt-mode-select",
|
|
10800
10988
|
class: "form-input sys-prompt-select",
|
|
10801
10989
|
value: _ctx.sysPromptMode,
|
|
10802
10990
|
onChange: $event => (_ctx.switchSysPromptMode($event.target.value)),
|
|
@@ -10947,6 +11135,62 @@ return function render(_ctx, _cache) {
|
|
|
10947
11135
|
]))
|
|
10948
11136
|
], 8 /* PROPS */, ["onClick", "disabled", "title"])
|
|
10949
11137
|
], 8 /* PROPS */, ["aria-label"]),
|
|
11138
|
+
(_ctx.promptsPreviewEnabled && !_ctx.sysPromptDiffVisible)
|
|
11139
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
11140
|
+
key: 0,
|
|
11141
|
+
class: "prompts-editor-group prompts-editor-group--reading"
|
|
11142
|
+
}, [
|
|
11143
|
+
_createElementVNode("button", {
|
|
11144
|
+
type: "button",
|
|
11145
|
+
class: "btn-mini prompts-outline-toggle",
|
|
11146
|
+
"aria-expanded": !_ctx.promptsOutlineCollapsed,
|
|
11147
|
+
"aria-controls": "prompts-sys-outline",
|
|
11148
|
+
"aria-label": _ctx.t('prompts.editor.outline'),
|
|
11149
|
+
title: _ctx.t('prompts.editor.outline'),
|
|
11150
|
+
onClick: $event => (_ctx.promptsOutlineCollapsed = !_ctx.promptsOutlineCollapsed)
|
|
11151
|
+
}, [
|
|
11152
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
11153
|
+
class: "btn-icon-sm",
|
|
11154
|
+
viewBox: "0 0 24 24",
|
|
11155
|
+
fill: "none",
|
|
11156
|
+
stroke: "currentColor",
|
|
11157
|
+
"stroke-width": "2"
|
|
11158
|
+
}, [
|
|
11159
|
+
_createElementVNode("rect", {
|
|
11160
|
+
x: "3",
|
|
11161
|
+
y: "4",
|
|
11162
|
+
width: "18",
|
|
11163
|
+
height: "16",
|
|
11164
|
+
rx: "2"
|
|
11165
|
+
}),
|
|
11166
|
+
_createElementVNode("path", { d: "M10 4v16" })
|
|
11167
|
+
]))
|
|
11168
|
+
], 8 /* PROPS */, ["aria-expanded", "aria-label", "title", "onClick"]),
|
|
11169
|
+
_createElementVNode("button", {
|
|
11170
|
+
type: "button",
|
|
11171
|
+
class: "btn-mini prompts-split-collapse-btn",
|
|
11172
|
+
"aria-pressed": !_ctx.promptsPreviewCollapsed,
|
|
11173
|
+
title: _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
|
|
11174
|
+
"aria-label": _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
|
|
11175
|
+
onClick: $event => (_ctx.togglePromptsPreviewCollapsed())
|
|
11176
|
+
}, [
|
|
11177
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
11178
|
+
class: "btn-icon-sm",
|
|
11179
|
+
viewBox: "0 0 24 24",
|
|
11180
|
+
fill: "none",
|
|
11181
|
+
stroke: "currentColor",
|
|
11182
|
+
"stroke-width": "2"
|
|
11183
|
+
}, [
|
|
11184
|
+
_createElementVNode("path", { d: "M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z" }),
|
|
11185
|
+
_createElementVNode("circle", {
|
|
11186
|
+
cx: "12",
|
|
11187
|
+
cy: "12",
|
|
11188
|
+
r: "3"
|
|
11189
|
+
})
|
|
11190
|
+
]))
|
|
11191
|
+
], 8 /* PROPS */, ["aria-pressed", "title", "aria-label", "onClick"])
|
|
11192
|
+
]))
|
|
11193
|
+
: _createCommentVNode("v-if", true),
|
|
10950
11194
|
_createElementVNode("div", {
|
|
10951
11195
|
class: "prompts-editor-group prompts-editor-group--workflow prompts-editor-group--view",
|
|
10952
11196
|
role: "group",
|
|
@@ -11208,27 +11452,34 @@ return function render(_ctx, _cache) {
|
|
|
11208
11452
|
])
|
|
11209
11453
|
], 8 /* PROPS */, ["aria-label"]),
|
|
11210
11454
|
_createElementVNode("div", {
|
|
11211
|
-
class: _normalizeClass(['editor-frame prompts-editor-frame', { 'editor-frame--loading': _ctx.sysPromptLoading, 'prompts-editor-frame--split': _ctx.promptsPreviewEnabled, 'prompts-editor-frame--preview-collapsed': _ctx.promptsPreviewCollapsed, 'prompts-editor-frame--mobile-preview': _ctx.promptsPreviewEnabled && _ctx.promptsMobileView === 'preview' }])
|
|
11455
|
+
class: _normalizeClass(['editor-frame prompts-editor-frame', { 'prompts-editor-frame--outline': _ctx.promptsPreviewEnabled && !_ctx.promptsOutlineCollapsed, 'editor-frame--loading': _ctx.sysPromptLoading, 'prompts-editor-frame--split': _ctx.promptsPreviewEnabled, 'prompts-editor-frame--preview-collapsed': _ctx.promptsPreviewCollapsed, 'prompts-editor-frame--mobile-preview': _ctx.promptsPreviewEnabled && _ctx.promptsMobileView === 'preview' }])
|
|
11212
11456
|
}, [
|
|
11213
11457
|
(_ctx.promptsPreviewEnabled)
|
|
11214
|
-
? (_openBlock(), _createElementBlock("
|
|
11458
|
+
? _withDirectives((_openBlock(), _createElementBlock("nav", {
|
|
11215
11459
|
key: 0,
|
|
11216
|
-
|
|
11217
|
-
class:
|
|
11218
|
-
|
|
11219
|
-
"aria-label": _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
|
|
11220
|
-
onClick: $event => (_ctx.togglePromptsPreviewCollapsed())
|
|
11460
|
+
id: "prompts-sys-outline",
|
|
11461
|
+
class: "prompts-outline",
|
|
11462
|
+
"aria-label": _ctx.t('prompts.editor.outline')
|
|
11221
11463
|
}, [
|
|
11222
|
-
(
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
|
|
11464
|
+
_createElementVNode("div", { class: "prompts-outline-title" }, _toDisplayString(_ctx.t('prompts.editor.outline')), 1 /* TEXT */),
|
|
11465
|
+
(!_ctx.sysPreviewHeadings.length)
|
|
11466
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
11467
|
+
key: 0,
|
|
11468
|
+
class: "form-hint"
|
|
11469
|
+
}, _toDisplayString(_ctx.t('prompts.editor.outlineEmpty')), 1 /* TEXT */))
|
|
11470
|
+
: _createCommentVNode("v-if", true),
|
|
11471
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sysPreviewHeadings, (heading) => {
|
|
11472
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
11473
|
+
key: heading.index,
|
|
11474
|
+
type: "button",
|
|
11475
|
+
class: "prompts-outline-item",
|
|
11476
|
+
style: _normalizeStyle({ '--outline-depth': heading.depth }),
|
|
11477
|
+
onClick: $event => (_ctx.jumpToPromptsHeading('sys', heading.index))
|
|
11478
|
+
}, _toDisplayString(heading.text), 13 /* TEXT, STYLE, PROPS */, ["onClick"]))
|
|
11479
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
11480
|
+
], 8 /* PROPS */, ["aria-label"])), [
|
|
11481
|
+
[_vShow, !_ctx.promptsOutlineCollapsed]
|
|
11482
|
+
])
|
|
11232
11483
|
: _createCommentVNode("v-if", true),
|
|
11233
11484
|
(_ctx.sysPromptLoading)
|
|
11234
11485
|
? (_openBlock(), _createElementBlock("div", {
|
|
@@ -11259,6 +11510,7 @@ return function render(_ctx, _cache) {
|
|
|
11259
11510
|
(_ctx.promptsPreviewEnabled)
|
|
11260
11511
|
? (_openBlock(), _createElementBlock("div", {
|
|
11261
11512
|
key: 0,
|
|
11513
|
+
ref: "promptsSysPreviewPane",
|
|
11262
11514
|
class: "prompts-preview-pane"
|
|
11263
11515
|
}, [
|
|
11264
11516
|
(_ctx.promptsPreviewLibsMissing)
|
|
@@ -11276,7 +11528,7 @@ return function render(_ctx, _cache) {
|
|
|
11276
11528
|
class: "prompts-preview-body",
|
|
11277
11529
|
innerHTML: _ctx.sysPromptPreviewHtml
|
|
11278
11530
|
}, null, 8 /* PROPS */, ["innerHTML"]))
|
|
11279
|
-
]))
|
|
11531
|
+
], 512 /* NEED_PATCH */))
|
|
11280
11532
|
: _createCommentVNode("v-if", true)
|
|
11281
11533
|
])
|
|
11282
11534
|
], 2 /* CLASS */),
|
|
@@ -12167,7 +12419,7 @@ return function render(_ctx, _cache) {
|
|
|
12167
12419
|
class: "btn btn-confirm",
|
|
12168
12420
|
onClick: _ctx.addClaudeConfig,
|
|
12169
12421
|
disabled: !_ctx.canSubmitClaudeConfig('add')
|
|
12170
|
-
}, _toDisplayString(_ctx.t('common.add')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
12422
|
+
}, _toDisplayString(_ctx.t(_ctx.claudeAddFromPreset ? 'common.save' : 'common.add')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
12171
12423
|
])
|
|
12172
12424
|
])
|
|
12173
12425
|
], 8 /* PROPS */, ["onClick"]))
|
|
@@ -12754,6 +13006,14 @@ return function render(_ctx, _cache) {
|
|
|
12754
13006
|
]))
|
|
12755
13007
|
], 8 /* PROPS */, ["onClick"]),
|
|
12756
13008
|
_withDirectives(_createElementVNode("div", { class: "accordion-content" }, [
|
|
13009
|
+
_createElementVNode("div", { class: "form-group" }, [
|
|
13010
|
+
_createElementVNode("button", {
|
|
13011
|
+
type: "button",
|
|
13012
|
+
class: "btn-mini",
|
|
13013
|
+
onClick: _ctx.fillOpenclawProviderPreset,
|
|
13014
|
+
disabled: _ctx.openclawFileLoading || _ctx.openclawSaving || _ctx.openclawApplying || !_ctx.isToolConfigWriteAllowed('openclaw')
|
|
13015
|
+
}, _toDisplayString(_ctx.t('config.providerTemplate.fillDraft', { name: 'OpenAI API' })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
13016
|
+
]),
|
|
12757
13017
|
_createElementVNode("div", { class: "form-group" }, [
|
|
12758
13018
|
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('field.providerName')), 1 /* TEXT */),
|
|
12759
13019
|
_withDirectives(_createElementVNode("input", {
|