Skip to content

Commit d3d69aa

Browse files
authored
🔧 update: align EnvironmentConfig env var keys with runtime and docs (#36)
* Initial plan * fix(types): align sensitive fields env var name in EnvironmentConfig * fix(types): sync EnvironmentConfig env vars with runtime parsing --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent af87e86 commit d3d69aa

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

‎src/types/index.ts‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,18 +379,26 @@ export interface FieldRedactionResult {
379379
* Documents all supported environment variables
380380
*/
381381
export interface EnvironmentConfig {
382+
/** NODE_ENV - Node.js environment mode */
383+
NODE_ENV?: string;
384+
/** DEBUG_FULL_PAYLOADS - Enable full payload debugging */
385+
DEBUG_FULL_PAYLOADS?: string;
386+
/** LOG_LEVEL - Global log level */
387+
LOG_LEVEL?: string;
388+
/** LOG_REDACTION_ENABLED - Explicitly enable/disable redaction */
389+
LOG_REDACTION_ENABLED?: string;
382390
/** LOG_REDACTION_DISABLED - Disable all redaction */
383391
LOG_REDACTION_DISABLED?: string;
384392
/** LOG_REDACTION_TEXT - Custom redaction text */
385393
LOG_REDACTION_TEXT?: string;
386-
/** LOG_REDACTION_SENSITIVE_FIELDS - Comma-separated sensitive field names */
387-
LOG_REDACTION_SENSITIVE_FIELDS?: string;
394+
/** LOG_SENSITIVE_FIELDS - Comma-separated sensitive field names */
395+
LOG_SENSITIVE_FIELDS?: string;
388396
/** LOG_REDACTION_CONTENT_FIELDS - Comma-separated content field names */
389397
LOG_REDACTION_CONTENT_FIELDS?: string;
390-
/** LOG_REDACTION_MAX_CONTENT_LENGTH - Maximum length for content fields */
391-
LOG_REDACTION_MAX_CONTENT_LENGTH?: string;
392-
/** LOG_REDACTION_TRUNCATION_TEXT - Text for truncated content */
393-
LOG_REDACTION_TRUNCATION_TEXT?: string;
398+
/** LOG_MAX_CONTENT_LENGTH - Maximum length for content fields */
399+
LOG_MAX_CONTENT_LENGTH?: string;
400+
/** LOG_TRUNCATION_TEXT - Text for truncated content */
401+
LOG_TRUNCATION_TEXT?: string;
394402
/** LOG_REDACTION_DEEP - Enable deep redaction */
395403
LOG_REDACTION_DEEP?: string;
396404
}

0 commit comments

Comments
 (0)