agentv1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Decision_name = map[int32]string{
		0: "DECISION_UNSPECIFIED",
		1: "DECISION_ALLOW",
		2: "DECISION_DENY",
		3: "DECISION_ASK",
	}
	Decision_value = map[string]int32{
		"DECISION_UNSPECIFIED": 0,
		"DECISION_ALLOW":       1,
		"DECISION_DENY":        2,
		"DECISION_ASK":         3,
	}
)

Enum value maps for Decision.

View Source
var File_kontext_agent_v1_agent_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BootstrapCliRequest added in v0.3.0

type BootstrapCliRequest struct {
	AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BootstrapCliRequest) Descriptor deprecated added in v0.3.0

func (*BootstrapCliRequest) Descriptor() ([]byte, []int)

Deprecated: Use BootstrapCliRequest.ProtoReflect.Descriptor instead.

func (*BootstrapCliRequest) GetAgentId added in v0.3.0

func (x *BootstrapCliRequest) GetAgentId() string

func (*BootstrapCliRequest) ProtoMessage added in v0.3.0

func (*BootstrapCliRequest) ProtoMessage()

func (*BootstrapCliRequest) ProtoReflect added in v0.3.0

func (x *BootstrapCliRequest) ProtoReflect() protoreflect.Message

func (*BootstrapCliRequest) Reset added in v0.3.0

func (x *BootstrapCliRequest) Reset()

func (*BootstrapCliRequest) String added in v0.3.0

func (x *BootstrapCliRequest) String() string

type BootstrapCliResponse added in v0.3.0

type BootstrapCliResponse struct {
	ApplicationId    string             `protobuf:"bytes,1,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"`
	ManagedProviders []*ManagedProvider `protobuf:"bytes,2,rep,name=managed_providers,json=managedProviders,proto3" json:"managed_providers,omitempty"`
	// contains filtered or unexported fields
}

func (*BootstrapCliResponse) Descriptor deprecated added in v0.3.0

func (*BootstrapCliResponse) Descriptor() ([]byte, []int)

Deprecated: Use BootstrapCliResponse.ProtoReflect.Descriptor instead.

func (*BootstrapCliResponse) GetApplicationId added in v0.3.0

func (x *BootstrapCliResponse) GetApplicationId() string

func (*BootstrapCliResponse) GetManagedProviders added in v0.3.0

func (x *BootstrapCliResponse) GetManagedProviders() []*ManagedProvider

func (*BootstrapCliResponse) ProtoMessage added in v0.3.0

func (*BootstrapCliResponse) ProtoMessage()

func (*BootstrapCliResponse) ProtoReflect added in v0.3.0

func (x *BootstrapCliResponse) ProtoReflect() protoreflect.Message

func (*BootstrapCliResponse) Reset added in v0.3.0

func (x *BootstrapCliResponse) Reset()

func (*BootstrapCliResponse) String added in v0.3.0

func (x *BootstrapCliResponse) String() string

type CreateSessionRequest

type CreateSessionRequest struct {
	UserId     string            `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Agent      string            `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // "claude", "cursor", "codex"
	Hostname   string            `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Cwd        string            `protobuf:"bytes,4,opt,name=cwd,proto3" json:"cwd,omitempty"`
	ClientInfo map[string]string `` /* 165-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateSessionRequest) Descriptor deprecated

func (*CreateSessionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.

func (*CreateSessionRequest) GetAgent

func (x *CreateSessionRequest) GetAgent() string

func (*CreateSessionRequest) GetClientInfo

func (x *CreateSessionRequest) GetClientInfo() map[string]string

func (*CreateSessionRequest) GetCwd

func (x *CreateSessionRequest) GetCwd() string

func (*CreateSessionRequest) GetHostname

func (x *CreateSessionRequest) GetHostname() string

func (*CreateSessionRequest) GetUserId

func (x *CreateSessionRequest) GetUserId() string

func (*CreateSessionRequest) ProtoMessage

func (*CreateSessionRequest) ProtoMessage()

func (*CreateSessionRequest) ProtoReflect

func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message

func (*CreateSessionRequest) Reset

func (x *CreateSessionRequest) Reset()

func (*CreateSessionRequest) String

func (x *CreateSessionRequest) String() string

type CreateSessionResponse

type CreateSessionResponse struct {
	SessionId      string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	SessionName    string `protobuf:"bytes,2,opt,name=session_name,json=sessionName,proto3" json:"session_name,omitempty"`
	OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	AgentId        string `protobuf:"bytes,4,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSessionResponse) Descriptor deprecated

func (*CreateSessionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead.

func (*CreateSessionResponse) GetAgentId

func (x *CreateSessionResponse) GetAgentId() string

func (*CreateSessionResponse) GetOrganizationId

func (x *CreateSessionResponse) GetOrganizationId() string

func (*CreateSessionResponse) GetSessionId

func (x *CreateSessionResponse) GetSessionId() string

func (*CreateSessionResponse) GetSessionName

func (x *CreateSessionResponse) GetSessionName() string

func (*CreateSessionResponse) ProtoMessage

func (*CreateSessionResponse) ProtoMessage()

func (*CreateSessionResponse) ProtoReflect

func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message

func (*CreateSessionResponse) Reset

func (x *CreateSessionResponse) Reset()

func (*CreateSessionResponse) String

func (x *CreateSessionResponse) String() string

type Decision

type Decision int32
const (
	Decision_DECISION_UNSPECIFIED Decision = 0
	Decision_DECISION_ALLOW       Decision = 1
	Decision_DECISION_DENY        Decision = 2
	Decision_DECISION_ASK         Decision = 3 // Prompt user for approval
)

func (Decision) Descriptor

func (Decision) Descriptor() protoreflect.EnumDescriptor

func (Decision) Enum

func (x Decision) Enum() *Decision

func (Decision) EnumDescriptor deprecated

func (Decision) EnumDescriptor() ([]byte, []int)

Deprecated: Use Decision.Descriptor instead.

func (Decision) Number

func (x Decision) Number() protoreflect.EnumNumber

func (Decision) String

func (x Decision) String() string

func (Decision) Type

type EndSessionRequest

type EndSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*EndSessionRequest) Descriptor deprecated

func (*EndSessionRequest) Descriptor() ([]byte, []int)

Deprecated: Use EndSessionRequest.ProtoReflect.Descriptor instead.

func (*EndSessionRequest) GetSessionId

func (x *EndSessionRequest) GetSessionId() string

func (*EndSessionRequest) ProtoMessage

func (*EndSessionRequest) ProtoMessage()

func (*EndSessionRequest) ProtoReflect

func (x *EndSessionRequest) ProtoReflect() protoreflect.Message

func (*EndSessionRequest) Reset

func (x *EndSessionRequest) Reset()

func (*EndSessionRequest) String

func (x *EndSessionRequest) String() string

type EndSessionResponse

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

func (*EndSessionResponse) Descriptor deprecated

func (*EndSessionResponse) Descriptor() ([]byte, []int)

Deprecated: Use EndSessionResponse.ProtoReflect.Descriptor instead.

func (*EndSessionResponse) ProtoMessage

func (*EndSessionResponse) ProtoMessage()

func (*EndSessionResponse) ProtoReflect

func (x *EndSessionResponse) ProtoReflect() protoreflect.Message

func (*EndSessionResponse) Reset

func (x *EndSessionResponse) Reset()

func (*EndSessionResponse) String

func (x *EndSessionResponse) String() string

type HeartbeatRequest

type HeartbeatRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*HeartbeatRequest) Descriptor deprecated

func (*HeartbeatRequest) Descriptor() ([]byte, []int)

Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead.

func (*HeartbeatRequest) GetSessionId

func (x *HeartbeatRequest) GetSessionId() string

func (*HeartbeatRequest) ProtoMessage

func (*HeartbeatRequest) ProtoMessage()

func (*HeartbeatRequest) ProtoReflect

func (x *HeartbeatRequest) ProtoReflect() protoreflect.Message

func (*HeartbeatRequest) Reset

func (x *HeartbeatRequest) Reset()

func (*HeartbeatRequest) String

func (x *HeartbeatRequest) String() string

type HeartbeatResponse

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

func (*HeartbeatResponse) Descriptor deprecated

func (*HeartbeatResponse) Descriptor() ([]byte, []int)

Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.

func (*HeartbeatResponse) ProtoMessage

func (*HeartbeatResponse) ProtoMessage()

func (*HeartbeatResponse) ProtoReflect

func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message

func (*HeartbeatResponse) Reset

func (x *HeartbeatResponse) Reset()

func (*HeartbeatResponse) String

func (x *HeartbeatResponse) String() string

type ManagedProvider added in v0.3.0

type ManagedProvider struct {
	PresetKey      string `protobuf:"bytes,1,opt,name=preset_key,json=presetKey,proto3" json:"preset_key,omitempty"`
	Handle         string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
	EnvVar         string `protobuf:"bytes,3,opt,name=env_var,json=envVar,proto3" json:"env_var,omitempty"`
	Placeholder    string `protobuf:"bytes,4,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
	SeedOnFirstRun bool   `protobuf:"varint,5,opt,name=seed_on_first_run,json=seedOnFirstRun,proto3" json:"seed_on_first_run,omitempty"`
	// contains filtered or unexported fields
}

func (*ManagedProvider) Descriptor deprecated added in v0.3.0

func (*ManagedProvider) Descriptor() ([]byte, []int)

Deprecated: Use ManagedProvider.ProtoReflect.Descriptor instead.

func (*ManagedProvider) GetEnvVar added in v0.3.0

func (x *ManagedProvider) GetEnvVar() string

func (*ManagedProvider) GetHandle added in v0.3.0

func (x *ManagedProvider) GetHandle() string

func (*ManagedProvider) GetPlaceholder added in v0.3.0

func (x *ManagedProvider) GetPlaceholder() string

func (*ManagedProvider) GetPresetKey added in v0.3.0

func (x *ManagedProvider) GetPresetKey() string

func (*ManagedProvider) GetSeedOnFirstRun added in v0.3.0

func (x *ManagedProvider) GetSeedOnFirstRun() bool

func (*ManagedProvider) ProtoMessage added in v0.3.0

func (*ManagedProvider) ProtoMessage()

func (*ManagedProvider) ProtoReflect added in v0.3.0

func (x *ManagedProvider) ProtoReflect() protoreflect.Message

func (*ManagedProvider) Reset added in v0.3.0

func (x *ManagedProvider) Reset()

func (*ManagedProvider) String added in v0.3.0

func (x *ManagedProvider) String() string

type ProcessHookEventRequest

type ProcessHookEventRequest struct {
	SessionId    string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Agent        string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"`                          // "claude", "cursor", "codex"
	HookEvent    string `protobuf:"bytes,3,opt,name=hook_event,json=hookEvent,proto3" json:"hook_event,omitempty"` // "PreToolUse", "PostToolUse", "UserPromptSubmit"
	ToolName     string `protobuf:"bytes,4,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
	ToolInput    []byte `protobuf:"bytes,5,opt,name=tool_input,json=toolInput,proto3" json:"tool_input,omitempty"`          // JSON-encoded tool input
	ToolResponse []byte `protobuf:"bytes,6,opt,name=tool_response,json=toolResponse,proto3" json:"tool_response,omitempty"` // JSON-encoded tool response (PostToolUse only)
	ToolUseId    string `protobuf:"bytes,7,opt,name=tool_use_id,json=toolUseId,proto3" json:"tool_use_id,omitempty"`
	Cwd          string `protobuf:"bytes,8,opt,name=cwd,proto3" json:"cwd,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessHookEventRequest) Descriptor deprecated

func (*ProcessHookEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProcessHookEventRequest.ProtoReflect.Descriptor instead.

func (*ProcessHookEventRequest) GetAgent

func (x *ProcessHookEventRequest) GetAgent() string

func (*ProcessHookEventRequest) GetCwd

func (x *ProcessHookEventRequest) GetCwd() string

func (*ProcessHookEventRequest) GetHookEvent

func (x *ProcessHookEventRequest) GetHookEvent() string

func (*ProcessHookEventRequest) GetSessionId

func (x *ProcessHookEventRequest) GetSessionId() string

func (*ProcessHookEventRequest) GetToolInput

func (x *ProcessHookEventRequest) GetToolInput() []byte

func (*ProcessHookEventRequest) GetToolName

func (x *ProcessHookEventRequest) GetToolName() string

func (*ProcessHookEventRequest) GetToolResponse

func (x *ProcessHookEventRequest) GetToolResponse() []byte

func (*ProcessHookEventRequest) GetToolUseId

func (x *ProcessHookEventRequest) GetToolUseId() string

func (*ProcessHookEventRequest) ProtoMessage

func (*ProcessHookEventRequest) ProtoMessage()

func (*ProcessHookEventRequest) ProtoReflect

func (x *ProcessHookEventRequest) ProtoReflect() protoreflect.Message

func (*ProcessHookEventRequest) Reset

func (x *ProcessHookEventRequest) Reset()

func (*ProcessHookEventRequest) String

func (x *ProcessHookEventRequest) String() string

type ProcessHookEventResponse

type ProcessHookEventResponse struct {
	Decision Decision `protobuf:"varint,1,opt,name=decision,proto3,enum=kontext.agent.v1.Decision" json:"decision,omitempty"`
	Reason   string   `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	EventId  string   `protobuf:"bytes,3,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessHookEventResponse) Descriptor deprecated

func (*ProcessHookEventResponse) Descriptor() ([]byte, []int)

Deprecated: Use ProcessHookEventResponse.ProtoReflect.Descriptor instead.

func (*ProcessHookEventResponse) GetDecision

func (x *ProcessHookEventResponse) GetDecision() Decision

func (*ProcessHookEventResponse) GetEventId

func (x *ProcessHookEventResponse) GetEventId() string

func (*ProcessHookEventResponse) GetReason

func (x *ProcessHookEventResponse) GetReason() string

func (*ProcessHookEventResponse) ProtoMessage

func (*ProcessHookEventResponse) ProtoMessage()

func (*ProcessHookEventResponse) ProtoReflect

func (x *ProcessHookEventResponse) ProtoReflect() protoreflect.Message

func (*ProcessHookEventResponse) Reset

func (x *ProcessHookEventResponse) Reset()

func (*ProcessHookEventResponse) String

func (x *ProcessHookEventResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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