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>
16 lines
927 B
Markdown
16 lines
927 B
Markdown
# Rules both editors keep
|
|
|
|
The Neovim plugin (Lua) and the VS Code extension (JavaScript) each carry their own copy of a few
|
|
small rules. These files are the cases both copies must answer the same way: data, read by
|
|
`nvim/tests/rules.lua` and `vscode/tests/rules.test.js`. A rule changed in one editor fails here
|
|
until the other follows.
|
|
|
|
| File | The rule |
|
|
|---|---|
|
|
| `versions.json` | which of two versions is newer, and what is no version at all |
|
|
| `private_files.json` | which files look like they hold secrets, and what counts as inside a folder |
|
|
| `server_address.json` | what may be handed to `lembas login` as the server's address |
|
|
| `login_events.json` | the events of `lembas login --json`, whatever pieces its output arrives in |
|
|
| `rpc_lines.json` | which messages survive a line that is longer than the reader keeps |
|
|
| `openable.json` | which shown files may be opened, by their first bytes and their name |
|