commands

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 47 Imported by: 0

Documentation

Overview

Package commands implements all ds CLI subcommands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCaptureCmd

func NewCaptureCmd() *cobra.Command

NewCaptureCmd creates the ds capture command.

func NewConfigCmd

func NewConfigCmd() *cobra.Command

NewConfigCmd creates the ds config command group.

func NewContextCmd

func NewContextCmd() *cobra.Command

NewContextCmd creates the ds context command.

func NewCriteriaCmd

func NewCriteriaCmd() *cobra.Command

NewCriteriaCmd creates the ds criteria command.

func NewEvalCmd added in v0.1.0

func NewEvalCmd() *cobra.Command

NewEvalCmd creates the ds eval command.

func NewFindCmd

func NewFindCmd() *cobra.Command

NewFindCmd creates the ds find command.

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd creates the ds init command.

func NewLinkCmd

func NewLinkCmd() *cobra.Command

NewLinkCmd creates the ds link command.

func NewListCmd

func NewListCmd() *cobra.Command

NewListCmd creates the ds list command.

func NewMapCmd added in v1.0.0

func NewMapCmd() *cobra.Command

NewMapCmd creates the ds map command.

func NewResolveCmd

func NewResolveCmd() *cobra.Command

NewResolveCmd creates the ds resolve command.

func NewResumeCmd

func NewResumeCmd() *cobra.Command

NewResumeCmd creates the ds resume command.

func NewScanCmd

func NewScanCmd() *cobra.Command

NewScanCmd creates the ds scan command.

func NewShowCmd

func NewShowCmd() *cobra.Command

NewShowCmd creates the ds show command.

func NewStatusCmd

func NewStatusCmd() *cobra.Command

NewStatusCmd creates the ds status command.

func NewTLDRCmd added in v1.0.0

func NewTLDRCmd() *cobra.Command

NewTLDRCmd creates the ds tldr command.

func NewTagCmd

func NewTagCmd() *cobra.Command

NewTagCmd creates the ds tag command group.

func NewTaskCmd added in v1.0.0

func NewTaskCmd() *cobra.Command

NewTaskCmd creates the ds task command group.

func NewTodosCmd

func NewTodosCmd() *cobra.Command

NewTodosCmd creates the ds todos command.

func NewUntagCmd

func NewUntagCmd() *cobra.Command

NewUntagCmd creates the ds untag command.

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd creates the ds version subcommand with --json support.

Types

type FindGitReceipt added in v0.1.0

type FindGitReceipt struct {
	SHA          string   `json:"sha"`
	ShortSHA     string   `json:"short_sha"`
	CommittedAt  string   `json:"committed_at,omitempty"`
	Subject      string   `json:"subject"`
	Detail       string   `json:"detail,omitempty"`
	MatchedPaths []string `json:"matched_paths,omitempty"`
	RelatedPaths []string `json:"related_paths,omitempty"`
	MatchedTerms []string `json:"matched_terms,omitempty"`
	Signals      []string `json:"signals,omitempty"`
	Score        int      `json:"score,omitempty"`
}

type FindGitTrustContext added in v0.1.0

type FindGitTrustContext struct {
	Mode        string           `json:"mode"`
	PathCount   int              `json:"path_count"`
	CommitsRead int              `json:"commits_read"`
	Receipts    []FindGitReceipt `json:"receipts,omitempty"`
}

type FindGraphCandidate added in v0.1.0

type FindGraphCandidate struct {
	ID                string   `json:"id,omitempty"`
	ShortID           string   `json:"short_id,omitempty"`
	Path              string   `json:"path,omitempty"`
	SourcePath        string   `json:"source_path,omitempty"`
	Kind              string   `json:"kind,omitempty"`
	Subtype           string   `json:"subtype,omitempty"`
	Title             string   `json:"title,omitempty"`
	Role              string   `json:"role,omitempty"`
	RoleReason        string   `json:"role_reason,omitempty"`
	SeedPath          string   `json:"seed_path,omitempty"`
	AdmissionEdgeType string   `json:"admission_edge_type"`
	Confidence        float64  `json:"confidence"`
	Weight            float64  `json:"weight,omitempty"`
	SourceSignal      string   `json:"source_signal,omitempty"`
	CompanionDerived  bool     `json:"companion_derived,omitempty"`
	Receipt           string   `json:"receipt"`
	SupportReceipts   []string `json:"support_receipts,omitempty"`
}

type FindGraphDiagnostics added in v0.1.0

type FindGraphDiagnostics struct {
	Mode            string                 `json:"mode"`
	SeedCount       int                    `json:"seed_count"`
	CandidateCount  int                    `json:"candidate_count"`
	SuppressedCount int                    `json:"suppressed_count,omitempty"`
	Counts          map[string]int         `json:"counts,omitempty"`
	Candidates      []FindGraphCandidate   `json:"candidates,omitempty"`
	Suppressed      []FindGraphSuppression `json:"suppressed,omitempty"`
	Notes           []string               `json:"notes,omitempty"`
}

type FindGraphOutput added in v0.1.0

type FindGraphOutput struct {
	Query            string               `json:"query"`
	Retriever        string               `json:"retriever"`
	Mode             string               `json:"mode"`
	RankedResults    []FindResult         `json:"ranked_results"`
	GraphDiagnostics FindGraphDiagnostics `json:"graph_diagnostics"`
}

type FindGraphPackContext added in v0.1.0

type FindGraphPackContext struct {
	Mode            string               `json:"mode"`
	EvidenceMode    string               `json:"evidence_mode"`
	Title           string               `json:"title"`
	CandidateCount  int                  `json:"candidate_count"`
	SuppressedCount int                  `json:"suppressed_count,omitempty"`
	Counts          map[string]int       `json:"counts,omitempty"`
	Groups          []FindGraphPackGroup `json:"groups,omitempty"`
	Notes           []string             `json:"notes,omitempty"`
}

type FindGraphPackGroup added in v0.1.0

type FindGraphPackGroup struct {
	Role  string               `json:"role"`
	Title string               `json:"title"`
	Items []FindGraphCandidate `json:"items"`
}

type FindGraphSuppression added in v0.1.0

type FindGraphSuppression struct {
	Path       string  `json:"path,omitempty"`
	SeedPath   string  `json:"seed_path,omitempty"`
	EdgeType   string  `json:"edge_type,omitempty"`
	Confidence float64 `json:"confidence,omitempty"`
	Reason     string  `json:"reason"`
}

type FindPackOutput added in v0.1.0

type FindPackOutput struct {
	Query            string                  `json:"query"`
	Retriever        string                  `json:"retriever"`
	Mode             string                  `json:"mode"`
	ScoutMode        string                  `json:"scout_mode,omitempty"`
	ScoutWarnings    []string                `json:"scout_warnings,omitempty"`
	Summary          retrieval.PackSummary   `json:"summary,omitempty"`
	LocalLanguage    []string                `json:"local_language,omitempty"`
	Groups           []retrieval.PackGroup   `json:"groups"`
	ExcludedNoise    []retrieval.PackItem    `json:"excluded_noise,omitempty"`
	Counts           map[string]int          `json:"counts,omitempty"`
	RankedResults    []FindResult            `json:"ranked_results"`
	RelatedTests     *FindRelatedTestContext `json:"related_tests,omitempty"`
	GitTrust         *FindGitTrustContext    `json:"git_trust,omitempty"`
	GraphContext     *FindGraphPackContext   `json:"graph_context,omitempty"`
	GraphDiagnostics *FindGraphDiagnostics   `json:"graph_diagnostics,omitempty"`
}

type FindRelatedTestContext added in v1.0.0

type FindRelatedTestContext struct {
	Mode  string                   `json:"mode"`
	Count int                      `json:"count"`
	Items []FindRelatedTestReceipt `json:"items,omitempty"`
}

type FindRelatedTestReceipt added in v1.0.0

type FindRelatedTestReceipt struct {
	Path        string   `json:"path"`
	Kind        string   `json:"kind,omitempty"`
	Score       float64  `json:"score,omitempty"`
	Reasons     []string `json:"reasons,omitempty"`
	SourcePaths []string `json:"source_paths,omitempty"`
	SourceRole  string   `json:"source_role,omitempty"`
	TestNames   []string `json:"test_names,omitempty"`
}

type FindResult added in v0.1.0

type FindResult struct {
	ID             string            `json:"ID"`
	RepoID         string            `json:"RepoID"`
	ShortID        string            `json:"ShortID"`
	Path           string            `json:"path,omitempty"`
	Kind           string            `json:"Kind"`
	Subtype        string            `json:"Subtype"`
	Title          string            `json:"Title"`
	Status         string            `json:"Status"`
	CurrentRevID   string            `json:"CurrentRevID"`
	CreatedAt      string            `json:"CreatedAt"`
	UpdatedAt      string            `json:"UpdatedAt"`
	LastObservedAt string            `json:"LastObservedAt"`
	SourcePath     string            `json:"source_path,omitempty"`
	Retriever      string            `json:"retriever"`
	AuthorityCues  []string          `json:"authority_cues,omitempty"`
	Reasons        []string          `json:"reasons,omitempty"`
	Metadata       map[string]string `json:"metadata,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL