Documentation
¶
Overview ¶
Package scan orchestrates artifact discovery: walks the repo, dispatches adapters, and upserts artifacts/revisions/todos/criteria into the store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SourceTypeDisplayLabel ¶
SourceTypeDisplayLabel returns human-facing copy for `ds scan` summaries. Internal pipeline IDs remain markdown / openspec / adr in config and the DB; this layer is display-only.
Types ¶
type Result ¶
type Result struct {
Found map[string]int `json:"Found"`
SourcesBreakdown []SourceBreakdownRow `json:"sources_breakdown"`
New int `json:"New"`
Updated int `json:"Updated"`
Unchanged int `json:"Unchanged"`
Hints []ScanHint `json:"hints,omitempty"`
// contains filtered or unexported fields
}
Result holds scan summary counts and per-source breakdown for CLI output.
JSON shape (see ds scan --json):
- "Found": map of adapter/source pipeline name → count of successfully indexed artifacts
- "sources_breakdown": array of { source_type, label, count, formats }
- "New", "Updated", "Unchanged": revision outcomes
- "hints": optional; only when all adapters indexed zero artifacts AND at least one hint candidate exists. Empty candidate list omits the key (encoding/json omitempty on []ScanHint).
type ScanHint ¶
type ScanHint struct {
Path string `json:"path"`
SourceType string `json:"source_type,omitempty"`
SuggestCommand string `json:"suggest_command,omitempty"`
}
ScanHint is one recovery hint when a scan finds zero artifacts (`hints` in ds scan --json).
Click to show internal directories.
Click to hide internal directories.