faf-cli 6.16.0 → 7.0.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.
@@ -7,8 +7,16 @@ export declare function readFaf(path: string): FafData;
7
7
  * rendered as a `# found: <list>` YAML comment next to the `type:` field —
8
8
  * Glass Hood doctrine: the user sees WHY the cli classified the project as
9
9
  * it did. `_meta` is a runtime hint, never a serialized .faf field. */
10
+ /** Serialize .faf data to YAML text (the exact bytes writeFaf would write).
11
+ * Strips runtime `_meta` and renders its `found` rationale as a `# found:`
12
+ * comment by `type:`. Used by writeFaf and by `faf git --stdout`. */
13
+ export declare function serializeFaf(data: FafData): string;
10
14
  export declare function writeFaf(path: string, data: FafData): void;
11
15
  /** Read raw YAML text from a .faf file */
12
16
  export declare function readFafRaw(path: string): string;
17
+ /** Parse .faf data from a YAML string — e.g. the output of `git show <ref>:project.faf`.
18
+ * The readers above are path-only; `faf diff` needs to parse a version that
19
+ * lives in git history, never on disk. */
20
+ export declare function readFafFromString(text: string): FafData;
13
21
  /** Find the .faf file in a directory (walks up) */
14
22
  export declare function findFafFile(dir?: string): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "faf-cli",
3
- "version": "6.16.0",
3
+ "version": "7.0.0",
4
4
  "description": "Persistent AI Context Standard — project DNA for AI. IANA-registered. Anthropic-merged.",
5
5
  "type": "module",
6
6
  "icon": "https://faf.one/orange-smiley.svg",
package/project.faf CHANGED
@@ -29,7 +29,7 @@ human_context:
29
29
  what: Persistent AI Context Standard — project DNA for AI. IANA-registered. Anthropic-merged.
30
30
  why: Eliminates 91% context re-discovery tax — define once, AI remembers forever
31
31
  where: npm registry, Homebrew, GitHub
32
- when: Production since September 2025, v6.0 March 2026
32
+ when: Production since September 2025; v7.0 The GIT Version, June 2026
33
33
  how: bunx faf-cli auto, then project.faf versions with your code — faf show renders it human-visible
34
34
  monorepo:
35
35
  packages_count: slotignored