Add PromptKit inspection commands

This commit is contained in:
2026-10-11 01:46:54 +00:00
parent eeeaca6c5e
commit f7174a078e
5 changed files with 720 additions and 1 deletions

View File

@@ -143,6 +143,13 @@ func promptKitDiagnostics(scope string, sources []configkit.SourceInfo, records
// Snapshot provider-owned slices before deferring their report to invocation.
sources = append([]configkit.SourceInfo(nil), sources...)
records = append([]configkit.Diagnostic(nil), records...)
for index := range records {
if records[index].Primary != nil {
primary := *records[index].Primary
records[index].Primary = &primary
}
records[index].Related = append([]configkit.Location(nil), records[index].Related...)
}
return []commandkit.Diagnostic{{
Severity: severity,
Write: func(writer io.Writer) error {