yymaxapi 1.0.51 → 1.0.52

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/yymaxapi.js +3 -9
  2. package/package.json +1 -1
package/bin/yymaxapi.js CHANGED
@@ -1182,17 +1182,11 @@ function coerceModelsRecord(value) {
1182
1182
  return record;
1183
1183
  }
1184
1184
 
1185
- const OPENCLAW_KNOWN_ROOT_KEYS = new Set([
1186
- 'models', 'agents', 'auth', 'gateway', 'tools',
1187
- 'channels', 'mcpServers', 'globalShortcut', 'customModes',
1188
- 'permissions', 'proxy', 'env', 'hooks', 'storage',
1189
- ]);
1185
+ const OPENCLAW_INVALID_ROOT_KEYS = ['model'];
1190
1186
 
1191
1187
  function sanitizeRootKeys(config) {
1192
- for (const key of Object.keys(config)) {
1193
- if (!OPENCLAW_KNOWN_ROOT_KEYS.has(key)) {
1194
- delete config[key];
1195
- }
1188
+ for (const key of OPENCLAW_INVALID_ROOT_KEYS) {
1189
+ if (key in config) delete config[key];
1196
1190
  }
1197
1191
  }
1198
1192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yymaxapi",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "跨平台 OpenClaw/Clawdbot 配置管理工具 - 管理中转地址、模型切换、API Keys、测速优化",
5
5
  "main": "bin/yymaxapi.js",
6
6
  "bin": {