@openclaw/kilocode-provider 2026.7.2-beta.4 → 2026.7.2-beta.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/dist/index.js CHANGED
@@ -5,26 +5,77 @@ 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
7
  import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
8
+ //#region extensions/kilocode/openclaw.plugin.json
9
+ var openclaw_plugin_default = {
10
+ id: "kilocode",
11
+ activation: { "onStartup": false },
12
+ enabledByDefault: true,
13
+ providers: ["kilocode"],
14
+ modelPricing: { "providers": { "kilocode": {
15
+ "openRouter": { "passthroughProviderModel": true },
16
+ "liteLLM": { "passthroughProviderModel": true }
17
+ } } },
18
+ setup: { "providers": [{
19
+ "id": "kilocode",
20
+ "envVars": ["KILOCODE_API_KEY"]
21
+ }] },
22
+ providerAuthChoices: [{
23
+ "provider": "kilocode",
24
+ "method": "api-key",
25
+ "choiceId": "kilocode-api-key",
26
+ "appGuidedSecret": true,
27
+ "choiceLabel": "Kilo Gateway API key",
28
+ "choiceHint": "API key (OpenRouter-compatible)",
29
+ "groupId": "kilocode",
30
+ "groupLabel": "Kilo Gateway",
31
+ "groupHint": "API key (OpenRouter-compatible)",
32
+ "optionKey": "kilocodeApiKey",
33
+ "cliFlag": "--kilocode-api-key",
34
+ "cliOption": "--kilocode-api-key <key>",
35
+ "cliDescription": "Kilo Gateway API key"
36
+ }],
37
+ configSchema: {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "properties": {}
41
+ },
42
+ modelCatalog: {
43
+ "providers": { "kilocode": {
44
+ "baseUrl": "https://api.kilo.ai/api/gateway/",
45
+ "api": "openai-completions",
46
+ "models": [{
47
+ "id": "kilo-auto/balanced",
48
+ "name": "Auto Balanced",
49
+ "reasoning": true,
50
+ "input": ["text", "image"],
51
+ "cost": {
52
+ "input": .325,
53
+ "output": 1.95,
54
+ "cacheRead": .0325,
55
+ "cacheWrite": .40625
56
+ },
57
+ "contextWindow": 1e6,
58
+ "maxTokens": 65536
59
+ }]
60
+ } },
61
+ "discovery": { "kilocode": "refreshable" }
62
+ }
63
+ };
64
+ //#endregion
8
65
  //#region extensions/kilocode/index.ts
9
66
  const PROVIDER_ID = "kilocode";
10
67
  var kilocode_default = defineSingleProviderPluginEntry({
11
68
  id: PROVIDER_ID,
12
69
  name: "Kilo Gateway Provider",
13
70
  description: "Bundled Kilo Gateway provider plugin",
71
+ manifest: openclaw_plugin_default,
14
72
  provider: {
15
73
  label: "Kilo Gateway",
16
74
  docsPath: "/providers/kilocode",
17
- auth: [{
18
- methodId: "api-key",
19
- label: "Kilo Gateway API key",
20
- hint: "API key (OpenRouter-compatible)",
21
- optionKey: "kilocodeApiKey",
22
- flagName: "--kilocode-api-key",
23
- envVar: "KILOCODE_API_KEY",
24
- promptMessage: "Enter Kilo Gateway API key",
75
+ manifestAuth: {
25
76
  defaultModel: KILOCODE_DEFAULT_MODEL_REF,
26
- applyConfig: (cfg) => applyKilocodeConfig(cfg)
27
- }],
77
+ applyConfig: applyKilocodeConfig
78
+ },
28
79
  catalog: {
29
80
  buildProvider: buildKilocodeProviderWithDiscovery,
30
81
  buildStaticProvider: buildKilocodeProvider
package/dist/onboard.js CHANGED
@@ -2,9 +2,9 @@ import { KILOCODE_BASE_URL, KILOCODE_DEFAULT_MODEL_REF } from "./provider-models
2
2
  import { buildKilocodeProvider } from "./provider-catalog.js";
3
3
  import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
4
4
  //#region extensions/kilocode/onboard.ts
5
- const kilocodePresetAppliers = createModelCatalogPresetAppliers({
5
+ const { applyConfig: applyKilocodeConfig } = createModelCatalogPresetAppliers({
6
6
  primaryModelRef: KILOCODE_DEFAULT_MODEL_REF,
7
- resolveParams: (_cfg) => ({
7
+ resolveParams: () => ({
8
8
  providerId: "kilocode",
9
9
  api: "openai-completions",
10
10
  baseUrl: KILOCODE_BASE_URL,
@@ -15,8 +15,5 @@ const kilocodePresetAppliers = createModelCatalogPresetAppliers({
15
15
  }]
16
16
  })
17
17
  });
18
- function applyKilocodeConfig(cfg) {
19
- return kilocodePresetAppliers.applyConfig(cfg);
20
- }
21
18
  //#endregion
22
19
  export { KILOCODE_DEFAULT_MODEL_REF, applyKilocodeConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/kilocode-provider",
3
- "version": "2026.7.2-beta.4",
3
+ "version": "2026.7.2-beta.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.7.2-beta.4"
21
+ "pluginApi": ">=2026.7.2-beta.7"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.4",
24
+ "openclawVersion": "2026.7.2-beta.7",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -35,11 +35,10 @@
35
35
  "files": [
36
36
  "dist/**",
37
37
  "openclaw.plugin.json",
38
- "npm-shrinkwrap.json",
39
38
  "README.md"
40
39
  ],
41
40
  "peerDependencies": {
42
- "openclaw": ">=2026.7.2-beta.4"
41
+ "openclaw": ">=2026.7.2-beta.7"
43
42
  },
44
43
  "peerDependenciesMeta": {
45
44
  "openclaw": {
@@ -1,12 +0,0 @@
1
- {
2
- "name": "@openclaw/kilocode-provider",
3
- "version": "2026.7.2-beta.4",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "@openclaw/kilocode-provider",
9
- "version": "2026.7.2-beta.4"
10
- }
11
- }
12
- }