Skip to content

Commit 7fa0cc5

Browse files
Merge branch 'github:main' into q-agent
2 parents de1db34 + e3b456c commit 7fa0cc5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ Our research and experimentation focus on:
5555

5656
## Contributing
5757

58-
Please see our [Contributing Guide](CONTRIBUTING.md) for information on how to contribute to this project.
58+
Please see our [Contributing Guide](https://github.com/github/spec-kit/blob/main/CONTRIBUTING.md) for information on how to contribute to this project.
5959

6060
## Support
6161

62-
For support, please check our [Support Guide](SUPPORT.md) or open an issue on GitHub.
62+
For support, please check our [Support Guide](https://github.com/github/spec-kit/blob/main/SUPPORT.md) or open an issue on GitHub.

scripts/powershell/update-agent-context.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function Extract-PlanField {
125125
if (-not (Test-Path $PlanFile)) { return '' }
126126
# Lines like **Language/Version**: Python 3.12
127127
$regex = "^\*\*$([Regex]::Escape($FieldPattern))\*\*: (.+)$"
128-
Get-Content -LiteralPath $PlanFile | ForEach-Object {
128+
Get-Content -LiteralPath $PlanFile -Encoding utf8 | ForEach-Object {
129129
if ($_ -match $regex) {
130130
$val = $Matches[1].Trim()
131131
if ($val -notin @('NEEDS CLARIFICATION','N/A')) { return $val }
@@ -216,7 +216,7 @@ function New-AgentFile {
216216
$escaped_framework = $NEW_FRAMEWORK
217217
$escaped_branch = $CURRENT_BRANCH
218218

219-
$content = Get-Content -LiteralPath $temp -Raw
219+
$content = Get-Content -LiteralPath $temp -Raw -Encoding utf8
220220
$content = $content -replace '\[PROJECT NAME\]',$ProjectName
221221
$content = $content -replace '\[DATE\]',$Date.ToString('yyyy-MM-dd')
222222

@@ -254,7 +254,7 @@ function New-AgentFile {
254254

255255
$parent = Split-Path -Parent $TargetFile
256256
if (-not (Test-Path $parent)) { New-Item -ItemType Directory -Path $parent | Out-Null }
257-
Set-Content -LiteralPath $TargetFile -Value $content -NoNewline
257+
Set-Content -LiteralPath $TargetFile -Value $content -NoNewline -Encoding utf8
258258
Remove-Item $temp -Force
259259
return $true
260260
}
@@ -286,7 +286,7 @@ function Update-ExistingAgentFile {
286286
if ($techStack) { $newChangeEntry = "- ${CURRENT_BRANCH}: Added ${techStack}" }
287287
elseif ($NEW_DB -and $NEW_DB -notin @('N/A','NEEDS CLARIFICATION')) { $newChangeEntry = "- ${CURRENT_BRANCH}: Added ${NEW_DB}" }
288288

289-
$lines = Get-Content -LiteralPath $TargetFile
289+
$lines = Get-Content -LiteralPath $TargetFile -Encoding utf8
290290
$output = New-Object System.Collections.Generic.List[string]
291291
$inTech = $false; $inChanges = $false; $techAdded = $false; $changeAdded = $false; $existingChanges = 0
292292

@@ -328,7 +328,7 @@ function Update-ExistingAgentFile {
328328
$newTechEntries | ForEach-Object { $output.Add($_) }
329329
}
330330

331-
Set-Content -LiteralPath $TargetFile -Value ($output -join [Environment]::NewLine)
331+
Set-Content -LiteralPath $TargetFile -Value ($output -join [Environment]::NewLine) -Encoding utf8
332332
return $true
333333
}
334334

0 commit comments

Comments
 (0)