@@ -226,11 +226,11 @@ describe("Documentation Integrity", () => {
226226 expect ( gettingStarted ) . toContain (
227227 "This installs the local account manager for `codex auth ...`." ,
228228 ) ;
229- expect ( gettingStarted ) . not . toContain (
230- " Verify that the wrapper is active:\n\n ```bash\ncodex --version" ,
229+ expect ( gettingStarted ) . not . toMatch (
230+ / V e r i f y t h a t t h e w r a p p e r i s a c t i v e : \s * ` ` ` b a s h \s * c o d e x - - v e r s i o n / ,
231231 ) ;
232- expect ( readme ) . not . toContain (
233- " ### Option D: Verify account-manager wiring\n\n ```bash\ncodex --version" ,
232+ expect ( readme ) . not . toMatch (
233+ / # # # O p t i o n D : V e r i f y a c c o u n t - m a n a g e r w i r i n g \s * ` ` ` b a s h \s * c o d e x - - v e r s i o n / ,
234234 ) ;
235235
236236 expect ( privacy ) . toContain ( '$CODEX_MULTI_AUTH_DIR/settings.json' ) ;
@@ -243,6 +243,12 @@ describe("Documentation Integrity", () => {
243243 expect ( privacy ) . toContain ( '$CODEX_MULTI_AUTH_DIR/cache' ) ;
244244 expect ( privacy ) . toContain ( "foreach ($relativePath in @(" ) ;
245245 expect ( privacy ) . toContain ( "Join-Path $env:CODEX_MULTI_AUTH_DIR $relativePath" ) ;
246+ expect ( privacy ) . toContain (
247+ 'if [ -n "${CODEX_MULTI_AUTH_DIR:-}" ] && [ -f "$CODEX_MULTI_AUTH_DIR/settings.json" ]; then' ,
248+ ) ;
249+ expect ( privacy ) . toContain (
250+ 'if ($env:CODEX_MULTI_AUTH_DIR -and (Test-Path (Join-Path $env:CODEX_MULTI_AUTH_DIR "settings.json")))' ,
251+ ) ;
246252 expect ( privacy ) . toContain ( 'Get-ChildItem "$HOME\\.codex\\multi-auth\\logs" -Filter "audit.*.log"' ) ;
247253 expect ( privacy ) . toContain ( 'Get-ChildItem (Join-Path $env:CODEX_MULTI_AUTH_DIR "logs") -Filter "audit.*.log"' ) ;
248254
@@ -282,14 +288,17 @@ describe("Documentation Integrity", () => {
282288 expect ( readme ) . toContain ( "needs non-auth `codex` commands to be forwarded" ) ;
283289 expect ( advancedInstall ) . toContain ( "`scripts/install-codex-auth.js` does the following:" ) ;
284290 expect ( advancedInstall ) . toContain (
285- "> It should be treated as an operator action, not something an LLM agent runs automatically.\n\n> [!NOTE] " ,
291+ "> It should be treated as an operator action, not something an LLM agent runs automatically." ,
286292 ) ;
293+ expect ( advancedInstall ) . toContain ( "> [!NOTE]" ) ;
287294 expect ( advancedInstall ) . toContain ( 'Remove-Item "$env:APPDATA\\Codex\\Codex.json.bak-*"' ) ;
288295 expect ( advancedInstall ) . toContain ( "rm -f ~/.config/Codex/Codex.json.bak-*" ) ;
289296 expect ( advancedInstall ) . toContain ( "see [privacy.md](privacy.md)" ) ;
297+ expect ( upgrade ) . toContain ( "1. Rebuild account health baseline:" ) ;
290298 expect ( upgrade ) . toContain (
291- "1. Rebuild account health baseline:\n\n > Agents should confirm with the user before running `codex auth login` because it opens a browser OAuth flow and mutates local auth state.\n\n ```bash " ,
299+ "Agents should confirm with the user before running `codex auth login` because it opens a browser OAuth flow and mutates local auth state." ,
292300 ) ;
301+ expect ( upgrade ) . toContain ( "codex auth forecast --live --model gpt-5-codex" ) ;
293302 } ) ;
294303
295304 it ( "documents public API stability tiers and error contracts" , ( ) => {
0 commit comments