@t0ken.ai/memoryx-openclaw-plugin 2.2.55 → 2.2.56

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/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import * as path from "path";
27
27
  import * as os from "os";
28
28
  import * as http from "http";
29
29
  // 插件版本号 - 由 prebuild 脚本自动从 package.json 同步
30
- const PLUGIN_VERSION = "2.2.55";
30
+ const PLUGIN_VERSION = "2.2.56";
31
31
  const DEFAULT_API_BASE = "https://t0ken.ai/api";
32
32
  const PLUGIN_DIR = path.join(os.homedir(), ".openclaw", "extensions", "memoryx-openclaw-plugin");
33
33
  let logStream = null;
@@ -1089,7 +1089,7 @@ export default {
1089
1089
  else {
1090
1090
  api.logger.warn('[MemoryX] ⚠️ api.config not available - resolveModel may fail to find memoryx-proxy');
1091
1091
  }
1092
- // 注入 agents.defaults,使 agent 默认使用 memoryx-proxy/auto(部分实现用 agent model 参与解析/白名单)
1092
+ // 注入 agents.defaults:必须用完整 model id "provider/model",否则 model-selection 会把 "auto" 当成无 provider 并回退到 anthropic/auto
1093
1093
  if (api.config) {
1094
1094
  if (!api.config.agents) {
1095
1095
  api.config.agents = {};
@@ -1098,9 +1098,9 @@ export default {
1098
1098
  if (!agents.defaults) {
1099
1099
  agents.defaults = {};
1100
1100
  }
1101
+ agents.defaults.model = 'memoryx-proxy/auto';
1101
1102
  agents.defaults.provider = 'memoryx-proxy';
1102
- agents.defaults.model = 'auto';
1103
- api.logger.info('[MemoryX] 📋 Injected agents.defaults: provider=memoryx-proxy, model=auto');
1103
+ api.logger.info('[MemoryX] 📋 Injected agents.defaults: model=memoryx-proxy/auto, provider=memoryx-proxy');
1104
1104
  }
1105
1105
  // 注册 Provider - 完全对齐 SlimClaw 格式
1106
1106
  const registeredModelIds = VIRTUAL_MODELS.map(m => m.id).join(', ');
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "memoryx-openclaw-plugin",
3
3
  "name": "MemoryX Real-time Plugin",
4
- "version": "2.2.55",
4
+ "version": "2.2.56",
5
5
  "description": "Real-time memory capture and recall for OpenClaw",
6
6
  "kind": "memory",
7
7
  "main": "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t0ken.ai/memoryx-openclaw-plugin",
3
- "version": "2.2.55",
3
+ "version": "2.2.56",
4
4
  "description": "MemoryX real-time memory capture and recall plugin for OpenClaw (powered by @t0ken.ai/memoryx-sdk)",
5
5
  "type": "module",
6
6
  "author": "MemoryX Team",