Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions core/mcp/modules/FrameworkIntegrity.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@
$script:ProtectedPaths = @(
'.bot/core',
'.bot/hooks',
'.bot/recipes',
'.bot/settings/providers',
'.bot/settings/settings.default.json',
'.bot/settings/theme.default.json',
'.bot/go.ps1',
'.bot/init.ps1',
'.bot/workflow.yaml',
'.bot/.gitignore',
'.bot/.manifest.json',
'.bot/README.md'
Expand Down
9 changes: 8 additions & 1 deletion scripts/init-project.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,14 @@ if ($LASTEXITCODE -ne 0) {
$dirty = git -C $ProjectDir status --porcelain -- @stagePaths 2>$null
if ($dirty) {
Write-DotbotCommand "Committing framework file updates..."
git -C $ProjectDir add -- @stagePaths 2>$null
# Filter to paths that actually exist so git add never aborts on a
# missing pathspec (e.g. retired paths still listed in an old manifest).
$existingStagePaths = $stagePaths | Where-Object {
Test-Path -LiteralPath (Join-Path $ProjectDir $_)
}
if ($existingStagePaths) {
git -C $ProjectDir add -- @existingStagePaths
}
$rc = Submit-ForceCommit -Root $ProjectDir -Message "chore: update dotbot framework files"
if ($rc -eq 0) {
Write-Success "Framework update committed"
Expand Down
Loading