@openclaw/arcee-provider 2026.7.2-beta.2 → 2026.7.2-beta.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 +9 -5
- package/dist/provider-catalog.js +5 -4
- package/npm-shrinkwrap.json +2 -2
- package/openclaw.plugin.json +5 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { buildArceeOpenRouterProvider, buildArceeProvider, normalizeArceeOpenRou
|
|
|
2
2
|
import { ARCEE_DEFAULT_MODEL_REF, ARCEE_OPENROUTER_DEFAULT_MODEL_REF, applyArceeConfig, applyArceeOpenRouterConfig } from "./onboard.js";
|
|
3
3
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
4
4
|
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
5
|
+
import { buildOpenAICompatibleLiveModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
|
|
5
6
|
import { readConfiguredProviderCatalogEntries } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
6
7
|
import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
|
|
7
8
|
//#region extensions/arcee/index.ts
|
|
@@ -56,11 +57,13 @@ function buildArceeAuthMethods() {
|
|
|
56
57
|
})];
|
|
57
58
|
}
|
|
58
59
|
async function resolveArceeCatalog(ctx) {
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
const directAuth = ctx.resolveProviderApiKey(PROVIDER_ID);
|
|
61
|
+
if (directAuth.apiKey) return { provider: await buildOpenAICompatibleLiveModelProviderConfig({
|
|
62
|
+
providerId: PROVIDER_ID,
|
|
63
|
+
providerConfig: buildArceeProvider(),
|
|
64
|
+
apiKey: directAuth.apiKey,
|
|
65
|
+
discoveryApiKey: directAuth.discoveryApiKey
|
|
66
|
+
}) };
|
|
64
67
|
const openRouterKey = ctx.resolveProviderApiKey("openrouter").apiKey;
|
|
65
68
|
if (openRouterKey) return { provider: {
|
|
66
69
|
...buildArceeOpenRouterProvider(),
|
|
@@ -92,6 +95,7 @@ var arcee_default = definePluginEntry({
|
|
|
92
95
|
envVars: ["ARCEEAI_API_KEY", "OPENROUTER_API_KEY"],
|
|
93
96
|
auth: buildArceeAuthMethods(),
|
|
94
97
|
catalog: { run: resolveArceeCatalog },
|
|
98
|
+
staticCatalog: { run: async () => ({ provider: buildArceeProvider() }) },
|
|
95
99
|
augmentModelCatalog: ({ config }) => readConfiguredProviderCatalogEntries({
|
|
96
100
|
config,
|
|
97
101
|
providerId: PROVIDER_ID
|
package/dist/provider-catalog.js
CHANGED
|
@@ -3,6 +3,7 @@ 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"]);
|
|
6
7
|
function normalizeBaseUrl(baseUrl) {
|
|
7
8
|
return (baseUrl ?? "").trim().replace(/\/+$/, "");
|
|
8
9
|
}
|
|
@@ -12,11 +13,11 @@ function normalizeArceeOpenRouterBaseUrl(baseUrl) {
|
|
|
12
13
|
if (!normalized) return;
|
|
13
14
|
if (normalized === "https://openrouter.ai/api/v1" || normalized === OPENROUTER_LEGACY_BASE_URL) return OPENROUTER_BASE_URL;
|
|
14
15
|
}
|
|
15
|
-
/** Convert a bare Arcee model id to
|
|
16
|
+
/** Convert a bare or legacy Arcee model id to OpenRouter's `arcee-ai/*` id. */
|
|
16
17
|
function toArceeOpenRouterModelId(modelId) {
|
|
17
18
|
const normalized = modelId.trim();
|
|
18
|
-
if (!normalized || normalized.startsWith("arcee/")) return normalized;
|
|
19
|
-
return `arcee/${normalized}`;
|
|
19
|
+
if (!normalized || normalized.startsWith("arcee-ai/")) return normalized;
|
|
20
|
+
return `arcee-ai/${normalized.startsWith("arcee/") ? normalized.slice(6) : normalized}`;
|
|
20
21
|
}
|
|
21
22
|
/** Build direct Arcee catalog models. */
|
|
22
23
|
function buildArceeCatalogModels() {
|
|
@@ -24,7 +25,7 @@ function buildArceeCatalogModels() {
|
|
|
24
25
|
}
|
|
25
26
|
/** Build OpenRouter-routed Arcee catalog models. */
|
|
26
27
|
function buildArceeOpenRouterCatalogModels() {
|
|
27
|
-
return buildArceeCatalogModels().map((model) => Object.assign({}, model, { id: toArceeOpenRouterModelId(model.id) }));
|
|
28
|
+
return buildArceeCatalogModels().filter((model) => ARCEE_OPENROUTER_MODEL_IDS.has(model.id)).map((model) => Object.assign({}, model, { id: toArceeOpenRouterModelId(model.id) }));
|
|
28
29
|
}
|
|
29
30
|
/** Build the direct Arcee provider config. */
|
|
30
31
|
function buildArceeProvider() {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/arcee-provider",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/arcee-provider",
|
|
9
|
-
"version": "2026.7.2-beta.
|
|
9
|
+
"version": "2026.7.2-beta.4"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
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.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.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.7.2-beta.
|
|
21
|
+
"pluginApi": ">=2026.7.2-beta.4"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.2-beta.
|
|
24
|
+
"openclawVersion": "2026.7.2-beta.4",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"openclaw": ">=2026.7.2-beta.
|
|
42
|
+
"openclaw": ">=2026.7.2-beta.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|