@openclaw/arcee-provider 2026.9.2 → 2026.9.4

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/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";
3
- import { buildOpenAICompatibleLiveModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
4
- import { readConfiguredProviderCatalogEntries } from "openclaw/plugin-sdk/provider-catalog-shared";
2
+ import { ARCEE_DEFAULT_MODEL_REF, ARCEE_OPENROUTER_DEFAULT_MODEL_REF, applyArceeOnboardConfig, applyArceeOpenRouterOnboardConfig } from "./onboard.js";
3
+ import { buildOpenAICompatibleLiveProviderCatalog } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
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,13 +16,24 @@ 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
- if (directAuth.apiKey) return { provider: await buildOpenAICompatibleLiveModelProviderConfig({
28
+ if (directAuth.apiKey) return await buildOpenAICompatibleLiveProviderCatalog({
29
+ discoveryMode: "strict",
21
30
  providerId: PROVIDER_ID,
22
31
  providerConfig: buildArceeProvider(),
23
32
  apiKey: directAuth.apiKey,
24
- discoveryApiKey: directAuth.discoveryApiKey
25
- }) };
33
+ discoveryApiKey: directAuth.discoveryApiKey,
34
+ profileId: directAuth.profileId
35
+ });
36
+ if (configuredBaseUrl) return null;
26
37
  const openRouterKey = ctx.resolveProviderApiKey("openrouter").apiKey;
27
38
  if (openRouterKey) return { provider: {
28
39
  ...buildArceeOpenRouterProvider(),
@@ -59,7 +70,7 @@ var arcee_default = defineSingleProviderPluginEntry({
59
70
  envVar: "ARCEEAI_API_KEY",
60
71
  promptMessage: "Enter Arcee AI API key",
61
72
  defaultModel: ARCEE_DEFAULT_MODEL_REF,
62
- applyConfig: applyArceeConfig,
73
+ applyConfig: applyArceeOnboardConfig,
63
74
  wizard: {
64
75
  choiceId: "arceeai-api-key",
65
76
  choiceLabel: "Arcee AI API key",
@@ -77,7 +88,7 @@ var arcee_default = defineSingleProviderPluginEntry({
77
88
  profileId: "openrouter:default",
78
89
  defaultModel: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
79
90
  expectedProviders: [PROVIDER_ID, "openrouter"],
80
- applyConfig: applyArceeOpenRouterConfig,
91
+ applyConfig: applyArceeOpenRouterOnboardConfig,
81
92
  wizard: {
82
93
  choiceId: "arceeai-openrouter",
83
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.2",
3
+ "version": "2026.9.4",
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.2"
21
+ "pluginApi": ">=2026.9.4"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.2",
24
+ "openclawVersion": "2026.9.4",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "peerDependencies": {
41
- "openclaw": ">=2026.9.2"
41
+ "openclaw": ">=2026.9.4"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {