@openclaw/arcee-provider 2026.9.8 → 2026.10.1-beta.2

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
@@ -5,10 +5,6 @@ import { readConfiguredProviderCatalogEntries, resolveMergedModelProviderConfig
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
8
- /**
9
- * Arcee AI provider plugin entry. It supports direct Arcee auth and OpenRouter
10
- * routing while normalizing OpenRouter model ids and base URLs.
11
- */
12
8
  const PROVIDER_ID = "arcee";
13
9
  const ARCEE_WIZARD_GROUP = {
14
10
  groupId: "arcee",
@@ -46,7 +42,6 @@ function normalizeArceeResolvedModel(model) {
46
42
  baseUrl: normalizedBaseUrl
47
43
  };
48
44
  }
49
- /** Provider entry for Arcee direct and OpenRouter-backed models. */
50
45
  var arcee_default = defineSingleProviderPluginEntry({
51
46
  id: PROVIDER_ID,
52
47
  name: "Arcee AI Provider",
package/dist/models.js CHANGED
@@ -1,7 +1,5 @@
1
1
  //#region extensions/arcee/models.ts
2
- /** Default direct Arcee API base URL. */
3
2
  const ARCEE_BASE_URL = "https://api.arcee.ai/api/v1";
4
- /** Static Arcee model catalog used for provider registration. */
5
3
  const ARCEE_MODEL_CATALOG = [
6
4
  {
7
5
  id: "trinity-mini",
@@ -50,7 +48,6 @@ const ARCEE_MODEL_CATALOG = [
50
48
  }
51
49
  }
52
50
  ];
53
- /** Build one OpenAI-compatible Arcee model definition. */
54
51
  function buildArceeModelDefinition(model) {
55
52
  return {
56
53
  id: model.id,
package/dist/onboard.js CHANGED
@@ -1,60 +1,38 @@
1
1
  import { ARCEE_BASE_URL } from "./models.js";
2
2
  import { OPENROUTER_BASE_URL, buildArceeCatalogModels, buildArceeOpenRouterCatalogModels } from "./provider-catalog.js";
3
- import { applyProviderConfigWithModelCatalogPreset, applyProviderConnectionConfig } from "openclaw/plugin-sdk/provider-onboard";
3
+ import { createModelCatalogPresetAppliers, createProviderConnectionPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
4
4
  //#region extensions/arcee/onboard.ts
5
- /**
6
- * Arcee setup preset appliers. They seed model catalog defaults for direct
7
- * Arcee API usage and the OpenRouter-backed path.
8
- */
9
- /** Default Arcee model ref for direct API setup. */
10
5
  const ARCEE_DEFAULT_MODEL_REF = "arcee/trinity-large-thinking";
11
- /** Default Arcee model ref for OpenRouter setup. */
12
6
  const ARCEE_OPENROUTER_DEFAULT_MODEL_REF = "arcee/trinity-large-thinking";
13
7
  const ARCEE_PRESET = {
14
8
  primaryModelRef: ARCEE_DEFAULT_MODEL_REF,
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
- }]
9
+ resolveParams: () => ({
10
+ providerId: "arcee",
11
+ api: "openai-completions",
12
+ baseUrl: ARCEE_BASE_URL,
13
+ catalogModels: buildArceeCatalogModels,
14
+ aliases: [{
15
+ modelRef: ARCEE_DEFAULT_MODEL_REF,
16
+ alias: "Arcee AI"
17
+ }]
18
+ })
22
19
  };
23
20
  const ARCEE_OPENROUTER_PRESET = {
24
21
  primaryModelRef: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
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
- }]
22
+ resolveParams: () => ({
23
+ providerId: "arcee",
24
+ api: "openai-completions",
25
+ baseUrl: OPENROUTER_BASE_URL,
26
+ catalogModels: buildArceeOpenRouterCatalogModels,
27
+ aliases: [{
28
+ modelRef: ARCEE_OPENROUTER_DEFAULT_MODEL_REF,
29
+ alias: "Arcee AI (OpenRouter)"
30
+ }]
31
+ })
32
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
- }
33
+ const { applyConfig: applyArceeConfig } = createModelCatalogPresetAppliers(ARCEE_PRESET);
34
+ const { applyConfig: applyArceeOpenRouterConfig } = createModelCatalogPresetAppliers(ARCEE_OPENROUTER_PRESET);
35
+ const { applyConfig: applyArceeOnboardConfig } = createProviderConnectionPresetAppliers(ARCEE_PRESET);
36
+ const { applyConfig: applyArceeOpenRouterOnboardConfig } = createProviderConnectionPresetAppliers(ARCEE_OPENROUTER_PRESET);
59
37
  //#endregion
60
38
  export { ARCEE_DEFAULT_MODEL_REF, ARCEE_OPENROUTER_DEFAULT_MODEL_REF, applyArceeConfig, applyArceeOnboardConfig, applyArceeOpenRouterConfig, applyArceeOpenRouterOnboardConfig };
@@ -1,10 +1,8 @@
1
1
  import { ARCEE_BASE_URL, ARCEE_MODEL_CATALOG, buildArceeModelDefinition } from "./models.js";
2
2
  //#region extensions/arcee/provider-catalog.ts
3
- /** Canonical OpenRouter API base URL for Arcee-routed models. */
4
3
  const OPENROUTER_BASE_URL = "https://openrouter.ai/api/v1";
5
4
  const OPENROUTER_LEGACY_BASE_URL = "https://openrouter.ai/v1";
6
5
  const ARCEE_OPENROUTER_MODEL_IDS = /* @__PURE__ */ new Set(["trinity-large-preview", "trinity-large-thinking"]);
7
- /** Normalize OpenRouter base URLs accepted for Arcee model routing. */
8
6
  function normalizeArceeOpenRouterBaseUrl(baseUrl) {
9
7
  const normalized = (baseUrl ?? "").trim().replace(/\/+$/, "");
10
8
  if (normalized === "https://openrouter.ai/api/v1" || normalized === OPENROUTER_LEGACY_BASE_URL) return OPENROUTER_BASE_URL;
@@ -15,15 +13,12 @@ function toArceeOpenRouterModelId(modelId) {
15
13
  if (!normalized || normalized.startsWith("arcee-ai/")) return normalized;
16
14
  return `arcee-ai/${normalized.startsWith("arcee/") ? normalized.slice(6) : normalized}`;
17
15
  }
18
- /** Build direct Arcee catalog models. */
19
16
  function buildArceeCatalogModels() {
20
17
  return ARCEE_MODEL_CATALOG.map(buildArceeModelDefinition);
21
18
  }
22
- /** Build OpenRouter-routed Arcee catalog models. */
23
19
  function buildArceeOpenRouterCatalogModels() {
24
20
  return buildArceeCatalogModels().filter((model) => ARCEE_OPENROUTER_MODEL_IDS.has(model.id)).map((model) => Object.assign({}, model, { id: toArceeOpenRouterModelId(model.id) }));
25
21
  }
26
- /** Build the direct Arcee provider config. */
27
22
  function buildArceeProvider() {
28
23
  return {
29
24
  baseUrl: ARCEE_BASE_URL,
@@ -31,7 +26,6 @@ function buildArceeProvider() {
31
26
  models: buildArceeCatalogModels()
32
27
  };
33
28
  }
34
- /** Build the OpenRouter-backed Arcee provider config. */
35
29
  function buildArceeOpenRouterProvider() {
36
30
  return {
37
31
  baseUrl: OPENROUTER_BASE_URL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/arcee-provider",
3
- "version": "2026.9.8",
3
+ "version": "2026.10.1-beta.2",
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.8"
21
+ "pluginApi": ">=2026.10.1-beta.2"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.8",
24
+ "openclawVersion": "2026.10.1-beta.2",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -40,7 +40,7 @@
40
40
  "assets/activity.svg"
41
41
  ],
42
42
  "peerDependencies": {
43
- "openclaw": ">=2026.9.8"
43
+ "openclaw": ">=2026.10.1-beta.2"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {