@openclaw/cohere-provider 2026.7.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.
package/README.md CHANGED
@@ -10,4 +10,6 @@ openclaw plugins install @openclaw/cohere-provider
10
10
  openclaw gateway restart
11
11
  ```
12
12
 
13
- Configure a Cohere API key, then select `cohere/command-a-03-2025`.
13
+ Configure a Cohere API key, then select `cohere/command-a-plus-05-2026`,
14
+ `cohere/command-a-reasoning-08-2025`, `cohere/command-a-vision-07-2025`,
15
+ `cohere/command-a-03-2025`, or `cohere/north-mini-code-1-0`.
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { o as isModernCohereModelId } from "./models-C5lqoGJq.js";
1
2
  import { COHERE_DEFAULT_MODEL_REF, applyCohereConfig } from "./onboard.js";
2
3
  import { buildCohereProvider } from "./provider-catalog.js";
3
4
  import { createCohereCompletionsWrapper } from "./stream.js";
@@ -30,7 +31,8 @@ var cohere_default = defineSingleProviderPluginEntry({
30
31
  buildStaticProvider: buildCohereProvider
31
32
  },
32
33
  wrapStreamFn: (ctx) => createCohereCompletionsWrapper(ctx.streamFn),
33
- wrapSimpleCompletionStreamFn: (ctx) => createCohereCompletionsWrapper(ctx.streamFn)
34
+ wrapSimpleCompletionStreamFn: (ctx) => createCohereCompletionsWrapper(ctx.streamFn),
35
+ isModernModelRef: ({ modelId }) => isModernCohereModelId(modelId)
34
36
  }
35
37
  });
36
38
  //#endregion
@@ -0,0 +1,178 @@
1
+ import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
2
+ import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
3
+ //#endregion
4
+ //#region extensions/cohere/models.ts
5
+ /**
6
+ * Cohere model catalog helpers derived from the plugin manifest.
7
+ */
8
+ const COHERE_MANIFEST_CATALOG = {
9
+ "providers": { "cohere": {
10
+ "baseUrl": "https://api.cohere.ai/compatibility/v1",
11
+ "api": "openai-completions",
12
+ "models": [
13
+ {
14
+ "id": "command-a-plus-05-2026",
15
+ "name": "Command A+",
16
+ "reasoning": true,
17
+ "input": ["text", "image"],
18
+ "contextWindow": 128e3,
19
+ "maxTokens": 64e3,
20
+ "cost": {
21
+ "input": 0,
22
+ "output": 0,
23
+ "cacheRead": 0,
24
+ "cacheWrite": 0
25
+ },
26
+ "compat": {
27
+ "supportsStore": false,
28
+ "supportsUsageInStreaming": false,
29
+ "supportsReasoningEffort": true,
30
+ "supportedReasoningEfforts": ["none", "high"],
31
+ "reasoningEffortMap": {
32
+ "off": "none",
33
+ "none": "none",
34
+ "minimal": "high",
35
+ "low": "high",
36
+ "medium": "high",
37
+ "high": "high",
38
+ "xhigh": "high",
39
+ "adaptive": "high",
40
+ "max": "high"
41
+ },
42
+ "maxTokensField": "max_tokens"
43
+ }
44
+ },
45
+ {
46
+ "id": "command-a-03-2025",
47
+ "name": "Command A",
48
+ "input": ["text"],
49
+ "contextWindow": 256e3,
50
+ "maxTokens": 8e3,
51
+ "cost": {
52
+ "input": 2.5,
53
+ "output": 10,
54
+ "cacheRead": 0,
55
+ "cacheWrite": 0
56
+ },
57
+ "compat": {
58
+ "supportsStore": false,
59
+ "supportsUsageInStreaming": false,
60
+ "maxTokensField": "max_tokens"
61
+ }
62
+ },
63
+ {
64
+ "id": "command-a-reasoning-08-2025",
65
+ "name": "Command A Reasoning",
66
+ "reasoning": true,
67
+ "input": ["text"],
68
+ "contextWindow": 256e3,
69
+ "maxTokens": 32e3,
70
+ "cost": {
71
+ "input": 0,
72
+ "output": 0,
73
+ "cacheRead": 0,
74
+ "cacheWrite": 0
75
+ },
76
+ "compat": {
77
+ "supportsStore": false,
78
+ "supportsUsageInStreaming": false,
79
+ "supportsReasoningEffort": true,
80
+ "supportedReasoningEfforts": ["none", "high"],
81
+ "reasoningEffortMap": {
82
+ "off": "none",
83
+ "none": "none",
84
+ "minimal": "high",
85
+ "low": "high",
86
+ "medium": "high",
87
+ "high": "high",
88
+ "xhigh": "high",
89
+ "adaptive": "high",
90
+ "max": "high"
91
+ },
92
+ "maxTokensField": "max_tokens"
93
+ }
94
+ },
95
+ {
96
+ "id": "command-a-vision-07-2025",
97
+ "name": "Command A Vision",
98
+ "reasoning": false,
99
+ "input": ["text", "image"],
100
+ "contextWindow": 128e3,
101
+ "maxTokens": 8e3,
102
+ "cost": {
103
+ "input": 0,
104
+ "output": 0,
105
+ "cacheRead": 0,
106
+ "cacheWrite": 0
107
+ },
108
+ "compat": {
109
+ "supportsStore": false,
110
+ "supportsUsageInStreaming": false,
111
+ "supportsTools": false,
112
+ "maxTokensField": "max_tokens"
113
+ }
114
+ },
115
+ {
116
+ "id": "north-mini-code-1-0",
117
+ "name": "North Mini Code 1.0",
118
+ "reasoning": true,
119
+ "input": ["text", "image"],
120
+ "contextWindow": 256e3,
121
+ "maxTokens": 64e3,
122
+ "cost": {
123
+ "input": 0,
124
+ "output": 0,
125
+ "cacheRead": 0,
126
+ "cacheWrite": 0
127
+ },
128
+ "compat": {
129
+ "supportsStore": false,
130
+ "supportsUsageInStreaming": false,
131
+ "supportsReasoningEffort": true,
132
+ "supportedReasoningEfforts": ["none", "high"],
133
+ "reasoningEffortMap": {
134
+ "off": "none",
135
+ "none": "none",
136
+ "minimal": "high",
137
+ "low": "high",
138
+ "medium": "high",
139
+ "high": "high",
140
+ "xhigh": "high",
141
+ "adaptive": "high",
142
+ "max": "high"
143
+ },
144
+ "maxTokensField": "max_tokens"
145
+ }
146
+ }
147
+ ]
148
+ } },
149
+ "discovery": { "cohere": "static" }
150
+ }.providers.cohere;
151
+ const COHERE_BASE_URL = COHERE_MANIFEST_CATALOG.baseUrl;
152
+ const COHERE_MODEL_CATALOG = COHERE_MANIFEST_CATALOG.models;
153
+ const COHERE_COMMAND_A_PLUS_MODEL_ID = "command-a-plus-05-2026";
154
+ const COHERE_MODERN_MODEL_IDS = /* @__PURE__ */ new Set([
155
+ COHERE_COMMAND_A_PLUS_MODEL_ID,
156
+ "command-a-reasoning-08-2025",
157
+ "north-mini-code-1-0"
158
+ ]);
159
+ function isModernCohereModelId(modelId) {
160
+ return COHERE_MODERN_MODEL_IDS.has(modelId.trim().toLowerCase());
161
+ }
162
+ function buildCohereCatalogModels() {
163
+ return buildManifestModelProviderConfig({
164
+ providerId: "cohere",
165
+ catalog: COHERE_MANIFEST_CATALOG
166
+ }).models;
167
+ }
168
+ function buildCohereModelDefinition(model) {
169
+ return expectDefined(buildManifestModelProviderConfig({
170
+ providerId: "cohere",
171
+ catalog: {
172
+ ...COHERE_MANIFEST_CATALOG,
173
+ models: [model]
174
+ }
175
+ }).models.at(0), "normalized Cohere manifest model");
176
+ }
177
+ //#endregion
178
+ export { buildCohereModelDefinition as a, buildCohereCatalogModels as i, COHERE_COMMAND_A_PLUS_MODEL_ID as n, isModernCohereModelId as o, COHERE_MODEL_CATALOG as r, COHERE_BASE_URL as t };
package/dist/models.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as buildCohereModelDefinition, n as COHERE_MODEL_CATALOG, r as buildCohereCatalogModels, t as COHERE_BASE_URL } from "./models-CEKJlK4t.js";
2
- export { COHERE_BASE_URL, COHERE_MODEL_CATALOG, buildCohereCatalogModels, buildCohereModelDefinition };
1
+ import { a as buildCohereModelDefinition, i as buildCohereCatalogModels, n as COHERE_COMMAND_A_PLUS_MODEL_ID, o as isModernCohereModelId, r as COHERE_MODEL_CATALOG, t as COHERE_BASE_URL } from "./models-C5lqoGJq.js";
2
+ export { COHERE_BASE_URL, COHERE_COMMAND_A_PLUS_MODEL_ID, COHERE_MODEL_CATALOG, buildCohereCatalogModels, buildCohereModelDefinition, isModernCohereModelId };
package/dist/onboard.js CHANGED
@@ -1,8 +1,6 @@
1
- import { i as buildCohereModelDefinition, n as COHERE_MODEL_CATALOG, t as COHERE_BASE_URL } from "./models-CEKJlK4t.js";
1
+ import { a as buildCohereModelDefinition, n as COHERE_COMMAND_A_PLUS_MODEL_ID, r as COHERE_MODEL_CATALOG, t as COHERE_BASE_URL } from "./models-C5lqoGJq.js";
2
2
  import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
3
- //#region extensions/cohere/onboard.ts
4
- const COHERE_DEFAULT_MODEL_ID = "command-a-03-2025";
5
- const COHERE_DEFAULT_MODEL_REF = `cohere/${COHERE_DEFAULT_MODEL_ID}`;
3
+ const COHERE_DEFAULT_MODEL_REF = `cohere/${COHERE_COMMAND_A_PLUS_MODEL_ID}`;
6
4
  const coherePresetAppliers = createModelCatalogPresetAppliers({
7
5
  primaryModelRef: COHERE_DEFAULT_MODEL_REF,
8
6
  resolveParams: (_cfg) => ({
@@ -12,7 +10,7 @@ const coherePresetAppliers = createModelCatalogPresetAppliers({
12
10
  catalogModels: COHERE_MODEL_CATALOG.map(buildCohereModelDefinition),
13
11
  aliases: [{
14
12
  modelRef: COHERE_DEFAULT_MODEL_REF,
15
- alias: "Cohere Command A"
13
+ alias: "Cohere Command A+"
16
14
  }]
17
15
  })
18
16
  });
@@ -20,4 +18,4 @@ function applyCohereConfig(cfg) {
20
18
  return coherePresetAppliers.applyConfig(cfg);
21
19
  }
22
20
  //#endregion
23
- export { COHERE_DEFAULT_MODEL_ID, COHERE_DEFAULT_MODEL_REF, applyCohereConfig };
21
+ export { COHERE_DEFAULT_MODEL_REF, applyCohereConfig };
@@ -1,4 +1,4 @@
1
- import { r as buildCohereCatalogModels, t as COHERE_BASE_URL } from "./models-CEKJlK4t.js";
1
+ import { i as buildCohereCatalogModels, t as COHERE_BASE_URL } from "./models-C5lqoGJq.js";
2
2
  //#region extensions/cohere/provider-catalog.ts
3
3
  function buildCohereProvider() {
4
4
  return {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/cohere-provider",
3
- "version": "2026.7.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/cohere-provider",
9
- "version": "2026.7.1"
9
+ "version": "2026.7.2-beta.2"
10
10
  }
11
11
  }
12
12
  }
@@ -13,6 +13,38 @@
13
13
  "baseUrl": "https://api.cohere.ai/compatibility/v1",
14
14
  "api": "openai-completions",
15
15
  "models": [
16
+ {
17
+ "id": "command-a-plus-05-2026",
18
+ "name": "Command A+",
19
+ "reasoning": true,
20
+ "input": ["text", "image"],
21
+ "contextWindow": 128000,
22
+ "maxTokens": 64000,
23
+ "cost": {
24
+ "input": 0,
25
+ "output": 0,
26
+ "cacheRead": 0,
27
+ "cacheWrite": 0
28
+ },
29
+ "compat": {
30
+ "supportsStore": false,
31
+ "supportsUsageInStreaming": false,
32
+ "supportsReasoningEffort": true,
33
+ "supportedReasoningEfforts": ["none", "high"],
34
+ "reasoningEffortMap": {
35
+ "off": "none",
36
+ "none": "none",
37
+ "minimal": "high",
38
+ "low": "high",
39
+ "medium": "high",
40
+ "high": "high",
41
+ "xhigh": "high",
42
+ "adaptive": "high",
43
+ "max": "high"
44
+ },
45
+ "maxTokensField": "max_tokens"
46
+ }
47
+ },
16
48
  {
17
49
  "id": "command-a-03-2025",
18
50
  "name": "Command A",
@@ -30,6 +62,90 @@
30
62
  "supportsUsageInStreaming": false,
31
63
  "maxTokensField": "max_tokens"
32
64
  }
65
+ },
66
+ {
67
+ "id": "command-a-reasoning-08-2025",
68
+ "name": "Command A Reasoning",
69
+ "reasoning": true,
70
+ "input": ["text"],
71
+ "contextWindow": 256000,
72
+ "maxTokens": 32000,
73
+ "cost": {
74
+ "input": 0,
75
+ "output": 0,
76
+ "cacheRead": 0,
77
+ "cacheWrite": 0
78
+ },
79
+ "compat": {
80
+ "supportsStore": false,
81
+ "supportsUsageInStreaming": false,
82
+ "supportsReasoningEffort": true,
83
+ "supportedReasoningEfforts": ["none", "high"],
84
+ "reasoningEffortMap": {
85
+ "off": "none",
86
+ "none": "none",
87
+ "minimal": "high",
88
+ "low": "high",
89
+ "medium": "high",
90
+ "high": "high",
91
+ "xhigh": "high",
92
+ "adaptive": "high",
93
+ "max": "high"
94
+ },
95
+ "maxTokensField": "max_tokens"
96
+ }
97
+ },
98
+ {
99
+ "id": "command-a-vision-07-2025",
100
+ "name": "Command A Vision",
101
+ "reasoning": false,
102
+ "input": ["text", "image"],
103
+ "contextWindow": 128000,
104
+ "maxTokens": 8000,
105
+ "cost": {
106
+ "input": 0,
107
+ "output": 0,
108
+ "cacheRead": 0,
109
+ "cacheWrite": 0
110
+ },
111
+ "compat": {
112
+ "supportsStore": false,
113
+ "supportsUsageInStreaming": false,
114
+ "supportsTools": false,
115
+ "maxTokensField": "max_tokens"
116
+ }
117
+ },
118
+ {
119
+ "id": "north-mini-code-1-0",
120
+ "name": "North Mini Code 1.0",
121
+ "reasoning": true,
122
+ "input": ["text", "image"],
123
+ "contextWindow": 256000,
124
+ "maxTokens": 64000,
125
+ "cost": {
126
+ "input": 0,
127
+ "output": 0,
128
+ "cacheRead": 0,
129
+ "cacheWrite": 0
130
+ },
131
+ "compat": {
132
+ "supportsStore": false,
133
+ "supportsUsageInStreaming": false,
134
+ "supportsReasoningEffort": true,
135
+ "supportedReasoningEfforts": ["none", "high"],
136
+ "reasoningEffortMap": {
137
+ "off": "none",
138
+ "none": "none",
139
+ "minimal": "high",
140
+ "low": "high",
141
+ "medium": "high",
142
+ "high": "high",
143
+ "xhigh": "high",
144
+ "adaptive": "high",
145
+ "max": "high"
146
+ },
147
+ "maxTokensField": "max_tokens"
148
+ }
33
149
  }
34
150
  ]
35
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/cohere-provider",
3
- "version": "2026.7.1",
3
+ "version": "2026.7.2-beta.2",
4
4
  "description": "OpenClaw Cohere provider plugin.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.6.8"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.7.1"
21
+ "pluginApi": ">=2026.7.2-beta.2"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.1",
24
+ "openclawVersion": "2026.7.2-beta.2",
25
25
  "bundledDist": true
26
26
  },
27
27
  "release": {
@@ -39,7 +39,7 @@
39
39
  "README.md"
40
40
  ],
41
41
  "peerDependencies": {
42
- "openclaw": ">=2026.7.1"
42
+ "openclaw": ">=2026.7.2-beta.2"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "openclaw": {
@@ -1,50 +0,0 @@
1
- import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
2
- //#endregion
3
- //#region extensions/cohere/models.ts
4
- /**
5
- * Cohere model catalog helpers derived from the plugin manifest.
6
- */
7
- const COHERE_MANIFEST_CATALOG = {
8
- "providers": { "cohere": {
9
- "baseUrl": "https://api.cohere.ai/compatibility/v1",
10
- "api": "openai-completions",
11
- "models": [{
12
- "id": "command-a-03-2025",
13
- "name": "Command A",
14
- "input": ["text"],
15
- "contextWindow": 256e3,
16
- "maxTokens": 8e3,
17
- "cost": {
18
- "input": 2.5,
19
- "output": 10,
20
- "cacheRead": 0,
21
- "cacheWrite": 0
22
- },
23
- "compat": {
24
- "supportsStore": false,
25
- "supportsUsageInStreaming": false,
26
- "maxTokensField": "max_tokens"
27
- }
28
- }]
29
- } },
30
- "discovery": { "cohere": "static" }
31
- }.providers.cohere;
32
- const COHERE_BASE_URL = COHERE_MANIFEST_CATALOG.baseUrl;
33
- const COHERE_MODEL_CATALOG = COHERE_MANIFEST_CATALOG.models;
34
- function buildCohereCatalogModels() {
35
- return buildManifestModelProviderConfig({
36
- providerId: "cohere",
37
- catalog: COHERE_MANIFEST_CATALOG
38
- }).models;
39
- }
40
- function buildCohereModelDefinition(model) {
41
- return buildManifestModelProviderConfig({
42
- providerId: "cohere",
43
- catalog: {
44
- ...COHERE_MANIFEST_CATALOG,
45
- models: [model]
46
- }
47
- }).models[0];
48
- }
49
- //#endregion
50
- export { buildCohereModelDefinition as i, COHERE_MODEL_CATALOG as n, buildCohereCatalogModels as r, COHERE_BASE_URL as t };