faf-cli 8.7.1 → 8.9.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 +11 -142
- package/dist/cli.js +301 -267
- package/dist/cli.js.map +1 -263
- package/dist/core/faf-dna.d.ts +24 -22
- package/dist/core/safe-write.d.ts +3 -1
- package/dist/index.js +106 -106
- package/dist/index.js.map +1 -143
- package/dist/interop/faf.d.ts +1 -1
- package/dist/pack.js.map +1 -60
- package/package.json +7 -6
- package/project.faf +4 -4
package/README.md
CHANGED
|
@@ -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`)
|
|
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,150 +135,18 @@ 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.9.0 — The Write-Once Edition
|
|
139
139
|
|
|
140
|
-
**
|
|
140
|
+
**A birth certificate that can't be reissued. `faf dna --verify` checks it against the commit that first saved it. Plus a lighter install, and every command documented.**
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
- **Write-once.** `.faf-dna`, your project's birth certificate, is written once. Nothing in faf replaces it, and `faf init --force` now works like `--new`: a fresh `project.faf`, the certificate kept.
|
|
143
|
+
- **`faf dna --verify`** compares the certificate with the commit that first added `.faf-dna`. Exit 0 if they match, 1 if they differ, 2 if there is nothing to check against yet. `faf init` and `faf dna` tell you when it isn't committed yet, with the command to run. faf never commits for you.
|
|
144
|
+
- **A lighter install.** The package is under half its old size (2.35 MB unpacked, was 5.34 MB), and npm no longer installs an unused 6.4 MB copy of the Anthropic SDK.
|
|
145
|
+
- **Every command documented**: the ones the README doesn't cover are on [docs.faf.one/more-commands](https://docs.faf.one/more-commands).
|
|
146
|
+
- **Named skips.** `faf taf receipts` shows `+N newly skipped` when a receipt names a test that wasn't skipped before (faf-taf-git 2.5.0).
|
|
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.
|
|
143
148
|
|
|
144
|
-
|
|
145
|
-
- **`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.
|
|
146
|
-
- **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.
|
|
147
|
-
- **Plain text when piped.** Colour shows only in a terminal; `NO_COLOR` and `FORCE_COLOR` are respected.
|
|
148
|
-
|
|
149
|
-
### The Birth Certificate Edition (8.6)
|
|
150
|
-
|
|
151
|
-
**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.**
|
|
152
|
-
|
|
153
|
-
`.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.
|
|
154
|
-
|
|
155
|
-
- **`faf init --new`** replaces a stale project.faf with a fresh one from the repo. `.faf-dna` stays exactly as it is.
|
|
156
|
-
- **`faf go` and `faf edit` record every climb** on the DNA, alongside `faf auto` and `faf refresh`. `faf dna` shows the whole journey.
|
|
157
|
-
- **`faf dna --json`** gives the lineage as data: birth, certificate, current score, growth, peak, every version, and any earlier lives.
|
|
158
|
-
- **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.
|
|
159
|
-
- **Protected, never reissued.** A `.faf-dna` faf didn't write is read and left as it is. faf no longer suggests replacing it.
|
|
160
|
-
|
|
161
|
-
### The Agent Skills Edition (8.5)
|
|
162
|
-
|
|
163
|
-
**faf knows a skills repo when it sees one, and the skills types name their framework: `skills` is 10 slots, `skills-plugin` is 14.**
|
|
164
|
-
|
|
165
|
-
- **`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.
|
|
166
|
-
- **`skills`**: project + human, plus the framework (the skills format, such as Agent Skills or a Claude Code plugin).
|
|
167
|
-
- **`skills-plugin`**: project + human + universal, plus the framework and the runtime.
|
|
168
|
-
- **`faf auto` fills a slot the type adds**, even where an older file says `slotignored`.
|
|
169
|
-
- **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 .`
|
|
170
|
-
|
|
171
|
-
### The Skills Edition (8.4)
|
|
172
|
-
|
|
173
|
-
FAF has known Skills for a while; we both speak YAML. Now it's official: FAF adds Skills to the CLI.
|
|
174
|
-
|
|
175
|
-
**faf knows skills: a SKILL.md repo is `skills` (9 slots), one shipped as a plugin is `skills-plugin` (12).**
|
|
176
|
-
|
|
177
|
-
```yaml
|
|
178
|
-
project:
|
|
179
|
-
type: skills-plugin # or: skills
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
- **`skills`**: plain-English instructions for AI, `SKILL.md` folders with no pipeline. Project + human context: 9 slots.
|
|
183
|
-
- **`skills-plugin`**: skills published as a plugin, with a build and CI. Adds hosting, build and CI/CD: 12 slots.
|
|
184
|
-
- **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).
|
|
185
|
-
- **A .faf whose aliases expand too far** is now one line, not a stack trace.
|
|
186
|
-
|
|
187
|
-
### The Business Card Edition (8.3)
|
|
188
|
-
|
|
189
|
-
**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.**
|
|
190
|
-
|
|
191
|
-
```bash
|
|
192
|
-
npx faf-cli@latest card init --package pypi:my-lib --kind library
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
- **`--kind mcp|cli|library`** says what `--package` is. `mcp` stays the default.
|
|
196
|
-
- **`npm:`, `pypi:` and `crates:`** name the registry. A bare name is still npm.
|
|
197
|
-
- **`--homepage <url>`** sets the business card's homepage.
|
|
198
|
-
- **`faf cards` writes MCP cards only for an MCP server.** A CLI or a library gets its plain cards and a one-line reason.
|
|
199
|
-
- **`faf init` offers the business card** when the repo has none: `next: 'faf card init'`. It writes nothing for it.
|
|
200
|
-
|
|
201
|
-
### The Ladder Edition (8.2)
|
|
202
|
-
|
|
203
|
-
**One ladder for every card: agent.fafa builds the plain cards, and project.faf adds FAF's context.**
|
|
204
|
-
|
|
205
|
-
| You have | `faf cards` gives you |
|
|
206
|
-
|---|---|
|
|
207
|
-
| `agent.fafa` (BETTER) | the plain cards its endpoints allow: A2A card, MCP Server Card, registry entry, AI Catalog and ARD rows |
|
|
208
|
-
| + `project.faf` (BEST) | the same cards, with FAF's context in each |
|
|
209
|
-
|
|
210
|
-
- **A card's identity comes from the `.fafa`.** An existing `server.json` keeps the name it was published under; renaming it takes `--force`.
|
|
211
|
-
- **The pack projector writes the same cards as `faf cards`** (`projectPack`, `buildPack`).
|
|
212
|
-
- **The full test suite runs on Windows** before every merge, alongside Ubuntu and macOS.
|
|
213
|
-
|
|
214
|
-
### The Always33+ Edition (8.1)
|
|
215
|
-
|
|
216
|
-
**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.**
|
|
217
|
-
|
|
218
|
-
The same always-33 engine, plus cards.
|
|
219
|
-
|
|
220
|
-
```bash
|
|
221
|
-
npx faf-cli@latest card init # seven questions → agent.fafa → A2A card, AI Catalog, ARD
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
| You have | `faf cards` gives you | Rung |
|
|
225
|
-
|---|---|---|
|
|
226
|
-
| `agent.fafa` | A2A card, MCP Server Card, registry, AI Catalog, ARD (as its endpoints allow) | BETTER |
|
|
227
|
-
| + `project.faf` | the same cards, with FAF context | BEST |
|
|
228
|
-
|
|
229
|
-
- **Scripts ask nothing:** every answer is a flag (`--name`, `--domain`, `--url` or `--package`, `--skill`, `--example`, `--set-version`).
|
|
230
|
-
- **Help says what each command touches,** with a "What touches what" footer and [docs.faf.one/side-effects](https://docs.faf.one/side-effects).
|
|
231
|
-
|
|
232
|
-
### The Always33 Edition (8.0)
|
|
233
|
-
|
|
234
|
-
**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.**
|
|
235
|
-
|
|
236
|
-
- **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.
|
|
237
|
-
- **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.
|
|
238
|
-
- **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.
|
|
239
|
-
|
|
240
|
-
```text
|
|
241
|
-
✪ TROPHY 100% 21/21 slots — project.faf
|
|
242
|
-
● project.name
|
|
243
|
-
…
|
|
244
|
-
● stack.cicd
|
|
245
|
-
— stack.monorepo_tool: slotignored
|
|
246
|
-
…
|
|
247
|
-
— monorepo.remote_cache: slotignored
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
**Recent sprint**
|
|
251
|
-
|
|
252
|
-
- ✪ [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
|
|
253
|
-
- ✪ [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
|
|
254
|
-
- ✪ [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`
|
|
255
|
-
- ✪ [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
|
|
256
|
-
- ✪ [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
|
|
257
|
-
- ✪ [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
|
|
258
|
-
- ✪ [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
|
|
259
|
-
- ✪ [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
|
|
260
|
-
- ✪ [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
|
|
261
|
-
- ✪ [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
|
|
262
|
-
- ✪ [8.2.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.2.0) The Ladder Edition — one ladder for every card
|
|
263
|
-
- ✪ [8.1.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.1.1) SvelteKit 3 read in full — kit, adapter, Vite 8
|
|
264
|
-
- ✪ [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
|
|
265
|
-
- ✪ [8.0.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.0.1) pnpm installs work — faf-scoring-kernel from npm
|
|
266
|
-
- ✪ [8.0.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v8.0.0) The Always33 Edition — one engine, one number
|
|
267
|
-
- 🧱 [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
|
|
268
|
-
- 🧭 [7.16.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.16.1) `faf` back in step with `faf-cli`
|
|
269
|
-
- 🧭 [7.16.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.16.0) The Discoverable Edition
|
|
270
|
-
- 🎴 [7.15.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.15.0) The Pack Edition
|
|
271
|
-
- 🛂 [7.14.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.14.0) The Passport Edition
|
|
272
|
-
- 🛡️ [7.13.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.13.1) security: detection reads stay inside the project
|
|
273
|
-
- 🤝 [7.13.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.13.0) The Co-Author Edition
|
|
274
|
-
- 🧩 [7.12.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.12.0) The Open Renderers Edition
|
|
275
|
-
- 🖥️ [7.11.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.11.0) The VS Code Edition
|
|
276
|
-
- 📚 [7.10.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.10.0) The Full-Facts Edition
|
|
277
|
-
- 🌱 [7.9.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.9.0) The Git-Flow Edition
|
|
278
|
-
- 🎬 [7.8.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.8.0) The Projector Edition
|
|
279
|
-
- 🐦 [7.7.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.7.0) The Swift Edition
|
|
280
|
-
- 💎 [7.6.0](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.6.0) The Ruby Edition
|
|
281
|
-
- ☕ [7.5.1](https://github.com/Wolfe-Jam/faf-cli/releases/tag/v7.5.1) The JVM Edition
|
|
149
|
+
Earlier editions: [CHANGELOG.md](./CHANGELOG.md) · [Releases](https://github.com/Wolfe-Jam/faf-cli/releases)
|
|
282
150
|
|
|
283
151
|
---
|
|
284
152
|
|
|
@@ -336,6 +204,7 @@ For a specific agent: [Grok, xAI & Cursor 👀](docs/faf-cli-for-agents.md) · [
|
|
|
336
204
|
|
|
337
205
|
Pivotal releases — full history in [CHANGELOG.md](./CHANGELOG.md):
|
|
338
206
|
|
|
207
|
+
- **v8.9 — Write-Once** — a birth certificate that can't be reissued, checked against its birth commit.
|
|
339
208
|
- **v8.0 — Always33** — one engine, one number: the same score everywhere.
|
|
340
209
|
- **v7.1 — AGENTS.md** — `faf export --agents` authors a complete, non-destructive `AGENTS.md`.
|
|
341
210
|
- **v7.0 — GIT** — context goes git-native: `faf diff` / `log` / `hooks`.
|