Documentation
¶
Index ¶
- type CreateGoalArgs
- type CreateGoalResult
- type GetGoalContentArgs
- type GetGoalContentResult
- type Goal
- type GoalInfo
- type GoalManager
- func (gm *GoalManager) CreateGoal(horizon Horizon, period string, title string) error
- func (gm *GoalManager) GetGoalPath(horizon Horizon, period string, goalID string) string
- func (gm *GoalManager) GetGoalPathForHorizon(horizon Horizon, period string, title string) string
- func (gm *GoalManager) GetHorizonPath(horizon Horizon) string
- func (gm *GoalManager) ListGoals() (map[Horizon]map[string][]string, error)
- func (gm *GoalManager) ListGoalsByHorizon(horizon Horizon) (map[string][]string, error)
- type Horizon
- type ListGoalsArgs
- type ListGoalsResult
- type MCPServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateGoalArgs ¶
type CreateGoalResult ¶
type GetGoalContentArgs ¶
type GetGoalContentResult ¶
type Goal ¶
type Goal struct {
ID string // Unique identifier for the goal
Title string
Content string
CreatedAt time.Time
UpdatedAt time.Time
Project string // This helps organize goals under projects
}
Goal represents a single goal with its metadata and content
type GoalInfo ¶
type GoalInfo struct {
Title string `json:"title" jsonschema:"goal title"`
Horizon string `json:"horizon" jsonschema:"time horizon (monthly, quarterly, yearly, short-term, long-term)"`
Period string `json:"period" jsonschema:"time period (e.g., 2026-05, 2026-Q2, 2026, 2025-2028)"`
Path string `json:"path" jsonschema:"file path to the goal"`
}
type GoalManager ¶
type GoalManager struct {
RootDir string
}
GoalManager manages all goal operations
func NewGoalManager ¶
func NewGoalManager(rootDir string) *GoalManager
NewGoalManager creates a new GoalManager instance
func (*GoalManager) CreateGoal ¶
func (gm *GoalManager) CreateGoal(horizon Horizon, period string, title string) error
CreateGoal creates a new goal file with the given title
func (*GoalManager) GetGoalPath ¶
func (gm *GoalManager) GetGoalPath(horizon Horizon, period string, goalID string) string
GetGoalPath returns the path for a goal file within a horizons directory
func (*GoalManager) GetGoalPathForHorizon ¶
func (gm *GoalManager) GetGoalPathForHorizon(horizon Horizon, period string, title string) string
GetGoalPathForHorizon returns the file path for a goal at a given horizon, period, and title
func (*GoalManager) GetHorizonPath ¶
func (gm *GoalManager) GetHorizonPath(horizon Horizon) string
GetHorizonPath returns the path for a specific horizon
func (*GoalManager) ListGoals ¶
func (gm *GoalManager) ListGoals() (map[Horizon]map[string][]string, error)
ListGoals returns all goals organized by horizon and period
func (*GoalManager) ListGoalsByHorizon ¶
func (gm *GoalManager) ListGoalsByHorizon(horizon Horizon) (map[string][]string, error)
ListGoalsByHorizon returns all goals for a specific horizon If a file's title has changed, the file is renamed to match
type ListGoalsArgs ¶
type ListGoalsArgs struct {
Horizon string `json:"horizon,omitempty" jsonschema:"optional horizon to filter (monthly, quarterly, yearly, short-term, long-term)"`
}
type ListGoalsResult ¶
type MCPServer ¶
type MCPServer struct {
// contains filtered or unexported fields
}
MCPServer wraps the MCP server with goal operations
func NewMCPServer ¶
func NewMCPServer(manager *GoalManager) *MCPServer
NewMCPServer creates a new MCP server for goal operations