@maind-dev/mcp-bridge 0.97.0 → 0.99.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
@@ -179,7 +179,7 @@ here; the standalone `maind-hook` binary they came from is retired (ADR-245).
179
179
  | `on-tool-use` | `PreToolUse` | Count tool calls; warn on stderr when token usage crosses your handoff thresholds (ADR-039) |
180
180
  | `on-prompt-context` | `UserPromptSubmit` | Context at the prompt: matching project conventions and the file:line of symbols the prompt names — matched locally (see below) |
181
181
  | `on-read-context` | `PreToolUse` (`Read`) | Context at a file read: who calls the file's symbols from other files, who imports it, and an outline when the Read covers only part of it |
182
- | `on-session-end` | `Stop` | Post session communication analytics; close and flush the tracked session |
182
+ | `on-session-end` | `Stop` | Close the tracked session and return at once; a detached run then posts the session analytics and cost slices and flushes the Tier-3 counters (since 0.98.0, see below) |
183
183
  | `sync-config` | — | Pull your context thresholds from the server |
184
184
  | `flush` | — | Post queued Tier-3 metrics now |
185
185
  | `status` | — | Show pairing, queued metrics and active thresholds |
@@ -189,6 +189,25 @@ Everything these post is gated server-side by Tier-3 consent
189
189
  Thresholds are set at <https://app.maind.dev/settings>; run `sync-config`
190
190
  afterwards on each machine.
191
191
 
192
+ **The Stop hook does not wait on the network (since 0.98.0).** It closes the
193
+ turn's counters, writes one small job file per session under
194
+ `~/.maind/session-end/` and starts a detached run — the turn ends in about a
195
+ tenth of a second. The run reads the transcript, fetches the attribution
196
+ context, posts (one retry on a timeout, a network error or a 5xx) and flushes
197
+ the counters, and appends one line per run to `~/.maind/session-end/runs.jsonl`
198
+ — session id, timings and outcome, never content — so a failed upload is
199
+ visible there instead of silent. `maind sessions backfill` re-sends anything
200
+ that did not arrive.
201
+
202
+ **Checkout memory (opt-in, asked by `install` and `install --hooks-only`).**
203
+ With your consent the repo-health and Stop hooks record the root directory and
204
+ project key of each checkout you edit in `~/.maind/checkout-roots.json`, so a
205
+ feature worktree removed before the session's last turn keeps its cost on the
206
+ right repository. The file never leaves the machine; `{"checkout_memory":
207
+ false}` in the bridge config switches it off. Without an answer it stays off —
208
+ 0.90.0–0.97.0 kept the file without asking, and declining at the prompt removes
209
+ it.
210
+
192
211
  ### Context at the moment (since 0.89.0)
193
212
 
194
213
  Two hooks deliver context when it matters instead of only at session start