@openclaw/tencent-provider 2026.7.2-beta.3 → 2026.7.2-beta.5

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/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as TOKENPLAN_MODEL_CATALOG, c as buildTokenPlanModelDefinition, i as TOKENPLAN_BASE_URL, n as TOKENHUB_MODEL_CATALOG, o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID, s as buildTokenHubModelDefinition, t as TOKENHUB_BASE_URL } from "./models-BQhpfSMm.js";
1
+ import { a as TOKENPLAN_MODEL_CATALOG, i as TOKENPLAN_BASE_URL, n as TOKENHUB_MODEL_CATALOG, o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID, t as TOKENHUB_BASE_URL } from "./models-CofAdRJ3.js";
2
2
  import { buildTokenHubProvider, buildTokenPlanProvider } from "./provider-catalog.js";
3
- export { TOKENHUB_BASE_URL, TOKENHUB_MODEL_CATALOG, TOKENHUB_PROVIDER_ID, TOKENPLAN_BASE_URL, TOKENPLAN_MODEL_CATALOG, TOKENPLAN_PROVIDER_ID, buildTokenHubModelDefinition, buildTokenHubProvider, buildTokenPlanModelDefinition, buildTokenPlanProvider };
3
+ export { TOKENHUB_BASE_URL, TOKENHUB_MODEL_CATALOG, TOKENHUB_PROVIDER_ID, TOKENPLAN_BASE_URL, TOKENPLAN_MODEL_CATALOG, TOKENPLAN_PROVIDER_ID, buildTokenHubProvider, buildTokenPlanProvider };
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { a as TOKENPLAN_MODEL_CATALOG, n as TOKENHUB_MODEL_CATALOG, o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID } from "./models-BQhpfSMm.js";
2
- import { buildTokenHubProvider, buildTokenPlanProvider } from "./provider-catalog.js";
1
+ import { a as TOKENPLAN_MODEL_CATALOG, n as TOKENHUB_MODEL_CATALOG, o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID } from "./models-CofAdRJ3.js";
3
2
  import { TOKENHUB_DEFAULT_MODEL_REF, TOKENPLAN_DEFAULT_MODEL_REF, applyTokenHubConfig, applyTokenPlanConfig } from "./onboard.js";
3
+ import { buildTokenHubProvider, buildTokenPlanProvider } from "./provider-catalog.js";
4
4
  import { wrapTencentProviderStream } from "./stream.js";
5
5
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
6
6
  import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
7
- import { buildSingleProviderApiKeyCatalog } from "openclaw/plugin-sdk/provider-catalog-shared";
7
+ import { buildOpenAICompatibleProviderCatalog } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
8
8
  //#region extensions/tencent/index.ts
9
9
  function buildStaticCatalogEntries(providerId, catalog) {
10
10
  return catalog.map((entry) => ({
@@ -51,12 +51,16 @@ var tencent_default = definePluginEntry({
51
51
  auth: [createTokenHubApiKeyAuthMethod()],
52
52
  catalog: {
53
53
  order: "simple",
54
- run: (ctx) => buildSingleProviderApiKeyCatalog({
54
+ run: (ctx) => buildOpenAICompatibleProviderCatalog({
55
55
  ctx,
56
56
  providerId: TOKENHUB_PROVIDER_ID,
57
57
  buildProvider: buildTokenHubProvider
58
58
  })
59
59
  },
60
+ staticCatalog: {
61
+ order: "simple",
62
+ run: async () => ({ provider: buildTokenHubProvider() })
63
+ },
60
64
  augmentModelCatalog: () => buildStaticCatalogEntries(TOKENHUB_PROVIDER_ID, TOKENHUB_MODEL_CATALOG),
61
65
  wrapStreamFn: wrapTencentProviderStream
62
66
  });
@@ -87,12 +91,16 @@ var tencent_default = definePluginEntry({
87
91
  })],
88
92
  catalog: {
89
93
  order: "simple",
90
- run: (ctx) => buildSingleProviderApiKeyCatalog({
94
+ run: (ctx) => buildOpenAICompatibleProviderCatalog({
91
95
  ctx,
92
96
  providerId: TOKENPLAN_PROVIDER_ID,
93
97
  buildProvider: buildTokenPlanProvider
94
98
  })
95
99
  },
100
+ staticCatalog: {
101
+ order: "simple",
102
+ run: async () => ({ provider: buildTokenPlanProvider() })
103
+ },
96
104
  augmentModelCatalog: () => buildStaticCatalogEntries(TOKENPLAN_PROVIDER_ID, TOKENPLAN_MODEL_CATALOG),
97
105
  wrapStreamFn: wrapTencentProviderStream
98
106
  });
@@ -0,0 +1,184 @@
1
+ import { buildManifestModelDefinition } from "openclaw/plugin-sdk/provider-catalog-shared";
2
+ //#region extensions/tencent/openclaw.plugin.json
3
+ var openclaw_plugin_default = {
4
+ id: "tencent",
5
+ activation: { "onStartup": false },
6
+ enabledByDefault: true,
7
+ providerCatalogEntry: "./provider-discovery.ts",
8
+ providers: ["tencent-tokenhub", "tencent-tokenplan"],
9
+ modelCatalog: {
10
+ "providers": {
11
+ "tencent-tokenhub": {
12
+ "baseUrl": "https://tokenhub.tencentmaas.com/v1",
13
+ "api": "openai-completions",
14
+ "defaultModel": "hy3",
15
+ "models": [{
16
+ "id": "hy3-preview",
17
+ "name": "Hy3 preview (TokenHub)",
18
+ "status": "deprecated",
19
+ "replacedBy": "hy3",
20
+ "reasoning": true,
21
+ "input": ["text"],
22
+ "contextWindow": 256e3,
23
+ "maxTokens": 128e3,
24
+ "cost": {
25
+ "input": .176,
26
+ "output": .587,
27
+ "cacheRead": .059,
28
+ "cacheWrite": 0,
29
+ "tieredPricing": [
30
+ {
31
+ "input": .176,
32
+ "output": .587,
33
+ "cacheRead": .059,
34
+ "cacheWrite": 0,
35
+ "range": [0, 16e3]
36
+ },
37
+ {
38
+ "input": .235,
39
+ "output": .939,
40
+ "cacheRead": .088,
41
+ "cacheWrite": 0,
42
+ "range": [16e3, 32e3]
43
+ },
44
+ {
45
+ "input": .293,
46
+ "output": 1.173,
47
+ "cacheRead": .117,
48
+ "cacheWrite": 0,
49
+ "range": [32e3]
50
+ }
51
+ ]
52
+ },
53
+ "compat": {
54
+ "supportsUsageInStreaming": true,
55
+ "supportsReasoningEffort": true,
56
+ "supportedReasoningEfforts": [
57
+ "none",
58
+ "low",
59
+ "high"
60
+ ]
61
+ }
62
+ }, {
63
+ "id": "hy3",
64
+ "name": "Hy3 (TokenHub)",
65
+ "reasoning": true,
66
+ "input": ["text"],
67
+ "contextWindow": 256e3,
68
+ "maxTokens": 128e3,
69
+ "cost": {
70
+ "input": .147,
71
+ "output": .587,
72
+ "cacheRead": .037,
73
+ "cacheWrite": 0
74
+ },
75
+ "compat": {
76
+ "supportsUsageInStreaming": true,
77
+ "supportsReasoningEffort": true,
78
+ "supportedReasoningEfforts": [
79
+ "none",
80
+ "low",
81
+ "high"
82
+ ]
83
+ }
84
+ }]
85
+ },
86
+ "tencent-tokenplan": {
87
+ "baseUrl": "https://api.lkeap.cloud.tencent.com/plan/v3",
88
+ "api": "openai-completions",
89
+ "defaultModel": "hy3",
90
+ "models": [{
91
+ "id": "hy3",
92
+ "name": "Hy3 (TokenPlan)",
93
+ "reasoning": true,
94
+ "input": ["text"],
95
+ "contextWindow": 256e3,
96
+ "maxTokens": 128e3,
97
+ "compat": {
98
+ "supportsUsageInStreaming": true,
99
+ "supportsReasoningEffort": true,
100
+ "supportedReasoningEfforts": [
101
+ "none",
102
+ "low",
103
+ "high"
104
+ ]
105
+ }
106
+ }]
107
+ }
108
+ },
109
+ "discovery": {
110
+ "tencent-tokenhub": "refreshable",
111
+ "tencent-tokenplan": "refreshable"
112
+ }
113
+ },
114
+ setup: { "providers": [{
115
+ "id": "tencent-tokenhub",
116
+ "envVars": ["TOKENHUB_API_KEY"]
117
+ }, {
118
+ "id": "tencent-tokenplan",
119
+ "envVars": ["TOKENPLAN_API_KEY"]
120
+ }] },
121
+ configContracts: { "compatibilityMigrationPaths": [
122
+ "models.providers.tencent-tokenhub",
123
+ "agents.defaults.models.tencent-tokenhub/hy3",
124
+ "agents.defaults.models.tencent-tokenhub/hy3-preview"
125
+ ] },
126
+ providerAuthChoices: [{
127
+ "provider": "tencent-tokenhub",
128
+ "method": "api-key",
129
+ "choiceId": "tokenhub-api-key",
130
+ "appGuidedSecret": true,
131
+ "choiceLabel": "Tencent TokenHub",
132
+ "groupId": "tencent",
133
+ "groupLabel": "Tencent Cloud",
134
+ "groupHint": "Tencent TokenHub",
135
+ "optionKey": "tokenhubApiKey",
136
+ "cliFlag": "--tokenhub-api-key",
137
+ "cliOption": "--tokenhub-api-key <key>",
138
+ "cliDescription": "Tencent TokenHub API key"
139
+ }, {
140
+ "provider": "tencent-tokenplan",
141
+ "method": "api-key",
142
+ "choiceId": "tokenplan-api-key",
143
+ "appGuidedSecret": true,
144
+ "choiceLabel": "Tencent TokenPlan",
145
+ "groupId": "tencent",
146
+ "groupLabel": "Tencent Cloud",
147
+ "groupHint": "Tencent TokenPlan",
148
+ "optionKey": "tokenplanApiKey",
149
+ "cliFlag": "--tokenplan-api-key",
150
+ "cliOption": "--tokenplan-api-key <key>",
151
+ "cliDescription": "Tencent TokenPlan API key"
152
+ }],
153
+ configSchema: {
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "properties": {}
157
+ }
158
+ };
159
+ //#endregion
160
+ //#region extensions/tencent/models.ts
161
+ const TOKENHUB_PROVIDER_ID = "tencent-tokenhub";
162
+ const TOKENHUB_BASE_URL = openclaw_plugin_default.modelCatalog.providers[TOKENHUB_PROVIDER_ID].baseUrl;
163
+ const TOKENHUB_MANIFEST_CATALOG = openclaw_plugin_default.modelCatalog.providers[TOKENHUB_PROVIDER_ID];
164
+ const TOKENHUB_MODEL_CATALOG = TOKENHUB_MANIFEST_CATALOG.models.map(buildManifestModelDefinition({
165
+ providerId: TOKENHUB_PROVIDER_ID,
166
+ catalog: TOKENHUB_MANIFEST_CATALOG,
167
+ decorate: (model) => ({
168
+ ...model,
169
+ api: "openai-completions"
170
+ })
171
+ }));
172
+ const TOKENPLAN_PROVIDER_ID = "tencent-tokenplan";
173
+ const TOKENPLAN_BASE_URL = openclaw_plugin_default.modelCatalog.providers[TOKENPLAN_PROVIDER_ID].baseUrl;
174
+ const TOKENPLAN_MANIFEST_CATALOG = openclaw_plugin_default.modelCatalog.providers[TOKENPLAN_PROVIDER_ID];
175
+ const TOKENPLAN_MODEL_CATALOG = TOKENPLAN_MANIFEST_CATALOG.models.map(buildManifestModelDefinition({
176
+ providerId: TOKENPLAN_PROVIDER_ID,
177
+ catalog: TOKENPLAN_MANIFEST_CATALOG,
178
+ decorate: (model) => ({
179
+ ...model,
180
+ api: "openai-completions"
181
+ })
182
+ }));
183
+ //#endregion
184
+ export { TOKENPLAN_MODEL_CATALOG as a, TOKENPLAN_BASE_URL as i, TOKENHUB_MODEL_CATALOG as n, TOKENPLAN_PROVIDER_ID as o, TOKENHUB_PROVIDER_ID as r, openclaw_plugin_default as s, TOKENHUB_BASE_URL as t };
package/dist/models.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as TOKENPLAN_MODEL_CATALOG, c as buildTokenPlanModelDefinition, i as TOKENPLAN_BASE_URL, n as TOKENHUB_MODEL_CATALOG, o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID, s as buildTokenHubModelDefinition, t as TOKENHUB_BASE_URL } from "./models-BQhpfSMm.js";
2
- export { TOKENHUB_BASE_URL, TOKENHUB_MODEL_CATALOG, TOKENHUB_PROVIDER_ID, TOKENPLAN_BASE_URL, TOKENPLAN_MODEL_CATALOG, TOKENPLAN_PROVIDER_ID, buildTokenHubModelDefinition, buildTokenPlanModelDefinition };
1
+ import { a as TOKENPLAN_MODEL_CATALOG, i as TOKENPLAN_BASE_URL, n as TOKENHUB_MODEL_CATALOG, o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID, t as TOKENHUB_BASE_URL } from "./models-CofAdRJ3.js";
2
+ export { TOKENHUB_BASE_URL, TOKENHUB_MODEL_CATALOG, TOKENHUB_PROVIDER_ID, TOKENPLAN_BASE_URL, TOKENPLAN_MODEL_CATALOG, TOKENPLAN_PROVIDER_ID };
package/dist/onboard.js CHANGED
@@ -1,47 +1,44 @@
1
- import { a as TOKENPLAN_MODEL_CATALOG, c as buildTokenPlanModelDefinition, i as TOKENPLAN_BASE_URL, n as TOKENHUB_MODEL_CATALOG, o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID, s as buildTokenHubModelDefinition, t as TOKENHUB_BASE_URL } from "./models-BQhpfSMm.js";
2
- import "./api.js";
3
- import { applyAgentDefaultModelPrimary, applyProviderConfigWithModelCatalog } from "openclaw/plugin-sdk/provider-onboard";
1
+ import { a as TOKENPLAN_MODEL_CATALOG, i as TOKENPLAN_BASE_URL, n as TOKENHUB_MODEL_CATALOG, o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID, s as openclaw_plugin_default, t as TOKENHUB_BASE_URL } from "./models-CofAdRJ3.js";
2
+ import { readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
3
+ import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
4
4
  //#region extensions/tencent/onboard.ts
5
- const TOKENHUB_DEFAULT_MODEL_REF = `${TOKENHUB_PROVIDER_ID}/hy3`;
6
5
  const TOKENHUB_PREVIEW_MODEL_REF = `${TOKENHUB_PROVIDER_ID}/hy3-preview`;
7
- function applyTokenHubProviderConfig(cfg) {
8
- const models = { ...cfg.agents?.defaults?.models };
9
- models[TOKENHUB_DEFAULT_MODEL_REF] = {
10
- ...models[TOKENHUB_DEFAULT_MODEL_REF],
11
- alias: models[TOKENHUB_DEFAULT_MODEL_REF]?.alias ?? "Hy3 (TokenHub)"
12
- };
13
- models[TOKENHUB_PREVIEW_MODEL_REF] = {
14
- ...models[TOKENHUB_PREVIEW_MODEL_REF],
15
- alias: models[TOKENHUB_PREVIEW_MODEL_REF]?.alias ?? "Hy3 preview (TokenHub)"
16
- };
17
- return applyProviderConfigWithModelCatalog(cfg, {
18
- agentModels: models,
6
+ const TOKENHUB_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(openclaw_plugin_default, TOKENHUB_PROVIDER_ID);
7
+ const tokenHubPresetAppliers = createModelCatalogPresetAppliers({
8
+ primaryModelRef: TOKENHUB_DEFAULT_MODEL_REF,
9
+ resolveParams: (_cfg) => ({
19
10
  providerId: TOKENHUB_PROVIDER_ID,
20
11
  api: "openai-completions",
21
12
  baseUrl: TOKENHUB_BASE_URL,
22
- catalogModels: TOKENHUB_MODEL_CATALOG.map(buildTokenHubModelDefinition)
23
- });
24
- }
13
+ catalogModels: structuredClone(TOKENHUB_MODEL_CATALOG),
14
+ aliases: [{
15
+ modelRef: TOKENHUB_DEFAULT_MODEL_REF,
16
+ alias: "Hy3 (TokenHub)"
17
+ }, {
18
+ modelRef: TOKENHUB_PREVIEW_MODEL_REF,
19
+ alias: "Hy3 preview (TokenHub)"
20
+ }]
21
+ })
22
+ });
25
23
  function applyTokenHubConfig(cfg) {
26
- return applyAgentDefaultModelPrimary(applyTokenHubProviderConfig(cfg), TOKENHUB_DEFAULT_MODEL_REF);
24
+ return tokenHubPresetAppliers.applyConfig(cfg);
27
25
  }
28
- const TOKENPLAN_DEFAULT_MODEL_REF = `${TOKENPLAN_PROVIDER_ID}/hy3`;
29
- function applyTokenPlanProviderConfig(cfg) {
30
- const models = { ...cfg.agents?.defaults?.models };
31
- models[TOKENPLAN_DEFAULT_MODEL_REF] = {
32
- ...models[TOKENPLAN_DEFAULT_MODEL_REF],
33
- alias: models[TOKENPLAN_DEFAULT_MODEL_REF]?.alias ?? "Hy3 (TokenPlan)"
34
- };
35
- return applyProviderConfigWithModelCatalog(cfg, {
36
- agentModels: models,
26
+ const TOKENPLAN_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(openclaw_plugin_default, TOKENPLAN_PROVIDER_ID);
27
+ const tokenPlanPresetAppliers = createModelCatalogPresetAppliers({
28
+ primaryModelRef: TOKENPLAN_DEFAULT_MODEL_REF,
29
+ resolveParams: (_cfg) => ({
37
30
  providerId: TOKENPLAN_PROVIDER_ID,
38
31
  api: "openai-completions",
39
32
  baseUrl: TOKENPLAN_BASE_URL,
40
- catalogModels: TOKENPLAN_MODEL_CATALOG.map(buildTokenPlanModelDefinition)
41
- });
42
- }
33
+ catalogModels: structuredClone(TOKENPLAN_MODEL_CATALOG),
34
+ aliases: [{
35
+ modelRef: TOKENPLAN_DEFAULT_MODEL_REF,
36
+ alias: "Hy3 (TokenPlan)"
37
+ }]
38
+ })
39
+ });
43
40
  function applyTokenPlanConfig(cfg) {
44
- return applyAgentDefaultModelPrimary(applyTokenPlanProviderConfig(cfg), TOKENPLAN_DEFAULT_MODEL_REF);
41
+ return tokenPlanPresetAppliers.applyConfig(cfg);
45
42
  }
46
43
  //#endregion
47
44
  export { TOKENHUB_DEFAULT_MODEL_REF, TOKENPLAN_DEFAULT_MODEL_REF, applyTokenHubConfig, applyTokenPlanConfig };
@@ -1,17 +1,17 @@
1
- import { a as TOKENPLAN_MODEL_CATALOG, c as buildTokenPlanModelDefinition, i as TOKENPLAN_BASE_URL, n as TOKENHUB_MODEL_CATALOG, s as buildTokenHubModelDefinition, t as TOKENHUB_BASE_URL } from "./models-BQhpfSMm.js";
1
+ import { a as TOKENPLAN_MODEL_CATALOG, i as TOKENPLAN_BASE_URL, n as TOKENHUB_MODEL_CATALOG, t as TOKENHUB_BASE_URL } from "./models-CofAdRJ3.js";
2
2
  //#region extensions/tencent/provider-catalog.ts
3
3
  function buildTokenHubProvider() {
4
4
  return {
5
5
  baseUrl: TOKENHUB_BASE_URL,
6
6
  api: "openai-completions",
7
- models: TOKENHUB_MODEL_CATALOG.map(buildTokenHubModelDefinition)
7
+ models: structuredClone(TOKENHUB_MODEL_CATALOG)
8
8
  };
9
9
  }
10
10
  function buildTokenPlanProvider() {
11
11
  return {
12
12
  baseUrl: TOKENPLAN_BASE_URL,
13
13
  api: "openai-completions",
14
- models: TOKENPLAN_MODEL_CATALOG.map(buildTokenPlanModelDefinition)
14
+ models: structuredClone(TOKENPLAN_MODEL_CATALOG)
15
15
  };
16
16
  }
17
17
  //#endregion
package/dist/stream.js CHANGED
@@ -1,4 +1,4 @@
1
- import { o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID } from "./models-BQhpfSMm.js";
1
+ import { o as TOKENPLAN_PROVIDER_ID, r as TOKENHUB_PROVIDER_ID } from "./models-CofAdRJ3.js";
2
2
  import { createPayloadPatchStreamWrapper } from "openclaw/plugin-sdk/provider-stream-shared";
3
3
  //#region extensions/tencent/stream.ts
4
4
  const TENCENT_PROVIDER_IDS = /* @__PURE__ */ new Set([TOKENHUB_PROVIDER_ID, TOKENPLAN_PROVIDER_ID]);
@@ -11,14 +11,17 @@
11
11
  "tencent-tokenhub": {
12
12
  "baseUrl": "https://tokenhub.tencentmaas.com/v1",
13
13
  "api": "openai-completions",
14
+ "defaultModel": "hy3",
14
15
  "models": [
15
16
  {
16
17
  "id": "hy3-preview",
17
18
  "name": "Hy3 preview (TokenHub)",
19
+ "status": "deprecated",
20
+ "replacedBy": "hy3",
18
21
  "reasoning": true,
19
22
  "input": ["text"],
20
23
  "contextWindow": 256000,
21
- "maxTokens": 64000,
24
+ "maxTokens": 128000,
22
25
  "cost": {
23
26
  "input": 0.176,
24
27
  "output": 0.587,
@@ -60,11 +63,17 @@
60
63
  "reasoning": true,
61
64
  "input": ["text"],
62
65
  "contextWindow": 256000,
63
- "maxTokens": 64000,
66
+ "maxTokens": 128000,
67
+ "cost": {
68
+ "input": 0.147,
69
+ "output": 0.587,
70
+ "cacheRead": 0.037,
71
+ "cacheWrite": 0
72
+ },
64
73
  "compat": {
65
74
  "supportsUsageInStreaming": true,
66
75
  "supportsReasoningEffort": true,
67
- "supportedReasoningEfforts": ["none", "high"]
76
+ "supportedReasoningEfforts": ["none", "low", "high"]
68
77
  }
69
78
  }
70
79
  ]
@@ -72,6 +81,7 @@
72
81
  "tencent-tokenplan": {
73
82
  "baseUrl": "https://api.lkeap.cloud.tencent.com/plan/v3",
74
83
  "api": "openai-completions",
84
+ "defaultModel": "hy3",
75
85
  "models": [
76
86
  {
77
87
  "id": "hy3",
@@ -79,19 +89,19 @@
79
89
  "reasoning": true,
80
90
  "input": ["text"],
81
91
  "contextWindow": 256000,
82
- "maxTokens": 64000,
92
+ "maxTokens": 128000,
83
93
  "compat": {
84
94
  "supportsUsageInStreaming": true,
85
95
  "supportsReasoningEffort": true,
86
- "supportedReasoningEfforts": ["none", "high"]
96
+ "supportedReasoningEfforts": ["none", "low", "high"]
87
97
  }
88
98
  }
89
99
  ]
90
100
  }
91
101
  },
92
102
  "discovery": {
93
- "tencent-tokenhub": "static",
94
- "tencent-tokenplan": "static"
103
+ "tencent-tokenhub": "refreshable",
104
+ "tencent-tokenplan": "refreshable"
95
105
  }
96
106
  },
97
107
  "setup": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/tencent-provider",
3
- "version": "2026.7.2-beta.3",
3
+ "version": "2026.7.2-beta.5",
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.3"
18
+ "pluginApi": ">=2026.7.2-beta.5"
19
19
  },
20
20
  "build": {
21
- "openclawVersion": "2026.7.2-beta.3",
21
+ "openclawVersion": "2026.7.2-beta.5",
22
22
  "bundledDist": false
23
23
  },
24
24
  "release": {
@@ -37,11 +37,10 @@
37
37
  "files": [
38
38
  "dist/**",
39
39
  "openclaw.plugin.json",
40
- "npm-shrinkwrap.json",
41
40
  "README.md"
42
41
  ],
43
42
  "peerDependencies": {
44
- "openclaw": ">=2026.7.2-beta.3"
43
+ "openclaw": ">=2026.7.2-beta.5"
45
44
  },
46
45
  "peerDependenciesMeta": {
47
46
  "openclaw": {
@@ -1,119 +0,0 @@
1
- import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
2
- //#region extensions/tencent/openclaw.plugin.json
3
- var modelCatalog = {
4
- "providers": {
5
- "tencent-tokenhub": {
6
- "baseUrl": "https://tokenhub.tencentmaas.com/v1",
7
- "api": "openai-completions",
8
- "models": [{
9
- "id": "hy3-preview",
10
- "name": "Hy3 preview (TokenHub)",
11
- "reasoning": true,
12
- "input": ["text"],
13
- "contextWindow": 256e3,
14
- "maxTokens": 64e3,
15
- "cost": {
16
- "input": .176,
17
- "output": .587,
18
- "cacheRead": .059,
19
- "cacheWrite": 0,
20
- "tieredPricing": [
21
- {
22
- "input": .176,
23
- "output": .587,
24
- "cacheRead": .059,
25
- "cacheWrite": 0,
26
- "range": [0, 16e3]
27
- },
28
- {
29
- "input": .235,
30
- "output": .939,
31
- "cacheRead": .088,
32
- "cacheWrite": 0,
33
- "range": [16e3, 32e3]
34
- },
35
- {
36
- "input": .293,
37
- "output": 1.173,
38
- "cacheRead": .117,
39
- "cacheWrite": 0,
40
- "range": [32e3]
41
- }
42
- ]
43
- },
44
- "compat": {
45
- "supportsUsageInStreaming": true,
46
- "supportsReasoningEffort": true,
47
- "supportedReasoningEfforts": [
48
- "none",
49
- "low",
50
- "high"
51
- ]
52
- }
53
- }, {
54
- "id": "hy3",
55
- "name": "Hy3 (TokenHub)",
56
- "reasoning": true,
57
- "input": ["text"],
58
- "contextWindow": 256e3,
59
- "maxTokens": 64e3,
60
- "compat": {
61
- "supportsUsageInStreaming": true,
62
- "supportsReasoningEffort": true,
63
- "supportedReasoningEfforts": ["none", "high"]
64
- }
65
- }]
66
- },
67
- "tencent-tokenplan": {
68
- "baseUrl": "https://api.lkeap.cloud.tencent.com/plan/v3",
69
- "api": "openai-completions",
70
- "models": [{
71
- "id": "hy3",
72
- "name": "Hy3 (TokenPlan)",
73
- "reasoning": true,
74
- "input": ["text"],
75
- "contextWindow": 256e3,
76
- "maxTokens": 64e3,
77
- "compat": {
78
- "supportsUsageInStreaming": true,
79
- "supportsReasoningEffort": true,
80
- "supportedReasoningEfforts": ["none", "high"]
81
- }
82
- }]
83
- }
84
- },
85
- "discovery": {
86
- "tencent-tokenhub": "static",
87
- "tencent-tokenplan": "static"
88
- }
89
- };
90
- //#endregion
91
- //#region extensions/tencent/models.ts
92
- const TOKENHUB_PROVIDER_ID = "tencent-tokenhub";
93
- const TOKENHUB_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
94
- providerId: TOKENHUB_PROVIDER_ID,
95
- catalog: modelCatalog.providers[TOKENHUB_PROVIDER_ID]
96
- });
97
- const TOKENHUB_BASE_URL = TOKENHUB_MANIFEST_PROVIDER.baseUrl;
98
- const TOKENHUB_MODEL_CATALOG = TOKENHUB_MANIFEST_PROVIDER.models;
99
- function buildTokenHubModelDefinition(model) {
100
- return {
101
- ...model,
102
- api: "openai-completions"
103
- };
104
- }
105
- const TOKENPLAN_PROVIDER_ID = "tencent-tokenplan";
106
- const TOKENPLAN_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
107
- providerId: TOKENPLAN_PROVIDER_ID,
108
- catalog: modelCatalog.providers[TOKENPLAN_PROVIDER_ID]
109
- });
110
- const TOKENPLAN_BASE_URL = TOKENPLAN_MANIFEST_PROVIDER.baseUrl;
111
- const TOKENPLAN_MODEL_CATALOG = TOKENPLAN_MANIFEST_PROVIDER.models;
112
- function buildTokenPlanModelDefinition(model) {
113
- return {
114
- ...model,
115
- api: "openai-completions"
116
- };
117
- }
118
- //#endregion
119
- export { TOKENPLAN_MODEL_CATALOG as a, buildTokenPlanModelDefinition as c, TOKENPLAN_BASE_URL as i, TOKENHUB_MODEL_CATALOG as n, TOKENPLAN_PROVIDER_ID as o, TOKENHUB_PROVIDER_ID as r, buildTokenHubModelDefinition as s, TOKENHUB_BASE_URL as t };
@@ -1,12 +0,0 @@
1
- {
2
- "name": "@openclaw/tencent-provider",
3
- "version": "2026.7.2-beta.3",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "@openclaw/tencent-provider",
9
- "version": "2026.7.2-beta.3"
10
- }
11
- }
12
- }