clibinding

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package clibinding binds local process dispatch to an explicit StackKit CLI from one build. It is shared by MCP and local lifecycle triggers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sibling

func Sibling() (string, error)

Sibling returns the packaged CLI beside the current CLI, server or MCP executable. It never searches PATH.

func VerifyIdentity

func VerifyIdentity(identity Identity) error

VerifyIdentity checks the current file against a previously authenticated identity. Callers must authenticate persisted identities before using them.

Types

type Binding

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

func Bind

func Bind(parent context.Context, path, version, commit string) (*Binding, error)

func (*Binding) Identity

func (binding *Binding) Identity() Identity

func (*Binding) Path

func (binding *Binding) Path() string

func (*Binding) Verify

func (binding *Binding) Verify() error

type Identity

type Identity struct {
	Path      string `json:"path"`
	Version   string `json:"version"`
	GitCommit string `json:"gitCommit"`
	Digest    string `json:"digest"`
}

Identity is the secret-free identity of an explicitly selected CLI file.

Jump to

Keyboard shortcuts

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