faf-mcp 1.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.
- package/CHANGELOG.md +34 -0
- package/CLAUDE.md +73 -0
- package/LICENSE +22 -0
- package/README.md +165 -0
- package/assets/Project-faf-pckg-json-README.png +0 -0
- package/assets/icons/faf-icon-128.png +0 -0
- package/assets/icons/faf-icon-256.png +0 -0
- package/assets/icons/faf-icon-48.png +0 -0
- package/assets/icons/faf-icon-512.png +0 -0
- package/assets/icons/orange-smiley.svg +6 -0
- package/dist/src/compiler/index.d.ts +7 -0
- package/dist/src/compiler/index.js +24 -0
- package/dist/src/compiler/index.js.map +1 -0
- package/dist/src/compiler/scorer.d.ts +53 -0
- package/dist/src/compiler/scorer.js +189 -0
- package/dist/src/compiler/scorer.js.map +1 -0
- package/dist/src/compiler/slot-validator.d.ts +32 -0
- package/dist/src/compiler/slot-validator.js +293 -0
- package/dist/src/compiler/slot-validator.js.map +1 -0
- package/dist/src/compiler/type-detector.d.ts +62 -0
- package/dist/src/compiler/type-detector.js +388 -0
- package/dist/src/compiler/type-detector.js.map +1 -0
- package/dist/src/config/visibility.d.ts +41 -0
- package/dist/src/config/visibility.js +158 -0
- package/dist/src/config/visibility.js.map +1 -0
- package/dist/src/faf-core/commands/audit.d.ts +21 -0
- package/dist/src/faf-core/commands/audit.js +83 -0
- package/dist/src/faf-core/commands/audit.js.map +1 -0
- package/dist/src/faf-core/commands/auto.d.ts +25 -0
- package/dist/src/faf-core/commands/auto.js +74 -0
- package/dist/src/faf-core/commands/auto.js.map +1 -0
- package/dist/src/faf-core/commands/bi-sync.d.ts +26 -0
- package/dist/src/faf-core/commands/bi-sync.js +157 -0
- package/dist/src/faf-core/commands/bi-sync.js.map +1 -0
- package/dist/src/faf-core/commands/doctor.d.ts +17 -0
- package/dist/src/faf-core/commands/doctor.js +198 -0
- package/dist/src/faf-core/commands/doctor.js.map +1 -0
- package/dist/src/faf-core/commands/enhance.d.ts +46 -0
- package/dist/src/faf-core/commands/enhance.js +360 -0
- package/dist/src/faf-core/commands/enhance.js.map +1 -0
- package/dist/src/faf-core/commands/formats.d.ts +22 -0
- package/dist/src/faf-core/commands/formats.js +117 -0
- package/dist/src/faf-core/commands/formats.js.map +1 -0
- package/dist/src/faf-core/commands/init.d.ts +26 -0
- package/dist/src/faf-core/commands/init.js +114 -0
- package/dist/src/faf-core/commands/init.js.map +1 -0
- package/dist/src/faf-core/commands/innit.d.ts +7 -0
- package/dist/src/faf-core/commands/innit.js +13 -0
- package/dist/src/faf-core/commands/innit.js.map +1 -0
- package/dist/src/faf-core/commands/migrate.d.ts +15 -0
- package/dist/src/faf-core/commands/migrate.js +86 -0
- package/dist/src/faf-core/commands/migrate.js.map +1 -0
- package/dist/src/faf-core/commands/quick.d.ts +16 -0
- package/dist/src/faf-core/commands/quick.js +184 -0
- package/dist/src/faf-core/commands/quick.js.map +1 -0
- package/dist/src/faf-core/commands/score.d.ts +47 -0
- package/dist/src/faf-core/commands/score.js +49 -0
- package/dist/src/faf-core/commands/score.js.map +1 -0
- package/dist/src/faf-core/commands/sync.d.ts +16 -0
- package/dist/src/faf-core/commands/sync.js +210 -0
- package/dist/src/faf-core/commands/sync.js.map +1 -0
- package/dist/src/faf-core/commands/update.d.ts +12 -0
- package/dist/src/faf-core/commands/update.js +46 -0
- package/dist/src/faf-core/commands/update.js.map +1 -0
- package/dist/src/faf-core/commands/validate.d.ts +21 -0
- package/dist/src/faf-core/commands/validate.js +81 -0
- package/dist/src/faf-core/commands/validate.js.map +1 -0
- package/dist/src/faf-core/compiler/faf-compiler.d.ts +138 -0
- package/dist/src/faf-core/compiler/faf-compiler.js +794 -0
- package/dist/src/faf-core/compiler/faf-compiler.js.map +1 -0
- package/dist/src/faf-core/engines/dependency-tsa.d.ts +88 -0
- package/dist/src/faf-core/engines/dependency-tsa.js +361 -0
- package/dist/src/faf-core/engines/dependency-tsa.js.map +1 -0
- package/dist/src/faf-core/engines/fab-formats-processor.d.ts +166 -0
- package/dist/src/faf-core/engines/fab-formats-processor.js +1274 -0
- package/dist/src/faf-core/engines/fab-formats-processor.js.map +1 -0
- package/dist/src/faf-core/engines/faf-dna.d.ts +159 -0
- package/dist/src/faf-core/engines/faf-dna.js +554 -0
- package/dist/src/faf-core/engines/faf-dna.js.map +1 -0
- package/dist/src/faf-core/engines/relentless-context-extractor.d.ts +100 -0
- package/dist/src/faf-core/engines/relentless-context-extractor.js +625 -0
- package/dist/src/faf-core/engines/relentless-context-extractor.js.map +1 -0
- package/dist/src/faf-core/fix-once/colors.d.ts +104 -0
- package/dist/src/faf-core/fix-once/colors.js +236 -0
- package/dist/src/faf-core/fix-once/colors.js.map +1 -0
- package/dist/src/faf-core/fix-once/types.d.ts +257 -0
- package/dist/src/faf-core/fix-once/types.js +26 -0
- package/dist/src/faf-core/fix-once/types.js.map +1 -0
- package/dist/src/faf-core/fix-once/yaml.d.ts +57 -0
- package/dist/src/faf-core/fix-once/yaml.js +172 -0
- package/dist/src/faf-core/fix-once/yaml.js.map +1 -0
- package/dist/src/faf-core/generators/faf-generator-championship.d.ts +16 -0
- package/dist/src/faf-core/generators/faf-generator-championship.js +462 -0
- package/dist/src/faf-core/generators/faf-generator-championship.js.map +1 -0
- package/dist/src/faf-core/utils/balance-visualizer.d.ts +37 -0
- package/dist/src/faf-core/utils/balance-visualizer.js +197 -0
- package/dist/src/faf-core/utils/balance-visualizer.js.map +1 -0
- package/dist/src/faf-core/utils/championship-style.d.ts +109 -0
- package/dist/src/faf-core/utils/championship-style.js +219 -0
- package/dist/src/faf-core/utils/championship-style.js.map +1 -0
- package/dist/src/faf-core/utils/chrome-extension-detector.d.ts +73 -0
- package/dist/src/faf-core/utils/chrome-extension-detector.js +268 -0
- package/dist/src/faf-core/utils/chrome-extension-detector.js.map +1 -0
- package/dist/src/faf-core/utils/fafignore-parser.d.ts +20 -0
- package/dist/src/faf-core/utils/fafignore-parser.js +178 -0
- package/dist/src/faf-core/utils/fafignore-parser.js.map +1 -0
- package/dist/src/faf-core/utils/file-utils.d.ts +112 -0
- package/dist/src/faf-core/utils/file-utils.js +846 -0
- package/dist/src/faf-core/utils/file-utils.js.map +1 -0
- package/dist/src/faf-core/utils/native-file-finder.d.ts +115 -0
- package/dist/src/faf-core/utils/native-file-finder.js +211 -0
- package/dist/src/faf-core/utils/native-file-finder.js.map +1 -0
- package/dist/src/faf-core/utils/platform-detector.d.ts +30 -0
- package/dist/src/faf-core/utils/platform-detector.js +218 -0
- package/dist/src/faf-core/utils/platform-detector.js.map +1 -0
- package/dist/src/faf-core/utils/technical-credit.d.ts +35 -0
- package/dist/src/faf-core/utils/technical-credit.js +286 -0
- package/dist/src/faf-core/utils/technical-credit.js.map +1 -0
- package/dist/src/faf-core/utils/yaml-generator.d.ts +41 -0
- package/dist/src/faf-core/utils/yaml-generator.js +360 -0
- package/dist/src/faf-core/utils/yaml-generator.js.map +1 -0
- package/dist/src/handlers/behavioral-instruction.d.ts +16 -0
- package/dist/src/handlers/behavioral-instruction.js +43 -0
- package/dist/src/handlers/behavioral-instruction.js.map +1 -0
- package/dist/src/handlers/championship-tools.d.ts +113 -0
- package/dist/src/handlers/championship-tools.js +2602 -0
- package/dist/src/handlers/championship-tools.js.map +1 -0
- package/dist/src/handlers/engine-adapter.d.ts +28 -0
- package/dist/src/handlers/engine-adapter.js +603 -0
- package/dist/src/handlers/engine-adapter.js.map +1 -0
- package/dist/src/handlers/fileHandler.d.ts +36 -0
- package/dist/src/handlers/fileHandler.js +246 -0
- package/dist/src/handlers/fileHandler.js.map +1 -0
- package/dist/src/handlers/resources.d.ts +18 -0
- package/dist/src/handlers/resources.js +78 -0
- package/dist/src/handlers/resources.js.map +1 -0
- package/dist/src/handlers/tool-registry.d.ts +23 -0
- package/dist/src/handlers/tool-registry.js +68 -0
- package/dist/src/handlers/tool-registry.js.map +1 -0
- package/dist/src/handlers/tool-types.d.ts +167 -0
- package/dist/src/handlers/tool-types.js +7 -0
- package/dist/src/handlers/tool-types.js.map +1 -0
- package/dist/src/handlers/tools.d.ts +25 -0
- package/dist/src/handlers/tools.js +1168 -0
- package/dist/src/handlers/tools.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +17 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/server.d.ts +28 -0
- package/dist/src/server.js +179 -0
- package/dist/src/server.js.map +1 -0
- package/dist/src/test-all-functions.d.ts +15 -0
- package/dist/src/test-all-functions.js +163 -0
- package/dist/src/test-all-functions.js.map +1 -0
- package/dist/src/types/mcp-tools.d.ts +53 -0
- package/dist/src/types/mcp-tools.js +77 -0
- package/dist/src/types/mcp-tools.js.map +1 -0
- package/dist/src/types/project-types.d.ts +22 -0
- package/dist/src/types/project-types.js +85 -0
- package/dist/src/types/project-types.js.map +1 -0
- package/dist/src/types/slots.d.ts +39 -0
- package/dist/src/types/slots.js +162 -0
- package/dist/src/types/slots.js.map +1 -0
- package/dist/src/types/tool-visibility.d.ts +36 -0
- package/dist/src/types/tool-visibility.js +510 -0
- package/dist/src/types/tool-visibility.js.map +1 -0
- package/dist/src/utils/auto-path-detection.d.ts +26 -0
- package/dist/src/utils/auto-path-detection.js +198 -0
- package/dist/src/utils/auto-path-detection.js.map +1 -0
- package/dist/src/utils/championship-format.d.ts +30 -0
- package/dist/src/utils/championship-format.js +79 -0
- package/dist/src/utils/championship-format.js.map +1 -0
- package/dist/src/utils/cli-detector.d.ts +20 -0
- package/dist/src/utils/cli-detector.js +230 -0
- package/dist/src/utils/cli-detector.js.map +1 -0
- package/dist/src/utils/display-protocol.d.ts +57 -0
- package/dist/src/utils/display-protocol.js +131 -0
- package/dist/src/utils/display-protocol.js.map +1 -0
- package/dist/src/utils/faf-file-finder.d.ts +59 -0
- package/dist/src/utils/faf-file-finder.js +139 -0
- package/dist/src/utils/faf-file-finder.js.map +1 -0
- package/dist/src/utils/fuzzy-detector.d.ts +56 -0
- package/dist/src/utils/fuzzy-detector.js +221 -0
- package/dist/src/utils/fuzzy-detector.js.map +1 -0
- package/dist/src/utils/path-resolver.d.ts +51 -0
- package/dist/src/utils/path-resolver.js +214 -0
- package/dist/src/utils/path-resolver.js.map +1 -0
- package/dist/src/utils/type-guards.d.ts +9 -0
- package/dist/src/utils/type-guards.js +27 -0
- package/dist/src/utils/type-guards.js.map +1 -0
- package/dist/src/utils/username-detector.d.ts +27 -0
- package/dist/src/utils/username-detector.js +90 -0
- package/dist/src/utils/username-detector.js.map +1 -0
- package/dist/src/utils/visual-style.d.ts +62 -0
- package/dist/src/utils/visual-style.js +164 -0
- package/dist/src/utils/visual-style.js.map +1 -0
- package/dist/src/version.d.ts +9 -0
- package/dist/src/version.js +37 -0
- package/dist/src/version.js.map +1 -0
- package/package.json +114 -0
- package/scripts/discord-sync-curated.js +233 -0
- package/scripts/discord-sync-final.js +218 -0
- package/scripts/discord-sync-simple.js +175 -0
- package/scripts/discord-sync-working.js +187 -0
- package/scripts/discord-sync.js +181 -0
- package/scripts/postinstall.js +46 -0
- package/skill/SKILL.md +385 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project Types V1 - FAF Compiler Engine MK3
|
|
3
|
+
* Championship-grade type definitions for intelligent project scoring
|
|
4
|
+
*/
|
|
5
|
+
export type ProjectType = 'browser-extension' | 'vibe-site' | 'spa' | 'full-stack' | 'api-backend' | 'library' | 'cli-tool' | 'mcp-server' | 'desktop-app' | 'mobile-app' | 'microservices' | 'serverless' | 'docs-site' | 'monorepo';
|
|
6
|
+
export interface TypeDetectionResult {
|
|
7
|
+
type: ProjectType;
|
|
8
|
+
confidence: number;
|
|
9
|
+
slotignore: string[];
|
|
10
|
+
relevantSlots: number;
|
|
11
|
+
reasoning: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ProjectSignature {
|
|
14
|
+
files?: string[];
|
|
15
|
+
dependencies?: string[];
|
|
16
|
+
devDependencies?: string[];
|
|
17
|
+
directories?: string[];
|
|
18
|
+
packageJsonFields?: string[];
|
|
19
|
+
}
|
|
20
|
+
export declare const PROJECT_TYPE_SIGNATURES: Record<ProjectType, ProjectSignature>;
|
|
21
|
+
export declare const SLOT_IGNORE_BY_TYPE: Record<ProjectType, string[]>;
|
|
22
|
+
export declare const RELEVANT_SLOTS_BY_TYPE: Record<ProjectType, number>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Project Types V1 - FAF Compiler Engine MK3
|
|
4
|
+
* Championship-grade type definitions for intelligent project scoring
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.RELEVANT_SLOTS_BY_TYPE = exports.SLOT_IGNORE_BY_TYPE = exports.PROJECT_TYPE_SIGNATURES = void 0;
|
|
8
|
+
exports.PROJECT_TYPE_SIGNATURES = {
|
|
9
|
+
'browser-extension': {
|
|
10
|
+
files: ['manifest.json'],
|
|
11
|
+
},
|
|
12
|
+
'docs-site': {
|
|
13
|
+
files: ['docusaurus.config.js', 'vitepress.config.js', 'nextra.config.js'],
|
|
14
|
+
},
|
|
15
|
+
'monorepo': {
|
|
16
|
+
files: ['pnpm-workspace.yaml', 'lerna.json', 'nx.json', 'turbo.json'],
|
|
17
|
+
},
|
|
18
|
+
'mcp-server': {
|
|
19
|
+
dependencies: ['@modelcontextprotocol/sdk'],
|
|
20
|
+
},
|
|
21
|
+
'desktop-app': {
|
|
22
|
+
dependencies: ['electron', 'tauri'],
|
|
23
|
+
},
|
|
24
|
+
'mobile-app': {
|
|
25
|
+
dependencies: ['react-native', 'flutter', 'expo'],
|
|
26
|
+
},
|
|
27
|
+
'serverless': {
|
|
28
|
+
files: ['serverless.yml', 'serverless.yaml'],
|
|
29
|
+
dependencies: ['serverless'],
|
|
30
|
+
},
|
|
31
|
+
'microservices': {
|
|
32
|
+
files: ['docker-compose.yml', 'k8s/', 'kubernetes/'],
|
|
33
|
+
},
|
|
34
|
+
'cli-tool': {
|
|
35
|
+
packageJsonFields: ['bin'],
|
|
36
|
+
},
|
|
37
|
+
'library': {
|
|
38
|
+
packageJsonFields: ['main', 'exports'],
|
|
39
|
+
},
|
|
40
|
+
'api-backend': {
|
|
41
|
+
dependencies: ['express', 'fastapi', 'koa', 'hono', '@hono/node-server'],
|
|
42
|
+
},
|
|
43
|
+
'full-stack': {
|
|
44
|
+
// Detected by structure analysis (frontend + backend + database)
|
|
45
|
+
},
|
|
46
|
+
'spa': {
|
|
47
|
+
dependencies: ['react', 'vue', 'svelte', '@angular/core'],
|
|
48
|
+
},
|
|
49
|
+
'vibe-site': {
|
|
50
|
+
// Detected by static structure, minimal dependencies
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
exports.SLOT_IGNORE_BY_TYPE = {
|
|
54
|
+
'browser-extension': ['backend', 'database', 'hosting', 'api', 'auth', 'storage', 'caching', 'team'],
|
|
55
|
+
'vibe-site': ['backend', 'database', 'api', 'cicd', 'hosting', 'ui_library', 'state', 'runtime', 'auth', 'storage', 'caching', 'team'],
|
|
56
|
+
'spa': ['backend', 'database', 'storage', 'caching'],
|
|
57
|
+
'full-stack': [], // No slots ignored
|
|
58
|
+
'api-backend': ['frontend', 'css', 'ui_library', 'state'],
|
|
59
|
+
'library': ['frontend', 'backend', 'database', 'api', 'hosting', 'css', 'ui_library', 'state', 'runtime', 'auth', 'storage', 'caching', 'team'],
|
|
60
|
+
'cli-tool': ['frontend', 'backend', 'database', 'api', 'hosting', 'css', 'ui_library', 'state', 'auth', 'storage', 'caching', 'team'],
|
|
61
|
+
'mcp-server': ['frontend', 'database', 'hosting', 'css', 'ui_library', 'state', 'auth', 'storage', 'caching', 'team'],
|
|
62
|
+
'desktop-app': ['hosting', 'caching', 'team'],
|
|
63
|
+
'mobile-app': ['hosting', 'caching', 'team'],
|
|
64
|
+
'microservices': [], // No slots ignored
|
|
65
|
+
'serverless': ['frontend', 'css', 'ui_library', 'state'],
|
|
66
|
+
'docs-site': ['backend', 'database', 'api', 'hosting', 'cicd', 'testing', 'ui_library', 'state', 'runtime', 'auth', 'storage', 'caching', 'team'],
|
|
67
|
+
'monorepo': [], // No slots ignored
|
|
68
|
+
};
|
|
69
|
+
exports.RELEVANT_SLOTS_BY_TYPE = {
|
|
70
|
+
'browser-extension': 13,
|
|
71
|
+
'vibe-site': 11,
|
|
72
|
+
'spa': 17,
|
|
73
|
+
'full-stack': 21,
|
|
74
|
+
'api-backend': 17,
|
|
75
|
+
'library': 10,
|
|
76
|
+
'cli-tool': 10,
|
|
77
|
+
'mcp-server': 11,
|
|
78
|
+
'desktop-app': 18,
|
|
79
|
+
'mobile-app': 18,
|
|
80
|
+
'microservices': 21,
|
|
81
|
+
'serverless': 17,
|
|
82
|
+
'docs-site': 9,
|
|
83
|
+
'monorepo': 21,
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=project-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-types.js","sourceRoot":"","sources":["../../../src/types/project-types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAkCU,QAAA,uBAAuB,GAA0C;IAC5E,mBAAmB,EAAE;QACnB,KAAK,EAAE,CAAC,eAAe,CAAC;KACzB;IACD,WAAW,EAAE;QACX,KAAK,EAAE,CAAC,sBAAsB,EAAE,qBAAqB,EAAE,kBAAkB,CAAC;KAC3E;IACD,UAAU,EAAE;QACV,KAAK,EAAE,CAAC,qBAAqB,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC;KACtE;IACD,YAAY,EAAE;QACZ,YAAY,EAAE,CAAC,2BAA2B,CAAC;KAC5C;IACD,aAAa,EAAE;QACb,YAAY,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;KACpC;IACD,YAAY,EAAE;QACZ,YAAY,EAAE,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,CAAC;KAClD;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;QAC5C,YAAY,EAAE,CAAC,YAAY,CAAC;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3
|
|
4
|
+
*/
|
|
5
|
+
export interface SlotDefinition {
|
|
6
|
+
number: number;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
category: 'core' | 'stack' | 'architecture';
|
|
10
|
+
}
|
|
11
|
+
export declare const UNIVERSAL_SLOTS: SlotDefinition[];
|
|
12
|
+
export interface SlotStatus {
|
|
13
|
+
slotNumber: number;
|
|
14
|
+
slotName: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
filled: boolean;
|
|
17
|
+
value?: any;
|
|
18
|
+
points: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ValidationResult {
|
|
21
|
+
totalSlots: 21;
|
|
22
|
+
relevantSlots: number;
|
|
23
|
+
filledSlots: number;
|
|
24
|
+
slots: SlotStatus[];
|
|
25
|
+
score: number;
|
|
26
|
+
medal: 'trophy' | 'gold' | 'silver' | 'bronze' | 'red' | 'white';
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get slot name by number
|
|
30
|
+
*/
|
|
31
|
+
export declare function getSlotName(slotNumber: number): string;
|
|
32
|
+
/**
|
|
33
|
+
* Get all slot names
|
|
34
|
+
*/
|
|
35
|
+
export declare function getAllSlotNames(): string[];
|
|
36
|
+
/**
|
|
37
|
+
* Check if a slot is in the core category
|
|
38
|
+
*/
|
|
39
|
+
export declare function isCoreSlot(slotName: string): boolean;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Universal 21-Slot Architecture
|
|
4
|
+
* Championship-grade slot definitions for FAF Compiler Engine MK3
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.UNIVERSAL_SLOTS = void 0;
|
|
8
|
+
exports.getSlotName = getSlotName;
|
|
9
|
+
exports.getAllSlotNames = getAllSlotNames;
|
|
10
|
+
exports.isCoreSlot = isCoreSlot;
|
|
11
|
+
exports.UNIVERSAL_SLOTS = [
|
|
12
|
+
// Core Project (Slots 1-4) - UNIVERSAL
|
|
13
|
+
{
|
|
14
|
+
number: 1,
|
|
15
|
+
name: 'project_identity',
|
|
16
|
+
description: 'Project name, goal, type, version',
|
|
17
|
+
category: 'core',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
number: 2,
|
|
21
|
+
name: 'language',
|
|
22
|
+
description: 'Primary programming language',
|
|
23
|
+
category: 'core',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
number: 3,
|
|
27
|
+
name: 'human_context',
|
|
28
|
+
description: '6 Ws: who, what, why, where, when, how',
|
|
29
|
+
category: 'core',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
number: 4,
|
|
33
|
+
name: 'documentation',
|
|
34
|
+
description: 'README.md, CLAUDE.md, .faf file',
|
|
35
|
+
category: 'core',
|
|
36
|
+
},
|
|
37
|
+
// Stack (Slots 5-14)
|
|
38
|
+
{
|
|
39
|
+
number: 5,
|
|
40
|
+
name: 'frontend',
|
|
41
|
+
description: 'Frontend framework (React, Vue, Svelte, etc.)',
|
|
42
|
+
category: 'stack',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
number: 6,
|
|
46
|
+
name: 'backend',
|
|
47
|
+
description: 'Backend framework (Express, FastAPI, Rails, etc.)',
|
|
48
|
+
category: 'stack',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
number: 7,
|
|
52
|
+
name: 'database',
|
|
53
|
+
description: 'Database (PostgreSQL, MongoDB, Supabase, etc.)',
|
|
54
|
+
category: 'stack',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
number: 8,
|
|
58
|
+
name: 'build_tool',
|
|
59
|
+
description: 'Build tool (Vite, Webpack, esbuild, etc.)',
|
|
60
|
+
category: 'stack',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
number: 9,
|
|
64
|
+
name: 'package_manager',
|
|
65
|
+
description: 'Package manager (npm, pnpm, yarn, pip, cargo)',
|
|
66
|
+
category: 'stack',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
number: 10,
|
|
70
|
+
name: 'api',
|
|
71
|
+
description: 'API type (REST, GraphQL, tRPC, MCP, etc.)',
|
|
72
|
+
category: 'stack',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
number: 11,
|
|
76
|
+
name: 'hosting',
|
|
77
|
+
description: 'Hosting/deployment (Vercel, AWS, Netlify, etc.)',
|
|
78
|
+
category: 'stack',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
number: 12,
|
|
82
|
+
name: 'cicd',
|
|
83
|
+
description: 'CI/CD pipeline (GitHub Actions, CircleCI, etc.)',
|
|
84
|
+
category: 'stack',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
number: 13,
|
|
88
|
+
name: 'testing',
|
|
89
|
+
description: 'Testing framework (Vitest, Jest, Pytest, etc.)',
|
|
90
|
+
category: 'stack',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
number: 14,
|
|
94
|
+
name: 'css',
|
|
95
|
+
description: 'CSS/styling (Tailwind, CSS Modules, styled-components)',
|
|
96
|
+
category: 'stack',
|
|
97
|
+
},
|
|
98
|
+
// Architecture (Slots 15-21)
|
|
99
|
+
{
|
|
100
|
+
number: 15,
|
|
101
|
+
name: 'ui_library',
|
|
102
|
+
description: 'UI library/components (shadcn, MUI, custom)',
|
|
103
|
+
category: 'architecture',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
number: 16,
|
|
107
|
+
name: 'state',
|
|
108
|
+
description: 'State management (Zustand, Redux, Svelte stores)',
|
|
109
|
+
category: 'architecture',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
number: 17,
|
|
113
|
+
name: 'runtime',
|
|
114
|
+
description: 'Runtime environment (Node.js, Deno, Bun, browser)',
|
|
115
|
+
category: 'architecture',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
number: 18,
|
|
119
|
+
name: 'auth',
|
|
120
|
+
description: 'Authentication/Auth (Auth0, Supabase Auth, custom)',
|
|
121
|
+
category: 'architecture',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
number: 19,
|
|
125
|
+
name: 'storage',
|
|
126
|
+
description: 'File storage/assets (S3, Cloudinary, local)',
|
|
127
|
+
category: 'architecture',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
number: 20,
|
|
131
|
+
name: 'caching',
|
|
132
|
+
description: 'Caching/performance (Redis, CDN, service workers)',
|
|
133
|
+
category: 'architecture',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
number: 21,
|
|
137
|
+
name: 'team',
|
|
138
|
+
description: 'Team/workflow structure (monorepo, CI, git flow)',
|
|
139
|
+
category: 'architecture',
|
|
140
|
+
},
|
|
141
|
+
];
|
|
142
|
+
/**
|
|
143
|
+
* Get slot name by number
|
|
144
|
+
*/
|
|
145
|
+
function getSlotName(slotNumber) {
|
|
146
|
+
const slot = exports.UNIVERSAL_SLOTS.find(s => s.number === slotNumber);
|
|
147
|
+
return slot ? slot.name : `slot_${slotNumber}`;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Get all slot names
|
|
151
|
+
*/
|
|
152
|
+
function getAllSlotNames() {
|
|
153
|
+
return exports.UNIVERSAL_SLOTS.map(s => s.name);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Check if a slot is in the core category
|
|
157
|
+
*/
|
|
158
|
+
function isCoreSlot(slotName) {
|
|
159
|
+
const slot = exports.UNIVERSAL_SLOTS.find(s => s.name === slotName);
|
|
160
|
+
return slot?.category === 'core';
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=slots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slots.js","sourceRoot":"","sources":["../../../src/types/slots.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAoKH,kCAGC;AAKD,0CAEC;AAKD,gCAGC;AA7KY,QAAA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AAE,CAAC,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC;IAChE,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,UAAU,EAAE,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,SAAgB,eAAe;IAC7B,OAAO,uBAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED;;GAEG;AACH,SAAgB,UAAU,CAAC,QAAgB;IACzC,MAAM,IAAI,GAAG,uBAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;IAC5D,OAAO,IAAI,EAAE,QAAQ,KAAK,MAAM,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 🏎️ FAF Tool Visibility System - v2.8.0
|
|
3
|
+
* Reduce cognitive load: 20 core tools + 31 advanced tools
|
|
4
|
+
* Championship-grade organization
|
|
5
|
+
*/
|
|
6
|
+
export type ToolVisibility = 'core' | 'advanced';
|
|
7
|
+
export type ToolCategory = 'workflow' | 'quality' | 'intelligence' | 'sync' | 'ai' | 'help' | 'trust' | 'file' | 'utility' | 'display';
|
|
8
|
+
export interface ToolMetadata {
|
|
9
|
+
name: string;
|
|
10
|
+
visibility: ToolVisibility;
|
|
11
|
+
category: ToolCategory;
|
|
12
|
+
description: string;
|
|
13
|
+
priority?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Complete tool registry with metadata
|
|
17
|
+
*/
|
|
18
|
+
export declare const TOOL_REGISTRY: Record<string, ToolMetadata>;
|
|
19
|
+
/**
|
|
20
|
+
* Helper functions
|
|
21
|
+
*/
|
|
22
|
+
export declare function isCoreTool(toolName: string): boolean;
|
|
23
|
+
export declare function isAdvancedTool(toolName: string): boolean;
|
|
24
|
+
export declare function getCoreTools(): ToolMetadata[];
|
|
25
|
+
export declare function getAdvancedTools(): ToolMetadata[];
|
|
26
|
+
export declare function getAllTools(): ToolMetadata[];
|
|
27
|
+
export declare function getToolsByCategory(category: ToolCategory): ToolMetadata[];
|
|
28
|
+
export declare function getToolMetadata(toolName: string): ToolMetadata | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Validate tool counts (for testing)
|
|
31
|
+
*/
|
|
32
|
+
export declare function validateToolCounts(): {
|
|
33
|
+
core: number;
|
|
34
|
+
advanced: number;
|
|
35
|
+
total: number;
|
|
36
|
+
};
|