flatbread-cli 0.3.1 → 0.4.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
@@ -163,10 +163,16 @@ Setup also registers the MCP server at Claude Code's user scope (`mcpServers.fla
163
163
  to approve a `.mcp.json`. Only that one entry is touched: a file that is not JSON is refused, a
164
164
  server named `flatbread` that runs something else is left alone, the file's BOM, line endings and
165
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.
166
+ reload the VS Code window) afterwards.
167
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.
168
+ A connected tool is not a used one: in a real session the agent read the tool list and implemented
169
+ the fix without searching. So setup also writes a skill that says when to search - before the first
170
+ edit, after a failure - to `~/.claude/skills/flatbread/SKILL.md` (or under `$CLAUDE_CONFIG_DIR`) and
171
+ `~/.agents/skills/flatbread/SKILL.md`, the shared skills folder Codex reads. A file there that
172
+ flatbread did not write is left alone. `--no-mcp` skips the server and the skill.
173
+
174
+ `setup --dry-run` writes nothing. `setup --uninstall` removes the handlers, the MCP entry, the skill and
175
+ the hook, and puts a chained hook back byte for byte. `FLATBREAD_HOOK_DISABLED=1` stops every capture.
170
176
 
171
177
  `flatbread search <words>` answers from this machine's shared runs, its captured runs, then the
172
178
  site - the same text the MCP tool returns. Words are matched as typed, and by stem ("retry" finds
@@ -6,7 +6,11 @@
6
6
  (`internal/sources/windsurf.go`) and transcripts the way it reads Antigravity's
7
7
  (`internal/sources/antigravity.go`). `test/fixtures/antigravity/` holds its fixtures
8
8
  (`fixtures/registry/windsurf/cascade/`, `fixtures/registry/antigravity/`) and transcripts from
9
- `internal/sources/antigravity_toolcalls_test.go`.
9
+ `internal/sources/antigravity_toolcalls_test.go`. `src/adapters/codex.ts` reads Codex rollouts the way
10
+ `internal/sources/codex.go` does (exit lines, the event-stream copies, fork_context history), and
11
+ `test/fixtures/codex/rollout-2026-*.jsonl` are rollouts from `internal/sources/codex_test.go` and
12
+ `internal/sources/codex_fork_context_test.go`, and `rollout-2026-07-17T09-00-00-registry-codex.jsonl` is
13
+ `fixtures/registry/codex/`.
10
14
 
11
15
  ```
12
16
  MIT License
@@ -31,3 +35,69 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
35
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
36
  SOFTWARE.
33
37
  ```
38
+
39
+ ## entire (Entire Inc.)
40
+
41
+ `src/adapters/codex.ts` drops Codex's injected user turns with entire's anchored prefix list
42
+ (`transcript/injected_prompt.go`). `test/fixtures/codex/rollout-entire-full.jsonl` is
43
+ `transcript/testdata/codex_full.jsonl`; `rollout-entire-sample.jsonl` is the `sampleRollout` in
44
+ `cmd/entire/cli/agent/codex/transcript_test.go`.
45
+
46
+ ```
47
+ MIT License
48
+
49
+ Copyright (c) 2026 Entire Inc.
50
+
51
+ Permission is hereby granted, free of charge, to any person obtaining a copy
52
+ of this software and associated documentation files (the "Software"), to deal
53
+ in the Software without restriction, including without limitation the rights
54
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
55
+ copies of the Software, and to permit persons to whom the Software is
56
+ furnished to do so, subject to the following conditions:
57
+
58
+ The above copyright notice and this permission notice shall be included in all
59
+ copies or substantial portions of the Software.
60
+
61
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
66
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
67
+ SOFTWARE.
68
+ ```
69
+
70
+ ## opentraces
71
+
72
+ `src/adapters/codex.ts` takes the session's tokens from the last `token_count`'s
73
+ `info.total_token_usage`, as `src/opentraces/capture/codex_cli/parse.py` does.
74
+
75
+ ```
76
+ MIT License
77
+
78
+ Copyright (c) 2026 opentraces.ai contributors
79
+
80
+ Permission is hereby granted, free of charge, to any person obtaining a copy
81
+ of this software and associated documentation files (the "Software"), to deal
82
+ in the Software without restriction, including without limitation the rights
83
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
84
+ copies of the Software, and to permit persons to whom the Software is
85
+ furnished to do so, subject to the following conditions:
86
+
87
+ The above copyright notice and this permission notice shall be included in all
88
+ copies or substantial portions of the Software.
89
+
90
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
91
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
92
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
93
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
94
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
95
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
96
+ SOFTWARE.
97
+
98
+ ---
99
+
100
+ NOTE: Data contributed through the opentraces CLI to HuggingFace Hub is
101
+ licensed under CC-BY-4.0 by default, unless the contributor specifies
102
+ a different license for their personal dataset repository.
103
+ ```