@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 +19 -7
- package/dist/cli.cjs +3437 -3311
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +1932 -1807
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +198 -145
- package/dist/index.d.ts +198 -145
- package/dist/index.js +1937 -1812
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
-
##
|
|
9
|
+
## The replay loop
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|