env vars
This commit is contained in:
44
adapters/env.d.ts
vendored
Normal file
44
adapters/env.d.ts
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
declare global {
|
||||
namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
NODE_ENV?: 'development' | 'production' | 'test';
|
||||
|
||||
// Automation (legacy + current)
|
||||
AUTOMATION_MODE?: 'dev' | 'production' | 'mock';
|
||||
AUTOMATION_TIMEOUT?: string;
|
||||
RETRY_ATTEMPTS?: string;
|
||||
SCREENSHOT_ON_ERROR?: string;
|
||||
|
||||
// Chrome / DevTools
|
||||
CHROME_DEBUG_PORT?: string;
|
||||
CHROME_WS_ENDPOINT?: string;
|
||||
|
||||
// Native automation tuning
|
||||
NUTJS_MOUSE_SPEED?: string;
|
||||
NUTJS_KEYBOARD_DELAY?: string;
|
||||
IRACING_WINDOW_TITLE?: string;
|
||||
TEMPLATE_PATH?: string;
|
||||
OCR_CONFIDENCE?: string;
|
||||
|
||||
// Retry tuning
|
||||
AUTOMATION_MAX_RETRIES?: string;
|
||||
AUTOMATION_BASE_DELAY_MS?: string;
|
||||
AUTOMATION_MAX_DELAY_MS?: string;
|
||||
AUTOMATION_BACKOFF_MULTIPLIER?: string;
|
||||
|
||||
// Timing tuning
|
||||
AUTOMATION_PAGE_LOAD_WAIT_MS?: string;
|
||||
AUTOMATION_INTER_ACTION_DELAY_MS?: string;
|
||||
AUTOMATION_POST_CLICK_DELAY_MS?: string;
|
||||
AUTOMATION_PRE_STEP_DELAY_MS?: string;
|
||||
|
||||
// Logging
|
||||
LOG_LEVEL?: 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
||||
LOG_FILE_PATH?: string;
|
||||
LOG_MAX_FILES?: string;
|
||||
LOG_MAX_SIZE?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
@@ -7,6 +7,6 @@
|
||||
"sourceMap": true,
|
||||
"types": ["vitest/globals"]
|
||||
},
|
||||
"include": ["**/*.ts", "../core/**/*.ts"],
|
||||
"include": ["**/*.ts", "**/*.d.ts", "../core/**/*.ts", "../core/**/*.d.ts"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
Reference in New Issue
Block a user