@openclaw/kilocode-provider 2026.7.2-beta.1 → 2026.7.2-beta.3

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
@@ -4,7 +4,7 @@ import { applyKilocodeConfig } from "./onboard.js";
4
4
  import { wrapKilocodeProviderStream } from "./stream.js";
5
5
  import { readConfiguredProviderCatalogEntries } from "openclaw/plugin-sdk/provider-catalog-shared";
6
6
  import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
7
- import { PASSTHROUGH_GEMINI_REPLAY_HOOKS } from "openclaw/plugin-sdk/provider-model-shared";
7
+ import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
8
8
  //#region extensions/kilocode/index.ts
9
9
  const PROVIDER_ID = "kilocode";
10
10
  var kilocode_default = defineSingleProviderPluginEntry({
@@ -33,7 +33,7 @@ var kilocode_default = defineSingleProviderPluginEntry({
33
33
  config,
34
34
  providerId: PROVIDER_ID
35
35
  }),
36
- ...PASSTHROUGH_GEMINI_REPLAY_HOOKS,
36
+ ...buildProviderReplayFamilyHooks({ family: "passthrough-gemini" }),
37
37
  wrapStreamFn: wrapKilocodeProviderStream,
38
38
  isCacheTtlEligible: (ctx) => ctx.modelId.startsWith("anthropic/")
39
39
  }
package/dist/onboard.js CHANGED
@@ -19,4 +19,4 @@ function applyKilocodeConfig(cfg) {
19
19
  return kilocodePresetAppliers.applyConfig(cfg);
20
20
  }
21
21
  //#endregion
22
- export { KILOCODE_BASE_URL, KILOCODE_DEFAULT_MODEL_REF, applyKilocodeConfig };
22
+ export { KILOCODE_DEFAULT_MODEL_REF, applyKilocodeConfig };
@@ -11,7 +11,7 @@ function buildKilocodeProvider() {
11
11
  input: model.input,
12
12
  cost: KILOCODE_DEFAULT_COST,
13
13
  contextWindow: model.contextWindow ?? 1e6,
14
- maxTokens: model.maxTokens ?? 128e3
14
+ maxTokens: model.maxTokens ?? 65536
15
15
  }))
16
16
  };
17
17
  }
@@ -5,9 +5,9 @@ import { asPositiveSafeInteger, normalizeLowercaseStringOrEmpty } from "openclaw
5
5
  //#region extensions/kilocode/provider-models.ts
6
6
  const log = createSubsystemLogger("kilocode-models");
7
7
  const KILOCODE_BASE_URL = "https://api.kilo.ai/api/gateway/";
8
- const KILOCODE_DEFAULT_MODEL_ID = "kilo/auto";
8
+ const KILOCODE_DEFAULT_MODEL_ID = "kilo-auto/balanced";
9
9
  const KILOCODE_DEFAULT_MODEL_REF = `kilocode/${KILOCODE_DEFAULT_MODEL_ID}`;
10
- const KILOCODE_DEFAULT_MODEL_NAME = "Kilo Auto";
10
+ const KILOCODE_DEFAULT_MODEL_NAME = "Auto Balanced";
11
11
  const KILOCODE_MODEL_CATALOG = [{
12
12
  id: KILOCODE_DEFAULT_MODEL_ID,
13
13
  name: KILOCODE_DEFAULT_MODEL_NAME,
@@ -15,12 +15,12 @@ const KILOCODE_MODEL_CATALOG = [{
15
15
  reasoning: true
16
16
  }];
17
17
  const KILOCODE_DEFAULT_CONTEXT_WINDOW = 1e6;
18
- const KILOCODE_DEFAULT_MAX_TOKENS = 128e3;
18
+ const KILOCODE_DEFAULT_MAX_TOKENS = 65536;
19
19
  const KILOCODE_DEFAULT_COST = {
20
- input: 0,
21
- output: 0,
22
- cacheRead: 0,
23
- cacheWrite: 0
20
+ input: .325,
21
+ output: 1.95,
22
+ cacheRead: .0325,
23
+ cacheWrite: .40625
24
24
  };
25
25
  const KILOCODE_MODELS_URL = `${KILOCODE_BASE_URL}models`;
26
26
  const DISCOVERY_TIMEOUT_MS = 5e3;
@@ -53,7 +53,7 @@ function toModelDefinition(entry) {
53
53
  cacheWrite: toPricePerMillion(entry.pricing.input_cache_write)
54
54
  },
55
55
  contextWindow: asPositiveSafeInteger(entry.context_length) ?? 1e6,
56
- maxTokens: asPositiveSafeInteger(entry.top_provider?.max_completion_tokens) ?? 128e3
56
+ maxTokens: asPositiveSafeInteger(entry.top_provider?.max_completion_tokens) ?? 65536
57
57
  };
58
58
  }
59
59
  function buildStaticCatalog() {
@@ -64,7 +64,7 @@ function buildStaticCatalog() {
64
64
  input: model.input,
65
65
  cost: KILOCODE_DEFAULT_COST,
66
66
  contextWindow: model.contextWindow ?? 1e6,
67
- maxTokens: model.maxTokens ?? 128e3
67
+ maxTokens: model.maxTokens ?? 65536
68
68
  }));
69
69
  }
70
70
  function asGatewayModelEntry(value) {
package/dist/stream.js CHANGED
@@ -30,7 +30,7 @@ function isProxyReasoningUnsupported(modelId) {
30
30
  return slashIndex > 0 && trimmed?.slice(0, slashIndex) === "x-ai";
31
31
  }
32
32
  function resolveKilocodeThinkingLevel(ctx) {
33
- if (ctx.modelId === "kilo/auto" || isProxyReasoningUnsupported(ctx.modelId)) return;
33
+ if (ctx.modelId === "kilo-auto/balanced" || isProxyReasoningUnsupported(ctx.modelId)) return;
34
34
  return ctx.thinkingLevel;
35
35
  }
36
36
  function createKilocodeStreamWrapper(baseStreamFn, thinkingLevel) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/kilocode-provider",
3
- "version": "2026.7.2-beta.1",
3
+ "version": "2026.7.2-beta.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/kilocode-provider",
9
- "version": "2026.7.2-beta.1"
9
+ "version": "2026.7.2-beta.3"
10
10
  }
11
11
  }
12
12
  }
@@ -54,18 +54,18 @@
54
54
  "api": "openai-completions",
55
55
  "models": [
56
56
  {
57
- "id": "kilo/auto",
58
- "name": "Kilo Auto",
57
+ "id": "kilo-auto/balanced",
58
+ "name": "Auto Balanced",
59
59
  "reasoning": true,
60
60
  "input": ["text", "image"],
61
61
  "cost": {
62
- "input": 0,
63
- "output": 0,
64
- "cacheRead": 0,
65
- "cacheWrite": 0
62
+ "input": 0.325,
63
+ "output": 1.95,
64
+ "cacheRead": 0.0325,
65
+ "cacheWrite": 0.40625
66
66
  },
67
67
  "contextWindow": 1000000,
68
- "maxTokens": 128000
68
+ "maxTokens": 65536
69
69
  }
70
70
  ]
71
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/kilocode-provider",
3
- "version": "2026.7.2-beta.1",
3
+ "version": "2026.7.2-beta.3",
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.7.2-beta.1"
21
+ "pluginApi": ">=2026.7.2-beta.3"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.1",
24
+ "openclawVersion": "2026.7.2-beta.3",
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.1"
42
+ "openclaw": ">=2026.7.2-beta.3"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "openclaw": {