contenoxcli

package
v1.0.0-rc.13 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 122 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

Index

Constants

View Source
const (
	DefaultMissionAgent  = "reviewer"
	DefaultMissionPolicy = "read_only"
)
View Source
const DefaultWorkspaceID = "00000000-0000-0000-0000-000000000002"

Variables

View Source
var ErrApprovalAborted = errors.New("run aborted at approval prompt")
View Source
var ErrPreflightBlocked = errors.New("LLM setup is not ready")

Functions

func AgentsMDMessage

func AgentsMDMessage(content, path string) taskengine.Message

func CLIVersion

func CLIVersion() string

func ComputeReadiness

func ComputeReadiness(ctx context.Context, db libdbexec.DBManager, opts chatOpts) (setupcheck.Result, error)

func LoadAgentsMD

func LoadAgentsMD(startDir string) (string, string, bool)

func Main

func Main()

func NewCLIAskApproval

func NewCLIAskApproval(w io.Writer) localtools.AskApproval

func NewCLIAskApprovalWithOptions

func NewCLIAskApprovalWithOptions(w io.Writer, opts CLIApprovalOptions) localtools.AskApproval

func OpenDBAt

func OpenDBAt(ctx context.Context, dbPath string) (libdb.DBManager, error)

func PreflightLLMSetup

func PreflightLLMSetup(w io.Writer, res setupcheck.Result) error

func PrintBackendChecks

func PrintBackendChecks(w io.Writer, res setupcheck.Result)

func PrintSetupIssues

func PrintSetupIssues(w io.Writer, res setupcheck.Result)

func ResolveContenoxDir

func ResolveContenoxDir(cmd *cobra.Command) (string, error)

func ResolveWorkspaceID

func ResolveWorkspaceID(contenoxDir string) string

func RunGlobalInit

func RunGlobalInit(out io.Writer) error

func RunInit

func RunInit(out, errOut io.Writer, force, update bool, provider string, contenoxDir string, projectName string) error

func WithTransaction

func WithTransaction(ctx context.Context, db libdb.DBManager, fn func(tx libdb.Exec) error) error

Types

type CLIApprovalOptions

type CLIApprovalOptions struct {
	AuditLog func(req hitlservice.ApprovalRequest, decision string)
}

type Engine

type Engine = enginesvc.Engine

func BuildEngine

func BuildEngine(ctx context.Context, db libdbexec.DBManager, opts chatOpts) (*Engine, error)

type ServeError

type ServeError struct {
	StatusCode int
	Message    string
}

func (*ServeError) Error

func (e *ServeError) Error() string

Jump to

Keyboard shortcuts

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