File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ import (
2323
2424// Resource is a discovered resource returned by a Resolver.
2525type Resource struct {
26- ID string `json:"id"` // Full @ reference (e.g. "@src/main.go")
27- Type string `json:"type"` // "file", "session", "skill"
28- Label string `json:"label"` // Display label (e.g. "src/main.go")
29- Detail string `json:"detail"` // One-line description (e.g. "Go source, 142 lines")
30- Content string `json:"-"` // Full content (not sent in search results)
26+ ID string `json:"id"` // Full @ reference (e.g. "@src/main.go")
27+ Type string `json:"type"` // "file", "session", "skill"
28+ Label string `json:"label"` // Display label (e.g. "src/main.go")
29+ Detail string `json:"detail"` // One-line description (e.g. "Go source, 142 lines")
30+ Content string `json:"-"` // Full content (not sent in search results)
3131}
3232
3333// A Resolver discovers and loads resources by type.
Original file line number Diff line number Diff line change @@ -553,11 +553,11 @@ type fakeFileInfo struct {
553553}
554554
555555func (f fakeFileInfo ) Name () string { return "fake" }
556- func (f fakeFileInfo ) Size () int64 { return f .size }
557- func (f fakeFileInfo ) Mode () os.FileMode { return 0644 }
558- func (f fakeFileInfo ) ModTime () time.Time { return time .Now () }
559- func (f fakeFileInfo ) IsDir () bool { return false }
560- func (f fakeFileInfo ) Sys () interface {} { return nil }
556+ func (f fakeFileInfo ) Size () int64 { return f .size }
557+ func (f fakeFileInfo ) Mode () os.FileMode { return 0644 }
558+ func (f fakeFileInfo ) ModTime () time.Time { return time .Now () }
559+ func (f fakeFileInfo ) IsDir () bool { return false }
560+ func (f fakeFileInfo ) Sys () interface {} { return nil }
561561
562562// ── formatDuration Tests ───────────────────────────────────────────────
563563
You can’t perform that action at this time.
0 commit comments