Commit Graph

45 Commits

Author SHA1 Message Date
kiloconnect[bot] 0cc0cf2aa0 fix(vscode): retry Open VSX publish on transient failures 2026-04-22 12:00:26 +00:00
Marius 4888fe2046 fix(vscode): strip Electron env vars in dev launch script (#8906)
* fix(vscode): strip Electron env vars in dev launch script

When bun run extension is invoked from a VS Code task (e.g. the Agent
Manager run button), ELECTRON_* and VSCODE_* env vars leak into the
spawned process, causing VS Code to reuse the existing instance instead
of opening a new window. Strip these vars before spawning.

* fix(vscode): also strip Electron env vars in blocking launch path
2026-04-14 14:44:28 +02:00
kiloconnect[bot] 6e93f58a5f feat(vscode): add pre-release publishing support to marketplace workflow
Add a pre_release checkbox to the publish workflow that passes
--pre-release to vsce package, vsce publish, and ovsx publish.
This enables publishing to the VS Code Marketplace pre-release
channel without requiring a separate versioning scheme.

Closes #8156
2026-04-02 13:48:45 +00:00
kiloconnect[bot] cbae0ece8f fix(vscode): publish extension as release instead of pre-release
Remove --pre-release flag from vsce package and vsce publish commands.
Previously the VS Code Marketplace received a pre-release VSIX while
Open VSX received a production VSIX. Now both receive the same
production VSIX built without --pre-release, eliminating the separate
out/prod/ directory.
2026-04-01 11:00:54 +00:00
Catriel Müller dcab290055 Publish release on OpenVSX (#7608)
* feat: Prod Release only to OpenVSX

* feat: build as a prod release

* feat: dual vsx build
2026-03-26 15:54:19 +01:00
Marius f07884acdb fix(vscode): auto-rebuild CLI binary when opencode source changes (#7630)
local-bin.ts now tracks the latest git commit hash of packages/opencode/
in bin/.cli-version. On subsequent runs, if the hash differs, the binary
is automatically rebuilt instead of silently reusing a stale one.
2026-03-25 19:16:36 +01:00
Mark IJbema 0b6c5c68ba fix(vscode): limit Windows CLI path resolution to win32 only 2026-03-23 18:08:34 +01:00
Mark IJbema bfe17bf4a3 fix(vscode): resolve code CLI path on Windows for dev-snapshot install 2026-03-23 17:00:43 +01:00
Marius acf3dd5107 feat(vscode): add bun run extension to build and launch dev VS Code (#7351) 2026-03-20 12:42:26 +01:00
Catriel Müller 4863c31e39 refactor: remove markers on vscode ext 2026-03-18 14:18:08 -03:00
Catriel Müller 3034667f50 feat: add Windows ARM64 build support for CLI and VS Code extension
- Add win32/arm64 target to packages/opencode/script/build.ts
- Add win32-arm64 target to packages/kilo-vscode/script/build.ts and publish.ts
- Add @parcel/watcher-win32-arm64@2.5.1 optional dev dependency to packages/opencode/package.json
- Update RELEASING.md to document win32-arm64 CLI and VSIX targets
2026-03-18 14:10:03 -03:00
Kirill Kalishev 6321252c5e Merge pull request #7028 from Kilo-Org/kirillk/dogfood
feat(vscode): add dev-snapshot build script
2026-03-16 09:20:16 -04:00
Mark IJbema 8b49ad782c fix: local-bin --force now correctly removes dist directory
Bun.file().exists() returns false for directories, so the dist
directory was never cleaned on --force. Stale prebuilt binaries
were reused instead of triggering a fresh build. Switch to
existsSync() which works for both files and directories.
2026-03-16 13:29:40 +01:00
kirillk 38c3543f39 chore(vscode): use green checkmark for install success message 2026-03-13 13:10:21 -04:00
kirillk 84ffca2629 chore(vscode): replace install-dev-extension with snapshot:install task 2026-03-13 12:53:21 -04:00
Kirill Kalishev 2488f261b7 Update packages/kilo-vscode/script/dev-snapshot.ts
Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
2026-03-13 12:49:55 -04:00
kirillk bd083e2d08 fix(vscode): run full typecheck (extension + webview) in snapshot build 2026-03-13 12:37:16 -04:00
kirillk d434c42e6f fix(vscode): semver-safe sanitization of git user.name in snapshot version 2026-03-13 12:35:35 -04:00
kirillk 79970cd9d3 fix(vscode): include username in vsix filename, deduplicate path output 2026-03-13 12:26:36 -04:00
kirillk b535131c0b feat(vscode): add dev-snapshot build script with username in version 2026-03-13 12:20:42 -04:00
Marius 96994903d1 feat(kilo-vscode): add type safety infrastructure and typed message contracts (#6785)
* feat(kilo-vscode): add type safety infrastructure, typed message contracts, and CI typecheck

- Add typecheck script for CI (bun turbo typecheck now covers kilo-vscode)
- Type-check both extension (src/) and webview (webview-ui/) code
- Extend ESLint to cover .tsx files and webview-ui/src/
- Add typed discriminated unions for agent-manager extension<->webview messages
- Replace Record<string, unknown> with AgentManagerOutMessage/AgentManagerInMessage
- Fix 14 empty catch blocks with proper logging
- Fix 16 pre-existing webview type errors (icons, i18n keys, null coercion, etc.)
- Add SolidJS sortable directive type declaration, remove @ts-ignore
- Fix missing CreateMultiVersionRequest.name and AgentManagerSetSessionModelMessage

* fix: wire typecheck into compile/package and restore i18n selectAgent key

- compile and package scripts now use typecheck (extension + webview) instead of check-types (extension only)
- Restore settings.agentBehaviour.selectAgent key in all locales (used by AgentBehaviourTab dropdown)
- Add the key to en.ts which was missing it

* add selectAgent.title and selectAgent.description i18n keys

* fix: remove onBack prop from ProfileView stories (prop removed upstream)

* fix: replace bash/grep typecheck scripts with cross-platform Bun script

Addresses PR review feedback — the bash -c pipelines in check-types:extension
and check-types:webview break on Windows. The new script/typecheck.ts runs
tsc and filters errors in JS, so typecheck works on all platforms.
2026-03-11 10:23:24 +01:00
Mark IJbema 64c9e7270a fix: pass VSCODE_EXEC_PATH from task to detect editor variant reliably 2026-03-10 14:34:31 +01:00
Mark IJbema 521e7f7459 fix: log which editor the dev extension is being installed into 2026-03-10 14:24:40 +01:00
Mark IJbema b95f7ff3a7 fix: detect VS Code variant from VSCODE_IPC_HOOK instead of which 2026-03-10 14:19:05 +01:00
Mark IJbema 4026bcb728 fix: detect code-insiders in install-dev-extension script 2026-03-10 13:18:30 +01:00
Catriel Müller 602d2b0815 fix(vscode): clean out directory before building dev extension
Ensure stale .vsix files are removed before each build so the installer
always picks up the freshly built version.
2026-03-06 08:18:13 -03:00
Imanol Maiztegui 770e34820c Merge remote-tracking branch 'upstream/main' into feat/use-sdk
# Conflicts:
#	bun.lock
#	packages/kilo-vscode/src/KiloProvider.ts
#	packages/kilo-vscode/src/agent-manager/AgentManagerProvider.ts
#	packages/kilo-vscode/src/services/cli-backend/sse-utils.ts
#	packages/kilo-vscode/src/services/cli-backend/types.ts
#	packages/kilo-vscode/tests/unit/sse-client-utils.test.ts
#	packages/kilo-vscode/webview-ui/src/App.tsx
2026-02-27 17:29:26 +01:00
Marius bded39c5ab fix(vscode): add @vscode/vsce as devDependency to fix dev install script (#6437) 2026-02-27 15:56:16 +01:00
Imanol Maiztegui f8f23a14ae build(kilo-vscode): regenerate SDK types before extension build 2026-02-26 19:29:34 +01:00
Catriel Müller c9e4a82957 refactor: publish vscode marketplace 2026-02-25 15:59:59 -03:00
Mark IJbema 800c24aad2 feat: add install-dev-extension task with git SHA version for dev builds 2026-02-25 13:30:38 +01:00
Catriel Müller b8c156e397 refactor: remove vscode marketplace release 2026-02-24 11:21:44 -03:00
Catriel Müller 8471c556d3 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.
2026-02-23 08:42:44 -03:00
ops 21ecdf5dc2 fix: use kilo.exe as binary name on win32 2026-02-22 01:11:52 +01:00
Mark IJbema eb5efd3501 fix: local-bin.ts now prefers current platform binary
Previously picked the first binary found in dist (often linux-x64-musl).
Now checks for cli-{platform}-{arch} first (e.g. cli-darwin-arm64).
2026-02-18 17:28:42 +01:00
Catriel Müller 342ed70e03 fix: avoid npm version command in vscode build to prevent catalog: protocol error 2026-02-17 13:24:58 -03:00
Catriel Müller dc4282d55c fix: remove unused version variable from vscode publish script
The script uses Script.version (CLI version) for GitHub release upload,
not the extension's package.json version. Removed the unused variable
to avoid confusion.
2026-02-17 11:07:30 -03:00
Catriel Müller 868b206ef9 fix: apply +6 major version offset when using KILO_VERSION env var
The package.json already has version 7.x (6 more than CLI's 1.x).
When KILO_VERSION is set in the workflow, it contains the CLI version,
so we need to add 6 to match the vscode extension versioning.
2026-02-17 11:04:07 -03:00
Catriel Müller 16990d4045 Update packages/kilo-vscode/script/build.ts
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
2026-02-17 10:57:03 -03:00
Catriel Müller 913dfb414a refactor: integrate vscode build into standard publish workflow
- Split vscode publish script into build.ts and publish.ts
- Build script copies CLI binaries from dist artifacts instead of downloading
- VSIX packages renamed to kilo-vscode-{target}.vsix
- Added build-vscode job to publish.yml workflow
- VSCode publishing now part of main publish flow
- Removed standalone publish-vscode.yml workflow
2026-02-17 10:24:27 -03:00
kilo-maintainer[bot] 4ff4324423 chore: generate 2026-02-17 10:35:49 +00:00
Mark IJbema 7feae1ef06 feat(vscode): auto-rebuild CLI binary on opencode source changes
- Add watch-cli.ts script that watches packages/opencode/src/ for changes,
  triggers a rebuild (bun run build --single --skip-install), and copies
  the new binary to packages/kilo-vscode/bin/kilo
- Add watch:cli npm script in kilo-vscode package.json
- Add 'VSCode - CLI Watch' task in .vscode/tasks.json
- Include CLI watch in the composite 'VSCode - Watch' task so it runs
  automatically when launching the extension via F5
2026-02-17 10:53:31 +01:00
Catriel Müller 3fbe90dc53 refactor: fix vsce publish 2026-02-16 18:55:47 -03:00
Catriel Müller 91588eaa89 refactor: vscode monorepo instegration 2026-02-16 18:21:05 -03:00
Catriel Müller c6fd3adb4a feat: vscode publish 2026-02-13 16:14:05 -03:00