Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Introduce confirmation handling (#61)
Jaana Dogan9c5a3d5bbe6e
diff --git a/cmd/gar/serve.go b/cmd/gar/serve.goindex f8e50bf..f44ba75 100644--- a/cmd/gar/serve.go+++ b/cmd/gar/serve.go@@ -31,8 +31,7 @@ import ()var (- serveConfigFile string- serveSkipApprovals bool+ serveConfigFile string)var serveCmd = &cobra.Command{@@ -45,16 +44,11 @@ Loads configuration from a YAML file (default: gar.yaml).`,func init() {serveCmd.Flags().StringVar(&serveConfigFile, "config", "gar.yaml", "Path to YAML configuration file")- serveCmd.Flags().BoolVar(&serveSkipApprovals, "dangerously-skip-approvals", false, "Skips all approvals")}func runServe(cmd *cobra.Command, args []string) error {ctx := context.Background()- if !serveSkipApprovals {- return fmt.Errorf("serve cannot ask for user approval yet; dangerously skip approvals")- }-// Load configuration from YAML filecfg, err := config.LoadFromFile(serveConfigFile)if err != nil {@@ -66,7 +60,7 @@ func runServe(cmd *cobra.Command, args []string) error {return fmt.Errorf("invalid configuration: %w", err)}- c, err := newControllerFromConfig(ctx, func(string) bool { return true }, cfg)+ c, err := newControllerFromConfig(ctx, cfg)if err != nil {return fmt.Errorf("error creating controller: %w", err)}@@ -93,7 +87,7 @@ func runServe(cmd *cobra.Command, args []string) error {return nil}-func newControllerFromConfig(ctx context.Context, approval controller.ApprovalHandler, cfg *config.Config) (*controller.Controller, error) {+func newControllerFromConfig(ctx context.Context, cfg *config.Config) (*controller.Controller, error) {// Create event log buildereventLogBuilder := func(sessionID string) (eventlog.EventLog, error) {return eventlog.NewFileEventLog(eventlog.FileConfig{@@ -103,12 +97,12 @@ func newControllerFromConfig(ctx context.Context, approval controller.ApprovalHa}// Create planner builder- plannerBuilder := func(ctx context.Context, r *controller.Registry, h controller.ApprovalHandler) (agent.Agent, error) {+ plannerBuilder := func(ctx context.Context, r *controller.Registry) (agent.Agent, error) {// The builder defines which planner to use.// Currently, it uses the Gemini planner.// Gemini config can be customized via environment variables (GEMINI_API_KEY, GAR_GEMINI_MODEL)// TODO(lhuan): allow other planners based on cfg.PlannerType- return controller.NewGeminiPlanner(ctx, r, h, controller.GeminiPlannerConfig{+ return controller.NewGeminiPlanner(ctx, r, controller.GeminiPlannerConfig{Model: cfg.Planner.Gemini.Model,MaxTokens: cfg.Planner.Gemini.MaxTokens,Timeout: cfg.Planner.Gemini.Timeout,@@ -118,7 +112,6 @@ func newControllerFromConfig(ctx context.Context, approval controller.ApprovalHa// Build controller configcontrollerConfig := controller.Config{- ApprovalHandler: approval,EventLogBuilder: eventLogBuilder,PlannerBuilder: plannerBuilder,MaxSteps: cfg.MaxSteps,diff --git a/cmd/gar/trigger.go b/cmd/gar/trigger.goindex f23f8c7..150f90e 100644--- a/cmd/gar/trigger.go+++ b/cmd/gar/trigger.go@@ -78,6 +78,9 @@ func runTrigger(cmd *cobra.Command, args []string) error {go func() {<-sigChanfmt.Println("\nReceived interrupt, shutting down...")+ if triggerController != nil {+ triggerController.Close()+ }cancel()}()@@ -88,10 +91,10 @@ func triggerLoop(ctx context.Context, sessionID string, input string) error {d := internal.NewDisplay(sessionID)d.DisplayHeader()- for {+ var inputs []*proto.Content+ if input != "" {d.DisplayInput(input)-- inputs := []*proto.Content{+ inputs = []*proto.Content{{Role: "user",Content: &proto.Content_Text{@@ -101,69 +104,117 @@ func triggerLoop(ctx context.Context, sessionID string, input string) error {},},}+ }++ for {+ var conf *proto.ConfirmationContent+ var err errorif triggerServerAddr == "" {- if err := runTriggerHeadless(ctx, d, triggerSessionID, inputs); err != nil {- return err- }+ conf, err = runTriggerHeadless(ctx, d, triggerSessionID, inputs)} else {- if err := runTriggerServer(ctx, d, triggerSessionID, inputs); err != nil {+ conf, err = runTriggerServer(ctx, d, triggerSessionID, inputs)+ }+ if err != nil {+ return err+ }++ if conf != nil {+ approved, err := d.PromptForApproval(conf.Question)+ if err != nil {return err}+ if approved {+ inputs = []*proto.Content{{+ Role: "user",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: conf.Id,+ Decision: &proto.ConfirmationContent_Approval{+ Approval: &proto.ApprovalDecision{Approved: true},+ },+ },+ },+ }}+ } else {+ inputs = []*proto.Content{{+ Role: "user",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: conf.Id,+ Decision: &proto.ConfirmationContent_Decline{+ Decline: &proto.DeclineDecision{Declined: true},+ },+ },+ },+ }}+ }+ continue}- var err errorinput, err = d.PromptForInput()if err != nil {return err}+ d.DisplayInput(input)+ inputs = []*proto.Content{+ {+ Role: "user",+ Content: &proto.Content_Text{+ Text: &proto.TextContent{+ Text: input,+ },+ },+ },+ }}}-func runTriggerHeadless(ctx context.Context, d *internal.Display, sessionID string, inputs []*proto.Content) error {+func runTriggerHeadless(ctx context.Context, d *internal.Display, sessionID string, inputs []*proto.Content) (*proto.ConfirmationContent, error) {if triggerController == nil {cfg, err := config.LoadFromFile(triggerConfigFile)if err != nil {- return fmt.Errorf("error loading config file '%s': %w", triggerConfigFile, err)+ return nil, fmt.Errorf("error loading config file '%s': %w", triggerConfigFile, err)}- approval := func(question string) bool {- ok, err := d.PromptForApproval(question)- if err != nil {- return false- }- return ok- }-- c, err := newControllerFromConfig(ctx, approval, cfg)+ c, err := newControllerFromConfig(ctx, cfg)if err != nil {- return fmt.Errorf("error creating controller: %w", err)+ return nil, fmt.Errorf("error creating controller: %w", err)}triggerController = c}var checkpoint string+ var confirmation *proto.ConfirmationContentoutputHandler := agent.OutputHandler(func(resp *proto.ProcessResponse) error {if resp.CheckpointId != "" {checkpoint = resp.CheckpointId}+ for _, c := range resp.Contents {+ if conf := c.GetConfirmation(); conf != nil {+ confirmation = conf+ }+ }+displayContents(d, resp.Contents)return nil})if err := triggerController.TriggerSession(ctx, sessionID, &proto.ProcessRequest{Contents: inputs,}, outputHandler); err != nil {- return fmt.Errorf("error triggering session with local server: %w", err)+ return nil, fmt.Errorf("error triggering session with local server: %w", err)}- d.FinishOutput(checkpoint)- return nil+ if confirmation == nil {+ d.FinishOutput(checkpoint)+ }+ return confirmation, nil}-func runTriggerServer(ctx context.Context, d *internal.Display, sessionID string, inputs []*proto.Content) error {+func runTriggerServer(ctx context.Context, d *internal.Display, sessionID string, inputs []*proto.Content) (*proto.ConfirmationContent, error) {conn, err := connect(triggerServerAddr)if err != nil {- return err+ return nil, err}defer conn.Close()@@ -173,27 +224,35 @@ func runTriggerServer(ctx context.Context, d *internal.Display, sessionID stringInputs: inputs,})if err != nil {- return fmt.Errorf("error triggering session: %w", err)+ return nil, fmt.Errorf("error triggering session: %w", err)}var checkpoint string+ var confirmation *proto.ConfirmationContentfor {resp, err := stream.Recv()if err == io.EOF {break}if err != nil {- return fmt.Errorf("error receiving response: %w", err)+ return nil, fmt.Errorf("error receiving response: %w", err)}if resp.Outputs != nil {+ for _, c := range resp.Outputs {+ if conf := c.GetConfirmation(); conf != nil {+ confirmation = conf+ }+ }displayContents(d, resp.Outputs)}if resp.CheckpointId != "" {checkpoint = resp.CheckpointId}}- d.FinishOutput(checkpoint)- return nil+ if confirmation == nil {+ d.FinishOutput(checkpoint)+ }+ return confirmation, nil}func displayContents(d *internal.Display, contents []*proto.Content) {@@ -201,6 +260,8 @@ func displayContents(d *internal.Display, contents []*proto.Content) {switch o := output.Content.(type) {case *proto.Content_Text:d.DisplayOutput(o.Text.Text)+ case *proto.Content_Confirmation:+ // Let the confirmation prompt handle displaying the question.default:d.DisplayOutput(fmt.Sprintf("unknown output type: %v", o))}diff --git a/examples/local_agent/main.go b/examples/local_agent/main.goindex f1c7450..859cc75 100644--- a/examples/local_agent/main.go+++ b/examples/local_agent/main.go@@ -48,9 +48,6 @@ func main() {c, err := controller.New(ctx, controller.Config{MaxSteps: 10,- ApprovalHandler: func(prompt string) bool {- return true // nothing to approve- },HealthCheck: config.HealthCheckConfig{Enabled: true,Interval: 30 * time.Second,diff --git a/internal/controller/controller.go b/internal/controller/controller.goindex 236c43b..31b7992 100644--- a/internal/controller/controller.go+++ b/internal/controller/controller.go@@ -18,7 +18,6 @@ package controllerimport ("context"- "errors""fmt""sync"@@ -40,21 +39,15 @@ type Controller struct {}// PlannerBuilder is a function that creates a PlanFunc given a Registry.-type PlannerBuilder func(ctx context.Context, r *Registry, h ApprovalHandler) (agent.Agent, error)--// ApprovalHandler is the handler function triggered if an explicit-// user approval is required to continue the controller. For example, it's triggered-// before executing commands.-type ApprovalHandler func(question string) bool+type PlannerBuilder func(ctx context.Context, r *Registry) (agent.Agent, error)// Config configures the controller.type Config struct {EventLogBuilder eventlog.EventLogBuilderPlannerBuilder PlannerBuilder// TODO(jbd): Add CompacterBuilder.- HealthCheck config.HealthCheckConfig- ApprovalHandler ApprovalHandler- MaxSteps int+ HealthCheck config.HealthCheckConfig+ MaxSteps int}// New creates a new controller instance.@@ -63,10 +56,6 @@ func New(ctx context.Context, config Config) (*Controller, error) {config.MaxSteps = 5}- if config.ApprovalHandler == nil {- return nil, errors.New("approval handler is required")- }-if config.EventLogBuilder == nil {config.EventLogBuilder = func(sessionID string) (eventlog.EventLog, error) {return eventlog.NewFileEventLog(eventlog.FileConfig{@@ -91,12 +80,12 @@ func New(ctx context.Context, config Config) (*Controller, error) {// Determine plan function// If no planner builder is provided, use the default Gemini planner.if config.PlannerBuilder == nil {- config.PlannerBuilder = func(ctx context.Context, r *Registry, h ApprovalHandler) (agent.Agent, error) {- return NewGeminiPlanner(ctx, r, h, GeminiPlannerConfig{})+ config.PlannerBuilder = func(ctx context.Context, r *Registry) (agent.Agent, error) {+ return NewGeminiPlanner(ctx, r, GeminiPlannerConfig{})}}- planner, err := config.PlannerBuilder(ctx, registry, config.ApprovalHandler)+ planner, err := config.PlannerBuilder(ctx, registry)if err != nil {return nil, fmt.Errorf("failed to create planner from builder: %w", err)}diff --git a/internal/controller/gemini.go b/internal/controller/gemini.goindex a2e11d3..2a75ea0 100644--- a/internal/controller/gemini.go+++ b/internal/controller/gemini.go@@ -16,6 +16,7 @@ package controllerimport ("context"+ "errors""fmt""os""os/exec"@@ -25,6 +26,7 @@ import ("github.com/google/gar/agent""github.com/google/gar/proto"+ "github.com/google/uuid""google.golang.org/genai")@@ -39,9 +41,9 @@ type GeminiPlannerConfig struct {SystemPrompt string // Custom system prompt (optional)}-func NewGeminiPlanner(ctx context.Context, registry *Registry, h ApprovalHandler, config GeminiPlannerConfig) (agent.Agent, error) {+func NewGeminiPlanner(ctx context.Context, registry *Registry, config GeminiPlannerConfig) (agent.Agent, error) {if config.Timeout == 0 {- config.Timeout = 60 * time.Second+ config.Timeout = 30 * time.Second}if config.Model == "" {config.Model = os.Getenv("GAR_GEMINI_MODEL")@@ -70,10 +72,12 @@ Your job is to:3. If enough work is done, stop to indicate completionGuidelines:-- Choose tools based on their capabilities and the user's needs+- Choose tools based on their capabilities and the user's needs.+- Keep responses concise, don't chat too much about what you can do.- If no suitable tool exists, stop.-- Keep the conversation context in mind when selecting tools-- It's valid not to choose a tool`+- Keep the conversation context in mind when selecting tools.+- It's valid not to choose a tool.+- Once something is approved, try executing it.`}client, err := genai.NewClient(ctx, &genai.ClientConfig{@@ -85,7 +89,7 @@ Guidelines:return &geminiPlannerAgent{client: client,- fsTool: newFilesystemTool(h),+ fsTool: newFilesystemTool(),registry: registry,config: config,}, nil@@ -133,6 +137,9 @@ func (p *geminiPlannerAgent) Process(ctx context.Context, sessionID string, inco// Convert session to conversation historycontents := protoToContents(incoming.Contents)+ ctx, cancel := context.WithTimeout(ctx, p.config.Timeout)+ defer cancel()+resp, err := p.client.Models.GenerateContent(ctx, p.config.Model, contents, &genai.GenerateContentConfig{Tools: tools,ToolConfig: &genai.ToolConfig{@@ -181,10 +188,25 @@ func (p *geminiPlannerAgent) Process(ctx context.Context, sessionID string, incoif fc := part.FunctionCall; fc != nil {switch fc.Name {case fsToolName:+ command, ok := fc.Args["command"].(string)+ if !ok {+ return fmt.Errorf("command parameter missing or invalid in function call")+ }+ question := fmt.Sprintf("Can I execute %q?", command)++ continueProcessing, err := checkCommandApproval(incoming.Contents, question, handler)+ if err != nil {+ return err+ }+ if !continueProcessing {+ return nil+ }+output, err := p.fsTool.executeShellCommand(fc.Args)if err != nil {return err}+return handler(&proto.ProcessResponse{Contents: []*proto.Content{{Role: "assistant",@@ -236,22 +258,45 @@ func protoToContents(inputs []*proto.Content) []*genai.Content {},},})- // TODO(jbd): Handle other content types (e.g., images, files)+ case *proto.Content_Confirmation:+ if m.Confirmation.Question != "" {+ contents = append(contents, &genai.Content{+ Role: "model",+ Parts: []*genai.Part{+ {+ Text: m.Confirmation.Question,+ },+ },+ })+ }+ switch d := m.Confirmation.Decision.(type) {+ case *proto.ConfirmationContent_Decline:+ // should never happen+ case *proto.ConfirmationContent_Approval:+ if d.Approval.Approved {+ contents = append(contents, &genai.Content{+ Role: "user",+ Parts: []*genai.Part{+ {+ Text: "Approved.",+ },+ },+ })+ }+ }}+ // TODO(jbd): Handle other content types (e.g., images, files)}return contents}-func newFilesystemTool(h ApprovalHandler) *filesystemTool {- return &filesystemTool{- approval: h,- }+func newFilesystemTool() *filesystemTool {+ return &filesystemTool{}}// filesystemTool is the built-in tool that allows// planner to operate file system operations.type filesystemTool struct {- approval ApprovalHandler}func (f *filesystemTool) funcDecl() *genai.Tool {@@ -284,14 +329,6 @@ func (f *filesystemTool) executeShellCommand(args map[string]any) (string, errorreturn "", fmt.Errorf("command parameter missing or invalid")}- // Request approval if callback is set- if f.approval != nil {- approved := f.approval(fmt.Sprintf("Can I execute %q?", command))- if !approved {- return fmt.Sprintf("Command execution of %q is rejected by user.", command), nil- }- }-// Execute the command.var cmd *exec.Cmdif runtime.GOOS == "windows" {@@ -303,13 +340,59 @@ func (f *filesystemTool) executeShellCommand(args map[string]any) (string, erroroutput, err := cmd.CombinedOutput()if err != nil {// Return both the error and any output that was produced- return fmt.Sprintf("Error: %v\nOutput: %s", err, output), nil+ return fmt.Sprintf("Error: %v\nOutput: %s\n\n", err, output), nil}- result := strings.TrimSpace(string(output)) + "\n\n"+ result := strings.TrimSpace(string(output))if result == "" {return "Command executed successfully (no output)", nil}+ result += "\n\n"return result, nil}++// checkCommandApproval checks if the user has approved or declined the command.+// It searches backwards through the history for a confirmation request with the same question+// and then looks for the user's response to that confirmation.+// This isn't a true implementation based on id checking, but it's good enough for now.+func checkCommandApproval(history []*proto.Content, question string, handler agent.OutputHandler) (cont bool, err error) {+ // Find the most recent confirmation request testing this question+ var expectedID string+ for i := len(history) - 1; i >= 0; i-- {+ c := history[i]+ if conf := c.GetConfirmation(); conf != nil && c.Role == "assistant" && conf.Question == question {+ expectedID = conf.Id+ break+ }+ }++ if expectedID != "" {+ // Find the user's response to this confirmation ID+ for i := len(history) - 1; i >= 0; i-- {+ c := history[i]+ if conf := c.GetConfirmation(); conf != nil && c.Role == "user" && conf.Id == expectedID {+ if approval := conf.GetApproval(); approval != nil {+ if approval.Approved {+ return true, nil+ }+ }+ return false, errors.New("commands must be already approved before geminiPlannerAgent.Process")+ }+ }+ }++ // Not decided yet, prompt the user for confirmation.+ err = handler(&proto.ProcessResponse{+ Contents: []*proto.Content{{+ Role: "assistant",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: uuid.New().String(),+ Question: question,+ },+ },+ }},+ })+ return false, err+}diff --git a/internal/controller/gemini_test.go b/internal/controller/gemini_test.gonew file mode 100644index 0000000..309f2bb--- /dev/null+++ b/internal/controller/gemini_test.go@@ -0,0 +1,240 @@+// Copyright 2026 Google LLC+//+// Licensed under the Apache License, Version 2.0 (the "License");+// you may not use this file except in compliance with the License.+// You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing, software+// distributed under the License is distributed on an "AS IS" BASIS,+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+// See the License for the specific language governing permissions and+// limitations under the License.++package controller++import (+ "testing"++ "github.com/google/gar/proto"+)++func TestCheckCommandApproval(t *testing.T) {+ question := `Can I execute "ls -la"?`++ tests := []struct {+ name string+ history []*proto.Content+ wantCont bool+ wantErr bool+ wantPrompted bool // whether handler should be called with a confirmation prompt+ }{+ {+ name: "empty history prompts user",+ history: nil,+ wantCont: false,+ wantErr: false,+ wantPrompted: true,+ },+ {+ name: "no matching confirmation prompts user",+ history: []*proto.Content{+ {Role: "user", Content: &proto.Content_Text{Text: &proto.TextContent{Text: "hello"}}},+ {Role: "assistant", Content: &proto.Content_Text{Text: &proto.TextContent{Text: "hi"}}},+ },+ wantCont: false,+ wantErr: false,+ wantPrompted: true,+ },+ {+ name: "broken history",+ history: []*proto.Content{+ {Role: "user", Content: &proto.Content_Text{Text: &proto.TextContent{Text: "hello"}}},+ {Role: "assistant", Content: &proto.Content_Text{Text: &proto.TextContent{Text: "hi"}}},+ {+ Role: "user",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "conf-1",+ Decision: &proto.ConfirmationContent_Approval{+ Approval: &proto.ApprovalDecision{Approved: true},+ },+ },+ },+ },+ },+ wantCont: false,+ wantErr: false,+ wantPrompted: true,+ },+ {+ name: "matching confirmation with approval continues",+ history: []*proto.Content{+ {+ Role: "assistant",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "conf-1",+ Question: question,+ },+ },+ },+ {+ Role: "user",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "conf-1",+ Decision: &proto.ConfirmationContent_Approval{+ Approval: &proto.ApprovalDecision{Approved: true},+ },+ },+ },+ },+ },+ wantCont: true,+ wantErr: false,+ wantPrompted: false,+ },+ {+ name: "matching confirmation with decline returns error",+ history: []*proto.Content{+ {+ Role: "assistant",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "conf-2",+ Question: question,+ },+ },+ },+ {+ Role: "user",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "conf-2",+ Decision: &proto.ConfirmationContent_Decline{+ Decline: &proto.DeclineDecision{Declined: true},+ },+ },+ },+ },+ },+ wantCont: false,+ wantErr: true,+ wantPrompted: false,+ },+ {+ name: "confirmation for different question prompts user",+ history: []*proto.Content{+ {+ Role: "assistant",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "conf-3",+ Question: `Can I execute "rm -rf /"?`,+ },+ },+ },+ {+ Role: "user",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "conf-3",+ Decision: &proto.ConfirmationContent_Approval{+ Approval: &proto.ApprovalDecision{Approved: true},+ },+ },+ },+ },+ },+ wantCont: false,+ wantErr: false,+ wantPrompted: true,+ },+ {+ name: "confirmation asked but no response yet prompts user",+ history: []*proto.Content{+ {+ Role: "assistant",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "conf-4",+ Question: question,+ },+ },+ },+ },+ wantCont: false,+ wantErr: false,+ wantPrompted: true,+ },+ {+ name: "response with mismatched ID prompts user again",+ history: []*proto.Content{+ {+ Role: "assistant",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "conf-5",+ Question: question,+ },+ },+ },+ {+ Role: "user",+ Content: &proto.Content_Confirmation{+ Confirmation: &proto.ConfirmationContent{+ Id: "wrong-id",+ Decision: &proto.ConfirmationContent_Approval{+ Approval: &proto.ApprovalDecision{Approved: true},+ },+ },+ },+ },+ },+ wantCont: false,+ wantErr: false,+ wantPrompted: true,+ },+ }++ for _, tc := range tests {+ t.Run(tc.name, func(t *testing.T) {+ var prompted bool+ handler := func(resp *proto.ProcessResponse) error {+ prompted = true+ // Verify the prompt contains a confirmation with the question+ if len(resp.Contents) != 1 {+ t.Fatalf("expected 1 content in prompt, got %d", len(resp.Contents))+ }+ conf := resp.Contents[0].GetConfirmation()+ if conf == nil {+ t.Fatal("expected confirmation content in prompt")+ }+ if conf.Question != question {+ t.Errorf("expected question %q, got %q", question, conf.Question)+ }+ if conf.Id == "" {+ t.Error("expected non-empty confirmation ID")+ }+ return nil+ }++ cont, err := checkCommandApproval(tc.history, question, handler)++ if tc.wantErr && err == nil {+ t.Error("expected error, got nil")+ }+ if !tc.wantErr && err != nil {+ t.Errorf("unexpected error: %v", err)+ }+ if cont != tc.wantCont {+ t.Errorf("expected cont=%v, got %v", tc.wantCont, cont)+ }+ if prompted != tc.wantPrompted {+ t.Errorf("expected prompted=%v, got %v", tc.wantPrompted, prompted)+ }+ })+ }+}diff --git a/internal/controller/loop.go b/internal/controller/loop.goindex be268a4..1a2b1a4 100644--- a/internal/controller/loop.go+++ b/internal/controller/loop.go@@ -78,10 +78,19 @@ func (e *LoopExecutor) runLoop(ctx context.Context, session *Session, incoming *for _, agentID := range session.WaitingAgents() {buffer := session.WaitingBuffer(agentID)_ = buffer- // TODO(jbd): Run the agent with session history and buffer as input.+return fmt.Errorf("resuming waiting agents is not yet supported")}+ // Ensure the last confirmation question was answered.+ exitLoop, err := e.handleConfirmation(ctx, session, incoming, handler)+ if err != nil {+ return err+ }+ if exitLoop {+ return nil+ }+// Write the new inputs to the event log.if err := session.WriteContent(ctx, "", incoming.CheckpointId, incoming.Contents); err != nil {return fmt.Errorf("failed to write input content: %w", err)@@ -175,3 +184,67 @@ func (e *LoopExecutor) runAgent(ctx context.Context, session *Session, agentID s}return handoff, nil}++// handleConfirmation checks if the session is waiting for a confirmation response,+// and if so, verifies that the incoming request provides a matching response.+// It returns a boolean indicating whether the loop should stop early, and an error.+func (e *LoopExecutor) handleConfirmation(ctx context.Context, session *Session, incoming *proto.ProcessRequest, handler agent.OutputHandler) (exitLoop bool, err error) {+ history := session.History()+ if len(history) == 0 {+ return false, nil+ }+ lastMsg := history[len(history)-1]+ confReq := lastMsg.GetConfirmation()+ if confReq == nil {+ // not a confirmation question or answer+ return false, nil+ }++ if lastMsg.Role != "assistant" || confReq.Id == "" || confReq.Question == "" {+ // not a confirmation question+ return false, nil+ }++ // Require the first incoming content to be the confirmation response+ if len(incoming.Contents) == 0 {+ return true, handler(&proto.ProcessResponse{+ Contents: []*proto.Content{lastMsg},+ })+ }++ confResp := incoming.Contents[0].GetConfirmation()+ if confResp == nil || (confResp.GetApproval() == nil && confResp.GetDecline() == nil) {+ return true, handler(&proto.ProcessResponse{+ Contents: []*proto.Content{lastMsg},+ })+ }++ if confResp.Id != confReq.Id {+ return true, handler(&proto.ProcessResponse{+ Contents: []*proto.Content{lastMsg},+ })+ }+ if confResp.GetDecline() != nil {+ out := []*proto.Content{{+ Role: "assistant",+ Content: &proto.Content_Text{+ // Respond with "Ok" instead of the rejection decision+ // to ensure the loop isn't stuck on that rejection decision.+ // Models keep rejecting the confirmation in the lifetime+ // of a session otherwise. Given we are explicitly asking+ // for confirmation, this is safe.+ Text: &proto.TextContent{Text: "Ok."},+ },+ }}++ if err := session.WriteContent(ctx, plannerAgentID, "", out); err != nil {+ return true, fmt.Errorf("failed to write content: %w", err)+ }+ return true, handler(&proto.ProcessResponse{Contents: out})+ }+ // TODO(jbd): We can consider directly supporting+ // handing off to the agent that asked the question.+ // Planner should be able to handoff to the correct agent+ // if it's good enough.+ return false, nil+}diff --git a/proto/gar.pb.go b/proto/gar.pb.goindex 1452204..96fe373 100644--- a/proto/gar.pb.go+++ b/proto/gar.pb.go@@ -259,6 +259,191 @@ func (x *TextContent) GetText() string {return ""}+type ApprovalDecision struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Approved bool `protobuf:"varint,1,opt,name=approved,proto3" json:"approved,omitempty"`+}++func (x *ApprovalDecision) Reset() {+ *x = ApprovalDecision{}+ mi := &file_proto_gar_proto_msgTypes[3]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *ApprovalDecision) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ApprovalDecision) ProtoMessage() {}++func (x *ApprovalDecision) ProtoReflect() protoreflect.Message {+ mi := &file_proto_gar_proto_msgTypes[3]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ApprovalDecision.ProtoReflect.Descriptor instead.+func (*ApprovalDecision) Descriptor() ([]byte, []int) {+ return file_proto_gar_proto_rawDescGZIP(), []int{3}+}++func (x *ApprovalDecision) GetApproved() bool {+ if x != nil {+ return x.Approved+ }+ return false+}++type DeclineDecision struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Declined bool `protobuf:"varint,1,opt,name=declined,proto3" json:"declined,omitempty"`+}++func (x *DeclineDecision) Reset() {+ *x = DeclineDecision{}+ mi := &file_proto_gar_proto_msgTypes[4]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *DeclineDecision) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DeclineDecision) ProtoMessage() {}++func (x *DeclineDecision) ProtoReflect() protoreflect.Message {+ mi := &file_proto_gar_proto_msgTypes[4]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use DeclineDecision.ProtoReflect.Descriptor instead.+func (*DeclineDecision) Descriptor() ([]byte, []int) {+ return file_proto_gar_proto_rawDescGZIP(), []int{4}+}++func (x *DeclineDecision) GetDeclined() bool {+ if x != nil {+ return x.Declined+ }+ return false+}++type ConfirmationContent struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`+ Question string `protobuf:"bytes,4,opt,name=question,proto3" json:"question,omitempty"`+ // Types that are assignable to Decision:+ //+ // *ConfirmationContent_Approval+ // *ConfirmationContent_Decline+ Decision isConfirmationContent_Decision `protobuf_oneof:"decision"`+}++func (x *ConfirmationContent) Reset() {+ *x = ConfirmationContent{}+ mi := &file_proto_gar_proto_msgTypes[5]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *ConfirmationContent) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ConfirmationContent) ProtoMessage() {}++func (x *ConfirmationContent) ProtoReflect() protoreflect.Message {+ mi := &file_proto_gar_proto_msgTypes[5]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ConfirmationContent.ProtoReflect.Descriptor instead.+func (*ConfirmationContent) Descriptor() ([]byte, []int) {+ return file_proto_gar_proto_rawDescGZIP(), []int{5}+}++func (x *ConfirmationContent) GetId() string {+ if x != nil {+ return x.Id+ }+ return ""+}++func (x *ConfirmationContent) GetQuestion() string {+ if x != nil {+ return x.Question+ }+ return ""+}++func (m *ConfirmationContent) GetDecision() isConfirmationContent_Decision {+ if m != nil {+ return m.Decision+ }+ return nil+}++func (x *ConfirmationContent) GetApproval() *ApprovalDecision {+ if x, ok := x.GetDecision().(*ConfirmationContent_Approval); ok {+ return x.Approval+ }+ return nil+}++func (x *ConfirmationContent) GetDecline() *DeclineDecision {+ if x, ok := x.GetDecision().(*ConfirmationContent_Decline); ok {+ return x.Decline+ }+ return nil+}++type isConfirmationContent_Decision interface {+ isConfirmationContent_Decision()+}++type ConfirmationContent_Approval struct {+ Approval *ApprovalDecision `protobuf:"bytes,5,opt,name=approval,proto3,oneof"`+}++type ConfirmationContent_Decline struct {+ Decline *DeclineDecision `protobuf:"bytes,6,opt,name=decline,proto3,oneof"`+}++func (*ConfirmationContent_Approval) isConfirmationContent_Decision() {}++func (*ConfirmationContent_Decline) isConfirmationContent_Decision() {}+// Content represents a message with role, type, mimetype, and data fieldstype Content struct {state protoimpl.MessageState@@ -268,13 +453,14 @@ type Content struct {// Types that are assignable to Content://// *Content_Text+ // *Content_ConfirmationContent isContent_Content `protobuf_oneof:"content"`Role string `protobuf:"bytes,1000,opt,name=role,proto3" json:"role,omitempty"` // The role of the content (e.g., "user", "assistant", "system")}func (x *Content) Reset() {*x = Content{}- mi := &file_proto_gar_proto_msgTypes[3]+ mi := &file_proto_gar_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -286,7 +472,7 @@ func (x *Content) String() string {func (*Content) ProtoMessage() {}func (x *Content) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[3]+ mi := &file_proto_gar_proto_msgTypes[6]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -299,7 +485,7 @@ func (x *Content) ProtoReflect() protoreflect.Message {// Deprecated: Use Content.ProtoReflect.Descriptor instead.func (*Content) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{3}+ return file_proto_gar_proto_rawDescGZIP(), []int{6}}func (m *Content) GetContent() isContent_Content {@@ -316,6 +502,13 @@ func (x *Content) GetText() *TextContent {return nil}+func (x *Content) GetConfirmation() *ConfirmationContent {+ if x, ok := x.GetContent().(*Content_Confirmation); ok {+ return x.Confirmation+ }+ return nil+}+func (x *Content) GetRole() string {if x != nil {return x.Role@@ -331,8 +524,14 @@ type Content_Text struct {Text *TextContent `protobuf:"bytes,10,opt,name=text,proto3,oneof"`}+type Content_Confirmation struct {+ Confirmation *ConfirmationContent `protobuf:"bytes,26,opt,name=confirmation,proto3,oneof"`+}+func (*Content_Text) isContent_Content() {}+func (*Content_Confirmation) isContent_Content() {}+// Event that represents a session state change.// Some sessions may not be resumable based on their latest state.// For example, controller doesn't continue a session once@@ -347,7 +546,7 @@ type SessionStateEvent struct {func (x *SessionStateEvent) Reset() {*x = SessionStateEvent{}- mi := &file_proto_gar_proto_msgTypes[4]+ mi := &file_proto_gar_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -359,7 +558,7 @@ func (x *SessionStateEvent) String() string {func (*SessionStateEvent) ProtoMessage() {}func (x *SessionStateEvent) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[4]+ mi := &file_proto_gar_proto_msgTypes[7]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -372,7 +571,7 @@ func (x *SessionStateEvent) ProtoReflect() protoreflect.Message {// Deprecated: Use SessionStateEvent.ProtoReflect.Descriptor instead.func (*SessionStateEvent) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{4}+ return file_proto_gar_proto_rawDescGZIP(), []int{7}}func (x *SessionStateEvent) GetState() State {@@ -395,7 +594,7 @@ type AgentCallEvent struct {func (x *AgentCallEvent) Reset() {*x = AgentCallEvent{}- mi := &file_proto_gar_proto_msgTypes[5]+ mi := &file_proto_gar_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -407,7 +606,7 @@ func (x *AgentCallEvent) String() string {func (*AgentCallEvent) ProtoMessage() {}func (x *AgentCallEvent) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[5]+ mi := &file_proto_gar_proto_msgTypes[8]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -420,7 +619,7 @@ func (x *AgentCallEvent) ProtoReflect() protoreflect.Message {// Deprecated: Use AgentCallEvent.ProtoReflect.Descriptor instead.func (*AgentCallEvent) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{5}+ return file_proto_gar_proto_rawDescGZIP(), []int{8}}func (x *AgentCallEvent) GetSender() string {@@ -459,7 +658,7 @@ type HandoffEvent struct {func (x *HandoffEvent) Reset() {*x = HandoffEvent{}- mi := &file_proto_gar_proto_msgTypes[6]+ mi := &file_proto_gar_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -471,7 +670,7 @@ func (x *HandoffEvent) String() string {func (*HandoffEvent) ProtoMessage() {}func (x *HandoffEvent) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[6]+ mi := &file_proto_gar_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -484,7 +683,7 @@ func (x *HandoffEvent) ProtoReflect() protoreflect.Message {// Deprecated: Use HandoffEvent.ProtoReflect.Descriptor instead.func (*HandoffEvent) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{6}+ return file_proto_gar_proto_rawDescGZIP(), []int{9}}func (x *HandoffEvent) GetSourceAgentId() string {@@ -520,7 +719,7 @@ type ContentEvent struct {func (x *ContentEvent) Reset() {*x = ContentEvent{}- mi := &file_proto_gar_proto_msgTypes[7]+ mi := &file_proto_gar_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -532,7 +731,7 @@ func (x *ContentEvent) String() string {func (*ContentEvent) ProtoMessage() {}func (x *ContentEvent) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[7]+ mi := &file_proto_gar_proto_msgTypes[10]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -545,7 +744,7 @@ func (x *ContentEvent) ProtoReflect() protoreflect.Message {// Deprecated: Use ContentEvent.ProtoReflect.Descriptor instead.func (*ContentEvent) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{7}+ return file_proto_gar_proto_rawDescGZIP(), []int{10}}func (x *ContentEvent) GetContents() []*Content {@@ -580,7 +779,7 @@ type Event struct {func (x *Event) Reset() {*x = Event{}- mi := &file_proto_gar_proto_msgTypes[8]+ mi := &file_proto_gar_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -592,7 +791,7 @@ func (x *Event) String() string {func (*Event) ProtoMessage() {}func (x *Event) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[8]+ mi := &file_proto_gar_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -605,7 +804,7 @@ func (x *Event) ProtoReflect() protoreflect.Message {// Deprecated: Use Event.ProtoReflect.Descriptor instead.func (*Event) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{8}+ return file_proto_gar_proto_rawDescGZIP(), []int{11}}func (x *Event) GetSessionId() string {@@ -722,7 +921,7 @@ type HealthCheckRequest struct {func (x *HealthCheckRequest) Reset() {*x = HealthCheckRequest{}- mi := &file_proto_gar_proto_msgTypes[9]+ mi := &file_proto_gar_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -734,7 +933,7 @@ func (x *HealthCheckRequest) String() string {func (*HealthCheckRequest) ProtoMessage() {}func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[9]+ mi := &file_proto_gar_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -747,7 +946,7 @@ func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.func (*HealthCheckRequest) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{9}+ return file_proto_gar_proto_rawDescGZIP(), []int{12}}// HealthCheckResponse contains agent health status@@ -762,7 +961,7 @@ type HealthCheckResponse struct {func (x *HealthCheckResponse) Reset() {*x = HealthCheckResponse{}- mi := &file_proto_gar_proto_msgTypes[10]+ mi := &file_proto_gar_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -774,7 +973,7 @@ func (x *HealthCheckResponse) String() string {func (*HealthCheckResponse) ProtoMessage() {}func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[10]+ mi := &file_proto_gar_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -787,7 +986,7 @@ func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.func (*HealthCheckResponse) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{10}+ return file_proto_gar_proto_rawDescGZIP(), []int{13}}func (x *HealthCheckResponse) GetHealthy() bool {@@ -816,7 +1015,7 @@ type TriggerSessionRequest struct {func (x *TriggerSessionRequest) Reset() {*x = TriggerSessionRequest{}- mi := &file_proto_gar_proto_msgTypes[11]+ mi := &file_proto_gar_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -828,7 +1027,7 @@ func (x *TriggerSessionRequest) String() string {func (*TriggerSessionRequest) ProtoMessage() {}func (x *TriggerSessionRequest) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[11]+ mi := &file_proto_gar_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -841,7 +1040,7 @@ func (x *TriggerSessionRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use TriggerSessionRequest.ProtoReflect.Descriptor instead.func (*TriggerSessionRequest) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{11}+ return file_proto_gar_proto_rawDescGZIP(), []int{14}}func (x *TriggerSessionRequest) GetSessionId() string {@@ -872,7 +1071,7 @@ type TriggerSessionResponse struct {func (x *TriggerSessionResponse) Reset() {*x = TriggerSessionResponse{}- mi := &file_proto_gar_proto_msgTypes[12]+ mi := &file_proto_gar_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -884,7 +1083,7 @@ func (x *TriggerSessionResponse) String() string {func (*TriggerSessionResponse) ProtoMessage() {}func (x *TriggerSessionResponse) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[12]+ mi := &file_proto_gar_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -897,7 +1096,7 @@ func (x *TriggerSessionResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use TriggerSessionResponse.ProtoReflect.Descriptor instead.func (*TriggerSessionResponse) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{12}+ return file_proto_gar_proto_rawDescGZIP(), []int{15}}func (x *TriggerSessionResponse) GetSessionId() string {@@ -940,7 +1139,7 @@ type ForkSessionRequest struct {func (x *ForkSessionRequest) Reset() {*x = ForkSessionRequest{}- mi := &file_proto_gar_proto_msgTypes[13]+ mi := &file_proto_gar_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -952,7 +1151,7 @@ func (x *ForkSessionRequest) String() string {func (*ForkSessionRequest) ProtoMessage() {}func (x *ForkSessionRequest) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[13]+ mi := &file_proto_gar_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -965,7 +1164,7 @@ func (x *ForkSessionRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ForkSessionRequest.ProtoReflect.Descriptor instead.func (*ForkSessionRequest) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{13}+ return file_proto_gar_proto_rawDescGZIP(), []int{16}}func (x *ForkSessionRequest) GetSrcSessionId() string {@@ -999,7 +1198,7 @@ type ForkSessionResponse struct {func (x *ForkSessionResponse) Reset() {*x = ForkSessionResponse{}- mi := &file_proto_gar_proto_msgTypes[14]+ mi := &file_proto_gar_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1011,7 +1210,7 @@ func (x *ForkSessionResponse) String() string {func (*ForkSessionResponse) ProtoMessage() {}func (x *ForkSessionResponse) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[14]+ mi := &file_proto_gar_proto_msgTypes[17]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1024,7 +1223,7 @@ func (x *ForkSessionResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ForkSessionResponse.ProtoReflect.Descriptor instead.func (*ForkSessionResponse) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{14}+ return file_proto_gar_proto_rawDescGZIP(), []int{17}}func (x *ForkSessionResponse) GetNewSessionId() string {@@ -1044,7 +1243,7 @@ type RemoteAgentConfig struct {func (x *RemoteAgentConfig) Reset() {*x = RemoteAgentConfig{}- mi := &file_proto_gar_proto_msgTypes[15]+ mi := &file_proto_gar_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1056,7 +1255,7 @@ func (x *RemoteAgentConfig) String() string {func (*RemoteAgentConfig) ProtoMessage() {}func (x *RemoteAgentConfig) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[15]+ mi := &file_proto_gar_proto_msgTypes[18]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1069,7 +1268,7 @@ func (x *RemoteAgentConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use RemoteAgentConfig.ProtoReflect.Descriptor instead.func (*RemoteAgentConfig) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{15}+ return file_proto_gar_proto_rawDescGZIP(), []int{18}}func (x *RemoteAgentConfig) GetAddress() string {@@ -1097,7 +1296,7 @@ type RegisterAgentRequest struct {func (x *RegisterAgentRequest) Reset() {*x = RegisterAgentRequest{}- mi := &file_proto_gar_proto_msgTypes[16]+ mi := &file_proto_gar_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1109,7 +1308,7 @@ func (x *RegisterAgentRequest) String() string {func (*RegisterAgentRequest) ProtoMessage() {}func (x *RegisterAgentRequest) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[16]+ mi := &file_proto_gar_proto_msgTypes[19]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1122,7 +1321,7 @@ func (x *RegisterAgentRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use RegisterAgentRequest.ProtoReflect.Descriptor instead.func (*RegisterAgentRequest) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{16}+ return file_proto_gar_proto_rawDescGZIP(), []int{19}}func (x *RegisterAgentRequest) GetAgentId() string {@@ -1186,7 +1385,7 @@ type RegisterAgentResponse struct {func (x *RegisterAgentResponse) Reset() {*x = RegisterAgentResponse{}- mi := &file_proto_gar_proto_msgTypes[17]+ mi := &file_proto_gar_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1198,7 +1397,7 @@ func (x *RegisterAgentResponse) String() string {func (*RegisterAgentResponse) ProtoMessage() {}func (x *RegisterAgentResponse) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[17]+ mi := &file_proto_gar_proto_msgTypes[20]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1211,7 +1410,7 @@ func (x *RegisterAgentResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use RegisterAgentResponse.ProtoReflect.Descriptor instead.func (*RegisterAgentResponse) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{17}+ return file_proto_gar_proto_rawDescGZIP(), []int{20}}// UnregisterAgentRequest for unregistering an agent@@ -1225,7 +1424,7 @@ type UnregisterAgentRequest struct {func (x *UnregisterAgentRequest) Reset() {*x = UnregisterAgentRequest{}- mi := &file_proto_gar_proto_msgTypes[18]+ mi := &file_proto_gar_proto_msgTypes[21]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1237,7 +1436,7 @@ func (x *UnregisterAgentRequest) String() string {func (*UnregisterAgentRequest) ProtoMessage() {}func (x *UnregisterAgentRequest) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[18]+ mi := &file_proto_gar_proto_msgTypes[21]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1250,7 +1449,7 @@ func (x *UnregisterAgentRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use UnregisterAgentRequest.ProtoReflect.Descriptor instead.func (*UnregisterAgentRequest) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{18}+ return file_proto_gar_proto_rawDescGZIP(), []int{21}}func (x *UnregisterAgentRequest) GetAgentId() string {@@ -1269,7 +1468,7 @@ type UnregisterAgentResponse struct {func (x *UnregisterAgentResponse) Reset() {*x = UnregisterAgentResponse{}- mi := &file_proto_gar_proto_msgTypes[19]+ mi := &file_proto_gar_proto_msgTypes[22]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1281,7 +1480,7 @@ func (x *UnregisterAgentResponse) String() string {func (*UnregisterAgentResponse) ProtoMessage() {}func (x *UnregisterAgentResponse) ProtoReflect() protoreflect.Message {- mi := &file_proto_gar_proto_msgTypes[19]+ mi := &file_proto_gar_proto_msgTypes[22]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1294,7 +1493,7 @@ func (x *UnregisterAgentResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use UnregisterAgentResponse.ProtoReflect.Descriptor instead.func (*UnregisterAgentResponse) Descriptor() ([]byte, []int) {- return file_proto_gar_proto_rawDescGZIP(), []int{19}+ return file_proto_gar_proto_rawDescGZIP(), []int{22}}var File_proto_gar_proto protoreflect.FileDescriptor@@ -1321,175 +1520,199 @@ var file_proto_gar_proto_rawDesc = []byte{0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x22, 0x33, 0x0a, 0x0b, 0x54, 0x65, 0x78, 0x74, 0x43, 0x6f,0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20,0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a,- 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x65, 0x0a, 0x07, 0x43,- 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x65, 0x78,- 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74,- 0x12, 0x13, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,- 0x4a, 0x04, 0x08, 0x01, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0b,- 0x10, 0x1a, 0x22, 0x37, 0x0a, 0x11, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,- 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53,- 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x0e,- 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x16,- 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,- 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,- 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,- 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,- 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6d,- 0x6f, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x77, 0x61, 0x69, 0x74,- 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x72, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08,- 0x02, 0x10, 0x03, 0x22, 0x96, 0x01, 0x0a, 0x0c, 0x48, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x45,- 0x76, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61,- 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f,- 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18,- 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x67, 0x65,- 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73,- 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43,- 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73,- 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x3a, 0x0a, 0x0c,- 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x08,- 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e,- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08,- 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa1, 0x04, 0x0a, 0x05, 0x45, 0x76, 0x65,- 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49,- 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f,- 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70,- 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72,- 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e,- 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65,- 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64,- 0x65, 0x72, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,- 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,- 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4d,- 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x6d,- 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,- 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,- 0x6c, 0x6c, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4a, 0x0a,- 0x13, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x65,- 0x76, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45,- 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53,- 0x74, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x10, 0x61, 0x67, 0x65,- 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x67, 0x65, 0x6e,- 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x67,- 0x65, 0x6e, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x0d,- 0x68, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x61, 0x6e, 0x64,- 0x6f, 0x66, 0x66, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x68, 0x61, 0x6e, 0x64,- 0x6f, 0x66, 0x66, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74,- 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45,- 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45,- 0x76, 0x65, 0x6e, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x14, 0x0a, 0x12,- 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x22, 0x49, 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63,- 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x61,- 0x6c, 0x74, 0x68, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c,- 0x74, 0x68, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5e, 0x0a,- 0x15, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,- 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73,- 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18,- 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f,- 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x22, 0xaa, 0x01,- 0x0a, 0x16, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73,- 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65,- 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b,- 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,- 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x07,- 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x6f,- 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18,- 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74,- 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x12, 0x46,- 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x72, 0x63, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,- 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x72, 0x63, 0x53, 0x65,- 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x72, 0x63, 0x5f, 0x63,- 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x0f, 0x73, 0x72, 0x63, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e,- 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x73, 0x73,- 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65,- 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x13, 0x46,- 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,- 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x53,- 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f,- 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a,- 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,- 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xa9, 0x02, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69,- 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,- 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,- 0x6e, 0x12, 0x45, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20,- 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69,- 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08,- 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f,- 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,- 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66,- 0x69, 0x67, 0x48, 0x00, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x1a, 0x3b, 0x0a, 0x0d,- 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,- 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,- 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,- 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41,- 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x0a, 0x16,- 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f,- 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49,- 0x64, 0x22, 0x19, 0x0a, 0x17, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41,- 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x58, 0x0a, 0x05,- 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55,- 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d,- 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12,- 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10,- 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c,- 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x32, 0x92, 0x01, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74,- 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x63, 0x65,- 0x73, 0x73, 0x12, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65,- 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,- 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43,- 0x68, 0x65, 0x63, 0x6b, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61,- 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68,- 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc1, 0x02, 0x0a, 0x0a,- 0x47, 0x41, 0x52, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x54, 0x72,- 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73,- 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x2e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,- 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0b, 0x46,- 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x2e, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x6f,- 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,- 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65,- 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73,- 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,- 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a,- 0x0f, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74,- 0x12, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73,- 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,- 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42,- 0x1d, 0x5a, 0x1b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,- 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x67, 0x61, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x2e, 0x0a, 0x10, 0x41,+ 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12,+ 0x1a, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x22, 0x3b, 0x0a, 0x0f, 0x44,+ 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a,+ 0x0a, 0x08, 0x64, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,+ 0x52, 0x08, 0x64, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03,+ 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xca, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6e,+ 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,+ 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,+ 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x08,+ 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x44,+ 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f,+ 0x76, 0x61, 0x6c, 0x12, 0x32, 0x0a, 0x07, 0x64, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x06,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x63,+ 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x07,+ 0x64, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x73,+ 0x69, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x52,+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,+ 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x43, 0x6f, 0x6e, 0x74,+ 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x63,+ 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x1a, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72,+ 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52,+ 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a,+ 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f,+ 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4a, 0x04, 0x08,+ 0x01, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0b, 0x10, 0x1a, 0x22,+ 0x37, 0x0a, 0x11, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45,+ 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74,+ 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x0e, 0x41, 0x67, 0x65,+ 0x6e, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73,+ 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e,+ 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18,+ 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f,+ 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12,+ 0x23, 0x0a, 0x0d, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x6f, 0x72, 0x65,+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67,+ 0x4d, 0x6f, 0x72, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03,+ 0x22, 0x96, 0x01, 0x0a, 0x0c, 0x48, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x45, 0x76, 0x65, 0x6e,+ 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x67, 0x65, 0x6e,+ 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72,+ 0x63, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x61, 0x72,+ 0x67, 0x65, 0x74, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49,+ 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20,+ 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74,+ 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x4a, 0x04, 0x08,+ 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x3a, 0x0a, 0x0c, 0x43, 0x6f, 0x6e,+ 0x74, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e,+ 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e,+ 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa1, 0x04, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,+ 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23,+ 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e,+ 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72,+ 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x69,+ 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49,+ 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,+ 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4d, 0x0a, 0x14, 0x63,+ 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,+ 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,+ 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,+ 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65,+ 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x65,+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e,+ 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,+ 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e,+ 0x74, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74,+ 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x10, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f,+ 0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x61,+ 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74,+ 0x43, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x0d, 0x68, 0x61, 0x6e,+ 0x64, 0x6f, 0x66, 0x66, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66,+ 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x68, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66,+ 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,+ 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e,+ 0x74, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e,+ 0x74, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x48, 0x65, 0x61,+ 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,+ 0x49, 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68,+ 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79,+ 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5e, 0x0a, 0x15, 0x54, 0x72,+ 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69,+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,+ 0x49, 0x64, 0x12, 0x26, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03,+ 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65,+ 0x6e, 0x74, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x22, 0xaa, 0x01, 0x0a, 0x16, 0x54,+ 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,+ 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69,+ 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69,+ 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x65,+ 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x6f, 0x75, 0x74,+ 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70,+ 0x75, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65,+ 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x12, 0x46, 0x6f, 0x72, 0x6b,+ 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24,+ 0x0a, 0x0e, 0x73, 0x72, 0x63, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x72, 0x63, 0x53, 0x65, 0x73, 0x73, 0x69,+ 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x72, 0x63, 0x5f, 0x63, 0x68, 0x65, 0x63,+ 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0f, 0x73, 0x72, 0x63, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64,+ 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,+ 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x73, 0x74, 0x53,+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x13, 0x46, 0x6f, 0x72, 0x6b,+ 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,+ 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69,+ 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x53, 0x65, 0x73, 0x73,+ 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x41,+ 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64,+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64,+ 0x72, 0x65, 0x73, 0x73, 0x22, 0xa9, 0x02, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65,+ 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a,+ 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b,+ 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45,+ 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,+ 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65,+ 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x65,+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74,+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18,+ 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65,+ 0x6d, 0x6f, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48,+ 0x00, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74,+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,+ 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,+ 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x22, 0x17, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e,+ 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x0a, 0x16, 0x55, 0x6e, 0x72,+ 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x19,+ 0x0a, 0x17, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e,+ 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x58, 0x0a, 0x05, 0x53, 0x74, 0x61,+ 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41,+ 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c,+ 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x13,+ 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45,+ 0x44, 0x10, 0x03, 0x32, 0x92, 0x01, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72,+ 0x76, 0x69, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12,+ 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50,+ 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01,+ 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63,+ 0x6b, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68,+ 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc1, 0x02, 0x0a, 0x0a, 0x47, 0x41, 0x52,+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x54, 0x72, 0x69, 0x67, 0x67,+ 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x2e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,+ 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0b, 0x46, 0x6f, 0x72, 0x6b,+ 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,+ 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x6f, 0x72, 0x6b, 0x53,+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a,+ 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12,+ 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,+ 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65,+ 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0f, 0x55, 0x6e,+ 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,+ 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41,+ 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1d, 0x5a, 0x1b,+ 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,+ 0x65, 0x2f, 0x67, 0x61, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x33,}var (@@ -1505,68 +1728,74 @@ func file_proto_gar_proto_rawDescGZIP() []byte {}var file_proto_gar_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_proto_gar_proto_msgTypes = make([]protoimpl.MessageInfo, 21)+var file_proto_gar_proto_msgTypes = make([]protoimpl.MessageInfo, 24)var file_proto_gar_proto_goTypes = []any{(State)(0), // 0: proto.State(*ProcessRequest)(nil), // 1: proto.ProcessRequest(*ProcessResponse)(nil), // 2: proto.ProcessResponse(*TextContent)(nil), // 3: proto.TextContent- (*Content)(nil), // 4: proto.Content- (*SessionStateEvent)(nil), // 5: proto.SessionStateEvent- (*AgentCallEvent)(nil), // 6: proto.AgentCallEvent- (*HandoffEvent)(nil), // 7: proto.HandoffEvent- (*ContentEvent)(nil), // 8: proto.ContentEvent- (*Event)(nil), // 9: proto.Event- (*HealthCheckRequest)(nil), // 10: proto.HealthCheckRequest- (*HealthCheckResponse)(nil), // 11: proto.HealthCheckResponse- (*TriggerSessionRequest)(nil), // 12: proto.TriggerSessionRequest- (*TriggerSessionResponse)(nil), // 13: proto.TriggerSessionResponse- (*ForkSessionRequest)(nil), // 14: proto.ForkSessionRequest- (*ForkSessionResponse)(nil), // 15: proto.ForkSessionResponse- (*RemoteAgentConfig)(nil), // 16: proto.RemoteAgentConfig- (*RegisterAgentRequest)(nil), // 17: proto.RegisterAgentRequest- (*RegisterAgentResponse)(nil), // 18: proto.RegisterAgentResponse- (*UnregisterAgentRequest)(nil), // 19: proto.UnregisterAgentRequest- (*UnregisterAgentResponse)(nil), // 20: proto.UnregisterAgentResponse- nil, // 21: proto.RegisterAgentRequest.MetadataEntry- (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp+ (*ApprovalDecision)(nil), // 4: proto.ApprovalDecision+ (*DeclineDecision)(nil), // 5: proto.DeclineDecision+ (*ConfirmationContent)(nil), // 6: proto.ConfirmationContent+ (*Content)(nil), // 7: proto.Content+ (*SessionStateEvent)(nil), // 8: proto.SessionStateEvent+ (*AgentCallEvent)(nil), // 9: proto.AgentCallEvent+ (*HandoffEvent)(nil), // 10: proto.HandoffEvent+ (*ContentEvent)(nil), // 11: proto.ContentEvent+ (*Event)(nil), // 12: proto.Event+ (*HealthCheckRequest)(nil), // 13: proto.HealthCheckRequest+ (*HealthCheckResponse)(nil), // 14: proto.HealthCheckResponse+ (*TriggerSessionRequest)(nil), // 15: proto.TriggerSessionRequest+ (*TriggerSessionResponse)(nil), // 16: proto.TriggerSessionResponse+ (*ForkSessionRequest)(nil), // 17: proto.ForkSessionRequest+ (*ForkSessionResponse)(nil), // 18: proto.ForkSessionResponse+ (*RemoteAgentConfig)(nil), // 19: proto.RemoteAgentConfig+ (*RegisterAgentRequest)(nil), // 20: proto.RegisterAgentRequest+ (*RegisterAgentResponse)(nil), // 21: proto.RegisterAgentResponse+ (*UnregisterAgentRequest)(nil), // 22: proto.UnregisterAgentRequest+ (*UnregisterAgentResponse)(nil), // 23: proto.UnregisterAgentResponse+ nil, // 24: proto.RegisterAgentRequest.MetadataEntry+ (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp}var file_proto_gar_proto_depIdxs = []int32{- 4, // 0: proto.ProcessRequest.contents:type_name -> proto.Content- 4, // 1: proto.ProcessResponse.contents:type_name -> proto.Content- 3, // 2: proto.Content.text:type_name -> proto.TextContent- 0, // 3: proto.SessionStateEvent.state:type_name -> proto.State- 4, // 4: proto.AgentCallEvent.contents:type_name -> proto.Content- 4, // 5: proto.HandoffEvent.contents:type_name -> proto.Content- 4, // 6: proto.ContentEvent.contents:type_name -> proto.Content- 22, // 7: proto.Event.timestamp:type_name -> google.protobuf.Timestamp- 22, // 8: proto.Event.controller_timestamp:type_name -> google.protobuf.Timestamp- 5, // 9: proto.Event.session_state_event:type_name -> proto.SessionStateEvent- 6, // 10: proto.Event.agent_call_event:type_name -> proto.AgentCallEvent- 7, // 11: proto.Event.handoff_event:type_name -> proto.HandoffEvent- 8, // 12: proto.Event.content_event:type_name -> proto.ContentEvent- 4, // 13: proto.TriggerSessionRequest.inputs:type_name -> proto.Content- 4, // 14: proto.TriggerSessionResponse.outputs:type_name -> proto.Content- 0, // 15: proto.TriggerSessionResponse.state:type_name -> proto.State- 21, // 16: proto.RegisterAgentRequest.metadata:type_name -> proto.RegisterAgentRequest.MetadataEntry- 16, // 17: proto.RegisterAgentRequest.remote:type_name -> proto.RemoteAgentConfig- 1, // 18: proto.AgentService.Process:input_type -> proto.ProcessRequest- 10, // 19: proto.AgentService.HealthCheck:input_type -> proto.HealthCheckRequest- 12, // 20: proto.GARService.TriggerSession:input_type -> proto.TriggerSessionRequest- 14, // 21: proto.GARService.ForkSession:input_type -> proto.ForkSessionRequest- 17, // 22: proto.GARService.RegisterAgent:input_type -> proto.RegisterAgentRequest- 19, // 23: proto.GARService.UnregisterAgent:input_type -> proto.UnregisterAgentRequest- 2, // 24: proto.AgentService.Process:output_type -> proto.ProcessResponse- 11, // 25: proto.AgentService.HealthCheck:output_type -> proto.HealthCheckResponse- 13, // 26: proto.GARService.TriggerSession:output_type -> proto.TriggerSessionResponse- 15, // 27: proto.GARService.ForkSession:output_type -> proto.ForkSessionResponse- 18, // 28: proto.GARService.RegisterAgent:output_type -> proto.RegisterAgentResponse- 20, // 29: proto.GARService.UnregisterAgent:output_type -> proto.UnregisterAgentResponse- 24, // [24:30] is the sub-list for method output_type- 18, // [18:24] is the sub-list for method input_type- 18, // [18:18] is the sub-list for extension type_name- 18, // [18:18] is the sub-list for extension extendee- 0, // [0:18] is the sub-list for field type_name+ 7, // 0: proto.ProcessRequest.contents:type_name -> proto.Content+ 7, // 1: proto.ProcessResponse.contents:type_name -> proto.Content+ 4, // 2: proto.ConfirmationContent.approval:type_name -> proto.ApprovalDecision+ 5, // 3: proto.ConfirmationContent.decline:type_name -> proto.DeclineDecision+ 3, // 4: proto.Content.text:type_name -> proto.TextContent+ 6, // 5: proto.Content.confirmation:type_name -> proto.ConfirmationContent+ 0, // 6: proto.SessionStateEvent.state:type_name -> proto.State+ 7, // 7: proto.AgentCallEvent.contents:type_name -> proto.Content+ 7, // 8: proto.HandoffEvent.contents:type_name -> proto.Content+ 7, // 9: proto.ContentEvent.contents:type_name -> proto.Content+ 25, // 10: proto.Event.timestamp:type_name -> google.protobuf.Timestamp+ 25, // 11: proto.Event.controller_timestamp:type_name -> google.protobuf.Timestamp+ 8, // 12: proto.Event.session_state_event:type_name -> proto.SessionStateEvent+ 9, // 13: proto.Event.agent_call_event:type_name -> proto.AgentCallEvent+ 10, // 14: proto.Event.handoff_event:type_name -> proto.HandoffEvent+ 11, // 15: proto.Event.content_event:type_name -> proto.ContentEvent+ 7, // 16: proto.TriggerSessionRequest.inputs:type_name -> proto.Content+ 7, // 17: proto.TriggerSessionResponse.outputs:type_name -> proto.Content+ 0, // 18: proto.TriggerSessionResponse.state:type_name -> proto.State+ 24, // 19: proto.RegisterAgentRequest.metadata:type_name -> proto.RegisterAgentRequest.MetadataEntry+ 19, // 20: proto.RegisterAgentRequest.remote:type_name -> proto.RemoteAgentConfig+ 1, // 21: proto.AgentService.Process:input_type -> proto.ProcessRequest+ 13, // 22: proto.AgentService.HealthCheck:input_type -> proto.HealthCheckRequest+ 15, // 23: proto.GARService.TriggerSession:input_type -> proto.TriggerSessionRequest+ 17, // 24: proto.GARService.ForkSession:input_type -> proto.ForkSessionRequest+ 20, // 25: proto.GARService.RegisterAgent:input_type -> proto.RegisterAgentRequest+ 22, // 26: proto.GARService.UnregisterAgent:input_type -> proto.UnregisterAgentRequest+ 2, // 27: proto.AgentService.Process:output_type -> proto.ProcessResponse+ 14, // 28: proto.AgentService.HealthCheck:output_type -> proto.HealthCheckResponse+ 16, // 29: proto.GARService.TriggerSession:output_type -> proto.TriggerSessionResponse+ 18, // 30: proto.GARService.ForkSession:output_type -> proto.ForkSessionResponse+ 21, // 31: proto.GARService.RegisterAgent:output_type -> proto.RegisterAgentResponse+ 23, // 32: proto.GARService.UnregisterAgent:output_type -> proto.UnregisterAgentResponse+ 27, // [27:33] is the sub-list for method output_type+ 21, // [21:27] is the sub-list for method input_type+ 21, // [21:21] is the sub-list for extension type_name+ 21, // [21:21] is the sub-list for extension extendee+ 0, // [0:21] is the sub-list for field type_name}func init() { file_proto_gar_proto_init() }@@ -1574,16 +1803,21 @@ func file_proto_gar_proto_init() {if File_proto_gar_proto != nil {return}- file_proto_gar_proto_msgTypes[3].OneofWrappers = []any{+ file_proto_gar_proto_msgTypes[5].OneofWrappers = []any{+ (*ConfirmationContent_Approval)(nil),+ (*ConfirmationContent_Decline)(nil),+ }+ file_proto_gar_proto_msgTypes[6].OneofWrappers = []any{(*Content_Text)(nil),+ (*Content_Confirmation)(nil),}- file_proto_gar_proto_msgTypes[8].OneofWrappers = []any{+ file_proto_gar_proto_msgTypes[11].OneofWrappers = []any{(*Event_SessionStateEvent)(nil),(*Event_AgentCallEvent)(nil),(*Event_HandoffEvent)(nil),(*Event_ContentEvent)(nil),}- file_proto_gar_proto_msgTypes[16].OneofWrappers = []any{+ file_proto_gar_proto_msgTypes[19].OneofWrappers = []any{(*RegisterAgentRequest_Remote)(nil),}type x struct{}@@ -1592,7 +1826,7 @@ func file_proto_gar_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_proto_gar_proto_rawDesc,NumEnums: 1,- NumMessages: 21,+ NumMessages: 24,NumExtensions: 0,NumServices: 2,},diff --git a/proto/gar.proto b/proto/gar.protoindex e8887e8..17db6bc 100644--- a/proto/gar.proto+++ b/proto/gar.proto@@ -52,12 +52,35 @@ message TextContent {string text = 3;}+message ApprovalDecision {+ bool approved = 1;+}++message DeclineDecision {+ reserved 2;+ reserved "reason";+ bool declined = 1;+}++message ConfirmationContent {+ reserved 1, 2;+ reserved "type";+ string id = 3;+ string question = 4;+ oneof decision {+ ApprovalDecision approval = 5;+ DeclineDecision decline = 6;+ }+}++// Content represents a message with role, type, mimetype, and data fieldsmessage Content {reserved 1 to 4, 6 to 9, 11 to 25;oneof content {TextContent text = 10;+ ConfirmationContent confirmation = 26;}string role = 1000; // The role of the content (e.g., "user", "assistant", "system")