@@ -44,7 +44,7 @@ function Test-CourtListenerToken {
4444 If specified, suppress output and return only boolean.
4545
4646 . OUTPUTS
47- Boolean — $true if valid, $false if invalid.
47+ Boolean - $true if valid, $false if invalid.
4848 #>
4949 [CmdletBinding ()]
5050 [OutputType ([bool ])]
@@ -110,7 +110,7 @@ function Test-OpenAiApiKey {
110110 If specified, suppress output and return only boolean.
111111
112112 . OUTPUTS
113- Boolean — $true if valid or empty, $false if provided but invalid.
113+ Boolean - $true if valid or empty, $false if provided but invalid.
114114 #>
115115 [CmdletBinding ()]
116116 [OutputType ([bool ])]
@@ -123,11 +123,11 @@ function Test-OpenAiApiKey {
123123 )
124124
125125 if ([string ]::IsNullOrWhiteSpace($ApiKey )) {
126- if (-not $Silent ) { Write-Host " [INFO] OpenAI/Ollama API key is optional — skipping validation" - ForegroundColor Cyan }
126+ if (-not $Silent ) { Write-Host " [INFO] OpenAI/Ollama API key is optional - skipping validation" - ForegroundColor Cyan }
127127 return $true
128128 }
129129
130- # Accept Ollama local endpoint key values — Ollama ignores the key entirely
130+ # Accept Ollama local endpoint key values - Ollama ignores the key entirely
131131 # Matches: "ollama", "ollama:modelname", "OLLAMA", etc.
132132 if ($ApiKey -match ' ^ollama(:[a-zA-Z0-9._/-]+)?$' ) {
133133 if (-not $Silent ) {
@@ -185,7 +185,7 @@ function Test-MistralApiKey {
185185 If specified, suppress output and return only boolean.
186186
187187 . OUTPUTS
188- Boolean — $true if valid or empty, $false if provided but invalid.
188+ Boolean - $true if valid or empty, $false if provided but invalid.
189189 #>
190190 [CmdletBinding ()]
191191 [OutputType ([bool ])]
@@ -198,7 +198,7 @@ function Test-MistralApiKey {
198198 )
199199
200200 if ([string ]::IsNullOrWhiteSpace($ApiKey )) {
201- if (-not $Silent ) { Write-Host " [INFO] Mistral API key is optional — skipping validation" - ForegroundColor Cyan }
201+ if (-not $Silent ) { Write-Host " [INFO] Mistral API key is optional - skipping validation" - ForegroundColor Cyan }
202202 return $true
203203 }
204204
@@ -247,7 +247,7 @@ function Test-PlaceholderPattern {
247247 If specified, suppress output and return only boolean.
248248
249249 . OUTPUTS
250- Boolean — $true if placeholder detected (invalid), $false if clean.
250+ Boolean - $true if placeholder detected (invalid), $false if clean.
251251 #>
252252 [CmdletBinding ()]
253253 [OutputType ([bool ])]
@@ -272,7 +272,7 @@ function Test-PlaceholderPattern {
272272 Write-Host " [ERROR] Detected placeholder pattern in $KeyType key: '$pattern '" - ForegroundColor Red
273273 Write-Host " Please use your actual key, not a placeholder" - ForegroundColor Yellow
274274 }
275- return $true # Placeholder found — caller should treat as invalid
275+ return $true # Placeholder found - caller should treat as invalid
276276 }
277277 }
278278
@@ -302,7 +302,7 @@ function Test-PathSecurity {
302302 If specified, suppress output and return only boolean.
303303
304304 . OUTPUTS
305- Boolean — $true if safe, $false if rejected.
305+ Boolean - $true if safe, $false if rejected.
306306 #>
307307 [CmdletBinding ()]
308308 [OutputType ([bool ])]
@@ -320,7 +320,7 @@ function Test-PathSecurity {
320320 if ($Path -match ' \.\.' ) {
321321 if (-not $Silent ) {
322322 Write-Host " [ERROR] $PathName contains path traversal (..): $Path " - ForegroundColor Red
323- Write-Host " Path traversal is a security risk — rejected" - ForegroundColor Red
323+ Write-Host " Path traversal is a security risk - rejected" - ForegroundColor Red
324324 }
325325 return $false
326326 }
@@ -365,7 +365,7 @@ function New-SecureSecret {
365365 Number of random bytes (default 32, yields a 44-char base64 string).
366366
367367 . OUTPUTS
368- String — Base64-encoded secure random secret.
368+ String - Base64-encoded secure random secret.
369369 #>
370370 [CmdletBinding ()]
371371 [OutputType ([string ])]
@@ -400,7 +400,7 @@ function Read-ApiKeySecure {
400400 The prompt text to display.
401401
402402 . OUTPUTS
403- String — The entered key in plaintext.
403+ String - The entered key in plaintext.
404404 #>
405405 [CmdletBinding ()]
406406 [OutputType ([string ])]
@@ -429,7 +429,7 @@ function Read-CourtListenerTokenWithValidation {
429429 Maximum number of attempts before giving up (default 3).
430430
431431 . OUTPUTS
432- String — Valid token, or $null if all attempts failed.
432+ String - Valid token, or $null if all attempts failed.
433433 #>
434434 [CmdletBinding ()]
435435 [OutputType ([string ])]
@@ -457,7 +457,7 @@ function Read-CourtListenerTokenWithValidation {
457457 }
458458 else {
459459 if ($attempt -lt $MaxAttempts ) {
460- Write-Host " [WARN] Attempt $attempt of $MaxAttempts — please try again" - ForegroundColor Yellow
460+ Write-Host " [WARN] Attempt $attempt of $MaxAttempts - please try again" - ForegroundColor Yellow
461461 Write-Host " [INFO] Format: 40 lowercase hex characters (a-f, 0-9)" - ForegroundColor Cyan
462462 }
463463 }
@@ -473,13 +473,13 @@ function Read-OpenAiApiKeyWithValidation {
473473 Prompts for an OpenAI API key with validation retry loop (optional key).
474474
475475 . DESCRIPTION
476- Press Enter to skip — OpenAI is optional for this MCP.
476+ Press Enter to skip - OpenAI is optional for this MCP.
477477
478478 . PARAMETER MaxAttempts
479479 Maximum number of attempts before giving up (default 3).
480480
481481 . OUTPUTS
482- String — Valid key, empty string if skipped, or $null if all attempts failed.
482+ String - Valid key, empty string if skipped, or $null if all attempts failed.
483483 #>
484484 [CmdletBinding ()]
485485 [OutputType ([string ])]
@@ -510,7 +510,7 @@ function Read-OpenAiApiKeyWithValidation {
510510 }
511511 else {
512512 if ($attempt -lt $MaxAttempts ) {
513- Write-Host " [WARN] Attempt $attempt of $MaxAttempts — please try again" - ForegroundColor Yellow
513+ Write-Host " [WARN] Attempt $attempt of $MaxAttempts - please try again" - ForegroundColor Yellow
514514 Write-Host " [INFO] Format: starts with 'sk-' (OpenAI) or enter 'ollama' for local Ollama endpoint" - ForegroundColor Cyan
515515 }
516516 }
@@ -526,13 +526,13 @@ function Read-MistralApiKeyWithValidation {
526526 Prompts for a Mistral API key with validation retry loop (optional key).
527527
528528 . DESCRIPTION
529- Press Enter to skip — Mistral is optional for this MCP.
529+ Press Enter to skip - Mistral is optional for this MCP.
530530
531531 . PARAMETER MaxAttempts
532532 Maximum number of attempts before giving up (default 3).
533533
534534 . OUTPUTS
535- String — Valid key, empty string if skipped, or $null if all attempts failed.
535+ String - Valid key, empty string if skipped, or $null if all attempts failed.
536536 #>
537537 [CmdletBinding ()]
538538 [OutputType ([string ])]
@@ -563,7 +563,7 @@ function Read-MistralApiKeyWithValidation {
563563 }
564564 else {
565565 if ($attempt -lt $MaxAttempts ) {
566- Write-Host " [WARN] Attempt $attempt of $MaxAttempts — please try again" - ForegroundColor Yellow
566+ Write-Host " [WARN] Attempt $attempt of $MaxAttempts - please try again" - ForegroundColor Yellow
567567 Write-Host " [INFO] Format: 32 alphanumeric characters (a-z, A-Z, 0-9)" - ForegroundColor Cyan
568568 }
569569 }
@@ -586,7 +586,7 @@ function Show-ApiKeyRequirements {
586586 param ()
587587
588588 Write-Host " "
589- Write-Host " API Key Requirements — CourtListener Citation Validation MCP" - ForegroundColor Cyan
589+ Write-Host " API Key Requirements - CourtListener Citation Validation MCP" - ForegroundColor Cyan
590590 Write-Host " ==============================================================" - ForegroundColor Cyan
591591 Write-Host " "
592592 Write-Host " CourtListener API Token:" - ForegroundColor White
@@ -625,7 +625,7 @@ function Hide-ApiKey {
625625 Number of characters to show at the end (default 5).
626626
627627 . OUTPUTS
628- String — Masked key, e.g. "***...abcde".
628+ String - Masked key, e.g. "***...abcde".
629629 #>
630630 [CmdletBinding ()]
631631 [OutputType ([string ])]
0 commit comments