store

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSkillStoreHandlers

func InitSkillStoreHandlers(api huma.API, store *SkillStore)

InitSkillStoreHandlers registers all endpoints for skill bundles and skills.

Types

type BuiltInSkills

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

func NewBuiltInSkills

func NewBuiltInSkills(
	ctx context.Context,
	overlayBaseDir string,
	maxSnapshotAge time.Duration,
	opts ...BuiltInSkillsOption,
) (b *BuiltInSkills, err error)

func (*BuiltInSkills) Close

func (b *BuiltInSkills) Close() error

func (*BuiltInSkills) GetBuiltInSkill

func (b *BuiltInSkills) GetBuiltInSkill(
	ctx context.Context,
	bundleID bundleitemutils.BundleID,
	slug spec.SkillSlug,
) (spec.Skill, error)

func (*BuiltInSkills) GetBuiltInSkillBundle

func (b *BuiltInSkills) GetBuiltInSkillBundle(
	ctx context.Context,
	id bundleitemutils.BundleID,
) (spec.SkillBundle, error)

func (*BuiltInSkills) ListBuiltInSkills

func (b *BuiltInSkills) ListBuiltInSkills(ctx context.Context) (
	bundles map[bundleitemutils.BundleID]spec.SkillBundle,
	skills map[bundleitemutils.BundleID]map[spec.SkillSlug]spec.Skill,
	err error,
)

func (*BuiltInSkills) SetSkillBundleEnabled

func (b *BuiltInSkills) SetSkillBundleEnabled(
	ctx context.Context,
	id bundleitemutils.BundleID,
	enabled bool,
) (spec.SkillBundle, error)

func (*BuiltInSkills) SetSkillEnabled

func (b *BuiltInSkills) SetSkillEnabled(
	ctx context.Context,
	bundleID bundleitemutils.BundleID,
	slug spec.SkillSlug,
	enabled bool,
) (spec.Skill, error)

type BuiltInSkillsOption

type BuiltInSkillsOption func(*BuiltInSkills)

func WithBuiltInSkillsFS

func WithBuiltInSkillsFS(fsys fs.FS, root string) BuiltInSkillsOption

type SkillStore

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

SkillStore provides CRUD and listing for Skill bundles and Skills (single JSON file).

func NewSkillStore

func NewSkillStore(baseDir string, opts ...SkillStoreOption) (*SkillStore, error)

func (*SkillStore) Close

func (s *SkillStore) Close()

func (*SkillStore) CloseSkillSession

func (s *SkillStore) CloseSkillSession(
	ctx context.Context,
	req *spec.CloseSkillSessionRequest,
) (resp *spec.CloseSkillSessionResponse, err error)

func (*SkillStore) CreateSkillSession

func (*SkillStore) DeleteSkill

func (*SkillStore) DeleteSkillBundle

func (*SkillStore) GetSkill

func (*SkillStore) GetSkillsPrompt added in v0.0.95

func (s *SkillStore) GetSkillsPrompt(
	ctx context.Context,
	req *spec.GetSkillsPromptRequest,
) (resp *spec.GetSkillsPromptResponse, err error)

func (*SkillStore) InvokeSkillTool added in v0.0.82

func (*SkillStore) ListRuntimeSkills

func (s *SkillStore) ListRuntimeSkills(
	ctx context.Context,
	req *spec.ListRuntimeSkillsRequest,
) (resp *spec.ListRuntimeSkillsResponse, err error)

func (*SkillStore) ListSkillBundles

func (*SkillStore) ListSkills

func (*SkillStore) PatchSkill

func (*SkillStore) PatchSkillBundle

func (*SkillStore) PutSkill

func (*SkillStore) PutSkillArtifact added in v0.2.2

func (s *SkillStore) PutSkillArtifact(
	ctx context.Context,
	req *spec.PutSkillArtifactRequest,
) (resp *spec.PutSkillArtifactResponse, err error)

func (*SkillStore) PutSkillBundle

func (*SkillStore) RenderSkill added in v0.2.1

type SkillStoreOption

type SkillStoreOption func(*skillStoreOptions) error

func WithEmbeddedHydrateDir

func WithEmbeddedHydrateDir(dir string) SkillStoreOption

func WithRuntime

func WithRuntime(rt *agentskills.Runtime) SkillStoreOption

Jump to

Keyboard shortcuts

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