@yesdgq/claude-buddy 1.1.3000 → 1.1.3011

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.
@@ -126,10 +126,10 @@
126
126
  </div>
127
127
  </div>
128
128
  </transition>
129
- </div>
130
-
131
- <!-- 版本更新提示 -->
132
- <div :class="['update-banner', { 'is-visible': updateInfo.visible }]" v-if="updateInfo.hasUpdate">
129
+ </div>
130
+
131
+ <!-- 版本更新提示 -->
132
+ <div :class="['update-banner', { 'is-visible': updateInfo.visible }]" v-if="updateInfo.hasUpdate">
133
133
  <i class="fa fa-bell update-icon"></i>
134
134
  <span class="update-text">
135
135
  {{ t.updateAvailable }}
@@ -140,10 +140,25 @@
140
140
  <span class="update-cmd" :title="t.clickToCopy" @click="copyUpdateCmd">npm i -g @yesdgq/claude-buddy@latest</span>
141
141
  <button class="update-close" @click="dismissUpdate" :title="t.dismiss">
142
142
  <i class="fa fa-times"></i>
143
- </button>
144
- </div>
145
-
146
- <!-- 加载状态 -->
143
+ </button>
144
+ </div>
145
+
146
+ <div class="config-file-list">
147
+ <button
148
+ v-for="fileItem in currentConfigFileItems"
149
+ :key="fileItem.key"
150
+ type="button"
151
+ class="config-file-item"
152
+ :title="t.openConfigFile"
153
+ @click="openConfigFile(fileItem)"
154
+ >
155
+ <span class="config-file-label">{{ t.configFileLabel }}</span>
156
+ <code>{{ fileItem.path }}</code>
157
+ <i class="fa fa-external-link"></i>
158
+ </button>
159
+ </div>
160
+
161
+ <!-- 加载状态 -->
147
162
  <div v-if="loading" class="loading-container">
148
163
  <i class="fa fa-spinner fa-spin"></i>
149
164
  <p>{{ funLoadingMessage }}</p>
@@ -255,7 +270,7 @@
255
270
  <div class="default-model-header">
256
271
  <label>
257
272
  <i class="fa fa-cubes"></i>
258
- {{ currentCli === 'WorkBuddy' ? t.workbuddyModelSectionTitle : t.envVariables }}
273
+ {{ currentCli === 'WorkBuddy' ? t.workbuddyModelSectionTitle : t.modelManagement }}
259
274
  </label>
260
275
  </div>
261
276
  <div class="default-model-row">
@@ -319,8 +334,8 @@
319
334
  </div>
320
335
  </div>
321
336
 
322
- <!-- 环境变量配置 -->
323
- <div v-if="currentCli !== 'Codex' && currentCli !== 'WorkBuddy'" class="env-section" :class="{ 'is-expanded': showEnvSections[index] }">
337
+ <!-- 环境变量配置 -->
338
+ <div class="env-section" :class="{ 'is-expanded': showEnvSections[index] }">
324
339
  <div class="env-header">
325
340
  <label>
326
341
  <i class="fa fa-cogs"></i>
@@ -333,31 +348,23 @@
333
348
  <i :class="showEnvSections[index] ? 'fa fa-chevron-up' : 'fa fa-chevron-down'"></i>
334
349
  {{ showEnvSections[index] ? t.collapse : t.expand }}
335
350
  </button>
336
- </div>
337
-
338
- <div v-if="showEnvSections[index]" class="env-list">
339
- <div v-for="(env, envIndex) in auth.ENV" :key="envIndex" class="env-item">
340
- <input
341
- v-model="env.key"
342
- type="text"
343
- :placeholder="t.variableNamePlaceholder"
344
- >
345
- <span class="separator">=</span>
346
- <input
347
- v-model="env.value"
348
- type="text"
349
- :placeholder="t.variableValuePlaceholder"
350
- >
351
- <button
352
- @click="deleteEnv(index, envIndex)"
353
- :title="t.deleteThisEnvVar"
354
- >
355
- <i class="fa fa-times"></i>
356
- </button>
357
- </div>
358
-
359
- <button
360
- @click="addEnv(index)"
351
+ </div>
352
+
353
+ <div v-if="showEnvSections[index]" class="env-list">
354
+ <env-node-editor
355
+ v-for="(env, envIndex) in auth.ENV"
356
+ :key="env.id"
357
+ :node="env"
358
+ :index="envIndex"
359
+ :depth="0"
360
+ :labels="t"
361
+ :can-delete="true"
362
+ :confirm-delete="confirmDeleteEnvNode"
363
+ @delete-node="deleteEnv(index, envIndex, $event)"
364
+ ></env-node-editor>
365
+
366
+ <button
367
+ @click="addEnv(index)"
361
368
  class="btn-add-env"
362
369
  >
363
370
  <i class="fa fa-plus"></i>