app

package
v0.0.0-...-58c1890 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultExternalSkillsCLIVersion = "1.5.5"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalSkillsInstallOptions

type ExternalSkillsInstallOptions struct {
	Source    string
	Version   string
	Global    bool
	Agents    []string
	Skills    []string
	List      bool
	Yes       bool
	Copy      bool
	All       bool
	FullDepth bool
	Stdout    io.Writer
	Stderr    io.Writer
}

type ExternalSkillsInvocation

type ExternalSkillsInvocation struct {
	Command string
	Args    []string
	Stdout  io.Writer
	Stderr  io.Writer
}

type ExternalSkillsListOptions

type ExternalSkillsListOptions struct {
	Version string
	Global  bool
	Agents  []string
	JSON    bool
	Stdout  io.Writer
	Stderr  io.Writer
}

type ExternalSkillsRemoveOptions

type ExternalSkillsRemoveOptions struct {
	Version string
	Skills  []string
	Global  bool
	Agents  []string
	Filter  []string
	Yes     bool
	All     bool
	Stdout  io.Writer
	Stderr  io.Writer
}

type ExternalSkillsRunner

type ExternalSkillsRunner interface {
	Run(ctx context.Context, invocation ExternalSkillsInvocation) error
}

type ExternalSkillsUpdateOptions

type ExternalSkillsUpdateOptions struct {
	Version string
	Skills  []string
	Global  bool
	Project bool
	Yes     bool
	Stdout  io.Writer
	Stderr  io.Writer
}

type InitOptions

type InitOptions struct {
	ProjectName           string
	Template              string
	Platform              string
	PlatformExplicit      bool
	Runtime               string
	RuntimeExplicit       bool
	TypeScript            bool
	RuntimePackage        bool
	RuntimePackageVersion string
	OutputDir             string // empty → ./<project-name> under cwd
	Force                 bool
	Extras                bool
	ClaudeExtendedHooks   bool
}

InitOptions is parsed CLI state for plugin-kit-ai init.

type InitRunner

type InitRunner struct{}

InitRunner runs plugin-kit-ai init.

func (InitRunner) Run

func (InitRunner) Run(opts InitOptions) (outDir string, err error)

Run validates options, writes scaffold files, and returns the absolute output directory.

type InstallRunner

type InstallRunner struct {
	Installer PluginInstaller
}

InstallRunner runs plugin-kit-ai install behind the CLI.

func NewInstallRunner

func NewInstallRunner(inst PluginInstaller) *InstallRunner

NewInstallRunner returns a runner. If inst is nil, plugininstall.Install is used.

func (*InstallRunner) Install

Install executes installation with the given params.

type IntegrationsRunner

type IntegrationsRunner struct {
	Controller IntegrationController
}

func NewIntegrationsRunner

func NewIntegrationsRunner(controller IntegrationController) *IntegrationsRunner

type PluginBootstrapOptions

type PluginBootstrapOptions struct {
	Root string
}

type PluginBootstrapResult

type PluginBootstrapResult struct {
	Lines []string
}

type PluginBundleFetchOptions

type PluginBundleFetchOptions struct {
	URL           string
	Ref           string
	Tag           string
	Latest        bool
	Dest          string
	SHA256        string
	AssetName     string
	Platform      string
	Runtime       string
	GitHubToken   string
	GitHubAPIBase string
	Force         bool
}

type PluginBundleFetchResult

type PluginBundleFetchResult struct {
	Lines []string
}

type PluginBundleInstallOptions

type PluginBundleInstallOptions struct {
	Archive string
	Dest    string
	Force   bool
}

type PluginBundleInstallResult

type PluginBundleInstallResult struct {
	Lines []string
}

type PluginBundlePublishOptions

type PluginBundlePublishOptions struct {
	Root          string
	Platform      string
	Repo          string
	Tag           string
	Draft         bool
	GitHubToken   string
	GitHubAPIBase string
	Force         bool
}

type PluginBundlePublishResult

type PluginBundlePublishResult struct {
	Lines []string
}

type PluginCompatOptions

type PluginCompatOptions struct {
	Source           string
	From             string
	Target           string
	IncludeUserScope bool
}

type PluginDevOptions

type PluginDevOptions struct {
	Root      string
	Platform  string
	Event     string
	Fixture   string
	GoldenDir string
	All       bool
	Once      bool
	Interval  time.Duration
}

type PluginDevSummary

type PluginDevSummary struct {
	Cycles     int
	LastPassed bool
}

type PluginDevUpdate

type PluginDevUpdate struct {
	Cycle  int
	Passed bool
	Lines  []string
}

type PluginDoctorOptions

type PluginDoctorOptions struct {
	Root string
}

type PluginDoctorResult

type PluginDoctorResult struct {
	Ready bool
	Lines []string
}

type PluginExportOptions

type PluginExportOptions struct {
	Root     string
	Platform string
	Output   string
}

type PluginExportResult

type PluginExportResult struct {
	Lines []string
}

type PluginGenerateOptions

type PluginGenerateOptions struct {
	Root   string
	Target string
	Check  bool
}

type PluginImportOptions

type PluginImportOptions struct {
	Root             string
	Source           string
	From             string
	Force            bool
	IncludeUserScope bool
}

type PluginInspectOptions

type PluginInspectOptions struct {
	Root   string
	Target string
}

type PluginInstaller

type PluginInstaller interface {
	Install(ctx context.Context, p plugininstall.Params) (plugininstall.Result, error)
}

PluginInstaller is the install use case boundary for tests (production uses plugininstall.Install).

type PluginNormalizeOptions

type PluginNormalizeOptions struct {
	Root  string
	Force bool
}

type PluginPublicationMaterializeOptions

type PluginPublicationMaterializeOptions struct {
	Root        string
	Target      string
	Dest        string
	PackageRoot string
	DryRun      bool
}

type PluginPublicationMaterializeResult

type PluginPublicationMaterializeResult struct {
	Target            string            `json:"target"`
	Mode              string            `json:"mode"`
	MarketplaceFamily string            `json:"marketplace_family"`
	Dest              string            `json:"dest"`
	PackageRoot       string            `json:"package_root"`
	Details           map[string]string `json:"details"`
	NextSteps         []string          `json:"next_steps"`
	Lines             []string          `json:"-"`
}

type PluginPublicationRemoveOptions

type PluginPublicationRemoveOptions struct {
	Root        string
	Target      string
	Dest        string
	PackageRoot string
	DryRun      bool
}

type PluginPublicationRemoveResult

type PluginPublicationRemoveResult struct {
	Lines []string
}

type PluginPublicationRootIssue

type PluginPublicationRootIssue struct {
	Code    string `json:"code"`
	Path    string `json:"path,omitempty"`
	Message string `json:"message"`
}

type PluginPublicationVerifyRootOptions

type PluginPublicationVerifyRootOptions struct {
	Root        string
	Target      string
	Dest        string
	PackageRoot string
}

type PluginPublicationVerifyRootResult

type PluginPublicationVerifyRootResult struct {
	Ready       bool                         `json:"ready"`
	Status      string                       `json:"status"`
	Dest        string                       `json:"dest"`
	PackageRoot string                       `json:"package_root"`
	CatalogPath string                       `json:"catalog_path"`
	IssueCount  int                          `json:"issue_count"`
	Issues      []PluginPublicationRootIssue `json:"issues"`
	NextSteps   []string                     `json:"next_steps"`
	Lines       []string                     `json:"-"`
}

type PluginPublishIssue

type PluginPublishIssue struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type PluginPublishOptions

type PluginPublishOptions struct {
	Root        string
	Channel     string
	Dest        string
	PackageRoot string
	DryRun      bool
	All         bool
}

type PluginPublishResult

type PluginPublishResult struct {
	Channel       string                `json:"channel,omitempty"`
	Target        string                `json:"target,omitempty"`
	Ready         bool                  `json:"ready"`
	Status        string                `json:"status"`
	Mode          string                `json:"mode"`
	WorkflowClass string                `json:"workflow_class"`
	Dest          string                `json:"dest,omitempty"`
	PackageRoot   string                `json:"package_root,omitempty"`
	Details       map[string]string     `json:"details"`
	IssueCount    int                   `json:"issue_count"`
	Issues        []PluginPublishIssue  `json:"issues"`
	WarningCount  int                   `json:"warning_count,omitempty"`
	Warnings      []string              `json:"warnings,omitempty"`
	NextSteps     []string              `json:"next_steps"`
	ChannelCount  int                   `json:"channel_count,omitempty"`
	Channels      []PluginPublishResult `json:"channels,omitempty"`
	Lines         []string              `json:"-"`
}

type PluginService

type PluginService struct{}

func (PluginService) Bootstrap

func (PluginService) BundleFetch

func (PluginService) BundleInstall

func (PluginService) Dev

func (PluginService) Doctor

func (PluginService) Export

func (PluginService) Generate

func (PluginService) Generate(opts PluginGenerateOptions) ([]string, error)

func (PluginService) Import

func (PluginService) Normalize

func (PluginService) PublicationMaterialize

func (PluginService) PublicationRemove

func (PluginService) PublicationVerifyRoot

func (PluginService) Publish

func (PluginService) Test

type PluginTestCase

type PluginTestCase struct {
	Platform     string               `json:"platform"`
	Event        string               `json:"event"`
	FixturePath  string               `json:"fixture_path"`
	Carrier      string               `json:"carrier"`
	Command      []string             `json:"command,omitempty"`
	Stdout       string               `json:"stdout"`
	Stderr       string               `json:"stderr"`
	ExitCode     int                  `json:"exit_code"`
	GoldenDir    string               `json:"golden_dir,omitempty"`
	GoldenStatus string               `json:"golden_status,omitempty"`
	GoldenFiles  []string             `json:"golden_files,omitempty"`
	Mismatches   []string             `json:"mismatches,omitempty"`
	MismatchInfo []PluginTestMismatch `json:"mismatch_info,omitempty"`
	Failure      string               `json:"failure,omitempty"`
	Passed       bool                 `json:"passed"`
}

type PluginTestMismatch

type PluginTestMismatch struct {
	Field           string `json:"field"`
	GoldenFile      string `json:"golden_file,omitempty"`
	ExpectedPreview string `json:"expected_preview,omitempty"`
	ActualPreview   string `json:"actual_preview,omitempty"`
}

type PluginTestOptions

type PluginTestOptions struct {
	Root         string
	Platform     string
	Event        string
	Fixture      string
	GoldenDir    string
	UpdateGolden bool
	All          bool
}

type PluginTestResult

type PluginTestResult struct {
	Passed  bool              `json:"passed"`
	Summary PluginTestSummary `json:"summary"`
	Lines   []string          `json:"lines"`
	Cases   []PluginTestCase  `json:"cases"`
}

type PluginTestSummary

type PluginTestSummary struct {
	Total               int `json:"total"`
	Passed              int `json:"passed"`
	Failed              int `json:"failed"`
	GoldenMatched       int `json:"golden_matched"`
	GoldenUpdated       int `json:"golden_updated"`
	GoldenNotConfigured int `json:"golden_not_configured"`
	GoldenMismatch      int `json:"golden_mismatch"`
}

type SkillsGenerateOptions

type SkillsGenerateOptions struct {
	Root   string
	Target string
}

type SkillsInitOptions

type SkillsInitOptions struct {
	Name        string
	Description string
	Template    string
	OutputDir   string
	Command     string
	Force       bool
}

type SkillsService

type SkillsService struct {
	ExternalRunner ExternalSkillsRunner
	// contains filtered or unexported fields
}

func (SkillsService) Generate

func (s SkillsService) Generate(opts SkillsGenerateOptions) ([]string, error)

func (SkillsService) Init

func (s SkillsService) Init(opts SkillsInitOptions) (string, error)

func (SkillsService) InstallExternal

func (s SkillsService) InstallExternal(ctx context.Context, opts ExternalSkillsInstallOptions) error

func (SkillsService) ListExternal

func (s SkillsService) ListExternal(ctx context.Context, opts ExternalSkillsListOptions) error

func (SkillsService) RemoveExternal

func (s SkillsService) RemoveExternal(ctx context.Context, opts ExternalSkillsRemoveOptions) error

func (SkillsService) UpdateExternal

func (s SkillsService) UpdateExternal(ctx context.Context, opts ExternalSkillsUpdateOptions) error

func (SkillsService) Validate

type SkillsValidateOptions

type SkillsValidateOptions struct {
	Root string
}

Source Files

Jump to

Keyboard shortcuts

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