@openclaw/arcee-provider 2026.9.3 → 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 +13 -4
- package/dist/onboard.js +46 -28
- package/dist/provider-policy-api.js +9 -0
- package/openclaw.plugin.json +7 -0
- package/package.json +4 -4
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,
|
|
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:
|
|
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:
|
|
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 {
|
|
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
|
-
|
|
14
|
-
const { applyConfig: applyArceeConfig } = createModelCatalogPresetAppliers({
|
|
13
|
+
const ARCEE_PRESET = {
|
|
15
14
|
primaryModelRef: ARCEE_DEFAULT_MODEL_REF,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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 };
|
package/openclaw.plugin.json
CHANGED
|
@@ -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
|
+
"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.
|
|
21
|
+
"pluginApi": ">=2026.9.4"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.9.
|
|
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.
|
|
41
|
+
"openclaw": ">=2026.9.4"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|