faf-cli 8.8.0 → 8.10.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
@@ -70,7 +70,7 @@ pnpm dlx faf auto # pnpm — zero install
70
70
  brew install wolfe-jam/faf/faf-cli && faf auto # Homebrew (auto-taps)
71
71
  ```
72
72
 
73
- > `faf` with no arguments shows your project's score; `faf auto` detects and fills.
73
+ > `faf` with no arguments shows your project's score. `faf auto` fills what it detects in the repo, and suggests the goal and six W's for you to confirm in `faf go`.
74
74
 
75
75
  ---
76
76
 
@@ -82,8 +82,8 @@ bunx faf-cli git https://github.com/facebook/react
82
82
 
83
83
  # Your own project
84
84
  bunx faf-cli init # Create .faf
85
- bunx faf-cli auto # Fill every tech slot from the repo, then score
86
- bunx faf-cli go # Interactive interview to gold code
85
+ bunx faf-cli auto # Fill the tech slots from the repo, then score
86
+ bunx faf-cli go # Confirm the goal and six W's, suggested in gray
87
87
  ```
88
88
 
89
89
  ---
@@ -94,7 +94,7 @@ Run `faf` with no arguments:
94
94
 
95
95
  ![faf](./nelly.png)
96
96
 
97
- > **faf-cli dogfoods itself** — [project.faf](./project.faf) is source DNA; [CLAUDE.md](./CLAUDE.md) and [GEMINI.md](./GEMINI.md) are authored from it via `faf`. [AGENTS.md](./AGENTS.md) is the **BETTER** ops briefing (hand-kept for agents; `faf export --agents` still authors AGENTS.md for other repos).
97
+ > **faf-cli dogfoods itself** — [project.faf](./project.faf) is source DNA; [CLAUDE.md](./CLAUDE.md), [GEMINI.md](./GEMINI.md) and [AGENTS.md](./AGENTS.md) are authored from it via `faf export`; AGENTS.md keeps a hand-written section below faf's block.
98
98
 
99
99
  ---
100
100
 
@@ -102,17 +102,17 @@ Run `faf` with no arguments:
102
102
 
103
103
  | Command | What it does |
104
104
  |---------|--------------|
105
- | `faf init` | Create `project.faf` from your local project |
105
+ | `faf init` | Create `project.faf` from your local project; suggest the goal and six W's |
106
106
  | `faf git <url>` | Instant `.faf` from any GitHub repo (a shallow clone) |
107
- | `faf auto` | Detect stack, fill every slot it can, score |
108
- | `faf go` | Guided interview to fill the human-only slots |
107
+ | `faf auto` | Detect the stack, fill the slots it detects, score; suggest the goal and six W's |
108
+ | `faf go` | Fill the human slots: each suggestion in gray, Tab to edit, Enter to confirm |
109
109
  | `faf score` | Check AI-readiness (0–100%) |
110
110
  | `faf export` | Author `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursorrules` |
111
- | `faf sync` | `.faf` → `CLAUDE.md` (pull: Trophy-gated backfill) |
111
+ | `faf sync` | `.faf` → `CLAUDE.md`, one way (faf's block only) |
112
112
  | `faf memory` | `.fafm` soul ops — convert Claude memory, etch, recall, ls, show |
113
113
  | `faf diff` / `log` | Semantic context diff + score timeline across git history |
114
114
  | `faf hooks --install` | Pre-commit guard against context regression |
115
- | `faf taf setup` | Write the CI workflow that prints a Test Receipt for every run (JavaScript with Jest, Vitest or Bun; Python; Go) |
115
+ | `faf taf setup` | Write the CI workflow that prints a Test Receipt for every run (JavaScript with Jest, Vitest or Bun; Python; Go; Rust; Java with Maven or Gradle; .NET) |
116
116
  | `faf taf receipts` | Your Test Receipts in the terminal, newest first |
117
117
  | `faf compile` / `decompile` | `.faf` → `.fafb` **v2** sealed brick; `decompile` shows sections as JSON |
118
118
  | `faf check` | Validate a `.faf` file |
@@ -121,7 +121,7 @@ Run `faf` with no arguments:
121
121
 
122
122
  Run `faf --help` for the full command set and options.
123
123
 
124
- ### Memory (`.fafm`) — new in 7.2.0
124
+ ### Memory (`.fafm`)
125
125
 
126
126
  Portable agent memory in the IANA-registered [`.fafm`](https://www.iana.org/assignments/media-types/application/vnd.fafm+yaml) format. Same INTEROP as [claude-fafm-sdk 1.0](https://pypi.org/project/claude-fafm-sdk/).
127
127
 
@@ -135,160 +135,17 @@ faf memory etch "a durable fact" --id my-fact
135
135
  faf memory show
136
136
  ```
137
137
 
138
- ### What's New in v8.8.0 — The Polyglot Edition
138
+ ### What's New in v8.10.0 — The Human Slots Edition
139
139
 
140
- **`faf taf setup` writes the Test Receipt workflow for Rust, Java (Maven, Gradle) and .NET too: each run joins its reports into one JUnit file, and faf-taf-git counts it.**
140
+ **AI suggests, you confirm. faf no longer writes your project's goal or six W's: it suggests them, and you confirm each one in `faf go`.**
141
141
 
142
- - **Rust** (`Cargo.toml`): `cargo nextest run`, every test (`--no-fail-fast`), across the workspace. The workflow adds nextest's JUnit profile only when your repo has no nextest config.
143
- - **Java**: Maven (`pom.xml`) and Gradle (`build.gradle`, `settings.gradle`), with the wrapper when you have one. A failing module doesn't stop the others, and the per-class reports are joined into one file.
144
- - **.NET** (`.sln`, `.slnx`, `.csproj`, `.fsproj`): the JUnit logger is added in CI only, so your project files don't change. It installs the SDKs your projects target, and names the solution when there's more than one at the top.
145
- - **Proved in faf-cli's own CI**: for each language, a fixture with passing, failing and skipped tests runs the written recipe, and the receipt must match the runner's own counts.
142
+ - **Suggestions in gray.** `faf go` shows each suggestion with where it came from (`README.md § Why`, `package.json description`). Tab to edit, Enter to confirm, type to replace, `skip` to leave it empty. `faf init`, `faf auto` and `faf git` say how many are waiting.
143
+ - **Only facts are suggested.** Markup, link and label rows, greetings, install lines and fragments are rejected; a notice or callout (deprecated, sponsored by, `Warning:`…) is never the goal; a long first paragraph gives its first sentence, whole. The README leads the goal.
144
+ - **faf-facts.** The six W's ask for one line where every word earns its place. `how` is how it works; `when` is the stage it is at, and since when.
145
+ - **Breaking for library users:** `assembleFreshFaf`, `updateExistingFaf` and `authorFafFromRepo` return the goal and six W's empty. Files you already have are not changed.
146
+ - **`faf go` input.** Backspace removes a whole character (emoji, CJK), other questions use readline again, and piped answers are read in order.
146
147
 
147
- ### The Receipts Edition (8.7)
148
-
149
- **Your Test Receipts, in your terminal: `faf taf receipts` shows them, `taf setup` writes the recipe for JavaScript (Jest, Vitest, Bun), Python and Go, and every test run on your default branch gets one, red ones too.**
150
-
151
- A Test Receipt is one line of proof that your tests ran: when, the result, passed/total. [faf-taf-git](https://github.com/Wolfe-Jam/faf-taf-git) appends one to `.taf` on a `taf-receipts` branch for every CI run, so the record stays in git after the CI logs expire.
152
-
153
- - **`faf taf receipts`** shows them in your terminal, newest first, with a tally. `--limit`, `--json` and `--ref`. It reads git and never fetches or writes.
154
- - **`faf taf setup`** writes the workflow: JavaScript with Jest, Vitest or Bun, Python with pytest, and Go with gotestsum. Any other repo gets a placeholder to fill in.
155
- - **Red runs get a receipt too**, and the job still goes red. Only your default branch is recorded; pull requests run the tests and print none.
156
- - **Plain text when piped.** Colour shows only in a terminal; `NO_COLOR` and `FORCE_COLOR` are respected.
157
-
158
- ### The Birth Certificate Edition (8.6)
159
-
160
- **One birth certificate per project, protected: `init --new` rebuilds project.faf without touching it, `go` and `edit` record every climb, and `faf dna --json` shows the lineage.**
161
-
162
- `.faf-dna` is the project's birth certificate: its first score, recorded once, the way a baby's birth weight is. A project gets one. faf keeps it, and records what happens after.
163
-
164
- - **`faf init --new`** replaces a stale project.faf with a fresh one from the repo. `.faf-dna` stays exactly as it is.
165
- - **`faf go` and `faf edit` record every climb** on the DNA, alongside `faf auto` and `faf refresh`. `faf dna` shows the whole journey.
166
- - **`faf dna --json`** gives the lineage as data: birth, certificate, current score, growth, peak, every version, and any earlier lives.
167
- - **Gitignored? faf says so.** If `.faf-dna` is gitignored, a fresh clone loses it. `faf init` and `faf dna` name the rule. Put the reason in a `#` comment above it, and faf stays quiet.
168
- - **Protected, never reissued.** A `.faf-dna` faf didn't write is read and left as it is. faf no longer suggests replacing it.
169
-
170
- ### The Agent Skills Edition (8.5)
171
-
172
- **faf knows a skills repo when it sees one, and the skills types name their framework: `skills` is 10 slots, `skills-plugin` is 14.**
173
-
174
- - **`faf init` detects skills repos**: `SKILL.md` folders make a repo `skills`; add a Claude Code plugin manifest and it's `skills-plugin`. A CLI or library that ships a skill keeps its type.
175
- - **`skills`**: project + human, plus the framework (the skills format, such as Agent Skills or a Claude Code plugin).
176
- - **`skills-plugin`**: project + human + universal, plus the framework and the runtime.
177
- - **`faf auto` fills a slot the type adds**, even where an older file says `slotignored`.
178
- - **Check the skills themselves with [skills-ladder](https://www.npmjs.com/package/skills-ladder):** it rates each `SKILL.md` GOOD, BETTER or BEST. `npx skills-ladder .`
179
-
180
- ### The Skills Edition (8.4)
181
-
182
- FAF has known Skills for a while; we both speak YAML. Now it's official: FAF adds Skills to the CLI.
183
-
184
- **faf knows skills: a SKILL.md repo is `skills` (9 slots), one shipped as a plugin is `skills-plugin` (12).**
185
-
186
- ```yaml
187
- project:
188
- type: skills-plugin # or: skills
189
- ```
190
-
191
- - **`skills`**: plain-English instructions for AI, `SKILL.md` folders with no pipeline. Project + human context: 9 slots.
192
- - **`skills-plugin`**: skills published as a plugin, with a build and CI. Adds hosting, build and CI/CD: 12 slots.
193
- - **App-types are types of projects, not types of file.** Write the type's own name (`cli`, not `cli-tool`); see [What goes in a slot](docs/GUIDE.md).
194
- - **A .faf whose aliases expand too far** is now one line, not a stack trace.
195
-
196
- ### The Business Card Edition (8.3)
197
-
198
- **Business cards say what the repo is: a package can be a CLI or a library, from npm, PyPI or crates.io, and only an MCP server gets MCP cards.**
199
-
200
- ```bash
201
- npx faf-cli@latest card init --package pypi:my-lib --kind library
202
- ```
203
-
204
- - **`--kind mcp|cli|library`** says what `--package` is. `mcp` stays the default.
205
- - **`npm:`, `pypi:` and `crates:`** name the registry. A bare name is still npm.
206
- - **`--homepage <url>`** sets the business card's homepage.
207
- - **`faf cards` writes MCP cards only for an MCP server.** A CLI or a library gets its plain cards and a one-line reason.
208
- - **`faf init` offers the business card** when the repo has none: `next: 'faf card init'`. It writes nothing for it.
209
-
210
- ### The Ladder Edition (8.2)
211
-
212
- **One ladder for every card: agent.fafa builds the plain cards, and project.faf adds FAF's context.**
213
-
214
- | You have | `faf cards` gives you |
215
- |---|---|
216
- | `agent.fafa` (BETTER) | the plain cards its endpoints allow: A2A card, MCP Server Card, registry entry, AI Catalog and ARD rows |
217
- | + `project.faf` (BEST) | the same cards, with FAF's context in each |
218
-
219
- - **A card's identity comes from the `.fafa`.** An existing `server.json` keeps the name it was published under; renaming it takes `--force`.
220
- - **The pack projector writes the same cards as `faf cards`** (`projectPack`, `buildPack`).
221
- - **The full test suite runs on Windows** before every merge, alongside Ubuntu and macOS.
222
-
223
- ### The Always33+ Edition (8.1)
224
-
225
- **From nothing to listed in one command: `faf card init` asks seven questions and writes your agent.fafa, your AI Catalog entry and your ARD entry.**
226
-
227
- The same always-33 engine, plus cards.
228
-
229
- ```bash
230
- npx faf-cli@latest card init # seven questions → agent.fafa → A2A card, AI Catalog, ARD
231
- ```
232
-
233
- | You have | `faf cards` gives you | Rung |
234
- |---|---|---|
235
- | `agent.fafa` | A2A card, MCP Server Card, registry, AI Catalog, ARD (as its endpoints allow) | BETTER |
236
- | + `project.faf` | the same cards, with FAF context | BEST |
237
-
238
- - **Scripts ask nothing:** every answer is a flag (`--name`, `--domain`, `--url` or `--package`, `--skill`, `--example`, `--set-version`).
239
- - **Help says what each command touches,** with a "What touches what" footer and [docs.faf.one/side-effects](https://docs.faf.one/side-effects).
240
-
241
- ### The Always33 Edition (8.0)
242
-
243
- **One engine, one number: faf-cli v8 scores with the always-33 kernel — the same score faf-kernel, faf-rust-sdk and rust-faf-mcp give.**
244
-
245
- - **The always-33 engine.** Every `.faf` is scored against all 33 Mk4 slots by one Rust kernel (`faf-scoring-kernel` 3.0.0, WASM). Verified identical to the reference always-33 scorer on the `project.faf` of all 80 FAF repos.
246
- - **Your 21 slots, and the 12 enterprise slots in view.** faf-cli fills the 21 base slots. The 12 enterprise slots — infra, app, ops — are marked `slotignored` unless your app-type uses them, and `faf score` shows all 33.
247
- - **Upgrading from 7.x:** a `.faf` without the 12 enterprise markers now scores against 33, so its number can drop (21 filled = 64%). **Run `faf auto`** — it writes the markers and your score returns.
248
-
249
- ```text
250
- ✪ TROPHY 100% 21/21 slots — project.faf
251
- ● project.name
252
- …
253
- ● stack.cicd
254
- — stack.monorepo_tool: slotignored
255
- …
256
- — monorepo.remote_cache: slotignored
257
- ```
258
-
259
- **Recent sprint**
260
-
261
- - ✪ [8.8.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.8.0) The Polyglot Edition — `taf setup` for Rust, Java (Maven, Gradle) and .NET
262
- - ✪ [8.7.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.7.1) `taf setup` for node:test and mocha; Python test extras; colour follows `FORCE_COLOR` and stderr
263
- - ✪ [8.7.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.7.0) The Receipts Edition — `faf taf receipts`; `taf setup` for JavaScript, Python and Go; red runs get a receipt
264
- - ✪ [8.6.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.6.0) The Birth Certificate Edition — `init --new` keeps `.faf-dna`; `go`/`edit` record growth; `faf dna --json`
265
- - ✪ [8.5.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.5.0) The Agent Skills Edition — faf detects skills repos; `skills` (10) and `skills-plugin` (14) name their framework
266
- - ✪ [8.4.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.4.0) The Skills Edition — `skills` (9) and `skills-plugin` (12) app-types
267
- - ✪ [8.3.2](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.3.2) `faf check` warns when a key_files path no longer exists
268
- - ✪ [8.3.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.3.1) `faf cards` gives MCP cards to a project.faf alone only when its type is mcp
269
- - ✪ [8.3.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.3.0) The Business Card Edition — CLI, library or MCP server, from npm, PyPI or crates.io
270
- - ✪ [8.2.2](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.2.2) Markdown never writes project.faf — `sync` is one way, `recover` is gone
271
- - ✪ [8.2.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.2.1) Cards stay honest — `updatedAt` moves only on a change; whole http(s) URLs
272
- - ✪ [8.2.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.2.0) The Ladder Edition — one ladder for every card
273
- - ✪ [8.1.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.1.1) SvelteKit 3 read in full — kit, adapter, Vite 8
274
- - ✪ [8.1.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.1.0) The Always33+ Edition — from nothing to listed in one command
275
- - ✪ [8.0.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.0.1) pnpm installs work — faf-scoring-kernel from npm
276
- - ✪ [8.0.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.0.0) The Always33 Edition — one engine, one number
277
- - 🧱 [7.16.2](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.16.2) `faf compile` emits FAFb wire v2 — same bytes as the faf-fafb golden
278
- - 🧭 [7.16.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.16.1) `faf` back in step with `faf-cli`
279
- - 🧭 [7.16.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.16.0) The Discoverable Edition
280
- - 🎴 [7.15.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.15.0) The Pack Edition
281
- - 🛂 [7.14.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.14.0) The Passport Edition
282
- - 🛡️ [7.13.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.13.1) security: detection reads stay inside the project
283
- - 🤝 [7.13.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.13.0) The Co-Author Edition
284
- - 🧩 [7.12.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.12.0) The Open Renderers Edition
285
- - 🖥️ [7.11.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.11.0) The VS Code Edition
286
- - 📚 [7.10.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.10.0) The Full-Facts Edition
287
- - 🌱 [7.9.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.9.0) The Git-Flow Edition
288
- - 🎬 [7.8.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.8.0) The Projector Edition
289
- - 🐦 [7.7.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.7.0) The Swift Edition
290
- - 💎 [7.6.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.6.0) The Ruby Edition
291
- - ☕ [7.5.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.5.1) The JVM Edition
148
+ Earlier editions: [CHANGELOG.md](./CHANGELOG.md) · [Releases](https://github.com/Wolfe-Jam/faf-cli/releases)
292
149
 
293
150
  ---
294
151
 
@@ -324,8 +181,8 @@ Your own rules for the AI — *"use full words in identifiers," "use bun, not np
324
181
  ## Sync
325
182
 
326
183
  ```
327
- sync: .faf ──── 8ms ───→ CLAUDE.md (pull: Trophy-gated backfill)
328
- tri-sync: .faf ──── 8ms ───→ CLAUDE.md + Claude Code's MEMORY.md (Pro: faf's block only; Claude's notes kept)
184
+ sync: .faf ───→ CLAUDE.md (one way: faf's block only)
185
+ tri-sync: .faf ───→ CLAUDE.md + Claude Code's MEMORY.md (Pro: faf's block only; Claude's notes kept)
329
186
  ```
330
187
 
331
188
  ---
@@ -346,6 +203,8 @@ For a specific agent: [Grok, xAI & Cursor 👀](docs/faf-cli-for-agents.md) · [
346
203
 
347
204
  Pivotal releases — full history in [CHANGELOG.md](./CHANGELOG.md):
348
205
 
206
+ - **v8.10 — Human Slots** — AI suggests the goal and six W's; you confirm each one in `faf go`.
207
+ - **v8.9 — Write-Once** — a birth certificate that can't be reissued, checked against its birth commit.
349
208
  - **v8.0 — Always33** — one engine, one number: the same score everywhere.
350
209
  - **v7.1 — AGENTS.md** — `faf export --agents` authors a complete, non-destructive `AGENTS.md`.
351
210
  - **v7.0 — GIT** — context goes git-native: `faf diff` / `log` / `hooks`.
@@ -393,7 +252,7 @@ src/
393
252
  > **Robust. Reliable. Next-level WJTTC tested.** — The Foundation Edition.
394
253
 
395
254
  ```bash
396
- bun test # extensive WJTTC + e2e suite
255
+ npm test # extensive WJTTC + e2e suite
397
256
  ```
398
257
 
399
258
  - **WJTTC Build Resilience** — regression classes locked.