faf 8.9.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 +20 -20
- package/dist/cli.js +338 -331
- package/dist/cli.js.map +1 -1
- package/dist/core/dot-path.d.ts +23 -0
- package/dist/core/interview.d.ts +18 -6
- package/dist/core/suggest.d.ts +55 -0
- package/dist/detect/assemble.d.ts +4 -2
- package/dist/detect/relentless.d.ts +3 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +177 -176
- package/dist/index.js.map +1 -1
- package/dist/interrogate/readme.d.ts +9 -0
- package/dist/interrogate/types.d.ts +34 -0
- package/package.json +2 -2
- package/project.faf +5 -5
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
|
|
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
|
|
86
|
-
bunx faf-cli go #
|
|
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
|

|
|
96
96
|
|
|
97
|
-
> **faf-cli dogfoods itself** — [project.faf](./project.faf) is source DNA; [CLAUDE.md](./CLAUDE.md)
|
|
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
|
|
108
|
-
| `faf go` |
|
|
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
|
|
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 |
|
|
@@ -135,16 +135,15 @@ faf memory etch "a durable fact" --id my-fact
|
|
|
135
135
|
faf memory show
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
### What's New in v8.
|
|
138
|
+
### What's New in v8.10.0 — The Human Slots Edition
|
|
139
139
|
|
|
140
|
-
**
|
|
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
|
-
- **
|
|
143
|
-
-
|
|
144
|
-
- **
|
|
145
|
-
- **
|
|
146
|
-
-
|
|
147
|
-
- **Cleaned up.** Help flags that did nothing are gone, `init --output` keeps `.faf-dna` beside its file, `card init` won't overwrite a card written during its questions, and `faf wjttc` sees tiers on `.skipIf` / `.each` blocks.
|
|
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.
|
|
148
147
|
|
|
149
148
|
Earlier editions: [CHANGELOG.md](./CHANGELOG.md) · [Releases](https://github.com/Wolfe-Jam/faf-cli/releases)
|
|
150
149
|
|
|
@@ -182,8 +181,8 @@ Your own rules for the AI — *"use full words in identifiers," "use bun, not np
|
|
|
182
181
|
## Sync
|
|
183
182
|
|
|
184
183
|
```
|
|
185
|
-
sync: .faf
|
|
186
|
-
tri-sync: .faf
|
|
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)
|
|
187
186
|
```
|
|
188
187
|
|
|
189
188
|
---
|
|
@@ -204,6 +203,7 @@ For a specific agent: [Grok, xAI & Cursor 👀](docs/faf-cli-for-agents.md) · [
|
|
|
204
203
|
|
|
205
204
|
Pivotal releases — full history in [CHANGELOG.md](./CHANGELOG.md):
|
|
206
205
|
|
|
206
|
+
- **v8.10 — Human Slots** — AI suggests the goal and six W's; you confirm each one in `faf go`.
|
|
207
207
|
- **v8.9 — Write-Once** — a birth certificate that can't be reissued, checked against its birth commit.
|
|
208
208
|
- **v8.0 — Always33** — one engine, one number: the same score everywhere.
|
|
209
209
|
- **v7.1 — AGENTS.md** — `faf export --agents` authors a complete, non-destructive `AGENTS.md`.
|
|
@@ -252,7 +252,7 @@ src/
|
|
|
252
252
|
> **Robust. Reliable. Next-level WJTTC tested.** — The Foundation Edition.
|
|
253
253
|
|
|
254
254
|
```bash
|
|
255
|
-
|
|
255
|
+
npm test # extensive WJTTC + e2e suite
|
|
256
256
|
```
|
|
257
257
|
|
|
258
258
|
- **WJTTC Build Resilience** — regression classes locked.
|