aggregate

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrArtifactSkillSelectionRequired = errors.New(
	"artifact skill selection is required",
)

Functions

func CollectionCatalogID

func CollectionCatalogID(
	ref collection.CollectionRef,
) (skillRuntime.CatalogID, error)

Types

type ArtifactSkillFilter

type ArtifactSkillFilter struct {
	Types          []string               `json:"types,omitempty"`
	Inserts        []document.SkillInsert `json:"inserts,omitempty"`
	NamePrefix     string                 `json:"namePrefix,omitempty"`
	LocationPrefix string                 `json:"locationPrefix,omitempty"`
	AllowArtifacts []artifact.ArtifactRef `json:"allowArtifacts,omitempty"`

	SessionID agentskillsRuntimeSpec.SessionID     `json:"sessionID,omitempty"`
	Activity  agentskillsRuntimeSpec.SkillActivity `json:"activity,omitempty"`
}

ArtifactSkillFilter is an internal Artifact Store to Agent Skills bridge filter. It is not a Wails transport API.

type ArtifactSkillSummary

type ArtifactSkillSummary struct {
	Artifact     artifact.ArtifactRef
	IsEnabled    bool
	Insert       document.SkillInsert
	HasArguments bool
	HasResources bool
}

ArtifactSkillSummary is the runtime-derived summary used by durable Artifact selection validation. It contains no native path or process-local SkillDef identity.

type CatalogSource

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

CatalogSource adapts Artifact Store Collections to the runtime-owned CatalogSource contract. Runtime treats CatalogID as an opaque string.

func NewCatalogSource

func NewCatalogSource(
	router *skillStore.ArtifactRouter,
) (*CatalogSource, error)

func (*CatalogSource) Skills

type Service

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

Service is an internal Artifact Store to Agent Skills bridge.

Wails runtime APIs belong to SkillRuntimeWrapper. This service exists only where backend callers hold ArtifactRef identities and need them translated into runtime-owned SkillDef identities.

func New

func New(
	resolver *skillStore.ArtifactRouter,
	runtimeService *skillRuntime.Service,
) (*Service, error)

func (*Service) Close

func (s *Service) Close()

func (*Service) DescribeArtifactSkill

func (s *Service) DescribeArtifactSkill(
	ctx context.Context,
	ref artifact.ArtifactRef,
) (ArtifactSkillSummary, error)

func (*Service) GetArtifactSkillsPrompt

func (s *Service) GetArtifactSkillsPrompt(
	ctx context.Context,
	filter ArtifactSkillFilter,
) (string, error)

GetArtifactSkillsPrompt resolves Artifact Store allow-list entries before delegating prompt generation to the Agent Skills runtime.

An empty AllowArtifacts list intentionally preserves native runtime semantics: all currently registered Skills are eligible.

func (*Service) ListArtifactSkillRefs

func (s *Service) ListArtifactSkillRefs(
	ctx context.Context,
	filter ArtifactSkillFilter,
) ([]artifact.ArtifactRef, error)

ListArtifactSkillRefs returns Artifact identities corresponding to the selected runtime view. An explicit Artifact allow-list is required because the Agent Skills runtime deliberately does not know Artifact identities.

func (*Service) RunScriptsEnabled

func (s *Service) RunScriptsEnabled() bool

Jump to

Keyboard shortcuts

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