configs-all 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +3 -0
- package/CLAUDE.md +94 -0
- package/README.md +424 -0
- package/TERMINAL_SHORTCUTS.md +96 -0
- package/WINDOWS_COMPATIBILITY.md +85 -0
- package/WINDOWS_MCP_SETUP.md +133 -0
- package/apps/RectangleConfig.plist +0 -0
- package/apps/Synergy +84 -0
- package/apps/iStat Menus Settings.ismp7 +0 -0
- package/claude/CLAUDE.md +228 -0
- package/claude/commands/changelog.md +36 -0
- package/claude/commands/commit.md +29 -0
- package/claude/commands/context.md +112 -0
- package/claude/commands/dash.md +37 -0
- package/claude/commands/deploy-check.md +37 -0
- package/claude/commands/deps.md +26 -0
- package/claude/commands/duplo.md +56 -0
- package/claude/commands/explain.md +43 -0
- package/claude/commands/fix-and-test.md +46 -0
- package/claude/commands/game-debug.md +66 -0
- package/claude/commands/games.md +53 -0
- package/claude/commands/go.md +147 -0
- package/claude/commands/guard.md +102 -0
- package/claude/commands/handoff.md +66 -0
- package/claude/commands/incident.md +144 -0
- package/claude/commands/init.md +78 -0
- package/claude/commands/k8s-debug.md +31 -0
- package/claude/commands/lint.md +27 -0
- package/claude/commands/merge-all.md +115 -0
- package/claude/commands/merge.md +129 -0
- package/claude/commands/mikpc.md +54 -0
- package/claude/commands/morning.md +72 -0
- package/claude/commands/partymode.md +105 -0
- package/claude/commands/plans.md +88 -0
- package/claude/commands/pr.md +41 -0
- package/claude/commands/prep.md +132 -0
- package/claude/commands/push-sync.md +82 -0
- package/claude/commands/push.md +34 -0
- package/claude/commands/research.md +73 -0
- package/claude/commands/retro.md +95 -0
- package/claude/commands/review-pr.md +96 -0
- package/claude/commands/review.md +41 -0
- package/claude/commands/scaffold-agent.md +45 -0
- package/claude/commands/setup.md +92 -0
- package/claude/commands/ship-prod.md +97 -0
- package/claude/commands/ship.md +82 -0
- package/claude/commands/simplify.md +42 -0
- package/claude/commands/spike.md +110 -0
- package/claude/commands/status.md +37 -0
- package/claude/commands/sync.md +72 -0
- package/claude/commands/test.md +29 -0
- package/claude/commands/triage.md +72 -0
- package/claude/desktop/claude_desktop_config.json +9 -0
- package/claude/hooks.json +15 -0
- package/claude/mcp-servers.duplo.json +8 -0
- package/claude/mcp-servers.json +62 -0
- package/claude/scripts/psdebug.ps1 +7 -0
- package/claude/settings.json +38 -0
- package/claude/settings.local.json +4 -0
- package/claude/statusline-command.sh +94 -0
- package/claude/templates/CLAUDE-k8s-devops.md +58 -0
- package/claude/templates/CLAUDE-python-agent.md +47 -0
- package/claude/templates/CLAUDE-typescript-frontend.md +50 -0
- package/docker/ai-stack/docker-compose.yml +76 -0
- package/docker/ai-stack/searxng/limiter.toml +3 -0
- package/docker/ai-stack/searxng/settings.yml +39 -0
- package/docker/cli/config.json.template +15 -0
- package/docker/cli/daemon.json +9 -0
- package/docker/cli/features.json +3 -0
- package/docker/mcp/catalog.json +9 -0
- package/docker/mcp/catalogs/docker-mcp.yaml +15107 -0
- package/docker/mcp/config.yaml +0 -0
- package/docker/mcp/registry.yaml +37 -0
- package/docker/mcp/tools.yaml +0 -0
- package/docs/context/.gitkeep +0 -0
- package/docs/context/2026-03-02-configs.md +142 -0
- package/docs/handoff/.gitkeep +0 -0
- package/docs/incidents/.gitkeep +0 -0
- package/docs/plans/2026-02-28-autonomous-command-suite-design.md +250 -0
- package/docs/plans/2026-02-28-autonomous-command-suite.md +682 -0
- package/docs/plans/2026-03-01-ai-stack-split-architecture.md +72 -0
- package/docs/plans/2026-03-02-ai-stack-expansion.md +33 -0
- package/docs/plans/2026-03-02-merge-commands-design.md +58 -0
- package/docs/plans/2026-03-02-merge-commands.md +354 -0
- package/docs/research/.gitkeep +0 -0
- package/docs/research/2026-03-02-configs-repo-architecture.md +152 -0
- package/docs/retros/.gitkeep +0 -0
- package/docs/retros/2026-03-01-ai-stack-split-architecture.md +38 -0
- package/docs/spikes/.gitkeep +0 -0
- package/gh/config.yml +16 -0
- package/gh/hosts.yml +5 -0
- package/gh/main.json +103 -0
- package/ghostty/config +90 -0
- package/git/config/base.gitconfig +46 -0
- package/git/config/chiefmikey.gitconfig +11 -0
- package/git/config/personal.gitconfig +10 -0
- package/git/config/work.gitconfig +14 -0
- package/ide/cursor/extensions.txt +111 -0
- package/ide/cursor/keybindings.json +307 -0
- package/ide/cursor/mcp.json +92 -0
- package/ide/cursor/settings.json +544 -0
- package/ide/vscode/extensions.txt +120 -0
- package/ide/vscode/insiders/extensions.txt +119 -0
- package/ide/vscode/insiders/keybindings.json +294 -0
- package/ide/vscode/insiders/settings.json +518 -0
- package/ide/vscode/keybindings.json +294 -0
- package/ide/vscode/settings.json +526 -0
- package/ide/vscode/vscode/extensions.txt +43 -0
- package/iterm/Mikey Pro.json +951 -0
- package/iterm/com.googlecode.iterm2.plist +5549 -0
- package/iterm/font/MesloLGS NF Bold Italic.ttf +0 -0
- package/iterm/font/MesloLGS NF Bold.ttf +0 -0
- package/iterm/font/MesloLGS NF Italic.ttf +0 -0
- package/iterm/font/MesloLGS NF Regular.ttf +0 -0
- package/package.json +15 -0
- package/scripts/ai/deploy-ai-stack.sh +119 -0
- package/scripts/ai/fix-ai-proxy.service +12 -0
- package/scripts/ai/fix-ai-proxy.sh +25 -0
- package/scripts/brew/search/brew-search-results.sh +19 -0
- package/scripts/brew/search/brew-search.sh +34 -0
- package/scripts/brew/upgrade/brew-upgrade-autoupdate.sh +5 -0
- package/scripts/brew/upgrade/brew-upgrade-full-auto.sh +89 -0
- package/scripts/brew/upgrade/brew-upgrade-full.sh +159 -0
- package/scripts/docker/cleanup/docker-cleanup-manage.sh +163 -0
- package/scripts/docker/cleanup/docker-cleanup.cron +12 -0
- package/scripts/docker/cleanup/docker-cleanup.sh +280 -0
- package/scripts/docker/install/README.md +23 -0
- package/scripts/docker/install/docker-al2.sh +7 -0
- package/scripts/docker/install/docker-compose-al2.sh +15 -0
- package/scripts/gh/auth/auth.sh +12 -0
- package/scripts/gh/config/gh-config.sh +3 -0
- package/scripts/gh/gist/gh-gist-create.sh +29 -0
- package/scripts/gh/gist/gh-gist-delete.sh +1 -0
- package/scripts/gh/gist/gh-gist-edit.sh +8 -0
- package/scripts/gh/gpg-key/gh-gpg-key-add.sh +3 -0
- package/scripts/gh/install/install.sh +7 -0
- package/scripts/gh/label/gh-label-clone.sh +0 -0
- package/scripts/gh/label/gh-label-create.sh +0 -0
- package/scripts/gh/label/gh-label-delete.sh +0 -0
- package/scripts/gh/label/gh-label-edit.sh +0 -0
- package/scripts/gh/label/gh-label-list.sh +0 -0
- package/scripts/gh/secret/gh-secret-delete.sh +24 -0
- package/scripts/gh/secret/gh-secret-set.sh +70 -0
- package/scripts/gh/ssh-key/gh-ssh-key-add.sh +8 -0
- package/scripts/git/add/git-add.sh +3 -0
- package/scripts/git/auth/README.md +11 -0
- package/scripts/git/auth/https.sh +20 -0
- package/scripts/git/auth/ssh-mac.sh +41 -0
- package/scripts/git/branch-delete/git-branch-delete.sh +16 -0
- package/scripts/git/checkout/git-checkout-stash.sh +32 -0
- package/scripts/git/temp/git-temp-pull.sh +6 -0
- package/scripts/git/temp/git-temp-push.sh +5 -0
- package/scripts/install/fresh.zsh +34 -0
- package/scripts/install/full-install.zsh +193 -0
- package/scripts/linux/codedeploy/README.md +19 -0
- package/scripts/linux/codedeploy/linux-codedeploy-al2.sh +13 -0
- package/scripts/linux/codedeploy/linux-codedeploy-index.sh +16 -0
- package/scripts/linux/codedeploy/linux-codedeploy-ubuntu.sh +14 -0
- package/scripts/linux/coredns/README.md +17 -0
- package/scripts/linux/coredns/linux-coredns-al2.sh +29 -0
- package/scripts/linux/wifi/01-netconf.yaml +21 -0
- package/scripts/linux/wifi/wifi-ubuntu.sh +17 -0
- package/scripts/mac/dock-sort/mac-dock-sort.sh +87 -0
- package/scripts/mac/dropbox-ignore/mac-dropbox-ignore.sh +12 -0
- package/scripts/mac/sudo-askpass/mac-sudo-askpass.sh +50 -0
- package/scripts/mac/sudo-askpass/setup-sudo-password.sh +49 -0
- package/scripts/mac/upgrade/mac-upgrade.sh +21 -0
- package/scripts/mac/vpn/mac-vpn.sh +4 -0
- package/scripts/mcp/aws-mcp-wrapper.ps1 +97 -0
- package/scripts/mcp/aws-mcp-wrapper.sh +53 -0
- package/scripts/mcp/duplo-mcp-wrapper.sh +31 -0
- package/scripts/mcp/filesystem-mcp-wrapper.ps1 +43 -0
- package/scripts/mcp/filesystem-mcp-wrapper.sh +34 -0
- package/scripts/mcp/git-mcp-wrapper.ps1 +42 -0
- package/scripts/mcp/git-mcp-wrapper.sh +33 -0
- package/scripts/mcp/github-mcp-wrapper.ps1 +43 -0
- package/scripts/mcp/github-mcp-wrapper.sh +19 -0
- package/scripts/mcp/kubernetes-mcp-wrapper.ps1 +22 -0
- package/scripts/mcp/kubernetes-mcp-wrapper.sh +16 -0
- package/scripts/mcp/mcp-launcher.ps1 +56 -0
- package/scripts/mcp/mcp-launcher.sh +71 -0
- package/scripts/mcp/mongodb-mcp-wrapper.ps1 +26 -0
- package/scripts/mcp/mongodb-mcp-wrapper.sh +17 -0
- package/scripts/mcp/notion-mcp-wrapper.ps1 +23 -0
- package/scripts/mcp/notion-mcp-wrapper.sh +14 -0
- package/scripts/mcp/postgres-mcp-wrapper.ps1 +23 -0
- package/scripts/mcp/postgres-mcp-wrapper.sh +16 -0
- package/scripts/npm/ncu/npm-ncu.sh +24 -0
- package/scripts/npm/upgrade/npm-upgrade.sh +51 -0
- package/scripts/qmk/build_reviung41.sh +28 -0
- package/scripts/qmk/sync_unicorne.sh +44 -0
- package/scripts/sync/README.md +64 -0
- package/scripts/sync/config-common.zsh +882 -0
- package/scripts/sync/pull-configs.ps1 +33 -0
- package/scripts/sync/pull-configs.zsh +278 -0
- package/scripts/sync/push-configs.ps1 +91 -0
- package/scripts/sync/push-configs.zsh +384 -0
- package/shell/alias/alias-d.zsh +333 -0
- package/shell/alias/alias.zsh +36 -0
- package/shell/alias/categories/development.zsh +157 -0
- package/shell/alias/categories/environment.zsh +13 -0
- package/shell/alias/categories/git.zsh +40 -0
- package/shell/alias/categories/github-functions.zsh +459 -0
- package/shell/alias/categories/network.zsh +46 -0
- package/shell/alias/categories/path.zsh +46 -0
- package/shell/alias/categories/system.zsh +78 -0
- package/shell/alias/categories/wolfe-server.zsh +11 -0
- package/shell/powershell/Microsoft.PowerShell_profile.ps1 +208 -0
- package/shell/zsh/.p10k.zsh +1832 -0
- package/shell/zsh/.zshrc +87 -0
- package/shell/zsh/config/completion.zsh +31 -0
- package/shell/zsh/config/functions.zsh +31 -0
- package/shell/zsh/config/keybindings.zsh +13 -0
- package/shell/zsh/config/options.zsh +56 -0
- package/shell/zsh/config/plugins.zsh +83 -0
- package/shell/zsh/config/variables.zsh +191 -0
- package/shell/zsh/powerlevel10k.zsh-theme +83 -0
- package/shell/zsh/zsh-autosuggestions.zsh +871 -0
- package/ssh/config +46 -0
- package/ssh/config.duplo +21 -0
- package/ssh/config.mikpc +35 -0
- package/ssh/personal_signing.pub +1 -0
- package/templates/.envrc.example +34 -0
- package/templates/.envrc.quickstart +17 -0
- package/wezterm/wezterm.lua +249 -0
- package/wsl/.wslconfig +3 -0
- package/wsl/wsl.conf +18 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# PowerShell Profile — Debug Helpers for Game/GPU Troubleshooting
|
|
2
|
+
# Tracked in configs repo: shell/powershell/Microsoft.PowerShell_profile.ps1
|
|
3
|
+
|
|
4
|
+
# ── GPU & Display ────────────────────────────────────────────────────────────
|
|
5
|
+
|
|
6
|
+
function Get-GpuInfo {
|
|
7
|
+
<#
|
|
8
|
+
.SYNOPSIS
|
|
9
|
+
Dump GPU info: driver version, VRAM, adapter details.
|
|
10
|
+
#>
|
|
11
|
+
Write-Host "`n=== GPU Adapters ===" -ForegroundColor Cyan
|
|
12
|
+
Get-CimInstance Win32_VideoController | Format-List Name, DriverVersion, DriverDate, AdapterRAM, VideoModeDescription, Status
|
|
13
|
+
|
|
14
|
+
if (Get-Command nvidia-smi -ErrorAction SilentlyContinue) {
|
|
15
|
+
Write-Host "=== NVIDIA SMI ===" -ForegroundColor Cyan
|
|
16
|
+
nvidia-smi
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
Set-Alias gpu-info Get-GpuInfo
|
|
20
|
+
|
|
21
|
+
function Get-DxDiag {
|
|
22
|
+
<#
|
|
23
|
+
.SYNOPSIS
|
|
24
|
+
Run dxdiag and dump to temp file, then display.
|
|
25
|
+
#>
|
|
26
|
+
$outFile = "$env:TEMP\dxdiag_output.txt"
|
|
27
|
+
Write-Host "Running dxdiag (this takes a moment)..." -ForegroundColor Yellow
|
|
28
|
+
dxdiag /t $outFile
|
|
29
|
+
Start-Sleep -Seconds 8
|
|
30
|
+
if (Test-Path $outFile) {
|
|
31
|
+
Get-Content $outFile
|
|
32
|
+
} else {
|
|
33
|
+
Write-Warning "dxdiag output not ready yet. Check $outFile manually."
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
Set-Alias dx-diag Get-DxDiag
|
|
37
|
+
|
|
38
|
+
# ── Game Processes ───────────────────────────────────────────────────────────
|
|
39
|
+
|
|
40
|
+
function Get-GameProcesses {
|
|
41
|
+
<#
|
|
42
|
+
.SYNOPSIS
|
|
43
|
+
List running game-related processes (GPU-using, common game engines, Steam, ReShade).
|
|
44
|
+
#>
|
|
45
|
+
$patterns = @(
|
|
46
|
+
'steam', 'steamwebhelper', 'GameOverlayUI',
|
|
47
|
+
'reshade', 'd3d', 'vulkan',
|
|
48
|
+
'Unreal', 'Unity', 'CryEngine',
|
|
49
|
+
'nvidia', 'amd', 'radeon'
|
|
50
|
+
)
|
|
51
|
+
$regex = ($patterns | ForEach-Object { [regex]::Escape($_) }) -join '|'
|
|
52
|
+
|
|
53
|
+
Write-Host "`n=== Game/GPU Processes ===" -ForegroundColor Cyan
|
|
54
|
+
Get-Process | Where-Object {
|
|
55
|
+
$_.ProcessName -match $regex -or
|
|
56
|
+
$_.MainWindowTitle -ne ''
|
|
57
|
+
} | Sort-Object WorkingSet64 -Descending |
|
|
58
|
+
Format-Table ProcessName, Id,
|
|
59
|
+
@{Name='Memory(MB)'; Expression={[math]::Round($_.WorkingSet64/1MB, 1)}},
|
|
60
|
+
@{Name='CPU(s)'; Expression={[math]::Round($_.CPU, 1)}},
|
|
61
|
+
MainWindowTitle -AutoSize
|
|
62
|
+
}
|
|
63
|
+
Set-Alias game-procs Get-GameProcesses
|
|
64
|
+
|
|
65
|
+
# ── ReShade ──────────────────────────────────────────────────────────────────
|
|
66
|
+
|
|
67
|
+
function Find-ReshadeLogs {
|
|
68
|
+
<#
|
|
69
|
+
.SYNOPSIS
|
|
70
|
+
Find and display ReShade log files from common game directories.
|
|
71
|
+
#>
|
|
72
|
+
param(
|
|
73
|
+
[string]$GamePath
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
$searchPaths = @()
|
|
77
|
+
if ($GamePath) {
|
|
78
|
+
$searchPaths += $GamePath
|
|
79
|
+
}
|
|
80
|
+
# Common Steam library locations
|
|
81
|
+
$searchPaths += "C:\Program Files (x86)\Steam\steamapps\common"
|
|
82
|
+
$searchPaths += "D:\SteamLibrary\steamapps\common"
|
|
83
|
+
$searchPaths += "E:\SteamLibrary\steamapps\common"
|
|
84
|
+
|
|
85
|
+
Write-Host "`n=== ReShade Logs ===" -ForegroundColor Cyan
|
|
86
|
+
$found = $false
|
|
87
|
+
foreach ($path in $searchPaths) {
|
|
88
|
+
if (Test-Path $path) {
|
|
89
|
+
$logs = Get-ChildItem -Path $path -Recurse -Filter "ReShade.log" -ErrorAction SilentlyContinue |
|
|
90
|
+
Sort-Object LastWriteTime -Descending |
|
|
91
|
+
Select-Object -First 5
|
|
92
|
+
foreach ($log in $logs) {
|
|
93
|
+
$found = $true
|
|
94
|
+
Write-Host "`n--- $($log.FullName) ($(Get-Date $log.LastWriteTime -Format 'yyyy-MM-dd HH:mm')) ---" -ForegroundColor Yellow
|
|
95
|
+
Get-Content $log.FullName -Tail 50
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (-not $found) {
|
|
100
|
+
Write-Warning "No ReShade.log files found. Specify path: Find-ReshadeLogs -GamePath 'C:\path\to\game'"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
Set-Alias reshade-logs Find-ReshadeLogs
|
|
104
|
+
|
|
105
|
+
function Find-ReshadeShaders {
|
|
106
|
+
<#
|
|
107
|
+
.SYNOPSIS
|
|
108
|
+
List ReShade shader/texture directories and check for common issues.
|
|
109
|
+
#>
|
|
110
|
+
param(
|
|
111
|
+
[string]$GamePath
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
$searchPaths = @()
|
|
115
|
+
if ($GamePath) { $searchPaths += $GamePath }
|
|
116
|
+
$searchPaths += "C:\Program Files (x86)\Steam\steamapps\common"
|
|
117
|
+
|
|
118
|
+
Write-Host "`n=== ReShade Shader Directories ===" -ForegroundColor Cyan
|
|
119
|
+
foreach ($path in $searchPaths) {
|
|
120
|
+
if (Test-Path $path) {
|
|
121
|
+
Get-ChildItem -Path $path -Recurse -Directory -Filter "reshade-shaders" -ErrorAction SilentlyContinue |
|
|
122
|
+
ForEach-Object {
|
|
123
|
+
Write-Host "`n$($_.FullName)" -ForegroundColor Yellow
|
|
124
|
+
$fxFiles = (Get-ChildItem $_.FullName -Recurse -Filter "*.fx" -ErrorAction SilentlyContinue).Count
|
|
125
|
+
$texFiles = (Get-ChildItem $_.FullName -Recurse -Filter "*.png" -ErrorAction SilentlyContinue).Count
|
|
126
|
+
Write-Host " Shaders (.fx): $fxFiles | Textures (.png): $texFiles"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
Set-Alias reshade-shaders Find-ReshadeShaders
|
|
132
|
+
|
|
133
|
+
# ── Steam ────────────────────────────────────────────────────────────────────
|
|
134
|
+
|
|
135
|
+
function Get-SteamLogs {
|
|
136
|
+
<#
|
|
137
|
+
.SYNOPSIS
|
|
138
|
+
Show recent Steam log entries.
|
|
139
|
+
#>
|
|
140
|
+
$steamLog = "$env:ProgramFiles (x86)\Steam\logs"
|
|
141
|
+
if (-not (Test-Path $steamLog)) {
|
|
142
|
+
$steamLog = "C:\Program Files (x86)\Steam\logs"
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (Test-Path $steamLog) {
|
|
146
|
+
Write-Host "`n=== Recent Steam Logs ===" -ForegroundColor Cyan
|
|
147
|
+
Get-ChildItem $steamLog -Filter "*.txt" |
|
|
148
|
+
Sort-Object LastWriteTime -Descending |
|
|
149
|
+
Select-Object -First 5 |
|
|
150
|
+
ForEach-Object {
|
|
151
|
+
Write-Host "`n--- $($_.Name) ($(Get-Date $_.LastWriteTime -Format 'yyyy-MM-dd HH:mm')) ---" -ForegroundColor Yellow
|
|
152
|
+
Get-Content $_.FullName -Tail 30
|
|
153
|
+
}
|
|
154
|
+
} else {
|
|
155
|
+
Write-Warning "Steam logs directory not found at $steamLog"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
Set-Alias steam-logs Get-SteamLogs
|
|
159
|
+
|
|
160
|
+
# ── Windows Event Logs ───────────────────────────────────────────────────────
|
|
161
|
+
|
|
162
|
+
function Get-GameCrashLogs {
|
|
163
|
+
<#
|
|
164
|
+
.SYNOPSIS
|
|
165
|
+
Pull recent application crash/error events (game crashes, GPU resets, etc.).
|
|
166
|
+
#>
|
|
167
|
+
param(
|
|
168
|
+
[int]$Hours = 24
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
Write-Host "`n=== Application Errors (last ${Hours}h) ===" -ForegroundColor Cyan
|
|
172
|
+
$after = (Get-Date).AddHours(-$Hours)
|
|
173
|
+
Get-WinEvent -FilterHashtable @{
|
|
174
|
+
LogName = 'Application'
|
|
175
|
+
Level = @(1, 2, 3) # Critical, Error, Warning
|
|
176
|
+
StartTime = $after
|
|
177
|
+
} -MaxEvents 20 -ErrorAction SilentlyContinue |
|
|
178
|
+
Format-Table TimeCreated, Id, ProviderName,
|
|
179
|
+
@{Name='Message'; Expression={$_.Message.Substring(0, [Math]::Min(120, $_.Message.Length))}} -Wrap
|
|
180
|
+
|
|
181
|
+
Write-Host "`n=== System Errors (last ${Hours}h) ===" -ForegroundColor Cyan
|
|
182
|
+
Get-WinEvent -FilterHashtable @{
|
|
183
|
+
LogName = 'System'
|
|
184
|
+
Level = @(1, 2, 3)
|
|
185
|
+
StartTime = $after
|
|
186
|
+
} -MaxEvents 10 -ErrorAction SilentlyContinue |
|
|
187
|
+
Where-Object { $_.ProviderName -match 'display|nvlddmkm|dxgkrnl|video|gpu|kernel-power' } |
|
|
188
|
+
Format-Table TimeCreated, Id, ProviderName,
|
|
189
|
+
@{Name='Message'; Expression={$_.Message.Substring(0, [Math]::Min(120, $_.Message.Length))}} -Wrap
|
|
190
|
+
}
|
|
191
|
+
Set-Alias crash-logs Get-GameCrashLogs
|
|
192
|
+
|
|
193
|
+
# ── Quick Summary ────────────────────────────────────────────────────────────
|
|
194
|
+
|
|
195
|
+
function Get-DebugSummary {
|
|
196
|
+
<#
|
|
197
|
+
.SYNOPSIS
|
|
198
|
+
One-shot overview: GPU, running games, recent crashes.
|
|
199
|
+
#>
|
|
200
|
+
Get-GpuInfo
|
|
201
|
+
Get-GameProcesses
|
|
202
|
+
Get-GameCrashLogs -Hours 4
|
|
203
|
+
}
|
|
204
|
+
Set-Alias debug-summary Get-DebugSummary
|
|
205
|
+
|
|
206
|
+
if ([Environment]::UserInteractive -and -not $env:PSDEBUG_QUIET) {
|
|
207
|
+
Write-Host "Debug helpers loaded: gpu-info, dx-diag, game-procs, reshade-logs, reshade-shaders, steam-logs, crash-logs, debug-summary" -ForegroundColor DarkGray
|
|
208
|
+
}
|