@@ -87,10 +87,10 @@ F,2,Bob
8787
8888 ### ` encodeAdaptive(input: any, options?: AdaptiveOptions): string | AdaptiveResult `
8989
90- Automatically selects the best encoding mode based on data complexity and user preferences .
90+ Encodes data using the specified mode (default: 'compact') .
9191
9292 ** Options:**
93- - ` mode ` : ` 'auto' | ' compact' | 'readable' | 'llm-optimized' ` (default: ` 'auto ' ` )
93+ - ` mode ` : ` 'compact' | 'readable' | 'llm-optimized' ` (default: ` 'compact ' ` )
9494 - ` indent ` : ` number ` - Indentation spaces for readable mode (default: ` 2 ` )
9595 - ` debug ` : ` boolean ` - Return detailed analysis (default: ` false ` )
9696
@@ -100,8 +100,7 @@ F,2,Bob
100100
101101 | Mode | Description | Best For |
102102 | ------| -------------| ----------|
103- | ` auto ` | Analyzes data and picks best mode automatically | General purpose, mixed data |
104- | ` compact ` | Maximum compression (tables, T/F, delta encoding) | Production APIs, token efficiency |
103+ | ` compact ` | Maximum compression (tables, T/F) | Production APIs, token efficiency |
105104 | ` readable ` | YAML-like syntax with indentation | Config files, human editing |
106105 | ` llm-optimized ` | Balances clarity and tokens (true/false not T/F) | AI workflows, prompts |
107106
@@ -117,8 +116,7 @@ F,2,Bob
117116 ]
118117 };
119118
120- // Auto mode - let ZON decide
121- const auto = encodeAdaptive (data , { mode: ' auto' });
119+
122120
123121 // Compact mode - maximum compression
124122 const compact = encodeAdaptive (data , { mode: ' compact' });
@@ -136,7 +134,7 @@ F,2,Bob
136134 ** Debug Mode:**
137135
138136 ``` typescript
139- const result = encodeAdaptive (data , { mode: ' auto ' , debug: true });
137+ const result = encodeAdaptive (data , { mode: ' compact ' , debug: true });
140138 console .log (result .decisions ); // See why ZON chose this mode
141139 console .log (result .output ); // The encoded string
142140 ```
0 commit comments