120 Commits
Author SHA1 Message Date
Imanol Maiztegui 6cfd2dd0b4 build(deps): bump bun from 1.3.13 to 1.3.14 (#10884)
Update Bun runtime and type definitions across the repository:
- package.json packageManager field
- @types/bun in root and script/upstream
- Nix flake pinned binary with updated hashes
- Container Dockerfile ARG
- Documentation and story fixtures referencing the version
2026-06-03 17:09:45 +00:00
Mark IJbema aa1f857ba4 style(vscode): format next edit integration files 2026-05-27 13:50:39 +02:00
Firas TrabelsiandClaude Opus 4.7 fe60a467d1 Add Mercury Next Edit (NES) routed through the kilo gateway
Addresses @markijbema's architectural feedback on #10536: moves the HTTP
edit-completion call to the gateway, removes the standalone API-key
setting, and aligns with the provider/model selection design introduced
in #10559.

Wire-level changes
------------------
* New `/kilo/edit` endpoint added to the opencode HttpApi contract
  (`packages/opencode/src/kilocode/server/httpapi/groups/kilo-gateway.ts`)
  and mirrored into `packages/kilo-gateway/src/server/routes.ts` for the
  hono surface. SDK regenerated; `client.kilo.edit({ content, provider,
  model, maxTokens })` is now available.
* `packages/kilo-gateway/src/edit.ts` — `EditTarget` resolver mirroring
  the FIM pattern. Only the Inception provider is wired today (Mistral
  doesn't expose a comparable surface); Kilo Gateway has a placeholder
  branch that returns 400 until a server-side proxy exists.
* `packages/kilo-gateway/src/server/edit.ts` — `createEditHandler` reads
  the Inception BYOK key from `Auth.get("inception")` and falls back to
  `INCEPTION_API_KEY` from env, exactly like the FIM handler.
* The gateway unwraps Mercury's triple-backtick fence (and any
  `<|code_to_edit|>` sentinels) server-side so the VSCode response is
  just the rewritten code.
* `AutocompleteModelDef` gains an optional `kind: "fim" | "edit"`
  discriminator; new entry `inception/mercury-next-edit` (label "Mercury
  Next Edit") sets `kind: "edit"` and shares the wire model
  `mercury-edit-2`.

VSCode-side
-----------
* `MercuryEditProvider` no longer does its own HTTP — it's now a thin
  wrapper around `client.kilo.edit(...)` via `KiloConnectionService`.
* Dropped `kilo-code.new.autocomplete.nextEdit.apiKey` and
  `.nextEdit.baseUrl` settings. Auth and routing live in the gateway.
* The `AutocompleteServiceManager` dispatch now switches on the model's
  `kind` field (set by `getAutocompleteModel(provider, model)`) instead
  of string-comparing a model id, matching Mark's provider+model split.
* The `NextEditInlineCompletionProvider`,
  `NextEditSuggestionManager`, prompt template, parser, editable-region
  selector, edit-history tracker, recently-viewed-snippets adapter, and
  decoration-based jump-to-edit UX remain in the VSCode extension since
  they need editor-specific APIs (`InlineCompletionItem`,
  `TextEditorDecorationType`, keybinding context keys).

Bot review nits resolved
------------------------
* `INLINE_COMPLETION_ACCEPTED_COMMAND` renamed `kilocode.*` →
  `kilo-code.*` to match the project convention.
* `kilo-code.next-edit.acceptOrJump` and `.dismiss` now declared in
  `contributes.commands` so VS Code can resolve them in the palette.
* `disposeLog()` wired into `AutocompleteServiceManager.dispose()` so
  the dedicated "Kilo Code · Next Edit" OutputChannel doesn't leak.
* Per-keystroke "skip — no API key resolved" log removed (the entire
  API-key code path is gone).

Tests
-----
* `bun run check-types:extension` clean
* `bun run lint src` clean
* `bun test src/services/autocomplete/next-edit/__tests__/` — 23/23
  pass

Docs
----
* The partner walkthrough at
  `packages/kilo-vscode/docs/mercury-next-edit-testing.html` and the
  20-test playground under
  `packages/kilo-vscode/docs/nes-examples/` survive from the prior
  iteration. The walkthrough's "Install the PR locally" section still
  applies (the model dropdown choice is now "Mercury Next Edit
  (Inception)" — the API-key step is gone since BYOK is plumbed through
  the gateway's Auth store).

Known follow-ups (not in this commit)
-------------------------------------
* `FileIgnoreController` plumbing through the NES context builder so
  `.env`-style files don't get sent. Hook point identified in
  `NextEditInlineCompletionProvider.buildRequestContext`.
* Settings UI changes in the webview to expose Mercury Next Edit as a
  selectable provider/model pair alongside the FIM entries.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 09:17:53 -07:00
Marius 6fe38e47bc Add Mermaid diagram export actions (#9857)
* feat: add Mermaid diagram export actions

* fix: stabilize Mermaid export pipeline

* fix: format Mermaid image save handler

* fix: limit Mermaid actions to copy and download

* fix: polish Mermaid copy download controls

* fix: simplify Mermaid action menus

* fix: center Mermaid dropdown chevrons

* refactor: use shared dropdowns for Mermaid actions
2026-05-07 13:06:28 +02:00
Marius 712371e231 Add basic mermaid support (#9850)
* feat: render Mermaid diagrams in chat markdown

* fix: remove duplicate Mermaid diagram border

* fix: annotate Mermaid markdown hook

* fix: stabilize Mermaid markdown rendering
2026-05-04 18:14:35 +02:00
kiloconnect[bot] 06cd80d1bd chore: enforce minimal markdown table formatting
Prettier pads markdown table cells for column alignment, which turns any
content change into a table-wide realignment diff. Markdown was only in
prettierignore for packages/kilo-vscode/; the root formatter still
repadded docs elsewhere (e.g. TESTING.md, kilo-docs, AGENTS.md).

Adds *.md to the root .prettierignore, documents the convention in
AGENTS.md, and adds script/check-md-table-padding.ts + a workflow to
enforce it. Existing padded tables in Kilo-owned docs have been
rewritten via the script's --fix mode.
2026-04-28 07:45:49 +00:00
Catriel Müller 61fa5e617d refactor: fix typechecks 2026-04-11 13:25:06 -03:00
Joshua Lambert 18e1a004eb docs(vscode): document supported image types and Shift+drag requirement (#8629) 2026-04-09 11:52:42 +02:00
kiloconnect[bot] bcbd2b423b docs(vscode): prune completed items from migration plan
- Remove Settings Migration, Upgrade Onboarding, and MemoryBank Migration
  docs (all covered by the migration wizard shipped in #7823)
- Remove custom-openai-provider-ui.md (feature shipped)
- Update MCP docs: remove connection status and enable/disable toggle
  (shipped in #7810)
- Update settings-ui.md: remove import/export (shipped in #7794)
- Update opencode-migration-plan.md accordingly
2026-03-31 15:48:20 +00:00
Mark IJbema 7ebd28c2aa docs(vscode): update modes sub-tab plan for PR #7225
PR #7225 adds create/edit/delete modes UI with unified config save
flow. Mark core CRUD as done, lower priority from P1 to P2, and
update the comparison tables and remaining work list.
2026-03-25 12:16:00 +01:00
Mark IJbema a8f4fd6ca8 docs(vscode): scope agent behaviour plan to the Agent Behaviour tab only
Remove 8 plan files that covered other settings tabs (Auto Approve,
Context, Terminal, Prompts, Experiments, Provider, etc.). These are
out of scope — only the Agent Behaviour settings tab is covered.

Rewrite remaining files as precise sub-tab comparisons:
- modes-subtab-parity.md: side-by-side of legacy Modes vs new Agents
- mcp-server-creation.md: rewritten as MCP Servers sub-tab comparison
- rules-workflows-subtab-parity.md: new file for Rules & Workflows gaps

Update migration plan section to match the 4 sub-tab structure.
Simplify settings-migration.md mapping table to Agent Behaviour scope.
2026-03-25 12:13:04 +01:00
Mark IJbema 69ffab4644 docs(vscode): add agent behaviour feature parity plan
Compare legacy extension agent behaviour settings with new extension
and CLI backend capabilities. Add 11 new plan files covering:

- Custom instructions & prompts tab
- Auto-approve parity (YOLO mode, budget limits)
- Custom modes / agent creation UI
- Per-agent advanced settings (variant, permissions, visibility)
- Provider-specific settings (OpenRouter, Anthropic, Bedrock, etc.)
- Token & request budget limits
- MCP server creation & editing
- Terminal tab settings
- Context management settings
- Formatter & LSP detailed configuration
- Experiments & feature flags parity

Update main migration plan with new Agent Behaviour section.
Update settings-migration.md with legacy→CLI settings mapping table.
Update settings-ui.md with cross-references to new docs.
2026-03-25 11:59:20 +01:00
Mark IJbema 57d20ce450 remove editor-context-menus-and-code-actions.md (feature complete) 2026-03-16 16:23:14 +01:00
Mark IJbema 9d8289a2ae restore kilocode-legacy anchor sections 2026-03-16 16:23:14 +01:00
Mark IJbema 25b6aa362b remove sessions-migration.md and update references (not migrating sessions) 2026-03-16 16:23:14 +01:00
Mark IJbema b3edc7c59e revert architect-mode-plan-files.md to original 2026-03-16 16:23:14 +01:00
kiloconnect[bot] b98d92c991 docs: prune migration plan to remaining work only
Remove completed feature docs and strip 'What Exists' / 'Status' sections
from all subplans. 17 features verified as done and removed:
SSE auto-reconnect, connection state UI, markdown syntax highlighting,
terminal output visibility, ask mode no edits, SDK over HTTP,
session turn, copy button, chat input resize, chat background color,
clickable cursors, context compression icon, anonymous sign-in prompts,
subagent visibility, diff jump to changed lines, new task discoverability,
reasoning block styling.

Remaining docs contain only TODO items.
2026-03-16 16:23:14 +01:00
kiloconnect[bot] b576636156 fix(vscode): implement terminal Add to Context using clipboard-based selection
The terminal context menu actions (Add to Context, Fix, Explain) were
non-functional because getTerminalSelection() was a placeholder that
always returned an empty string. The VS Code terminal API does not
expose a terminal.selection property.

Fix by using the clipboard approach: copy the terminal selection via
workbench.action.terminal.copySelection, read it from the clipboard,
then restore the original clipboard content.

Also fixes:
- Use appendChatBoxMessage instead of setChatBoxMessage for both editor
  and terminal Add to Context so content is appended rather than
  replacing existing chat input
- Pass agentManagerProvider to registerTerminalActions so terminal
  actions route to the active panel (sidebar or Agent Manager)
2026-03-16 15:09:22 +01:00
Mark IJbema 6f9a0f0c5a feat(vscode): Enhance Prompt — ✨ sparkle button to improve prompts before sending
Add the Enhance Prompt feature to the VS Code extension, matching the
legacy extension's behaviour. A ✨ sparkle button in the chat input
toolbar rewrites the user's draft prompt using an LLM.

CLI:
- POST /enhance-prompt endpoint using LLM.stream with small model
- System prompt as agent.prompt for caching; user text as user message
- clean() strips code fences and surrounding quotes from LLM output

Extension:
- KiloProvider handler using SDK client.enhancePrompt.enhance()
- Shows VS Code error notification on failure
- WandSparkles icon from lucide-solid via @kilocode/kilo-ui
- Spin animation while enhancement is in flight
- Empty-input click shows feature description (all 16 i18n locales)
- Ctrl+Z / ⌘Z undo restores original draft
- Guard checks isBusy/isDisabled/enhancing matching canEnhance()

Tests:
- 11 unit tests for clean() in enhance-prompt.test.ts

Migration plan:
- Removed feature row (parity achieved)
- Deleted prompt-improvement.md spec doc
2026-03-03 13:21:45 +01:00
Mark IJbema a4c4cf5f52 docs(vscode): expand project board issues into detailed doc files
Replace the flat issue list in the migration plan with 37 detailed doc
files, one per issue, grouped into ui-polish/, features/, migration/,
error-handling/, performance/, infrastructure/, and cli-side/ directories.

Each doc describes the problem, what remains to be done, and implementation
notes — readable without opening the GitHub issue. The migration plan tables
now link to these docs instead of bare issue references.
2026-02-25 14:03:23 +01:00
Mark IJbema f981e4ef9b docs(vscode): add missing project board issues to migration plan
Cross-referenced all open items from the GitHub project board
(https://github.com/orgs/Kilo-Org/projects/25) with the existing plan.
Added 37 open issues not previously tracked, grouped by category:
UI polish/bugs, features, migration, error handling, performance,
infrastructure, and CLI-side items.
2026-02-25 14:03:23 +01:00
Mark IJbema 08e742fe0d docs(vscode): remove terminal-shell-integration.md and fast-edits.md 2026-02-25 09:35:10 +01:00
Mark IJbema 44994bf1fd docs(vscode): restore legacy anchor in speech-to-text.md 2026-02-25 09:34:05 +01:00
Mark IJbema 25551a409b docs(vscode): remove search-and-repo-scanning-infrastructure.md 2026-02-25 09:32:22 +01:00
Mark IJbema 24058967ab docs(vscode): remove integrations.md (not an extension feature) 2026-02-25 09:27:44 +01:00
Mark IJbema 458d55f17c docs(vscode): restore legacy anchor in custom-command-system, remove deploy-and-secure-surfaces (not an extension feature) 2026-02-25 09:26:09 +01:00
Mark IJbema 5cb7ff4b08 docs(vscode): restore legacy repo anchor in contribution-tracking.md 2026-02-25 09:24:21 +01:00
Mark IJbema 418f7fc8d6 docs(vscode): merge checkpoints.md into checkpoint-task-management.md, restore legacy anchors in codebase-indexing 2026-02-25 09:20:03 +01:00
Mark IJbema d4f775dfc0 docs(vscode): remove browser-automation-url-ingestion.md (considered done) 2026-02-25 09:16:03 +01:00
Mark IJbema 433b20ef01 docs(vscode): add org/personal dropdown to auth remaining work 2026-02-25 09:14:29 +01:00
Mark IJbema faab659c5a docs(vscode): remove implementation-status.md 2026-02-25 09:11:24 +01:00
Mark IJbema bc0fa1ec73 docs(vscode): restore mermaid-diagram-features.md, clarify legacy repo references 2026-02-25 09:08:35 +01:00
Mark IJbema fd1de66193 docs(vscode): remove follow-up-questions.md (considered done) 2026-02-25 09:05:51 +01:00
Mark IJbema f4610dc99b docs(vscode): remove file-permission-dialogs.md (considered done) 2026-02-25 09:04:57 +01:00
Mark IJbema 3764f83e96 docs(vscode): remove context-menus-tooltips.md (considered done) 2026-02-25 09:03:13 +01:00
Mark IJbema 571335f490 docs(vscode): audit and clean up feature parity plans
Audited all docs in packages/kilo-vscode/docs/ subdirs against the actual
codebase. Removed fully implemented features (toggle-thinking,
inline-actions-on-tool-messages, git-commit-message-generation), updated
all remaining docs to focus on what still needs to be done, corrected
stale statuses, and added implementation-status.md summary.
2026-02-25 08:25:07 +01:00
Mark IJbema 29953163ea docs: remove migrate-settings plan (considered implemented) 2026-02-24 15:57:31 +01:00
Mark IJbema c5b1adf4f6 docs: remove broken GitHub issue links from vscode docs
Remove GitHub issue links that pointed to the old kilo repository.
The issue tracker has moved and these links are no longer valid.
2026-02-23 11:48:23 +01:00
Mark IJbema b51b9eb677 docs: update repository URLs from kilo to kilocode
Update all github.com/Kilo-Org/kilo references to github.com/Kilo-Org/kilocode
across package.json files, documentation, scripts, and configuration files.

This reflects the repository rename from kilo to kilocode.
2026-02-23 11:41:41 +01:00
Mark IJbema 3eaefc8614 docs: update repository links in migration plan
- Update old extension link from kilocode to kilocode-legacy
- Update new extension link from kilo to kilocode monorepo
2026-02-23 11:21:28 +01:00
Mark IJbema 9a0ac0c0ee docs: update default branch references from dev to main
- Update AGENTS.md to reflect main as default branch
- Update GitHub Actions workflows to trigger on main branch
- Update publish scripts to cherry-pick from origin/main
- Update upstream merge scripts and documentation
- Update CONTRIBUTING.md links in PR standards workflow
- Fix disabled workflow and documentation links

All development commands (bun dev, npm run dev) and external services
(models.dev, ai-sdk.dev) remain unchanged as they are unrelated to branch names.
2026-02-23 11:19:39 +01:00
kilo-maintainer[bot] d899af7b55 chore: generate 2026-02-19 18:09:50 +00:00
kilo-maintainer[bot] aee3e1db04 chore: generate 2026-02-19 18:08:56 +00:00
Mark IJbema a1ca232cf1 docs(kilo-vscode): integrate old extension context menu spec into migration plan 2026-02-19 17:36:27 +01:00
Mark IJbema 32e04107ea Merge pull request #464 from Kilo-Org/mark/update-migration-plan-done-items
docs: update migration plan — mark completed features as done
2026-02-19 11:47:07 +01:00
Mark IJbema 6bd29bd77c docs: remove detail docs for completed features and resolved unknowns
Delete implementation detail docs for all ✅ Done features — these
contained migration instructions that are no longer relevant now that
the feature is built.

Delete all unknowns/ docs — these were pre-implementation research
questions that have since been answered and implemented.

Remove broken links in opencode-migration-plan.md and update
settings-ui.md to reflect actual current state.
2026-02-19 11:11:01 +01:00
Mark IJbema c1e4fc6be5 docs: update Current State Summary to reflect newly completed features 2026-02-19 11:04:24 +01:00
Mark IJbema 794cb67b65 docs: mark Non-Agent features as done in migration plan
Agent Manager (worktrees + parallel sessions), Autocomplete/Ghost
(InlineCompletionProvider), Kilo Gateway, Provider Configuration,
Settings UI (most tabs), Task History, Telemetry, and Auto-Approval
Controls are all fully implemented.
2026-02-19 11:03:56 +01:00
Mark IJbema 9c390b5a4a docs: mark Chat UI features as done in migration plan
Code Block Interactions, Command Execution, Diff Viewing, Image Handling,
and Todo List Management are all fully implemented via kilo-ui. Connection
State UI and Inline Actions updated to reflect partial progress.
2026-02-19 11:02:52 +01:00
Mark IJbema 1ba820d158 Merge pull request #460 from Kilo-Org/mark/remove-ui-implementation-plan-doc
Remove ui-implementation-plan.md (migration complete)
2026-02-19 10:50:48 +01:00