@openclaw/tencent-provider 2026.9.8 → 2026.10.1-beta.1
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/onboard.js +7 -7
- package/dist/setup-api.js +1 -1
- package/package.json +4 -4
package/dist/onboard.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
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 "./.setup/models-CeL6cmHz.mjs";
|
|
2
2
|
import { readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
3
|
-
import {
|
|
3
|
+
import { createProviderConnectionPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
4
4
|
//#region extensions/tencent/onboard.ts
|
|
5
5
|
const TOKENHUB_HY3_MODEL_REF = `${TOKENHUB_PROVIDER_ID}/hy3`;
|
|
6
6
|
const TOKENHUB_HY3_PREVIEW_MODEL_REF = `${TOKENHUB_PROVIDER_ID}/hy3-preview`;
|
|
7
7
|
const TOKENHUB_HY4_PREVIEW_MODEL_REF = `${TOKENHUB_PROVIDER_ID}/hy4-preview`;
|
|
8
8
|
const TOKENHUB_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(openclaw_plugin_default, TOKENHUB_PROVIDER_ID);
|
|
9
|
-
const { applyConfig: applyTokenHubConfig } =
|
|
9
|
+
const { applyConfig: applyTokenHubConfig } = createProviderConnectionPresetAppliers({
|
|
10
10
|
primaryModelRef: TOKENHUB_DEFAULT_MODEL_REF,
|
|
11
|
-
resolveParams: (
|
|
11
|
+
resolveParams: () => ({
|
|
12
12
|
providerId: TOKENHUB_PROVIDER_ID,
|
|
13
13
|
api: "openai-completions",
|
|
14
14
|
baseUrl: TOKENHUB_BASE_URL,
|
|
15
|
-
catalogModels:
|
|
15
|
+
catalogModels: TOKENHUB_MODEL_CATALOG,
|
|
16
16
|
aliases: [
|
|
17
17
|
{
|
|
18
18
|
modelRef: TOKENHUB_HY4_PREVIEW_MODEL_REF,
|
|
@@ -32,13 +32,13 @@ const { applyConfig: applyTokenHubConfig } = createModelCatalogPresetAppliers({
|
|
|
32
32
|
const TOKENPLAN_HY3_MODEL_REF = `${TOKENPLAN_PROVIDER_ID}/hy3`;
|
|
33
33
|
const TOKENPLAN_HY4_PREVIEW_MODEL_REF = `${TOKENPLAN_PROVIDER_ID}/hy4-preview`;
|
|
34
34
|
const TOKENPLAN_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(openclaw_plugin_default, TOKENPLAN_PROVIDER_ID);
|
|
35
|
-
const { applyConfig: applyTokenPlanConfig } =
|
|
35
|
+
const { applyConfig: applyTokenPlanConfig } = createProviderConnectionPresetAppliers({
|
|
36
36
|
primaryModelRef: TOKENPLAN_DEFAULT_MODEL_REF,
|
|
37
|
-
resolveParams: (
|
|
37
|
+
resolveParams: () => ({
|
|
38
38
|
providerId: TOKENPLAN_PROVIDER_ID,
|
|
39
39
|
api: "openai-completions",
|
|
40
40
|
baseUrl: TOKENPLAN_BASE_URL,
|
|
41
|
-
catalogModels:
|
|
41
|
+
catalogModels: TOKENPLAN_MODEL_CATALOG,
|
|
42
42
|
aliases: [{
|
|
43
43
|
modelRef: TOKENPLAN_HY4_PREVIEW_MODEL_REF,
|
|
44
44
|
alias: "Hy4 preview (TokenPlan)"
|
package/dist/setup-api.js
CHANGED
|
@@ -6,7 +6,7 @@ var setup_api_default = definePluginEntry({
|
|
|
6
6
|
name: "Tencent Cloud Provider Setup",
|
|
7
7
|
description: "Lightweight Tencent Cloud provider setup hooks",
|
|
8
8
|
register(api) {
|
|
9
|
-
api.registerConfigMigration(
|
|
9
|
+
api.registerConfigMigration(migrateTencentTokenHubModelDefaults);
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/tencent-provider",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.10.1-beta.1",
|
|
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.
|
|
18
|
+
"pluginApi": ">=2026.10.1-beta.1"
|
|
19
19
|
},
|
|
20
20
|
"build": {
|
|
21
|
-
"openclawVersion": "2026.
|
|
21
|
+
"openclawVersion": "2026.10.1-beta.1",
|
|
22
22
|
"bundledDist": false
|
|
23
23
|
},
|
|
24
24
|
"release": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"assets/activity.svg"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"openclaw": ">=2026.
|
|
45
|
+
"openclaw": ">=2026.10.1-beta.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"openclaw": {
|