@aiyiran/myclaw 1.0.179 → 1.0.182

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/index.js CHANGED
@@ -1052,6 +1052,7 @@ const MENU_ITEMS = [
1052
1052
  const restrict = require('./restrict');
1053
1053
  restrict.run();
1054
1054
  }},
1055
+ { key: 'bat', label: '桌面快捷方式', cmd: 'mc bat', desc: '在桌面生成一键启动脚本(仅限 Windows)', action: runBat },
1055
1056
  { key: 'quit', label: '退出', cmd: 'Ctrl+C', desc: '不玩了,下次见', action: () => { console.log(' 👋 再见!\n'); process.exit(0); } },
1056
1057
  ];
1057
1058
 
package/inject-image.js CHANGED
@@ -49,7 +49,13 @@ function run(cliArgs) {
49
49
  };
50
50
 
51
51
  if (!config.agents.defaults.models) config.agents.defaults.models = {};
52
- config.agents.defaults.models["openai/nano-banana-2-0.5k"] = {};
52
+
53
+ // 清理残留的 nano-banana 模型配置(如果有)
54
+ const nanoKey = "openai/nano-banana-2-0.5k";
55
+ if (config.agents.defaults.models[nanoKey] !== undefined) {
56
+ delete config.agents.defaults.models[nanoKey];
57
+ console.log(' [清理] 已移除残留的 nano-banana 模型配置');
58
+ }
53
59
 
54
60
  writeConfig(config, configPath);
55
61
 
@@ -109,7 +109,6 @@ const SOUL_CONTENT = `# 角色定义
109
109
  生成的所有文件资源(如图片、音频、视频、附件等),必须统一存放在用户工作空间的 \`myclaw\` 子目录下:
110
110
 
111
111
  - **路径规则**:\`~/.openclaw/workspace/myclaw/\`
112
- - **绝对路径**:\`/Users/yiran/.openclaw/workspace/myclaw/\`(当前用户)
113
112
  - **说明**:用户只会去 \`myclaw\` 文件夹查找和查看生成的文件,不要把资源放在其他位置。
114
113
  - **示例**:生成的图片路径应为 \`~/.openclaw/workspace/myclaw/图片名称.png\`,而不是 \`~/.openclaw/workspace/图片名称.png\`。
115
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.179",
3
+ "version": "1.0.182",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {