fix: align vscode extension publish version with CLI version

Remove the +6 major version offset applied during build and publish
for the kilo-vscode package so both packages share the same version.
This commit is contained in:
Catriel Müller
2026-02-23 08:42:44 -03:00
parent 5942ada47a
commit 8471c556d3
3 changed files with 3 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "kilo-code",
"displayName": "Kilo Code: AI Coding Agent, Copilot, and Autocomplete",
"description": "Open Source AI coding agent that generates code from natural language, automates tasks, and runs terminal commands. Features inline autocomplete, browser automation, automated refactoring, and custom modes for planning, coding, and debugging. Supports 500+ AI models including Claude (Anthropic), Gemini, Grok, GPT, Codex and GLM.",
"version": "7.0.25",
"version": "1.0.25",
"icon": "assets/icons/logo-outline-black.png",
"publisher": "kilocode",
"repository": {
+1 -3
View File
@@ -5,9 +5,7 @@ import { existsSync, mkdirSync, rmSync, chmodSync } from "node:fs"
const packageJsonPath = join(import.meta.dir, "..", "package.json")
const packageJson = await Bun.file(packageJsonPath).json()
const version = process.env.KILO_VERSION
? process.env.KILO_VERSION.replace(/^\d+/, (m) => String(Number(m) + 6))
: packageJson.version
const version = process.env.KILO_VERSION ? process.env.KILO_VERSION : packageJson.version
console.log(`Building VSCode extension version: ${version}`)
+1 -5
View File
@@ -41,11 +41,7 @@ const pkgjsons = await Array.fromAsync(
for (const file of pkgjsons) {
let pkg = await Bun.file(file).text()
// kilocode_change start
const version = file.includes("packages/kilo-vscode/")
? Script.version.replace(/^\d+/, (m) => String(Number(m) + 6))
: Script.version
// kilocode_change end
const version = Script.version
pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${version}"`)
console.log("updated:", file)
await Bun.file(file).write(pkg)