4 Commits
Author SHA1 Message Date
HomerandClaude Opus 5.5 2b1d42b976 Neovim plugin: only project files go along, the shared rules held by shared cases, review fixes
Privacy: pieces of other open files with a suggestion, and the names of other open files with a
message, now come only from files inside the working directory, never from a file that looks
like it holds secrets (one table, tests/rules/private_files.json, which the VS Code extension
reads too), and never from one the project's .gitignore leaves out. In a file that looks secret
no suggestion is asked for; said once. :help llembas-privacy says what is and is not sent.

- require("llembas").cli(): the one function that decides where the LLeMbas CLI is (PATH, then
  ~/.local/bin); LLeMbas IDE and its launcher follow it.
- A late answer from an agent that was replaced (:LLeMbasNew!, :LLeMbasRestart) no longer ends
  the new turn.
- :LLeMbasOpen judges a file by its first bytes and its name (llembas.shown), as VS Code does.
- The existing sign-in is read by whole lines; an address that reads as an option is refused.
- A protocol line over the limit is dropped whole, not the message after it; a notification
  that fails is noted in :LLeMbasLog.
- After :cd the remembered settings of the new directory hold.
- Versions: "1.2.3junk" is no version, as in VS Code.
- tests/rules/: versions, private files, server addresses, sign-in lines, protocol lines and
  openable files, as data both editors' suites read (scripts/test-nvim.sh rules).
- The stand-in agent answers _lembas/session/delete as the CLI does ({deleted}, no notification
  on serve --stdio).
- Texts: one sentence for "still working" and one for "this CLI is too old"; plain words in
  :LLeMbasStatus and the length presets; the help card is "LLeMbas — commands and keys".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 07:52:14 +00:00
HomerandClaude Fable 5.2 f06acbb7b7 Neovim: sign in and out from the editor, and a server's minimum plugin version
:LLeMbasLogin [address] [--ca file] runs the CLI's own sign-in (lembas login --json), shows the code,
opens the approval page and restarts the agent when it is done; it says whose sign-in it replaces
and asks first. :LLeMbasLoginCancel and :LLeMbasLogout. A server that asks for a newer plugin
(min_client in the CLI's hello) is said once.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 19:30:48 +00:00
HomerandClaude Fable 5.2 2af200c03b VS Code: the CLI's real shapes, a failed turn said, the agent's life, and the same words as Neovim
The extension's tests run on the stand-in both editors share. Fixed: a failed turn was silent;
usage and progress were read from fields the CLI does not send; a file the agent had read through
the editor could no longer be changed once its tab was closed; a write into a CRLF document made
the next edit fail as 'changed since you last read it'; no request had a time limit and a line
that never ended was kept for ever; an agent that ignored a stop was left running. The hello says
protocol 3, the CLI's version is compared with a stated minimum, and not being signed in is said
the same way everywhere.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 19:28:07 +00:00
HomerandClaude Fable 5.2 e4381217b4 Neovim: the CLI's real shapes, a failed turn said, the agent's life, and a stand-in both editors share
The stand-in agent (tests/fake_agent.py) now answers only as LLeMbas CLI 2.0.0-beta.17 does and
checks what it is sent as the CLI checks it; the Neovim tests also run against the CLI itself when
its source is at hand, with a home of its own.

Fixed in the plugin: a failed turn was silent; token usage and progress were read from fields the
CLI does not send; a file the agent had read here and that was not open could not be edited; a
server failure switched autocomplete off; not being signed in pointed at the model picker; no
request had a time limit; an agent that ignored a stop was left running.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 19:18:05 +00:00