codexmate 0.1.33 → 0.1.35
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 +27 -2
- package/README.vi.md +27 -2
- package/README.zh.md +27 -2
- package/cli/analytics-export-args.js +7 -0
- package/cli/local-bridge.js +10 -6
- package/cli/openai-chat-routing.js +38 -0
- package/cli/routing-bridge.js +143 -0
- package/cli/session-usage.js +4 -1
- package/cli/system-prompt-files.js +75 -53
- package/cli.js +191 -9
- package/lib/data/model-prices.json +1868 -0
- 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/lib/session-context-health.js +5 -1
- package/lib/session-evidence-collections.js +85 -0
- package/lib/session-features.js +15 -0
- package/lib/session-project-git.js +65 -0
- package/lib/session-projects.js +12 -1
- package/lib/session-stories.js +67 -0
- package/lib/session-usage-ledger.js +77 -0
- package/lib/session-usage-pricing.js +42 -0
- package/lib/session-usage-report.js +101 -0
- package/package.json +4 -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/prompt-templates/computed.mjs +9 -0
- package/plugins/registry.mjs +3 -0
- package/web-ui/app.js +25 -2
- package/web-ui/index.html +3 -2
- package/web-ui/logic.session-artifacts.mjs +39 -0
- package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
- package/web-ui/modules/app.methods.agents.mjs +14 -1
- 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.session-browser.mjs +35 -0
- package/web-ui/modules/app.methods.system-prompt.mjs +99 -19
- package/web-ui/modules/app.methods.theme.mjs +4 -3
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +12 -0
- package/web-ui/modules/i18n/locales/en.mjs +239 -5
- package/web-ui/modules/i18n/locales/ja.mjs +239 -5
- package/web-ui/modules/i18n/locales/vi.mjs +239 -5
- package/web-ui/modules/i18n/locales/zh-tw.mjs +239 -5
- package/web-ui/modules/i18n/locales/zh.mjs +239 -5
- 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/modules/session-collections.mjs +65 -0
- package/web-ui/modules/session-evidence.mjs +81 -0
- package/web-ui/modules/session-features.mjs +15 -1
- package/web-ui/modules/session-git.mjs +39 -0
- package/web-ui/modules/session-stories.mjs +64 -0
- package/web-ui/modules/usage-pricing.mjs +30 -0
- package/web-ui/partials/index/layout-footer.html +1 -1
- 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-sessions.html +20 -20
- package/web-ui/partials/index/panel-settings.html +11 -1
- package/web-ui/partials/index/panel-usage.html +2 -0
- 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/partials/index/session-features.html +82 -2
- package/web-ui/partials/index/thread-handoff.html +73 -62
- package/web-ui/partials/index/usage-records.html +41 -0
- package/web-ui/res/web-ui-render.precompiled.js +1378 -230
- 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 +180 -7
- package/web-ui/styles/sessions-list.css +74 -0
- package/web-ui/styles/sessions-preview.css +106 -68
- package/web-ui/styles/sessions-usage.css +8 -0
- package/web-ui/styles/settings-panel.css +30 -0
- package/web-ui/styles/system-prompt.css +8 -7
- package/web-ui/styles/theme-violet-tokens.css +52 -0
- package/web-ui/styles/theme-violet.css +1742 -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",
|
|
@@ -4661,7 +4885,8 @@ return function render(_ctx, _cache) {
|
|
|
4661
4885
|
class: "feature-status",
|
|
4662
4886
|
"data-status": _ctx.indexReport.job.status
|
|
4663
4887
|
}, _toDisplayString(_ctx.t('features.status.' + _ctx.indexReport.job.status)), 9 /* TEXT, PROPS */, ["data-status"]),
|
|
4664
|
-
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.indexStatus', { count: _ctx.indexReport.indexed, processed: _ctx.indexReport.job.processed, total: _ctx.indexReport.job.candidates })), 1 /* TEXT */)
|
|
4888
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.indexStatus', { count: _ctx.indexReport.indexed, processed: _ctx.indexReport.job.processed, total: _ctx.indexReport.job.candidates })), 1 /* TEXT */),
|
|
4889
|
+
_createElementVNode("span", { class: "feature-index-time" }, _toDisplayString(_ctx.t('features.indexCatalogTime', { time: _ctx.indexCatalogTime })), 1 /* TEXT */)
|
|
4665
4890
|
]))
|
|
4666
4891
|
: _createCommentVNode("v-if", true),
|
|
4667
4892
|
_createElementVNode("form", {
|
|
@@ -4680,9 +4905,21 @@ return function render(_ctx, _cache) {
|
|
|
4680
4905
|
disabled: _ctx.featureBusy || !_ctx.indexQuery.trim() || !_ctx.indexReport?.updatedAt
|
|
4681
4906
|
}, _toDisplayString(_ctx.t('features.search')), 9 /* TEXT, PROPS */, ["disabled"])
|
|
4682
4907
|
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
|
|
4683
|
-
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
4908
|
+
_createElementVNode("details", { class: "feature-disclosure feature-index-scope" }, [
|
|
4684
4909
|
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.searchScope')), 1 /* TEXT */),
|
|
4685
|
-
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.indexScope')), 1 /* TEXT */)
|
|
4910
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.indexScope')), 1 /* TEXT */),
|
|
4911
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.indexSourceCoverage, (entry) => {
|
|
4912
|
+
return (_openBlock(), _createElementBlock("p", {
|
|
4913
|
+
key: entry.source,
|
|
4914
|
+
class: "feature-hint feature-index-coverage"
|
|
4915
|
+
}, _toDisplayString(_ctx.t('features.indexSourceCoverage', { source: _ctx.t('sessions.source.' + entry.source), count: entry.candidates ?? _ctx.t('features.indexUnknown'), limit: entry.discoveryLimit ?? _ctx.t('features.indexUnknown') })), 1 /* TEXT */))
|
|
4916
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
4917
|
+
(!_ctx.indexSourceCoverage.length)
|
|
4918
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4919
|
+
key: 0,
|
|
4920
|
+
class: "feature-hint feature-index-unknown"
|
|
4921
|
+
}, _toDisplayString(_ctx.t('features.indexCoverageUnknown')), 1 /* TEXT */))
|
|
4922
|
+
: _createCommentVNode("v-if", true)
|
|
4686
4923
|
]),
|
|
4687
4924
|
(_ctx.indexReport?.failures.length)
|
|
4688
4925
|
? (_openBlock(), _createElementBlock("p", {
|
|
@@ -4732,7 +4969,15 @@ return function render(_ctx, _cache) {
|
|
|
4732
4969
|
type: "button",
|
|
4733
4970
|
class: "btn-mini",
|
|
4734
4971
|
onClick: $event => (_ctx.openIndexedMessage(result))
|
|
4735
|
-
}, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
4972
|
+
}, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
4973
|
+
_createElementVNode("label", { class: "evidence-select" }, [
|
|
4974
|
+
_createElementVNode("input", {
|
|
4975
|
+
type: "checkbox",
|
|
4976
|
+
checked: _ctx.isEvidenceSelected(result),
|
|
4977
|
+
onChange: $event => (_ctx.toggleEvidence(result))
|
|
4978
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "onChange"]),
|
|
4979
|
+
_createTextVNode(_toDisplayString(_ctx.t('evidence.select')), 1 /* TEXT */)
|
|
4980
|
+
])
|
|
4736
4981
|
]),
|
|
4737
4982
|
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
4738
4983
|
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.context')), 1 /* TEXT */),
|
|
@@ -4745,9 +4990,200 @@ return function render(_ctx, _cache) {
|
|
|
4745
4990
|
: _createCommentVNode("v-if", true)
|
|
4746
4991
|
]))
|
|
4747
4992
|
: _createCommentVNode("v-if", true),
|
|
4993
|
+
_createElementVNode("details", {
|
|
4994
|
+
class: "feature-disclosure evidence-collections",
|
|
4995
|
+
open: _ctx.collectionsOpen,
|
|
4996
|
+
onToggle: $event => (_ctx.toggleCollections($event))
|
|
4997
|
+
}, [
|
|
4998
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('collections.title')), 1 /* TEXT */),
|
|
4999
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('collections.scope')), 1 /* TEXT */),
|
|
5000
|
+
(_ctx.collectionError)
|
|
5001
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5002
|
+
key: 0,
|
|
5003
|
+
class: "form-error",
|
|
5004
|
+
role: "alert"
|
|
5005
|
+
}, _toDisplayString(_ctx.collectionError), 1 /* TEXT */))
|
|
5006
|
+
: _createCommentVNode("v-if", true),
|
|
5007
|
+
(_ctx.collectionBusy)
|
|
5008
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5009
|
+
key: 1,
|
|
5010
|
+
role: "status"
|
|
5011
|
+
}, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
|
|
5012
|
+
: _createCommentVNode("v-if", true),
|
|
5013
|
+
_createElementVNode("ol", { class: "collection-list" }, [
|
|
5014
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.collections, (item) => {
|
|
5015
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
5016
|
+
key: item.id
|
|
5017
|
+
}, [
|
|
5018
|
+
_createElementVNode("button", {
|
|
5019
|
+
type: "button",
|
|
5020
|
+
class: "btn-mini",
|
|
5021
|
+
onClick: $event => (_ctx.openEvidenceCollection(item)),
|
|
5022
|
+
disabled: _ctx.collectionBusy || _ctx.evidenceBusy,
|
|
5023
|
+
"aria-pressed": _ctx.collectionId === item.id
|
|
5024
|
+
}, _toDisplayString(item.name), 9 /* TEXT, PROPS */, ["onClick", "disabled", "aria-pressed"]),
|
|
5025
|
+
_createElementVNode("span", { class: "feature-count" }, _toDisplayString(item.references.length) + "/100", 1 /* TEXT */),
|
|
5026
|
+
_createElementVNode("button", {
|
|
5027
|
+
type: "button",
|
|
5028
|
+
class: "btn-mini feature-quiet",
|
|
5029
|
+
onClick: $event => (_ctx.removeEvidenceCollection(item)),
|
|
5030
|
+
disabled: _ctx.collectionBusy
|
|
5031
|
+
}, _toDisplayString(_ctx.t('collections.remove')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5032
|
+
]))
|
|
5033
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5034
|
+
]),
|
|
5035
|
+
(!_ctx.collectionBusy && !_ctx.collections.length)
|
|
5036
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5037
|
+
key: 2,
|
|
5038
|
+
class: "feature-hint"
|
|
5039
|
+
}, _toDisplayString(_ctx.t('collections.empty')), 1 /* TEXT */))
|
|
5040
|
+
: _createCommentVNode("v-if", true),
|
|
5041
|
+
(_ctx.evidenceSelections.length)
|
|
5042
|
+
? (_openBlock(), _createElementBlock("form", {
|
|
5043
|
+
key: 3,
|
|
5044
|
+
class: "feature-editor collection-editor",
|
|
5045
|
+
onSubmit: _withModifiers($event => (_ctx.saveEvidenceCollection(false)), ["prevent"])
|
|
5046
|
+
}, [
|
|
5047
|
+
_createElementVNode("label", null, [
|
|
5048
|
+
_createTextVNode(_toDisplayString(_ctx.t('collections.name')), 1 /* TEXT */),
|
|
5049
|
+
_withDirectives(_createElementVNode("input", {
|
|
5050
|
+
"onUpdate:modelValue": $event => ((_ctx.collectionName) = $event),
|
|
5051
|
+
maxlength: "160",
|
|
5052
|
+
required: ""
|
|
5053
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
5054
|
+
[_vModelText, _ctx.collectionName]
|
|
5055
|
+
])
|
|
5056
|
+
]),
|
|
5057
|
+
_createElementVNode("div", { class: "feature-actions" }, [
|
|
5058
|
+
_createElementVNode("button", {
|
|
5059
|
+
class: "btn-mini",
|
|
5060
|
+
disabled: _ctx.collectionBusy || _ctx.evidenceBusy || !_ctx.collectionName.trim()
|
|
5061
|
+
}, _toDisplayString(_ctx.t('collections.save')), 9 /* TEXT, PROPS */, ["disabled"]),
|
|
5062
|
+
(_ctx.collectionId)
|
|
5063
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
5064
|
+
key: 0,
|
|
5065
|
+
type: "button",
|
|
5066
|
+
class: "btn-mini feature-quiet",
|
|
5067
|
+
onClick: $event => (_ctx.saveEvidenceCollection(true)),
|
|
5068
|
+
disabled: _ctx.collectionBusy || _ctx.evidenceBusy || !_ctx.collectionName.trim()
|
|
5069
|
+
}, _toDisplayString(_ctx.t('collections.saveAs')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]))
|
|
5070
|
+
: _createCommentVNode("v-if", true)
|
|
5071
|
+
])
|
|
5072
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]))
|
|
5073
|
+
: _createCommentVNode("v-if", true),
|
|
5074
|
+
_createElementVNode("button", {
|
|
5075
|
+
type: "button",
|
|
5076
|
+
class: "btn-mini feature-quiet",
|
|
5077
|
+
onClick: _ctx.loadEvidenceCollections,
|
|
5078
|
+
disabled: _ctx.collectionBusy
|
|
5079
|
+
}, _toDisplayString(_ctx.t('collections.refresh')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5080
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["open", "onToggle"]),
|
|
5081
|
+
(_ctx.evidenceSelections.length)
|
|
5082
|
+
? (_openBlock(), _createElementBlock("section", {
|
|
5083
|
+
key: 2,
|
|
5084
|
+
class: "evidence-basket",
|
|
5085
|
+
"aria-label": _ctx.t('evidence.title')
|
|
5086
|
+
}, [
|
|
5087
|
+
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
5088
|
+
_createElementVNode("h3", null, _toDisplayString(_ctx.t('evidence.title')), 1 /* TEXT */),
|
|
5089
|
+
_createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.evidenceSelections.length) + "/100", 1 /* TEXT */)
|
|
5090
|
+
]),
|
|
5091
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('evidence.memory')), 1 /* TEXT */),
|
|
5092
|
+
_createElementVNode("ol", { class: "evidence-list" }, [
|
|
5093
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.evidenceSelections, (item) => {
|
|
5094
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
5095
|
+
key: _ctx.evidenceKey(item)
|
|
5096
|
+
}, [
|
|
5097
|
+
_createElementVNode("span", null, [
|
|
5098
|
+
_createElementVNode("strong", null, _toDisplayString(item.session.title || item.session.sessionId), 1 /* TEXT */),
|
|
5099
|
+
_createElementVNode("small", { class: "feature-meta" }, _toDisplayString(item.session.source) + " · " + _toDisplayString(item.nodeId), 1 /* TEXT */),
|
|
5100
|
+
(item.state)
|
|
5101
|
+
? (_openBlock(), _createElementBlock("small", {
|
|
5102
|
+
key: 0,
|
|
5103
|
+
class: "collection-source-state",
|
|
5104
|
+
"data-state": item.state
|
|
5105
|
+
}, _toDisplayString(_ctx.t('collections.state.' + item.state)), 9 /* TEXT, PROPS */, ["data-state"]))
|
|
5106
|
+
: _createCommentVNode("v-if", true)
|
|
5107
|
+
]),
|
|
5108
|
+
_createElementVNode("button", {
|
|
5109
|
+
type: "button",
|
|
5110
|
+
class: "btn-mini feature-quiet",
|
|
5111
|
+
onClick: $event => (_ctx.openIndexedMessage(item))
|
|
5112
|
+
}, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
5113
|
+
_createElementVNode("button", {
|
|
5114
|
+
type: "button",
|
|
5115
|
+
class: "btn-mini",
|
|
5116
|
+
onClick: $event => (_ctx.toggleEvidence(item))
|
|
5117
|
+
}, _toDisplayString(_ctx.t('evidence.remove')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
5118
|
+
]))
|
|
5119
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5120
|
+
]),
|
|
5121
|
+
_createElementVNode("form", {
|
|
5122
|
+
class: "feature-actions feature-search-form evidence-generator",
|
|
5123
|
+
onSubmit: _withModifiers(_ctx.generateEvidencePack, ["prevent"])
|
|
5124
|
+
}, [
|
|
5125
|
+
_withDirectives(_createElementVNode("input", {
|
|
5126
|
+
"onUpdate:modelValue": $event => ((_ctx.evidenceGoal) = $event),
|
|
5127
|
+
"aria-label": _ctx.t('evidence.goal'),
|
|
5128
|
+
placeholder: _ctx.t('evidence.goal')
|
|
5129
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"]), [
|
|
5130
|
+
[_vModelText, _ctx.evidenceGoal]
|
|
5131
|
+
]),
|
|
5132
|
+
_withDirectives(_createElementVNode("select", {
|
|
5133
|
+
"onUpdate:modelValue": $event => ((_ctx.evidenceFormat) = $event),
|
|
5134
|
+
"aria-label": _ctx.t('artifacts.format')
|
|
5135
|
+
}, [
|
|
5136
|
+
_createElementVNode("option", { value: "evidence" }, _toDisplayString(_ctx.t('evidence.title')), 1 /* TEXT */),
|
|
5137
|
+
_createElementVNode("option", { value: "receipt" }, _toDisplayString(_ctx.t('artifacts.receipt')), 1 /* TEXT */),
|
|
5138
|
+
_createElementVNode("option", { value: "relay" }, _toDisplayString(_ctx.t('artifacts.relay')), 1 /* TEXT */)
|
|
5139
|
+
], 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
|
|
5140
|
+
[_vModelSelect, _ctx.evidenceFormat]
|
|
5141
|
+
]),
|
|
5142
|
+
(_ctx.evidenceFormat !== 'evidence')
|
|
5143
|
+
? _withDirectives((_openBlock(), _createElementBlock("textarea", {
|
|
5144
|
+
key: 0,
|
|
5145
|
+
"onUpdate:modelValue": $event => ((_ctx.evidenceNote) = $event),
|
|
5146
|
+
class: "evidence-generator-note",
|
|
5147
|
+
rows: "3",
|
|
5148
|
+
maxlength: "4000",
|
|
5149
|
+
"aria-label": _ctx.t('artifacts.note'),
|
|
5150
|
+
placeholder: _ctx.t('artifacts.notePlaceholder')
|
|
5151
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"])), [
|
|
5152
|
+
[_vModelText, _ctx.evidenceNote]
|
|
5153
|
+
])
|
|
5154
|
+
: _createCommentVNode("v-if", true),
|
|
5155
|
+
_createElementVNode("button", {
|
|
5156
|
+
class: "btn-mini feature-primary",
|
|
5157
|
+
disabled: _ctx.evidenceBusy
|
|
5158
|
+
}, _toDisplayString(_ctx.evidenceBusy ? _ctx.t('features.loading') : _ctx.evidenceFormat === 'evidence' ? _ctx.t('evidence.generate') : _ctx.t('artifacts.generate.' + _ctx.evidenceFormat)), 9 /* TEXT, PROPS */, ["disabled"])
|
|
5159
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
|
|
5160
|
+
(_ctx.evidenceError)
|
|
5161
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5162
|
+
key: 0,
|
|
5163
|
+
class: "form-error",
|
|
5164
|
+
role: "alert"
|
|
5165
|
+
}, _toDisplayString(_ctx.evidenceError), 1 /* TEXT */))
|
|
5166
|
+
: _createCommentVNode("v-if", true),
|
|
5167
|
+
(_ctx.evidencePack)
|
|
5168
|
+
? (_openBlock(), _createElementBlock("details", {
|
|
5169
|
+
key: 1,
|
|
5170
|
+
class: "feature-disclosure evidence-preview",
|
|
5171
|
+
open: ""
|
|
5172
|
+
}, [
|
|
5173
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('evidence.preview', { count: _ctx.evidencePack.length })), 1 /* TEXT */),
|
|
5174
|
+
_createElementVNode("pre", null, _toDisplayString(_ctx.evidencePack), 1 /* TEXT */),
|
|
5175
|
+
_createElementVNode("button", {
|
|
5176
|
+
type: "button",
|
|
5177
|
+
class: "btn-mini",
|
|
5178
|
+
onClick: _ctx.downloadEvidencePack
|
|
5179
|
+
}, _toDisplayString(_ctx.t('evidence.download')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
5180
|
+
]))
|
|
5181
|
+
: _createCommentVNode("v-if", true)
|
|
5182
|
+
], 8 /* PROPS */, ["aria-label"]))
|
|
5183
|
+
: _createCommentVNode("v-if", true),
|
|
4748
5184
|
(_ctx.featureView === 'projects')
|
|
4749
5185
|
? (_openBlock(), _createElementBlock("div", {
|
|
4750
|
-
key:
|
|
5186
|
+
key: 3,
|
|
4751
5187
|
class: "feature-content"
|
|
4752
5188
|
}, [
|
|
4753
5189
|
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
@@ -4813,6 +5249,191 @@ return function render(_ctx, _cache) {
|
|
|
4813
5249
|
class: "feature-hint"
|
|
4814
5250
|
}, _toDisplayString(_ctx.t('features.partial')), 1 /* TEXT */))
|
|
4815
5251
|
: _createCommentVNode("v-if", true),
|
|
5252
|
+
(_ctx.projectSelected)
|
|
5253
|
+
? (_openBlock(), _createElementBlock("details", {
|
|
5254
|
+
key: 1,
|
|
5255
|
+
class: "feature-disclosure project-git",
|
|
5256
|
+
onToggle: $event => (_ctx.toggleProjectGit($event))
|
|
5257
|
+
}, [
|
|
5258
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('git.title')), 1 /* TEXT */),
|
|
5259
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('git.scope')), 1 /* TEXT */),
|
|
5260
|
+
(_ctx.projectGitError)
|
|
5261
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5262
|
+
key: 0,
|
|
5263
|
+
class: "form-error",
|
|
5264
|
+
role: "alert"
|
|
5265
|
+
}, _toDisplayString(_ctx.projectGitError), 1 /* TEXT */))
|
|
5266
|
+
: _createCommentVNode("v-if", true),
|
|
5267
|
+
(_ctx.projectGitBusy)
|
|
5268
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5269
|
+
key: 1,
|
|
5270
|
+
role: "status"
|
|
5271
|
+
}, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
|
|
5272
|
+
: _createCommentVNode("v-if", true),
|
|
5273
|
+
(_ctx.projectGit)
|
|
5274
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
5275
|
+
_createElementVNode("p", { class: "feature-meta" }, _toDisplayString(_ctx.t('git.status.' + _ctx.projectGit.status)) + " · " + _toDisplayString(_ctx.t('features.readAt', { time: _ctx.projectGit.readAt })), 1 /* TEXT */),
|
|
5276
|
+
(_ctx.projectGit.root)
|
|
5277
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
|
|
5278
|
+
_createElementVNode("p", { class: "feature-path" }, _toDisplayString(_ctx.projectGit.root), 1 /* TEXT */),
|
|
5279
|
+
_createElementVNode("p", { class: "feature-meta" }, [
|
|
5280
|
+
_createTextVNode(_toDisplayString(_ctx.projectGit.branch || _ctx.t('git.detached')) + " · ", 1 /* TEXT */),
|
|
5281
|
+
_createElementVNode("code", null, _toDisplayString(_ctx.projectGit.head || _ctx.t('git.noHead')), 1 /* TEXT */),
|
|
5282
|
+
_createTextVNode(" · " + _toDisplayString(_ctx.t('git.changes', { count: _ctx.projectGit.changedFiles })), 1 /* TEXT */)
|
|
5283
|
+
]),
|
|
5284
|
+
_createElementVNode("ul", { class: "git-change-list" }, [
|
|
5285
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectGit.changes, (change) => {
|
|
5286
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
5287
|
+
key: change.path
|
|
5288
|
+
}, [
|
|
5289
|
+
_createElementVNode("code", null, _toDisplayString(change.status), 1 /* TEXT */),
|
|
5290
|
+
_createTextVNode(" " + _toDisplayString(change.path), 1 /* TEXT */)
|
|
5291
|
+
]))
|
|
5292
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5293
|
+
]),
|
|
5294
|
+
(_ctx.projectGit.changesTruncated || _ctx.projectGit.commitsTruncated)
|
|
5295
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5296
|
+
key: 0,
|
|
5297
|
+
class: "feature-hint"
|
|
5298
|
+
}, _toDisplayString(_ctx.t('git.truncated')), 1 /* TEXT */))
|
|
5299
|
+
: _createCommentVNode("v-if", true),
|
|
5300
|
+
_createElementVNode("ol", { class: "git-commit-list" }, [
|
|
5301
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectGit.commits, (commit) => {
|
|
5302
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
5303
|
+
key: commit.sha
|
|
5304
|
+
}, [
|
|
5305
|
+
_createElementVNode("button", {
|
|
5306
|
+
type: "button",
|
|
5307
|
+
class: "btn-mini",
|
|
5308
|
+
onClick: $event => (_ctx.loadProjectGitCommit(commit.sha)),
|
|
5309
|
+
disabled: _ctx.projectGitBusy
|
|
5310
|
+
}, [
|
|
5311
|
+
_createElementVNode("code", null, _toDisplayString(commit.sha.slice(0, 8)), 1 /* TEXT */),
|
|
5312
|
+
_createTextVNode(" " + _toDisplayString(commit.subject), 1 /* TEXT */)
|
|
5313
|
+
], 8 /* PROPS */, ["onClick", "disabled"]),
|
|
5314
|
+
_createElementVNode("small", { class: "feature-meta" }, _toDisplayString(commit.timestamp), 1 /* TEXT */),
|
|
5315
|
+
_createElementVNode("div", { class: "feature-link-list" }, [
|
|
5316
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(commit.candidates, (session) => {
|
|
5317
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
5318
|
+
key: session.source + session.sessionId,
|
|
5319
|
+
type: "button",
|
|
5320
|
+
onClick: $event => (_ctx.selectSession(session))
|
|
5321
|
+
}, _toDisplayString(_ctx.t('git.candidate')) + ": " + _toDisplayString(session.source) + " · " + _toDisplayString(session.title || session.sessionId), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
5322
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5323
|
+
])
|
|
5324
|
+
]))
|
|
5325
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5326
|
+
]),
|
|
5327
|
+
(_ctx.projectGitCommit)
|
|
5328
|
+
? (_openBlock(), _createElementBlock("pre", {
|
|
5329
|
+
key: 1,
|
|
5330
|
+
class: "feature-code git-commit-stat"
|
|
5331
|
+
}, _toDisplayString(_ctx.projectGitCommit.sha) + "\n" + _toDisplayString(_ctx.projectGitCommit.stat), 1 /* TEXT */))
|
|
5332
|
+
: _createCommentVNode("v-if", true),
|
|
5333
|
+
(_ctx.projectGitCommit)
|
|
5334
|
+
? (_openBlock(), _createElementBlock("section", {
|
|
5335
|
+
key: 2,
|
|
5336
|
+
class: "project-stories",
|
|
5337
|
+
"aria-label": _ctx.t('stories.title')
|
|
5338
|
+
}, [
|
|
5339
|
+
_createElementVNode("h4", null, _toDisplayString(_ctx.t('stories.title')), 1 /* TEXT */),
|
|
5340
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('stories.scope')), 1 /* TEXT */),
|
|
5341
|
+
(_ctx.storyError)
|
|
5342
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5343
|
+
key: 0,
|
|
5344
|
+
class: "form-error",
|
|
5345
|
+
role: "alert"
|
|
5346
|
+
}, _toDisplayString(_ctx.storyError), 1 /* TEXT */))
|
|
5347
|
+
: _createCommentVNode("v-if", true),
|
|
5348
|
+
(_ctx.storyBusy)
|
|
5349
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5350
|
+
key: 1,
|
|
5351
|
+
role: "status"
|
|
5352
|
+
}, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
|
|
5353
|
+
: _createCommentVNode("v-if", true),
|
|
5354
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.commitStories, (item) => {
|
|
5355
|
+
return (_openBlock(), _createElementBlock("article", {
|
|
5356
|
+
key: item.id,
|
|
5357
|
+
class: "story-record"
|
|
5358
|
+
}, [
|
|
5359
|
+
_createElementVNode("p", { class: "feature-meta" }, _toDisplayString(_ctx.t('stories.linked')) + " · " + _toDisplayString(item.session.source), 1 /* TEXT */),
|
|
5360
|
+
(item.available)
|
|
5361
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
5362
|
+
key: 0,
|
|
5363
|
+
type: "button",
|
|
5364
|
+
class: "btn-mini",
|
|
5365
|
+
onClick: $event => (_ctx.selectSession(item.session))
|
|
5366
|
+
}, _toDisplayString(item.session.title || item.session.sessionId), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
5367
|
+
: (_openBlock(), _createElementBlock("p", {
|
|
5368
|
+
key: 1,
|
|
5369
|
+
class: "feature-hint"
|
|
5370
|
+
}, _toDisplayString(item.session.title || item.session.sessionId) + " · " + _toDisplayString(_ctx.t('stories.unavailable')), 1 /* TEXT */)),
|
|
5371
|
+
_createElementVNode("p", { class: "feature-note" }, _toDisplayString(item.note), 1 /* TEXT */),
|
|
5372
|
+
_createElementVNode("button", {
|
|
5373
|
+
type: "button",
|
|
5374
|
+
class: "btn-mini feature-quiet",
|
|
5375
|
+
onClick: $event => (_ctx.removeProjectStory(item)),
|
|
5376
|
+
disabled: _ctx.storyBusy
|
|
5377
|
+
}, _toDisplayString(_ctx.t('stories.remove')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5378
|
+
]))
|
|
5379
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
5380
|
+
_createElementVNode("form", {
|
|
5381
|
+
class: "feature-editor story-editor",
|
|
5382
|
+
onSubmit: _withModifiers(_ctx.saveProjectStory, ["prevent"])
|
|
5383
|
+
}, [
|
|
5384
|
+
_createElementVNode("label", null, [
|
|
5385
|
+
_createTextVNode(_toDisplayString(_ctx.t('stories.session')), 1 /* TEXT */),
|
|
5386
|
+
_withDirectives(_createElementVNode("select", {
|
|
5387
|
+
"onUpdate:modelValue": $event => ((_ctx.storySession) = $event),
|
|
5388
|
+
disabled: _ctx.storyBusy
|
|
5389
|
+
}, [
|
|
5390
|
+
_createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('stories.choose')), 1 /* TEXT */),
|
|
5391
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.storySessions, (session) => {
|
|
5392
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
5393
|
+
key: _ctx.storySessionKey(session),
|
|
5394
|
+
value: _ctx.storySessionKey(session)
|
|
5395
|
+
}, _toDisplayString(session.source) + " · " + _toDisplayString(session.title || session.sessionId), 9 /* TEXT, PROPS */, ["value"]))
|
|
5396
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5397
|
+
], 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
|
|
5398
|
+
[_vModelSelect, _ctx.storySession]
|
|
5399
|
+
])
|
|
5400
|
+
]),
|
|
5401
|
+
_createElementVNode("label", null, [
|
|
5402
|
+
_createTextVNode(_toDisplayString(_ctx.t('stories.note')), 1 /* TEXT */),
|
|
5403
|
+
_withDirectives(_createElementVNode("textarea", {
|
|
5404
|
+
"onUpdate:modelValue": $event => ((_ctx.storyNote) = $event),
|
|
5405
|
+
maxlength: "4000"
|
|
5406
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
5407
|
+
[_vModelText, _ctx.storyNote]
|
|
5408
|
+
])
|
|
5409
|
+
]),
|
|
5410
|
+
_createElementVNode("div", { class: "feature-actions" }, [
|
|
5411
|
+
_createElementVNode("button", {
|
|
5412
|
+
class: "btn-mini",
|
|
5413
|
+
disabled: _ctx.storyBusy || !_ctx.storySession
|
|
5414
|
+
}, _toDisplayString(_ctx.t('stories.save')), 9 /* TEXT, PROPS */, ["disabled"]),
|
|
5415
|
+
_createElementVNode("button", {
|
|
5416
|
+
type: "button",
|
|
5417
|
+
class: "btn-mini feature-quiet",
|
|
5418
|
+
onClick: _ctx.loadProjectStories,
|
|
5419
|
+
disabled: _ctx.storyBusy
|
|
5420
|
+
}, _toDisplayString(_ctx.t('stories.refresh')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5421
|
+
])
|
|
5422
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"])
|
|
5423
|
+
], 8 /* PROPS */, ["aria-label"]))
|
|
5424
|
+
: _createCommentVNode("v-if", true)
|
|
5425
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
5426
|
+
: _createCommentVNode("v-if", true)
|
|
5427
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
5428
|
+
: _createCommentVNode("v-if", true),
|
|
5429
|
+
_createElementVNode("button", {
|
|
5430
|
+
type: "button",
|
|
5431
|
+
class: "btn-mini",
|
|
5432
|
+
onClick: _ctx.loadProjectGit,
|
|
5433
|
+
disabled: _ctx.projectGitBusy
|
|
5434
|
+
}, _toDisplayString(_ctx.t('git.refresh')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5435
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onToggle"]))
|
|
5436
|
+
: _createCommentVNode("v-if", true),
|
|
4816
5437
|
_createElementVNode("div", { class: "feature-project-sessions" }, [
|
|
4817
5438
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.sessions, (session) => {
|
|
4818
5439
|
return (_openBlock(), _createElementBlock("article", {
|
|
@@ -4880,7 +5501,7 @@ return function render(_ctx, _cache) {
|
|
|
4880
5501
|
]),
|
|
4881
5502
|
(_ctx.projectSelected)
|
|
4882
5503
|
? (_openBlock(), _createElementBlock("details", {
|
|
4883
|
-
key:
|
|
5504
|
+
key: 2,
|
|
4884
5505
|
class: "feature-disclosure"
|
|
4885
5506
|
}, [
|
|
4886
5507
|
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.projectMapping')), 1 /* TEXT */),
|
|
@@ -4910,7 +5531,7 @@ return function render(_ctx, _cache) {
|
|
|
4910
5531
|
: _createCommentVNode("v-if", true),
|
|
4911
5532
|
(_ctx.featureView === 'bookmarks')
|
|
4912
5533
|
? (_openBlock(), _createElementBlock("div", {
|
|
4913
|
-
key:
|
|
5534
|
+
key: 4,
|
|
4914
5535
|
class: "feature-content"
|
|
4915
5536
|
}, [
|
|
4916
5537
|
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
@@ -5386,21 +6007,7 @@ return function render(_ctx, _cache) {
|
|
|
5386
6007
|
title: _ctx.parseSessionTitleInfo(session).location
|
|
5387
6008
|
}, _toDisplayString(_ctx.parseSessionTitleInfo(session).location), 9 /* TEXT, PROPS */, ["title"]))
|
|
5388
6009
|
: _createCommentVNode("v-if", true)
|
|
5389
|
-
])
|
|
5390
|
-
_createElementVNode("span", { class: "session-count-badge" }, _toDisplayString(session.messageCount == null ? '...' : session.messageCount), 1 /* TEXT */),
|
|
5391
|
-
(session.match && session.match.hit)
|
|
5392
|
-
? (_openBlock(), _createElementBlock("span", {
|
|
5393
|
-
key: 0,
|
|
5394
|
-
class: "session-match-badge"
|
|
5395
|
-
}, _toDisplayString(session.match.count), 1 /* TEXT */))
|
|
5396
|
-
: _createCommentVNode("v-if", true),
|
|
5397
|
-
(_ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)] && _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent > 0)
|
|
5398
|
-
? (_openBlock(), _createElementBlock("span", {
|
|
5399
|
-
key: 1,
|
|
5400
|
-
class: _normalizeClass(['session-context-badge', 'session-context-' + _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].level]),
|
|
5401
|
-
title: 'Context: ' + _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent + '%'
|
|
5402
|
-
}, _toDisplayString(_ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent) + "% ", 11 /* TEXT, CLASS, PROPS */, ["title"]))
|
|
5403
|
-
: _createCommentVNode("v-if", true)
|
|
6010
|
+
])
|
|
5404
6011
|
]),
|
|
5405
6012
|
_createElementVNode("div", { class: "session-item-actions" }, [
|
|
5406
6013
|
_createElementVNode("button", {
|
|
@@ -5467,15 +6074,29 @@ return function render(_ctx, _cache) {
|
|
|
5467
6074
|
"data-source": session.source
|
|
5468
6075
|
}, _toDisplayString(session.sourceLabel), 9 /* TEXT, PROPS */, ["data-source"]),
|
|
5469
6076
|
_createElementVNode("span", { class: "session-item-time" }, _toDisplayString(session.updatedAtLabel || session.updatedAt || _ctx.t('sessions.unknownTime')), 1 /* TEXT */),
|
|
5470
|
-
(
|
|
6077
|
+
_createElementVNode("span", { class: "session-count-badge" }, _toDisplayString(session.messageCount == null ? '...' : session.messageCount), 1 /* TEXT */),
|
|
6078
|
+
(session.match && session.match.hit)
|
|
5471
6079
|
? (_openBlock(), _createElementBlock("span", {
|
|
5472
6080
|
key: 0,
|
|
6081
|
+
class: "session-match-badge"
|
|
6082
|
+
}, _toDisplayString(session.match.count), 1 /* TEXT */))
|
|
6083
|
+
: _createCommentVNode("v-if", true),
|
|
6084
|
+
(_ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)] && _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent > 0)
|
|
6085
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
6086
|
+
key: 1,
|
|
6087
|
+
class: _normalizeClass(['session-context-badge', 'session-context-' + _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].level]),
|
|
6088
|
+
title: 'Context: ' + _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent + '%'
|
|
6089
|
+
}, _toDisplayString(_ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent) + "% ", 11 /* TEXT, CLASS, PROPS */, ["title"]))
|
|
6090
|
+
: _createCommentVNode("v-if", true),
|
|
6091
|
+
(_ctx.getSessionHotLabel(session))
|
|
6092
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
6093
|
+
key: 2,
|
|
5473
6094
|
class: "session-item-hot"
|
|
5474
6095
|
}, _toDisplayString(_ctx.getSessionHotLabel(session)), 1 /* TEXT */))
|
|
5475
6096
|
: _createCommentVNode("v-if", true),
|
|
5476
6097
|
(session.match && session.match.snippets && session.match.snippets.length)
|
|
5477
6098
|
? (_openBlock(), _createElementBlock("div", {
|
|
5478
|
-
key:
|
|
6099
|
+
key: 3,
|
|
5479
6100
|
class: "session-match-snippets"
|
|
5480
6101
|
}, [
|
|
5481
6102
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(session.match.snippets.slice(0, 2), (snip, si) => {
|
|
@@ -5616,7 +6237,7 @@ return function render(_ctx, _cache) {
|
|
|
5616
6237
|
(_ctx.handoffCopyText)
|
|
5617
6238
|
? (_openBlock(), _createElementBlock("label", {
|
|
5618
6239
|
key: 2,
|
|
5619
|
-
class: "
|
|
6240
|
+
class: "thread-handoff-copy session-workspace-card-wide"
|
|
5620
6241
|
}, [
|
|
5621
6242
|
_createElementVNode("span", { class: "session-workspace-card-title" }, "卡片文本(未发送,可手动复制)"),
|
|
5622
6243
|
_createElementVNode("textarea", {
|
|
@@ -5629,19 +6250,27 @@ return function render(_ctx, _cache) {
|
|
|
5629
6250
|
]))
|
|
5630
6251
|
: _createCommentVNode("v-if", true),
|
|
5631
6252
|
_createElementVNode("p", { class: "session-workspace-subtitle session-workspace-card-wide" }, "复制不会自动发送。读取确认由目标代理通过 CLI ack 提交。"),
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
6253
|
+
(_ctx.selectedContextIds.length)
|
|
6254
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
6255
|
+
key: 3,
|
|
6256
|
+
class: "feature-actions"
|
|
6257
|
+
}, [
|
|
6258
|
+
_createElementVNode("button", {
|
|
6259
|
+
type: "button",
|
|
6260
|
+
class: "btn-mini",
|
|
6261
|
+
onClick: _ctx.generateSelectedHandoff,
|
|
6262
|
+
disabled: _ctx.featureBusy || !_ctx.selectedContextIds.length
|
|
6263
|
+
}, _toDisplayString(_ctx.t('features.generateDraft', { count: _ctx.selectedContextIds.length })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
6264
|
+
]))
|
|
6265
|
+
: _createCommentVNode("v-if", true),
|
|
5640
6266
|
(_ctx.handoffDraftEvidence.length)
|
|
5641
|
-
? (_openBlock(), _createElementBlock("p", { key:
|
|
6267
|
+
? (_openBlock(), _createElementBlock("p", { key: 4 }, _toDisplayString(_ctx.t('features.draftReview')), 1 /* TEXT */))
|
|
5642
6268
|
: _createCommentVNode("v-if", true),
|
|
5643
6269
|
(_ctx.handoffUnverified.length)
|
|
5644
|
-
? (_openBlock(), _createElementBlock("details", {
|
|
6270
|
+
? (_openBlock(), _createElementBlock("details", {
|
|
6271
|
+
key: 5,
|
|
6272
|
+
class: "thread-handoff-audit"
|
|
6273
|
+
}, [
|
|
5645
6274
|
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.unverified', { count: _ctx.handoffUnverified.length })), 1 /* TEXT */),
|
|
5646
6275
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffUnverified, (text, index) => {
|
|
5647
6276
|
return (_openBlock(), _createElementBlock("pre", { key: index }, _toDisplayString(text), 1 /* TEXT */))
|
|
@@ -5649,7 +6278,10 @@ return function render(_ctx, _cache) {
|
|
|
5649
6278
|
]))
|
|
5650
6279
|
: _createCommentVNode("v-if", true),
|
|
5651
6280
|
(_ctx.handoffDraftEvidence.length)
|
|
5652
|
-
? (_openBlock(), _createElementBlock("ul", {
|
|
6281
|
+
? (_openBlock(), _createElementBlock("ul", {
|
|
6282
|
+
key: 6,
|
|
6283
|
+
class: "thread-handoff-evidence"
|
|
6284
|
+
}, [
|
|
5653
6285
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffDraftEvidence, (item) => {
|
|
5654
6286
|
return (_openBlock(), _createElementBlock("li", {
|
|
5655
6287
|
key: item.nodeId
|
|
@@ -5663,67 +6295,125 @@ return function render(_ctx, _cache) {
|
|
|
5663
6295
|
}), 128 /* KEYED_FRAGMENT */))
|
|
5664
6296
|
]))
|
|
5665
6297
|
: _createCommentVNode("v-if", true),
|
|
5666
|
-
(
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
: (!_ctx.handoffError && !_ctx.handoffRecords.length)
|
|
6298
|
+
_createElementVNode("section", {
|
|
6299
|
+
class: "thread-handoff-history session-workspace-card-wide",
|
|
6300
|
+
"aria-label": "交接历史"
|
|
6301
|
+
}, [
|
|
6302
|
+
_createElementVNode("h3", null, "交接历史"),
|
|
6303
|
+
(_ctx.handoffLoading)
|
|
5673
6304
|
? (_openBlock(), _createElementBlock("p", {
|
|
5674
|
-
key:
|
|
5675
|
-
class: "session-workspace-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
6305
|
+
key: 0,
|
|
6306
|
+
class: "session-workspace-card-wide",
|
|
6307
|
+
role: "status"
|
|
6308
|
+
}, "正在加载交接历史…"))
|
|
6309
|
+
: (!_ctx.handoffError && !_ctx.handoffRecords.length)
|
|
6310
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
6311
|
+
key: 1,
|
|
6312
|
+
class: "session-workspace-empty session-workspace-card-wide"
|
|
6313
|
+
}, "暂无交接记录"))
|
|
6314
|
+
: _createCommentVNode("v-if", true),
|
|
6315
|
+
(_ctx.handoffRecords.length)
|
|
6316
|
+
? (_openBlock(), _createElementBlock("ol", {
|
|
6317
|
+
key: 2,
|
|
6318
|
+
class: "session-workspace-list session-workspace-card-wide"
|
|
6319
|
+
}, [
|
|
6320
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffRecords, (record) => {
|
|
6321
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
6322
|
+
key: record.id,
|
|
6323
|
+
class: "session-workspace-card thread-handoff-record"
|
|
6324
|
+
}, [
|
|
6325
|
+
_createElementVNode("div", { class: "thread-handoff-record-heading" }, [
|
|
6326
|
+
_createElementVNode("div", { class: "thread-handoff-record-title" }, [
|
|
6327
|
+
_createElementVNode("strong", null, _toDisplayString(record.target), 1 /* TEXT */),
|
|
6328
|
+
_createElementVNode("span", { class: "thread-handoff-record-status" }, _toDisplayString(_ctx.handoffStatusLabel(record.status)), 1 /* TEXT */)
|
|
6329
|
+
]),
|
|
6330
|
+
_createElementVNode("button", {
|
|
6331
|
+
class: "btn-mini",
|
|
6332
|
+
type: "button",
|
|
6333
|
+
onClick: $event => (_ctx.copyThreadHandoff(record)),
|
|
6334
|
+
disabled: _ctx.handoffBusy || _ctx.handoffLoading
|
|
6335
|
+
}, _toDisplayString(record.route === 'mcp' ? '回退文件并复制卡片' : '复制卡片'), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
6336
|
+
]),
|
|
6337
|
+
_createElementVNode("p", { class: "thread-handoff-record-route" }, _toDisplayString(record.route === 'mcp' ? 'MCP 工具' : '文件级') + " · " + _toDisplayString(record.writeResult === 'written' ? '已写入' : (record.writeResult === 'failed_or_unconfirmed' ? '失败或结果未确认(不重试)' : '未执行写入')), 1 /* TEXT */),
|
|
6338
|
+
(record.reason)
|
|
6339
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
6340
|
+
key: 0,
|
|
6341
|
+
class: "thread-handoff-record-reason"
|
|
6342
|
+
}, "原因:" + _toDisplayString(record.reason), 1 /* TEXT */))
|
|
6343
|
+
: _createCommentVNode("v-if", true),
|
|
6344
|
+
(record.readConfirmation)
|
|
6345
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
6346
|
+
key: 1,
|
|
6347
|
+
class: "thread-handoff-read-proof"
|
|
6348
|
+
}, [
|
|
6349
|
+
_createTextVNode("读取证据:"),
|
|
6350
|
+
_createElementVNode("span", null, _toDisplayString(record.readConfirmation.evidence), 1 /* TEXT */)
|
|
6351
|
+
]))
|
|
6352
|
+
: _createCommentVNode("v-if", true),
|
|
6353
|
+
_createElementVNode("details", { class: "thread-handoff-audit" }, [
|
|
6354
|
+
_createElementVNode("summary", null, "投递详情"),
|
|
6355
|
+
_createElementVNode("dl", null, [
|
|
6356
|
+
_createElementVNode("div", null, [
|
|
6357
|
+
_createElementVNode("dt", null, "交接标识"),
|
|
6358
|
+
_createElementVNode("dd", null, [
|
|
6359
|
+
_createElementVNode("code", null, _toDisplayString(record.id), 1 /* TEXT */)
|
|
6360
|
+
])
|
|
6361
|
+
]),
|
|
6362
|
+
_createElementVNode("div", null, [
|
|
6363
|
+
_createElementVNode("dt", null, "创建时间"),
|
|
6364
|
+
_createElementVNode("dd", null, _toDisplayString(record.createdAt), 1 /* TEXT */)
|
|
6365
|
+
]),
|
|
6366
|
+
_createElementVNode("div", null, [
|
|
6367
|
+
_createElementVNode("dt", null, "投递耗时"),
|
|
6368
|
+
_createElementVNode("dd", null, _toDisplayString(record.durationMs) + " 毫秒", 1 /* TEXT */)
|
|
6369
|
+
]),
|
|
6370
|
+
_createElementVNode("div", null, [
|
|
6371
|
+
_createElementVNode("dt", null, "写入耗时"),
|
|
6372
|
+
_createElementVNode("dd", null, _toDisplayString(record.writeDurationMs || 0) + " 毫秒", 1 /* TEXT */)
|
|
6373
|
+
]),
|
|
6374
|
+
_createElementVNode("div", null, [
|
|
6375
|
+
_createElementVNode("dt", null, "文件回退"),
|
|
6376
|
+
_createElementVNode("dd", null, _toDisplayString(record.fallback ? '是' : '否'), 1 /* TEXT */)
|
|
6377
|
+
]),
|
|
6378
|
+
(record.mcp)
|
|
6379
|
+
? (_openBlock(), _createElementBlock("div", { key: 0 }, [
|
|
6380
|
+
_createElementVNode("dt", null, "MCP 服务"),
|
|
6381
|
+
_createElementVNode("dd", null, _toDisplayString(record.mcp.server) + " · " + _toDisplayString(record.mcp.tool), 1 /* TEXT */)
|
|
6382
|
+
]))
|
|
6383
|
+
: _createCommentVNode("v-if", true),
|
|
6384
|
+
(record.filePath)
|
|
6385
|
+
? (_openBlock(), _createElementBlock("div", { key: 1 }, [
|
|
6386
|
+
_createElementVNode("dt", null, "文件位置"),
|
|
6387
|
+
_createElementVNode("dd", null, [
|
|
6388
|
+
_createElementVNode("code", null, _toDisplayString(record.filePath), 1 /* TEXT */)
|
|
6389
|
+
])
|
|
6390
|
+
]))
|
|
6391
|
+
: _createCommentVNode("v-if", true),
|
|
6392
|
+
(record.readConfirmation)
|
|
6393
|
+
? (_openBlock(), _createElementBlock("div", { key: 2 }, [
|
|
6394
|
+
_createElementVNode("dt", null, "读取代理"),
|
|
6395
|
+
_createElementVNode("dd", null, _toDisplayString(record.readConfirmation.agent), 1 /* TEXT */)
|
|
6396
|
+
]))
|
|
6397
|
+
: _createCommentVNode("v-if", true),
|
|
6398
|
+
(record.readConfirmation)
|
|
6399
|
+
? (_openBlock(), _createElementBlock("div", { key: 3 }, [
|
|
6400
|
+
_createElementVNode("dt", null, "确认时间"),
|
|
6401
|
+
_createElementVNode("dd", null, _toDisplayString(record.readConfirmation.at), 1 /* TEXT */)
|
|
6402
|
+
]))
|
|
6403
|
+
: _createCommentVNode("v-if", true),
|
|
6404
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(record.discoveryWarnings || [], (warning, index) => {
|
|
6405
|
+
return (_openBlock(), _createElementBlock("div", { key: index }, [
|
|
6406
|
+
_createElementVNode("dt", null, "探测提示"),
|
|
6407
|
+
_createElementVNode("dd", null, _toDisplayString(warning.source) + " · " + _toDisplayString(warning.reason), 1 /* TEXT */)
|
|
6408
|
+
]))
|
|
6409
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
6410
|
+
])
|
|
6411
|
+
])
|
|
6412
|
+
]))
|
|
6413
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
6414
|
+
]))
|
|
6415
|
+
: _createCommentVNode("v-if", true)
|
|
6416
|
+
])
|
|
5727
6417
|
]))
|
|
5728
6418
|
: _createCommentVNode("v-if", true)
|
|
5729
6419
|
], 40 /* PROPS, NEED_HYDRATION */, ["open", "onToggle"]))
|
|
@@ -6435,38 +7125,38 @@ return function render(_ctx, _cache) {
|
|
|
6435
7125
|
_createElementVNode("div", { class: "session-msg-meta" }, [
|
|
6436
7126
|
_createElementVNode("span", { class: "session-msg-role" }, _toDisplayString(msg.roleLabel || (msg.normalizedRole === 'user' ? _ctx.t('sessions.roleLabel.user') : (msg.normalizedRole === 'system' ? _ctx.t('sessions.roleLabel.system') : _ctx.t('sessions.roleLabel.assistant')))), 1 /* TEXT */),
|
|
6437
7127
|
_createElementVNode("span", { class: "session-msg-time" }, _toDisplayString(msg.timestamp || ''), 1 /* TEXT */)
|
|
6438
|
-
])
|
|
7128
|
+
]),
|
|
7129
|
+
(msg.normalizedRole === 'user')
|
|
7130
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
7131
|
+
key: 0,
|
|
7132
|
+
type: "button",
|
|
7133
|
+
class: "session-msg-copy",
|
|
7134
|
+
onClick: $event => (_ctx.copySessionMessage(msg)),
|
|
7135
|
+
"aria-label": _ctx.t('sessions.preview.copyMessage'),
|
|
7136
|
+
title: _ctx.t('sessions.preview.copyMessage')
|
|
7137
|
+
}, [
|
|
7138
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
7139
|
+
viewBox: "0 0 24 24",
|
|
7140
|
+
fill: "none",
|
|
7141
|
+
stroke: "currentColor",
|
|
7142
|
+
"stroke-width": "2"
|
|
7143
|
+
}, [
|
|
7144
|
+
_createElementVNode("rect", {
|
|
7145
|
+
x: "8",
|
|
7146
|
+
y: "8",
|
|
7147
|
+
width: "12",
|
|
7148
|
+
height: "12",
|
|
7149
|
+
rx: "2"
|
|
7150
|
+
}),
|
|
7151
|
+
_createElementVNode("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
|
|
7152
|
+
]))
|
|
7153
|
+
], 8 /* PROPS */, ["onClick", "aria-label", "title"]))
|
|
7154
|
+
: _createCommentVNode("v-if", true)
|
|
6439
7155
|
]),
|
|
6440
7156
|
_createElementVNode("div", {
|
|
6441
7157
|
class: "session-msg-content",
|
|
6442
7158
|
innerHTML: msg.text || ''
|
|
6443
|
-
}, null, 8 /* PROPS */, ["innerHTML"])
|
|
6444
|
-
(msg.normalizedRole === 'user')
|
|
6445
|
-
? (_openBlock(), _createElementBlock("button", {
|
|
6446
|
-
key: 0,
|
|
6447
|
-
type: "button",
|
|
6448
|
-
class: "session-msg-copy",
|
|
6449
|
-
onClick: $event => (_ctx.copySessionMessage(msg)),
|
|
6450
|
-
"aria-label": _ctx.t('sessions.preview.copyMessage'),
|
|
6451
|
-
title: _ctx.t('sessions.preview.copyMessage')
|
|
6452
|
-
}, [
|
|
6453
|
-
(_openBlock(), _createElementBlock("svg", {
|
|
6454
|
-
viewBox: "0 0 24 24",
|
|
6455
|
-
fill: "none",
|
|
6456
|
-
stroke: "currentColor",
|
|
6457
|
-
"stroke-width": "2"
|
|
6458
|
-
}, [
|
|
6459
|
-
_createElementVNode("rect", {
|
|
6460
|
-
x: "8",
|
|
6461
|
-
y: "8",
|
|
6462
|
-
width: "12",
|
|
6463
|
-
height: "12",
|
|
6464
|
-
rx: "2"
|
|
6465
|
-
}),
|
|
6466
|
-
_createElementVNode("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
|
|
6467
|
-
]))
|
|
6468
|
-
], 8 /* PROPS */, ["onClick", "aria-label", "title"]))
|
|
6469
|
-
: _createCommentVNode("v-if", true)
|
|
7159
|
+
}, null, 8 /* PROPS */, ["innerHTML"])
|
|
6470
7160
|
], 10 /* CLASS, PROPS */, ["data-message-key"]))
|
|
6471
7161
|
_item.memo = _memo
|
|
6472
7162
|
return _item
|
|
@@ -6648,6 +7338,187 @@ return function render(_ctx, _cache) {
|
|
|
6648
7338
|
], 8 /* PROPS */, ["onClick", "disabled", "title"])
|
|
6649
7339
|
], 8 /* PROPS */, ["aria-label"])
|
|
6650
7340
|
]),
|
|
7341
|
+
_createElementVNode("details", {
|
|
7342
|
+
class: "usage-card usage-records",
|
|
7343
|
+
id: "usage-records-report",
|
|
7344
|
+
onToggle: $event => (_ctx.toggleUsageRecords($event))
|
|
7345
|
+
}, [
|
|
7346
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('usage.records.title')), 1 /* TEXT */),
|
|
7347
|
+
_createElementVNode("p", { class: "usage-list-meta" }, _toDisplayString(_ctx.t('usage.records.scope')), 1 /* TEXT */),
|
|
7348
|
+
(_ctx.usageRecordsLoading)
|
|
7349
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7350
|
+
key: 0,
|
|
7351
|
+
role: "status"
|
|
7352
|
+
}, _toDisplayString(_ctx.t('usage.loading')), 1 /* TEXT */))
|
|
7353
|
+
: _createCommentVNode("v-if", true),
|
|
7354
|
+
(_ctx.usageRecordsError)
|
|
7355
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7356
|
+
key: 1,
|
|
7357
|
+
role: "alert"
|
|
7358
|
+
}, _toDisplayString(_ctx.usageRecordsError), 1 /* TEXT */))
|
|
7359
|
+
: _createCommentVNode("v-if", true),
|
|
7360
|
+
(_ctx.usageRecords)
|
|
7361
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
7362
|
+
_createElementVNode("p", { class: "usage-list-meta" }, _toDisplayString(_ctx.t('usage.records.coverage', { scanned: _ctx.usageRecords.summary.scannedSessions, candidates: _ctx.usageRecords.summary.candidateSessions, unreported: _ctx.usageRecords.summary.unreportedSessions, unsupported: _ctx.usageRecords.summary.unsupportedSessions })), 1 /* TEXT */),
|
|
7363
|
+
(_ctx.usageRecords.summary.failedSessions.length)
|
|
7364
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7365
|
+
key: 0,
|
|
7366
|
+
role: "alert"
|
|
7367
|
+
}, _toDisplayString(_ctx.t('usage.records.failed', { count: _ctx.usageRecords.summary.failedSessions.length })), 1 /* TEXT */))
|
|
7368
|
+
: _createCommentVNode("v-if", true),
|
|
7369
|
+
_createElementVNode("div", { class: "usage-kpi-grid" }, [
|
|
7370
|
+
_createElementVNode("div", { class: "usage-kpi-card" }, [
|
|
7371
|
+
_createElementVNode("div", { class: "usage-kpi-label" }, _toDisplayString(_ctx.t('usage.records.total')), 1 /* TEXT */),
|
|
7372
|
+
_createElementVNode("div", { class: "usage-kpi-value" }, _toDisplayString(_ctx.formatUsageRecordCount(_ctx.usageRecords.summary.totalTokens)), 1 /* TEXT */)
|
|
7373
|
+
]),
|
|
7374
|
+
_createElementVNode("div", { class: "usage-kpi-card" }, [
|
|
7375
|
+
_createElementVNode("div", { class: "usage-kpi-label" }, _toDisplayString(_ctx.t('usage.records.estimated')), 1 /* TEXT */),
|
|
7376
|
+
_createElementVNode("div", { class: "usage-kpi-value" }, _toDisplayString(_ctx.formatUsageRecordCount(_ctx.usageRecords.summary.estimatedTextTokens)), 1 /* TEXT */)
|
|
7377
|
+
]),
|
|
7378
|
+
_createElementVNode("div", { class: "usage-kpi-card" }, [
|
|
7379
|
+
_createElementVNode("div", { class: "usage-kpi-label" }, _toDisplayString(_ctx.t('usage.records.cacheRead')), 1 /* TEXT */),
|
|
7380
|
+
_createElementVNode("div", { class: "usage-kpi-value" }, _toDisplayString(_ctx.formatUsageRecordCount(_ctx.usageRecords.summary.cachedInputTokens)), 1 /* TEXT */)
|
|
7381
|
+
]),
|
|
7382
|
+
_createElementVNode("div", { class: "usage-kpi-card" }, [
|
|
7383
|
+
_createElementVNode("div", { class: "usage-kpi-label" }, _toDisplayString(_ctx.t('usage.records.cacheWrite')), 1 /* TEXT */),
|
|
7384
|
+
_createElementVNode("div", { class: "usage-kpi-value" }, _toDisplayString(_ctx.formatUsageRecordCount(_ctx.usageRecords.summary.cacheCreationInputTokens)), 1 /* TEXT */)
|
|
7385
|
+
])
|
|
7386
|
+
]),
|
|
7387
|
+
(_ctx.usageRecords.summary.undatedTokens)
|
|
7388
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7389
|
+
key: 1,
|
|
7390
|
+
class: "usage-list-meta"
|
|
7391
|
+
}, _toDisplayString(_ctx.t('usage.records.undated', { tokens: _ctx.usageRecords.summary.undatedTokens })), 1 /* TEXT */))
|
|
7392
|
+
: _createCommentVNode("v-if", true),
|
|
7393
|
+
_createElementVNode("div", { class: "usage-records-table" }, [
|
|
7394
|
+
_createElementVNode("table", null, [
|
|
7395
|
+
_createElementVNode("thead", null, [
|
|
7396
|
+
_createElementVNode("tr", null, [
|
|
7397
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.date')), 1 /* TEXT */),
|
|
7398
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.source')), 1 /* TEXT */),
|
|
7399
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.model')), 1 /* TEXT */),
|
|
7400
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.input')), 1 /* TEXT */),
|
|
7401
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.cacheRead')), 1 /* TEXT */),
|
|
7402
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.cacheWrite')), 1 /* TEXT */),
|
|
7403
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.output')), 1 /* TEXT */),
|
|
7404
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.total')), 1 /* TEXT */)
|
|
7405
|
+
])
|
|
7406
|
+
]),
|
|
7407
|
+
_createElementVNode("tbody", null, [
|
|
7408
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.usageRecords.rows, (row) => {
|
|
7409
|
+
return (_openBlock(), _createElementBlock("tr", {
|
|
7410
|
+
key: row.date + ':' + row.source + ':' + row.model
|
|
7411
|
+
}, [
|
|
7412
|
+
_createElementVNode("td", null, _toDisplayString(row.date || _ctx.t('usage.records.unknown')), 1 /* TEXT */),
|
|
7413
|
+
_createElementVNode("td", null, _toDisplayString(row.source), 1 /* TEXT */),
|
|
7414
|
+
_createElementVNode("td", null, _toDisplayString(row.model), 1 /* TEXT */),
|
|
7415
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.inputTokens)), 1 /* TEXT */),
|
|
7416
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.cachedInputTokens)), 1 /* TEXT */),
|
|
7417
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.cacheCreationInputTokens)), 1 /* TEXT */),
|
|
7418
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.outputTokens)), 1 /* TEXT */),
|
|
7419
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.totalTokens)), 1 /* TEXT */)
|
|
7420
|
+
]))
|
|
7421
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
7422
|
+
])
|
|
7423
|
+
])
|
|
7424
|
+
]),
|
|
7425
|
+
(!_ctx.usageRecords.rows.length)
|
|
7426
|
+
? (_openBlock(), _createElementBlock("p", { key: 2 }, _toDisplayString(_ctx.t('usage.empty')), 1 /* TEXT */))
|
|
7427
|
+
: _createCommentVNode("v-if", true)
|
|
7428
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
7429
|
+
: _createCommentVNode("v-if", true),
|
|
7430
|
+
(!_ctx.usageRecordsLoading)
|
|
7431
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
7432
|
+
key: 3,
|
|
7433
|
+
type: "button",
|
|
7434
|
+
class: "btn-mini",
|
|
7435
|
+
onClick: $event => (_ctx.loadUsageRecords({ forceRefresh: true }))
|
|
7436
|
+
}, _toDisplayString(_ctx.t('usage.refresh')), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
7437
|
+
: _createCommentVNode("v-if", true)
|
|
7438
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onToggle"]),
|
|
7439
|
+
_createElementVNode("details", {
|
|
7440
|
+
class: "usage-card usage-pricing",
|
|
7441
|
+
id: "usage-price-reference",
|
|
7442
|
+
onToggle: $event => (_ctx.toggleUsagePricing($event))
|
|
7443
|
+
}, [
|
|
7444
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('pricing.title')), 1 /* TEXT */),
|
|
7445
|
+
_createElementVNode("p", { class: "usage-list-meta" }, _toDisplayString(_ctx.t('pricing.scope')), 1 /* TEXT */),
|
|
7446
|
+
(_ctx.usagePricingBusy)
|
|
7447
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7448
|
+
key: 0,
|
|
7449
|
+
role: "status"
|
|
7450
|
+
}, _toDisplayString(_ctx.t('usage.loading')), 1 /* TEXT */))
|
|
7451
|
+
: _createCommentVNode("v-if", true),
|
|
7452
|
+
(_ctx.usagePricingError)
|
|
7453
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7454
|
+
key: 1,
|
|
7455
|
+
role: "alert"
|
|
7456
|
+
}, _toDisplayString(_ctx.usagePricingError), 1 /* TEXT */))
|
|
7457
|
+
: _createCommentVNode("v-if", true),
|
|
7458
|
+
(_ctx.usagePricing)
|
|
7459
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
7460
|
+
_createElementVNode("p", { class: "usage-price-total" }, _toDisplayString(_ctx.t('pricing.total')) + ": " + _toDisplayString(_ctx.formatPriceUsd(_ctx.usagePricing.summary.estimatedUsd)), 1 /* TEXT */),
|
|
7461
|
+
_createElementVNode("p", { class: "usage-list-meta" }, _toDisplayString(_ctx.t('pricing.coverage', { known: _ctx.usagePricing.summary.pricedRows, unknown: _ctx.usagePricing.summary.unknownRows, failed: _ctx.usagePricing.summary.failedSessions, unreported: _ctx.usagePricing.summary.unreportedSessions, unsupported: _ctx.usagePricing.summary.unsupportedSessions })) + " · " + _toDisplayString(_ctx.t('pricing.subtotal')) + ": " + _toDisplayString(_ctx.formatPriceUsd(_ctx.usagePricing.summary.knownSubtotalUsd)), 1 /* TEXT */),
|
|
7462
|
+
_createElementVNode("p", { class: "usage-list-meta" }, [
|
|
7463
|
+
_createElementVNode("a", {
|
|
7464
|
+
href: _ctx.usagePricing.priceSource.repository,
|
|
7465
|
+
target: "_blank",
|
|
7466
|
+
rel: "noopener noreferrer"
|
|
7467
|
+
}, "Wei-Shaw/model-price-repo", 8 /* PROPS */, ["href"]),
|
|
7468
|
+
_createTextVNode(" · " + _toDisplayString(_ctx.usagePricing.priceSource.sourceUpdatedAt) + " · ", 1 /* TEXT */),
|
|
7469
|
+
_createElementVNode("code", null, _toDisplayString(_ctx.usagePricing.priceSource.commit.slice(0, 12)), 1 /* TEXT */)
|
|
7470
|
+
]),
|
|
7471
|
+
_createElementVNode("div", { class: "usage-records-table" }, [
|
|
7472
|
+
_createElementVNode("table", null, [
|
|
7473
|
+
_createElementVNode("thead", null, [
|
|
7474
|
+
_createElementVNode("tr", null, [
|
|
7475
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.date')), 1 /* TEXT */),
|
|
7476
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.source')), 1 /* TEXT */),
|
|
7477
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.model')), 1 /* TEXT */),
|
|
7478
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('pricing.total')), 1 /* TEXT */),
|
|
7479
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('pricing.basis')), 1 /* TEXT */)
|
|
7480
|
+
])
|
|
7481
|
+
]),
|
|
7482
|
+
_createElementVNode("tbody", null, [
|
|
7483
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.usagePricing.rows, (row) => {
|
|
7484
|
+
return (_openBlock(), _createElementBlock("tr", {
|
|
7485
|
+
key: row.date + ':' + row.source + ':' + row.model
|
|
7486
|
+
}, [
|
|
7487
|
+
_createElementVNode("td", null, _toDisplayString(row.date || _ctx.t('usage.records.unknown')), 1 /* TEXT */),
|
|
7488
|
+
_createElementVNode("td", null, _toDisplayString(row.source), 1 /* TEXT */),
|
|
7489
|
+
_createElementVNode("td", null, _toDisplayString(row.model), 1 /* TEXT */),
|
|
7490
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatPriceUsd(row.estimatedUsd)), 1 /* TEXT */),
|
|
7491
|
+
_createElementVNode("td", null, [
|
|
7492
|
+
_createTextVNode(_toDisplayString(_ctx.t('pricing.reason.' + row.reason)), 1 /* TEXT */),
|
|
7493
|
+
(row.rates)
|
|
7494
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
7495
|
+
key: 0,
|
|
7496
|
+
class: "usage-price-rates"
|
|
7497
|
+
}, _toDisplayString(_ctx.t('pricing.rates', { input: _ctx.formatTokenRate(row.rates.input_cost_per_token), output: _ctx.formatTokenRate(row.rates.output_cost_per_token), cached: _ctx.formatTokenRate(row.rates.cache_read_input_token_cost), created: _ctx.formatTokenRate(row.rates.cache_creation_input_token_cost) })), 1 /* TEXT */))
|
|
7498
|
+
: _createCommentVNode("v-if", true)
|
|
7499
|
+
])
|
|
7500
|
+
]))
|
|
7501
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
7502
|
+
])
|
|
7503
|
+
])
|
|
7504
|
+
]),
|
|
7505
|
+
(!_ctx.usagePricing.rows.length)
|
|
7506
|
+
? (_openBlock(), _createElementBlock("p", { key: 0 }, _toDisplayString(_ctx.t('usage.empty')), 1 /* TEXT */))
|
|
7507
|
+
: _createCommentVNode("v-if", true),
|
|
7508
|
+
_createElementVNode("button", {
|
|
7509
|
+
type: "button",
|
|
7510
|
+
class: "btn-mini",
|
|
7511
|
+
onClick: _ctx.downloadUsagePricing
|
|
7512
|
+
}, _toDisplayString(_ctx.t('pricing.download')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
7513
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
7514
|
+
: _createCommentVNode("v-if", true),
|
|
7515
|
+
_createElementVNode("button", {
|
|
7516
|
+
type: "button",
|
|
7517
|
+
class: "btn-mini",
|
|
7518
|
+
onClick: _ctx.loadUsagePricing,
|
|
7519
|
+
disabled: _ctx.usagePricingBusy
|
|
7520
|
+
}, _toDisplayString(_ctx.t('usage.refresh')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
7521
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onToggle"]),
|
|
6651
7522
|
(_ctx.sessionsUsageLoading && !_ctx.sessionsUsageList.length)
|
|
6652
7523
|
? (_openBlock(), _createElementBlock("div", {
|
|
6653
7524
|
key: 0,
|
|
@@ -7262,7 +8133,20 @@ return function render(_ctx, _cache) {
|
|
|
7262
8133
|
class: "session-features feature-diagnostics",
|
|
7263
8134
|
onToggle: $event => ($event.target === $event.currentTarget && $event.currentTarget.open && _ctx.loadDiagnosticTargets())
|
|
7264
8135
|
}, [
|
|
7265
|
-
_createElementVNode("summary", { class: "feature-diagnostics-heading" },
|
|
8136
|
+
_createElementVNode("summary", { class: "feature-diagnostics-heading" }, [
|
|
8137
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.diagnostics')), 1 /* TEXT */),
|
|
8138
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
8139
|
+
class: "feature-diagnostics-chevron",
|
|
8140
|
+
viewBox: "0 0 24 24",
|
|
8141
|
+
fill: "none",
|
|
8142
|
+
stroke: "currentColor",
|
|
8143
|
+
"stroke-width": "1.75",
|
|
8144
|
+
"aria-hidden": "true",
|
|
8145
|
+
focusable: "false"
|
|
8146
|
+
}, [
|
|
8147
|
+
_createElementVNode("path", { d: "m9 5 7 7-7 7" })
|
|
8148
|
+
]))
|
|
8149
|
+
]),
|
|
7266
8150
|
_createElementVNode("div", { class: "feature-content" }, [
|
|
7267
8151
|
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.diagnosticScope')), 1 /* TEXT */),
|
|
7268
8152
|
(_ctx.featureError)
|
|
@@ -7300,7 +8184,7 @@ return function render(_ctx, _cache) {
|
|
|
7300
8184
|
_createElementVNode("div", { class: "feature-actions feature-diagnostic-controls" }, [
|
|
7301
8185
|
_createElementVNode("button", {
|
|
7302
8186
|
type: "button",
|
|
7303
|
-
class: "
|
|
8187
|
+
class: "feature-button feature-primary",
|
|
7304
8188
|
onClick: _ctx.startDiagnostics,
|
|
7305
8189
|
disabled: _ctx.diagnosticsReport?.status === 'running'
|
|
7306
8190
|
}, _toDisplayString(_ctx.t('features.check')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
@@ -7308,7 +8192,7 @@ return function render(_ctx, _cache) {
|
|
|
7308
8192
|
? (_openBlock(), _createElementBlock("button", {
|
|
7309
8193
|
key: 0,
|
|
7310
8194
|
type: "button",
|
|
7311
|
-
class: "
|
|
8195
|
+
class: "feature-button feature-quiet",
|
|
7312
8196
|
onClick: _ctx.cancelDiagnostics
|
|
7313
8197
|
}, _toDisplayString(_ctx.t('features.cancel')), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
7314
8198
|
: _createCommentVNode("v-if", true),
|
|
@@ -7364,12 +8248,12 @@ return function render(_ctx, _cache) {
|
|
|
7364
8248
|
_createElementVNode("footer", { class: "feature-record-actions feature-export-actions" }, [
|
|
7365
8249
|
_createElementVNode("button", {
|
|
7366
8250
|
type: "button",
|
|
7367
|
-
class: "
|
|
8251
|
+
class: "feature-button feature-quiet",
|
|
7368
8252
|
onClick: $event => (_ctx.exportDiagnostics('json'))
|
|
7369
8253
|
}, _toDisplayString(_ctx.t('features.exportJson')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
7370
8254
|
_createElementVNode("button", {
|
|
7371
8255
|
type: "button",
|
|
7372
|
-
class: "
|
|
8256
|
+
class: "feature-button feature-quiet",
|
|
7373
8257
|
onClick: $event => (_ctx.exportDiagnostics('md'))
|
|
7374
8258
|
}, _toDisplayString(_ctx.t('features.exportMarkdown')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
7375
8259
|
])
|
|
@@ -7448,22 +8332,31 @@ return function render(_ctx, _cache) {
|
|
|
7448
8332
|
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
7449
8333
|
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
7450
8334
|
_createElementVNode("div", { class: "settings-card-title" }, _toDisplayString(_ctx.t('settings.theme.title')), 1 /* TEXT */),
|
|
7451
|
-
_createElementVNode("div", { class: "settings-toggle-group" }, [
|
|
8335
|
+
_createElementVNode("div", { class: "settings-toggle-group settings-theme-options" }, [
|
|
7452
8336
|
_createElementVNode("button", {
|
|
7453
8337
|
type: "button",
|
|
7454
8338
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'light' }]),
|
|
8339
|
+
"aria-pressed": _ctx.theme === 'light',
|
|
7455
8340
|
onClick: $event => (_ctx.setTheme('light'))
|
|
7456
|
-
}, _toDisplayString(_ctx.t('settings.theme.light')), 11 /* TEXT, CLASS, PROPS */, ["onClick"]),
|
|
8341
|
+
}, _toDisplayString(_ctx.t('settings.theme.light')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"]),
|
|
7457
8342
|
_createElementVNode("button", {
|
|
7458
8343
|
type: "button",
|
|
7459
8344
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'dark' }]),
|
|
8345
|
+
"aria-pressed": _ctx.theme === 'dark',
|
|
7460
8346
|
onClick: $event => (_ctx.setTheme('dark'))
|
|
7461
|
-
}, _toDisplayString(_ctx.t('settings.theme.dark')), 11 /* TEXT, CLASS, PROPS */, ["onClick"]),
|
|
8347
|
+
}, _toDisplayString(_ctx.t('settings.theme.dark')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"]),
|
|
7462
8348
|
_createElementVNode("button", {
|
|
7463
8349
|
type: "button",
|
|
7464
8350
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'ocean' }]),
|
|
8351
|
+
"aria-pressed": _ctx.theme === 'ocean',
|
|
7465
8352
|
onClick: $event => (_ctx.setTheme('ocean'))
|
|
7466
|
-
}, _toDisplayString(_ctx.t('settings.theme.ocean')), 11 /* TEXT, CLASS, PROPS */, ["onClick"])
|
|
8353
|
+
}, _toDisplayString(_ctx.t('settings.theme.ocean')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"]),
|
|
8354
|
+
_createElementVNode("button", {
|
|
8355
|
+
type: "button",
|
|
8356
|
+
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'violet' }]),
|
|
8357
|
+
"aria-pressed": _ctx.theme === 'violet',
|
|
8358
|
+
onClick: $event => (_ctx.setTheme('violet'))
|
|
8359
|
+
}, _toDisplayString(_ctx.t('settings.theme.violet')), 11 /* TEXT, CLASS, PROPS */, ["aria-pressed", "onClick"])
|
|
7467
8360
|
])
|
|
7468
8361
|
])
|
|
7469
8362
|
])
|
|
@@ -8349,8 +9242,7 @@ return function render(_ctx, _cache) {
|
|
|
8349
9242
|
}, [
|
|
8350
9243
|
_createElementVNode("div", { class: "selector-header plugins-sidebar-header" }, [
|
|
8351
9244
|
_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 */)
|
|
9245
|
+
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('plugins.sidebar.title')), 1 /* TEXT */)
|
|
8354
9246
|
])
|
|
8355
9247
|
]),
|
|
8356
9248
|
_createElementVNode("div", {
|
|
@@ -8360,6 +9252,7 @@ return function render(_ctx, _cache) {
|
|
|
8360
9252
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.pluginsCatalog, (plugin) => {
|
|
8361
9253
|
return (_openBlock(), _createElementBlock("button", {
|
|
8362
9254
|
key: 'plugin-' + plugin.id,
|
|
9255
|
+
"data-plugin-id": plugin.id,
|
|
8363
9256
|
type: "button",
|
|
8364
9257
|
class: _normalizeClass(['plugins-item', { active: _ctx.pluginsActiveId === plugin.id }]),
|
|
8365
9258
|
"aria-current": _ctx.pluginsActiveId === plugin.id ? 'page' : null,
|
|
@@ -8373,7 +9266,7 @@ return function render(_ctx, _cache) {
|
|
|
8373
9266
|
_createElementVNode("span", {
|
|
8374
9267
|
class: _normalizeClass(['pill', plugin.tone])
|
|
8375
9268
|
}, _toDisplayString(plugin.statusLabel), 3 /* TEXT, CLASS */)
|
|
8376
|
-
], 10 /* CLASS, PROPS */, ["aria-current", "disabled", "onClick"]))
|
|
9269
|
+
], 10 /* CLASS, PROPS */, ["data-plugin-id", "aria-current", "disabled", "onClick"]))
|
|
8377
9270
|
}), 128 /* KEYED_FRAGMENT */))
|
|
8378
9271
|
])
|
|
8379
9272
|
], 8 /* PROPS */, ["aria-label"]))
|
|
@@ -8407,13 +9300,7 @@ return function render(_ctx, _cache) {
|
|
|
8407
9300
|
}, [
|
|
8408
9301
|
_createElementVNode("div", { class: "plugins-panel-head" }, [
|
|
8409
9302
|
_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)
|
|
9303
|
+
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.title')), 1 /* TEXT */)
|
|
8417
9304
|
]),
|
|
8418
9305
|
(!_ctx.pluginsSidebarVisible)
|
|
8419
9306
|
? (_openBlock(), _createElementBlock("div", {
|
|
@@ -8501,15 +9388,10 @@ return function render(_ctx, _cache) {
|
|
|
8501
9388
|
key: 0,
|
|
8502
9389
|
class: "plugins-panel-note"
|
|
8503
9390
|
}, _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),
|
|
9391
|
+
: _createCommentVNode("v-if", true),
|
|
8510
9392
|
(_ctx.promptComposerActiveTemplate && !_ctx.promptComposerActiveTemplate.isBuiltin)
|
|
8511
9393
|
? (_openBlock(), _createElementBlock("div", {
|
|
8512
|
-
key:
|
|
9394
|
+
key: 1,
|
|
8513
9395
|
class: "prompt-compose-actions"
|
|
8514
9396
|
}, [
|
|
8515
9397
|
_createElementVNode("button", {
|
|
@@ -8529,15 +9411,9 @@ return function render(_ctx, _cache) {
|
|
|
8529
9411
|
_createElementVNode("div", { class: "prompt-vars-head" }, [
|
|
8530
9412
|
_createElementVNode("div", null, [
|
|
8531
9413
|
_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
9414
|
(_ctx.promptComposerMissingVars.length)
|
|
8539
9415
|
? (_openBlock(), _createElementBlock("div", {
|
|
8540
|
-
key:
|
|
9416
|
+
key: 0,
|
|
8541
9417
|
class: "plugins-panel-note"
|
|
8542
9418
|
}, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.missingCount', { count: _ctx.promptComposerMissingVars.length })), 1 /* TEXT */))
|
|
8543
9419
|
: _createCommentVNode("v-if", true)
|
|
@@ -8595,8 +9471,7 @@ return function render(_ctx, _cache) {
|
|
|
8595
9471
|
_createElementVNode("div", { class: "prompt-preview-block prompt-compose-preview" }, [
|
|
8596
9472
|
_createElementVNode("div", { class: "prompt-vars-head" }, [
|
|
8597
9473
|
_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 */)
|
|
9474
|
+
_createElementVNode("div", { class: "prompt-vars-title" }, _toDisplayString(_ctx.t('plugins.promptTemplates.compose.outputTitle')), 1 /* TEXT */)
|
|
8600
9475
|
]),
|
|
8601
9476
|
_createElementVNode("button", {
|
|
8602
9477
|
type: "button",
|
|
@@ -8842,12 +9717,6 @@ return function render(_ctx, _cache) {
|
|
|
8842
9717
|
class: "plugins-panel-note"
|
|
8843
9718
|
}, _toDisplayString(_ctx.t('plugins.promptTemplates.editor.builtinReadOnly')), 1 /* TEXT */))
|
|
8844
9719
|
: _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
9720
|
_withDirectives(_createElementVNode("input", {
|
|
8852
9721
|
class: "form-input",
|
|
8853
9722
|
type: "text",
|
|
@@ -8957,13 +9826,7 @@ return function render(_ctx, _cache) {
|
|
|
8957
9826
|
}, [
|
|
8958
9827
|
_createElementVNode("div", { class: "plugins-panel-head" }, [
|
|
8959
9828
|
_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)
|
|
9829
|
+
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.textTools.title')), 1 /* TEXT */)
|
|
8967
9830
|
])
|
|
8968
9831
|
]),
|
|
8969
9832
|
_createElementVNode("div", {
|
|
@@ -9023,10 +9886,197 @@ return function render(_ctx, _cache) {
|
|
|
9023
9886
|
])
|
|
9024
9887
|
])
|
|
9025
9888
|
]))
|
|
9026
|
-
: (
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9889
|
+
: (_ctx.pluginsActiveId === 'file-sharing')
|
|
9890
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
9891
|
+
key: 4,
|
|
9892
|
+
class: "plugins-panel",
|
|
9893
|
+
id: "plugin-file-sharing"
|
|
9894
|
+
}, [
|
|
9895
|
+
_createElementVNode("div", { class: "plugins-panel-head" }, [
|
|
9896
|
+
_createElementVNode("div", { class: "plugins-panel-title" }, _toDisplayString(_ctx.t('plugins.fileSharing.title')), 1 /* TEXT */),
|
|
9897
|
+
_createElementVNode("div", { class: "file-sharing-actions" }, [
|
|
9898
|
+
_createElementVNode("button", {
|
|
9899
|
+
type: "button",
|
|
9900
|
+
class: "btn-mini",
|
|
9901
|
+
disabled: _ctx.fileSharingBusy,
|
|
9902
|
+
onClick: $event => (_ctx.$refs.fileSharingFiles.click())
|
|
9903
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.chooseFiles')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
9904
|
+
_createElementVNode("button", {
|
|
9905
|
+
type: "button",
|
|
9906
|
+
class: "btn-mini",
|
|
9907
|
+
disabled: _ctx.fileSharingBusy,
|
|
9908
|
+
onClick: $event => (_ctx.$refs.fileSharingFolder.click())
|
|
9909
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.chooseFolder')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
9910
|
+
_createElementVNode("button", {
|
|
9911
|
+
type: "button",
|
|
9912
|
+
class: "btn-mini",
|
|
9913
|
+
disabled: _ctx.fileSharingBusy,
|
|
9914
|
+
onClick: _ctx.refreshFileSharing
|
|
9915
|
+
}, _toDisplayString(_ctx.t('common.refresh')), 9 /* TEXT, PROPS */, ["disabled", "onClick"])
|
|
9916
|
+
])
|
|
9917
|
+
]),
|
|
9918
|
+
_createElementVNode("input", {
|
|
9919
|
+
ref: "fileSharingFiles",
|
|
9920
|
+
id: "file-sharing-files",
|
|
9921
|
+
type: "file",
|
|
9922
|
+
multiple: "",
|
|
9923
|
+
hidden: "",
|
|
9924
|
+
onChange: $event => (_ctx.selectFileSharingItems($event, false))
|
|
9925
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
9926
|
+
_createElementVNode("input", {
|
|
9927
|
+
ref: "fileSharingFolder",
|
|
9928
|
+
id: "file-sharing-folder",
|
|
9929
|
+
type: "file",
|
|
9930
|
+
webkitdirectory: "",
|
|
9931
|
+
hidden: "",
|
|
9932
|
+
onChange: $event => (_ctx.selectFileSharingItems($event, true))
|
|
9933
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
9934
|
+
(_ctx.fileSharingError)
|
|
9935
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
9936
|
+
key: 0,
|
|
9937
|
+
role: "alert",
|
|
9938
|
+
class: "state-message error"
|
|
9939
|
+
}, _toDisplayString(_ctx.fileSharingError), 1 /* TEXT */))
|
|
9940
|
+
: _createCommentVNode("v-if", true),
|
|
9941
|
+
(_ctx.fileSharingPending)
|
|
9942
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
9943
|
+
key: 1,
|
|
9944
|
+
class: "file-sharing-pending"
|
|
9945
|
+
}, [
|
|
9946
|
+
_createElementVNode("p", { class: "plugins-panel-note" }, _toDisplayString(_ctx.t('plugins.fileSharing.confirm')), 1 /* TEXT */),
|
|
9947
|
+
_createElementVNode("ul", {
|
|
9948
|
+
class: "file-sharing-items",
|
|
9949
|
+
"aria-live": "polite"
|
|
9950
|
+
}, [
|
|
9951
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.fileSharingPending.entries, (file, index) => {
|
|
9952
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
9953
|
+
key: index,
|
|
9954
|
+
dir: "auto"
|
|
9955
|
+
}, _toDisplayString(file.name), 1 /* TEXT */))
|
|
9956
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
9957
|
+
]),
|
|
9958
|
+
_createElementVNode("div", { class: "file-sharing-actions" }, [
|
|
9959
|
+
_createElementVNode("button", {
|
|
9960
|
+
type: "button",
|
|
9961
|
+
class: "btn-mini",
|
|
9962
|
+
id: "upload-file-sharing",
|
|
9963
|
+
disabled: _ctx.fileSharingBusy,
|
|
9964
|
+
onClick: _ctx.uploadFileSharingItems
|
|
9965
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.upload')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
9966
|
+
_createElementVNode("button", {
|
|
9967
|
+
type: "button",
|
|
9968
|
+
class: "btn-mini",
|
|
9969
|
+
id: "cancel-file-sharing",
|
|
9970
|
+
disabled: _ctx.fileSharingBusy,
|
|
9971
|
+
onClick: $event => (_ctx.fileSharingPending = null)
|
|
9972
|
+
}, _toDisplayString(_ctx.t('common.cancel')), 9 /* TEXT, PROPS */, ["disabled", "onClick"])
|
|
9973
|
+
])
|
|
9974
|
+
]))
|
|
9975
|
+
: _createCommentVNode("v-if", true),
|
|
9976
|
+
(_ctx.fileSharingBusy)
|
|
9977
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
9978
|
+
key: 2,
|
|
9979
|
+
role: "status",
|
|
9980
|
+
class: "plugins-panel-note"
|
|
9981
|
+
}, _toDisplayString(_ctx.t('common.loading')), 1 /* TEXT */))
|
|
9982
|
+
: (!_ctx.fileSharingBatches.length)
|
|
9983
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
9984
|
+
key: 3,
|
|
9985
|
+
class: "skills-empty-state"
|
|
9986
|
+
}, _toDisplayString(_ctx.t('plugins.fileSharing.empty')), 1 /* TEXT */))
|
|
9987
|
+
: _createCommentVNode("v-if", true),
|
|
9988
|
+
(_ctx.fileSharingBatches.length)
|
|
9989
|
+
? (_openBlock(), _createElementBlock("ul", {
|
|
9990
|
+
key: 4,
|
|
9991
|
+
class: "file-sharing-items file-sharing-batches"
|
|
9992
|
+
}, [
|
|
9993
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.fileSharingBatches, (batch) => {
|
|
9994
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
9995
|
+
key: batch.id
|
|
9996
|
+
}, [
|
|
9997
|
+
_createElementVNode("div", { class: "file-sharing-row" }, [
|
|
9998
|
+
_createElementVNode("strong", { dir: "auto" }, _toDisplayString(batch.folder || _ctx.t('plugins.fileSharing.files', { count: batch.files.length })), 1 /* TEXT */),
|
|
9999
|
+
_createElementVNode("button", {
|
|
10000
|
+
type: "button",
|
|
10001
|
+
class: "btn-mini file-sharing-icon file-sharing-remove",
|
|
10002
|
+
"aria-label": _ctx.t('plugins.fileSharing.remove'),
|
|
10003
|
+
title: _ctx.t('plugins.fileSharing.remove'),
|
|
10004
|
+
disabled: _ctx.fileSharingBusy,
|
|
10005
|
+
onClick: $event => (_ctx.removeFileSharingBatch(batch.id))
|
|
10006
|
+
}, [
|
|
10007
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
10008
|
+
viewBox: "0 0 24 24",
|
|
10009
|
+
fill: "none",
|
|
10010
|
+
stroke: "currentColor",
|
|
10011
|
+
"stroke-width": "1.8",
|
|
10012
|
+
"stroke-linecap": "round",
|
|
10013
|
+
"stroke-linejoin": "round",
|
|
10014
|
+
focusable: "false"
|
|
10015
|
+
}, [
|
|
10016
|
+
_createElementVNode("path", { d: "M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6m5 4v6m4-6v6" })
|
|
10017
|
+
]))
|
|
10018
|
+
], 8 /* PROPS */, ["aria-label", "title", "disabled", "onClick"])
|
|
10019
|
+
]),
|
|
10020
|
+
_createElementVNode("ul", { class: "file-sharing-items" }, [
|
|
10021
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(batch.files, (file, index) => {
|
|
10022
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
10023
|
+
key: index,
|
|
10024
|
+
class: "file-sharing-row"
|
|
10025
|
+
}, [
|
|
10026
|
+
_createElementVNode("span", { dir: "auto" }, _toDisplayString(file.name), 1 /* TEXT */),
|
|
10027
|
+
_createElementVNode("span", { class: "file-sharing-size" }, _toDisplayString(_ctx.t('plugins.fileSharing.bytes', { size: file.size })), 1 /* TEXT */),
|
|
10028
|
+
_createElementVNode("a", {
|
|
10029
|
+
class: "btn-mini file-sharing-icon",
|
|
10030
|
+
"aria-label": _ctx.t('plugins.fileSharing.download'),
|
|
10031
|
+
title: _ctx.t('plugins.fileSharing.download'),
|
|
10032
|
+
href: _ctx.fileSharingDownloadUrl(batch.id, index),
|
|
10033
|
+
download: "",
|
|
10034
|
+
referrerpolicy: "no-referrer"
|
|
10035
|
+
}, [
|
|
10036
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
10037
|
+
viewBox: "0 0 24 24",
|
|
10038
|
+
fill: "none",
|
|
10039
|
+
stroke: "currentColor",
|
|
10040
|
+
"stroke-width": "1.8",
|
|
10041
|
+
"stroke-linecap": "round",
|
|
10042
|
+
"stroke-linejoin": "round",
|
|
10043
|
+
focusable: "false"
|
|
10044
|
+
}, [
|
|
10045
|
+
_createElementVNode("path", { d: "M12 3v12m-5-5 5 5 5-5M4 16v4h16v-4" })
|
|
10046
|
+
]))
|
|
10047
|
+
], 8 /* PROPS */, ["aria-label", "title", "href"]),
|
|
10048
|
+
_createElementVNode("button", {
|
|
10049
|
+
type: "button",
|
|
10050
|
+
class: "btn-mini file-sharing-icon file-sharing-copy",
|
|
10051
|
+
"aria-label": _ctx.t('plugins.fileSharing.copyLink'),
|
|
10052
|
+
title: _ctx.t('plugins.fileSharing.copyLink'),
|
|
10053
|
+
disabled: _ctx.fileSharingBusy,
|
|
10054
|
+
onClick: $event => (_ctx.copyFileSharingLink(batch.id, index))
|
|
10055
|
+
}, [
|
|
10056
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
10057
|
+
viewBox: "0 0 24 24",
|
|
10058
|
+
fill: "none",
|
|
10059
|
+
stroke: "currentColor",
|
|
10060
|
+
"stroke-width": "1.8",
|
|
10061
|
+
"stroke-linecap": "round",
|
|
10062
|
+
"stroke-linejoin": "round",
|
|
10063
|
+
focusable: "false"
|
|
10064
|
+
}, [
|
|
10065
|
+
_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" })
|
|
10066
|
+
]))
|
|
10067
|
+
], 8 /* PROPS */, ["aria-label", "title", "disabled", "onClick"])
|
|
10068
|
+
]))
|
|
10069
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
10070
|
+
])
|
|
10071
|
+
]))
|
|
10072
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
10073
|
+
]))
|
|
10074
|
+
: _createCommentVNode("v-if", true)
|
|
10075
|
+
]))
|
|
10076
|
+
: (_openBlock(), _createElementBlock("div", {
|
|
10077
|
+
key: 5,
|
|
10078
|
+
class: "skills-empty-state"
|
|
10079
|
+
}, _toDisplayString(_ctx.t('plugins.promptTemplates.noPluginSelected')), 1 /* TEXT */))
|
|
9030
10080
|
], 8 /* PROPS */, ["aria-label"])
|
|
9031
10081
|
], 2 /* CLASS */)
|
|
9032
10082
|
], 512 /* NEED_PATCH */), [
|
|
@@ -9109,13 +10159,7 @@ return function render(_ctx, _cache) {
|
|
|
9109
10159
|
value: _ctx.projectClaudeMdPath,
|
|
9110
10160
|
onChange: $event => (_ctx.setProjectClaudeMdPathManual($event.target.value))
|
|
9111
10161
|
}, 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)
|
|
10162
|
+
])
|
|
9119
10163
|
]))
|
|
9120
10164
|
: _createCommentVNode("v-if", true),
|
|
9121
10165
|
(_ctx.promptsSubTab !== 'system')
|
|
@@ -9693,31 +10737,84 @@ return function render(_ctx, _cache) {
|
|
|
9693
10737
|
(_ctx.promptsSubTab === 'system')
|
|
9694
10738
|
? (_openBlock(), _createElementBlock("div", { key: 2 }, [
|
|
9695
10739
|
_createElementVNode("div", { class: "sys-prompt-controls" }, [
|
|
10740
|
+
_createElementVNode("div", { class: "sys-prompt-control-group" }, [
|
|
10741
|
+
_createElementVNode("label", {
|
|
10742
|
+
class: "form-label",
|
|
10743
|
+
for: "sys-prompt-file-select"
|
|
10744
|
+
}, _toDisplayString(_ctx.t('sysPrompt.fileLabel')), 1 /* TEXT */),
|
|
10745
|
+
_createElementVNode("select", {
|
|
10746
|
+
id: "sys-prompt-file-select",
|
|
10747
|
+
class: "form-input sys-prompt-select",
|
|
10748
|
+
value: _ctx.currentSysPromptFileName(),
|
|
10749
|
+
"aria-busy": _ctx.sysPromptFilesLoading,
|
|
10750
|
+
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible,
|
|
10751
|
+
onFocus: _ctx.loadSystemPromptFiles,
|
|
10752
|
+
onPointerdown: _ctx.loadSystemPromptFiles,
|
|
10753
|
+
onKeydown: [
|
|
10754
|
+
_withKeys(_ctx.loadSystemPromptFiles, ["enter"]),
|
|
10755
|
+
_withKeys(_ctx.loadSystemPromptFiles, ["space"])
|
|
10756
|
+
],
|
|
10757
|
+
onChange: $event => (_ctx.switchSysPromptFileName($event.target.value, $event))
|
|
10758
|
+
}, [
|
|
10759
|
+
(!_ctx.sysPromptFiles.some(file => file.filename === _ctx.currentSysPromptFileName()))
|
|
10760
|
+
? (_openBlock(), _createElementBlock("option", {
|
|
10761
|
+
key: 0,
|
|
10762
|
+
value: _ctx.currentSysPromptFileName(),
|
|
10763
|
+
disabled: ""
|
|
10764
|
+
}, _toDisplayString(_ctx.currentSysPromptFileName()), 9 /* TEXT, PROPS */, ["value"]))
|
|
10765
|
+
: _createCommentVNode("v-if", true),
|
|
10766
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sysPromptFiles, (file) => {
|
|
10767
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
10768
|
+
key: file.filename,
|
|
10769
|
+
value: file.filename
|
|
10770
|
+
}, _toDisplayString(file.filename) + _toDisplayString(file.exists ? '' : ' · ' + _ctx.t('common.notExistsWillCreateOnSave')), 9 /* TEXT, PROPS */, ["value"]))
|
|
10771
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
10772
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["value", "aria-busy", "disabled", "onFocus", "onPointerdown", "onKeydown", "onChange"]),
|
|
10773
|
+
(_ctx.sysPromptFilesLoading)
|
|
10774
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10775
|
+
key: 0,
|
|
10776
|
+
class: "form-hint",
|
|
10777
|
+
role: "status"
|
|
10778
|
+
}, _toDisplayString(_ctx.t('sysPrompt.filesLoading')), 1 /* TEXT */))
|
|
10779
|
+
: _createCommentVNode("v-if", true)
|
|
10780
|
+
]),
|
|
9696
10781
|
_createElementVNode("div", { class: "sys-prompt-control-group" }, [
|
|
9697
10782
|
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.scope.label')), 1 /* TEXT */),
|
|
9698
10783
|
_createElementVNode("select", {
|
|
9699
10784
|
class: "form-input sys-prompt-select",
|
|
9700
10785
|
value: _ctx.sysPromptScope,
|
|
9701
10786
|
onChange: $event => (_ctx.switchSysPromptScope($event.target.value)),
|
|
9702
|
-
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible
|
|
10787
|
+
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible || _ctx.hasSysPromptContentChanged()
|
|
9703
10788
|
}, [
|
|
9704
10789
|
_createElementVNode("option", { value: "global" }, _toDisplayString(_ctx.t('sysPrompt.scope.global')), 1 /* TEXT */),
|
|
9705
10790
|
_createElementVNode("option", { value: "project" }, _toDisplayString(_ctx.t('sysPrompt.scope.project')), 1 /* TEXT */)
|
|
9706
10791
|
], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange", "disabled"])
|
|
9707
10792
|
]),
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
10793
|
+
(!_ctx.isSysPromptCustomFile())
|
|
10794
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10795
|
+
key: 0,
|
|
10796
|
+
class: "sys-prompt-control-group"
|
|
10797
|
+
}, [
|
|
10798
|
+
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.mode.label')), 1 /* TEXT */),
|
|
10799
|
+
_createElementVNode("select", {
|
|
10800
|
+
class: "form-input sys-prompt-select",
|
|
10801
|
+
value: _ctx.sysPromptMode,
|
|
10802
|
+
onChange: $event => (_ctx.switchSysPromptMode($event.target.value)),
|
|
10803
|
+
disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible || _ctx.hasSysPromptContentChanged()
|
|
10804
|
+
}, [
|
|
10805
|
+
_createElementVNode("option", { value: "append" }, _toDisplayString(_ctx.t('sysPrompt.mode.append')), 1 /* TEXT */),
|
|
10806
|
+
_createElementVNode("option", { value: "system" }, _toDisplayString(_ctx.t('sysPrompt.mode.system')), 1 /* TEXT */)
|
|
10807
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange", "disabled"])
|
|
10808
|
+
]))
|
|
10809
|
+
: _createCommentVNode("v-if", true)
|
|
9720
10810
|
]),
|
|
10811
|
+
(_ctx.sysPromptFilesError)
|
|
10812
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
10813
|
+
key: 0,
|
|
10814
|
+
class: "state-message error",
|
|
10815
|
+
role: "alert"
|
|
10816
|
+
}, _toDisplayString(_ctx.sysPromptFilesError), 1 /* TEXT */))
|
|
10817
|
+
: _createCommentVNode("v-if", true),
|
|
9721
10818
|
_createElementVNode("div", { class: "prompts-editor" }, [
|
|
9722
10819
|
_createElementVNode("div", { class: "prompts-editor-toolbar" }, [
|
|
9723
10820
|
_createElementVNode("div", { class: "prompts-path-summary-wrap" }, [
|
|
@@ -9874,7 +10971,7 @@ return function render(_ctx, _cache) {
|
|
|
9874
10971
|
_createElementVNode("button", {
|
|
9875
10972
|
class: "btn-mini btn-confirm-mini",
|
|
9876
10973
|
onClick: _ctx.applySystemPrompt,
|
|
9877
|
-
disabled: _ctx.sysPromptSaving || _ctx.sysPromptLoading || _ctx.sysPromptDiffLoading || (!_ctx.sysPromptDiffVisible && !_ctx.hasSysPromptContentChanged()) || (_ctx.sysPromptDiffVisible && !_ctx.sysPromptDiffHasChangesValue),
|
|
10974
|
+
disabled: _ctx.sysPromptFileMissing || _ctx.sysPromptSaving || _ctx.sysPromptLoading || _ctx.sysPromptDiffLoading || (!_ctx.sysPromptDiffVisible && !_ctx.hasSysPromptContentChanged()) || (_ctx.sysPromptDiffVisible && !_ctx.sysPromptDiffHasChangesValue),
|
|
9878
10975
|
title: _ctx.sysPromptDiffVisible ? _ctx.t('common.save') : _ctx.t('common.preview')
|
|
9879
10976
|
}, [
|
|
9880
10977
|
(_ctx.sysPromptDiffVisible)
|
|
@@ -10196,7 +11293,7 @@ return function render(_ctx, _cache) {
|
|
|
10196
11293
|
]))
|
|
10197
11294
|
: _createCommentVNode("v-if", true),
|
|
10198
11295
|
_createCommentVNode(" 加载状态 "),
|
|
10199
|
-
(_ctx.loading && _ctx.mainTab !== 'usage')
|
|
11296
|
+
(_ctx.loading && _ctx.mainTab !== 'usage' && _ctx.mainTab !== 'prompts')
|
|
10200
11297
|
? (_openBlock(), _createElementBlock("div", {
|
|
10201
11298
|
key: 4,
|
|
10202
11299
|
class: "state-message app-loading-state"
|
|
@@ -10213,10 +11310,61 @@ return function render(_ctx, _cache) {
|
|
|
10213
11310
|
])
|
|
10214
11311
|
])
|
|
10215
11312
|
], 2 /* CLASS */),
|
|
11313
|
+
(_ctx.showAppUpdateModal)
|
|
11314
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
11315
|
+
key: 4,
|
|
11316
|
+
class: "modal-overlay",
|
|
11317
|
+
onClick: _withModifiers(_ctx.closeAppUpdateModal, ["self"])
|
|
11318
|
+
}, [
|
|
11319
|
+
_createElementVNode("div", {
|
|
11320
|
+
class: "modal app-update-modal",
|
|
11321
|
+
role: "dialog",
|
|
11322
|
+
"aria-modal": "true",
|
|
11323
|
+
"aria-labelledby": "app-update-title",
|
|
11324
|
+
"aria-describedby": "app-update-versions app-update-hint"
|
|
11325
|
+
}, [
|
|
11326
|
+
_createElementVNode("div", {
|
|
11327
|
+
id: "app-update-title",
|
|
11328
|
+
class: "modal-title"
|
|
11329
|
+
}, _toDisplayString(_ctx.t('side.update.available')), 1 /* TEXT */),
|
|
11330
|
+
_createElementVNode("div", {
|
|
11331
|
+
id: "app-update-versions",
|
|
11332
|
+
class: "form-group confirm-dialog-message"
|
|
11333
|
+
}, _toDisplayString(_ctx.t('side.update.metaVersions', { current: _ctx.normalizePackageVersion(_ctx.appVersion), latest: _ctx.normalizePackageVersion(_ctx.appLatestVersion) })), 1 /* TEXT */),
|
|
11334
|
+
_createElementVNode("div", { class: "docs-command-box" }, [
|
|
11335
|
+
_createElementVNode("input", {
|
|
11336
|
+
id: "app-update-command",
|
|
11337
|
+
class: "install-command",
|
|
11338
|
+
type: "text",
|
|
11339
|
+
value: _ctx.appUpdateCommand(),
|
|
11340
|
+
readonly: "",
|
|
11341
|
+
"aria-label": _ctx.t('common.command'),
|
|
11342
|
+
onFocus: $event => ($event.target.select())
|
|
11343
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["value", "aria-label", "onFocus"]),
|
|
11344
|
+
_createElementVNode("button", {
|
|
11345
|
+
type: "button",
|
|
11346
|
+
class: "btn-mini docs-copy-btn",
|
|
11347
|
+
onClick: $event => (_ctx.copyInstallCommand(_ctx.appUpdateCommand()))
|
|
11348
|
+
}, _toDisplayString(_ctx.t('common.copy')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
11349
|
+
]),
|
|
11350
|
+
_createElementVNode("p", {
|
|
11351
|
+
id: "app-update-hint",
|
|
11352
|
+
class: "form-hint"
|
|
11353
|
+
}, _toDisplayString(_ctx.t('side.update.commandHint')), 1 /* TEXT */),
|
|
11354
|
+
_createElementVNode("div", { class: "btn-group" }, [
|
|
11355
|
+
_createElementVNode("button", {
|
|
11356
|
+
type: "button",
|
|
11357
|
+
class: "btn btn-cancel",
|
|
11358
|
+
onClick: _ctx.closeAppUpdateModal
|
|
11359
|
+
}, _toDisplayString(_ctx.t('common.close')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
11360
|
+
])
|
|
11361
|
+
])
|
|
11362
|
+
], 8 /* PROPS */, ["onClick"]))
|
|
11363
|
+
: _createCommentVNode("v-if", true),
|
|
10216
11364
|
_createCommentVNode(" 添加提供商模态框 "),
|
|
10217
11365
|
(_ctx.showAddModal)
|
|
10218
11366
|
? (_openBlock(), _createElementBlock("div", {
|
|
10219
|
-
key:
|
|
11367
|
+
key: 5,
|
|
10220
11368
|
class: "modal-overlay",
|
|
10221
11369
|
onClick: _withModifiers(_ctx.closeAddModal, ["self"])
|
|
10222
11370
|
}, [
|
|
@@ -10373,7 +11521,7 @@ return function render(_ctx, _cache) {
|
|
|
10373
11521
|
_createCommentVNode(" 编辑提供商模态框 "),
|
|
10374
11522
|
(_ctx.showEditModal)
|
|
10375
11523
|
? (_openBlock(), _createElementBlock("div", {
|
|
10376
|
-
key:
|
|
11524
|
+
key: 6,
|
|
10377
11525
|
class: "modal-overlay",
|
|
10378
11526
|
onClick: _withModifiers(_ctx.closeEditModal, ["self"])
|
|
10379
11527
|
}, [
|
|
@@ -10485,7 +11633,7 @@ return function render(_ctx, _cache) {
|
|
|
10485
11633
|
_createCommentVNode(" 添加模型模态框 "),
|
|
10486
11634
|
(_ctx.showModelModal)
|
|
10487
11635
|
? (_openBlock(), _createElementBlock("div", {
|
|
10488
|
-
key:
|
|
11636
|
+
key: 7,
|
|
10489
11637
|
class: "modal-overlay",
|
|
10490
11638
|
onClick: _withModifiers(_ctx.closeModelModal, ["self"])
|
|
10491
11639
|
}, [
|
|
@@ -10525,7 +11673,7 @@ return function render(_ctx, _cache) {
|
|
|
10525
11673
|
_createCommentVNode(" 模型列表模态框 "),
|
|
10526
11674
|
(_ctx.showModelListModal)
|
|
10527
11675
|
? (_openBlock(), _createElementBlock("div", {
|
|
10528
|
-
key:
|
|
11676
|
+
key: 8,
|
|
10529
11677
|
class: "modal-overlay",
|
|
10530
11678
|
onClick: _withModifiers($event => (_ctx.showModelListModal = false), ["self"])
|
|
10531
11679
|
}, [
|
|
@@ -10566,7 +11714,7 @@ return function render(_ctx, _cache) {
|
|
|
10566
11714
|
_createCommentVNode(" 项目功能公告模态框 "),
|
|
10567
11715
|
(_ctx.showProviderCacheAnnouncementModal)
|
|
10568
11716
|
? (_openBlock(), _createElementBlock("div", {
|
|
10569
|
-
key:
|
|
11717
|
+
key: 9,
|
|
10570
11718
|
class: "modal-overlay project-announcement-overlay",
|
|
10571
11719
|
onClick: _withModifiers(_ctx.closeProviderCacheAnnouncementModal, ["self"])
|
|
10572
11720
|
}, [
|
|
@@ -10727,7 +11875,7 @@ return function render(_ctx, _cache) {
|
|
|
10727
11875
|
_createCommentVNode(" Provider 缓存记录模态框 "),
|
|
10728
11876
|
(_ctx.showProviderCacheModal)
|
|
10729
11877
|
? (_openBlock(), _createElementBlock("div", {
|
|
10730
|
-
key:
|
|
11878
|
+
key: 10,
|
|
10731
11879
|
class: "modal-overlay",
|
|
10732
11880
|
onClick: _withModifiers(_ctx.closeProviderCacheModal, ["self"])
|
|
10733
11881
|
}, [
|
|
@@ -10875,7 +12023,7 @@ return function render(_ctx, _cache) {
|
|
|
10875
12023
|
_createCommentVNode(" 添加Claude配置模态框 "),
|
|
10876
12024
|
(_ctx.showClaudeConfigModal)
|
|
10877
12025
|
? (_openBlock(), _createElementBlock("div", {
|
|
10878
|
-
key:
|
|
12026
|
+
key: 11,
|
|
10879
12027
|
class: "modal-overlay",
|
|
10880
12028
|
onClick: _withModifiers(_ctx.closeClaudeConfigModal, ["self"])
|
|
10881
12029
|
}, [
|
|
@@ -11027,7 +12175,7 @@ return function render(_ctx, _cache) {
|
|
|
11027
12175
|
_createCommentVNode(" 编辑Claude配置模态框 "),
|
|
11028
12176
|
(_ctx.showEditConfigModal)
|
|
11029
12177
|
? (_openBlock(), _createElementBlock("div", {
|
|
11030
|
-
key:
|
|
12178
|
+
key: 12,
|
|
11031
12179
|
class: "modal-overlay",
|
|
11032
12180
|
onClick: _withModifiers(_ctx.closeEditConfigModal, ["self"])
|
|
11033
12181
|
}, [
|
|
@@ -11180,7 +12328,7 @@ return function render(_ctx, _cache) {
|
|
|
11180
12328
|
_createCommentVNode(" Codex bridge pool modal "),
|
|
11181
12329
|
(_ctx.showCodexBridgePoolModal)
|
|
11182
12330
|
? (_openBlock(), _createElementBlock("div", {
|
|
11183
|
-
key:
|
|
12331
|
+
key: 13,
|
|
11184
12332
|
class: "modal-overlay",
|
|
11185
12333
|
onClick: _withModifiers($event => (_ctx.showCodexBridgePoolModal = false), ["self"])
|
|
11186
12334
|
}, [
|
|
@@ -11273,7 +12421,7 @@ return function render(_ctx, _cache) {
|
|
|
11273
12421
|
: _createCommentVNode("v-if", true),
|
|
11274
12422
|
(_ctx.showClaudeBridgePoolModal)
|
|
11275
12423
|
? (_openBlock(), _createElementBlock("div", {
|
|
11276
|
-
key:
|
|
12424
|
+
key: 14,
|
|
11277
12425
|
class: "modal-overlay",
|
|
11278
12426
|
onClick: _withModifiers($event => (_ctx.showClaudeBridgePoolModal = false), ["self"])
|
|
11279
12427
|
}, [
|
|
@@ -11366,7 +12514,7 @@ return function render(_ctx, _cache) {
|
|
|
11366
12514
|
: _createCommentVNode("v-if", true),
|
|
11367
12515
|
(_ctx.promptInvocationVisible)
|
|
11368
12516
|
? (_openBlock(), _createElementBlock("div", {
|
|
11369
|
-
key:
|
|
12517
|
+
key: 15,
|
|
11370
12518
|
class: "modal-overlay",
|
|
11371
12519
|
onClick: _withModifiers(_ctx.closePromptTemplateInvocation, ["self"])
|
|
11372
12520
|
}, [
|
|
@@ -11435,7 +12583,7 @@ return function render(_ctx, _cache) {
|
|
|
11435
12583
|
_createCommentVNode(" Webhook settings modal "),
|
|
11436
12584
|
(_ctx.showWebhookModal)
|
|
11437
12585
|
? (_openBlock(), _createElementBlock("div", {
|
|
11438
|
-
key:
|
|
12586
|
+
key: 16,
|
|
11439
12587
|
class: "modal-overlay",
|
|
11440
12588
|
onClick: _withModifiers(_ctx.closeWebhookModal, ["self"])
|
|
11441
12589
|
}, [
|
|
@@ -11508,7 +12656,7 @@ return function render(_ctx, _cache) {
|
|
|
11508
12656
|
: _createCommentVNode("v-if", true),
|
|
11509
12657
|
(_ctx.showOpenclawConfigModal)
|
|
11510
12658
|
? (_openBlock(), _createElementBlock("div", {
|
|
11511
|
-
key:
|
|
12659
|
+
key: 17,
|
|
11512
12660
|
class: "modal-overlay",
|
|
11513
12661
|
onClick: _withModifiers($event => (!(_ctx.openclawSaving || _ctx.openclawApplying) && _ctx.closeOpenclawConfigModal()), ["self"])
|
|
11514
12662
|
}, [
|
|
@@ -12218,7 +13366,7 @@ return function render(_ctx, _cache) {
|
|
|
12218
13366
|
: _createCommentVNode("v-if", true),
|
|
12219
13367
|
(_ctx.showConfigTemplateModal)
|
|
12220
13368
|
? (_openBlock(), _createElementBlock("div", {
|
|
12221
|
-
key:
|
|
13369
|
+
key: 18,
|
|
12222
13370
|
class: "modal-overlay",
|
|
12223
13371
|
onClick: _withModifiers($event => (!_ctx.configTemplateApplying && _ctx.closeConfigTemplateModal()), ["self"])
|
|
12224
13372
|
}, [
|
|
@@ -12363,7 +13511,7 @@ return function render(_ctx, _cache) {
|
|
|
12363
13511
|
: _createCommentVNode("v-if", true),
|
|
12364
13512
|
(_ctx.showAgentsModal)
|
|
12365
13513
|
? (_openBlock(), _createElementBlock("div", {
|
|
12366
|
-
key:
|
|
13514
|
+
key: 19,
|
|
12367
13515
|
class: "modal-overlay",
|
|
12368
13516
|
onClick: _withModifiers(_ctx.closeAgentsModal, ["self"])
|
|
12369
13517
|
}, [
|
|
@@ -12534,7 +13682,7 @@ return function render(_ctx, _cache) {
|
|
|
12534
13682
|
: _createCommentVNode("v-if", true),
|
|
12535
13683
|
(_ctx.showSkillsModal)
|
|
12536
13684
|
? (_openBlock(), _createElementBlock("div", {
|
|
12537
|
-
key:
|
|
13685
|
+
key: 20,
|
|
12538
13686
|
class: "modal-overlay",
|
|
12539
13687
|
onClick: _withModifiers(_ctx.closeSkillsModal, ["self"])
|
|
12540
13688
|
}, [
|
|
@@ -12838,7 +13986,7 @@ return function render(_ctx, _cache) {
|
|
|
12838
13986
|
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
12839
13987
|
(_ctx.showHealthCheckModal)
|
|
12840
13988
|
? (_openBlock(), _createElementBlock("div", {
|
|
12841
|
-
key:
|
|
13989
|
+
key: 21,
|
|
12842
13990
|
class: "modal-overlay",
|
|
12843
13991
|
onClick: _withModifiers($event => (_ctx.showHealthCheckModal = false), ["self"])
|
|
12844
13992
|
}, [
|
|
@@ -13011,7 +14159,7 @@ return function render(_ctx, _cache) {
|
|
|
13011
14159
|
: _createCommentVNode("v-if", true),
|
|
13012
14160
|
(_ctx.showConfirmDialog)
|
|
13013
14161
|
? (_openBlock(), _createElementBlock("div", {
|
|
13014
|
-
key:
|
|
14162
|
+
key: 22,
|
|
13015
14163
|
class: "modal-overlay",
|
|
13016
14164
|
onClick: _withModifiers(_ctx.closeConfirmDialog, ["self"])
|
|
13017
14165
|
}, [
|
|
@@ -13049,7 +14197,7 @@ return function render(_ctx, _cache) {
|
|
|
13049
14197
|
_createCommentVNode(" Toast "),
|
|
13050
14198
|
(_ctx.message)
|
|
13051
14199
|
? (_openBlock(), _createElementBlock("div", {
|
|
13052
|
-
key:
|
|
14200
|
+
key: 23,
|
|
13053
14201
|
class: _normalizeClass(['toast', _ctx.messageType]),
|
|
13054
14202
|
role: "status",
|
|
13055
14203
|
"aria-live": "polite",
|