| /** | ||
| * Go detection — CONTENT-AWARE go.mod classification. | ||
| * | ||
| * A go.mod alone does NOT mean "backend" or "CLI". The same module file backs | ||
| * libraries, HTTP servers (Gin / Echo / Fiber / Chi), CLIs (Cobra), and MCP | ||
| * servers (mcp-go). We read require paths and light layout signals, then branch. | ||
| * | ||
| * Same composition pattern as dart.ts: knowledge in go-detection.json, logic here. | ||
| * Turbo-Cat + scanner both call detectGoProject so they agree by construction. | ||
| */ | ||
| export type GoAppType = 'mcp' | 'backend' | 'cli' | 'library'; | ||
| export interface GoProject { | ||
| /** faf app_type — MCP→mcp, server→backend, CLI→cli, else library. */ | ||
| appType: GoAppType; | ||
| /** Module path from `module` line, or ''. */ | ||
| modulePath: string; | ||
| /** Primary framework (Gin / Cobra / …) or ''. */ | ||
| framework: string; | ||
| /** Human-readable rationale for the .faf `# found:` comment (Glass Hood). */ | ||
| found: string; | ||
| } | ||
| /** Collect require module paths from go.mod (require X and require ( … ) blocks). */ | ||
| export declare function goModRequires(content: string): Set<string>; | ||
| /** Classify a Go project from go.mod (+ light layout). Returns null if not Go. */ | ||
| export declare function detectGoProject(dir: string): GoProject | null; |
@@ -14,3 +14,2 @@ import type { TierInfo } from './types.js'; | ||
| * All three 100% glyphs mean the same score: ✪ work · 🏆 social · Trophy Mark (PNG) visual. | ||
| * See PLANET-FAF/memory/trophy-three-glyphs-one-meaning.md | ||
| */ | ||
@@ -17,0 +16,0 @@ export declare const TIERS: TierInfo[]; |
+1
-1
| { | ||
| "name": "faf-cli", | ||
| "version": "7.2.1", | ||
| "version": "7.3.0", | ||
| "description": "Persistent AI context + memory — .faf and .fafm, IANA-registered. Anthropic-merged.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+7
-1
@@ -26,3 +26,3 @@ <!-- faf: faf-cli | TypeScript | cli | CLI for the .faf and .fafm IANA-registered formats — AI context + memory that versions with your code --> | ||
| **115,000+ downloads across the FAF ecosystem · IANA-registered · Anthropic-merged (#2759)** | ||
| **Over 100k downloads** · see [faf.one/downloads](https://faf.one/downloads) for latest stats · **IANA-registered · Anthropic-merged (#2759)** | ||
@@ -134,2 +134,8 @@ ⭐ **A star helps other devs find faf-cli** — despite the downloads, ~3 of 4 devs check stars. | ||
| ### What's New in v7.3.0 — The Go Edition | ||
| - **Content-aware Go** — `go.mod` alone is never “backend.” FAF classifies MCP · Gin/Echo/Fiber/Chi · Cobra/cmd CLI · pure library. | ||
| - **Same pattern as Dart** — one knowledge file, one classifier; composed across surfaces. | ||
| - **Work-surface Trophy glyph ✪** — 100% Proof Seal on CLI/docs (social still 🏆). | ||
| ### Dart/Flutter — knowledge v2 in 7.2.1 | ||
@@ -136,0 +142,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3113152
0.95%40
2.56%4261
1.24%308
1.99%10
-9.09%