faf-cli 5.1.0 → 6.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/README.md +80 -52
- package/dist/cli.js +313 -1884
- package/dist/index.js +4 -46
- package/package.json +29 -104
- package/project.faf +33 -141
- package/assets/project-faf-screenshot.png +0 -0
- package/dist/big-orange/bigo-push.d.ts +0 -18
- package/dist/big-orange/bigo-push.d.ts.map +0 -1
- package/dist/big-orange/bigo-push.js +0 -88
- package/dist/big-orange/bigo-push.js.map +0 -1
- package/dist/big-orange/compare.d.ts +0 -11
- package/dist/big-orange/compare.d.ts.map +0 -1
- package/dist/big-orange/compare.js +0 -179
- package/dist/big-orange/compare.js.map +0 -1
- package/dist/big-orange/faf-generator.d.ts +0 -22
- package/dist/big-orange/faf-generator.d.ts.map +0 -1
- package/dist/big-orange/faf-generator.js +0 -215
- package/dist/big-orange/faf-generator.js.map +0 -1
- package/dist/big-orange/index.d.ts +0 -7
- package/dist/big-orange/index.d.ts.map +0 -1
- package/dist/big-orange/index.js +0 -96
- package/dist/big-orange/index.js.map +0 -1
- package/dist/big-orange/types.d.ts +0 -62
- package/dist/big-orange/types.d.ts.map +0 -1
- package/dist/big-orange/types.js +0 -7
- package/dist/big-orange/types.js.map +0 -1
- package/dist/cli.d.ts +0 -8
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/agents.d.ts +0 -14
- package/dist/commands/agents.d.ts.map +0 -1
- package/dist/commands/agents.js +0 -353
- package/dist/commands/agents.js.map +0 -1
- package/dist/commands/ai-analyze.d.ts +0 -18
- package/dist/commands/ai-analyze.d.ts.map +0 -1
- package/dist/commands/ai-analyze.js +0 -190
- package/dist/commands/ai-analyze.js.map +0 -1
- package/dist/commands/ai-enhance.d.ts +0 -17
- package/dist/commands/ai-enhance.d.ts.map +0 -1
- package/dist/commands/ai-enhance.js +0 -275
- package/dist/commands/ai-enhance.js.map +0 -1
- package/dist/commands/antigravity.d.ts +0 -16
- package/dist/commands/antigravity.d.ts.map +0 -1
- package/dist/commands/antigravity.js +0 -398
- package/dist/commands/antigravity.js.map +0 -1
- package/dist/commands/audit.d.ts +0 -11
- package/dist/commands/audit.d.ts.map +0 -1
- package/dist/commands/audit.js +0 -148
- package/dist/commands/audit.js.map +0 -1
- package/dist/commands/auto.d.ts +0 -27
- package/dist/commands/auto.d.ts.map +0 -1
- package/dist/commands/auto.js +0 -498
- package/dist/commands/auto.js.map +0 -1
- package/dist/commands/bi-sync.d.ts +0 -50
- package/dist/commands/bi-sync.d.ts.map +0 -1
- package/dist/commands/bi-sync.js +0 -307
- package/dist/commands/bi-sync.js.map +0 -1
- package/dist/commands/chat.d.ts +0 -7
- package/dist/commands/chat.d.ts.map +0 -1
- package/dist/commands/chat.js +0 -415
- package/dist/commands/chat.js.map +0 -1
- package/dist/commands/check.d.ts +0 -31
- package/dist/commands/check.d.ts.map +0 -1
- package/dist/commands/check.js +0 -301
- package/dist/commands/check.js.map +0 -1
- package/dist/commands/clear.d.ts +0 -15
- package/dist/commands/clear.d.ts.map +0 -1
- package/dist/commands/clear.js +0 -167
- package/dist/commands/clear.js.map +0 -1
- package/dist/commands/compile.d.ts +0 -12
- package/dist/commands/compile.d.ts.map +0 -1
- package/dist/commands/compile.js +0 -51
- package/dist/commands/compile.js.map +0 -1
- package/dist/commands/conductor.d.ts +0 -15
- package/dist/commands/conductor.d.ts.map +0 -1
- package/dist/commands/conductor.js +0 -339
- package/dist/commands/conductor.js.map +0 -1
- package/dist/commands/convert.d.ts +0 -19
- package/dist/commands/convert.d.ts.map +0 -1
- package/dist/commands/convert.js +0 -99
- package/dist/commands/convert.js.map +0 -1
- package/dist/commands/credit.d.ts +0 -13
- package/dist/commands/credit.d.ts.map +0 -1
- package/dist/commands/credit.js +0 -149
- package/dist/commands/credit.js.map +0 -1
- package/dist/commands/cursor.d.ts +0 -13
- package/dist/commands/cursor.d.ts.map +0 -1
- package/dist/commands/cursor.js +0 -310
- package/dist/commands/cursor.js.map +0 -1
- package/dist/commands/decompile.d.ts +0 -9
- package/dist/commands/decompile.d.ts.map +0 -1
- package/dist/commands/decompile.js +0 -21
- package/dist/commands/decompile.js.map +0 -1
- package/dist/commands/demo.d.ts +0 -20
- package/dist/commands/demo.d.ts.map +0 -1
- package/dist/commands/demo.js +0 -205
- package/dist/commands/demo.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -6
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -230
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/drift.d.ts +0 -16
- package/dist/commands/drift.d.ts.map +0 -1
- package/dist/commands/drift.js +0 -524
- package/dist/commands/drift.js.map +0 -1
- package/dist/commands/edit-helper.d.ts +0 -6
- package/dist/commands/edit-helper.d.ts.map +0 -1
- package/dist/commands/edit-helper.js +0 -52
- package/dist/commands/edit-helper.js.map +0 -1
- package/dist/commands/edit.d.ts +0 -14
- package/dist/commands/edit.d.ts.map +0 -1
- package/dist/commands/edit.js +0 -196
- package/dist/commands/edit.js.map +0 -1
- package/dist/commands/enhance-real.d.ts +0 -18
- package/dist/commands/enhance-real.d.ts.map +0 -1
- package/dist/commands/enhance-real.js +0 -1164
- package/dist/commands/enhance-real.js.map +0 -1
- package/dist/commands/faf-auth.d.ts +0 -10
- package/dist/commands/faf-auth.d.ts.map +0 -1
- package/dist/commands/faf-auth.js +0 -162
- package/dist/commands/faf-auth.js.map +0 -1
- package/dist/commands/faf-dna.d.ts +0 -9
- package/dist/commands/faf-dna.d.ts.map +0 -1
- package/dist/commands/faf-dna.js +0 -141
- package/dist/commands/faf-dna.js.map +0 -1
- package/dist/commands/faf-log.d.ts +0 -9
- package/dist/commands/faf-log.d.ts.map +0 -1
- package/dist/commands/faf-log.js +0 -135
- package/dist/commands/faf-log.js.map +0 -1
- package/dist/commands/faf-recover.d.ts +0 -3
- package/dist/commands/faf-recover.d.ts.map +0 -1
- package/dist/commands/faf-recover.js +0 -296
- package/dist/commands/faf-recover.js.map +0 -1
- package/dist/commands/faf-update.d.ts +0 -9
- package/dist/commands/faf-update.d.ts.map +0 -1
- package/dist/commands/faf-update.js +0 -68
- package/dist/commands/faf-update.js.map +0 -1
- package/dist/commands/fam.d.ts +0 -15
- package/dist/commands/fam.d.ts.map +0 -1
- package/dist/commands/fam.js +0 -339
- package/dist/commands/fam.js.map +0 -1
- package/dist/commands/faq.d.ts +0 -12
- package/dist/commands/faq.d.ts.map +0 -1
- package/dist/commands/faq.js +0 -84
- package/dist/commands/faq.js.map +0 -1
- package/dist/commands/formats.d.ts +0 -12
- package/dist/commands/formats.d.ts.map +0 -1
- package/dist/commands/formats.js +0 -107
- package/dist/commands/formats.js.map +0 -1
- package/dist/commands/gemini.d.ts +0 -15
- package/dist/commands/gemini.d.ts.map +0 -1
- package/dist/commands/gemini.js +0 -357
- package/dist/commands/gemini.js.map +0 -1
- package/dist/commands/git.d.ts +0 -25
- package/dist/commands/git.d.ts.map +0 -1
- package/dist/commands/git.js +0 -365
- package/dist/commands/git.js.map +0 -1
- package/dist/commands/go.d.ts +0 -23
- package/dist/commands/go.d.ts.map +0 -1
- package/dist/commands/go.js +0 -283
- package/dist/commands/go.js.map +0 -1
- package/dist/commands/human.d.ts +0 -19
- package/dist/commands/human.d.ts.map +0 -1
- package/dist/commands/human.js +0 -204
- package/dist/commands/human.js.map +0 -1
- package/dist/commands/index.d.ts +0 -26
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -438
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/init.d.ts +0 -19
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -409
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/lint.d.ts +0 -11
- package/dist/commands/lint.d.ts.map +0 -1
- package/dist/commands/lint.js +0 -233
- package/dist/commands/lint.js.map +0 -1
- package/dist/commands/memory.d.ts +0 -14
- package/dist/commands/memory.d.ts.map +0 -1
- package/dist/commands/memory.js +0 -293
- package/dist/commands/memory.js.map +0 -1
- package/dist/commands/migrate.d.ts +0 -11
- package/dist/commands/migrate.d.ts.map +0 -1
- package/dist/commands/migrate.js +0 -85
- package/dist/commands/migrate.js.map +0 -1
- package/dist/commands/notifications.d.ts +0 -12
- package/dist/commands/notifications.d.ts.map +0 -1
- package/dist/commands/notifications.js +0 -35
- package/dist/commands/notifications.js.map +0 -1
- package/dist/commands/plugin-install.d.ts +0 -20
- package/dist/commands/plugin-install.d.ts.map +0 -1
- package/dist/commands/plugin-install.js +0 -183
- package/dist/commands/plugin-install.js.map +0 -1
- package/dist/commands/pro.d.ts +0 -10
- package/dist/commands/pro.d.ts.map +0 -1
- package/dist/commands/pro.js +0 -113
- package/dist/commands/pro.js.map +0 -1
- package/dist/commands/quick.d.ts +0 -10
- package/dist/commands/quick.d.ts.map +0 -1
- package/dist/commands/quick.js +0 -207
- package/dist/commands/quick.js.map +0 -1
- package/dist/commands/ram.d.ts +0 -17
- package/dist/commands/ram.d.ts.map +0 -1
- package/dist/commands/ram.js +0 -322
- package/dist/commands/ram.js.map +0 -1
- package/dist/commands/readme.d.ts +0 -21
- package/dist/commands/readme.d.ts.map +0 -1
- package/dist/commands/readme.js +0 -519
- package/dist/commands/readme.js.map +0 -1
- package/dist/commands/rename.d.ts +0 -18
- package/dist/commands/rename.d.ts.map +0 -1
- package/dist/commands/rename.js +0 -212
- package/dist/commands/rename.js.map +0 -1
- package/dist/commands/score-v3.d.ts +0 -15
- package/dist/commands/score-v3.d.ts.map +0 -1
- package/dist/commands/score-v3.js +0 -224
- package/dist/commands/score-v3.js.map +0 -1
- package/dist/commands/score.d.ts +0 -16
- package/dist/commands/score.d.ts.map +0 -1
- package/dist/commands/score.js +0 -19
- package/dist/commands/score.js.map +0 -1
- package/dist/commands/search.d.ts +0 -16
- package/dist/commands/search.d.ts.map +0 -1
- package/dist/commands/search.js +0 -174
- package/dist/commands/search.js.map +0 -1
- package/dist/commands/share.d.ts +0 -17
- package/dist/commands/share.d.ts.map +0 -1
- package/dist/commands/share.js +0 -261
- package/dist/commands/share.js.map +0 -1
- package/dist/commands/show.d.ts +0 -10
- package/dist/commands/show.d.ts.map +0 -1
- package/dist/commands/show.js +0 -142
- package/dist/commands/show.js.map +0 -1
- package/dist/commands/sixws.d.ts +0 -6
- package/dist/commands/sixws.d.ts.map +0 -1
- package/dist/commands/sixws.js +0 -154
- package/dist/commands/sixws.js.map +0 -1
- package/dist/commands/skills.d.ts +0 -8
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/commands/skills.js +0 -43
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/stacks.d.ts +0 -51
- package/dist/commands/stacks.d.ts.map +0 -1
- package/dist/commands/stacks.js +0 -180
- package/dist/commands/stacks.js.map +0 -1
- package/dist/commands/status.d.ts +0 -14
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -210
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/sync.d.ts +0 -11
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js +0 -543
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/taf-init.d.ts +0 -14
- package/dist/commands/taf-init.d.ts.map +0 -1
- package/dist/commands/taf-init.js +0 -138
- package/dist/commands/taf-init.js.map +0 -1
- package/dist/commands/taf-log.d.ts +0 -31
- package/dist/commands/taf-log.d.ts.map +0 -1
- package/dist/commands/taf-log.js +0 -351
- package/dist/commands/taf-log.js.map +0 -1
- package/dist/commands/taf-stars.d.ts +0 -8
- package/dist/commands/taf-stars.d.ts.map +0 -1
- package/dist/commands/taf-stars.js +0 -105
- package/dist/commands/taf-stars.js.map +0 -1
- package/dist/commands/taf-stats.d.ts +0 -8
- package/dist/commands/taf-stats.d.ts.map +0 -1
- package/dist/commands/taf-stats.js +0 -133
- package/dist/commands/taf-stats.js.map +0 -1
- package/dist/commands/taf-validate.d.ts +0 -8
- package/dist/commands/taf-validate.d.ts.map +0 -1
- package/dist/commands/taf-validate.js +0 -108
- package/dist/commands/taf-validate.js.map +0 -1
- package/dist/commands/taf.d.ts +0 -14
- package/dist/commands/taf.d.ts.map +0 -1
- package/dist/commands/taf.js +0 -106
- package/dist/commands/taf.js.map +0 -1
- package/dist/commands/todo.d.ts +0 -14
- package/dist/commands/todo.d.ts.map +0 -1
- package/dist/commands/todo.js +0 -282
- package/dist/commands/todo.js.map +0 -1
- package/dist/commands/trust.d.ts +0 -33
- package/dist/commands/trust.d.ts.map +0 -1
- package/dist/commands/trust.js +0 -308
- package/dist/commands/trust.js.map +0 -1
- package/dist/commands/tsa.d.ts +0 -9
- package/dist/commands/tsa.d.ts.map +0 -1
- package/dist/commands/tsa.js +0 -60
- package/dist/commands/tsa.js.map +0 -1
- package/dist/commands/validate.d.ts +0 -11
- package/dist/commands/validate.d.ts.map +0 -1
- package/dist/commands/validate.js +0 -64
- package/dist/commands/validate.js.map +0 -1
- package/dist/commands/verify.d.ts +0 -36
- package/dist/commands/verify.d.ts.map +0 -1
- package/dist/commands/verify.js +0 -194
- package/dist/commands/verify.js.map +0 -1
- package/dist/commands/version.d.ts +0 -5
- package/dist/commands/version.d.ts.map +0 -1
- package/dist/commands/version.js +0 -29
- package/dist/commands/version.js.map +0 -1
- package/dist/commands/vibe.d.ts +0 -7
- package/dist/commands/vibe.d.ts.map +0 -1
- package/dist/commands/vibe.js +0 -73
- package/dist/commands/vibe.js.map +0 -1
- package/dist/commands/welcome.d.ts +0 -10
- package/dist/commands/welcome.d.ts.map +0 -1
- package/dist/commands/welcome.js +0 -117
- package/dist/commands/welcome.js.map +0 -1
- package/dist/commands/yolo.d.ts +0 -12
- package/dist/commands/yolo.d.ts.map +0 -1
- package/dist/commands/yolo.js +0 -212
- package/dist/commands/yolo.js.map +0 -1
- package/dist/compiler/faf-compiler.d.ts +0 -176
- package/dist/compiler/faf-compiler.d.ts.map +0 -1
- package/dist/compiler/faf-compiler.js +0 -1587
- package/dist/compiler/faf-compiler.js.map +0 -1
- package/dist/converters/faf-converters.d.ts +0 -43
- package/dist/converters/faf-converters.d.ts.map +0 -1
- package/dist/converters/faf-converters.js +0 -197
- package/dist/converters/faf-converters.js.map +0 -1
- package/dist/core-extraction-fixes.d.ts +0 -92
- package/dist/core-extraction-fixes.d.ts.map +0 -1
- package/dist/core-extraction-fixes.js +0 -265
- package/dist/core-extraction-fixes.js.map +0 -1
- package/dist/engines/art-ansi-renderer.d.ts +0 -335
- package/dist/engines/art-ansi-renderer.d.ts.map +0 -1
- package/dist/engines/art-ansi-renderer.js +0 -290
- package/dist/engines/art-ansi-renderer.js.map +0 -1
- package/dist/engines/c-mirror/broadcast/terminal-display.d.ts +0 -23
- package/dist/engines/c-mirror/broadcast/terminal-display.d.ts.map +0 -1
- package/dist/engines/c-mirror/broadcast/terminal-display.js +0 -194
- package/dist/engines/c-mirror/broadcast/terminal-display.js.map +0 -1
- package/dist/engines/c-mirror/core/claude-to-faf.d.ts +0 -28
- package/dist/engines/c-mirror/core/claude-to-faf.d.ts.map +0 -1
- package/dist/engines/c-mirror/core/claude-to-faf.js +0 -195
- package/dist/engines/c-mirror/core/claude-to-faf.js.map +0 -1
- package/dist/engines/c-mirror/core/events/event-emitter.d.ts +0 -36
- package/dist/engines/c-mirror/core/events/event-emitter.d.ts.map +0 -1
- package/dist/engines/c-mirror/core/events/event-emitter.js +0 -77
- package/dist/engines/c-mirror/core/events/event-emitter.js.map +0 -1
- package/dist/engines/c-mirror/core/events/mirror-events.d.ts +0 -103
- package/dist/engines/c-mirror/core/events/mirror-events.d.ts.map +0 -1
- package/dist/engines/c-mirror/core/events/mirror-events.js +0 -65
- package/dist/engines/c-mirror/core/events/mirror-events.js.map +0 -1
- package/dist/engines/c-mirror/core/faf-to-claude.d.ts +0 -18
- package/dist/engines/c-mirror/core/faf-to-claude.d.ts.map +0 -1
- package/dist/engines/c-mirror/core/faf-to-claude.js +0 -162
- package/dist/engines/c-mirror/core/faf-to-claude.js.map +0 -1
- package/dist/engines/c-mirror/core/interfaces.d.ts +0 -153
- package/dist/engines/c-mirror/core/interfaces.d.ts.map +0 -1
- package/dist/engines/c-mirror/core/interfaces.js +0 -8
- package/dist/engines/c-mirror/core/interfaces.js.map +0 -1
- package/dist/engines/c-mirror/core/mirror-engine.d.ts +0 -49
- package/dist/engines/c-mirror/core/mirror-engine.d.ts.map +0 -1
- package/dist/engines/c-mirror/core/mirror-engine.js +0 -315
- package/dist/engines/c-mirror/core/mirror-engine.js.map +0 -1
- package/dist/engines/c-mirror/faf-extensions/faf-mirror.d.ts +0 -33
- package/dist/engines/c-mirror/faf-extensions/faf-mirror.d.ts.map +0 -1
- package/dist/engines/c-mirror/faf-extensions/faf-mirror.js +0 -115
- package/dist/engines/c-mirror/faf-extensions/faf-mirror.js.map +0 -1
- package/dist/engines/c-mirror/strategies/atomic-write.d.ts +0 -34
- package/dist/engines/c-mirror/strategies/atomic-write.d.ts.map +0 -1
- package/dist/engines/c-mirror/strategies/atomic-write.js +0 -132
- package/dist/engines/c-mirror/strategies/atomic-write.js.map +0 -1
- package/dist/engines/claude-todo-engine.d.ts +0 -115
- package/dist/engines/claude-todo-engine.d.ts.map +0 -1
- package/dist/engines/claude-todo-engine.js +0 -346
- package/dist/engines/claude-todo-engine.js.map +0 -1
- package/dist/engines/dependency-tsa.d.ts +0 -89
- package/dist/engines/dependency-tsa.d.ts.map +0 -1
- package/dist/engines/dependency-tsa.js +0 -365
- package/dist/engines/dependency-tsa.js.map +0 -1
- package/dist/engines/drop-coach.d.ts +0 -64
- package/dist/engines/drop-coach.d.ts.map +0 -1
- package/dist/engines/drop-coach.js +0 -222
- package/dist/engines/drop-coach.js.map +0 -1
- package/dist/engines/execution-context.d.ts +0 -75
- package/dist/engines/execution-context.d.ts.map +0 -1
- package/dist/engines/execution-context.js +0 -308
- package/dist/engines/execution-context.js.map +0 -1
- package/dist/engines/fab-formats-processor.d.ts +0 -179
- package/dist/engines/fab-formats-processor.d.ts.map +0 -1
- package/dist/engines/fab-formats-processor.js +0 -1524
- package/dist/engines/fab-formats-processor.js.map +0 -1
- package/dist/engines/faf-dna.d.ts +0 -160
- package/dist/engines/faf-dna.d.ts.map +0 -1
- package/dist/engines/faf-dna.js +0 -547
- package/dist/engines/faf-dna.js.map +0 -1
- package/dist/engines/relentless-context-extractor.d.ts +0 -105
- package/dist/engines/relentless-context-extractor.d.ts.map +0 -1
- package/dist/engines/relentless-context-extractor.js +0 -698
- package/dist/engines/relentless-context-extractor.js.map +0 -1
- package/dist/engines/v252-hybrid-engine.d.ts +0 -60
- package/dist/engines/v252-hybrid-engine.d.ts.map +0 -1
- package/dist/engines/v252-hybrid-engine.js +0 -290
- package/dist/engines/v252-hybrid-engine.js.map +0 -1
- package/dist/family/detectors/n8n.d.ts +0 -10
- package/dist/family/detectors/n8n.d.ts.map +0 -1
- package/dist/family/detectors/n8n.js +0 -102
- package/dist/family/detectors/n8n.js.map +0 -1
- package/dist/family/detectors/next.d.ts +0 -8
- package/dist/family/detectors/next.d.ts.map +0 -1
- package/dist/family/detectors/next.js +0 -106
- package/dist/family/detectors/next.js.map +0 -1
- package/dist/family/detectors/react.d.ts +0 -8
- package/dist/family/detectors/react.d.ts.map +0 -1
- package/dist/family/detectors/react.js +0 -85
- package/dist/family/detectors/react.js.map +0 -1
- package/dist/family/detectors/svelte.d.ts +0 -8
- package/dist/family/detectors/svelte.d.ts.map +0 -1
- package/dist/family/detectors/svelte.js +0 -102
- package/dist/family/detectors/svelte.js.map +0 -1
- package/dist/family/detectors/typescript.d.ts +0 -8
- package/dist/family/detectors/typescript.d.ts.map +0 -1
- package/dist/family/detectors/typescript.js +0 -112
- package/dist/family/detectors/typescript.js.map +0 -1
- package/dist/family/detectors/vite.d.ts +0 -8
- package/dist/family/detectors/vite.d.ts.map +0 -1
- package/dist/family/detectors/vite.js +0 -97
- package/dist/family/detectors/vite.js.map +0 -1
- package/dist/family/index.d.ts +0 -21
- package/dist/family/index.d.ts.map +0 -1
- package/dist/family/index.js +0 -73
- package/dist/family/index.js.map +0 -1
- package/dist/family/registry.d.ts +0 -57
- package/dist/family/registry.d.ts.map +0 -1
- package/dist/family/registry.js +0 -156
- package/dist/family/registry.js.map +0 -1
- package/dist/family/types.d.ts +0 -102
- package/dist/family/types.d.ts.map +0 -1
- package/dist/family/types.js +0 -8
- package/dist/family/types.js.map +0 -1
- package/dist/fix-once/colors.d.ts +0 -105
- package/dist/fix-once/colors.d.ts.map +0 -1
- package/dist/fix-once/colors.js +0 -248
- package/dist/fix-once/colors.js.map +0 -1
- package/dist/fix-once/commander.d.ts +0 -18
- package/dist/fix-once/commander.d.ts.map +0 -1
- package/dist/fix-once/commander.js +0 -25
- package/dist/fix-once/commander.js.map +0 -1
- package/dist/fix-once/types.d.ts +0 -258
- package/dist/fix-once/types.d.ts.map +0 -1
- package/dist/fix-once/types.js +0 -26
- package/dist/fix-once/types.js.map +0 -1
- package/dist/fix-once/yaml.d.ts +0 -58
- package/dist/fix-once/yaml.d.ts.map +0 -1
- package/dist/fix-once/yaml.js +0 -172
- package/dist/fix-once/yaml.js.map +0 -1
- package/dist/framework-detector.d.ts +0 -307
- package/dist/framework-detector.d.ts.map +0 -1
- package/dist/framework-detector.js +0 -951
- package/dist/framework-detector.js.map +0 -1
- package/dist/generators/faf-generator-championship.d.ts +0 -17
- package/dist/generators/faf-generator-championship.d.ts.map +0 -1
- package/dist/generators/faf-generator-championship.js +0 -612
- package/dist/generators/faf-generator-championship.js.map +0 -1
- package/dist/github/current-score-calculator.d.ts +0 -15
- package/dist/github/current-score-calculator.d.ts.map +0 -1
- package/dist/github/current-score-calculator.js +0 -125
- package/dist/github/current-score-calculator.js.map +0 -1
- package/dist/github/faf-git-generator.d.ts +0 -52
- package/dist/github/faf-git-generator.d.ts.map +0 -1
- package/dist/github/faf-git-generator.js +0 -527
- package/dist/github/faf-git-generator.js.map +0 -1
- package/dist/github/github-extractor.d.ts +0 -60
- package/dist/github/github-extractor.d.ts.map +0 -1
- package/dist/github/github-extractor.js +0 -381
- package/dist/github/github-extractor.js.map +0 -1
- package/dist/github/popular-repos.d.ts +0 -43
- package/dist/github/popular-repos.d.ts.map +0 -1
- package/dist/github/popular-repos.js +0 -205
- package/dist/github/popular-repos.js.map +0 -1
- package/dist/github/repo-selector.d.ts +0 -48
- package/dist/github/repo-selector.d.ts.map +0 -1
- package/dist/github/repo-selector.js +0 -297
- package/dist/github/repo-selector.js.map +0 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/licensing/license-messages.d.ts +0 -20
- package/dist/licensing/license-messages.d.ts.map +0 -1
- package/dist/licensing/license-messages.js +0 -77
- package/dist/licensing/license-messages.js.map +0 -1
- package/dist/licensing/pro-gate.d.ts +0 -54
- package/dist/licensing/pro-gate.d.ts.map +0 -1
- package/dist/licensing/pro-gate.js +0 -243
- package/dist/licensing/pro-gate.js.map +0 -1
- package/dist/output/experience-manager.d.ts +0 -58
- package/dist/output/experience-manager.d.ts.map +0 -1
- package/dist/output/experience-manager.js +0 -215
- package/dist/output/experience-manager.js.map +0 -1
- package/dist/schema/faf-schema.d.ts +0 -97
- package/dist/schema/faf-schema.d.ts.map +0 -1
- package/dist/schema/faf-schema.js +0 -173
- package/dist/schema/faf-schema.js.map +0 -1
- package/dist/smart-faf.d.ts +0 -68
- package/dist/smart-faf.d.ts.map +0 -1
- package/dist/smart-faf.js +0 -400
- package/dist/smart-faf.js.map +0 -1
- package/dist/systems/question-system.d.ts +0 -122
- package/dist/systems/question-system.d.ts.map +0 -1
- package/dist/systems/question-system.js +0 -413
- package/dist/systems/question-system.js.map +0 -1
- package/dist/taf/index.d.ts +0 -21
- package/dist/taf/index.d.ts.map +0 -1
- package/dist/taf/index.js +0 -72
- package/dist/taf/index.js.map +0 -1
- package/dist/taf/logger.d.ts +0 -88
- package/dist/taf/logger.d.ts.map +0 -1
- package/dist/taf/logger.js +0 -137
- package/dist/taf/logger.js.map +0 -1
- package/dist/taf/parser.d.ts +0 -32
- package/dist/taf/parser.d.ts.map +0 -1
- package/dist/taf/parser.js +0 -161
- package/dist/taf/parser.js.map +0 -1
- package/dist/taf/star-badge.d.ts +0 -32
- package/dist/taf/star-badge.d.ts.map +0 -1
- package/dist/taf/star-badge.js +0 -158
- package/dist/taf/star-badge.js.map +0 -1
- package/dist/taf/star-rating.d.ts +0 -30
- package/dist/taf/star-rating.d.ts.map +0 -1
- package/dist/taf/star-rating.js +0 -79
- package/dist/taf/star-rating.js.map +0 -1
- package/dist/taf/stats.d.ts +0 -31
- package/dist/taf/stats.d.ts.map +0 -1
- package/dist/taf/stats.js +0 -190
- package/dist/taf/stats.js.map +0 -1
- package/dist/taf/test-output-parser.d.ts +0 -42
- package/dist/taf/test-output-parser.d.ts.map +0 -1
- package/dist/taf/test-output-parser.js +0 -127
- package/dist/taf/test-output-parser.js.map +0 -1
- package/dist/taf/types.d.ts +0 -77
- package/dist/taf/types.d.ts.map +0 -1
- package/dist/taf/types.js +0 -9
- package/dist/taf/types.js.map +0 -1
- package/dist/taf/validator.d.ts +0 -18
- package/dist/taf/validator.d.ts.map +0 -1
- package/dist/taf/validator.js +0 -148
- package/dist/taf/validator.js.map +0 -1
- package/dist/telemetry/analytics.d.ts +0 -74
- package/dist/telemetry/analytics.d.ts.map +0 -1
- package/dist/telemetry/analytics.js +0 -370
- package/dist/telemetry/analytics.js.map +0 -1
- package/dist/tests/test-chrome-fuzzy.d.ts +0 -5
- package/dist/tests/test-chrome-fuzzy.d.ts.map +0 -1
- package/dist/tests/test-chrome-fuzzy.js +0 -68
- package/dist/tests/test-chrome-fuzzy.js.map +0 -1
- package/dist/types/faf-types.d.ts +0 -144
- package/dist/types/faf-types.d.ts.map +0 -1
- package/dist/types/faf-types.js +0 -21
- package/dist/types/faf-types.js.map +0 -1
- package/dist/types/index.d.ts +0 -36
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -7
- package/dist/types/index.js.map +0 -1
- package/dist/utils/agents-parser.d.ts +0 -60
- package/dist/utils/agents-parser.d.ts.map +0 -1
- package/dist/utils/agents-parser.js +0 -339
- package/dist/utils/agents-parser.js.map +0 -1
- package/dist/utils/announcements.d.ts +0 -16
- package/dist/utils/announcements.d.ts.map +0 -1
- package/dist/utils/announcements.js +0 -131
- package/dist/utils/announcements.js.map +0 -1
- package/dist/utils/balance-visualizer.d.ts +0 -38
- package/dist/utils/balance-visualizer.d.ts.map +0 -1
- package/dist/utils/balance-visualizer.js +0 -190
- package/dist/utils/balance-visualizer.js.map +0 -1
- package/dist/utils/championship-core.d.ts +0 -127
- package/dist/utils/championship-core.d.ts.map +0 -1
- package/dist/utils/championship-core.js +0 -212
- package/dist/utils/championship-core.js.map +0 -1
- package/dist/utils/championship-style.d.ts +0 -110
- package/dist/utils/championship-style.d.ts.map +0 -1
- package/dist/utils/championship-style.js +0 -219
- package/dist/utils/championship-style.js.map +0 -1
- package/dist/utils/chrome-extension-confirmer.d.ts +0 -41
- package/dist/utils/chrome-extension-confirmer.d.ts.map +0 -1
- package/dist/utils/chrome-extension-confirmer.js +0 -203
- package/dist/utils/chrome-extension-confirmer.js.map +0 -1
- package/dist/utils/chrome-extension-detector.d.ts +0 -74
- package/dist/utils/chrome-extension-detector.d.ts.map +0 -1
- package/dist/utils/chrome-extension-detector.js +0 -268
- package/dist/utils/chrome-extension-detector.js.map +0 -1
- package/dist/utils/color-utils.d.ts +0 -17
- package/dist/utils/color-utils.d.ts.map +0 -1
- package/dist/utils/color-utils.js +0 -112
- package/dist/utils/color-utils.js.map +0 -1
- package/dist/utils/conductor-parser.d.ts +0 -86
- package/dist/utils/conductor-parser.d.ts.map +0 -1
- package/dist/utils/conductor-parser.js +0 -293
- package/dist/utils/conductor-parser.js.map +0 -1
- package/dist/utils/cursorrules-parser.d.ts +0 -56
- package/dist/utils/cursorrules-parser.d.ts.map +0 -1
- package/dist/utils/cursorrules-parser.js +0 -327
- package/dist/utils/cursorrules-parser.js.map +0 -1
- package/dist/utils/email-opt-in.d.ts +0 -31
- package/dist/utils/email-opt-in.d.ts.map +0 -1
- package/dist/utils/email-opt-in.js +0 -199
- package/dist/utils/email-opt-in.js.map +0 -1
- package/dist/utils/fab-formats-engine.d.ts +0 -83
- package/dist/utils/fab-formats-engine.d.ts.map +0 -1
- package/dist/utils/fab-formats-engine.js +0 -502
- package/dist/utils/fab-formats-engine.js.map +0 -1
- package/dist/utils/fafb-compiler.d.ts +0 -62
- package/dist/utils/fafb-compiler.d.ts.map +0 -1
- package/dist/utils/fafb-compiler.js +0 -225
- package/dist/utils/fafb-compiler.js.map +0 -1
- package/dist/utils/fafb-detector.d.ts +0 -26
- package/dist/utils/fafb-detector.d.ts.map +0 -1
- package/dist/utils/fafb-detector.js +0 -180
- package/dist/utils/fafb-detector.js.map +0 -1
- package/dist/utils/fafignore-parser.d.ts +0 -21
- package/dist/utils/fafignore-parser.d.ts.map +0 -1
- package/dist/utils/fafignore-parser.js +0 -178
- package/dist/utils/fafignore-parser.js.map +0 -1
- package/dist/utils/feedback-messages.d.ts +0 -13
- package/dist/utils/feedback-messages.d.ts.map +0 -1
- package/dist/utils/feedback-messages.js +0 -118
- package/dist/utils/feedback-messages.js.map +0 -1
- package/dist/utils/file-utils.d.ts +0 -113
- package/dist/utils/file-utils.d.ts.map +0 -1
- package/dist/utils/file-utils.js +0 -949
- package/dist/utils/file-utils.js.map +0 -1
- package/dist/utils/gemini-parser.d.ts +0 -58
- package/dist/utils/gemini-parser.d.ts.map +0 -1
- package/dist/utils/gemini-parser.js +0 -263
- package/dist/utils/gemini-parser.js.map +0 -1
- package/dist/utils/markdown-to-context.d.ts +0 -28
- package/dist/utils/markdown-to-context.d.ts.map +0 -1
- package/dist/utils/markdown-to-context.js +0 -206
- package/dist/utils/markdown-to-context.js.map +0 -1
- package/dist/utils/memory-parser.d.ts +0 -95
- package/dist/utils/memory-parser.d.ts.map +0 -1
- package/dist/utils/memory-parser.js +0 -408
- package/dist/utils/memory-parser.js.map +0 -1
- package/dist/utils/memory-topic-writer.d.ts +0 -52
- package/dist/utils/memory-topic-writer.d.ts.map +0 -1
- package/dist/utils/memory-topic-writer.js +0 -415
- package/dist/utils/memory-topic-writer.js.map +0 -1
- package/dist/utils/native-cli-parser.d.ts +0 -152
- package/dist/utils/native-cli-parser.d.ts.map +0 -1
- package/dist/utils/native-cli-parser.js +0 -466
- package/dist/utils/native-cli-parser.js.map +0 -1
- package/dist/utils/native-file-finder.d.ts +0 -116
- package/dist/utils/native-file-finder.d.ts.map +0 -1
- package/dist/utils/native-file-finder.js +0 -211
- package/dist/utils/native-file-finder.js.map +0 -1
- package/dist/utils/platform-detector.d.ts +0 -31
- package/dist/utils/platform-detector.d.ts.map +0 -1
- package/dist/utils/platform-detector.js +0 -220
- package/dist/utils/platform-detector.js.map +0 -1
- package/dist/utils/score-header.d.ts +0 -22
- package/dist/utils/score-header.d.ts.map +0 -1
- package/dist/utils/score-header.js +0 -88
- package/dist/utils/score-header.js.map +0 -1
- package/dist/utils/slot-counter.d.ts +0 -56
- package/dist/utils/slot-counter.d.ts.map +0 -1
- package/dist/utils/slot-counter.js +0 -100
- package/dist/utils/slot-counter.js.map +0 -1
- package/dist/utils/technical-credit.d.ts +0 -36
- package/dist/utils/technical-credit.d.ts.map +0 -1
- package/dist/utils/technical-credit.js +0 -286
- package/dist/utils/technical-credit.js.map +0 -1
- package/dist/utils/trust-cache.d.ts +0 -29
- package/dist/utils/trust-cache.d.ts.map +0 -1
- package/dist/utils/trust-cache.js +0 -122
- package/dist/utils/trust-cache.js.map +0 -1
- package/dist/utils/turbo-cat-knowledge.d.ts +0 -105
- package/dist/utils/turbo-cat-knowledge.d.ts.map +0 -1
- package/dist/utils/turbo-cat-knowledge.js +0 -1941
- package/dist/utils/turbo-cat-knowledge.js.map +0 -1
- package/dist/utils/turbo-cat-pyramid.d.ts +0 -48
- package/dist/utils/turbo-cat-pyramid.d.ts.map +0 -1
- package/dist/utils/turbo-cat-pyramid.js +0 -380
- package/dist/utils/turbo-cat-pyramid.js.map +0 -1
- package/dist/utils/turbo-cat.d.ts +0 -99
- package/dist/utils/turbo-cat.d.ts.map +0 -1
- package/dist/utils/turbo-cat.js +0 -456
- package/dist/utils/turbo-cat.js.map +0 -1
- package/dist/utils/universal-fuzzy-detector.d.ts +0 -64
- package/dist/utils/universal-fuzzy-detector.d.ts.map +0 -1
- package/dist/utils/universal-fuzzy-detector.js +0 -386
- package/dist/utils/universal-fuzzy-detector.js.map +0 -1
- package/dist/utils/update-checker.d.ts +0 -15
- package/dist/utils/update-checker.d.ts.map +0 -1
- package/dist/utils/update-checker.js +0 -200
- package/dist/utils/update-checker.js.map +0 -1
- package/dist/utils/vibe-sync.d.ts +0 -25
- package/dist/utils/vibe-sync.d.ts.map +0 -1
- package/dist/utils/vibe-sync.js +0 -175
- package/dist/utils/vibe-sync.js.map +0 -1
- package/dist/utils/yaml-generator.d.ts +0 -52
- package/dist/utils/yaml-generator.d.ts.map +0 -1
- package/dist/utils/yaml-generator.js +0 -432
- package/dist/utils/yaml-generator.js.map +0 -1
- package/faf-banner.png +0 -0
- package/scripts/ANTHROPIC-DEMO.sh +0 -203
- package/scripts/boris-ready.sh +0 -169
- package/scripts/bundle-yaml.js +0 -87
- package/scripts/check-version.js +0 -88
- package/scripts/clean-build.js +0 -34
- package/scripts/cleanup-unused.sh +0 -54
- package/scripts/debug-django.txt +0 -9
- package/scripts/debug-mongo.txt +0 -9
- package/scripts/debug-react.txt +0 -9
- package/scripts/debug-rust.txt +0 -9
- package/scripts/debug-whisper.cpp.txt +0 -9
- package/scripts/evaluate-family-member.ts +0 -300
- package/scripts/generate-docs.ts +0 -358
- package/scripts/generate-drift-reports.sh +0 -111
- package/scripts/industry-showcase.json +0 -122
- package/scripts/mcp-ecosystem-research.sh +0 -58
- package/scripts/migrate-yaml-imports.sh +0 -55
- package/scripts/migrate-yaml.ts +0 -132
- package/scripts/performance-validation.ts +0 -460
- package/scripts/postinstall.js +0 -30
- package/scripts/prepare-release.ts +0 -421
- package/scripts/run-industry-showcase.ts +0 -237
- package/scripts/run-test-showcase.ts +0 -244
- package/scripts/setup-github-watch.sh +0 -43
- package/scripts/sync-version.js +0 -35
- package/scripts/test-integration-detection.ts +0 -93
- package/scripts/test-integration-simple.js +0 -93
- package/scripts/test-medal-progression.sh +0 -143
- package/scripts/test-showcase-results.json +0 -109
- package/scripts/test-showcase.json +0 -32
- package/scripts/update-version.js +0 -148
- package/scripts/verify-build.js +0 -343
- package/scripts/version-check.js +0 -78
- package/scripts/watch-discussions.sh +0 -86
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ts-node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* ⚡ F1-Inspired Performance Validation Suite
|
|
5
|
-
* Validates championship performance claims in real-world environments
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as fs from 'fs/promises';
|
|
9
|
-
import * as path from 'path';
|
|
10
|
-
import * as os from 'os';
|
|
11
|
-
import { execSync } from 'child_process';
|
|
12
|
-
import { performance } from 'perf_hooks';
|
|
13
|
-
import { FAF_COLORS, FAF_ICONS, PERFORMANCE_STANDARDS } from '../src/utils/championship-style';
|
|
14
|
-
|
|
15
|
-
interface PerformanceTest {
|
|
16
|
-
name: string;
|
|
17
|
-
description: string;
|
|
18
|
-
target: number; // ms
|
|
19
|
-
command: string;
|
|
20
|
-
args: string[];
|
|
21
|
-
iterations: number;
|
|
22
|
-
warmup?: boolean;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface PerformanceResult {
|
|
26
|
-
test: string;
|
|
27
|
-
results: number[]; // Array of execution times in ms
|
|
28
|
-
average: number;
|
|
29
|
-
median: number;
|
|
30
|
-
min: number;
|
|
31
|
-
max: number;
|
|
32
|
-
standardDeviation: number;
|
|
33
|
-
target: number;
|
|
34
|
-
passed: boolean;
|
|
35
|
-
percentile95: number;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface SystemInfo {
|
|
39
|
-
platform: string;
|
|
40
|
-
arch: string;
|
|
41
|
-
nodeVersion: string;
|
|
42
|
-
cpuModel: string;
|
|
43
|
-
cpuCores: number;
|
|
44
|
-
totalMemory: number;
|
|
45
|
-
freeMemory: number;
|
|
46
|
-
loadAverage: number[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* F1-Inspired Performance Test Suite
|
|
51
|
-
*/
|
|
52
|
-
const PERFORMANCE_TESTS: PerformanceTest[] = [
|
|
53
|
-
{
|
|
54
|
-
name: 'status_command',
|
|
55
|
-
description: 'faf status - Git status equivalent speed',
|
|
56
|
-
target: PERFORMANCE_STANDARDS.status_command, // 38ms
|
|
57
|
-
command: 'faf',
|
|
58
|
-
args: ['status'],
|
|
59
|
-
iterations: 50,
|
|
60
|
-
warmup: true
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'trust_dashboard',
|
|
64
|
-
description: 'faf trust - Real-time trust calculation',
|
|
65
|
-
target: PERFORMANCE_STANDARDS.trust_dashboard, // 40ms
|
|
66
|
-
command: 'faf',
|
|
67
|
-
args: ['trust'],
|
|
68
|
-
iterations: 30,
|
|
69
|
-
warmup: true
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: 'help_command',
|
|
73
|
-
description: 'faf --help - Instant help display',
|
|
74
|
-
target: 50, // ms
|
|
75
|
-
command: 'faf',
|
|
76
|
-
args: ['--help'],
|
|
77
|
-
iterations: 20
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: 'index_command',
|
|
81
|
-
description: 'faf index - Universal A-Z reference',
|
|
82
|
-
target: 100, // ms
|
|
83
|
-
command: 'faf',
|
|
84
|
-
args: ['index'],
|
|
85
|
-
iterations: 20
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: 'score_basic',
|
|
89
|
-
description: 'faf score - Quick score check',
|
|
90
|
-
target: 150, // ms
|
|
91
|
-
command: 'faf',
|
|
92
|
-
args: ['score'],
|
|
93
|
-
iterations: 20,
|
|
94
|
-
warmup: true
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: 'analytics_summary',
|
|
98
|
-
description: 'faf analytics --summary - Performance metrics',
|
|
99
|
-
target: 100, // ms
|
|
100
|
-
command: 'faf',
|
|
101
|
-
args: ['analytics', '--summary'],
|
|
102
|
-
iterations: 15
|
|
103
|
-
}
|
|
104
|
-
];
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Main performance validation function
|
|
108
|
-
*/
|
|
109
|
-
async function runPerformanceValidation(): Promise<void> {
|
|
110
|
-
console.log(`${FAF_COLORS.fafCyan('⚡ F1-Inspired Performance Validation')}`);
|
|
111
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} Championship engineering demands measurable speed`);
|
|
112
|
-
console.log(`${FAF_COLORS.fafCyan('└─')} Validating real-world performance claims`);
|
|
113
|
-
console.log();
|
|
114
|
-
|
|
115
|
-
// Gather system information
|
|
116
|
-
const systemInfo = await getSystemInfo();
|
|
117
|
-
displaySystemInfo(systemInfo);
|
|
118
|
-
|
|
119
|
-
// Setup test environment
|
|
120
|
-
await setupTestEnvironment();
|
|
121
|
-
|
|
122
|
-
// Run performance tests
|
|
123
|
-
const results: PerformanceResult[] = [];
|
|
124
|
-
|
|
125
|
-
for (const test of PERFORMANCE_TESTS) {
|
|
126
|
-
console.log(`${FAF_COLORS.fafCyan('🏎️')} Running: ${test.description}`);
|
|
127
|
-
|
|
128
|
-
try {
|
|
129
|
-
const result = await runPerformanceTest(test);
|
|
130
|
-
results.push(result);
|
|
131
|
-
|
|
132
|
-
const status = result.passed ?
|
|
133
|
-
`${FAF_COLORS.fafGreen('✅ PASS')} (${result.average.toFixed(1)}ms)` :
|
|
134
|
-
`${FAF_COLORS.fafOrange('⚠️ SLOW')} (${result.average.toFixed(1)}ms vs ${result.target}ms target)`;
|
|
135
|
-
|
|
136
|
-
console.log(`${FAF_COLORS.fafCyan(' ')}${status}`);
|
|
137
|
-
|
|
138
|
-
} catch (error) {
|
|
139
|
-
console.log(`${FAF_COLORS.fafOrange(' ❌ ERROR:')} ${error}`);
|
|
140
|
-
|
|
141
|
-
// Create failed result
|
|
142
|
-
results.push({
|
|
143
|
-
test: test.name,
|
|
144
|
-
results: [],
|
|
145
|
-
average: 0,
|
|
146
|
-
median: 0,
|
|
147
|
-
min: 0,
|
|
148
|
-
max: 0,
|
|
149
|
-
standardDeviation: 0,
|
|
150
|
-
target: test.target,
|
|
151
|
-
passed: false,
|
|
152
|
-
percentile95: 0
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
console.log();
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// Generate comprehensive report
|
|
160
|
-
await generatePerformanceReport(results, systemInfo);
|
|
161
|
-
|
|
162
|
-
// Show championship summary
|
|
163
|
-
showChampionshipSummary(results);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Get detailed system information
|
|
168
|
-
*/
|
|
169
|
-
async function getSystemInfo(): Promise<SystemInfo> {
|
|
170
|
-
const cpus = os.cpus();
|
|
171
|
-
|
|
172
|
-
return {
|
|
173
|
-
platform: `${os.platform()}-${os.arch()}`,
|
|
174
|
-
arch: os.arch(),
|
|
175
|
-
nodeVersion: process.version,
|
|
176
|
-
cpuModel: cpus[0]?.model || 'Unknown',
|
|
177
|
-
cpuCores: cpus.length,
|
|
178
|
-
totalMemory: Math.round(os.totalmem() / 1024 / 1024), // MB
|
|
179
|
-
freeMemory: Math.round(os.freemem() / 1024 / 1024), // MB
|
|
180
|
-
loadAverage: os.loadavg()
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Display system information
|
|
186
|
-
*/
|
|
187
|
-
function displaySystemInfo(info: SystemInfo): void {
|
|
188
|
-
console.log(`${FAF_COLORS.fafCyan('🖥️ System Information:')}`);
|
|
189
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} Platform: ${info.platform}`);
|
|
190
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} Node.js: ${info.nodeVersion}`);
|
|
191
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} CPU: ${info.cpuModel} (${info.cpuCores} cores)`);
|
|
192
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} Memory: ${info.freeMemory}MB / ${info.totalMemory}MB available`);
|
|
193
|
-
console.log(`${FAF_COLORS.fafCyan('└─')} Load: ${info.loadAverage.map(l => l.toFixed(2)).join(', ')}`);
|
|
194
|
-
console.log();
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Setup test environment
|
|
199
|
-
*/
|
|
200
|
-
async function setupTestEnvironment(): Promise<void> {
|
|
201
|
-
console.log(`${FAF_COLORS.fafCyan('🔧 Setting up test environment...')}`);
|
|
202
|
-
|
|
203
|
-
// Create temporary test directory
|
|
204
|
-
const testDir = path.join(os.tmpdir(), 'faf-performance-test');
|
|
205
|
-
await fs.mkdir(testDir, { recursive: true });
|
|
206
|
-
|
|
207
|
-
// Create minimal .faf file for tests
|
|
208
|
-
const testFafContent = `
|
|
209
|
-
project:
|
|
210
|
-
name: "Performance Test Project"
|
|
211
|
-
description: "Minimal project for performance testing"
|
|
212
|
-
|
|
213
|
-
stack:
|
|
214
|
-
primary_language: "typescript"
|
|
215
|
-
framework: "node"
|
|
216
|
-
|
|
217
|
-
context_quality:
|
|
218
|
-
slots_filled: 5
|
|
219
|
-
|
|
220
|
-
ai_score: 75
|
|
221
|
-
`.trim();
|
|
222
|
-
|
|
223
|
-
await fs.writeFile(path.join(testDir, '.faf'), testFafContent);
|
|
224
|
-
|
|
225
|
-
// Change to test directory
|
|
226
|
-
process.chdir(testDir);
|
|
227
|
-
|
|
228
|
-
console.log(`${FAF_COLORS.fafGreen('✅')} Test environment ready: ${testDir}`);
|
|
229
|
-
console.log();
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Run a single performance test
|
|
234
|
-
*/
|
|
235
|
-
async function runPerformanceTest(test: PerformanceTest): Promise<PerformanceResult> {
|
|
236
|
-
const results: number[] = [];
|
|
237
|
-
|
|
238
|
-
// Warmup iterations
|
|
239
|
-
if (test.warmup) {
|
|
240
|
-
for (let i = 0; i < 3; i++) {
|
|
241
|
-
try {
|
|
242
|
-
await executeCommand(test.command, test.args, 5000); // 5s timeout for warmup
|
|
243
|
-
} catch {
|
|
244
|
-
// Ignore warmup failures
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// Main test iterations
|
|
250
|
-
for (let i = 0; i < test.iterations; i++) {
|
|
251
|
-
try {
|
|
252
|
-
const startTime = performance.now();
|
|
253
|
-
await executeCommand(test.command, test.args, 10000); // 10s timeout
|
|
254
|
-
const endTime = performance.now();
|
|
255
|
-
|
|
256
|
-
const duration = endTime - startTime;
|
|
257
|
-
results.push(duration);
|
|
258
|
-
|
|
259
|
-
} catch (error) {
|
|
260
|
-
// For failed executions, record a very high time
|
|
261
|
-
results.push(10000); // 10 seconds = failure
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
if (results.length === 0) {
|
|
266
|
-
throw new Error('No successful test iterations');
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
// Calculate statistics
|
|
270
|
-
const sorted = results.sort((a, b) => a - b);
|
|
271
|
-
const average = results.reduce((sum, val) => sum + val, 0) / results.length;
|
|
272
|
-
const median = sorted[Math.floor(sorted.length / 2)];
|
|
273
|
-
const min = sorted[0];
|
|
274
|
-
const max = sorted[sorted.length - 1];
|
|
275
|
-
const percentile95 = sorted[Math.floor(sorted.length * 0.95)];
|
|
276
|
-
|
|
277
|
-
// Calculate standard deviation
|
|
278
|
-
const variance = results.reduce((sum, val) => sum + Math.pow(val - average, 2), 0) / results.length;
|
|
279
|
-
const standardDeviation = Math.sqrt(variance);
|
|
280
|
-
|
|
281
|
-
return {
|
|
282
|
-
test: test.name,
|
|
283
|
-
results,
|
|
284
|
-
average,
|
|
285
|
-
median,
|
|
286
|
-
min,
|
|
287
|
-
max,
|
|
288
|
-
standardDeviation,
|
|
289
|
-
target: test.target,
|
|
290
|
-
passed: average <= test.target,
|
|
291
|
-
percentile95
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Execute a command with timeout
|
|
297
|
-
*/
|
|
298
|
-
async function executeCommand(command: string, args: string[], timeoutMs: number): Promise<void> {
|
|
299
|
-
return new Promise((resolve, reject) => {
|
|
300
|
-
const child = execSync(`${command} ${args.join(' ')}`, {
|
|
301
|
-
stdio: 'pipe',
|
|
302
|
-
timeout: timeoutMs
|
|
303
|
-
});
|
|
304
|
-
resolve();
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Generate comprehensive performance report
|
|
310
|
-
*/
|
|
311
|
-
async function generatePerformanceReport(results: PerformanceResult[], systemInfo: SystemInfo): Promise<void> {
|
|
312
|
-
const reportPath = path.join(process.cwd(), 'performance-report.json');
|
|
313
|
-
|
|
314
|
-
const report = {
|
|
315
|
-
timestamp: new Date().toISOString(),
|
|
316
|
-
systemInfo,
|
|
317
|
-
summary: {
|
|
318
|
-
totalTests: results.length,
|
|
319
|
-
passed: results.filter(r => r.passed).length,
|
|
320
|
-
failed: results.filter(r => !r.passed).length,
|
|
321
|
-
overallScore: (results.filter(r => r.passed).length / results.length) * 100
|
|
322
|
-
},
|
|
323
|
-
results: results.map(result => ({
|
|
324
|
-
...result,
|
|
325
|
-
results: undefined // Remove raw data from summary
|
|
326
|
-
})),
|
|
327
|
-
rawData: results // Keep detailed data
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
await fs.writeFile(reportPath, JSON.stringify(report, null, 2));
|
|
331
|
-
console.log(`${FAF_COLORS.fafGreen('📊')} Performance report saved: ${reportPath}`);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Show championship summary
|
|
336
|
-
*/
|
|
337
|
-
function showChampionshipSummary(results: PerformanceResult[]): void {
|
|
338
|
-
const passed = results.filter(r => r.passed).length;
|
|
339
|
-
const total = results.length;
|
|
340
|
-
const score = (passed / total) * 100;
|
|
341
|
-
|
|
342
|
-
console.log(`${FAF_COLORS.fafCyan('🏁 Championship Performance Summary:')}`);
|
|
343
|
-
console.log();
|
|
344
|
-
|
|
345
|
-
// Overall score
|
|
346
|
-
const scoreColor = score >= 90 ? FAF_COLORS.fafGreen :
|
|
347
|
-
score >= 70 ? FAF_COLORS.fafOrange : FAF_COLORS.fafOrange;
|
|
348
|
-
|
|
349
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} Overall Score: ${scoreColor(score.toFixed(1))}% (${passed}/${total} tests passed)`);
|
|
350
|
-
|
|
351
|
-
// Individual test summary
|
|
352
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} Test Results:`);
|
|
353
|
-
results.forEach((result, index) => {
|
|
354
|
-
const connector = index === results.length - 1 ? '└─' : '├─';
|
|
355
|
-
const status = result.passed ?
|
|
356
|
-
`${FAF_ICONS.trophy} ${result.average.toFixed(1)}ms` :
|
|
357
|
-
`${FAF_ICONS.shield} ${result.average.toFixed(1)}ms (target: ${result.target}ms)`;
|
|
358
|
-
|
|
359
|
-
console.log(`${FAF_COLORS.fafCyan(`│ ${connector}`)} ${result.test}: ${status}`);
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
console.log();
|
|
363
|
-
|
|
364
|
-
// Championship verdict
|
|
365
|
-
if (score >= 90) {
|
|
366
|
-
console.log(`${FAF_COLORS.fafGreen('🏆 CHAMPIONSHIP PERFORMANCE ACHIEVED!')}`);
|
|
367
|
-
console.log(`${FAF_COLORS.fafGreen('⚡ F1-inspired engineering delivers on promises!')}`);
|
|
368
|
-
} else if (score >= 70) {
|
|
369
|
-
console.log(`${FAF_COLORS.fafOrange('🥈 SOLID PERFORMANCE - Minor optimizations needed')}`);
|
|
370
|
-
console.log(`${FAF_COLORS.fafOrange('🔧 Some commands could use championship tuning')}`);
|
|
371
|
-
} else {
|
|
372
|
-
console.log(`${FAF_COLORS.fafOrange('🔧 PERFORMANCE TUNING REQUIRED')}`);
|
|
373
|
-
console.log(`${FAF_COLORS.fafOrange('⚡ Time to unleash the F1 engineering spirit!')}`);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
console.log();
|
|
377
|
-
console.log(`${FAF_COLORS.fafCyan('📈 Performance Standards:')}`);
|
|
378
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} Status command: <38ms (faster than git status)`);
|
|
379
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} Trust dashboard: <40ms (real-time calculation)`);
|
|
380
|
-
console.log(`${FAF_COLORS.fafCyan('├─')} Help/Index: <100ms (instant reference)`);
|
|
381
|
-
console.log(`${FAF_COLORS.fafCyan('└─')} Score calculation: <150ms (comprehensive analysis)`);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* CLI for running specific tests
|
|
386
|
-
*/
|
|
387
|
-
function parseArgs(): { testNames?: string[], verbose?: boolean } {
|
|
388
|
-
const args = process.argv.slice(2);
|
|
389
|
-
const options: { testNames?: string[], verbose?: boolean } = {};
|
|
390
|
-
|
|
391
|
-
for (let i = 0; i < args.length; i++) {
|
|
392
|
-
const arg = args[i];
|
|
393
|
-
|
|
394
|
-
switch (arg) {
|
|
395
|
-
case '--tests':
|
|
396
|
-
options.testNames = args[++i].split(',');
|
|
397
|
-
break;
|
|
398
|
-
case '--verbose':
|
|
399
|
-
options.verbose = true;
|
|
400
|
-
break;
|
|
401
|
-
case '--help':
|
|
402
|
-
showHelp();
|
|
403
|
-
process.exit(0);
|
|
404
|
-
break;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
return options;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Show help
|
|
413
|
-
*/
|
|
414
|
-
function showHelp(): void {
|
|
415
|
-
console.log(`
|
|
416
|
-
⚡ FAF CLI Performance Validation Suite
|
|
417
|
-
|
|
418
|
-
Usage: npm run performance [options]
|
|
419
|
-
|
|
420
|
-
Options:
|
|
421
|
-
--tests <names> Run specific tests (comma-separated)
|
|
422
|
-
--verbose Show detailed execution logs
|
|
423
|
-
--help Show this help
|
|
424
|
-
|
|
425
|
-
Examples:
|
|
426
|
-
npm run performance # Run all tests
|
|
427
|
-
npm run performance -- --tests status,trust # Run specific tests
|
|
428
|
-
npm run performance -- --verbose # Detailed output
|
|
429
|
-
|
|
430
|
-
Available Tests:
|
|
431
|
-
${PERFORMANCE_TESTS.map(t => ` - ${t.name}: ${t.description} (target: ${t.target}ms)`).join('\n')}
|
|
432
|
-
|
|
433
|
-
🏎️ F1-inspired engineering - Every millisecond matters!
|
|
434
|
-
`);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
// Run if called directly
|
|
438
|
-
if (require.main === module) {
|
|
439
|
-
const options = parseArgs();
|
|
440
|
-
|
|
441
|
-
// Filter tests if specific ones requested
|
|
442
|
-
if (options.testNames) {
|
|
443
|
-
const filteredTests = PERFORMANCE_TESTS.filter(t =>
|
|
444
|
-
options.testNames!.includes(t.name)
|
|
445
|
-
);
|
|
446
|
-
|
|
447
|
-
if (filteredTests.length === 0) {
|
|
448
|
-
console.error('No matching tests found');
|
|
449
|
-
process.exit(1);
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
// Replace global test array
|
|
453
|
-
PERFORMANCE_TESTS.length = 0;
|
|
454
|
-
PERFORMANCE_TESTS.push(...filteredTests);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
runPerformanceValidation().catch(console.error);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
export { runPerformanceValidation, PERFORMANCE_TESTS };
|
package/scripts/postinstall.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Post-install message: Confirm successful installation
|
|
5
|
-
*
|
|
6
|
-
* Shows clear success message with version and getting started commands.
|
|
7
|
-
*
|
|
8
|
-
* Writes directly to /dev/tty to bypass npm output suppression.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
const packageJson = require('../package.json');
|
|
12
|
-
const fs = require('fs');
|
|
13
|
-
|
|
14
|
-
const message = `
|
|
15
|
-
\x1b[32m✓\x1b[0m faf-cli@${packageJson.version} installed successfully
|
|
16
|
-
|
|
17
|
-
Getting started:
|
|
18
|
-
faf init # Initialize .faf in your project
|
|
19
|
-
faf score # Check AI-readiness (0-100%)
|
|
20
|
-
|
|
21
|
-
Docs: https://faf.one
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
try {
|
|
25
|
-
// Write directly to terminal, bypassing npm's output suppression
|
|
26
|
-
fs.writeSync(fs.openSync('/dev/tty', 'w'), message);
|
|
27
|
-
} catch (e) {
|
|
28
|
-
// Fallback to stderr if /dev/tty not available (Windows, etc.)
|
|
29
|
-
console.error(message);
|
|
30
|
-
}
|