catalog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package catalog implements the authenticated three-interface skill gateway. It never interprets a downloaded skill as executable local configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(o Options) (*Client, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string) (Skill, error)

func (*Client) Identity

func (c *Client) Identity() string

Identity is the opaque partition identifier for this gateway and credential. It binds local plans/caches to one authentication context without exporting the bearer token. Rotation deliberately creates a new context.

func (*Client) Invoke

func (c *Client) Invoke(ctx context.Context, id, operation, revision string, args map[string]any) (any, error)

func (*Client) Search

func (c *Client) Search(ctx context.Context, query string, limit int, cursor string) (SearchResult, error)

type Operation

type Operation struct {
	ID           string `json:"id"`
	Description  string `json:"description"`
	InputSchema  any    `json:"inputSchema"`
	OutputSchema any    `json:"outputSchema,omitempty"`
	Annotations  any    `json:"annotations,omitempty"`
}

type Options

type Options struct {
	BaseURL, Token, CacheDir string
	Client                   *http.Client
	MaxBytes                 int64
}

type SearchResult

type SearchResult struct {
	SchemaVersion int       `json:"schema_version"`
	VisibilityID  string    `json:"visibility_id"`
	Items         []Summary `json:"items"`
	NextCursor    *string   `json:"next_cursor"`
}

type Skill

type Skill struct {
	SchemaVersion int         `json:"schema_version"`
	VisibilityID  string      `json:"visibility_id"`
	ID            string      `json:"id"`
	Revision      string      `json:"revision"`
	Name          string      `json:"name"`
	Description   string      `json:"description"`
	Operations    []Operation `json:"operations"`
}

type Summary

type Summary struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Revision    string `json:"revision"`
}

Jump to

Keyboard shortcuts

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