Commit Graph

4826 Commits

Author SHA1 Message Date
Kirill Kalishev 5ccceb5a93 Merge branch 'main' into caring-columnist 2026-04-08 08:52:54 -04:00
Marian Alexandru Alecu 242c167171 Merge pull request #8504 from Kilo-Org/feat/help-all-command
feat: add kilo help --all command and auto-generated CLI reference docs
2026-04-08 14:46:51 +03:00
Evgeny Shurakov a11ab3a938 Merge pull request #8539 from Kilo-Org/eshurakov/telemetry-remote-connection-v2
Cli - Track remote connection opened event in PostHog
2026-04-08 13:39:09 +02:00
Alex Alecu 0697217d13 fix(cli): strengthen sync test and add missing ConfigCLICommand 2026-04-08 14:30:09 +03:00
Marius 850826a2be fix(cli): align /local-review diff with agent manager diff viewer (#8574)
The /local-review command used git diff base...HEAD (triple-dot) which only
captured committed changes. The diff viewer uses merge-base + two-dot diff
against the working tree. This mismatch caused /local-review to show
'nothing to review' when changes were uncommitted.

Now computes merge-base explicitly and diffs the working tree against it,
matching WorktreeDiff behavior. Also includes untracked files.
2026-04-08 11:05:06 +00:00
Alex Alecu fb5d85e2e5 fix(cli): make 'kilo help' show same output as 'kilo -h' 2026-04-08 13:57:25 +03:00
Alex Alecu 8327300881 Merge remote-tracking branch 'origin/main' into feat/help-all-command
# Conflicts:
#	packages/opencode/src/index.ts
2026-04-08 12:10:48 +03:00
Alex Alecu a0a1ffa744 Merge branch 'main' into feat/help-all-command 2026-04-08 12:07:21 +03:00
Alex Alecu 7ecc076397 fix(cli): restore native --help for subcommands 2026-04-08 12:07:12 +03:00
Alex Alecu 83e8bbef8f Merge remote-tracking branch 'origin/main' into fix/cli-config-resilience
# Conflicts:
#	packages/opencode/src/kilocode/skills/kilo-config.md
2026-04-08 11:53:52 +03:00
Marian Alexandru Alecu e3bade8319 Merge pull request #8474 from Kilo-Org/docs/kilo-config-legacy-paths
docs(cli): add legacy paths to kilo-config skill
2026-04-08 11:50:02 +03:00
Alex Alecu 0a2c10956e style(cli): add kilocode markers on mode block 2026-04-08 11:48:10 +03:00
Alex Alecu cef00b9df3 style(cli): add kilocode markers on agent block 2026-04-08 11:47:50 +03:00
Alex Alecu b5c756ef72 style(cli): add kilocode markers on command block 2026-04-08 11:47:24 +03:00
Alex Alecu e0e116e9cc docs(cli): add workflows section 2026-04-08 11:47:05 +03:00
Alex Alecu bb8b807dff docs(cli): add KILO_CONFIG_DIR to command paths 2026-04-08 11:46:42 +03:00
Alex Alecu b871498690 style(cli): add kilocode markers in toast 2026-04-08 11:46:40 +03:00
Alex Alecu cf1a120999 test(cli): add sync check for commands.ts vs index.ts 2026-04-08 11:40:56 +03:00
Alex Alecu 89e61c6e65 fix(cli): disable built-in help command to allow kilo help --all to work
The .help('help', ...) method registers yargs' built-in help command
which shadows the custom HelpCommand registered on the same 'help' path.
This means 'kilo help --all' never reaches the custom handler.

Fix by:
- Replacing .help('help', ...) with .help(false) + .option('help', ...)
  to disable the built-in command while keeping --help/-h flags
- Adding early-exit handlers in middleware for --help and --version
  to skip expensive initialization (telemetry, DB migration)
2026-04-08 11:38:15 +03:00
Kirill Kalishev b2d695cbed Merge branch 'main' into caring-columnist 2026-04-07 16:16:50 -04:00
Evgeny Shurakov 1595eba59a feat(cli): track remote connection opened event in PostHog 2026-04-07 22:10:14 +02:00
kilo-maintainer[bot] 760f24608e release: v7.2.0 2026-04-07 19:11:12 +00:00
kirillk c31cc4dbd1 perf(cli): parallelize Kilo + Apertis model fetches in ModelsDev.get() 2026-04-07 14:34:03 -04:00
Imanol Maiztegui ee8c26f80c fix: remove local storage from ignored folder (#8431) 2026-04-07 17:13:31 +00:00
Mark IJbema 37c63e0f8d fix(cli): drop explicit CommandModule type from commands array to fix typecheck
UpgradeCommand and UninstallCommand are plain object literals (no cmd()
wrapper) whose handler param types don't satisfy CommandModule<any, any>.
Remove the annotation and let TypeScript infer the union type — consumers
already cast via loadCommands().
2026-04-07 19:07:33 +02:00
Johnny Amancio afe950dc0c perf(snapshot): add mutex lock, incremental add, and batched revert
Port snapshot optimizations from upstream OpenCode to reduce git process
spawning and prevent concurrent corruption:

- Per-gitdir mutex lock (upstream #17878, v1.3.0): serializes concurrent
  snapshot operations to prevent race conditions
- Incremental git add (upstream #17878, v1.3.0): replaces naive `git add .`
  with diff-files + ls-files + size filtering, skipping files >2MB
- Batched revert (upstream #20564, v1.3.14): groups up to 100 files per
  git checkout call with path-conflict detection, falling back to
  single-file revert on failure

Benchmarks (200 files):
- revert: 2,851ms → 191ms (15x faster, 8x fewer git processes)
- concurrent track: 2/5 succeed → 5/5 succeed (corruption fixed)
2026-04-07 19:05:15 +02:00
Mark IJbema 6690370fa1 fix(cli): add completion command to commands array for help --all and cli-reference
The shell-completion entrypoint was registered via .completion() in index.ts
but missing from the commands array used by generateHelp(). This meant
kilo help --all and cli-reference.md never included it.

Add a synthetic CommandModule entry for completion to commands.ts and remove
the now-redundant manual row in generateCommandTable().
2026-04-07 19:01:30 +02:00
Mark IJbema a03a572d20 Merge remote-tracking branch 'origin/main' into feat/help-all-command 2026-04-07 18:58:39 +02:00
kilo-maintainer[bot] 5650850aa6 release: v7.1.23 2026-04-07 16:19:27 +00:00
kiloconnect[bot] 7901bb624d fix: minimize index.ts diff, remove spurious changes 2026-04-07 15:07:23 +00:00
Alex Alecu 2ca9542254 fix(cli): guard session import in config error handlers 2026-04-07 18:06:48 +03:00
Alex Alecu 5d184aba94 style(cli): fix kilocode_change markers 2026-04-07 18:01:37 +03:00
Kirill Kalishev d0ca6ee03f Merge pull request #8479 from shssoichiro/issue-8478
fix(core): make follow-up execution aware of the saved plan file
2026-04-07 11:01:24 -04:00
Alex Alecu f0a30751b8 fix(cli): let managed config errors propagate 2026-04-07 17:57:34 +03:00
Alex Alecu 5accaead16 fix(cli): include detail in validation error 2026-04-07 17:57:10 +03:00
kiloconnect[bot] 44df3a0dc9 refactor: move commands barrel to kilocode/, restore index.ts upstream-style chain 2026-04-07 14:18:18 +00:00
Alex Alecu 770887e96c fix(cli): improve config warning UX across CLI, TUI, and VS Code
Separate verbose parse details into a new Warning.detail field so toast
messages stay short while 'kilo config check' and VS Code's Show Details
action expose the full diagnostic.  Make the TUI config-warning toast
persistent (dismissed on first prompt submit) and fire VS Code's
checkConfigWarnings() independently so prior failures in the SSE handler
cannot suppress it.  Add 'kilo config check' subcommand that prints all
warnings with color and exits non-zero.
2026-04-07 17:05:08 +03:00
kiloconnect[bot] ba7480d523 docs: explain why commands.ts barrel exists 2026-04-07 14:01:21 +00:00
kiloconnect[bot] f9820cebdd fix: add RemoteCommand to barrel, recursive subcommands, include $0 commands in help --all 2026-04-07 13:35:41 +00:00
Alex Alecu f0118047e5 feat(cli): add config warnings endpoint and surface errors to TUI/extension
Collect warnings during config loading instead of crashing when config
files have invalid JSON, schema errors, or frontmatter issues. Warnings
are exposed via a new GET /config/warnings pull-based endpoint.

- Add Config.Warning schema and warnings collection in stateInit()
- Wrap all loadFile/load calls with try/catch to collect warnings
- Thread warnings through loadCommand/loadAgent/loadMode/invalid
- Wrap well-known remote config block to prevent network/parse crashes
- Add GET /config/warnings server route with OpenAPI spec
- Regenerate SDK with config.warnings() method
- TUI: fetch warnings in bootstrap non-blocking phase, show as toast
- VS Code: fetch warnings on SSE connect, show as native notifications
- Add 5 new tests for warning collection (JSON, schema, markdown)
2026-04-07 16:26:46 +03:00
kiloconnect[bot] fe74b6bea0 chore: merge origin/main into feat/help-all-command, resolve conflict in index.ts 2026-04-07 13:11:17 +00:00
Alex Alecu 27057648d3 docs(cli): add CONTEXT.md to instructions list 2026-04-07 15:20:32 +03:00
Alex Alecu 5a9520d3f0 docs(cli): add KILO_CONFIG_DIR to command lookup 2026-04-07 15:20:32 +03:00
Alex Alecu eb1494f122 docs(cli): widen KILO_DISABLE_PROJECT_CONFIG desc 2026-04-07 15:20:32 +03:00
Alex Alecu b862651023 docs(cli): list all managed config files 2026-04-07 15:20:32 +03:00
Alex Alecu 2302f7f67a docs(cli): fix instructions auto-discovery list 2026-04-07 15:20:32 +03:00
Alex Alecu 6a91d2a6aa docs(cli): add missing opencode.jsonc to global paths 2026-04-07 15:20:32 +03:00
Alex Alecu cafccaf687 fix(cli): add named-command lookup guidance to kilo-config skill
The skill loaded but the agent still only searched the repo root when
asked 'where is /review-pr?'. Add an explicit procedural subsection
that tells the agent to search ~/.config/kilo/, ~/.kilo/, ~/.kilocode/,
and ~/.opencode/ with explicit path arguments before falling back to
project directories. Add a regression test verifying the guidance is
present in the builtin skill output.
2026-04-07 15:20:32 +03:00
Alex Alecu 6a7c296d34 fix(cli): widen kilo-config skill to cover path location questions
The skill description and opening paragraph now explicitly mention
locating config/command/agent/skill paths across global, project,
and legacy directories (.kilo/, .kilocode/, .opencode/, ~/.config/kilo/).
This ensures the agent loads the skill for 'where is this command?'
prompts, not just configure/customize prompts.
2026-04-07 15:16:22 +03:00
Alex Alecu f2dea0a677 docs(cli): add legacy paths to kilo-config skill
The built-in kilo-config skill only documented modern config paths
(.kilo/, ~/.config/kilo/), but the CLI still loads legacy directories
(.kilocode/, .opencode/) at every session. Users with configs in legacy
locations got no guidance from the agent.

Expand the Config File Locations section to document all scanned
directories, glob patterns with plural variants, legacy config
filenames, and environment variable overrides.
2026-04-07 15:16:22 +03:00