faf-cli 7.2.0 → 7.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.
@@ -1,14 +1,16 @@
1
1
  import type { TierInfo } from './types.js';
2
2
  /** Tier boundaries — ordered from highest to lowest
3
3
  *
4
- * Indicators:
5
- * 🏆 trophy (earned at 100%)
4
+ * Indicators (work surfaces — CLI · code · docs · receipts):
5
+ * ✪ Proof Seal (Trophy 100% — work glyph; social still uses 🏆; brand uses Trophy Mark PNG)
6
6
  * ★ filled star (gold — orange)
7
7
  * ◆ filled diamond (silver — cyan)
8
8
  * ◇ open diamond (bronze — deep cyan, one rung below silver)
9
9
  * ● filled circle (mid tiers)
10
10
  * ○ open circle (low — dim)
11
11
  * ♡ heart (empty — good luck)
12
+ *
13
+ * All three 100% glyphs mean the same score: ✪ work · 🏆 social · Trophy Mark (PNG) visual.
12
14
  */
13
15
  export declare const TIERS: TierInfo[];
14
16
  /** Get the display badge for a tier */
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Go detection — CONTENT-AWARE go.mod classification.
3
+ *
4
+ * A go.mod alone does NOT mean "backend" or "CLI". The same module file backs
5
+ * libraries, HTTP servers (Gin / Echo / Fiber / Chi), CLIs (Cobra), and MCP
6
+ * servers (mcp-go). We read require paths and light layout signals, then branch.
7
+ *
8
+ * Same composition pattern as dart.ts: knowledge in go-detection.json, logic here.
9
+ * Turbo-Cat + scanner both call detectGoProject so they agree by construction.
10
+ */
11
+ export type GoAppType = 'mcp' | 'backend' | 'cli' | 'library';
12
+ export interface GoProject {
13
+ /** faf app_type — MCP→mcp, server→backend, CLI→cli, else library. */
14
+ appType: GoAppType;
15
+ /** Module path from `module` line, or ''. */
16
+ modulePath: string;
17
+ /** Primary framework (Gin / Cobra / …) or ''. */
18
+ framework: string;
19
+ /** Human-readable rationale for the .faf `# found:` comment (Glass Hood). */
20
+ found: string;
21
+ }
22
+ /** Collect require module paths from go.mod (require X and require ( … ) blocks). */
23
+ export declare function goModRequires(content: string): Set<string>;
24
+ /** Classify a Go project from go.mod (+ light layout). Returns null if not Go. */
25
+ export declare function detectGoProject(dir: string): GoProject | null;