cli

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 36 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

This section is empty.

Variables

This section is empty.

Functions

func Answer

func Answer(args []string, stdout, stderr io.Writer) int

func Ask

func Ask(args []string, stdout, stderr io.Writer) int

func CheckBloat

func CheckBloat(args []string, stdout, stderr io.Writer) int

func EpicPlanValidate added in v0.1.0

func EpicPlanValidate(args []string, stdout, stderr io.Writer) int

EpicPlanValidate checks a plan file the way the orchestrator checks any plan entering the system — branch targets against the run's ref, then the full structural rules — so the planning agent can iterate against the same gate its draft will be re-checked by. No model is involved.

func GraphBuild

func GraphBuild(args []string, stdout, stderr io.Writer) int

func GraphCheckBoundary

func GraphCheckBoundary(args []string, stdout, stderr io.Writer) int

func GraphDeps

func GraphDeps(args []string, stdout, stderr io.Writer) int

func GraphStatus

func GraphStatus(args []string, stdout, stderr io.Writer) int

func GraphUpdate

func GraphUpdate(args []string, stdout, stderr io.Writer) int

func GraphWhoImports

func GraphWhoImports(args []string, stdout, stderr io.Writer) int

func Init

func Init(args []string, stdout, stderr io.Writer) int

Init requires an explicit --backend flag; there is no silent default (spec: Distribution & Ownership). A future interactive prompt path belongs to the terminal-attached CLI wrapper, not this testable core.

func IssueList added in v0.1.0

func IssueList(gh github.Client, cfg *config.Config, out io.Writer) error

IssueList prints open issues carrying the configured trigger label.

This never writes to GitHub: it only calls the read-only ListIssuesSince endpoint. cfg.GitHub.Write is not consulted here — no command in this file calls a GitHub write endpoint yet. Write exists so golem init (standalone use) and the shem's ensureRepoReady (orchestrator-managed repos) agree on which side is allowed to become a GitHub writer once a write-capable command is added; see internal/shem/worker/executor.go's setGitHubWrite.

func IssueListCmd added in v0.1.0

func IssueListCmd(args []string, stdout, stderr io.Writer) int

IssueListCmd is the `golem issue list` command.

func IssueSync added in v0.1.0

func IssueSync(gh github.Client, cfg *config.Config, ticketDir string) error

IssueSync pulls the linked issue's current title and body onto the ticket: the ticket description is overwritten with github.Issue.TicketDescription() (GitHub is the source of truth) and issue_url is refreshed. All other state.json fields are preserved because this loads and saves through ticket.State rather than editing raw JSON.

This never writes to GitHub: it only calls the read-only GetIssue endpoint. See IssueList's doc comment for why cfg.GitHub.Write is not consulted here.

func IssueSyncCmd added in v0.1.0

func IssueSyncCmd(args []string, stdout, stderr io.Writer) int

IssueSyncCmd is the `golem issue sync` command.

func LogEmit

func LogEmit(args []string, stdout, stderr io.Writer) int

func ModelsList added in v0.1.0

func ModelsList(args []string, stdout, stderr io.Writer) int

ModelsList prints a backend's tiers, models and per-stage default models.

func ModelsProbe added in v0.1.0

func ModelsProbe(args []string, stdout, stderr io.Writer) int

ModelsProbe checks each catalog model against the vendor CLI and prints the verified backend block.

func NewRunner

func NewRunner(src RunnerSource) (agentrunner.Adapter, error)

NewRunner builds the adapter from --backend-config, else --backend, else .golem/config.yaml.

func ObserverDispatch

func ObserverDispatch(args []string, stdout, stderr io.Writer) int

func PolicyCheck added in v0.1.0

func PolicyCheck(args []string, stdout, stderr io.Writer) int

PolicyCheck is a vendor hook endpoint. A malformed event or policy blocks.

func SetStep

func SetStep(args []string, stdout, stderr io.Writer) int

func TicketAdvance

func TicketAdvance(args []string, stdout, stderr io.Writer) int

func TicketClose

func TicketClose(args []string, stdout, stderr io.Writer) int

func TicketNew

func TicketNew(args []string, stdout, stderr io.Writer) int

func TicketPRDescription added in v0.1.0

func TicketPRDescription(args []string, stdout, stderr io.Writer) int

TicketPRDescription writes a pull request body for a ticket to stdout.

A separate command rather than something the orchestrator does, because the orchestrator has no checkout: the description is written from the branch's own diff and the ticket's log, both of which exist only on the shem. The shem runs this after a successful push and hands the result back with the branch-pushed report.

Failure is not fatal to the caller by design — the shem falls back to the minimal body so the pull request still opens. A missing description is an inconvenience; a missing pull request is lost work.

func TicketResume

func TicketResume(args []string, stdout, stderr io.Writer) int

func TicketReview

func TicketReview(args []string, stdout, stderr io.Writer) int

func TicketValidate added in v0.1.0

func TicketValidate(args []string, stdout, stderr io.Writer) int

TicketValidate runs the spec-adherence role over a finished stage artifact and reports whether the ticket may advance.

This is what replaces the human approval that used to sit after brainstorm and after plan. The only human gate is now intake: a person reads the description and starts the ticket. Everything after that advances on the shem's own check, so that check has to be a real one — the exit code is the gate.

The verdict channel is the ticket log, not this command's stdout. The role emits BLOCKER entries through `golem log emit` exactly as the observers do, and any BLOCKER raised during this run fails the stage. Reusing the established channel means the reasons land where a human reviewing the ticket already looks, instead of in a bespoke verdict file.

Exit codes: 0 = advance, 1 = could not run, 2 = validation failed.

func TicketVerify added in v0.1.0

func TicketVerify(args []string, stdout, stderr io.Writer) int

TicketVerify runs the gate (plus the ticket's acceptance commands) as the worker's self-verification and logs the result. It never replaces the review gate. Exit codes: 0 passed, 1 could not run, 2 a check failed.

func Tickets

func Tickets(args []string, stdout, stderr io.Writer) int

func WikiRebuild

func WikiRebuild(args []string, stdout, stderr io.Writer) int

func WikiSearch

func WikiSearch(args []string, stdout, stderr io.Writer) int

Types

type RunnerSource added in v0.1.0

type RunnerSource struct {
	Config        *config.Config
	WorktreeRoot  string
	BackendConfig string
	Backend       string
}

RunnerSource is everything that decides which adapter a command builds.

Jump to

Keyboard shortcuts

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