@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
package/src/commands/add.js
CHANGED
package/src/commands/switch.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|