codexmate 0.1.35 → 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.
Files changed (33) hide show
  1. package/README.md +102 -100
  2. package/README.vi.md +105 -93
  3. package/README.zh.md +102 -98
  4. package/cli.js +1 -1
  5. package/package.json +1 -1
  6. package/web-ui/app.js +2 -0
  7. package/web-ui/logic.codex.mjs +14 -0
  8. package/web-ui/modules/app.methods.claude-config.mjs +26 -5
  9. package/web-ui/modules/app.methods.install.mjs +13 -17
  10. package/web-ui/modules/app.methods.navigation.mjs +1 -1
  11. package/web-ui/modules/app.methods.openclaw-editing.mjs +29 -0
  12. package/web-ui/modules/app.methods.openclaw-persist.mjs +3 -3
  13. package/web-ui/modules/app.methods.opencode-config.mjs +34 -0
  14. package/web-ui/modules/app.methods.pi-config.mjs +14 -9
  15. package/web-ui/modules/app.methods.providers.mjs +11 -0
  16. package/web-ui/modules/app.methods.session-trash.mjs +4 -5
  17. package/web-ui/modules/app.methods.startup-claude.mjs +1 -0
  18. package/web-ui/modules/claude-provider-presets.mjs +23 -0
  19. package/web-ui/modules/i18n/locales/en.mjs +11 -0
  20. package/web-ui/modules/i18n/locales/ja.mjs +11 -0
  21. package/web-ui/modules/i18n/locales/vi.mjs +11 -0
  22. package/web-ui/modules/i18n/locales/zh-tw.mjs +11 -0
  23. package/web-ui/modules/i18n/locales/zh.mjs +11 -0
  24. package/web-ui/modules/pi-provider-templates.mjs +6 -1
  25. package/web-ui/partials/index/modal-openclaw-config.html +3 -0
  26. package/web-ui/partials/index/modals-basic.html +1 -1
  27. package/web-ui/partials/index/modals-pi-provider.html +1 -1
  28. package/web-ui/partials/index/panel-config-claude.html +4 -21
  29. package/web-ui/partials/index/panel-config-codex.html +3 -1
  30. package/web-ui/partials/index/panel-config-opencode.html +4 -0
  31. package/web-ui/partials/index/panel-settings.html +45 -0
  32. package/web-ui/res/web-ui-render.precompiled.js +124 -111
  33. package/web-ui/styles/settings-panel.css +4 -0
@@ -1550,8 +1550,9 @@ return function render(_ctx, _cache) {
1550
1550
  key: tpl.name,
1551
1551
  type: "button",
1552
1552
  class: "btn-mini",
1553
- onClick: $event => {_ctx.newProvider.name = tpl.name; _ctx.newProvider.url = tpl.url; _ctx.newProvider.model = tpl.model || ''; _ctx.newProvider.useTransform = !!tpl.useTransform; _ctx.showAddProviderKey = false; _ctx.showAddModal = true}
1554
- }, _toDisplayString(tpl.label), 9 /* TEXT, PROPS */, ["onClick"]))
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","margin-top":"0"}
2183
+ style: {"flex-wrap":"wrap","gap":"8px"}
2173
2184
  }, [
2174
- _createElementVNode("button", {
2175
- type: "button",
2176
- class: "btn-mini",
2177
- onClick: $event => {_ctx.newClaudeConfig.name = 'Claude Official'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.anthropic.com'; _ctx.newClaudeConfig.model = 'claude-sonnet-4'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
2178
- }, "Claude Official", 8 /* PROPS */, ["onClick"]),
2179
- _createElementVNode("button", {
2180
- type: "button",
2181
- class: "btn-mini",
2182
- onClick: $event => {_ctx.newClaudeConfig.name = 'DeepSeek'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://api.deepseek.com/anthropic'; _ctx.newClaudeConfig.model = 'DeepSeek-V3.2'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
2183
- }, "DeepSeek", 8 /* PROPS */, ["onClick"]),
2184
- _createElementVNode("button", {
2185
- type: "button",
2186
- class: "btn-mini",
2187
- onClick: $event => {_ctx.newClaudeConfig.name = 'Zhipu GLM'; _ctx.newClaudeConfig.apiKey = ''; _ctx.newClaudeConfig.baseUrl = 'https://open.bigmodel.cn/api/anthropic'; _ctx.newClaudeConfig.model = 'glm-5'; _ctx.showAddClaudeConfigKey = false; _ctx.showClaudeConfigModal = true}
2188
- }, "Zhipu GLM", 8 /* PROPS */, ["onClick"]),
2189
- _createElementVNode("button", {
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
- _withDirectives(_createElementVNode("input", {
4116
+ _createElementVNode("input", {
4182
4117
  class: "form-input",
4183
4118
  type: "text",
4184
- "onUpdate:modelValue": $event => ((model.id) = $event),
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, 8 /* PROPS */, ["onUpdate:modelValue", "disabled"]), [
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",
@@ -8288,7 +8222,18 @@ return function render(_ctx, _cache) {
8288
8222
  class: _normalizeClass(['segmented-option', { active: _ctx.settingsTab === 'data' }]),
8289
8223
  onClick: $event => (_ctx.onSettingsTabClick('data')),
8290
8224
  onKeydown: $event => (_ctx.onSettingsTabKeydown($event, 'data'))
8291
- }, _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"])
8292
8237
  ], 8 /* PROPS */, ["aria-label"])
8293
8238
  ]),
8294
8239
  _withDirectives(_createElementVNode("div", {
@@ -8643,6 +8588,66 @@ return function render(_ctx, _cache) {
8643
8588
  ])
8644
8589
  ], 512 /* NEED_PATCH */), [
8645
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']
8646
8651
  ])
8647
8652
  ], 512 /* NEED_PATCH */), [
8648
8653
  [_vShow, _ctx.mainTab === 'settings']
@@ -12167,7 +12172,7 @@ return function render(_ctx, _cache) {
12167
12172
  class: "btn btn-confirm",
12168
12173
  onClick: _ctx.addClaudeConfig,
12169
12174
  disabled: !_ctx.canSubmitClaudeConfig('add')
12170
- }, _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"])
12171
12176
  ])
12172
12177
  ])
12173
12178
  ], 8 /* PROPS */, ["onClick"]))
@@ -12754,6 +12759,14 @@ return function render(_ctx, _cache) {
12754
12759
  ]))
12755
12760
  ], 8 /* PROPS */, ["onClick"]),
12756
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
+ ]),
12757
12770
  _createElementVNode("div", { class: "form-group" }, [
12758
12771
  _createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('field.providerName')), 1 /* TEXT */),
12759
12772
  _withDirectives(_createElementVNode("input", {
@@ -387,6 +387,10 @@
387
387
  padding: 10px 16px;
388
388
  }
389
389
 
390
+ #settings-panel-about .settings-card-action {
391
+ min-height: 44px;
392
+ }
393
+
390
394
  /* ---- 危险操作 ---- */
391
395
  .settings-card--destructive {
392
396
  background: linear-gradient(135deg, rgba(250, 112, 154, 0.04) 0%, rgba(254, 225, 64, 0.04) 100%);