@openclaw/kilocode-provider 2026.9.5 → 2026.9.7

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/assets/icon.png CHANGED
Binary file
@@ -8,6 +8,7 @@ var openclaw_plugin_default = {
8
8
  enabledByDefault: true,
9
9
  providers: ["kilocode"],
10
10
  modelPricing: { "providers": { "kilocode": {
11
+ "modelsDev": { "passthroughProviderModel": true },
11
12
  "openRouter": { "passthroughProviderModel": true },
12
13
  "liteLLM": { "passthroughProviderModel": true }
13
14
  } } },
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as buildKilocodeProviderWithDiscovery, t as buildKilocodeProvider } from "./.setup/provider-catalog-DVP2RSKr.mjs";
1
+ import { n as buildKilocodeProviderWithDiscovery, t as buildKilocodeProvider } from "./.setup/provider-catalog-CL9OybJF.mjs";
2
2
  import { KILOCODE_BASE_URL, KILOCODE_DEFAULT_CONTEXT_WINDOW, KILOCODE_DEFAULT_COST, KILOCODE_DEFAULT_MAX_TOKENS, KILOCODE_DEFAULT_MODEL_ID, KILOCODE_DEFAULT_MODEL_NAME, KILOCODE_DEFAULT_MODEL_REF, KILOCODE_MODELS_URL, KILOCODE_MODEL_CATALOG, buildKilocodeModelDefinition, discoverKilocodeModels } from "./provider-models.js";
3
3
  export { KILOCODE_BASE_URL, KILOCODE_DEFAULT_CONTEXT_WINDOW, KILOCODE_DEFAULT_COST, KILOCODE_DEFAULT_MAX_TOKENS, KILOCODE_DEFAULT_MODEL_ID, KILOCODE_DEFAULT_MODEL_NAME, KILOCODE_DEFAULT_MODEL_REF, KILOCODE_MODELS_URL, KILOCODE_MODEL_CATALOG, buildKilocodeModelDefinition, buildKilocodeProvider, buildKilocodeProviderWithDiscovery, discoverKilocodeModels };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as buildKilocodeProviderWithDiscovery, r as openclaw_plugin_default, t as buildKilocodeProvider } from "./.setup/provider-catalog-DVP2RSKr.mjs";
1
+ import { n as buildKilocodeProviderWithDiscovery, r as openclaw_plugin_default, t as buildKilocodeProvider } from "./.setup/provider-catalog-CL9OybJF.mjs";
2
2
  import { KILOCODE_DEFAULT_MODEL_REF } from "./provider-models.js";
3
3
  import { applyKilocodeConfig } from "./onboard.js";
4
4
  import { wrapKilocodeProviderStream } from "./stream.js";
package/dist/onboard.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as buildKilocodeProvider } from "./.setup/provider-catalog-DVP2RSKr.mjs";
1
+ import { t as buildKilocodeProvider } from "./.setup/provider-catalog-CL9OybJF.mjs";
2
2
  import { KILOCODE_BASE_URL, KILOCODE_DEFAULT_MODEL_REF } from "./provider-models.js";
3
3
  import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
4
4
  //#region extensions/kilocode/onboard.ts
@@ -1,2 +1,2 @@
1
- import { n as buildKilocodeProviderWithDiscovery, t as buildKilocodeProvider } from "./.setup/provider-catalog-DVP2RSKr.mjs";
1
+ import { n as buildKilocodeProviderWithDiscovery, t as buildKilocodeProvider } from "./.setup/provider-catalog-CL9OybJF.mjs";
2
2
  export { buildKilocodeProvider, buildKilocodeProviderWithDiscovery };
@@ -1,4 +1,4 @@
1
- import { buildLiveModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
1
+ import { buildLiveModelProviderConfig, readLiveModelCatalogStringField } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
2
2
  import { ssrfPolicyFromHttpBaseUrlAllowedHostname } from "openclaw/plugin-sdk/ssrf-runtime";
3
3
  import { asPositiveSafeInteger, normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  //#region extensions/kilocode/provider-models.ts
@@ -70,11 +70,6 @@ function asGatewayModelEntry(value) {
70
70
  if (typeof entry.id !== "string" || typeof entry.pricing !== "object" || entry.pricing === null || Array.isArray(entry.pricing)) throw new Error("Kilocode model list: malformed JSON response");
71
71
  return value;
72
72
  }
73
- function readGatewayModelId(value) {
74
- if (typeof value !== "object" || value === null || Array.isArray(value)) return "";
75
- const id = value.id;
76
- return typeof id === "string" ? id.trim() : "";
77
- }
78
73
  function readGatewayModelRows(body) {
79
74
  const data = body?.data;
80
75
  if (!Array.isArray(data)) throw new Error("Kilocode model list: malformed JSON response");
@@ -84,7 +79,7 @@ function projectKilocodeModels(rows) {
84
79
  const models = [];
85
80
  const discoveredIds = /* @__PURE__ */ new Set();
86
81
  for (const rawEntry of rows) {
87
- const id = readGatewayModelId(rawEntry);
82
+ const id = readLiveModelCatalogStringField(rawEntry, "id");
88
83
  try {
89
84
  const entry = asGatewayModelEntry(rawEntry);
90
85
  if (!id || discoveredIds.has(id) || entry.architecture?.output_modalities?.includes("image")) continue;
@@ -9,6 +9,9 @@
9
9
  "modelPricing": {
10
10
  "providers": {
11
11
  "kilocode": {
12
+ "modelsDev": {
13
+ "passthroughProviderModel": true
14
+ },
12
15
  "openRouter": {
13
16
  "passthroughProviderModel": true
14
17
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/kilocode-provider",
3
- "version": "2026.9.5",
3
+ "version": "2026.9.7",
4
4
  "description": "OpenClaw Kilo Gateway 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.5"
21
+ "pluginApi": ">=2026.9.7"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.5",
24
+ "openclawVersion": "2026.9.7",
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.5"
43
+ "openclaw": ">=2026.9.7"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {