File tree Expand file tree Collapse file tree 2 files changed +22
-15
lines changed
Expand file tree Collapse file tree 2 files changed +22
-15
lines changed Original file line number Diff line number Diff line change @@ -569,7 +569,10 @@ export const detectPromptInputs = (pane: string): AvailableInput[] => {
569569
570570 // --- Crafting menu detection ---
571571 // The crafting menu shows recipe categories and filter prompt
572- if ( pane . includes ( "Craft:" ) || pane . includes ( "Your crafting inventory" ) || pane . includes ( "Recipe search" ) ) {
572+ if (
573+ pane . includes ( "Craft:" ) || pane . includes ( "Your crafting inventory" ) ||
574+ pane . includes ( "Recipe search" )
575+ ) {
573576 detected . push ( {
574577 id : "action:menu_filter" ,
575578 key : ACTION_KEY_CATALOG . menu_filter ,
@@ -739,9 +742,7 @@ export const buildLaunchCommand = (
739742 ...( availableKeysJson . length > 0
740743 ? [ `CATA_AVAILABLE_KEYS_JSON=${ shellEscape ( availableKeysJson ) } ` ]
741744 : [ ] ) ,
742- ...( aiHelperOutput . length > 0
743- ? [ `AI_HELPER_OUTPUT=${ shellEscape ( aiHelperOutput ) } ` ]
744- : [ ] ) ,
745+ ...( aiHelperOutput . length > 0 ? [ `AI_HELPER_OUTPUT=${ shellEscape ( aiHelperOutput ) } ` ] : [ ] ) ,
745746 shellEscape ( binPath ) ,
746747 "--basepath" ,
747748 shellEscape ( REPO_ROOT ) ,
Original file line number Diff line number Diff line change @@ -473,17 +473,23 @@ if (import.meta.main) {
473473 void _error
474474 }
475475
476- const castStats = options . includeCastStats ? await getCastStats ( state . cast_file ) : undefined
477- console . log ( JSON . stringify ( {
478- state_id : state . id ,
479- status : state . status ,
480- game_state_path : gameStatePath ,
481- game_state : gameState ,
482- cast_file : state . cast_file ,
483- cast_stats : castStats ,
484- available_keys_json : state . available_keys_json ,
485- started_at : state . started_at ,
486- } , null , 2 ) )
476+ const castStats = options . includeCastStats
477+ ? await getCastStats ( state . cast_file )
478+ : undefined
479+ console . log ( JSON . stringify (
480+ {
481+ state_id : state . id ,
482+ status : state . status ,
483+ game_state_path : gameStatePath ,
484+ game_state : gameState ,
485+ cast_file : state . cast_file ,
486+ cast_stats : castStats ,
487+ available_keys_json : state . available_keys_json ,
488+ started_at : state . started_at ,
489+ } ,
490+ null ,
491+ 2 ,
492+ ) )
487493 } ) ,
488494 )
489495 . command (
You can’t perform that action at this time.
0 commit comments