faf-cli 4.2.2 → 4.3.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 +266 -90
- package/assets/project-faf-screenshot.png +0 -0
- package/dist/commands/git.d.ts.map +1 -1
- package/dist/commands/git.js +9 -7
- package/dist/commands/git.js.map +1 -1
- package/dist/github/current-score-calculator.d.ts +15 -0
- package/dist/github/current-score-calculator.d.ts.map +1 -0
- package/dist/github/current-score-calculator.js +125 -0
- package/dist/github/current-score-calculator.js.map +1 -0
- package/dist/github/faf-git-generator.d.ts +58 -0
- package/dist/github/faf-git-generator.d.ts.map +1 -0
- package/dist/github/faf-git-generator.js +557 -0
- package/dist/github/faf-git-generator.js.map +1 -0
- package/dist/github/github-extractor.d.ts +4 -0
- package/dist/github/github-extractor.d.ts.map +1 -1
- package/dist/github/github-extractor.js +27 -0
- package/dist/github/github-extractor.js.map +1 -1
- package/dist/github/repo-selector.d.ts +2 -2
- package/dist/github/repo-selector.d.ts.map +1 -1
- package/dist/github/repo-selector.js +30 -23
- package/dist/github/repo-selector.js.map +1 -1
- package/dist/utils/slot-counter.d.ts +56 -0
- package/dist/utils/slot-counter.d.ts.map +1 -0
- package/dist/utils/slot-counter.js +100 -0
- package/dist/utils/slot-counter.js.map +1 -0
- package/dist/utils/yaml-generator.d.ts.map +1 -1
- package/dist/utils/yaml-generator.js +3 -7
- package/dist/utils/yaml-generator.js.map +1 -1
- package/package.json +3 -1
- package/project.faf +5 -9
package/README.md
CHANGED
|
@@ -28,35 +28,59 @@ At 100% AI Readiness, AI stops guessing and starts knowing. Live bi-sync between
|
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
<p align="center">
|
|
32
|
+
<img src="https://raw.githubusercontent.com/Wolfe-Jam/faf-cli/main/assets/project-faf-screenshot.png" alt="project.faf in file listing" width="600" />
|
|
33
|
+
</p>
|
|
32
34
|
|
|
33
|
-
|
|
34
|
-
- AI re-discovers your project (costs tokens)
|
|
35
|
-
- AI asks questions you've answered before (costs time)
|
|
36
|
-
- AI makes wrong assumptions (costs rework)
|
|
37
|
-
- Context drifts session to session (costs trust)
|
|
35
|
+
<p align="center"><em>Just another file helping you code.</em></p>
|
|
38
36
|
|
|
39
|
-
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 📋 The 6 Ws - Quick Reference
|
|
40
|
+
|
|
41
|
+
Every README should answer these questions. Here's ours:
|
|
42
|
+
|
|
43
|
+
| Question | Answer |
|
|
44
|
+
|----------|--------|
|
|
45
|
+
| **👥 WHO** is this for? | Developers using AI coding assistants (Claude, Gemini, Cursor, Grok, ChatGPT) |
|
|
46
|
+
| **📦 WHAT** is it? | The package.json for AI context - IANA-registered format |
|
|
47
|
+
| **🌍 WHERE** does it work? | Everywhere AI needs context (Claude Code, Gemini CLI, Cursor, etc.) |
|
|
48
|
+
| **🎯 WHY** do you need it? | 100% context (AI-scored), persists forever, bi-syncs automatically - saves $1000s/developer |
|
|
49
|
+
| **⏰ WHEN** should you use it? | New projects (day one), existing projects (now), exploring repos (instantly) |
|
|
50
|
+
| **🚀 HOW** does it work? | `npx faf-cli git <url>` - No install, no clone, 2 seconds |
|
|
51
|
+
|
|
52
|
+
**For AI:** Read the detailed sections below for full context.
|
|
53
|
+
**For humans:** Use this pattern in YOUR README. Answer these 6 questions clearly.
|
|
40
54
|
|
|
41
55
|
---
|
|
42
56
|
|
|
43
|
-
##
|
|
57
|
+
## 👥 WHO is this for?
|
|
44
58
|
|
|
45
|
-
|
|
46
|
-
🏆 Congrats, your project is optimized for AI.
|
|
59
|
+
**Built for developers working with AI coding assistants:**
|
|
47
60
|
|
|
48
|
-
|
|
49
|
-
|
|
61
|
+
- Full-stack developers using Claude, Cursor, Gemini CLI, or ChatGPT
|
|
62
|
+
- Engineering teams collaborating on AI-augmented projects
|
|
63
|
+
- Solo developers tired of re-explaining context every session
|
|
64
|
+
- Open source maintainers wanting contributors to onboard instantly
|
|
65
|
+
- Anyone building with TypeScript, React, Python, Node.js, or modern frameworks
|
|
50
66
|
|
|
51
|
-
|
|
52
|
-
- AI knows your stack, goals, and conventions
|
|
53
|
-
- Zero clarifying questions needed
|
|
54
|
-
- Context persists across sessions
|
|
55
|
-
- Drift is impossible — the foundation doesn't move
|
|
67
|
+
If you use AI to code, `project.faf` saves you time and tokens. Every project. Every session.
|
|
56
68
|
|
|
57
69
|
---
|
|
58
70
|
|
|
59
|
-
##
|
|
71
|
+
## 📦 WHAT is project.faf?
|
|
72
|
+
|
|
73
|
+
**The package.json for AI context.** Just another file in your project.
|
|
74
|
+
|
|
75
|
+
Like `package.json` tells npm about dependencies, `project.faf` tells AI about your project DNA:
|
|
76
|
+
- **Your stack:** React + TypeScript + Vite
|
|
77
|
+
- **Your goals:** What you're building and why
|
|
78
|
+
- **Your conventions:** How your team works
|
|
79
|
+
- **Your context:** The information only YOU know
|
|
80
|
+
|
|
81
|
+
**IANA-registered format:** `application/vnd.faf+yaml` — An official standard, not just another .md file.
|
|
82
|
+
|
|
83
|
+
### 💎 The Math
|
|
60
84
|
|
|
61
85
|
| Without `project.faf` | With `project.faf` |
|
|
62
86
|
|-----------------------|-------------------|
|
|
@@ -69,38 +93,120 @@ At 100% AI Readiness:
|
|
|
69
93
|
|
|
70
94
|
---
|
|
71
95
|
|
|
72
|
-
##
|
|
96
|
+
## 🌍 WHERE does it work?
|
|
73
97
|
|
|
74
|
-
**
|
|
75
|
-
- Full-stack developers using Claude, Cursor, Gemini CLI, or ChatGPT
|
|
76
|
-
- Engineering teams collaborating on AI-augmented projects
|
|
77
|
-
- Solo developers tired of re-explaining context every session
|
|
78
|
-
- Open source maintainers wanting contributors to onboard instantly
|
|
79
|
-
- Anyone building with TypeScript, React, Python, Node.js, or modern frameworks
|
|
98
|
+
**Everywhere AI needs context:**
|
|
80
99
|
|
|
81
|
-
|
|
100
|
+
### Official Integrations
|
|
101
|
+
- **[Claude Code](https://claude.ai/download)** (Anthropic) — Bi-sync with CLAUDE.md
|
|
102
|
+
- **[Gemini CLI](https://github.com/google/generative-ai-cli)** (Google) — Import/export GEMINI.md
|
|
103
|
+
- **[Antigravity IDE](https://antigravityide.com)** (Google) — Global config support
|
|
104
|
+
- **[Conductor Extension](https://chromewebstore.google.com/detail/conductor)** (Google) — conductor/ directory sync
|
|
105
|
+
|
|
106
|
+
### Works With
|
|
107
|
+
- Cursor, Cline, Windsurf, any AI coding assistant
|
|
108
|
+
- ChatGPT, Claude Desktop, Gemini chat interfaces
|
|
109
|
+
- CI/CD pipelines, automation scripts, build tools
|
|
110
|
+
|
|
111
|
+
### Ecosystem
|
|
112
|
+
- **[MCPaaS](https://mcpaas.live)** — MCP as a Service (The Endpoint for Context)
|
|
113
|
+
- **[claude-faf-mcp](https://npmjs.com/package/claude-faf-mcp)** — MCP server (52 tools)
|
|
114
|
+
- **[faf-wasm](https://www.npmjs.com/package/faf-wasm)** — WASM SDK (<5ms scoring)
|
|
115
|
+
- **[Chrome Extension](https://chromewebstore.google.com/detail/lnecebepmpjpilldfmndnaofbfjkjlkm)** — Browser integration
|
|
116
|
+
- **[faf.one](https://faf.one)** — Official website
|
|
117
|
+
|
|
118
|
+
**Universal format. Works everywhere. Write once, use with any AI.**
|
|
82
119
|
|
|
83
120
|
---
|
|
84
121
|
|
|
85
|
-
##
|
|
122
|
+
## 🎯 WHY do you need it?
|
|
123
|
+
|
|
124
|
+
### What FAF Actually Does
|
|
125
|
+
|
|
126
|
+
**1. 100% Context Quality** — AI-scored with facts, not guesswork
|
|
127
|
+
Every field in your `project.faf` is validated and scored. No more "I think this is a React app" — AI **knows** it is.
|
|
128
|
+
|
|
129
|
+
**2. Context Persists Forever** — Never lost, never re-explained
|
|
130
|
+
Your project DNA is written once, read forever. No context drift across sessions, team members, or AI tools.
|
|
131
|
+
|
|
132
|
+
**3. Bi-Sync Keeps It Current** — Responds to changes automatically
|
|
133
|
+
When your project evolves, `project.faf` ↔ `CLAUDE.md` stays synchronized in 8ms. Always current, never stale.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
### What That Actually Costs (Or Saves)
|
|
138
|
+
|
|
139
|
+
**The DAAFT Tax** (Discover, Assume, Ask, Forget, Time+Tokens)
|
|
140
|
+
|
|
141
|
+
Without `project.faf`, every AI session cycles through rediscovery:
|
|
142
|
+
- ❌ AI re-discovers your project (wastes tokens)
|
|
143
|
+
- ❌ AI asks questions you've answered before (wastes time)
|
|
144
|
+
- ❌ AI makes wrong assumptions → rework (wastes developer hours)
|
|
145
|
+
- ❌ Context drifts → compounding errors → project delays
|
|
146
|
+
|
|
147
|
+
**The Economics:**
|
|
148
|
+
- **Per developer:** $5,460/year + 84 hours lost productivity
|
|
149
|
+
- **50-developer team:** $273,000–$507,630 annually
|
|
150
|
+
- **91% of tokens** wasted on rediscovery instead of building
|
|
151
|
+
|
|
152
|
+
**The Real Cost:**
|
|
153
|
+
- Token waste (measurable: 91% wasted)
|
|
154
|
+
- Time waste (expensive: $5,460/year per developer)
|
|
155
|
+
- **Project failure** (catastrophic: 70% of projects fail, with 39% citing poor requirements and 57% citing communication breakdowns — both rooted in context loss)
|
|
86
156
|
|
|
87
|
-
**
|
|
157
|
+
**Full analysis:** [faf.one/daaft](https://faf.one/daaft)
|
|
88
158
|
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### The Truth People Gloss Over
|
|
162
|
+
|
|
163
|
+
Bad context → wrong assumptions → rework → delays → project failure.
|
|
164
|
+
|
|
165
|
+
Good context isn't a "nice to have" — it's the foundation of AI-augmented development.
|
|
166
|
+
|
|
167
|
+
**`project.faf` fixes this permanently.**
|
|
168
|
+
|
|
169
|
+
At 100% AI Readiness:
|
|
170
|
+
- AI knows your stack, goals, and conventions (scored with facts)
|
|
171
|
+
- Zero clarifying questions needed (context persists)
|
|
172
|
+
- Drift is impossible (bi-sync keeps it current)
|
|
173
|
+
- Your project ships on time, within budget, with fewer surprises
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## ⏰ WHEN should you use it?
|
|
178
|
+
|
|
179
|
+
### New Projects
|
|
180
|
+
**Day one.** Initialize with context from the start:
|
|
89
181
|
```bash
|
|
90
|
-
|
|
91
|
-
|
|
182
|
+
npm init -y
|
|
183
|
+
faf init
|
|
184
|
+
# Your project now has AI-ready context
|
|
185
|
+
```
|
|
92
186
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
187
|
+
### Existing Projects
|
|
188
|
+
**Right now.** Add context to projects already in progress:
|
|
189
|
+
```bash
|
|
190
|
+
faf init # Start from your codebase
|
|
191
|
+
faf go # Interview to 100%
|
|
192
|
+
faf auto # Auto-enhance to Gold Code
|
|
193
|
+
```
|
|
96
194
|
|
|
97
|
-
|
|
98
|
-
|
|
195
|
+
### Exploring Repos
|
|
196
|
+
**Instantly.** Generate context for ANY GitHub repo WITHOUT cloning:
|
|
197
|
+
```bash
|
|
198
|
+
npx faf-cli git https://github.com/facebook/react
|
|
199
|
+
# 2 seconds → 95% 🥈 Silver score
|
|
200
|
+
# No install. No clone. Just instant context.
|
|
201
|
+
```
|
|
99
202
|
|
|
100
|
-
|
|
203
|
+
### Daily Workflow
|
|
204
|
+
**Always synced.** Keep context fresh automatically:
|
|
205
|
+
```bash
|
|
206
|
+
faf bi-sync --watch # Continuous sync with CLAUDE.md
|
|
101
207
|
```
|
|
102
208
|
|
|
103
|
-
|
|
209
|
+
Add to package.json to see FAF status every dev session:
|
|
104
210
|
```json
|
|
105
211
|
{
|
|
106
212
|
"scripts": {
|
|
@@ -111,52 +217,85 @@ faf status --oneline # 🏆 project.faf 100% | bi-sync ✓ | foundation opt
|
|
|
111
217
|
|
|
112
218
|
---
|
|
113
219
|
|
|
114
|
-
##
|
|
220
|
+
## 🚀 HOW does it work?
|
|
115
221
|
|
|
116
|
-
|
|
222
|
+
### Quick Start (No Install Required)
|
|
117
223
|
|
|
118
|
-
|
|
119
|
-
|----------|--------|-------------|
|
|
120
|
-
| **Gemini CLI** | `GEMINI.md` | `faf gemini` |
|
|
121
|
-
| **Antigravity IDE** | `~/.gemini/GEMINI.md` | `faf gemini --global` |
|
|
122
|
-
| **Conductor Extension** | `conductor/` directory | `faf conductor` |
|
|
123
|
-
| **Claude Code** | `CLAUDE.md` | `faf bi-sync` |
|
|
224
|
+
**The revolutionary way — zero install, zero clone:**
|
|
124
225
|
|
|
125
226
|
```bash
|
|
126
|
-
#
|
|
127
|
-
faf
|
|
128
|
-
|
|
227
|
+
# Generate AI context for ANY GitHub repo
|
|
228
|
+
npx faf-cli git https://github.com/facebook/react
|
|
229
|
+
# ⏱️ 2 seconds → 95% 🥈 Silver score
|
|
129
230
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
faf conductor export # .faf → conductor/
|
|
231
|
+
npx faf-cli git https://github.com/sveltejs/svelte
|
|
232
|
+
# ⏱️ 2 seconds → 95% 🥈 Silver score
|
|
133
233
|
|
|
134
|
-
|
|
135
|
-
|
|
234
|
+
npx faf-cli git https://github.com/your-org/your-repo
|
|
235
|
+
# ⏱️ 2 seconds → 90%+ context, ready for AI
|
|
136
236
|
```
|
|
137
237
|
|
|
138
|
-
**
|
|
238
|
+
**What just happened?**
|
|
239
|
+
- ✅ No install required (`npx` runs latest version)
|
|
240
|
+
- ✅ No cloning required (uses GitHub API)
|
|
241
|
+
- ✅ 2 seconds → 95% AI-ready context
|
|
242
|
+
- ✅ Works on ANY public GitHub repo
|
|
139
243
|
|
|
140
|
-
|
|
244
|
+
**This changes everything.** You can now generate AI context for repos you don't even own. 🏎️
|
|
141
245
|
|
|
142
|
-
|
|
246
|
+
### For Your Own Projects
|
|
143
247
|
|
|
144
|
-
|
|
248
|
+
```bash
|
|
249
|
+
# Start with your codebase
|
|
250
|
+
npx faf-cli init
|
|
145
251
|
|
|
252
|
+
# Or go interactive (completes the 6 Ws)
|
|
253
|
+
npx faf-cli go
|
|
146
254
|
```
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
255
|
+
|
|
256
|
+
### For Pros: Install Globally (Daily Use)
|
|
257
|
+
|
|
258
|
+
Once you're hooked, install globally for full power:
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
# Install once
|
|
262
|
+
npm install -g faf-cli # or: brew install faf-cli
|
|
263
|
+
|
|
264
|
+
# Then use short commands forever
|
|
265
|
+
faf git <repo-url> # 1-Click Context (90%+)
|
|
266
|
+
faf go # Interactive to 100%
|
|
267
|
+
faf auto # Full automation
|
|
268
|
+
faf bi-sync # Keep synced
|
|
269
|
+
# + 56 more commands
|
|
150
270
|
```
|
|
151
271
|
|
|
272
|
+
### The Killer Combo
|
|
273
|
+
|
|
152
274
|
```bash
|
|
153
|
-
faf
|
|
154
|
-
faf
|
|
275
|
+
npx faf-cli git <repo-url> # 90%+ context, no install, no clone
|
|
276
|
+
npx faf-cli go # Interactive polish to 100%
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
### Comparison: Traditional vs 1-Click Context
|
|
280
|
+
|
|
281
|
+
**Traditional approach:**
|
|
282
|
+
```bash
|
|
283
|
+
git clone https://github.com/facebook/react # 10-30 seconds
|
|
284
|
+
cd react
|
|
285
|
+
npm install -g faf-cli # 10 seconds
|
|
286
|
+
faf init # 5 seconds
|
|
287
|
+
# Total: ~45 seconds + local files
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**1-Click Context:**
|
|
291
|
+
```bash
|
|
292
|
+
npx faf-cli git https://github.com/facebook/react
|
|
293
|
+
# Total: 2 seconds + ZERO local files
|
|
155
294
|
```
|
|
156
295
|
|
|
157
296
|
---
|
|
158
297
|
|
|
159
|
-
## Tier System: From Blind to Optimized
|
|
298
|
+
## 🎖️ Tier System: From Blind to Optimized
|
|
160
299
|
|
|
161
300
|
| Tier | Score | Status |
|
|
162
301
|
|------|-------|--------|
|
|
@@ -210,13 +349,15 @@ Score: (15 + 6) / 21 = 100%
|
|
|
210
349
|
|
|
211
350
|
---
|
|
212
351
|
|
|
213
|
-
## Core Commands
|
|
352
|
+
## 🔧 Core Commands
|
|
214
353
|
|
|
215
354
|
| Command | Purpose |
|
|
216
355
|
|---------|---------|
|
|
356
|
+
| **`faf git <url>`** | **🚀 1-Click Context - 90%+ for ANY GitHub repo (no cloning!)** |
|
|
357
|
+
| `faf go` | 🎯 Guided interview to 100% (completes the 6 Ws) |
|
|
217
358
|
| `faf init` | Create project.faf from your codebase |
|
|
218
|
-
| `faf score` | Check AI-readiness (0-100%) |
|
|
219
359
|
| `faf auto` | Auto-enhance to Gold Code |
|
|
360
|
+
| `faf score` | Check AI-readiness (0-100%) |
|
|
220
361
|
| `faf bi-sync` | Sync .faf ↔ CLAUDE.md (8ms) |
|
|
221
362
|
| `faf readme` | Extract 6 Ws from README (+25-35% boost) |
|
|
222
363
|
| `faf human` | Interactive human context entry |
|
|
@@ -226,11 +367,44 @@ Score: (15 + 6) / 21 = 100%
|
|
|
226
367
|
| `faf gemini` | Gemini CLI / Antigravity interop |
|
|
227
368
|
| `faf demo sync` | Live bi-sync demonstration |
|
|
228
369
|
|
|
229
|
-
Run `faf --help` for all
|
|
370
|
+
Run `faf --help` for all 60 commands.
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
## 🔄 Bi-Sync: `project.faf` ↔ `CLAUDE.md`
|
|
375
|
+
|
|
376
|
+
Your `project.faf` stays synchronized with `CLAUDE.md` in milliseconds.
|
|
377
|
+
|
|
378
|
+
```
|
|
379
|
+
project.faf ←──── 8ms ────→ CLAUDE.md
|
|
380
|
+
│ │
|
|
381
|
+
└── Single source of truth ──┘
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
```bash
|
|
385
|
+
faf bi-sync # Sync once
|
|
386
|
+
faf bi-sync --watch # Continuous sync
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
---
|
|
390
|
+
|
|
391
|
+
## 🧠 Human Context (The 6 Ws)
|
|
392
|
+
|
|
393
|
+
Boost your score by 25-35% with human context — the information only YOU know.
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
# Auto-extract from README
|
|
397
|
+
faf readme --apply
|
|
398
|
+
|
|
399
|
+
# Manual entry
|
|
400
|
+
faf human-set who "Frontend team at Acme Corp"
|
|
401
|
+
faf human-set what "Customer dashboard with real-time analytics"
|
|
402
|
+
faf human-set why "10x faster than previous solution"
|
|
403
|
+
```
|
|
230
404
|
|
|
231
405
|
---
|
|
232
406
|
|
|
233
|
-
## Boris-Flow Integration Tests
|
|
407
|
+
## 🧪 Boris-Flow Integration Tests
|
|
234
408
|
|
|
235
409
|
**Boris-Flow** is a 12-test validation suite that ensures faf-cli is demo-ready and safe to publish.
|
|
236
410
|
|
|
@@ -288,23 +462,7 @@ Boris-Flow validates the FAF file structure that WJTTC Tier 8 tests. Running it
|
|
|
288
462
|
|
|
289
463
|
---
|
|
290
464
|
|
|
291
|
-
##
|
|
292
|
-
|
|
293
|
-
Boost your score by 25-35% with human context — the information only YOU know.
|
|
294
|
-
|
|
295
|
-
```bash
|
|
296
|
-
# Auto-extract from README
|
|
297
|
-
faf readme --apply
|
|
298
|
-
|
|
299
|
-
# Manual entry
|
|
300
|
-
faf human-set who "Frontend team at Acme Corp"
|
|
301
|
-
faf human-set what "Customer dashboard with real-time analytics"
|
|
302
|
-
faf human-set why "10x faster than previous solution"
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
---
|
|
306
|
-
|
|
307
|
-
## CLI vs MCP
|
|
465
|
+
## 🤝 CLI vs MCP
|
|
308
466
|
|
|
309
467
|
| Tool | Use Case |
|
|
310
468
|
|------|----------|
|
|
@@ -315,13 +473,31 @@ Same `project.faf`. Same scoring. Same result. Different execution layer.
|
|
|
315
473
|
|
|
316
474
|
---
|
|
317
475
|
|
|
318
|
-
##
|
|
476
|
+
## 🌐 What's New in v3.4.7 — Google Gemini Edition
|
|
319
477
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
478
|
+
Full interoperability with the Google Gemini ecosystem. One `.faf` file now works everywhere.
|
|
479
|
+
|
|
480
|
+
| Platform | Format | FAF Command |
|
|
481
|
+
|----------|--------|-------------|
|
|
482
|
+
| **Gemini CLI** | `GEMINI.md` | `faf gemini` |
|
|
483
|
+
| **Antigravity IDE** | `~/.gemini/GEMINI.md` | `faf gemini --global` |
|
|
484
|
+
| **Conductor Extension** | `conductor/` directory | `faf conductor` |
|
|
485
|
+
| **Claude Code** | `CLAUDE.md` | `faf bi-sync` |
|
|
486
|
+
|
|
487
|
+
```bash
|
|
488
|
+
# Import from Google formats
|
|
489
|
+
faf gemini import # GEMINI.md → .faf
|
|
490
|
+
faf conductor import # conductor/ → .faf
|
|
491
|
+
|
|
492
|
+
# Export to Google formats
|
|
493
|
+
faf gemini export # .faf → GEMINI.md
|
|
494
|
+
faf conductor export # .faf → conductor/
|
|
495
|
+
|
|
496
|
+
# Global Antigravity config
|
|
497
|
+
faf gemini --global # ~/.gemini/GEMINI.md
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
**Universal AI Context** — Write once, use with Claude, Gemini CLI, Antigravity IDE, and Conductor.
|
|
325
501
|
|
|
326
502
|
---
|
|
327
503
|
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/commands/git.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/commands/git.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAuCH,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,GAAQ,iBA0HjE"}
|
package/dist/commands/git.js
CHANGED
|
@@ -21,6 +21,8 @@ const championship_style_1 = require("../utils/championship-style");
|
|
|
21
21
|
const popular_repos_1 = require("../github/popular-repos");
|
|
22
22
|
const github_extractor_1 = require("../github/github-extractor");
|
|
23
23
|
const repo_selector_1 = require("../github/repo-selector");
|
|
24
|
+
const faf_git_generator_1 = require("../github/faf-git-generator");
|
|
25
|
+
const current_score_calculator_1 = require("../github/current-score-calculator");
|
|
24
26
|
/**
|
|
25
27
|
* Main faf git command
|
|
26
28
|
*/
|
|
@@ -80,12 +82,12 @@ async function gitCommand(query, options = {}) {
|
|
|
80
82
|
if (!normalizedOptions.scan) {
|
|
81
83
|
files = await (0, github_extractor_1.fetchGitHubFileTree)(repo.owner, repo.repo, metadata.defaultBranch);
|
|
82
84
|
}
|
|
83
|
-
//
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const fafContent =
|
|
85
|
+
// Calculate CURRENT score (repo as-is, before FAF)
|
|
86
|
+
console.log(colors_1.chalk.gray(' ⚙️ Scoring current state...'));
|
|
87
|
+
const currentScore = await (0, current_score_calculator_1.calculateCurrentScore)(metadata, files);
|
|
88
|
+
// Generate enhanced .faf content (90%+ target)
|
|
89
|
+
console.log(colors_1.chalk.gray(' ⚙️ Generating enhanced FAF...'));
|
|
90
|
+
const { content: fafContent, score: newScore } = await (0, faf_git_generator_1.generateEnhancedFaf)(metadata, files);
|
|
89
91
|
// Determine output path
|
|
90
92
|
// For single repo: respect -o flag if provided
|
|
91
93
|
// For multiple repos: use default names (batch mode)
|
|
@@ -94,7 +96,7 @@ async function gitCommand(query, options = {}) {
|
|
|
94
96
|
: `${repo.repo}.faf`;
|
|
95
97
|
// Write .faf file
|
|
96
98
|
await fs_1.promises.writeFile(outputPath, fafContent, 'utf-8');
|
|
97
|
-
(0, repo_selector_1.showExtractionSuccess)(repo.owner, repo.repo, outputPath,
|
|
99
|
+
(0, repo_selector_1.showExtractionSuccess)(repo.owner, repo.repo, outputPath, currentScore, newScore);
|
|
98
100
|
results.push({
|
|
99
101
|
repo: `${repo.owner}/${repo.repo}`,
|
|
100
102
|
success: true,
|
package/dist/commands/git.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/commands/git.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AA+CH,gCA2HC;AAxKD,+CAA2C;AAC3C,2BAAoC;AACpC,2CAA8D;AAC9D,oEAAyD;AAEzD,2DAOiC;AAEjC,iEAOoC;AAEpC,2DASiC;AAUjC;;GAEG;AACI,KAAK,UAAU,UAAU,CAAC,KAAc,EAAE,UAAe,EAAE;IAChE,IAAI,CAAC;QACH,oEAAoE;QACpE,MAAM,iBAAiB,GAAe;YACpC,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC;YACnC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC;QAEF,qBAAqB;QACrB,IAAI,iBAAiB,CAAC,IAAI,EAAE,CAAC;YAC3B,OAAO,MAAM,iBAAiB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC7D,CAAC;QAED,gBAAgB;QAChB,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,CAAC,GAAG,EAAE,CAAC;YACd,OAAO,CAAC,GAAG,CAAC,cAAK,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CAAC;YACpD,OAAO,CAAC,GAAG,EAAE,CAAC;YACd,OAAO,CAAC,GAAG,CAAC,cAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,cAAK,CAAC,IAAI,CAAC,uDAAuD,CAAC,CAAC,CAAC;YACjF,O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,cAAc,KAAK,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC;QAElE,MAAM,GAAG,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC;QAE/E,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE;YAC/B,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,+BAAU,CAAC,QAAQ,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,CAAC;gBAC5D,OAAO,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,IAAI,KAAK,CAAC,8BAA8B,IAAI,EAAE,CAAC,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAU,EAAE,EAAE;YAC7B,MAAM,CAAC,GAAG,CAAC,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🏆 Current Score Calculator
|
|
3
|
+
*
|
|
4
|
+
* Calculates AI-readiness score for repos AS THEY ARE (before FAF enhancement)
|
|
5
|
+
*
|
|
6
|
+
* Strategy:
|
|
7
|
+
* - Check if .faf exists → score it
|
|
8
|
+
* - No .faf → calculate baseline from README + package.json
|
|
9
|
+
*/
|
|
10
|
+
import type { GitHubMetadata } from './github-extractor';
|
|
11
|
+
/**
|
|
12
|
+
* Calculate current score (repo as-is, before FAF generation)
|
|
13
|
+
*/
|
|
14
|
+
export declare function calculateCurrentScore(metadata: GitHubMetadata, files: any[]): Promise<number>;
|
|
15
|
+
//# sourceMappingURL=current-score-calculator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"current-score-calculator.d.ts","sourceRoot":"","sources":["../../src/github/current-score-calculator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,GAAG,EAAE,GACX,OAAO,CAAC,MAAM,CAAC,CA+BjB"}
|