Documentation
¶
Overview ¶
Package cg assembles the full `cg` command tree: the capture-run model's own subcommands (package model), the MCP server (package mcp), and the approval-rules subcommands (package approvecmd). It is the single place that has to know about every subcommand package, so any binary that calls NewCommand gets all of them without repeating the wiring itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates the cg cobra command. cg is dispatch-only: it executes programs through the `cg run` subcommand and exposes the capture-run model through the resolution subcommands. With no arguments it prints help; an unrecognized first token, including the old bare-`cg -- COMMAND` form, is an unknown-command error.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package approve implements the cg_run approval gate: a layered YAML rules file, a load-once config store, and an argv-native matcher that decides whether a command runs, is refused, or needs an interactive prompt.
|
Package approve implements the cg_run approval gate: a layered YAML rules file, a load-once config store, and an argv-native matcher that decides whether a command runs, is refused, or needs an interactive prompt. |
|
Package approvecmd implements the `cg check` and `cg lint` subcommands.
|
Package approvecmd implements the `cg check` and `cg lint` subcommands. |
|
Package mcp implements `cg mcp`, a stdio MCP server that exposes cg's capture-run model as native MCP tools.
|
Package mcp implements `cg mcp`, a stdio MCP server that exposes cg's capture-run model as native MCP tools. |
|
Package model implements cg's capture-run domain: the on-disk model for runs and pools (meta, start, debug, and pool manifest records), execution (RunSupervised, PoolSupervised, and the supervise-run/supervise-pool commands that back them), resolution and locking, notes, grep, prune, and the `cg run` annotator.
|
Package model implements cg's capture-run domain: the on-disk model for runs and pools (meta, start, debug, and pool manifest records), execution (RunSupervised, PoolSupervised, and the supervise-run/supervise-pool commands that back them), resolution and locking, notes, grep, prune, and the `cg run` annotator. |