@openclaw/arcee-provider 2026.9.3 → 2026.9.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.
@@ -0,0 +1,32 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <!--
3
+ Adapted from OpenClaw ui/public/provider-icons/ProviderIcon-arcee.svg.
4
+ Source: @lobehub/icons-static-svg@1.94.0, arcee.svg
5
+ https://www.npmjs.com/package/@lobehub/icons-static-svg/v/1.94.0
6
+ https://github.com/lobehub/lobe-icons
7
+
8
+ MIT License
9
+ Copyright (c) 2023 LobeHub
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Names and marks remain the property of their respective owners.
30
+ -->
31
+ <path fill="currentColor" fill-rule="evenodd" stroke="none" d="M13.236 2.377L2.751 20.493H0L11.863 0l1.373 2.377zm3.554 6.156l-9.606 11.96H4.13L15.511 6.32l1.279 2.212zm6.908 11.96H14.05l8.406-2.151 1.242 2.15zm-3.42-5.922l-7.843 5.92H8.482l10.597-7.997 1.2 2.077z" />
32
+ </svg>
Binary file
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { buildArceeOpenRouterProvider, buildArceeProvider, normalizeArceeOpenRouterBaseUrl, toArceeOpenRouterModelId } from "./provider-catalog.js";
2
- import { ARCEE_DEFAULT_MODEL_REF, ARCEE_OPENROUTER_DEFAULT_MODEL_REF, applyArceeConfig, applyArceeOpenRouterConfig } from "./onboard.js";
2
+ import { ARCEE_DEFAULT_MODEL_REF, ARCEE_OPENROUTER_DEFAULT_MODEL_REF, applyArceeOnboardConfig, applyArceeOpenRouterOnboardConfig } from "./onboard.js";
3
3
  import { buildOpenAICompatibleLiveProviderCatalog } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
4
- import { readConfiguredProviderCatalogEntries } from "openclaw/plugin-sdk/provider-catalog-shared";
4
+ import { readConfiguredProviderCatalogEntries, resolveMergedModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
5
5
  import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
6
6
  import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
7
7
  //#region extensions/arcee/index.ts
@@ -16,6 +16,14 @@ const ARCEE_WIZARD_GROUP = {
16
16
  groupHint: "Direct API or OpenRouter"
17
17
  };
18
18
  async function resolveArceeCatalog(ctx) {
19
+ const configuredBaseUrl = resolveMergedModelProviderConfig(ctx.config, PROVIDER_ID)?.baseUrl;
20
+ if (normalizeArceeOpenRouterBaseUrl(configuredBaseUrl)) {
21
+ const openRouterKey = ctx.resolveProviderApiKey("openrouter").apiKey;
22
+ return openRouterKey ? { provider: {
23
+ ...buildArceeOpenRouterProvider(),
24
+ apiKey: openRouterKey
25
+ } } : null;
26
+ }
19
27
  const directAuth = ctx.resolveProviderApiKey(PROVIDER_ID);
20
28
  if (directAuth.apiKey) return await buildOpenAICompatibleLiveProviderCatalog({
21
29
  discoveryMode: "strict",
@@ -25,6 +33,7 @@ async function resolveArceeCatalog(ctx) {
25
33
  discoveryApiKey: directAuth.discoveryApiKey,
26
34
  profileId: directAuth.profileId
27
35
  });
36
+ if (configuredBaseUrl) return null;
28
37
  const openRouterKey = ctx.resolveProviderApiKey("openrouter").apiKey;
29
38
  if (openRouterKey) return { provider: {
30
39
  ...buildArceeOpenRouterProvider(),
@@ -61,7 +70,7 @@ var arcee_default = defineSingleProviderPluginEntry({
61
70
  envVar: "ARCEEAI_API_KEY",
62
71
  promptMessage: "Enter Arcee AI API key",
63
72
  defaultModel: ARCEE_DEFAULT_MODEL_REF,
64
- applyConfig: applyArceeConfig,
73
+ applyConfig: applyArceeOnboardConfig,
65
74
  wizard: {
66
75
  choiceId: "arceeai-api-key",
67
76
  choiceLabel: "Arcee AI API key",
@@ -79,7 +88,7 @@ var arcee_default = defineSingleProviderPluginEntry({
79
88
  profileId: "openrouter:default",
80
89
  defaultModel: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
81
90
  expectedProviders: [PROVIDER_ID, "openrouter"],
82
- applyConfig: applyArceeOpenRouterConfig,
91
+ applyConfig: applyArceeOpenRouterOnboardConfig,
83
92
  wizard: {
84
93
  choiceId: "arceeai-openrouter",
85
94
  choiceLabel: "OpenRouter API key",
package/dist/onboard.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ARCEE_BASE_URL } from "./models.js";
2
2
  import { OPENROUTER_BASE_URL, buildArceeCatalogModels, buildArceeOpenRouterCatalogModels } from "./provider-catalog.js";
3
- import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
3
+ import { applyProviderConfigWithModelCatalogPreset, applyProviderConnectionConfig } from "openclaw/plugin-sdk/provider-onboard";
4
4
  //#region extensions/arcee/onboard.ts
5
5
  /**
6
6
  * Arcee setup preset appliers. They seed model catalog defaults for direct
@@ -10,33 +10,51 @@ import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-o
10
10
  const ARCEE_DEFAULT_MODEL_REF = "arcee/trinity-large-thinking";
11
11
  /** Default Arcee model ref for OpenRouter setup. */
12
12
  const ARCEE_OPENROUTER_DEFAULT_MODEL_REF = "arcee/trinity-large-thinking";
13
- /** Apply direct Arcee provider defaults to config. */
14
- const { applyConfig: applyArceeConfig } = createModelCatalogPresetAppliers({
13
+ const ARCEE_PRESET = {
15
14
  primaryModelRef: ARCEE_DEFAULT_MODEL_REF,
16
- resolveParams: () => ({
17
- providerId: "arcee",
18
- api: "openai-completions",
19
- baseUrl: ARCEE_BASE_URL,
20
- catalogModels: buildArceeCatalogModels(),
21
- aliases: [{
22
- modelRef: ARCEE_DEFAULT_MODEL_REF,
23
- alias: "Arcee AI"
24
- }]
25
- })
26
- });
27
- /** Apply OpenRouter-backed Arcee provider defaults to config. */
28
- const { applyConfig: applyArceeOpenRouterConfig } = createModelCatalogPresetAppliers({
15
+ providerId: "arcee",
16
+ api: "openai-completions",
17
+ baseUrl: ARCEE_BASE_URL,
18
+ aliases: [{
19
+ modelRef: ARCEE_DEFAULT_MODEL_REF,
20
+ alias: "Arcee AI"
21
+ }]
22
+ };
23
+ const ARCEE_OPENROUTER_PRESET = {
29
24
  primaryModelRef: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
30
- resolveParams: () => ({
31
- providerId: "arcee",
32
- api: "openai-completions",
33
- baseUrl: OPENROUTER_BASE_URL,
34
- catalogModels: buildArceeOpenRouterCatalogModels(),
35
- aliases: [{
36
- modelRef: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
37
- alias: "Arcee AI (OpenRouter)"
38
- }]
39
- })
40
- });
25
+ providerId: "arcee",
26
+ api: "openai-completions",
27
+ baseUrl: OPENROUTER_BASE_URL,
28
+ aliases: [{
29
+ modelRef: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
30
+ alias: "Arcee AI (OpenRouter)"
31
+ }]
32
+ };
33
+ /** Apply direct Arcee provider defaults to config. */
34
+ function applyArceeConfig(cfg) {
35
+ return applyProviderConfigWithModelCatalogPreset(cfg, {
36
+ ...ARCEE_PRESET,
37
+ catalogModels: buildArceeCatalogModels()
38
+ });
39
+ }
40
+ /** Apply OpenRouter-backed Arcee provider defaults to config. */
41
+ function applyArceeOpenRouterConfig(cfg) {
42
+ return applyProviderConfigWithModelCatalogPreset(cfg, {
43
+ ...ARCEE_OPENROUTER_PRESET,
44
+ catalogModels: buildArceeOpenRouterCatalogModels()
45
+ });
46
+ }
47
+ function applyArceeOnboardConfig(cfg) {
48
+ return applyProviderConnectionConfig(cfg, {
49
+ ...ARCEE_PRESET,
50
+ catalogModels: buildArceeCatalogModels
51
+ });
52
+ }
53
+ function applyArceeOpenRouterOnboardConfig(cfg) {
54
+ return applyProviderConnectionConfig(cfg, {
55
+ ...ARCEE_OPENROUTER_PRESET,
56
+ catalogModels: buildArceeOpenRouterCatalogModels
57
+ });
58
+ }
41
59
  //#endregion
42
- export { ARCEE_DEFAULT_MODEL_REF, ARCEE_OPENROUTER_DEFAULT_MODEL_REF, applyArceeConfig, applyArceeOpenRouterConfig };
60
+ export { ARCEE_DEFAULT_MODEL_REF, ARCEE_OPENROUTER_DEFAULT_MODEL_REF, applyArceeConfig, applyArceeOnboardConfig, applyArceeOpenRouterConfig, applyArceeOpenRouterOnboardConfig };
@@ -0,0 +1,9 @@
1
+ //#region extensions/arcee/provider-policy-api.ts
2
+ /** Direct and OpenRouter wire ids identify the same logical Arcee catalog model. */
3
+ function normalizeModelCatalogId({ provider, modelId }) {
4
+ if (provider.trim().toLowerCase() !== "arcee") return;
5
+ const id = modelId.trim();
6
+ return id.startsWith("arcee-ai/") ? id.slice(9) : id;
7
+ }
8
+ //#endregion
9
+ export { normalizeModelCatalogId };
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "id": "arcee",
3
+ "categories": ["models"],
3
4
  "activation": {
4
5
  "onStartup": false
5
6
  },
6
7
  "enabledByDefault": true,
7
8
  "providers": ["arcee"],
9
+ "providerAuthAliases": {
10
+ "arcee": {
11
+ "provider": "openrouter",
12
+ "baseUrls": ["https://openrouter.ai/api/v1", "https://openrouter.ai/v1"]
13
+ }
14
+ },
8
15
  "modelCatalog": {
9
16
  "discovery": {
10
17
  "arcee": "runtime"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/arcee-provider",
3
- "version": "2026.9.3",
3
+ "version": "2026.9.5",
4
4
  "description": "OpenClaw Arcee 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.9.3"
21
+ "pluginApi": ">=2026.9.5"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.3",
24
+ "openclawVersion": "2026.9.5",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -35,10 +35,12 @@
35
35
  "files": [
36
36
  "dist/**",
37
37
  "openclaw.plugin.json",
38
- "README.md"
38
+ "README.md",
39
+ "assets/icon.png",
40
+ "assets/activity.svg"
39
41
  ],
40
42
  "peerDependencies": {
41
- "openclaw": ">=2026.9.3"
43
+ "openclaw": ">=2026.9.5"
42
44
  },
43
45
  "peerDependenciesMeta": {
44
46
  "openclaw": {