@openclaw/arcee-provider 2026.7.2-beta.7 → 2026.7.34
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 +78 -74
- package/dist/onboard.js +12 -6
- package/dist/provider-catalog.js +4 -5
- package/openclaw.plugin.json +0 -5
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { buildArceeOpenRouterProvider, buildArceeProvider, normalizeArceeOpenRouterBaseUrl, toArceeOpenRouterModelId } from "./provider-catalog.js";
|
|
2
2
|
import { ARCEE_DEFAULT_MODEL_REF, ARCEE_OPENROUTER_DEFAULT_MODEL_REF, applyArceeConfig, applyArceeOpenRouterConfig } from "./onboard.js";
|
|
3
|
-
import {
|
|
3
|
+
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
4
|
+
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
4
5
|
import { readConfiguredProviderCatalogEntries } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
5
|
-
import {
|
|
6
|
-
import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
|
|
6
|
+
import { OPENAI_COMPATIBLE_REPLAY_HOOKS } from "openclaw/plugin-sdk/provider-model-shared";
|
|
7
7
|
//#region extensions/arcee/index.ts
|
|
8
8
|
/**
|
|
9
9
|
* Arcee AI provider plugin entry. It supports direct Arcee auth and OpenRouter
|
|
@@ -15,14 +15,52 @@ const ARCEE_WIZARD_GROUP = {
|
|
|
15
15
|
groupLabel: "Arcee AI",
|
|
16
16
|
groupHint: "Direct API or OpenRouter"
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
function buildArceeAuthMethods() {
|
|
19
|
+
return [createProviderApiKeyAuthMethod({
|
|
20
|
+
providerId: PROVIDER_ID,
|
|
21
|
+
methodId: "arcee-platform",
|
|
22
|
+
label: "Arcee AI API key",
|
|
23
|
+
hint: "Direct access to Arcee platform",
|
|
24
|
+
optionKey: "arceeaiApiKey",
|
|
25
|
+
flagName: "--arceeai-api-key",
|
|
26
|
+
envVar: "ARCEEAI_API_KEY",
|
|
27
|
+
promptMessage: "Enter Arcee AI API key",
|
|
28
|
+
defaultModel: ARCEE_DEFAULT_MODEL_REF,
|
|
29
|
+
expectedProviders: [PROVIDER_ID],
|
|
30
|
+
applyConfig: (cfg) => applyArceeConfig(cfg),
|
|
31
|
+
wizard: {
|
|
32
|
+
choiceId: "arceeai-api-key",
|
|
33
|
+
choiceLabel: "Arcee AI API key",
|
|
34
|
+
choiceHint: "Direct (chat.arcee.ai)",
|
|
35
|
+
...ARCEE_WIZARD_GROUP
|
|
36
|
+
}
|
|
37
|
+
}), createProviderApiKeyAuthMethod({
|
|
21
38
|
providerId: PROVIDER_ID,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
39
|
+
methodId: "openrouter",
|
|
40
|
+
label: "OpenRouter API key",
|
|
41
|
+
hint: "Access Arcee models via OpenRouter",
|
|
42
|
+
optionKey: "openrouterApiKey",
|
|
43
|
+
flagName: "--openrouter-api-key",
|
|
44
|
+
envVar: "OPENROUTER_API_KEY",
|
|
45
|
+
promptMessage: "Enter OpenRouter API key",
|
|
46
|
+
profileId: "openrouter:default",
|
|
47
|
+
defaultModel: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
|
|
48
|
+
expectedProviders: [PROVIDER_ID, "openrouter"],
|
|
49
|
+
applyConfig: (cfg) => applyArceeOpenRouterConfig(cfg),
|
|
50
|
+
wizard: {
|
|
51
|
+
choiceId: "arceeai-openrouter",
|
|
52
|
+
choiceLabel: "OpenRouter API key",
|
|
53
|
+
choiceHint: "Via OpenRouter (openrouter.ai)",
|
|
54
|
+
...ARCEE_WIZARD_GROUP
|
|
55
|
+
}
|
|
56
|
+
})];
|
|
57
|
+
}
|
|
58
|
+
async function resolveArceeCatalog(ctx) {
|
|
59
|
+
const directKey = ctx.resolveProviderApiKey(PROVIDER_ID).apiKey;
|
|
60
|
+
if (directKey) return { provider: {
|
|
61
|
+
...buildArceeProvider(),
|
|
62
|
+
apiKey: directKey
|
|
63
|
+
} };
|
|
26
64
|
const openRouterKey = ctx.resolveProviderApiKey("openrouter").apiKey;
|
|
27
65
|
if (openRouterKey) return { provider: {
|
|
28
66
|
...buildArceeOpenRouterProvider(),
|
|
@@ -42,73 +80,39 @@ function normalizeArceeResolvedModel(model) {
|
|
|
42
80
|
};
|
|
43
81
|
}
|
|
44
82
|
/** Provider entry for Arcee direct and OpenRouter-backed models. */
|
|
45
|
-
var arcee_default =
|
|
83
|
+
var arcee_default = definePluginEntry({
|
|
46
84
|
id: PROVIDER_ID,
|
|
47
85
|
name: "Arcee AI Provider",
|
|
48
86
|
description: "Bundled Arcee AI provider plugin",
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
defaultModel: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
|
|
79
|
-
expectedProviders: [PROVIDER_ID, "openrouter"],
|
|
80
|
-
applyConfig: applyArceeOpenRouterConfig,
|
|
81
|
-
wizard: {
|
|
82
|
-
choiceId: "arceeai-openrouter",
|
|
83
|
-
choiceLabel: "OpenRouter API key",
|
|
84
|
-
choiceHint: "Via OpenRouter (openrouter.ai)",
|
|
85
|
-
...ARCEE_WIZARD_GROUP
|
|
86
|
-
}
|
|
87
|
-
}],
|
|
88
|
-
catalog: {
|
|
89
|
-
run: resolveArceeCatalog,
|
|
90
|
-
staticRun: async () => ({ provider: buildArceeProvider() })
|
|
91
|
-
},
|
|
92
|
-
augmentModelCatalog: ({ config }) => readConfiguredProviderCatalogEntries({
|
|
93
|
-
config,
|
|
94
|
-
providerId: PROVIDER_ID
|
|
95
|
-
}),
|
|
96
|
-
normalizeConfig: ({ providerConfig }) => {
|
|
97
|
-
const normalizedBaseUrl = normalizeArceeOpenRouterBaseUrl(providerConfig.baseUrl);
|
|
98
|
-
return normalizedBaseUrl && normalizedBaseUrl !== providerConfig.baseUrl ? {
|
|
99
|
-
...providerConfig,
|
|
100
|
-
baseUrl: normalizedBaseUrl
|
|
101
|
-
} : void 0;
|
|
102
|
-
},
|
|
103
|
-
normalizeResolvedModel: ({ model }) => normalizeArceeResolvedModel(model),
|
|
104
|
-
normalizeTransport: ({ api: apiLocal, baseUrl }) => {
|
|
105
|
-
const normalizedBaseUrl = normalizeArceeOpenRouterBaseUrl(baseUrl);
|
|
106
|
-
return normalizedBaseUrl && normalizedBaseUrl !== baseUrl ? {
|
|
107
|
-
api: apiLocal,
|
|
108
|
-
baseUrl: normalizedBaseUrl
|
|
109
|
-
} : void 0;
|
|
110
|
-
},
|
|
111
|
-
...buildProviderReplayFamilyHooks({ family: "openai-compatible" })
|
|
87
|
+
register(api) {
|
|
88
|
+
api.registerProvider({
|
|
89
|
+
id: PROVIDER_ID,
|
|
90
|
+
label: "Arcee AI",
|
|
91
|
+
docsPath: "/providers/arcee",
|
|
92
|
+
envVars: ["ARCEEAI_API_KEY", "OPENROUTER_API_KEY"],
|
|
93
|
+
auth: buildArceeAuthMethods(),
|
|
94
|
+
catalog: { run: resolveArceeCatalog },
|
|
95
|
+
augmentModelCatalog: ({ config }) => readConfiguredProviderCatalogEntries({
|
|
96
|
+
config,
|
|
97
|
+
providerId: PROVIDER_ID
|
|
98
|
+
}),
|
|
99
|
+
normalizeConfig: ({ providerConfig }) => {
|
|
100
|
+
const normalizedBaseUrl = normalizeArceeOpenRouterBaseUrl(providerConfig.baseUrl);
|
|
101
|
+
return normalizedBaseUrl && normalizedBaseUrl !== providerConfig.baseUrl ? {
|
|
102
|
+
...providerConfig,
|
|
103
|
+
baseUrl: normalizedBaseUrl
|
|
104
|
+
} : void 0;
|
|
105
|
+
},
|
|
106
|
+
normalizeResolvedModel: ({ model }) => normalizeArceeResolvedModel(model),
|
|
107
|
+
normalizeTransport: ({ api: apiLocal, baseUrl }) => {
|
|
108
|
+
const normalizedBaseUrl = normalizeArceeOpenRouterBaseUrl(baseUrl);
|
|
109
|
+
return normalizedBaseUrl && normalizedBaseUrl !== baseUrl ? {
|
|
110
|
+
api: apiLocal,
|
|
111
|
+
baseUrl: normalizedBaseUrl
|
|
112
|
+
} : void 0;
|
|
113
|
+
},
|
|
114
|
+
...OPENAI_COMPATIBLE_REPLAY_HOOKS
|
|
115
|
+
});
|
|
112
116
|
}
|
|
113
117
|
});
|
|
114
118
|
//#endregion
|
package/dist/onboard.js
CHANGED
|
@@ -10,10 +10,9 @@ 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 arceePresetAppliers = createModelCatalogPresetAppliers({
|
|
15
14
|
primaryModelRef: ARCEE_DEFAULT_MODEL_REF,
|
|
16
|
-
resolveParams: () => ({
|
|
15
|
+
resolveParams: (_cfg) => ({
|
|
17
16
|
providerId: "arcee",
|
|
18
17
|
api: "openai-completions",
|
|
19
18
|
baseUrl: ARCEE_BASE_URL,
|
|
@@ -24,10 +23,9 @@ const { applyConfig: applyArceeConfig } = createModelCatalogPresetAppliers({
|
|
|
24
23
|
}]
|
|
25
24
|
})
|
|
26
25
|
});
|
|
27
|
-
|
|
28
|
-
const { applyConfig: applyArceeOpenRouterConfig } = createModelCatalogPresetAppliers({
|
|
26
|
+
const arceeOpenRouterPresetAppliers = createModelCatalogPresetAppliers({
|
|
29
27
|
primaryModelRef: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
|
|
30
|
-
resolveParams: () => ({
|
|
28
|
+
resolveParams: (_cfg) => ({
|
|
31
29
|
providerId: "arcee",
|
|
32
30
|
api: "openai-completions",
|
|
33
31
|
baseUrl: OPENROUTER_BASE_URL,
|
|
@@ -38,5 +36,13 @@ const { applyConfig: applyArceeOpenRouterConfig } = createModelCatalogPresetAppl
|
|
|
38
36
|
}]
|
|
39
37
|
})
|
|
40
38
|
});
|
|
39
|
+
/** Apply direct Arcee provider defaults to config. */
|
|
40
|
+
function applyArceeConfig(cfg) {
|
|
41
|
+
return arceePresetAppliers.applyConfig(cfg);
|
|
42
|
+
}
|
|
43
|
+
/** Apply OpenRouter-backed Arcee provider defaults to config. */
|
|
44
|
+
function applyArceeOpenRouterConfig(cfg) {
|
|
45
|
+
return arceeOpenRouterPresetAppliers.applyConfig(cfg);
|
|
46
|
+
}
|
|
41
47
|
//#endregion
|
|
42
48
|
export { ARCEE_DEFAULT_MODEL_REF, ARCEE_OPENROUTER_DEFAULT_MODEL_REF, applyArceeConfig, applyArceeOpenRouterConfig };
|
package/dist/provider-catalog.js
CHANGED
|
@@ -3,7 +3,6 @@ import { ARCEE_BASE_URL, ARCEE_MODEL_CATALOG, buildArceeModelDefinition } from "
|
|
|
3
3
|
/** Canonical OpenRouter API base URL for Arcee-routed models. */
|
|
4
4
|
const OPENROUTER_BASE_URL = "https://openrouter.ai/api/v1";
|
|
5
5
|
const OPENROUTER_LEGACY_BASE_URL = "https://openrouter.ai/v1";
|
|
6
|
-
const ARCEE_OPENROUTER_MODEL_IDS = /* @__PURE__ */ new Set(["trinity-large-preview", "trinity-large-thinking"]);
|
|
7
6
|
function normalizeBaseUrl(baseUrl) {
|
|
8
7
|
return (baseUrl ?? "").trim().replace(/\/+$/, "");
|
|
9
8
|
}
|
|
@@ -13,11 +12,11 @@ function normalizeArceeOpenRouterBaseUrl(baseUrl) {
|
|
|
13
12
|
if (!normalized) return;
|
|
14
13
|
if (normalized === "https://openrouter.ai/api/v1" || normalized === OPENROUTER_LEGACY_BASE_URL) return OPENROUTER_BASE_URL;
|
|
15
14
|
}
|
|
16
|
-
/** Convert a bare
|
|
15
|
+
/** Convert a bare Arcee model id to the OpenRouter `arcee/*` id. */
|
|
17
16
|
function toArceeOpenRouterModelId(modelId) {
|
|
18
17
|
const normalized = modelId.trim();
|
|
19
|
-
if (!normalized || normalized.startsWith("arcee
|
|
20
|
-
return `arcee
|
|
18
|
+
if (!normalized || normalized.startsWith("arcee/")) return normalized;
|
|
19
|
+
return `arcee/${normalized}`;
|
|
21
20
|
}
|
|
22
21
|
/** Build direct Arcee catalog models. */
|
|
23
22
|
function buildArceeCatalogModels() {
|
|
@@ -25,7 +24,7 @@ function buildArceeCatalogModels() {
|
|
|
25
24
|
}
|
|
26
25
|
/** Build OpenRouter-routed Arcee catalog models. */
|
|
27
26
|
function buildArceeOpenRouterCatalogModels() {
|
|
28
|
-
return buildArceeCatalogModels().
|
|
27
|
+
return buildArceeCatalogModels().map((model) => Object.assign({}, model, { id: toArceeOpenRouterModelId(model.id) }));
|
|
29
28
|
}
|
|
30
29
|
/** Build the direct Arcee provider config. */
|
|
31
30
|
function buildArceeProvider() {
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/arcee-provider",
|
|
3
|
-
"version": "2026.7.
|
|
3
|
+
"version": "2026.7.34",
|
|
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.7.
|
|
21
|
+
"pluginApi": ">=2026.7.34"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.
|
|
24
|
+
"openclawVersion": "2026.7.34",
|
|
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.7.
|
|
41
|
+
"openclaw": ">=2026.7.34"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|