contenoxcli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 42 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 — active session pointer helpers (reads/writes the SQLite kv table).

session_cmd.go — contenox session subcommand tree (new, list, switch, delete, show). Each subcommand opens only the DB; 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 RunInit

func RunInit(force bool, provider string)

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

Types

type Engine

type Engine struct {
	TaskService execservice.TasksEnvService
	Tracker     libtracker.ActivityTracker
	JSEnv       *jseval.Env
	Stop        func()
	MCPManager  *mcpworker.Manager
}

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