flatbread-cli 0.2.0 → 0.3.0

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
@@ -158,8 +158,15 @@ It runs after the commit exists, so no SHA changes. When the repository sets `co
158
158
  set machine-wide (system or global config), the hook goes in the repository's own hooks
159
159
  directory and setup says it fires only if that machine-wide hook runs it.
160
160
 
161
- `setup --dry-run` writes nothing. `setup --uninstall` removes the handlers and the hook, and puts
162
- a chained hook back byte for byte. `FLATBREAD_HOOK_DISABLED=1` stops every capture.
161
+ Setup also registers the MCP server at Claude Code's user scope (`mcpServers.flatbread` in
162
+ `~/.claude.json`, or `$CLAUDE_CONFIG_DIR/.claude.json`), so every project has it and none asks you
163
+ to approve a `.mcp.json`. Only that one entry is touched: a file that is not JSON is refused, a
164
+ server named `flatbread` that runs something else is left alone, the file's BOM, line endings and
165
+ mode are kept, and the first write leaves `~/.claude.json.flatbread.bak`. Restart Claude Code (or
166
+ reload the VS Code window) afterwards. `--no-mcp` skips it.
167
+
168
+ `setup --dry-run` writes nothing. `setup --uninstall` removes the handlers, the MCP entry and the
169
+ hook, and puts a chained hook back byte for byte. `FLATBREAD_HOOK_DISABLED=1` stops every capture.
163
170
 
164
171
  `flatbread search <words>` answers from this machine's shared runs, its captured runs, then the
165
172
  site - the same text the MCP tool returns. Words are matched as typed, and by stem ("retry" finds
@@ -167,8 +174,14 @@ site - the same text the MCP tool returns. Words are matched as typed, and by st
167
174
  exits 1.
168
175
 
169
176
  `pull` and `mcp` only read. A token from `flatbread login` goes only to the site that issued it;
170
- a private run's share link (`?t=`) is sent as a header, never in a URL. Add the MCP server to
171
- Claude Code with `claude mcp add flatbread -- flatbread mcp`.
177
+ a private run's share link (`?t=`) is sent as a header, never in a URL. `pull <id>` reads a run
178
+ this machine shared or captured from disk, so it works offline; anything else comes from the site.
179
+ Without `setup`, add the MCP server by hand: `claude mcp add --scope user flatbread -- flatbread mcp`.
180
+
181
+ `share` writes the reviewed draft to `last-share.json`, which the next share replaces. The run is
182
+ not lost with it: every share is also kept under its own ID, which `search --local` lists and
183
+ `pull <id>` prints. The review page listens on 127.0.0.1, on 4321-4325, or a port the OS picks
184
+ when all five are busy.
172
185
 
173
186
  ### Building the package
174
187
 
@@ -0,0 +1,31 @@
1
+ # Third-party notices
2
+
3
+ ## deja-vu
4
+
5
+ `src/adapters/antigravity.ts` reads conversations the way deja-vu reads Windsurf trajectories
6
+ (`internal/sources/windsurf.go`), and `test/fixtures/antigravity/*.pb` are its fixtures
7
+ (`fixtures/registry/windsurf/cascade/`).
8
+
9
+ ```
10
+ MIT License
11
+
12
+ Copyright (c) 2026 Vladislav Shulcz
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+ ```