epicapi

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 9 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 {
	ID       string `param:"id" json:"-"`
	NotReady bool   `json:"not_ready,omitempty"`
}

ConfirmEpicRequest is the request body for confirming an epic.

func (ConfirmEpicRequest) Validate added in v0.1.2

func (r ConfirmEpicRequest) Validate() error

type CreateEpicRequest

type CreateEpicRequest struct {
	RepoID         string `param:"repo_id" json:"-"`
	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.

func (CreateEpicRequest) Validate added in v0.1.2

func (r CreateEpicRequest) Validate() error

type EpicIDRequest added in v0.1.2

type EpicIDRequest struct {
	ID string `param:"id" json:"-"`
}

EpicIDRequest captures the :id path parameter.

func (EpicIDRequest) Validate added in v0.1.2

func (r EpicIDRequest) Validate() error

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

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

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

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 — queues a change request for the epic plan. The epic transitions back to planning status and a worker will pick it up with the feedback as context.

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 RepoIDRequest added in v0.1.2

type RepoIDRequest struct {
	RepoID string `param:"repo_id" json:"-"`
}

RepoIDRequest captures the :repo_id path parameter.

func (RepoIDRequest) Validate added in v0.1.2

func (r RepoIDRequest) Validate() error

type SessionMessageRequest

type SessionMessageRequest struct {
	ID      string `param:"id" json:"-"`
	Message string `json:"message"`
}

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

func (SessionMessageRequest) Validate added in v0.1.2

func (r SessionMessageRequest) Validate() error

type StartPlanningRequest

type StartPlanningRequest struct {
	ID     string `param:"id" json:"-"`
	Prompt string `json:"prompt"`
}

StartPlanningRequest is the request body for starting a planning session.

func (StartPlanningRequest) Validate added in v0.1.2

func (r StartPlanningRequest) Validate() error

type UpdateProposedTasksRequest

type UpdateProposedTasksRequest struct {
	ID    string              `param:"id" json:"-"`
	Tasks []epic.ProposedTask `json:"tasks"`
}

UpdateProposedTasksRequest is the request body for updating proposed tasks.

func (UpdateProposedTasksRequest) Validate added in v0.1.2

func (r UpdateProposedTasksRequest) Validate() error

Jump to

Keyboard shortcuts

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