faf-cli 7.10.1 → 7.12.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 +13 -15
- package/dist/cli.js +216 -214
- package/dist/cli.js.map +23 -21
- package/dist/core/drift.d.ts +55 -0
- package/dist/detect/assemble.d.ts +9 -0
- package/dist/detect/enrich.d.ts +11 -0
- package/dist/index.d.ts +15 -4
- package/dist/index.js +130 -118
- package/dist/index.js.map +16 -7
- package/dist/interop/agents.d.ts +15 -0
- package/dist/interop/cards.d.ts +4 -1
- package/dist/interop/claude.d.ts +35 -0
- package/dist/interop/copilot-instructions.d.ts +26 -0
- package/dist/interop/cursorrules.d.ts +5 -0
- package/dist/interop/gemini.d.ts +12 -0
- package/dist/interop/inject.d.ts +45 -0
- package/dist/interop/labels.d.ts +26 -0
- package/dist/interop/projecthtml.d.ts +3 -1
- package/dist/interop/servercard.d.ts +4 -2
- package/package.json +1 -1
- package/project.faf +3 -3
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ detected from your real stack, scored, and versioned with your code. No drift. N
|
|
|
19
19
|
[](https://www.iana.org/assignments/media-types/application/vnd.faf+yaml)
|
|
20
20
|
[](https://www.iana.org/assignments/media-types/application/vnd.fafm+yaml)
|
|
21
21
|
[](https://www.iana.org/assignments/media-types/application/vnd.fafa+yaml)
|
|
22
|
+
[](https://github.com/hesreallyhim/awesome-claude-code)
|
|
22
23
|
[](https://www.npmjs.com/package/faf-cli)
|
|
23
24
|
[](https://www.npmjs.com/package/faf-cli)
|
|
24
25
|
|
|
@@ -131,33 +132,30 @@ faf memory etch "a durable fact" --id my-fact
|
|
|
131
132
|
faf memory show
|
|
132
133
|
```
|
|
133
134
|
|
|
134
|
-
### What's New in v7.
|
|
135
|
+
### What's New in v7.12.0 — The Open Renderers Edition
|
|
135
136
|
|
|
136
|
-
|
|
137
|
+
**faf-cli opens its renderers, injector and `faf auto` update chain as public exports — consumers compose instead of port — and `faf export --agents` is idempotent again: one block, every run.**
|
|
137
138
|
|
|
138
|
-
```
|
|
139
|
-
|
|
139
|
+
```ts
|
|
140
|
+
import { renderAgentsMd, enrichFromRepo, injectFafBlock, updateExistingFaf, writeFaf } from 'faf-cli';
|
|
140
141
|
```
|
|
141
142
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
- **`
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
- **`security`** — from `.env.example`
|
|
148
|
-
|
|
149
|
-
Every slot is backed by a file you can open. The README still fills `goal` and the 6 Ws — the human story a manifest doesn't hold.
|
|
150
|
-
|
|
151
|
-
**7.10.1** — a repo that opens with a `> ⚠️ Nightly release…` blockquote or a `Docs · Blog · Discord` nav row no longer has that line seed `human_context.what`; the first real prose paragraph wins.
|
|
143
|
+
- **Renderers are public** — `renderAgentsMd` · `renderGeminiMd` · `renderCursorrules` · `renderClaudeMd` · `renderCopilotInstructions` and their `write*` pairs. An MCP server or an editor extension writes the same bytes `faf export` writes, instead of carrying its own copy that drifts.
|
|
144
|
+
- **`enrichFromRepo(dir, data)`** — the repo-facts step `faf export --agents` runs first (commands, key files, secrets location) is exported too. Hand-authored values win; detection fills the gaps.
|
|
145
|
+
- **`updateExistingFaf(dir, existing)`** — the exact chain `faf auto` runs on an existing `project.faf`: existing wins, then interrogated → detected → Turbo-Cat → Relentless fill the empties. `faf auto` itself now calls it. `writeFaf` / `serializeFaf` write the file the way faf-cli does.
|
|
146
|
+
- **One injector, one rule** — `injectFafBlock` / `findFafBlock` locate the managed block by whole marker lines at column 0. Fenced examples are skipped, an unbalanced fence inside the block cannot hide the end marker, CRLF and BOM survive. A block that lost its end marker is prefixed, never overwritten.
|
|
147
|
+
- **Fixed: `faf export --agents` stacked its own output.** 7.1.4–7.11.0 quoted the marker tokens in prose and matched them as substrings, so every re-run appended the old block's tail (58 → 107 → 156 lines). Fixed at both ends; a file already stacked is repaired on its next export.
|
|
152
148
|
|
|
153
149
|
**Recent sprint**
|
|
154
150
|
|
|
151
|
+
- 🧩 [7.12.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.12.0) The Open Renderers Edition
|
|
152
|
+
- 🖥️ [7.11.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.11.0) The VS Code Edition
|
|
153
|
+
- 📚 [7.10.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.10.0) The Full-Facts Edition
|
|
155
154
|
- 🌱 [7.9.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.9.0) The Git-Flow Edition
|
|
156
155
|
- 🎬 [7.8.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.8.0) The Projector Edition
|
|
157
156
|
- 🐦 [7.7.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.7.0) The Swift Edition
|
|
158
157
|
- 💎 [7.6.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.6.0) The Ruby Edition
|
|
159
158
|
- ☕ [7.5.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.5.1) The JVM Edition
|
|
160
|
-
- 💠 [7.4.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.4.0) The C# Edition
|
|
161
159
|
|
|
162
160
|
---
|
|
163
161
|
|