@fern-api/replay 0.15.0 → 0.15.2

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
@@ -4,15 +4,27 @@ Automatically preserves SDK customizations across Fern regenerations.
4
4
 
5
5
  ## What it does
6
6
 
7
- Fern Replay detects user edits to generated SDK code, stores them as patches, and re-applies them after each regeneration using 3-way merge. This means your customizations survive `fern generate` without manual intervention.
7
+ Fern Replay detects your edits to generated SDK code, stores them as patches in `.fern/replay.lock`, and re-applies them after each regeneration using 3-way merge. Your customizations survive `fern generate` without manual intervention.
8
8
 
9
- ## Pipeline
9
+ ## The replay loop
10
10
 
11
- 1. **Detect** Find commits since last generation
12
- 2. **Store** — Save patches to `replay.lock`
13
- 3. **Generate** — Run generator (overwrites all)
14
- 4. **Replay** — Apply patches via 3-way merge
15
- 5. **Commit** — Commit the merged result (or surface conflicts)
11
+ Three phases. The generator runs between **detect** and **apply**, overwriting everything in the SDK directory.
12
+
13
+ 1. **Detect** — find new customizations in the customer's git history since the last generation
14
+ 2. **Apply** — put them back onto the freshly generated code via 3-way merge
15
+ 3. **Commit** — record the result as a `[fern-replay]` commit on top of the `[fern-generated]` one
16
+
17
+ ## Vocabulary
18
+
19
+ The team's canonical vocabulary — *customization*, *patch*, *generation*, the three merge sides, the patch lifecycle verbs — lives in [`CONTEXT.md`](./CONTEXT.md).
20
+
21
+ ## Documentation
22
+
23
+ - [`CONTEXT.md`](./CONTEXT.md) — domain language and team voice
24
+ - [`docs/architecture.md`](./docs/architecture.md) — module structure, design decisions, integration with `fern/fern`
25
+ - [`docs/reference.md`](./docs/reference.md) — types, customer flows, CLI commands, key algorithms
26
+ - [`docs/known-divergences.md`](./docs/known-divergences.md) — places where multiple implementations exist intentionally
27
+ - [`docs/migration-guide.md`](./docs/migration-guide.md) — upgrade and migration notes
16
28
 
17
29
  ## Install
18
30