Documentation
¶
Index ¶
- Variables
- func RegisterAllChunkers(factory *semantic.ChunkerFactory)
- func ResetGlobalsForTesting()
- func RootCmd() *cobra.Command
- func SetAPIURLForTesting(newURL string) func()
- func SetCollectionNameForTesting(newName string) func()
- func SetConfigForTesting(cfg *config.SemanticConfig) func()
- func SetEmbedderTypeForTesting(newType string) func()
- func SetStorageTypeForTesting(newType string) func()
- type ClarificationEntry
- type ClarificationFile
Constants ¶
This section is empty.
Variables ¶
var ( // Global output flags accessible to all commands GlobalJSONOutput bool GlobalMinOutput bool )
Functions ¶
func RegisterAllChunkers ¶ added in v1.6.0
func RegisterAllChunkers(factory *semantic.ChunkerFactory)
RegisterAllChunkers registers all supported language chunkers with the factory. This is a shared function used by both index and index-update commands.
func ResetGlobalsForTesting ¶ added in v1.6.0
func ResetGlobalsForTesting()
ResetGlobalsForTesting resets all global variables to their default values. Useful in TestMain or test teardown.
func SetAPIURLForTesting ¶ added in v1.6.0
func SetAPIURLForTesting(newURL string) func()
SetAPIURLForTesting sets the API URL and returns a cleanup function.
func SetCollectionNameForTesting ¶ added in v1.6.0
func SetCollectionNameForTesting(newName string) func()
SetCollectionNameForTesting sets the collection name and returns a cleanup function.
func SetConfigForTesting ¶ added in v1.6.0
func SetConfigForTesting(cfg *config.SemanticConfig) func()
SetConfigForTesting sets the loaded config and returns a cleanup function.
func SetEmbedderTypeForTesting ¶ added in v1.6.0
func SetEmbedderTypeForTesting(newType string) func()
SetEmbedderTypeForTesting sets the embedder type and returns a cleanup function.
func SetStorageTypeForTesting ¶ added in v1.6.0
func SetStorageTypeForTesting(newType string) func()
SetStorageTypeForTesting sets the storage type and returns a cleanup function that restores the original value. Use with defer in tests:
cleanup := commands.SetStorageTypeForTesting("qdrant")
defer cleanup()
Types ¶
type ClarificationEntry ¶ added in v1.6.0
type ClarificationEntry struct {
ID string `yaml:"id"`
CanonicalQuestion string `yaml:"canonical_question"`
CurrentAnswer string `yaml:"current_answer"`
ContextTags []string `yaml:"context_tags"`
SprintID string `yaml:"sprint_id"`
Occurrences int `yaml:"occurrences"`
Status string `yaml:"status"`
CreatedAt string `yaml:"created_at"`
UpdatedAt string `yaml:"updated_at"`
}
ClarificationEntry represents an entry in clarification-tracking.yaml
type ClarificationFile ¶ added in v1.6.0
type ClarificationFile struct {
Entries []ClarificationEntry `yaml:"entries"`
}
ClarificationFile represents the structure of clarification-tracking.yaml