diff --git a/packages/kilo-vscode/package.json b/packages/kilo-vscode/package.json index a446bb20a96..c9a1decdd2e 100644 --- a/packages/kilo-vscode/package.json +++ b/packages/kilo-vscode/package.json @@ -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": { diff --git a/packages/kilo-vscode/script/build.ts b/packages/kilo-vscode/script/build.ts index 341b2c7acb5..5d201c16670 100644 --- a/packages/kilo-vscode/script/build.ts +++ b/packages/kilo-vscode/script/build.ts @@ -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}`) diff --git a/script/publish.ts b/script/publish.ts index f17970d5630..1f4baae2651 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -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)