faf 1.0.1 → 1.0.2

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.
Files changed (3) hide show
  1. package/README.md +5 -1
  2. package/bin/faf.js +13 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -13,8 +13,10 @@ npm install -g faf
13
13
  ## Usage
14
14
 
15
15
  ```bash
16
+ faf # Auto-detect your project, create .faf, score it
16
17
  faf init # Initialize .faf from your project
17
18
  faf auto # Zero-to-context instantly
19
+ faf go # Guided interview to 100%
18
20
  faf bi-sync # Keep .faf and CLAUDE.md in sync
19
21
  ```
20
22
 
@@ -27,6 +29,8 @@ FAF encapsulates project goals, stack, rules, and architecture in a structured Y
27
29
  - **faf-cli** - CLI toolchain (this package wraps it)
28
30
  - **claude-faf-mcp** - Official Anthropic MCP integration
29
31
  - **faf-mcp** - MCP server implementation
32
+ - **grok-faf-mcp** - xAI Grok MCP server
33
+ - **gemini-faf-mcp** - Google Gemini MCP server
30
34
 
31
35
  ## Links
32
36
 
@@ -36,7 +40,7 @@ FAF encapsulates project goals, stack, rules, and architecture in a structured Y
36
40
 
37
41
  ## Downloads
38
42
 
39
- 18,700+ combined downloads across the FAF ecosystem.
43
+ 50,000+ downloads across the FAF ecosystem.
40
44
 
41
45
  ## License
42
46
 
package/bin/faf.js CHANGED
@@ -4,11 +4,22 @@
4
4
  * FAF - Foundational AI-context Format
5
5
  * IANA-registered: application/vnd.faf+yaml
6
6
  *
7
- * This is a wrapper that passes through to faf-cli.
7
+ * Passes through to faf-cli's binary.
8
8
  * Install: npm install -g faf
9
9
  * Usage: faf init | faf auto | faf bi-sync
10
10
  *
11
11
  * https://faf.one
12
12
  */
13
13
 
14
- require('faf-cli');
14
+ const { execFileSync } = require('child_process');
15
+ const path = require('path');
16
+
17
+ // Resolve faf-cli's bin directly from node_modules
18
+ const cliBin = path.join(__dirname, '..', 'node_modules', '.bin', 'faf-cli');
19
+
20
+ try {
21
+ execFileSync(cliBin, process.argv.slice(2), { stdio: 'inherit' });
22
+ } catch (e) {
23
+ // execFileSync throws on non-zero exit — just forward the code
24
+ process.exit(e.status || 1);
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "faf",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "FAF - Foundational AI-context Format. IANA-registered standard (application/vnd.faf+yaml). Project DNA for AI.",
5
5
  "keywords": [
6
6
  "faf",