@pikecode/api-key-manager 1.0.23 → 1.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikecode/api-key-manager",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "A CLI tool for managing and switching multiple API provider configurations",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -625,25 +625,19 @@ class ProviderAdder extends BaseCommand {
625
625
  {
626
626
  name: '--full-auto',
627
627
  label: '全自动模式',
628
- description: '自动批准所有操作',
628
+ description: '自动批准 + 工作区写入沙盒 (与跳过沙盒互斥)',
629
629
  checked: false
630
630
  },
631
631
  {
632
632
  name: '--dangerously-bypass-approvals-and-sandbox',
633
633
  label: '跳过审批和沙盒',
634
- description: '危险:跳过所有安全检查',
634
+ description: '危险:跳过所有安全检查 (与全自动互斥)',
635
635
  checked: false
636
636
  },
637
637
  {
638
- name: '--model',
639
- label: '指定模型',
640
- description: '使用特定模型 (需手动指定)',
641
- checked: false
642
- },
643
- {
644
- name: '--quiet',
645
- label: '静默模式',
646
- description: '减少输出信息',
638
+ name: '--search',
639
+ label: '启用网页搜索',
640
+ description: '允许模型搜索网页',
647
641
  checked: false
648
642
  }
649
643
  ];
@@ -36,11 +36,9 @@ class EnvSwitcher extends BaseCommand {
36
36
  try {
37
37
  this.clearScreen();
38
38
  const provider = await this.validateProvider(providerName);
39
- if (provider.ideName === 'codex') {
40
- // Codex CLI 使用环境变量注入方式启动,直接跳过参数选择
41
- return await this.launchProvider(provider, provider.launchArgs || []);
42
- }
43
- const availableArgs = this.getAvailableLaunchArgs();
39
+ const isCodex = provider.ideName === 'codex';
40
+ const availableArgs = isCodex ? this.getCodexLaunchArgs() : this.getAvailableLaunchArgs();
41
+ const ideDisplayName = isCodex ? 'Codex CLI' : 'Claude Code';
44
42
 
45
43
  console.log(UIHelper.createTitle('启动配置', UIHelper.icons.launch));
46
44
  console.log();
@@ -50,7 +48,7 @@ class EnvSwitcher extends BaseCommand {
50
48
  ['空格', '切换选中'],
51
49
  ['A', '全选'],
52
50
  ['I', '反选'],
53
- ['Enter', '启动 Claude Code'],
51
+ ['Enter', `启动 ${ideDisplayName}`],
54
52
  ['ESC', '返回供应商选择']
55
53
  ]));
56
54
  console.log();
@@ -276,6 +274,31 @@ class EnvSwitcher extends BaseCommand {
276
274
  ];
277
275
  }
278
276
 
277
+ getCodexLaunchArgs() {
278
+ return [
279
+ {
280
+ name: '--full-auto',
281
+ label: '全自动模式',
282
+ description: '自动批准 + 工作区写入沙盒',
283
+ checked: false,
284
+ exclusive: ['--dangerously-bypass-approvals-and-sandbox']
285
+ },
286
+ {
287
+ name: '--dangerously-bypass-approvals-and-sandbox',
288
+ label: '跳过审批和沙盒',
289
+ description: '危险:跳过所有安全检查',
290
+ checked: false,
291
+ exclusive: ['--full-auto']
292
+ },
293
+ {
294
+ name: '--search',
295
+ label: '启用网页搜索',
296
+ description: '允许模型搜索网页',
297
+ checked: false
298
+ }
299
+ ];
300
+ }
301
+
279
302
  // getArgDescription 方法已被移除,直接使用 arg.description
280
303
 
281
304
  async showProviderSelection() {