types

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationsMeta

type AnnotationsMeta struct {
	Label  string `yaml:"label"`
	Symbol string `yaml:"symbol"`
	Desc   string `yaml:"description"`
}

type BatchTaskSuggestion

type BatchTaskSuggestion struct {
	TaskAnalyses []TaskAnalysisResult `json:"task_analyses"`
}

type Config

type Config struct {
	LLM         LLMConfig                  `yaml:"llm"`
	Tags        map[string]TagsMeta        `yaml:"tags"` // <== flattened here
	Settings    Settings                   `yaml:"settings"`
	Annotations map[string]AnnotationsMeta `yaml:"annotations"`
	Filters     FiltersConfig              `yaml:"filters"`
}

type FiltersConfig

type FiltersConfig struct {
	TagFilterMode         string   `yaml:"tag_filter_mode"`
	TagFilterTags         []string `yaml:"tag_filter_tags"`
	ProjectFilterMode     string   `yaml:"project_filter_mode"`
	ProjectFilterProjects []string `yaml:"project_filter_projects"`
}

type LLMConfig

type LLMConfig struct {
	Provider string `yaml:"provider"` // "openai" or "deepseek"
	APIKey   string `yaml:"api_key"`
	Model    string `yaml:"model"`
	BaseURL  string `yaml:"base_url"`
}

type Settings

type Settings struct {
	Debug                   bool   `yaml:"debug"`
	EnableLLM               bool   `yaml:"enable_llm"`
	SplitTasks              bool   `yaml:"split_tasks"`
	AutoImportTags          bool   `yaml:"auto_import_tags"`
	AutoImportProjects      bool   `yaml:"auto_import_projects"`
	EnableLowercase         bool   `yaml:"enable_lowercase"`
	EnableTagging           bool   `yaml:"enable_tagging"`
	EnableAnnotations       bool   `yaml:"enable_annotations"`
	EnableGoals             bool   `yaml:"enable_goals"`
	GoalProjectName         string `yaml:"goal_project_name"`
	TaskImportLimit         int    `yaml:"task_import_limit"`
	TaskProcessingBatchSize int    `yaml:"task_processing_batch_size"`
	GuidingQuestionAmount   int    `yaml:"guiding_question_amount"`
}

type TWTime

type TWTime time.Time

func (TWTime) MarshalJSON

func (t TWTime) MarshalJSON() ([]byte, error)

func (TWTime) Time

func (t TWTime) Time() time.Time

func (*TWTime) UnmarshalJSON

func (t *TWTime) UnmarshalJSON(b []byte) error

type TagsMeta

type TagsMeta struct {
	Desc          string  `yaml:"desc"`
	UrgencyFactor float64 `yaml:"urgency_factor"`
}

type Task

type Task struct {
	ID          int      `json:"id,omitempty"`
	UUID        string   `json:"uuid"`
	Description string   `json:"description"`
	Status      string   `json:"status"`
	Priority    string   `json:"priority,omitempty"`
	Project     string   `json:"project,omitempty"`
	Tags        []string `json:"tags,omitempty"`
	Due         *string  `json:"due,omitempty"`
	Entry       TWTime   `json:"entry"`
	Modified    TWTime   `json:"modified"`
	Urgency     float64  `json:"urgency,omitempty"`
	Skipped     int      `json:"skipped"`
}

type TaskAnalysisResult

type TaskAnalysisResult struct {
	TaskIndex      int               `json:"task_index"`
	SuggestedTags  []string          `json:"suggested_tags"`
	GoalAlignment  string            `json:"goal_alignment"`
	Project        string            `json:"project"`
	RefinedTask    string            `json:"refined_task"`
	AdditionalInfo map[string]string `json:"additional_infos"`
	Subtasks       []string          `json:"subtasks"`
}

type TaskSuggestion

type TaskSuggestion struct {
	SuggestedTags  []string          `json:"suggested_tags"`
	GoalAlignment  string            `json:"goal_alignment"`
	Project        string            `json:"project"`
	RefinedTask    string            `json:"refined_task"`
	AdditionalInfo map[string]string `json:"additional_infos"`
	Subtasks       []string          `json:"subtasks"`
}

Jump to

Keyboard shortcuts

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