From 0e59a0ee8beb2282450c1f923516c260a5fa3179 Mon Sep 17 00:00:00 2001 From: Rob Stolarz Date: Fri, 27 Nov 2026 13:47:34 -0800 Subject: [PATCH 1/6] refactor(agent): a watch asks the API what became of its input (DEP-8992) watch --after-input, create --watch and send --watch read the outcome of the awaited input from GetSessionInput and take the reply from the message that read names, instead of working both out from the messages in the session view. The turn state machine now only serves --until-idle. - The reply comes from the frame when the frame holds it whole, and is read by id otherwise; a failed read falls back to the frame's text. - A message that is not the assistant's, or that calls a tool, is not reported as the reply. - A session at rest while the input still reads as placed is read again, up to three times a grace period apart. - A refused read is reported under the RPC that was refused. Co-Authored-By: Claude Mythos 5.2 Claude-Session: https://claude.ai/code/session_01RQk3K7GpvQg7ySXyCrirEe --- pkg/cmd/agent/credential_test.go | 7 +- pkg/cmd/agent/launch.go | 2 +- pkg/cmd/agent/render.go | 21 + pkg/cmd/agent/send.go | 11 +- pkg/cmd/agent/session.go | 5 +- pkg/cmd/agent/session_test.go | 490 ++---- pkg/cmd/agent/watch.go | 358 ++-- .../depot_agent_core.connect.go | 29 + .../depot/agent/v1/depot_agent_core.pb.go | 1494 ++++++++++------- proto/depot/agent/v1/depot_agent_core.proto | 24 + 10 files changed, 1245 insertions(+), 1196 deletions(-) diff --git a/pkg/cmd/agent/credential_test.go b/pkg/cmd/agent/credential_test.go index 2dccdeb5..f79f2059 100644 --- a/pkg/cmd/agent/credential_test.go +++ b/pkg/cmd/agent/credential_test.go @@ -80,6 +80,7 @@ func TestEachRPCGetsTheCredentialTheAPITakes(t *testing.T) { got: &agentv1.GetSessionResponse{Session: session, ViewJson: long, ViewSeq: 7}, frames: [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", long)}}, whole: map[string]*agentv1.GetSessionMessageResponse{"6": {Role: "assistant", Text: "whole"}}, + inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}, } } launch := []string{"launch", "an-agent@v1", "--source", "github:acme/lib", "--message", "hello"} @@ -89,14 +90,14 @@ func TestEachRPCGetsTheCredentialTheAPITakes(t *testing.T) { want map[string]string }{ {"create", []string{"create", "hello"}, map[string]string{"CreateSession": "turn-token"}}, - {"create --watch", []string{"create", "hello", "--watch"}, map[string]string{"CreateSession": "turn-token", "WatchSession": "turn-token", "GetSessionMessage": "turn-token"}}, + {"create --watch", []string{"create", "hello", "--watch"}, map[string]string{"CreateSession": "turn-token", "WatchSession": "turn-token", "GetSessionInput": "turn-token", "GetSessionMessage": "turn-token"}}, {"list", []string{"list"}, map[string]string{"ListDepotAgentSessions": "turn-token"}}, {"logs", []string{"logs", "das_1"}, map[string]string{"GetSession": "turn-token", "GetSessionMessage": "turn-token"}}, {"watch", []string{"watch", "das_1", "--until-idle"}, map[string]string{"WatchSession": "turn-token", "GetSessionMessage": "turn-token"}}, {"stop", []string{"stop", "das_1"}, map[string]string{"InterruptSession": "cache-token"}}, {"stop --archive", []string{"stop", "das_1", "--archive"}, map[string]string{"ArchiveSession": "cache-token"}}, {"send", []string{"send", "das_1", "hello"}, map[string]string{"SendInput": "turn-token"}}, - {"send --watch", []string{"send", "das_1", "hello", "--watch"}, map[string]string{"GetSession": "turn-token", "SendInput": "turn-token", "WatchSession": "turn-token", "GetSessionMessage": "turn-token"}}, + {"send --watch", []string{"send", "das_1", "hello", "--watch"}, map[string]string{"SendInput": "turn-token", "WatchSession": "turn-token", "GetSessionInput": "turn-token", "GetSessionMessage": "turn-token"}}, {"launch", launch, map[string]string{"Launch": "turn-token"}}, {"launch --watch", append(launch, "--watch"), map[string]string{"Launch": "turn-token", "WatchSession": "turn-token", "GetSessionMessage": "turn-token"}}, } { @@ -136,7 +137,7 @@ func TestAnAPIThatRefusesTheTurnTokenIsNamedAndLeavesNothingUnsaid(t *testing.T) {"watch", []string{"watch", "das_1", "--until-idle"}, "WatchSession", "", map[string]string{"WatchSession": "turn-token"}}, {"create --watch", []string{"create", "hello", "--watch", "-o", "json"}, "WatchSession", "Session das_1 was created", map[string]string{"CreateSession": "turn-token", "WatchSession": "turn-token"}}, {"send", []string{"send", "das_1", "hello"}, "SendInput", "", map[string]string{"SendInput": "turn-token"}}, - {"send --watch", []string{"send", "das_1", "hello", "--watch"}, "SendInput", "", map[string]string{"GetSession": "turn-token", "SendInput": "turn-token"}}, + {"send --watch", []string{"send", "das_1", "hello", "--watch"}, "SendInput", "", map[string]string{"SendInput": "turn-token"}}, {"launch", launch, "Launch", "", map[string]string{"Launch": "turn-token"}}, {"launch --watch", append(launch, "--watch"), "Launch", "", map[string]string{"Launch": "turn-token"}}, } { diff --git a/pkg/cmd/agent/launch.go b/pkg/cmd/agent/launch.go index fbac37e1..ce83563d 100644 --- a/pkg/cmd/agent/launch.go +++ b/pkg/cmd/agent/launch.go @@ -106,7 +106,7 @@ func runLaunch(cmd *cobra.Command, o *launchOptions, agent string) error { if err != nil || !o.watch { return err } - return watchAndReport(cmd, c, o.output, sessionID, watchOptions{afterInput: resp.Msg.GetInput().GetInputId(), untilIdle: true, timeout: o.timeout, url: resp.Msg.GetUrl(), base: beforeFirst(), did: "was launched"}) + return watchAndReport(cmd, c, o.output, sessionID, watchOptions{afterInput: resp.Msg.GetInput().GetInputId(), untilIdle: true, timeout: o.timeout, url: resp.Msg.GetUrl(), did: "was launched"}) } func parseSource(value string) (*agentv1.DepotAgentLaunchSource, error) { diff --git a/pkg/cmd/agent/render.go b/pkg/cmd/agent/render.go index e7ce6903..5eaee7e4 100644 --- a/pkg/cmd/agent/render.go +++ b/pkg/cmd/agent/render.go @@ -289,6 +289,27 @@ func (r *Renderer) fill(msg *viewMessage) error { return nil } +// Reply returns the whole text of the message with this id, read by the id unless a frame already read it, and +// prints it when the transcript has not shown it whole: its turn outgrew the view, or its read failed. +func (r *Renderer) Reply(id string) (string, error) { + text, held := r.full[id] + if !held { + var err error + if text, err = r.whole(id); err != nil { + return "", err + } + } + switch { + case r.once("message:" + id): + r.finishPartial(text) + case r.unread[id] > 0: + delete(r.unread, id) + r.line("(the whole reply, read on a later try)") + r.line("%s", strings.TrimSpace(text)) + } + return text, nil +} + // From starts the transcript at the message of this input, leaving out the session's earlier turns. func (r *Renderer) From(inputID string) *Renderer { r.from = inputID diff --git a/pkg/cmd/agent/send.go b/pkg/cmd/agent/send.go index 3bc64a25..9db2d122 100644 --- a/pkg/cmd/agent/send.go +++ b/pkg/cmd/agent/send.go @@ -119,10 +119,6 @@ func runSend(cmd *cobra.Command, o *sendOptions, args []string) error { if err != nil { return err } - var base *int64 - if o.watch { - base = newestSeq(cmd.Context(), c, sessionID) - } resp, err := c.client.SendInput(cmd.Context(), authed(c, req)) if err != nil { if o.key != "" && connect.CodeOf(err) == connect.CodeNotFound { @@ -157,12 +153,7 @@ func runSend(cmd *cobra.Command, o *sendOptions, args []string) error { if !o.watch { return nil } - // A repeated client request ID returns the input of the first send. Once the session has taken that one, - // what was read just now is not from before it, so the watch finds its own base. - if status != "" && status != "pending" { - base = nil - } - wait := watchOptions{afterInput: resp.Msg.GetInput().GetInputId(), untilIdle: true, timeout: o.timeout, base: base, did: "got the message"} + wait := watchOptions{afterInput: resp.Msg.GetInput().GetInputId(), untilIdle: true, timeout: o.timeout, did: "got the message"} if status == "cancelled" { return report(cmd, c, o.output, sessionID, wait, watchResult{SessionID: sessionID, InputID: wait.afterInput, Status: "archived", Outcome: outcomeFailed, Error: cancelled}) } diff --git a/pkg/cmd/agent/session.go b/pkg/cmd/agent/session.go index bfd3da73..9a5c1016 100644 --- a/pkg/cmd/agent/session.go +++ b/pkg/cmd/agent/session.go @@ -164,7 +164,7 @@ Use ` + "`depot agent launch`" + ` to start a published agent on a repository.`, return err } sessionID := resp.Msg.GetSession().GetSessionId() - wait := watchOptions{afterInput: resp.Msg.GetInput().GetInputId(), untilIdle: true, timeout: timeout, base: beforeFirst(), did: "was created"} + wait := watchOptions{afterInput: resp.Msg.GetInput().GetInputId(), untilIdle: true, timeout: timeout, did: "was created"} if watch && f.output == "json" { return watchAndReport(cmd, c, f.output, sessionID, wait) } @@ -278,7 +278,8 @@ reply of the agent is read whole; -o json prints the view as the API returns it. } if f.output == "text" { r := NewRenderer(cmd.OutOrStdout()).Whole(func(messageID string) (string, error) { - return wholeMessage(cmd.Context(), c, args[0], messageID) + text, _, err := wholeMessage(cmd.Context(), c, args[0], messageID) + return text, err }) _, err := r.Render(resp.Msg.GetSession(), resp.Msg.GetViewJson()) return err diff --git a/pkg/cmd/agent/session_test.go b/pkg/cmd/agent/session_test.go index fa57ae66..d6e69229 100644 --- a/pkg/cmd/agent/session_test.go +++ b/pkg/cmd/agent/session_test.go @@ -5,12 +5,10 @@ import ( "context" "encoding/json" "errors" - "fmt" "io" "net" "net/http" "net/http/httptest" - "strconv" "strings" "sync" "testing" @@ -49,6 +47,11 @@ type fakeAgent struct { wholeAsked []string // wholeHangs holds that many whole-message reads open until their caller gives up. wholeHangs int + // inputs are what the API says became of the awaited input, one per read; the last one stays. + inputs []*agentv1.GetSessionInputResponse + inputErr error + // byWatch serves inputs by how many watch calls there have been, however many frames each one got through. + byWatch bool // afterFrames runs once a watch call has sent its frames. afterFrames func(call int) mu sync.Mutex @@ -79,6 +82,39 @@ func (f *fakeAgent) GetSessionMessage(ctx context.Context, req *connect.Request[ return nil, connect.NewError(connect.CodeUnimplemented, errors.New("unimplemented")) } +func (f *fakeAgent) GetSessionInput(context.Context, *connect.Request[agentv1.GetSessionInputRequest]) (*connect.Response[agentv1.GetSessionInputResponse], error) { + f.mu.Lock() + defer f.mu.Unlock() + if f.inputErr != nil { + return nil, f.inputErr + } + if len(f.inputs) == 0 { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("unimplemented")) + } + first := f.inputs[0] + if f.byWatch { + first = f.inputs[max(min(len(f.watches), len(f.inputs)), 1)-1] + } else if len(f.inputs) > 1 { + f.inputs = f.inputs[1:] + } + return connect.NewResponse(first), nil +} + +// became is what the API says of an input: its outcome, then the answer's message id or the reason and its detail. +func became(outcome string, more ...string) *agentv1.GetSessionInputResponse { + resp := &agentv1.GetSessionInputResponse{Outcome: outcome} + switch { + case outcome == "answered": + resp.AnswerMessageId = &more[0] + case len(more) > 0: + resp.Reason = &more[0] + if len(more) > 1 { + resp.Detail = &more[1] + } + } + return resp +} + func (f *fakeAgent) watchCount() int { f.mu.Lock() defer f.mu.Unlock() @@ -235,160 +271,6 @@ const ( const viewLater = `{"messages": [{"id": "3", "role": "user", "inputId": "dai_1", "text": "hello"}, {"id": "4", "role": "assistant", "text": "hi there"}, {"id": "5", "role": "user", "inputId": "dai_2", "text": "next"}]}` -// A long turn pushes its input out of the bounded view. The turn is then followed by the messages already seen in it. -func TestTurnOutOfACutView(t *testing.T) { - settle := func(waiting *turn, status, messages string) (bool, string, string) { - t.Helper() - var view agentView - if err := json.Unmarshal([]byte(`{"messages": [`+messages+`], "truncated": true}`), &view); err != nil { - t.Fatal(err) - } - return waiting.settled(status, &view) - } - const ( - asked = `{"id": "3", "role": "user", "inputId": "dai_1", "text": "hello"}` - step = `{"id": "4", "role": "assistant", "text": "Looking.", "toolCalls": [{"callId": "t"}]}, {"id": "5", "role": "tool", "callId": "t", "text": "ok"}` - reply = `{"id": "9", "role": "assistant", "text": "done"}` - ) - waiting := &turn{afterInput: "dai_1"} - settle(waiting, "running", reply) - if done, _, _ := settle(waiting, "idle", reply); done { - t.Fatal("another turn's reply settled an input that was never seen") - } - settle(waiting, "running", asked+","+step) - if done, got, failure := settle(waiting, "idle", step+","+reply); !done || got != "done" || failure != "" { - t.Fatalf("settled = %v, %q, %q after the input left the view", done, got, failure) - } - - // A view that shares nothing with what was seen may have dropped a later input along with this one. - lost := &turn{afterInput: "dai_1"} - settle(lost, "running", asked+","+step) - if done, got, failure := settle(lost, "idle", reply); done || lost.doubt != failedLost { - t.Fatalf("settled = %v, %q, %q with doubt %q on a view that no longer connects to the turn", done, got, failure, lost.doubt) - } -} - -// Every reading of a view that shows nothing of the awaited turn, by what the wait knew and what the session is doing. -func TestTurnWithNothingOfItInTheView(t *testing.T) { - seq := func(n int64) *int64 { return &n } - const ( - work = `{"id": "40", "seq": 40, "role": "tool", "text": "ok"}, {"id": "41", "seq": 41, "role": "assistant", "text": "done"}` - input = `{"id": "39", "seq": 39, "role": "user", "text": "next"}, ` + work - // A subagent's report belongs to the turn that started it, so it is not a later input. - report = `{"id": "39", "seq": 39, "role": "user", "sender": {"kind": "subagent", "name": "scout"}, "text": "Installed."}, ` + work - ) - followed := func() *turn { return &turn{afterInput: "dai_1", last: "9", lastSeq: 9} } - passed := func() *turn { return &turn{afterInput: "dai_1", base: seq(9)} } - framed := func() *turn { return &turn{afterInput: "dai_1", base: seq(41), framed: true} } - shown := func() *turn { return &turn{afterInput: "dai_1", base: seq(41)} } - for _, tc := range []struct { - name string - turn func() *turn - status, messages string - queued int - failure, doubt string - }{ - {"followed, still running", followed, "running", work, 0, "", ""}, - {"followed, starting", followed, "starting", work, 0, "", ""}, - {"followed, idle", followed, "idle", work, 0, "", failedLost}, - {"followed, waiting for input", followed, "waiting_input", work, 0, "", failedLost}, - {"followed, idle with an input queued", followed, "idle", work, 1, "", ""}, - {"followed, a later input running", followed, "running", input, 0, failedLost, ""}, - {"followed, a later input answered", followed, "idle", input, 0, failedLost, ""}, - {"followed, a subagent report running", followed, "running", report, 0, "", ""}, - {"followed, a subagent report idle", followed, "idle", report, 0, "", failedLost}, - {"followed, session failed", followed, "failed", work, 0, "the session failed", ""}, - {"followed, session archived", followed, "archived", work, 0, "the session was archived", ""}, - {"never seen and passed, running", passed, "running", work, 0, "", ""}, - {"never seen and passed, idle", passed, "idle", work, 0, "", failedLost}, - {"never seen and passed, another input shows", passed, "running", input, 0, "", ""}, - {"never seen and passed, idle with an input queued", passed, "idle", work, 1, "", ""}, - {"never seen, base from a frame, idle", framed, "idle", work, 0, "", failedUnseen}, - {"never seen, base from a frame, running", framed, "running", work, 0, "", ""}, - {"never seen, base from the caller, idle", shown, "idle", work, 0, "", ""}, - } { - t.Run(tc.name, func(t *testing.T) { - var view agentView - raw := fmt.Sprintf(`{"messages": [%s], "truncated": true, "queuedCount": %d}`, tc.messages, tc.queued) - if err := json.Unmarshal([]byte(raw), &view); err != nil { - t.Fatal(err) - } - waiting := tc.turn() - done, reply, failure := waiting.settled(tc.status, &view) - if done != (tc.failure != "") || reply != "" || failure != tc.failure || waiting.doubt != tc.doubt { - t.Fatalf("settled = %v, %q, %q with doubt %q; want failure %q, doubt %q", done, reply, failure, waiting.doubt, tc.failure, tc.doubt) - } - }) - } -} - -// Whatever the agent says after a later input answers that input, even when the awaited one never got a reply. -func TestTurnDoesNotTakeALaterInputsReply(t *testing.T) { - const ( - asked = `{"id": "3", "role": "user", "inputId": "dai_1", "text": "hello"}` - working = `{"id": "4", "role": "assistant", "text": "Looking.", "toolCalls": [{"callId": "t"}]}, {"id": "5", "role": "tool", "callId": "t", "isError": true, "text": "interrupted"}` - later = `{"id": "6", "role": "user", "inputId": "dai_2", "text": "next"}` - reply = `{"id": "7", "role": "assistant", "text": "later reply"}` - want = "another input followed before the agent replied" - ) - for name, tc := range map[string]struct { - status, view, last string - }{ - "the later input has its reply": {"idle", asked + "," + working + "," + later + "," + reply, ""}, - "the later input is running": {"running", asked + "," + working + "," + later, ""}, - "the later input directly follows": {"idle", asked + "," + later + "," + reply, ""}, - "the session failed on the later": {"failed", asked + "," + working + "," + later + "," + reply, ""}, - "the input has left the cut view": {"idle", `{"id": "5", "role": "tool", "callId": "t", "text": "interrupted"},` + later + "," + reply, "5"}, - } { - t.Run(name, func(t *testing.T) { - var view agentView - if err := json.Unmarshal([]byte(`{"messages": [`+tc.view+`], "truncated": `+strconv.FormatBool(tc.last != "")+`}`), &view); err != nil { - t.Fatal(err) - } - done, reply, failure := (&turn{afterInput: "dai_1", last: tc.last}).settled(tc.status, &view) - if !done || reply != "" || failure != want { - t.Fatalf("settled = %v, %q, %q; want a failure saying %q", done, reply, failure, want) - } - }) - } - var cut agentView - if err := json.Unmarshal([]byte(`{"messages": [{"id": "4", "role": "assistant", "text": "hi there"},`+later+","+reply+`], "truncated": true}`), &cut); err != nil { - t.Fatal(err) - } - if done, got, failure := (&turn{afterInput: "dai_1", last: "4"}).settled("idle", &cut); !done || got != "hi there" || failure != "" { - t.Fatalf("settled = %v, %q, %q; want the reply left above the later input", done, got, failure) - } -} - -func TestTurnKeepsWaitingPastASubagentReport(t *testing.T) { - const ( - asked = `{"id": "3", "role": "user", "inputId": "dai_1", "text": "hello"}` - work = `{"id": "4", "role": "assistant", "text": "Looking.", "toolCalls": [{"callId": "t"}]}, {"id": "5", "role": "tool", "callId": "t", "text": "started"}` - report = `{"id": "6", "role": "user", "sender": {"kind": "subagent", "name": "scout"}, "text": "Installed."}` - reply = `{"id": "7", "role": "assistant", "text": "All done."}` - ) - for name, tc := range map[string]struct { - status, view, want string - done bool - }{ - "still working after the report": {"running", asked + "," + work + "," + report, "", false}, - "replied after the report": {"idle", asked + "," + work + "," + report + "," + reply, "All done.", true}, - "report after the reply": {"idle", asked + "," + reply + "," + report, "All done.", true}, - "report, then another input": {"running", asked + "," + reply + "," + report + `, {"id": "8", "role": "user", "inputId": "dai_2", "text": "next"}`, "All done.", true}, - } { - t.Run(name, func(t *testing.T) { - var view agentView - if err := json.Unmarshal([]byte(`{"messages": [`+tc.view+`]}`), &view); err != nil { - t.Fatal(err) - } - done, got, failure := (&turn{afterInput: "dai_1"}).settled(tc.status, &view) - if done != tc.done || got != tc.want || failure != "" { - t.Fatalf("settled = %v, %q, %q; want %v, %q and no failure", done, got, failure, tc.done, tc.want) - } - }) - } -} - func TestWatchJSONNeedsAWaitToReport(t *testing.T) { f := &fakeAgent{} serveAgent(t, f) @@ -424,10 +306,11 @@ func TestCreateSendsTheMessageAndPrintsTheSession(t *testing.T) { } func TestCreateWatchWaitsForTheReplyAcrossReconnects(t *testing.T) { + asked, said := []*agentv1.GetSessionInputResponse{became("pending"), became("answered", "4")}, map[string]*agentv1.GetSessionMessageResponse{"4": {Role: "assistant", Text: "hi there"}} f := &fakeAgent{frames: [][]*agentv1.WatchSessionResponse{ {frame("idle", "c1", viewBefore), frame("running", "c2", viewAsked)}, {frame("idle", "c3", viewReplied)}, - }} + }, inputs: asked, byWatch: true, whole: said} serveAgent(t, f) out, errOut, err := runAgent(t, "create", "hello", "--watch", "-o", "json") if err != nil { @@ -457,6 +340,7 @@ func TestWatchReconnectsAfterAGoAway(t *testing.T) { {frame("idle", "c3", viewReplied)}, } accepted := serveAgent(t, &fakeAgent{holdWatch: true, frames: frames}) + asked, said := []*agentv1.GetSessionInputResponse{became("pending"), became("answered", "4")}, map[string]*agentv1.GetSessionMessageResponse{"4": {Role: "assistant", Text: "hi there"}} // What the client makes of it is the error the watch has to count as worth another try. stream, err := newCaller("tok", "org-1").client.WatchSession(context.Background(), connect.NewRequest(&agentv1.WatchSessionRequest{SessionId: "das_1"})) @@ -473,7 +357,7 @@ func TestWatchReconnectsAfterAGoAway(t *testing.T) { } _ = stream.Close() - f := &fakeAgent{holdWatch: true, frames: frames} + f := &fakeAgent{holdWatch: true, frames: frames, inputs: asked, byWatch: true, whole: said} f.afterFrames = func(call int) { if call == 0 { accepted.goAway(t) @@ -513,6 +397,7 @@ func TestWatchReadsTheWholeOfALongReply(t *testing.T) { t.Helper() // The second frame is the same view again: a reply already read is not read twice. f.frames = [][]*agentv1.WatchSessionResponse{{frame("running", "c1", cut), frame("idle", "c2", cut)}} + f.inputs = []*agentv1.GetSessionInputResponse{became("placed"), became("answered", "6")} serveAgent(t, f) out, errOut, err := runAgent(t, "create", "hello", "--watch", "-o", "json") if err != nil { @@ -557,15 +442,6 @@ func TestWatchReadsTheWholeOfALongReply(t *testing.T) { t.Fatalf("reply ends %q, want the note that it is still cut", result.Reply[len(result.Reply)-40:]) } }) - t.Run("an API without the read", func(t *testing.T) { - result, transcript := run(t, &fakeAgent{}) - if result.Outcome != outcomeSettled || result.Reply != "all of it. all\n[10986 bytes truncated]" { - t.Fatalf("unexpected result %+v, want the cut reply", result) - } - if !strings.Contains(transcript, "(the rest of this reply could not be read: ") { - t.Fatalf("transcript does not say the reply is cut short:\n%s", transcript) - } - }) } func TestRendererForgetsAWholeReplyOnceItLeavesTheView(t *testing.T) { @@ -616,7 +492,7 @@ func TestRendererReadsAReplyAgainWithoutRestartingTheNextTurnsStream(t *testing. func TestWatchTimesOutWhenTheWholeReplyReadOutlastsTheWait(t *testing.T) { const cut = `{"messages": [{"id": "3", "seq": 3, "role": "user", "inputId": "dai_1", "text": "hello"}, {"id": "6", "seq": 6, "role": "assistant", "text": "all\n[6 bytes truncated]", "truncatedBytes": 6}], "tools": []}` - f := &fakeAgent{wholeHangs: 100, frames: [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", cut)}}} + f := &fakeAgent{wholeHangs: 100, frames: [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", cut)}}, inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}} serveAgent(t, f) out, _, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1", "--timeout", "200ms", "-o", "json") var status cli.StatusError @@ -648,6 +524,10 @@ func TestWatchReadsTheWholeReplyBeforeAWaitThatEndsOnItsFrame(t *testing.T) { t.Run(name, func(t *testing.T) { f.whole = map[string]*agentv1.GetSessionMessageResponse{"6": {Role: "assistant", Text: "all of it"}, "2": {Role: "assistant", Text: "earlier, whole"}, "8": {Role: "assistant", Text: "the next turn's"}} most := len(f.wholeErrs) + 2 + f.inputs = []*agentv1.GetSessionInputResponse{became("answered", "6")} + if len(f.frames[0]) > 1 { + f.inputs = []*agentv1.GetSessionInputResponse{became("pending"), became("pending"), became("answered", "6")} + } serveAgent(t, f) out, errOut, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1", "--until-idle", "-o", "json") if err != nil || !strings.Contains(out, `"reply": "all of it"`) { @@ -661,7 +541,107 @@ func TestWatchReadsTheWholeReplyBeforeAWaitThatEndsOnItsFrame(t *testing.T) { } } -func TestWatchExitCodes(t *testing.T) { +// A watch on an input ends on what the API says became of it, whatever the view shows. +func TestWatchEndsOnWhatTheAPISaysBecameOfTheInput(t *testing.T) { + later := strings.Replace(viewReplied, `], "tools"`, `, {"id": "5", "role": "user", "inputId": "dai_2", "text": "next"}, {"id": "6", "role": "assistant", "text": "later reply"}], "tools"`, 1) + hi := map[string]*agentv1.GetSessionMessageResponse{"4": {Role: "assistant", Text: "hi there"}, "9": {Role: "assistant", Text: "read by its id"}, "0": {Role: "assistant", Text: " "}} + for name, tc := range map[string]struct { + status, view string + input *agentv1.GetSessionInputResponse + code int + want string + }{ + "answered": {"idle", viewReplied, became("answered", "4"), 0, "hi there"}, + "answered, a later turn has replied": {"idle", later, became("answered", "4"), 0, "hi there"}, + "answered, a later turn is running": {"running", viewLater, became("answered", "4"), 0, "hi there"}, + "answered, then the session failed": {"failed", viewReplied, became("answered", "4"), 0, "hi there"}, + "answered, the reply out of the view": {"idle", viewBefore, became("answered", "9"), 0, "read by its id"}, + "an empty reply": {"idle", viewReplied, became("answered", "0"), 1, "the agent's reply was empty"}, + "stopped": {"idle", viewAsked, became("unanswered", "aborted"), 1, "the turn was stopped before the agent replied"}, + "model error": {"idle", viewAsked, became("unanswered", "model_error", "overloaded"), 1, "the agent's reply was an error: overloaded"}, + "no answer for another reason": {"idle", viewAsked, became("unanswered", "reset"), 1, "the turn ended without a reply: reset"}, + "cancelled unread": {"archived", viewBefore, became("withdrawn"), 1, "the input was cancelled before the agent took it"}, + "placed in a session that failed": {"failed", viewAsked, became("placed"), 1, "the session failed"}, + "pending in a session that is archived": {"archived", viewBefore, became("pending"), 1, "the session was archived"}, + "pending while the session is idle": {"idle", viewBefore, became("pending"), 2, "Timed out after 200ms"}, + "placed, a later message in the view": {"running", later, became("placed"), 2, "Timed out after 200ms"}, + } { + t.Run(name, func(t *testing.T) { + f := &fakeAgent{holdWatch: true, frames: [][]*agentv1.WatchSessionResponse{{frame(tc.status, "c1", tc.view)}}, inputs: []*agentv1.GetSessionInputResponse{tc.input}, whole: hi} + serveAgent(t, f) + out, _, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1", "--timeout", "200ms", "-o", "json") + var status cli.StatusError + if tc.code == 0 { + var result watchResult + if err != nil || json.Unmarshal([]byte(out), &result) != nil || result.Outcome != outcomeSettled || result.Reply != tc.want { + t.Fatalf("err = %v, out = %s; want the reply %q", err, out, tc.want) + } + } else if !errors.As(err, &status) || status.StatusCode != tc.code || !strings.Contains(status.Status, tc.want) { + t.Fatalf("err = %#v, want exit %d with %q", err, tc.code, tc.want) + } + }) + } +} + +// The API's answer is taken as the reply only when it is something the agent said, and a read that fails does not lose it. +func TestWatchChecksTheAnswerTheAPINames(t *testing.T) { + retryDelay, replyGrace = time.Millisecond, 10*time.Millisecond + t.Cleanup(func() { retryDelay, replyGrace = time.Second, 10*time.Second }) + cut := `{"messages": [{"id": "3", "role": "user", "inputId": "dai_1", "text": "hello"}, {"id": "6", "role": "assistant", "text": "all\n[6 bytes truncated]", "truncatedBytes": 6}], "tools": []}` + step := `{"messages": [{"id": "3", "role": "user", "inputId": "dai_1", "text": "hello"}, {"id": "4", "role": "assistant", "text": "Let me look.", "toolCalls": [{"callId": "t", "name": "bash"}]}], "tools": []}` + cutErr := strings.Replace(cut, `"truncatedBytes": 6`, `"truncatedBytes": 6, "isError": true`, 1) + down := connect.NewError(connect.CodeUnavailable, errors.New("try again")) + for name, tc := range map[string]struct { + fake *fakeAgent + view string + code int + want string + }{ + "the answer is an error too long for the view": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}, whole: map[string]*agentv1.GetSessionMessageResponse{"6": {Role: "assistant", Text: "all of it"}}}, cutErr, 1, "reply was an error: all of it"}, + "the record says placed when the session comes to rest": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("placed"), became("answered", "4")}}, viewReplied, 0, "hi there"}, + "the read by id fails on every try": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}, wholeErrs: []error{down, down, down, down, down, down}}, cut, 0, "all\n[6 bytes truncated]"}, + "the answer calls a tool": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "4")}}, step, 1, failedNoReply}, + "the answer out of the view is not the agent's": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "9")}, whole: map[string]*agentv1.GetSessionMessageResponse{"9": {Role: "tool", Text: "ok"}}}, viewBefore, 1, failedNoReply}, + } { + t.Run(name, func(t *testing.T) { + tc.fake.frames = [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", tc.view)}} + serveAgent(t, tc.fake) + out, _, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1", "-o", "json") + var status cli.StatusError + var result watchResult + if tc.code == 0 { + if err != nil || json.Unmarshal([]byte(out), &result) != nil || result.Reply != tc.want { + t.Fatalf("err = %v, out = %s; want the reply %q", err, out, tc.want) + } + } else if !errors.As(err, &status) || status.StatusCode != tc.code || !strings.Contains(status.Status, tc.want) { + t.Fatalf("err = %#v, want exit %d with %q", err, tc.code, tc.want) + } + }) + } +} + +// The transcript is all a text watch prints, so a reply whose input has left the view is still printed. +func TestWatchPrintsAReplyWhoseInputLeftTheView(t *testing.T) { + retryDelay = time.Millisecond + t.Cleanup(func() { retryDelay = time.Second }) + whole := `{"messages": [{"id": "2", "role": "assistant", "text": "the reply"}], "tools": []}` + cut := `{"messages": [{"id": "2", "role": "assistant", "text": "the\n[6 bytes truncated]", "truncatedBytes": 6}], "tools": []}` + for name, view := range map[string]string{"whole in the frame": whole, "cut in the frame": cut} { + t.Run(name, func(t *testing.T) { + serveAgent(t, &fakeAgent{ + frames: [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", view)}}, + inputs: []*agentv1.GetSessionInputResponse{became("answered", "2")}, + whole: map[string]*agentv1.GetSessionMessageResponse{"2": {Role: "assistant", Text: "the reply"}}, + }) + out, _, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1") + if err != nil || strings.Count(out, "the reply") != 1 { + t.Fatalf("err = %v, out = %q; want the reply printed once", err, out) + } + }) + } +} + +func TestWatchUntilIdleExitCodes(t *testing.T) { replyGrace = 10 * time.Millisecond t.Cleanup(func() { replyGrace = 10 * time.Second }) interrupted := `{"messages": [{"id": "3", "role": "user", "inputId": "dai_1", "text": "hello"}, {"id": "4", "role": "tool", "toolName": "bash", "text": "killed"}], "tools": []}` @@ -694,10 +674,6 @@ func TestWatchExitCodes(t *testing.T) { }, code: 1, want: "the turn ended without a reply", }, - "a later input got the reply": { - fake: &fakeAgent{frames: [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", strings.Replace(interrupted, `], "tools"`, `, {"id": "5", "role": "user", "inputId": "dai_2", "text": "next"}, {"id": "6", "role": "assistant", "text": "later reply"}], "tools"`, 1))}}}, - code: 1, want: "another input followed before the agent replied", - }, "timeout": { fake: &fakeAgent{holdWatch: true, frames: [][]*agentv1.WatchSessionResponse{{frame("running", "c1", viewAsked)}}}, args: []string{"--timeout", "200ms"}, @@ -706,7 +682,7 @@ func TestWatchExitCodes(t *testing.T) { } { t.Run(name, func(t *testing.T) { serveAgent(t, tc.fake) - _, _, err := runAgent(t, append([]string{"watch", "das_1", "--after-input", "dai_1"}, tc.args...)...) + _, _, err := runAgent(t, append([]string{"watch", "das_1", "--until-idle"}, tc.args...)...) var status cli.StatusError if !errors.As(err, &status) || status.StatusCode != tc.code || !strings.Contains(status.Status, tc.want) { t.Fatalf("err = %#v, want exit %d with %q", err, tc.code, tc.want) @@ -759,7 +735,7 @@ func TestWatchReplaysAFrameWhoseSessionReadFailed(t *testing.T) { retryDelay, replyGrace = time.Millisecond, time.Millisecond t.Cleanup(func() { retryDelay, replyGrace = time.Second, 10*time.Second }) unanswered := []*agentv1.WatchSessionResponse{frame("idle", "c1", viewAsked)} - f := &fakeAgent{getErr: connect.NewError(connect.CodeUnavailable, errors.New("read broke"))} + f := &fakeAgent{inputErr: connect.NewError(connect.CodeUnavailable, errors.New("read broke"))} for range maxWatchFailures { f.frames = append(f.frames, unanswered) } @@ -789,33 +765,24 @@ func TestWatchKeepsReconnectingAStreamThatWasHeldOpen(t *testing.T) { func TestTurnSettled(t *testing.T) { for name, tc := range map[string]struct { - input, status, view string - done bool - reply string + status, view string + done bool + reply string }{ - "idle before the input shows": {"dai_1", "idle", viewBefore, false, ""}, - "input shown, no reply yet": {"dai_1", "idle", viewAsked, false, ""}, - "replied": {"dai_1", "idle", viewReplied, true, "hi there"}, - "replied, waiting for input": {"dai_1", "waiting_input", viewReplied, true, "hi there"}, - "still running": {"dai_1", "running", viewReplied, false, ""}, - "replied, another input queued": {"dai_1", "idle", strings.Replace(viewReplied, `"queuedCount": 0`, `"queuedCount": 1`, 1), true, "hi there"}, - "no input: an input queued": {"", "idle", strings.Replace(viewReplied, `"queuedCount": 0`, `"queuedCount": 1`, 1), false, ""}, - "reply still streaming": {"dai_1", "idle", strings.Replace(viewReplied, `"tools": []`, `"partial": "and", "tools": []`, 1), false, ""}, - "tool still running": {"dai_1", "idle", strings.Replace(viewReplied, `"tools": []`, `"tools": [{"callId": "t", "status": "running"}]`, 1), false, ""}, - "no input: idle is enough": {"", "idle", viewBefore, true, "earlier reply"}, - "replied, then archived": {"dai_1", "archived", viewReplied, true, "hi there"}, - "replied, then failed": {"dai_1", "failed", viewReplied, true, "hi there"}, - "replied, a later turn failed": {"dai_1", "failed", viewLater, true, "hi there"}, - "a later turn is running": {"dai_1", "running", viewLater, true, "hi there"}, - "a later turn has replied": {"dai_1", "idle", strings.Replace(viewLater, `]}`, `, {"id": "6", "role": "assistant", "text": "later reply"}]}`, 1), true, "hi there"}, - "no input: idle without a reply": {"", "idle", viewAsked, false, ""}, + "idle is enough": {"idle", viewBefore, true, "earlier reply"}, + "waiting for input": {"waiting_input", viewReplied, true, "hi there"}, + "still running": {"running", viewReplied, false, ""}, + "an input queued": {"idle", strings.Replace(viewReplied, `"queuedCount": 0`, `"queuedCount": 1`, 1), false, ""}, + "reply still streaming": {"idle", strings.Replace(viewReplied, `"tools": []`, `"partial": "and", "tools": []`, 1), false, ""}, + "tool still running": {"idle", strings.Replace(viewReplied, `"tools": []`, `"tools": [{"callId": "t", "status": "running"}]`, 1), false, ""}, + "idle without a reply": {"idle", viewAsked, false, ""}, } { t.Run(name, func(t *testing.T) { var view agentView if err := json.Unmarshal([]byte(tc.view), &view); err != nil { t.Fatal(err) } - done, reply, failure := (&turn{afterInput: tc.input}).settled(tc.status, &view) + done, reply, failure := (&turn{}).settled(tc.status, &view) if done != tc.done || reply != tc.reply || failure != "" { t.Fatalf("settled = %v, %q, %q; want %v, %q", done, reply, failure, tc.done, tc.reply) } @@ -946,139 +913,6 @@ func TestSendWatchRejectsASubagent(t *testing.T) { } } -// A turn can outgrow the bounded view before the first frame arrives, and nothing later brings its input back. -func TestTurnFailsAnInputTheCutViewDroppedUnseen(t *testing.T) { - const gone = `{"messages": [{"id": "40", "seq": 40, "role": "tool", "text": "ok"}, {"id": "41", "seq": 41, "role": "assistant", "text": "done"}], "truncated": true}` - settle := func(tn *turn, status, raw string) string { - t.Helper() - var view agentView - if err := json.Unmarshal([]byte(raw), &view); err != nil { - t.Fatal(err) - } - if done, reply, failure := tn.settled(status, &view); done { - t.Fatalf("settled = %q, %q on a view that does not show the input", reply, failure) - } - return tn.doubt - } - if doubt := settle(&turn{afterInput: "dai_1", base: beforeFirst()}, "idle", gone); doubt != failedLost { - t.Fatalf("doubt = %q for a first input the view dropped, want %q", doubt, failedLost) - } - // Without a base from the caller the first frame gives one, and only newer messages count. - later := &turn{afterInput: "dai_1"} - for range 2 { - if doubt := settle(later, "idle", gone); doubt != failedUnseen { - t.Fatalf("doubt = %q on the cut view the session already had, want %q", doubt, failedUnseen) - } - } - if doubt := settle(later, "running", gone); doubt != "" { - t.Fatalf("doubt = %q while the session is running", doubt) - } - newer := `{"messages": [{"id": "90", "seq": 90, "role": "assistant", "text": "done"}], "truncated": true` - if doubt := settle(later, "idle", newer+`, "queuedCount": 1}`); doubt != "" { - t.Fatalf("doubt = %q while an input is still queued", doubt) - } - if doubt := settle(later, "idle", newer+`}`); doubt != failedLost { - t.Fatalf("doubt = %q once the view holds only newer messages, want %q", doubt, failedLost) - } -} - -func TestWatchFailsAnInputTheCutViewDroppedUnseen(t *testing.T) { - replyGrace = time.Millisecond - t.Cleanup(func() { replyGrace = 10 * time.Second }) - const gone = `{"messages": [{"id": "41", "seq": 41, "role": "assistant", "text": "done"}], "truncated": true}` - for name, args := range map[string][]string{ - "create": {"create", "hello", "--watch", "--timeout", "2s"}, - "send": {"send", "das_1", "hello", "--watch", "--timeout", "2s"}, - } { - t.Run(name, func(t *testing.T) { - // GetSession serves both the read before the send and the second look. - f := &fakeAgent{holdWatch: true, frames: [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", gone)}}} - if f.got = (&agentv1.GetSessionResponse{Session: &agentv1.DepotAgentSession{Status: "idle"}, ViewJson: gone}); name == "send" { - f.gots = []*agentv1.GetSessionResponse{{Session: &agentv1.DepotAgentSession{Status: "idle"}, ViewJson: viewBefore}} - } - serveAgent(t, f) - _, _, err := runAgent(t, args...) - var status cli.StatusError - if !errors.As(err, &status) || status.StatusCode != 1 || !strings.Contains(status.Status, failedLost) { - t.Fatalf("err = %#v, want exit 1 with %q", err, failedLost) - } - }) - } -} - -// A watch started on its own cannot tell an input sent a moment ago from one whose turn the view has dropped, -// so an idle session gets a while to pick the input up before the wait fails. -func TestWatchGivesAnInputOutOfTheCutViewTimeToBePickedUp(t *testing.T) { - replyGrace, pickupGrace, pickupPoll = time.Millisecond, 20*time.Millisecond, 5*time.Millisecond - t.Cleanup(func() { replyGrace, pickupGrace, pickupPoll = 10*time.Second, 2*time.Minute, 5*time.Second }) - const gone = `{"messages": [{"id": "41", "seq": 41, "role": "assistant", "text": "done"}], "truncated": true}` - const shown = `{"messages": [{"id": "42", "seq": 42, "role": "user", "text": "hi", "inputId": "dai_1"}, {"id": "43", "seq": 43, "role": "assistant", "text": "hello"}], "truncated": true}` - idle := func(view string) *agentv1.GetSessionResponse { - return &agentv1.GetSessionResponse{Session: &agentv1.DepotAgentSession{Status: "idle"}, ViewJson: view} - } - watch := func(f *fakeAgent) (string, error) { - f.holdWatch, f.frames = true, [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", gone)}} - serveAgent(t, f) - stdout, _, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1", "--timeout", "2s") - return stdout, err - } - t.Run("never shows", func(t *testing.T) { - _, err := watch(&fakeAgent{got: idle(gone)}) - var status cli.StatusError - if !errors.As(err, &status) || status.StatusCode != 1 || !strings.Contains(status.Status, failedUnseen) { - t.Fatalf("err = %#v, want exit 1 with %q", err, failedUnseen) - } - }) - t.Run("a send the API had already taken", func(t *testing.T) { - // A repeated --client-request-id returns the first send's input, whose turn the view may no longer show. - f := &fakeAgent{got: idle(gone), sentStatus: "submitted", holdWatch: true} - f.frames = [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", gone)}} - serveAgent(t, f) - _, _, err := runAgent(t, "send", "das_1", "hi", "--client-request-id", "again", "--watch", "--timeout", "2s") - var status cli.StatusError - if !errors.As(err, &status) || status.StatusCode != 1 || !strings.Contains(status.Status, failedUnseen) { - t.Fatalf("err = %#v, want exit 1 with %q", err, failedUnseen) - } - }) - t.Run("frames older than the read", func(t *testing.T) { - const turn = `{"id": "42", "seq": 42, "role": "user", "text": "hi", "inputId": "dai_1"}, {"id": "43", "seq": 43, "role": "tool", "text": "ok"}` - const working = `{"messages": [` + turn + `], "truncated": true}` - const replied = `{"messages": [` + turn + `, {"id": "44", "seq": 44, "role": "assistant", "text": "hello"}], "truncated": true}` - const stale = `{"messages": [{"id": "40", "seq": 40, "role": "assistant", "text": "earlier"}, {"id": "41", "seq": 41, "role": "assistant", "text": "done"}], "truncated": true}` - f := &fakeAgent{holdWatch: true, got: &agentv1.GetSessionResponse{Session: &agentv1.DepotAgentSession{Status: "running"}, ViewJson: working}} - // The stream still holds the frame from before the input showed when the read has already seen its turn. - f.frames = [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", gone), frame("idle", "c2", stale), frame("idle", "c3", replied)}} - serveAgent(t, f) - stdout, _, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1", "--timeout", "2s") - if err != nil || !strings.Contains(stdout, "hello") { - t.Fatalf("err = %v, stdout = %q, want the reply after the stale frame", err, stdout) - } - if strings.Contains(stdout, "earlier") || strings.Count(stdout, "[idle]") != 2 { - t.Fatalf("stdout = %q, want nothing printed from the stale frame", stdout) - } - }) - t.Run("reads that fail now and then", func(t *testing.T) { - retryDelay, streamHeld, pickupGrace = time.Millisecond, 10*time.Millisecond, 200*time.Millisecond - t.Cleanup(func() { retryDelay, streamHeld = time.Second, 30*time.Second }) - f := &fakeAgent{holdWatch: true, got: idle(gone), getErrEvery: 4, getErr: connect.NewError(connect.CodeUnavailable, errors.New("read broke"))} - for range 200 { - f.frames = append(f.frames, []*agentv1.WatchSessionResponse{frame("idle", "c1", gone)}) - } - serveAgent(t, f) - _, _, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1", "--timeout", "3s") - var status cli.StatusError - if !errors.As(err, &status) || status.StatusCode != 1 || !strings.Contains(status.Status, failedUnseen) { - t.Fatalf("err = %#v, want exit 1 with %q: a reconnect must not start the window over", err, failedUnseen) - } - }) - t.Run("picked up", func(t *testing.T) { - stdout, err := watch(&fakeAgent{gots: []*agentv1.GetSessionResponse{idle(gone)}, got: idle(shown)}) - if err != nil || !strings.Contains(stdout, "hello") { - t.Fatalf("err = %v, stdout = %q, want the reply once the session picked the input up", err, stdout) - } - }) -} - func TestWatchReportsACancelledContext(t *testing.T) { for _, args := range [][]string{{"watch", "das_1"}, {"watch", "das_1", "--until-idle"}} { serveAgent(t, &fakeAgent{holdWatch: true, frames: [][]*agentv1.WatchSessionResponse{{frame("running", "c1", viewAsked)}}}) diff --git a/pkg/cmd/agent/watch.go b/pkg/cmd/agent/watch.go index 7ed662e8..f51f36f7 100644 --- a/pkg/cmd/agent/watch.go +++ b/pkg/cmd/agent/watch.go @@ -30,13 +30,6 @@ var defaultWatchTimeout = 30 * time.Minute // How long an idle session whose turn has no reply is given to show one before the turn counts as failed. var replyGrace = 10 * time.Second -// How long an idle session is given to pick up an input that its cut view does not show, and how often it is -// read meanwhile. Nothing tells an input sent a moment ago from one whose turn the view has long dropped. -var ( - pickupGrace = 2 * time.Minute - pickupPoll = 5 * time.Second -) - // A watch that fails this many times in a row gives up with the last error. A stream that brought a frame // or stayed open for streamHeld is not such a failure: a quiet session's stream is cut from time to time. // Each retry waits one retryDelay longer than the one before. streamHeld is longer than replyGrace, @@ -59,39 +52,10 @@ type watchOptions struct { timeout time.Duration // url is the session's URL when the API gave one; otherwise it is built from the organization. url string - // base is the seq of the session's newest message before afterInput was sent, when the caller knows it. - base *int64 // did is what the command did to the session before watching it, said when the watch then fails. did string } -// beforeFirst is the base of a session's first input: no message precedes it. -func beforeFirst() *int64 { - base := int64(-1) - return &base -} - -// newestSeq reads the seq of the session's newest message, for an input about to be sent. It is nil when the -// read fails or the view is cut to nothing, and the watch then takes its base from the first frame. -func newestSeq(ctx context.Context, c *caller, sessionID string) *int64 { - resp, err := c.client.GetSession(ctx, authed(c, &agentv1.GetSessionRequest{SessionId: sessionID})) - if err != nil { - return nil - } - // A session has no view until its agent first reports one, and no messages until then either. - raw := resp.Msg.GetViewJson() - if raw == "" { - return beforeFirst() - } - var view agentView - if json.Unmarshal([]byte(raw), &view) != nil { - return nil - } - t := &turn{} - t.mark(&view) - return t.base -} - type watchResult struct { SessionID string `json:"sessionId"` InputID string `json:"inputId,omitempty"` @@ -156,7 +120,11 @@ func watchAndReport(cmd *cobra.Command, c *caller, output, sessionID string, o w } result, err := watchSession(cmd.Context(), c, sessionID, NewRenderer(transcript).From(o.afterInput), o) if err != nil { - err = c.refused(err, "WatchSession") + rpc := "WatchSession" + if named := (*rpcError)(nil); errors.As(err, &named) { + rpc = named.rpc + } + err = c.refused(err, rpc) if o.did != "" && cmd.Context().Err() == nil { err = fmt.Errorf("%w\nSession %s %s and is not being watched; read its reply with `depot agent logs %s`", err, sessionID, o.did, sessionID) } @@ -205,8 +173,12 @@ func watchSession(ctx context.Context, c *caller, sessionID string, r *Renderer, deadline, cancel = context.WithTimeout(ctx, o.timeout) defer cancel() } - r.Whole(func(messageID string) (string, error) { return wholeMessage(deadline, c, sessionID, messageID) }) - t := &turn{afterInput: o.afterInput, base: o.base} + t := &turn{roles: map[string]string{}} + r.Whole(func(messageID string) (string, error) { + text, role, err := wholeMessage(deadline, c, sessionID, messageID) + t.roles[messageID] = role + return text, err + }) cursor, failures := "", 0 for { before, opened := cursor, time.Now() @@ -278,22 +250,35 @@ func watchOnce(ctx context.Context, c *caller, sessionID string, r *Renderer, o } continue } - done, reply, failure := t.settled(status, view) - for !done && t.doubt != "" { - // The status and the view are written apart, so the reply may only be late. Look once more, - // or for an input the view does not show, until the session has had time to pick it up. - wait, final := replyGrace, true - if t.doubt == failedUnseen { - // The window opens once for the whole watch, so a reconnect does not start it over. - if t.unseen.IsZero() { - t.unseen = time.Now() + var done bool + var reply, failure string + if o.afterInput != "" { + // A frame that only streams more of a reply cannot change what became of the input. + queued := 0 + if view != nil { + queued = view.QueuedCount + } + if at := fmt.Sprintf("%s:%s:%d", status, newestID(view), queued); at != t.asked { + if done, reply, failure, err = awaited(ctx, c, sessionID, o.afterInput, status, view, r, t, restLooks); err != nil { + return false, err + } + if ctx.Err() != nil { + return false, nil + } + // At rest with the input still open, the next frame asks again whatever it shows. + if done || (status != "idle" && status != "waiting_input") { + t.asked = at } - wait, final = pickupPoll, time.Since(t.unseen)+pickupPoll >= pickupGrace } + } else { + done, reply, failure = t.settled(status, view) + } + for !done && t.doubt != "" { + // The status and the view are written apart, so the reply may only be late. Look once more. select { case <-ctx.Done(): return false, nil - case <-time.After(wait): + case <-time.After(replyGrace): } again, err := c.client.GetSession(ctx, authed(c, &agentv1.GetSessionRequest{SessionId: sessionID})) if err != nil { @@ -306,11 +291,11 @@ func watchOnce(ctx context.Context, c *caller, sessionID string, r *Renderer, o return false, nil } result.Status = again.Msg.GetSession().GetStatus() - if done, reply, failure = t.settled(result.Status, view); !done && t.doubt != "" && final { + if done, reply, failure = t.settled(result.Status, view); !done && t.doubt != "" { done, failure = true, t.doubt } } - if done && failure == "" { + if done && failure == "" && o.afterInput == "" { // The wait ends here, so no later frame would read a reply this one could not. if reply = r.Recover(ctx, view, t.said, reply); ctx.Err() != nil { return false, nil @@ -331,75 +316,121 @@ func watchOnce(ctx context.Context, c *caller, sessionID string, r *Renderer, o return false, nil } -// turn decides, frame by frame, whether the session has finished the work being waited for. +// rpcError names the call that failed under a watch, so a refused token is reported against that call. +type rpcError struct { + rpc string + err error +} + +func (e *rpcError) Error() string { return e.err.Error() } +func (e *rpcError) Unwrap() error { return e.err } + +// awaited asks the API what became of the input being waited for. The API reads its answer off what the session +// stored, so nothing here is worked out from the messages around it. +func awaited(ctx context.Context, c *caller, sessionID, inputID, status string, view *agentView, r *Renderer, t *turn, looks int) (done bool, reply, failure string, err error) { + resp, err := c.client.GetSessionInput(ctx, authed(c, &agentv1.GetSessionInputRequest{SessionId: sessionID, InputId: inputID})) + if err != nil { + return false, "", "", &rpcError{"GetSessionInput", fmt.Errorf("get input %s: %w", inputID, err)} + } + switch resp.Msg.GetOutcome() { + case "answered": + id := resp.Msg.GetAnswerMessageId() + var shown *viewMessage + for i, msg := range viewMessages(view) { + if msg.ID == id { + shown = &view.Messages[i] + } + } + // The input left the view before the watch saw it, so nothing of its run was printed: print the reply. + if r.from != "" && shown != nil { + defer func() { + if reply != "" { + r.line("%s", strings.TrimSpace(reply)) + } + }() + } + // A reply the frame holds whole is already in the transcript and needs no read. + if shown != nil && shown.TruncatedBytes == 0 { + return answer(shown.Role, len(shown.ToolCalls) > 0 && !shown.IsError, *shown) + } + text, err := r.Reply(id) + switch { + case err != nil && shown != nil: + // The read by id failed on every try; the frame's cut text is still the reply. + return answer(shown.Role, len(shown.ToolCalls) > 0 && !shown.IsError, *shown) + case err != nil: + return false, "", "", &rpcError{"GetSessionMessage", fmt.Errorf("get message %s: %w", id, err)} + } + failed := shown != nil && shown.IsError + return answer(t.roles[id], shown != nil && len(shown.ToolCalls) > 0 && !failed, viewMessage{Text: text, IsError: failed}) + case "unanswered": + switch resp.Msg.GetReason() { + case "aborted": + return true, "", "the turn was stopped before the agent replied", nil + case "model_error": + return true, "", "the agent's reply was an error: " + truncate(oneLine(resp.Msg.GetDetail())), nil + } + return true, "", "the turn ended without a reply: " + resp.Msg.GetReason(), nil + case "withdrawn": + return true, "", "the input was cancelled before the agent took it", nil + } + switch status { + case "failed": + return true, "", "the session failed", nil + case "archived": + return true, "", "the session was archived", nil + case "idle", "waiting_input": + // A session at rest while the record still says its run holds the input: the two are written apart, so look again. + if looks > 0 && resp.Msg.GetOutcome() == "placed" { + select { + case <-ctx.Done(): + return false, "", "", nil + case <-time.After(replyGrace): + } + return awaited(ctx, c, sessionID, inputID, status, view, r, t, looks-1) + } + } + return false, "", "", nil +} + +// answer is the wait's end for the message the API names as the answer. Only what the agent itself said last counts +// as a reply: a message of another role, or one that calls a tool, is a run that ended without one. +func answer(role string, calls bool, msg viewMessage) (done bool, reply, failure string, err error) { + if (role != "" && role != "assistant") || calls { + return true, "", failedNoReply, nil + } + done, reply, failure = replied(msg) + return done, reply, failure, nil +} + +// turn decides, frame by frame, whether the session has finished its work. type turn struct { - afterInput string - // last is the newest message seen in the awaited input's turn. It places the turn in a view - // that the turn has grown too long to keep the input's own message in. - last string - lastSeq int64 - // base is the seq of the newest message from before the input was a message: the caller's, or else the - // first frame's. A cut view holding only newer messages, without the input, has dropped the input's turn. - base *int64 - // framed is set when base came from a frame, so the input may already have been out of the view by then. - framed bool - // doubt is why the turn counts as failed if a second look still shows what the last frame did: - // the turn over without a reply at its end, as an interrupt leaves it, or gone from the view. + // doubt is why the session counts as failed if a second look still shows what the last frame did: + // idle without a reply at its end, as an interrupt leaves it. doubt string // said is the id of the message the last settled gave as the reply. said string - // unseen is when the wait first found the input missing from an idle session's cut view. - unseen time.Time + // asked is the status and newest message of the last frame the API was asked about the awaited input for. + asked string + // roles is who wrote each message read by its id. + roles map[string]string } -const ( - failedNoReply = "the turn ended without a reply" - failedLost = "the session moved past the input before its reply was seen" - failedUnseen = "the input is not in the session's view: its turn is too old to show, or the session never picked it up" -) - -// mark takes the base from the first view that can give one. A frame without a view says nothing of its messages. -func (t *turn) mark(view *agentView) { - switch { - case t.base != nil || view == nil: - case len(view.Messages) > 0: - seq := view.Messages[len(view.Messages)-1].Seq - t.base, t.framed = &seq, true - case !view.Truncated: - t.base = beforeFirst() +func newestID(view *agentView) string { + if n := len(viewMessages(view)); n > 0 { + return view.Messages[n-1].ID } + return "" } -// passed reports whether the view shows only messages newer than the base, so the input's own was cut away. -func (t *turn) passed(view *agentView) bool { - return t.base != nil && view.Truncated && len(view.Messages) > 0 && view.Messages[0].Seq > *t.base -} +// restLooks is how many more times a watch reads an input that a session at rest still holds. +const restLooks = 3 + +const failedNoReply = "the turn ended without a reply" -// settled reports whether the wait is over, with the agent's reply, or with why the turn counts as failed. +// settled reports whether the wait is over, with the agent's reply, or with why the session counts as failed. func (t *turn) settled(status string, view *agentView) (done bool, reply, failure string) { t.doubt, t.said = "", "" - // A read made beside the stream can be ahead of frames the stream has yet to deliver; those say nothing new. - if n := len(viewMessages(view)); t.last != "" && n > 0 && view.Messages[n-1].Seq < t.lastSeq { - return false, "", "" - } - at, input := t.place(view) - if t.afterInput != "" && !input { - defer t.mark(view) - } - var doubt string - if t.afterInput != "" && view != nil && at < 0 { - var gone bool - if gone, doubt = t.lost(status, view); gone { - return true, "", failedLost - } - } - // A reply the input already has stands, whatever happened to the session afterwards. - if msg, failure := t.answered(view, at, input, status == "archived" || status == "failed"); msg != nil { - t.said = msg.ID - return replied(*msg) - } else if failure != "" { - return true, "", failure - } switch status { case "failed": return true, "", "the session failed" @@ -421,113 +452,20 @@ func (t *turn) settled(status string, view *agentView) (done bool, reply, failur return false, "", "" } } - // The view shows nothing of the awaited turn, so the session is idle from another one. - if t.afterInput != "" && at < 0 { - t.doubt = doubt - return false, "", "" - } - sent := -1 - if input { - sent = at - } - // Queued inputs are work still to come, unless the awaited input already has its reply above them. - if view.QueuedCount > 0 && sent < 0 { + // Queued inputs are work still to come. + if view.QueuedCount > 0 { return false, "", "" } last := newest(view, len(view.Messages)) - if last < 0 || last <= sent || view.Messages[last].Role != "assistant" { - if view.QueuedCount == 0 { - t.doubt = failedNoReply - } - return false, "", "" - } // A message that calls a tool is a step of the turn, not its reply, unless it is the error that ended it. - if msg := view.Messages[last]; len(msg.ToolCalls) > 0 && !msg.IsError { - if view.QueuedCount == 0 { - t.doubt = failedNoReply - } + if last < 0 || view.Messages[last].Role != "assistant" || (len(view.Messages[last].ToolCalls) > 0 && !view.Messages[last].IsError) { + t.doubt = failedNoReply return false, "", "" } t.said = view.Messages[last].ID return replied(view.Messages[last]) } -// lost is the one place that reads a view showing nothing of the awaited turn. gone: the turn was being followed -// and an input shows, so it is over with its reply cut away. Otherwise doubt is why the turn counts as failed if -// a second look at an idle session shows the same: a session still working may yet show the turn, or its end. -func (t *turn) lost(status string, view *agentView) (gone bool, doubt string) { - followed := t.last != "" - if followed { - for _, msg := range view.Messages { - if msg.outside() { - return true, "" - } - } - } - switch { - case status != "idle" && status != "waiting_input", view.QueuedCount > 0: - case followed, t.passed(view): - doubt = failedLost - case view.Truncated && (t.base == nil || t.framed): - doubt = failedUnseen - } - return false, doubt -} - -// place finds the awaited turn in the view: the index of the input's own message, or once that has left -// a cut view, of the newest message already seen in its turn. It is -1 when the view shows neither. -func (t *turn) place(view *agentView) (at int, input bool) { - at = -1 - if t.afterInput == "" || view == nil { - return at, false - } - for i, msg := range view.Messages { - if msg.InputID == t.afterInput { - return i, true - } - if t.last != "" && msg.ID == t.last { - at = i - } - } - return at, false -} - -// answered returns the reply to the awaited input once a later input follows it, or once the session is closed, -// so a session that has moved on to another turn does not hold the wait open or answer with that turn's reply. -// What the agent says after a later input answers that input, whether it steered the turn or started the next -// one, so it is never credited to this one; nor is anything in a view that no longer connects to the turn. -func (t *turn) answered(view *agentView, at int, input, closed bool) (reply *viewMessage, failure string) { - if t.afterInput == "" || view == nil { - return nil, "" - } - if at < 0 { - return nil, "" - } - // The input's own message cannot be its reply; the newest message seen after it can. - isReply := func(i int) bool { - if i < 0 || (i <= at && input) { - return false - } - return view.Messages[i].Role == "assistant" && len(view.Messages[i].ToolCalls) == 0 - } - for i := at + 1; i < len(view.Messages); i++ { - // A subagent's report joins the turn it was started in; only an input from outside ends that turn. - if !view.Messages[i].outside() { - continue - } - if said := newest(view, i); isReply(said) { - return &view.Messages[said], "" - } - return nil, "another input followed before the agent replied" - } - last := len(view.Messages) - 1 - t.last, t.lastSeq = view.Messages[last].ID, view.Messages[last].Seq - if said := newest(view, len(view.Messages)); closed && isReply(said) { - return &view.Messages[said], "" - } - return nil, "" -} - // newest is the index of the last message before end that is not a subagent's report, which the agent may leave // unanswered when it comes in after the reply. It is -1 when there is none. func newest(view *agentView, end int) int { @@ -551,7 +489,7 @@ func replied(msg viewMessage) (done bool, reply, failure string) { // wholeMessage reads the full text of a message the view cut short. Past the API's own limit the text is still cut, // and ends in the same note the view puts there. -func wholeMessage(ctx context.Context, c *caller, sessionID, messageID string) (string, error) { +func wholeMessage(ctx context.Context, c *caller, sessionID, messageID string) (text, role string, err error) { for failures := 1; ; failures++ { // Each try has its own time, so one that hangs leaves the others theirs. try, cancel := context.WithTimeout(ctx, wholeMessageTimeout) @@ -562,14 +500,14 @@ func wholeMessage(ctx context.Context, c *caller, sessionID, messageID string) ( if cut := resp.Msg.GetTruncatedBytes(); cut > 0 { text += fmt.Sprintf("\n[%d bytes truncated]", cut) } - return text, nil + return text, resp.Msg.GetRole(), nil } if !retryable(err) || failures >= wholeMessageTries { - return "", err + return "", "", err } select { case <-ctx.Done(): - return "", err + return "", "", err case <-time.After(retryDelay): } } diff --git a/pkg/proto/depot/agent/v1/agentv1connect/depot_agent_core.connect.go b/pkg/proto/depot/agent/v1/agentv1connect/depot_agent_core.connect.go index 9b29348e..693241ff 100644 --- a/pkg/proto/depot/agent/v1/agentv1connect/depot_agent_core.connect.go +++ b/pkg/proto/depot/agent/v1/agentv1connect/depot_agent_core.connect.go @@ -47,6 +47,9 @@ const ( // DepotAgentServiceGetSessionMessageProcedure is the fully-qualified name of the // DepotAgentService's GetSessionMessage RPC. DepotAgentServiceGetSessionMessageProcedure = "/depot.agent.v1.DepotAgentService/GetSessionMessage" + // DepotAgentServiceGetSessionInputProcedure is the fully-qualified name of the DepotAgentService's + // GetSessionInput RPC. + DepotAgentServiceGetSessionInputProcedure = "/depot.agent.v1.DepotAgentService/GetSessionInput" // DepotAgentServiceListDepotAgentSessionsProcedure is the fully-qualified name of the // DepotAgentService's ListDepotAgentSessions RPC. DepotAgentServiceListDepotAgentSessionsProcedure = "/depot.agent.v1.DepotAgentService/ListDepotAgentSessions" @@ -99,6 +102,8 @@ type DepotAgentServiceClient interface { GetSession(context.Context, *connect.Request[v1.GetSessionRequest]) (*connect.Response[v1.GetSessionResponse], error) // Returns the whole text of one message of a session's conversation. The view cuts long messages short. GetSessionMessage(context.Context, *connect.Request[v1.GetSessionMessageRequest]) (*connect.Response[v1.GetSessionMessageResponse], error) + // Returns what became of one message sent to a session, from the session's stored record of it. + GetSessionInput(context.Context, *connect.Request[v1.GetSessionInputRequest]) (*connect.Response[v1.GetSessionInputResponse], error) // Lists the organization's sessions, newest first. ListDepotAgentSessions(context.Context, *connect.Request[v1.ListDepotAgentSessionsRequest]) (*connect.Response[v1.ListDepotAgentSessionsResponse], error) // Streams the session's view each time it changes. @@ -142,6 +147,11 @@ func NewDepotAgentServiceClient(httpClient connect.HTTPClient, baseURL string, o baseURL+DepotAgentServiceGetSessionMessageProcedure, opts..., ), + getSessionInput: connect.NewClient[v1.GetSessionInputRequest, v1.GetSessionInputResponse]( + httpClient, + baseURL+DepotAgentServiceGetSessionInputProcedure, + opts..., + ), listDepotAgentSessions: connect.NewClient[v1.ListDepotAgentSessionsRequest, v1.ListDepotAgentSessionsResponse]( httpClient, baseURL+DepotAgentServiceListDepotAgentSessionsProcedure, @@ -176,6 +186,7 @@ type depotAgentServiceClient struct { sendInput *connect.Client[v1.SendInputRequest, v1.SendInputResponse] getSession *connect.Client[v1.GetSessionRequest, v1.GetSessionResponse] getSessionMessage *connect.Client[v1.GetSessionMessageRequest, v1.GetSessionMessageResponse] + getSessionInput *connect.Client[v1.GetSessionInputRequest, v1.GetSessionInputResponse] listDepotAgentSessions *connect.Client[v1.ListDepotAgentSessionsRequest, v1.ListDepotAgentSessionsResponse] watchSession *connect.Client[v1.WatchSessionRequest, v1.WatchSessionResponse] interruptSession *connect.Client[v1.InterruptSessionRequest, v1.InterruptSessionResponse] @@ -203,6 +214,11 @@ func (c *depotAgentServiceClient) GetSessionMessage(ctx context.Context, req *co return c.getSessionMessage.CallUnary(ctx, req) } +// GetSessionInput calls depot.agent.v1.DepotAgentService.GetSessionInput. +func (c *depotAgentServiceClient) GetSessionInput(ctx context.Context, req *connect.Request[v1.GetSessionInputRequest]) (*connect.Response[v1.GetSessionInputResponse], error) { + return c.getSessionInput.CallUnary(ctx, req) +} + // ListDepotAgentSessions calls depot.agent.v1.DepotAgentService.ListDepotAgentSessions. func (c *depotAgentServiceClient) ListDepotAgentSessions(ctx context.Context, req *connect.Request[v1.ListDepotAgentSessionsRequest]) (*connect.Response[v1.ListDepotAgentSessionsResponse], error) { return c.listDepotAgentSessions.CallUnary(ctx, req) @@ -239,6 +255,8 @@ type DepotAgentServiceHandler interface { GetSession(context.Context, *connect.Request[v1.GetSessionRequest]) (*connect.Response[v1.GetSessionResponse], error) // Returns the whole text of one message of a session's conversation. The view cuts long messages short. GetSessionMessage(context.Context, *connect.Request[v1.GetSessionMessageRequest]) (*connect.Response[v1.GetSessionMessageResponse], error) + // Returns what became of one message sent to a session, from the session's stored record of it. + GetSessionInput(context.Context, *connect.Request[v1.GetSessionInputRequest]) (*connect.Response[v1.GetSessionInputResponse], error) // Lists the organization's sessions, newest first. ListDepotAgentSessions(context.Context, *connect.Request[v1.ListDepotAgentSessionsRequest]) (*connect.Response[v1.ListDepotAgentSessionsResponse], error) // Streams the session's view each time it changes. @@ -278,6 +296,11 @@ func NewDepotAgentServiceHandler(svc DepotAgentServiceHandler, opts ...connect.H svc.GetSessionMessage, opts..., ) + depotAgentServiceGetSessionInputHandler := connect.NewUnaryHandler( + DepotAgentServiceGetSessionInputProcedure, + svc.GetSessionInput, + opts..., + ) depotAgentServiceListDepotAgentSessionsHandler := connect.NewUnaryHandler( DepotAgentServiceListDepotAgentSessionsProcedure, svc.ListDepotAgentSessions, @@ -313,6 +336,8 @@ func NewDepotAgentServiceHandler(svc DepotAgentServiceHandler, opts ...connect.H depotAgentServiceGetSessionHandler.ServeHTTP(w, r) case DepotAgentServiceGetSessionMessageProcedure: depotAgentServiceGetSessionMessageHandler.ServeHTTP(w, r) + case DepotAgentServiceGetSessionInputProcedure: + depotAgentServiceGetSessionInputHandler.ServeHTTP(w, r) case DepotAgentServiceListDepotAgentSessionsProcedure: depotAgentServiceListDepotAgentSessionsHandler.ServeHTTP(w, r) case DepotAgentServiceWatchSessionProcedure: @@ -348,6 +373,10 @@ func (UnimplementedDepotAgentServiceHandler) GetSessionMessage(context.Context, return nil, connect.NewError(connect.CodeUnimplemented, errors.New("depot.agent.v1.DepotAgentService.GetSessionMessage is not implemented")) } +func (UnimplementedDepotAgentServiceHandler) GetSessionInput(context.Context, *connect.Request[v1.GetSessionInputRequest]) (*connect.Response[v1.GetSessionInputResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("depot.agent.v1.DepotAgentService.GetSessionInput is not implemented")) +} + func (UnimplementedDepotAgentServiceHandler) ListDepotAgentSessions(context.Context, *connect.Request[v1.ListDepotAgentSessionsRequest]) (*connect.Response[v1.ListDepotAgentSessionsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("depot.agent.v1.DepotAgentService.ListDepotAgentSessions is not implemented")) } diff --git a/pkg/proto/depot/agent/v1/depot_agent_core.pb.go b/pkg/proto/depot/agent/v1/depot_agent_core.pb.go index 2e4dc9a7..7a99bd07 100644 --- a/pkg/proto/depot/agent/v1/depot_agent_core.pb.go +++ b/pkg/proto/depot/agent/v1/depot_agent_core.pb.go @@ -1124,6 +1124,156 @@ func (x *GetSessionResponse) GetContributions() map[string][]byte { return nil } +type GetSessionInputRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier for the session. Returned by `CreateSession` and `ListDepotAgentSessions`. + SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + // Unique identifier for the message. Returned by `CreateSession` and `SendInput`. + InputId string `protobuf:"bytes,2,opt,name=input_id,json=inputId,proto3" json:"input_id,omitempty"` +} + +func (x *GetSessionInputRequest) Reset() { + *x = GetSessionInputRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSessionInputRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSessionInputRequest) ProtoMessage() {} + +func (x *GetSessionInputRequest) ProtoReflect() protoreflect.Message { + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSessionInputRequest.ProtoReflect.Descriptor instead. +func (*GetSessionInputRequest) Descriptor() ([]byte, []int) { + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{15} +} + +func (x *GetSessionInputRequest) GetSessionId() string { + if x != nil { + return x.SessionId + } + return "" +} + +func (x *GetSessionInputRequest) GetInputId() string { + if x != nil { + return x.InputId + } + return "" +} + +type GetSessionInputResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // What became of the message: "pending" (not yet read), "placed" (in a run that has not ended), "answered", "unanswered" or "withdrawn" (cancelled unread). + Outcome string `protobuf:"bytes,1,opt,name=outcome,proto3" json:"outcome,omitempty"` + // Set when `outcome` is "answered": the last message of the run that settled this one. `GetSessionMessage` takes it. + AnswerMessageId *string `protobuf:"bytes,2,opt,name=answer_message_id,json=answerMessageId,proto3,oneof" json:"answer_message_id,omitempty"` + // Set when `outcome` is "unanswered": why. For example, "aborted" after a stop, "model_error", or "no_reply" when the run ended on a tool step. + Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"` + // Set when `outcome` is "unanswered" and the reason has more to say, such as the model's error. Maximum: 4 KiB. + Detail *string `protobuf:"bytes,4,opt,name=detail,proto3,oneof" json:"detail,omitempty"` + // Set when `outcome` is "answered": this message as the agent read it. `GetSessionMessage` takes it. + MessageId *string `protobuf:"bytes,5,opt,name=message_id,json=messageId,proto3,oneof" json:"message_id,omitempty"` + // Set when `outcome` is "answered": the inputs this run settled together with this one. + SharedInputIds []string `protobuf:"bytes,6,rep,name=shared_input_ids,json=sharedInputIds,proto3" json:"shared_input_ids,omitempty"` +} + +func (x *GetSessionInputResponse) Reset() { + *x = GetSessionInputResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSessionInputResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSessionInputResponse) ProtoMessage() {} + +func (x *GetSessionInputResponse) ProtoReflect() protoreflect.Message { + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSessionInputResponse.ProtoReflect.Descriptor instead. +func (*GetSessionInputResponse) Descriptor() ([]byte, []int) { + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{16} +} + +func (x *GetSessionInputResponse) GetOutcome() string { + if x != nil { + return x.Outcome + } + return "" +} + +func (x *GetSessionInputResponse) GetAnswerMessageId() string { + if x != nil && x.AnswerMessageId != nil { + return *x.AnswerMessageId + } + return "" +} + +func (x *GetSessionInputResponse) GetReason() string { + if x != nil && x.Reason != nil { + return *x.Reason + } + return "" +} + +func (x *GetSessionInputResponse) GetDetail() string { + if x != nil && x.Detail != nil { + return *x.Detail + } + return "" +} + +func (x *GetSessionInputResponse) GetMessageId() string { + if x != nil && x.MessageId != nil { + return *x.MessageId + } + return "" +} + +func (x *GetSessionInputResponse) GetSharedInputIds() []string { + if x != nil { + return x.SharedInputIds + } + return nil +} + type GetSessionMessageRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1138,7 +1288,7 @@ type GetSessionMessageRequest struct { func (x *GetSessionMessageRequest) Reset() { *x = GetSessionMessageRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[15] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1151,7 +1301,7 @@ func (x *GetSessionMessageRequest) String() string { func (*GetSessionMessageRequest) ProtoMessage() {} func (x *GetSessionMessageRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[15] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1164,7 +1314,7 @@ func (x *GetSessionMessageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSessionMessageRequest.ProtoReflect.Descriptor instead. func (*GetSessionMessageRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{15} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{17} } func (x *GetSessionMessageRequest) GetSessionId() string { @@ -1197,7 +1347,7 @@ type GetSessionMessageResponse struct { func (x *GetSessionMessageResponse) Reset() { *x = GetSessionMessageResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[16] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1210,7 +1360,7 @@ func (x *GetSessionMessageResponse) String() string { func (*GetSessionMessageResponse) ProtoMessage() {} func (x *GetSessionMessageResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[16] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1223,7 +1373,7 @@ func (x *GetSessionMessageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSessionMessageResponse.ProtoReflect.Descriptor instead. func (*GetSessionMessageResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{16} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{18} } func (x *GetSessionMessageResponse) GetRole() string { @@ -1261,7 +1411,7 @@ type ListDepotAgentSessionsRequest struct { func (x *ListDepotAgentSessionsRequest) Reset() { *x = ListDepotAgentSessionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[17] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1274,7 +1424,7 @@ func (x *ListDepotAgentSessionsRequest) String() string { func (*ListDepotAgentSessionsRequest) ProtoMessage() {} func (x *ListDepotAgentSessionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[17] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1287,7 +1437,7 @@ func (x *ListDepotAgentSessionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDepotAgentSessionsRequest.ProtoReflect.Descriptor instead. func (*ListDepotAgentSessionsRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{17} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{19} } func (x *ListDepotAgentSessionsRequest) GetPageSize() int32 { @@ -1317,7 +1467,7 @@ type ListDepotAgentSessionsResponse struct { func (x *ListDepotAgentSessionsResponse) Reset() { *x = ListDepotAgentSessionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[18] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1330,7 +1480,7 @@ func (x *ListDepotAgentSessionsResponse) String() string { func (*ListDepotAgentSessionsResponse) ProtoMessage() {} func (x *ListDepotAgentSessionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[18] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1343,7 +1493,7 @@ func (x *ListDepotAgentSessionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDepotAgentSessionsResponse.ProtoReflect.Descriptor instead. func (*ListDepotAgentSessionsResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{18} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{20} } func (x *ListDepotAgentSessionsResponse) GetSessions() []*DepotAgentSession { @@ -1379,7 +1529,7 @@ type WatchSessionRequest struct { func (x *WatchSessionRequest) Reset() { *x = WatchSessionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[19] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1392,7 +1542,7 @@ func (x *WatchSessionRequest) String() string { func (*WatchSessionRequest) ProtoMessage() {} func (x *WatchSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[19] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1405,7 +1555,7 @@ func (x *WatchSessionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WatchSessionRequest.ProtoReflect.Descriptor instead. func (*WatchSessionRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{19} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{21} } func (x *WatchSessionRequest) GetSessionId() string { @@ -1455,7 +1605,7 @@ type WatchSessionResponse struct { func (x *WatchSessionResponse) Reset() { *x = WatchSessionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[20] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1468,7 +1618,7 @@ func (x *WatchSessionResponse) String() string { func (*WatchSessionResponse) ProtoMessage() {} func (x *WatchSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[20] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1481,7 +1631,7 @@ func (x *WatchSessionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WatchSessionResponse.ProtoReflect.Descriptor instead. func (*WatchSessionResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{20} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{22} } func (x *WatchSessionResponse) GetSession() *DepotAgentSession { @@ -1531,7 +1681,7 @@ type InterruptSessionRequest struct { func (x *InterruptSessionRequest) Reset() { *x = InterruptSessionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[21] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1544,7 +1694,7 @@ func (x *InterruptSessionRequest) String() string { func (*InterruptSessionRequest) ProtoMessage() {} func (x *InterruptSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[21] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1557,7 +1707,7 @@ func (x *InterruptSessionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InterruptSessionRequest.ProtoReflect.Descriptor instead. func (*InterruptSessionRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{21} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{23} } func (x *InterruptSessionRequest) GetSessionId() string { @@ -1579,7 +1729,7 @@ type InterruptSessionResponse struct { func (x *InterruptSessionResponse) Reset() { *x = InterruptSessionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[22] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1592,7 +1742,7 @@ func (x *InterruptSessionResponse) String() string { func (*InterruptSessionResponse) ProtoMessage() {} func (x *InterruptSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[22] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1605,7 +1755,7 @@ func (x *InterruptSessionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InterruptSessionResponse.ProtoReflect.Descriptor instead. func (*InterruptSessionResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{22} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{24} } func (x *InterruptSessionResponse) GetInput() *DepotAgentInput { @@ -1627,7 +1777,7 @@ type ArchiveSessionRequest struct { func (x *ArchiveSessionRequest) Reset() { *x = ArchiveSessionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[23] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1640,7 +1790,7 @@ func (x *ArchiveSessionRequest) String() string { func (*ArchiveSessionRequest) ProtoMessage() {} func (x *ArchiveSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[23] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1653,7 +1803,7 @@ func (x *ArchiveSessionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ArchiveSessionRequest.ProtoReflect.Descriptor instead. func (*ArchiveSessionRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{23} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{25} } func (x *ArchiveSessionRequest) GetSessionId() string { @@ -1674,7 +1824,7 @@ type ArchiveSessionResponse struct { func (x *ArchiveSessionResponse) Reset() { *x = ArchiveSessionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[24] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1687,7 +1837,7 @@ func (x *ArchiveSessionResponse) String() string { func (*ArchiveSessionResponse) ProtoMessage() {} func (x *ArchiveSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[24] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1700,7 +1850,7 @@ func (x *ArchiveSessionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ArchiveSessionResponse.ProtoReflect.Descriptor instead. func (*ArchiveSessionResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{24} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{26} } func (x *ArchiveSessionResponse) GetSession() *DepotAgentSession { @@ -1721,7 +1871,7 @@ type OpenLeaseRequest struct { func (x *OpenLeaseRequest) Reset() { *x = OpenLeaseRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[25] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1734,7 +1884,7 @@ func (x *OpenLeaseRequest) String() string { func (*OpenLeaseRequest) ProtoMessage() {} func (x *OpenLeaseRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[25] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1747,7 +1897,7 @@ func (x *OpenLeaseRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenLeaseRequest.ProtoReflect.Descriptor instead. func (*OpenLeaseRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{25} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{27} } func (x *OpenLeaseRequest) GetSession() *DepotAgentSessionRef { @@ -1774,7 +1924,7 @@ type OpenLeaseResponse struct { func (x *OpenLeaseResponse) Reset() { *x = OpenLeaseResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[26] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1787,7 +1937,7 @@ func (x *OpenLeaseResponse) String() string { func (*OpenLeaseResponse) ProtoMessage() {} func (x *OpenLeaseResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[26] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1800,7 +1950,7 @@ func (x *OpenLeaseResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenLeaseResponse.ProtoReflect.Descriptor instead. func (*OpenLeaseResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{26} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{28} } func (x *OpenLeaseResponse) GetLease() *DepotAgentLeaseRef { @@ -1845,7 +1995,7 @@ type PullInputsRequest struct { func (x *PullInputsRequest) Reset() { *x = PullInputsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[27] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1858,7 +2008,7 @@ func (x *PullInputsRequest) String() string { func (*PullInputsRequest) ProtoMessage() {} func (x *PullInputsRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[27] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1871,7 +2021,7 @@ func (x *PullInputsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PullInputsRequest.ProtoReflect.Descriptor instead. func (*PullInputsRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{27} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{29} } func (x *PullInputsRequest) GetLease() *DepotAgentLeaseRef { @@ -1902,7 +2052,7 @@ type PullInputsResponse struct { func (x *PullInputsResponse) Reset() { *x = PullInputsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[28] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1915,7 +2065,7 @@ func (x *PullInputsResponse) String() string { func (*PullInputsResponse) ProtoMessage() {} func (x *PullInputsResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[28] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1928,7 +2078,7 @@ func (x *PullInputsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PullInputsResponse.ProtoReflect.Descriptor instead. func (*PullInputsResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{28} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{30} } func (x *PullInputsResponse) GetInputs() []*DepotAgentInput { @@ -1958,7 +2108,7 @@ type AckInputsRequest struct { func (x *AckInputsRequest) Reset() { *x = AckInputsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[29] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1971,7 +2121,7 @@ func (x *AckInputsRequest) String() string { func (*AckInputsRequest) ProtoMessage() {} func (x *AckInputsRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[29] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1984,7 +2134,7 @@ func (x *AckInputsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AckInputsRequest.ProtoReflect.Descriptor instead. func (*AckInputsRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{29} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{31} } func (x *AckInputsRequest) GetLease() *DepotAgentLeaseRef { @@ -2010,7 +2160,7 @@ type AckInputsResponse struct { func (x *AckInputsResponse) Reset() { *x = AckInputsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[30] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2023,7 +2173,7 @@ func (x *AckInputsResponse) String() string { func (*AckInputsResponse) ProtoMessage() {} func (x *AckInputsResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[30] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2036,7 +2186,7 @@ func (x *AckInputsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AckInputsResponse.ProtoReflect.Descriptor instead. func (*AckInputsResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{30} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{32} } type PushViewRequest struct { @@ -2059,7 +2209,7 @@ type PushViewRequest struct { func (x *PushViewRequest) Reset() { *x = PushViewRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[31] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2072,7 +2222,7 @@ func (x *PushViewRequest) String() string { func (*PushViewRequest) ProtoMessage() {} func (x *PushViewRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[31] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2085,7 +2235,7 @@ func (x *PushViewRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PushViewRequest.ProtoReflect.Descriptor instead. func (*PushViewRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{31} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{33} } func (x *PushViewRequest) GetLease() *DepotAgentLeaseRef { @@ -2143,7 +2293,7 @@ type PushViewResponse struct { func (x *PushViewResponse) Reset() { *x = PushViewResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[32] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2156,7 +2306,7 @@ func (x *PushViewResponse) String() string { func (*PushViewResponse) ProtoMessage() {} func (x *PushViewResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[32] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2169,7 +2319,7 @@ func (x *PushViewResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PushViewResponse.ProtoReflect.Descriptor instead. func (*PushViewResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{32} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{34} } func (x *PushViewResponse) GetHasPendingInputs() bool { @@ -2201,7 +2351,7 @@ type CommitWritesRequest struct { func (x *CommitWritesRequest) Reset() { *x = CommitWritesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[33] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2214,7 +2364,7 @@ func (x *CommitWritesRequest) String() string { func (*CommitWritesRequest) ProtoMessage() {} func (x *CommitWritesRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[33] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2227,7 +2377,7 @@ func (x *CommitWritesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CommitWritesRequest.ProtoReflect.Descriptor instead. func (*CommitWritesRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{33} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{35} } func (x *CommitWritesRequest) GetLease() *DepotAgentLeaseRef { @@ -2263,7 +2413,7 @@ type CommitWritesResponse struct { func (x *CommitWritesResponse) Reset() { *x = CommitWritesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[34] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2276,7 +2426,7 @@ func (x *CommitWritesResponse) String() string { func (*CommitWritesResponse) ProtoMessage() {} func (x *CommitWritesResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[34] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2289,7 +2439,7 @@ func (x *CommitWritesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CommitWritesResponse.ProtoReflect.Descriptor instead. func (*CommitWritesResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{34} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{36} } func (x *CommitWritesResponse) GetLastSeq() uint64 { @@ -2315,7 +2465,7 @@ type LoadStateRequest struct { func (x *LoadStateRequest) Reset() { *x = LoadStateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[35] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2328,7 +2478,7 @@ func (x *LoadStateRequest) String() string { func (*LoadStateRequest) ProtoMessage() {} func (x *LoadStateRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[35] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2341,7 +2491,7 @@ func (x *LoadStateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LoadStateRequest.ProtoReflect.Descriptor instead. func (*LoadStateRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{35} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{37} } func (x *LoadStateRequest) GetLease() *DepotAgentLeaseRef { @@ -2387,7 +2537,7 @@ type LoadStateResponse struct { func (x *LoadStateResponse) Reset() { *x = LoadStateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[36] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2400,7 +2550,7 @@ func (x *LoadStateResponse) String() string { func (*LoadStateResponse) ProtoMessage() {} func (x *LoadStateResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[36] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2413,7 +2563,7 @@ func (x *LoadStateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use LoadStateResponse.ProtoReflect.Descriptor instead. func (*LoadStateResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{36} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{38} } func (x *LoadStateResponse) GetLastSeq() uint64 { @@ -2472,7 +2622,7 @@ type LoadStateEntryFloor struct { func (x *LoadStateEntryFloor) Reset() { *x = LoadStateEntryFloor{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[37] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2485,7 +2635,7 @@ func (x *LoadStateEntryFloor) String() string { func (*LoadStateEntryFloor) ProtoMessage() {} func (x *LoadStateEntryFloor) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[37] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2498,7 +2648,7 @@ func (x *LoadStateEntryFloor) ProtoReflect() protoreflect.Message { // Deprecated: Use LoadStateEntryFloor.ProtoReflect.Descriptor instead. func (*LoadStateEntryFloor) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{37} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{39} } func (x *LoadStateEntryFloor) GetConversationId() uint64 { @@ -2533,7 +2683,7 @@ type ReportOutcomeRequest struct { func (x *ReportOutcomeRequest) Reset() { *x = ReportOutcomeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[38] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2546,7 +2696,7 @@ func (x *ReportOutcomeRequest) String() string { func (*ReportOutcomeRequest) ProtoMessage() {} func (x *ReportOutcomeRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[38] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2559,7 +2709,7 @@ func (x *ReportOutcomeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReportOutcomeRequest.ProtoReflect.Descriptor instead. func (*ReportOutcomeRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{38} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{40} } func (x *ReportOutcomeRequest) GetLease() *DepotAgentLeaseRef { @@ -2599,7 +2749,7 @@ type ReportOutcomeResponse struct { func (x *ReportOutcomeResponse) Reset() { *x = ReportOutcomeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[39] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2612,7 +2762,7 @@ func (x *ReportOutcomeResponse) String() string { func (*ReportOutcomeResponse) ProtoMessage() {} func (x *ReportOutcomeResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[39] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2625,7 +2775,7 @@ func (x *ReportOutcomeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReportOutcomeResponse.ProtoReflect.Descriptor instead. func (*ReportOutcomeResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{39} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{41} } type RecordTimingsRequest struct { @@ -2642,7 +2792,7 @@ type RecordTimingsRequest struct { func (x *RecordTimingsRequest) Reset() { *x = RecordTimingsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[40] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2655,7 +2805,7 @@ func (x *RecordTimingsRequest) String() string { func (*RecordTimingsRequest) ProtoMessage() {} func (x *RecordTimingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[40] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2668,7 +2818,7 @@ func (x *RecordTimingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordTimingsRequest.ProtoReflect.Descriptor instead. func (*RecordTimingsRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{40} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{42} } func (x *RecordTimingsRequest) GetLease() *DepotAgentLeaseRef { @@ -2709,7 +2859,7 @@ type DepotAgentTiming struct { func (x *DepotAgentTiming) Reset() { *x = DepotAgentTiming{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[41] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2722,7 +2872,7 @@ func (x *DepotAgentTiming) String() string { func (*DepotAgentTiming) ProtoMessage() {} func (x *DepotAgentTiming) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[41] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2735,7 +2885,7 @@ func (x *DepotAgentTiming) ProtoReflect() protoreflect.Message { // Deprecated: Use DepotAgentTiming.ProtoReflect.Descriptor instead. func (*DepotAgentTiming) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{41} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{43} } func (x *DepotAgentTiming) GetPhase() string { @@ -2796,7 +2946,7 @@ type RecordTimingsResponse struct { func (x *RecordTimingsResponse) Reset() { *x = RecordTimingsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[42] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2809,7 +2959,7 @@ func (x *RecordTimingsResponse) String() string { func (*RecordTimingsResponse) ProtoMessage() {} func (x *RecordTimingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[42] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2822,7 +2972,7 @@ func (x *RecordTimingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordTimingsResponse.ProtoReflect.Descriptor instead. func (*RecordTimingsResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{42} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{44} } type ForkSessionRequest struct { @@ -2852,7 +3002,7 @@ type ForkSessionRequest struct { func (x *ForkSessionRequest) Reset() { *x = ForkSessionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[43] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2865,7 +3015,7 @@ func (x *ForkSessionRequest) String() string { func (*ForkSessionRequest) ProtoMessage() {} func (x *ForkSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[43] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2878,7 +3028,7 @@ func (x *ForkSessionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ForkSessionRequest.ProtoReflect.Descriptor instead. func (*ForkSessionRequest) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{43} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{45} } func (x *ForkSessionRequest) GetSessionId() string { @@ -2936,7 +3086,7 @@ type ForkSessionResponse struct { func (x *ForkSessionResponse) Reset() { *x = ForkSessionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[44] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2949,7 +3099,7 @@ func (x *ForkSessionResponse) String() string { func (*ForkSessionResponse) ProtoMessage() {} func (x *ForkSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[44] + mi := &file_depot_agent_v1_depot_agent_core_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2962,7 +3112,7 @@ func (x *ForkSessionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ForkSessionResponse.ProtoReflect.Descriptor instead. func (*ForkSessionResponse) Descriptor() ([]byte, []int) { - return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{44} + return file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP(), []int{46} } func (x *ForkSessionResponse) GetSession() *DepotAgentSession { @@ -3189,441 +3339,472 @@ var file_depot_agent_v1_depot_agent_core_proto_rawDesc = []byte{ 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x58, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 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, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, - 0x22, 0x6c, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, - 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x82, - 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x88, - 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x69, 0x7a, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0xa0, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, - 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, - 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x88, - 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xbd, 0x02, 0x0a, 0x13, 0x57, 0x61, 0x74, 0x63, 0x68, - 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, 0x20, 0x0a, - 0x09, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x48, 0x00, 0x52, 0x08, 0x61, 0x66, 0x74, 0x65, 0x72, 0x53, 0x65, 0x71, 0x88, 0x01, 0x01, 0x12, - 0x26, 0x0a, 0x0c, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0b, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x75, - 0x72, 0x73, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x5c, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, - 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x66, 0x74, 0x65, - 0x72, 0x5f, 0x73, 0x65, 0x71, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, - 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0xc4, 0x02, 0x0a, 0x14, 0x57, 0x61, 0x74, 0x63, 0x68, - 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3b, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, - 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x76, 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x69, 0x65, - 0x77, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x69, 0x65, - 0x77, 0x53, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x5d, 0x0a, 0x0d, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, - 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x38, 0x0a, - 0x17, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 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, 0x22, 0x51, 0x0a, 0x18, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x72, 0x75, 0x70, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x6e, - 0x70, 0x75, 0x74, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x36, 0x0a, 0x15, 0x41, 0x72, - 0x63, 0x68, 0x69, 0x76, 0x65, 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, 0x22, 0x55, 0x0a, 0x16, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x07, - 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x52, 0x0a, 0x10, 0x4f, 0x70, 0x65, - 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, - 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x52, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, 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, + 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x49, 0x64, 0x22, 0xa7, 0x02, 0x0a, 0x17, 0x47, + 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, + 0x12, 0x2f, 0x0a, 0x11, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0f, 0x61, + 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x88, 0x01, + 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x01, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x1b, + 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, + 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x03, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, + 0x28, 0x0a, 0x10, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, + 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x49, 0x64, 0x73, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x61, 0x6e, + 0x73, 0x77, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x5f, 0x69, 0x64, 0x22, 0x58, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 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, + 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x6c, + 0x0a, 0x19, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, + 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x65, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x74, 0x72, + 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x82, 0x01, 0x0a, + 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, + 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x88, 0x01, 0x01, + 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, + 0x7a, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0xa0, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, + 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x88, 0x01, 0x01, + 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xbd, 0x02, 0x0a, 0x13, 0x57, 0x61, 0x74, 0x63, 0x68, 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, 0x20, 0x0a, 0x09, 0x61, + 0x66, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, + 0x52, 0x08, 0x61, 0x66, 0x74, 0x65, 0x72, 0x53, 0x65, 0x71, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, + 0x0c, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0b, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x75, 0x72, 0x73, + 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x5c, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x64, + 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, + 0x74, 0x63, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, + 0x73, 0x65, 0x71, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x75, + 0x72, 0x73, 0x6f, 0x72, 0x22, 0xc4, 0x02, 0x0a, 0x14, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, + 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x66, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xc3, 0x02, - 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x65, - 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, - 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x07, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x71, 0x12, 0x3b, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, - 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x5a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x64, - 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, - 0x65, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0xeb, 0x01, 0x0a, 0x11, 0x50, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, - 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, - 0x61, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x64, 0x65, 0x70, - 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x6c, 0x6c, - 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, + 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, + 0x65, 0x77, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, + 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x69, 0x65, 0x77, 0x5f, + 0x73, 0x65, 0x71, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x69, 0x65, 0x77, 0x53, + 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x5d, 0x0a, 0x0d, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x37, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x38, 0x0a, 0x17, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 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, 0x22, 0x51, 0x0a, 0x18, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, + 0x70, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x35, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x70, 0x75, + 0x74, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x36, 0x0a, 0x15, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 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, + 0x22, 0x55, 0x0a, 0x16, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x73, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, + 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, + 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, + 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x52, 0x0a, 0x10, 0x4f, 0x70, 0x65, 0x6e, 0x4c, + 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x07, 0x73, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, + 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, + 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x66, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xc3, 0x02, 0x0a, 0x11, + 0x4f, 0x70, 0x65, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x61, 0x73, + 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x6c, + 0x61, 0x73, 0x74, 0x53, 0x65, 0x71, 0x12, 0x3b, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x5a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x64, 0x65, 0x70, + 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, + 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0xec, 0x01, 0x0a, 0x12, 0x50, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x73, 0x12, 0x5b, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, + 0x01, 0x22, 0xeb, 0x01, 0x0a, 0x11, 0x50, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, + 0x65, 0x12, 0x5a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x49, 0x6e, - 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, - 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x69, 0x0a, 0x10, 0x41, 0x63, 0x6b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, - 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x49, 0x64, 0x73, 0x22, 0x13, 0x0a, 0x11, 0x41, - 0x63, 0x6b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xdb, 0x03, 0x0a, 0x0f, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, - 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, - 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x58, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, - 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, - 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x65, 0x0a, 0x12, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x64, 0x65, - 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, - 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x75, 0x6c, - 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x11, 0x70, 0x75, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x44, 0x0a, 0x16, 0x50, 0x75, 0x6c, 0x6c, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xdd, - 0x01, 0x0a, 0x10, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, - 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x10, 0x68, 0x61, 0x73, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, - 0x73, 0x12, 0x59, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, - 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, + 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0xec, 0x01, 0x0a, 0x12, 0x50, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, + 0x5b, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x79, - 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, - 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, - 0x71, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x06, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x22, 0x31, 0x0a, 0x14, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x71, 0x22, 0x7c, 0x0a, 0x10, - 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, - 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, - 0x72, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, - 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x22, 0xe3, 0x01, 0x0a, 0x11, 0x4c, - 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x72, - 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, - 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, - 0x12, 0x46, 0x0a, 0x0c, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x6f, 0x72, 0x52, 0x0b, 0x65, 0x6e, 0x74, - 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x6f, 0x72, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x61, - 0x73, 0x6b, 0x46, 0x6c, 0x6f, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x65, 0x78, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6e, 0x65, 0x78, 0x74, 0x49, 0x64, - 0x22, 0x79, 0x0a, 0x13, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x76, 0x65, - 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x12, 0x27, 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x66, 0x72, - 0x6f, 0x6d, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x22, 0x98, 0x02, 0x0a, 0x14, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, - 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, 0x74, 0x63, - 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x1a, 0x3a, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x69, + 0x0a, 0x10, 0x41, 0x63, 0x6b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x61, + 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x49, 0x64, 0x73, 0x22, 0x13, 0x0a, 0x11, 0x41, 0x63, 0x6b, + 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdb, + 0x03, 0x0a, 0x0f, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x61, + 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, + 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x1b, + 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x58, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, 0x65, 0x70, + 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, + 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x65, 0x0a, + 0x12, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x64, 0x65, 0x70, 0x6f, + 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x56, + 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x11, 0x70, 0x75, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x44, 0x0a, 0x16, 0x50, 0x75, 0x6c, 0x6c, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, - 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x8c, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, - 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, - 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xac, - 0x02, 0x0a, 0x10, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, - 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x4d, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x64, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x4d, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x75, 0x72, 0x6e, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x06, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x64, - 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, - 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 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, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x17, 0x0a, - 0x15, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9e, 0x03, 0x0a, 0x12, 0x46, 0x6f, 0x72, 0x6b, 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, 0x23, 0x0a, 0x0b, - 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x09, 0x61, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x49, 0x64, 0x88, 0x01, - 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x01, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, - 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x02, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x11, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x5b, 0x0a, 0x0d, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xdd, 0x01, 0x0a, + 0x10, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x68, + 0x61, 0x73, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, + 0x59, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, + 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x79, 0x0a, 0x13, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x65, + 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, + 0x16, 0x0a, 0x06, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x06, 0x77, 0x72, 0x69, 0x74, 0x65, 0x73, 0x22, 0x31, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x19, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x71, 0x22, 0x7c, 0x0a, 0x10, 0x4c, 0x6f, + 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, + 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x06, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x22, 0xe3, 0x01, 0x0a, 0x11, 0x4c, 0x6f, 0x61, + 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, + 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x77, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x1f, 0x0a, + 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x46, + 0x0a, 0x0c, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x46, 0x6c, 0x6f, 0x6f, 0x72, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x72, 0x79, + 0x46, 0x6c, 0x6f, 0x6f, 0x72, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x66, + 0x6c, 0x6f, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, + 0x46, 0x6c, 0x6f, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6e, 0x65, 0x78, 0x74, 0x49, 0x64, 0x22, 0x79, + 0x0a, 0x13, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x46, 0x6c, 0x6f, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, + 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, + 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x66, 0x72, 0x6f, 0x6d, + 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x22, 0x98, 0x02, 0x0a, 0x14, 0x52, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x61, + 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x6f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, + 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x88, 0x01, + 0x01, 0x12, 0x4b, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, 0x3a, + 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 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, 0x5f, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x22, 0x17, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, + 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x01, + 0x0a, 0x14, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, + 0x12, 0x3a, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, + 0x69, 0x6e, 0x67, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xac, 0x02, 0x0a, + 0x10, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x69, 0x6e, + 0x67, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x4d, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x75, 0x72, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x06, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x64, 0x65, 0x70, + 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, + 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 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, 0x0c, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, - 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x69, 0x74, 0x6c, - 0x65, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x98, 0x01, 0x0a, 0x13, 0x46, 0x6f, 0x72, 0x6b, - 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3b, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x05, - 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x65, - 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, - 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x48, 0x00, 0x52, 0x05, - 0x69, 0x6e, 0x70, 0x75, 0x74, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x69, 0x6e, 0x70, - 0x75, 0x74, 0x32, 0xf8, 0x06, 0x0a, 0x11, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x64, 0x65, 0x70, 0x6f, - 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x25, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x09, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6e, - 0x70, 0x75, 0x74, 0x12, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, - 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, - 0x11, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x28, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x64, - 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x44, - 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x2d, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2e, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x5b, 0x0a, 0x0c, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x23, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x65, 0x0a, - 0x10, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x27, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x64, 0x65, 0x70, - 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, - 0x72, 0x72, 0x75, 0x70, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, - 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0b, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xcb, 0x05, - 0x0a, 0x18, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x72, 0x6e, - 0x65, 0x73, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x09, 0x4f, 0x70, - 0x65, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x4c, 0x65, 0x61, - 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, - 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x4c, - 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0a, - 0x50, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x64, 0x65, 0x70, - 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x6c, 0x6c, - 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, - 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x50, 0x0a, 0x09, 0x41, 0x63, 0x6b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x20, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x17, 0x0a, 0x15, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9e, 0x03, 0x0a, 0x12, 0x46, 0x6f, 0x72, 0x6b, 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, 0x23, 0x0a, 0x0b, 0x61, 0x74, + 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x09, 0x61, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, + 0x1d, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x01, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19, + 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, + 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x11, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x5b, 0x0a, 0x0d, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x35, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x0c, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x61, 0x74, + 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x42, + 0x14, 0x0a, 0x12, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x98, 0x01, 0x0a, 0x13, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, + 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x63, 0x6b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x63, 0x6b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x08, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x12, - 0x1f, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x73, 0x12, 0x23, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, + 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x05, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x65, 0x70, 0x6f, + 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6f, 0x74, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, + 0x32, 0xdc, 0x07, 0x0a, 0x11, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, + 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x09, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x70, 0x75, + 0x74, 0x12, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x11, 0x47, + 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x28, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x64, 0x65, 0x70, + 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x26, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x27, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x70, 0x75, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x16, 0x4c, 0x69, 0x73, + 0x74, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x2d, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x0c, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, - 0x09, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x64, 0x65, 0x70, - 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x64, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, + 0x65, 0x0a, 0x10, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x53, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x64, + 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x26, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0b, 0x46, 0x6f, 0x72, 0x6b, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x64, 0x65, 0x70, + 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x6b, + 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, + 0xcb, 0x05, 0x0a, 0x18, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x61, + 0x72, 0x6e, 0x65, 0x73, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x09, + 0x4f, 0x70, 0x65, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, + 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x4c, + 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x64, 0x65, + 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, + 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, + 0x0a, 0x0a, 0x50, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x64, + 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, + 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x09, 0x41, 0x63, 0x6b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, + 0x12, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x63, 0x6b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x6b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x08, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, + 0x77, 0x12, 0x1f, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x57, 0x72, + 0x69, 0x74, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x64, 0x65, 0x70, 0x6f, + 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x50, 0x0a, 0x09, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, - 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x5c, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, + 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, + 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x5c, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, 0x74, 0x63, 0x6f, + 0x6d, 0x65, 0x12, 0x24, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x5c, 0x0a, 0x0d, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x24, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, + 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x75, - 0x74, 0x63, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, - 0x0d, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x24, - 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x69, - 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xba, 0x01, 0x0a, 0x12, - 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x76, 0x31, 0x42, 0x13, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, - 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2f, 0x63, 0x6c, 0x69, 0x2f, - 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2f, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x44, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x5c, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x44, 0x65, 0x70, 0x6f, 0x74, - 0x5c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x3a, 0x3a, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xba, 0x01, + 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x76, 0x31, 0x42, 0x13, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x43, 0x6f, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2f, 0x63, 0x6c, + 0x69, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x65, 0x70, 0x6f, + 0x74, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x76, 0x31, 0xa2, 0x02, 0x03, 0x44, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x44, 0x65, 0x70, 0x6f, 0x74, + 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x44, 0x65, 0x70, 0x6f, + 0x74, 0x5c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x44, 0x65, 0x70, + 0x6f, 0x74, 0x5c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x3a, + 0x3a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -3638,7 +3819,7 @@ func file_depot_agent_v1_depot_agent_core_proto_rawDescGZIP() []byte { return file_depot_agent_v1_depot_agent_core_proto_rawDescData } -var file_depot_agent_v1_depot_agent_core_proto_msgTypes = make([]protoimpl.MessageInfo, 61) +var file_depot_agent_v1_depot_agent_core_proto_msgTypes = make([]protoimpl.MessageInfo, 63) var file_depot_agent_v1_depot_agent_core_proto_goTypes = []interface{}{ (*DepotAgentSessionRef)(nil), // 0: depot.agent.v1.DepotAgentSessionRef (*DepotAgentLeaseRef)(nil), // 1: depot.agent.v1.DepotAgentLeaseRef @@ -3655,140 +3836,144 @@ var file_depot_agent_v1_depot_agent_core_proto_goTypes = []interface{}{ (*SendInputResponse)(nil), // 12: depot.agent.v1.SendInputResponse (*GetSessionRequest)(nil), // 13: depot.agent.v1.GetSessionRequest (*GetSessionResponse)(nil), // 14: depot.agent.v1.GetSessionResponse - (*GetSessionMessageRequest)(nil), // 15: depot.agent.v1.GetSessionMessageRequest - (*GetSessionMessageResponse)(nil), // 16: depot.agent.v1.GetSessionMessageResponse - (*ListDepotAgentSessionsRequest)(nil), // 17: depot.agent.v1.ListDepotAgentSessionsRequest - (*ListDepotAgentSessionsResponse)(nil), // 18: depot.agent.v1.ListDepotAgentSessionsResponse - (*WatchSessionRequest)(nil), // 19: depot.agent.v1.WatchSessionRequest - (*WatchSessionResponse)(nil), // 20: depot.agent.v1.WatchSessionResponse - (*InterruptSessionRequest)(nil), // 21: depot.agent.v1.InterruptSessionRequest - (*InterruptSessionResponse)(nil), // 22: depot.agent.v1.InterruptSessionResponse - (*ArchiveSessionRequest)(nil), // 23: depot.agent.v1.ArchiveSessionRequest - (*ArchiveSessionResponse)(nil), // 24: depot.agent.v1.ArchiveSessionResponse - (*OpenLeaseRequest)(nil), // 25: depot.agent.v1.OpenLeaseRequest - (*OpenLeaseResponse)(nil), // 26: depot.agent.v1.OpenLeaseResponse - (*PullInputsRequest)(nil), // 27: depot.agent.v1.PullInputsRequest - (*PullInputsResponse)(nil), // 28: depot.agent.v1.PullInputsResponse - (*AckInputsRequest)(nil), // 29: depot.agent.v1.AckInputsRequest - (*AckInputsResponse)(nil), // 30: depot.agent.v1.AckInputsResponse - (*PushViewRequest)(nil), // 31: depot.agent.v1.PushViewRequest - (*PushViewResponse)(nil), // 32: depot.agent.v1.PushViewResponse - (*CommitWritesRequest)(nil), // 33: depot.agent.v1.CommitWritesRequest - (*CommitWritesResponse)(nil), // 34: depot.agent.v1.CommitWritesResponse - (*LoadStateRequest)(nil), // 35: depot.agent.v1.LoadStateRequest - (*LoadStateResponse)(nil), // 36: depot.agent.v1.LoadStateResponse - (*LoadStateEntryFloor)(nil), // 37: depot.agent.v1.LoadStateEntryFloor - (*ReportOutcomeRequest)(nil), // 38: depot.agent.v1.ReportOutcomeRequest - (*ReportOutcomeResponse)(nil), // 39: depot.agent.v1.ReportOutcomeResponse - (*RecordTimingsRequest)(nil), // 40: depot.agent.v1.RecordTimingsRequest - (*DepotAgentTiming)(nil), // 41: depot.agent.v1.DepotAgentTiming - (*RecordTimingsResponse)(nil), // 42: depot.agent.v1.RecordTimingsResponse - (*ForkSessionRequest)(nil), // 43: depot.agent.v1.ForkSessionRequest - (*ForkSessionResponse)(nil), // 44: depot.agent.v1.ForkSessionResponse - nil, // 45: depot.agent.v1.DepotAgentInput.ContributionsEntry - nil, // 46: depot.agent.v1.CreateSessionRequest.ContributionsEntry - nil, // 47: depot.agent.v1.SendInputRequest.ContributionsEntry - nil, // 48: depot.agent.v1.GetSessionRequest.ContributionsEntry - nil, // 49: depot.agent.v1.GetSessionResponse.ContributionsEntry - nil, // 50: depot.agent.v1.WatchSessionRequest.ContributionsEntry - nil, // 51: depot.agent.v1.WatchSessionResponse.ContributionsEntry - nil, // 52: depot.agent.v1.OpenLeaseResponse.ContributionsEntry - nil, // 53: depot.agent.v1.PullInputsRequest.ContributionsEntry - nil, // 54: depot.agent.v1.PullInputsResponse.ContributionsEntry - nil, // 55: depot.agent.v1.PushViewRequest.ContributionsEntry - nil, // 56: depot.agent.v1.PushViewRequest.PullContributionsEntry - nil, // 57: depot.agent.v1.PushViewResponse.ContributionsEntry - nil, // 58: depot.agent.v1.ReportOutcomeRequest.DetailsEntry - nil, // 59: depot.agent.v1.DepotAgentTiming.CountsEntry - nil, // 60: depot.agent.v1.ForkSessionRequest.ContributionsEntry - (*timestamppb.Timestamp)(nil), // 61: google.protobuf.Timestamp + (*GetSessionInputRequest)(nil), // 15: depot.agent.v1.GetSessionInputRequest + (*GetSessionInputResponse)(nil), // 16: depot.agent.v1.GetSessionInputResponse + (*GetSessionMessageRequest)(nil), // 17: depot.agent.v1.GetSessionMessageRequest + (*GetSessionMessageResponse)(nil), // 18: depot.agent.v1.GetSessionMessageResponse + (*ListDepotAgentSessionsRequest)(nil), // 19: depot.agent.v1.ListDepotAgentSessionsRequest + (*ListDepotAgentSessionsResponse)(nil), // 20: depot.agent.v1.ListDepotAgentSessionsResponse + (*WatchSessionRequest)(nil), // 21: depot.agent.v1.WatchSessionRequest + (*WatchSessionResponse)(nil), // 22: depot.agent.v1.WatchSessionResponse + (*InterruptSessionRequest)(nil), // 23: depot.agent.v1.InterruptSessionRequest + (*InterruptSessionResponse)(nil), // 24: depot.agent.v1.InterruptSessionResponse + (*ArchiveSessionRequest)(nil), // 25: depot.agent.v1.ArchiveSessionRequest + (*ArchiveSessionResponse)(nil), // 26: depot.agent.v1.ArchiveSessionResponse + (*OpenLeaseRequest)(nil), // 27: depot.agent.v1.OpenLeaseRequest + (*OpenLeaseResponse)(nil), // 28: depot.agent.v1.OpenLeaseResponse + (*PullInputsRequest)(nil), // 29: depot.agent.v1.PullInputsRequest + (*PullInputsResponse)(nil), // 30: depot.agent.v1.PullInputsResponse + (*AckInputsRequest)(nil), // 31: depot.agent.v1.AckInputsRequest + (*AckInputsResponse)(nil), // 32: depot.agent.v1.AckInputsResponse + (*PushViewRequest)(nil), // 33: depot.agent.v1.PushViewRequest + (*PushViewResponse)(nil), // 34: depot.agent.v1.PushViewResponse + (*CommitWritesRequest)(nil), // 35: depot.agent.v1.CommitWritesRequest + (*CommitWritesResponse)(nil), // 36: depot.agent.v1.CommitWritesResponse + (*LoadStateRequest)(nil), // 37: depot.agent.v1.LoadStateRequest + (*LoadStateResponse)(nil), // 38: depot.agent.v1.LoadStateResponse + (*LoadStateEntryFloor)(nil), // 39: depot.agent.v1.LoadStateEntryFloor + (*ReportOutcomeRequest)(nil), // 40: depot.agent.v1.ReportOutcomeRequest + (*ReportOutcomeResponse)(nil), // 41: depot.agent.v1.ReportOutcomeResponse + (*RecordTimingsRequest)(nil), // 42: depot.agent.v1.RecordTimingsRequest + (*DepotAgentTiming)(nil), // 43: depot.agent.v1.DepotAgentTiming + (*RecordTimingsResponse)(nil), // 44: depot.agent.v1.RecordTimingsResponse + (*ForkSessionRequest)(nil), // 45: depot.agent.v1.ForkSessionRequest + (*ForkSessionResponse)(nil), // 46: depot.agent.v1.ForkSessionResponse + nil, // 47: depot.agent.v1.DepotAgentInput.ContributionsEntry + nil, // 48: depot.agent.v1.CreateSessionRequest.ContributionsEntry + nil, // 49: depot.agent.v1.SendInputRequest.ContributionsEntry + nil, // 50: depot.agent.v1.GetSessionRequest.ContributionsEntry + nil, // 51: depot.agent.v1.GetSessionResponse.ContributionsEntry + nil, // 52: depot.agent.v1.WatchSessionRequest.ContributionsEntry + nil, // 53: depot.agent.v1.WatchSessionResponse.ContributionsEntry + nil, // 54: depot.agent.v1.OpenLeaseResponse.ContributionsEntry + nil, // 55: depot.agent.v1.PullInputsRequest.ContributionsEntry + nil, // 56: depot.agent.v1.PullInputsResponse.ContributionsEntry + nil, // 57: depot.agent.v1.PushViewRequest.ContributionsEntry + nil, // 58: depot.agent.v1.PushViewRequest.PullContributionsEntry + nil, // 59: depot.agent.v1.PushViewResponse.ContributionsEntry + nil, // 60: depot.agent.v1.ReportOutcomeRequest.DetailsEntry + nil, // 61: depot.agent.v1.DepotAgentTiming.CountsEntry + nil, // 62: depot.agent.v1.ForkSessionRequest.ContributionsEntry + (*timestamppb.Timestamp)(nil), // 63: google.protobuf.Timestamp } var file_depot_agent_v1_depot_agent_core_proto_depIdxs = []int32{ 3, // 0: depot.agent.v1.DepotAgentModel.fallbacks:type_name -> depot.agent.v1.DepotAgentModelRef 2, // 1: depot.agent.v1.DepotAgentSession.model:type_name -> depot.agent.v1.DepotAgentModel - 61, // 2: depot.agent.v1.DepotAgentSession.created_at:type_name -> google.protobuf.Timestamp - 61, // 3: depot.agent.v1.DepotAgentSession.updated_at:type_name -> google.protobuf.Timestamp - 61, // 4: depot.agent.v1.DepotAgentSession.archived_at:type_name -> google.protobuf.Timestamp + 63, // 2: depot.agent.v1.DepotAgentSession.created_at:type_name -> google.protobuf.Timestamp + 63, // 3: depot.agent.v1.DepotAgentSession.updated_at:type_name -> google.protobuf.Timestamp + 63, // 4: depot.agent.v1.DepotAgentSession.archived_at:type_name -> google.protobuf.Timestamp 6, // 5: depot.agent.v1.InputAuthor.external:type_name -> depot.agent.v1.ExternalAuthor - 61, // 6: depot.agent.v1.DepotAgentInput.created_at:type_name -> google.protobuf.Timestamp + 63, // 6: depot.agent.v1.DepotAgentInput.created_at:type_name -> google.protobuf.Timestamp 5, // 7: depot.agent.v1.DepotAgentInput.author:type_name -> depot.agent.v1.InputAuthor 7, // 8: depot.agent.v1.DepotAgentInput.sender:type_name -> depot.agent.v1.InputSender - 45, // 9: depot.agent.v1.DepotAgentInput.contributions:type_name -> depot.agent.v1.DepotAgentInput.ContributionsEntry + 47, // 9: depot.agent.v1.DepotAgentInput.contributions:type_name -> depot.agent.v1.DepotAgentInput.ContributionsEntry 2, // 10: depot.agent.v1.CreateSessionRequest.model:type_name -> depot.agent.v1.DepotAgentModel - 46, // 11: depot.agent.v1.CreateSessionRequest.contributions:type_name -> depot.agent.v1.CreateSessionRequest.ContributionsEntry + 48, // 11: depot.agent.v1.CreateSessionRequest.contributions:type_name -> depot.agent.v1.CreateSessionRequest.ContributionsEntry 4, // 12: depot.agent.v1.CreateSessionResponse.session:type_name -> depot.agent.v1.DepotAgentSession 8, // 13: depot.agent.v1.CreateSessionResponse.input:type_name -> depot.agent.v1.DepotAgentInput - 47, // 14: depot.agent.v1.SendInputRequest.contributions:type_name -> depot.agent.v1.SendInputRequest.ContributionsEntry + 49, // 14: depot.agent.v1.SendInputRequest.contributions:type_name -> depot.agent.v1.SendInputRequest.ContributionsEntry 8, // 15: depot.agent.v1.SendInputResponse.input:type_name -> depot.agent.v1.DepotAgentInput - 48, // 16: depot.agent.v1.GetSessionRequest.contributions:type_name -> depot.agent.v1.GetSessionRequest.ContributionsEntry + 50, // 16: depot.agent.v1.GetSessionRequest.contributions:type_name -> depot.agent.v1.GetSessionRequest.ContributionsEntry 4, // 17: depot.agent.v1.GetSessionResponse.session:type_name -> depot.agent.v1.DepotAgentSession - 49, // 18: depot.agent.v1.GetSessionResponse.contributions:type_name -> depot.agent.v1.GetSessionResponse.ContributionsEntry + 51, // 18: depot.agent.v1.GetSessionResponse.contributions:type_name -> depot.agent.v1.GetSessionResponse.ContributionsEntry 4, // 19: depot.agent.v1.ListDepotAgentSessionsResponse.sessions:type_name -> depot.agent.v1.DepotAgentSession - 50, // 20: depot.agent.v1.WatchSessionRequest.contributions:type_name -> depot.agent.v1.WatchSessionRequest.ContributionsEntry + 52, // 20: depot.agent.v1.WatchSessionRequest.contributions:type_name -> depot.agent.v1.WatchSessionRequest.ContributionsEntry 4, // 21: depot.agent.v1.WatchSessionResponse.session:type_name -> depot.agent.v1.DepotAgentSession - 51, // 22: depot.agent.v1.WatchSessionResponse.contributions:type_name -> depot.agent.v1.WatchSessionResponse.ContributionsEntry + 53, // 22: depot.agent.v1.WatchSessionResponse.contributions:type_name -> depot.agent.v1.WatchSessionResponse.ContributionsEntry 8, // 23: depot.agent.v1.InterruptSessionResponse.input:type_name -> depot.agent.v1.DepotAgentInput 4, // 24: depot.agent.v1.ArchiveSessionResponse.session:type_name -> depot.agent.v1.DepotAgentSession 0, // 25: depot.agent.v1.OpenLeaseRequest.session:type_name -> depot.agent.v1.DepotAgentSessionRef 1, // 26: depot.agent.v1.OpenLeaseResponse.lease:type_name -> depot.agent.v1.DepotAgentLeaseRef 4, // 27: depot.agent.v1.OpenLeaseResponse.session:type_name -> depot.agent.v1.DepotAgentSession - 52, // 28: depot.agent.v1.OpenLeaseResponse.contributions:type_name -> depot.agent.v1.OpenLeaseResponse.ContributionsEntry + 54, // 28: depot.agent.v1.OpenLeaseResponse.contributions:type_name -> depot.agent.v1.OpenLeaseResponse.ContributionsEntry 1, // 29: depot.agent.v1.PullInputsRequest.lease:type_name -> depot.agent.v1.DepotAgentLeaseRef - 53, // 30: depot.agent.v1.PullInputsRequest.contributions:type_name -> depot.agent.v1.PullInputsRequest.ContributionsEntry + 55, // 30: depot.agent.v1.PullInputsRequest.contributions:type_name -> depot.agent.v1.PullInputsRequest.ContributionsEntry 8, // 31: depot.agent.v1.PullInputsResponse.inputs:type_name -> depot.agent.v1.DepotAgentInput - 54, // 32: depot.agent.v1.PullInputsResponse.contributions:type_name -> depot.agent.v1.PullInputsResponse.ContributionsEntry + 56, // 32: depot.agent.v1.PullInputsResponse.contributions:type_name -> depot.agent.v1.PullInputsResponse.ContributionsEntry 1, // 33: depot.agent.v1.AckInputsRequest.lease:type_name -> depot.agent.v1.DepotAgentLeaseRef 1, // 34: depot.agent.v1.PushViewRequest.lease:type_name -> depot.agent.v1.DepotAgentLeaseRef - 55, // 35: depot.agent.v1.PushViewRequest.contributions:type_name -> depot.agent.v1.PushViewRequest.ContributionsEntry - 56, // 36: depot.agent.v1.PushViewRequest.pull_contributions:type_name -> depot.agent.v1.PushViewRequest.PullContributionsEntry - 57, // 37: depot.agent.v1.PushViewResponse.contributions:type_name -> depot.agent.v1.PushViewResponse.ContributionsEntry + 57, // 35: depot.agent.v1.PushViewRequest.contributions:type_name -> depot.agent.v1.PushViewRequest.ContributionsEntry + 58, // 36: depot.agent.v1.PushViewRequest.pull_contributions:type_name -> depot.agent.v1.PushViewRequest.PullContributionsEntry + 59, // 37: depot.agent.v1.PushViewResponse.contributions:type_name -> depot.agent.v1.PushViewResponse.ContributionsEntry 1, // 38: depot.agent.v1.CommitWritesRequest.lease:type_name -> depot.agent.v1.DepotAgentLeaseRef 1, // 39: depot.agent.v1.LoadStateRequest.lease:type_name -> depot.agent.v1.DepotAgentLeaseRef - 37, // 40: depot.agent.v1.LoadStateResponse.entry_floors:type_name -> depot.agent.v1.LoadStateEntryFloor + 39, // 40: depot.agent.v1.LoadStateResponse.entry_floors:type_name -> depot.agent.v1.LoadStateEntryFloor 1, // 41: depot.agent.v1.ReportOutcomeRequest.lease:type_name -> depot.agent.v1.DepotAgentLeaseRef - 58, // 42: depot.agent.v1.ReportOutcomeRequest.details:type_name -> depot.agent.v1.ReportOutcomeRequest.DetailsEntry + 60, // 42: depot.agent.v1.ReportOutcomeRequest.details:type_name -> depot.agent.v1.ReportOutcomeRequest.DetailsEntry 1, // 43: depot.agent.v1.RecordTimingsRequest.lease:type_name -> depot.agent.v1.DepotAgentLeaseRef - 41, // 44: depot.agent.v1.RecordTimingsRequest.timings:type_name -> depot.agent.v1.DepotAgentTiming - 59, // 45: depot.agent.v1.DepotAgentTiming.counts:type_name -> depot.agent.v1.DepotAgentTiming.CountsEntry - 60, // 46: depot.agent.v1.ForkSessionRequest.contributions:type_name -> depot.agent.v1.ForkSessionRequest.ContributionsEntry + 43, // 44: depot.agent.v1.RecordTimingsRequest.timings:type_name -> depot.agent.v1.DepotAgentTiming + 61, // 45: depot.agent.v1.DepotAgentTiming.counts:type_name -> depot.agent.v1.DepotAgentTiming.CountsEntry + 62, // 46: depot.agent.v1.ForkSessionRequest.contributions:type_name -> depot.agent.v1.ForkSessionRequest.ContributionsEntry 4, // 47: depot.agent.v1.ForkSessionResponse.session:type_name -> depot.agent.v1.DepotAgentSession 8, // 48: depot.agent.v1.ForkSessionResponse.input:type_name -> depot.agent.v1.DepotAgentInput 9, // 49: depot.agent.v1.DepotAgentService.CreateSession:input_type -> depot.agent.v1.CreateSessionRequest 11, // 50: depot.agent.v1.DepotAgentService.SendInput:input_type -> depot.agent.v1.SendInputRequest 13, // 51: depot.agent.v1.DepotAgentService.GetSession:input_type -> depot.agent.v1.GetSessionRequest - 15, // 52: depot.agent.v1.DepotAgentService.GetSessionMessage:input_type -> depot.agent.v1.GetSessionMessageRequest - 17, // 53: depot.agent.v1.DepotAgentService.ListDepotAgentSessions:input_type -> depot.agent.v1.ListDepotAgentSessionsRequest - 19, // 54: depot.agent.v1.DepotAgentService.WatchSession:input_type -> depot.agent.v1.WatchSessionRequest - 21, // 55: depot.agent.v1.DepotAgentService.InterruptSession:input_type -> depot.agent.v1.InterruptSessionRequest - 23, // 56: depot.agent.v1.DepotAgentService.ArchiveSession:input_type -> depot.agent.v1.ArchiveSessionRequest - 43, // 57: depot.agent.v1.DepotAgentService.ForkSession:input_type -> depot.agent.v1.ForkSessionRequest - 25, // 58: depot.agent.v1.DepotAgentHarnessService.OpenLease:input_type -> depot.agent.v1.OpenLeaseRequest - 27, // 59: depot.agent.v1.DepotAgentHarnessService.PullInputs:input_type -> depot.agent.v1.PullInputsRequest - 29, // 60: depot.agent.v1.DepotAgentHarnessService.AckInputs:input_type -> depot.agent.v1.AckInputsRequest - 31, // 61: depot.agent.v1.DepotAgentHarnessService.PushView:input_type -> depot.agent.v1.PushViewRequest - 33, // 62: depot.agent.v1.DepotAgentHarnessService.CommitWrites:input_type -> depot.agent.v1.CommitWritesRequest - 35, // 63: depot.agent.v1.DepotAgentHarnessService.LoadState:input_type -> depot.agent.v1.LoadStateRequest - 38, // 64: depot.agent.v1.DepotAgentHarnessService.ReportOutcome:input_type -> depot.agent.v1.ReportOutcomeRequest - 40, // 65: depot.agent.v1.DepotAgentHarnessService.RecordTimings:input_type -> depot.agent.v1.RecordTimingsRequest - 10, // 66: depot.agent.v1.DepotAgentService.CreateSession:output_type -> depot.agent.v1.CreateSessionResponse - 12, // 67: depot.agent.v1.DepotAgentService.SendInput:output_type -> depot.agent.v1.SendInputResponse - 14, // 68: depot.agent.v1.DepotAgentService.GetSession:output_type -> depot.agent.v1.GetSessionResponse - 16, // 69: depot.agent.v1.DepotAgentService.GetSessionMessage:output_type -> depot.agent.v1.GetSessionMessageResponse - 18, // 70: depot.agent.v1.DepotAgentService.ListDepotAgentSessions:output_type -> depot.agent.v1.ListDepotAgentSessionsResponse - 20, // 71: depot.agent.v1.DepotAgentService.WatchSession:output_type -> depot.agent.v1.WatchSessionResponse - 22, // 72: depot.agent.v1.DepotAgentService.InterruptSession:output_type -> depot.agent.v1.InterruptSessionResponse - 24, // 73: depot.agent.v1.DepotAgentService.ArchiveSession:output_type -> depot.agent.v1.ArchiveSessionResponse - 44, // 74: depot.agent.v1.DepotAgentService.ForkSession:output_type -> depot.agent.v1.ForkSessionResponse - 26, // 75: depot.agent.v1.DepotAgentHarnessService.OpenLease:output_type -> depot.agent.v1.OpenLeaseResponse - 28, // 76: depot.agent.v1.DepotAgentHarnessService.PullInputs:output_type -> depot.agent.v1.PullInputsResponse - 30, // 77: depot.agent.v1.DepotAgentHarnessService.AckInputs:output_type -> depot.agent.v1.AckInputsResponse - 32, // 78: depot.agent.v1.DepotAgentHarnessService.PushView:output_type -> depot.agent.v1.PushViewResponse - 34, // 79: depot.agent.v1.DepotAgentHarnessService.CommitWrites:output_type -> depot.agent.v1.CommitWritesResponse - 36, // 80: depot.agent.v1.DepotAgentHarnessService.LoadState:output_type -> depot.agent.v1.LoadStateResponse - 39, // 81: depot.agent.v1.DepotAgentHarnessService.ReportOutcome:output_type -> depot.agent.v1.ReportOutcomeResponse - 42, // 82: depot.agent.v1.DepotAgentHarnessService.RecordTimings:output_type -> depot.agent.v1.RecordTimingsResponse - 66, // [66:83] is the sub-list for method output_type - 49, // [49:66] is the sub-list for method input_type + 17, // 52: depot.agent.v1.DepotAgentService.GetSessionMessage:input_type -> depot.agent.v1.GetSessionMessageRequest + 15, // 53: depot.agent.v1.DepotAgentService.GetSessionInput:input_type -> depot.agent.v1.GetSessionInputRequest + 19, // 54: depot.agent.v1.DepotAgentService.ListDepotAgentSessions:input_type -> depot.agent.v1.ListDepotAgentSessionsRequest + 21, // 55: depot.agent.v1.DepotAgentService.WatchSession:input_type -> depot.agent.v1.WatchSessionRequest + 23, // 56: depot.agent.v1.DepotAgentService.InterruptSession:input_type -> depot.agent.v1.InterruptSessionRequest + 25, // 57: depot.agent.v1.DepotAgentService.ArchiveSession:input_type -> depot.agent.v1.ArchiveSessionRequest + 45, // 58: depot.agent.v1.DepotAgentService.ForkSession:input_type -> depot.agent.v1.ForkSessionRequest + 27, // 59: depot.agent.v1.DepotAgentHarnessService.OpenLease:input_type -> depot.agent.v1.OpenLeaseRequest + 29, // 60: depot.agent.v1.DepotAgentHarnessService.PullInputs:input_type -> depot.agent.v1.PullInputsRequest + 31, // 61: depot.agent.v1.DepotAgentHarnessService.AckInputs:input_type -> depot.agent.v1.AckInputsRequest + 33, // 62: depot.agent.v1.DepotAgentHarnessService.PushView:input_type -> depot.agent.v1.PushViewRequest + 35, // 63: depot.agent.v1.DepotAgentHarnessService.CommitWrites:input_type -> depot.agent.v1.CommitWritesRequest + 37, // 64: depot.agent.v1.DepotAgentHarnessService.LoadState:input_type -> depot.agent.v1.LoadStateRequest + 40, // 65: depot.agent.v1.DepotAgentHarnessService.ReportOutcome:input_type -> depot.agent.v1.ReportOutcomeRequest + 42, // 66: depot.agent.v1.DepotAgentHarnessService.RecordTimings:input_type -> depot.agent.v1.RecordTimingsRequest + 10, // 67: depot.agent.v1.DepotAgentService.CreateSession:output_type -> depot.agent.v1.CreateSessionResponse + 12, // 68: depot.agent.v1.DepotAgentService.SendInput:output_type -> depot.agent.v1.SendInputResponse + 14, // 69: depot.agent.v1.DepotAgentService.GetSession:output_type -> depot.agent.v1.GetSessionResponse + 18, // 70: depot.agent.v1.DepotAgentService.GetSessionMessage:output_type -> depot.agent.v1.GetSessionMessageResponse + 16, // 71: depot.agent.v1.DepotAgentService.GetSessionInput:output_type -> depot.agent.v1.GetSessionInputResponse + 20, // 72: depot.agent.v1.DepotAgentService.ListDepotAgentSessions:output_type -> depot.agent.v1.ListDepotAgentSessionsResponse + 22, // 73: depot.agent.v1.DepotAgentService.WatchSession:output_type -> depot.agent.v1.WatchSessionResponse + 24, // 74: depot.agent.v1.DepotAgentService.InterruptSession:output_type -> depot.agent.v1.InterruptSessionResponse + 26, // 75: depot.agent.v1.DepotAgentService.ArchiveSession:output_type -> depot.agent.v1.ArchiveSessionResponse + 46, // 76: depot.agent.v1.DepotAgentService.ForkSession:output_type -> depot.agent.v1.ForkSessionResponse + 28, // 77: depot.agent.v1.DepotAgentHarnessService.OpenLease:output_type -> depot.agent.v1.OpenLeaseResponse + 30, // 78: depot.agent.v1.DepotAgentHarnessService.PullInputs:output_type -> depot.agent.v1.PullInputsResponse + 32, // 79: depot.agent.v1.DepotAgentHarnessService.AckInputs:output_type -> depot.agent.v1.AckInputsResponse + 34, // 80: depot.agent.v1.DepotAgentHarnessService.PushView:output_type -> depot.agent.v1.PushViewResponse + 36, // 81: depot.agent.v1.DepotAgentHarnessService.CommitWrites:output_type -> depot.agent.v1.CommitWritesResponse + 38, // 82: depot.agent.v1.DepotAgentHarnessService.LoadState:output_type -> depot.agent.v1.LoadStateResponse + 41, // 83: depot.agent.v1.DepotAgentHarnessService.ReportOutcome:output_type -> depot.agent.v1.ReportOutcomeResponse + 44, // 84: depot.agent.v1.DepotAgentHarnessService.RecordTimings:output_type -> depot.agent.v1.RecordTimingsResponse + 67, // [67:85] is the sub-list for method output_type + 49, // [49:67] is the sub-list for method input_type 49, // [49:49] is the sub-list for extension type_name 49, // [49:49] is the sub-list for extension extendee 0, // [0:49] is the sub-list for field type_name @@ -3981,7 +4166,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSessionMessageRequest); i { + switch v := v.(*GetSessionInputRequest); i { case 0: return &v.state case 1: @@ -3993,7 +4178,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSessionMessageResponse); i { + switch v := v.(*GetSessionInputResponse); i { case 0: return &v.state case 1: @@ -4005,7 +4190,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListDepotAgentSessionsRequest); i { + switch v := v.(*GetSessionMessageRequest); i { case 0: return &v.state case 1: @@ -4017,7 +4202,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListDepotAgentSessionsResponse); i { + switch v := v.(*GetSessionMessageResponse); i { case 0: return &v.state case 1: @@ -4029,7 +4214,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WatchSessionRequest); i { + switch v := v.(*ListDepotAgentSessionsRequest); i { case 0: return &v.state case 1: @@ -4041,7 +4226,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WatchSessionResponse); i { + switch v := v.(*ListDepotAgentSessionsResponse); i { case 0: return &v.state case 1: @@ -4053,7 +4238,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InterruptSessionRequest); i { + switch v := v.(*WatchSessionRequest); i { case 0: return &v.state case 1: @@ -4065,7 +4250,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InterruptSessionResponse); i { + switch v := v.(*WatchSessionResponse); i { case 0: return &v.state case 1: @@ -4077,7 +4262,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArchiveSessionRequest); i { + switch v := v.(*InterruptSessionRequest); i { case 0: return &v.state case 1: @@ -4089,7 +4274,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArchiveSessionResponse); i { + switch v := v.(*InterruptSessionResponse); i { case 0: return &v.state case 1: @@ -4101,7 +4286,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenLeaseRequest); i { + switch v := v.(*ArchiveSessionRequest); i { case 0: return &v.state case 1: @@ -4113,7 +4298,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenLeaseResponse); i { + switch v := v.(*ArchiveSessionResponse); i { case 0: return &v.state case 1: @@ -4125,7 +4310,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PullInputsRequest); i { + switch v := v.(*OpenLeaseRequest); i { case 0: return &v.state case 1: @@ -4137,7 +4322,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PullInputsResponse); i { + switch v := v.(*OpenLeaseResponse); i { case 0: return &v.state case 1: @@ -4149,7 +4334,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AckInputsRequest); i { + switch v := v.(*PullInputsRequest); i { case 0: return &v.state case 1: @@ -4161,7 +4346,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AckInputsResponse); i { + switch v := v.(*PullInputsResponse); i { case 0: return &v.state case 1: @@ -4173,7 +4358,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushViewRequest); i { + switch v := v.(*AckInputsRequest); i { case 0: return &v.state case 1: @@ -4185,7 +4370,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PushViewResponse); i { + switch v := v.(*AckInputsResponse); i { case 0: return &v.state case 1: @@ -4197,7 +4382,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitWritesRequest); i { + switch v := v.(*PushViewRequest); i { case 0: return &v.state case 1: @@ -4209,7 +4394,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitWritesResponse); i { + switch v := v.(*PushViewResponse); i { case 0: return &v.state case 1: @@ -4221,7 +4406,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadStateRequest); i { + switch v := v.(*CommitWritesRequest); i { case 0: return &v.state case 1: @@ -4233,7 +4418,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadStateResponse); i { + switch v := v.(*CommitWritesResponse); i { case 0: return &v.state case 1: @@ -4245,7 +4430,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadStateEntryFloor); i { + switch v := v.(*LoadStateRequest); i { case 0: return &v.state case 1: @@ -4257,7 +4442,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportOutcomeRequest); i { + switch v := v.(*LoadStateResponse); i { case 0: return &v.state case 1: @@ -4269,7 +4454,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportOutcomeResponse); i { + switch v := v.(*LoadStateEntryFloor); i { case 0: return &v.state case 1: @@ -4281,7 +4466,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RecordTimingsRequest); i { + switch v := v.(*ReportOutcomeRequest); i { case 0: return &v.state case 1: @@ -4293,7 +4478,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DepotAgentTiming); i { + switch v := v.(*ReportOutcomeResponse); i { case 0: return &v.state case 1: @@ -4305,7 +4490,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RecordTimingsResponse); i { + switch v := v.(*RecordTimingsRequest); i { case 0: return &v.state case 1: @@ -4317,7 +4502,7 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ForkSessionRequest); i { + switch v := v.(*DepotAgentTiming); i { case 0: return &v.state case 1: @@ -4329,6 +4514,30 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } } file_depot_agent_v1_depot_agent_core_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordTimingsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_depot_agent_v1_depot_agent_core_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForkSessionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_depot_agent_v1_depot_agent_core_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ForkSessionResponse); i { case 0: return &v.state @@ -4349,20 +4558,21 @@ func file_depot_agent_v1_depot_agent_core_proto_init() { } file_depot_agent_v1_depot_agent_core_proto_msgTypes[9].OneofWrappers = []interface{}{} file_depot_agent_v1_depot_agent_core_proto_msgTypes[11].OneofWrappers = []interface{}{} - file_depot_agent_v1_depot_agent_core_proto_msgTypes[17].OneofWrappers = []interface{}{} - file_depot_agent_v1_depot_agent_core_proto_msgTypes[18].OneofWrappers = []interface{}{} + file_depot_agent_v1_depot_agent_core_proto_msgTypes[16].OneofWrappers = []interface{}{} file_depot_agent_v1_depot_agent_core_proto_msgTypes[19].OneofWrappers = []interface{}{} - file_depot_agent_v1_depot_agent_core_proto_msgTypes[37].OneofWrappers = []interface{}{} - file_depot_agent_v1_depot_agent_core_proto_msgTypes[38].OneofWrappers = []interface{}{} - file_depot_agent_v1_depot_agent_core_proto_msgTypes[43].OneofWrappers = []interface{}{} - file_depot_agent_v1_depot_agent_core_proto_msgTypes[44].OneofWrappers = []interface{}{} + file_depot_agent_v1_depot_agent_core_proto_msgTypes[20].OneofWrappers = []interface{}{} + file_depot_agent_v1_depot_agent_core_proto_msgTypes[21].OneofWrappers = []interface{}{} + file_depot_agent_v1_depot_agent_core_proto_msgTypes[39].OneofWrappers = []interface{}{} + file_depot_agent_v1_depot_agent_core_proto_msgTypes[40].OneofWrappers = []interface{}{} + file_depot_agent_v1_depot_agent_core_proto_msgTypes[45].OneofWrappers = []interface{}{} + file_depot_agent_v1_depot_agent_core_proto_msgTypes[46].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_depot_agent_v1_depot_agent_core_proto_rawDesc, NumEnums: 0, - NumMessages: 61, + NumMessages: 63, NumExtensions: 0, NumServices: 2, }, diff --git a/proto/depot/agent/v1/depot_agent_core.proto b/proto/depot/agent/v1/depot_agent_core.proto index 9964a67a..9de8a873 100644 --- a/proto/depot/agent/v1/depot_agent_core.proto +++ b/proto/depot/agent/v1/depot_agent_core.proto @@ -17,6 +17,8 @@ service DepotAgentService { rpc GetSession(GetSessionRequest) returns (GetSessionResponse); // Returns the whole text of one message of a session's conversation. The view cuts long messages short. rpc GetSessionMessage(GetSessionMessageRequest) returns (GetSessionMessageResponse); + // Returns what became of one message sent to a session, from the session's stored record of it. + rpc GetSessionInput(GetSessionInputRequest) returns (GetSessionInputResponse); // Lists the organization's sessions, newest first. rpc ListDepotAgentSessions(ListDepotAgentSessionsRequest) returns (ListDepotAgentSessionsResponse); // Streams the session's view each time it changes. @@ -221,6 +223,28 @@ message GetSessionResponse { map contributions = 4; } +message GetSessionInputRequest { + // Unique identifier for the session. Returned by `CreateSession` and `ListDepotAgentSessions`. + string session_id = 1; + // Unique identifier for the message. Returned by `CreateSession` and `SendInput`. + string input_id = 2; +} + +message GetSessionInputResponse { + // What became of the message: "pending" (not yet read), "placed" (in a run that has not ended), "answered", "unanswered" or "withdrawn" (cancelled unread). + string outcome = 1; + // Set when `outcome` is "answered": the last message of the run that settled this one. `GetSessionMessage` takes it. + optional string answer_message_id = 2; + // Set when `outcome` is "unanswered": why. For example, "aborted" after a stop, "model_error", or "no_reply" when the run ended on a tool step. + optional string reason = 3; + // Set when `outcome` is "unanswered" and the reason has more to say, such as the model's error. Maximum: 4 KiB. + optional string detail = 4; + // Set when `outcome` is "answered": this message as the agent read it. `GetSessionMessage` takes it. + optional string message_id = 5; + // Set when `outcome` is "answered": the inputs this run settled together with this one. + repeated string shared_input_ids = 6; +} + message GetSessionMessageRequest { // Unique identifier for the session. Returned by `CreateSession` and `ListDepotAgentSessions`. string session_id = 1; From d29ad1f28d1b78abfff1b257e069a9c9129d2961 Mon Sep 17 00:00:00 2001 From: Rob Stolarz Date: Fri, 27 Nov 2026 14:00:19 -0800 Subject: [PATCH 2/6] fix(agent): a watch prints a reply only once it is known to be one (DEP-8992) - A reply read by id is printed after its role is checked, and the status line is repeated after a reply printed late. - A session at rest whose input still reads as placed after every look ends the watch as a run without a reply. Co-Authored-By: Claude Mythos 5.2 Claude-Session: https://claude.ai/code/session_01RQk3K7GpvQg7ySXyCrirEe --- pkg/cmd/agent/render.go | 25 ++++++++++++++++--------- pkg/cmd/agent/session_test.go | 15 ++++++++------- pkg/cmd/agent/watch.go | 34 ++++++++++++++++++++++------------ 3 files changed, 46 insertions(+), 28 deletions(-) diff --git a/pkg/cmd/agent/render.go b/pkg/cmd/agent/render.go index 5eaee7e4..729e63fe 100644 --- a/pkg/cmd/agent/render.go +++ b/pkg/cmd/agent/render.go @@ -289,16 +289,17 @@ func (r *Renderer) fill(msg *viewMessage) error { return nil } -// Reply returns the whole text of the message with this id, read by the id unless a frame already read it, and -// prints it when the transcript has not shown it whole: its turn outgrew the view, or its read failed. +// Reply returns the whole text of the message with this id, read by the id unless a frame already read it. func (r *Renderer) Reply(id string) (string, error) { - text, held := r.full[id] - if !held { - var err error - if text, err = r.whole(id); err != nil { - return "", err - } + if text, held := r.full[id]; held { + return text, nil } + return r.whole(id) +} + +// Said prints a reply the transcript has not shown whole: its turn outgrew the view, its read failed, or (late) its +// input left the view. The status line the frame already printed is repeated, so it still closes the turn. +func (r *Renderer) Said(id, text string, late bool) { switch { case r.once("message:" + id): r.finishPartial(text) @@ -306,8 +307,14 @@ func (r *Renderer) Reply(id string) (string, error) { delete(r.unread, id) r.line("(the whole reply, read on a later try)") r.line("%s", strings.TrimSpace(text)) + case late: + r.line("%s", strings.TrimSpace(text)) + default: + return + } + if r.lastStatus != "" { + r.line("[%s]", r.lastStatus) } - return text, nil } // From starts the transcript at the message of this input, leaving out the session's earlier turns. diff --git a/pkg/cmd/agent/session_test.go b/pkg/cmd/agent/session_test.go index d6e69229..ec401693 100644 --- a/pkg/cmd/agent/session_test.go +++ b/pkg/cmd/agent/session_test.go @@ -597,11 +597,12 @@ func TestWatchChecksTheAnswerTheAPINames(t *testing.T) { code int want string }{ - "the answer is an error too long for the view": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}, whole: map[string]*agentv1.GetSessionMessageResponse{"6": {Role: "assistant", Text: "all of it"}}}, cutErr, 1, "reply was an error: all of it"}, - "the record says placed when the session comes to rest": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("placed"), became("answered", "4")}}, viewReplied, 0, "hi there"}, - "the read by id fails on every try": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}, wholeErrs: []error{down, down, down, down, down, down}}, cut, 0, "all\n[6 bytes truncated]"}, - "the answer calls a tool": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "4")}}, step, 1, failedNoReply}, - "the answer out of the view is not the agent's": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "9")}, whole: map[string]*agentv1.GetSessionMessageResponse{"9": {Role: "tool", Text: "ok"}}}, viewBefore, 1, failedNoReply}, + "the answer is an error too long for the view": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}, whole: map[string]*agentv1.GetSessionMessageResponse{"6": {Role: "assistant", Text: "all of it"}}}, cutErr, 1, "reply was an error: all of it"}, + "the record says placed when the session comes to rest": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("placed"), became("answered", "4")}}, viewReplied, 0, "hi there"}, + "the record still says placed after every look at a resting session": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("placed")}}, viewReplied, 1, failedNoReply}, + "the read by id fails on every try": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}, wholeErrs: []error{down, down, down, down, down, down}}, cut, 0, "all\n[6 bytes truncated]"}, + "the answer calls a tool": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "4")}}, step, 1, failedNoReply}, + "the answer out of the view is not the agent's": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "9")}, whole: map[string]*agentv1.GetSessionMessageResponse{"9": {Role: "tool", Text: "ok"}}}, viewBefore, 1, failedNoReply}, } { t.Run(name, func(t *testing.T) { tc.fake.frames = [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", tc.view)}} @@ -634,8 +635,8 @@ func TestWatchPrintsAReplyWhoseInputLeftTheView(t *testing.T) { whole: map[string]*agentv1.GetSessionMessageResponse{"2": {Role: "assistant", Text: "the reply"}}, }) out, _, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1") - if err != nil || strings.Count(out, "the reply") != 1 { - t.Fatalf("err = %v, out = %q; want the reply printed once", err, out) + if err != nil || strings.Count(out, "the reply") != 1 || !strings.HasSuffix(strings.TrimSpace(out), "the reply\n[idle]") { + t.Fatalf("err = %v, out = %q; want the reply printed once, with the status after it", err, out) } }) } diff --git a/pkg/cmd/agent/watch.go b/pkg/cmd/agent/watch.go index f51f36f7..7d5fd0a0 100644 --- a/pkg/cmd/agent/watch.go +++ b/pkg/cmd/agent/watch.go @@ -341,28 +341,34 @@ func awaited(ctx context.Context, c *caller, sessionID, inputID, status string, shown = &view.Messages[i] } } - // The input left the view before the watch saw it, so nothing of its run was printed: print the reply. - if r.from != "" && shown != nil { - defer func() { - if reply != "" { - r.line("%s", strings.TrimSpace(reply)) - } - }() + // Nothing is printed until the answer is known to be a reply. Late: the input left the view before the watch + // saw it, so nothing of its run was printed. + late := r.from != "" && shown != nil + cut := func() (bool, string, string, error) { + done, reply, failure, err = answer(shown.Role, len(shown.ToolCalls) > 0 && !shown.IsError, *shown) + if late && reply != "" { + r.Said(id, reply, true) + } + return done, reply, failure, err } // A reply the frame holds whole is already in the transcript and needs no read. if shown != nil && shown.TruncatedBytes == 0 { - return answer(shown.Role, len(shown.ToolCalls) > 0 && !shown.IsError, *shown) + return cut() } text, err := r.Reply(id) switch { case err != nil && shown != nil: // The read by id failed on every try; the frame's cut text is still the reply. - return answer(shown.Role, len(shown.ToolCalls) > 0 && !shown.IsError, *shown) + return cut() case err != nil: return false, "", "", &rpcError{"GetSessionMessage", fmt.Errorf("get message %s: %w", id, err)} } failed := shown != nil && shown.IsError - return answer(t.roles[id], shown != nil && len(shown.ToolCalls) > 0 && !failed, viewMessage{Text: text, IsError: failed}) + done, reply, failure, err = answer(t.roles[id], shown != nil && len(shown.ToolCalls) > 0 && !failed, viewMessage{Text: text, IsError: failed}) + if reply != "" { + r.Said(id, reply, late) + } + return done, reply, failure, err case "unanswered": switch resp.Msg.GetReason() { case "aborted": @@ -380,8 +386,12 @@ func awaited(ctx context.Context, c *caller, sessionID, inputID, status string, case "archived": return true, "", "the session was archived", nil case "idle", "waiting_input": - // A session at rest while the record still says its run holds the input: the two are written apart, so look again. - if looks > 0 && resp.Msg.GetOutcome() == "placed" { + // A session at rest while the record still says its run holds the input: the two are written apart, so look again, + // and count the run as ended without a reply when the record never settles. + if resp.Msg.GetOutcome() == "placed" { + if looks == 0 { + return true, "", failedNoReply, nil + } select { case <-ctx.Done(): return false, "", "", nil From f2d2d66d91ad6f9f1e5a4da1b06c455b934a9e77 Mon Sep 17 00:00:00 2001 From: Rob Stolarz Date: Fri, 27 Nov 2026 14:11:28 -0800 Subject: [PATCH 3/6] fix(agent): a watch rereads the session before it counts a resting run as ended (DEP-8992) Each extra look at an input a resting session still holds first reads the session again. A session back at work, or a view that shows work under way, is left to its later frames. Co-Authored-By: Claude Mythos 5.2 Claude-Session: https://claude.ai/code/session_01RQk3K7GpvQg7ySXyCrirEe --- pkg/cmd/agent/session_test.go | 5 ++++- pkg/cmd/agent/watch.go | 27 ++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/agent/session_test.go b/pkg/cmd/agent/session_test.go index ec401693..82fa95ba 100644 --- a/pkg/cmd/agent/session_test.go +++ b/pkg/cmd/agent/session_test.go @@ -600,12 +600,15 @@ func TestWatchChecksTheAnswerTheAPINames(t *testing.T) { "the answer is an error too long for the view": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}, whole: map[string]*agentv1.GetSessionMessageResponse{"6": {Role: "assistant", Text: "all of it"}}}, cutErr, 1, "reply was an error: all of it"}, "the record says placed when the session comes to rest": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("placed"), became("answered", "4")}}, viewReplied, 0, "hi there"}, "the record still says placed after every look at a resting session": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("placed")}}, viewReplied, 1, failedNoReply}, + "the session is back at work by the second look": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("placed"), became("answered", "4")}, gots: []*agentv1.GetSessionResponse{{Session: frame("running", "c1", viewReplied).GetSession()}}, frames: [][]*agentv1.WatchSessionResponse{{frame("idle", "c2", viewReplied)}}}, viewReplied, 0, "hi there"}, "the read by id fails on every try": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "6")}, wholeErrs: []error{down, down, down, down, down, down}}, cut, 0, "all\n[6 bytes truncated]"}, "the answer calls a tool": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "4")}}, step, 1, failedNoReply}, "the answer out of the view is not the agent's": {&fakeAgent{inputs: []*agentv1.GetSessionInputResponse{became("answered", "9")}, whole: map[string]*agentv1.GetSessionMessageResponse{"9": {Role: "tool", Text: "ok"}}}, viewBefore, 1, failedNoReply}, } { t.Run(name, func(t *testing.T) { - tc.fake.frames = [][]*agentv1.WatchSessionResponse{{frame("idle", "c1", tc.view)}} + rest := frame("idle", "c1", tc.view) + tc.fake.frames = append([][]*agentv1.WatchSessionResponse{{rest}}, tc.fake.frames...) + tc.fake.got = &agentv1.GetSessionResponse{Session: rest.GetSession(), ViewJson: rest.GetViewJson()} serveAgent(t, tc.fake) out, _, err := runAgent(t, "watch", "das_1", "--after-input", "dai_1", "-o", "json") var status cli.StatusError diff --git a/pkg/cmd/agent/watch.go b/pkg/cmd/agent/watch.go index 7d5fd0a0..b942012d 100644 --- a/pkg/cmd/agent/watch.go +++ b/pkg/cmd/agent/watch.go @@ -388,7 +388,7 @@ func awaited(ctx context.Context, c *caller, sessionID, inputID, status string, case "idle", "waiting_input": // A session at rest while the record still says its run holds the input: the two are written apart, so look again, // and count the run as ended without a reply when the record never settles. - if resp.Msg.GetOutcome() == "placed" { + if resp.Msg.GetOutcome() == "placed" && !busy(view) { if looks == 0 { return true, "", failedNoReply, nil } @@ -397,12 +397,37 @@ func awaited(ctx context.Context, c *caller, sessionID, inputID, status string, return false, "", "", nil case <-time.After(replyGrace): } + again, err := c.client.GetSession(ctx, authed(c, &agentv1.GetSessionRequest{SessionId: sessionID})) + if err != nil { + return false, "", "", &rpcError{"GetSession", fmt.Errorf("get session %s: %w", sessionID, err)} + } + if view, err = r.Render(again.Msg.GetSession(), again.Msg.GetViewJson()); err != nil || ctx.Err() != nil { + return false, "", "", err + } + // A session that has gone back to work is left to its later frames. + if status = again.Msg.GetSession().GetStatus(); status == "running" || status == "" { + return false, "", "", nil + } return awaited(ctx, c, sessionID, inputID, status, view, r, t, looks-1) } } return false, "", "", nil } +// busy reports whether the view shows work under way, whatever the status says: a reply being written, a model call +// to be tried again, or a tool still running. +func busy(view *agentView) bool { + if view == nil { + return false + } + for _, tool := range view.Tools { + if tool.Status != "done" { + return true + } + } + return view.Partial != "" || view.Retry != nil +} + // answer is the wait's end for the message the API names as the answer. Only what the agent itself said last counts // as a reply: a message of another role, or one that calls a tool, is a run that ended without one. func answer(role string, calls bool, msg viewMessage) (done bool, reply, failure string, err error) { From a15bb378fd3039c4668c40fb97932b90d7a0bc4a Mon Sep 17 00:00:00 2001 From: Rob Stolarz Date: Fri, 27 Nov 2026 14:19:09 -0800 Subject: [PATCH 4/6] fix(agent): a watch reports the status its extra look read (DEP-8992) Co-Authored-By: Claude Mythos 5.2 Claude-Session: https://claude.ai/code/session_01RQk3K7GpvQg7ySXyCrirEe --- pkg/cmd/agent/watch.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/agent/watch.go b/pkg/cmd/agent/watch.go index b942012d..9095af0a 100644 --- a/pkg/cmd/agent/watch.go +++ b/pkg/cmd/agent/watch.go @@ -265,6 +265,9 @@ func watchOnce(ctx context.Context, c *caller, sessionID string, r *Renderer, o if ctx.Err() != nil { return false, nil } + if t.status != "" { + result.Status, t.status = t.status, "" + } // At rest with the input still open, the next frame asks again whatever it shows. if done || (status != "idle" && status != "waiting_input") { t.asked = at @@ -405,7 +408,8 @@ func awaited(ctx context.Context, c *caller, sessionID, inputID, status string, return false, "", "", err } // A session that has gone back to work is left to its later frames. - if status = again.Msg.GetSession().GetStatus(); status == "running" || status == "" { + status = again.Msg.GetSession().GetStatus() + if t.status = status; status == "running" || status == "" { return false, "", "", nil } return awaited(ctx, c, sessionID, inputID, status, view, r, t, looks-1) @@ -447,6 +451,8 @@ type turn struct { said string // asked is the status and newest message of the last frame the API was asked about the awaited input for. asked string + // status is what an extra look read the session's status as, for the watch to report. + status string // roles is who wrote each message read by its id. roles map[string]string } From 2098124b59d814591088f66edb2f2e0b1d62d58d Mon Sep 17 00:00:00 2001 From: Rob Stolarz Date: Fri, 27 Nov 2026 14:24:14 -0800 Subject: [PATCH 5/6] fix(agent): a watch keeps the status of an extra look whose next read failed (DEP-8992) Co-Authored-By: Claude Mythos 5.2 Claude-Session: https://claude.ai/code/session_01RQk3K7GpvQg7ySXyCrirEe --- pkg/cmd/agent/watch.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/agent/watch.go b/pkg/cmd/agent/watch.go index 9095af0a..2474c5d0 100644 --- a/pkg/cmd/agent/watch.go +++ b/pkg/cmd/agent/watch.go @@ -259,15 +259,16 @@ func watchOnce(ctx context.Context, c *caller, sessionID string, r *Renderer, o queued = view.QueuedCount } if at := fmt.Sprintf("%s:%s:%d", status, newestID(view), queued); at != t.asked { - if done, reply, failure, err = awaited(ctx, c, sessionID, o.afterInput, status, view, r, t, restLooks); err != nil { + done, reply, failure, err = awaited(ctx, c, sessionID, o.afterInput, status, view, r, t, restLooks) + if t.status != "" { + result.Status, t.status = t.status, "" + } + if err != nil { return false, err } if ctx.Err() != nil { return false, nil } - if t.status != "" { - result.Status, t.status = t.status, "" - } // At rest with the input still open, the next frame asks again whatever it shows. if done || (status != "idle" && status != "waiting_input") { t.asked = at From cef3b90b729c70ff3ca377041d7edec3fa787d22 Mon Sep 17 00:00:00 2001 From: Rob Stolarz Date: Fri, 27 Nov 2026 14:39:52 -0800 Subject: [PATCH 6/6] fix(agent): printing a reply returns a failed transcript write (DEP-8992) Co-Authored-By: Claude Mythos 5.2 Claude-Session: https://claude.ai/code/session_01RQk3K7GpvQg7ySXyCrirEe --- pkg/cmd/agent/render.go | 8 ++++++-- pkg/cmd/agent/session_test.go | 10 ++++++++++ pkg/cmd/agent/watch.go | 4 ++-- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/agent/render.go b/pkg/cmd/agent/render.go index 729e63fe..74c0b803 100644 --- a/pkg/cmd/agent/render.go +++ b/pkg/cmd/agent/render.go @@ -299,7 +299,7 @@ func (r *Renderer) Reply(id string) (string, error) { // Said prints a reply the transcript has not shown whole: its turn outgrew the view, its read failed, or (late) its // input left the view. The status line the frame already printed is repeated, so it still closes the turn. -func (r *Renderer) Said(id, text string, late bool) { +func (r *Renderer) Said(id, text string, late bool) error { switch { case r.once("message:" + id): r.finishPartial(text) @@ -310,11 +310,15 @@ func (r *Renderer) Said(id, text string, late bool) { case late: r.line("%s", strings.TrimSpace(text)) default: - return + return nil } if r.lastStatus != "" { r.line("[%s]", r.lastStatus) } + if r.w.err != nil { + return fmt.Errorf("write transcript: %w", r.w.err) + } + return nil } // From starts the transcript at the message of this input, leaving out the session's earlier turns. diff --git a/pkg/cmd/agent/session_test.go b/pkg/cmd/agent/session_test.go index 82fa95ba..5b2498bf 100644 --- a/pkg/cmd/agent/session_test.go +++ b/pkg/cmd/agent/session_test.go @@ -645,6 +645,16 @@ func TestWatchPrintsAReplyWhoseInputLeftTheView(t *testing.T) { } } +type brokenWriter struct{} + +func (brokenWriter) Write([]byte) (int, error) { return 0, errors.New("pipe closed") } + +func TestSaidReturnsAFailedWrite(t *testing.T) { + if err := NewRenderer(brokenWriter{}).Said("9", "the reply", false); err == nil || !strings.Contains(err.Error(), "pipe closed") { + t.Fatalf("err = %v, want the failed write", err) + } +} + func TestWatchUntilIdleExitCodes(t *testing.T) { replyGrace = 10 * time.Millisecond t.Cleanup(func() { replyGrace = 10 * time.Second }) diff --git a/pkg/cmd/agent/watch.go b/pkg/cmd/agent/watch.go index 2474c5d0..ce1cad7c 100644 --- a/pkg/cmd/agent/watch.go +++ b/pkg/cmd/agent/watch.go @@ -351,7 +351,7 @@ func awaited(ctx context.Context, c *caller, sessionID, inputID, status string, cut := func() (bool, string, string, error) { done, reply, failure, err = answer(shown.Role, len(shown.ToolCalls) > 0 && !shown.IsError, *shown) if late && reply != "" { - r.Said(id, reply, true) + err = r.Said(id, reply, true) } return done, reply, failure, err } @@ -370,7 +370,7 @@ func awaited(ctx context.Context, c *caller, sessionID, inputID, status string, failed := shown != nil && shown.IsError done, reply, failure, err = answer(t.roles[id], shown != nil && len(shown.ToolCalls) > 0 && !failed, viewMessage{Text: text, IsError: failed}) if reply != "" { - r.Said(id, reply, late) + err = r.Said(id, reply, late) } return done, reply, failure, err case "unanswered":