@@ -47,7 +47,7 @@ async function generateLlmsTxt(): Promise<{ quick: number; full: number }> {
4747 // Read all external API docs
4848 const externalFiles = await glob (
4949 path . join ( CONFIG . knowledgeRoot , "external/**/*.md" ) ,
50- { absolute : true }
50+ { absolute : true } ,
5151 ) ;
5252
5353 // Combine all external docs for llms-full.txt
@@ -129,10 +129,10 @@ dependencies:
129129
130130### Ecosystem Libraries
131131- expo-iap: https://github.com/hyochan/expo-iap
132- - react-native-iap: https://github.com/dooboolab-community /react-native-iap
133- - flutter_inapp_purchase: https://github.com/dooboolab-community /flutter_inapp_purchase
132+ - react-native-iap: https://github.com/hyochan /react-native-iap
133+ - flutter_inapp_purchase: https://github.com/hyochan /flutter_inapp_purchase
134134- godot-iap: https://github.com/hyochan/godot-iap
135- - kmp-iap: https://github.com/nicoseng /kmp-iap
135+ - kmp-iap: https://github.com/hyochan /kmp-iap
136136` ;
137137
138138 // Generate llms.txt (quick reference - condensed version)
@@ -345,8 +345,14 @@ interface PurchaseError {
345345 fs . writeFileSync ( llmsPath , quickContent ) ;
346346 fs . writeFileSync ( llmsFullPath , fullContent ) ;
347347
348- console . log ( chalk . green ( ` ✓ llms.txt: ${ ( quickContent . length / 1024 ) . toFixed ( 1 ) } KB` ) ) ;
349- console . log ( chalk . green ( ` ✓ llms-full.txt: ${ ( fullContent . length / 1024 ) . toFixed ( 1 ) } KB` ) ) ;
348+ console . log (
349+ chalk . green ( ` ✓ llms.txt: ${ ( quickContent . length / 1024 ) . toFixed ( 1 ) } KB` ) ,
350+ ) ;
351+ console . log (
352+ chalk . green (
353+ ` ✓ llms-full.txt: ${ ( fullContent . length / 1024 ) . toFixed ( 1 ) } KB` ,
354+ ) ,
355+ ) ;
350356
351357 return { quick : quickContent . length , full : fullContent . length } ;
352358}
@@ -394,7 +400,7 @@ These rules define OpenIAP's development philosophy.
394400
395401 const internalFiles = await glob (
396402 path . join ( CONFIG . knowledgeRoot , "internal/**/*.md" ) ,
397- { absolute : true }
403+ { absolute : true } ,
398404 ) ;
399405
400406 for ( const filePath of internalFiles . sort ( ) ) {
@@ -408,7 +414,9 @@ These rules define OpenIAP's development philosophy.
408414 output += "\n\n---\n\n" ;
409415 }
410416
411- console . log ( chalk . green ( ` ✓ ${ internalFiles . length } internal files processed` ) ) ;
417+ console . log (
418+ chalk . green ( ` ✓ ${ internalFiles . length } internal files processed` ) ,
419+ ) ;
412420
413421 // =========================================================================
414422 // EXTERNAL API DOCS (REFERENCE)
@@ -426,7 +434,7 @@ Use this documentation for API details, but **ALWAYS adapt patterns to match Int
426434
427435 const externalFiles = await glob (
428436 path . join ( CONFIG . knowledgeRoot , "external/**/*.md" ) ,
429- { absolute : true }
437+ { absolute : true } ,
430438 ) ;
431439
432440 for ( const filePath of externalFiles . sort ( ) ) {
@@ -440,7 +448,9 @@ Use this documentation for API details, but **ALWAYS adapt patterns to match Int
440448 output += "\n\n---\n\n" ;
441449 }
442450
443- console . log ( chalk . green ( ` ✓ ${ externalFiles . length } external files processed` ) ) ;
451+ console . log (
452+ chalk . green ( ` ✓ ${ externalFiles . length } external files processed` ) ,
453+ ) ;
444454
445455 // =========================================================================
446456 // PROJECT STRUCTURE
@@ -499,18 +509,38 @@ openiap/
499509 console . log ( chalk . bold . cyan ( "═" . repeat ( 60 ) ) ) ;
500510 console . log ( chalk . magenta ( ` Internal Rules: ${ internalFiles . length } files` ) ) ;
501511 console . log ( chalk . cyan ( ` External Docs: ${ externalFiles . length } files` ) ) ;
502- console . log ( chalk . white ( ` context.md: ${ ( output . length / 1024 ) . toFixed ( 1 ) } KB` ) ) ;
503- console . log ( chalk . white ( ` llms.txt: ${ ( llmsStats . quick / 1024 ) . toFixed ( 1 ) } KB` ) ) ;
504- console . log ( chalk . white ( ` llms-full.txt: ${ ( llmsStats . full / 1024 ) . toFixed ( 1 ) } KB` ) ) ;
512+ console . log (
513+ chalk . white ( ` context.md: ${ ( output . length / 1024 ) . toFixed ( 1 ) } KB` ) ,
514+ ) ;
515+ console . log (
516+ chalk . white ( ` llms.txt: ${ ( llmsStats . quick / 1024 ) . toFixed ( 1 ) } KB` ) ,
517+ ) ;
518+ console . log (
519+ chalk . white ( ` llms-full.txt: ${ ( llmsStats . full / 1024 ) . toFixed ( 1 ) } KB` ) ,
520+ ) ;
505521 console . log ( chalk . green ( `\n ✓ Output: ${ outputPath } ` ) ) ;
506- console . log ( chalk . green ( ` ✓ Output: ${ path . join ( CONFIG . llmsOutputDir , "llms.txt" ) } ` ) ) ;
507- console . log ( chalk . green ( ` ✓ Output: ${ path . join ( CONFIG . llmsOutputDir , "llms-full.txt" ) } ` ) ) ;
522+ console . log (
523+ chalk . green ( ` ✓ Output: ${ path . join ( CONFIG . llmsOutputDir , "llms.txt" ) } ` ) ,
524+ ) ;
525+ console . log (
526+ chalk . green (
527+ ` ✓ Output: ${ path . join ( CONFIG . llmsOutputDir , "llms-full.txt" ) } ` ,
528+ ) ,
529+ ) ;
508530
509531 console . log ( chalk . bold . green ( "\n✅ Context compilation complete!\n" ) ) ;
510532 console . log ( chalk . white ( "Usage with Claude Code:" ) ) ;
511- console . log ( chalk . gray ( ` claude --context ${ path . relative ( CONFIG . projectRoot , outputPath ) } \n` ) ) ;
533+ console . log (
534+ chalk . gray (
535+ ` claude --context ${ path . relative ( CONFIG . projectRoot , outputPath ) } \n` ,
536+ ) ,
537+ ) ;
512538 console . log ( chalk . white ( "Or in an existing session:" ) ) ;
513- console . log ( chalk . gray ( ` /context add ${ path . relative ( CONFIG . projectRoot , outputPath ) } \n` ) ) ;
539+ console . log (
540+ chalk . gray (
541+ ` /context add ${ path . relative ( CONFIG . projectRoot , outputPath ) } \n` ,
542+ ) ,
543+ ) ;
514544}
515545
516546// ============================================================================
0 commit comments