claudecode

package
v0.11.388 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamPrompt          = "prompt"
	ParamModel           = "model"
	ParamFallbackModel   = "fallback_model"
	ParamOutputFormat    = "output_format"
	ParamSystemPrompt    = "system_prompt"
	ParamAllowedDirs     = "allowed_directories"
	ParamAllowedTools    = "allowed_tools"
	ParamDisallowedTools = "disallowed_tools"
	ParamSkipPermissions = "skip_permissions"
	ParamPermissionMode  = "permission_mode"
	ParamSessionID       = "session_id"
	ParamContinueSession = "continue_session"
	ParamDebug           = "debug"
	ParamVerbose         = "verbose"
	ParamWorkingDir      = "working_dir"
)

Parameter constants.

Variables

View Source
var (
	ValidOutputFormats = map[string]bool{
		"text":        true,
		"json":        true,
		"stream-json": true,
	}

	ValidPermissionModes = map[string]bool{
		"default":           true,
		"plan":              true,
		"acceptEdits":       true,
		"bypassPermissions": true,
	}
)

Valid parameter values.

Functions

This section is empty.

Types

type ClaudeCodeOperator

type ClaudeCodeOperator struct {
	// contains filtered or unexported fields
}

func NewClaudeCodeOperator

func NewClaudeCodeOperator(renderer *jinja.Renderer) *ClaudeCodeOperator

func (*ClaudeCodeOperator) Run

type ClaudeParameters

type ClaudeParameters struct {
	Prompt          string
	Model           string
	FallbackModel   string
	OutputFormat    string
	SystemPrompt    string
	AllowedDirs     []string
	AllowedTools    string
	DisallowedTools string
	SkipPermissions bool
	PermissionMode  string
	SessionID       string
	ContinueSession bool
	Debug           bool
	Verbose         bool
	WorkingDir      string
}

ClaudeParameters holds all configuration for Claude execution.

type ClaudeResponse

type ClaudeResponse struct {
	Content string                 `json:"content"`
	Model   string                 `json:"model,omitempty"`
	Error   string                 `json:"error,omitempty"`
	Meta    map[string]interface{} `json:"meta,omitempty"`
}

ClaudeResponse represents the JSON response when using json output format.

Jump to

Keyboard shortcuts

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