codexmate 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -86
- package/README.vi.md +105 -79
- package/README.zh.md +102 -84
- package/cli/analytics-export-args.js +7 -0
- package/cli/session-usage.js +4 -1
- package/cli.js +30 -6
- package/lib/data/model-prices.json +1868 -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/prompt-templates/computed.mjs +9 -0
- package/web-ui/app.js +12 -0
- package/web-ui/logic.codex.mjs +14 -0
- package/web-ui/logic.session-artifacts.mjs +39 -0
- package/web-ui/modules/app.methods.agents.mjs +3 -2
- package/web-ui/modules/app.methods.claude-config.mjs +26 -5
- package/web-ui/modules/app.methods.install.mjs +13 -17
- package/web-ui/modules/app.methods.navigation.mjs +1 -1
- package/web-ui/modules/app.methods.openclaw-editing.mjs +29 -0
- package/web-ui/modules/app.methods.openclaw-persist.mjs +3 -3
- package/web-ui/modules/app.methods.opencode-config.mjs +34 -0
- package/web-ui/modules/app.methods.pi-config.mjs +14 -9
- package/web-ui/modules/app.methods.providers.mjs +11 -0
- package/web-ui/modules/app.methods.session-browser.mjs +35 -0
- package/web-ui/modules/app.methods.session-trash.mjs +4 -5
- package/web-ui/modules/app.methods.startup-claude.mjs +1 -0
- package/web-ui/modules/app.methods.system-prompt.mjs +16 -7
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +5 -0
- package/web-ui/modules/claude-provider-presets.mjs +23 -0
- package/web-ui/modules/i18n/locales/en.mjs +127 -1
- package/web-ui/modules/i18n/locales/ja.mjs +127 -1
- package/web-ui/modules/i18n/locales/vi.mjs +127 -1
- package/web-ui/modules/i18n/locales/zh-tw.mjs +127 -1
- package/web-ui/modules/i18n/locales/zh.mjs +127 -1
- package/web-ui/modules/pi-provider-templates.mjs +6 -1
- 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/modal-openclaw-config.html +3 -0
- package/web-ui/partials/index/modals-basic.html +1 -1
- package/web-ui/partials/index/modals-pi-provider.html +1 -1
- package/web-ui/partials/index/panel-config-claude.html +4 -21
- package/web-ui/partials/index/panel-config-codex.html +3 -1
- package/web-ui/partials/index/panel-config-opencode.html +4 -0
- package/web-ui/partials/index/panel-sessions.html +20 -20
- package/web-ui/partials/index/panel-settings.html +45 -0
- package/web-ui/partials/index/panel-usage.html +2 -0
- 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 +896 -236
- package/web-ui/styles/session-features.css +63 -0
- 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 +4 -0
- package/web-ui/styles/theme-violet.css +9 -3
|
@@ -1550,8 +1550,9 @@ return function render(_ctx, _cache) {
|
|
|
1550
1550
|
key: tpl.name,
|
|
1551
1551
|
type: "button",
|
|
1552
1552
|
class: "btn-mini",
|
|
1553
|
-
|
|
1554
|
-
|
|
1553
|
+
disabled: !_ctx.isToolConfigWriteAllowed('codex'),
|
|
1554
|
+
onClick: $event => (_ctx.openCodexProviderPreset(tpl))
|
|
1555
|
+
}, _toDisplayString(tpl.label) + " · " + _toDisplayString(_ctx.t(tpl.useTransform ? 'config.providerTemplate.bridge' : 'config.providerTemplate.direct')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]))
|
|
1555
1556
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1556
1557
|
])
|
|
1557
1558
|
]))
|
|
@@ -2167,111 +2168,36 @@ return function render(_ctx, _cache) {
|
|
|
2167
2168
|
_createElementVNode("div", { class: "selector-header" }, [
|
|
2168
2169
|
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('claude.presetProviders')), 1 /* TEXT */)
|
|
2169
2170
|
]),
|
|
2171
|
+
_withDirectives(_createElementVNode("input", {
|
|
2172
|
+
type: "search",
|
|
2173
|
+
class: "form-input",
|
|
2174
|
+
"onUpdate:modelValue": $event => ((_ctx.claudeProviderPresetQuery) = $event),
|
|
2175
|
+
placeholder: _ctx.t('pi.picker.searchPlaceholder'),
|
|
2176
|
+
"aria-label": _ctx.t('pi.picker.searchPlaceholder'),
|
|
2177
|
+
autocomplete: "off"
|
|
2178
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder", "aria-label"]), [
|
|
2179
|
+
[_vModelText, _ctx.claudeProviderPresetQuery]
|
|
2180
|
+
]),
|
|
2170
2181
|
_createElementVNode("div", {
|
|
2171
2182
|
class: "btn-group",
|
|
2172
|
-
style: {"flex-wrap":"wrap","gap":"8px"
|
|
2183
|
+
style: {"flex-wrap":"wrap","gap":"8px"}
|
|
2173
2184
|
}, [
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
type: "button",
|
|
2191
|
-
class: "btn-mini",
|
|
2192
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Z.ai GLM'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.z.ai/api/anthropic'; _ctx.newClaudeConfig.model = 'glm-5'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2193
|
-
}, "Z.ai GLM", 8 /* PROPS */, ["onClick"]),
|
|
2194
|
-
_createElementVNode("button", {
|
|
2195
|
-
type: "button",
|
|
2196
|
-
class: "btn-mini",
|
|
2197
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Qwen Coder'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://coding.dashscope.aliyuncs.com/apps/anthropic'; _ctx.newClaudeConfig.model = 'qwen3-coder'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2198
|
-
}, "Qwen Coder", 8 /* PROPS */, ["onClick"]),
|
|
2199
|
-
_createElementVNode("button", {
|
|
2200
|
-
type: "button",
|
|
2201
|
-
class: "btn-mini",
|
|
2202
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Kimi k2'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.moonshot.cn/anthropic'; _ctx.newClaudeConfig.model = 'kimi-k2.5'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2203
|
-
}, "Kimi k2", 8 /* PROPS */, ["onClick"]),
|
|
2204
|
-
_createElementVNode("button", {
|
|
2205
|
-
type: "button",
|
|
2206
|
-
class: "btn-mini",
|
|
2207
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Kimi For Coding'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.kimi.com/coding/'; _ctx.newClaudeConfig.model = 'kimi-k2.5'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2208
|
-
}, "Kimi For Coding", 8 /* PROPS */, ["onClick"]),
|
|
2209
|
-
_createElementVNode("button", {
|
|
2210
|
-
type: "button",
|
|
2211
|
-
class: "btn-mini",
|
|
2212
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'KAT-Coder'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://vanchin.streamlake.ai/api/gateway/v1/endpoints/${ENDPOINT_ID}/claude-code-proxy'; _ctx.newClaudeConfig.model = 'KAT-Coder-Pro V1'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2213
|
-
}, "KAT-Coder", 8 /* PROPS */, ["onClick"]),
|
|
2214
|
-
_createElementVNode("button", {
|
|
2215
|
-
type: "button",
|
|
2216
|
-
class: "btn-mini",
|
|
2217
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Longcat'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.longcat.chat/anthropic'; _ctx.newClaudeConfig.model = 'LongCat-Flash-Chat'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2218
|
-
}, "Longcat", 8 /* PROPS */, ["onClick"]),
|
|
2219
|
-
_createElementVNode("button", {
|
|
2220
|
-
type: "button",
|
|
2221
|
-
class: "btn-mini",
|
|
2222
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'MiniMax'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.minimaxi.com/anthropic'; _ctx.newClaudeConfig.model = 'MiniMax-M2.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2223
|
-
}, "MiniMax", 8 /* PROPS */, ["onClick"]),
|
|
2224
|
-
_createElementVNode("button", {
|
|
2225
|
-
type: "button",
|
|
2226
|
-
class: "btn-mini",
|
|
2227
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'MiniMax en'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.minimax.io/anthropic'; _ctx.newClaudeConfig.model = 'MiniMax-M2.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2228
|
-
}, "MiniMax en", 8 /* PROPS */, ["onClick"]),
|
|
2229
|
-
_createElementVNode("button", {
|
|
2230
|
-
type: "button",
|
|
2231
|
-
class: "btn-mini",
|
|
2232
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'DouBaoSeed'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://ark.cn-beijing.volces.com/api/coding'; _ctx.newClaudeConfig.model = 'doubao-seed-2-0-code-preview-latest'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2233
|
-
}, "DouBaoSeed", 8 /* PROPS */, ["onClick"]),
|
|
2234
|
-
_createElementVNode("button", {
|
|
2235
|
-
type: "button",
|
|
2236
|
-
class: "btn-mini",
|
|
2237
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'BaiLing'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.tbox.cn/api/anthropic'; _ctx.newClaudeConfig.model = 'Ling-2.5-1T'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2238
|
-
}, "BaiLing", 8 /* PROPS */, ["onClick"]),
|
|
2239
|
-
_createElementVNode("button", {
|
|
2240
|
-
type: "button",
|
|
2241
|
-
class: "btn-mini",
|
|
2242
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'ModelScope'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api-inference.modelscope.cn'; _ctx.newClaudeConfig.model = 'ZhipuAI/GLM-5'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2243
|
-
}, "ModelScope", 8 /* PROPS */, ["onClick"]),
|
|
2244
|
-
_createElementVNode("button", {
|
|
2245
|
-
type: "button",
|
|
2246
|
-
class: "btn-mini",
|
|
2247
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'AiHubMix'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://aihubmix.com'; _ctx.newClaudeConfig.model = 'glm-4.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2248
|
-
}, "AiHubMix", 8 /* PROPS */, ["onClick"]),
|
|
2249
|
-
_createElementVNode("button", {
|
|
2250
|
-
type: "button",
|
|
2251
|
-
class: "btn-mini",
|
|
2252
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'DMXAPI'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://www.dmxapi.cn'; _ctx.newClaudeConfig.model = 'glm-4.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2253
|
-
}, "DMXAPI", 8 /* PROPS */, ["onClick"]),
|
|
2254
|
-
_createElementVNode("button", {
|
|
2255
|
-
type: "button",
|
|
2256
|
-
class: "btn-mini",
|
|
2257
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'PackyCode'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://www.packyapi.com'; _ctx.newClaudeConfig.model = 'glm-4.7'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2258
|
-
}, "PackyCode", 8 /* PROPS */, ["onClick"]),
|
|
2259
|
-
_createElementVNode("button", {
|
|
2260
|
-
type: "button",
|
|
2261
|
-
class: "btn-mini",
|
|
2262
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'AnyRouter'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://anyrouter.top'; _ctx.newClaudeConfig.model = 'claude-opus-4-7[1m]'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2263
|
-
}, "AnyRouter", 8 /* PROPS */, ["onClick"]),
|
|
2264
|
-
_createElementVNode("button", {
|
|
2265
|
-
type: "button",
|
|
2266
|
-
class: "btn-mini",
|
|
2267
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Xiaomi MiMo'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.xiaomimimo.com/anthropic'; _ctx.newClaudeConfig.model = 'mimo-v2.5-pro'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2268
|
-
}, "Xiaomi MiMo", 8 /* PROPS */, ["onClick"]),
|
|
2269
|
-
_createElementVNode("button", {
|
|
2270
|
-
type: "button",
|
|
2271
|
-
class: "btn-mini",
|
|
2272
|
-
onClick: $event => {_ctx.newClaudeConfig.name = 'Xiaomi Token Plan'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://token-plan-cn.xiaomimimo.com/anthropic'; _ctx.newClaudeConfig.model = 'mimo-v2.5-pro'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
|
|
2273
|
-
}, "Xiaomi Token Plan", 8 /* PROPS */, ["onClick"])
|
|
2274
|
-
])
|
|
2185
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.matchingClaudeProviderPresets(), (preset) => {
|
|
2186
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
2187
|
+
key: preset.name,
|
|
2188
|
+
type: "button",
|
|
2189
|
+
class: "btn-mini",
|
|
2190
|
+
disabled: !_ctx.isToolConfigWriteAllowed('claude'),
|
|
2191
|
+
onClick: $event => (_ctx.openClaudeProviderPreset(preset))
|
|
2192
|
+
}, _toDisplayString(preset.name), 9 /* TEXT, PROPS */, ["disabled", "onClick"]))
|
|
2193
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
2194
|
+
]),
|
|
2195
|
+
(!_ctx.matchingClaudeProviderPresets().length)
|
|
2196
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
2197
|
+
key: 0,
|
|
2198
|
+
class: "config-template-hint"
|
|
2199
|
+
}, _toDisplayString(_ctx.t('pi.picker.empty')), 1 /* TEXT */))
|
|
2200
|
+
: _createCommentVNode("v-if", true)
|
|
2275
2201
|
]),
|
|
2276
2202
|
_createElementVNode("div", { class: "selector-section" }, [
|
|
2277
2203
|
_createElementVNode("div", { class: "selector-header" }, [
|
|
@@ -3197,6 +3123,15 @@ return function render(_ctx, _cache) {
|
|
|
3197
3123
|
}, _toDisplayString(_ctx.opencodeSaving ? _ctx.t('common.saving') : _ctx.t('opencode.saveConfig')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
3198
3124
|
])
|
|
3199
3125
|
]),
|
|
3126
|
+
_createElementVNode("div", { class: "form-group" }, [
|
|
3127
|
+
_createElementVNode("button", {
|
|
3128
|
+
type: "button",
|
|
3129
|
+
class: "btn-tool btn-tool-compact",
|
|
3130
|
+
onClick: _ctx.insertOpencodeProviderPreset,
|
|
3131
|
+
disabled: _ctx.opencodeLoading || _ctx.opencodeSaving || _ctx.opencodeApplying || !_ctx.isToolConfigWriteAllowed('opencode')
|
|
3132
|
+
}, _toDisplayString(_ctx.t('config.providerTemplate.fillDraft', { name: 'DeepSeek API' })), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
3133
|
+
_createElementVNode("div", { class: "config-template-hint" }, _toDisplayString(_ctx.t('opencode.preset.hint')), 1 /* TEXT */)
|
|
3134
|
+
]),
|
|
3200
3135
|
_createElementVNode("input", {
|
|
3201
3136
|
ref: "opencodeImportInput",
|
|
3202
3137
|
class: "sr-only",
|
|
@@ -4178,17 +4113,16 @@ return function render(_ctx, _cache) {
|
|
|
4178
4113
|
key: index
|
|
4179
4114
|
}, [
|
|
4180
4115
|
_createElementVNode("div", { class: "input-with-toggle" }, [
|
|
4181
|
-
|
|
4116
|
+
_createElementVNode("input", {
|
|
4182
4117
|
class: "form-input",
|
|
4183
4118
|
type: "text",
|
|
4184
|
-
|
|
4119
|
+
value: model.id,
|
|
4120
|
+
onInput: $event => (_ctx.updatePiModelId(model, $event.target.value)),
|
|
4185
4121
|
autocomplete: "off",
|
|
4186
4122
|
spellcheck: "false",
|
|
4187
4123
|
placeholder: "claude-sonnet-4",
|
|
4188
4124
|
disabled: !_ctx.isToolConfigWriteAllowed('pi')
|
|
4189
|
-
}, null,
|
|
4190
|
-
[_vModelText, model.id]
|
|
4191
|
-
]),
|
|
4125
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["value", "onInput", "disabled"]),
|
|
4192
4126
|
_createElementVNode("button", {
|
|
4193
4127
|
type: "button",
|
|
4194
4128
|
class: "btn-tool input-toggle-btn",
|
|
@@ -4885,7 +4819,8 @@ return function render(_ctx, _cache) {
|
|
|
4885
4819
|
class: "feature-status",
|
|
4886
4820
|
"data-status": _ctx.indexReport.job.status
|
|
4887
4821
|
}, _toDisplayString(_ctx.t('features.status.' + _ctx.indexReport.job.status)), 9 /* TEXT, PROPS */, ["data-status"]),
|
|
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 */)
|
|
4822
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('features.indexStatus', { count: _ctx.indexReport.indexed, processed: _ctx.indexReport.job.processed, total: _ctx.indexReport.job.candidates })), 1 /* TEXT */),
|
|
4823
|
+
_createElementVNode("span", { class: "feature-index-time" }, _toDisplayString(_ctx.t('features.indexCatalogTime', { time: _ctx.indexCatalogTime })), 1 /* TEXT */)
|
|
4889
4824
|
]))
|
|
4890
4825
|
: _createCommentVNode("v-if", true),
|
|
4891
4826
|
_createElementVNode("form", {
|
|
@@ -4904,9 +4839,21 @@ return function render(_ctx, _cache) {
|
|
|
4904
4839
|
disabled: _ctx.featureBusy || !_ctx.indexQuery.trim() || !_ctx.indexReport?.updatedAt
|
|
4905
4840
|
}, _toDisplayString(_ctx.t('features.search')), 9 /* TEXT, PROPS */, ["disabled"])
|
|
4906
4841
|
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
|
|
4907
|
-
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
4842
|
+
_createElementVNode("details", { class: "feature-disclosure feature-index-scope" }, [
|
|
4908
4843
|
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.searchScope')), 1 /* TEXT */),
|
|
4909
|
-
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.indexScope')), 1 /* TEXT */)
|
|
4844
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('features.indexScope')), 1 /* TEXT */),
|
|
4845
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.indexSourceCoverage, (entry) => {
|
|
4846
|
+
return (_openBlock(), _createElementBlock("p", {
|
|
4847
|
+
key: entry.source,
|
|
4848
|
+
class: "feature-hint feature-index-coverage"
|
|
4849
|
+
}, _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 */))
|
|
4850
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
4851
|
+
(!_ctx.indexSourceCoverage.length)
|
|
4852
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4853
|
+
key: 0,
|
|
4854
|
+
class: "feature-hint feature-index-unknown"
|
|
4855
|
+
}, _toDisplayString(_ctx.t('features.indexCoverageUnknown')), 1 /* TEXT */))
|
|
4856
|
+
: _createCommentVNode("v-if", true)
|
|
4910
4857
|
]),
|
|
4911
4858
|
(_ctx.indexReport?.failures.length)
|
|
4912
4859
|
? (_openBlock(), _createElementBlock("p", {
|
|
@@ -4956,7 +4903,15 @@ return function render(_ctx, _cache) {
|
|
|
4956
4903
|
type: "button",
|
|
4957
4904
|
class: "btn-mini",
|
|
4958
4905
|
onClick: $event => (_ctx.openIndexedMessage(result))
|
|
4959
|
-
}, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
4906
|
+
}, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
4907
|
+
_createElementVNode("label", { class: "evidence-select" }, [
|
|
4908
|
+
_createElementVNode("input", {
|
|
4909
|
+
type: "checkbox",
|
|
4910
|
+
checked: _ctx.isEvidenceSelected(result),
|
|
4911
|
+
onChange: $event => (_ctx.toggleEvidence(result))
|
|
4912
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "onChange"]),
|
|
4913
|
+
_createTextVNode(_toDisplayString(_ctx.t('evidence.select')), 1 /* TEXT */)
|
|
4914
|
+
])
|
|
4960
4915
|
]),
|
|
4961
4916
|
_createElementVNode("details", { class: "feature-disclosure" }, [
|
|
4962
4917
|
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.context')), 1 /* TEXT */),
|
|
@@ -4969,9 +4924,200 @@ return function render(_ctx, _cache) {
|
|
|
4969
4924
|
: _createCommentVNode("v-if", true)
|
|
4970
4925
|
]))
|
|
4971
4926
|
: _createCommentVNode("v-if", true),
|
|
4927
|
+
_createElementVNode("details", {
|
|
4928
|
+
class: "feature-disclosure evidence-collections",
|
|
4929
|
+
open: _ctx.collectionsOpen,
|
|
4930
|
+
onToggle: $event => (_ctx.toggleCollections($event))
|
|
4931
|
+
}, [
|
|
4932
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('collections.title')), 1 /* TEXT */),
|
|
4933
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('collections.scope')), 1 /* TEXT */),
|
|
4934
|
+
(_ctx.collectionError)
|
|
4935
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4936
|
+
key: 0,
|
|
4937
|
+
class: "form-error",
|
|
4938
|
+
role: "alert"
|
|
4939
|
+
}, _toDisplayString(_ctx.collectionError), 1 /* TEXT */))
|
|
4940
|
+
: _createCommentVNode("v-if", true),
|
|
4941
|
+
(_ctx.collectionBusy)
|
|
4942
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4943
|
+
key: 1,
|
|
4944
|
+
role: "status"
|
|
4945
|
+
}, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
|
|
4946
|
+
: _createCommentVNode("v-if", true),
|
|
4947
|
+
_createElementVNode("ol", { class: "collection-list" }, [
|
|
4948
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.collections, (item) => {
|
|
4949
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
4950
|
+
key: item.id
|
|
4951
|
+
}, [
|
|
4952
|
+
_createElementVNode("button", {
|
|
4953
|
+
type: "button",
|
|
4954
|
+
class: "btn-mini",
|
|
4955
|
+
onClick: $event => (_ctx.openEvidenceCollection(item)),
|
|
4956
|
+
disabled: _ctx.collectionBusy || _ctx.evidenceBusy,
|
|
4957
|
+
"aria-pressed": _ctx.collectionId === item.id
|
|
4958
|
+
}, _toDisplayString(item.name), 9 /* TEXT, PROPS */, ["onClick", "disabled", "aria-pressed"]),
|
|
4959
|
+
_createElementVNode("span", { class: "feature-count" }, _toDisplayString(item.references.length) + "/100", 1 /* TEXT */),
|
|
4960
|
+
_createElementVNode("button", {
|
|
4961
|
+
type: "button",
|
|
4962
|
+
class: "btn-mini feature-quiet",
|
|
4963
|
+
onClick: $event => (_ctx.removeEvidenceCollection(item)),
|
|
4964
|
+
disabled: _ctx.collectionBusy
|
|
4965
|
+
}, _toDisplayString(_ctx.t('collections.remove')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
4966
|
+
]))
|
|
4967
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
4968
|
+
]),
|
|
4969
|
+
(!_ctx.collectionBusy && !_ctx.collections.length)
|
|
4970
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4971
|
+
key: 2,
|
|
4972
|
+
class: "feature-hint"
|
|
4973
|
+
}, _toDisplayString(_ctx.t('collections.empty')), 1 /* TEXT */))
|
|
4974
|
+
: _createCommentVNode("v-if", true),
|
|
4975
|
+
(_ctx.evidenceSelections.length)
|
|
4976
|
+
? (_openBlock(), _createElementBlock("form", {
|
|
4977
|
+
key: 3,
|
|
4978
|
+
class: "feature-editor collection-editor",
|
|
4979
|
+
onSubmit: _withModifiers($event => (_ctx.saveEvidenceCollection(false)), ["prevent"])
|
|
4980
|
+
}, [
|
|
4981
|
+
_createElementVNode("label", null, [
|
|
4982
|
+
_createTextVNode(_toDisplayString(_ctx.t('collections.name')), 1 /* TEXT */),
|
|
4983
|
+
_withDirectives(_createElementVNode("input", {
|
|
4984
|
+
"onUpdate:modelValue": $event => ((_ctx.collectionName) = $event),
|
|
4985
|
+
maxlength: "160",
|
|
4986
|
+
required: ""
|
|
4987
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
4988
|
+
[_vModelText, _ctx.collectionName]
|
|
4989
|
+
])
|
|
4990
|
+
]),
|
|
4991
|
+
_createElementVNode("div", { class: "feature-actions" }, [
|
|
4992
|
+
_createElementVNode("button", {
|
|
4993
|
+
class: "btn-mini",
|
|
4994
|
+
disabled: _ctx.collectionBusy || _ctx.evidenceBusy || !_ctx.collectionName.trim()
|
|
4995
|
+
}, _toDisplayString(_ctx.t('collections.save')), 9 /* TEXT, PROPS */, ["disabled"]),
|
|
4996
|
+
(_ctx.collectionId)
|
|
4997
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
4998
|
+
key: 0,
|
|
4999
|
+
type: "button",
|
|
5000
|
+
class: "btn-mini feature-quiet",
|
|
5001
|
+
onClick: $event => (_ctx.saveEvidenceCollection(true)),
|
|
5002
|
+
disabled: _ctx.collectionBusy || _ctx.evidenceBusy || !_ctx.collectionName.trim()
|
|
5003
|
+
}, _toDisplayString(_ctx.t('collections.saveAs')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]))
|
|
5004
|
+
: _createCommentVNode("v-if", true)
|
|
5005
|
+
])
|
|
5006
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]))
|
|
5007
|
+
: _createCommentVNode("v-if", true),
|
|
5008
|
+
_createElementVNode("button", {
|
|
5009
|
+
type: "button",
|
|
5010
|
+
class: "btn-mini feature-quiet",
|
|
5011
|
+
onClick: _ctx.loadEvidenceCollections,
|
|
5012
|
+
disabled: _ctx.collectionBusy
|
|
5013
|
+
}, _toDisplayString(_ctx.t('collections.refresh')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5014
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["open", "onToggle"]),
|
|
5015
|
+
(_ctx.evidenceSelections.length)
|
|
5016
|
+
? (_openBlock(), _createElementBlock("section", {
|
|
5017
|
+
key: 2,
|
|
5018
|
+
class: "evidence-basket",
|
|
5019
|
+
"aria-label": _ctx.t('evidence.title')
|
|
5020
|
+
}, [
|
|
5021
|
+
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
5022
|
+
_createElementVNode("h3", null, _toDisplayString(_ctx.t('evidence.title')), 1 /* TEXT */),
|
|
5023
|
+
_createElementVNode("span", { class: "feature-count" }, _toDisplayString(_ctx.evidenceSelections.length) + "/100", 1 /* TEXT */)
|
|
5024
|
+
]),
|
|
5025
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('evidence.memory')), 1 /* TEXT */),
|
|
5026
|
+
_createElementVNode("ol", { class: "evidence-list" }, [
|
|
5027
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.evidenceSelections, (item) => {
|
|
5028
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
5029
|
+
key: _ctx.evidenceKey(item)
|
|
5030
|
+
}, [
|
|
5031
|
+
_createElementVNode("span", null, [
|
|
5032
|
+
_createElementVNode("strong", null, _toDisplayString(item.session.title || item.session.sessionId), 1 /* TEXT */),
|
|
5033
|
+
_createElementVNode("small", { class: "feature-meta" }, _toDisplayString(item.session.source) + " · " + _toDisplayString(item.nodeId), 1 /* TEXT */),
|
|
5034
|
+
(item.state)
|
|
5035
|
+
? (_openBlock(), _createElementBlock("small", {
|
|
5036
|
+
key: 0,
|
|
5037
|
+
class: "collection-source-state",
|
|
5038
|
+
"data-state": item.state
|
|
5039
|
+
}, _toDisplayString(_ctx.t('collections.state.' + item.state)), 9 /* TEXT, PROPS */, ["data-state"]))
|
|
5040
|
+
: _createCommentVNode("v-if", true)
|
|
5041
|
+
]),
|
|
5042
|
+
_createElementVNode("button", {
|
|
5043
|
+
type: "button",
|
|
5044
|
+
class: "btn-mini feature-quiet",
|
|
5045
|
+
onClick: $event => (_ctx.openIndexedMessage(item))
|
|
5046
|
+
}, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
5047
|
+
_createElementVNode("button", {
|
|
5048
|
+
type: "button",
|
|
5049
|
+
class: "btn-mini",
|
|
5050
|
+
onClick: $event => (_ctx.toggleEvidence(item))
|
|
5051
|
+
}, _toDisplayString(_ctx.t('evidence.remove')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
5052
|
+
]))
|
|
5053
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5054
|
+
]),
|
|
5055
|
+
_createElementVNode("form", {
|
|
5056
|
+
class: "feature-actions feature-search-form evidence-generator",
|
|
5057
|
+
onSubmit: _withModifiers(_ctx.generateEvidencePack, ["prevent"])
|
|
5058
|
+
}, [
|
|
5059
|
+
_withDirectives(_createElementVNode("input", {
|
|
5060
|
+
"onUpdate:modelValue": $event => ((_ctx.evidenceGoal) = $event),
|
|
5061
|
+
"aria-label": _ctx.t('evidence.goal'),
|
|
5062
|
+
placeholder: _ctx.t('evidence.goal')
|
|
5063
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"]), [
|
|
5064
|
+
[_vModelText, _ctx.evidenceGoal]
|
|
5065
|
+
]),
|
|
5066
|
+
_withDirectives(_createElementVNode("select", {
|
|
5067
|
+
"onUpdate:modelValue": $event => ((_ctx.evidenceFormat) = $event),
|
|
5068
|
+
"aria-label": _ctx.t('artifacts.format')
|
|
5069
|
+
}, [
|
|
5070
|
+
_createElementVNode("option", { value: "evidence" }, _toDisplayString(_ctx.t('evidence.title')), 1 /* TEXT */),
|
|
5071
|
+
_createElementVNode("option", { value: "receipt" }, _toDisplayString(_ctx.t('artifacts.receipt')), 1 /* TEXT */),
|
|
5072
|
+
_createElementVNode("option", { value: "relay" }, _toDisplayString(_ctx.t('artifacts.relay')), 1 /* TEXT */)
|
|
5073
|
+
], 8 /* PROPS */, ["onUpdate:modelValue", "aria-label"]), [
|
|
5074
|
+
[_vModelSelect, _ctx.evidenceFormat]
|
|
5075
|
+
]),
|
|
5076
|
+
(_ctx.evidenceFormat !== 'evidence')
|
|
5077
|
+
? _withDirectives((_openBlock(), _createElementBlock("textarea", {
|
|
5078
|
+
key: 0,
|
|
5079
|
+
"onUpdate:modelValue": $event => ((_ctx.evidenceNote) = $event),
|
|
5080
|
+
class: "evidence-generator-note",
|
|
5081
|
+
rows: "3",
|
|
5082
|
+
maxlength: "4000",
|
|
5083
|
+
"aria-label": _ctx.t('artifacts.note'),
|
|
5084
|
+
placeholder: _ctx.t('artifacts.notePlaceholder')
|
|
5085
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "aria-label", "placeholder"])), [
|
|
5086
|
+
[_vModelText, _ctx.evidenceNote]
|
|
5087
|
+
])
|
|
5088
|
+
: _createCommentVNode("v-if", true),
|
|
5089
|
+
_createElementVNode("button", {
|
|
5090
|
+
class: "btn-mini feature-primary",
|
|
5091
|
+
disabled: _ctx.evidenceBusy
|
|
5092
|
+
}, _toDisplayString(_ctx.evidenceBusy ? _ctx.t('features.loading') : _ctx.evidenceFormat === 'evidence' ? _ctx.t('evidence.generate') : _ctx.t('artifacts.generate.' + _ctx.evidenceFormat)), 9 /* TEXT, PROPS */, ["disabled"])
|
|
5093
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"]),
|
|
5094
|
+
(_ctx.evidenceError)
|
|
5095
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5096
|
+
key: 0,
|
|
5097
|
+
class: "form-error",
|
|
5098
|
+
role: "alert"
|
|
5099
|
+
}, _toDisplayString(_ctx.evidenceError), 1 /* TEXT */))
|
|
5100
|
+
: _createCommentVNode("v-if", true),
|
|
5101
|
+
(_ctx.evidencePack)
|
|
5102
|
+
? (_openBlock(), _createElementBlock("details", {
|
|
5103
|
+
key: 1,
|
|
5104
|
+
class: "feature-disclosure evidence-preview",
|
|
5105
|
+
open: ""
|
|
5106
|
+
}, [
|
|
5107
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('evidence.preview', { count: _ctx.evidencePack.length })), 1 /* TEXT */),
|
|
5108
|
+
_createElementVNode("pre", null, _toDisplayString(_ctx.evidencePack), 1 /* TEXT */),
|
|
5109
|
+
_createElementVNode("button", {
|
|
5110
|
+
type: "button",
|
|
5111
|
+
class: "btn-mini",
|
|
5112
|
+
onClick: _ctx.downloadEvidencePack
|
|
5113
|
+
}, _toDisplayString(_ctx.t('evidence.download')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
5114
|
+
]))
|
|
5115
|
+
: _createCommentVNode("v-if", true)
|
|
5116
|
+
], 8 /* PROPS */, ["aria-label"]))
|
|
5117
|
+
: _createCommentVNode("v-if", true),
|
|
4972
5118
|
(_ctx.featureView === 'projects')
|
|
4973
5119
|
? (_openBlock(), _createElementBlock("div", {
|
|
4974
|
-
key:
|
|
5120
|
+
key: 3,
|
|
4975
5121
|
class: "feature-content"
|
|
4976
5122
|
}, [
|
|
4977
5123
|
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
@@ -5037,6 +5183,191 @@ return function render(_ctx, _cache) {
|
|
|
5037
5183
|
class: "feature-hint"
|
|
5038
5184
|
}, _toDisplayString(_ctx.t('features.partial')), 1 /* TEXT */))
|
|
5039
5185
|
: _createCommentVNode("v-if", true),
|
|
5186
|
+
(_ctx.projectSelected)
|
|
5187
|
+
? (_openBlock(), _createElementBlock("details", {
|
|
5188
|
+
key: 1,
|
|
5189
|
+
class: "feature-disclosure project-git",
|
|
5190
|
+
onToggle: $event => (_ctx.toggleProjectGit($event))
|
|
5191
|
+
}, [
|
|
5192
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('git.title')), 1 /* TEXT */),
|
|
5193
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('git.scope')), 1 /* TEXT */),
|
|
5194
|
+
(_ctx.projectGitError)
|
|
5195
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5196
|
+
key: 0,
|
|
5197
|
+
class: "form-error",
|
|
5198
|
+
role: "alert"
|
|
5199
|
+
}, _toDisplayString(_ctx.projectGitError), 1 /* TEXT */))
|
|
5200
|
+
: _createCommentVNode("v-if", true),
|
|
5201
|
+
(_ctx.projectGitBusy)
|
|
5202
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5203
|
+
key: 1,
|
|
5204
|
+
role: "status"
|
|
5205
|
+
}, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
|
|
5206
|
+
: _createCommentVNode("v-if", true),
|
|
5207
|
+
(_ctx.projectGit)
|
|
5208
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
5209
|
+
_createElementVNode("p", { class: "feature-meta" }, _toDisplayString(_ctx.t('git.status.' + _ctx.projectGit.status)) + " · " + _toDisplayString(_ctx.t('features.readAt', { time: _ctx.projectGit.readAt })), 1 /* TEXT */),
|
|
5210
|
+
(_ctx.projectGit.root)
|
|
5211
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
|
|
5212
|
+
_createElementVNode("p", { class: "feature-path" }, _toDisplayString(_ctx.projectGit.root), 1 /* TEXT */),
|
|
5213
|
+
_createElementVNode("p", { class: "feature-meta" }, [
|
|
5214
|
+
_createTextVNode(_toDisplayString(_ctx.projectGit.branch || _ctx.t('git.detached')) + " · ", 1 /* TEXT */),
|
|
5215
|
+
_createElementVNode("code", null, _toDisplayString(_ctx.projectGit.head || _ctx.t('git.noHead')), 1 /* TEXT */),
|
|
5216
|
+
_createTextVNode(" · " + _toDisplayString(_ctx.t('git.changes', { count: _ctx.projectGit.changedFiles })), 1 /* TEXT */)
|
|
5217
|
+
]),
|
|
5218
|
+
_createElementVNode("ul", { class: "git-change-list" }, [
|
|
5219
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectGit.changes, (change) => {
|
|
5220
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
5221
|
+
key: change.path
|
|
5222
|
+
}, [
|
|
5223
|
+
_createElementVNode("code", null, _toDisplayString(change.status), 1 /* TEXT */),
|
|
5224
|
+
_createTextVNode(" " + _toDisplayString(change.path), 1 /* TEXT */)
|
|
5225
|
+
]))
|
|
5226
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5227
|
+
]),
|
|
5228
|
+
(_ctx.projectGit.changesTruncated || _ctx.projectGit.commitsTruncated)
|
|
5229
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5230
|
+
key: 0,
|
|
5231
|
+
class: "feature-hint"
|
|
5232
|
+
}, _toDisplayString(_ctx.t('git.truncated')), 1 /* TEXT */))
|
|
5233
|
+
: _createCommentVNode("v-if", true),
|
|
5234
|
+
_createElementVNode("ol", { class: "git-commit-list" }, [
|
|
5235
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectGit.commits, (commit) => {
|
|
5236
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
5237
|
+
key: commit.sha
|
|
5238
|
+
}, [
|
|
5239
|
+
_createElementVNode("button", {
|
|
5240
|
+
type: "button",
|
|
5241
|
+
class: "btn-mini",
|
|
5242
|
+
onClick: $event => (_ctx.loadProjectGitCommit(commit.sha)),
|
|
5243
|
+
disabled: _ctx.projectGitBusy
|
|
5244
|
+
}, [
|
|
5245
|
+
_createElementVNode("code", null, _toDisplayString(commit.sha.slice(0, 8)), 1 /* TEXT */),
|
|
5246
|
+
_createTextVNode(" " + _toDisplayString(commit.subject), 1 /* TEXT */)
|
|
5247
|
+
], 8 /* PROPS */, ["onClick", "disabled"]),
|
|
5248
|
+
_createElementVNode("small", { class: "feature-meta" }, _toDisplayString(commit.timestamp), 1 /* TEXT */),
|
|
5249
|
+
_createElementVNode("div", { class: "feature-link-list" }, [
|
|
5250
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(commit.candidates, (session) => {
|
|
5251
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
5252
|
+
key: session.source + session.sessionId,
|
|
5253
|
+
type: "button",
|
|
5254
|
+
onClick: $event => (_ctx.selectSession(session))
|
|
5255
|
+
}, _toDisplayString(_ctx.t('git.candidate')) + ": " + _toDisplayString(session.source) + " · " + _toDisplayString(session.title || session.sessionId), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
5256
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5257
|
+
])
|
|
5258
|
+
]))
|
|
5259
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5260
|
+
]),
|
|
5261
|
+
(_ctx.projectGitCommit)
|
|
5262
|
+
? (_openBlock(), _createElementBlock("pre", {
|
|
5263
|
+
key: 1,
|
|
5264
|
+
class: "feature-code git-commit-stat"
|
|
5265
|
+
}, _toDisplayString(_ctx.projectGitCommit.sha) + "\n" + _toDisplayString(_ctx.projectGitCommit.stat), 1 /* TEXT */))
|
|
5266
|
+
: _createCommentVNode("v-if", true),
|
|
5267
|
+
(_ctx.projectGitCommit)
|
|
5268
|
+
? (_openBlock(), _createElementBlock("section", {
|
|
5269
|
+
key: 2,
|
|
5270
|
+
class: "project-stories",
|
|
5271
|
+
"aria-label": _ctx.t('stories.title')
|
|
5272
|
+
}, [
|
|
5273
|
+
_createElementVNode("h4", null, _toDisplayString(_ctx.t('stories.title')), 1 /* TEXT */),
|
|
5274
|
+
_createElementVNode("p", { class: "feature-hint" }, _toDisplayString(_ctx.t('stories.scope')), 1 /* TEXT */),
|
|
5275
|
+
(_ctx.storyError)
|
|
5276
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5277
|
+
key: 0,
|
|
5278
|
+
class: "form-error",
|
|
5279
|
+
role: "alert"
|
|
5280
|
+
}, _toDisplayString(_ctx.storyError), 1 /* TEXT */))
|
|
5281
|
+
: _createCommentVNode("v-if", true),
|
|
5282
|
+
(_ctx.storyBusy)
|
|
5283
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
5284
|
+
key: 1,
|
|
5285
|
+
role: "status"
|
|
5286
|
+
}, _toDisplayString(_ctx.t('features.loading')), 1 /* TEXT */))
|
|
5287
|
+
: _createCommentVNode("v-if", true),
|
|
5288
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.commitStories, (item) => {
|
|
5289
|
+
return (_openBlock(), _createElementBlock("article", {
|
|
5290
|
+
key: item.id,
|
|
5291
|
+
class: "story-record"
|
|
5292
|
+
}, [
|
|
5293
|
+
_createElementVNode("p", { class: "feature-meta" }, _toDisplayString(_ctx.t('stories.linked')) + " · " + _toDisplayString(item.session.source), 1 /* TEXT */),
|
|
5294
|
+
(item.available)
|
|
5295
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
5296
|
+
key: 0,
|
|
5297
|
+
type: "button",
|
|
5298
|
+
class: "btn-mini",
|
|
5299
|
+
onClick: $event => (_ctx.selectSession(item.session))
|
|
5300
|
+
}, _toDisplayString(item.session.title || item.session.sessionId), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
5301
|
+
: (_openBlock(), _createElementBlock("p", {
|
|
5302
|
+
key: 1,
|
|
5303
|
+
class: "feature-hint"
|
|
5304
|
+
}, _toDisplayString(item.session.title || item.session.sessionId) + " · " + _toDisplayString(_ctx.t('stories.unavailable')), 1 /* TEXT */)),
|
|
5305
|
+
_createElementVNode("p", { class: "feature-note" }, _toDisplayString(item.note), 1 /* TEXT */),
|
|
5306
|
+
_createElementVNode("button", {
|
|
5307
|
+
type: "button",
|
|
5308
|
+
class: "btn-mini feature-quiet",
|
|
5309
|
+
onClick: $event => (_ctx.removeProjectStory(item)),
|
|
5310
|
+
disabled: _ctx.storyBusy
|
|
5311
|
+
}, _toDisplayString(_ctx.t('stories.remove')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5312
|
+
]))
|
|
5313
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
5314
|
+
_createElementVNode("form", {
|
|
5315
|
+
class: "feature-editor story-editor",
|
|
5316
|
+
onSubmit: _withModifiers(_ctx.saveProjectStory, ["prevent"])
|
|
5317
|
+
}, [
|
|
5318
|
+
_createElementVNode("label", null, [
|
|
5319
|
+
_createTextVNode(_toDisplayString(_ctx.t('stories.session')), 1 /* TEXT */),
|
|
5320
|
+
_withDirectives(_createElementVNode("select", {
|
|
5321
|
+
"onUpdate:modelValue": $event => ((_ctx.storySession) = $event),
|
|
5322
|
+
disabled: _ctx.storyBusy
|
|
5323
|
+
}, [
|
|
5324
|
+
_createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('stories.choose')), 1 /* TEXT */),
|
|
5325
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.storySessions, (session) => {
|
|
5326
|
+
return (_openBlock(), _createElementBlock("option", {
|
|
5327
|
+
key: _ctx.storySessionKey(session),
|
|
5328
|
+
value: _ctx.storySessionKey(session)
|
|
5329
|
+
}, _toDisplayString(session.source) + " · " + _toDisplayString(session.title || session.sessionId), 9 /* TEXT, PROPS */, ["value"]))
|
|
5330
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
5331
|
+
], 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
|
|
5332
|
+
[_vModelSelect, _ctx.storySession]
|
|
5333
|
+
])
|
|
5334
|
+
]),
|
|
5335
|
+
_createElementVNode("label", null, [
|
|
5336
|
+
_createTextVNode(_toDisplayString(_ctx.t('stories.note')), 1 /* TEXT */),
|
|
5337
|
+
_withDirectives(_createElementVNode("textarea", {
|
|
5338
|
+
"onUpdate:modelValue": $event => ((_ctx.storyNote) = $event),
|
|
5339
|
+
maxlength: "4000"
|
|
5340
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
5341
|
+
[_vModelText, _ctx.storyNote]
|
|
5342
|
+
])
|
|
5343
|
+
]),
|
|
5344
|
+
_createElementVNode("div", { class: "feature-actions" }, [
|
|
5345
|
+
_createElementVNode("button", {
|
|
5346
|
+
class: "btn-mini",
|
|
5347
|
+
disabled: _ctx.storyBusy || !_ctx.storySession
|
|
5348
|
+
}, _toDisplayString(_ctx.t('stories.save')), 9 /* TEXT, PROPS */, ["disabled"]),
|
|
5349
|
+
_createElementVNode("button", {
|
|
5350
|
+
type: "button",
|
|
5351
|
+
class: "btn-mini feature-quiet",
|
|
5352
|
+
onClick: _ctx.loadProjectStories,
|
|
5353
|
+
disabled: _ctx.storyBusy
|
|
5354
|
+
}, _toDisplayString(_ctx.t('stories.refresh')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5355
|
+
])
|
|
5356
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onSubmit"])
|
|
5357
|
+
], 8 /* PROPS */, ["aria-label"]))
|
|
5358
|
+
: _createCommentVNode("v-if", true)
|
|
5359
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
5360
|
+
: _createCommentVNode("v-if", true)
|
|
5361
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
5362
|
+
: _createCommentVNode("v-if", true),
|
|
5363
|
+
_createElementVNode("button", {
|
|
5364
|
+
type: "button",
|
|
5365
|
+
class: "btn-mini",
|
|
5366
|
+
onClick: _ctx.loadProjectGit,
|
|
5367
|
+
disabled: _ctx.projectGitBusy
|
|
5368
|
+
}, _toDisplayString(_ctx.t('git.refresh')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
5369
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onToggle"]))
|
|
5370
|
+
: _createCommentVNode("v-if", true),
|
|
5040
5371
|
_createElementVNode("div", { class: "feature-project-sessions" }, [
|
|
5041
5372
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projectReport.detail.sessions, (session) => {
|
|
5042
5373
|
return (_openBlock(), _createElementBlock("article", {
|
|
@@ -5104,7 +5435,7 @@ return function render(_ctx, _cache) {
|
|
|
5104
5435
|
]),
|
|
5105
5436
|
(_ctx.projectSelected)
|
|
5106
5437
|
? (_openBlock(), _createElementBlock("details", {
|
|
5107
|
-
key:
|
|
5438
|
+
key: 2,
|
|
5108
5439
|
class: "feature-disclosure"
|
|
5109
5440
|
}, [
|
|
5110
5441
|
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.projectMapping')), 1 /* TEXT */),
|
|
@@ -5134,7 +5465,7 @@ return function render(_ctx, _cache) {
|
|
|
5134
5465
|
: _createCommentVNode("v-if", true),
|
|
5135
5466
|
(_ctx.featureView === 'bookmarks')
|
|
5136
5467
|
? (_openBlock(), _createElementBlock("div", {
|
|
5137
|
-
key:
|
|
5468
|
+
key: 4,
|
|
5138
5469
|
class: "feature-content"
|
|
5139
5470
|
}, [
|
|
5140
5471
|
_createElementVNode("div", { class: "feature-section-heading" }, [
|
|
@@ -5610,21 +5941,7 @@ return function render(_ctx, _cache) {
|
|
|
5610
5941
|
title: _ctx.parseSessionTitleInfo(session).location
|
|
5611
5942
|
}, _toDisplayString(_ctx.parseSessionTitleInfo(session).location), 9 /* TEXT, PROPS */, ["title"]))
|
|
5612
5943
|
: _createCommentVNode("v-if", true)
|
|
5613
|
-
])
|
|
5614
|
-
_createElementVNode("span", { class: "session-count-badge" }, _toDisplayString(session.messageCount == null ? '...' : session.messageCount), 1 /* TEXT */),
|
|
5615
|
-
(session.match && session.match.hit)
|
|
5616
|
-
? (_openBlock(), _createElementBlock("span", {
|
|
5617
|
-
key: 0,
|
|
5618
|
-
class: "session-match-badge"
|
|
5619
|
-
}, _toDisplayString(session.match.count), 1 /* TEXT */))
|
|
5620
|
-
: _createCommentVNode("v-if", true),
|
|
5621
|
-
(_ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)] && _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent > 0)
|
|
5622
|
-
? (_openBlock(), _createElementBlock("span", {
|
|
5623
|
-
key: 1,
|
|
5624
|
-
class: _normalizeClass(['session-context-badge', 'session-context-' + _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].level]),
|
|
5625
|
-
title: 'Context: ' + _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent + '%'
|
|
5626
|
-
}, _toDisplayString(_ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent) + "% ", 11 /* TEXT, CLASS, PROPS */, ["title"]))
|
|
5627
|
-
: _createCommentVNode("v-if", true)
|
|
5944
|
+
])
|
|
5628
5945
|
]),
|
|
5629
5946
|
_createElementVNode("div", { class: "session-item-actions" }, [
|
|
5630
5947
|
_createElementVNode("button", {
|
|
@@ -5691,15 +6008,29 @@ return function render(_ctx, _cache) {
|
|
|
5691
6008
|
"data-source": session.source
|
|
5692
6009
|
}, _toDisplayString(session.sourceLabel), 9 /* TEXT, PROPS */, ["data-source"]),
|
|
5693
6010
|
_createElementVNode("span", { class: "session-item-time" }, _toDisplayString(session.updatedAtLabel || session.updatedAt || _ctx.t('sessions.unknownTime')), 1 /* TEXT */),
|
|
5694
|
-
(
|
|
6011
|
+
_createElementVNode("span", { class: "session-count-badge" }, _toDisplayString(session.messageCount == null ? '...' : session.messageCount), 1 /* TEXT */),
|
|
6012
|
+
(session.match && session.match.hit)
|
|
5695
6013
|
? (_openBlock(), _createElementBlock("span", {
|
|
5696
6014
|
key: 0,
|
|
6015
|
+
class: "session-match-badge"
|
|
6016
|
+
}, _toDisplayString(session.match.count), 1 /* TEXT */))
|
|
6017
|
+
: _createCommentVNode("v-if", true),
|
|
6018
|
+
(_ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)] && _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent > 0)
|
|
6019
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
6020
|
+
key: 1,
|
|
6021
|
+
class: _normalizeClass(['session-context-badge', 'session-context-' + _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].level]),
|
|
6022
|
+
title: 'Context: ' + _ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent + '%'
|
|
6023
|
+
}, _toDisplayString(_ctx.sessionContextUtilization[_ctx.getSessionExportKey(session)].percent) + "% ", 11 /* TEXT, CLASS, PROPS */, ["title"]))
|
|
6024
|
+
: _createCommentVNode("v-if", true),
|
|
6025
|
+
(_ctx.getSessionHotLabel(session))
|
|
6026
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
6027
|
+
key: 2,
|
|
5697
6028
|
class: "session-item-hot"
|
|
5698
6029
|
}, _toDisplayString(_ctx.getSessionHotLabel(session)), 1 /* TEXT */))
|
|
5699
6030
|
: _createCommentVNode("v-if", true),
|
|
5700
6031
|
(session.match && session.match.snippets && session.match.snippets.length)
|
|
5701
6032
|
? (_openBlock(), _createElementBlock("div", {
|
|
5702
|
-
key:
|
|
6033
|
+
key: 3,
|
|
5703
6034
|
class: "session-match-snippets"
|
|
5704
6035
|
}, [
|
|
5705
6036
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(session.match.snippets.slice(0, 2), (snip, si) => {
|
|
@@ -5840,7 +6171,7 @@ return function render(_ctx, _cache) {
|
|
|
5840
6171
|
(_ctx.handoffCopyText)
|
|
5841
6172
|
? (_openBlock(), _createElementBlock("label", {
|
|
5842
6173
|
key: 2,
|
|
5843
|
-
class: "
|
|
6174
|
+
class: "thread-handoff-copy session-workspace-card-wide"
|
|
5844
6175
|
}, [
|
|
5845
6176
|
_createElementVNode("span", { class: "session-workspace-card-title" }, "卡片文本(未发送,可手动复制)"),
|
|
5846
6177
|
_createElementVNode("textarea", {
|
|
@@ -5853,19 +6184,27 @@ return function render(_ctx, _cache) {
|
|
|
5853
6184
|
]))
|
|
5854
6185
|
: _createCommentVNode("v-if", true),
|
|
5855
6186
|
_createElementVNode("p", { class: "session-workspace-subtitle session-workspace-card-wide" }, "复制不会自动发送。读取确认由目标代理通过 CLI ack 提交。"),
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
6187
|
+
(_ctx.selectedContextIds.length)
|
|
6188
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
6189
|
+
key: 3,
|
|
6190
|
+
class: "feature-actions"
|
|
6191
|
+
}, [
|
|
6192
|
+
_createElementVNode("button", {
|
|
6193
|
+
type: "button",
|
|
6194
|
+
class: "btn-mini",
|
|
6195
|
+
onClick: _ctx.generateSelectedHandoff,
|
|
6196
|
+
disabled: _ctx.featureBusy || !_ctx.selectedContextIds.length
|
|
6197
|
+
}, _toDisplayString(_ctx.t('features.generateDraft', { count: _ctx.selectedContextIds.length })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
6198
|
+
]))
|
|
6199
|
+
: _createCommentVNode("v-if", true),
|
|
5864
6200
|
(_ctx.handoffDraftEvidence.length)
|
|
5865
|
-
? (_openBlock(), _createElementBlock("p", { key:
|
|
6201
|
+
? (_openBlock(), _createElementBlock("p", { key: 4 }, _toDisplayString(_ctx.t('features.draftReview')), 1 /* TEXT */))
|
|
5866
6202
|
: _createCommentVNode("v-if", true),
|
|
5867
6203
|
(_ctx.handoffUnverified.length)
|
|
5868
|
-
? (_openBlock(), _createElementBlock("details", {
|
|
6204
|
+
? (_openBlock(), _createElementBlock("details", {
|
|
6205
|
+
key: 5,
|
|
6206
|
+
class: "thread-handoff-audit"
|
|
6207
|
+
}, [
|
|
5869
6208
|
_createElementVNode("summary", null, _toDisplayString(_ctx.t('features.unverified', { count: _ctx.handoffUnverified.length })), 1 /* TEXT */),
|
|
5870
6209
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffUnverified, (text, index) => {
|
|
5871
6210
|
return (_openBlock(), _createElementBlock("pre", { key: index }, _toDisplayString(text), 1 /* TEXT */))
|
|
@@ -5873,7 +6212,10 @@ return function render(_ctx, _cache) {
|
|
|
5873
6212
|
]))
|
|
5874
6213
|
: _createCommentVNode("v-if", true),
|
|
5875
6214
|
(_ctx.handoffDraftEvidence.length)
|
|
5876
|
-
? (_openBlock(), _createElementBlock("ul", {
|
|
6215
|
+
? (_openBlock(), _createElementBlock("ul", {
|
|
6216
|
+
key: 6,
|
|
6217
|
+
class: "thread-handoff-evidence"
|
|
6218
|
+
}, [
|
|
5877
6219
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffDraftEvidence, (item) => {
|
|
5878
6220
|
return (_openBlock(), _createElementBlock("li", {
|
|
5879
6221
|
key: item.nodeId
|
|
@@ -5887,67 +6229,125 @@ return function render(_ctx, _cache) {
|
|
|
5887
6229
|
}), 128 /* KEYED_FRAGMENT */))
|
|
5888
6230
|
]))
|
|
5889
6231
|
: _createCommentVNode("v-if", true),
|
|
5890
|
-
(
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
: (!_ctx.handoffError && !_ctx.handoffRecords.length)
|
|
6232
|
+
_createElementVNode("section", {
|
|
6233
|
+
class: "thread-handoff-history session-workspace-card-wide",
|
|
6234
|
+
"aria-label": "交接历史"
|
|
6235
|
+
}, [
|
|
6236
|
+
_createElementVNode("h3", null, "交接历史"),
|
|
6237
|
+
(_ctx.handoffLoading)
|
|
5897
6238
|
? (_openBlock(), _createElementBlock("p", {
|
|
5898
|
-
key:
|
|
5899
|
-
class: "session-workspace-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
6239
|
+
key: 0,
|
|
6240
|
+
class: "session-workspace-card-wide",
|
|
6241
|
+
role: "status"
|
|
6242
|
+
}, "正在加载交接历史…"))
|
|
6243
|
+
: (!_ctx.handoffError && !_ctx.handoffRecords.length)
|
|
6244
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
6245
|
+
key: 1,
|
|
6246
|
+
class: "session-workspace-empty session-workspace-card-wide"
|
|
6247
|
+
}, "暂无交接记录"))
|
|
6248
|
+
: _createCommentVNode("v-if", true),
|
|
6249
|
+
(_ctx.handoffRecords.length)
|
|
6250
|
+
? (_openBlock(), _createElementBlock("ol", {
|
|
6251
|
+
key: 2,
|
|
6252
|
+
class: "session-workspace-list session-workspace-card-wide"
|
|
6253
|
+
}, [
|
|
6254
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.handoffRecords, (record) => {
|
|
6255
|
+
return (_openBlock(), _createElementBlock("li", {
|
|
6256
|
+
key: record.id,
|
|
6257
|
+
class: "session-workspace-card thread-handoff-record"
|
|
6258
|
+
}, [
|
|
6259
|
+
_createElementVNode("div", { class: "thread-handoff-record-heading" }, [
|
|
6260
|
+
_createElementVNode("div", { class: "thread-handoff-record-title" }, [
|
|
6261
|
+
_createElementVNode("strong", null, _toDisplayString(record.target), 1 /* TEXT */),
|
|
6262
|
+
_createElementVNode("span", { class: "thread-handoff-record-status" }, _toDisplayString(_ctx.handoffStatusLabel(record.status)), 1 /* TEXT */)
|
|
6263
|
+
]),
|
|
6264
|
+
_createElementVNode("button", {
|
|
6265
|
+
class: "btn-mini",
|
|
6266
|
+
type: "button",
|
|
6267
|
+
onClick: $event => (_ctx.copyThreadHandoff(record)),
|
|
6268
|
+
disabled: _ctx.handoffBusy || _ctx.handoffLoading
|
|
6269
|
+
}, _toDisplayString(record.route === 'mcp' ? '回退文件并复制卡片' : '复制卡片'), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
6270
|
+
]),
|
|
6271
|
+
_createElementVNode("p", { class: "thread-handoff-record-route" }, _toDisplayString(record.route === 'mcp' ? 'MCP 工具' : '文件级') + " · " + _toDisplayString(record.writeResult === 'written' ? '已写入' : (record.writeResult === 'failed_or_unconfirmed' ? '失败或结果未确认(不重试)' : '未执行写入')), 1 /* TEXT */),
|
|
6272
|
+
(record.reason)
|
|
6273
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
6274
|
+
key: 0,
|
|
6275
|
+
class: "thread-handoff-record-reason"
|
|
6276
|
+
}, "原因:" + _toDisplayString(record.reason), 1 /* TEXT */))
|
|
6277
|
+
: _createCommentVNode("v-if", true),
|
|
6278
|
+
(record.readConfirmation)
|
|
6279
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
6280
|
+
key: 1,
|
|
6281
|
+
class: "thread-handoff-read-proof"
|
|
6282
|
+
}, [
|
|
6283
|
+
_createTextVNode("读取证据:"),
|
|
6284
|
+
_createElementVNode("span", null, _toDisplayString(record.readConfirmation.evidence), 1 /* TEXT */)
|
|
6285
|
+
]))
|
|
6286
|
+
: _createCommentVNode("v-if", true),
|
|
6287
|
+
_createElementVNode("details", { class: "thread-handoff-audit" }, [
|
|
6288
|
+
_createElementVNode("summary", null, "投递详情"),
|
|
6289
|
+
_createElementVNode("dl", null, [
|
|
6290
|
+
_createElementVNode("div", null, [
|
|
6291
|
+
_createElementVNode("dt", null, "交接标识"),
|
|
6292
|
+
_createElementVNode("dd", null, [
|
|
6293
|
+
_createElementVNode("code", null, _toDisplayString(record.id), 1 /* TEXT */)
|
|
6294
|
+
])
|
|
6295
|
+
]),
|
|
6296
|
+
_createElementVNode("div", null, [
|
|
6297
|
+
_createElementVNode("dt", null, "创建时间"),
|
|
6298
|
+
_createElementVNode("dd", null, _toDisplayString(record.createdAt), 1 /* TEXT */)
|
|
6299
|
+
]),
|
|
6300
|
+
_createElementVNode("div", null, [
|
|
6301
|
+
_createElementVNode("dt", null, "投递耗时"),
|
|
6302
|
+
_createElementVNode("dd", null, _toDisplayString(record.durationMs) + " 毫秒", 1 /* TEXT */)
|
|
6303
|
+
]),
|
|
6304
|
+
_createElementVNode("div", null, [
|
|
6305
|
+
_createElementVNode("dt", null, "写入耗时"),
|
|
6306
|
+
_createElementVNode("dd", null, _toDisplayString(record.writeDurationMs || 0) + " 毫秒", 1 /* TEXT */)
|
|
6307
|
+
]),
|
|
6308
|
+
_createElementVNode("div", null, [
|
|
6309
|
+
_createElementVNode("dt", null, "文件回退"),
|
|
6310
|
+
_createElementVNode("dd", null, _toDisplayString(record.fallback ? '是' : '否'), 1 /* TEXT */)
|
|
6311
|
+
]),
|
|
6312
|
+
(record.mcp)
|
|
6313
|
+
? (_openBlock(), _createElementBlock("div", { key: 0 }, [
|
|
6314
|
+
_createElementVNode("dt", null, "MCP 服务"),
|
|
6315
|
+
_createElementVNode("dd", null, _toDisplayString(record.mcp.server) + " · " + _toDisplayString(record.mcp.tool), 1 /* TEXT */)
|
|
6316
|
+
]))
|
|
6317
|
+
: _createCommentVNode("v-if", true),
|
|
6318
|
+
(record.filePath)
|
|
6319
|
+
? (_openBlock(), _createElementBlock("div", { key: 1 }, [
|
|
6320
|
+
_createElementVNode("dt", null, "文件位置"),
|
|
6321
|
+
_createElementVNode("dd", null, [
|
|
6322
|
+
_createElementVNode("code", null, _toDisplayString(record.filePath), 1 /* TEXT */)
|
|
6323
|
+
])
|
|
6324
|
+
]))
|
|
6325
|
+
: _createCommentVNode("v-if", true),
|
|
6326
|
+
(record.readConfirmation)
|
|
6327
|
+
? (_openBlock(), _createElementBlock("div", { key: 2 }, [
|
|
6328
|
+
_createElementVNode("dt", null, "读取代理"),
|
|
6329
|
+
_createElementVNode("dd", null, _toDisplayString(record.readConfirmation.agent), 1 /* TEXT */)
|
|
6330
|
+
]))
|
|
6331
|
+
: _createCommentVNode("v-if", true),
|
|
6332
|
+
(record.readConfirmation)
|
|
6333
|
+
? (_openBlock(), _createElementBlock("div", { key: 3 }, [
|
|
6334
|
+
_createElementVNode("dt", null, "确认时间"),
|
|
6335
|
+
_createElementVNode("dd", null, _toDisplayString(record.readConfirmation.at), 1 /* TEXT */)
|
|
6336
|
+
]))
|
|
6337
|
+
: _createCommentVNode("v-if", true),
|
|
6338
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(record.discoveryWarnings || [], (warning, index) => {
|
|
6339
|
+
return (_openBlock(), _createElementBlock("div", { key: index }, [
|
|
6340
|
+
_createElementVNode("dt", null, "探测提示"),
|
|
6341
|
+
_createElementVNode("dd", null, _toDisplayString(warning.source) + " · " + _toDisplayString(warning.reason), 1 /* TEXT */)
|
|
6342
|
+
]))
|
|
6343
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
6344
|
+
])
|
|
6345
|
+
])
|
|
6346
|
+
]))
|
|
6347
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
6348
|
+
]))
|
|
6349
|
+
: _createCommentVNode("v-if", true)
|
|
6350
|
+
])
|
|
5951
6351
|
]))
|
|
5952
6352
|
: _createCommentVNode("v-if", true)
|
|
5953
6353
|
], 40 /* PROPS, NEED_HYDRATION */, ["open", "onToggle"]))
|
|
@@ -6659,38 +7059,38 @@ return function render(_ctx, _cache) {
|
|
|
6659
7059
|
_createElementVNode("div", { class: "session-msg-meta" }, [
|
|
6660
7060
|
_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 */),
|
|
6661
7061
|
_createElementVNode("span", { class: "session-msg-time" }, _toDisplayString(msg.timestamp || ''), 1 /* TEXT */)
|
|
6662
|
-
])
|
|
7062
|
+
]),
|
|
7063
|
+
(msg.normalizedRole === 'user')
|
|
7064
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
7065
|
+
key: 0,
|
|
7066
|
+
type: "button",
|
|
7067
|
+
class: "session-msg-copy",
|
|
7068
|
+
onClick: $event => (_ctx.copySessionMessage(msg)),
|
|
7069
|
+
"aria-label": _ctx.t('sessions.preview.copyMessage'),
|
|
7070
|
+
title: _ctx.t('sessions.preview.copyMessage')
|
|
7071
|
+
}, [
|
|
7072
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
7073
|
+
viewBox: "0 0 24 24",
|
|
7074
|
+
fill: "none",
|
|
7075
|
+
stroke: "currentColor",
|
|
7076
|
+
"stroke-width": "2"
|
|
7077
|
+
}, [
|
|
7078
|
+
_createElementVNode("rect", {
|
|
7079
|
+
x: "8",
|
|
7080
|
+
y: "8",
|
|
7081
|
+
width: "12",
|
|
7082
|
+
height: "12",
|
|
7083
|
+
rx: "2"
|
|
7084
|
+
}),
|
|
7085
|
+
_createElementVNode("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
|
|
7086
|
+
]))
|
|
7087
|
+
], 8 /* PROPS */, ["onClick", "aria-label", "title"]))
|
|
7088
|
+
: _createCommentVNode("v-if", true)
|
|
6663
7089
|
]),
|
|
6664
7090
|
_createElementVNode("div", {
|
|
6665
7091
|
class: "session-msg-content",
|
|
6666
7092
|
innerHTML: msg.text || ''
|
|
6667
|
-
}, null, 8 /* PROPS */, ["innerHTML"])
|
|
6668
|
-
(msg.normalizedRole === 'user')
|
|
6669
|
-
? (_openBlock(), _createElementBlock("button", {
|
|
6670
|
-
key: 0,
|
|
6671
|
-
type: "button",
|
|
6672
|
-
class: "session-msg-copy",
|
|
6673
|
-
onClick: $event => (_ctx.copySessionMessage(msg)),
|
|
6674
|
-
"aria-label": _ctx.t('sessions.preview.copyMessage'),
|
|
6675
|
-
title: _ctx.t('sessions.preview.copyMessage')
|
|
6676
|
-
}, [
|
|
6677
|
-
(_openBlock(), _createElementBlock("svg", {
|
|
6678
|
-
viewBox: "0 0 24 24",
|
|
6679
|
-
fill: "none",
|
|
6680
|
-
stroke: "currentColor",
|
|
6681
|
-
"stroke-width": "2"
|
|
6682
|
-
}, [
|
|
6683
|
-
_createElementVNode("rect", {
|
|
6684
|
-
x: "8",
|
|
6685
|
-
y: "8",
|
|
6686
|
-
width: "12",
|
|
6687
|
-
height: "12",
|
|
6688
|
-
rx: "2"
|
|
6689
|
-
}),
|
|
6690
|
-
_createElementVNode("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
|
|
6691
|
-
]))
|
|
6692
|
-
], 8 /* PROPS */, ["onClick", "aria-label", "title"]))
|
|
6693
|
-
: _createCommentVNode("v-if", true)
|
|
7093
|
+
}, null, 8 /* PROPS */, ["innerHTML"])
|
|
6694
7094
|
], 10 /* CLASS, PROPS */, ["data-message-key"]))
|
|
6695
7095
|
_item.memo = _memo
|
|
6696
7096
|
return _item
|
|
@@ -6872,6 +7272,187 @@ return function render(_ctx, _cache) {
|
|
|
6872
7272
|
], 8 /* PROPS */, ["onClick", "disabled", "title"])
|
|
6873
7273
|
], 8 /* PROPS */, ["aria-label"])
|
|
6874
7274
|
]),
|
|
7275
|
+
_createElementVNode("details", {
|
|
7276
|
+
class: "usage-card usage-records",
|
|
7277
|
+
id: "usage-records-report",
|
|
7278
|
+
onToggle: $event => (_ctx.toggleUsageRecords($event))
|
|
7279
|
+
}, [
|
|
7280
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('usage.records.title')), 1 /* TEXT */),
|
|
7281
|
+
_createElementVNode("p", { class: "usage-list-meta" }, _toDisplayString(_ctx.t('usage.records.scope')), 1 /* TEXT */),
|
|
7282
|
+
(_ctx.usageRecordsLoading)
|
|
7283
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7284
|
+
key: 0,
|
|
7285
|
+
role: "status"
|
|
7286
|
+
}, _toDisplayString(_ctx.t('usage.loading')), 1 /* TEXT */))
|
|
7287
|
+
: _createCommentVNode("v-if", true),
|
|
7288
|
+
(_ctx.usageRecordsError)
|
|
7289
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7290
|
+
key: 1,
|
|
7291
|
+
role: "alert"
|
|
7292
|
+
}, _toDisplayString(_ctx.usageRecordsError), 1 /* TEXT */))
|
|
7293
|
+
: _createCommentVNode("v-if", true),
|
|
7294
|
+
(_ctx.usageRecords)
|
|
7295
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
7296
|
+
_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 */),
|
|
7297
|
+
(_ctx.usageRecords.summary.failedSessions.length)
|
|
7298
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7299
|
+
key: 0,
|
|
7300
|
+
role: "alert"
|
|
7301
|
+
}, _toDisplayString(_ctx.t('usage.records.failed', { count: _ctx.usageRecords.summary.failedSessions.length })), 1 /* TEXT */))
|
|
7302
|
+
: _createCommentVNode("v-if", true),
|
|
7303
|
+
_createElementVNode("div", { class: "usage-kpi-grid" }, [
|
|
7304
|
+
_createElementVNode("div", { class: "usage-kpi-card" }, [
|
|
7305
|
+
_createElementVNode("div", { class: "usage-kpi-label" }, _toDisplayString(_ctx.t('usage.records.total')), 1 /* TEXT */),
|
|
7306
|
+
_createElementVNode("div", { class: "usage-kpi-value" }, _toDisplayString(_ctx.formatUsageRecordCount(_ctx.usageRecords.summary.totalTokens)), 1 /* TEXT */)
|
|
7307
|
+
]),
|
|
7308
|
+
_createElementVNode("div", { class: "usage-kpi-card" }, [
|
|
7309
|
+
_createElementVNode("div", { class: "usage-kpi-label" }, _toDisplayString(_ctx.t('usage.records.estimated')), 1 /* TEXT */),
|
|
7310
|
+
_createElementVNode("div", { class: "usage-kpi-value" }, _toDisplayString(_ctx.formatUsageRecordCount(_ctx.usageRecords.summary.estimatedTextTokens)), 1 /* TEXT */)
|
|
7311
|
+
]),
|
|
7312
|
+
_createElementVNode("div", { class: "usage-kpi-card" }, [
|
|
7313
|
+
_createElementVNode("div", { class: "usage-kpi-label" }, _toDisplayString(_ctx.t('usage.records.cacheRead')), 1 /* TEXT */),
|
|
7314
|
+
_createElementVNode("div", { class: "usage-kpi-value" }, _toDisplayString(_ctx.formatUsageRecordCount(_ctx.usageRecords.summary.cachedInputTokens)), 1 /* TEXT */)
|
|
7315
|
+
]),
|
|
7316
|
+
_createElementVNode("div", { class: "usage-kpi-card" }, [
|
|
7317
|
+
_createElementVNode("div", { class: "usage-kpi-label" }, _toDisplayString(_ctx.t('usage.records.cacheWrite')), 1 /* TEXT */),
|
|
7318
|
+
_createElementVNode("div", { class: "usage-kpi-value" }, _toDisplayString(_ctx.formatUsageRecordCount(_ctx.usageRecords.summary.cacheCreationInputTokens)), 1 /* TEXT */)
|
|
7319
|
+
])
|
|
7320
|
+
]),
|
|
7321
|
+
(_ctx.usageRecords.summary.undatedTokens)
|
|
7322
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7323
|
+
key: 1,
|
|
7324
|
+
class: "usage-list-meta"
|
|
7325
|
+
}, _toDisplayString(_ctx.t('usage.records.undated', { tokens: _ctx.usageRecords.summary.undatedTokens })), 1 /* TEXT */))
|
|
7326
|
+
: _createCommentVNode("v-if", true),
|
|
7327
|
+
_createElementVNode("div", { class: "usage-records-table" }, [
|
|
7328
|
+
_createElementVNode("table", null, [
|
|
7329
|
+
_createElementVNode("thead", null, [
|
|
7330
|
+
_createElementVNode("tr", null, [
|
|
7331
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.date')), 1 /* TEXT */),
|
|
7332
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.source')), 1 /* TEXT */),
|
|
7333
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.model')), 1 /* TEXT */),
|
|
7334
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.input')), 1 /* TEXT */),
|
|
7335
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.cacheRead')), 1 /* TEXT */),
|
|
7336
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.cacheWrite')), 1 /* TEXT */),
|
|
7337
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.output')), 1 /* TEXT */),
|
|
7338
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.total')), 1 /* TEXT */)
|
|
7339
|
+
])
|
|
7340
|
+
]),
|
|
7341
|
+
_createElementVNode("tbody", null, [
|
|
7342
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.usageRecords.rows, (row) => {
|
|
7343
|
+
return (_openBlock(), _createElementBlock("tr", {
|
|
7344
|
+
key: row.date + ':' + row.source + ':' + row.model
|
|
7345
|
+
}, [
|
|
7346
|
+
_createElementVNode("td", null, _toDisplayString(row.date || _ctx.t('usage.records.unknown')), 1 /* TEXT */),
|
|
7347
|
+
_createElementVNode("td", null, _toDisplayString(row.source), 1 /* TEXT */),
|
|
7348
|
+
_createElementVNode("td", null, _toDisplayString(row.model), 1 /* TEXT */),
|
|
7349
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.inputTokens)), 1 /* TEXT */),
|
|
7350
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.cachedInputTokens)), 1 /* TEXT */),
|
|
7351
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.cacheCreationInputTokens)), 1 /* TEXT */),
|
|
7352
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.outputTokens)), 1 /* TEXT */),
|
|
7353
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatUsageRecordCount(row.totalTokens)), 1 /* TEXT */)
|
|
7354
|
+
]))
|
|
7355
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
7356
|
+
])
|
|
7357
|
+
])
|
|
7358
|
+
]),
|
|
7359
|
+
(!_ctx.usageRecords.rows.length)
|
|
7360
|
+
? (_openBlock(), _createElementBlock("p", { key: 2 }, _toDisplayString(_ctx.t('usage.empty')), 1 /* TEXT */))
|
|
7361
|
+
: _createCommentVNode("v-if", true)
|
|
7362
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
7363
|
+
: _createCommentVNode("v-if", true),
|
|
7364
|
+
(!_ctx.usageRecordsLoading)
|
|
7365
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
7366
|
+
key: 3,
|
|
7367
|
+
type: "button",
|
|
7368
|
+
class: "btn-mini",
|
|
7369
|
+
onClick: $event => (_ctx.loadUsageRecords({ forceRefresh: true }))
|
|
7370
|
+
}, _toDisplayString(_ctx.t('usage.refresh')), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
7371
|
+
: _createCommentVNode("v-if", true)
|
|
7372
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onToggle"]),
|
|
7373
|
+
_createElementVNode("details", {
|
|
7374
|
+
class: "usage-card usage-pricing",
|
|
7375
|
+
id: "usage-price-reference",
|
|
7376
|
+
onToggle: $event => (_ctx.toggleUsagePricing($event))
|
|
7377
|
+
}, [
|
|
7378
|
+
_createElementVNode("summary", null, _toDisplayString(_ctx.t('pricing.title')), 1 /* TEXT */),
|
|
7379
|
+
_createElementVNode("p", { class: "usage-list-meta" }, _toDisplayString(_ctx.t('pricing.scope')), 1 /* TEXT */),
|
|
7380
|
+
(_ctx.usagePricingBusy)
|
|
7381
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7382
|
+
key: 0,
|
|
7383
|
+
role: "status"
|
|
7384
|
+
}, _toDisplayString(_ctx.t('usage.loading')), 1 /* TEXT */))
|
|
7385
|
+
: _createCommentVNode("v-if", true),
|
|
7386
|
+
(_ctx.usagePricingError)
|
|
7387
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
7388
|
+
key: 1,
|
|
7389
|
+
role: "alert"
|
|
7390
|
+
}, _toDisplayString(_ctx.usagePricingError), 1 /* TEXT */))
|
|
7391
|
+
: _createCommentVNode("v-if", true),
|
|
7392
|
+
(_ctx.usagePricing)
|
|
7393
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
7394
|
+
_createElementVNode("p", { class: "usage-price-total" }, _toDisplayString(_ctx.t('pricing.total')) + ": " + _toDisplayString(_ctx.formatPriceUsd(_ctx.usagePricing.summary.estimatedUsd)), 1 /* TEXT */),
|
|
7395
|
+
_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 */),
|
|
7396
|
+
_createElementVNode("p", { class: "usage-list-meta" }, [
|
|
7397
|
+
_createElementVNode("a", {
|
|
7398
|
+
href: _ctx.usagePricing.priceSource.repository,
|
|
7399
|
+
target: "_blank",
|
|
7400
|
+
rel: "noopener noreferrer"
|
|
7401
|
+
}, "Wei-Shaw/model-price-repo", 8 /* PROPS */, ["href"]),
|
|
7402
|
+
_createTextVNode(" · " + _toDisplayString(_ctx.usagePricing.priceSource.sourceUpdatedAt) + " · ", 1 /* TEXT */),
|
|
7403
|
+
_createElementVNode("code", null, _toDisplayString(_ctx.usagePricing.priceSource.commit.slice(0, 12)), 1 /* TEXT */)
|
|
7404
|
+
]),
|
|
7405
|
+
_createElementVNode("div", { class: "usage-records-table" }, [
|
|
7406
|
+
_createElementVNode("table", null, [
|
|
7407
|
+
_createElementVNode("thead", null, [
|
|
7408
|
+
_createElementVNode("tr", null, [
|
|
7409
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.date')), 1 /* TEXT */),
|
|
7410
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.source')), 1 /* TEXT */),
|
|
7411
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('usage.records.model')), 1 /* TEXT */),
|
|
7412
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('pricing.total')), 1 /* TEXT */),
|
|
7413
|
+
_createElementVNode("th", null, _toDisplayString(_ctx.t('pricing.basis')), 1 /* TEXT */)
|
|
7414
|
+
])
|
|
7415
|
+
]),
|
|
7416
|
+
_createElementVNode("tbody", null, [
|
|
7417
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.usagePricing.rows, (row) => {
|
|
7418
|
+
return (_openBlock(), _createElementBlock("tr", {
|
|
7419
|
+
key: row.date + ':' + row.source + ':' + row.model
|
|
7420
|
+
}, [
|
|
7421
|
+
_createElementVNode("td", null, _toDisplayString(row.date || _ctx.t('usage.records.unknown')), 1 /* TEXT */),
|
|
7422
|
+
_createElementVNode("td", null, _toDisplayString(row.source), 1 /* TEXT */),
|
|
7423
|
+
_createElementVNode("td", null, _toDisplayString(row.model), 1 /* TEXT */),
|
|
7424
|
+
_createElementVNode("td", null, _toDisplayString(_ctx.formatPriceUsd(row.estimatedUsd)), 1 /* TEXT */),
|
|
7425
|
+
_createElementVNode("td", null, [
|
|
7426
|
+
_createTextVNode(_toDisplayString(_ctx.t('pricing.reason.' + row.reason)), 1 /* TEXT */),
|
|
7427
|
+
(row.rates)
|
|
7428
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
7429
|
+
key: 0,
|
|
7430
|
+
class: "usage-price-rates"
|
|
7431
|
+
}, _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 */))
|
|
7432
|
+
: _createCommentVNode("v-if", true)
|
|
7433
|
+
])
|
|
7434
|
+
]))
|
|
7435
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
7436
|
+
])
|
|
7437
|
+
])
|
|
7438
|
+
]),
|
|
7439
|
+
(!_ctx.usagePricing.rows.length)
|
|
7440
|
+
? (_openBlock(), _createElementBlock("p", { key: 0 }, _toDisplayString(_ctx.t('usage.empty')), 1 /* TEXT */))
|
|
7441
|
+
: _createCommentVNode("v-if", true),
|
|
7442
|
+
_createElementVNode("button", {
|
|
7443
|
+
type: "button",
|
|
7444
|
+
class: "btn-mini",
|
|
7445
|
+
onClick: _ctx.downloadUsagePricing
|
|
7446
|
+
}, _toDisplayString(_ctx.t('pricing.download')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
7447
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
7448
|
+
: _createCommentVNode("v-if", true),
|
|
7449
|
+
_createElementVNode("button", {
|
|
7450
|
+
type: "button",
|
|
7451
|
+
class: "btn-mini",
|
|
7452
|
+
onClick: _ctx.loadUsagePricing,
|
|
7453
|
+
disabled: _ctx.usagePricingBusy
|
|
7454
|
+
}, _toDisplayString(_ctx.t('usage.refresh')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
7455
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onToggle"]),
|
|
6875
7456
|
(_ctx.sessionsUsageLoading && !_ctx.sessionsUsageList.length)
|
|
6876
7457
|
? (_openBlock(), _createElementBlock("div", {
|
|
6877
7458
|
key: 0,
|
|
@@ -7641,7 +8222,18 @@ return function render(_ctx, _cache) {
|
|
|
7641
8222
|
class: _normalizeClass(['segmented-option', { active: _ctx.settingsTab === 'data' }]),
|
|
7642
8223
|
onClick: $event => (_ctx.onSettingsTabClick('data')),
|
|
7643
8224
|
onKeydown: $event => (_ctx.onSettingsTabKeydown($event, 'data'))
|
|
7644
|
-
}, _toDisplayString(_ctx.t('settings.tab.data')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["aria-selected", "tabindex", "onClick", "onKeydown"])
|
|
8225
|
+
}, _toDisplayString(_ctx.t('settings.tab.data')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["aria-selected", "tabindex", "onClick", "onKeydown"]),
|
|
8226
|
+
_createElementVNode("button", {
|
|
8227
|
+
id: "settings-tab-about",
|
|
8228
|
+
type: "button",
|
|
8229
|
+
role: "tab",
|
|
8230
|
+
"aria-controls": "settings-panel-about",
|
|
8231
|
+
"aria-selected": _ctx.settingsTab === 'about',
|
|
8232
|
+
tabindex: _ctx.settingsTab === 'about' ? 0 : -1,
|
|
8233
|
+
class: _normalizeClass(['segmented-option', { active: _ctx.settingsTab === 'about' }]),
|
|
8234
|
+
onClick: $event => (_ctx.onSettingsTabClick('about')),
|
|
8235
|
+
onKeydown: $event => (_ctx.onSettingsTabKeydown($event, 'about'))
|
|
8236
|
+
}, _toDisplayString(_ctx.t('settings.tab.about')), 43 /* TEXT, CLASS, PROPS, NEED_HYDRATION */, ["aria-selected", "tabindex", "onClick", "onKeydown"])
|
|
7645
8237
|
], 8 /* PROPS */, ["aria-label"])
|
|
7646
8238
|
]),
|
|
7647
8239
|
_withDirectives(_createElementVNode("div", {
|
|
@@ -7996,6 +8588,66 @@ return function render(_ctx, _cache) {
|
|
|
7996
8588
|
])
|
|
7997
8589
|
], 512 /* NEED_PATCH */), [
|
|
7998
8590
|
[_vShow, _ctx.settingsTab === 'data']
|
|
8591
|
+
]),
|
|
8592
|
+
_withDirectives(_createElementVNode("div", {
|
|
8593
|
+
id: "settings-panel-about",
|
|
8594
|
+
role: "tabpanel",
|
|
8595
|
+
"aria-labelledby": "settings-tab-about"
|
|
8596
|
+
}, [
|
|
8597
|
+
_createElementVNode("div", { class: "settings-grid" }, [
|
|
8598
|
+
_createElementVNode("section", {
|
|
8599
|
+
class: "settings-card",
|
|
8600
|
+
"aria-labelledby": "settings-about-update-title"
|
|
8601
|
+
}, [
|
|
8602
|
+
_createElementVNode("div", { class: "settings-card-main" }, [
|
|
8603
|
+
_createElementVNode("div", { class: "settings-card-content" }, [
|
|
8604
|
+
_createElementVNode("h2", {
|
|
8605
|
+
id: "settings-about-update-title",
|
|
8606
|
+
class: "settings-card-title"
|
|
8607
|
+
}, "Codex Mate · " + _toDisplayString(_ctx.t('settings.about.update')), 1 /* TEXT */),
|
|
8608
|
+
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.about.currentVersion', { version: _ctx.appVersion ? 'v' + _ctx.appVersion : '—' })), 1 /* TEXT */),
|
|
8609
|
+
_createElementVNode("div", { role: "status" }, [
|
|
8610
|
+
(_ctx.appVersionStatusLoading)
|
|
8611
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
8612
|
+
key: 0,
|
|
8613
|
+
class: "settings-card-hint"
|
|
8614
|
+
}, _toDisplayString(_ctx.t('side.update.checking')), 1 /* TEXT */))
|
|
8615
|
+
: (_ctx.appVersionStatusError)
|
|
8616
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
8617
|
+
key: 1,
|
|
8618
|
+
class: "settings-card-hint form-error"
|
|
8619
|
+
}, _toDisplayString(_ctx.appVersionStatusError), 1 /* TEXT */))
|
|
8620
|
+
: (_ctx.appVersionStatusChecked)
|
|
8621
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
8622
|
+
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.about.latestVersion', { version: 'v' + _ctx.appLatestVersion })), 1 /* TEXT */),
|
|
8623
|
+
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t(_ctx.isAppUpdateAvailable() ? 'side.update.available' : 'side.update.upToDate')), 1 /* TEXT */)
|
|
8624
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
8625
|
+
: _createCommentVNode("v-if", true)
|
|
8626
|
+
])
|
|
8627
|
+
])
|
|
8628
|
+
]),
|
|
8629
|
+
_createElementVNode("div", { class: "settings-card-actions" }, [
|
|
8630
|
+
_createElementVNode("button", {
|
|
8631
|
+
id: "settings-about-check-update",
|
|
8632
|
+
type: "button",
|
|
8633
|
+
class: "settings-card-action",
|
|
8634
|
+
disabled: _ctx.appVersionStatusLoading,
|
|
8635
|
+
onClick: $event => (_ctx.loadAppVersionStatus({ force: true, silent: true }))
|
|
8636
|
+
}, _toDisplayString(_ctx.t(_ctx.appVersionStatusError ? 'side.update.retry' : 'side.update.check')), 9 /* TEXT, PROPS */, ["disabled", "onClick"]),
|
|
8637
|
+
(!_ctx.appVersionStatusLoading && !_ctx.appVersionStatusError && _ctx.isAppUpdateAvailable())
|
|
8638
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
8639
|
+
key: 0,
|
|
8640
|
+
id: "settings-about-view-update",
|
|
8641
|
+
type: "button",
|
|
8642
|
+
class: "settings-card-action",
|
|
8643
|
+
onClick: $event => (_ctx.openAppUpdateModal($event.currentTarget))
|
|
8644
|
+
}, _toDisplayString(_ctx.t('settings.about.viewUpdate')), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
8645
|
+
: _createCommentVNode("v-if", true)
|
|
8646
|
+
])
|
|
8647
|
+
])
|
|
8648
|
+
])
|
|
8649
|
+
], 512 /* NEED_PATCH */), [
|
|
8650
|
+
[_vShow, _ctx.settingsTab === 'about']
|
|
7999
8651
|
])
|
|
8000
8652
|
], 512 /* NEED_PATCH */), [
|
|
8001
8653
|
[_vShow, _ctx.mainTab === 'settings']
|
|
@@ -10646,7 +11298,7 @@ return function render(_ctx, _cache) {
|
|
|
10646
11298
|
]))
|
|
10647
11299
|
: _createCommentVNode("v-if", true),
|
|
10648
11300
|
_createCommentVNode(" 加载状态 "),
|
|
10649
|
-
(_ctx.loading && _ctx.mainTab !== 'usage')
|
|
11301
|
+
(_ctx.loading && _ctx.mainTab !== 'usage' && _ctx.mainTab !== 'prompts')
|
|
10650
11302
|
? (_openBlock(), _createElementBlock("div", {
|
|
10651
11303
|
key: 4,
|
|
10652
11304
|
class: "state-message app-loading-state"
|
|
@@ -11520,7 +12172,7 @@ return function render(_ctx, _cache) {
|
|
|
11520
12172
|
class: "btn btn-confirm",
|
|
11521
12173
|
onClick: _ctx.addClaudeConfig,
|
|
11522
12174
|
disabled: !_ctx.canSubmitClaudeConfig('add')
|
|
11523
|
-
}, _toDisplayString(_ctx.t('common.add')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
12175
|
+
}, _toDisplayString(_ctx.t(_ctx.claudeAddFromPreset ? 'common.save' : 'common.add')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
11524
12176
|
])
|
|
11525
12177
|
])
|
|
11526
12178
|
], 8 /* PROPS */, ["onClick"]))
|
|
@@ -12107,6 +12759,14 @@ return function render(_ctx, _cache) {
|
|
|
12107
12759
|
]))
|
|
12108
12760
|
], 8 /* PROPS */, ["onClick"]),
|
|
12109
12761
|
_withDirectives(_createElementVNode("div", { class: "accordion-content" }, [
|
|
12762
|
+
_createElementVNode("div", { class: "form-group" }, [
|
|
12763
|
+
_createElementVNode("button", {
|
|
12764
|
+
type: "button",
|
|
12765
|
+
class: "btn-mini",
|
|
12766
|
+
onClick: _ctx.fillOpenclawProviderPreset,
|
|
12767
|
+
disabled: _ctx.openclawFileLoading || _ctx.openclawSaving || _ctx.openclawApplying || !_ctx.isToolConfigWriteAllowed('openclaw')
|
|
12768
|
+
}, _toDisplayString(_ctx.t('config.providerTemplate.fillDraft', { name: 'OpenAI API' })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
12769
|
+
]),
|
|
12110
12770
|
_createElementVNode("div", { class: "form-group" }, [
|
|
12111
12771
|
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('field.providerName')), 1 /* TEXT */),
|
|
12112
12772
|
_withDirectives(_createElementVNode("input", {
|