@openclaw/tencent-provider 2026.7.2-beta.1 → 2026.7.2-beta.2

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.
@@ -4,7 +4,7 @@ const TENCENT_TOKENHUB_PREVIEW_MODEL_REF = "tencent-tokenhub/hy3-preview";
4
4
  const TOKENHUB_DEFAULT_ALIAS = "Hy3 (TokenHub)";
5
5
  const TOKENHUB_PREVIEW_ALIAS = "Hy3 preview (TokenHub)";
6
6
  function isTokenHubModelMapConfigured(models) {
7
- return Object.hasOwn(models, "tencent-tokenhub/hy3") || Object.hasOwn(models, "tencent-tokenhub/hy3-preview");
7
+ return Object.hasOwn(models, TENCENT_TOKENHUB_DEFAULT_MODEL_REF) || Object.hasOwn(models, TENCENT_TOKENHUB_PREVIEW_MODEL_REF);
8
8
  }
9
9
  function withDefaultAlias(entry, alias) {
10
10
  return {
@@ -16,11 +16,11 @@ function needsDefaultAlias(entry) {
16
16
  return entry?.alias === void 0;
17
17
  }
18
18
  function migrateDefaultModel(model) {
19
- if (model === "tencent-tokenhub/hy3-preview") return {
19
+ if (model === TENCENT_TOKENHUB_PREVIEW_MODEL_REF) return {
20
20
  model: { primary: TENCENT_TOKENHUB_DEFAULT_MODEL_REF },
21
21
  changed: true
22
22
  };
23
- if (model && typeof model === "object" && "primary" in model && model.primary === "tencent-tokenhub/hy3-preview") return {
23
+ if (model && typeof model === "object" && "primary" in model && model.primary === TENCENT_TOKENHUB_PREVIEW_MODEL_REF) return {
24
24
  model: {
25
25
  ...model,
26
26
  primary: TENCENT_TOKENHUB_DEFAULT_MODEL_REF
@@ -38,8 +38,8 @@ function migrateTencentTokenHubModelDefaults(cfg) {
38
38
  config: cfg,
39
39
  changes: []
40
40
  };
41
- const needsDefaultRepair = !Object.hasOwn(existingModels, "tencent-tokenhub/hy3") || needsDefaultAlias(existingModels["tencent-tokenhub/hy3"]);
42
- const needsPreviewRepair = !Object.hasOwn(existingModels, "tencent-tokenhub/hy3-preview") || needsDefaultAlias(existingModels["tencent-tokenhub/hy3-preview"]);
41
+ const needsDefaultRepair = !Object.hasOwn(existingModels, TENCENT_TOKENHUB_DEFAULT_MODEL_REF) || needsDefaultAlias(existingModels[TENCENT_TOKENHUB_DEFAULT_MODEL_REF]);
42
+ const needsPreviewRepair = !Object.hasOwn(existingModels, TENCENT_TOKENHUB_PREVIEW_MODEL_REF) || needsDefaultAlias(existingModels[TENCENT_TOKENHUB_PREVIEW_MODEL_REF]);
43
43
  const migratedModel = migrateDefaultModel(cfg.agents?.defaults?.model);
44
44
  if (!needsDefaultRepair && !needsPreviewRepair && !migratedModel.changed) return {
45
45
  config: cfg,
@@ -68,8 +68,5 @@ function migrateTencentTokenHubModelDefaults(cfg) {
68
68
  changes
69
69
  };
70
70
  }
71
- function normalizeCompatibilityConfig({ cfg }) {
72
- return migrateTencentTokenHubModelDefaults(cfg);
73
- }
74
71
  //#endregion
75
- export { TENCENT_TOKENHUB_DEFAULT_MODEL_REF, TENCENT_TOKENHUB_PREVIEW_MODEL_REF, migrateTencentTokenHubModelDefaults, normalizeCompatibilityConfig };
72
+ export { migrateTencentTokenHubModelDefaults };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/tencent-provider",
3
- "version": "2026.7.2-beta.1",
3
+ "version": "2026.7.2-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/tencent-provider",
9
- "version": "2026.7.2-beta.1"
9
+ "version": "2026.7.2-beta.2"
10
10
  }
11
11
  }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/tencent-provider",
3
- "version": "2026.7.2-beta.1",
3
+ "version": "2026.7.2-beta.2",
4
4
  "description": "OpenClaw Tencent Cloud provider plugin (TokenHub + Token Plan)",
5
5
  "type": "module",
6
6
  "openclaw": {
@@ -15,10 +15,10 @@
15
15
  "minHostVersion": ">=2026.6.9"
16
16
  },
17
17
  "compat": {
18
- "pluginApi": ">=2026.7.2-beta.1"
18
+ "pluginApi": ">=2026.7.2-beta.2"
19
19
  },
20
20
  "build": {
21
- "openclawVersion": "2026.7.2-beta.1",
21
+ "openclawVersion": "2026.7.2-beta.2",
22
22
  "bundledDist": false
23
23
  },
24
24
  "release": {
@@ -41,7 +41,7 @@
41
41
  "README.md"
42
42
  ],
43
43
  "peerDependencies": {
44
- "openclaw": ">=2026.7.2-beta.1"
44
+ "openclaw": ">=2026.7.2-beta.2"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "openclaw": {