@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 +2 -2
- package/dist/onboard.js +1 -1
- package/dist/provider-catalog.js +1 -1
- package/dist/provider-models.js +9 -9
- package/dist/stream.js +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/openclaw.plugin.json +7 -7
- package/package.json +4 -4
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 {
|
|
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
|
-
...
|
|
36
|
+
...buildProviderReplayFamilyHooks({ family: "passthrough-gemini" }),
|
|
37
37
|
wrapStreamFn: wrapKilocodeProviderStream,
|
|
38
38
|
isCacheTtlEligible: (ctx) => ctx.modelId.startsWith("anthropic/")
|
|
39
39
|
}
|
package/dist/onboard.js
CHANGED
package/dist/provider-catalog.js
CHANGED
package/dist/provider-models.js
CHANGED
|
@@ -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/
|
|
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 = "
|
|
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 =
|
|
18
|
+
const KILOCODE_DEFAULT_MAX_TOKENS = 65536;
|
|
19
19
|
const KILOCODE_DEFAULT_COST = {
|
|
20
|
-
input:
|
|
21
|
-
output:
|
|
22
|
-
cacheRead:
|
|
23
|
-
cacheWrite:
|
|
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) ??
|
|
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 ??
|
|
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/
|
|
33
|
+
if (ctx.modelId === "kilo-auto/balanced" || isProxyReasoningUnsupported(ctx.modelId)) return;
|
|
34
34
|
return ctx.thinkingLevel;
|
|
35
35
|
}
|
|
36
36
|
function createKilocodeStreamWrapper(baseStreamFn, thinkingLevel) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/kilocode-provider",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
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.
|
|
9
|
+
"version": "2026.7.2-beta.3"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
package/openclaw.plugin.json
CHANGED
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"api": "openai-completions",
|
|
55
55
|
"models": [
|
|
56
56
|
{
|
|
57
|
-
"id": "kilo/
|
|
58
|
-
"name": "
|
|
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":
|
|
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":
|
|
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.
|
|
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.
|
|
21
|
+
"pluginApi": ">=2026.7.2-beta.3"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.2-beta.
|
|
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.
|
|
42
|
+
"openclaw": ">=2026.7.2-beta.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|