epicapi

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmEpicRequest

type ConfirmEpicRequest struct {
	NotReady bool `json:"not_ready,omitempty"`
}

ConfirmEpicRequest is the request body for confirming an epic.

type CreateEpicRequest

type CreateEpicRequest struct {
	Title          string `json:"title"`
	Description    string `json:"description"`
	PlanningPrompt string `json:"planning_prompt,omitempty"`
	Model          string `json:"model,omitempty"`
}

CreateEpicRequest is the request body for creating an epic.

type EpicTaskSummary

type EpicTaskSummary struct {
	ID     string `json:"id"`
	Title  string `json:"title"`
	Status string `json:"status"`
}

EpicTaskSummary contains the status summary for a task in an epic.

type HTTPHandler

type HTTPHandler struct {
	// contains filtered or unexported fields
}

HTTPHandler handles epic HTTP requests.

func NewHTTPHandler

func NewHTTPHandler(store *epic.Store, repoStore *repo.Store, taskStore *task.Store, settingService *setting.Service) *HTTPHandler

NewHTTPHandler creates a new HTTPHandler.

func (*HTTPHandler) CloseEpic

func (h *HTTPHandler) CloseEpic(c echo.Context) error

CloseEpic handles POST /epics/:id/close Closes the epic and bulk-closes all non-terminal child tasks.

func (*HTTPHandler) ConfirmEpic

func (h *HTTPHandler) ConfirmEpic(c echo.Context) error

ConfirmEpic handles POST /epics/:id/confirm

func (*HTTPHandler) CreateEpic

func (h *HTTPHandler) CreateEpic(c echo.Context) error

CreateEpic handles POST /repos/:repo_id/epics

func (*HTTPHandler) DeleteEpic

func (h *HTTPHandler) DeleteEpic(c echo.Context) error

DeleteEpic handles DELETE /epics/:id Deletes the epic and bulk-deletes all of its child tasks.

func (*HTTPHandler) GetEpic

func (h *HTTPHandler) GetEpic(c echo.Context) error

GetEpic handles GET /epics/:id

func (*HTTPHandler) GetEpicTasks

func (h *HTTPHandler) GetEpicTasks(c echo.Context) error

GetEpicTasks handles GET /epics/:id/tasks Returns the status of all tasks in the epic.

func (*HTTPHandler) ListEpicsByRepo

func (h *HTTPHandler) ListEpicsByRepo(c echo.Context) error

ListEpicsByRepo handles GET /repos/:repo_id/epics

func (*HTTPHandler) Register

func (h *HTTPHandler) Register(g *echo.Group)

Register adds the epic endpoints to the provided Echo router group.

func (*HTTPHandler) SendSessionMessage

func (h *HTTPHandler) SendSessionMessage(c echo.Context) error

SendSessionMessage handles POST /epics/:id/session-message

func (*HTTPHandler) StartPlanning

func (h *HTTPHandler) StartPlanning(c echo.Context) error

StartPlanning handles POST /epics/:id/plan

func (*HTTPHandler) UpdateProposedTasks

func (h *HTTPHandler) UpdateProposedTasks(c echo.Context) error

UpdateProposedTasks handles PUT /epics/:id/proposed-tasks

type SessionMessageRequest

type SessionMessageRequest struct {
	Message string `json:"message"`
}

SessionMessageRequest is the request body for sending a message in a planning session.

type StartPlanningRequest

type StartPlanningRequest struct {
	Prompt string `json:"prompt"`
}

StartPlanningRequest is the request body for starting a planning session.

type UpdateProposedTasksRequest

type UpdateProposedTasksRequest struct {
	Tasks []epic.ProposedTask `json:"tasks"`
}

UpdateProposedTasksRequest is the request body for updating proposed tasks.

Jump to

Keyboard shortcuts

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