@pikecode/api-key-manager 2.1.3 → 2.1.4

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": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "A CLI tool for managing and switching multiple API provider configurations",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -85,11 +85,12 @@ async function executeWithEnv(config, launchArgs = []) {
85
85
  resolve();
86
86
  } else {
87
87
  // 检查是否是"没有可恢复会话"的错误
88
- // 检查 stdout 和 stderr 中是否包含错误消息
88
+ // 检查 stdout 和 stderr 中是否包含各种格式的错误消息
89
89
  const combinedOutput = (stderrOutput + stdoutOutput).toLowerCase();
90
90
  const isNoConversationError =
91
91
  combinedOutput.includes('no conversation found') ||
92
- combinedOutput.includes('no recoverable session');
92
+ combinedOutput.includes('no recoverable session') ||
93
+ combinedOutput.includes('no deferred tool marker');
93
94
 
94
95
  if (isNoConversationError) {
95
96
  const error = new Error('没有可恢复的会话\n提示: 请选择不带 --continue 参数重新开始');