codexmate 0.1.33 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/README.vi.md +13 -2
- package/README.zh.md +13 -2
- package/cli/local-bridge.js +10 -6
- package/cli/openai-chat-routing.js +38 -0
- package/cli/routing-bridge.js +143 -0
- package/cli/system-prompt-files.js +75 -53
- package/cli.js +162 -4
- package/lib/file-sharing-lan.js +111 -0
- package/lib/file-sharing.js +196 -0
- package/lib/model-test-client.js +61 -0
- package/lib/model-test.js +126 -0
- package/lib/routing-groups.js +161 -0
- package/package.json +1 -1
- package/plugins/file-sharing/manifest.mjs +10 -0
- package/plugins/file-sharing/methods.mjs +101 -0
- package/plugins/file-sharing/overview.mjs +3 -0
- package/plugins/file-sharing/ownership.mjs +5 -0
- package/plugins/registry.mjs +3 -0
- package/web-ui/app.js +15 -2
- package/web-ui/index.html +3 -2
- package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
- package/web-ui/modules/app.methods.agents.mjs +12 -0
- package/web-ui/modules/app.methods.install.mjs +23 -3
- package/web-ui/modules/app.methods.navigation.mjs +2 -0
- package/web-ui/modules/app.methods.prompts-editor.mjs +7 -4
- package/web-ui/modules/app.methods.session-actions.mjs +2 -2
- package/web-ui/modules/app.methods.system-prompt.mjs +88 -17
- package/web-ui/modules/app.methods.theme.mjs +4 -3
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +7 -0
- package/web-ui/modules/i18n/locales/en.mjs +123 -4
- package/web-ui/modules/i18n/locales/ja.mjs +123 -4
- package/web-ui/modules/i18n/locales/vi.mjs +123 -4
- package/web-ui/modules/i18n/locales/zh-tw.mjs +123 -4
- package/web-ui/modules/i18n/locales/zh.mjs +123 -4
- package/web-ui/modules/model-test.mjs +82 -0
- package/web-ui/modules/plugins.methods.mjs +3 -1
- package/web-ui/modules/prompt-ecosystem.methods.mjs +4 -3
- package/web-ui/modules/routing.mjs +206 -0
- package/web-ui/partials/index/layout-header.html +33 -12
- package/web-ui/partials/index/modals-basic.html +15 -0
- package/web-ui/partials/index/panel-plugins.html +3 -9
- package/web-ui/partials/index/panel-prompts.html +13 -7
- package/web-ui/partials/index/panel-routing.html +3 -0
- package/web-ui/partials/index/panel-settings.html +11 -1
- package/web-ui/partials/index/plugin-file-sharing.html +47 -0
- package/web-ui/partials/index/routing-model-test.html +53 -0
- package/web-ui/partials/index/session-diagnostics.html +7 -4
- package/web-ui/res/web-ui-render.precompiled.js +606 -105
- package/web-ui/styles/base-theme.css +1 -1
- package/web-ui/styles/modals-core.css +6 -5
- package/web-ui/styles/navigation-panels.css +4 -0
- package/web-ui/styles/plugins-panel.css +40 -1
- package/web-ui/styles/responsive.css +10 -5
- package/web-ui/styles/routing.css +78 -0
- package/web-ui/styles/session-features.css +117 -7
- package/web-ui/styles/settings-panel.css +30 -0
- package/web-ui/styles/system-prompt.css +8 -7
- package/web-ui/styles/theme-violet-tokens.css +52 -0
- package/web-ui/styles/theme-violet.css +1736 -0
- package/web-ui/styles.css +2 -0
|
@@ -85,6 +85,18 @@ return function render(_ctx, _cache) {
|
|
|
85
85
|
onPointerdown: $event => (_ctx.onMainTabPointerDown('config', $event)),
|
|
86
86
|
onClick: $event => (_ctx.onMainTabClick('config', $event))
|
|
87
87
|
}, _toDisplayString(_ctx.t('tab.config')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["data-config-mode", "tabindex", "aria-selected", "aria-controls", "onPointerdown", "onClick"]),
|
|
88
|
+
_createElementVNode("button", {
|
|
89
|
+
type: "button",
|
|
90
|
+
class: _normalizeClass(["top-tab", { active: _ctx.isMainTabNavActive('routing') }]),
|
|
91
|
+
id: "tab-routing",
|
|
92
|
+
role: "tab",
|
|
93
|
+
"data-main-tab": "routing",
|
|
94
|
+
tabindex: _ctx.mainTab === 'routing' ? 0 : -1,
|
|
95
|
+
"aria-selected": _ctx.mainTab === 'routing',
|
|
96
|
+
"aria-controls": "panel-routing",
|
|
97
|
+
onPointerdown: $event => (_ctx.onMainTabPointerDown('routing', $event)),
|
|
98
|
+
onClick: $event => (_ctx.onMainTabClick('routing', $event))
|
|
99
|
+
}, _toDisplayString(_ctx.t('tab.routing')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["tabindex", "aria-selected", "onPointerdown", "onClick"]),
|
|
88
100
|
_createElementVNode("button", {
|
|
89
101
|
type: "button",
|
|
90
102
|
class: _normalizeClass(["top-tab", { active: _ctx.isMainTabNavActive('sessions') }]),
|
|
@@ -173,23 +185,13 @@ return function render(_ctx, _cache) {
|
|
|
173
185
|
]))
|
|
174
186
|
: _createCommentVNode("v-if", true),
|
|
175
187
|
_createElementVNode("div", {
|
|
176
|
-
class: _normalizeClass(['app-shell',
|
|
188
|
+
class: _normalizeClass(['app-shell', 'sidebar-collapsed', { standalone: _ctx.sessionStandalone }])
|
|
177
189
|
}, [
|
|
178
190
|
(!_ctx.sessionStandalone)
|
|
179
191
|
? (_openBlock(), _createElementBlock("aside", {
|
|
180
192
|
key: 0,
|
|
181
193
|
class: "side-rail"
|
|
182
194
|
}, [
|
|
183
|
-
_createElementVNode("button", {
|
|
184
|
-
type: "button",
|
|
185
|
-
class: "side-rail-collapse-toggle",
|
|
186
|
-
"aria-pressed": _ctx.sidebarCollapsed ? 'true' : 'false',
|
|
187
|
-
"aria-label": _ctx.sidebarCollapsed ? _ctx.t('side.expand') : _ctx.t('side.collapse'),
|
|
188
|
-
title: _ctx.sidebarCollapsed ? _ctx.t('side.expand') : _ctx.t('side.collapse'),
|
|
189
|
-
onClick: _ctx.toggleSidebarCollapsed
|
|
190
|
-
}, [
|
|
191
|
-
_createElementVNode("span", { "aria-hidden": "true" }, _toDisplayString(_ctx.sidebarCollapsed ? '›' : '‹'), 1 /* TEXT */)
|
|
192
|
-
], 8 /* PROPS */, ["aria-pressed", "aria-label", "title", "onClick"]),
|
|
193
195
|
_createElementVNode("div", { class: "brand-block" }, [
|
|
194
196
|
_createElementVNode("div", { class: "brand-head" }, [
|
|
195
197
|
_createElementVNode("img", {
|
|
@@ -393,6 +395,16 @@ return function render(_ctx, _cache) {
|
|
|
393
395
|
"aria-label": _ctx.t('side.workspace')
|
|
394
396
|
}, [
|
|
395
397
|
_createElementVNode("div", { class: "side-section-title" }, _toDisplayString(_ctx.t('side.workspace')), 1 /* TEXT */),
|
|
398
|
+
_createElementVNode("button", {
|
|
399
|
+
id: "side-tab-routing",
|
|
400
|
+
"data-main-tab": "routing",
|
|
401
|
+
"aria-current": _ctx.mainTab === 'routing' ? 'page' : null,
|
|
402
|
+
class: _normalizeClass(['side-item', { active: _ctx.isMainTabNavActive('routing') }]),
|
|
403
|
+
onPointerdown: $event => (_ctx.onMainTabPointerDown('routing', $event)),
|
|
404
|
+
onClick: $event => (_ctx.onMainTabClick('routing', $event))
|
|
405
|
+
}, [
|
|
406
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('tab.routing')), 1 /* TEXT */)
|
|
407
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
|
|
396
408
|
_createElementVNode("button", {
|
|
397
409
|
id: "side-tab-sessions",
|
|
398
410
|
"data-main-tab": "sessions",
|
|
@@ -509,6 +521,21 @@ return function render(_ctx, _cache) {
|
|
|
509
521
|
_createElementVNode("div", { class: "side-item-meta" }, [
|
|
510
522
|
_createElementVNode("span", null, _toDisplayString(_ctx.t('plugins.textTools.tools.compress')), 1 /* TEXT */)
|
|
511
523
|
])
|
|
524
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"]),
|
|
525
|
+
_createElementVNode("button", {
|
|
526
|
+
id: "side-tab-plugins-file-sharing",
|
|
527
|
+
"data-main-tab": "plugins",
|
|
528
|
+
"data-plugins-id": "file-sharing",
|
|
529
|
+
"aria-current": _ctx.mainTab === 'plugins' && _ctx.pluginsActiveId === 'file-sharing' ? 'page' : null,
|
|
530
|
+
class: _normalizeClass(['side-item', { active: _ctx.isPluginsIdNavActive('file-sharing') }]),
|
|
531
|
+
onPointerdown: $event => (_ctx.onPluginsTabPointerDown('file-sharing', $event)),
|
|
532
|
+
onClick: $event => (_ctx.onPluginsTabClick('file-sharing', $event))
|
|
533
|
+
}, [
|
|
534
|
+
_createElementVNode("span", {
|
|
535
|
+
class: "side-item-icon",
|
|
536
|
+
"aria-hidden": "true"
|
|
537
|
+
}, "⇩"),
|
|
538
|
+
_createElementVNode("div", { class: "side-item-title" }, _toDisplayString(_ctx.t('plugins.fileSharing.title')), 1 /* TEXT */)
|
|
512
539
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"])
|
|
513
540
|
], 8 /* PROPS */, ["aria-label"]),
|
|
514
541
|
_createElementVNode("div", {
|
|
@@ -579,7 +606,7 @@ return function render(_ctx, _cache) {
|
|
|
579
606
|
onClick: _ctx.toggleLanguageMenu,
|
|
580
607
|
onKeydown: _withKeys(_withModifiers(_ctx.closeLanguageMenu, ["prevent"]), ["esc"])
|
|
581
608
|
}, [
|
|
582
|
-
_createTextVNode(_toDisplayString(_ctx.
|
|
609
|
+
_createTextVNode(_toDisplayString(_ctx.currentLanguageLabel()) + " ", 1 /* TEXT */),
|
|
583
610
|
(_openBlock(), _createElementBlock("svg", {
|
|
584
611
|
viewBox: "0 0 16 16",
|
|
585
612
|
fill: "none",
|
|
@@ -663,7 +690,12 @@ return function render(_ctx, _cache) {
|
|
|
663
690
|
class: "panel-header panel-header-refined"
|
|
664
691
|
}, [
|
|
665
692
|
_createElementVNode("div", { class: "panel-header-copy" }, [
|
|
666
|
-
|
|
693
|
+
(_ctx.mainTabKicker)
|
|
694
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
695
|
+
key: 0,
|
|
696
|
+
class: "panel-kicker"
|
|
697
|
+
}, _toDisplayString(_ctx.mainTabKicker), 1 /* TEXT */))
|
|
698
|
+
: _createCommentVNode("v-if", true),
|
|
667
699
|
_createElementVNode("h1", { class: "main-title" }, _toDisplayString(_ctx.mainTabTitle), 1 /* TEXT */)
|
|
668
700
|
])
|
|
669
701
|
]))
|
|
@@ -4254,6 +4286,198 @@ return function render(_ctx, _cache) {
|
|
|
4254
4286
|
])
|
|
4255
4287
|
], 8 /* PROPS */, ["onClick"]))
|
|
4256
4288
|
: _createCommentVNode("v-if", true),
|
|
4289
|
+
_withDirectives(_createElementVNode("section", {
|
|
4290
|
+
id: "panel-routing",
|
|
4291
|
+
class: "mode-content",
|
|
4292
|
+
role: "tabpanel",
|
|
4293
|
+
"aria-labelledby": "tab-routing"
|
|
4294
|
+
}, [
|
|
4295
|
+
_createElementVNode("div", { class: "routing-test" }, [
|
|
4296
|
+
_createElementVNode("form", {
|
|
4297
|
+
novalidate: "",
|
|
4298
|
+
onSubmit: _withModifiers(_ctx.runModelTest, ["prevent"]),
|
|
4299
|
+
"aria-busy": _ctx.modelTestRunning
|
|
4300
|
+
}, [
|
|
4301
|
+
_createElementVNode("fieldset", {
|
|
4302
|
+
disabled: _ctx.modelTestRunning || _ctx.modelTestLoading
|
|
4303
|
+
}, [
|
|
4304
|
+
_createElementVNode("legend", { class: "routing-test-legend" }, _toDisplayString(_ctx.t('modelTest.selection')), 1 /* TEXT */),
|
|
4305
|
+
_createElementVNode("div", { class: "routing-test-heading" }, [
|
|
4306
|
+
_createElementVNode("div", {
|
|
4307
|
+
class: "segmented-control",
|
|
4308
|
+
role: "group",
|
|
4309
|
+
"aria-label": _ctx.t('modelTest.source')
|
|
4310
|
+
}, [
|
|
4311
|
+
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(['codex', 'pi'], (target) => {
|
|
4312
|
+
return _createElementVNode("button", {
|
|
4313
|
+
key: target,
|
|
4314
|
+
type: "button",
|
|
4315
|
+
class: _normalizeClass(['segment', { active: _ctx.modelTestTarget === target }]),
|
|
4316
|
+
"aria-pressed": _ctx.modelTestTarget === target,
|
|
4317
|
+
onClick: $event => (_ctx.setModelTestTarget(target))
|
|
4318
|
+
}, _toDisplayString(target === 'codex' ? 'Codex' : 'Pi'), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"])
|
|
4319
|
+
}), 64 /* STABLE_FRAGMENT */))
|
|
4320
|
+
], 8 /* PROPS */, ["aria-label"]),
|
|
4321
|
+
_createElementVNode("button", {
|
|
4322
|
+
type: "button",
|
|
4323
|
+
class: "btn-tool routing-icon-btn",
|
|
4324
|
+
disabled: _ctx.modelTestLoading || _ctx.modelTestRunning,
|
|
4325
|
+
"aria-label": _ctx.t('routing.refresh'),
|
|
4326
|
+
title: _ctx.t('routing.refresh'),
|
|
4327
|
+
onClick: _ctx.loadModelTestCatalog
|
|
4328
|
+
}, [
|
|
4329
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
4330
|
+
viewBox: "0 0 24 24",
|
|
4331
|
+
fill: "none",
|
|
4332
|
+
stroke: "currentColor",
|
|
4333
|
+
"stroke-width": "1.75",
|
|
4334
|
+
focusable: "false"
|
|
4335
|
+
}, [
|
|
4336
|
+
_createElementVNode("path", { d: "M20 7v5h-5M4 17v-5h5M6 7a7 7 0 0 1 12-1l2 3M4 15l2 3a7 7 0 0 0 12-1" })
|
|
4337
|
+
]))
|
|
4338
|
+
], 8 /* PROPS */, ["disabled", "aria-label", "title", "onClick"])
|
|
4339
|
+
]),
|
|
4340
|
+
_createElementVNode("div", { class: "routing-form-head" }, [
|
|
4341
|
+
_createElementVNode("label", { class: "routing-field" }, [
|
|
4342
|
+
_createElementVNode("span", { class: "form-label" }, _toDisplayString(_ctx.t('routing.provider')), 1 /* TEXT */),
|
|
4343
|
+
_withDirectives(_createElementVNode("select", {
|
|
4344
|
+
class: "model-select",
|
|
4345
|
+
"onUpdate:modelValue": $event => ((_ctx.modelTestProvider) = $event),
|
|
4346
|
+
onChange: _ctx.selectModelTestProvider
|
|
4347
|
+
}, [
|
|
4348
|
+
_createElementVNode("option", {
|
|
4349
|
+
value: "",
|
|
4350
|
+
disabled: ""
|
|
4351
|
+
}, _toDisplayString(_ctx.t('routing.selectProvider')), 1 /* TEXT */),
|
|
4352
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.modelTestProviders(), (provider) => {
|
|
4353
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
4354
|
+
key: provider.name,
|
|
4355
|
+
value: provider.name
|
|
4356
|
+
}, _toDisplayString(provider.name), 9 /* TEXT, PROPS */, ["value"]))
|
|
4357
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
4358
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "onChange"]), [
|
|
4359
|
+
[_vModelSelect, _ctx.modelTestProvider]
|
|
4360
|
+
])
|
|
4361
|
+
]),
|
|
4362
|
+
_createElementVNode("label", { class: "routing-field" }, [
|
|
4363
|
+
_createElementVNode("span", { class: "form-label" }, _toDisplayString(_ctx.t('routing.model')), 1 /* TEXT */),
|
|
4364
|
+
_withDirectives(_createElementVNode("select", {
|
|
4365
|
+
class: "model-select",
|
|
4366
|
+
"onUpdate:modelValue": $event => ((_ctx.modelTestModel) = $event)
|
|
4367
|
+
}, [
|
|
4368
|
+
_createElementVNode("option", {
|
|
4369
|
+
value: "",
|
|
4370
|
+
disabled: ""
|
|
4371
|
+
}, _toDisplayString(_ctx.t('modelTest.selectModel')), 1 /* TEXT */),
|
|
4372
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.modelTestModels(), (model) => {
|
|
4373
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
4374
|
+
key: model,
|
|
4375
|
+
value: model
|
|
4376
|
+
}, _toDisplayString(model), 9 /* TEXT, PROPS */, ["value"]))
|
|
4377
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
4378
|
+
], 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
4379
|
+
[_vModelSelect, _ctx.modelTestModel]
|
|
4380
|
+
])
|
|
4381
|
+
])
|
|
4382
|
+
]),
|
|
4383
|
+
(!_ctx.modelTestLoading && !_ctx.modelTestModels().length)
|
|
4384
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4385
|
+
key: 0,
|
|
4386
|
+
class: "routing-hint"
|
|
4387
|
+
}, [
|
|
4388
|
+
_createTextVNode(_toDisplayString(_ctx.t('modelTest.empty')) + " ", 1 /* TEXT */),
|
|
4389
|
+
_createElementVNode("button", {
|
|
4390
|
+
type: "button",
|
|
4391
|
+
class: "btn-tool",
|
|
4392
|
+
onClick: $event => (_ctx.switchConfigMode(_ctx.modelTestTarget))
|
|
4393
|
+
}, _toDisplayString(_ctx.t('routing.openConfig')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
4394
|
+
]))
|
|
4395
|
+
: _createCommentVNode("v-if", true),
|
|
4396
|
+
_createElementVNode("label", { class: "routing-field routing-test-prompt" }, [
|
|
4397
|
+
_createElementVNode("span", { class: "form-label" }, _toDisplayString(_ctx.t('modelTest.prompt')), 1 /* TEXT */),
|
|
4398
|
+
_withDirectives(_createElementVNode("textarea", {
|
|
4399
|
+
class: "form-input",
|
|
4400
|
+
"onUpdate:modelValue": $event => ((_ctx.modelTestPrompt) = $event),
|
|
4401
|
+
rows: "4",
|
|
4402
|
+
maxlength: "8000"
|
|
4403
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
4404
|
+
[_vModelText, _ctx.modelTestPrompt]
|
|
4405
|
+
])
|
|
4406
|
+
]),
|
|
4407
|
+
_createElementVNode("div", { class: "routing-test-actions" }, [
|
|
4408
|
+
_createElementVNode("button", {
|
|
4409
|
+
type: "submit",
|
|
4410
|
+
class: "btn-tool btn-primary",
|
|
4411
|
+
disabled: !_ctx.modelTestPrompt.trim() || !_ctx.modelTestModels().length
|
|
4412
|
+
}, _toDisplayString(_ctx.t(_ctx.modelTestRunning ? 'modelTest.running' : 'modelTest.run')), 9 /* TEXT, PROPS */, ["disabled"])
|
|
4413
|
+
])
|
|
4414
|
+
], 8 /* PROPS */, ["disabled"])
|
|
4415
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit", "aria-busy"]),
|
|
4416
|
+
(_ctx.modelTestError)
|
|
4417
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4418
|
+
key: 0,
|
|
4419
|
+
class: "routing-error",
|
|
4420
|
+
role: "alert"
|
|
4421
|
+
}, _toDisplayString(_ctx.modelTestError), 1 /* TEXT */))
|
|
4422
|
+
: _createCommentVNode("v-if", true),
|
|
4423
|
+
_createElementVNode("div", {
|
|
4424
|
+
class: "routing-test-response",
|
|
4425
|
+
"aria-live": "polite",
|
|
4426
|
+
"aria-busy": _ctx.modelTestRunning
|
|
4427
|
+
}, [
|
|
4428
|
+
(_ctx.modelTestLoading)
|
|
4429
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4430
|
+
key: 0,
|
|
4431
|
+
class: "routing-hint",
|
|
4432
|
+
role: "status"
|
|
4433
|
+
}, _toDisplayString(_ctx.t('modelTest.loading')), 1 /* TEXT */))
|
|
4434
|
+
: (_ctx.modelTestResult)
|
|
4435
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
4436
|
+
_createElementVNode("div", { class: "routing-test-result-head" }, [
|
|
4437
|
+
_createElementVNode("strong", null, _toDisplayString(_ctx.modelTestResult.provider) + " / " + _toDisplayString(_ctx.modelTestResult.responseModel || _ctx.modelTestResult.model), 1 /* TEXT */),
|
|
4438
|
+
_createElementVNode("span", { class: "routing-hint" }, [
|
|
4439
|
+
_createTextVNode(_toDisplayString(_ctx.t(_ctx.modelTestRunning ? 'modelTest.running' : _ctx.modelTestResult.ok ? 'modelTest.completed' : 'modelTest.failed')), 1 /* TEXT */),
|
|
4440
|
+
(!_ctx.modelTestRunning)
|
|
4441
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
|
|
4442
|
+
_createTextVNode(" · " + _toDisplayString(_ctx.modelTestDuration()), 1 /* TEXT */)
|
|
4443
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4444
|
+
: _createCommentVNode("v-if", true)
|
|
4445
|
+
])
|
|
4446
|
+
]),
|
|
4447
|
+
_createElementVNode("p", { class: "routing-test-question" }, _toDisplayString(_ctx.modelTestResult.prompt), 1 /* TEXT */),
|
|
4448
|
+
(!_ctx.modelTestRunning && !_ctx.modelTestResult.ok)
|
|
4449
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4450
|
+
key: 0,
|
|
4451
|
+
class: "routing-error",
|
|
4452
|
+
role: "alert"
|
|
4453
|
+
}, _toDisplayString(_ctx.modelTestResult.error), 1 /* TEXT */))
|
|
4454
|
+
: (!_ctx.modelTestRunning)
|
|
4455
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
4456
|
+
(_ctx.modelTestRenderedResponse.html)
|
|
4457
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
4458
|
+
key: 0,
|
|
4459
|
+
class: "routing-test-answer",
|
|
4460
|
+
innerHTML: _ctx.modelTestRenderedResponse.html
|
|
4461
|
+
}, null, 8 /* PROPS */, ["innerHTML"]))
|
|
4462
|
+
: (_openBlock(), _createElementBlock("p", {
|
|
4463
|
+
key: 1,
|
|
4464
|
+
class: "routing-test-answer routing-test-plain"
|
|
4465
|
+
}, _toDisplayString(_ctx.modelTestResult.text), 1 /* TEXT */)),
|
|
4466
|
+
(_ctx.modelTestResult.incomplete)
|
|
4467
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4468
|
+
key: 2,
|
|
4469
|
+
class: "routing-hint"
|
|
4470
|
+
}, _toDisplayString(_ctx.t('modelTest.incomplete')), 1 /* TEXT */))
|
|
4471
|
+
: _createCommentVNode("v-if", true)
|
|
4472
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4473
|
+
: _createCommentVNode("v-if", true)
|
|
4474
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
4475
|
+
: _createCommentVNode("v-if", true)
|
|
4476
|
+
], 8 /* PROPS */, ["aria-busy"])
|
|
4477
|
+
])
|
|
4478
|
+
], 512 /* NEED_PATCH */), [
|
|
4479
|
+
[_vShow, _ctx.mainTab === 'routing']
|
|
4480
|
+
]),
|
|
4257
4481
|
_createCommentVNode(" 会话浏览模式 "),
|
|
4258
4482
|
_withDirectives(_createElementVNode("div", {
|
|
4259
4483
|
class: "mode-content session-browser-refined",
|
|
@@ -7262,7 +7486,20 @@ return function render(_ctx, _cache) {
|
|
|
7262
7486
|
class: "session-features feature-diagnostics",
|
|
7263
7487
|
onToggle: $event => ($event.target === $event.currentTarget && $event.currentTarget.open && _ctx.loadDiagnosticTargets())
|
|
7264
7488
|
}, [
|
|
7265
|
-
_createElementVNode("summary", { class: "feature-diagnostics-heading" },
|
|
7489
|
+
_createElementVNode("summary", { class: "feature-diagnostics-heading" }, [
|
|
7490
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.diagnostics')), 1 /* TEXT */),
|
|
7491
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
7492
|
+
class: "feature-diagnostics-chevron",
|
|
7493
|
+
viewBox: "0 0 24 24",
|
|
7494
|
+
fill: "none",
|
|
7495
|
+
stroke: "currentColor",
|
|
7496
|
+
"stroke-width": "1.75",
|
|
7497
|
+
"aria-hidden": "true",
|
|
7498
|
+
focusable: "false"
|
|
7499
|
+
}, [
|
|
7500
|
+
_createElementVNode("path", { d: "m9 5 7 7-7 7" })
|
|
7501
|
+
]))
|
|
7502
|
+
]),
|
|
7266
7503
|
_createElementVNode("div", { class: "feature-content" }, [
|
|
7267
7504
|
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.diagnosticScope')), 1 /* TEXT */),
|
|
7268
7505
|
(_ctx.featureError)
|
|
@@ -7300,7 +7537,7 @@ return function render(_ctx, _cache) {
|
|
|
7300
7537
|
_createElementVNode("div", { class: "feature-actions feature-diagnostic-controls" }, [
|
|
7301
7538
|
_createElementVNode("button", {
|
|
7302
7539
|
type: "button",
|
|
7303
|
-
class: "
|
|
7540
|
+
class: "feature-button feature-primary",
|
|
7304
7541
|
onClick: _ctx.startDiagnostics,
|
|
7305
7542
|
disabled: _ctx.diagnosticsReport?.status === 'running'
|
|
7306
7543
|
}, _toDisplayString(_ctx.t('features.check')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
@@ -7308,7 +7545,7 @@ return function render(_ctx, _cache) {
|
|
|
7308
7545
|
? (_openBlock(), _createElementBlock("button", {
|
|
7309
7546
|
key: 0,
|
|
7310
7547
|
type: "button",
|
|
7311
|
-
class: "
|
|
7548
|
+
class: "feature-button feature-quiet",
|
|
7312
7549
|
onClick: _ctx.cancelDiagnostics
|
|
7313
7550
|
}, _toDisplayString(_ctx.t('features.cancel')), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
7314
7551
|
: _createCommentVNode("v-if", true),
|
|
@@ -7364,12 +7601,12 @@ return function render(_ctx, _cache) {
|
|
|
7364
7601
|
_createElementVNode("footer", { class: "feature-record-actions feature-export-actions" }, [
|
|
7365
7602
|
_createElementVNode("button", {
|
|
7366
7603
|
type: "button",
|
|
7367
|
-
class: "
|
|
7604
|
+
class: "feature-button feature-quiet",
|
|
7368
7605
|
onClick: $event => (_ctx.exportDiagnostics('json'))
|
|
7369
7606
|
}, _toDisplayString(_ctx.t('features.exportJson')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
7370
7607
|
_createElementVNode("button", {
|
|
7371
7608
|
type: "button",
|
|
7372
|
-
class: "
|
|
7609
|
+
class: "feature-button feature-quiet",
|
|
7373
7610
|
onClick: $event => (_ctx.exportDiagnostics('md'))
|
|
7374
7611
|
}, _toDisplayString(_ctx.t('features.exportMarkdown')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
7375
7612
|
])
|
|
@@ -7448,22 +7685,31 @@ return function render(_ctx, _cache) {
|
|
|
7448
7685
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
7449
7686
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
7450
7687
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.theme.title')), 1 /* TEXT */),
|
|
7451
|
-
_createElementVNode("div", { class: "settings-toggle-group" }, [
|
|
7688
|
+
_createElementVNode("div", { class: "settings-toggle-group settings-theme-options" }, [
|
|
7452
7689
|
_createElementVNode("button", {
|
|
7453
7690
|
type: "button",
|
|
7454
7691
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'light' }]),
|
|
7692
|
+
"aria-pressed": _ctx.theme === 'light',
|
|
7455
7693
|
onClick: $event => (_ctx.setTheme('light'))
|
|
7456
|
-
}, _toDisplayString(_ctx.t('settings.theme.light')), 11 /* TEXT, CLASS, PROPS */, ["onClick"]),
|
|
7694
|
+
}, _toDisplayString(_ctx.t('settings.theme.light')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"]),
|
|
7457
7695
|
_createElementVNode("button", {
|
|
7458
7696
|
type: "button",
|
|
7459
7697
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'dark' }]),
|
|
7698
|
+
"aria-pressed": _ctx.theme === 'dark',
|
|
7460
7699
|
onClick: $event => (_ctx.setTheme('dark'))
|
|
7461
|
-
}, _toDisplayString(_ctx.t('settings.theme.dark')), 11 /* TEXT, CLASS, PROPS */, ["onClick"]),
|
|
7700
|
+
}, _toDisplayString(_ctx.t('settings.theme.dark')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"]),
|
|
7462
7701
|
_createElementVNode("button", {
|
|
7463
7702
|
type: "button",
|
|
7464
7703
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'ocean' }]),
|
|
7704
|
+
"aria-pressed": _ctx.theme === 'ocean',
|
|
7465
7705
|
onClick: $event => (_ctx.setTheme('ocean'))
|
|
7466
|
-
}, _toDisplayString(_ctx.t('settings.theme.ocean')), 11 /* TEXT, CLASS, PROPS */, ["onClick"])
|
|
7706
|
+
}, _toDisplayString(_ctx.t('settings.theme.ocean')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"]),
|
|
7707
|
+
_createElementVNode("button", {
|
|
7708
|
+
type: "button",
|
|
7709
|
+
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'violet' }]),
|
|
7710
|
+
"aria-pressed": _ctx.theme === 'violet',
|
|
7711
|
+
onClick: $event => (_ctx.setTheme('violet'))
|
|
7712
|
+
}, _toDisplayString(_ctx.t('settings.theme.violet')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"])
|
|
7467
7713
|
])
|
|
7468
7714
|
])
|
|
7469
7715
|
])
|
|
@@ -8349,8 +8595,7 @@ return function render(_ctx, _cache) {
|
|
|
8349
8595
|
}, [
|
|
8350
8596
|
_createElementVNode("div", { class: "selector-header plugins-sidebar-header" }, [
|
|
8351
8597
|
_createElementVNode("div", null, [
|
|
8352
|
-
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('plugins.sidebar.title')), 1 /* TEXT */)
|
|
8353
|
-
_createElementVNode("div", { class: "plugins-panel-note" }, _toDisplayString(_ctx.t('plugins.sidebar.note')), 1 /* TEXT */)
|
|
8598
|
+
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('plugins.sidebar.title')), 1 /* TEXT */)
|
|
8354
8599
|
])
|
|
8355
8600
|
]),
|
|
8356
8601
|
_createElementVNode("div", {
|
|
@@ -8360,6 +8605,7 @@ return function render(_ctx, _cache) {
|
|
|
8360
8605
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.pluginsCatalog, (plugin) => {
|
|
8361
8606
|
return (_openBlock(), _createElementBlock("button", {
|
|
8362
8607
|
key: 'plugin-' + plugin.id,
|
|
8608
|
+
"data-plugin-id": plugin.id,
|
|
8363
8609
|
type: "button",
|
|
8364
8610
|
class: _normalizeClass(['plugins-item', { active: _ctx.pluginsActiveId === plugin.id }]),
|
|
8365
8611
|
"aria-current": _ctx.pluginsActiveId === plugin.id ? 'page' : null,
|
|
@@ -8373,7 +8619,7 @@ return function render(_ctx, _cache) {
|
|
|
8373
8619
|
_createElementVNode("span", {
|
|
8374
8620
|
class: _normalizeClass(['pill', plugin.tone])
|
|
8375
8621
|
}, _toDisplayString(plugin.statusLabel), 3 /* TEXT, CLASS */)
|
|
8376
|
-
], 10 /* CLASS, PROPS */, ["aria-current", "disabled", "onClick"]))
|
|
8622
|
+
], 10 /* CLASS, PROPS */, ["data-plugin-id", "aria-current", "disabled", "onClick"]))
|
|
8377
8623
|
}), 128 /* KEYED_FRAGMENT */))
|
|
8378
8624
|
])
|
|
8379
8625
|
], 8 /* PROPS */, ["aria-label"]))
|
|
@@ -8407,13 +8653,7 @@ return function render(_ctx, _cache) {
|
|
|
8407
8653
|
}, [
|
|
8408
8654
|
_createElementVNode("div", { class: "plugins-panel-head" }, [
|
|
8409
8655
|
_createElementVNode("div", null, [
|
|
8410
|
-
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.title')), 1 /* TEXT */)
|
|
8411
|
-
(_ctx.pluginsActiveAttribution)
|
|
8412
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
8413
|
-
key: 0,
|
|
8414
|
-
class: "plugins-panel-note"
|
|
8415
|
-
}, _toDisplayString(_ctx.pluginsActiveAttribution), 1 /* TEXT */))
|
|
8416
|
-
: _createCommentVNode("v-if", true)
|
|
8656
|
+
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.title')), 1 /* TEXT */)
|
|
8417
8657
|
]),
|
|
8418
8658
|
(!_ctx.pluginsSidebarVisible)
|
|
8419
8659
|
? (_openBlock(), _createElementBlock("div", {
|
|
@@ -8501,15 +8741,10 @@ return function render(_ctx, _cache) {
|
|
|
8501
8741
|
key: 0,
|
|
8502
8742
|
class: "plugins-panel-note"
|
|
8503
8743
|
}, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.empty')), 1 /* TEXT */))
|
|
8504
|
-
: (
|
|
8505
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
8506
|
-
key: 1,
|
|
8507
|
-
class: "plugins-panel-note"
|
|
8508
|
-
}, _toDisplayString(_ctx.promptComposerActiveTemplate.description), 1 /* TEXT */))
|
|
8509
|
-
: _createCommentVNode("v-if", true),
|
|
8744
|
+
: _createCommentVNode("v-if", true),
|
|
8510
8745
|
(_ctx.promptComposerActiveTemplate && !_ctx.promptComposerActiveTemplate.isBuiltin)
|
|
8511
8746
|
? (_openBlock(), _createElementBlock("div", {
|
|
8512
|
-
key:
|
|
8747
|
+
key: 1,
|
|
8513
8748
|
class: "prompt-compose-actions"
|
|
8514
8749
|
}, [
|
|
8515
8750
|
_createElementVNode("button", {
|
|
@@ -8529,15 +8764,9 @@ return function render(_ctx, _cache) {
|
|
|
8529
8764
|
_createElementVNode("div", { class: "prompt-vars-head" }, [
|
|
8530
8765
|
_createElementVNode("div", null, [
|
|
8531
8766
|
_createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.vars.title')), 1 /* TEXT */),
|
|
8532
|
-
(!_ctx.promptComposerActiveTemplate.isBuiltin)
|
|
8533
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
8534
|
-
key: 0,
|
|
8535
|
-
class: "plugins-panel-note"
|
|
8536
|
-
}, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.varsHint')), 1 /* TEXT */))
|
|
8537
|
-
: _createCommentVNode("v-if", true),
|
|
8538
8767
|
(_ctx.promptComposerMissingVars.length)
|
|
8539
8768
|
? (_openBlock(), _createElementBlock("div", {
|
|
8540
|
-
key:
|
|
8769
|
+
key: 0,
|
|
8541
8770
|
class: "plugins-panel-note"
|
|
8542
8771
|
}, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.missingCount', { count: _ctx.promptComposerMissingVars.length })), 1 /* TEXT */))
|
|
8543
8772
|
: _createCommentVNode("v-if", true)
|
|
@@ -8595,8 +8824,7 @@ return function render(_ctx, _cache) {
|
|
|
8595
8824
|
_createElementVNode("div", { class: "prompt-preview-block prompt-compose-preview" }, [
|
|
8596
8825
|
_createElementVNode("div", { class: "prompt-vars-head" }, [
|
|
8597
8826
|
_createElementVNode("div", null, [
|
|
8598
|
-
_createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.outputTitle')), 1 /* TEXT */)
|
|
8599
|
-
_createElementVNode("div", { class: "plugins-panel-note" }, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.outputHint')), 1 /* TEXT */)
|
|
8827
|
+
_createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.outputTitle')), 1 /* TEXT */)
|
|
8600
8828
|
]),
|
|
8601
8829
|
_createElementVNode("button", {
|
|
8602
8830
|
type: "button",
|
|
@@ -8842,12 +9070,6 @@ return function render(_ctx, _cache) {
|
|
|
8842
9070
|
class: "plugins-panel-note"
|
|
8843
9071
|
}, _toDisplayString(_ctx.t('plugins.promptTemplates.editor.builtinReadOnly')), 1 /* TEXT */))
|
|
8844
9072
|
: _createCommentVNode("v-if", true),
|
|
8845
|
-
(_ctx.promptTemplateDraft.isBuiltin && (_ctx.promptTemplateDraft.createdBy || (_ctx.promptTemplateDraft.maintainers && _ctx.promptTemplateDraft.maintainers.length)))
|
|
8846
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
8847
|
-
key: 1,
|
|
8848
|
-
class: "plugins-panel-note"
|
|
8849
|
-
}, _toDisplayString(_ctx.t('plugins.meta.attribution', { createdBy: _ctx.promptTemplateDraft.createdBy || '', maintainers: (_ctx.promptTemplateDraft.maintainers || []).join(', ') })), 1 /* TEXT */))
|
|
8850
|
-
: _createCommentVNode("v-if", true),
|
|
8851
9073
|
_withDirectives(_createElementVNode("input", {
|
|
8852
9074
|
class: "form-input",
|
|
8853
9075
|
type: "text",
|
|
@@ -8957,13 +9179,7 @@ return function render(_ctx, _cache) {
|
|
|
8957
9179
|
}, [
|
|
8958
9180
|
_createElementVNode("div", { class: "plugins-panel-head" }, [
|
|
8959
9181
|
_createElementVNode("div", null, [
|
|
8960
|
-
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.textTools.title')), 1 /* TEXT */)
|
|
8961
|
-
(_ctx.pluginsActiveAttribution)
|
|
8962
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
8963
|
-
key: 0,
|
|
8964
|
-
class: "plugins-panel-note"
|
|
8965
|
-
}, _toDisplayString(_ctx.pluginsActiveAttribution), 1 /* TEXT */))
|
|
8966
|
-
: _createCommentVNode("v-if", true)
|
|
9182
|
+
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.textTools.title')), 1 /* TEXT */)
|
|
8967
9183
|
])
|
|
8968
9184
|
]),
|
|
8969
9185
|
_createElementVNode("div", {
|
|
@@ -9023,10 +9239,197 @@ return function render(_ctx, _cache) {
|
|
|
9023
9239
|
])
|
|
9024
9240
|
])
|
|
9025
9241
|
]))
|
|
9026
|
-
: (
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9242
|
+
: (_ctx.pluginsActiveId === 'file-sharing')
|
|
9243
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
9244
|
+
key: 4,
|
|
9245
|
+
class: "plugins-panel",
|
|
9246
|
+
id: "plugin-file-sharing"
|
|
9247
|
+
}, [
|
|
9248
|
+
_createElementVNode("div", { class: "plugins-panel-head" }, [
|
|
9249
|
+
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.fileSharing.title')), 1 /* TEXT */),
|
|
9250
|
+
_createElementVNode("div", { class: "file-sharing-actions" }, [
|
|
9251
|
+
_createElementVNode("button", {
|
|
9252
|
+
type: "button",
|
|
9253
|
+
class: "btn-mini",
|
|
9254
|
+
disabled: _ctx.fileSharingBusy,
|
|
9255
|
+
onClick: $event => (_ctx.$refs.fileSharingFiles.click())
|
|
9256
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.chooseFiles')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
9257
|
+
_createElementVNode("button", {
|
|
9258
|
+
type: "button",
|
|
9259
|
+
class: "btn-mini",
|
|
9260
|
+
disabled: _ctx.fileSharingBusy,
|
|
9261
|
+
onClick: $event => (_ctx.$refs.fileSharingFolder.click())
|
|
9262
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.chooseFolder')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
9263
|
+
_createElementVNode("button", {
|
|
9264
|
+
type: "button",
|
|
9265
|
+
class: "btn-mini",
|
|
9266
|
+
disabled: _ctx.fileSharingBusy,
|
|
9267
|
+
onClick: _ctx.refreshFileSharing
|
|
9268
|
+
}, _toDisplayString(_ctx.t('common.refresh')), 9 /* TEXT, PROPS */, ["disabled", "onClick"])
|
|
9269
|
+
])
|
|
9270
|
+
]),
|
|
9271
|
+
_createElementVNode("input", {
|
|
9272
|
+
ref: "fileSharingFiles",
|
|
9273
|
+
id: "file-sharing-files",
|
|
9274
|
+
type: "file",
|
|
9275
|
+
multiple: "",
|
|
9276
|
+
hidden: "",
|
|
9277
|
+
onChange: $event => (_ctx.selectFileSharingItems($event, false))
|
|
9278
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
9279
|
+
_createElementVNode("input", {
|
|
9280
|
+
ref: "fileSharingFolder",
|
|
9281
|
+
id: "file-sharing-folder",
|
|
9282
|
+
type: "file",
|
|
9283
|
+
webkitdirectory: "",
|
|
9284
|
+
hidden: "",
|
|
9285
|
+
onChange: $event => (_ctx.selectFileSharingItems($event, true))
|
|
9286
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
9287
|
+
(_ctx.fileSharingError)
|
|
9288
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
9289
|
+
key: 0,
|
|
9290
|
+
role: "alert",
|
|
9291
|
+
class: "state-message error"
|
|
9292
|
+
}, _toDisplayString(_ctx.fileSharingError), 1 /* TEXT */))
|
|
9293
|
+
: _createCommentVNode("v-if", true),
|
|
9294
|
+
(_ctx.fileSharingPending)
|
|
9295
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
9296
|
+
key: 1,
|
|
9297
|
+
class: "file-sharing-pending"
|
|
9298
|
+
}, [
|
|
9299
|
+
_createElementVNode("p", { class: "plugins-panel-note" }, _toDisplayString(_ctx.t('plugins.fileSharing.confirm')), 1 /* TEXT */),
|
|
9300
|
+
_createElementVNode("ul", {
|
|
9301
|
+
class: "file-sharing-items",
|
|
9302
|
+
"aria-live": "polite"
|
|
9303
|
+
}, [
|
|
9304
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.fileSharingPending.entries, (file, index) => {
|
|
9305
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
9306
|
+
key: index,
|
|
9307
|
+
dir: "auto"
|
|
9308
|
+
}, _toDisplayString(file.name), 1 /* TEXT */))
|
|
9309
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
9310
|
+
]),
|
|
9311
|
+
_createElementVNode("div", { class: "file-sharing-actions" }, [
|
|
9312
|
+
_createElementVNode("button", {
|
|
9313
|
+
type: "button",
|
|
9314
|
+
class: "btn-mini",
|
|
9315
|
+
id: "upload-file-sharing",
|
|
9316
|
+
disabled: _ctx.fileSharingBusy,
|
|
9317
|
+
onClick: _ctx.uploadFileSharingItems
|
|
9318
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.upload')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
9319
|
+
_createElementVNode("button", {
|
|
9320
|
+
type: "button",
|
|
9321
|
+
class: "btn-mini",
|
|
9322
|
+
id: "cancel-file-sharing",
|
|
9323
|
+
disabled: _ctx.fileSharingBusy,
|
|
9324
|
+
onClick: $event => (_ctx.fileSharingPending = null)
|
|
9325
|
+
}, _toDisplayString(_ctx.t('common.cancel')), 9 /* TEXT, PROPS */, ["disabled", "onClick"])
|
|
9326
|
+
])
|
|
9327
|
+
]))
|
|
9328
|
+
: _createCommentVNode("v-if", true),
|
|
9329
|
+
(_ctx.fileSharingBusy)
|
|
9330
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
9331
|
+
key: 2,
|
|
9332
|
+
role: "status",
|
|
9333
|
+
class: "plugins-panel-note"
|
|
9334
|
+
}, _toDisplayString(_ctx.t('common.loading')), 1 /* TEXT */))
|
|
9335
|
+
: (!_ctx.fileSharingBatches.length)
|
|
9336
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
9337
|
+
key: 3,
|
|
9338
|
+
class: "skills-empty-state"
|
|
9339
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.empty')), 1 /* TEXT */))
|
|
9340
|
+
: _createCommentVNode("v-if", true),
|
|
9341
|
+
(_ctx.fileSharingBatches.length)
|
|
9342
|
+
? (_openBlock(), _createElementBlock("ul", {
|
|
9343
|
+
key: 4,
|
|
9344
|
+
class: "file-sharing-items file-sharing-batches"
|
|
9345
|
+
}, [
|
|
9346
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.fileSharingBatches, (batch) => {
|
|
9347
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
9348
|
+
key: batch.id
|
|
9349
|
+
}, [
|
|
9350
|
+
_createElementVNode("div", { class: "file-sharing-row" }, [
|
|
9351
|
+
_createElementVNode("strong", { dir: "auto" }, _toDisplayString(batch.folder || _ctx.t('plugins.fileSharing.files', { count: batch.files.length })), 1 /* TEXT */),
|
|
9352
|
+
_createElementVNode("button", {
|
|
9353
|
+
type: "button",
|
|
9354
|
+
class: "btn-mini file-sharing-icon file-sharing-remove",
|
|
9355
|
+
"aria-label": _ctx.t('plugins.fileSharing.remove'),
|
|
9356
|
+
title: _ctx.t('plugins.fileSharing.remove'),
|
|
9357
|
+
disabled: _ctx.fileSharingBusy,
|
|
9358
|
+
onClick: $event => (_ctx.removeFileSharingBatch(batch.id))
|
|
9359
|
+
}, [
|
|
9360
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
9361
|
+
viewBox: "0 0 24 24",
|
|
9362
|
+
fill: "none",
|
|
9363
|
+
stroke: "currentColor",
|
|
9364
|
+
"stroke-width": "1.8",
|
|
9365
|
+
"stroke-linecap": "round",
|
|
9366
|
+
"stroke-linejoin": "round",
|
|
9367
|
+
focusable: "false"
|
|
9368
|
+
}, [
|
|
9369
|
+
_createElementVNode("path", { d: "M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6m5 4v6m4-6v6" })
|
|
9370
|
+
]))
|
|
9371
|
+
], 8 /* PROPS */, ["aria-label", "title", "disabled", "onClick"])
|
|
9372
|
+
]),
|
|
9373
|
+
_createElementVNode("ul", { class: "file-sharing-items" }, [
|
|
9374
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(batch.files, (file, index) => {
|
|
9375
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
9376
|
+
key: index,
|
|
9377
|
+
class: "file-sharing-row"
|
|
9378
|
+
}, [
|
|
9379
|
+
_createElementVNode("span", { dir: "auto" }, _toDisplayString(file.name), 1 /* TEXT */),
|
|
9380
|
+
_createElementVNode("span", { class: "file-sharing-size" }, _toDisplayString(_ctx.t('plugins.fileSharing.bytes', { size: file.size })), 1 /* TEXT */),
|
|
9381
|
+
_createElementVNode("a", {
|
|
9382
|
+
class: "btn-mini file-sharing-icon",
|
|
9383
|
+
"aria-label": _ctx.t('plugins.fileSharing.download'),
|
|
9384
|
+
title: _ctx.t('plugins.fileSharing.download'),
|
|
9385
|
+
href: _ctx.fileSharingDownloadUrl(batch.id, index),
|
|
9386
|
+
download: "",
|
|
9387
|
+
referrerpolicy: "no-referrer"
|
|
9388
|
+
}, [
|
|
9389
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
9390
|
+
viewBox: "0 0 24 24",
|
|
9391
|
+
fill: "none",
|
|
9392
|
+
stroke: "currentColor",
|
|
9393
|
+
"stroke-width": "1.8",
|
|
9394
|
+
"stroke-linecap": "round",
|
|
9395
|
+
"stroke-linejoin": "round",
|
|
9396
|
+
focusable: "false"
|
|
9397
|
+
}, [
|
|
9398
|
+
_createElementVNode("path", { d: "M12 3v12m-5-5 5 5 5-5M4 16v4h16v-4" })
|
|
9399
|
+
]))
|
|
9400
|
+
], 8 /* PROPS */, ["aria-label", "title", "href"]),
|
|
9401
|
+
_createElementVNode("button", {
|
|
9402
|
+
type: "button",
|
|
9403
|
+
class: "btn-mini file-sharing-icon file-sharing-copy",
|
|
9404
|
+
"aria-label": _ctx.t('plugins.fileSharing.copyLink'),
|
|
9405
|
+
title: _ctx.t('plugins.fileSharing.copyLink'),
|
|
9406
|
+
disabled: _ctx.fileSharingBusy,
|
|
9407
|
+
onClick: $event => (_ctx.copyFileSharingLink(batch.id, index))
|
|
9408
|
+
}, [
|
|
9409
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
9410
|
+
viewBox: "0 0 24 24",
|
|
9411
|
+
fill: "none",
|
|
9412
|
+
stroke: "currentColor",
|
|
9413
|
+
"stroke-width": "1.8",
|
|
9414
|
+
"stroke-linecap": "round",
|
|
9415
|
+
"stroke-linejoin": "round",
|
|
9416
|
+
focusable: "false"
|
|
9417
|
+
}, [
|
|
9418
|
+
_createElementVNode("path", { d: "M10 13a4 4 0 0 0 6 .5l3-3a4 4 0 0 0-5.5-5.5l-1.7 1.7m2.2 4.3a4 4 0 0 0-6-.5l-3 3a4 4 0 0 0 5.5 5.5l1.7-1.7" })
|
|
9419
|
+
]))
|
|
9420
|
+
], 8 /* PROPS */, ["aria-label", "title", "disabled", "onClick"])
|
|
9421
|
+
]))
|
|
9422
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
9423
|
+
])
|
|
9424
|
+
]))
|
|
9425
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
9426
|
+
]))
|
|
9427
|
+
: _createCommentVNode("v-if", true)
|
|
9428
|
+
]))
|
|
9429
|
+
: (_openBlock(), _createElementBlock("div", {
|
|
9430
|
+
key: 5,
|
|
9431
|
+
class: "skills-empty-state"
|
|
9432
|
+
}, _toDisplayString(_ctx.t('plugins.promptTemplates.noPluginSelected')), 1 /* TEXT */))
|
|
9030
9433
|
], 8 /* PROPS */, ["aria-label"])
|
|
9031
9434
|
], 2 /* CLASS */)
|
|
9032
9435
|
], 512 /* NEED_PATCH */), [
|
|
@@ -9109,13 +9512,7 @@ return function render(_ctx, _cache) {
|
|
|
9109
9512
|
value: _ctx.projectClaudeMdPath,
|
|
9110
9513
|
onChange: $event => (_ctx.setProjectClaudeMdPathManual($event.target.value))
|
|
9111
9514
|
}, null, 40 /* PROPS, NEED_HYDRATION */, ["placeholder", "value", "onChange"])
|
|
9112
|
-
])
|
|
9113
|
-
(_ctx.projectClaudeMdPath)
|
|
9114
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
9115
|
-
key: 0,
|
|
9116
|
-
class: "form-hint project-path-detected"
|
|
9117
|
-
}, _toDisplayString(_ctx.t('prompts.project.detected', { path: _ctx.projectClaudeMdPath })), 1 /* TEXT */))
|
|
9118
|
-
: _createCommentVNode("v-if", true)
|
|
9515
|
+
])
|
|
9119
9516
|
]))
|
|
9120
9517
|
: _createCommentVNode("v-if", true),
|
|
9121
9518
|
(_ctx.promptsSubTab !== 'system')
|
|
@@ -9693,31 +10090,84 @@ return function render(_ctx, _cache) {
|
|
|
9693
10090
|
(_ctx.promptsSubTab === 'system')
|
|
9694
10091
|
? (_openBlock(), _createElementBlock("div", { key: 2 }, [
|
|
9695
10092
|
_createElementVNode("div", { class: "sys-prompt-controls" }, [
|
|
10093
|
+
_createElementVNode("div", { class: "sys-prompt-control-group" }, [
|
|
10094
|
+
_createElementVNode("label", {
|
|
10095
|
+
class: "form-label",
|
|
10096
|
+
for: "sys-prompt-file-select"
|
|
10097
|
+
}, _toDisplayString(_ctx.t('sysPrompt.fileLabel')), 1 /* TEXT */),
|
|
10098
|
+
_createElementVNode("select", {
|
|
10099
|
+
id: "sys-prompt-file-select",
|
|
10100
|
+
class: "form-input sys-prompt-select",
|
|
10101
|
+
value: _ctx.currentSysPromptFileName(),
|
|
10102
|
+
"aria-busy": _ctx.sysPromptFilesLoading,
|
|
10103
|
+
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible,
|
|
10104
|
+
onFocus: _ctx.loadSystemPromptFiles,
|
|
10105
|
+
onPointerdown: _ctx.loadSystemPromptFiles,
|
|
10106
|
+
onKeydown: [
|
|
10107
|
+
_withKeys(_ctx.loadSystemPromptFiles, ["enter"]),
|
|
10108
|
+
_withKeys(_ctx.loadSystemPromptFiles, ["space"])
|
|
10109
|
+
],
|
|
10110
|
+
onChange: $event => (_ctx.switchSysPromptFileName($event.target.value, $event))
|
|
10111
|
+
}, [
|
|
10112
|
+
(!_ctx.sysPromptFiles.some(file => file.filename === _ctx.currentSysPromptFileName()))
|
|
10113
|
+
? (_openBlock(), _createElementBlock("option", {
|
|
10114
|
+
key: 0,
|
|
10115
|
+
value: _ctx.currentSysPromptFileName(),
|
|
10116
|
+
disabled: ""
|
|
10117
|
+
}, _toDisplayString(_ctx.currentSysPromptFileName()), 9 /* TEXT, PROPS */, ["value"]))
|
|
10118
|
+
: _createCommentVNode("v-if", true),
|
|
10119
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sysPromptFiles, (file) => {
|
|
10120
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
10121
|
+
key: file.filename,
|
|
10122
|
+
value: file.filename
|
|
10123
|
+
}, _toDisplayString(file.filename) + _toDisplayString(file.exists ? '' : ' · ' + _ctx.t('common.notExistsWillCreateOnSave')), 9 /* TEXT, PROPS */, ["value"]))
|
|
10124
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
10125
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["value", "aria-busy", "disabled", "onFocus", "onPointerdown", "onKeydown", "onChange"]),
|
|
10126
|
+
(_ctx.sysPromptFilesLoading)
|
|
10127
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10128
|
+
key: 0,
|
|
10129
|
+
class: "form-hint",
|
|
10130
|
+
role: "status"
|
|
10131
|
+
}, _toDisplayString(_ctx.t('sysPrompt.filesLoading')), 1 /* TEXT */))
|
|
10132
|
+
: _createCommentVNode("v-if", true)
|
|
10133
|
+
]),
|
|
9696
10134
|
_createElementVNode("div", { class: "sys-prompt-control-group" }, [
|
|
9697
10135
|
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.scope.label')), 1 /* TEXT */),
|
|
9698
10136
|
_createElementVNode("select", {
|
|
9699
10137
|
class: "form-input sys-prompt-select",
|
|
9700
10138
|
value: _ctx.sysPromptScope,
|
|
9701
10139
|
onChange: $event => (_ctx.switchSysPromptScope($event.target.value)),
|
|
9702
|
-
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible
|
|
10140
|
+
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible || _ctx.hasSysPromptContentChanged()
|
|
9703
10141
|
}, [
|
|
9704
10142
|
_createElementVNode("option", { value: "global" }, _toDisplayString(_ctx.t('sysPrompt.scope.global')), 1 /* TEXT */),
|
|
9705
10143
|
_createElementVNode("option", { value: "project" }, _toDisplayString(_ctx.t('sysPrompt.scope.project')), 1 /* TEXT */)
|
|
9706
10144
|
], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange", "disabled"])
|
|
9707
10145
|
]),
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
10146
|
+
(!_ctx.isSysPromptCustomFile())
|
|
10147
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10148
|
+
key: 0,
|
|
10149
|
+
class: "sys-prompt-control-group"
|
|
10150
|
+
}, [
|
|
10151
|
+
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.mode.label')), 1 /* TEXT */),
|
|
10152
|
+
_createElementVNode("select", {
|
|
10153
|
+
class: "form-input sys-prompt-select",
|
|
10154
|
+
value: _ctx.sysPromptMode,
|
|
10155
|
+
onChange: $event => (_ctx.switchSysPromptMode($event.target.value)),
|
|
10156
|
+
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible || _ctx.hasSysPromptContentChanged()
|
|
10157
|
+
}, [
|
|
10158
|
+
_createElementVNode("option", { value: "append" }, _toDisplayString(_ctx.t('sysPrompt.mode.append')), 1 /* TEXT */),
|
|
10159
|
+
_createElementVNode("option", { value: "system" }, _toDisplayString(_ctx.t('sysPrompt.mode.system')), 1 /* TEXT */)
|
|
10160
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange", "disabled"])
|
|
10161
|
+
]))
|
|
10162
|
+
: _createCommentVNode("v-if", true)
|
|
9720
10163
|
]),
|
|
10164
|
+
(_ctx.sysPromptFilesError)
|
|
10165
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10166
|
+
key: 0,
|
|
10167
|
+
class: "state-message error",
|
|
10168
|
+
role: "alert"
|
|
10169
|
+
}, _toDisplayString(_ctx.sysPromptFilesError), 1 /* TEXT */))
|
|
10170
|
+
: _createCommentVNode("v-if", true),
|
|
9721
10171
|
_createElementVNode("div", { class: "prompts-editor" }, [
|
|
9722
10172
|
_createElementVNode("div", { class: "prompts-editor-toolbar" }, [
|
|
9723
10173
|
_createElementVNode("div", { class: "prompts-path-summary-wrap" }, [
|
|
@@ -9874,7 +10324,7 @@ return function render(_ctx, _cache) {
|
|
|
9874
10324
|
_createElementVNode("button", {
|
|
9875
10325
|
class: "btn-mini btn-confirm-mini",
|
|
9876
10326
|
onClick: _ctx.applySystemPrompt,
|
|
9877
|
-
disabled: _ctx.sysPromptSaving || _ctx.sysPromptLoading || _ctx.sysPromptDiffLoading || (!_ctx.sysPromptDiffVisible && !_ctx.hasSysPromptContentChanged()) || (_ctx.sysPromptDiffVisible && !_ctx.sysPromptDiffHasChangesValue),
|
|
10327
|
+
disabled: _ctx.sysPromptFileMissing || _ctx.sysPromptSaving || _ctx.sysPromptLoading || _ctx.sysPromptDiffLoading || (!_ctx.sysPromptDiffVisible && !_ctx.hasSysPromptContentChanged()) || (_ctx.sysPromptDiffVisible && !_ctx.sysPromptDiffHasChangesValue),
|
|
9878
10328
|
title: _ctx.sysPromptDiffVisible ? _ctx.t('common.save') : _ctx.t('common.preview')
|
|
9879
10329
|
}, [
|
|
9880
10330
|
(_ctx.sysPromptDiffVisible)
|
|
@@ -10213,10 +10663,61 @@ return function render(_ctx, _cache) {
|
|
|
10213
10663
|
])
|
|
10214
10664
|
])
|
|
10215
10665
|
], 2 /* CLASS */),
|
|
10666
|
+
(_ctx.showAppUpdateModal)
|
|
10667
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10668
|
+
key: 4,
|
|
10669
|
+
class: "modal-overlay",
|
|
10670
|
+
onClick: _withModifiers(_ctx.closeAppUpdateModal, ["self"])
|
|
10671
|
+
}, [
|
|
10672
|
+
_createElementVNode("div", {
|
|
10673
|
+
class: "modal app-update-modal",
|
|
10674
|
+
role: "dialog",
|
|
10675
|
+
"aria-modal": "true",
|
|
10676
|
+
"aria-labelledby": "app-update-title",
|
|
10677
|
+
"aria-describedby": "app-update-versions app-update-hint"
|
|
10678
|
+
}, [
|
|
10679
|
+
_createElementVNode("div", {
|
|
10680
|
+
id: "app-update-title",
|
|
10681
|
+
class: "modal-title"
|
|
10682
|
+
}, _toDisplayString(_ctx.t('side.update.available')), 1 /* TEXT */),
|
|
10683
|
+
_createElementVNode("div", {
|
|
10684
|
+
id: "app-update-versions",
|
|
10685
|
+
class: "form-group confirm-dialog-message"
|
|
10686
|
+
}, _toDisplayString(_ctx.t('side.update.metaVersions', { current: _ctx.normalizePackageVersion(_ctx.appVersion), latest: _ctx.normalizePackageVersion(_ctx.appLatestVersion) })), 1 /* TEXT */),
|
|
10687
|
+
_createElementVNode("div", { class: "docs-command-box" }, [
|
|
10688
|
+
_createElementVNode("input", {
|
|
10689
|
+
id: "app-update-command",
|
|
10690
|
+
class: "install-command",
|
|
10691
|
+
type: "text",
|
|
10692
|
+
value: _ctx.appUpdateCommand(),
|
|
10693
|
+
readonly: "",
|
|
10694
|
+
"aria-label": _ctx.t('common.command'),
|
|
10695
|
+
onFocus: $event => ($event.target.select())
|
|
10696
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["value", "aria-label", "onFocus"]),
|
|
10697
|
+
_createElementVNode("button", {
|
|
10698
|
+
type: "button",
|
|
10699
|
+
class: "btn-mini docs-copy-btn",
|
|
10700
|
+
onClick: $event => (_ctx.copyInstallCommand(_ctx.appUpdateCommand()))
|
|
10701
|
+
}, _toDisplayString(_ctx.t('common.copy')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
10702
|
+
]),
|
|
10703
|
+
_createElementVNode("p", {
|
|
10704
|
+
id: "app-update-hint",
|
|
10705
|
+
class: "form-hint"
|
|
10706
|
+
}, _toDisplayString(_ctx.t('side.update.commandHint')), 1 /* TEXT */),
|
|
10707
|
+
_createElementVNode("div", { class: "btn-group" }, [
|
|
10708
|
+
_createElementVNode("button", {
|
|
10709
|
+
type: "button",
|
|
10710
|
+
class: "btn btn-cancel",
|
|
10711
|
+
onClick: _ctx.closeAppUpdateModal
|
|
10712
|
+
}, _toDisplayString(_ctx.t('common.close')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
10713
|
+
])
|
|
10714
|
+
])
|
|
10715
|
+
], 8 /* PROPS */, ["onClick"]))
|
|
10716
|
+
: _createCommentVNode("v-if", true),
|
|
10216
10717
|
_createCommentVNode(" 添加提供商模态框 "),
|
|
10217
10718
|
(_ctx.showAddModal)
|
|
10218
10719
|
? (_openBlock(), _createElementBlock("div", {
|
|
10219
|
-
key:
|
|
10720
|
+
key: 5,
|
|
10220
10721
|
class: "modal-overlay",
|
|
10221
10722
|
onClick: _withModifiers(_ctx.closeAddModal, ["self"])
|
|
10222
10723
|
}, [
|
|
@@ -10373,7 +10874,7 @@ return function render(_ctx, _cache) {
|
|
|
10373
10874
|
_createCommentVNode(" 编辑提供商模态框 "),
|
|
10374
10875
|
(_ctx.showEditModal)
|
|
10375
10876
|
? (_openBlock(), _createElementBlock("div", {
|
|
10376
|
-
key:
|
|
10877
|
+
key: 6,
|
|
10377
10878
|
class: "modal-overlay",
|
|
10378
10879
|
onClick: _withModifiers(_ctx.closeEditModal, ["self"])
|
|
10379
10880
|
}, [
|
|
@@ -10485,7 +10986,7 @@ return function render(_ctx, _cache) {
|
|
|
10485
10986
|
_createCommentVNode(" 添加模型模态框 "),
|
|
10486
10987
|
(_ctx.showModelModal)
|
|
10487
10988
|
? (_openBlock(), _createElementBlock("div", {
|
|
10488
|
-
key:
|
|
10989
|
+
key: 7,
|
|
10489
10990
|
class: "modal-overlay",
|
|
10490
10991
|
onClick: _withModifiers(_ctx.closeModelModal, ["self"])
|
|
10491
10992
|
}, [
|
|
@@ -10525,7 +11026,7 @@ return function render(_ctx, _cache) {
|
|
|
10525
11026
|
_createCommentVNode(" 模型列表模态框 "),
|
|
10526
11027
|
(_ctx.showModelListModal)
|
|
10527
11028
|
? (_openBlock(), _createElementBlock("div", {
|
|
10528
|
-
key:
|
|
11029
|
+
key: 8,
|
|
10529
11030
|
class: "modal-overlay",
|
|
10530
11031
|
onClick: _withModifiers($event => (_ctx.showModelListModal = false), ["self"])
|
|
10531
11032
|
}, [
|
|
@@ -10566,7 +11067,7 @@ return function render(_ctx, _cache) {
|
|
|
10566
11067
|
_createCommentVNode(" 项目功能公告模态框 "),
|
|
10567
11068
|
(_ctx.showProviderCacheAnnouncementModal)
|
|
10568
11069
|
? (_openBlock(), _createElementBlock("div", {
|
|
10569
|
-
key:
|
|
11070
|
+
key: 9,
|
|
10570
11071
|
class: "modal-overlay project-announcement-overlay",
|
|
10571
11072
|
onClick: _withModifiers(_ctx.closeProviderCacheAnnouncementModal, ["self"])
|
|
10572
11073
|
}, [
|
|
@@ -10727,7 +11228,7 @@ return function render(_ctx, _cache) {
|
|
|
10727
11228
|
_createCommentVNode(" Provider 缓存记录模态框 "),
|
|
10728
11229
|
(_ctx.showProviderCacheModal)
|
|
10729
11230
|
? (_openBlock(), _createElementBlock("div", {
|
|
10730
|
-
key:
|
|
11231
|
+
key: 10,
|
|
10731
11232
|
class: "modal-overlay",
|
|
10732
11233
|
onClick: _withModifiers(_ctx.closeProviderCacheModal, ["self"])
|
|
10733
11234
|
}, [
|
|
@@ -10875,7 +11376,7 @@ return function render(_ctx, _cache) {
|
|
|
10875
11376
|
_createCommentVNode(" 添加Claude配置模态框 "),
|
|
10876
11377
|
(_ctx.showClaudeConfigModal)
|
|
10877
11378
|
? (_openBlock(), _createElementBlock("div", {
|
|
10878
|
-
key:
|
|
11379
|
+
key: 11,
|
|
10879
11380
|
class: "modal-overlay",
|
|
10880
11381
|
onClick: _withModifiers(_ctx.closeClaudeConfigModal, ["self"])
|
|
10881
11382
|
}, [
|
|
@@ -11027,7 +11528,7 @@ return function render(_ctx, _cache) {
|
|
|
11027
11528
|
_createCommentVNode(" 编辑Claude配置模态框 "),
|
|
11028
11529
|
(_ctx.showEditConfigModal)
|
|
11029
11530
|
? (_openBlock(), _createElementBlock("div", {
|
|
11030
|
-
key:
|
|
11531
|
+
key: 12,
|
|
11031
11532
|
class: "modal-overlay",
|
|
11032
11533
|
onClick: _withModifiers(_ctx.closeEditConfigModal, ["self"])
|
|
11033
11534
|
}, [
|
|
@@ -11180,7 +11681,7 @@ return function render(_ctx, _cache) {
|
|
|
11180
11681
|
_createCommentVNode(" Codex bridge pool modal "),
|
|
11181
11682
|
(_ctx.showCodexBridgePoolModal)
|
|
11182
11683
|
? (_openBlock(), _createElementBlock("div", {
|
|
11183
|
-
key:
|
|
11684
|
+
key: 13,
|
|
11184
11685
|
class: "modal-overlay",
|
|
11185
11686
|
onClick: _withModifiers($event => (_ctx.showCodexBridgePoolModal = false), ["self"])
|
|
11186
11687
|
}, [
|
|
@@ -11273,7 +11774,7 @@ return function render(_ctx, _cache) {
|
|
|
11273
11774
|
: _createCommentVNode("v-if", true),
|
|
11274
11775
|
(_ctx.showClaudeBridgePoolModal)
|
|
11275
11776
|
? (_openBlock(), _createElementBlock("div", {
|
|
11276
|
-
key:
|
|
11777
|
+
key: 14,
|
|
11277
11778
|
class: "modal-overlay",
|
|
11278
11779
|
onClick: _withModifiers($event => (_ctx.showClaudeBridgePoolModal = false), ["self"])
|
|
11279
11780
|
}, [
|
|
@@ -11366,7 +11867,7 @@ return function render(_ctx, _cache) {
|
|
|
11366
11867
|
: _createCommentVNode("v-if", true),
|
|
11367
11868
|
(_ctx.promptInvocationVisible)
|
|
11368
11869
|
? (_openBlock(), _createElementBlock("div", {
|
|
11369
|
-
key:
|
|
11870
|
+
key: 15,
|
|
11370
11871
|
class: "modal-overlay",
|
|
11371
11872
|
onClick: _withModifiers(_ctx.closePromptTemplateInvocation, ["self"])
|
|
11372
11873
|
}, [
|
|
@@ -11435,7 +11936,7 @@ return function render(_ctx, _cache) {
|
|
|
11435
11936
|
_createCommentVNode(" Webhook settings modal "),
|
|
11436
11937
|
(_ctx.showWebhookModal)
|
|
11437
11938
|
? (_openBlock(), _createElementBlock("div", {
|
|
11438
|
-
key:
|
|
11939
|
+
key: 16,
|
|
11439
11940
|
class: "modal-overlay",
|
|
11440
11941
|
onClick: _withModifiers(_ctx.closeWebhookModal, ["self"])
|
|
11441
11942
|
}, [
|
|
@@ -11508,7 +12009,7 @@ return function render(_ctx, _cache) {
|
|
|
11508
12009
|
: _createCommentVNode("v-if", true),
|
|
11509
12010
|
(_ctx.showOpenclawConfigModal)
|
|
11510
12011
|
? (_openBlock(), _createElementBlock("div", {
|
|
11511
|
-
key:
|
|
12012
|
+
key: 17,
|
|
11512
12013
|
class: "modal-overlay",
|
|
11513
12014
|
onClick: _withModifiers($event => (!(_ctx.openclawSaving || _ctx.openclawApplying) && _ctx.closeOpenclawConfigModal()), ["self"])
|
|
11514
12015
|
}, [
|
|
@@ -12218,7 +12719,7 @@ return function render(_ctx, _cache) {
|
|
|
12218
12719
|
: _createCommentVNode("v-if", true),
|
|
12219
12720
|
(_ctx.showConfigTemplateModal)
|
|
12220
12721
|
? (_openBlock(), _createElementBlock("div", {
|
|
12221
|
-
key:
|
|
12722
|
+
key: 18,
|
|
12222
12723
|
class: "modal-overlay",
|
|
12223
12724
|
onClick: _withModifiers($event => (!_ctx.configTemplateApplying && _ctx.closeConfigTemplateModal()), ["self"])
|
|
12224
12725
|
}, [
|
|
@@ -12363,7 +12864,7 @@ return function render(_ctx, _cache) {
|
|
|
12363
12864
|
: _createCommentVNode("v-if", true),
|
|
12364
12865
|
(_ctx.showAgentsModal)
|
|
12365
12866
|
? (_openBlock(), _createElementBlock("div", {
|
|
12366
|
-
key:
|
|
12867
|
+
key: 19,
|
|
12367
12868
|
class: "modal-overlay",
|
|
12368
12869
|
onClick: _withModifiers(_ctx.closeAgentsModal, ["self"])
|
|
12369
12870
|
}, [
|
|
@@ -12534,7 +13035,7 @@ return function render(_ctx, _cache) {
|
|
|
12534
13035
|
: _createCommentVNode("v-if", true),
|
|
12535
13036
|
(_ctx.showSkillsModal)
|
|
12536
13037
|
? (_openBlock(), _createElementBlock("div", {
|
|
12537
|
-
key:
|
|
13038
|
+
key: 20,
|
|
12538
13039
|
class: "modal-overlay",
|
|
12539
13040
|
onClick: _withModifiers(_ctx.closeSkillsModal, ["self"])
|
|
12540
13041
|
}, [
|
|
@@ -12838,7 +13339,7 @@ return function render(_ctx, _cache) {
|
|
|
12838
13339
|
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
12839
13340
|
(_ctx.showHealthCheckModal)
|
|
12840
13341
|
? (_openBlock(), _createElementBlock("div", {
|
|
12841
|
-
key:
|
|
13342
|
+
key: 21,
|
|
12842
13343
|
class: "modal-overlay",
|
|
12843
13344
|
onClick: _withModifiers($event => (_ctx.showHealthCheckModal = false), ["self"])
|
|
12844
13345
|
}, [
|
|
@@ -13011,7 +13512,7 @@ return function render(_ctx, _cache) {
|
|
|
13011
13512
|
: _createCommentVNode("v-if", true),
|
|
13012
13513
|
(_ctx.showConfirmDialog)
|
|
13013
13514
|
? (_openBlock(), _createElementBlock("div", {
|
|
13014
|
-
key:
|
|
13515
|
+
key: 22,
|
|
13015
13516
|
class: "modal-overlay",
|
|
13016
13517
|
onClick: _withModifiers(_ctx.closeConfirmDialog, ["self"])
|
|
13017
13518
|
}, [
|
|
@@ -13049,7 +13550,7 @@ return function render(_ctx, _cache) {
|
|
|
13049
13550
|
_createCommentVNode(" Toast "),
|
|
13050
13551
|
(_ctx.message)
|
|
13051
13552
|
? (_openBlock(), _createElementBlock("div", {
|
|
13052
|
-
key:
|
|
13553
|
+
key: 23,
|
|
13053
13554
|
class: _normalizeClass(['toast', _ctx.messageType]),
|
|
13054
13555
|
role: "status",
|
|
13055
13556
|
"aria-live": "polite",
|