constants

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OxPrimeCommand is the legacy command without AGENT_ENV prefix.
	// Kept for backwards compatibility detection of existing hooks.
	// New installations should use agent-specific commands.
	OxPrimeCommand = "" /* 171-byte string literal not displayed */

	// OxPrimeCommandClaudeCode is the command for Claude Code hooks.
	//
	// Why AGENT_ENV is required: Claude Code runs SessionStart/PreCompact hooks
	// BEFORE setting CLAUDECODE=1 in the subprocess environment. This means
	// agent detection fails during hook execution. Setting AGENT_ENV explicitly
	// ensures detection works reliably. See pkg/agentx/agents/claudecode.go for details.
	OxPrimeCommandClaudeCode = "" /* 193-byte string literal not displayed */

	// OxPrimeCommandClaudeCodeIdempotent is the idempotent version for startup/resume hooks.
	// Uses --idempotent flag to skip priming if session already primed (saves ~1k tokens).
	OxPrimeCommandClaudeCodeIdempotent = "" /* 206-byte string literal not displayed */

	// OxPrimeCommandGemini is the command for Gemini CLI hooks.
	OxPrimeCommandGemini = "" /* 188-byte string literal not displayed */
)
View Source
const (
	ProviderAWS   = "aws"
	ProviderGCP   = "gcp"
	ProviderAzure = "azure"
)
View Source
const (
	StatusOK               = "ok"
	StatusNotInstalled     = "not_installed"
	StatusNotAuthenticated = "not_authenticated"
	StatusError            = "error"
	StatusWarning          = "warning"
	StatusSkipped          = "skipped"
)
View Source
const MaxInlineContextLines = 200

MaxInlineContextLines caps how many lines are read from files inlined into agent context (e.g., MEMORY.md, coworkers/agents/AGENTS.md). Forces teams to distill instructions down to a reasonable context size.

View Source
const (
	// OxHookCommandClaudeCode is the template for Claude Code lifecycle hooks.
	// The %s placeholder is replaced with the native event name (e.g., SessionStart).
	OxHookCommandClaudeCodeTemplate = "" /* 195-byte string literal not displayed */
)

OxHookCommand templates for lifecycle hook installation. These replace the per-event ox agent prime commands with a single generalized handler.

View Source
const SageOxGitEmail = "ox@sageox.ai"

SageOxGitEmail is the canonical email for SageOx git identity. Used in commit attribution, fallback git config, etc.

View Source
const SageOxGitName = "SageOx"

SageOxGitName is the canonical name for SageOx git identity.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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