@pikecode/api-key-manager 1.0.25 → 1.0.26

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.25",
3
+ "version": "1.0.26",
4
4
  "description": "A CLI tool for managing and switching multiple API provider configurations",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -622,6 +622,12 @@ class ProviderAdder extends BaseCommand {
622
622
 
623
623
  try {
624
624
  const codexArgs = [
625
+ {
626
+ name: 'resume',
627
+ label: '继续上次对话',
628
+ description: '恢复之前的会话',
629
+ checked: false
630
+ },
625
631
  {
626
632
  name: '--full-auto',
627
633
  label: '全自动模式',
@@ -276,6 +276,13 @@ class EnvSwitcher extends BaseCommand {
276
276
 
277
277
  getCodexLaunchArgs() {
278
278
  return [
279
+ {
280
+ name: 'resume',
281
+ label: '继续上次对话',
282
+ description: '恢复之前的会话',
283
+ checked: false,
284
+ isSubcommand: true
285
+ },
279
286
  {
280
287
  name: '--full-auto',
281
288
  label: '全自动模式',
@@ -87,7 +87,12 @@ async function executeCodexWithEnv(config, launchArgs = []) {
87
87
  }
88
88
 
89
89
  const env = buildCodexEnvVariables(config);
90
- const args = Array.isArray(launchArgs) ? [...launchArgs] : [];
90
+
91
+ // 处理参数:子命令放前面,选项放后面
92
+ const rawArgs = Array.isArray(launchArgs) ? [...launchArgs] : [];
93
+ const subcommands = rawArgs.filter(arg => !arg.startsWith('-'));
94
+ const options = rawArgs.filter(arg => arg.startsWith('-'));
95
+ const args = [...subcommands, ...options];
91
96
 
92
97
  clearTerminal();
93
98