{"modulePath":"github.com/memcode-ai/memcode","version":"v0.56.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package objectives\n\nPackage objectives manages the human-authored goals that give the engine its sense of direction (\"what we're trying to do\"). In v1 objectives are created by people, never inferred — that avoids stale or hallucinated goals.\n\n## Constants\n\n```go\nconst (\n\tStatusProposed  = \"proposed\"\n\tStatusActive    = \"active\"\n\tStatusBlocked   = \"blocked\"\n\tStatusDone      = \"done\"\n\tStatusAbandoned = \"abandoned\"\n)\n```\nStatus values for an objective.\n\n## Types\n\n```go\ntype Objective = store.Objective\n```\nObjective is re-exported from store for callers that only need this package.\n\n```go\ntype Service struct {\n\t// contains filtered or unexported fields\n}\n```\nService is the objective use-case layer over a Store.\n\n```go\nfunc New(s store.Store) *Service\n```\nNew returns a Service backed by s.\n\n```go\nfunc (svc *Service) Add(ctx context.Context, title string, priority int, parentID string) (Objective, error)\n```\nAdd creates a new objective. priority defaults sensibly; parent may be empty.\n\n```go\nfunc (svc *Service) Current(ctx context.Context) ([]Objective, error)\n```\nCurrent returns the objectives in flight (active or blocked).\n\n```go\nfunc (svc *Service) List(ctx context.Context) ([]Objective, error)\n```\nList returns all objectives, highest priority first.\n\n```go\nfunc (svc *Service) SetStatus(ctx context.Context, id, status string) (Objective, error)\n```\nSetStatus transitions an objective to a new status.\n\n","path":"github.com/memcode-ai/memcode/internal/objectives","name":"objectives","synopsis":"Package objectives manages the human-authored goals that give the engine its sense of direction (\"what we're trying to do\").","isRedistributable":true}
