faf-cli 2.4.21 β 2.5.1
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 +244 -129
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +8 -6
- package/dist/cli.js.map +1 -1
- package/dist/commands/auto.d.ts.map +1 -1
- package/dist/commands/auto.js +63 -2
- package/dist/commands/auto.js.map +1 -1
- package/dist/commands/bi-sync.d.ts +9 -6
- package/dist/commands/bi-sync.d.ts.map +1 -1
- package/dist/commands/bi-sync.js +31 -16
- package/dist/commands/bi-sync.js.map +1 -1
- package/dist/commands/index.js +1 -6
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +8 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/score-v3.d.ts.map +1 -1
- package/dist/commands/score-v3.js +12 -6
- package/dist/commands/score-v3.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +17 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/compiler/faf-compiler.js +1 -1
- package/dist/engines/c-mirror/broadcast/terminal-display.d.ts +23 -0
- package/dist/engines/c-mirror/broadcast/terminal-display.d.ts.map +1 -0
- package/dist/engines/c-mirror/broadcast/terminal-display.js +193 -0
- package/dist/engines/c-mirror/broadcast/terminal-display.js.map +1 -0
- package/dist/engines/c-mirror/core/claude-to-faf.d.ts +28 -0
- package/dist/engines/c-mirror/core/claude-to-faf.d.ts.map +1 -0
- package/dist/engines/c-mirror/core/claude-to-faf.js +222 -0
- package/dist/engines/c-mirror/core/claude-to-faf.js.map +1 -0
- package/dist/engines/c-mirror/core/events/event-emitter.d.ts +36 -0
- package/dist/engines/c-mirror/core/events/event-emitter.d.ts.map +1 -0
- package/dist/engines/c-mirror/core/events/event-emitter.js +71 -0
- package/dist/engines/c-mirror/core/events/event-emitter.js.map +1 -0
- package/dist/engines/c-mirror/core/events/mirror-events.d.ts +103 -0
- package/dist/engines/c-mirror/core/events/mirror-events.d.ts.map +1 -0
- package/dist/engines/c-mirror/core/events/mirror-events.js +65 -0
- package/dist/engines/c-mirror/core/events/mirror-events.js.map +1 -0
- package/dist/engines/c-mirror/core/faf-to-claude.d.ts +18 -0
- package/dist/engines/c-mirror/core/faf-to-claude.d.ts.map +1 -0
- package/dist/engines/c-mirror/core/faf-to-claude.js +195 -0
- package/dist/engines/c-mirror/core/faf-to-claude.js.map +1 -0
- package/dist/engines/c-mirror/core/interfaces.d.ts +153 -0
- package/dist/engines/c-mirror/core/interfaces.d.ts.map +1 -0
- package/dist/engines/c-mirror/core/interfaces.js +8 -0
- package/dist/engines/c-mirror/core/interfaces.js.map +1 -0
- package/dist/engines/c-mirror/core/mirror-engine.d.ts +48 -0
- package/dist/engines/c-mirror/core/mirror-engine.d.ts.map +1 -0
- package/dist/engines/c-mirror/core/mirror-engine.js +273 -0
- package/dist/engines/c-mirror/core/mirror-engine.js.map +1 -0
- package/dist/engines/c-mirror/faf-extensions/faf-mirror.d.ts +31 -0
- package/dist/engines/c-mirror/faf-extensions/faf-mirror.d.ts.map +1 -0
- package/dist/engines/c-mirror/faf-extensions/faf-mirror.js +101 -0
- package/dist/engines/c-mirror/faf-extensions/faf-mirror.js.map +1 -0
- package/dist/engines/c-mirror/strategies/atomic-write.d.ts +34 -0
- package/dist/engines/c-mirror/strategies/atomic-write.d.ts.map +1 -0
- package/dist/engines/c-mirror/strategies/atomic-write.js +132 -0
- package/dist/engines/c-mirror/strategies/atomic-write.js.map +1 -0
- package/dist/engines/faf-dna.d.ts.map +1 -1
- package/dist/engines/faf-dna.js +33 -14
- package/dist/engines/faf-dna.js.map +1 -1
- package/dist/utils/championship-core.d.ts +127 -0
- package/dist/utils/championship-core.d.ts.map +1 -0
- package/dist/utils/championship-core.js +205 -0
- package/dist/utils/championship-core.js.map +1 -0
- package/dist/utils/championship-style.d.ts +2 -2
- package/dist/utils/championship-style.d.ts.map +1 -1
- package/dist/utils/championship-style.js +8 -6
- package/dist/utils/championship-style.js.map +1 -1
- package/dist/utils/color-utils.d.ts.map +1 -1
- package/dist/utils/color-utils.js +29 -11
- package/dist/utils/color-utils.js.map +1 -1
- package/dist/utils/yaml-generator.d.ts.map +1 -1
- package/dist/utils/yaml-generator.js +9 -4
- package/dist/utils/yaml-generator.js.map +1 -1
- package/package.json +18 -3
package/README.md
CHANGED
|
@@ -1,156 +1,174 @@
|
|
|
1
|
-
#
|
|
1
|
+
# faf-cli v2.5.0
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
> **π See it live in your terminal:** `faf version`
|
|
3
|
+
<div align="center">
|
|
8
4
|
|
|
9
|
-
|
|
5
|
+
<img src="https://cdn.jsdelivr.net/npm/faf-cli@latest/assets/icons/orange-smiley.svg" alt="Orange Smiley" width="48" />
|
|
10
6
|
|
|
11
|
-
|
|
7
|
+
**Project DNA β¨ for ANY AI** β’ **Context-Mirroring** β’ **Sub-20ms Sync**
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
[](https://www.npmjs.com/package/faf-cli)
|
|
10
|
+
[](https://www.npmjs.com/package/faf-cli)
|
|
11
|
+
[](https://opensource.org/licenses/MIT)
|
|
12
|
+
[](https://www.typescriptlang.org/)
|
|
16
13
|
|
|
17
|
-
|
|
14
|
+
**[Website](https://faf.one)** β’ **[Community](https://github.com/Wolfe-Jam/faf/discussions)** β’ **[Issues](https://github.com/Wolfe-Jam/faf/issues)**
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
**β‘ 60% FASTER** - Lightning-quick operations
|
|
21
|
-
**ποΈ NATIVE PERFORMANCE** - Built/Installed New engine, championship grade
|
|
22
|
-
**π¨ ZERO DISPLAY BUGS** - Perfect terminal rendering
|
|
23
|
-
**πΎ LEAN & FAST** - Optimized for speed
|
|
24
|
-
**β¨ 100% BACKWARDS COMPATIBLE** - Same commands, MORE SPEED!
|
|
25
|
-
|
|
26
|
-
FAST, LEAN, CHAMPIONSHIP GRADE! π
|
|
27
|
-
|
|
28
|
-
NEW for AI assistants (Codex, Cursor, Copilot, etc.): install locally with `npm install -g faf-cli`, confirm with `faf --version`, and default to quiet mode (`-q` / `--quiet`) for every command.
|
|
16
|
+
</div>
|
|
29
17
|
|
|
30
|
-
|
|
18
|
+
---
|
|
31
19
|
|
|
32
|
-
|
|
20
|
+

|
|
33
21
|
|
|
34
|
-
|
|
22
|
+
---
|
|
35
23
|
|
|
36
|
-
|
|
24
|
+
## π What's New in v2.5.0
|
|
37
25
|
|
|
38
|
-
|
|
26
|
+
### Context-Mirroring: Bidirectional Sync in Sub-20ms
|
|
39
27
|
|
|
40
|
-
|
|
28
|
+
**The Breakthrough:** Keep `.faf` (structured data) and `CLAUDE.md` (human-readable) in perfect sync automatically.
|
|
41
29
|
|
|
42
|
-
|
|
30
|
+
```bash
|
|
31
|
+
# Edit either file, both stay synchronized
|
|
32
|
+
faf bi-sync
|
|
33
|
+
|
|
34
|
+
# Result: 15ms average sync, zero data loss
|
|
35
|
+
π C-MIRROR LIVE
|
|
36
|
+
ββββββββββββββββββββββββββ
|
|
37
|
+
ββ π Synchronized in ~17ms ποΈ
|
|
38
|
+
β
Integrity: PERFECT
|
|
39
|
+
```
|
|
43
40
|
|
|
44
|
-
|
|
41
|
+
**Key Features:**
|
|
42
|
+
- **15ms average** sync (95% under 50ms)
|
|
43
|
+
- **Bidirectional**: `.faf` β `CLAUDE.md` β `.faf`
|
|
44
|
+
- **Zero-slippage**: Atomic file operations guarantee
|
|
45
|
+
- **Cross-platform**: Mac + Windows tested (20/20 tests)
|
|
46
|
+
- **Universal**: Works with Claude, Gemini, Cursor, all AI tools
|
|
45
47
|
|
|
46
|
-
|
|
48
|
+
**C-Mirror Stack:**
|
|
49
|
+
1. **Context-Mirroring** - The standard (industry-level concept)
|
|
50
|
+
2. **C-Mirror** - The engine (FAF's implementation)
|
|
51
|
+
3. **`faf bi-sync`** - The command (what you type)
|
|
47
52
|
|
|
48
|
-
|
|
53
|
+
---
|
|
49
54
|
|
|
50
|
-
|
|
51
|
-
<img src="https://faf.one/orange-smiley.svg" alt="Orange Smiley Logo" width="150" />
|
|
55
|
+
## π Championship Scoring System
|
|
52
56
|
|
|
53
|
-
|
|
57
|
+
Track your project's AI-readiness with F1-inspired tiers:
|
|
54
58
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
```
|
|
60
|
+
π Trophy (100%) - Championship - Perfect 50|50 AI|HUMAN balance
|
|
61
|
+
π₯ Gold (99%) - Gold standard
|
|
62
|
+
π₯ Silver (95-98%) - Excellence
|
|
63
|
+
π₯ Bronze (85-94%) - Production ready
|
|
64
|
+
π’ Green (70-84%) - Good foundation
|
|
65
|
+
π‘ Yellow (55-69%) - Getting there
|
|
66
|
+
π΄ Red (0-54%) - Needs attention
|
|
67
|
+
```
|
|
58
68
|
|
|
59
|
-
|
|
69
|
+
**Live output in your terminal:**
|
|
60
70
|
|
|
61
|
-
|
|
71
|
+
```
|
|
72
|
+
ποΈ FAF Status
|
|
73
|
+
ββββββββββββ
|
|
74
|
+
Score: 85% π₯ Bronze
|
|
75
|
+
βοΈ Balance: AI:75% | HUMAN:25%
|
|
62
76
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- β Copying and pasting files manually into ChatGPT/AI assistants
|
|
67
|
-
- β AI forgets context between sessions/doesn't know your setup properly
|
|
77
|
+
Next: 95% π₯ Silver (10% to go!)
|
|
78
|
+
Add Project Details to reach 50|50 balance! π
|
|
79
|
+
```
|
|
68
80
|
|
|
69
|
-
|
|
70
|
-
- β
**One command** creates perfect AI context
|
|
71
|
-
- β
**30 seconds** to complete AI understanding
|
|
72
|
-
- β
**Works everywhere** - Claude, ChatGPT, Gemini, Cursor, any AI
|
|
73
|
-
- β
**Share context** with your team instantly
|
|
81
|
+
---
|
|
74
82
|
|
|
75
|
-
## π
|
|
83
|
+
## π Quick Start
|
|
76
84
|
|
|
77
|
-
### β‘οΈπ₯ GET BOTH! Double Down! (100% FREE)
|
|
78
85
|
```bash
|
|
79
|
-
# Install
|
|
80
|
-
npm install -g faf-cli
|
|
81
|
-
npm install -g claude-faf-mcp # π§‘ Orange Smiley MCP - Claude Desktop integration
|
|
86
|
+
# Install globally
|
|
87
|
+
npm install -g faf-cli
|
|
82
88
|
|
|
83
|
-
#
|
|
89
|
+
# Initialize in any project
|
|
84
90
|
cd your-project
|
|
85
91
|
faf init
|
|
92
|
+
|
|
93
|
+
# Auto-detect and score
|
|
94
|
+
faf auto
|
|
95
|
+
faf score
|
|
96
|
+
|
|
97
|
+
# Sync with CLAUDE.md (NEW in v2.5.0!)
|
|
98
|
+
faf bi-sync
|
|
86
99
|
```
|
|
87
100
|
|
|
88
|
-
|
|
101
|
+
Your AI now understands your project! π
|
|
89
102
|
|
|
90
|
-
|
|
91
|
-
1. Install with user approval when required: `npm install -g faf-cli`
|
|
92
|
-
2. Verify availability right away: `faf --version`
|
|
93
|
-
3. Run every command in quiet mode to suppress banners: `faf init -q`, `faf auto -q`, `faf score -q`
|
|
94
|
-
4. Pause for approval before any network or write action in sandboxed sessions
|
|
95
|
-
5. Summarize the key results instead of dumping raw output for the user
|
|
103
|
+
---
|
|
96
104
|
|
|
97
|
-
##
|
|
105
|
+
## π― What is faf-cli?
|
|
98
106
|
|
|
99
|
-
|
|
107
|
+
Command-line tool that creates `.faf` files for instant AI project understanding.
|
|
100
108
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
- **Get help** - Community support for any questions
|
|
104
|
-
- **Request features** - Help shape the future of .faf
|
|
105
|
-
- **Learn best practices** - Tips from experienced users
|
|
109
|
+
**.faf = Project DNA β¨ for ANY AI**
|
|
110
|
+
Universal, shareable context for Claude, ChatGPT, Gemini, Cursor - regardless of stack, size, or setup.
|
|
106
111
|
|
|
107
|
-
|
|
112
|
+
### Why Developers Love It
|
|
108
113
|
|
|
109
|
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
- **100% Free & Open Source** - No hidden costs, ever
|
|
114
|
+
**The Problem:**
|
|
115
|
+
- β 20+ minutes explaining projects to AI
|
|
116
|
+
- β AI gives wrong answers without context
|
|
117
|
+
- β Manual copy/paste into chat interfaces
|
|
118
|
+
- β Context lost between sessions
|
|
115
119
|
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
120
|
+
**The Solution:**
|
|
121
|
+
- β
One command creates perfect context
|
|
122
|
+
- β
30 seconds to complete understanding
|
|
123
|
+
- β
Works with every AI tool
|
|
124
|
+
- β
Share context with your team instantly
|
|
125
|
+
- β
**NEW:** Bidirectional sync keeps everything in harmony
|
|
122
126
|
|
|
123
|
-
|
|
127
|
+
### Key Features
|
|
124
128
|
|
|
125
|
-
**
|
|
129
|
+
- β
**Universal** - Works with all AI tools
|
|
130
|
+
- β
**Fast** - <50ms operations, sub-20ms sync
|
|
131
|
+
- β
**Smart** - Auto-detects your tech stack
|
|
132
|
+
- β
**Simple** - One command setup
|
|
133
|
+
- β
**Bidirectional** - Edit .faf or CLAUDE.md, both update
|
|
134
|
+
- β
**Free** - 100% open source, forever
|
|
126
135
|
|
|
127
|
-
|
|
128
|
-
- π¬ **[Join Discussions](https://github.com/Wolfe-Jam/faf/discussions)** - Share ideas, get help, show your projects
|
|
129
|
-
- π **[Report Issues](https://github.com/Wolfe-Jam/faf/issues)** - Help us improve
|
|
130
|
-
- π **[Read the Docs](https://faf.one/docs)** - Complete guides and tutorials
|
|
131
|
-
- π€ **[Contribute](https://github.com/Wolfe-Jam/faf/blob/main/CONTRIBUTING.md)** - PRs welcome!
|
|
136
|
+
---
|
|
132
137
|
|
|
133
138
|
## π οΈ Available Commands
|
|
134
139
|
|
|
135
140
|
### Core Commands
|
|
136
|
-
- `faf init` - Initialize
|
|
137
|
-
- `faf auto` - Auto-detect and
|
|
138
|
-
- `faf score` - Calculate AI readiness
|
|
139
|
-
- `faf
|
|
140
|
-
- `faf
|
|
141
|
+
- `faf init` - Initialize project context
|
|
142
|
+
- `faf auto` - Auto-detect and populate
|
|
143
|
+
- `faf score` - Calculate AI readiness
|
|
144
|
+
- `faf status` - Project health check
|
|
145
|
+
- `faf quick "app, react, vercel"` - Quick setup
|
|
146
|
+
|
|
147
|
+
### Context-Mirroring (NEW in v2.5.0)
|
|
148
|
+
- `faf bi-sync` - **Bidirectional sync** (.faf β CLAUDE.md)
|
|
149
|
+
- 15ms average performance
|
|
150
|
+
- Zero data loss guarantee
|
|
151
|
+
- Edit either file, both update
|
|
152
|
+
- Cross-platform verified
|
|
141
153
|
|
|
142
154
|
### Enhancement Commands
|
|
143
|
-
- `faf enhance` -
|
|
144
|
-
- `faf sync` - Sync
|
|
145
|
-
- `faf bi-sync` - Bidirectional sync
|
|
155
|
+
- `faf enhance` - Optimize scoring
|
|
156
|
+
- `faf sync` - Sync with CLAUDE.md (one-way)
|
|
146
157
|
|
|
147
158
|
### Management Commands
|
|
148
|
-
- `faf trust` - Validate
|
|
149
|
-
- `faf doctor` - Diagnose
|
|
150
|
-
- `faf welcome` - First-time user guide
|
|
159
|
+
- `faf trust` - Validate integrity
|
|
160
|
+
- `faf doctor` - Diagnose issues
|
|
151
161
|
- `faf clear` - Clear caches
|
|
162
|
+
- `faf index` - A-Z command reference
|
|
163
|
+
|
|
164
|
+
### Utility Commands
|
|
165
|
+
- `faf version` - Show version (with ASCII art!)
|
|
166
|
+
- `faf welcome` - First-time guide
|
|
167
|
+
- `faf help` - Command help
|
|
168
|
+
|
|
169
|
+
---
|
|
152
170
|
|
|
153
|
-
##
|
|
171
|
+
## π‘ Usage Examples
|
|
154
172
|
|
|
155
173
|
```bash
|
|
156
174
|
# Quick setup for new project
|
|
@@ -159,72 +177,169 @@ faf quick "my-app, react, typescript, vercel"
|
|
|
159
177
|
# Auto-detect existing project
|
|
160
178
|
faf auto
|
|
161
179
|
|
|
162
|
-
# Check your score
|
|
180
|
+
# Check your score with details
|
|
163
181
|
faf score --details
|
|
164
182
|
|
|
183
|
+
# See current status
|
|
184
|
+
faf status
|
|
185
|
+
|
|
186
|
+
# NEW: Bidirectional sync with CLAUDE.md
|
|
187
|
+
faf bi-sync
|
|
188
|
+
|
|
165
189
|
# Fix any issues
|
|
166
190
|
faf doctor
|
|
167
191
|
|
|
168
192
|
# Optimize scoring
|
|
169
193
|
faf enhance
|
|
194
|
+
|
|
195
|
+
# Quiet mode (for AI assistants)
|
|
196
|
+
faf init -q
|
|
197
|
+
faf auto -q
|
|
170
198
|
```
|
|
171
199
|
|
|
172
|
-
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## π Version History
|
|
203
|
+
|
|
204
|
+
### v2.5.0 (October 3rd, 2025) - Context-Mirroring Release
|
|
205
|
+
- **Context-Mirroring engine** - Bidirectional .faf β CLAUDE.md sync
|
|
206
|
+
- **C-Mirror** - Championship-grade sync in 15ms average
|
|
207
|
+
- **Zero-slippage guarantee** - Atomic file operations
|
|
208
|
+
- **Cross-platform verified** - Mac + Windows tested
|
|
209
|
+
- **20/20 test suite** - All edge cases conquered
|
|
210
|
+
- **Event-driven architecture** - Power Chords system
|
|
211
|
+
- **TypeScript strict mode** - 100% type safety
|
|
212
|
+
|
|
213
|
+
### v2.4.6 - Performance Championship
|
|
214
|
+
- **60% faster** operations across all commands
|
|
215
|
+
- **Native engine** - Championship-grade performance
|
|
216
|
+
- **Zero display bugs** - Perfect terminal rendering
|
|
217
|
+
- **100% backwards compatible** - Same commands, more speed
|
|
218
|
+
|
|
219
|
+
### v2.4 Highlights
|
|
220
|
+
- **AI|HUMAN Balance** - Track 50|50 balance for championship
|
|
221
|
+
- **Enhanced auto-detection** - Smarter tech stack recognition
|
|
222
|
+
- **Improved scoring** - More accurate AI-readiness metrics
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## π Technical Specs
|
|
173
227
|
|
|
174
228
|
```
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
229
|
+
Version: 2.5.0
|
|
230
|
+
Performance: Sub-20ms sync (15ms average)
|
|
231
|
+
C-Mirror: 95% of operations under 50ms
|
|
232
|
+
TypeScript: 100% strict mode
|
|
233
|
+
Dependencies: 2 (inquirer, yaml)
|
|
234
|
+
Tests: 100% passing (20/20 C-Mirror suite)
|
|
235
|
+
Build: Zero errors
|
|
236
|
+
Platform: Mac, Linux, Windows
|
|
181
237
|
```
|
|
182
238
|
|
|
183
|
-
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## π¬ Context-Mirroring Technical Details
|
|
242
|
+
|
|
243
|
+
### Architecture
|
|
244
|
+
- **Event-driven**: Power Chords broadcast at lowest level
|
|
245
|
+
- **Atomic operations**: Write β Validate β Commit pattern
|
|
246
|
+
- **Bidirectional intelligence**: Preserves technical fields during sync
|
|
247
|
+
- **Format-agnostic**: Works with any Tool.md format
|
|
248
|
+
- **Self-healing**: Automatic backup and recovery
|
|
249
|
+
|
|
250
|
+
### Performance
|
|
251
|
+
- **Average**: 15ms per sync operation
|
|
252
|
+
- **95th percentile**: Under 50ms
|
|
253
|
+
- **Worst case**: <110ms (complex validation)
|
|
254
|
+
- **Target achieved**: Context-On-Demand (<20ms)
|
|
255
|
+
|
|
256
|
+
### Testing
|
|
257
|
+
- **20/20 test suite** passed (WJTC certified)
|
|
258
|
+
- **Edge cases conquered**: Emoji, Unicode, nested quotes, Windows paths
|
|
259
|
+
- **Round-trip verified**: Perfect data preservation
|
|
260
|
+
- **Cross-platform**: Mac + PC tested
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## π€ For AI Assistants (Codex, Cursor, Copilot)
|
|
265
|
+
|
|
266
|
+
When using faf-cli programmatically:
|
|
267
|
+
|
|
268
|
+
1. Install with user approval: `npm install -g faf-cli`
|
|
269
|
+
2. Verify: `faf --version`
|
|
270
|
+
3. Use quiet mode: `faf init -q`, `faf auto -q`, `faf score -q`
|
|
271
|
+
4. Use `faf bi-sync` for CLAUDE.md synchronization
|
|
272
|
+
5. Request approval before network/write operations
|
|
273
|
+
6. Summarize results instead of raw output
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## ποΈ Development
|
|
184
278
|
|
|
185
279
|
```bash
|
|
186
|
-
# Clone
|
|
280
|
+
# Clone
|
|
187
281
|
git clone https://github.com/Wolfe-Jam/faf.git
|
|
188
282
|
cd faf/cli
|
|
189
283
|
|
|
190
|
-
# Install &
|
|
284
|
+
# Install & Build
|
|
191
285
|
npm install
|
|
192
286
|
npm run build
|
|
193
287
|
|
|
194
288
|
# Test
|
|
195
289
|
npm test
|
|
290
|
+
|
|
291
|
+
# Test C-Mirror specifically
|
|
292
|
+
npm run test -- tests/c-mirror/
|
|
293
|
+
|
|
294
|
+
# Link locally
|
|
295
|
+
npm link
|
|
196
296
|
```
|
|
197
297
|
|
|
298
|
+
---
|
|
299
|
+
|
|
198
300
|
## π Requirements
|
|
199
301
|
|
|
200
|
-
- Node.js 18+
|
|
201
|
-
- macOS, Linux, or Windows
|
|
202
|
-
-
|
|
302
|
+
- **Node.js** 18+
|
|
303
|
+
- **OS**: macOS, Linux, or Windows
|
|
304
|
+
- **AI Tools**: Works with Claude, ChatGPT, Gemini, Cursor, etc.
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## π The FAF Ecosystem
|
|
203
309
|
|
|
204
|
-
|
|
310
|
+
- [π©΅ **faf-cli**](https://npmjs.com/package/faf-cli) - This command-line tool
|
|
311
|
+
- [π§‘ **claude-faf-mcp**](https://npmjs.com/package/claude-faf-mcp) - MCP server for Claude Desktop
|
|
312
|
+
- [π **faf.one**](https://faf.one) - Documentation & guides
|
|
313
|
+
- [π₯οΈ **Chrome Extension**](https://chromewebstore.google.com/detail/lnecebepmpjpilldfmndnaofbfjkjlkm) - Browser integration
|
|
205
314
|
|
|
206
|
-
|
|
207
|
-
- **Website**: [faf.one](https://faf.one)
|
|
208
|
-
- **GitHub**: [Wolfe-Jam/faf](https://github.com/Wolfe-Jam/faf)
|
|
209
|
-
- **Community**: [Join Discussions](https://github.com/Wolfe-Jam/faf/discussions)
|
|
210
|
-
- **Support**: support@faf.one
|
|
315
|
+
---
|
|
211
316
|
|
|
212
317
|
## π License
|
|
213
318
|
|
|
214
|
-
MIT License -
|
|
319
|
+
MIT License - See [LICENSE](./LICENSE) file
|
|
215
320
|
|
|
216
|
-
**Note**:
|
|
321
|
+
**Note**: C-Mirror core is open source. FAF-specific extensions available under separate license.
|
|
217
322
|
|
|
218
323
|
---
|
|
219
324
|
|
|
220
|
-
##
|
|
325
|
+
## π€ Contributing
|
|
221
326
|
|
|
222
|
-
|
|
327
|
+
We welcome contributions! Join our [community discussions](https://github.com/Wolfe-Jam/faf/discussions) or submit issues/PRs.
|
|
223
328
|
|
|
224
|
-
|
|
329
|
+
**Connect with 3000+ developers** using .faf to accelerate their AI workflows:
|
|
330
|
+
- Share your projects
|
|
331
|
+
- Get help from the community
|
|
332
|
+
- Request features
|
|
333
|
+
- Learn best practices
|
|
225
334
|
|
|
226
335
|
---
|
|
227
336
|
|
|
228
|
-
|
|
337
|
+
<div align="center">
|
|
338
|
+
|
|
339
|
+
**Made with π§‘ by wolfejam**
|
|
340
|
+
|
|
341
|
+
**100% FREE Forever** β’ **3000+ Weekly Downloads** β’ **Zero Faffβ’**
|
|
229
342
|
|
|
230
|
-
|
|
343
|
+
[β Star on GitHub](https://github.com/Wolfe-Jam/faf) β’ [π¦ View on NPM](https://www.npmjs.com/package/faf-cli)
|
|
344
|
+
|
|
345
|
+
</div>
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAg0C/C,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/dist/cli.js
CHANGED
|
@@ -140,8 +140,8 @@ function withAnalyticsTracking(commandName, fn) {
|
|
|
140
140
|
const result = await fn(...args);
|
|
141
141
|
const duration = Date.now() - start;
|
|
142
142
|
await (0, analytics_1.trackCommand)(commandName, commandArgs, duration, true);
|
|
143
|
-
//
|
|
144
|
-
await showScoreFooter('device');
|
|
143
|
+
// DEPRECATED: Old score footer removed - conflicts with new compiler scores
|
|
144
|
+
// await showScoreFooter('device');
|
|
145
145
|
return result;
|
|
146
146
|
}
|
|
147
147
|
catch (error) {
|
|
@@ -158,14 +158,14 @@ function showHeaderIfAppropriate(commandName) {
|
|
|
158
158
|
if (opts.quiet) {
|
|
159
159
|
return; // Skip header in quiet mode
|
|
160
160
|
}
|
|
161
|
-
const showHeaderCommands = ['help', '
|
|
161
|
+
const showHeaderCommands = ['help', 'clear', 'enhance', 'analyze', 'chat', 'formats', 'version'];
|
|
162
162
|
if (!commandName || showHeaderCommands.includes(commandName)) {
|
|
163
163
|
console.log((0, championship_style_1.generateFAFHeader)());
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
commander_1.program
|
|
167
167
|
.name('faf')
|
|
168
|
-
.description('.faf = Project DNA for ANY AI
|
|
168
|
+
.description('.faf = Project DNA β¨ for ANY AI | Foundational AI-context Format | SPEEDY AI you can TRUST! π§‘β‘οΈ')
|
|
169
169
|
.version(version)
|
|
170
170
|
.option('--no-color', 'Disable colored output for accessibility')
|
|
171
171
|
.option('--color-scheme <scheme>', 'Color scheme for colorblind accessibility: normal|deuteranopia|protanopia|tritanopia', 'normal')
|
|
@@ -1073,7 +1073,8 @@ async function showInteractiveWelcome() {
|
|
|
1073
1073
|
console.log(colors_1.chalk.white(' Ready to make your AI happy again?'));
|
|
1074
1074
|
console.log('');
|
|
1075
1075
|
// Footer - show BEFORE menu
|
|
1076
|
-
|
|
1076
|
+
// DEPRECATED: Old score footer removed
|
|
1077
|
+
// await showScoreFooter();
|
|
1077
1078
|
console.log('');
|
|
1078
1079
|
try {
|
|
1079
1080
|
const answer = await inquirer_1.default.prompt([
|
|
@@ -1217,7 +1218,8 @@ async function showInteractiveWelcome() {
|
|
|
1217
1218
|
}
|
|
1218
1219
|
// Show footer after each command (unless it was help which shows its own footer)
|
|
1219
1220
|
if (command !== 'help' && command !== '') {
|
|
1220
|
-
|
|
1221
|
+
// DEPRECATED: Old score footer removed
|
|
1222
|
+
// await showScoreFooter('faf');
|
|
1221
1223
|
}
|
|
1222
1224
|
console.log('');
|
|
1223
1225
|
}
|