faf-cli 7.16.1 → 7.16.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.
- package/README.md +5 -1
- package/dist/cli.js +198 -198
- package/dist/cli.js.map +5 -5
- package/dist/core/types.d.ts +16 -15
- package/dist/detect/scanner.d.ts +4 -5
- package/dist/index.js +108 -108
- package/dist/index.js.map +5 -5
- package/dist/wasm/kernel.d.ts +2 -10
- package/package.json +4 -3
- package/project.faf +3 -3
- package/vendor/faf-scoring-kernel/README.md +14 -0
- package/vendor/faf-scoring-kernel/faf_wasm_sdk.d.ts +42 -0
- package/vendor/faf-scoring-kernel/faf_wasm_sdk.js +366 -0
- package/vendor/faf-scoring-kernel/faf_wasm_sdk_bg.wasm +0 -0
- package/vendor/faf-scoring-kernel/faf_wasm_sdk_bg.wasm.d.ts +15 -0
- package/vendor/faf-scoring-kernel/package.json +23 -0
package/dist/core/types.d.ts
CHANGED
|
@@ -108,35 +108,36 @@ export interface FafData {
|
|
|
108
108
|
human_context?: Record<string, unknown>;
|
|
109
109
|
monorepo?: Record<string, unknown>;
|
|
110
110
|
scores?: Record<string, unknown>;
|
|
111
|
-
/**
|
|
111
|
+
/** `tech_stack` chunk — flat list of technology components */
|
|
112
112
|
tech_stack?: string[];
|
|
113
|
-
/**
|
|
113
|
+
/** `key_files` chunk — list of important file paths */
|
|
114
114
|
key_files?: string[];
|
|
115
|
-
/**
|
|
115
|
+
/** `commands` chunk — build/test/lint/dev command map */
|
|
116
116
|
commands?: Record<string, string>;
|
|
117
|
-
/**
|
|
117
|
+
/** `architecture` chunk — free-form structural description (user-fill) */
|
|
118
118
|
architecture?: string;
|
|
119
|
-
/**
|
|
119
|
+
/** `context` chunk — free-form additional signal (user-fill, NOT human_context) */
|
|
120
120
|
context?: string;
|
|
121
121
|
[key: string]: unknown;
|
|
122
122
|
}
|
|
123
|
-
/** FAFb
|
|
123
|
+
/** FAFb v2 info from kernel decompile / fafb_info */
|
|
124
124
|
export interface FafbInfo {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
};
|
|
125
|
+
version: string;
|
|
126
|
+
flags: number;
|
|
127
|
+
section_count: number;
|
|
128
|
+
total_size: number;
|
|
129
|
+
source_checksum: string;
|
|
130
|
+
created?: number;
|
|
132
131
|
sections: Array<{
|
|
133
132
|
name: string;
|
|
133
|
+
name_index?: number;
|
|
134
134
|
priority: number;
|
|
135
|
-
offset
|
|
135
|
+
offset?: number;
|
|
136
136
|
length: number;
|
|
137
|
+
token_count?: number;
|
|
137
138
|
classification: string;
|
|
139
|
+
content?: string;
|
|
138
140
|
}>;
|
|
139
|
-
content?: string;
|
|
140
141
|
}
|
|
141
142
|
/** Framework detection result */
|
|
142
143
|
export interface DetectedFramework {
|
package/dist/detect/scanner.d.ts
CHANGED
|
@@ -89,14 +89,13 @@ export declare function detectHosting(dir: string): string | null;
|
|
|
89
89
|
export declare function detectSvelteAdapter(dir: string): string | null;
|
|
90
90
|
/** Detect build tool */
|
|
91
91
|
export declare function detectBuildTool(dir: string): string | null;
|
|
92
|
-
/** Detect a list of important file paths for the
|
|
92
|
+
/** Detect a list of important file paths for the `key_files` chunk.
|
|
93
93
|
* Returns up to ~10 entries, ordered by canonical importance. */
|
|
94
94
|
export declare function detectKeyFiles(dir: string): string[];
|
|
95
|
-
/** Detect build/test/lint commands for the
|
|
95
|
+
/** Detect build/test/lint commands for the `commands` chunk.
|
|
96
96
|
* Returns a Record<string, string> mapping command name → shell command. */
|
|
97
97
|
export declare function detectCommands(dir: string, pkg: PackageJson | null): Record<string, string>;
|
|
98
|
-
/** Detect a tech-stack list for the
|
|
99
|
-
* Combines language + frameworks + runtime into a flat list of strings
|
|
100
|
-
* (matching the canonical xai-faf-rust project.faf shape). */
|
|
98
|
+
/** Detect a tech-stack list for the `tech_stack` chunk.
|
|
99
|
+
* Combines language + frameworks + runtime into a flat list of strings. */
|
|
101
100
|
export declare function detectTechStack(dir: string, pkg: PackageJson | null, frameworks: DetectedFramework[], language: string): string[];
|
|
102
101
|
export {};
|