| 12345678910111213141516171819202122 |
- $SkillsRoot = "e:\workspace\openclaw-voc-skill"
- $catPath = Join-Path $SkillsRoot "voc"
- Get-ChildItem -Recurse -Filter "api-config.json" -Path $catPath | Select-Object -First 1 | ForEach-Object {
- $filePath = $_.FullName
- Write-Host "File: $filePath"
- $content = Get-Content -Path $filePath -Raw -Encoding UTF8
- Write-Host "Content null: $($null -eq $content)"
- Write-Host "Content length: $($content.Length)"
- $search = '"tokenConfig"'
- Write-Host "Search string length: $($search.Length)"
- Write-Host "Search string chars: $(($search.ToCharArray() | ForEach-Object { [int]$_ }) -join ',')"
- $idx = $content.IndexOf($search)
- Write-Host "IndexOf result: $idx"
- # Also try without quotes
- $idx2 = $content.IndexOf("tokenConfig")
- Write-Host "IndexOf no-quotes: $idx2"
- }
|