aicodeswitch 1.3.4 → 1.3.6

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.
Files changed (2) hide show
  1. package/bin/restore.js +9 -1
  2. package/package.json +1 -1
package/bin/restore.js CHANGED
@@ -160,7 +160,15 @@ const showRestoreResult = (target, results) => {
160
160
  // 主恢复逻辑
161
161
  const restore = async () => {
162
162
  const args = process.argv.slice(2);
163
- const target = args[0]; // claude-code, codex, or undefined (all)
163
+ // 处理两种情况:
164
+ // 1. 直接执行: node bin/restore.js claude-code => args[0]
165
+ // 2. 通过 aicos: aicos restore claude-code => args[1] (因为 args[0] 是 'restore')
166
+ let target;
167
+ if (args[0] === 'restore') {
168
+ target = args[1];
169
+ } else {
170
+ target = args[0];
171
+ }
164
172
 
165
173
  console.log('\n');
166
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicodeswitch",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "A tool to help you manage AI programming tools to access large language models locally. It allows your Claude Code, Codex and other tools to no longer be limited to official models.",
5
5
  "author": "tangshuang",
6
6
  "license": "GPL-3.0",