skills

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package skills provides API types and handlers for the dev.toolhive/skills extension endpoints (THV-0029).

Package skills provides API types and handlers for the dev.toolhive/skills extension endpoints (THV-0029).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router(svc service.RegistryService) http.Handler

Router returns an HTTP handler for the dev.toolhive/skills extension routes.

Types

type ListSkillsQuery

type ListSkillsQuery struct {
	Search string
	Status string // comma-separated for IN filtering, e.g. "active,deprecated"
	Limit  int    // default 50, max 100
	Cursor string
}

ListSkillsQuery holds parsed query parameters for GET /skills (list).

type Routes

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

Routes holds dependencies for skills extension handlers.

type SkillListMetadata

type SkillListMetadata struct {
	Count      int    `json:"count"`
	NextCursor string `json:"nextCursor,omitempty"`
}

SkillListMetadata is the metadata object in list responses.

type SkillListResponse

type SkillListResponse struct {
	Skills   []thvregistry.Skill `json:"skills"`
	Metadata SkillListMetadata   `json:"metadata"`
}

SkillListResponse is the response for GET /skills (list).

Jump to

Keyboard shortcuts

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