opencode-kilocode-auth 1.0.13 → 1.0.15

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-kilocode-auth",
3
3
  "module": "index.ts",
4
- "version": "1.0.13",
4
+ "version": "1.0.15",
5
5
  "author": "ported from Kilo Code",
6
6
  "description": "OpenCode plugin for Kilo Code authentication with support for various models including Giga Potato",
7
7
  "files": [
package/src/constants.ts CHANGED
@@ -20,7 +20,7 @@ export const KILOCODE_PROVIDER_ID = "kilocode";
20
20
  /**
21
21
  * Kilo Code extension version (must match official extension)
22
22
  */
23
- export const KILOCODE_VERSION = "4.151.0";
23
+ export const KILOCODE_VERSION = "4.150.0";
24
24
 
25
25
  /**
26
26
  * Default headers for Kilo Code API requests
package/src/plugin.ts CHANGED
@@ -29,7 +29,7 @@ interface KilocodeAuth {
29
29
  * OpenAI SDK version used by Kilo Code VSCode extension
30
30
  * From: kilocode/src/package.json -> "openai": "^5.12.2"
31
31
  */
32
- const OPENAI_SDK_VERSION = "0.51.0"
32
+ const OPENAI_SDK_VERSION = "5.12.2"
33
33
 
34
34
  /**
35
35
  * Get X-Stainless-* headers (EXACT match from OpenAI SDK)
@@ -42,20 +42,24 @@ function getStainlessHeaders(): Record<string, string> {
42
42
 
43
43
  // Map platform to OS name (EXACT from OpenAI SDK)
44
44
  const osMap: Record<string, string> = {
45
+ ios: "iOS",
46
+ android: "Android",
45
47
  darwin: "MacOS",
46
48
  win32: "Windows",
47
- linux: "Linux",
48
49
  freebsd: "FreeBSD",
49
50
  openbsd: "OpenBSD",
51
+ linux: "Linux",
50
52
  }
51
53
  const os = osMap[platform] || `Other:${platform}`
52
54
 
53
55
  // Map arch (EXACT from OpenAI SDK)
54
56
  const archMap: Record<string, string> = {
55
57
  x32: "x32",
58
+ x86_64: "x64",
56
59
  x64: "x64",
57
60
  arm: "arm",
58
61
  arm64: "arm64",
62
+ aarch64: "arm64",
59
63
  }
60
64
  const archStr = archMap[arch] || `other:${arch}`
61
65
 
@@ -261,8 +265,8 @@ RULES
261
265
  - Output text to communicate with the user; all text you output outside of tool use is displayed to the user.`
262
266
 
263
267
  if (systemIdx >= 0) {
264
- // Prepend Kilo Code prompt to existing system message
265
- payload.messages[systemIdx].content = kiloCodeSystemPrompt + "\n\n====\n\nADDITIONAL INSTRUCTIONS\n\n" + payload.messages[systemIdx].content
268
+ // REPLACE the system message entirely with our custom prompt
269
+ payload.messages[systemIdx].content = kiloCodeSystemPrompt
266
270
  } else {
267
271
  // Add system message at the beginning
268
272
  payload.messages.unshift({ role: "system", content: kiloCodeSystemPrompt })