contenoxcli

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 59 Imported by: 0

Documentation

Overview

backends.go contains helpers for LLM backend and provider config KV storage.

run.go contains the main execution pipeline for the vibe CLI (steps 1–12).

cli.go holds the contenox CLI entrypoint (Main), default constants, flags, and merge logic.

hook_cmd.go — contenox hook subcommand tree (add, list, show, remove, update). Each subcommand opens only the DB; no LLM stack is needed.

init.go implements the contenox init subcommand (scaffold .contenox/).

output.go holds CLI output helpers.

session.go — session-related constants and helpers for the contenoxcli package.

session_cmd.go — contenox session subcommand tree (new, list, switch, delete, show). Each subcommand opens only the DB via sessionservice; no LLM stack is needed.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time via -ldflags "-X github.com/contenox/contenox/internal/contenoxcli.Version=vX.Y.Z". Falls back to "dev" when building without the flag (e.g. go run).

Functions

func Main

func Main()

Main runs the contenox CLI: init subcommand or run (default) with optional positional input.

func ResolveContenoxDir added in v0.6.0

func ResolveContenoxDir() (string, error)

ResolveContenoxDir finds the closest .contenox directory by walking up from the current working directory. If it hits the root without finding one, it returns the .contenox directory in the current working directory as a fallback.

func RunInit

func RunInit(force bool, provider string)

RunInit scaffolds .contenox/ with default chain files. provider is "" (default = ollama), "ollama", "gemini", or "openai".

func WithTransaction added in v0.5.0

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

WithTransaction is the exported version for use by sub-packages.

Types

type Engine

type Engine struct {
	TaskService execservice.TasksEnvService
	Tracker     libtracker.ActivityTracker
	JSEnv       *jseval.Env
	Stop        func()
	MCPManager  *mcpworker.Manager
	// LocalHooks lists the names of all registered local hook handlers.
	LocalHooks []string
}

func BuildEngine

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

BuildEngine scaffolds the complex dependency graph needed to run task chains.

Jump to

Keyboard shortcuts

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