layermap 0.1.55 → 0.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
  <p align="center"><sub>A real Claude Code session on <a href="https://github.com/miniflux/v2">Miniflux</a>, replayed: one map call finds every endpoint, then the agent confirms them in source.</sub></p>
18
18
 
19
19
  A layered map of your codebase for coding agents. LayerMap gives Claude Code, Codex, CodeBuddy
20
- Code, Pi, DeepSeek Harness and other MCP clients read-only tools that answer, in one call, what an agent otherwise works out
20
+ Code, Pi, DeepSeek Harness, Antigravity and other MCP clients read-only tools that answer, in one call, what an agent otherwise works out
21
21
  with dozens of searches:
22
22
 
23
23
  - **What calls this, and what does changing it affect?** Callers traced up to 8 levels, to the
@@ -150,11 +150,28 @@ npx layermap setup dsh
150
150
  This adds LayerMap to every dsh profile. Each session maps the project dsh was started in, and
151
151
  `npx layermap remove dsh` undoes it.
152
152
 
153
+ **Antigravity**
154
+
155
+ ```
156
+ npx layermap setup antigravity
157
+ ```
158
+
159
+ Antigravity's app installs plugins only from its marketplace, so this writes LayerMap's plugin into
160
+ `~/.gemini/config/plugins/layermap`, which Antigravity loads by itself; `npx layermap remove
161
+ antigravity` deletes it. Antigravity asks before each map tool's first use; choose to always allow
162
+ it. It starts the server outside the project, so the plugin's rule tells the agent to give absolute
163
+ paths.
164
+
153
165
  In every agent, start a new session in a Git repository and ask as usual. LayerMap tells the agent
154
166
  when the map helps. A session started in a folder holding several repositories, or one that moves
155
- to another repository, works too: each map tool call maps the repository its path names. The first
156
- time a session starts a version of LayerMap, npm installs that pinned `layermap` package into
157
- LayerMap's cache; later sessions start it from there, even offline.
167
+ to another repository, works too: each map tool call maps the repository its path names. Your
168
+ machine runs one LayerMap, the version installed in LayerMap's cache that its plugins, `layermap
169
+ setup` and the `layermap` command all start: the first session installs the latest `layermap`
170
+ package there with npm, later ones start it without npm, even offline. While a session runs,
171
+ LayerMap asks npm once an hour for the latest version, installs it, and switches the machine to it
172
+ once it has started; every session moves to it between tool calls, so no plugin needs updating for
173
+ LayerMap to update, and a version that does not start is never switched to. Pi runs the package it
174
+ installed itself, and `npx layermap mcp` the one npx fetches.
158
175
 
159
176
  Claude Code asks once before each map tool runs in a project. Choose "don't ask again", or run
160
177
  `npx layermap allow claude` to allow the plugin's read-only tools everywhere.
@@ -180,7 +197,7 @@ CodeBuddy Code the plugin asks the agent once, before it finishes, to run this c
180
197
  and has not checked since, whether through its edit tools or shell commands, which count for the code files they name
181
198
  (changes another session makes in the same work tree do not count); the Pi extension does the same after the agent's own
182
199
  edits. Set `LAYERMAP_STOP_CHECK=0` to turn that
183
- off. Codex and DeepSeek Harness are told to run it.
200
+ off. Codex, DeepSeek Harness and Antigravity are told to run it.
184
201
 
185
202
  **Without plugins:** run `npx layermap setup claude` or `npx layermap setup codex`. Setup does three
186
203
  things:
@@ -242,9 +259,8 @@ npx layermap imports --json # every import of the project as it is
242
259
  **A `layermap` command.** The Claude Code plugin puts one on the PATH of Claude's shell commands.
243
260
  Codex's commands, a terminal and Git hooks have none, so a program run there that calls `layermap`,
244
261
  such as one choosing tests from `layermap check --json`, does not find it. Run `npx layermap setup
245
- command` once: it writes a `layermap` command into `~/.local/bin`, which runs the newest version
246
- installed on your machine, where each agent's plugin installs the version it starts. It follows
247
- the plugins as they update and uses no network; where `~/.local/bin` comes before the plugin's
262
+ command` once: it writes a `layermap` command into `~/.local/bin`, which runs the version every
263
+ agent's plugin runs on your machine, and installs it with npm only when there is none; where `~/.local/bin` comes before the plugin's
248
264
  directory on PATH, Claude's shell commands run it too. A file of that name that is not LayerMap's
249
265
  is left as it is. `npx layermap remove command` deletes it. macOS and Linux only.
250
266