Documentation
¶
Overview ¶
Package codexsource is the only product package that imports plugin-kit-ai/sdk. It adapts one pre-read Codex hook payload into plain host DTOs; it never classifies, notifies, or touches product policy.
Index ¶
Constants ¶
const MaxPayloadBytes = pluginkitai.MaxPayloadBytes
MaxPayloadBytes re-exports the SDK's single wire limit so the rest of the product never imports the SDK or duplicates the number.
Variables ¶
This section is empty.
Functions ¶
func InvocationForEvent ¶
InvocationForEvent maps the validated public event name to the prefixed SDK invocation name.
func ValidateProductOverride ¶
ValidateProductOverride validates an explicit --product override through the SDK host detector. An unknown override is an error, never an arbitrary platform; detection fails closed.
Types ¶
type Decoded ¶
type Decoded struct {
Stop *StopData
SubagentStop *SubagentStopData
PreToolUse *PreToolUseData
PermissionRequest *PermissionRequestData
}
Decoded holds exactly one non-nil DTO for the dispatched event.
type PermissionRequestData ¶
type PermissionRequestData struct {
SessionID string
TurnID string
TranscriptPath string
CWD string
HookEventName string
Model string
PermissionMode string
ToolName string
ToolInput json.RawMessage
AgentID string
AgentType string
}
PermissionRequestData mirrors the decoded Codex PermissionRequest payload.
type PreToolUseData ¶
type PreToolUseData struct {
SessionID string
TurnID string
TranscriptPath string
CWD string
HookEventName string
Model string
PermissionMode string
ToolName string
ToolInput json.RawMessage
ToolUseID string
AgentID string
AgentType string
}
PreToolUseData mirrors the decoded Codex PreToolUse payload.